| Modifier and Type | Method and Description |
|---|---|
static KeyTemplate |
KeyTemplate.create(String typeUrl,
byte[] value,
KeyTemplate.OutputPrefixType outputPrefixType) |
| Modifier and Type | Method and Description |
|---|---|
KeysetManager |
KeysetManager.add(KeyTemplate keyTemplate)
Generates and adds a fresh key generated using
keyTemplate. |
static KeysetHandle |
KeysetHandle.generateNew(KeyTemplate keyTemplate)
Generates a new
KeysetHandle that contains a single fresh key generated according to
keyTemplate. |
static com.google.crypto.tink.proto.KeyData |
Registry.newKeyData(KeyTemplate keyTemplate)
Convenience method for generating a new
KeyData for the specified template. |
| Modifier and Type | Method and Description |
|---|---|
static KeyTemplate |
AesCtrHmacAeadKeyManager.aes128CtrHmacSha256Template() |
static KeyTemplate |
AesEaxKeyManager.aes128EaxTemplate() |
static KeyTemplate |
AesGcmSivKeyManager.aes128GcmSivTemplate()
Creates and returns a
KeyTemplate that generates new instances of AES-GCM-SIV with the
following parameters:
Key size: 16 bytes
Prefix type: KeyTemplate.OutputPrefixType#TINK
|
static KeyTemplate |
AesGcmKeyManager.aes128GcmTemplate() |
static KeyTemplate |
AesCtrHmacAeadKeyManager.aes256CtrHmacSha256Template() |
static KeyTemplate |
AesEaxKeyManager.aes256EaxTemplate() |
static KeyTemplate |
AesGcmSivKeyManager.aes256GcmSivTemplate()
Creates and returns a
KeyTemplate that generates new instances of AES-GCM-SIV with the
following parameters:
Key size: 32 bytes
Prefix type: KeyTemplate.OutputPrefixType#TINK
|
static KeyTemplate |
AesGcmKeyManager.aes256GcmTemplate() |
static KeyTemplate |
ChaCha20Poly1305KeyManager.chaCha20Poly1305Template() |
static KeyTemplate |
AesEaxKeyManager.rawAes128EaxTemplate() |
static KeyTemplate |
AesGcmSivKeyManager.rawAes128GcmSivTemplate()
Creates and returns a
KeyTemplate that generates new instances of AES-GCM with the
following parameters:
Key size: 16 bytes
Prefix type: KeyTemplate.OutputPrefixType#RAW (no prefix)
|
static KeyTemplate |
AesGcmKeyManager.rawAes128GcmTemplate() |
static KeyTemplate |
AesEaxKeyManager.rawAes256EaxTemplate() |
static KeyTemplate |
AesGcmSivKeyManager.rawAes256GcmSivTemplate()
Creates and returns a
KeyTemplate that generates new instances of AES-GCM-SIV with the
following parameters:
Key size: 32 bytes
Prefix type: KeyTemplate.OutputPrefixType#RAW (no prefix)
|
static KeyTemplate |
AesGcmKeyManager.rawAes256GcmTemplate() |
static KeyTemplate |
ChaCha20Poly1305KeyManager.rawChaCha20Poly1305Template() |
static KeyTemplate |
XChaCha20Poly1305KeyManager.rawXChaCha20Poly1305Template() |
static KeyTemplate |
XChaCha20Poly1305KeyManager.xChaCha20Poly1305Template() |
| Modifier and Type | Method and Description |
|---|---|
static KeyTemplate |
AesSivKeyManager.aes256SivTemplate() |
static KeyTemplate |
AesSivKeyManager.rawAes256SivTemplate() |
| Modifier and Type | Method and Description |
|---|---|
static KeyTemplate |
EciesAeadHkdfPrivateKeyManager.eciesP256HkdfHmacSha256Aes128CtrHmacSha256Template() |
static KeyTemplate |
EciesAeadHkdfPrivateKeyManager.eciesP256HkdfHmacSha256Aes128GcmTemplate() |
static KeyTemplate |
EciesAeadHkdfPrivateKeyManager.rawEciesP256HkdfHmacSha256Aes128CtrHmacSha256CompressedTemplate() |
static KeyTemplate |
EciesAeadHkdfPrivateKeyManager.rawEciesP256HkdfHmacSha256Aes128GcmCompressedTemplate() |
| Modifier and Type | Method and Description |
|---|---|
AndroidKeysetManager |
AndroidKeysetManager.add(KeyTemplate keyTemplate)
Generates and adds a fresh key generated using
keyTemplate. |
AndroidKeysetManager.Builder |
AndroidKeysetManager.Builder.withKeyTemplate(KeyTemplate val)
If the keyset is not found or valid, generates a new one using
val. |
| Modifier and Type | Method and Description |
|---|---|
static KeyTemplate |
AesCmacKeyManager.aes256CmacTemplate() |
static KeyTemplate |
HmacKeyManager.hmacSha256HalfDigestTemplate() |
static KeyTemplate |
HmacKeyManager.hmacSha256Template() |
static KeyTemplate |
HmacKeyManager.hmacSha512HalfDigestTemplate() |
static KeyTemplate |
HmacKeyManager.hmacSha512Template() |
static KeyTemplate |
AesCmacKeyManager.rawAes256CmacTemplate() |
| Modifier and Type | Method and Description |
|---|---|
static KeyTemplate |
AesCmacPrfKeyManager.aes256CmacTemplate()
Returns a
KeyTemplate that generates new instances of AES-CMAC keys with the following
parameters:
Key size: 32 bytes
Prefix type: KeyTemplate.OutputPrefixType#RAW
. |
static KeyTemplate |
HkdfPrfKeyManager.hkdfSha256Template()
Generates a
KeyTemplate for HKDF-PRF keys with the following parameters. |
static KeyTemplate |
HmacPrfKeyManager.hmacSha256Template()
Returns a
KeyTemplate that generates new instances of HMAC keys with the following
parameters:
Key size: 32 bytes
Hash function: SHA256
Prefix type: KeyTemplate.OutputPrefixType#RAW
|
static KeyTemplate |
HmacPrfKeyManager.hmacSha512Template()
Returns a
KeyTemplate that generates new instances of HMAC keys with the following
parameters:
Key size: 64 bytes
Hash function: SHA512
Prefix type: KeyTemplate.OutputPrefixType#RAW
|
| Modifier and Type | Method and Description |
|---|---|
static KeyTemplate |
EcdsaSignKeyManager.createKeyTemplate(com.google.crypto.tink.proto.HashType hashType,
com.google.crypto.tink.proto.EllipticCurveType curve,
com.google.crypto.tink.proto.EcdsaSignatureEncoding encoding,
KeyTemplate.OutputPrefixType prefixType) |
static KeyTemplate |
EcdsaSignKeyManager.ecdsaP256Template() |
static KeyTemplate |
Ed25519PrivateKeyManager.ed25519Template() |
static KeyTemplate |
EcdsaSignKeyManager.rawEcdsaP256Template() |
static KeyTemplate |
Ed25519PrivateKeyManager.rawEd25519Template() |
static KeyTemplate |
RsaSsaPssSignKeyManager.rawRsa3072PssSha256F4Template() |
static KeyTemplate |
RsaSsaPkcs1SignKeyManager.rawRsa3072SsaPkcs1Sha256F4Template() |
static KeyTemplate |
RsaSsaPssSignKeyManager.rawRsa4096PssSha512F4Template() |
static KeyTemplate |
RsaSsaPkcs1SignKeyManager.rawRsa4096SsaPkcs1Sha512F4Template() |
static KeyTemplate |
RsaSsaPssSignKeyManager.rsa3072PssSha256F4Template() |
static KeyTemplate |
RsaSsaPkcs1SignKeyManager.rsa3072SsaPkcs1Sha256F4Template() |
static KeyTemplate |
RsaSsaPssSignKeyManager.rsa4096PssSha512F4Template() |
static KeyTemplate |
RsaSsaPkcs1SignKeyManager.rsa4096SsaPkcs1Sha512F4Template() |
| Modifier and Type | Method and Description |
|---|---|
static KeyTemplate |
AesCtrHmacStreamingKeyManager.aes128CtrHmacSha2561MBTemplate() |
static KeyTemplate |
AesCtrHmacStreamingKeyManager.aes128CtrHmacSha2564KBTemplate() |
static KeyTemplate |
AesGcmHkdfStreamingKeyManager.aes128GcmHkdf1MBTemplate() |
static KeyTemplate |
AesGcmHkdfStreamingKeyManager.aes128GcmHkdf4KBTemplate() |
static KeyTemplate |
AesCtrHmacStreamingKeyManager.aes256CtrHmacSha2561MBTemplate() |
static KeyTemplate |
AesCtrHmacStreamingKeyManager.aes256CtrHmacSha2564KBTemplate() |
static KeyTemplate |
AesGcmHkdfStreamingKeyManager.aes256GcmHkdf1MBTemplate() |
static KeyTemplate |
AesGcmHkdfStreamingKeyManager.aes256GcmHkdf4KBTemplate() |