Lines Matching defs:ivbuf
40 ctr_128(const unsigned char *sk, const unsigned char *ivbuf,
100 lxvw4x(48, %[cc0], %[ivbuf])
101 lxvw4x(49, %[cc1], %[ivbuf])
102 lxvw4x(50, %[cc2], %[ivbuf])
103 lxvw4x(51, %[cc3], %[ivbuf])
211 : [sk] "b" (sk), [ivbuf] "b" (ivbuf), [num_blocks] "b" (num_blocks >> 2),
224 ctr_192(const unsigned char *sk, const unsigned char *ivbuf,
288 lxvw4x(48, %[cc0], %[ivbuf])
289 lxvw4x(49, %[cc1], %[ivbuf])
290 lxvw4x(50, %[cc2], %[ivbuf])
291 lxvw4x(51, %[cc3], %[ivbuf])
407 : [sk] "b" (sk), [ivbuf] "b" (ivbuf), [num_blocks] "b" (num_blocks >> 2),
420 ctr_256(const unsigned char *sk, const unsigned char *ivbuf,
488 lxvw4x(48, %[cc0], %[ivbuf])
489 lxvw4x(49, %[cc1], %[ivbuf])
490 lxvw4x(50, %[cc2], %[ivbuf])
491 lxvw4x(51, %[cc3], %[ivbuf])
615 : [sk] "b" (sk), [ivbuf] "b" (ivbuf), [num_blocks] "b" (num_blocks >> 2),
633 unsigned char ivbuf[64];
636 memcpy(ivbuf + 0, iv, 12);
637 memcpy(ivbuf + 16, iv, 12);
638 memcpy(ivbuf + 32, iv, 12);
639 memcpy(ivbuf + 48, iv, 12);
641 br_enc32be(ivbuf + 12, cc + 0);
642 br_enc32be(ivbuf + 28, cc + 1);
643 br_enc32be(ivbuf + 44, cc + 2);
644 br_enc32be(ivbuf + 60, cc + 3);
647 ctr_128(ctx->skey.skni, ivbuf, buf,
651 ctr_192(ctx->skey.skni, ivbuf, buf,
655 ctr_256(ctx->skey.skni, ivbuf, buf,
668 br_enc32be(ivbuf + 12, cc + 0);
669 br_enc32be(ivbuf + 28, cc + 1);
670 br_enc32be(ivbuf + 44, cc + 2);
671 br_enc32be(ivbuf + 60, cc + 3);
674 ctr_128(ctx->skey.skni, ivbuf, tmp, 4);
677 ctr_192(ctx->skey.skni, ivbuf, tmp, 4);
680 ctr_256(ctx->skey.skni, ivbuf, tmp, 4);