/xnu-2782.1.97/EXTERNAL_HEADERS/corecrypto/ |
H A D | ccpad.h | 16 void ccpad_cts_decrypt(const struct ccmode_cbc *cbc, cccbc_ctx *ctx, cccbc_iv *iv, 20 void ccpad_cts_encrypt(const struct ccmode_cbc *cbc, cccbc_ctx *ctx, cccbc_iv *iv, 24 void ccpad_cts1_decrypt(const struct ccmode_cbc *cbc, cccbc_ctx *ctx, cccbc_iv *iv, 28 void ccpad_cts1_encrypt(const struct ccmode_cbc *cbc, cccbc_ctx *ctx, cccbc_iv *iv, 31 void ccpad_cts2_decrypt(const struct ccmode_cbc *cbc, cccbc_ctx *ctx, cccbc_iv *iv, 35 void ccpad_cts2_encrypt(const struct ccmode_cbc *cbc, cccbc_ctx *ctx, cccbc_iv *iv, 38 void ccpad_cts3_decrypt(const struct ccmode_cbc *cbc, cccbc_ctx *ctx, cccbc_iv *iv, 42 void ccpad_cts3_encrypt(const struct ccmode_cbc *cbc, cccbc_ctx *ctx, cccbc_iv *iv, 49 size_t ccpad_pkcs7_decrypt(const struct ccmode_cbc *cbc, cccbc_ctx *ctx, cccbc_iv *iv, 53 void ccpad_pkcs7_encrypt(const struct ccmode_cbc *cbc, cccbc_ctx *ctx, cccbc_iv *iv, [all...] |
H A D | ccmode.h | 68 /* Declare a cbc iv tweak named _name_. Pass the blocksize field of a 98 const void *iv) 100 if (iv) 101 cc_copy(mode->block_size, iv_ctx, iv); 107 cccbc_iv *iv, unsigned long nblocks, 110 mode->cbc(ctx, iv, nblocks, in, out); 115 const void *iv, unsigned long nblocks, 121 if (iv) 122 cccbc_set_iv(mode, iv_ctx, iv); 148 const void *iv) 97 cccbc_set_iv(const struct ccmode_cbc *mode, cccbc_iv *iv_ctx, const void *iv) argument 106 cccbc_update(const struct ccmode_cbc *mode, cccbc_ctx *ctx, cccbc_iv *iv, unsigned long nblocks, const void *in, void *out) argument 113 cccbc_one_shot(const struct ccmode_cbc *mode, unsigned long key_len, const void *key, const void *iv, unsigned long nblocks, const void *in, void *out) argument 146 cccfb_init(const struct ccmode_cfb *mode, cccfb_ctx *ctx, size_t key_len, const void *key, const void *iv) argument 159 cccfb_one_shot(const struct ccmode_cfb *mode, size_t key_len, const void *key, const void *iv, size_t nbytes, const void *in, void *out) argument 186 cccfb8_init(const struct ccmode_cfb8 *mode, cccfb8_ctx *ctx, size_t key_len, const void *key, const void *iv) argument 198 cccfb8_one_shot(const struct ccmode_cfb8 *mode, size_t key_len, const void *key, const void *iv, size_t nbytes, const void *in, void *out) argument 229 ccctr_init(const struct ccmode_ctr *mode, ccctr_ctx *ctx, size_t key_len, const void *key, const void *iv) argument 241 ccctr_one_shot(const struct ccmode_ctr *mode, size_t key_len, const void *key, const void *iv, size_t nbytes, const void *in, void *out) argument 269 ccofb_init(const struct ccmode_ofb *mode, ccofb_ctx *ctx, size_t key_len, const void *key, const void *iv) argument 281 ccofb_one_shot(const struct ccmode_ofb *mode, size_t key_len, const void *key, const void *iv, size_t nbytes, const void *in, void *out) argument 335 ccxts_set_tweak(const struct ccmode_xts *mode, ccxts_ctx *ctx, ccxts_tweak *tweak, const void *iv) argument 347 ccxts_one_shot(const struct ccmode_xts *mode, size_t key_len, const void *key, const void *tweak_key, const void *iv, unsigned long nblocks, const void *in, void *out) argument 384 ccgcm_set_iv(const struct ccmode_gcm *mode, ccgcm_ctx *ctx, size_t iv_size, const void *iv) argument 414 ccgcm_one_shot(const struct ccmode_gcm *mode, size_t key_len, const void *key, size_t iv_len, const void *iv, size_t adata_len, const void *adata, size_t nbytes, const void *in, void *out, size_t tag_len, void *tag) argument [all...] |
H A D | ccmode_impl.h | 38 /* cbc encrypt or decrypt nblocks from in to out, iv will be used and updated. */ 39 void (*cbc)(const cccbc_ctx *ctx, cccbc_iv *iv, 51 size_t key_len, const void *key, const void *iv); 64 size_t key_len, const void *key, const void *iv); 77 size_t key_len, const void *key, const void *iv); 90 size_t key_len, const void *key, const void *iv); 114 void (*set_tweak)(const ccxts_ctx *ctx, ccxts_tweak *tweak, const void *iv); 134 void (*set_iv)(ccgcm_ctx *ctx, size_t iv_size, const void *iv);
|
H A D | ccmode_factory.h | 115 void ccmode_cbc_decrypt(const cccbc_ctx *ctx, cccbc_iv *iv, unsigned long nblocks, 117 void ccmode_cbc_encrypt(const cccbc_ctx *ctx, cccbc_iv *iv, unsigned long nblocks, 168 const void *iv); 222 size_t rawkey_len, const void *rawkey, const void *iv); 274 size_t rawkey_len, const void *rawkey, const void *iv); 327 void ccmode_gcm_set_iv(ccgcm_ctx *ctx, size_t iv_size, const void *iv); 442 unsigned char A_i[16]; /* crypto block iv */ 443 unsigned char B_i[16]; /* mac block iv */ 508 const void *iv); 607 const void *iv); [all...] |
/xnu-2782.1.97/libkern/crypto/ |
H A D | corecrypto_aesxts.c | 72 const uint8_t *iv, // this can be considered the sector IV for this use 80 xtsenc->set_tweak(xts->enc, tweak, iv); 88 const uint8_t *iv, // this can be considered the sector IV for this use 96 xtsdec->set_tweak(xts->dec, tweak, iv); 70 xts_encrypt(const uint8_t *pt, unsigned long ptlen, uint8_t *ct, const uint8_t *iv, symmetric_xts *xts) argument 86 xts_decrypt(const uint8_t *ct, unsigned long ptlen, uint8_t *pt, const uint8_t *iv, symmetric_xts *xts) argument
|
H A D | corecrypto_des.c | 113 des_cbc_key_schedule *ks, des_cblock *iv, des_cblock *retiv, int encrypt) 123 /* set the iv */ 124 cccbc_set_iv(cbc, ctx_iv, iv); 128 /* copy back iv */ 154 des3_cbc_key_schedule *ks, des_cblock *iv, des_cblock *retiv, int encrypt) 164 /* set the iv */ 165 cccbc_set_iv(cbc, ctx_iv, iv); 169 /* copy back iv */ 112 des_cbc_encrypt(des_cblock *in, des_cblock *out, int32_t length, des_cbc_key_schedule *ks, des_cblock *iv, des_cblock *retiv, int encrypt) argument 153 des3_cbc_encrypt(des_cblock *in, des_cblock *out, int32_t length, des3_cbc_key_schedule *ks, des_cblock *iv, des_cblock *retiv, int encrypt) argument
|
/xnu-2782.1.97/osfmk/ipc/ |
H A D | ipc_voucher.c | 98 void iv_dealloc(ipc_voucher_t iv, boolean_t unhash); 101 iv_reference(ipc_voucher_t iv) argument 105 refs = hw_atomic_add(&iv->iv_refs, 1); 110 iv_release(ipc_voucher_t iv) argument 114 assert(0 < iv->iv_refs); 115 refs = hw_atomic_sub(&iv->iv_refs, 1); 117 iv_dealloc(iv, TRUE); 226 ipc_voucher_t iv; local 230 iv = (ipc_voucher_t)zalloc(ipc_voucher_zone); 231 if (IV_NULL == iv) 271 iv_set(ipc_voucher_t iv, iv_index_t key_index, iv_index_t value_index) argument 280 iv_dealloc(ipc_voucher_t iv, boolean_t unhash) argument 339 iv_lookup(ipc_voucher_t iv, iv_index_t key_index) argument 423 ipc_voucher_t iv; local 477 ipc_voucher_t iv; local 1583 ipc_voucher_t iv; local [all...] |
/xnu-2782.1.97/bsd/netinet6/ |
H A D | esp_core.c | 545 u_int8_t iv[MAXIVLEN] __attribute__((aligned(4))), *ivp; local 554 if (ivlen != sav->ivlen || ivlen > sizeof(iv)) { 565 if (blocklen > sizeof(iv)) { 596 /* grab iv */ 597 m_copydata(m, ivoff, ivlen, (caddr_t) iv); 599 /* extend iv */ 603 bcopy(&iv[0], &iv[4], 4); 604 iv[4] ^= 0xff; 605 iv[ 772 u_int8_t iv[MAXIVLEN] __attribute__((aligned(4))), *ivp; local [all...] |
H A D | esp_rijndael.c | 154 u_int8_t iv[AES_BLOCKLEN] __attribute__((aligned(4))), *dptr; local 191 /* grab iv */ 192 m_copydata(m, ivoff, ivlen, (caddr_t) iv); 292 aes_decrypt_cbc(sp, iv, len >> 4, dptr + dn, 304 // next iv 305 bcopy(sp + len - AES_BLOCKLEN, iv, AES_BLOCKLEN); 328 bzero(iv, sizeof(iv)); 371 /* put iv into the packet */ 372 m_copyback(m, ivoff, ivlen, sav->iv); [all...] |
/xnu-2782.1.97/libkern/libkern/crypto/ |
H A D | des.h | 91 des_cbc_key_schedule *ks, des_cblock *iv, des_cblock *retiv, int encrypt); 96 des3_cbc_key_schedule *ks, des_cblock *iv, des_cblock *retiv, int encrypt);
|
/xnu-2782.1.97/bsd/netkey/ |
H A D | keydb.h | 92 caddr_t iv; /* Initilization Vector */ member in struct:secasvar
|
H A D | key_debug.c | 616 if (sav->iv != NULL) { 617 printf(" iv="); 618 ipsec_hexdump(sav->iv, sav->ivlen ? sav->ivlen : 8);
|
H A D | key.c | 3889 if (sav->iv != NULL) { 3890 KFREE(sav->iv); 3891 sav->iv = NULL; 4057 sav->iv = NULL; 4200 /* set iv */ 4211 KMALLOC_NOWAIT(sav->iv, caddr_t, sav->ivlen); 4212 if (sav->iv == 0) { 4214 KMALLOC_WAIT(sav->iv, caddr_t, sav->ivlen); 4216 if (sav->iv == 0) { 4224 key_randomfill(sav->iv, sa [all...] |
/xnu-2782.1.97/bsd/nfs/ |
H A D | nfs_gss.c | 3831 int32_t len, des_cblock *iv, des_cblock *retiv, int encrypt, int usage) 3839 des_cbc_encrypt(in, out, len, sched, iv, retiv, encrypt); 3844 des3_cbc_encrypt(in, out, len, &ki->ks_u.des3.gss_sched, iv, retiv, encrypt); 3830 gss_des_crypt(gss_key_info *ki, des_cblock *in, des_cblock *out, int32_t len, des_cblock *iv, des_cblock *retiv, int encrypt, int usage) argument
|