Home
last modified time | relevance | path

Searched refs:decode_hex (Results 1 – 10 of 10) sorted by relevance

/rust/bssl-crypto/src/cipher/
A Daes_ctr.rs58 use crate::test_helpers::decode_hex;
63 let iv = decode_hex("f0f1f2f3f4f5f6f7f8f9fafbfcfdfeff"); in aes_128_ctr_test_encrypt()
64 let key = decode_hex("2b7e151628aed2a6abf7158809cf4f3c"); in aes_128_ctr_test_encrypt()
68 block = decode_hex("6bc1bee22e409f96e93d7e117393172a"); in aes_128_ctr_test_encrypt()
77 block = decode_hex("ae2d8a571e03ac9c9eb76fac45af8e51"); in aes_128_ctr_test_encrypt()
84 block = decode_hex("30c81c46a35ce411e5fbc1191a0a52ef"); in aes_128_ctr_test_encrypt()
91 block = decode_hex("f69f2445df4f9b17ad2b417be66c3710"); in aes_128_ctr_test_encrypt()
107 block = decode_hex("874d6191b620e3261bef6864990db6ce"); in aes_128_ctr_test_decrypt()
114 block = decode_hex("9806f66b7970fdff8617187bb9fffdff"); in aes_128_ctr_test_decrypt()
121 block = decode_hex("5ae4df3edbd5d35e5b4f09020db03eab"); in aes_128_ctr_test_decrypt()
[all …]
A Daes_cbc.rs78 use crate::test_helpers::decode_hex;
84 let iv = decode_hex("c9ee3cd746bf208c65ca9e72a266d54f"); in aes_128_cbc_test_encrypt()
85 let key = decode_hex("e09eaa5a3f5e56d279d5e7a03373f6ea"); in aes_128_cbc_test_encrypt()
101 let iv = decode_hex("54f2459e40e002763144f4752cde2fb5"); in aes_128_cbc_test_encrypt_more_than_one_block()
102 let key = decode_hex("831e664c9e3f0c3094c0b27b9d908eb2"); in aes_128_cbc_test_encrypt_more_than_one_block()
119 let iv = decode_hex("c9ee3cd746bf208c65ca9e72a266d54f"); in aes_128_cbc_test_decrypt()
135 let iv = decode_hex("da9520f7d3520277035173299388bee2"); in aes_128_cbc_test_decrypt_empty_message()
141 let expected_plaintext: [u8; 0] = decode_hex(""); in aes_128_cbc_test_decrypt_empty_message()
149 let iv = decode_hex("9ec7b863ac845cad5e4673da21f5b6a9"); in aes_256_cbc_test_encrypt()
166 let iv = decode_hex("4b74bd981ea9d074757c3e2ef515e5fb"); in aes_256_cbc_test_encrypt_more_than_one_block()
[all …]
/rust/bssl-crypto/src/
A Dx25519.rs116 use crate::{test_helpers::decode_hex, x25519::PrivateKey};
122 decode_hex("504a36999f489cd2fdbc08baff3d88fa00569ba986cba22548ffde80f9806829"); in known_vector()
123 let private_key = PrivateKey(decode_hex( in known_vector()
127 decode_hex("436a2c040cf45fea9b29a0cb81b1f41458f863d0d61b453d0a982720d6d61320"); in known_vector()
144 decode_hex("8520f0098930a754748b7ddcb43ef75a0dbf3a0d26381af4eba4a98eaa9b4e6a"); in to_public()
145 let private_key = PrivateKey(decode_hex( in to_public()
A Ddigest.rs172 use crate::test_helpers::decode_hex;
197 decode_hex("a9993e364706816aba3e25717850c26c9cd0d89d"), in sha1()
204 let msg: [u8; 4] = decode_hex("74ba2521"); in sha256()
206 decode_hex("b16aa56be3880d18cd41e68384cf1ec8c17680c45a02b1575dc1518923ae8b0e"); in sha256()
224decode_hex("cb00753f45a35e8bb5a03d699ac65007272c32ab0eded1631a8b605a43ff5bed8086072ba1e7cc2358baec… in sha384()
231 let msg: [u8; 4] = decode_hex("23be86d5"); in sha512()
232 let expected_digest: [u8; 64] = decode_hex(concat!( in sha512()
247 decode_hex("53048e2681941ef99b2e29b76b4c7dabe4c2d0c634fc6d46e0e2f13107e7af23"), in sha512_256()
A Daead.rs284 use crate::test_helpers::{decode_hex, decode_hex_into_vec};
388 nonce: decode_hex("030000000000000000000000"), in aes_128_gcm_siv()
396 nonce: decode_hex("030000000000000000000000"), in aes_128_gcm_siv()
404 nonce: decode_hex("030000000000000000000000"), in aes_128_gcm_siv()
421 nonce: decode_hex("030000000000000000000000"), in aes_256_gcm_siv()
429 nonce: decode_hex("030000000000000000000000"), in aes_256_gcm_siv()
439 nonce: decode_hex("030000000000000000000000"), in aes_256_gcm_siv()
455 nonce: decode_hex("3388c676dc754acfa66e172a"), in aes_128_gcm()
463 nonce: decode_hex("dcf5b7ae2d7552e2297fcfa9"), in aes_128_gcm()
479 nonce: decode_hex("5bf11a0951f0bfc7ea5c9e58"), in aes_256_gcm()
[all …]
A Daes.rs154 test_helpers::decode_hex,
160 let key = decode_hex("2b7e151628aed2a6abf7158809cf4f3c"); in aes_128()
161 let plaintext = decode_hex("6bc1bee22e409f96e93d7e117393172a"); in aes_128()
162 let ciphertext = decode_hex("3ad77bb40d7a3660a89ecaf32466ef97"); in aes_128()
170 let key = decode_hex("603deb1015ca71be2b73aef0857d77811f352c073b6108d72d9810a30914dff4"); in aes_256()
171 let plaintext = decode_hex("6bc1bee22e409f96e93d7e117393172a"); in aes_256()
172 let ciphertext = decode_hex("f3eed1bdb5d2a03c064b5a7e3db181f8"); in aes_256()
A Dhpke.rs478 use crate::test_helpers::{decode_hex, decode_hex_into_vec};
502 info: decode_hex("4f6465206f6e2061204772656369616e2055726e"), in x25519_hkdf_sha256_hkdf_sha256_aes_128_gcm()
507 plaintext: decode_hex("4265617574792069732074727574682c20747275746820626561757479"), in x25519_hkdf_sha256_hkdf_sha256_aes_128_gcm()
508 associated_data: decode_hex("436f756e742d30"), in x25519_hkdf_sha256_hkdf_sha256_aes_128_gcm()
510 exporter_context: decode_hex("54657374436f6e74657874"), in x25519_hkdf_sha256_hkdf_sha256_aes_128_gcm()
521 info: decode_hex("4f6465206f6e2061204772656369616e2055726e"), in x25519_hkdf_sha256_hkdf_sha256_chacha20_poly1305()
527 associated_data: decode_hex("436f756e742d30"), in x25519_hkdf_sha256_hkdf_sha256_chacha20_poly1305()
529 exporter_context: decode_hex("54657374436f6e74657874"), in x25519_hkdf_sha256_hkdf_sha256_chacha20_poly1305()
540 info: decode_hex("4f6465206f6e2061204772656369616e2055726e"), in p256_hkdf_sha256_hkdf_sha256_aes_128_gcm()
546 associated_data: decode_hex("436f756e742d30"), in p256_hkdf_sha256_hkdf_sha256_aes_128_gcm()
[all …]
A Ded25519.rs274 let pk = test_helpers::decode_hex( in empty_msg()
277 let seed = test_helpers::decode_hex( in empty_msg()
281 …let sig_expected = test_helpers::decode_hex("e5564300c360ac729086e2cc806e828a84877f1eb8e5d974d873… in empty_msg()
294 let pk = test_helpers::decode_hex( in ed25519_sign_and_verify()
297 let sk = test_helpers::decode_hex( in ed25519_sign_and_verify()
300 let msg: [u8; 14] = test_helpers::decode_hex("55c7fa434f5ed8cdec2b7aeac173"); in ed25519_sign_and_verify()
301 …let sig_expected = test_helpers::decode_hex("6ee3fe81e23c60eb2312b2006b3b25e6838e02106623f844c44e… in ed25519_sign_and_verify()
A Dtest_helpers.rs17 pub(crate) fn decode_hex<const N: usize>(s: &str) -> [u8; N] { in decode_hex() function
A Dhkdf.rs290 test_helpers::{decode_hex, decode_hex_into_vec},
300 let expected = decode_hex( in sha256()
313 let expected = decode_hex( in sha512()

Completed in 28 milliseconds