Lines Matching refs:ctr
83 * @ctr: Points to the counter value.
90 const u8 *assoc, int assoc_len, __be32 *ctr, u8 *authtag)
100 ctr[3] = cpu_to_be32(1);
101 aesgcm_encrypt_block(&ctx->aes_ctx, buf, ctr);
109 int len, __be32 *ctr)
122 ctr[3] = cpu_to_be32(n++);
123 aesgcm_encrypt_block(&ctx->aes_ctx, buf, ctr);
152 __be32 ctr[4];
154 memcpy(ctr, iv, GCM_AES_IV_SIZE);
156 aesgcm_crypt(ctx, dst, src, crypt_len, ctr);
157 aesgcm_mac(ctx, dst, crypt_len, assoc, assoc_len, ctr, authtag);
184 __be32 ctr[4];
186 memcpy(ctr, iv, GCM_AES_IV_SIZE);
188 aesgcm_mac(ctx, src, crypt_len, assoc, assoc_len, ctr, tagbuf);
193 aesgcm_crypt(ctx, dst, src, crypt_len, ctr);