Lines Matching refs:iv
48 u8 iv[CHACHA_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()
136 chacha_iv(creq->iv, req, 1); in chacha_decrypt()
147 rctx->cryptlen, creq->iv); in chacha_decrypt()
381 chacha_iv(creq->iv, req, 0); in poly_genkey()
387 POLY1305_KEY_SIZE, creq->iv); in poly_genkey()
412 chacha_iv(creq->iv, req, 1); in chacha_encrypt()
423 req->cryptlen, creq->iv); in chacha_encrypt()