fun deriveKey(length: Int, subkeyId: Long, context: ByteArray!): Bytes!
(source)
Derive a sub key.
length
- Int: The length of the sub key, which must be between #minSubKeyLength()
and #maxSubKeyLength()
.
subkeyId
- Long: The id for the sub key.
context
- ByteArray!: The context for the sub key, which must be of length #contextLength()
.
Return
Bytes!: The derived sub key.
fun deriveKey(length: Int, subkeyId: Long, context: String!): Bytes!
(source)
Derive a sub key.
length
- Int: The length of the subkey.
subkeyId
- Long: The id for the subkey.
context
- String!: The context for the sub key, which must be of length ≤ #contextLength()
.
Return
Bytes!: The derived sub key.