| 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 |
TinkProtoKeysetFormat.parseEncryptedKeyset(byte[] serializedEncryptedKeyset,
Aead keysetEncryptionAead,
byte[] associatedData) |
static KeysetHandle |
TinkJsonProtoKeysetFormat.parseEncryptedKeyset(String serializedEncryptedKeyset,
Aead keysetEncryptionAead,
byte[] associatedData) |
static KeysetHandle |
KeysetHandle.read(KeysetReader reader,
Aead masterKey)
Tries to create a
KeysetHandle from an encrypted keyset obtained via reader. |
static KeysetHandle |
KeysetHandle.readWithAssociatedData(KeysetReader reader,
Aead masterKey,
byte[] associatedData)
Tries to create a
KeysetHandle from an encrypted keyset obtained via reader,
using the provided associated data. |
static byte[] |
TinkProtoKeysetFormat.serializeEncryptedKeyset(KeysetHandle keysetHandle,
Aead keysetEncryptionAead,
byte[] associatedData) |
static String |
TinkJsonProtoKeysetFormat.serializeEncryptedKeyset(KeysetHandle keysetHandle,
Aead keysetEncryptionAead,
byte[] associatedData) |
void |
KeysetHandle.write(KeysetWriter keysetWriter,
Aead masterKey)
Serializes, encrypts with
masterKey and writes the keyset to outputStream. |
void |
KeysetHandle.writeWithAssociatedData(KeysetWriter keysetWriter,
Aead masterKey,
byte[] associatedData)
Serializes, encrypts with
masterKey and writes the keyset to outputStream using
the provided associated data. |
| 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. |
Aead |
AeadWrapper.wrap(PrimitiveSet<Aead> pset) |
| Modifier and Type | Method and Description |
|---|---|
Class<Aead> |
AeadWrapper.getInputPrimitiveClass() |
Class<Aead> |
AeadWrapper.getPrimitiveClass() |
| Modifier and Type | Method and Description |
|---|---|
Aead |
AeadWrapper.wrap(PrimitiveSet<Aead> pset) |
| Constructor and Description |
|---|
KmsEnvelopeAead(KeyTemplate dekTemplate,
Aead remote) |
| Modifier and Type | Class and Description |
|---|---|
class |
AesGcmSiv
This primitive implements AES-GCM-SIV (as defined in RFC 8452) using JCE.
|
| Modifier and Type | Method and Description |
|---|---|
Aead |
AesGcmFactory.createAead(byte[] symmetricKey) |
Aead |
AeadFactory.createAead(byte[] symmetricKey)
Creates a new
Aead-primitive that uses the key material given in symmetricKey,
which must be of length AeadFactory.getKeySizeInBytes(). |
| Constructor and Description |
|---|
AeadOrDaead(Aead aead) |
| 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 associated data (ad).
|
class |
XChaCha20Poly1305
XChaCha20Poly1305 AEAD construction, as described in
https://tools.ietf.org/html/draft-arciszewski-xchacha-01.
|
| Modifier and Type | Method and Description |
|---|---|
static Aead |
EncryptThenAuthenticate.newAesCtrHmac(byte[] aesCtrKey,
int ivSize,
String hmacAlgorithm,
byte[] hmacKey,
int tagSize)
Returns a new EncryptThenAuthenticate instance using AES-CTR and HMAC.
|