Lines Matching +full:64 +full:m
146 out = (unsigned char *) sodium_malloc(64); in tv_stream_xchacha20()
148 randombytes_buf(out, 64); in tv_stream_xchacha20()
149 randombytes_buf(out2, 64); in tv_stream_xchacha20()
150 memcpy(out2 + 64, out, 64); in tv_stream_xchacha20()
151 crypto_stream_xchacha20_xor_ic(out, out, 64, nonce, 1, key); in tv_stream_xchacha20()
153 assert(memcmp(out, out2 + 64, 64) == 0); in tv_stream_xchacha20()
163 crypto_stream_xchacha20_xor_ic(out, out, 64, nonce, in tv_stream_xchacha20()
165 crypto_stream_xchacha20_xor_ic(out + 64, out + 64, 64, nonce, in tv_stream_xchacha20()
167 crypto_stream_xchacha20_xor_ic(out + 128, out + 128, 64, nonce, in tv_stream_xchacha20()
195 const char *m; member
215 unsigned char *m; in tv_secretbox_xchacha20poly1305() local
230 m_len = strlen(tv->m) / 2; in tv_secretbox_xchacha20poly1305()
231 m = (unsigned char *) sodium_malloc(m_len); in tv_secretbox_xchacha20poly1305()
236 sodium_hex2bin(m, m_len, tv->m, strlen(tv->m), NULL, NULL, NULL); in tv_secretbox_xchacha20poly1305()
243 assert(crypto_secretbox_xchacha20poly1305_easy(out2, m, 0, nonce, key) == 0); in tv_secretbox_xchacha20poly1305()
244 assert(crypto_secretbox_xchacha20poly1305_easy(out2, m, m_len, nonce, key) == 0); in tv_secretbox_xchacha20poly1305()
272 assert(memcmp(m, out2, m_len) == 0); in tv_secretbox_xchacha20poly1305()
280 (out2 + crypto_secretbox_xchacha20poly1305_MACBYTES, out2, m, in tv_secretbox_xchacha20poly1305()
286 sodium_free(m); in tv_secretbox_xchacha20poly1305()
305 unsigned char *m; in tv_box_xchacha20poly1305() local
322 m = (unsigned char *) sodium_malloc(m_len); in tv_box_xchacha20poly1305()
328 randombytes_buf(m, m_len); in tv_box_xchacha20poly1305()
330 assert(crypto_box_curve25519xchacha20poly1305_easy(out, m, 0, nonce, in tv_box_xchacha20poly1305()
332 assert(crypto_box_curve25519xchacha20poly1305_easy(out, m, m_len, nonce, in tv_box_xchacha20poly1305()
345 assert(memcmp(m2, m, m_len) == 0); in tv_box_xchacha20poly1305()
353 (out, m, 0, nonce, pc) == 0); in tv_box_xchacha20poly1305()
355 (out, m, m_len, nonce, pc) == 0); in tv_box_xchacha20poly1305()
365 assert(memcmp(m2, m, m_len) == 0); in tv_box_xchacha20poly1305()
369 assert(crypto_box_curve25519xchacha20poly1305_detached(out, mac, m, m_len, in tv_box_xchacha20poly1305()
371 assert(crypto_box_curve25519xchacha20poly1305_detached(out, mac, m, m_len, in tv_box_xchacha20poly1305()
381 (out, mac, m, m_len, nonce, pc) == 0); in tv_box_xchacha20poly1305()
387 sodium_free(m); in tv_box_xchacha20poly1305()