Lines Matching refs:Yi
504 ctx->Yi.u[0] = 0;
505 ctx->Yi.u[1] = 0;
514 memcpy(ctx->Yi.c, iv, 12);
515 ctx->Yi.c[15] = 1;
523 ctx->Yi.c[i] ^= iv[i];
525 GCM_MUL(ctx, Yi);
531 ctx->Yi.c[i] ^= iv[i];
533 GCM_MUL(ctx, Yi);
538 ctx->Yi.u[1] ^= BSWAP8(len0);
540 ctx->Yi.c[8] ^= (uint8_t)(len0 >> 56);
541 ctx->Yi.c[9] ^= (uint8_t)(len0 >> 48);
542 ctx->Yi.c[10] ^= (uint8_t)(len0 >> 40);
543 ctx->Yi.c[11] ^= (uint8_t)(len0 >> 32);
544 ctx->Yi.c[12] ^= (uint8_t)(len0 >> 24);
545 ctx->Yi.c[13] ^= (uint8_t)(len0 >> 16);
546 ctx->Yi.c[14] ^= (uint8_t)(len0 >> 8);
547 ctx->Yi.c[15] ^= (uint8_t)(len0);
550 ctx->Yi.u[1] ^= len0;
553 GCM_MUL(ctx, Yi);
556 ctr = GETU32(ctx->Yi.c + 12);
558 ctr = ctx->Yi.d[3];
562 (*ctx->block)(ctx->Yi.c, ctx->EK0.c, key);
565 PUTU32(ctx->Yi.c + 12, ctr);
567 ctx->Yi.d[3] = ctr;
668 ctr = GETU32(ctx->Yi.c + 12);
670 ctr = ctx->Yi.d[3];
690 (*block)(ctx->Yi.c, ctx->EKi.c, key);
693 PUTU32(ctx->Yi.c + 12, ctr);
695 ctx->Yi.d[3] = ctr;
716 (*block)(ctx->Yi.c, ctx->EKi.c, key);
719 PUTU32(ctx->Yi.c + 12, ctr);
721 ctx->Yi.d[3] = ctr;
740 (*block)(ctx->Yi.c, ctx->EKi.c, key);
743 PUTU32(ctx->Yi.c + 12, ctr);
745 ctx->Yi.d[3] = ctr;
761 (*block)(ctx->Yi.c, ctx->EKi.c, key);
764 PUTU32(ctx->Yi.c + 12, ctr);
766 ctx->Yi.d[3] = ctr;
778 (*block)(ctx->Yi.c, ctx->EKi.c, key);
781 PUTU32(ctx->Yi.c + 12, ctr);
783 ctx->Yi.d[3] = ctr;
828 ctr = GETU32(ctx->Yi.c + 12);
830 ctr = ctx->Yi.d[3];
853 (*block)(ctx->Yi.c, ctx->EKi.c, key);
856 PUTU32(ctx->Yi.c + 12, ctr);
858 ctx->Yi.d[3] = ctr;
882 (*block)(ctx->Yi.c, ctx->EKi.c, key);
885 PUTU32(ctx->Yi.c + 12, ctr);
887 ctx->Yi.d[3] = ctr;
904 (*block)(ctx->Yi.c, ctx->EKi.c, key);
907 PUTU32(ctx->Yi.c + 12, ctr);
909 ctx->Yi.d[3] = ctr;
924 (*block)(ctx->Yi.c, ctx->EKi.c, key);
927 PUTU32(ctx->Yi.c + 12, ctr);
929 ctx->Yi.d[3] = ctr;
943 (*block)(ctx->Yi.c, ctx->EKi.c, key);
946 PUTU32(ctx->Yi.c + 12, ctr);
948 ctx->Yi.d[3] = ctr;
993 ctr = GETU32(ctx->Yi.c + 12);
995 ctr = ctx->Yi.d[3];
1014 (*stream)(in, out, GHASH_CHUNK / 16, key, ctx->Yi.c);
1017 PUTU32(ctx->Yi.c + 12, ctr);
1019 ctx->Yi.d[3] = ctr;
1031 (*stream)(in, out, j, key, ctx->Yi.c);
1034 PUTU32(ctx->Yi.c + 12, ctr);
1036 ctx->Yi.d[3] = ctr;
1054 (*ctx->block)(ctx->Yi.c, ctx->EKi.c, key);
1057 PUTU32(ctx->Yi.c + 12, ctr);
1059 ctx->Yi.d[3] = ctr;
1102 ctr = GETU32(ctx->Yi.c + 12);
1104 ctr = ctx->Yi.d[3];
1126 (*stream)(in, out, GHASH_CHUNK / 16, key, ctx->Yi.c);
1129 PUTU32(ctx->Yi.c + 12, ctr);
1131 ctx->Yi.d[3] = ctr;
1156 (*stream)(in, out, j, key, ctx->Yi.c);
1159 PUTU32(ctx->Yi.c + 12, ctr);
1161 ctx->Yi.d[3] = ctr;
1168 (*ctx->block)(ctx->Yi.c, ctx->EKi.c, key);
1171 PUTU32(ctx->Yi.c + 12, ctr);
1173 ctx->Yi.d[3] = ctr;