| Package | Description |
|---|---|
| com.google.crypto.tink.mac | |
| com.google.crypto.tink.mac.internal | |
| com.google.crypto.tink.subtle |
| Modifier and Type | Method and Description |
|---|---|
static Mac |
MacFactory.getPrimitive(KeysetHandle keysetHandle)
Deprecated.
Use
keysetHandle.getPrimitive(RegistryConfiguration.get(), Mac.class) after
registering the MacWrapper instead. |
Mac |
MacWrapper.wrap(PrimitiveSet<Mac> primitives) |
| Modifier and Type | Method and Description |
|---|---|
Class<Mac> |
MacWrapper.getInputPrimitiveClass() |
Class<Mac> |
MacWrapper.getPrimitiveClass() |
| Modifier and Type | Method and Description |
|---|---|
Mac |
MacWrapper.wrap(PrimitiveSet<Mac> primitives) |
| Modifier and Type | Class and Description |
|---|---|
class |
LegacyFullMac
Takes an arbitrary raw Mac and makes it a full primitive.
|
| Modifier and Type | Method and Description |
|---|---|
static Mac |
LegacyFullMac.create(LegacyProtoKey key)
This method covers the cases where users created their own mac/key classes.
|
| Modifier and Type | Class and Description |
|---|---|
class |
PrfMac
Class that provides the functionality expressed by the Mac primitive using a Prf implementation.
|
| Modifier and Type | Method and Description |
|---|---|
static Mac |
PrfMac.create(AesCmacKey key)
Creates an object implementing the
Mac interface using an AesCmac underneath. |
static Mac |
PrfMac.create(HmacKey key)
Creates an object implementing the
Mac interface using an Hmac underneath. |
| Constructor and Description |
|---|
EncryptThenAuthenticate(IndCpaCipher cipher,
Mac mac,
int macLength) |