Lines Matching refs:picap
210 smb2_preauth_caps_t *picap = &neg_ctxs->preauth_ctx.preauth_caps; in smb31_decode_neg_ctxs() local
296 &picap->picap_hash_count, /* w */ in smb31_decode_neg_ctxs()
297 &picap->picap_salt_len); /* w */ in smb31_decode_neg_ctxs()
298 if (rc != 0 || picap->picap_hash_count > in smb31_decode_neg_ctxs()
309 picap->picap_hash_count, in smb31_decode_neg_ctxs()
310 &picap->picap_hash_id); /* w */ in smb31_decode_neg_ctxs()
321 sizeof (picap->picap_salt), in smb31_decode_neg_ctxs()
322 &picap->picap_salt[0]); /* w */ in smb31_decode_neg_ctxs()
333 if (picap->picap_hash_count != 1) { in smb31_decode_neg_ctxs()
338 if (picap->picap_hash_id == SMB3_HASH_SHA512) in smb31_decode_neg_ctxs()
423 smb2_preauth_caps_t *picap = &neg_ctxs->preauth_ctx.preauth_caps; in smb31_encode_neg_ctxs() local
425 uint16_t salt_len = sizeof (picap->picap_salt); in smb31_encode_neg_ctxs()
437 picap->picap_hash_id = s->smb31_preauth_hashid; in smb31_encode_neg_ctxs()
438 picap->picap_salt_len = salt_len; in smb31_encode_neg_ctxs()
440 (void) random_get_pseudo_bytes(picap->picap_salt, salt_len); in smb31_encode_neg_ctxs()
456 picap->picap_salt); in smb31_encode_neg_ctxs()