/illumos-gate/usr/src/lib/libresolv2/common/dst/ |
H A D | hmac_link.c | 226 HMAC_Key *hkey = NULL; in dst_buffer_to_hmac_md5() local 234 if ((hkey = (HMAC_Key *) malloc(sizeof(HMAC_Key))) == NULL) in dst_buffer_to_hmac_md5() 237 memset(hkey->hk_ipad, 0, sizeof(hkey->hk_ipad)); in dst_buffer_to_hmac_md5() 238 memset(hkey->hk_opad, 0, sizeof(hkey->hk_opad)); in dst_buffer_to_hmac_md5() 250 memcpy(hkey->hk_ipad, key, local_keylen); in dst_buffer_to_hmac_md5() 251 memcpy(hkey->hk_opad, key, local_keylen); in dst_buffer_to_hmac_md5() 255 hkey->hk_ipad[i] ^= HMAC_IPAD; in dst_buffer_to_hmac_md5() 256 hkey->hk_opad[i] ^= HMAC_OPAD; in dst_buffer_to_hmac_md5() 259 dkey->dk_KEY_struct = (void *) hkey; in dst_buffer_to_hmac_md5() 284 HMAC_Key *hkey; in dst_hmac_md5_key_to_file_format() local [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/ |
H A D | fksmb_sign_pkcs.c | 136 CK_OBJECT_HANDLE hkey = 0; in smb2_hmac_init() local 144 key, key_len, &hkey); in smb2_hmac_init() 148 rv = C_SignInit(*ctxp, mech, hkey); in smb2_hmac_init() 149 (void) C_DestroyObject(*ctxp, hkey); in smb2_hmac_init() 200 CK_OBJECT_HANDLE hkey = 0; in smb2_hmac_one() local 210 key, key_len, &hkey); in smb2_hmac_one() 216 rv = C_SignInit(hssn, mech, hkey); in smb2_hmac_one() 235 if (hkey != 0) in smb2_hmac_one() 236 (void) C_DestroyObject(hssn, hkey); in smb2_hmac_one() 264 CK_OBJECT_HANDLE hkey = 0; in smb3_cmac_init() local [all …]
|
H A D | fksmb_encrypt_pkcs.c | 137 CK_OBJECT_HANDLE hkey = 0; in smb3_encrypt_init() local 146 key, keylen, &hkey); in smb3_encrypt_init() 150 rv = C_EncryptInit(ctxp->ctx, mech, hkey); in smb3_encrypt_init() 154 (void) C_DestroyObject(ctxp->ctx, hkey); in smb3_encrypt_init() 169 CK_OBJECT_HANDLE hkey = 0; in smb3_decrypt_init() local 178 key, keylen, &hkey); in smb3_decrypt_init() 182 rv = C_DecryptInit(ctxp->ctx, mech, hkey); in smb3_decrypt_init() 186 (void) C_DestroyObject(ctxp->ctx, hkey); in smb3_decrypt_init()
|
/illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/ |
H A D | fksmb_sign_pkcs.c | 142 CK_OBJECT_HANDLE hkey = 0; in nsmb_hmac_init() local 150 key, key_len, &hkey); in nsmb_hmac_init() 154 rv = C_SignInit(*ctxp, mech, hkey); in nsmb_hmac_init() 155 (void) C_DestroyObject(*ctxp, hkey); in nsmb_hmac_init() 206 CK_OBJECT_HANDLE hkey = 0; in nsmb_hmac_one() local 216 key, key_len, &hkey); in nsmb_hmac_one() 222 rv = C_SignInit(hssn, mech, hkey); in nsmb_hmac_one() 241 if (hkey != 0) in nsmb_hmac_one() 242 (void) C_DestroyObject(hssn, hkey); in nsmb_hmac_one() 270 CK_OBJECT_HANDLE hkey = 0; in nsmb_cmac_init() local [all …]
|
H A D | fksmb_crypt_pkcs.c | 142 CK_OBJECT_HANDLE hkey = 0; in nsmb_encrypt_init() local 151 key, keylen, &hkey); in nsmb_encrypt_init() 155 rv = C_EncryptInit(ctxp->ctx, mech, hkey); in nsmb_encrypt_init() 159 (void) C_DestroyObject(ctxp->ctx, hkey); in nsmb_encrypt_init() 174 CK_OBJECT_HANDLE hkey = 0; in nsmb_decrypt_init() local 183 key, keylen, &hkey); in nsmb_decrypt_init() 187 rv = C_DecryptInit(ctxp->ctx, mech, hkey); in nsmb_decrypt_init() 191 (void) C_DestroyObject(ctxp->ctx, hkey); in nsmb_decrypt_init()
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/oce/ |
H A D | oce_hw.c | 470 char hkey[OCE_HKEY_SIZE]; in oce_setup_adapter() local 486 (void) oce_gen_hkey(hkey, OCE_HKEY_SIZE); in oce_setup_adapter() 487 ret = oce_config_rss(dev, dev->if_id, hkey, itbl, OCE_ITBL_SIZE, in oce_setup_adapter() 514 char hkey[OCE_HKEY_SIZE] = {0}; in oce_unsetup_adapter() local 517 ret = oce_config_rss(dev, dev->if_id, hkey, itbl, OCE_ITBL_SIZE, in oce_unsetup_adapter()
|
H A D | oce_utils.c | 215 oce_gen_hkey(char *hkey, int key_size) in oce_gen_hkey() argument 221 (uint8_t *)&hkey[i * sizeof (uint32_t)], in oce_gen_hkey()
|
H A D | oce_mbx.c | 1185 oce_config_rss(struct oce_dev *dev, uint16_t if_id, char *hkey, char *itbl, in oce_config_rss() argument 1206 if (hkey != NULL) { in oce_config_rss() 1207 bcopy(hkey, fwcmd->params.req.hash, OCE_HKEY_SIZE); in oce_config_rss()
|
/illumos-gate/usr/src/uts/common/sys/fibre-channel/fca/oce/ |
H A D | oce_utils.h | 144 void oce_gen_hkey(char *hkey, int key_size);
|
H A D | oce_io.h | 390 int oce_config_rss(struct oce_dev *dev, uint16_t if_id, char *hkey, char *itbl,
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | memory.c | 378 int hkey; in vn_get() local 390 hkey = VN_HTABLE_KEY(ptr, hp); in vn_get() 391 hent = hp->vn_htable[hkey]; in vn_get() 420 hent->vn_h_next = hp->vn_htable[hkey]; in vn_get() 421 hp->vn_htable[hkey] = hent; in vn_get()
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | winreg_svc.c | 315 winreg_s_OpenHK(void *arg, ndr_xa_t *mxa, const char *hkey) in winreg_s_OpenHK() argument 322 if ((id = winreg_alloc_id(mxa, hkey)) == NULL) { in winreg_s_OpenHK()
|
/illumos-gate/usr/src/uts/common/io/ib/clients/daplt/ |
H A D | daplt.c | 9494 uint64_t hkey; in daplka_hash_insert() local 9508 hkey = ++htblp->ht_next_hkey; in daplka_hash_insert() 9509 if (hkey == 0) { in daplka_hash_insert() 9510 hkey = htblp->ht_next_hkey = (uint64_t)gethrtime(); in daplka_hash_insert() 9515 hkey = *hkeyp; in daplka_hash_insert() 9519 bucket = (uint32_t)(hkey & (htblp->ht_nbuckets - 1)); in daplka_hash_insert() 9524 hep->he_hkey = hkey; in daplka_hash_insert() 9551 *hkeyp = hkey; in daplka_hash_insert() 9578 daplka_hash_remove(daplka_hash_table_t *htblp, uint64_t hkey, void **objpp) in daplka_hash_remove() argument 9584 bucket = (uint32_t)(hkey & (htblp->ht_nbuckets - 1)); in daplka_hash_remove() [all …]
|