Enum emerald_core::keystore::Cipher
[−]
[src]
pub enum Cipher {
Aes128Ctr,
}Cipher type
Variants
Aes128CtrAES-CTR (specified in (RFC 3686)[https://tools.ietf.org/html/rfc3686])
Methods
impl Cipher[src]
fn encrypt(&self, data: &[u8], key: &[u8], iv: &[u8]) -> Vec<u8>
Encrypt given text with provided key and initial vector
Trait Implementations
impl Clone for Cipher[src]
fn clone(&self) -> Cipher
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Copy for Cipher[src]
impl Debug for Cipher[src]
impl PartialEq for Cipher[src]
fn eq(&self, __arg_0: &Cipher) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Eq for Cipher[src]
impl Default for Cipher[src]
impl FromStr for Cipher[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
Parses a string s to return a value of this type. Read more