Lines Matching refs:zero
114 static const unsigned char zero[4 * CHACHA_BLK_SIZE] = { 0 }; variable
116 static const unsigned char zero[2 * CHACHA_BLK_SIZE] = { 0 }; variable
127 unsigned char *buf, *tohash, *ctr, storage[sizeof(zero) + 32]; in chacha20_poly1305_tls_cipher()
139 ChaCha20_ctr32(buf, zero, buf_len, ctx->chacha.key.d, ctx->chacha.counter); in chacha20_poly1305_tls_cipher()
163 ChaCha20_ctr32(buf, zero, (buf_len = 2 * CHACHA_BLK_SIZE), in chacha20_poly1305_tls_cipher()
195 ChaCha20_ctr32(buf, zero, (buf_len = CHACHA_BLK_SIZE), in chacha20_poly1305_tls_cipher()
217 Poly1305_Update(poly, zero, tail); in chacha20_poly1305_tls_cipher()
266 static const unsigned char zero[CHACHA_BLK_SIZE] = { 0 }; variable
291 ChaCha20_ctr32(ctx->chacha.buf, zero, CHACHA_BLK_SIZE, in chacha20_poly1305_aead_cipher()
314 Poly1305_Update(poly, zero, POLY1305_BLOCK_SIZE - rem); in chacha20_poly1305_aead_cipher()
346 Poly1305_Update(poly, zero, POLY1305_BLOCK_SIZE - rem); in chacha20_poly1305_aead_cipher()
351 Poly1305_Update(poly, zero, POLY1305_BLOCK_SIZE - rem); in chacha20_poly1305_aead_cipher()