Class PrfBasedKeyDeriver
- java.lang.Object
-
- com.google.crypto.tink.keyderivation.internal.PrfBasedKeyDeriver
-
- All Implemented Interfaces:
KeyDeriver
@Immutable public final class PrfBasedKeyDeriver extends java.lang.Object implements KeyDeriver
Implements the KeyDeriver interface by first applying a Prf and then using the global registry to create the correct key.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KeyDerivercreate(PrfBasedKeyDerivationKey key)KeyderiveKey(byte[] salt)
-
-
-
Method Detail
-
create
public static KeyDeriver create(PrfBasedKeyDerivationKey key) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
deriveKey
public Key deriveKey(byte[] salt) throws java.security.GeneralSecurityException
- Specified by:
deriveKeyin interfaceKeyDeriver- Throws:
java.security.GeneralSecurityException
-
-