| Package | Description |
|---|---|
| com.google.crypto.tink | |
| com.google.crypto.tink.aead | |
| com.google.crypto.tink.integration.android | |
| com.google.crypto.tink.subtle |
| Modifier and Type | Method and Description |
|---|---|
Aead |
KmsClient.getAead(String keyUri)
Gets an
Aead backed by keyUri. |
| Modifier and Type | Method and Description |
|---|---|
static KeysetHandle |
KeysetHandle.read(KeysetReader reader,
Aead masterKey)
Tries to create a
KeysetHandle from an encrypted keyset obtained via reader. |
void |
KeysetHandle.write(KeysetWriter keysetWriter,
Aead masterKey)
Serializes, encrypts with
masterKey and writes the keyset to outputStream. |
| Modifier and Type | Class and Description |
|---|---|
class |
KmsEnvelopeAead
This primitive implements
envelope encryption.
|
| Modifier and Type | Method and Description |
|---|---|
static Aead |
AeadFactory.getPrimitive(KeysetHandle keysetHandle)
Deprecated.
Use
keysetHandle.GetPrimitive(Aead.class) after registering the AeadWrapper instead. |
static Aead |
AeadFactory.getPrimitive(KeysetHandle keysetHandle,
KeyManager<Aead> keyManager)
Deprecated.
Use
keysetHandle.GetPrimitive(keyManager, Aead.class) after registering the
AeadWrapper instead. |
Aead |
AeadWrapper.wrap(PrimitiveSet<Aead> pset) |
| Modifier and Type | Method and Description |
|---|---|
Class<Aead> |
AeadWrapper.getPrimitiveClass() |
| Modifier and Type | Method and Description |
|---|---|
static Aead |
AeadFactory.getPrimitive(KeysetHandle keysetHandle,
KeyManager<Aead> keyManager)
Deprecated.
Use
keysetHandle.GetPrimitive(keyManager, Aead.class) after registering the
AeadWrapper instead. |
Aead |
AeadWrapper.wrap(PrimitiveSet<Aead> pset) |
| Constructor and Description |
|---|
KmsEnvelopeAead(com.google.crypto.tink.proto.KeyTemplate dekTemplate,
Aead remote) |
| Modifier and Type | Class and Description |
|---|---|
class |
AndroidKeystoreAesGcm
An
Aead that does AES-GCM encryption with a key stored in Android Keystore. |
| Modifier and Type | Method and Description |
|---|---|
Aead |
AndroidKeystoreKmsClient.getAead(String uri)
Returns an
Aead backed by a key in Android Keystore specified by uri. |
static Aead |
AndroidKeystoreKmsClient.getOrGenerateNewAeadKey(String keyUri)
Generates a new key in Android Keystore, if it doesn't exist.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AesEaxJce
This class implements the EAX mode using AES.
|
class |
AesGcmJce
This primitive implements AesGcm using JCE.
|
class |
ChaCha20Poly1305
ChaCha20Poly1305 AEAD construction, as described in RFC 8439, section 2.8.
|
class |
EncryptThenAuthenticate
This primitive performs an encrypt-then-Mac operation on plaintext and additional authenticated
data (aad).
|
class |
XChaCha20Poly1305
XChaCha20Poly1305 AEAD construction, as described in
https://tools.ietf.org/html/draft-arciszewski-xchacha-01.
|
| Modifier and Type | Method and Description |
|---|---|
Aead |
EciesAeadHkdfDemHelper.getAead(byte[] symmetricKeyValue)
Creates a new
Aead-primitive that uses the key material given in 'symmetric_key', which
must be of length dem_key_size_in_bytes(). |
static Aead |
EncryptThenAuthenticate.newAesCtrHmac(byte[] aesCtrKey,
int ivSize,
String hmacAlgorithm,
byte[] hmacKey,
int tagSize)
Returns a new EncryptThenAuthenticate instance using AES-CTR and HMAC.
|