Lines Matching refs:from_hex

955         let pt = Vec::from_hex(pt).unwrap();  in cipher_test()
956 let ct = Vec::from_hex(ct).unwrap(); in cipher_test()
957 let key = Vec::from_hex(key).unwrap(); in cipher_test()
958 let iv = Vec::from_hex(iv).unwrap(); in cipher_test()
978 let pt = Vec::from_hex(pt).unwrap(); in cipher_test_nopad()
979 let ct = Vec::from_hex(ct).unwrap(); in cipher_test_nopad()
980 let key = Vec::from_hex(key).unwrap(); in cipher_test_nopad()
981 let iv = Vec::from_hex(iv).unwrap(); in cipher_test_nopad()
1303 &Vec::from_hex(key).unwrap(), in test_aes128_gcm()
1304 Some(&Vec::from_hex(iv).unwrap()), in test_aes128_gcm()
1305 &Vec::from_hex(aad).unwrap(), in test_aes128_gcm()
1306 &Vec::from_hex(pt).unwrap(), in test_aes128_gcm()
1315 &Vec::from_hex(key).unwrap(), in test_aes128_gcm()
1316 Some(&Vec::from_hex(iv).unwrap()), in test_aes128_gcm()
1317 &Vec::from_hex(aad).unwrap(), in test_aes128_gcm()
1318 &Vec::from_hex(ct).unwrap(), in test_aes128_gcm()
1319 &Vec::from_hex(tag).unwrap(), in test_aes128_gcm()
1338 &Vec::from_hex(key).unwrap(), in test_aes128_ccm()
1339 Some(&Vec::from_hex(nonce).unwrap()), in test_aes128_ccm()
1340 &Vec::from_hex(aad).unwrap(), in test_aes128_ccm()
1341 &Vec::from_hex(pt).unwrap(), in test_aes128_ccm()
1351 &Vec::from_hex(key).unwrap(), in test_aes128_ccm()
1352 Some(&Vec::from_hex(nonce).unwrap()), in test_aes128_ccm()
1353 &Vec::from_hex(aad).unwrap(), in test_aes128_ccm()
1354 &Vec::from_hex(ct).unwrap(), in test_aes128_ccm()
1355 &Vec::from_hex(tag).unwrap(), in test_aes128_ccm()
1372 &Vec::from_hex(key).unwrap(), in test_aes128_ccm_verify_fail()
1373 Some(&Vec::from_hex(nonce).unwrap()), in test_aes128_ccm_verify_fail()
1374 &Vec::from_hex(aad).unwrap(), in test_aes128_ccm_verify_fail()
1375 &Vec::from_hex(ct).unwrap(), in test_aes128_ccm_verify_fail()
1376 &Vec::from_hex(tag).unwrap(), in test_aes128_ccm_verify_fail()
1394 &Vec::from_hex(key).unwrap(), in test_aes256_ccm()
1395 Some(&Vec::from_hex(nonce).unwrap()), in test_aes256_ccm()
1396 &Vec::from_hex(aad).unwrap(), in test_aes256_ccm()
1397 &Vec::from_hex(pt).unwrap(), in test_aes256_ccm()
1407 &Vec::from_hex(key).unwrap(), in test_aes256_ccm()
1408 Some(&Vec::from_hex(nonce).unwrap()), in test_aes256_ccm()
1409 &Vec::from_hex(aad).unwrap(), in test_aes256_ccm()
1410 &Vec::from_hex(ct).unwrap(), in test_aes256_ccm()
1411 &Vec::from_hex(tag).unwrap(), in test_aes256_ccm()
1428 &Vec::from_hex(key).unwrap(), in test_aes256_ccm_verify_fail()
1429 Some(&Vec::from_hex(nonce).unwrap()), in test_aes256_ccm_verify_fail()
1430 &Vec::from_hex(aad).unwrap(), in test_aes256_ccm_verify_fail()
1431 &Vec::from_hex(ct).unwrap(), in test_aes256_ccm_verify_fail()
1432 &Vec::from_hex(tag).unwrap(), in test_aes256_ccm_verify_fail()
1450 &Vec::from_hex(key).unwrap(), in test_aes_128_ocb()
1451 Some(&Vec::from_hex(iv).unwrap()), in test_aes_128_ocb()
1452 &Vec::from_hex(aad).unwrap(), in test_aes_128_ocb()
1453 &Vec::from_hex(pt).unwrap(), in test_aes_128_ocb()
1463 &Vec::from_hex(key).unwrap(), in test_aes_128_ocb()
1464 Some(&Vec::from_hex(iv).unwrap()), in test_aes_128_ocb()
1465 &Vec::from_hex(aad).unwrap(), in test_aes_128_ocb()
1466 &Vec::from_hex(ct).unwrap(), in test_aes_128_ocb()
1467 &Vec::from_hex(tag).unwrap(), in test_aes_128_ocb()
1484 &Vec::from_hex(key).unwrap(), in test_aes_128_ocb_fail()
1485 Some(&Vec::from_hex(iv).unwrap()), in test_aes_128_ocb_fail()
1486 &Vec::from_hex(aad).unwrap(), in test_aes_128_ocb_fail()
1487 &Vec::from_hex(ct).unwrap(), in test_aes_128_ocb_fail()
1488 &Vec::from_hex(tag).unwrap(), in test_aes_128_ocb_fail()
1527 &Vec::from_hex(key).unwrap(), in test_chacha20_poly1305()
1528 Some(&Vec::from_hex(iv).unwrap()), in test_chacha20_poly1305()
1529 &Vec::from_hex(aad).unwrap(), in test_chacha20_poly1305()
1530 &Vec::from_hex(pt).unwrap(), in test_chacha20_poly1305()
1539 &Vec::from_hex(key).unwrap(), in test_chacha20_poly1305()
1540 Some(&Vec::from_hex(iv).unwrap()), in test_chacha20_poly1305()
1541 &Vec::from_hex(aad).unwrap(), in test_chacha20_poly1305()
1542 &Vec::from_hex(ct).unwrap(), in test_chacha20_poly1305()
1543 &Vec::from_hex(tag).unwrap(), in test_chacha20_poly1305()