Lines Matching full:out

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