/freebsd-13-stable/contrib/bearssl/src/symcipher/ |
H A D | aes_ct_cbcenc.c | 41 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 D | aes_big_cbcdec.c | 41 unsigned char *buf, *ivbuf; local 43 ivbuf = iv; 52 buf[i] ^= ivbuf[i]; 54 memcpy(ivbuf, tmp, 16);
|
H A D | aes_big_cbcenc.c | 41 unsigned char *buf, *ivbuf; local 43 ivbuf = iv; 49 buf[i] ^= ivbuf[i]; 52 memcpy(ivbuf, buf, 16);
|
H A D | aes_small_cbcdec.c | 41 unsigned char *buf, *ivbuf; local 43 ivbuf = iv; 52 buf[i] ^= ivbuf[i]; 54 memcpy(ivbuf, tmp, 16);
|
H A D | aes_small_cbcenc.c | 41 unsigned char *buf, *ivbuf; local 43 ivbuf = iv; 49 buf[i] ^= ivbuf[i]; 52 memcpy(ivbuf, buf, 16);
|
H A D | des_ct_cbcenc.c | 41 unsigned char *buf, *ivbuf; local 45 ivbuf = iv; 51 buf[i] ^= ivbuf[i]; 54 memcpy(ivbuf, buf, 8);
|
H A D | des_tab_cbcenc.c | 41 unsigned char *buf, *ivbuf; local 43 ivbuf = iv; 49 buf[i] ^= ivbuf[i]; 52 memcpy(ivbuf, buf, 8);
|
H A D | aes_ct_ctrcbc.c | 55 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 D | aes_ct_cbcdec.c | 41 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 D | aes_pwr8_ctr.c | 40 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 D | aes_ct64_ctrcbc.c | 55 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 D | des_ct_cbcdec.c | 57 unsigned char *buf, *ivbuf; local 61 ivbuf = iv; 70 buf[i] ^= ivbuf[i]; 72 memcpy(ivbuf, tmp, 8);
|
H A D | des_tab_cbcdec.c | 57 unsigned char *buf, *ivbuf; local 59 ivbuf = iv; 68 buf[i] ^= ivbuf[i]; 70 memcpy(ivbuf, tmp, 8);
|
H A D | aes_ct_ctr.c | 55 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 D | aes_x86ni_ctr.c | 55 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 D | zio_crypt.h | 131 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 D | crypto_os.c | 204 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 D | zio_crypt.c | 406 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 D | cryptodev.py | 223 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 D | zio_crypt.c | 378 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
|