| Modifier and Type | Method and Description |
|---|---|
Bytes |
XAesGcmKey.getOutputPrefix() |
Bytes |
LegacyKmsEnvelopeAeadKey.getOutputPrefix() |
Bytes |
LegacyKmsAeadKey.getOutputPrefix() |
Bytes |
XChaCha20Poly1305Key.getOutputPrefix() |
Bytes |
ChaCha20Poly1305Key.getOutputPrefix() |
Bytes |
AesGcmSivKey.getOutputPrefix() |
Bytes |
AesEaxKey.getOutputPrefix() |
Bytes |
AesGcmKey.getOutputPrefix() |
Bytes |
AesCtrHmacAeadKey.getOutputPrefix() |
abstract Bytes |
AeadKey.getOutputPrefix()
Returns a
Bytes instance which is prefixed to the ciphertext. |
| Modifier and Type | Method and Description |
|---|---|
static Aead |
LegacyFullAead.create(Aead rawAead,
Bytes outputPrefix) |
| Modifier and Type | Method and Description |
|---|---|
abstract Bytes |
DeterministicAeadKey.getOutputPrefix()
Returns a
Bytes instance which is prefixed to the ciphertext. |
Bytes |
AesSivKey.getOutputPrefix() |
| Modifier and Type | Method and Description |
|---|---|
Bytes |
HpkePublicKey.getOutputPrefix() |
Bytes |
HybridPrivateKey.getOutputPrefix()
Returns a
Bytes instance, which is prefixed to every ciphertext. |
abstract Bytes |
HybridPublicKey.getOutputPrefix()
Returns a
Bytes instance, which is prefixed to every ciphertext. |
Bytes |
EciesPublicKey.getOutputPrefix() |
Bytes |
HpkePublicKey.getPublicKeyBytes() |
Bytes |
EciesParameters.getSalt()
Gets the salt value, which defaults to null if not set.
|
Bytes |
EciesPublicKey.getX25519CurvePointBytes()
Returns the underlying public point as EC Point in case the curve is a NIST curve.
|
| Modifier and Type | Method and Description |
|---|---|
static HpkePublicKey |
HpkePublicKey.create(HpkeParameters parameters,
Bytes publicKeyBytes,
Integer idRequirement)
Creates a new HPKE public key.
|
static EciesPublicKey |
EciesPublicKey.createForCurveX25519(EciesParameters parameters,
Bytes publicPointBytes,
Integer idRequirement)
Creates a new ECIES public key using Curve25519.
|
EciesParameters.Builder |
EciesParameters.Builder.setSalt(Bytes salt)
Defaults to null if not set.
|
| Constructor and Description |
|---|
HpkeKemPrivateKey(Bytes serializedPrivate,
Bytes serializedPublic) |
| Modifier and Type | Field and Description |
|---|---|
static Bytes |
OutputPrefixUtil.EMPTY_PREFIX |
| Modifier and Type | Method and Description |
|---|---|
static Bytes |
Util.checkedToBytesFromPrintableAscii(String s)
Converts a string
s to a corresponding Bytes object. |
static Bytes |
OutputPrefixUtil.getLegacyOutputPrefix(int keyId) |
Bytes |
ParametersParser.getObjectIdentifier()
Returns the
objectIdentifier for this serialization. |
Bytes |
ProtoKeySerialization.getObjectIdentifier()
The object identifier.
|
Bytes |
KeyParser.getObjectIdentifier()
Returns the
objectIdentifier for this serialization. |
Bytes |
Serialization.getObjectIdentifier()
Identifies which parsing method to use in the registry.
|
Bytes |
ProtoParametersSerialization.getObjectIdentifier()
The typeUrl.
|
Bytes |
LegacyProtoKey.getOutputPrefix() |
static Bytes |
OutputPrefixUtil.getTinkOutputPrefix(int keyId) |
static Bytes |
Util.toBytesFromPrintableAscii(String s)
Converts a string
s to a corresponding Bytes object. |
| Modifier and Type | Method and Description |
|---|---|
static <SerializationT extends Serialization> |
KeyParser.create(KeyParser.KeyParsingFunction<SerializationT> function,
Bytes objectIdentifier,
Class<SerializationT> serializationClass)
Creates a KeyParser object.
|
static <SerializationT extends Serialization> |
ParametersParser.create(ParametersParser.ParametersParsingFunction<SerializationT> function,
Bytes objectIdentifier,
Class<SerializationT> serializationClass)
Creates a ParametersParser object.
|
PrefixMap.Builder<P> |
PrefixMap.Builder.put(Bytes prefix,
P primitive)
Adds a value for a given prefix.
|
| Modifier and Type | Method and Description |
|---|---|
Bytes |
AesCmacKey.getOutputPrefix() |
Bytes |
HmacKey.getOutputPrefix() |
abstract Bytes |
MacKey.getOutputPrefix()
Returns a
Bytes instance which is prefixed to every mac tag. |
| Modifier and Type | Method and Description |
|---|---|
Bytes |
HkdfPrfParameters.getSalt()
Gets the salt value, which defaults to null if not set, as per RFC 5869.
|
| Modifier and Type | Method and Description |
|---|---|
HkdfPrfParameters.Builder |
HkdfPrfParameters.Builder.setSalt(Bytes salt) |
| Modifier and Type | Method and Description |
|---|---|
Bytes |
Ed25519PublicKey.getOutputPrefix() |
Bytes |
RsaSsaPssPublicKey.getOutputPrefix() |
Bytes |
RsaSsaPkcs1PublicKey.getOutputPrefix() |
Bytes |
SignaturePrivateKey.getOutputPrefix()
Returns a
Bytes instance which is prefixed to every signature. |
abstract Bytes |
SignaturePublicKey.getOutputPrefix()
Returns a
Bytes instance which is prefixed to every signature. |
Bytes |
EcdsaPublicKey.getOutputPrefix() |
Bytes |
Ed25519PublicKey.getPublicKeyBytes() |
| Modifier and Type | Method and Description |
|---|---|
static Ed25519PublicKey |
Ed25519PublicKey.create(Bytes publicKeyBytes) |
static Ed25519PublicKey |
Ed25519PublicKey.create(Ed25519Parameters.Variant variant,
Bytes publicKeyBytes,
Integer idRequirement) |
| Modifier and Type | Method and Description |
|---|---|
static Bytes |
Bytes.copyFrom(byte[] data) |
static Bytes |
Bytes.copyFrom(byte[] data,
int start,
int len)
Wrap an immutable byte array over a slice of a Bytes
|