Home
last modified time | relevance | path

Searched refs:iv (Results 1 – 25 of 69) sorted by relevance

123

/titanic_44/usr/src/uts/common/crypto/io/
H A Ddca_3des.c82 des_ctx->dr_ctx.iv[0] = htonl(p[0]); in dca_3des()
83 des_ctx->dr_ctx.iv[1] = htonl(p[1]); in dca_3des()
86 des_ctx->dr_ctx.iv[0] = p[0]<<24 | p[1]<<16 | p[2]<<8 | p[3]; in dca_3des()
87 des_ctx->dr_ctx.iv[1] = p[4]<<24 | p[5]<<16 | p[6]<<8 | p[7]; in dca_3des()
182 des_ctx->dr_ctx.iv[0] = htonl(p[0]); in dca_3desupdate()
183 des_ctx->dr_ctx.iv[1] = htonl(p[1]); in dca_3desupdate()
186 des_ctx->dr_ctx.iv[0] = p[0]<<24 | p[1]<<16 | p[2]<<8 | p[3]; in dca_3desupdate()
187 des_ctx->dr_ctx.iv[1] = p[4]<<24 | p[5]<<16 | p[6]<<8 | p[7]; in dca_3desupdate()
384 uint32_t iv[2]; in dca_3desstart() local
399 iv[0] = ctx->dr_ctx.iv[0]; in dca_3desstart()
[all …]
/titanic_44/usr/src/cmd/ssh/libssh/common/
H A Dcipher.c196 const u_char *key, u_int keylen, const u_char *iv, u_int ivlen, in cipher_init() argument
218 if (iv != NULL && ivlen < cipher->block_size) in cipher_init()
232 if (EVP_CipherInit(&cc->evp, type, NULL, (u_char *)iv, in cipher_init()
319 ssh1_3des_init(EVP_CIPHER_CTX *ctx, const u_char *key, const u_char *iv, in ssh1_3des_init() argument
470 cipher_get_keyiv(CipherContext *cc, u_char *iv, u_int len) in cipher_get_keyiv() argument
488 ssh_aes_ctr_iv(&cc->evp, 0, iv, len); in cipher_get_keyiv()
491 civ = cc->evp.iv; in cipher_get_keyiv()
502 memcpy(iv, desc->k1.iv, 8); in cipher_get_keyiv()
503 memcpy(iv + 8, desc->k2.iv, 8); in cipher_get_keyiv()
504 memcpy(iv + 16, desc->k3.iv, 8); in cipher_get_keyiv()
[all …]
H A Dcipher-ctr.c79 ssh_aes_ctr_init(EVP_CIPHER_CTX *ctx, const u_char *key, const u_char *iv, in ssh_aes_ctr_init() argument
91 if (iv != NULL) in ssh_aes_ctr_init()
92 memcpy(c->aes_counter, iv, AES_BLOCK_SIZE); in ssh_aes_ctr_init()
110 ssh_aes_ctr_iv(EVP_CIPHER_CTX *evp, int doset, u_char * iv, u_int len) in ssh_aes_ctr_iv() argument
117 memcpy(c->aes_counter, iv, len); in ssh_aes_ctr_iv()
119 memcpy(iv, c->aes_counter, len); in ssh_aes_ctr_iv()
/titanic_44/usr/src/cmd/mdb/common/modules/ipc/
H A Dipc.c285 ipc_ops_vec_t *iv) in ds_print() argument
296 if (mdb_walk_dcmd(iv->iv_wcmd, oflags ? iv->iv_ocmd : "ipcperm", in ds_print()
298 mdb_warn("can't walk '%s'", iv->iv_wcmd); in ds_print()
304 iddata = mdb_alloc(iv->iv_idsize, UM_SLEEP | UM_GC); in ds_print()
305 if (mdb_vread(iddata, iv->iv_idsize, addr) == -1) { in ds_print()
306 mdb_warn("failed to read %s at %#lx", iv->iv_ocmd, addr); in ds_print()
310 if (!DCMD_HDRSPEC(flags) && iv->iv_print) in ds_print()
313 if (DCMD_HDRSPEC(flags) || iv->iv_print) in ds_print()
317 if (iv->iv_print) { in ds_print()
319 iv->iv_print(iddata, addr); in ds_print()
[all …]
/titanic_44/usr/src/common/net/wanboot/crypt/
H A Dcbc_test.c66 char iv[CBC_MAX_IV_SIZE]; in cbctest() local
96 bzero(iv, CBC_MAX_IV_SIZE); in cbctest()
129 TEST_BLOCK_SIZE, (uint8_t *)iv); in cbctest()
137 bzero(iv, CBC_MAX_IV_SIZE); in cbctest()
141 TEST_BLOCK_SIZE, (uint8_t *)iv); in cbctest()
/titanic_44/usr/src/lib/libnisdb/
H A Dldap_attr.c405 int irv, iv, ndn; in findDNs() local
420 for (iv = 0; iv < rv[irv].numAttrs; iv++) { in findDNs()
422 if (rv[irv].attrName[iv] != 0 && in findDNs()
423 rv[irv].attrVal[iv].type == vt_string && in findDNs()
424 rv[irv].attrVal[iv].numVals >= 1 && in findDNs()
425 strcasecmp("dn", rv[irv].attrName[iv]) == 0) { in findDNs()
428 rv[irv].attrVal[iv].val[0].value, in findDNs()
/titanic_44/usr/src/uts/common/io/net80211/
H A Dnet80211_crypto_wep.c130 uint32_t iv; in wep_encap() local
149 iv = ctx->wc_iv; in wep_encap()
154 if ((iv & 0xff00) == 0xff00) { in wep_encap()
155 int B = (iv & 0xff0000) >> 16; in wep_encap()
157 iv = (B+1) << 16; in wep_encap()
159 ctx->wc_iv = iv + 1; in wep_encap()
161 ivp[2] = (uint8_t)(iv >> 0); in wep_encap()
162 ivp[1] = (uint8_t)(iv >> 8); in wep_encap()
163 ivp[0] = (uint8_t)(iv >> 16); in wep_encap()
/titanic_44/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dutil_crypt.c121 kg_encrypt(context, key, usage, iv, in, out, length) in kg_encrypt() argument
125 krb5_pointer iv;
137 if (iv) {
146 (void) memcpy(ivd.data, iv, ivd.length);
169 kg_decrypt(context, key, usage, iv, in, out, length) in kg_decrypt() argument
173 krb5_pointer iv;
184 if (iv) {
193 (void) memcpy(ivd.data, iv, ivd.length);
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/wanboot/encr/
H A Dencr.c131 uint8_t iv[WANBOOT_MAXBLOCKLEN]; in encr_gen() local
140 if (wbio_nread_rand(iv, ch->blocklen) != 0) { in encr_gen()
148 if (wbio_nwrite(STDOUT_FILENO, iv, ch->blocklen) != 0) { in encr_gen()
193 (void) cbc_encrypt(ch, buf, i, iv); in encr_gen()
196 (void) cbc_encrypt(ch, buf, i, iv); in encr_gen()
204 (void) cbc_encrypt(ch, buf, i, iv); in encr_gen()
/titanic_44/usr/src/cmd/mdb/sun4u/modules/unix/
H A Dunix.c1378 intr_vec_t iv; in vecint_walk_step() local
1393 if (mdb_vread(&iv, sizeof (intr_vec_t), in vecint_walk_step()
1399 wsp->walk_addr = (uintptr_t)iv.iv_vec_next; in vecint_walk_step()
1415 intr_vec_t iv; in vecint_dcmd() local
1430 if (mdb_vread(&iv, sizeof (iv), addr) == -1) { in vecint_dcmd()
1435 mdb_printf("%4x %?p %4d %?p %?p %a\n", iv.iv_inum, addr, in vecint_dcmd()
1436 iv.iv_pil, iv.iv_arg1, iv.iv_arg2, iv.iv_handler); in vecint_dcmd()
1471 intr_vec_t iv; in softint_walk_step() local
1480 if (mdb_vread(&iv, sizeof (intr_vec_t), in softint_walk_step()
1486 wsp->walk_addr = (uintptr_t)iv.iv_vec_next; in softint_walk_step()
[all …]
/titanic_44/usr/src/uts/common/sys/
H A Dcryptmod.h99 #define CR_IVUSAGE_OK(iv) \ argument
100 ((iv) == IVEC_NEVER || (iv) == IVEC_REUSE || (iv) == IVEC_ONETIME)
/titanic_44/usr/src/lib/libm/common/complex/
H A Dcpowf.c58 int ix, iy, hx, hy, hv, hu, iu, iv, j; in cpowf() local
71 iv = hv & 0x7fffffff; in cpowf()
74 if (iv == 0) { /* z**(real) */ in cpowf()
127 if (iu >= hiinf || iv >= hiinf || ix >= hiinf || iy >= hiinf) { in cpowf()
158 if (iv == 0) { /* dv = 0 */ in cpowf()
H A Dcpow.c156 int ix, iy, hx, lx, hy, ly, hv, hu, iu, iv, lu, lv; in cpow() local
174 iv = hv & 0x7fffffff; in cpow()
177 if ((iv | lv) == 0) { /* z**(real) */ in cpow()
240 if (iu >= hiinf || iv >= hiinf || ix >= hiinf || iy >= hiinf) { in cpow()
248 if (iu > 0x7f000000 || iv > 0x7f000000) { in cpow()
H A Dcpowl.c111 int ix, iy, hx, hy, hv, hu, iu, iv, i, j, k; in cpowl() local
124 iv = hv & 0x7fffffff; in cpowl()
190 if (iu >= hiinf || iv >= hiinf || ix >= hiinf || iy >= hiinf) { in cpowl()
198 if (iu > 0x7ffe0000 || iv > 0x7ffe0000) { in cpowl()
/titanic_44/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftKeystoreUtil.c1174 soft_gen_iv(CK_BYTE *iv) in soft_gen_iv() argument
1176 return (pkcs11_get_nzero_urandom(iv, 16) < 0 ? in soft_gen_iv()
1249 CK_BYTE iv[OBJ_IV_SIZE], old_iv[OBJ_IV_SIZE]; in reencrypt_obj() local
1302 if (soft_gen_iv(iv) != CKR_OK) { in reencrypt_obj()
1306 if (writen_nointr(new_fd, (char *)iv, OBJ_IV_SIZE) != OBJ_IV_SIZE) { in reencrypt_obj()
1344 if (soft_keystore_crypt(new_enc_key, iv, B_TRUE, decrypted_buf, in reencrypt_obj()
1356 if (soft_keystore_crypt(new_enc_key, iv, B_TRUE, decrypted_buf, in reencrypt_obj()
2026 uchar_t iv[OBJ_IV_SIZE], obj_hmac[OBJ_HMAC_SIZE]; in soft_keystore_get_single_obj() local
2063 if (readn_nointr(fd, iv, OBJ_IV_SIZE) != OBJ_IV_SIZE) { in soft_keystore_get_single_obj()
2096 if (soft_keystore_crypt(enc_key, iv, B_FALSE, buf, nread, in soft_keystore_get_single_obj()
[all …]
/titanic_44/usr/src/lib/crypt_modules/bsdbf/
H A Dblowfish.c595 blf_cbc_encrypt(blf_ctx *c, uint8_t *iv, uint8_t *data, uint32_t len) in blf_cbc_encrypt() argument
602 data[j] ^= iv[j]; in blf_cbc_encrypt()
614 iv = data; in blf_cbc_encrypt()
623 uint8_t *iv; in blf_cbc_decrypt() local
626 iv = data + len - 16; in blf_cbc_decrypt()
641 data[j] ^= iv[j]; in blf_cbc_decrypt()
642 iv -= 8; in blf_cbc_decrypt()
/titanic_44/usr/src/uts/sun4/ml/
H A Dinterrupt.s63 ! %g2 - pointer to intr_vec_t (iv)
79 brnz,pt %g2, 0f ! check list head (iv) is NULL
81 ba ptl1_panic ! panic, list head (iv) is NULL
84 lduh [%g2 + IV_FLAGS], %g7 ! %g7 = iv->iv_flags
85 and %g7, IV_SOFTINT_MT, %g3 ! %g3 = iv->iv_flags & IV_SOFTINT_MT
87 add %g2, IV_PIL_NEXT, %g7 ! g7% = &iv->iv_pil_next
90 add %g7, %g3, %g7 ! %g5 = &iv->iv_xpil_next[cpuid]
128 lduh [%g2 + IV_FLAGS], %g3 ! %g3 = iv->iv_flags
129 andn %g3, IV_SOFTINT_PEND, %g3 ! %g3 = !(iv->iv_flags & PEND)
131 stn %g0, [%g7] ! clear iv->iv_pil_next or
[all …]
/titanic_44/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Doptions.c714 int iv, a; local
751 iv = 0;
753 if (!int_option(*argv, &iv))
755 if ((((opt->flags & OPT_LLIMIT) && (iv < opt->lower_limit)) ||
756 ((opt->flags & OPT_ULIMIT) && (iv > opt->upper_limit))) &&
757 !((opt->flags & OPT_ZEROOK) && (iv == 0))) {
779 iv += a;
781 iv += *(int *)(opt->addr);
785 if ((opt->flags & OPT_ZEROINF) && (iv == 0)) {
791 } else if (iv > oldv) {
[all …]
/titanic_44/usr/src/test/libc-tests/tests/random/
H A Dchacha_tv.c277 chacha_test(uint8_t *key, uint8_t keylen, uint8_t *iv, uint8_t *bl0, in chacha_test() argument
288 chacha_ivsetup(&ctx, iv); in chacha_test()
/titanic_44/usr/src/uts/common/io/ural/
H A Dural_reg.h189 uint32_t iv; member
205 uint32_t iv; member
/titanic_44/usr/src/uts/common/io/rum/
H A Drum_reg.h205 uint32_t iv; member
229 uint32_t iv; member
/titanic_44/usr/src/common/crypto/modes/
H A Dgcm.c513 gcm_format_initial_blocks(uchar_t *iv, ulong_t iv_len, in gcm_format_initial_blocks() argument
527 bcopy(iv, cb, 12); in gcm_format_initial_blocks()
539 bcopy(&(iv[processed]), cb, remainder); in gcm_format_initial_blocks()
543 datap = (uint8_t *)(&(iv[processed])); in gcm_format_initial_blocks()
564 gcm_init(gcm_ctx_t *ctx, unsigned char *iv, size_t iv_len, in gcm_init() argument
578 gcm_format_initial_blocks(iv, iv_len, ctx, block_size, in gcm_init()
/titanic_44/usr/src/psm/stand/boot/sparc/common/
H A Dwanboot.c1172 decrypt_wanbootfs(caddr_t addr, cbc_handle_t *ch, uint8_t *iv, in decrypt_wanbootfs() argument
1175 if (!cbc_decrypt(ch, (uint8_t *)addr, wanbootfs_size, iv)) { in decrypt_wanbootfs()
1222 uint8_t iv[WANBOOT_MAXBLOCKLEN]; in process_wanbootfs() local
1304 if (read_bytes(handle, (char *)iv, block_size) != 0) { in process_wanbootfs()
1311 HMACUpdate(&sha, (uchar_t *)iv, block_size); in process_wanbootfs()
1343 ret = decrypt_wanbootfs(bootfs_vaddr, &ch, iv, wanbootfs_size); in process_wanbootfs()
/titanic_44/usr/src/common/crypto/chacha/
H A Dchacha.c79 chacha_ivsetup(chacha_ctx_t *x,const u8 *iv) in chacha_ivsetup() argument
83 x->chacha_input[14] = U8TO32_LITTLE(iv + 0); in chacha_ivsetup()
84 x->chacha_input[15] = U8TO32_LITTLE(iv + 4); in chacha_ivsetup()
/titanic_44/usr/src/uts/common/io/rwd/
H A Drt2661_reg.h253 uint32_t iv; member
287 uint32_t iv; member

123