Lines Matching refs:decode_hex

78     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()
88 let msg: [u8; 16] = decode_hex("ef4eab37181f98423e53e947e7050fd0"); in aes_128_cbc_test_encrypt()
93 decode_hex("d1fa697f3e2e04d64f1a0da203813ca5bc226a0b1d42287b2a5b994a66eaf14a"); 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()
105 let msg: [u8; 17] = decode_hex("26603bb76dd0a0180791c4ed4d3b058807"); in aes_128_cbc_test_encrypt_more_than_one_block()
110 decode_hex("8d55dc10584e243f55d2bdbb5758b7fabcd58c8d3785f01c7e3640b2a1dadcd9"); in aes_128_cbc_test_encrypt_more_than_one_block()
118 let key = decode_hex("e09eaa5a3f5e56d279d5e7a03373f6ea"); in aes_128_cbc_test_decrypt()
119 let iv = decode_hex("c9ee3cd746bf208c65ca9e72a266d54f"); in aes_128_cbc_test_decrypt()
122 decode_hex("d1fa697f3e2e04d64f1a0da203813ca5bc226a0b1d42287b2a5b994a66eaf14a"); in aes_128_cbc_test_decrypt()
126 let expected_plaintext: [u8; 16] = decode_hex("ef4eab37181f98423e53e947e7050fd0"); in aes_128_cbc_test_decrypt()
134 let key = decode_hex("e34f15c7bd819930fe9d66e0c166e61c"); in aes_128_cbc_test_decrypt_empty_message()
135 let iv = decode_hex("da9520f7d3520277035173299388bee2"); in aes_128_cbc_test_decrypt_empty_message()
137 let ciphertext: [u8; 16] = decode_hex("b10ab60153276941361000414aed0a9d"); 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()
150 let key = decode_hex("612e837843ceae7f61d49625faa7e7494f9253e20cb3adcea686512b043936cd"); in aes_256_cbc_test_encrypt()
153 let msg: [u8; 16] = decode_hex("cc37fae15f745a2f40e2c8b192f2b38d"); in aes_256_cbc_test_encrypt()
158 decode_hex("299295be47e9f5441fe83a7a811c4aeb2650333e681e69fa6b767d28a6ccf282"); in aes_256_cbc_test_encrypt()
166 let iv = decode_hex("4b74bd981ea9d074757c3e2ef515e5fb"); in aes_256_cbc_test_encrypt_more_than_one_block()
167 let key = decode_hex("73216fafd0022d0d6ee27198b2272578fa8f04dd9f44467fbb6437aa45641bf7"); in aes_256_cbc_test_encrypt_more_than_one_block()
170 let msg: [u8; 17] = decode_hex("d5247b8f6c3edcbfb1d591d13ece23d2f5"); in aes_256_cbc_test_encrypt_more_than_one_block()
175 decode_hex("fbea776fb1653635f88e2937ed2450ba4e9063e96d7cdba04928f01cb85492fe"); in aes_256_cbc_test_encrypt_more_than_one_block()
183 let key = decode_hex("ea3b016bdd387dd64d837c71683808f335dbdc53598a4ea8c5f952473fafaf5f"); in aes_256_cbc_test_decrypt()
184 let iv = decode_hex("fae3e2054113f6b3b904aadbfe59655c"); in aes_256_cbc_test_decrypt()
186 let ciphertext: [u8; 16] = decode_hex("b90c326b72eb222ddb4dae47f2bc223c"); in aes_256_cbc_test_decrypt()
190 let expected_plaintext: [u8; 2] = decode_hex("6601"); in aes_256_cbc_test_decrypt()