• Home
  • Raw
  • Download

Lines Matching refs:Vec

647 ) -> Result<Vec<u8>, ErrorStack> {  in encrypt()
686 ) -> Result<Vec<u8>, ErrorStack> { in decrypt()
696 ) -> Result<Vec<u8>, ErrorStack> { in cipher()
720 ) -> Result<Vec<u8>, ErrorStack> { in encrypt_aead()
751 ) -> Result<Vec<u8>, ErrorStack> { in decrypt_aead()
902 let pt = Vec::from_hex(pt).unwrap(); in cipher_test()
903 let ct = Vec::from_hex(ct).unwrap(); in cipher_test()
904 let key = Vec::from_hex(key).unwrap(); in cipher_test()
905 let iv = Vec::from_hex(iv).unwrap(); in cipher_test()
926 let pt = Vec::from_hex(pt).unwrap(); in cipher_test_nopad()
927 let ct = Vec::from_hex(ct).unwrap(); in cipher_test_nopad()
928 let key = Vec::from_hex(key).unwrap(); in cipher_test_nopad()
929 let iv = Vec::from_hex(iv).unwrap(); in cipher_test_nopad()
1285 &Vec::from_hex(key).unwrap(), in test_aes128_gcm()
1286 Some(&Vec::from_hex(iv).unwrap()), in test_aes128_gcm()
1287 &Vec::from_hex(aad).unwrap(), in test_aes128_gcm()
1288 &Vec::from_hex(pt).unwrap(), in test_aes128_gcm()
1297 &Vec::from_hex(key).unwrap(), in test_aes128_gcm()
1298 Some(&Vec::from_hex(iv).unwrap()), in test_aes128_gcm()
1299 &Vec::from_hex(aad).unwrap(), in test_aes128_gcm()
1300 &Vec::from_hex(ct).unwrap(), in test_aes128_gcm()
1301 &Vec::from_hex(tag).unwrap(), in test_aes128_gcm()
1321 &Vec::from_hex(key).unwrap(), in test_aes128_ccm()
1322 Some(&Vec::from_hex(nonce).unwrap()), in test_aes128_ccm()
1323 &Vec::from_hex(aad).unwrap(), in test_aes128_ccm()
1324 &Vec::from_hex(pt).unwrap(), in test_aes128_ccm()
1334 &Vec::from_hex(key).unwrap(), in test_aes128_ccm()
1335 Some(&Vec::from_hex(nonce).unwrap()), in test_aes128_ccm()
1336 &Vec::from_hex(aad).unwrap(), in test_aes128_ccm()
1337 &Vec::from_hex(ct).unwrap(), in test_aes128_ccm()
1338 &Vec::from_hex(tag).unwrap(), in test_aes128_ccm()
1356 &Vec::from_hex(key).unwrap(), in test_aes128_ccm_verify_fail()
1357 Some(&Vec::from_hex(nonce).unwrap()), in test_aes128_ccm_verify_fail()
1358 &Vec::from_hex(aad).unwrap(), in test_aes128_ccm_verify_fail()
1359 &Vec::from_hex(ct).unwrap(), in test_aes128_ccm_verify_fail()
1360 &Vec::from_hex(tag).unwrap(), in test_aes128_ccm_verify_fail()
1379 &Vec::from_hex(key).unwrap(), in test_aes256_ccm()
1380 Some(&Vec::from_hex(nonce).unwrap()), in test_aes256_ccm()
1381 &Vec::from_hex(aad).unwrap(), in test_aes256_ccm()
1382 &Vec::from_hex(pt).unwrap(), in test_aes256_ccm()
1392 &Vec::from_hex(key).unwrap(), in test_aes256_ccm()
1393 Some(&Vec::from_hex(nonce).unwrap()), in test_aes256_ccm()
1394 &Vec::from_hex(aad).unwrap(), in test_aes256_ccm()
1395 &Vec::from_hex(ct).unwrap(), in test_aes256_ccm()
1396 &Vec::from_hex(tag).unwrap(), in test_aes256_ccm()
1414 &Vec::from_hex(key).unwrap(), in test_aes256_ccm_verify_fail()
1415 Some(&Vec::from_hex(nonce).unwrap()), in test_aes256_ccm_verify_fail()
1416 &Vec::from_hex(aad).unwrap(), in test_aes256_ccm_verify_fail()
1417 &Vec::from_hex(ct).unwrap(), in test_aes256_ccm_verify_fail()
1418 &Vec::from_hex(tag).unwrap(), in test_aes256_ccm_verify_fail()
1436 &Vec::from_hex(key).unwrap(), in test_aes_128_ocb()
1437 Some(&Vec::from_hex(iv).unwrap()), in test_aes_128_ocb()
1438 &Vec::from_hex(aad).unwrap(), in test_aes_128_ocb()
1439 &Vec::from_hex(pt).unwrap(), in test_aes_128_ocb()
1449 &Vec::from_hex(key).unwrap(), in test_aes_128_ocb()
1450 Some(&Vec::from_hex(iv).unwrap()), in test_aes_128_ocb()
1451 &Vec::from_hex(aad).unwrap(), in test_aes_128_ocb()
1452 &Vec::from_hex(ct).unwrap(), in test_aes_128_ocb()
1453 &Vec::from_hex(tag).unwrap(), in test_aes_128_ocb()
1470 &Vec::from_hex(key).unwrap(), in test_aes_128_ocb_fail()
1471 Some(&Vec::from_hex(iv).unwrap()), in test_aes_128_ocb_fail()
1472 &Vec::from_hex(aad).unwrap(), in test_aes_128_ocb_fail()
1473 &Vec::from_hex(ct).unwrap(), in test_aes_128_ocb_fail()
1474 &Vec::from_hex(tag).unwrap(), in test_aes_128_ocb_fail()
1513 &Vec::from_hex(key).unwrap(), in test_chacha20_poly1305()
1514 Some(&Vec::from_hex(iv).unwrap()), in test_chacha20_poly1305()
1515 &Vec::from_hex(aad).unwrap(), in test_chacha20_poly1305()
1516 &Vec::from_hex(pt).unwrap(), in test_chacha20_poly1305()
1525 &Vec::from_hex(key).unwrap(), in test_chacha20_poly1305()
1526 Some(&Vec::from_hex(iv).unwrap()), in test_chacha20_poly1305()
1527 &Vec::from_hex(aad).unwrap(), in test_chacha20_poly1305()
1528 &Vec::from_hex(ct).unwrap(), in test_chacha20_poly1305()
1529 &Vec::from_hex(tag).unwrap(), in test_chacha20_poly1305()