Home
last modified time | relevance | path

Searched refs:klen (Results 1 – 24 of 24) sorted by relevance

/titanic_44/usr/src/common/net/wanboot/crypt/
H A Dhmac_sha1.c34 HMACHashKey(uchar_t *hashedKey, const uchar_t *key, size_t klen) in HMACHashKey() argument
39 SHA1Update(&keyContext, key, klen); in HMACHashKey()
44 HMACInit(SHA1_CTX *sha1Context, const uchar_t *key, size_t klen) in HMACInit() argument
51 if (klen > 64) { in HMACInit()
52 HMACHashKey(hashedKey, key, klen); in HMACInit()
54 klen = 20; in HMACInit()
61 kipad[i] = (i < klen ? keyptr[i] : 0) ^ 0x36; in HMACInit()
75 HMACFinal(SHA1_CTX *sha1Context, const uchar_t *key, size_t klen, in HMACFinal() argument
83 if (klen > 64) { in HMACFinal()
84 HMACHashKey(hashedKey, key, klen); in HMACFinal()
[all …]
/titanic_44/usr/src/uts/common/io/ib/clients/rdsv3/
H A Dinfo.c118 uint32_t ulen = 0, klen; in rdsv3_info_ioctl() local
171 klen = lens.nr * lens.each; in rdsv3_info_ioctl()
173 if (ddi_copyout(&klen, (void *)(uintptr_t)arg.lenp, in rdsv3_info_ioctl()
176 "ddi_copyout(%p %p) failed", &klen, arg.lenp); in rdsv3_info_ioctl()
181 "optname: %d ulen: %d klen: %d each: %d", optname, ulen, klen, in rdsv3_info_ioctl()
184 if (ulen < klen) { in rdsv3_info_ioctl()
/titanic_44/usr/src/lib/nsswitch/files/common/
H A Dgetprinter.c46 int klen = strlen(keyp); in check_name() local
54 while (linep+klen < limit && *linep != '|' && *linep != ':') { in check_name()
55 if ((strncmp(linep, keyp, klen) == 0) && in check_name()
56 ((*(linep + klen) == '|') || (*(linep + klen) == ':'))) { in check_name()
/titanic_44/usr/src/cmd/ssh/libssh/common/
H A Dkexdhc.c51 u_int klen, kout, slen, sbloblen; in kexdh_client() local
102 klen = DH_size(dh); in kexdh_client()
103 kbuf = xmalloc(klen); in kexdh_client()
111 memset(kbuf, 0, klen); in kexdh_client()
H A Dkexdhs.c50 u_int sbloblen, klen, kout; in kexdh_server() local
88 klen = DH_size(dh); in kexdh_server()
89 kbuf = xmalloc(klen); in kexdh_server()
97 memset(kbuf, 0, klen); in kexdh_server()
H A Dkexgexs.c51 u_int sbloblen, klen, kout, slen; in kexgex_server() local
128 klen = DH_size(dh); in kexgex_server()
129 kbuf = xmalloc(klen); in kexgex_server()
137 memset(kbuf, 0, klen); in kexgex_server()
H A Dkexgexc.c51 u_int klen, kout, slen, sbloblen; in kexgex_client() local
147 klen = DH_size(dh); in kexgex_client()
148 kbuf = xmalloc(klen); in kexgex_client()
156 memset(kbuf, 0, klen); in kexgex_client()
H A Dkexgsss.c61 unsigned int klen, kout; in kexgss_server() local
173 klen = DH_size(dh); in kexgss_server()
174 kbuf = xmalloc(klen); in kexgss_server()
179 (void) memset(kbuf, 0, klen); in kexgss_server()
H A Dkexgssc.c64 unsigned int klen, kout; in kexgss_client() local
265 klen = DH_size(dh); in kexgss_client()
266 kbuf = xmalloc(klen); in kexgss_client()
271 (void) memset(kbuf, 0, klen); in kexgss_client()
H A Dcipher.c201 int klen; in cipher_init() local
236 klen = EVP_CIPHER_CTX_key_length(&cc->evp); in cipher_init()
237 if (klen > 0 && keylen != klen) { in cipher_init()
238 debug("cipher_init: set keylen (%d -> %d)", klen, keylen); in cipher_init()
241 klen, keylen); in cipher_init()
/titanic_44/usr/src/uts/common/sys/usb/usba/
H A Dwhcdi.h287 usb_key_descr_t *key, size_t klen);
296 int PRF(const uchar_t *key, size_t klen, wusb_ccm_nonce_t *nonce,
301 #define PRF_64(key, klen, nonce, adata, alen, bdata, blen, out) \ argument
302 PRF(key, klen, nonce, adata, alen, bdata, blen, out, 64)
304 #define PRF_128(key, klen, nonce, adata, alen, bdata, blen, out) \ argument
305 PRF(key, klen, nonce, adata, alen, bdata, blen, out, 128)
307 #define PRF_256(key, klen, nonce, adata, alen, bdata, blen, out) \ argument
308 PRF(key, klen, nonce, adata, alen, bdata, blen, out, 256)
/titanic_44/usr/src/uts/common/syscall/
H A Drctlsys.c227 size_t klen; in rctlsys_get() local
245 if (copyinstr(name, kname, MAXPATHLEN, &klen) != 0) { in rctlsys_get()
394 size_t klen; in rctlsys_set() local
417 if (copyinstr(name, kname, MAXPATHLEN, &klen) != 0) { in rctlsys_set()
800 size_t klen; in rctlsys_ctl() local
804 if (name == NULL || copyinstr(name, kname, MAXPATHLEN, &klen) != 0) { in rctlsys_ctl()
891 size_t klen; in rctlsys_projset() local
902 if (name == NULL || copyinstr(name, kname, MAXPATHLEN, &klen) != 0) { in rctlsys_projset()
/titanic_44/usr/src/uts/common/io/usb/clients/usbkbm/
H A Dusbkbm.c1606 kbend = kbstart + usbkbmd->usbkbm_report_format.klen; in usbkbm_polled_enter()
1642 kbend = kbstart + usbkbmd->usbkbm_report_format.klen; in usbkbm_polled_exit()
1687 kbend = kbstart + usbkbmd->usbkbm_report_format.klen; in usbkbm_unpack_usb_packet()
1929 uint_t i, kbd_page = 0, kpos = 0, klen = 0, limit = 0; in usbkbm_get_input_format() local
1937 kbd_fmt->klen = kbd_fmt->tlen; in usbkbm_get_input_format()
1998 klen += rptcnt * rptsz; in usbkbm_get_input_format()
2010 kpos + klen > limit || (kpos % 8 != 0)) { in usbkbm_get_input_format()
2014 "kpos (%d), klen (%d)", kbd_page, limit, kpos, klen); in usbkbm_get_input_format()
2021 kbd_fmt->klen = klen / 8; in usbkbm_get_input_format()
/titanic_44/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelSoftCommon.c105 CK_BYTE_PTR kval, CK_ULONG klen, int opflag) in do_soft_hmac_init() argument
136 OBJ_SEC_VALUE_LEN(key_p) = klen; in do_soft_hmac_init()
H A DkernelSoftCommon.h53 CK_ULONG klen, int opflag);
/titanic_44/usr/src/uts/common/sys/usb/clients/usbkbm/
H A Dusbkbm.h112 uint_t klen; /* length of keycodes */ member
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_ldap.c1260 int klen = rlen; in decpdu() local
1333 klen <= 5) { in decpdu()
1337 ((bitstr) << 8) + ((i < klen)?hexstr[i]:0); in decpdu()
1361 SASNDESC->type == CONTENTTYPE) && klen <= 5) { in decpdu()
1363 for (i = 0; i < klen; ++i) { in decpdu()
/titanic_44/usr/src/cmd/perl/contrib/Sun/Solaris/Kstat/
H A DKstat.xs969 STRLEN klen; in prune_invalid() local
1015 key = HePV(entry3, klen); in prune_invalid()
1016 hv_delete(hash3, key, klen, G_DISCARD); in prune_invalid()
1030 key = HePV(entry2, klen); in prune_invalid()
1031 hv_delete(hash2, key, klen, G_DISCARD); in prune_invalid()
1038 key = HePV(entry1, klen); in prune_invalid()
1039 hv_delete(hash1, key, klen, G_DISCARD); in prune_invalid()
/titanic_44/usr/src/uts/common/io/net80211/
H A Dnet80211_ioctl.c2022 uint32_t klen; in wl_set_wepkey() local
2030 klen = wepkey[i].wl_wep_length; in wl_set_wepkey()
2031 if (klen > IEEE80211_KEYBUF_SIZE) { in wl_set_wepkey()
2033 "invalid wepkey length, %u\n", klen); in wl_set_wepkey()
2037 if (klen == 0) in wl_set_wepkey()
2044 "set key %u, len=%u\n", i, klen); in wl_set_wepkey()
2055 key->wk_keylen = (uint8_t)klen; in wl_set_wepkey()
2058 bcopy(wepkey[i].wl_wep_key, key->wk_key, klen); in wl_set_wepkey()
2062 "set key failed len=%u\n", klen); in wl_set_wepkey()
/titanic_44/usr/src/uts/common/fs/sockfs/
H A Dsocksyscalls.c283 socklen_t klen) in copyout_arg() argument
286 if (ulen > klen) in copyout_arg()
287 ulen = klen; in copyout_arg()
310 socklen_t klen) in copyout_name() argument
313 if (ulen >= klen) in copyout_name()
314 ulen = klen; in copyout_name()
318 curproc->p_pid, klen, ulen); in copyout_name()
325 klen = 0; in copyout_name()
327 klen = 0; in copyout_name()
330 if (copyout(&klen, ulenp, sizeof (klen))) in copyout_name()
/titanic_44/usr/src/uts/common/io/nxge/npi/
H A Dnpi_espc.c480 int klen = vpd_rd(handle, ep + 2); in npi_espc_vpd_info_get() local
572 ep += klen; in npi_espc_vpd_info_get()
/titanic_44/usr/src/cmd/lofiadm/
H A Dmain.c848 size_t klen; in getkeyfromuser() local
881 klen = cipher->max_keysize; in getkeyfromuser()
883 cipher->max_keysize, &kvalue, &klen); in getkeyfromuser()
892 *raw_key_sz = klen; in getkeyfromuser()
/titanic_44/usr/src/uts/common/fs/zfs/
H A Dzfs_vnops.c4218 size_t len, klen; in zfs_putapage() local
4229 klen = P2ROUNDUP((ulong_t)zp->z_blksz, PAGESIZE); in zfs_putapage()
4230 koff = ISP2(klen) ? P2ALIGN(off, (u_offset_t)klen) : 0; in zfs_putapage()
4232 if (koff + klen > zp->z_size) in zfs_putapage()
4233 klen = P2ROUNDUP(zp->z_size - koff, (uint64_t)PAGESIZE); in zfs_putapage()
4234 pp = pvn_write_kluster(vp, pp, &off, &len, koff, klen, flags); in zfs_putapage()
/titanic_44/usr/src/cmd/cmd-inet/usr.bin/netstat/
H A Dnetstat.c6239 int klen = 0; in process_filter() local
6253 klen = strlen(filter_keys[idx]); in process_filter()
6254 if (strncmp(filter_keys[idx], arg, klen) == 0 && in process_filter()
6255 arg[klen] == ':') in process_filter()
6262 arg += klen + 1; in process_filter()