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 a file, authentication and metadata key.

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.

Get the secret key as URL-safe base64 encoded string.

Get the nonce.

Set the input vector.

Get the file encryption key, if derived.

Get the authentication encryption key, if derived.

Get the authentication encryption key, if derived, as URL-safe base64 encoded string.

Get the metadata encryption key, if derived.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Get the TypeId of this object.