| Package | Description |
|---|---|
| com.google.crypto.tink | |
| com.google.crypto.tink.aead | |
| com.google.crypto.tink.internal | |
| com.google.crypto.tink.mac | |
| com.google.crypto.tink.prf | |
| com.google.crypto.tink.signature |
| Modifier and Type | Method and Description |
|---|---|
Key |
KeysetHandle.Entry.getKey()
May return an internal class
LegacyProtoKey in case
there is no implementation of the corresponding key class yet. |
Key |
PrimitiveSet.Entry.getKey() |
Key |
PrivateKey.getPublicKey() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
Key.equalsKey(Key other)
Returns true if the key is equal to the passed in key.
|
static KeysetHandle.Builder.Entry |
KeysetHandle.importKey(Key key)
Creates a new entry with a fixed key.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AeadKey
Represents functions to encrypt and decrypt data using AEAD.
|
class |
AesEaxKey
Represents an AES-EAX key used for computing AEAD.
|
class |
AesGcmKey
Represents an AES-GCM key used for computing AEAD.
|
class |
AesGcmSivKey
Represents an AES-GCM-SIV key used for computing AEAD.
|
class |
ChaCha20Poly1305Key
Represents the Aead ChaCha20-Poly1305 specified in RFC 8439.
|
class |
XChaCha20Poly1305Key
Represents the Aead XChaCha20-Poly1305 proposed in the RFC draft at
https://datatracker.ietf.org/doc/html/draft-arciszewski-xchacha-03.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
XChaCha20Poly1305Key.equalsKey(Key o) |
boolean |
ChaCha20Poly1305Key.equalsKey(Key o) |
boolean |
AesGcmSivKey.equalsKey(Key o) |
boolean |
AesGcmKey.equalsKey(Key o) |
boolean |
AesEaxKey.equalsKey(Key o) |
| Modifier and Type | Class and Description |
|---|---|
class |
KeySerializer<KeyT extends Key,SerializationT extends Serialization>
Serializes
Key objects into Serialization objects of a certain kind. |
static interface |
KeySerializer.KeySerializationFunction<KeyT extends Key,SerializationT extends Serialization>
A function which serializes a key.
|
class |
PrimitiveConstructor<KeyT extends Key,PrimitiveT>
Create Primitive objects from
Key objects of a certain kind. |
static interface |
PrimitiveConstructor.PrimitiveConstructionFunction<KeyT extends Key,PrimitiveT>
A function which creates a Primitive object.
|
| Modifier and Type | Class and Description |
|---|---|
class |
LegacyProtoKey
Implements a Key for legacy types where no actual parser is present.
|
| Modifier and Type | Method and Description |
|---|---|
static <KeyT extends Key,SerializationT extends Serialization> |
KeySerializer.create(KeySerializer.KeySerializationFunction<KeyT,SerializationT> function,
Class<KeyT> keyClass,
Class<SerializationT> serializationClass)
Creates a KeySerializer object.
|
static <KeyT extends Key,PrimitiveT> |
PrimitiveConstructor.create(PrimitiveConstructor.PrimitiveConstructionFunction<KeyT,PrimitiveT> function,
Class<KeyT> keyClass,
Class<PrimitiveT> primitiveClass)
Creates a PrimitiveConstructor object.
|
<KeyT extends Key,PrimitiveT> |
PrimitiveRegistry.getPrimitive(KeyT key,
Class<PrimitiveT> primitiveClass)
Creates a primitive from a given key.
|
<KeyT extends Key,PrimitiveT> |
MutablePrimitiveRegistry.getPrimitive(KeyT key,
Class<PrimitiveT> primitiveClass)
Creates a primitive from a given key.
|
<KeyT extends Key,SerializationT extends Serialization> |
SerializationRegistry.hasSerializerForKey(KeyT key,
Class<SerializationT> serializationClass)
Returns true if a parser for this
serializedKey has been registered. |
<KeyT extends Key,SerializationT extends Serialization> |
MutableSerializationRegistry.hasSerializerForKey(KeyT key,
Class<SerializationT> serializationClass)
Returns true if a parser for this
serializedKey has been registered. |
<KeyT extends Key,SerializationT extends Serialization> |
SerializationRegistry.Builder.registerKeySerializer(KeySerializer<KeyT,SerializationT> serializer)
Registers a key serializer for later use in
SerializationRegistry.serializeKey(KeyT, java.lang.Class<SerializationT>, com.google.crypto.tink.SecretKeyAccess). |
<KeyT extends Key,SerializationT extends Serialization> |
MutableSerializationRegistry.registerKeySerializer(KeySerializer<KeyT,SerializationT> serializer)
Registers a key serializer for later use in
MutableSerializationRegistry.serializeKey(KeyT, java.lang.Class<SerializationT>, com.google.crypto.tink.SecretKeyAccess). |
<KeyT extends Key,PrimitiveT> |
PrimitiveRegistry.Builder.registerPrimitiveConstructor(PrimitiveConstructor<KeyT,PrimitiveT> primitiveConstructor)
Registers a primitive constructor for later use in
PrimitiveRegistry.getPrimitive(KeyT, java.lang.Class<PrimitiveT>). |
<KeyT extends Key,PrimitiveT> |
MutablePrimitiveRegistry.registerPrimitiveConstructor(PrimitiveConstructor<KeyT,PrimitiveT> constructor)
Registers a key primitive constructor for later use in
MutablePrimitiveRegistry.getPrimitive(KeyT, java.lang.Class<PrimitiveT>). |
<KeyT extends Key,SerializationT extends Serialization> |
SerializationRegistry.serializeKey(KeyT key,
Class<SerializationT> serializationClass,
SecretKeyAccess access)
Serializes a given Key into a "SerializationT" object.
|
<KeyT extends Key,SerializationT extends Serialization> |
MutableSerializationRegistry.serializeKey(KeyT key,
Class<SerializationT> serializationClass,
SecretKeyAccess access)
Serializes a given Key into a "SerializationT" object.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Key |
KeyParser.parseKey(SerializationT serialization,
SecretKeyAccess access)
Parses a serialization into a key.
|
Key |
KeyParser.KeyParsingFunction.parseKey(SerializationT serialization,
SecretKeyAccess access) |
<SerializationT extends Serialization> |
SerializationRegistry.parseKey(SerializationT serializedKey,
SecretKeyAccess access)
Parses the given serialization into a Key.
|
<SerializationT extends Serialization> |
MutableSerializationRegistry.parseKey(SerializationT serializedKey,
SecretKeyAccess access)
Parses the given serialization into a Key.
|
Key |
MutableSerializationRegistry.parseKeyWithLegacyFallback(ProtoKeySerialization protoKeySerialization,
SecretKeyAccess access)
Returns a Key object from a protoKeySerialization, even if no parser has been registered.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
LegacyProtoKey.equalsKey(Key key)
Returns true if we are sure that the other key is the same.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AesCmacKey
Represents a key computing AES-CMAC.
|
class |
HmacKey
Represents a key computing HMAC.
|
class |
MacKey
Represents functions to compute and verify a cryptographic MAC.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
AesCmacKey.equalsKey(Key o) |
boolean |
HmacKey.equalsKey(Key o) |
| Modifier and Type | Class and Description |
|---|---|
class |
HkdfPrfKey
Represents a key computing HKDF PRF.
|
class |
PrfKey
Represents functions to compute a PRF.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
HkdfPrfKey.equalsKey(Key o) |
| Modifier and Type | Class and Description |
|---|---|
class |
EcdsaPrivateKey
Represents a key for computing ECDSA signatures.
|
class |
EcdsaPublicKey
EcdsaPublicKey represents the public portion of ECDSA signature primitive.
|
class |
SignaturePrivateKey
A
SignaturePrivateKey represents a digital signature primitive, which consists of a sign
and a verify function. |
class |
SignaturePublicKey
A SignaturePublicKey represents the verification portion of a digital signature primitive.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
EcdsaPublicKey.equalsKey(Key o) |
boolean |
EcdsaPrivateKey.equalsKey(Key o) |