| Package | Description |
|---|---|
| com.google.crypto.tink.mac | |
| com.google.crypto.tink.util |
| Modifier and Type | Method and Description |
|---|---|
SecretBytes |
AesCmacKey.getAesKey()
Returns the underlying AES key.
|
| Modifier and Type | Method and Description |
|---|---|
static AesCmacKey |
AesCmacKey.create(AesCmacParameters parameters,
SecretBytes aesKey)
Creates a new AES-CMAC key with an empty prefix.
|
static AesCmacKey |
AesCmacKey.createForKeyset(AesCmacParameters parameters,
SecretBytes aesKeyBytes,
Integer idRequirement)
Creates a new AES-CMAC key for use in a keyset.
|
| Modifier and Type | Method and Description |
|---|---|
static SecretBytes |
SecretBytes.copyFrom(byte[] value,
SecretKeyAccess access)
Creates a new SecretBytes with the contents given in
value. |
static SecretBytes |
SecretBytes.randomBytes(int length)
Creates a new SecretBytes with bytes chosen uniformly at random of length
length. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SecretBytes.equalsSecretBytes(SecretBytes other)
Returns true if the
other byte array has the same bytes, in time depending only on the
length of both SecretBytes objects. |