Struct matrix_sdk_crypto::store::PickleKey[][src]

pub struct PickleKey { /* fields omitted */ }
Expand description

A pickle key that will be used to encrypt all the private keys for Olm.

Olm uses AES256 to encrypt accounts, sessions, inbound group sessions. We also implement our own pickling for the cross-signing types using AES256-GCM so the key sizes match.

Implementations

Generate a new random pickle key.

Get a PicklingMode version of this pickle key.

Get the raw AES256 key.

Encrypt and export our pickle key using the given passphrase.

Arguments

  • passphrase - The passphrase that should be used to encrypt the pickle key.

Restore a pickle key from an encrypted export.

Arguments

  • passphrase - The passphrase that should be used to encrypt the pickle key.

  • encrypted - The exported and encrypted version of the pickle key.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

Zero out this object from memory using Rust intrinsics which ensure the zeroization operation is not “optimized away” by the compiler. Read more

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.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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.