Searched refs:iv (Results 1 - 12 of 12) sorted by relevance

/darwin-on-arm/xnu/EXTERNAL_HEADERS/corecrypto/
H A Dccmode.h70 /* Declare a cbc iv tweak named _name_. Pass the blocksize field of a struct ccmode_cbc
99 CC_INLINE void cccbc_set_iv(const struct ccmode_cbc *mode, cccbc_iv *iv_ctx, const void *iv) argument
101 if(iv)
102 cc_copy(mode->block_size, iv_ctx, iv);
107 CC_INLINE void cccbc_update(const struct ccmode_cbc *mode, cccbc_ctx *ctx, cccbc_iv *iv, argument
110 mode->cbc(ctx, iv, nblocks, in, out);
114 unsigned long key_len, const void *key, const void *iv, unsigned long nblocks,
120 if(iv)
121 cccbc_set_iv (mode, iv_ctx, iv);
146 unsigned long key_len, const void *key, const void *iv)
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
145 cccfb_init(const struct ccmode_cfb *mode, cccfb_ctx *ctx, unsigned long key_len, const void *key, const void *iv) argument
157 cccfb_one_shot(const struct ccmode_cfb *mode, unsigned long key_len, const void *key, const void *iv, unsigned long in_len, const void *in, void *out) argument
184 cccfb8_init(const struct ccmode_cfb8 *mode, cccfb8_ctx *ctx, unsigned long key_len, const void *key, const void *iv) argument
196 cccfb8_one_shot(const struct ccmode_cfb8 *mode, unsigned long key_len, const void *key, const void *iv, unsigned long in_len, const void *in, void *out) argument
227 ccctr_init(const struct ccmode_ctr *mode, ccctr_ctx *ctx, unsigned long key_len, const void *key, const void *iv) argument
240 ccctr_one_shot(const struct ccmode_ctr *mode, unsigned long key_len, const void *key, const void *iv, unsigned long in_len, const void *in, void *out) argument
269 ccofb_init(const struct ccmode_ofb *mode, ccofb_ctx *ctx, unsigned long key_len, const void *key, const void *iv) argument
281 ccofb_one_shot(const struct ccmode_ofb *mode, unsigned long key_len, const void *key, const void *iv, unsigned long in_len, const void *in, void *out) argument
334 ccxts_set_tweak(const struct ccmode_xts *mode, ccxts_ctx *ctx, ccxts_tweak *tweak, const void *iv) argument
345 ccxts_one_shot(const struct ccmode_xts *mode, unsigned long key_len, const void *key, const void *tweak_key, const void* iv, unsigned long in_len, const void *in, void *out) argument
382 ccgcm_set_iv(const struct ccmode_gcm *mode, ccgcm_ctx *ctx, size_t iv_size, const void *iv) argument
411 ccgcm_one_shot(const struct ccmode_gcm *mode, unsigned long key_len, const void *key, unsigned long iv_len, const void *iv, unsigned long nbytes, const void *in, void *out, unsigned long adata_len, const void* adata, size_t tag_len, void *tag) argument
[all...]
H A Dccmode_impl.h38 /* 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, unsigned long nblocks,
52 const void *iv);
67 const void *iv);
82 const void *iv);
97 const void *iv);
123 void (*set_tweak)(const ccxts_ctx *ctx, ccxts_tweak *tweak, const void *iv);
143 void (*set_iv)(ccgcm_ctx *ctx, size_t iv_size, const void *iv);
H A Dccmode_factory.h112 const void *iv);
166 const void *iv);
221 const void *iv);
274 const void *iv);
324 void ccmode_gcm_set_iv(ccgcm_ctx *ctx, size_t iv_size, const void *iv);
412 const void *iv);
/darwin-on-arm/xnu/libkern/crypto/
H A Dcorecrypto_aesxts.c72 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 Dcorecrypto_des.c113 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
/darwin-on-arm/xnu/bsd/netinet6/
H A Desp_core.c545 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 Desp_rijndael.c154 u_int8_t iv[AES_BLOCKLEN] __attribute__((aligned(4))), *dptr; local
191 /* grab iv */
192 m_copydata(m, ivoff, ivlen, (caddr_t) iv);
284 aes_decrypt_cbc(sp, iv, len >> 4, dptr + dn,
296 // next iv
297 bcopy(sp + len - AES_BLOCKLEN, iv, AES_BLOCKLEN);
314 bzero(iv, sizeof(iv));
357 /* put iv into the packet */
358 m_copyback(m, ivoff, ivlen, sav->iv);
[all...]
/darwin-on-arm/xnu/libkern/libkern/crypto/
H A Ddes.h91 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);
/darwin-on-arm/xnu/bsd/netkey/
H A Dkeydb.h89 caddr_t iv; /* Initilization Vector */ member in struct:secasvar
H A Dkey.c3427 if (sav->iv != NULL) {
3428 KFREE(sav->iv);
3429 sav->iv = NULL;
3596 sav->iv = NULL;
3738 /* set iv */
3749 KMALLOC_NOWAIT(sav->iv, caddr_t, sav->ivlen);
3750 if (sav->iv == 0) {
3752 KMALLOC_WAIT(sav->iv, caddr_t, sav->ivlen);
3754 if (sav->iv == 0) {
3762 key_randomfill(sav->iv, sa
[all...]
H A Dkey_debug.c615 if (sav->iv != NULL) {
616 printf(" iv=");
617 ipsec_hexdump(sav->iv, sav->ivlen ? sav->ivlen : 8);
/darwin-on-arm/xnu/bsd/nfs/
H A Dnfs_gss.c3423 int32_t len, des_cblock *iv, des_cblock *retiv, int encrypt, int usage)
3431 des_cbc_encrypt(in, out, len, sched, iv, retiv, encrypt);
3436 des3_cbc_encrypt(in, out, len, &ki->ks_u.des3.gss_sched, iv, retiv, encrypt);
3422 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

Completed in 47 milliseconds