Struct ffsend_api::crypto::key_set::KeySet [−][src]
pub struct KeySet { /* fields omitted */ }
Implementations
Construct a new key, with the given secret
and nonce
.
Create a key set from the given file ID and secret. This method may be used to create a key set based on a share URL.
Generate a secure new key.
If derive
is true
, file, authentication and metadata keys will be
derived from the generated secret.
Derive an authentication key, with the given password and file URL. This method does not derive a (new) file and metadata key.
Get the secret key as URL-safe base64 encoded string.
Get the authentication encryption key, if derived, as URL-safe base64 encoded string.