pub struct BigCryptor64 { /* private fields */ }Expand description
A BigCryptor64 wrapper struct for cascading encryption/decryption algorithms that has 64-bit block size
§Introduction
BigCryptor64 is mainly used to make TDES which folds DES by cascading DES three times. However, it can be used to cascade any encryption/decryption algorithms that has 64-bit block size.
§Quick Start
You have to import (use) the module BigCryptor64 in order to cascade
encryption/decryption algorithms that has 64-bit block size such as DES
as shown in Example 1.
§Example 1
use cryptocol::symmetric::BigCryptor64;You can instantiate the BigCryptor64 object with components (hereinafter,
referred to as small cryptor) that has u64 keys as Example 2,
for example. In this case, you have to take endianness into account.
In little-endianness, 0x_1234567890ABCDEF_u64 is [0xEFu8, 0xCDu8, 0xABu8,
0x90u8, 0x78u8, 0x56u8, 0x34u8, 0x12u8] while the same
0x_1234567890ABCDEF_u64 is [0x12u8, 0x34u8, 0x56u8, 0x78u8, 0x90u8, 0xABu8,
0xCDu8, 0xEF_u64] in big-endianness.
The instantiated object should be mutable.
§Example 2
use cryptocol::symmetric::{ BigCryptor64, DES };
let mut _tdes = BigCryptor64::new()
+ DES::encryptor_with_key_u64(0x_1234567890ABCDEF_u64)
+ DES::decryptor_with_key_u64(0x_FEDCBA0987654321_u64)
+ DES::encryptor_with_key_u64(0x_1234567890ABCDEF_u64);
Also, you can instantiate the BigCryptor64 object with small cryptors
(component) that have [u8; 8] keys as shown in Example 3. In this case,
you don’t have to take endianness into account. The instantiated object
should be mutable.
§Example 3
use cryptocol::symmetric::{ BigCryptor64, DES };
let mut _tdes = BigCryptor64::new()
+ DES::new_with_key([0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF])
- DES::new_with_key([0xFE, 0xDC, 0xBA, 0x09, 0x87, 0x65, 0x43, 0x21])
+ DES::new_with_key([0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF]);You can instantiate the BigCryptor64 object without small cryptors
(components) that have key and set a u64 key later as shown
in Example 4 or [u8; 8] keys later as shown in Example 5.
§Example 4
use cryptocol::symmetric::{ BigCryptor64, DES };
let mut tdes = BigCryptor64::new();
let des1 = DES::encryptor_with_key_u64(0x_1234567890ABCDEF_u64);
let des2 = DES::decryptor_with_key_u64(0x_FEDCBA0987654321_u64);
let des3 = DES::encryptor_with_key_u64(0x_1234567890ABCDEF_u64);
tdes.push_small_cryptor(des1);
tdes.push_small_cryptor(des2);
tdes.push_small_cryptor(des3);§Example 5
use cryptocol::symmetric::{ BigCryptor64, DES };
let mut tdes = BigCryptor64::new();
let des1 = DES::encryptor_with_key([0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF]);
let des2 = DES::decryptor_with_key([0xFE, 0xDC, 0xBA, 0x09, 0x87, 0x65, 0x43, 0x21]);
let des3 = DES::encryptor_with_key([0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF]);
tdes.push_small_cryptor(des1);
tdes.push_small_cryptor(des2);
tdes.push_small_cryptor(des3);Now, you can freely use any operation mode. This crate provide ECB (Electronic CodeBook), CBC(Cipher Block Chaining), PCBC (Propagation Cipher Block Chaining), CFB (Cipher FeedBack) OFB (Output FeedBack), and CTR (CounTeR). You can choose the way of padding bits according to either PKCS #7 or ISO 7816-4. So, you can import (use) one of the following traits: ECB_PKCS7, ECB_ISO, CBC_PKCS7, CBC_ISO, PCBC_PKCS7, PCBC_ISO, CFB, OFB, and CTR. The following example 6 shows the case that you choose CBC operation mode and padding bits according to PKCS #7.
§Example 6
use std::fmt::Write as _;
use cryptocol::symmetric::{ BigCryptor64, DES, CBC_PKCS7 };
let mut tdes = BigCryptor64::new()
+ DES::new_with_key([0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF])
- DES::new_with_key([0xFE, 0xDC, 0xBA, 0x09, 0x87, 0x65, 0x43, 0x21])
+ DES::new_with_key([0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF]);
let iv = 0x_FEDCBA0987654321_u64;
println!("IV = {:#018X}", iv);
let message = "In the beginning God created the heavens and the earth.";
println!("M =\t{}", message);
let mut cipher = Vec::<u8>::new();
tdes.encrypt_str_into_vec(iv, &message, &mut cipher);
print!("C =\t");
for c in cipher.clone()
{ print!("{:02X} ", c); }
println!();
let mut txt = String::new();
for c in cipher.clone()
{ write!(txt, "{:02X} ", c); }
assert_eq!(txt, "86 2B D7 BF 00 2E CD 70 ED 0C E3 8D 75 18 CE 0F BD A7 AE AF E5 19 46 F8 15 7A 24 0E CB 20 91 C0 03 B9 56 C5 77 01 33 E8 8E 84 CA B9 F2 99 63 AC 3A 3D 1F EF CA CA CB 67 ");
let mut recovered = String::new();
tdes.decrypt_into_string(iv, cipher.as_ptr(), cipher.len() as u64, &mut recovered);
println!("B =\t{}", recovered);
assert_eq!(recovered, "In the beginning God created the heavens and the earth.");
assert_eq!(recovered, message);§Notice for Practical Use
Now, you can freely use any methods with any paddings in any operation modes.
- This crate provides six operation modes: ECB, CBC, PCBC, CFB, OFB, and CTR.
- This crate provides two padding ways: ISO 7816-4 and PKCS #7.
- The operation modes ECB, CBC and PCBC requires padding bytes.
- You can combine three operation modes and two padding ways.
- The operation modes
CFB,OFB, andCTRdoes not require padding bytes. - The traits that implements combination of operation modes and padding
ways are provided such as
ECB_PKCS7,ECB_ISO,CBC_PKCS7,CBC_ISO,PCBC_PKCS7, andPCBC_ISO. - You can find detaild instructions and their helpful examples if you go through those links.
In summary,
Implementations§
Source§impl BigCryptor64
impl BigCryptor64
Sourcepub fn new() -> Self
pub fn new() -> Self
Constructs a new object BigCryptor64.
§Output
A new object BigCryptor64 that has no small cryptors by default
§Features
- In order to encrypt data, object should be instantiated mutable.
- This method does not set any small cryptor (component) by default.
- You have to set as many small cryptors (components) as you want.
- The small cryptors (components) should have the block size 64-bit.
§Example 1
use cryptocol::symmetric::{ BigCryptor64, DES };
let mut tdes = BigCryptor64::new();
tdes.push_small_cryptor(DES::encryptor_with_key([0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF]));
tdes.push_small_cryptor(DES::decryptor_with_key([0xFE, 0xDC, 0xBA, 0x09, 0x87, 0x65, 0x43, 0x21]));
tdes.push_small_cryptor(DES::encryptor_with_key([0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF]));§For more examples,
click here
Sourcepub fn new_with_small_cryptor_array<const N: usize>(
smallcryptor: [Box<dyn SmallCryptor64>; N],
) -> Self
pub fn new_with_small_cryptor_array<const N: usize>( smallcryptor: [Box<dyn SmallCryptor64>; N], ) -> Self
Constructs a new object BigCryptor64 with some small cryptors (components).
§Arguments
smallcryptor is an array of small cryptors (components)
wrapped by Box.
§Output
A new object BigCryptor64 that has small cryptors given as arguments.
§Features
This method sets the small cryptor to be the given argument smallcryptor.
§Example 1 for normal case
use cryptocol::symmetric::{ BigCryptor64, SmallCryptor, DES };
let cryptors: [Box<dyn SmallCryptor64>; 3] = [ Box::new(DES::encryptor_with_key_u64(0x_1234567890ABCDEF_u64)),
Box::new(DES::decryptor_with_key_u64(0x_FEDCBA0987654321_u64)),
Box::new(DES::encryptor_with_key_u64(0x_1234567890ABCDEF_u64)) ];
let mut _tdes = BigCryptor64::new_with_small_cryptor_array(cryptors);§For more examples,
click here
Sourcepub fn new_with_small_cryptor_vec(
smallcryptor: Vec<Box<dyn SmallCryptor64>>,
) -> Self
pub fn new_with_small_cryptor_vec( smallcryptor: Vec<Box<dyn SmallCryptor64>>, ) -> Self
Constructs a new object BigCryptor64 with some small cryptors
(components).
§Arguments
smallcryptor is a Vec object of small cryptors (components)
wrapped by Box.
§Output
A new object BigCryptor128 that has small cryptors given as arguments.
§Features
This method sets the small cryptor to be the given argument smallcryptor.
§Example 1 for normal case
use cryptocol::symmetric::{ BigCryptor64, SmallCryptor, DES };
let cryptors: Vec<Box<dyn SmallCryptor64>> = vec![ Box::new(DES::encryptor_with_key_u64(0x_1234567890ABCDEF_u64)),
Box::new(DES::decryptor_with_key_u64(0x_FEDCBA0987654321_u64)),
Box::new(DES::encryptor_with_key_u64(0x_1234567890ABCDEF_u64)) ];
let mut _tdes = BigCryptor64::new_with_small_cryptor_vec(cryptors);§For more examples,
click here
Sourcepub fn push_small_cryptor<S: SmallCryptor64 + 'static>(
&mut self,
smallcryptor: S,
)
pub fn push_small_cryptor<S: SmallCryptor64 + 'static>( &mut self, smallcryptor: S, )
Adds a small cryptor (component) to Self’s own small cryptor
container.
§Arguments
smallcryptor is a small cryptors (components).
§Features
This method automatically wrap the small cryptor by Box.
§Example 1 for normal case
use cryptocol::symmetric::{ BigCryptor64, DES };
let mut tdes = BigCryptor64::new();
let des1 = DES::encryptor_with_key_u64(0x_1234567890ABCDEF_u64);
let des2 = DES::decryptor_with_key_u64(0x_FEDCBA0987654321_u64);
let des3 = DES::encryptor_with_key_u64(0x_1234567890ABCDEF_u64);
tdes.push_small_cryptor(des1);
tdes.push_small_cryptor(des2);
tdes.push_small_cryptor(des3);§For more examples,
click here
Sourcepub fn push_small_cryptor_array<const N: usize>(
&mut self,
smallcryptors: [Box<dyn SmallCryptor64>; N],
)
pub fn push_small_cryptor_array<const N: usize>( &mut self, smallcryptors: [Box<dyn SmallCryptor64>; N], )
Adds small cryptors (components) to Self’s own small cryptor
container.
§Arguments
smallcryptors is an array of small cryptors (components).
§Features
Each element of the array the small cryptors should be wrapped by Box.
§Example 1 for normal case
use cryptocol::symmetric::{ BigCryptor64, SmallCryptor, DES };
let mut tdes = BigCryptor64::new();
let cryptors: [Box<dyn SmallCryptor64>; 3] = [ Box::new(DES::encryptor_with_key_u64(0x_1234567890ABCDEF_u64)),
Box::new(DES::decryptor_with_key_u64(0x_FEDCBA0987654321_u64)),
Box::new(DES::encryptor_with_key_u64(0x_1234567890ABCDEF_u64)) ];
tdes.push_small_cryptor_array(cryptors);§For more examples,
click here
Sourcepub fn push_small_cryptor_vec(
&mut self,
smallcryptor: Vec<Box<dyn SmallCryptor64>>,
)
pub fn push_small_cryptor_vec( &mut self, smallcryptor: Vec<Box<dyn SmallCryptor64>>, )
Adds small cryptors (components) to Self’s own small cryptor
container.
§Arguments
smallcryptors is a Vec object of small cryptors (components).
§Features
Each element of the Vec object of the small cryptors should be wrapped by Box.
§Example 1 for normal case
use cryptocol::symmetric::{ BigCryptor64, SmallCryptor, DES };
let mut tdes = BigCryptor64::new();
let cryptors: Vec<Box<dyn SmallCryptor64>> = vec![ Box::new(DES::encryptor_with_key_u64(0x_1234567890ABCDEF_u64)),
Box::new(DES::decryptor_with_key_u64(0x_FEDCBA0987654321_u64)),
Box::new(DES::encryptor_with_key_u64(0x_1234567890ABCDEF_u64)) ];
tdes.push_small_cryptor_vec(cryptors);§For more examples,
click here
Sourcepub fn turn_inverse(&mut self)
pub fn turn_inverse(&mut self)
Flips its role in BigCryptor64.
§Features
- If it is constructed as encryptor for embracing BigCryptor64, it will be changed into decryptor.
- If it is constructed as decryptor for embracing BigCryptor64, it will be changed into encryptor.
§Example 1
use cryptocol::symmetric::{ BigCryptor64, DES, Rijndael_64_64, SmallCryptor };
let mut tdes = DES::new_with_key([0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF])
- DES::new_with_key([0xFE, 0xDC, 0xBA, 0x09, 0x87, 0x65, 0x43, 0x21])
+ DES::new_with_key([0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF]);
let des = DES::new_with_key([0xEF, 0xCD, 0xAB, 0x90, 0x78, 0x56, 0x34, 0x12]);
let rijndael = Rijndael_64_64::new_with_key(&[0x21, 0x43, 0x65, 0x87, 0x09, 0xBA, 0xDC, 0xFE]);
tdes.turn_inverse();
let mut bigcryptor = des + rijndael + tdes;
let plaintext = 0x_1234567890ABCDEF_u64;
println!("Plaintext:\t\t{:#018X}", plaintext);
let ciphertext = bigcryptor.encrypt_u64(plaintext);
println!("Ciphertext:\t\t{:#018X}", ciphertext);
assert_eq!(ciphertext, 0x_0036D446DF6D218F_u64);
let recovered_text = bigcryptor.decrypt_u64(ciphertext);
println!("Recovered text:\t{:#018X}", recovered_text);
assert_eq!(recovered_text, 0x1234567890ABCDEF_u64);
assert_eq!(recovered_text, plaintext);§For more examples,
click here
Sourcepub fn turn_encryptor(&mut self)
pub fn turn_encryptor(&mut self)
Changes its role in BigCryptor64 to encryptor.
§Features
- If it is constructed as encryptor for embracing BigCryptor64, it will not be changed at all.
- If it is constructed as decryptor for embracing BigCryptor64, it will be changed into encryptor.
§Example 1
use cryptocol::symmetric::{ BigCryptor64, DES, Rijndael_64_64, SmallCryptor };
let mut tdes = DES::new_with_key([0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF])
- DES::new_with_key([0xFE, 0xDC, 0xBA, 0x09, 0x87, 0x65, 0x43, 0x21])
+ DES::new_with_key([0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF]);
let des = DES::new_with_key([0xEF, 0xCD, 0xAB, 0x90, 0x78, 0x56, 0x34, 0x12]);
let rijndael = Rijndael_64_64::new_with_key(&[0x21, 0x43, 0x65, 0x87, 0x09, 0xBA, 0xDC, 0xFE]);
tdes.turn_encryptor();
let mut bigcryptor = des + rijndael + tdes;
let plaintext = 0x_1234567890ABCDEF_u64;
println!("Plaintext:\t\t{:#018X}", plaintext);
let ciphertext = bigcryptor.encrypt_u64(plaintext);
println!("Ciphertext:\t\t{:#018X}", ciphertext);
assert_eq!(ciphertext, 0x_911ED9892E52BC7C_u64);
let recovered_text = bigcryptor.decrypt_u64(ciphertext);
println!("Recovered text:\t{:#018X}", recovered_text);
assert_eq!(recovered_text, 0x1234567890ABCDEF_u64);
assert_eq!(recovered_text, plaintext);§For more examples,
click here
Sourcepub fn turn_decryptor(&mut self)
pub fn turn_decryptor(&mut self)
Changes its role in BigCryptor64 to decryptor.
§Features
- If it is constructed as encryptor for embracing BigCryptor64, it will be changed into decryptor.
- If it is constructed as decryptor for embracing BigCryptor64, it will not be changed at all.
§Example 1
use cryptocol::symmetric::{ BigCryptor64, DES, Rijndael_64_64, SmallCryptor };
let mut tdes = DES::new_with_key([0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF])
- DES::new_with_key([0xFE, 0xDC, 0xBA, 0x09, 0x87, 0x65, 0x43, 0x21])
+ DES::new_with_key([0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF]);
let des = DES::new_with_key([0xEF, 0xCD, 0xAB, 0x90, 0x78, 0x56, 0x34, 0x12]);
let rijndael = Rijndael_64_64::new_with_key(&[0x21, 0x43, 0x65, 0x87, 0x09, 0xBA, 0xDC, 0xFE]);
tdes.turn_decryptor();
let mut bigcryptor = des + rijndael + tdes;
let plaintext = 0x_1234567890ABCDEF_u64;
println!("Plaintext:\t\t{:#018X}", plaintext);
let ciphertext = bigcryptor.encrypt_u64(plaintext);
println!("Ciphertext:\t\t{:#018X}", ciphertext);
assert_eq!(ciphertext, 0x_0036D446DF6D218F_u64);
let recovered_text = bigcryptor.decrypt_u64(ciphertext);
println!("Recovered text:\t{:#018X}", recovered_text);
assert_eq!(recovered_text, 0x1234567890ABCDEF_u64);
assert_eq!(recovered_text, plaintext);§For more examples,
click here
Sourcepub fn encrypt_u64(&mut self, message: u64) -> u64
pub fn encrypt_u64(&mut self, message: u64) -> u64
Encrypts a 64-bit data.
§Arguments
message is of u64-type and the plaintext to be encrypted.
§Output
This method returns the encrypted data of u64-type from message.
§Example 1 for Normal case
use cryptocol::symmetric::{ BigCryptor64, DES };
let mut tdes = DES::new_with_key([0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF])
- DES::new_with_key([0xFE, 0xDC, 0xBA, 0x09, 0x87, 0x65, 0x43, 0x21])
+ DES::new_with_key([0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF]);
let message = 0x1234567890ABCDEF_u64;
println!("M = {:#018X}", message);
let cipher = tdes.encrypt_u64(message);
println!("C = {:#018X}", cipher);
assert_eq!(cipher, 0x_CA61814E7AE964BA_u64);§For more examples,
click here
Sourcepub fn decrypt_u64(&mut self, cipher: u64) -> u64
pub fn decrypt_u64(&mut self, cipher: u64) -> u64
Decrypts a 64-bit data.
§Arguments
cioher is of u64-type and the ciphertext to be decrypted.
§Output
This method returns the decrypted data of u64-type from cipher.
§Example 1 for Normal case
use cryptocol::symmetric::{ BigCryptor64, DES };
let mut tdes = DES::new_with_key([0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF])
- DES::new_with_key([0xFE, 0xDC, 0xBA, 0x09, 0x87, 0x65, 0x43, 0x21])
+ DES::new_with_key([0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF]);
let message = 0x1234567890ABCDEF_u64;
println!("M = {:#018X}", message);
let cipher = tdes.encrypt_u64(message);
println!("C = {:#018X}", cipher);
assert_eq!(cipher, 0x_CA61814E7AE964BA_u64);
let recovered = tdes.decrypt_u64(cipher);
println!("B = {:#018X}", recovered);
assert_eq!(recovered, 0x1234567890ABCDEF_u64);
assert_eq!(recovered, message);§For more examples,
click here
Sourcepub fn encrypt_array_u64<const M: usize>(
&mut self,
message: &[u64; M],
cipher: &mut [u64; M],
)
pub fn encrypt_array_u64<const M: usize>( &mut self, message: &[u64; M], cipher: &mut [u64; M], )
Encrypts an array of 64-bit data.
§Arguments
messageis of an array ofu64-type and the plaintext to be encrypted.cipheris of an array ofu64-type and the ciphertext to be stored.
§Output
This method returns the encrypted data of an array of u64-type
from message.
§Example 1 for Normal case
use cryptocol::symmetric::{ BigCryptor64, DES };
let mut tdes = DES::new_with_key([0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF])
- DES::new_with_key([0xFE, 0xDC, 0xBA, 0x09, 0x87, 0x65, 0x43, 0x21])
+ DES::new_with_key([0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF]);
let message = [0x1234567890ABCDEF_u64, 0x1122334455667788, 0x9900AABBCCDDEEFF];
print!("M = ");
for msg in message.clone()
{ print!("{:#018X} ", msg); }
println!();
let mut cipher = [0_u64; 3];
tdes.encrypt_array_u64(&message, &mut cipher);
print!("C = ");
for c in cipher.clone()
{ print!("{:#018X} ", c); }
println!();
assert_eq!(cipher[0], 0x_CA61814E7AE964BA_u64);
assert_eq!(cipher[1], 0x_073450DF82262B1B_u64);
assert_eq!(cipher[2], 0x_51712805A458A102_u64);§For more examples,
click here
Sourcepub fn decrypt_array_u64<const M: usize>(
&mut self,
cipher: &[u64; M],
message: &mut [u64; M],
)
pub fn decrypt_array_u64<const M: usize>( &mut self, cipher: &[u64; M], message: &mut [u64; M], )
Decrypts an array of 64-bit data.
§Arguments
cipheris of an array ofu64-type and the ciphertext to be decrypted.messageis of an array ofu64-type and the plaintext to be stored.
§Output
This method returns the decrypted data of an array of u64-type
from cipher.
§Example 1 for Normal case
use cryptocol::symmetric::{ BigCryptor64, DES };
let mut tdes = DES::new_with_key([0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF])
- DES::new_with_key([0xFE, 0xDC, 0xBA, 0x09, 0x87, 0x65, 0x43, 0x21])
+ DES::new_with_key([0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF]);
let message = [0x1234567890ABCDEF_u64, 0x1122334455667788, 0x9900AABBCCDDEEFF];
print!("M = ");
for msg in message.clone()
{ print!("{:#018X} ", msg); }
println!();
let mut cipher = [0_u64; 3];
tdes.encrypt_array_u64(&message, &mut cipher);
print!("C = ");
for c in cipher.clone()
{ print!("{:#018X} ", c); }
println!();
assert_eq!(cipher[0], 0x_CA61814E7AE964BA_u64);
assert_eq!(cipher[1], 0x_073450DF82262B1B_u64);
assert_eq!(cipher[2], 0x_51712805A458A102_u64);
let mut recovered = [0_u64; 3];
tdes.decrypt_array_u64(&cipher, &mut recovered);
print!("B = ");
for r in recovered.clone()
{ print!("{:#018X} ", r); }
println!();
assert_eq!(recovered[0], 0x_1234567890ABCDEF_u64);
assert_eq!(recovered[1], 0x_1122334455667788_u64);
assert_eq!(recovered[2], 0x_9900AABBCCDDEEFF_u64);
assert_eq!(recovered[0], message[0]);
assert_eq!(recovered[1], message[1]);
assert_eq!(recovered[2], message[2]);§For more examples,
click here
Sourcepub fn is_successful(&self) -> bool
pub fn is_successful(&self) -> bool
Checks whether the previous encryption or decryption was successful.
§Output
If the previous encryption or decryption was successful, this method returns true. Otherwise, it returns false.
§Features
- Usually, you don’t have to use this method because the encryption
methods returns the length of ciphertext and the decryption methods
returns the length of plaintext but they returns
0when they failed. - If the ciphertext is 8 bytes for decryption with the padding either
pkcs7 or iso, the return value
0of the decryption methods is not discriminatory. You don’t know whether the previous decryption was failed or the original plaintext was just null string or “”. In this case you can check its success with this method.
§Example 1 for Successful case for encryption
use std::io::Write;
use std::fmt::Write as _;
use cryptocol::symmetric::{ BigCryptor64, DES, CBC_PKCS7 };
let iv = 0x_FEDCBA0987654321_u64;
println!("IV = {}", iv);
let mut tdes = DES::new_with_key([0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF])
- DES::new_with_key([0xFE, 0xDC, 0xBA, 0x09, 0x87, 0x65, 0x43, 0x21])
+ DES::new_with_key([0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF]);
let message = "";
println!("M =\t{}", message);
let mut cipher = [0_u8; 8];
let len = tdes.encrypt_into_array(iv, message.as_ptr(), message.len() as u64, &mut cipher);
println!("The length of ciphertext = {}", len);
assert_eq!(len, 8);
let success = tdes.is_successful();
assert_eq!(success, true);
print!("C =\t");
for c in cipher.clone()
{ print!("{:02X} ", c); }
println!();
let mut txt = String::new();
for c in cipher.clone()
{ write!(txt, "{:02X} ", c); }
assert_eq!(txt, "17 C8 15 48 EE 85 42 43 ");§For more examples,
click here
Sourcepub fn is_failed(&self) -> bool
pub fn is_failed(&self) -> bool
Checks whether the previous encryption or decryption was failed.
§Output
If the previous encryption or decryption was failed, this method returns true. Otherwise, it returns false.
§Features
- Usually, you don’t have to use this method because the encryption
methods returns the length of ciphertext and the decryption methods
returns the length of plaintext but they returns
0when they failed. - If the ciphertext is 8 bytes for decryption with the padding either
pkcs7 or iso, the return value
0of the decryption methods is not discriminatory. You don’t know whether the previous decryption was failed or the original plaintext was just null string or “”. In this case you can check its success with this method.
§Example 1 for Successful case for encryption
use std::io::Write;
use std::fmt::Write as _;
use cryptocol::symmetric::{ BigCryptor64, DES, CBC_PKCS7 };
let iv = 0x_FEDCBA0987654321_u64;
println!("IV = {}", iv);
let mut tdes = DES::new_with_key([0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF])
- DES::new_with_key([0xFE, 0xDC, 0xBA, 0x09, 0x87, 0x65, 0x43, 0x21])
+ DES::new_with_key([0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF]);
let message = "";
println!("M =\t{}", message);
let mut cipher = [0_u8; 8];
let len = tdes.encrypt_into_array(iv, message.as_ptr(), message.len() as u64, &mut cipher);
println!("The length of ciphertext = {}", len);
assert_eq!(len, 8);
let failure = tdes.is_failed();
assert_eq!(failure, false);
print!("C =\t");
for c in cipher.clone()
{ print!("{:02X} ", c); }
println!();
let mut txt = String::new();
for c in cipher.clone()
{ write!(txt, "{:02X} ", c); }
assert_eq!(txt, "17 C8 15 48 EE 85 42 43 ");§For more examples,
click here
Trait Implementations§
Source§impl<S> Add<S> for BigCryptor64where
S: SmallCryptor64 + 'static,
impl<S> Add<S> for BigCryptor64where
S: SmallCryptor64 + 'static,
Source§impl CBC_ISO<u64> for BigCryptor64
impl CBC_ISO<u64> for BigCryptor64
Source§fn encrypt(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: *mut u8,
) -> u64
fn encrypt( &mut self, iv: u64, message: *const u8, length_in_bytes: u64, cipher: *mut u8, ) -> u64
Source§fn decrypt(
&mut self,
iv: u64,
cipher: *const u8,
length_in_bytes: u64,
message: *mut u8,
) -> u64
fn decrypt( &mut self, iv: u64, cipher: *const u8, length_in_bytes: u64, message: *mut u8, ) -> u64
Source§fn encrypt_into_array<U, const N: usize>(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
fn encrypt_into_array<U, const N: usize>(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
[U; N]. Read moreSource§fn encrypt_into_vec<U>(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn encrypt_into_vec<U>(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
Vec<U>. Read moreSource§fn decrypt_into_array<U, const N: usize>(
&mut self,
iv: u64,
cipher: *const u8,
length_in_bytes: u64,
message: &mut [U; N],
) -> u64where
U: SmallUInt,
fn decrypt_into_array<U, const N: usize>(
&mut self,
iv: u64,
cipher: *const u8,
length_in_bytes: u64,
message: &mut [U; N],
) -> u64where
U: SmallUInt,
[U; N]. Read moreSource§fn encrypt_str(&mut self, iv: T, message: &str, cipher: *mut u8) -> u64
fn encrypt_str(&mut self, iv: T, message: &str, cipher: *mut u8) -> u64
str object with the padding defined
according to ISO 7816-4 in CBC (Cipher-Block Chaining) mode. Read moreSource§fn encrypt_str_into_vec<U>(
&mut self,
iv: T,
message: &str,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn encrypt_str_into_vec<U>(
&mut self,
iv: T,
message: &str,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
str with the padding defined according to
ISO 7816-4 in CBC (Cipher-Block Chaining) mode, and stores the
encrypted data in Vec<U>. Read moreSource§fn encrypt_str_into_array<U, const N: usize>(
&mut self,
iv: T,
message: &str,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
fn encrypt_str_into_array<U, const N: usize>(
&mut self,
iv: T,
message: &str,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
str object with the padding defined
according to ISO 7816-4 in CBC (Cipher-Block Chaining) mode,
and stores the encrypted data in array [U; N]. Read moreSource§fn encrypt_string(&mut self, iv: T, message: &String, cipher: *mut u8) -> u64
fn encrypt_string(&mut self, iv: T, message: &String, cipher: *mut u8) -> u64
String object with the padding
according to ISO 7816-4 in CBC (Cipher-Block Chaining) mode. Read moreSource§fn encrypt_string_into_vec<U>(
&mut self,
iv: T,
message: &String,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn encrypt_string_into_vec<U>(
&mut self,
iv: T,
message: &String,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
String object with the padding
according to ISO 7816-4 in CBC (Cipher-Block Chaining) mode,
and stores the encrypted data in Vec<U>. Read moreSource§fn encrypt_string_into_array<U, const N: usize>(
&mut self,
iv: T,
message: &String,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
fn encrypt_string_into_array<U, const N: usize>(
&mut self,
iv: T,
message: &String,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
String object with the padding
according to ISO 7816-4 in CBC (Cipher-Block Chaining) mode,
and stores the encrypted data in array [U; N]. Read moreSource§fn encrypt_vec<U>(&mut self, iv: T, message: &Vec<U>, cipher: *mut u8) -> u64where
U: SmallUInt,
fn encrypt_vec<U>(&mut self, iv: T, message: &Vec<U>, cipher: *mut u8) -> u64where
U: SmallUInt,
Vec<U> object with the padding defined
according to ISO 7816-4 in CBC (Cipher-Block Chaining) mode. Read moreSource§fn encrypt_vec_into_vec<U, V>(
&mut self,
iv: T,
message: &Vec<U>,
cipher: &mut Vec<V>,
) -> u64
fn encrypt_vec_into_vec<U, V>( &mut self, iv: T, message: &Vec<U>, cipher: &mut Vec<V>, ) -> u64
Vec<U> object with the padding defined
according to ISO 7816-4 in CBC (Cipher-Block Chaining) mode, and
stores the encrypted data in Vec<V>. Read moreSource§fn encrypt_vec_into_array<U, V, const N: usize>(
&mut self,
iv: T,
message: &Vec<U>,
cipher: &mut [V; N],
) -> u64
fn encrypt_vec_into_array<U, V, const N: usize>( &mut self, iv: T, message: &Vec<U>, cipher: &mut [V; N], ) -> u64
Vec<U> object with the padding defined
according to ISO 7816-4 in CBC (Cipher-Block Chaining) mode, and
stores the encrypted data in array [V; N]. Read moreSource§fn encrypt_array<U, const N: usize>(
&mut self,
iv: T,
message: &[U; N],
cipher: *mut u8,
) -> u64where
U: SmallUInt,
fn encrypt_array<U, const N: usize>(
&mut self,
iv: T,
message: &[U; N],
cipher: *mut u8,
) -> u64where
U: SmallUInt,
[U; N] object with the padding
defined according to ISO 7816-4 in CBC (Cipher-Block Chaining) mode. Read moreSource§fn encrypt_array_into_vec<U, V, const N: usize>(
&mut self,
iv: T,
message: &[U; N],
cipher: &mut Vec<V>,
) -> u64
fn encrypt_array_into_vec<U, V, const N: usize>( &mut self, iv: T, message: &[U; N], cipher: &mut Vec<V>, ) -> u64
[U; N] object with the padding
according to ISO 7816-4 in CBC (Cipher-Block Chaining) mode, and stores the
encrypted data in Vec<V>. Read moreSource§fn encrypt_array_into_array<U, V, const N: usize, const M: usize>(
&mut self,
iv: T,
message: &[U; N],
cipher: &mut [V; M],
) -> u64
fn encrypt_array_into_array<U, V, const N: usize, const M: usize>( &mut self, iv: T, message: &[U; N], cipher: &mut [V; M], ) -> u64
[U; N] object with the padding
according to ISO 7816-4 in CBC (Cipher-Block Chaining) mode, and stores the
encrypted data in array [V; M]. Read moreSource§fn decrypt_into_vec<U>(
&mut self,
iv: T,
cipher: *const u8,
length_in_bytes: u64,
message: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn decrypt_into_vec<U>(
&mut self,
iv: T,
cipher: *const u8,
length_in_bytes: u64,
message: &mut Vec<U>,
) -> u64where
U: SmallUInt,
Vec<U>. Read moreSource§fn decrypt_into_string(
&mut self,
iv: T,
cipher: *const u8,
length_in_bytes: u64,
message: &mut String,
) -> u64
fn decrypt_into_string( &mut self, iv: T, cipher: *const u8, length_in_bytes: u64, message: &mut String, ) -> u64
String. Read moreSource§fn decrypt_vec<U>(&mut self, iv: T, cipher: &Vec<U>, message: *mut u8) -> u64where
U: SmallUInt,
fn decrypt_vec<U>(&mut self, iv: T, cipher: &Vec<U>, message: *mut u8) -> u64where
U: SmallUInt,
Vec<U> object with the padding defined
according to ISO 7816-4 in CBC (Cipher-Block Chaining) mode. Read moreSource§fn decrypt_vec_into_vec<U, V>(
&mut self,
iv: T,
cipher: &Vec<U>,
message: &mut Vec<V>,
) -> u64
fn decrypt_vec_into_vec<U, V>( &mut self, iv: T, cipher: &Vec<U>, message: &mut Vec<V>, ) -> u64
Vec<U> object with the padding defined
according to ISO 7816-4 in CBC (Cipher-Block Chaining) mode, and
stores the decrypted data in Vec<V>. Read moreSource§fn decrypt_vec_into_array<U, V, const N: usize>(
&mut self,
iv: T,
cipher: &Vec<U>,
message: &mut [V; N],
) -> u64
fn decrypt_vec_into_array<U, V, const N: usize>( &mut self, iv: T, cipher: &Vec<U>, message: &mut [V; N], ) -> u64
Vec<U> object with the padding defined
according to ISO 7816-4 in CBC (Cipher-Block Chaining) mode, and
stores the decrypted data in array [V; N]. Read moreSource§fn decrypt_vec_into_string<U>(
&mut self,
iv: T,
cipher: &Vec<U>,
message: &mut String,
) -> u64where
U: SmallUInt,
fn decrypt_vec_into_string<U>(
&mut self,
iv: T,
cipher: &Vec<U>,
message: &mut String,
) -> u64where
U: SmallUInt,
str with the padding defined according to
ISO 7816-4 in CBC (Cipher-Block Chaining) mode, and stores the
decrypted data in String. Read moreSource§fn decrypt_array<U, const N: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: *mut u8,
) -> u64where
U: SmallUInt,
fn decrypt_array<U, const N: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: *mut u8,
) -> u64where
U: SmallUInt,
[U; N] object with the padding
defined according to ISO 7816-4 in CBC (Cipher-Block Chaining) mode. Read moreSource§fn decrypt_array_into_vec<U, V, const N: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: &mut Vec<V>,
) -> u64
fn decrypt_array_into_vec<U, V, const N: usize>( &mut self, iv: T, cipher: &[U; N], message: &mut Vec<V>, ) -> u64
[U; N] object with the padding
defined according to ISO 7816-4 in CBC (Cipher-Block Chaining) mode,
and stores the decrypted data in Vec<V>. Read moreSource§fn decrypt_array_into_array<U, V, const N: usize, const M: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: &mut [V; M],
) -> u64
fn decrypt_array_into_array<U, V, const N: usize, const M: usize>( &mut self, iv: T, cipher: &[U; N], message: &mut [V; M], ) -> u64
[U; N] object with the padding
defined according to ISO 7816-4 in CBC (Cipher-Block Chaining) mode,
and stores the decrypted data in array [V; M]. Read moreSource§fn decrypt_array_into_string<U, const N: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: &mut String,
) -> u64where
U: SmallUInt,
fn decrypt_array_into_string<U, const N: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: &mut String,
) -> u64where
U: SmallUInt,
[U; N] object with the padding
defined according to ISO 7816-4 in CBC (Cipher-Block Chaining) mode,
and stores the decrypted data in String. Read moreSource§impl CBC_PKCS7<u64> for BigCryptor64
impl CBC_PKCS7<u64> for BigCryptor64
Source§fn encrypt(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: *mut u8,
) -> u64
fn encrypt( &mut self, iv: u64, message: *const u8, length_in_bytes: u64, cipher: *mut u8, ) -> u64
Source§fn decrypt(
&mut self,
iv: u64,
cipher: *const u8,
length_in_bytes: u64,
message: *mut u8,
) -> u64
fn decrypt( &mut self, iv: u64, cipher: *const u8, length_in_bytes: u64, message: *mut u8, ) -> u64
Source§fn encrypt_into_array<U, const N: usize>(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
fn encrypt_into_array<U, const N: usize>(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
[U; N]. Read moreSource§fn encrypt_into_vec<U>(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn encrypt_into_vec<U>(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
Vec<U>. Read moreSource§fn decrypt_into_array<U, const N: usize>(
&mut self,
iv: u64,
cipher: *const u8,
length_in_bytes: u64,
message: &mut [U; N],
) -> u64where
U: SmallUInt,
fn decrypt_into_array<U, const N: usize>(
&mut self,
iv: u64,
cipher: *const u8,
length_in_bytes: u64,
message: &mut [U; N],
) -> u64where
U: SmallUInt,
[U; N]. Read moreSource§fn encrypt_str(&mut self, iv: T, message: &str, cipher: *mut u8) -> u64
fn encrypt_str(&mut self, iv: T, message: &str, cipher: *mut u8) -> u64
str object with the padding defined
according to PKCS #7 in CBC (Cipher-Block Chaining) mode. Read moreSource§fn encrypt_str_into_vec<U>(
&mut self,
iv: T,
message: &str,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn encrypt_str_into_vec<U>(
&mut self,
iv: T,
message: &str,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
str with the padding defined according to
PKCS #7 in CBC (Cipher-Block Chaining) mode, and stores the
encrypted data in Vec<U>. Read moreSource§fn encrypt_str_into_array<U, const N: usize>(
&mut self,
iv: T,
message: &str,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
fn encrypt_str_into_array<U, const N: usize>(
&mut self,
iv: T,
message: &str,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
str object with the padding defined
according to PKCS #7 in CBC (Cipher-Block Chaining) mode,
and stores the encrypted data in array [U; N]. Read moreSource§fn encrypt_string(&mut self, iv: T, message: &String, cipher: *mut u8) -> u64
fn encrypt_string(&mut self, iv: T, message: &String, cipher: *mut u8) -> u64
String object with the padding
according to PKCS #7 in CBC (Cipher-Block Chaining) mode. Read moreSource§fn encrypt_string_into_vec<U>(
&mut self,
iv: T,
message: &String,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn encrypt_string_into_vec<U>(
&mut self,
iv: T,
message: &String,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
String object with the padding
according to PKCS #7 in CBC (Cipher-Block Chaining) mode,
and stores the encrypted data in Vec<U>. Read moreSource§fn encrypt_string_into_array<U, const N: usize>(
&mut self,
iv: T,
message: &String,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
fn encrypt_string_into_array<U, const N: usize>(
&mut self,
iv: T,
message: &String,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
String object with the padding
according to PKCS #7 in CBC (Cipher-Block Chaining) mode,
and stores the encrypted data in array [U; N]. Read moreSource§fn encrypt_vec<U>(&mut self, iv: T, message: &Vec<U>, cipher: *mut u8) -> u64where
U: SmallUInt,
fn encrypt_vec<U>(&mut self, iv: T, message: &Vec<U>, cipher: *mut u8) -> u64where
U: SmallUInt,
Vec<U> object with the padding defined
according to PKCS #7 in CBC (Cipher-Block Chaining) mode. Read moreSource§fn encrypt_vec_into_vec<U, V>(
&mut self,
iv: T,
message: &Vec<U>,
cipher: &mut Vec<V>,
) -> u64
fn encrypt_vec_into_vec<U, V>( &mut self, iv: T, message: &Vec<U>, cipher: &mut Vec<V>, ) -> u64
Vec<U> object with the padding defined
according to PKCS #7 in CBC (Cipher-Block Chaining) mode, and
stores the encrypted data in Vec<V>. Read moreSource§fn encrypt_vec_into_array<U, V, const N: usize>(
&mut self,
iv: T,
message: &Vec<U>,
cipher: &mut [V; N],
) -> u64
fn encrypt_vec_into_array<U, V, const N: usize>( &mut self, iv: T, message: &Vec<U>, cipher: &mut [V; N], ) -> u64
Vec<U> object with the padding defined
according to PKCS #7 in CBC (Cipher-Block Chaining) mode, and
stores the encrypted data in array [V; N]. Read moreSource§fn encrypt_array<U, const N: usize>(
&mut self,
iv: T,
message: &[U; N],
cipher: *mut u8,
) -> u64where
U: SmallUInt,
fn encrypt_array<U, const N: usize>(
&mut self,
iv: T,
message: &[U; N],
cipher: *mut u8,
) -> u64where
U: SmallUInt,
[U; N] object with the padding
defined according to PKCS #7 in CBC (Cipher-Block Chaining) mode. Read moreSource§fn encrypt_array_into_vec<U, V, const N: usize>(
&mut self,
iv: T,
message: &[U; N],
cipher: &mut Vec<V>,
) -> u64
fn encrypt_array_into_vec<U, V, const N: usize>( &mut self, iv: T, message: &[U; N], cipher: &mut Vec<V>, ) -> u64
[U; N] object with the padding
according to PKCS #7 in CBC (Cipher-Block Chaining) mode, and stores the
encrypted data in Vec<V>. Read moreSource§fn encrypt_array_into_array<U, V, const N: usize, const M: usize>(
&mut self,
iv: T,
message: &[U; N],
cipher: &mut [V; M],
) -> u64
fn encrypt_array_into_array<U, V, const N: usize, const M: usize>( &mut self, iv: T, message: &[U; N], cipher: &mut [V; M], ) -> u64
[U; N] object with the padding
according to PKCS #7 in CBC (Cipher-Block Chaining) mode, and stores the
encrypted data in array [V; M]. Read moreSource§fn decrypt_into_vec<U>(
&mut self,
iv: T,
cipher: *const u8,
length_in_bytes: u64,
message: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn decrypt_into_vec<U>(
&mut self,
iv: T,
cipher: *const u8,
length_in_bytes: u64,
message: &mut Vec<U>,
) -> u64where
U: SmallUInt,
Vec<U>. Read moreSource§fn decrypt_into_string(
&mut self,
iv: T,
cipher: *const u8,
length_in_bytes: u64,
message: &mut String,
) -> u64
fn decrypt_into_string( &mut self, iv: T, cipher: *const u8, length_in_bytes: u64, message: &mut String, ) -> u64
String. Read moreSource§fn decrypt_vec<U>(&mut self, iv: T, cipher: &Vec<U>, message: *mut u8) -> u64where
U: SmallUInt,
fn decrypt_vec<U>(&mut self, iv: T, cipher: &Vec<U>, message: *mut u8) -> u64where
U: SmallUInt,
Vec<U> object with the padding defined
according to PKCS #7 in CBC (Cipher-Block Chaining) mode. Read moreSource§fn decrypt_vec_into_vec<U, V>(
&mut self,
iv: T,
cipher: &Vec<U>,
message: &mut Vec<V>,
) -> u64
fn decrypt_vec_into_vec<U, V>( &mut self, iv: T, cipher: &Vec<U>, message: &mut Vec<V>, ) -> u64
Vec<U> object with the padding defined
according to PKCS #7 in CBC (Cipher-Block Chaining) mode, and
stores the decrypted data in Vec<V>. Read moreSource§fn decrypt_vec_into_array<U, V, const N: usize>(
&mut self,
iv: T,
cipher: &Vec<U>,
message: &mut [V; N],
) -> u64
fn decrypt_vec_into_array<U, V, const N: usize>( &mut self, iv: T, cipher: &Vec<U>, message: &mut [V; N], ) -> u64
Vec<U> object with the padding defined
according to PKCS #7 in CBC (Cipher-Block Chaining) mode, and
stores the decrypted data in array [V; N]. Read moreSource§fn decrypt_vec_into_string<U>(
&mut self,
iv: T,
cipher: &Vec<U>,
message: &mut String,
) -> u64where
U: SmallUInt,
fn decrypt_vec_into_string<U>(
&mut self,
iv: T,
cipher: &Vec<U>,
message: &mut String,
) -> u64where
U: SmallUInt,
str with the padding defined according to
PKCS #7 in CBC (Cipher-Block Chaining) mode, and stores the
decrypted data in String. Read moreSource§fn decrypt_array<U, const N: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: *mut u8,
) -> u64where
U: SmallUInt,
fn decrypt_array<U, const N: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: *mut u8,
) -> u64where
U: SmallUInt,
[U; N] object with the padding
defined according to PKCS #7 in CBC (Cipher-Block Chaining) mode. Read moreSource§fn decrypt_array_into_vec<U, V, const N: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: &mut Vec<V>,
) -> u64
fn decrypt_array_into_vec<U, V, const N: usize>( &mut self, iv: T, cipher: &[U; N], message: &mut Vec<V>, ) -> u64
[U; N] object with the padding
defined according to PKCS #7 in CBC (Cipher-Block Chaining) mode,
and stores the decrypted data in Vec<V>. Read moreSource§fn decrypt_array_into_array<U, V, const N: usize, const M: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: &mut [V; M],
) -> u64
fn decrypt_array_into_array<U, V, const N: usize, const M: usize>( &mut self, iv: T, cipher: &[U; N], message: &mut [V; M], ) -> u64
[U; N] object with the padding
defined according to PKCS #7 in CBC (Cipher-Block Chaining) mode,
and stores the decrypted data in array [V; M]. Read moreSource§fn decrypt_array_into_string<U, const N: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: &mut String,
) -> u64where
U: SmallUInt,
fn decrypt_array_into_string<U, const N: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: &mut String,
) -> u64where
U: SmallUInt,
[U; N] object with the padding
defined according to PKCS #7 in CBC (Cipher-Block Chaining) mode,
and stores the decrypted data in String. Read moreSource§impl CFB<u64> for BigCryptor64
impl CFB<u64> for BigCryptor64
Source§fn encrypt(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: *mut u8,
) -> u64
fn encrypt( &mut self, iv: u64, message: *const u8, length_in_bytes: u64, cipher: *mut u8, ) -> u64
Source§fn decrypt(
&mut self,
iv: u64,
cipher: *const u8,
length_in_bytes: u64,
message: *mut u8,
) -> u64
fn decrypt( &mut self, iv: u64, cipher: *const u8, length_in_bytes: u64, message: *mut u8, ) -> u64
Source§fn encrypt_into_array<U, const N: usize>(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
fn encrypt_into_array<U, const N: usize>(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
[U; N]. Read moreSource§fn encrypt_into_vec<U>(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn encrypt_into_vec<U>(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
Vec<U>. Read moreSource§fn decrypt_into_array<U, const N: usize>(
&mut self,
iv: u64,
cipher: *const u8,
length_in_bytes: u64,
message: &mut [U; N],
) -> u64where
U: SmallUInt,
fn decrypt_into_array<U, const N: usize>(
&mut self,
iv: u64,
cipher: *const u8,
length_in_bytes: u64,
message: &mut [U; N],
) -> u64where
U: SmallUInt,
[U; N]. Read moreSource§fn encrypt_str(&mut self, iv: T, message: &str, cipher: *mut u8) -> u64
fn encrypt_str(&mut self, iv: T, message: &str, cipher: *mut u8) -> u64
str object without any padding in CFB (Cipher
FeedBack) mode. Read moreSource§fn encrypt_str_into_vec<U>(
&mut self,
iv: T,
message: &str,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn encrypt_str_into_vec<U>(
&mut self,
iv: T,
message: &str,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
str without any padding in CFB (Cipher FeedBack)
mode, and stores the encrypted data in Vec<U>. Read moreSource§fn encrypt_str_into_array<U, const N: usize>(
&mut self,
iv: T,
message: &str,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
fn encrypt_str_into_array<U, const N: usize>(
&mut self,
iv: T,
message: &str,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
str object without any padding in CFB (Cipher
FeedBack) mode, and stores the encrypted data in array [U; N]. Read moreSource§fn encrypt_string(&mut self, iv: T, message: &String, cipher: *mut u8) -> u64
fn encrypt_string(&mut self, iv: T, message: &String, cipher: *mut u8) -> u64
String object without any padding
in CFB (Cipher FeedBack) mode. Read moreSource§fn encrypt_string_into_vec<U>(
&mut self,
iv: T,
message: &String,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn encrypt_string_into_vec<U>(
&mut self,
iv: T,
message: &String,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
String object without any padding in
CFB (Cipher FeedBack) mode, and stores the encrypted data in Vec<U>. Read moreSource§fn encrypt_string_into_array<U, const N: usize>(
&mut self,
iv: T,
message: &String,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
fn encrypt_string_into_array<U, const N: usize>(
&mut self,
iv: T,
message: &String,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
String object without any padding in CFB
(Cipher FeedBack) mode, and stores the encrypted data in array [U; N]. Read moreSource§fn encrypt_vec<U>(&mut self, iv: T, message: &Vec<U>, cipher: *mut u8) -> u64where
U: SmallUInt,
fn encrypt_vec<U>(&mut self, iv: T, message: &Vec<U>, cipher: *mut u8) -> u64where
U: SmallUInt,
Vec<U> object without any padding
in CFB (Cipher FeedBack) mode. Read moreSource§fn encrypt_vec_into_vec<U, V>(
&mut self,
iv: T,
message: &Vec<U>,
cipher: &mut Vec<V>,
) -> u64
fn encrypt_vec_into_vec<U, V>( &mut self, iv: T, message: &Vec<U>, cipher: &mut Vec<V>, ) -> u64
Vec<U> object without any padding in
CFB (Cipher FeedBack) mode, and stores the encrypted data in Vec<V>. Read moreSource§fn encrypt_vec_into_array<U, V, const N: usize>(
&mut self,
iv: T,
message: &Vec<U>,
cipher: &mut [V; N],
) -> u64
fn encrypt_vec_into_array<U, V, const N: usize>( &mut self, iv: T, message: &Vec<U>, cipher: &mut [V; N], ) -> u64
Vec<U> object without any padding in CFB
(Cipher FeedBack) mode, and stores the encrypted data in array [V; N]. Read moreSource§fn encrypt_array<U, const N: usize>(
&mut self,
iv: T,
message: &[U; N],
cipher: *mut u8,
) -> u64where
U: SmallUInt,
fn encrypt_array<U, const N: usize>(
&mut self,
iv: T,
message: &[U; N],
cipher: *mut u8,
) -> u64where
U: SmallUInt,
[U; N] object without any
padding in CFB (Cipher FeedBack) mode. Read moreSource§fn encrypt_array_into_vec<U, V, const N: usize>(
&mut self,
iv: T,
message: &[U; N],
cipher: &mut Vec<V>,
) -> u64
fn encrypt_array_into_vec<U, V, const N: usize>( &mut self, iv: T, message: &[U; N], cipher: &mut Vec<V>, ) -> u64
[U; N] object without any padding
in CFB (Cipher FeedBack) mode, and stores the encrypted data in Vec<V>. Read moreSource§fn encrypt_array_into_array<U, V, const N: usize, const M: usize>(
&mut self,
iv: T,
message: &[U; N],
cipher: &mut [V; M],
) -> u64
fn encrypt_array_into_array<U, V, const N: usize, const M: usize>( &mut self, iv: T, message: &[U; N], cipher: &mut [V; M], ) -> u64
[U; N] object without any padding
in CFB (Cipher FeedBack) mode, and stores the encrypted data
in array [V; M]. Read moreSource§fn decrypt_into_vec<U>(
&mut self,
iv: T,
cipher: *const u8,
length_in_bytes: u64,
message: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn decrypt_into_vec<U>(
&mut self,
iv: T,
cipher: *const u8,
length_in_bytes: u64,
message: &mut Vec<U>,
) -> u64where
U: SmallUInt,
Vec<U>. Read moreSource§fn decrypt_into_string(
&mut self,
iv: T,
cipher: *const u8,
length_in_bytes: u64,
message: &mut String,
) -> u64
fn decrypt_into_string( &mut self, iv: T, cipher: *const u8, length_in_bytes: u64, message: &mut String, ) -> u64
String. Read moreSource§fn decrypt_vec<U>(&mut self, iv: T, cipher: &Vec<U>, message: *mut u8) -> u64where
U: SmallUInt,
fn decrypt_vec<U>(&mut self, iv: T, cipher: &Vec<U>, message: *mut u8) -> u64where
U: SmallUInt,
Vec<U> object without any padding
in CFB (Cipher FeedBack) mode. Read moreSource§fn decrypt_vec_into_vec<U, V>(
&mut self,
iv: T,
cipher: &Vec<U>,
message: &mut Vec<V>,
) -> u64
fn decrypt_vec_into_vec<U, V>( &mut self, iv: T, cipher: &Vec<U>, message: &mut Vec<V>, ) -> u64
Vec<U> object without any padding in
CFB (Cipher FeedBack) mode, and stores the decrypted data in Vec<V>. Read moreSource§fn decrypt_vec_into_array<U, V, const N: usize>(
&mut self,
iv: T,
cipher: &Vec<U>,
message: &mut [V; N],
) -> u64
fn decrypt_vec_into_array<U, V, const N: usize>( &mut self, iv: T, cipher: &Vec<U>, message: &mut [V; N], ) -> u64
Vec<U> object without any padding in CFB
(Cipher FeedBack) mode, and stores the decrypted data in array [V; N]. Read moreSource§fn decrypt_vec_into_string<U>(
&mut self,
iv: T,
cipher: &Vec<U>,
message: &mut String,
) -> u64where
U: SmallUInt,
fn decrypt_vec_into_string<U>(
&mut self,
iv: T,
cipher: &Vec<U>,
message: &mut String,
) -> u64where
U: SmallUInt,
str without any padding in CFB (Cipher FeedBack)
mode, and stores the decrypted data in String. Read moreSource§fn decrypt_array<U, const N: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: *mut u8,
) -> u64where
U: SmallUInt,
fn decrypt_array<U, const N: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: *mut u8,
) -> u64where
U: SmallUInt,
[U; N] object without any padding
in CFB (Cipher FeedBack) mode. Read moreSource§fn decrypt_array_into_vec<U, V, const N: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: &mut Vec<V>,
) -> u64
fn decrypt_array_into_vec<U, V, const N: usize>( &mut self, iv: T, cipher: &[U; N], message: &mut Vec<V>, ) -> u64
[U; N] object without any padding
in CFB (Cipher FeedBack) mode, and stores the decrypted data in Vec<V>. Read moreSource§impl CTR<u64> for BigCryptor64
impl CTR<u64> for BigCryptor64
Source§fn encrypt(
&mut self,
nonce: u64,
message: *const u8,
length_in_bytes: u64,
cipher: *mut u8,
) -> u64
fn encrypt( &mut self, nonce: u64, message: *const u8, length_in_bytes: u64, cipher: *mut u8, ) -> u64
Source§fn encrypt_into_array<U, const N: usize>(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
fn encrypt_into_array<U, const N: usize>(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
[U; N]. Read moreSource§fn encrypt_into_vec<U>(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn encrypt_into_vec<U>(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
Vec<U>. Read moreSource§fn decrypt_into_array<U, const N: usize>(
&mut self,
iv: u64,
cipher: *const u8,
length_in_bytes: u64,
message: &mut [U; N],
) -> u64where
U: SmallUInt,
fn decrypt_into_array<U, const N: usize>(
&mut self,
iv: u64,
cipher: *const u8,
length_in_bytes: u64,
message: &mut [U; N],
) -> u64where
U: SmallUInt,
[U; N]. Read moreSource§fn encrypt_str(&mut self, nonce: T, message: &str, cipher: *mut u8) -> u64
fn encrypt_str(&mut self, nonce: T, message: &str, cipher: *mut u8) -> u64
str object without any padding in CTR (CounTeR) mode. Read moreSource§fn encrypt_str_into_vec<U>(
&mut self,
nonce: T,
message: &str,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn encrypt_str_into_vec<U>(
&mut self,
nonce: T,
message: &str,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
str without any padding in CTR (CounTeR)
mode, and stores the encrypted data in Vec<U>. Read moreSource§fn encrypt_str_into_array<U, const N: usize>(
&mut self,
nonce: T,
message: &str,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
fn encrypt_str_into_array<U, const N: usize>(
&mut self,
nonce: T,
message: &str,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
str object without any padding in CTR (CounTeR) mode, and stores the encrypted data in array [U; N]. Read moreSource§fn encrypt_string(&mut self, nonce: T, message: &String, cipher: *mut u8) -> u64
fn encrypt_string(&mut self, nonce: T, message: &String, cipher: *mut u8) -> u64
String object without any padding
in CTR (CounTeR) mode. Read moreSource§fn encrypt_string_into_vec<U>(
&mut self,
nonce: T,
message: &String,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn encrypt_string_into_vec<U>(
&mut self,
nonce: T,
message: &String,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
String object without any padding in
CTR (CounTeR) mode, and stores the encrypted data in Vec<U>. Read moreSource§fn encrypt_string_into_array<U, const N: usize>(
&mut self,
nonce: T,
message: &String,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
fn encrypt_string_into_array<U, const N: usize>(
&mut self,
nonce: T,
message: &String,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
String object without any padding in CTR
(CounTeR) mode, and stores the encrypted data in array [U; N]. Read moreSource§fn encrypt_vec<U>(&mut self, nonce: T, message: &Vec<U>, cipher: *mut u8) -> u64where
U: SmallUInt,
fn encrypt_vec<U>(&mut self, nonce: T, message: &Vec<U>, cipher: *mut u8) -> u64where
U: SmallUInt,
Vec<U> object without any padding
in CTR (CounTeR) mode. Read moreSource§fn encrypt_vec_into_vec<U, V>(
&mut self,
nonce: T,
message: &Vec<U>,
cipher: &mut Vec<V>,
) -> u64
fn encrypt_vec_into_vec<U, V>( &mut self, nonce: T, message: &Vec<U>, cipher: &mut Vec<V>, ) -> u64
Vec<U> object without any padding in
CTR (CounTeR) mode, and stores the encrypted data in Vec<V>. Read moreSource§fn encrypt_vec_into_array<U, V, const N: usize>(
&mut self,
nonce: T,
message: &Vec<U>,
cipher: &mut [V; N],
) -> u64
fn encrypt_vec_into_array<U, V, const N: usize>( &mut self, nonce: T, message: &Vec<U>, cipher: &mut [V; N], ) -> u64
Vec<U> object without any padding in CTR
(CounTeR) mode, and stores the encrypted data in array [V; N]. Read moreSource§fn encrypt_array<U, const N: usize>(
&mut self,
nonce: T,
message: &[U; N],
cipher: *mut u8,
) -> u64where
U: SmallUInt,
fn encrypt_array<U, const N: usize>(
&mut self,
nonce: T,
message: &[U; N],
cipher: *mut u8,
) -> u64where
U: SmallUInt,
[U; N] object without any
padding in CTR (CounTeR) mode. Read moreSource§fn encrypt_array_into_vec<U, V, const N: usize>(
&mut self,
nonce: T,
message: &[U; N],
cipher: &mut Vec<V>,
) -> u64
fn encrypt_array_into_vec<U, V, const N: usize>( &mut self, nonce: T, message: &[U; N], cipher: &mut Vec<V>, ) -> u64
[U; N] object without any padding
in CTR (CounTeR) mode, and stores the encrypted data in Vec<V>. Read moreSource§fn encrypt_array_into_array<U, V, const N: usize, const M: usize>(
&mut self,
nonce: T,
message: &[U; N],
cipher: &mut [V; M],
) -> u64
fn encrypt_array_into_array<U, V, const N: usize, const M: usize>( &mut self, nonce: T, message: &[U; N], cipher: &mut [V; M], ) -> u64
[U; N] object without any padding
in CTR (CounTeR) mode, and stores the encrypted data
in array [V; M]. Read moreSource§fn decrypt(
&mut self,
nonce: T,
cipher: *const u8,
length_in_bytes: u64,
message: *mut u8,
) -> u64
fn decrypt( &mut self, nonce: T, cipher: *const u8, length_in_bytes: u64, message: *mut u8, ) -> u64
Source§fn decrypt_into_vec<U>(
&mut self,
nonce: T,
cipher: *const u8,
length_in_bytes: u64,
message: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn decrypt_into_vec<U>(
&mut self,
nonce: T,
cipher: *const u8,
length_in_bytes: u64,
message: &mut Vec<U>,
) -> u64where
U: SmallUInt,
Vec<U>. Read moreSource§fn decrypt_into_string(
&mut self,
nonce: T,
cipher: *const u8,
length_in_bytes: u64,
message: &mut String,
) -> u64
fn decrypt_into_string( &mut self, nonce: T, cipher: *const u8, length_in_bytes: u64, message: &mut String, ) -> u64
String. Read moreSource§fn decrypt_vec<U>(&mut self, nonce: T, cipher: &Vec<U>, message: *mut u8) -> u64where
U: SmallUInt,
fn decrypt_vec<U>(&mut self, nonce: T, cipher: &Vec<U>, message: *mut u8) -> u64where
U: SmallUInt,
Vec<U> object without any padding
in CTR (CounTeR) mode. Read moreSource§fn decrypt_vec_into_vec<U, V>(
&mut self,
nonce: T,
cipher: &Vec<U>,
message: &mut Vec<V>,
) -> u64
fn decrypt_vec_into_vec<U, V>( &mut self, nonce: T, cipher: &Vec<U>, message: &mut Vec<V>, ) -> u64
Vec<U> object without any padding in
CTR (CounTeR) mode, and stores the decrypted data in Vec<V>. Read moreSource§fn decrypt_vec_into_array<U, V, const N: usize>(
&mut self,
nonce: T,
cipher: &Vec<U>,
message: &mut [V; N],
) -> u64
fn decrypt_vec_into_array<U, V, const N: usize>( &mut self, nonce: T, cipher: &Vec<U>, message: &mut [V; N], ) -> u64
Vec<U> object without any padding in CTR
(CounTeR) mode, and stores the decrypted data in array [V; N]. Read moreSource§fn decrypt_vec_into_string<U>(
&mut self,
nonce: T,
cipher: &Vec<U>,
message: &mut String,
) -> u64where
U: SmallUInt,
fn decrypt_vec_into_string<U>(
&mut self,
nonce: T,
cipher: &Vec<U>,
message: &mut String,
) -> u64where
U: SmallUInt,
str without any padding in CTR (CounTeR)
mode, and stores the decrypted data in String. Read moreSource§fn decrypt_array<U, const N: usize>(
&mut self,
nonce: T,
cipher: &[U; N],
message: *mut u8,
) -> u64where
U: SmallUInt,
fn decrypt_array<U, const N: usize>(
&mut self,
nonce: T,
cipher: &[U; N],
message: *mut u8,
) -> u64where
U: SmallUInt,
[U; N] object without any padding
in CTR (CounTeR) mode. Read moreSource§fn decrypt_array_into_vec<U, V, const N: usize>(
&mut self,
nonce: T,
cipher: &[U; N],
message: &mut Vec<V>,
) -> u64
fn decrypt_array_into_vec<U, V, const N: usize>( &mut self, nonce: T, cipher: &[U; N], message: &mut Vec<V>, ) -> u64
[U; N] object without any padding
in CTR (CounTeR) mode, and stores the decrypted data in Vec<V>. Read moreSource§impl ECB_ISO<u64> for BigCryptor64
impl ECB_ISO<u64> for BigCryptor64
Source§fn encrypt(
&mut self,
message: *const u8,
length_in_bytes: u64,
cipher: *mut u8,
) -> u64
fn encrypt( &mut self, message: *const u8, length_in_bytes: u64, cipher: *mut u8, ) -> u64
Source§fn decrypt(
&mut self,
cipher: *const u8,
length_in_bytes: u64,
message: *mut u8,
) -> u64
fn decrypt( &mut self, cipher: *const u8, length_in_bytes: u64, message: *mut u8, ) -> u64
Source§fn encrypt_into_array<U, const N: usize>(
&mut self,
message: *const u8,
length_in_bytes: u64,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
fn encrypt_into_array<U, const N: usize>(
&mut self,
message: *const u8,
length_in_bytes: u64,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
[U; N]. Read moreSource§fn encrypt_into_vec<U>(
&mut self,
message: *const u8,
length_in_bytes: u64,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn encrypt_into_vec<U>(
&mut self,
message: *const u8,
length_in_bytes: u64,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
Vec<U>. Read moreSource§fn decrypt_into_array<U, const N: usize>(
&mut self,
cipher: *const u8,
length_in_bytes: u64,
message: &mut [U; N],
) -> u64where
U: SmallUInt,
fn decrypt_into_array<U, const N: usize>(
&mut self,
cipher: *const u8,
length_in_bytes: u64,
message: &mut [U; N],
) -> u64where
U: SmallUInt,
[U; N]. Read moreSource§fn encrypt_str(&mut self, message: &str, cipher: *mut u8) -> u64
fn encrypt_str(&mut self, message: &str, cipher: *mut u8) -> u64
str object with the padding defined
according to ISO 7816-4 in ECB (Electronic CodeBook) mode. Read moreSource§fn encrypt_str_into_vec<U>(&mut self, message: &str, cipher: &mut Vec<U>) -> u64where
U: SmallUInt,
fn encrypt_str_into_vec<U>(&mut self, message: &str, cipher: &mut Vec<U>) -> u64where
U: SmallUInt,
str with the padding defined according to
ISO 7816-4 in ECB (Electronic CodeBook) mode, and stores the
encrypted data in Vec<U>. Read moreSource§fn encrypt_str_into_array<U, const N: usize>(
&mut self,
message: &str,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
fn encrypt_str_into_array<U, const N: usize>(
&mut self,
message: &str,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
str object with the padding defined
according to ISO 7816-4 in ECB (Electronic CodeBook) mode,
and stores the encrypted data in array [U; N]. Read moreSource§fn encrypt_string(&mut self, message: &String, cipher: *mut u8) -> u64
fn encrypt_string(&mut self, message: &String, cipher: *mut u8) -> u64
String object with the padding
according to ISO 7816-4 in ECB (Electronic CodeBook) mode. Read moreSource§fn encrypt_string_into_vec<U>(
&mut self,
message: &String,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn encrypt_string_into_vec<U>(
&mut self,
message: &String,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
String object with the padding
according to ISO 7816-4 in ECB (Electronic CodeBook) mode,
and stores the encrypted data in Vec<U>. Read moreSource§fn encrypt_string_into_array<U, const N: usize>(
&mut self,
message: &String,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
fn encrypt_string_into_array<U, const N: usize>(
&mut self,
message: &String,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
String object with the padding
according to ISO 7816-4 in ECB (Electronic CodeBook) mode,
and stores the encrypted data in array [U; N]. Read moreSource§fn encrypt_vec<U>(&mut self, message: &Vec<U>, cipher: *mut u8) -> u64where
U: SmallUInt,
fn encrypt_vec<U>(&mut self, message: &Vec<U>, cipher: *mut u8) -> u64where
U: SmallUInt,
Vec<U> object with the padding defined
according to ISO 7816-4 in ECB (Electronic CodeBook) mode. Read moreSource§fn encrypt_vec_into_vec<U, V>(
&mut self,
message: &Vec<U>,
cipher: &mut Vec<V>,
) -> u64
fn encrypt_vec_into_vec<U, V>( &mut self, message: &Vec<U>, cipher: &mut Vec<V>, ) -> u64
Vec<U> object with the padding defined
according to ISO 7816-4 in ECB (Electronic CodeBook) mode, and
stores the encrypted data in Vec<V>. Read moreSource§fn encrypt_vec_into_array<U, V, const N: usize>(
&mut self,
message: &Vec<U>,
cipher: &mut [V; N],
) -> u64
fn encrypt_vec_into_array<U, V, const N: usize>( &mut self, message: &Vec<U>, cipher: &mut [V; N], ) -> u64
Vec<U> object with the padding defined
according to ISO 7816-4 in ECB (Electronic CodeBook) mode, and
stores the encrypted data in array [V; N]. Read moreSource§fn encrypt_array<U, const N: usize>(
&mut self,
message: &[U; N],
cipher: *mut u8,
) -> u64where
U: SmallUInt,
fn encrypt_array<U, const N: usize>(
&mut self,
message: &[U; N],
cipher: *mut u8,
) -> u64where
U: SmallUInt,
[U; N] object with the padding
defined according to ISO 7816-4 in ECB (Electronic CodeBook) mode. Read moreSource§fn encrypt_array_into_vec<U, V, const N: usize>(
&mut self,
message: &[U; N],
cipher: &mut Vec<V>,
) -> u64
fn encrypt_array_into_vec<U, V, const N: usize>( &mut self, message: &[U; N], cipher: &mut Vec<V>, ) -> u64
[U; N] object with the padding
according to ISO 7816-4 in ECB (Electronic CodeBook) mode, and stores the
encrypted data in Vec<V>. Read moreSource§fn encrypt_array_into_array<U, V, const N: usize, const M: usize>(
&mut self,
message: &[U; N],
cipher: &mut [V; M],
) -> u64
fn encrypt_array_into_array<U, V, const N: usize, const M: usize>( &mut self, message: &[U; N], cipher: &mut [V; M], ) -> u64
[U; N] object with the padding
according to ISO 7816-4 in ECB (Electronic CodeBook) mode, and stores the
encrypted data in array [V; M]. Read moreSource§fn decrypt_into_vec<U>(
&mut self,
cipher: *const u8,
length_in_bytes: u64,
message: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn decrypt_into_vec<U>(
&mut self,
cipher: *const u8,
length_in_bytes: u64,
message: &mut Vec<U>,
) -> u64where
U: SmallUInt,
Vec<U>. Read moreSource§fn decrypt_into_string(
&mut self,
cipher: *const u8,
length_in_bytes: u64,
message: &mut String,
) -> u64
fn decrypt_into_string( &mut self, cipher: *const u8, length_in_bytes: u64, message: &mut String, ) -> u64
String. Read moreSource§fn decrypt_vec<U>(&mut self, cipher: &Vec<U>, message: *mut u8) -> u64where
U: SmallUInt,
fn decrypt_vec<U>(&mut self, cipher: &Vec<U>, message: *mut u8) -> u64where
U: SmallUInt,
Vec<U> object with the padding defined
according to ISO 7816-4 in ECB (Electronic CodeBook) mode. Read moreSource§fn decrypt_vec_into_vec<U, V>(
&mut self,
cipher: &Vec<U>,
message: &mut Vec<V>,
) -> u64
fn decrypt_vec_into_vec<U, V>( &mut self, cipher: &Vec<U>, message: &mut Vec<V>, ) -> u64
Vec<U> object with the padding defined
according to ISO 7816-4 in ECB (Electronic CodeBook) mode, and
stores the decrypted data in Vec<V>. Read moreSource§fn decrypt_vec_into_array<U, V, const N: usize>(
&mut self,
cipher: &Vec<U>,
message: &mut [V; N],
) -> u64
fn decrypt_vec_into_array<U, V, const N: usize>( &mut self, cipher: &Vec<U>, message: &mut [V; N], ) -> u64
Vec<U> object with the padding defined
according to ISO 7816-4 in ECB (Electronic CodeBook) mode, and
stores the decrypted data in array [V; N]. Read moreSource§fn decrypt_vec_into_string<U>(
&mut self,
cipher: &Vec<U>,
message: &mut String,
) -> u64where
U: SmallUInt,
fn decrypt_vec_into_string<U>(
&mut self,
cipher: &Vec<U>,
message: &mut String,
) -> u64where
U: SmallUInt,
str with the padding defined according to
ISO 7816-4 in ECB (Electronic CodeBook) mode, and stores the
decrypted data in String. Read moreSource§fn decrypt_array<U, const N: usize>(
&mut self,
cipher: &[U; N],
message: *mut u8,
) -> u64where
U: SmallUInt,
fn decrypt_array<U, const N: usize>(
&mut self,
cipher: &[U; N],
message: *mut u8,
) -> u64where
U: SmallUInt,
[U; N] object with the padding
defined according to ISO 7816-4 in ECB (Electronic CodeBook) mode. Read moreSource§fn decrypt_array_into_vec<U, V, const N: usize>(
&mut self,
cipher: &[U; N],
message: &mut Vec<V>,
) -> u64
fn decrypt_array_into_vec<U, V, const N: usize>( &mut self, cipher: &[U; N], message: &mut Vec<V>, ) -> u64
[U; N] object with the padding
defined according to ISO 7816-4 in ECB (Electronic CodeBook) mode,
and stores the decrypted data in Vec<V>. Read moreSource§fn decrypt_array_into_array<U, V, const N: usize, const M: usize>(
&mut self,
cipher: &[U; N],
message: &mut [V; M],
) -> u64
fn decrypt_array_into_array<U, V, const N: usize, const M: usize>( &mut self, cipher: &[U; N], message: &mut [V; M], ) -> u64
[U; N] object with the padding
defined according to ISO 7816-4 in ECB (Electronic CodeBook) mode,
and stores the decrypted data in array [V; M]. Read moreSource§fn decrypt_array_into_string<U, const N: usize>(
&mut self,
cipher: &[U; N],
message: &mut String,
) -> u64where
U: SmallUInt,
fn decrypt_array_into_string<U, const N: usize>(
&mut self,
cipher: &[U; N],
message: &mut String,
) -> u64where
U: SmallUInt,
[U; N] object with the padding
defined according to ISO 7816-4 in ECB (Electronic CodeBook) mode,
and stores the decrypted data in String. Read moreSource§impl ECB_PKCS7<u64> for BigCryptor64
impl ECB_PKCS7<u64> for BigCryptor64
Source§fn encrypt(
&mut self,
message: *const u8,
length_in_bytes: u64,
cipher: *mut u8,
) -> u64
fn encrypt( &mut self, message: *const u8, length_in_bytes: u64, cipher: *mut u8, ) -> u64
Source§fn decrypt(
&mut self,
cipher: *const u8,
length_in_bytes: u64,
message: *mut u8,
) -> u64
fn decrypt( &mut self, cipher: *const u8, length_in_bytes: u64, message: *mut u8, ) -> u64
Source§fn encrypt_into_array<U, const N: usize>(
&mut self,
message: *const u8,
length_in_bytes: u64,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
fn encrypt_into_array<U, const N: usize>(
&mut self,
message: *const u8,
length_in_bytes: u64,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
[U; N]. Read moreSource§fn encrypt_into_vec<U>(
&mut self,
message: *const u8,
length_in_bytes: u64,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn encrypt_into_vec<U>(
&mut self,
message: *const u8,
length_in_bytes: u64,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
Vec<U>. Read moreSource§fn decrypt_into_array<U, const N: usize>(
&mut self,
cipher: *const u8,
length_in_bytes: u64,
message: &mut [U; N],
) -> u64where
U: SmallUInt,
fn decrypt_into_array<U, const N: usize>(
&mut self,
cipher: *const u8,
length_in_bytes: u64,
message: &mut [U; N],
) -> u64where
U: SmallUInt,
[U; N]. Read moreSource§fn encrypt_str(&mut self, message: &str, cipher: *mut u8) -> u64
fn encrypt_str(&mut self, message: &str, cipher: *mut u8) -> u64
str object with the padding defined
according to PKCS #7 in ECB (Electronic CodeBook) mode. Read moreSource§fn encrypt_str_into_vec<U>(&mut self, message: &str, cipher: &mut Vec<U>) -> u64where
U: SmallUInt,
fn encrypt_str_into_vec<U>(&mut self, message: &str, cipher: &mut Vec<U>) -> u64where
U: SmallUInt,
str with the padding defined according to
PKCS #7 in ECB (Electronic CodeBook) mode, and stores the
encrypted data in Vec<U>. Read moreSource§fn encrypt_str_into_array<U, const N: usize>(
&mut self,
message: &str,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
fn encrypt_str_into_array<U, const N: usize>(
&mut self,
message: &str,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
str object with the padding defined
according to PKCS #7 in ECB (Electronic CodeBook) mode,
and stores the encrypted data in array [U; N]. Read moreSource§fn encrypt_string(&mut self, message: &String, cipher: *mut u8) -> u64
fn encrypt_string(&mut self, message: &String, cipher: *mut u8) -> u64
String object with the padding
according to PKCS #7 in ECB (Electronic CodeBook) mode. Read moreSource§fn encrypt_string_into_vec<U>(
&mut self,
message: &String,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn encrypt_string_into_vec<U>(
&mut self,
message: &String,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
String object with the padding
according to PKCS #7 in ECB (Electronic CodeBook) mode,
and stores the encrypted data in Vec<U>. Read moreSource§fn encrypt_string_into_array<U, const N: usize>(
&mut self,
message: &String,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
fn encrypt_string_into_array<U, const N: usize>(
&mut self,
message: &String,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
String object with the padding
according to PKCS #7 in ECB (Electronic CodeBook) mode,
and stores the encrypted data in array [U; N]. Read moreSource§fn encrypt_vec<U>(&mut self, message: &Vec<U>, cipher: *mut u8) -> u64where
U: SmallUInt,
fn encrypt_vec<U>(&mut self, message: &Vec<U>, cipher: *mut u8) -> u64where
U: SmallUInt,
Vec<U> object with the padding defined
according to PKCS #7 in ECB (Electronic CodeBook) mode. Read moreSource§fn encrypt_vec_into_vec<U, V>(
&mut self,
message: &Vec<U>,
cipher: &mut Vec<V>,
) -> u64
fn encrypt_vec_into_vec<U, V>( &mut self, message: &Vec<U>, cipher: &mut Vec<V>, ) -> u64
Vec<U> object with the padding defined
according to PKCS #7 in ECB (Electronic CodeBook) mode, and
stores the encrypted data in Vec<V>. Read moreSource§fn encrypt_vec_into_array<U, V, const N: usize>(
&mut self,
message: &Vec<U>,
cipher: &mut [V; N],
) -> u64
fn encrypt_vec_into_array<U, V, const N: usize>( &mut self, message: &Vec<U>, cipher: &mut [V; N], ) -> u64
Vec<U> object with the padding defined
according to PKCS #7 in ECB (Electronic CodeBook) mode, and
stores the encrypted data in array [V; N]. Read moreSource§fn encrypt_array<U, const N: usize>(
&mut self,
message: &[U; N],
cipher: *mut u8,
) -> u64where
U: SmallUInt,
fn encrypt_array<U, const N: usize>(
&mut self,
message: &[U; N],
cipher: *mut u8,
) -> u64where
U: SmallUInt,
[U; N] object with the padding
defined according to PKCS #7 in ECB (Electronic CodeBook) mode. Read moreSource§fn encrypt_array_into_vec<U, V, const N: usize>(
&mut self,
message: &[U; N],
cipher: &mut Vec<V>,
) -> u64
fn encrypt_array_into_vec<U, V, const N: usize>( &mut self, message: &[U; N], cipher: &mut Vec<V>, ) -> u64
[U; N] object with the padding
according to PKCS #7 in ECB (Electronic CodeBook) mode, and stores the
encrypted data in Vec<V>. Read moreSource§fn encrypt_array_into_array<U, V, const N: usize, const M: usize>(
&mut self,
message: &[U; N],
cipher: &mut [V; M],
) -> u64
fn encrypt_array_into_array<U, V, const N: usize, const M: usize>( &mut self, message: &[U; N], cipher: &mut [V; M], ) -> u64
[U; N] object with the padding
according to PKCS #7 in ECB (Electronic CodeBook) mode, and stores the
encrypted data in array [V; M]. Read moreSource§fn decrypt_into_vec<U>(
&mut self,
cipher: *const u8,
length_in_bytes: u64,
message: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn decrypt_into_vec<U>(
&mut self,
cipher: *const u8,
length_in_bytes: u64,
message: &mut Vec<U>,
) -> u64where
U: SmallUInt,
Vec<U>. Read moreSource§fn decrypt_into_string(
&mut self,
cipher: *const u8,
length_in_bytes: u64,
message: &mut String,
) -> u64
fn decrypt_into_string( &mut self, cipher: *const u8, length_in_bytes: u64, message: &mut String, ) -> u64
String. Read moreSource§fn decrypt_vec<U>(&mut self, cipher: &Vec<U>, message: *mut u8) -> u64where
U: SmallUInt,
fn decrypt_vec<U>(&mut self, cipher: &Vec<U>, message: *mut u8) -> u64where
U: SmallUInt,
Vec<U> object with the padding defined
according to PKCS #7 in ECB (Electronic CodeBook) mode. Read moreSource§fn decrypt_vec_into_vec<U, V>(
&mut self,
cipher: &Vec<U>,
message: &mut Vec<V>,
) -> u64
fn decrypt_vec_into_vec<U, V>( &mut self, cipher: &Vec<U>, message: &mut Vec<V>, ) -> u64
Vec<U> object with the padding defined
according to PKCS #7 in ECB (Electronic CodeBook) mode, and
stores the decrypted data in Vec<V>. Read moreSource§fn decrypt_vec_into_array<U, V, const N: usize>(
&mut self,
cipher: &Vec<U>,
message: &mut [V; N],
) -> u64
fn decrypt_vec_into_array<U, V, const N: usize>( &mut self, cipher: &Vec<U>, message: &mut [V; N], ) -> u64
Vec<U> object with the padding defined
according to PKCS #7 in ECB (Electronic CodeBook) mode, and
stores the decrypted data in array [V; N]. Read moreSource§fn decrypt_vec_into_string<U>(
&mut self,
cipher: &Vec<U>,
message: &mut String,
) -> u64where
U: SmallUInt,
fn decrypt_vec_into_string<U>(
&mut self,
cipher: &Vec<U>,
message: &mut String,
) -> u64where
U: SmallUInt,
str with the padding defined according to
PKCS #7 in ECB (Electronic CodeBook) mode, and stores the
decrypted data in String. Read moreSource§fn decrypt_array<U, const N: usize>(
&mut self,
cipher: &[U; N],
message: *mut u8,
) -> u64where
U: SmallUInt,
fn decrypt_array<U, const N: usize>(
&mut self,
cipher: &[U; N],
message: *mut u8,
) -> u64where
U: SmallUInt,
[U; N] object with the padding
defined according to PKCS #7 in ECB (Electronic CodeBook) mode. Read moreSource§fn decrypt_array_into_vec<U, V, const N: usize>(
&mut self,
cipher: &[U; N],
message: &mut Vec<V>,
) -> u64
fn decrypt_array_into_vec<U, V, const N: usize>( &mut self, cipher: &[U; N], message: &mut Vec<V>, ) -> u64
[U; N] object with the padding
defined according to PKCS #7 in ECB (Electronic CodeBook) mode,
and stores the decrypted data in Vec<V>. Read moreSource§fn decrypt_array_into_array<U, V, const N: usize, const M: usize>(
&mut self,
cipher: &[U; N],
message: &mut [V; M],
) -> u64
fn decrypt_array_into_array<U, V, const N: usize, const M: usize>( &mut self, cipher: &[U; N], message: &mut [V; M], ) -> u64
[U; N] object with the padding
defined according to PKCS #7 in ECB (Electronic CodeBook) mode,
and stores the decrypted data in array [V; M]. Read moreSource§fn decrypt_array_into_string<U, const N: usize>(
&mut self,
cipher: &[U; N],
message: &mut String,
) -> u64where
U: SmallUInt,
fn decrypt_array_into_string<U, const N: usize>(
&mut self,
cipher: &[U; N],
message: &mut String,
) -> u64where
U: SmallUInt,
[U; N] object with the padding
defined according to PKCS #7 in ECB (Electronic CodeBook) mode,
and stores the decrypted data in String. Read moreSource§impl OFB<u64> for BigCryptor64
impl OFB<u64> for BigCryptor64
Source§fn encrypt(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: *mut u8,
) -> u64
fn encrypt( &mut self, iv: u64, message: *const u8, length_in_bytes: u64, cipher: *mut u8, ) -> u64
Source§fn encrypt_into_array<U, const N: usize>(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
fn encrypt_into_array<U, const N: usize>(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
[U; N]. Read moreSource§fn encrypt_into_vec<U>(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn encrypt_into_vec<U>(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
Vec<U>. Read moreSource§fn decrypt_into_array<U, const N: usize>(
&mut self,
iv: u64,
cipher: *const u8,
length_in_bytes: u64,
message: &mut [U; N],
) -> u64where
U: SmallUInt,
fn decrypt_into_array<U, const N: usize>(
&mut self,
iv: u64,
cipher: *const u8,
length_in_bytes: u64,
message: &mut [U; N],
) -> u64where
U: SmallUInt,
[U; N]. Read moreSource§fn encrypt_str(&mut self, iv: T, message: &str, cipher: *mut u8) -> u64
fn encrypt_str(&mut self, iv: T, message: &str, cipher: *mut u8) -> u64
str object without any padding in OFB (Output
FeedBack) mode. Read moreSource§fn encrypt_str_into_vec<U>(
&mut self,
iv: T,
message: &str,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn encrypt_str_into_vec<U>(
&mut self,
iv: T,
message: &str,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
str without any padding in OFB (Output FeedBack)
mode, and stores the encrypted data in Vec<U>. Read moreSource§fn encrypt_str_into_array<U, const N: usize>(
&mut self,
iv: T,
message: &str,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
fn encrypt_str_into_array<U, const N: usize>(
&mut self,
iv: T,
message: &str,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
str object without any padding in OFB (Output
FeedBack) mode, and stores the encrypted data in array [U; N]. Read moreSource§fn encrypt_string(&mut self, iv: T, message: &String, cipher: *mut u8) -> u64
fn encrypt_string(&mut self, iv: T, message: &String, cipher: *mut u8) -> u64
String object without any padding
in OFB (Output FeedBack) mode. Read moreSource§fn encrypt_string_into_vec<U>(
&mut self,
iv: T,
message: &String,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn encrypt_string_into_vec<U>(
&mut self,
iv: T,
message: &String,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
String object without any padding in
OFB (Output FeedBack) mode, and stores the encrypted data in Vec<U>. Read moreSource§fn encrypt_string_into_array<U, const N: usize>(
&mut self,
iv: T,
message: &String,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
fn encrypt_string_into_array<U, const N: usize>(
&mut self,
iv: T,
message: &String,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
String object without any padding in OFB
(Output FeedBack) mode, and stores the encrypted data in array [U; N]. Read moreSource§fn encrypt_vec<U>(&mut self, iv: T, message: &Vec<U>, cipher: *mut u8) -> u64where
U: SmallUInt,
fn encrypt_vec<U>(&mut self, iv: T, message: &Vec<U>, cipher: *mut u8) -> u64where
U: SmallUInt,
Vec<U> object without any padding
in OFB (Output FeedBack) mode. Read moreSource§fn encrypt_vec_into_vec<U, V>(
&mut self,
iv: T,
message: &Vec<U>,
cipher: &mut Vec<V>,
) -> u64
fn encrypt_vec_into_vec<U, V>( &mut self, iv: T, message: &Vec<U>, cipher: &mut Vec<V>, ) -> u64
Vec<U> object without any padding in
OFB (Output FeedBack) mode, and stores the encrypted data in Vec<V>. Read moreSource§fn encrypt_vec_into_array<U, V, const N: usize>(
&mut self,
iv: T,
message: &Vec<U>,
cipher: &mut [V; N],
) -> u64
fn encrypt_vec_into_array<U, V, const N: usize>( &mut self, iv: T, message: &Vec<U>, cipher: &mut [V; N], ) -> u64
Vec<U> object without any padding in OFB
(Output FeedBack) mode, and stores the encrypted data in array [V; N]. Read moreSource§fn encrypt_array<U, const N: usize>(
&mut self,
iv: T,
message: &[U; N],
cipher: *mut u8,
) -> u64where
U: SmallUInt,
fn encrypt_array<U, const N: usize>(
&mut self,
iv: T,
message: &[U; N],
cipher: *mut u8,
) -> u64where
U: SmallUInt,
[U; N] object without any
padding in OFB (Output FeedBack) mode. Read moreSource§fn encrypt_array_into_vec<U, V, const N: usize>(
&mut self,
iv: T,
message: &[U; N],
cipher: &mut Vec<V>,
) -> u64
fn encrypt_array_into_vec<U, V, const N: usize>( &mut self, iv: T, message: &[U; N], cipher: &mut Vec<V>, ) -> u64
[U; N] object without any padding
in OFB (Output FeedBack) mode, and stores the encrypted data in Vec<V>. Read moreSource§fn encrypt_array_into_array<U, V, const N: usize, const M: usize>(
&mut self,
iv: T,
message: &[U; N],
cipher: &mut [V; M],
) -> u64
fn encrypt_array_into_array<U, V, const N: usize, const M: usize>( &mut self, iv: T, message: &[U; N], cipher: &mut [V; M], ) -> u64
[U; N] object without any padding
in OFB (Output FeedBack) mode, and stores the encrypted data
in array [V; M]. Read moreSource§fn decrypt(
&mut self,
iv: T,
cipher: *const u8,
length_in_bytes: u64,
message: *mut u8,
) -> u64
fn decrypt( &mut self, iv: T, cipher: *const u8, length_in_bytes: u64, message: *mut u8, ) -> u64
Source§fn decrypt_into_vec<U>(
&mut self,
iv: T,
cipher: *const u8,
length_in_bytes: u64,
message: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn decrypt_into_vec<U>(
&mut self,
iv: T,
cipher: *const u8,
length_in_bytes: u64,
message: &mut Vec<U>,
) -> u64where
U: SmallUInt,
Vec<U>. Read moreSource§fn decrypt_into_string(
&mut self,
iv: T,
cipher: *const u8,
length_in_bytes: u64,
message: &mut String,
) -> u64
fn decrypt_into_string( &mut self, iv: T, cipher: *const u8, length_in_bytes: u64, message: &mut String, ) -> u64
String. Read moreSource§fn decrypt_vec<U>(&mut self, iv: T, cipher: &Vec<U>, message: *mut u8) -> u64where
U: SmallUInt,
fn decrypt_vec<U>(&mut self, iv: T, cipher: &Vec<U>, message: *mut u8) -> u64where
U: SmallUInt,
Vec<U> object without any padding
in OFB (Output FeedBack) mode. Read moreSource§fn decrypt_vec_into_vec<U, V>(
&mut self,
iv: T,
cipher: &Vec<U>,
message: &mut Vec<V>,
) -> u64
fn decrypt_vec_into_vec<U, V>( &mut self, iv: T, cipher: &Vec<U>, message: &mut Vec<V>, ) -> u64
Vec<U> object without any padding in
OFB (Output FeedBack) mode, and stores the decrypted data in Vec<V>. Read moreSource§fn decrypt_vec_into_array<U, V, const N: usize>(
&mut self,
iv: T,
cipher: &Vec<U>,
message: &mut [V; N],
) -> u64
fn decrypt_vec_into_array<U, V, const N: usize>( &mut self, iv: T, cipher: &Vec<U>, message: &mut [V; N], ) -> u64
Vec<U> object without any padding in OFB
(Output FeedBack) mode, and stores the decrypted data in array [V; N]. Read moreSource§fn decrypt_vec_into_string<U>(
&mut self,
iv: T,
cipher: &Vec<U>,
message: &mut String,
) -> u64where
U: SmallUInt,
fn decrypt_vec_into_string<U>(
&mut self,
iv: T,
cipher: &Vec<U>,
message: &mut String,
) -> u64where
U: SmallUInt,
str without any padding in OFB (Output FeedBack)
mode, and stores the decrypted data in String. Read moreSource§fn decrypt_array<U, const N: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: *mut u8,
) -> u64where
U: SmallUInt,
fn decrypt_array<U, const N: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: *mut u8,
) -> u64where
U: SmallUInt,
[U; N] object without any padding
in OFB (Output FeedBack) mode. Read moreSource§fn decrypt_array_into_vec<U, V, const N: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: &mut Vec<V>,
) -> u64
fn decrypt_array_into_vec<U, V, const N: usize>( &mut self, iv: T, cipher: &[U; N], message: &mut Vec<V>, ) -> u64
[U; N] object without any padding
in OFB (Output FeedBack) mode, and stores the decrypted data in Vec<V>. Read moreSource§impl PCBC_ISO<u64> for BigCryptor64
impl PCBC_ISO<u64> for BigCryptor64
Source§fn encrypt(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: *mut u8,
) -> u64
fn encrypt( &mut self, iv: u64, message: *const u8, length_in_bytes: u64, cipher: *mut u8, ) -> u64
Source§fn decrypt(
&mut self,
iv: u64,
cipher: *const u8,
length_in_bytes: u64,
message: *mut u8,
) -> u64
fn decrypt( &mut self, iv: u64, cipher: *const u8, length_in_bytes: u64, message: *mut u8, ) -> u64
Source§fn encrypt_into_array<U, const N: usize>(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
fn encrypt_into_array<U, const N: usize>(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
[U; N]. Read moreSource§fn encrypt_into_vec<U>(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn encrypt_into_vec<U>(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
Vec<U>. Read moreSource§fn decrypt_into_array<U, const N: usize>(
&mut self,
iv: u64,
cipher: *const u8,
length_in_bytes: u64,
message: &mut [U; N],
) -> u64where
U: SmallUInt,
fn decrypt_into_array<U, const N: usize>(
&mut self,
iv: u64,
cipher: *const u8,
length_in_bytes: u64,
message: &mut [U; N],
) -> u64where
U: SmallUInt,
[U; N]. Read moreSource§fn encrypt_str(&mut self, iv: T, message: &str, cipher: *mut u8) -> u64
fn encrypt_str(&mut self, iv: T, message: &str, cipher: *mut u8) -> u64
str object with the padding defined
according to ISO 7816-4 in PCBC (Propagation Cipher-Block Chaining) mode. Read moreSource§fn encrypt_str_into_vec<U>(
&mut self,
iv: T,
message: &str,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn encrypt_str_into_vec<U>(
&mut self,
iv: T,
message: &str,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
str with the padding defined according to
ISO 7816-4 in PCBC (Propagation Cipher-Block Chaining) mode, and stores the
encrypted data in Vec<U>. Read moreSource§fn encrypt_str_into_array<U, const N: usize>(
&mut self,
iv: T,
message: &str,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
fn encrypt_str_into_array<U, const N: usize>(
&mut self,
iv: T,
message: &str,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
str object with the padding defined
according to ISO 7816-4 in PCBC (Propagation Cipher-Block Chaining) mode,
and stores the encrypted data in array [U; N]. Read moreSource§fn encrypt_string(&mut self, iv: T, message: &String, cipher: *mut u8) -> u64
fn encrypt_string(&mut self, iv: T, message: &String, cipher: *mut u8) -> u64
String object with the padding
according to ISO 7816-4 in PCBC (Propagation Cipher-Block Chaining) mode. Read moreSource§fn encrypt_string_into_vec<U>(
&mut self,
iv: T,
message: &String,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn encrypt_string_into_vec<U>(
&mut self,
iv: T,
message: &String,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
String object with the padding
according to ISO 7816-4 in PCBC (Propagation Cipher-Block Chaining) mode,
and stores the encrypted data in Vec<U>. Read moreSource§fn encrypt_string_into_array<U, const N: usize>(
&mut self,
iv: T,
message: &String,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
fn encrypt_string_into_array<U, const N: usize>(
&mut self,
iv: T,
message: &String,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
String object with the padding
according to ISO 7816-4 in PCBC (Propagation Cipher-Block Chaining) mode,
and stores the encrypted data in array [U; N]. Read moreSource§fn encrypt_vec<U>(&mut self, iv: T, message: &Vec<U>, cipher: *mut u8) -> u64where
U: SmallUInt,
fn encrypt_vec<U>(&mut self, iv: T, message: &Vec<U>, cipher: *mut u8) -> u64where
U: SmallUInt,
Vec<U> object with the padding defined
according to ISO 7816-4 in PCBC (Propagation Cipher-Block Chaining) mode. Read moreSource§fn encrypt_vec_into_vec<U, V>(
&mut self,
iv: T,
message: &Vec<U>,
cipher: &mut Vec<V>,
) -> u64
fn encrypt_vec_into_vec<U, V>( &mut self, iv: T, message: &Vec<U>, cipher: &mut Vec<V>, ) -> u64
Vec<U> object with the padding defined
according to ISO 7816-4 in PCBC (Propagation Cipher-Block Chaining) mode, and
stores the encrypted data in Vec<V>. Read moreSource§fn encrypt_vec_into_array<U, V, const N: usize>(
&mut self,
iv: T,
message: &Vec<U>,
cipher: &mut [V; N],
) -> u64
fn encrypt_vec_into_array<U, V, const N: usize>( &mut self, iv: T, message: &Vec<U>, cipher: &mut [V; N], ) -> u64
Vec<U> object with the padding defined
according to ISO 7816-4 in PCBC (Propagation Cipher-Block Chaining) mode, and
stores the encrypted data in array [V; N]. Read moreSource§fn encrypt_array<U, const N: usize>(
&mut self,
iv: T,
message: &[U; N],
cipher: *mut u8,
) -> u64where
U: SmallUInt,
fn encrypt_array<U, const N: usize>(
&mut self,
iv: T,
message: &[U; N],
cipher: *mut u8,
) -> u64where
U: SmallUInt,
[U; N] object with the padding
defined according to ISO 7816-4 in PCBC (Propagation Cipher-Block Chaining) mode. Read moreSource§fn encrypt_array_into_vec<U, V, const N: usize>(
&mut self,
iv: T,
message: &[U; N],
cipher: &mut Vec<V>,
) -> u64
fn encrypt_array_into_vec<U, V, const N: usize>( &mut self, iv: T, message: &[U; N], cipher: &mut Vec<V>, ) -> u64
[U; N] object with the padding
according to ISO 7816-4 in PCBC (Propagation Cipher-Block Chaining) mode, and stores the
encrypted data in Vec<V>. Read moreSource§fn encrypt_array_into_array<U, V, const N: usize, const M: usize>(
&mut self,
iv: T,
message: &[U; N],
cipher: &mut [V; M],
) -> u64
fn encrypt_array_into_array<U, V, const N: usize, const M: usize>( &mut self, iv: T, message: &[U; N], cipher: &mut [V; M], ) -> u64
[U; N] object with the padding
according to ISO 7816-4 in PCBC (Propagation Cipher-Block Chaining) mode, and stores the
encrypted data in array [V; M]. Read moreSource§fn decrypt_into_vec<U>(
&mut self,
iv: T,
cipher: *const u8,
length_in_bytes: u64,
message: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn decrypt_into_vec<U>(
&mut self,
iv: T,
cipher: *const u8,
length_in_bytes: u64,
message: &mut Vec<U>,
) -> u64where
U: SmallUInt,
Vec<U>. Read moreSource§fn decrypt_into_string(
&mut self,
iv: T,
cipher: *const u8,
length_in_bytes: u64,
message: &mut String,
) -> u64
fn decrypt_into_string( &mut self, iv: T, cipher: *const u8, length_in_bytes: u64, message: &mut String, ) -> u64
String. Read moreSource§fn decrypt_vec<U>(&mut self, iv: T, cipher: &Vec<U>, message: *mut u8) -> u64where
U: SmallUInt,
fn decrypt_vec<U>(&mut self, iv: T, cipher: &Vec<U>, message: *mut u8) -> u64where
U: SmallUInt,
Vec<U> object with the padding defined
according to ISO 7816-4 in PCBC (Propagation Cipher-Block Chaining) mode. Read moreSource§fn decrypt_vec_into_vec<U, V>(
&mut self,
iv: T,
cipher: &Vec<U>,
message: &mut Vec<V>,
) -> u64
fn decrypt_vec_into_vec<U, V>( &mut self, iv: T, cipher: &Vec<U>, message: &mut Vec<V>, ) -> u64
Vec<U> object with the padding defined
according to ISO 7816-4 in PCBC (Propagation Cipher-Block Chaining) mode, and
stores the decrypted data in Vec<V>. Read moreSource§fn decrypt_vec_into_array<U, V, const N: usize>(
&mut self,
iv: T,
cipher: &Vec<U>,
message: &mut [V; N],
) -> u64
fn decrypt_vec_into_array<U, V, const N: usize>( &mut self, iv: T, cipher: &Vec<U>, message: &mut [V; N], ) -> u64
Vec<U> object with the padding defined
according to ISO 7816-4 in PCBC (Propagation Cipher-Block Chaining) mode, and
stores the decrypted data in array [V; N]. Read moreSource§fn decrypt_vec_into_string<U>(
&mut self,
iv: T,
cipher: &Vec<U>,
message: &mut String,
) -> u64where
U: SmallUInt,
fn decrypt_vec_into_string<U>(
&mut self,
iv: T,
cipher: &Vec<U>,
message: &mut String,
) -> u64where
U: SmallUInt,
str with the padding defined according to
ISO 7816-4 in PCBC (Propagation Cipher-Block Chaining) mode, and stores the
decrypted data in String. Read moreSource§fn decrypt_array<U, const N: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: *mut u8,
) -> u64where
U: SmallUInt,
fn decrypt_array<U, const N: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: *mut u8,
) -> u64where
U: SmallUInt,
[U; N] object with the padding
defined according to ISO 7816-4 in PCBC (Propagation Cipher-Block Chaining) mode. Read moreSource§fn decrypt_array_into_vec<U, V, const N: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: &mut Vec<V>,
) -> u64
fn decrypt_array_into_vec<U, V, const N: usize>( &mut self, iv: T, cipher: &[U; N], message: &mut Vec<V>, ) -> u64
[U; N] object with the padding
defined according to ISO 7816-4 in PCBC (Propagation Cipher-Block Chaining) mode,
and stores the decrypted data in Vec<V>. Read moreSource§fn decrypt_array_into_array<U, V, const N: usize, const M: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: &mut [V; M],
) -> u64
fn decrypt_array_into_array<U, V, const N: usize, const M: usize>( &mut self, iv: T, cipher: &[U; N], message: &mut [V; M], ) -> u64
[U; N] object with the padding
defined according to ISO 7816-4 in PCBC (Propagation Cipher-Block Chaining) mode,
and stores the decrypted data in array [V; M]. Read moreSource§fn decrypt_array_into_string<U, const N: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: &mut String,
) -> u64where
U: SmallUInt,
fn decrypt_array_into_string<U, const N: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: &mut String,
) -> u64where
U: SmallUInt,
[U; N] object with the padding
defined according to ISO 7816-4 in PCBC (Propagation Cipher-Block Chaining) mode,
and stores the decrypted data in String. Read moreSource§impl PCBC_PKCS7<u64> for BigCryptor64
impl PCBC_PKCS7<u64> for BigCryptor64
Source§fn encrypt(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: *mut u8,
) -> u64
fn encrypt( &mut self, iv: u64, message: *const u8, length_in_bytes: u64, cipher: *mut u8, ) -> u64
Source§fn decrypt(
&mut self,
iv: u64,
cipher: *const u8,
length_in_bytes: u64,
message: *mut u8,
) -> u64
fn decrypt( &mut self, iv: u64, cipher: *const u8, length_in_bytes: u64, message: *mut u8, ) -> u64
Source§fn encrypt_into_array<U, const N: usize>(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
fn encrypt_into_array<U, const N: usize>(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
[U; N]. Read moreSource§fn encrypt_into_vec<U>(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn encrypt_into_vec<U>(
&mut self,
iv: u64,
message: *const u8,
length_in_bytes: u64,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
Vec<U>. Read moreSource§fn decrypt_into_array<U, const N: usize>(
&mut self,
iv: u64,
cipher: *const u8,
length_in_bytes: u64,
message: &mut [U; N],
) -> u64where
U: SmallUInt,
fn decrypt_into_array<U, const N: usize>(
&mut self,
iv: u64,
cipher: *const u8,
length_in_bytes: u64,
message: &mut [U; N],
) -> u64where
U: SmallUInt,
[U; N]. Read moreSource§fn encrypt_str(&mut self, iv: T, message: &str, cipher: *mut u8) -> u64
fn encrypt_str(&mut self, iv: T, message: &str, cipher: *mut u8) -> u64
str object with the padding defined
according to PKCS #7 in PCBC (Propagation Cipher-Block Chaining) mode. Read moreSource§fn encrypt_str_into_vec<U>(
&mut self,
iv: T,
message: &str,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn encrypt_str_into_vec<U>(
&mut self,
iv: T,
message: &str,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
str with the padding defined according to
PKCS #7 in PCBC (Propagation Cipher-Block Chaining) mode, and stores the
encrypted data in Vec<U>. Read moreSource§fn encrypt_str_into_array<U, const N: usize>(
&mut self,
iv: T,
message: &str,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
fn encrypt_str_into_array<U, const N: usize>(
&mut self,
iv: T,
message: &str,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
str object with the padding defined
according to PKCS #7 in PCBC (Propagation Cipher-Block Chaining) mode,
and stores the encrypted data in array [U; N]. Read moreSource§fn encrypt_string(&mut self, iv: T, message: &String, cipher: *mut u8) -> u64
fn encrypt_string(&mut self, iv: T, message: &String, cipher: *mut u8) -> u64
String object with the padding
according to PKCS #7 in PCBC (Propagation Cipher-Block Chaining) mode. Read moreSource§fn encrypt_string_into_vec<U>(
&mut self,
iv: T,
message: &String,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn encrypt_string_into_vec<U>(
&mut self,
iv: T,
message: &String,
cipher: &mut Vec<U>,
) -> u64where
U: SmallUInt,
String object with the padding
according to PKCS #7 in PCBC (Propagation Cipher-Block Chaining) mode,
and stores the encrypted data in Vec<U>. Read moreSource§fn encrypt_string_into_array<U, const N: usize>(
&mut self,
iv: T,
message: &String,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
fn encrypt_string_into_array<U, const N: usize>(
&mut self,
iv: T,
message: &String,
cipher: &mut [U; N],
) -> u64where
U: SmallUInt,
String object with the padding
according to PKCS #7 in PCBC (Propagation Cipher-Block Chaining) mode,
and stores the encrypted data in array [U; N]. Read moreSource§fn encrypt_vec<U>(&mut self, iv: T, message: &Vec<U>, cipher: *mut u8) -> u64where
U: SmallUInt,
fn encrypt_vec<U>(&mut self, iv: T, message: &Vec<U>, cipher: *mut u8) -> u64where
U: SmallUInt,
Vec<U> object with the padding defined
according to PKCS #7 in PCBC (Propagation Cipher-Block Chaining) mode. Read moreSource§fn encrypt_vec_into_vec<U, V>(
&mut self,
iv: T,
message: &Vec<U>,
cipher: &mut Vec<V>,
) -> u64
fn encrypt_vec_into_vec<U, V>( &mut self, iv: T, message: &Vec<U>, cipher: &mut Vec<V>, ) -> u64
Vec<U> object with the padding defined
according to PKCS #7 in PCBC (Propagation Cipher-Block Chaining) mode, and
stores the encrypted data in Vec<V>. Read moreSource§fn encrypt_vec_into_array<U, V, const N: usize>(
&mut self,
iv: T,
message: &Vec<U>,
cipher: &mut [V; N],
) -> u64
fn encrypt_vec_into_array<U, V, const N: usize>( &mut self, iv: T, message: &Vec<U>, cipher: &mut [V; N], ) -> u64
Vec<U> object with the padding defined
according to PKCS #7 in PCBC (Propagation Cipher-Block Chaining) mode, and
stores the encrypted data in array [V; N]. Read moreSource§fn encrypt_array<U, const N: usize>(
&mut self,
iv: T,
message: &[U; N],
cipher: *mut u8,
) -> u64where
U: SmallUInt,
fn encrypt_array<U, const N: usize>(
&mut self,
iv: T,
message: &[U; N],
cipher: *mut u8,
) -> u64where
U: SmallUInt,
[U; N] object with the padding
defined according to PKCS #7 in PCBC (Propagation Cipher-Block Chaining) mode. Read moreSource§fn encrypt_array_into_vec<U, V, const N: usize>(
&mut self,
iv: T,
message: &[U; N],
cipher: &mut Vec<V>,
) -> u64
fn encrypt_array_into_vec<U, V, const N: usize>( &mut self, iv: T, message: &[U; N], cipher: &mut Vec<V>, ) -> u64
[U; N] object with the padding
according to PKCS #7 in PCBC (Propagation Cipher-Block Chaining) mode, and stores the
encrypted data in Vec<V>. Read moreSource§fn encrypt_array_into_array<U, V, const N: usize, const M: usize>(
&mut self,
iv: T,
message: &[U; N],
cipher: &mut [V; M],
) -> u64
fn encrypt_array_into_array<U, V, const N: usize, const M: usize>( &mut self, iv: T, message: &[U; N], cipher: &mut [V; M], ) -> u64
[U; N] object with the padding
according to PKCS #7 in PCBC (Propagation Cipher-Block Chaining) mode, and stores the
encrypted data in array [V; M]. Read moreSource§fn decrypt_into_vec<U>(
&mut self,
iv: T,
cipher: *const u8,
length_in_bytes: u64,
message: &mut Vec<U>,
) -> u64where
U: SmallUInt,
fn decrypt_into_vec<U>(
&mut self,
iv: T,
cipher: *const u8,
length_in_bytes: u64,
message: &mut Vec<U>,
) -> u64where
U: SmallUInt,
Vec<U>. Read moreSource§fn decrypt_into_string(
&mut self,
iv: T,
cipher: *const u8,
length_in_bytes: u64,
message: &mut String,
) -> u64
fn decrypt_into_string( &mut self, iv: T, cipher: *const u8, length_in_bytes: u64, message: &mut String, ) -> u64
String. Read moreSource§fn decrypt_vec<U>(&mut self, iv: T, cipher: &Vec<U>, message: *mut u8) -> u64where
U: SmallUInt,
fn decrypt_vec<U>(&mut self, iv: T, cipher: &Vec<U>, message: *mut u8) -> u64where
U: SmallUInt,
Vec<U> object with the padding defined
according to PKCS #7 in PCBC (Propagation Cipher-Block Chaining) mode. Read moreSource§fn decrypt_vec_into_vec<U, V>(
&mut self,
iv: T,
cipher: &Vec<U>,
message: &mut Vec<V>,
) -> u64
fn decrypt_vec_into_vec<U, V>( &mut self, iv: T, cipher: &Vec<U>, message: &mut Vec<V>, ) -> u64
Vec<U> object with the padding defined
according to PKCS #7 in PCBC (Propagation Cipher-Block Chaining) mode, and
stores the decrypted data in Vec<V>. Read moreSource§fn decrypt_vec_into_array<U, V, const N: usize>(
&mut self,
iv: T,
cipher: &Vec<U>,
message: &mut [V; N],
) -> u64
fn decrypt_vec_into_array<U, V, const N: usize>( &mut self, iv: T, cipher: &Vec<U>, message: &mut [V; N], ) -> u64
Vec<U> object with the padding defined
according to PKCS #7 in PCBC (Propagation Cipher-Block Chaining) mode, and
stores the decrypted data in array [V; N]. Read moreSource§fn decrypt_vec_into_string<U>(
&mut self,
iv: T,
cipher: &Vec<U>,
message: &mut String,
) -> u64where
U: SmallUInt,
fn decrypt_vec_into_string<U>(
&mut self,
iv: T,
cipher: &Vec<U>,
message: &mut String,
) -> u64where
U: SmallUInt,
str with the padding defined according to
PKCS #7 in PCBC (Propagation Cipher-Block Chaining) mode, and stores the
decrypted data in String. Read moreSource§fn decrypt_array<U, const N: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: *mut u8,
) -> u64where
U: SmallUInt,
fn decrypt_array<U, const N: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: *mut u8,
) -> u64where
U: SmallUInt,
[U; N] object with the padding
defined according to PKCS #7 in PCBC (Propagation Cipher-Block Chaining) mode. Read moreSource§fn decrypt_array_into_vec<U, V, const N: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: &mut Vec<V>,
) -> u64
fn decrypt_array_into_vec<U, V, const N: usize>( &mut self, iv: T, cipher: &[U; N], message: &mut Vec<V>, ) -> u64
[U; N] object with the padding
defined according to PKCS #7 in PCBC (Propagation Cipher-Block Chaining) mode,
and stores the decrypted data in Vec<V>. Read moreSource§fn decrypt_array_into_array<U, V, const N: usize, const M: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: &mut [V; M],
) -> u64
fn decrypt_array_into_array<U, V, const N: usize, const M: usize>( &mut self, iv: T, cipher: &[U; N], message: &mut [V; M], ) -> u64
[U; N] object with the padding
defined according to PKCS #7 in PCBC (Propagation Cipher-Block Chaining) mode,
and stores the decrypted data in array [V; M]. Read moreSource§fn decrypt_array_into_string<U, const N: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: &mut String,
) -> u64where
U: SmallUInt,
fn decrypt_array_into_string<U, const N: usize>(
&mut self,
iv: T,
cipher: &[U; N],
message: &mut String,
) -> u64where
U: SmallUInt,
[U; N] object with the padding
defined according to PKCS #7 in PCBC (Propagation Cipher-Block Chaining) mode,
and stores the decrypted data in String. Read more