Lines Matching defs:buf
80 u8 buf[AES_BLOCK_SIZE];
88 aesgcm_encrypt_block(&ctx->aes_ctx, buf, ctr);
89 crypto_xor_cpy(authtag, buf, (u8 *)&ghash, ctx->authsize);
92 memzero_explicit(buf, sizeof(buf));
98 u8 buf[AES_BLOCK_SIZE];
110 aesgcm_encrypt_block(&ctx->aes_ctx, buf, ctr);
111 crypto_xor_cpy(dst, src, buf, min(len, AES_BLOCK_SIZE));
117 memzero_explicit(buf, sizeof(buf));
687 u8 buf[sizeof(ptext12)];
695 if (!aesgcm_decrypt(&ctx, buf, aesgcm_tv[i].ctext, plen,
698 || memcmp(buf, aesgcm_tv[i].ptext, plen)) {
704 aesgcm_encrypt(&ctx, buf, buf, plen, aesgcm_tv[i].assoc,
706 if (memcmp(buf, aesgcm_tv[i].ctext, plen)) {
712 if (!aesgcm_decrypt(&ctx, buf, buf, plen, aesgcm_tv[i].assoc,
714 || memcmp(buf, aesgcm_tv[i].ptext, plen)) {