SecretKey

constructor(keyMaterial: ByteArray)

Parameters

keyMaterial

the initial key material. A defensive copy is stored.


constructor(byteString: SecureByteString)

Creates a secret key from an existing SecureByteString.

Parameters

byteString

the secure byte string whose key material will be used.

Throws

if byteString has been destroyed.