Lines Matching defs:tests
11 } tests[]
33 sodium_hex2bin((unsigned char *)key, sizeof key, tests[i].key_hex,
34 strlen(tests[i].key_hex), NULL, NULL, NULL);
35 sodium_hex2bin(nonce, sizeof nonce, tests[i].nonce_hex,
36 strlen(tests[i].nonce_hex), NULL, NULL, NULL);
48 } while (++i < (sizeof tests) / (sizeof tests[0]));
87 } tests[]
120 sodium_hex2bin((unsigned char *)key, sizeof key, tests[i].key_hex,
121 strlen(tests[i].key_hex), ": ", NULL, NULL);
122 sodium_hex2bin(nonce, sizeof nonce, tests[i].nonce_hex,
123 strlen(tests[i].nonce_hex), ": ", NULL, NULL);
125 crypto_stream_chacha20_ietf_xor_ic(out, out, sizeof out, nonce, tests[i].ic, key);
130 crypto_stream_chacha20_ietf_xor_ic(part, out, plen, nonce, tests[i].ic, key);
136 } while (++i < (sizeof tests) / (sizeof tests[0]));