Lines Matching refs:__vmac_ctx
469 in_n = ctx->__vmac_ctx.cached_nonce; in vmac()
470 out_p = ctx->__vmac_ctx.cached_aes; in vmac()
483 h = vhash(m, mbytes, (u64 *)0, &ctx->__vmac_ctx); in vmac()
499 for (i = 0; i < sizeof(ctx->__vmac_ctx.nhkey)/8; i += 2) { in vmac_set_key()
502 ctx->__vmac_ctx.nhkey[i] = be64_to_cpup(out); in vmac_set_key()
503 ctx->__vmac_ctx.nhkey[i+1] = be64_to_cpup(out+1); in vmac_set_key()
510 for (i = 0; i < sizeof(ctx->__vmac_ctx.polykey)/8; i += 2) { in vmac_set_key()
513 ctx->__vmac_ctx.polytmp[i] = in vmac_set_key()
514 ctx->__vmac_ctx.polykey[i] = in vmac_set_key()
516 ctx->__vmac_ctx.polytmp[i+1] = in vmac_set_key()
517 ctx->__vmac_ctx.polykey[i+1] = in vmac_set_key()
525 for (i = 0; i < sizeof(ctx->__vmac_ctx.l3key)/8; i += 2) { in vmac_set_key()
529 ctx->__vmac_ctx.l3key[i] = be64_to_cpup(out); in vmac_set_key()
530 ctx->__vmac_ctx.l3key[i+1] = be64_to_cpup(out+1); in vmac_set_key()
532 } while (ctx->__vmac_ctx.l3key[i] >= p64 in vmac_set_key()
533 || ctx->__vmac_ctx.l3key[i+1] >= p64); in vmac_set_key()
537 ctx->__vmac_ctx.cached_nonce[0] = (u64)-1; /* Ensure illegal nonce */ in vmac_set_key()
538 ctx->__vmac_ctx.cached_nonce[1] = (u64)0; /* Ensure illegal nonce */ in vmac_set_key()
539 ctx->__vmac_ctx.first_block_processed = 0; in vmac_set_key()
581 vhash_update(ctx->partial, VMAC_NHBYTES, &ctx->__vmac_ctx); in vmac_update()
593 vhash_update(p, len - len % VMAC_NHBYTES, &ctx->__vmac_ctx); in vmac_update()
617 memset(&ctx->__vmac_ctx, 0, sizeof(struct vmac_ctx)); in vmac_final()