| /xnu-8019.80.24/EXTERNAL_HEADERS/corecrypto/ |
| H A D | ccmode.h | 97 CC_INLINE int cccbc_set_iv(const struct ccmode_cbc *mode, cccbc_iv *iv_ctx, const void *iv) in cccbc_set_iv() argument 99 if (iv) { in cccbc_set_iv() 100 cc_copy(mode->block_size, iv_ctx, iv); in cccbc_set_iv() 107 CC_INLINE int cccbc_update(const struct ccmode_cbc *mode, cccbc_ctx *ctx, cccbc_iv *iv, size_t nblo… in cccbc_update() argument 109 return mode->cbc(ctx, iv, nblocks, in, out); in cccbc_update() 115 const void *iv, 137 …nit(const struct ccmode_cfb *mode, cccfb_ctx *ctx, size_t key_len, const void *key, const void *iv) in cccfb_init() argument 139 return mode->init(mode, ctx, key_len, key, iv); in cccfb_init() 150 const void *iv, in cccfb_one_shot() argument 157 rc = mode->init(mode, ctx, key_len, key, iv); in cccfb_one_shot() [all …]
|
| 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_impl.h | 68 …int (*CC_SPTR(ccmode_cbc, cbc))(const cccbc_ctx *ctx, cccbc_iv *iv, size_t nblocks, const void *in… 79 …t))(const struct ccmode_cfb *cfb, cccfb_ctx *ctx, size_t key_len, const void *key, const void *iv); 91 …(const struct ccmode_cfb8 *cfb8, cccfb8_ctx *ctx, size_t key_len, const void *key, const void *iv); 104 …))(const struct ccmode_ctr *mode, ccctr_ctx *ctx, size_t key_len, const void *key, const void *iv); 117 …t))(const struct ccmode_ofb *ofb, ccofb_ctx *ctx, size_t key_len, const void *key, const void *iv); 150 int (*CC_SPTR(ccmode_xts, set_tweak))(const ccxts_ctx *ctx, ccxts_tweak *tweak, const void *iv); 170 int (*CC_SPTR(ccmode_gcm, set_iv))(ccgcm_ctx *ctx, size_t iv_nbytes, const void *iv);
|
| /xnu-8019.80.24/bsd/netinet6/ |
| H A D | esp_core.c | 695 u_int8_t iv[MAXIVLEN] __attribute__((aligned(4))), *ivp; in esp_cbc_decrypt() local 704 if (ivlen != sav->ivlen || ivlen > sizeof(iv)) { in esp_cbc_decrypt() 715 if (blocklen > sizeof(iv)) { in esp_cbc_decrypt() 748 m_copydata(m, (int)ivoff, ivlen, (caddr_t) iv); in esp_cbc_decrypt() 754 bcopy(&iv[0], &iv[4], 4); in esp_cbc_decrypt() 755 iv[4] ^= 0xff; in esp_cbc_decrypt() 756 iv[5] ^= 0xff; in esp_cbc_decrypt() 757 iv[6] ^= 0xff; in esp_cbc_decrypt() 758 iv[7] ^= 0xff; in esp_cbc_decrypt() 880 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-8019.80.24/osfmk/ipc/ |
| H A D | ipc_voucher.c | 114 void iv_dealloc(ipc_voucher_t iv, boolean_t unhash); 120 iv_reference(ipc_voucher_t iv) in iv_reference() argument 122 os_ref_retain(&iv->iv_refs); in iv_reference() 126 iv_release(ipc_voucher_t iv) in iv_release() argument 128 if (os_ref_release(&iv->iv_refs) == 0) { in iv_release() 129 iv_dealloc(iv, TRUE); in iv_release() 225 ipc_voucher_t iv; in iv_alloc() local 229 iv = (ipc_voucher_t)zalloc(ipc_voucher_zone); in iv_alloc() 230 if (IV_NULL == iv) { in iv_alloc() 234 os_ref_init(&iv->iv_refs, &iv_refgrp); in iv_alloc() [all …]
|
| /xnu-8019.80.24/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 | 80 cccbc_iv *iv; member 562 wctx->iv = kalloc_data(wctx->ccmode->block_size, Z_WAITOK | Z_ZERO); in do_crypt_init() 563 cccbc_set_iv(wctx->ccmode, wctx->iv, NULL); in do_crypt_init() 574 cccbc_update(wctx->ccmode, wctx->crypt_ctx, wctx->iv, nblocks, data, data); in do_crypt() 807 do_ccpad(ccmode, wctx.crypt_ctx, wctx.iv, cts_len, cts_pad, cts_pad); in krb5_crypt_mbuf() 811 kfree_data(wctx.iv, wctx.ccmode->block_size); in krb5_crypt_mbuf() 946 cccbc_iv_decl(blocksize, iv); in krb5_key_derivation() 960 cccbc_set_iv(ctx->enc_mode, iv, NULL); in krb5_key_derivation() 961 cccbc_update(ctx->enc_mode, enc_ctx, iv, 1, block, block); in krb5_key_derivation() 1896 cccbc_iv_decl(blocksize, iv); in gss_krb5_3des_token_put() [all …]
|
| /xnu-8019.80.24/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-8019.80.24/libkern/libkern/crypto/ |
| H A D | register_crypto.h | 69 const void *iv); 70 typedef int (*ccgcm_inc_iv_fn_t)(const struct ccmode_gcm *mode, ccgcm_ctx *ctx, void *iv); 98 cccbc_iv *iv, size_t nbytes, const void *in, void *out);
|
| /xnu-8019.80.24/osfmk/vm/ |
| H A D | vm_compressor_backing_store.c | 272 uint8_t *iv; in swap_crypt_initialize() local 290 iv = (uint8_t *)ivnum; in swap_crypt_initialize() 298 rc = xts_encrypt(refptr, size, encptr, iv, &xts_modectx); in swap_crypt_initialize() 311 rc = xts_decrypt(encptr, size, decptr, iv, &xts_modectx); in swap_crypt_initialize() 322 rc = xts_encrypt(decptr, size, decptr, iv, &xts_modectx); in swap_crypt_initialize() 326 rc = xts_decrypt(decptr, size, decptr, iv, &xts_modectx); in swap_crypt_initialize() 344 uint8_t *iv; in vm_swap_encrypt() local 361 iv = (uint8_t *)ivnum; in vm_swap_encrypt() 363 rc = xts_encrypt(ptr, size, ptr, iv, &xts_modectx); in vm_swap_encrypt() 377 uint8_t *iv; in vm_swap_decrypt() local [all …]
|
| /xnu-8019.80.24/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-8019.80.24/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 | 4113 if (sav->iv != NULL) { in key_reset_sav() 4114 kfree_data(sav->iv, sav->ivlen); in key_reset_sav() 4115 sav->iv = NULL; in key_reset_sav() 4499 sav->iv = (caddr_t) kalloc_data(sav->ivlen, Z_NOWAIT); in key_setsaval() 4500 if (sav->iv == 0) { in key_setsaval() 4502 sav->iv = (caddr_t) kalloc_data(sav->ivlen, Z_WAITOK); in key_setsaval() 4504 if (sav->iv == 0) { in key_setsaval() 4512 key_randomfill(sav->iv, sav->ivlen); in key_setsaval() 9913 if (!sav->iv) { in key_sa_stir_iv() 9916 key_randomfill(sav->iv, sav->ivlen); in key_sa_stir_iv()
|
| /xnu-8019.80.24/tools/lldbmacros/ |
| H A D | README.md | 16 iv. Submitting changes in lldbmacros [MUST READ] 365 iv. Submitting changes in lldbmacros
|