Enum emerald_rs::keystore::Cipher
[−]
[src]
pub enum Cipher { Aes128Ctr, }
Cipher type
Variants
Aes128Ctr
AES-CTR (specified in (RFC 3686)[https://tools.ietf.org/html/rfc3686])
Methods
impl Cipher
[src]
pub fn encrypt(&self, data: &[u8], key: &[u8], iv: &[u8]) -> Vec<u8>
[src]
Encrypt given text with provided key and initial vector
Trait Implementations
impl Clone for Cipher
[src]
fn clone(&self) -> Cipher
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Cipher
[src]
impl Debug for Cipher
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Cipher
[src]
fn eq(&self, __arg_0: &Cipher) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
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>
[src]
Parses a string s
to return a value of this type. Read more