| /xnu-8796.141.3/EXTERNAL_HEADERS/corecrypto/ |
| H A D | ccpad.h | 22 size_t ccpad_cts1_decrypt(const struct ccmode_cbc *cbc, cccbc_ctx *ctx, cccbc_iv *iv, 26 size_t ccpad_cts1_encrypt(const struct ccmode_cbc *cbc, cccbc_ctx *ctx, cccbc_iv *iv, 29 size_t ccpad_cts2_decrypt(const struct ccmode_cbc *cbc, cccbc_ctx *ctx, cccbc_iv *iv, 33 size_t ccpad_cts2_encrypt(const struct ccmode_cbc *cbc, cccbc_ctx *ctx, cccbc_iv *iv, 36 size_t ccpad_cts3_decrypt(const struct ccmode_cbc *cbc, cccbc_ctx *ctx, cccbc_iv *iv, 40 size_t ccpad_cts3_encrypt(const struct ccmode_cbc *cbc, cccbc_ctx *ctx, cccbc_iv *iv, 47 size_t ccpad_pkcs7_decrypt(const struct ccmode_cbc *cbc, cccbc_ctx *ctx, cccbc_iv *iv, 51 size_t ccpad_pkcs7_encrypt(const struct ccmode_cbc *cbc, cccbc_ctx *ctx, cccbc_iv *iv,
|
| H A D | ccmode.h | 100 CC_INLINE int cccbc_copy_iv(cccbc_iv *cc_sized_by(len) iv_ctx, const void *cc_sized_by(len) iv, siz… in cccbc_copy_iv() argument 101 cc_copy(len, iv_ctx, iv); in cccbc_copy_iv() 111 int cccbc_set_iv(const struct ccmode_cbc *mode, cccbc_iv *iv_ctx, const void *iv); 113 CC_INLINE int cccbc_set_iv(const struct ccmode_cbc *mode, cccbc_iv *iv_ctx, const void *iv) in cccbc_set_iv() argument 115 …return iv ? cccbc_copy_iv(iv_ctx, iv, mode->block_size) : cccbc_clear_iv(iv_ctx, mode->block_size); in cccbc_set_iv() 119 CC_INLINE int cccbc_update(const struct ccmode_cbc *mode, cccbc_ctx *ctx, cccbc_iv *iv, size_t nblo… in cccbc_update() argument 121 return mode->cbc(ctx, iv, nblocks, in, out); in cccbc_update() 127 const void *cc_sized_by(key_len) iv, 149 … cccfb_ctx *ctx, size_t key_len, const void *cc_sized_by(key_len) key, const void *cc_indexable iv) in cccfb_init() argument 151 return mode->init(mode, ctx, key_len, key, iv); in cccfb_init() [all …]
|
| H A D | ccmode_impl.h | 71 …int (*CC_SPTR(ccmode_cbc, cbc))(const cccbc_ctx *ctx, cccbc_iv *iv, size_t nblocks, const void *in… 82 …t))(const struct ccmode_cfb *cfb, cccfb_ctx *ctx, size_t key_len, const void *key, const void *iv); 94 …(const struct ccmode_cfb8 *cfb8, cccfb8_ctx *ctx, size_t key_len, const void *key, const void *iv); 107 …))(const struct ccmode_ctr *mode, ccctr_ctx *ctx, size_t key_len, const void *key, const void *iv); 120 …t))(const struct ccmode_ofb *ofb, ccofb_ctx *ctx, size_t key_len, const void *key, const void *iv); 153 int (*CC_SPTR(ccmode_xts, set_tweak))(const ccxts_ctx *ctx, ccxts_tweak *tweak, const void *iv); 174 int (*CC_SPTR(ccmode_gcm, set_iv))(ccgcm_ctx *ctx, size_t iv_nbytes, const void *iv);
|
| /xnu-8796.141.3/bsd/netinet6/ |
| H A D | esp_core.c | 699 u_int8_t iv[MAXIVLEN] __attribute__((aligned(4))), *ivp; in esp_cbc_decrypt() local 708 if (ivlen != sav->ivlen || ivlen > sizeof(iv)) { in esp_cbc_decrypt() 719 if (blocklen > sizeof(iv)) { in esp_cbc_decrypt() 752 m_copydata(m, (int)ivoff, ivlen, (caddr_t) iv); in esp_cbc_decrypt() 758 bcopy(&iv[0], &iv[4], 4); in esp_cbc_decrypt() 759 iv[4] ^= 0xff; in esp_cbc_decrypt() 760 iv[5] ^= 0xff; in esp_cbc_decrypt() 761 iv[6] ^= 0xff; in esp_cbc_decrypt() 762 iv[7] ^= 0xff; in esp_cbc_decrypt() 884 p = ivp ? ivp : iv; in esp_cbc_decrypt() [all …]
|
| H A D | esp_chachapoly.c | 328 uint64_t iv = 0; in esp_chachapoly_encrypt() local 329 _Static_assert(ESP_CHACHAPOLY_IV_LEN == sizeof(iv), "Bad IV length"); in esp_chachapoly_encrypt() 330 memcpy(&iv, sav->iv, sizeof(iv)); in esp_chachapoly_encrypt() 331 iv++; in esp_chachapoly_encrypt() 332 memcpy(sav->iv, &iv, sizeof(iv)); in esp_chachapoly_encrypt() 335 memcpy(((uint8_t *)nonce) + ESP_CHACHAPOLY_SALT_LEN, &iv, sizeof(iv)); in esp_chachapoly_encrypt() 336 m_copyback(m, ivoff, ivlen, sav->iv); in esp_chachapoly_encrypt()
|
| H A D | esp_rijndael.c | 159 u_int8_t iv[AES_BLOCKLEN] __attribute__((aligned(4))), *dptr; in esp_cbc_decrypt_aes() local 199 m_copydata(m, (int)ivoff, ivlen, (caddr_t) iv); in esp_cbc_decrypt_aes() 319 aes_decrypt_cbc(sp, iv, len >> 4, dptr + dn, in esp_cbc_decrypt_aes() 332 bcopy(sp + len - AES_BLOCKLEN, iv, AES_BLOCKLEN); in esp_cbc_decrypt_aes() 354 cc_clear(sizeof(iv), iv); in esp_cbc_decrypt_aes() 400 m_copyback(m, (int)ivoff, ivlen, sav->iv); in esp_cbc_encrypt_aes() 401 ivp = (u_int8_t *) sav->iv; in esp_cbc_encrypt_aes() 621 memcpy(nonce + ESP_GCM_SALT_LEN, sav->iv, ivlen); in esp_gcm_schedule() 737 memcpy(sav->iv, (nonce + ESP_GCM_SALT_LEN), ivlen); in esp_gcm_encrypt_aes() 738 m_copyback(m, (int)ivoff, ivlen, sav->iv); in esp_gcm_encrypt_aes() [all …]
|
| /xnu-8796.141.3/bsd/nfs/gss/ |
| H A D | ccrypto.c | 82 cccbc_iv *iv, size_t nbytes, const void *in, void *out) in ccpad_cts3_decrypt() argument 85 return (*g_crypto_funcs->ccpad_cts3_decrypt_fn)(cbc, cbc_key, iv, nbytes, in, out); in ccpad_cts3_decrypt() 92 cccbc_iv *iv, size_t nbytes, const void *in, void *out) in ccpad_cts3_encrypt() argument 95 return (*g_crypto_funcs->ccpad_cts3_encrypt_fn)(cbc, cbc_key, iv, nbytes, in, out); in ccpad_cts3_encrypt()
|
| H A D | gss_krb5_mech.c | 81 cccbc_iv *iv; member 561 wctx->iv = kalloc_data(wctx->ccmode->block_size, Z_WAITOK | Z_ZERO); in do_crypt_init() 562 cccbc_set_iv(wctx->ccmode, wctx->iv, NULL); in do_crypt_init() 573 cccbc_update(wctx->ccmode, wctx->crypt_ctx, wctx->iv, nblocks, data, data); in do_crypt() 806 do_ccpad(ccmode, wctx.crypt_ctx, wctx.iv, cts_len, cts_pad, cts_pad); in krb5_crypt_mbuf() 810 kfree_data(wctx.iv, wctx.ccmode->block_size); in krb5_crypt_mbuf() 945 cccbc_iv_decl(blocksize, iv); in krb5_key_derivation() 959 cccbc_set_iv(ctx->enc_mode, iv, NULL); in krb5_key_derivation() 960 cccbc_update(ctx->enc_mode, enc_ctx, iv, 1, block, block); in krb5_key_derivation() 1895 cccbc_iv_decl(blocksize, iv); in gss_krb5_3des_token_put() [all …]
|
| /xnu-8796.141.3/osfmk/ipc/ |
| H A D | ipc_voucher.c | 79 static void iv_dealloc(ipc_voucher_t iv, bool unhash); 93 iv_reference(ipc_voucher_t iv) in iv_reference() argument 95 os_ref_retain_raw(&iv->iv_refs, &iv_refgrp); in iv_reference() 99 iv_try_reference(ipc_voucher_t iv) in iv_try_reference() argument 101 return os_ref_retain_try_raw(&iv->iv_refs, &iv_refgrp); in iv_try_reference() 105 iv_release(ipc_voucher_t iv) in iv_release() argument 107 if (os_ref_release_raw(&iv->iv_refs, &iv_refgrp) == 0) { in iv_release() 108 iv_dealloc(iv, TRUE); in iv_release() 194 ipc_voucher_t iv; in iv_alloc() local 196 iv = zalloc_id_smr(ZONE_ID_IPC_VOUCHERS, Z_WAITOK_ZERO_NOFAIL); in iv_alloc() [all …]
|
| /xnu-8796.141.3/libkern/crypto/ |
| H A D | corecrypto_aesxts.c | 76 const uint8_t *iv, // this can be considered the sector IV for this use in xts_encrypt() argument 86 int rc = xtsenc->set_tweak(xts->enc, tweak, iv); in xts_encrypt() 98 …const uint8_t *iv, // this can be considered the sector IV for this use in xts_decrypt() argument 108 int rc = xtsdec->set_tweak(xts->dec, tweak, iv); in xts_decrypt()
|
| /xnu-8796.141.3/libkern/libkern/crypto/ |
| H A D | register_crypto.h | 70 const void *iv); 71 typedef int (*ccgcm_inc_iv_fn_t)(const struct ccmode_gcm *mode, ccgcm_ctx *ctx, void *iv); 99 cccbc_iv *iv, size_t nbytes, const void *in, void *out);
|
| /xnu-8796.141.3/osfmk/vm/ |
| H A D | vm_compressor_backing_store.c | 287 uint8_t *iv; in swap_crypt_initialize() local 305 iv = (uint8_t *)ivnum; in swap_crypt_initialize() 313 rc = xts_encrypt(refptr, size, encptr, iv, &xts_modectx); in swap_crypt_initialize() 326 rc = xts_decrypt(encptr, size, decptr, iv, &xts_modectx); in swap_crypt_initialize() 337 rc = xts_encrypt(decptr, size, decptr, iv, &xts_modectx); in swap_crypt_initialize() 341 rc = xts_decrypt(decptr, size, decptr, iv, &xts_modectx); in swap_crypt_initialize() 359 uint8_t *iv; in vm_swap_encrypt() local 376 iv = (uint8_t *)ivnum; in vm_swap_encrypt() 378 rc = xts_encrypt(ptr, size, ptr, iv, &xts_modectx); in vm_swap_encrypt() 392 uint8_t *iv; in vm_swap_decrypt() local [all …]
|
| /xnu-8796.141.3/tests/ktrace/ |
| H A D | kperf_tests.c | 495 struct instval *iv = viv; in cpu_oversample_log() 496 T_LOG("\t%llu timer latency %d: %llu", iv->iv_instant_ns, i, in cpu_oversample_log() 497 iv->iv_val); in cpu_oversample_log() 504 struct instval *iv = viv; in cpu_oversample_log() 505 T_LOG("\t%llu fire latency %d: %llu", iv->iv_instant_ns, i, iv->iv_val); in cpu_oversample_log()
|
| /xnu-8796.141.3/bsd/netkey/ |
| H A D | keydb.h | 93 caddr_t iv; /* Initilization Vector */ member
|
| H A D | key_debug.c | 634 if (sav->iv != NULL) { 636 ipsec_hexdump(sav->iv, sav->ivlen ? sav->ivlen : 8);
|
| H A D | key.c | 4183 if (sav->iv != NULL) { in key_reset_sav() 4184 kfree_data(sav->iv, sav->ivlen); in key_reset_sav() 4185 sav->iv = NULL; in key_reset_sav() 4564 sav->iv = (caddr_t) kalloc_data(sav->ivlen, Z_NOWAIT); in key_setsaval() 4565 if (sav->iv == 0) { in key_setsaval() 4567 sav->iv = (caddr_t) kalloc_data(sav->ivlen, Z_WAITOK); in key_setsaval() 4569 if (sav->iv == 0) { in key_setsaval() 4577 key_randomfill(sav->iv, sav->ivlen); in key_setsaval() 9983 if (!sav->iv) { in key_sa_stir_iv() 9986 key_randomfill(sav->iv, sav->ivlen); in key_sa_stir_iv()
|
| /xnu-8796.141.3/tools/lldbmacros/ |
| H A D | README.md | 16 iv. Submitting changes in lldbmacros [MUST READ] 365 iv. Submitting changes in lldbmacros
|