public interface HkdfMacFactory
Mac hashers| Modifier and Type | Interface and Description |
|---|---|
static class |
HkdfMacFactory.Default
Default implementation
|
| Modifier and Type | Method and Description |
|---|---|
Mac |
createInstance(SecretKey key)
Creates a new instance of Hmac with given key, i.e.
|
SecretKey |
createSecretKey(byte[] rawKeyMaterial)
Creates a secret key from a byte raw key material to be used with
createInstance(SecretKey) |
int |
getMacLengthBytes()
Get the length of the mac output in bytes
|
Mac createInstance(SecretKey key)
Mac.init(Key).key - the key used, must not be nullint getMacLengthBytes()
SecretKey createSecretKey(byte[] rawKeyMaterial)
createInstance(SecretKey)rawKeyMaterial - the raw keyCopyright © 2017–2019. All rights reserved.