Function hash_derive_key_context
pub fn hash_derive_key_context(context: &str) -> ContextKey
Hash a derive_key context string and return a ContextKey.
This has the same security requirement as derive_key. The context
string should be hardcoded, globally unique, and application-specific.
The only valid uses for the returned ContextKey are
new_from_context_key and Mode::DeriveKeyMaterial
(together with the merge subtree functions).
Example
use Hasher;
use HasherExt;
let context_key = hash_derive_key_context;
let mut hasher = new_from_context_key;
hasher.update;
let derived_key = *hasher.finalize.as_bytes;
assert_eq!;