Lines Matching defs:ctr
77 const u8 *assoc, int assoc_len, __be32 *ctr, u8 *authtag)
87 ctr[3] = cpu_to_be32(1);
88 aesgcm_encrypt_block(&ctx->aes_ctx, buf, ctr);
96 int len, __be32 *ctr)
109 ctr[3] = cpu_to_be32(n++);
110 aesgcm_encrypt_block(&ctx->aes_ctx, buf, ctr);
139 __be32 ctr[4];
141 memcpy(ctr, iv, GCM_AES_IV_SIZE);
143 aesgcm_crypt(ctx, dst, src, crypt_len, ctr);
144 aesgcm_mac(ctx, dst, crypt_len, assoc, assoc_len, ctr, authtag);
171 __be32 ctr[4];
173 memcpy(ctr, iv, GCM_AES_IV_SIZE);
175 aesgcm_mac(ctx, src, crypt_len, assoc, assoc_len, ctr, tagbuf);
180 aesgcm_crypt(ctx, dst, src, crypt_len, ctr);