class MasterKey : Destroyable (source)
A KeyDerivation master key.
fun bytes(): Bytes |
|
fun bytesArray(): ByteArray |
|
fun deriveKey(length: Int, subkeyId: Long, context: ByteArray): Bytesfun deriveKey(length: Int, subkeyId: Long, context: String): Bytes
Derive a sub key. |
|
fun deriveKeyArray(length: Int, subkeyId: Long, context: ByteArray): ByteArrayfun deriveKeyArray(length: Int, subkeyId: Long, context: String): ByteArray
Derive a sub key. |
|
fun destroy(): Unit |
|
fun equals(other: Any?): Boolean |
|
static fun fromBytes(bytes: Bytes): MasterKeystatic fun fromBytes(bytes: ByteArray): MasterKey
Create a MasterKey from an array of bytes. The byte array must be of length |
|
fun hashCode(): Int |
|
fun isDestroyed(): Boolean |
|
static fun length(): Int
Obtain the length of the key in bytes (32). |
|
static fun random(): MasterKey
Generate a new key using a random generator. |