@Immutable
public interface AeadFactory
| Modifier and Type | Method and Description |
|---|---|
Aead |
createAead(byte[] symmetricKey)
Creates a new
Aead-primitive that uses the key material given in symmetricKey,
which must be of length getKeySizeInBytes(). |
int |
getKeySizeInBytes()
Returns the size of the AEAD key in bytes.
|
int getKeySizeInBytes()
Aead createAead(byte[] symmetricKey) throws GeneralSecurityException
Aead-primitive that uses the key material given in symmetricKey,
which must be of length getKeySizeInBytes().Aead-primitive.GeneralSecurityException