Struct encrypto_aes::EncryptoAES
source · pub struct EncryptoAES { /* private fields */ }
Implementations§
source§impl EncryptoAES
impl EncryptoAES
pub fn init(bitlen: u32) -> Result<Self, Box<dyn Error>>
pub fn priv_init(bitlen: u32, bu: BigUint) -> Result<Self, Box<dyn Error>>
pub fn desterilize_key(encoded: String) -> EncryptoAES
pub fn get_encrypted_sterilised_key(&mut self, pub_key: ZotPublicKey) -> String
pub fn desterilize_encrypted_key(
encoded: String,
encrypto: EncryptoRSA
) -> EncryptoAES
pub fn get_sterilised_key(&mut self) -> String
pub fn encrypt_cbc(&mut self, data: &[u8]) -> String
pub fn decrypt_cbc(&mut self, data: String) -> Vec<u8>
pub fn encrypt_cfb128(&mut self, data: &[u8]) -> String
pub fn decrypt_cfb128(&mut self, data: String) -> Vec<u8>
Trait Implementations§
source§impl Clone for EncryptoAES
impl Clone for EncryptoAES
source§fn clone(&self) -> EncryptoAES
fn clone(&self) -> EncryptoAES
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more