Searched defs:iv (Results 1 - 25 of 35) sorted by relevance

12

/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/keyhash_provider/
H A Dhmac_md5.c46 const krb5_data *iv,
44 k5_hmac_md5_hash(krb5_context context, const krb5_keyblock *key, krb5_keyusage usage, const krb5_data *iv, const krb5_data *input, krb5_data *output) argument
/illumos-gate/usr/src/common/net/wanboot/crypt/
H A Dcbc_test.c66 char iv[CBC_MAX_IV_SIZE]; local
96 bzero(iv, CBC_MAX_IV_SIZE);
129 TEST_BLOCK_SIZE, (uint8_t *)iv);
137 bzero(iv, CBC_MAX_IV_SIZE);
141 TEST_BLOCK_SIZE, (uint8_t *)iv);
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/keyhash_provider/
H A Dk_hmac_md5.c48 const krb5_data *iv,
46 k5_hmac_md5_hash(krb5_context context, const krb5_keyblock *key, krb5_keyusage usage, const krb5_data *iv, const krb5_data *input, krb5_data *output) argument
/illumos-gate/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) argument
602 data[j] ^= iv[j];
614 iv = data;
623 uint8_t *iv; local
626 iv = data + len - 16;
641 data[j] ^= iv[j];
642 iv -= 8;
/illumos-gate/usr/src/lib/libm/common/complex/
H A Dcpowf.c58 int ix, iy, hx, hy, hv, hu, iu, iv, j; local
71 iv = hv & 0x7fffffff;
74 if (iv == 0) { /* z**(real) */
127 if (iu >= hiinf || iv >= hiinf || ix >= hiinf || iy >= hiinf) {
158 if (iv == 0) { /* dv = 0 */
H A Dcpow.c40 * Let z = x+iy, w = u+iv.
51 * (u+iv)* log(x+iy) = --- log(x + y ) - v tan (---) + (1)
156 int ix, iy, hx, lx, hy, ly, hv, hu, iu, iv, lu, lv; local
174 iv = hv & 0x7fffffff;
177 if ((iv | lv) == 0) { /* z**(real) */
240 if (iu >= hiinf || iv >= hiinf || ix >= hiinf || iy >= hiinf) {
248 if (iu > 0x7f000000 || iv > 0x7f000000) {
H A Dcpowl.c111 int ix, iy, hx, hy, hv, hu, iu, iv, i, j, k; local
124 iv = hv & 0x7fffffff;
190 if (iu >= hiinf || iv >= hiinf || ix >= hiinf || iy >= hiinf) {
198 if (iu > 0x7ffe0000 || iv > 0x7ffe0000) {
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wanboot/encr/
H A Dencr.c131 uint8_t iv[WANBOOT_MAXBLOCKLEN]; local
140 if (wbio_nread_rand(iv, ch->blocklen) != 0) {
148 if (wbio_nwrite(STDOUT_FILENO, iv, ch->blocklen) != 0) {
193 (void) cbc_encrypt(ch, buf, i, iv);
196 (void) cbc_encrypt(ch, buf, i, iv);
204 (void) cbc_encrypt(ch, buf, i, iv);
/illumos-gate/usr/src/common/crypto/chacha/
H A Dchacha.c79 chacha_ivsetup(chacha_ctx_t *x,const u8 *iv) argument
83 x->chacha_input[14] = U8TO32_LITTLE(iv + 0);
84 x->chacha_input[15] = U8TO32_LITTLE(iv + 4);
/illumos-gate/usr/src/uts/common/crypto/io/
H A Ddca_3des.c82 des_ctx->dr_ctx.iv[0] = htonl(p[0]);
83 des_ctx->dr_ctx.iv[1] = htonl(p[1]);
86 des_ctx->dr_ctx.iv[0] = p[0]<<24 | p[1]<<16 | p[2]<<8 | p[3];
87 des_ctx->dr_ctx.iv[1] = p[4]<<24 | p[5]<<16 | p[6]<<8 | p[7];
182 des_ctx->dr_ctx.iv[0] = htonl(p[0]);
183 des_ctx->dr_ctx.iv[1] = htonl(p[1]);
186 des_ctx->dr_ctx.iv[0] = p[0]<<24 | p[1]<<16 | p[2]<<8 | p[3];
187 des_ctx->dr_ctx.iv[1] = p[4]<<24 | p[5]<<16 | p[6]<<8 | p[7];
384 uint32_t iv[2]; local
399 iv[
578 uint32_t *iv = (uint32_t *)ivstore; local
580 uchar_t *iv = ivstore; local
[all...]
/illumos-gate/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, argument
288 chacha_ivsetup(&ctx, iv);
/illumos-gate/usr/src/uts/common/io/net80211/
H A Dnet80211_crypto_wep.c130 uint32_t iv; local
149 iv = ctx->wc_iv;
154 if ((iv & 0xff00) == 0xff00) {
155 int B = (iv & 0xff0000) >> 16;
157 iv = (B+1) << 16;
159 ctx->wc_iv = iv + 1;
161 ivp[2] = (uint8_t)(iv >> 0);
162 ivp[1] = (uint8_t)(iv >> 8);
163 ivp[0] = (uint8_t)(iv >> 16);
/illumos-gate/usr/src/lib/libnisdb/
H A Dldap_attr.c404 int irv, iv, ndn; local
419 for (iv = 0; iv < rv[irv].numAttrs; iv++) {
421 if (rv[irv].attrName[iv] != 0 &&
422 rv[irv].attrVal[iv].type == vt_string &&
423 rv[irv].attrVal[iv].numVals >= 1 &&
424 strcasecmp("dn", rv[irv].attrName[iv]) == 0) {
427 rv[irv].attrVal[iv].val[0].value,
/illumos-gate/usr/src/common/crypto/modes/
H A Dgcm.c513 gcm_format_initial_blocks(uchar_t *iv, ulong_t iv_len, argument
527 bcopy(iv, cb, 12);
539 bcopy(&(iv[processed]), cb, remainder);
543 datap = (uint8_t *)(&(iv[processed]));
564 gcm_init(gcm_ctx_t *ctx, unsigned char *iv, size_t iv_len, argument
578 gcm_format_initial_blocks(iv, iv_len, ctx, block_size,
/illumos-gate/usr/src/cmd/mdb/common/modules/ipc/
H A Dipc.c285 ipc_ops_vec_t *iv)
296 if (mdb_walk_dcmd(iv->iv_wcmd, oflags ? iv->iv_ocmd : "ipcperm",
298 mdb_warn("can't walk '%s'", iv->iv_wcmd);
304 iddata = mdb_alloc(iv->iv_idsize, UM_SLEEP | UM_GC);
305 if (mdb_vread(iddata, iv->iv_idsize, addr) == -1) {
306 mdb_warn("failed to read %s at %#lx", iv->iv_ocmd, addr);
310 if (!DCMD_HDRSPEC(flags) && iv->iv_print)
313 if (DCMD_HDRSPEC(flags) || iv->iv_print)
317 if (iv
284 ds_print(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv, ipc_ops_vec_t *iv) argument
356 ipc_ops_vec_t *iv = wsp->walk_arg; local
519 ds_ptr(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv, ipc_ops_vec_t *iv) argument
[all...]
/illumos-gate/usr/src/uts/sun4/os/
H A Dintr.c348 intr_vec_t *iv, *next, *prev; local
359 iv = (intr_vec_t *)inum;
365 if (next == iv)
/illumos-gate/usr/src/cmd/mdb/sun4u/modules/unix/
H A Dunix.c1378 intr_vec_t iv; local
1393 if (mdb_vread(&iv, sizeof (intr_vec_t),
1399 wsp->walk_addr = (uintptr_t)iv.iv_vec_next;
1415 intr_vec_t iv; local
1430 if (mdb_vread(&iv, sizeof (iv), addr) == -1) {
1435 mdb_printf("%4x %?p %4d %?p %?p %a\n", iv.iv_inum, addr,
1436 iv.iv_pil, iv.iv_arg1, iv
1471 intr_vec_t iv; local
1493 intr_vec_t iv; local
[all...]
/illumos-gate/usr/src/psm/stand/boot/sparc/common/
H A Dwanboot.c1172 decrypt_wanbootfs(caddr_t addr, cbc_handle_t *ch, uint8_t *iv, argument
1175 if (!cbc_decrypt(ch, (uint8_t *)addr, wanbootfs_size, iv)) {
1221 /* iv[] must be sized to store the largest possible encryption block */
1222 uint8_t iv[WANBOOT_MAXBLOCKLEN]; local
1301 * If encrypted, then read the iv.
1304 if (read_bytes(handle, (char *)iv, block_size) != 0) {
1306 "%s: error reading hash iv", WANBOOTFS);
1311 HMACUpdate(&sha, (uchar_t *)iv, block_size);
1343 ret = decrypt_wanbootfs(bootfs_vaddr, &ch, iv, wanbootfs_size);
/illumos-gate/usr/src/uts/common/io/rum/
H A Drum_reg.h205 uint32_t iv; member in struct:rum_tx_desc
229 uint32_t iv; member in struct:rum_rx_desc
/illumos-gate/usr/src/uts/common/io/ural/
H A Dural_reg.h189 uint32_t iv; member in struct:ural_tx_desc
205 uint32_t iv; member in struct:ural_rx_desc
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftKeystoreUtil.c137 * 2) iv: initialization vector for encrypted data in the object. This
1174 soft_gen_iv(CK_BYTE *iv) argument
1176 return (pkcs11_get_nzero_urandom(iv, 16) < 0 ?
1249 CK_BYTE iv[OBJ_IV_SIZE], old_iv[OBJ_IV_SIZE]; local
1296 /* read old iv */
1302 if (soft_gen_iv(iv) != CKR_OK) {
1306 if (writen_nointr(new_fd, (char *)iv, OBJ_IV_SIZE) != OBJ_IV_SIZE) {
1344 if (soft_keystore_crypt(new_enc_key, iv, B_TRUE, decrypted_buf,
1356 if (soft_keystore_crypt(new_enc_key, iv, B_TRUE, decrypted_buf,
2026 uchar_t iv[OBJ_IV_SIZ local
2199 CK_BYTE iv[OBJ_IV_SIZE]; local
2476 uchar_t iv[OBJ_IV_SIZE], obj_hmac[OBJ_HMAC_SIZE]; local
[all...]
/illumos-gate/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 > old
[all...]
/illumos-gate/usr/src/uts/common/io/ral/
H A Drt2560_reg.h240 uint32_t iv; member in struct:rt2560_tx_desc
269 uint32_t iv; member in struct:rt2560_rx_desc
/illumos-gate/usr/src/uts/common/io/rwd/
H A Drt2661_reg.h253 uint32_t iv; member in struct:rt2661_tx_desc
287 uint32_t iv; member in struct:rt2661_rx_desc
/illumos-gate/usr/src/uts/common/io/
H A Dlofi.c817 char *iv; local
828 /* lsp->ls_mech.cm_param{_len} has already been set for static iv */
840 iv = kmem_zalloc(iv_len, KM_SLEEP);
843 iv = lsp->ls_mech.cm_param;
844 bzero(iv, iv_len);
849 /* iv is not static, lblkno changes each time */
860 * write blkno into the iv buffer padded on the left in case
862 * or a variation other than blkno is used for the iv data
865 bcopy(data, iv + (iv_len - min), min);
868 SETUP_C_DATA(cdata, iv, iv_le
[all...]

Completed in 98 milliseconds

12