Home | History | Annotate | Download | only in default

Lines Matching defs:nonce

23     unsigned char  nonce[crypto_stream_chacha20_NONCEBYTES];
35 sodium_hex2bin(nonce, sizeof nonce, tests[i].nonce_hex,
37 crypto_stream_chacha20(out, sizeof out, nonce, key);
42 crypto_stream_chacha20_xor(part, out, plen, nonce, key);
52 crypto_stream_chacha20(out, plen, nonce, key);
57 crypto_stream_chacha20(out, sizeof out, nonce, key);
61 assert(crypto_stream_chacha20(out, 0U, nonce, key) == 0);
62 assert(crypto_stream_chacha20_xor(out, out, 0U, nonce, key) == 0);
63 assert(crypto_stream_chacha20_xor(out, out, 0U, nonce, key) == 0);
64 assert(crypto_stream_chacha20_xor_ic(out, out, 0U, nonce, 1U, key) == 0);
67 crypto_stream_chacha20_xor(out, out, sizeof out, nonce, key);
71 crypto_stream_chacha20_xor_ic(out, out, sizeof out, nonce, 0U, key);
75 crypto_stream_chacha20_xor_ic(out, out, sizeof out, nonce, 1U, key);
110 unsigned char nonce[crypto_stream_chacha20_IETF_NONCEBYTES];
122 sodium_hex2bin(nonce, sizeof nonce, tests[i].nonce_hex,
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);
140 crypto_stream_chacha20(out, plen, nonce, key);
145 crypto_stream_chacha20_ietf(out, sizeof out, nonce, key);
149 assert(crypto_stream_chacha20_ietf(out, 0U, nonce, key) == 0);
150 assert(crypto_stream_chacha20_ietf_xor(out, out, 0U, nonce, key) == 0);
151 assert(crypto_stream_chacha20_ietf_xor(out, out, 0U, nonce, key) == 0);
152 assert(crypto_stream_chacha20_ietf_xor_ic(out, out, 0U, nonce, 1U, key) == 0);
155 crypto_stream_chacha20_ietf_xor(out, out, sizeof out, nonce, key);
159 crypto_stream_chacha20_ietf_xor_ic(out, out, sizeof out, nonce, 0U, key);
163 crypto_stream_chacha20_ietf_xor_ic(out, out, sizeof out, nonce, 1U, key);