Lines Matching refs:out_len
110 size_t out_len; in tv_stream_xchacha20() local
124 tv->out, strlen(tv->out), NULL, &out_len, NULL); in tv_stream_xchacha20()
125 out2 = (unsigned char *) sodium_malloc(out_len); in tv_stream_xchacha20()
126 crypto_stream_xchacha20(out2, out_len, nonce, key); in tv_stream_xchacha20()
127 assert(memcmp(out, out2, out_len) == 0); in tv_stream_xchacha20()
128 crypto_stream_xchacha20_xor(out2, out, out_len, nonce, key); in tv_stream_xchacha20()
129 assert(sodium_is_zero(out2, out_len)); in tv_stream_xchacha20()
130 crypto_stream_xchacha20_xor_ic(out2, out, out_len, nonce, 0, key); in tv_stream_xchacha20()
131 assert(sodium_is_zero(out2, out_len)); in tv_stream_xchacha20()
132 crypto_stream_xchacha20_xor_ic(out2, out, out_len, nonce, 1, key); in tv_stream_xchacha20()
133 assert(!sodium_is_zero(out2, out_len)); in tv_stream_xchacha20()
134 crypto_stream_xchacha20_xor(out, out, out_len, nonce, key); in tv_stream_xchacha20()
135 assert(sodium_is_zero(out, out_len)); in tv_stream_xchacha20()