Package 

Interface KeyDerivation.Lazy

    • Method Summary

      Modifier and Type Method Description
      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.
      abstract Key cryptoKdfDeriveFromKey(int lengthOfSubKey, long subKeyId, String context, Key masterKey) Derive a subkey from a master key.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.