class KeyDerivation
(source)
Key derivation.
Multiple secret subkeys can be derived from a single master key.
Given the master key and a key identifier, a subkey can be deterministically computed. However, given a subkey, an attacker cannot compute the master key nor any other subkeys.
MasterKey |
A KeyDerivation master key. class MasterKey : Destroyable |
<init> |
Key derivation. KeyDerivation() |
contextLength |
Provides the required length for the context static fun contextLength(): Int |
isAvailable |
Check if Sodium and key derivation support is available. static fun isAvailable(): Boolean |
maxSubKeyLength |
Provides the maximum length for a new sub key static fun maxSubKeyLength(): Int |
minSubKeyLength |
Provides the minimum length for a new sub key static fun minSubKeyLength(): Int |