Lines Matching defs:ctr
82 * @ctr: Points to the counter value.
89 const u8 *assoc, int assoc_len, __be32 *ctr, u8 *authtag)
99 ctr[3] = cpu_to_be32(1);
100 aesgcm_encrypt_block(&ctx->aes_key, buf, ctr);
108 int len, __be32 *ctr)
121 ctr[3] = cpu_to_be32(n++);
122 aesgcm_encrypt_block(&ctx->aes_key, buf, ctr);
151 __be32 ctr[4];
153 memcpy(ctr, iv, GCM_AES_IV_SIZE);
155 aesgcm_crypt(ctx, dst, src, crypt_len, ctr);
156 aesgcm_mac(ctx, dst, crypt_len, assoc, assoc_len, ctr, authtag);
183 __be32 ctr[4];
185 memcpy(ctr, iv, GCM_AES_IV_SIZE);
187 aesgcm_mac(ctx, src, crypt_len, assoc, assoc_len, ctr, tagbuf);
192 aesgcm_crypt(ctx, dst, src, crypt_len, ctr);