Home | History | Annotate | Download | only in default

Lines Matching refs:out

25     unsigned char  out[160];
37 crypto_stream_chacha20(out, sizeof out, nonce, key);
38 sodium_bin2hex(out_hex, sizeof out_hex, out, sizeof out);
40 for (plen = 1U; plen < sizeof out; plen++) {
42 crypto_stream_chacha20_xor(part, out, plen, nonce, key);
49 assert(66 <= sizeof out);
51 memset(out, (int) (plen & 0xff), sizeof out);
52 crypto_stream_chacha20(out, plen, nonce, key);
53 sodium_bin2hex(out_hex, sizeof out_hex, out, sizeof out);
56 randombytes_buf(out, sizeof out);
57 crypto_stream_chacha20(out, sizeof out, nonce, key);
58 sodium_bin2hex(out_hex, sizeof out_hex, out, sizeof out);
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);
66 memset(out, 0x42, sizeof out);
67 crypto_stream_chacha20_xor(out, out, sizeof out, nonce, key);
68 sodium_bin2hex(out_hex, sizeof out_hex, out, sizeof out);
71 crypto_stream_chacha20_xor_ic(out, out, sizeof out, nonce, 0U, key);
72 sodium_bin2hex(out_hex, sizeof out_hex, out, sizeof out);
75 crypto_stream_chacha20_xor_ic(out, out, sizeof out, nonce, 1U, key);
76 sodium_bin2hex(out_hex, sizeof out_hex, out, sizeof out);
112 unsigned char out[160];
124 memset(out, 0, sizeof out);
125 crypto_stream_chacha20_ietf_xor_ic(out, out, sizeof out, nonce, tests[i].ic, key);
126 sodium_bin2hex(out_hex, sizeof out_hex, out, sizeof out);
128 for (plen = 1U; plen < sizeof out; plen++) {
130 crypto_stream_chacha20_ietf_xor_ic(part, out, plen, nonce, tests[i].ic, key);
137 assert(66 <= sizeof out);
139 memset(out, (int) (plen & 0xff), sizeof out);
140 crypto_stream_chacha20(out, plen, nonce, key);
141 sodium_bin2hex(out_hex, sizeof out_hex, out, sizeof out);
144 randombytes_buf(out, sizeof out);
145 crypto_stream_chacha20_ietf(out, sizeof out, nonce, key);
146 sodium_bin2hex(out_hex, sizeof out_hex, out, sizeof out);
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);
154 memset(out, 0x42, sizeof out);
155 crypto_stream_chacha20_ietf_xor(out, out, sizeof out, nonce, key);
156 sodium_bin2hex(out_hex, sizeof out_hex, out, sizeof out);
159 crypto_stream_chacha20_ietf_xor_ic(out, out, sizeof out, nonce, 0U, key);
160 sodium_bin2hex(out_hex, sizeof out_hex, out, sizeof out);
163 crypto_stream_chacha20_ietf_xor_ic(out, out, sizeof out, nonce, 1U, key);
164 sodium_bin2hex(out_hex, sizeof out_hex, out, sizeof out);