Searched refs:ivbuf (Results 1 - 20 of 20) sorted by relevance

/freebsd-13-stable/contrib/bearssl/src/symcipher/
H A Daes_ct_cbcenc.c41 unsigned char *buf, *ivbuf; local
51 ivbuf = iv;
52 iv0 = br_dec32le(ivbuf);
53 iv1 = br_dec32le(ivbuf + 4);
54 iv2 = br_dec32le(ivbuf + 8);
55 iv3 = br_dec32le(ivbuf + 12);
76 br_enc32le(ivbuf, iv0);
77 br_enc32le(ivbuf + 4, iv1);
78 br_enc32le(ivbuf + 8, iv2);
79 br_enc32le(ivbuf
[all...]
H A Daes_big_cbcdec.c41 unsigned char *buf, *ivbuf; local
43 ivbuf = iv;
52 buf[i] ^= ivbuf[i];
54 memcpy(ivbuf, tmp, 16);
H A Daes_big_cbcenc.c41 unsigned char *buf, *ivbuf; local
43 ivbuf = iv;
49 buf[i] ^= ivbuf[i];
52 memcpy(ivbuf, buf, 16);
H A Daes_small_cbcdec.c41 unsigned char *buf, *ivbuf; local
43 ivbuf = iv;
52 buf[i] ^= ivbuf[i];
54 memcpy(ivbuf, tmp, 16);
H A Daes_small_cbcenc.c41 unsigned char *buf, *ivbuf; local
43 ivbuf = iv;
49 buf[i] ^= ivbuf[i];
52 memcpy(ivbuf, buf, 16);
H A Ddes_ct_cbcenc.c41 unsigned char *buf, *ivbuf; local
45 ivbuf = iv;
51 buf[i] ^= ivbuf[i];
54 memcpy(ivbuf, buf, 8);
H A Ddes_tab_cbcenc.c41 unsigned char *buf, *ivbuf; local
43 ivbuf = iv;
49 buf[i] ^= ivbuf[i];
52 memcpy(ivbuf, buf, 8);
H A Daes_ct_ctrcbc.c55 unsigned char *ivbuf; local
66 ivbuf = ctr;
67 iv0 = br_dec32be(ivbuf + 0);
68 iv1 = br_dec32be(ivbuf + 4);
69 iv2 = br_dec32be(ivbuf + 8);
70 iv3 = br_dec32be(ivbuf + 12);
127 br_enc32be(ivbuf + 0, iv0);
128 br_enc32be(ivbuf + 4, iv1);
129 br_enc32be(ivbuf + 8, iv2);
130 br_enc32be(ivbuf
191 unsigned char *ivbuf; local
321 unsigned char *ivbuf; local
[all...]
H A Daes_ct_cbcdec.c41 unsigned char *buf, *ivbuf; local
46 ivbuf = iv;
47 iv0 = br_dec32le(ivbuf);
48 iv1 = br_dec32le(ivbuf + 4);
49 iv2 = br_dec32le(ivbuf + 8);
50 iv3 = br_dec32le(ivbuf + 12);
96 br_enc32le(ivbuf, iv0);
97 br_enc32le(ivbuf + 4, iv1);
98 br_enc32le(ivbuf + 8, iv2);
99 br_enc32le(ivbuf
[all...]
H A Daes_pwr8_ctr.c40 ctr_128(const unsigned char *sk, const unsigned char *ivbuf, argument
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, argument
288 lxvw4x(48, %[cc0], %[ivbuf])
289 lxvw4x(49, %[cc1], %[ivbuf])
420 ctr_256(const unsigned char *sk, const unsigned char *ivbuf, unsigned char *buf, size_t num_blocks) argument
633 unsigned char ivbuf[64]; local
[all...]
H A Daes_ct64_ctrcbc.c55 unsigned char *ivbuf; local
66 ivbuf = ctr;
67 iv0 = br_dec32be(ivbuf + 0);
68 iv1 = br_dec32be(ivbuf + 4);
69 iv2 = br_dec32be(ivbuf + 8);
70 iv3 = br_dec32be(ivbuf + 12);
122 br_enc32be(ivbuf + 0, iv0);
123 br_enc32be(ivbuf + 4, iv1);
124 br_enc32be(ivbuf + 8, iv2);
125 br_enc32be(ivbuf
187 unsigned char *ivbuf; local
326 unsigned char *ivbuf; local
[all...]
H A Ddes_ct_cbcdec.c57 unsigned char *buf, *ivbuf; local
61 ivbuf = iv;
70 buf[i] ^= ivbuf[i];
72 memcpy(ivbuf, tmp, 8);
H A Ddes_tab_cbcdec.c57 unsigned char *buf, *ivbuf; local
59 ivbuf = iv;
68 buf[i] ^= ivbuf[i];
70 memcpy(ivbuf, tmp, 8);
H A Daes_ct_ctr.c55 const unsigned char *ivbuf; local
60 ivbuf = iv;
61 iv0 = br_dec32le(ivbuf);
62 iv1 = br_dec32le(ivbuf + 4);
63 iv2 = br_dec32le(ivbuf + 8);
H A Daes_x86ni_ctr.c55 unsigned char ivbuf[16]; local
62 memcpy(ivbuf, iv, 12);
67 ivx = _mm_loadu_si128((void *)ivbuf);
/freebsd-13-stable/sys/contrib/openzfs/include/sys/
H A Dzio_crypt.h131 int zio_crypt_generate_iv(uint8_t *ivbuf);
133 uint_t datalen, uint8_t *ivbuf, uint8_t *salt);
/freebsd-13-stable/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dcrypto_os.c204 uint8_t *ivbuf,
220 ivbuf, (unsigned int)datalen, (unsigned int)auth_len);
328 uint8_t *ivbuf,
338 key, ivbuf, datalen, auth_len);
367 bcopy(ivbuf, crp->crp_iv, ZIO_DATA_IV_LEN);
498 uint8_t *ivbuf,
510 key, ivbuf, datalen, auth_len);
598 bcopy(ivbuf, enc_desc->crd_iv, ZIO_DATA_IV_LEN);
199 freebsd_crypt_uio_debug_log(boolean_t encrypt, freebsd_crypt_session_t *input_sessionp, struct zio_crypt_info *c_info, zfs_uio_t *data_uio, crypto_key_t *key, uint8_t *ivbuf, size_t datalen, size_t auth_len) argument
323 freebsd_crypt_uio(boolean_t encrypt, freebsd_crypt_session_t *input_sessionp, struct zio_crypt_info *c_info, zfs_uio_t *data_uio, crypto_key_t *key, uint8_t *ivbuf, size_t datalen, size_t auth_len) argument
493 freebsd_crypt_uio(boolean_t encrypt, freebsd_crypt_session_t *input_sessionp, struct zio_crypt_info *c_info, zfs_uio_t *data_uio, crypto_key_t *key, uint8_t *ivbuf, size_t datalen, size_t auth_len) argument
H A Dzio_crypt.c406 uint64_t crypt, crypto_key_t *key, uint8_t *ivbuf, uint_t datalen,
418 ret = freebsd_crypt_uio(encrypt, sess, ci, uio, key, ivbuf,
624 zio_crypt_generate_iv(uint8_t *ivbuf) argument
629 ret = random_get_pseudo_bytes(ivbuf, ZIO_DATA_IV_LEN);
636 bzero(ivbuf, ZIO_DATA_IV_LEN);
658 uint_t datalen, uint8_t *ivbuf, uint8_t *salt)
669 bcopy(digestbuf + ZIO_DATA_SALT_LEN, ivbuf, ZIO_DATA_IV_LEN);
405 zio_do_crypt_uio_opencrypto(boolean_t encrypt, freebsd_crypt_session_t *sess, uint64_t crypt, crypto_key_t *key, uint8_t *ivbuf, uint_t datalen, zfs_uio_t *uio, uint_t auth_len) argument
657 zio_crypt_generate_iv_salt_dedup(zio_crypt_key_t *key, uint8_t *data, uint_t datalen, uint8_t *ivbuf, uint8_t *salt) argument
/freebsd-13-stable/tests/sys/opencrypto/
H A Dcryptodev.py223 ivbuf = array.array('B', str_to_ascii(iv))
224 cop.iv = ivbuf.buffer_info()[0]
263 ivbuf = array.array('B', iv)
265 caead.iv = ivbuf.buffer_info()[0]
290 ivbuf = array.array('B', (random.randint(0, 255) for x in range(16)))
291 cop.iv = ivbuf.buffer_info()[0]
/freebsd-13-stable/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzio_crypt.c378 crypto_ctx_template_t tmpl, uint8_t *ivbuf, uint_t datalen,
423 ccmp.nonce = ivbuf;
434 gcmp.pIv = ivbuf;
654 zio_crypt_generate_iv(uint8_t *ivbuf) argument
659 ret = random_get_pseudo_bytes(ivbuf, ZIO_DATA_IV_LEN);
666 bzero(ivbuf, ZIO_DATA_IV_LEN);
718 uint_t datalen, uint8_t *ivbuf, uint8_t *salt)
729 bcopy(digestbuf + ZIO_DATA_SALT_LEN, ivbuf, ZIO_DATA_IV_LEN);
377 zio_do_crypt_uio(boolean_t encrypt, uint64_t crypt, crypto_key_t *key, crypto_ctx_template_t tmpl, uint8_t *ivbuf, uint_t datalen, zfs_uio_t *puio, zfs_uio_t *cuio, uint8_t *authbuf, uint_t auth_len) argument
717 zio_crypt_generate_iv_salt_dedup(zio_crypt_key_t *key, uint8_t *data, uint_t datalen, uint8_t *ivbuf, uint8_t *salt) argument

Completed in 92 milliseconds