Lines Matching refs:POLY1305_ctx
165 # define POLY1305_ctx(actx) ((POLY1305 *)(actx + 1)) macro
234 Poly1305_Init(POLY1305_ctx(actx), buf); in chacha20_poly1305_tls_cipher()
259 Poly1305_Init(POLY1305_ctx(actx), buf); in chacha20_poly1305_tls_cipher()
291 Poly1305_Init(POLY1305_ctx(actx), buf); in chacha20_poly1305_tls_cipher()
294 Poly1305_Update(POLY1305_ctx(actx), actx->tls_aad, POLY1305_BLOCK_SIZE); in chacha20_poly1305_tls_cipher()
302 Poly1305_Update(POLY1305_ctx(actx), out, plen); in chacha20_poly1305_tls_cipher()
304 Poly1305_Update(POLY1305_ctx(actx), in, plen); in chacha20_poly1305_tls_cipher()
311 Poly1305_Update(POLY1305_ctx(actx), zero, tail); in chacha20_poly1305_tls_cipher()
341 Poly1305_Update(POLY1305_ctx(actx), tohash, tohash_len); in chacha20_poly1305_tls_cipher()
343 Poly1305_Final(POLY1305_ctx(actx), ctx->encrypt ? actx->tag in chacha20_poly1305_tls_cipher()
378 Poly1305_Init(POLY1305_ctx(actx), actx->key.buf); in chacha20_poly1305_cipher()
384 Poly1305_Update(POLY1305_ctx(actx), actx->tls_aad, in chacha20_poly1305_cipher()
393 Poly1305_Update(POLY1305_ctx(actx), in, len); in chacha20_poly1305_cipher()
400 Poly1305_Update(POLY1305_ctx(actx), zero, in chacha20_poly1305_cipher()
413 Poly1305_Update(POLY1305_ctx(actx), out, plen); in chacha20_poly1305_cipher()
418 Poly1305_Update(POLY1305_ctx(actx), in, plen); in chacha20_poly1305_cipher()
433 Poly1305_Update(POLY1305_ctx(actx), zero, in chacha20_poly1305_cipher()
439 Poly1305_Update(POLY1305_ctx(actx), zero, in chacha20_poly1305_cipher()
443 Poly1305_Update(POLY1305_ctx(actx), in chacha20_poly1305_cipher()
464 Poly1305_Update(POLY1305_ctx(actx), temp, POLY1305_BLOCK_SIZE); in chacha20_poly1305_cipher()
466 Poly1305_Final(POLY1305_ctx(actx), ctx->encrypt ? actx->tag in chacha20_poly1305_cipher()