Lines Matching refs:hash_val

114 	NODELIST *ndlp, void *hash_val, uint32_t tran_id,
3215 uint32_t *hash_val;
3381 hash_val = emlxs_hash_vrf(port, port_dhc, ndlp,
3384 if (bcmp((void *)tmp, (void *)hash_val,
3386 if (hash_val != NULL) {
3390 ndlp->nlp_DID, *(uint32_t *)hash_val);
3707 uint32_t *hash_val = NULL;
3863 /* allocate hash_val first as rsp_len bytes */
3868 hash_val = emlxs_hash_verification(port, port_dhc, ndlp,
3871 if (hash_val == NULL) {
3876 if (bcmp((void *) rsp, (void *)hash_val, rsp_len)) {
3885 kmem_free(hash_val, rsp_len);
3886 hash_val = NULL;
3896 hash_val = emlxs_hash_get_R2(port, port_dhc,
3900 if (hash_val == NULL) {
3910 (uint8_t *)hash_val)) {
5026 uint32_t *hash_val;
5075 hash_val = (uint32_t *)kmem_alloc(hash_size,
5077 if (hash_val == NULL) {
5081 (void *)hash_val, MD5_LEN);
5084 * emlxs_md5_digest_to_hex((uint8_t *)hash_val,
5104 * emlxs_sha1_digest_to_hex((uint8_t *)hash_val,
5108 hash_val = (uint32_t *)kmem_alloc(hash_size,
5110 if (hash_val == NULL) {
5114 (void *)hash_val, SHA1_LEN);
5117 return ((uint32_t *)hash_val);
5124 * H(bi_cval || ses_key) = C H(Ti || Km || C) = hash_val
5159 hash_val = (uint32_t *)kmem_alloc(hash_size,
5161 if (hash_val == NULL) {
5165 (void *)hash_val, MD5_LEN);
5201 hash_val = (uint32_t *)kmem_alloc(hash_size,
5203 if (hash_val == NULL) {
5207 (void *)hash_val, SHA1_LEN);
5210 return ((uint32_t *)hash_val);
5238 uint32_t *hash_val;
5290 hash_val = (uint32_t *)kmem_alloc(hash_size,
5292 if (hash_val == NULL) {
5296 (void *)hash_val, MD5_LEN);
5300 * emlxs_md5_digest_to_hex((uint8_t *)hash_val,
5321 * emlxs_sha1_digest_to_hex((uint8_t *)hash_val,
5325 hash_val = (uint32_t *)kmem_alloc(hash_size,
5327 if (hash_val == NULL) {
5331 (void *)hash_val, SHA1_LEN);
5334 return ((uint32_t *)hash_val);
5376 hash_val = (uint32_t *)kmem_alloc(hash_size,
5378 if (hash_val == NULL) {
5382 (void *)hash_val, MD5_LEN);
5400 hash_val = (uint32_t *)kmem_alloc(hash_size,
5402 if (hash_val == NULL) {
5406 (void *)hash_val, SHA1_LEN);
5409 return ((uint32_t *)hash_val);
5416 * To get the augmented challenge Cai Stored in hash_val
5432 void *hash_val,
5485 bcopy((void *)&md5_digest, (void *)hash_val, MD5_LEN);
5514 bcopy((void *)&sha1_digest, (void *)hash_val, SHA1_LEN);
6207 uint32_t *hash_val = NULL;
6279 hash_val = (uint32_t *)kmem_alloc(hash_size,
6281 if (hash_val == NULL) {
6288 (void *)hash_val, MD5_LEN);
6316 hash_val = (uint32_t *)kmem_zalloc(hash_size,
6318 if (hash_val == NULL) {
6325 (void *)hash_val, SHA1_LEN);
6329 "hash_verification: hash_val=0x%x",
6330 *(uint32_t *)hash_val);
6332 return ((uint32_t *)hash_val);
6342 * hash_val returned. Ti : tran_id, Km : shared secret, Cai:
6412 hash_val = (uint32_t *)kmem_zalloc(hash_size,
6414 if (hash_val == NULL) {
6421 (void *)hash_val, MD5_LEN);
6442 hash_val = (uint32_t *)kmem_zalloc(hash_size,
6444 if (hash_val == NULL) {
6451 (void *)hash_val, SHA1_LEN);
6455 "hash_verification: hash_val=0x%x",
6456 *(uint32_t *)hash_val);
6458 return ((uint32_t *)hash_val);
6502 uint32_t *hash_val = NULL;
6566 hash_val = (uint32_t *)kmem_alloc(hash_size,
6568 if (hash_val == NULL) {
6572 (void *)hash_val, MD5_LEN);
6591 hash_val = (uint32_t *)kmem_alloc(hash_size,
6593 if (hash_val == NULL) {
6597 (void *)hash_val, SHA1_LEN);
6668 hash_val = (uint32_t *)kmem_alloc(hash_size,
6670 if (hash_val == NULL) {
6672 "hash_get_R2: hash_val MD5 alloc failed.");
6677 (void *)hash_val, MD5_LEN);
6698 hash_val = (uint32_t *)kmem_alloc(hash_size,
6700 if (hash_val == NULL) {
6702 "hash_get_R2: hash_val SHA1 alloc failed.");
6707 (void *)hash_val, SHA1_LEN);
6712 return ((uint32_t *)hash_val);