Struct olm_rs::pk::PkMessage[][src]

pub struct PkMessage {
    pub ciphertext: String,
    pub mac: String,
    pub ephemeral_key: String,
}
Expand description

A PK encrypted message.

Fields

ciphertext: Stringmac: Stringephemeral_key: String

Implementations

Create a new PK encrypted message.

Arguments

  • ephemeral_key - the public part of the ephemeral key used (together with the recipient’s key) to generate a symmetric encryption key.

  • mac - Message Authentication Code of the encrypted message

  • ciphertext - The cipher text of the encrypted message

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.

Performs the conversion.

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.