• Home
  • Raw
  • Download

Lines Matching refs:iv

497         iv: Option<&[u8]>,  in new()
515 if let (Some(iv), Some(iv_len)) = (iv, t.iv_len()) { in new()
516 if iv.len() != iv_len { in new()
517 ctx.set_iv_length(iv.len())?; in new()
521 f(&mut ctx, None, Some(key), iv)?; in new()
646 iv: Option<&[u8]>, in encrypt()
649 cipher(t, Mode::Encrypt, key, iv, data) in encrypt()
685 iv: Option<&[u8]>, in decrypt()
688 cipher(t, Mode::Decrypt, key, iv, data) in decrypt()
695 iv: Option<&[u8]>, in cipher()
698 let mut c = Crypter::new(t, mode, key, iv)?; in cipher()
717 iv: Option<&[u8]>, in encrypt_aead()
722 let mut c = Crypter::new(t, Mode::Encrypt, key, iv)?; in encrypt_aead()
748 iv: Option<&[u8]>, in decrypt_aead()
753 let mut c = Crypter::new(t, Mode::Decrypt, key, iv)?; in decrypt_aead()
809 let iv = [0u8; 16]; in test_stream_cipher_output() localVariable
814 Some(&iv), in test_stream_cipher_output()
871 let iv = [ in test_aes_256_cbc_decrypt() localVariable
888 Some(&iv), in test_aes_256_cbc_decrypt()
902 fn cipher_test(ciphertype: super::Cipher, pt: &str, ct: &str, key: &str, iv: &str) { in cipher_test()
906 let iv = Vec::from_hex(iv).unwrap(); in cipher_test() localVariable
908 let computed = super::decrypt(ciphertype, &key, Some(&iv), &ct).unwrap(); in cipher_test()
926 fn cipher_test_nopad(ciphertype: super::Cipher, pt: &str, ct: &str, key: &str, iv: &str) { in cipher_test_nopad()
930 let iv = Vec::from_hex(iv).unwrap(); in cipher_test_nopad() localVariable
933 let mut c = Crypter::new(ciphertype, Mode::Decrypt, &key, Some(&iv)).unwrap(); in cipher_test_nopad()
965 let iv = ""; in test_rc4() localVariable
967 cipher_test(super::Cipher::rc4(), pt, ct, key, iv); in test_rc4()
981 let iv = "db200efb7eaaa737dbdf40babb68953f"; in test_aes256_xts() localVariable
983 cipher_test(super::Cipher::aes_256_xts(), pt, ct, key, iv); in test_aes256_xts()
993 let iv = "F0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF"; in test_aes128_ctr() localVariable
995 cipher_test(super::Cipher::aes_128_ctr(), pt, ct, key, iv); in test_aes128_ctr()
1006 let iv = "000102030405060708090a0b0c0d0e0f"; in test_aes128_cfb1() localVariable
1008 cipher_test(super::Cipher::aes_128_cfb1(), pt, ct, key, iv); in test_aes128_cfb1()
1017 let iv = "000102030405060708090a0b0c0d0e0f"; in test_aes128_cfb128() localVariable
1019 cipher_test(super::Cipher::aes_128_cfb128(), pt, ct, key, iv); in test_aes128_cfb128()
1028 let iv = "000102030405060708090a0b0c0d0e0f"; in test_aes128_cfb8() localVariable
1030 cipher_test(super::Cipher::aes_128_cfb8(), pt, ct, key, iv); in test_aes128_cfb8()
1040 let iv = "000102030405060708090a0b0c0d0e0f"; in test_aes128_ofb() localVariable
1042 cipher_test(super::Cipher::aes_128_ofb(), pt, ct, key, iv); in test_aes128_ofb()
1052 let iv = "f0f1f2f3f4f5f6f7f8f9fafbfcfdfeff"; in test_aes192_ctr() localVariable
1054 cipher_test(super::Cipher::aes_192_ctr(), pt, ct, key, iv); in test_aes192_ctr()
1065 let iv = "000102030405060708090a0b0c0d0e0f"; in test_aes192_cfb1() localVariable
1067 cipher_test(super::Cipher::aes_192_cfb1(), pt, ct, key, iv); in test_aes192_cfb1()
1078 let iv = "000102030405060708090a0b0c0d0e0f"; in test_aes192_cfb128() localVariable
1080 cipher_test(super::Cipher::aes_192_cfb128(), pt, ct, key, iv); in test_aes192_cfb128()
1091 let iv = "000102030405060708090a0b0c0d0e0f"; in test_aes192_cfb8() localVariable
1093 cipher_test(super::Cipher::aes_192_cfb8(), pt, ct, key, iv); in test_aes192_cfb8()
1103 let iv = "000102030405060708090a0b0c0d0e0f"; in test_aes192_ofb() localVariable
1105 cipher_test(super::Cipher::aes_192_ofb(), pt, ct, key, iv); in test_aes192_ofb()
1114 let iv = "000102030405060708090a0b0c0d0e0f"; in test_aes256_cfb1() localVariable
1116 cipher_test(super::Cipher::aes_256_cfb1(), pt, ct, key, iv); in test_aes256_cfb1()
1125 let iv = "000102030405060708090a0b0c0d0e0f"; in test_aes256_cfb128() localVariable
1127 cipher_test(super::Cipher::aes_256_cfb128(), pt, ct, key, iv); in test_aes256_cfb128()
1136 let iv = "000102030405060708090a0b0c0d0e0f"; in test_aes256_cfb8() localVariable
1138 cipher_test(super::Cipher::aes_256_cfb8(), pt, ct, key, iv); in test_aes256_cfb8()
1148 let iv = "000102030405060708090a0b0c0d0e0f"; in test_aes256_ofb() localVariable
1150 cipher_test(super::Cipher::aes_256_ofb(), pt, ct, key, iv); in test_aes256_ofb()
1165 let iv = "FEDCBA9876543210"; in test_bf_cbc() localVariable
1167 cipher_test_nopad(super::Cipher::bf_cbc(), pt, ct, key, iv); in test_bf_cbc()
1180 let iv = "0000000000000000"; in test_bf_ecb() localVariable
1182 cipher_test_nopad(super::Cipher::bf_ecb(), pt, ct, key, iv); in test_bf_ecb()
1195 let iv = "FEDCBA9876543210"; in test_bf_cfb64() localVariable
1197 cipher_test_nopad(super::Cipher::bf_cfb64(), pt, ct, key, iv); in test_bf_cfb64()
1210 let iv = "FEDCBA9876543210"; in test_bf_ofb() localVariable
1212 cipher_test_nopad(super::Cipher::bf_ofb(), pt, ct, key, iv); in test_bf_ofb()
1223 let iv = "0001020304050607"; in test_des_cbc() localVariable
1225 cipher_test(super::Cipher::des_cbc(), pt, ct, key, iv); in test_des_cbc()
1236 let iv = "0001020304050607"; in test_des_ecb() localVariable
1238 cipher_test(super::Cipher::des_ecb(), pt, ct, key, iv); in test_des_ecb()
1246 let iv = "5cc118306dc702e4"; in test_des_ede3() localVariable
1248 cipher_test(super::Cipher::des_ede3(), pt, ct, key, iv); in test_des_ede3()
1256 let iv = "0001020304050607"; in test_des_ede3_cbc() localVariable
1258 cipher_test(super::Cipher::des_ede3_cbc(), pt, ct, key, iv); in test_des_ede3_cbc()
1267 let iv = "0001020304050607"; in test_des_ede3_cfb64() localVariable
1269 cipher_test(super::Cipher::des_ede3_cfb64(), pt, ct, key, iv); in test_des_ede3_cfb64()
1275 let iv = "f416f48ad44d9efa1179e167"; in test_aes128_gcm() localVariable
1287 Some(&Vec::from_hex(iv).unwrap()), in test_aes128_gcm()
1299 Some(&Vec::from_hex(iv).unwrap()), in test_aes128_gcm()
1430 let iv = "000102030405060708090a0b"; in test_aes_128_ocb() localVariable
1438 Some(&Vec::from_hex(iv).unwrap()), in test_aes_128_ocb()
1451 Some(&Vec::from_hex(iv).unwrap()), in test_aes_128_ocb()
1466 let iv = "000000000405060708090a0b"; in test_aes_128_ocb_fail() localVariable
1472 Some(&Vec::from_hex(iv).unwrap()), in test_aes_128_ocb_fail()
1484 let iv = "00000000000000000000000000000000"; in test_chacha20() localVariable
1492 cipher_test(Cipher::chacha20(), pt, ct, key, iv); in test_chacha20()
1499 let iv = "070000004041424344454647"; in test_chacha20_poly1305() localVariable
1515 Some(&Vec::from_hex(iv).unwrap()), in test_chacha20_poly1305()
1527 Some(&Vec::from_hex(iv).unwrap()), in test_chacha20_poly1305()
1545 let iv = "41414141414141414141414141414141"; in test_seed_cbc() localVariable
1547 cipher_test(super::Cipher::seed_cbc(), pt, ct, key, iv); in test_seed_cbc()
1559 let iv = "41414141414141414141414141414141"; in test_seed_cfb128() localVariable
1561 cipher_test(super::Cipher::seed_cfb128(), pt, ct, key, iv); in test_seed_cfb128()
1573 let iv = "41414141414141414141414141414141"; in test_seed_ecb() localVariable
1575 cipher_test(super::Cipher::seed_ecb(), pt, ct, key, iv); in test_seed_ecb()
1587 let iv = "41414141414141414141414141414141"; in test_seed_ofb() localVariable
1589 cipher_test(super::Cipher::seed_ofb(), pt, ct, key, iv); in test_seed_ofb()