Struct shadowsocks::crypto::openssl::OpenSSLCrypto
[−]
[src]
pub struct OpenSSLCrypto { /* fields omitted */ }Core cipher of OpenSSL
Methods
impl OpenSSLCrypto[src]
fn new(
cipher_type: CipherType,
key: &[u8],
iv: &[u8],
mode: CryptoMode
) -> OpenSSLCrypto
cipher_type: CipherType,
key: &[u8],
iv: &[u8],
mode: CryptoMode
) -> OpenSSLCrypto
Creates by type
fn update<B: BufMut>(&mut self, data: &[u8], out: &mut B) -> CipherResult<()>
Update data
fn finalize<B: BufMut>(&mut self, out: &mut B) -> CipherResult<()>
Generate the final block
fn buffer_size(&self, data: &[u8]) -> usize
Gets output buffer size based on data