Struct ethstore::Crypto[][src]

pub struct Crypto {
    pub cipher: Cipher,
    pub ciphertext: Vec<u8>,
    pub kdf: Kdf,
    pub mac: [u8; 32],
}

Encrypted data

Fields

Encryption parameters

Encrypted data buffer

Key derivation function parameters

Message authentication code

Methods

impl Crypto
[src]

Encrypt account secret

Encrypt custom plain data

Try to decrypt and convert result to account secret

Try to decrypt and return result as is

Trait Implementations

impl Debug for Crypto
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Crypto
[src]

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

This method tests for !=.

impl Clone for Crypto
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl FromStr for Crypto
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl From<Crypto> for String
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Crypto

impl Sync for Crypto