Lines Matching refs:iv
54 u8 iv[CHACHA20_IV_SIZE]; member
86 static void chacha_iv(u8 *iv, struct aead_request *req, u32 icb) in chacha_iv() argument
91 memcpy(iv, &leicb, sizeof(leicb)); in chacha_iv()
92 memcpy(iv + sizeof(leicb), ctx->salt, ctx->saltlen); in chacha_iv()
93 memcpy(iv + sizeof(leicb) + ctx->saltlen, req->iv, in chacha_iv()
133 chacha_iv(creq->iv, req, 1); in chacha_decrypt()
148 rctx->cryptlen, creq->iv); in chacha_decrypt()
390 chacha_iv(creq->iv, req, 0); in poly_genkey()
396 POLY1305_KEY_SIZE, creq->iv); in poly_genkey()
418 chacha_iv(creq->iv, req, 1); in chacha_encrypt()
433 req->cryptlen, creq->iv); in chacha_encrypt()