Enum openssl::crypto::symm::Mode
+
+ [−]
+
+ [src]
+pub enum Mode { + Encrypt, + Decrypt, +}
Variants
+Encrypt | |
Decrypt |
From 64106c4d3d4ddba8c7bc2af75376e6d3d3d75601 Mon Sep 17 00:00:00 2001 From: Date: Mon, 29 Jun 2015 20:16:15 +0000 Subject: Update documentation --- openssl/crypto/symm/enum.Mode.html | 107 +++++++++++++++++++++++ openssl/crypto/symm/enum.Type.html | 110 +++++++++++++++++++++++ openssl/crypto/symm/fn.decrypt.html | 103 ++++++++++++++++++++++ openssl/crypto/symm/fn.encrypt.html | 103 ++++++++++++++++++++++ openssl/crypto/symm/index.html | 149 ++++++++++++++++++++++++++++++++ openssl/crypto/symm/sidebar-items.js | 1 + openssl/crypto/symm/struct.Crypter.html | 116 +++++++++++++++++++++++++ 7 files changed, 689 insertions(+) create mode 100644 openssl/crypto/symm/enum.Mode.html create mode 100644 openssl/crypto/symm/enum.Type.html create mode 100644 openssl/crypto/symm/fn.decrypt.html create mode 100644 openssl/crypto/symm/fn.encrypt.html create mode 100644 openssl/crypto/symm/index.html create mode 100644 openssl/crypto/symm/sidebar-items.js create mode 100644 openssl/crypto/symm/struct.Crypter.html (limited to 'openssl/crypto/symm') diff --git a/openssl/crypto/symm/enum.Mode.html b/openssl/crypto/symm/enum.Mode.html new file mode 100644 index 0000000..6358109 --- /dev/null +++ b/openssl/crypto/symm/enum.Mode.html @@ -0,0 +1,107 @@ + + +
+ + + + + + +pub enum Mode { + Encrypt, + Decrypt, +}
Encrypt | |
Decrypt |
impl Clone for Mode
fn clone(&self) -> Mode
fn clone_from(&mut self, source: &Self)
impl Copy for Mode
+ Prefix searches with a type followed by a colon (e.g.
+ fn:
) to restrict the search to a given type.
+
+ Accepted types are: fn
, mod
,
+ struct
, enum
,
+ trait
, typedef
(or
+ tdef
).
+
+ Search functions by type signature (e.g.
+ vec -> usize
)
+
pub enum Type { + AES_128_ECB, + AES_128_CBC, + AES_256_ECB, + AES_256_CBC, + RC4_128, +}
AES_128_ECB | |
AES_128_CBC | |
AES_256_ECB | |
AES_256_CBC | |
RC4_128 |
impl Clone for Type
fn clone(&self) -> Type
fn clone_from(&mut self, source: &Self)
impl Copy for Type
+ Prefix searches with a type followed by a colon (e.g.
+ fn:
) to restrict the search to a given type.
+
+ Accepted types are: fn
, mod
,
+ struct
, enum
,
+ trait
, typedef
(or
+ tdef
).
+
+ Search functions by type signature (e.g.
+ vec -> usize
)
+
pub fn decrypt<T: AsRef<[u8]>>(t: Type, key: &[u8], iv: T, data: &[u8]) -> Vec<u8>
Decrypts data, using the specified crypter type in decrypt mode with the +specified key and iv; returns the resulting (decrypted) data.
+
+ Prefix searches with a type followed by a colon (e.g.
+ fn:
) to restrict the search to a given type.
+
+ Accepted types are: fn
, mod
,
+ struct
, enum
,
+ trait
, typedef
(or
+ tdef
).
+
+ Search functions by type signature (e.g.
+ vec -> usize
)
+
pub fn encrypt<T: AsRef<[u8]>>(t: Type, key: &[u8], iv: T, data: &[u8]) -> Vec<u8>
Encrypts data, using the specified crypter type in encrypt mode with the +specified key and iv; returns the resulting (encrypted) data.
+
+ Prefix searches with a type followed by a colon (e.g.
+ fn:
) to restrict the search to a given type.
+
+ Accepted types are: fn
, mod
,
+ struct
, enum
,
+ trait
, typedef
(or
+ tdef
).
+
+ Search functions by type signature (e.g.
+ vec -> usize
)
+
Crypter | +
+ Represents a symmetric cipher context. + + |
+
Mode | ++ + | +
Type | ++ + | +
decrypt | +
+ Decrypts data, using the specified crypter type in decrypt mode with the +specified key and iv; returns the resulting (decrypted) data. + + |
+
encrypt | +
+ Encrypts data, using the specified crypter type in encrypt mode with the +specified key and iv; returns the resulting (encrypted) data. + + |
+
+ Prefix searches with a type followed by a colon (e.g.
+ fn:
) to restrict the search to a given type.
+
+ Accepted types are: fn
, mod
,
+ struct
, enum
,
+ trait
, typedef
(or
+ tdef
).
+
+ Search functions by type signature (e.g.
+ vec -> usize
)
+
pub struct Crypter { + // some fields omitted +}
Represents a symmetric cipher context.
+impl Crypter
fn new(t: Type) -> Crypter
fn pad(&self, padding: bool)
Enables or disables padding. If padding is disabled, total amount of +data encrypted must be a multiple of block size.
+fn init<T: AsRef<[u8]>>(&self, mode: Mode, key: &[u8], iv: T)
Initializes this crypter.
+fn update(&self, data: &[u8]) -> Vec<u8>
Update this crypter with more data to encrypt or decrypt. Returns +encrypted or decrypted bytes.
+fn finalize(&self) -> Vec<u8>
Finish crypting. Returns the remaining partial block of output, if any.
+impl Drop for Crypter
fn drop(&mut self)
+ Prefix searches with a type followed by a colon (e.g.
+ fn:
) to restrict the search to a given type.
+
+ Accepted types are: fn
, mod
,
+ struct
, enum
,
+ trait
, typedef
(or
+ tdef
).
+
+ Search functions by type signature (e.g.
+ vec -> usize
)
+