-
public interface KeyDerivation.Lazy
-
-
Method Summary
Modifier and Type Method Description abstract KeycryptoKdfKeygen()Auto generates a master key and returnsit in string format.The reason why this does not return a string via the normal 'masterKey.getBytes()'is because the resulting string is mangled. abstract KeycryptoKdfDeriveFromKey(int lengthOfSubKey, long subKeyId, String context, Key masterKey)Derive a subkey from a master key. -
-
Method Detail
-
cryptoKdfKeygen
abstract Key cryptoKdfKeygen()
Auto generates a master key and returnsit in string format.The reason why this does not return a string via the normal 'masterKey.getBytes()'is because the resulting string is mangled.
-
cryptoKdfDeriveFromKey
abstract Key cryptoKdfDeriveFromKey(int lengthOfSubKey, long subKeyId, String context, Key masterKey)
Derive a subkey from a master key.
- Parameters:
lengthOfSubKey- The length of the subkey.subKeyId- The ID of the subkey.context- The context of the subkey.masterKey- The generated master key from cryptoKdfKeygen.
-
-
-
-