Uses of Class
com.google.crypto.tink.Key
-
-
Uses of Key in com.google.crypto.tink
Methods in com.google.crypto.tink that return Key Modifier and Type Method Description KeyKeysetHandle.Entry. getKey()May return an internal classLegacyProtoKeyin case there is no implementation of the corresponding key class yet.KeyPrivateKey. getPublicKey()Methods in com.google.crypto.tink with parameters of type Key Modifier and Type Method Description abstract booleanKey. equalsKey(Key other)Returns true if the key is guaranteed to be equal toother.static KeysetHandle.Builder.EntryKeysetHandle. importKey(Key key)Creates a new entry with a fixed key. -
Uses of Key in com.google.crypto.tink.aead
Subclasses of Key in com.google.crypto.tink.aead Modifier and Type Class Description classAeadKeyRepresents functions to encrypt and decrypt data using AEAD.classAesCtrHmacAeadKeyRepresents an AES-CTR-HMAC key used for computing AEAD.classAesEaxKeyRepresents an AES-EAX key used for computing AEAD.classAesGcmKeyRepresents an AES-GCM key used for computing AEAD.classAesGcmSivKeyRepresents an AES-GCM-SIV key used for computing AEAD.classChaCha20Poly1305KeyRepresents the Aead ChaCha20-Poly1305 specified in RFC 8439.classLegacyKmsAeadKeyDescribes an Aead backed by a KMS.classLegacyKmsEnvelopeAeadKeyDescribes an EnvelopeAead backed by a KMS.classXAesGcmKeyRepresents an X-AES-GCM key used for computing AEAD.classXChaCha20Poly1305KeyRepresents the Aead XChaCha20-Poly1305 proposed in the RFC draft at https://datatracker.ietf.org/doc/html/draft-arciszewski-xchacha-03.Methods in com.google.crypto.tink.aead with parameters of type Key Modifier and Type Method Description booleanAesCtrHmacAeadKey. equalsKey(Key o)booleanAesEaxKey. equalsKey(Key o)booleanAesGcmKey. equalsKey(Key o)booleanAesGcmSivKey. equalsKey(Key o)booleanChaCha20Poly1305Key. equalsKey(Key o)booleanLegacyKmsAeadKey. equalsKey(Key o)booleanLegacyKmsEnvelopeAeadKey. equalsKey(Key o)booleanXAesGcmKey. equalsKey(Key o)booleanXChaCha20Poly1305Key. equalsKey(Key o) -
Uses of Key in com.google.crypto.tink.daead
Subclasses of Key in com.google.crypto.tink.daead Modifier and Type Class Description classAesSivKeyRepresents an AES--SIV key used for computing deterministic AEAD, as described in https://www.rfc-editor.org/rfc/rfc5297.classDeterministicAeadKeyRepresents functions to encrypt and decrypt data deterministically using AEAD.Methods in com.google.crypto.tink.daead with parameters of type Key Modifier and Type Method Description booleanAesSivKey. equalsKey(Key o) -
Uses of Key in com.google.crypto.tink.hybrid
Subclasses of Key in com.google.crypto.tink.hybrid Modifier and Type Class Description classEciesPrivateKeyRepresentation of the decryption function for an ECIES hybrid encryption primitive.classEciesPublicKeyRepresents the encryption function for an ECIES hybrid encryption primitive.classHpkePrivateKeyRepresentation of the decryption function for an HPKE hybrid encryption primitive.classHpkePublicKeyRepresentation of the encryption function for an HPKE hybrid encryption primitive.classHybridPrivateKeyRepresentation of the decryption function for a hybrid encryption primitive.classHybridPublicKeyRepresentation of the encryption function for a hybrid encryption primitive.Methods in com.google.crypto.tink.hybrid with parameters of type Key Modifier and Type Method Description booleanEciesPrivateKey. equalsKey(Key o)booleanEciesPublicKey. equalsKey(Key o)booleanHpkePrivateKey. equalsKey(Key o)booleanHpkePublicKey. equalsKey(Key o) -
Uses of Key in com.google.crypto.tink.internal
Classes in com.google.crypto.tink.internal with type parameters of type Key Modifier and Type Class Description classKeySerializer<KeyT extends Key,SerializationT extends Serialization>SerializesKeyobjects intoSerializationobjects of a certain kind.static interfaceKeySerializer.KeySerializationFunction<KeyT extends Key,SerializationT extends Serialization>A function which serializes a key.classPrimitiveConstructor<KeyT extends Key,PrimitiveT>Create Primitive objects fromKeyobjects of a certain kind.static interfacePrimitiveConstructor.PrimitiveConstructionFunction<KeyT extends Key,PrimitiveT>A function which creates a Primitive object.Subclasses of Key in com.google.crypto.tink.internal Modifier and Type Class Description classLegacyProtoKeyImplements a Key for legacy types where no actual parser is present.Methods in com.google.crypto.tink.internal with type parameters of type Key Modifier and Type Method Description static <KeyT extends Key,SerializationT extends Serialization>
KeySerializer<KeyT,SerializationT>KeySerializer. create(KeySerializer.KeySerializationFunction<KeyT,SerializationT> function, java.lang.Class<KeyT> keyClass, java.lang.Class<SerializationT> serializationClass)Creates a KeySerializer object.static <KeyT extends Key,PrimitiveT>
PrimitiveConstructor<KeyT,PrimitiveT>PrimitiveConstructor. create(PrimitiveConstructor.PrimitiveConstructionFunction<KeyT,PrimitiveT> function, java.lang.Class<KeyT> keyClass, java.lang.Class<PrimitiveT> primitiveClass)Creates a PrimitiveConstructor object.<KeyT extends Key,PrimitiveT>
PrimitiveTMutablePrimitiveRegistry. getPrimitive(KeyT key, java.lang.Class<PrimitiveT> primitiveClass)Creates a primitive from a given key.<KeyT extends Key,PrimitiveT>
PrimitiveTPrimitiveRegistry. getPrimitive(KeyT key, java.lang.Class<PrimitiveT> primitiveClass)Creates a primitive from a given key.<KeyT extends Key,SerializationT extends Serialization>
booleanMutableSerializationRegistry. hasSerializerForKey(KeyT key, java.lang.Class<SerializationT> serializationClass)Returns true if a parser for thisserializedKeyhas been registered.<KeyT extends Key,SerializationT extends Serialization>
booleanSerializationRegistry. hasSerializerForKey(KeyT key, java.lang.Class<SerializationT> serializationClass)Returns true if a parser for thisserializedKeyhas been registered.<KeyT extends Key,SerializationT extends Serialization>
voidMutableSerializationRegistry. registerKeySerializer(KeySerializer<KeyT,SerializationT> serializer)Registers a key serializer for later use inMutableSerializationRegistry.serializeKey(KeyT, java.lang.Class<SerializationT>, com.google.crypto.tink.SecretKeyAccess).<KeyT extends Key,SerializationT extends Serialization>
SerializationRegistry.BuilderSerializationRegistry.Builder. registerKeySerializer(KeySerializer<KeyT,SerializationT> serializer)Registers a key serializer for later use inSerializationRegistry.serializeKey(KeyT, java.lang.Class<SerializationT>, com.google.crypto.tink.SecretKeyAccess).<KeyT extends Key,PrimitiveT>
voidMutablePrimitiveRegistry. registerPrimitiveConstructor(PrimitiveConstructor<KeyT,PrimitiveT> constructor)Registers a key primitive constructor for later use inMutablePrimitiveRegistry.getPrimitive(KeyT, java.lang.Class<PrimitiveT>).<KeyT extends Key,PrimitiveT>
PrimitiveRegistry.BuilderPrimitiveRegistry.Builder. registerPrimitiveConstructor(PrimitiveConstructor<KeyT,PrimitiveT> primitiveConstructor)Registers a primitive constructor for later use inPrimitiveRegistry.getPrimitive(KeyT, java.lang.Class<PrimitiveT>).<KeyT extends Key,SerializationT extends Serialization>
SerializationTMutableSerializationRegistry. serializeKey(KeyT key, java.lang.Class<SerializationT> serializationClass, SecretKeyAccess access)Serializes a given Key into a "SerializationT" object.<KeyT extends Key,SerializationT extends Serialization>
SerializationTSerializationRegistry. serializeKey(KeyT key, java.lang.Class<SerializationT> serializationClass, SecretKeyAccess access)Serializes a given Key into a "SerializationT" object.Methods in com.google.crypto.tink.internal that return Key Modifier and Type Method Description KeyKeyCreator. createKey(ParametersT parameters, java.lang.Integer idRequirement)KeyMutableKeyCreationRegistry. createKey(Parameters parameters, java.lang.Integer idRequirement)Creates aKeyfrom a givenParametersobject.KeyMutableKeyDerivationRegistry. createKeyFromRandomness(Parameters parameters, java.io.InputStream inputStream, java.lang.Integer idRequirement, SecretKeyAccess access)Creates aKeyfrom a givenParametersobject and additional data.KeyMutableKeyDerivationRegistry.InsecureKeyCreator. createKeyFromRandomness(ParametersT parameters, java.io.InputStream inputStream, java.lang.Integer idRequirement, SecretKeyAccess access)KeyKeysetHandleInterface.Entry. getKey()KeyKeyParser.KeyParsingFunction. parseKey(SerializationT serialization, SecretKeyAccess access)abstract KeyKeyParser. parseKey(SerializationT serialization, SecretKeyAccess access)Parses a serialization into a key.<SerializationT extends Serialization>
KeyMutableSerializationRegistry. parseKey(SerializationT serializedKey, SecretKeyAccess access)Parses the given serialization into a Key.<SerializationT extends Serialization>
KeySerializationRegistry. parseKey(SerializationT serializedKey, SecretKeyAccess access)Parses the given serialization into a Key.KeyMutableSerializationRegistry. parseKeyWithLegacyFallback(ProtoKeySerialization protoKeySerialization, SecretKeyAccess access)Returns a Key object from a protoKeySerialization, even if no parser has been registered.Methods in com.google.crypto.tink.internal with parameters of type Key Modifier and Type Method Description booleanLegacyProtoKey. equalsKey(Key key)Returns true if we are sure that the other key is the same. -
Uses of Key in com.google.crypto.tink.jwt
Subclasses of Key in com.google.crypto.tink.jwt Modifier and Type Class Description classJwtEcdsaPrivateKeyRepresents a key for computing JWT ECDSA signatures (ES256, ES384, ES512).classJwtEcdsaPublicKeyJwtEcdsaPublicKey represents the public portion of JWT ECDSA keys.classJwtHmacKeyRepresents a JWT HMAC key to create and verify JWT using HMAC.classJwtMacKeyRepresents a key to compute JWT using symmetric cryptography (i.e., using theJwtMacinterface).classJwtRsaSsaPkcs1PrivateKeyRepresents a private key for RSA SSA PKCS1 signatures (RS256, RS384, RS512).classJwtRsaSsaPkcs1PublicKeyRepresents a public key for the JWT RSA SSA PKCS1 signature primitive.classJwtRsaSsaPssPrivateKeyRepresents a private key for RSA SSA PSS signatures (PS256, PS384, PS512).classJwtRsaSsaPssPublicKeyRepresents a public key for the JWT RSA SSA PSS signature primitive.classJwtSignaturePrivateKeyRepresents a key to compute JWT using asymmetric cryptography (i.e., using theJwtPublicKeySigninterface).classJwtSignaturePublicKeyRepresents a key to verify JWT using asymmetric cryptography (i.e., using theJwtPublicKeyVerifyinterface).Methods in com.google.crypto.tink.jwt with parameters of type Key Modifier and Type Method Description booleanJwtEcdsaPrivateKey. equalsKey(Key o)booleanJwtEcdsaPublicKey. equalsKey(Key o)booleanJwtHmacKey. equalsKey(Key o)booleanJwtRsaSsaPkcs1PrivateKey. equalsKey(Key o)booleanJwtRsaSsaPkcs1PublicKey. equalsKey(Key o)booleanJwtRsaSsaPssPrivateKey. equalsKey(Key o)booleanJwtRsaSsaPssPublicKey. equalsKey(Key o) -
Uses of Key in com.google.crypto.tink.keyderivation
Subclasses of Key in com.google.crypto.tink.keyderivation Modifier and Type Class Description classKeyDerivationKeyRepresents a function to derive a key.classPrfBasedKeyDerivationKeyRepresents a Derivation key which is based on a PRF.Methods in com.google.crypto.tink.keyderivation with parameters of type Key Modifier and Type Method Description booleanPrfBasedKeyDerivationKey. equalsKey(Key other) -
Uses of Key in com.google.crypto.tink.keyderivation.internal
Methods in com.google.crypto.tink.keyderivation.internal that return Key Modifier and Type Method Description KeyKeyDeriver. deriveKey(byte[] salt)KeyPrfBasedKeyDeriver. deriveKey(byte[] salt) -
Uses of Key in com.google.crypto.tink.mac
Subclasses of Key in com.google.crypto.tink.mac Modifier and Type Class Description classAesCmacKeyRepresents a key computing AES-CMAC.classHmacKeyRepresents a key computing HMAC.classMacKeyRepresents functions to compute and verify a cryptographic MAC.Methods in com.google.crypto.tink.mac with parameters of type Key Modifier and Type Method Description booleanAesCmacKey. equalsKey(Key o)booleanHmacKey. equalsKey(Key o) -
Uses of Key in com.google.crypto.tink.prf
Subclasses of Key in com.google.crypto.tink.prf Modifier and Type Class Description classAesCmacPrfKeyRepresents a key computing AES CMAC PRF.classHkdfPrfKeyRepresents a key computing HKDF PRF.classHmacPrfKeyRepresents a key computing HMAC PRF.classPrfKeyRepresents functions to compute a PRF.Methods in com.google.crypto.tink.prf with parameters of type Key Modifier and Type Method Description booleanAesCmacPrfKey. equalsKey(Key o)booleanHkdfPrfKey. equalsKey(Key o)booleanHmacPrfKey. equalsKey(Key o) -
Uses of Key in com.google.crypto.tink.signature
Subclasses of Key in com.google.crypto.tink.signature Modifier and Type Class Description classEcdsaPrivateKeyRepresents a key for computing ECDSA signatures.classEcdsaPublicKeyEcdsaPublicKey represents the public portion of ECDSA signature primitive.classEd25519PrivateKeyThe key for computing Ed25519 signatures.classEd25519PublicKeyEd25519PublicKey represents the public portion of the Ed25519 signature primitive.classRsaSsaPkcs1PrivateKeyRepresents a private key for RSA SSA PKCS1 signatures.classRsaSsaPkcs1PublicKeyRepresents a public key for the RSA SSA PKCS1 signature primitive.classRsaSsaPssPrivateKeyRepresents a private key for RSA SSA PSS signatures.classRsaSsaPssPublicKeyRepresents a public key for the RSA SSA PSS signature primitive.classSignaturePrivateKeyASignaturePrivateKeyrepresents a digital signature primitive, which consists of a sign and a verify function.classSignaturePublicKeyA SignaturePublicKey represents the verification portion of a digital signature primitive.Methods in com.google.crypto.tink.signature with parameters of type Key Modifier and Type Method Description booleanEcdsaPrivateKey. equalsKey(Key o)booleanEcdsaPublicKey. equalsKey(Key o)booleanEd25519PrivateKey. equalsKey(Key o)booleanEd25519PublicKey. equalsKey(Key o)booleanRsaSsaPkcs1PrivateKey. equalsKey(Key o)booleanRsaSsaPkcs1PublicKey. equalsKey(Key o)booleanRsaSsaPssPrivateKey. equalsKey(Key o)booleanRsaSsaPssPublicKey. equalsKey(Key o) -
Uses of Key in com.google.crypto.tink.streamingaead
Subclasses of Key in com.google.crypto.tink.streamingaead Modifier and Type Class Description classAesCtrHmacStreamingKeyRepresents a StreamingAead functions.classAesGcmHkdfStreamingKeyRepresents a StreamingAead functions.classStreamingAeadKeyRepresents functions to encrypt and decrypt data using a StreamingAead.Methods in com.google.crypto.tink.streamingaead with parameters of type Key Modifier and Type Method Description booleanAesCtrHmacStreamingKey. equalsKey(Key o)booleanAesGcmHkdfStreamingKey. equalsKey(Key o)
-