Package 

Interface KeyDerivation.Native

    • Method Summary

      Modifier and Type Method Description
      abstract void cryptoKdfKeygen(Array<byte> masterKey) Creates a master key.
      abstract boolean cryptoKdfDeriveFromKey(Array<byte> subKey, int subKeyLen, long subKeyId, Array<byte> context, Array<byte> 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 void cryptoKdfKeygen(Array<byte> masterKey)

        Creates a master key.

        Parameters:
        masterKey - The byte array to populate.
      • cryptoKdfDeriveFromKey

         abstract boolean cryptoKdfDeriveFromKey(Array<byte> subKey, int subKeyLen, long subKeyId, Array<byte> context, Array<byte> masterKey)

        Derive a subkey from a master key.

        Parameters:
        subKey - The subkey.
        subKeyLen - The length of the subkey.
        subKeyId - ID of subkey.
        context - The context of the subkey.
        masterKey - The generated master key from cryptoKdfKeygen.