Home
last modified time | relevance | path

Searched refs:tkn_ssnkey (Results 1 – 9 of 9) sorted by relevance

/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb2_signing.c177 if (token->tkn_ssnkey.val == NULL || token->tkn_ssnkey.len == 0 || in smb2_sign_begin()
191 uint32_t ssnkey_len = MIN(token->tkn_ssnkey.len, SMB2_KEYLEN); in smb2_sign_begin()
194 token->tkn_ssnkey.val, ssnkey_len, in smb2_sign_begin()
201 token->tkn_ssnkey.val, ssnkey_len, in smb2_sign_begin()
215 bcopy(token->tkn_ssnkey.val, sign_key->key, in smb2_sign_begin()
216 MIN(token->tkn_ssnkey.len, sign_key->len)); in smb2_sign_begin()
H A Dsmb3_encrypt.c140 if (token->tkn_ssnkey.val == NULL || token->tkn_ssnkey.len == 0 || in smb3_encrypt_begin()
162 input_keylen = token->tkn_ssnkey.len; in smb3_encrypt_begin()
166 token->tkn_ssnkey.len); in smb3_encrypt_begin()
170 token->tkn_ssnkey.val, input_keylen, in smb3_encrypt_begin()
176 token->tkn_ssnkey.val, input_keylen, in smb3_encrypt_begin()
185 input_keylen = MIN(SMB2_SSN_KEYLEN, token->tkn_ssnkey.len); in smb3_encrypt_begin()
188 token->tkn_ssnkey.val, input_keylen, in smb3_encrypt_begin()
194 token->tkn_ssnkey.val, input_keylen, in smb3_encrypt_begin()
H A Dsmb_signing.c138 if (token->tkn_ssnkey.val == NULL || token->tkn_ssnkey.len == 0) in smb_sign_begin()
178 sign->mackey_len = token->tkn_ssnkey.len + sinfo->ssi_ntpwlen; in smb_sign_begin()
180 bcopy(token->tkn_ssnkey.val, sign->mackey, token->tkn_ssnkey.len); in smb_sign_begin()
182 bcopy(sinfo->ssi_ntpwd, sign->mackey + token->tkn_ssnkey.len, in smb_sign_begin()
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsmb_logon.c284 free(token->tkn_ssnkey.val); in smb_token_destroy()
643 token->tkn_ssnkey.val = malloc(SMBAUTH_SESSION_KEY_SZ); in smb_token_auth_local()
644 if (token->tkn_ssnkey.val == NULL) in smb_token_auth_local()
646 token->tkn_ssnkey.len = SMBAUTH_SESSION_KEY_SZ; in smb_token_auth_local()
658 token->tkn_ssnkey.val); in smb_token_auth_local()
662 free(token->tkn_ssnkey.val); in smb_token_auth_local()
663 token->tkn_ssnkey.val = NULL; in smb_token_auth_local()
664 token->tkn_ssnkey.len = 0; in smb_token_auth_local()
764 token->tkn_ssnkey.val = calloc(1, SMBAUTH_SESSION_KEY_SZ); in smb_token_setup_guest()
770 token->tkn_ssnkey.val == NULL) in smb_token_setup_guest()
[all …]
H A Dnetr_logon.c446 if ((token->tkn_ssnkey.val = malloc(SMBAUTH_SESSION_KEY_SZ)) == NULL) in netr_setup_token()
448 token->tkn_ssnkey.len = SMBAUTH_SESSION_KEY_SZ; in netr_setup_token()
451 bcopy(info3->UserSessionKey.data, token->tkn_ssnkey.val, in netr_setup_token()
453 rand_hash((unsigned char *)token->tkn_ssnkey.val, in netr_setup_token()
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_ntlmssp.c498 if (token->tkn_ssnkey.val != NULL && in smbd_ntlmssp_authenticate()
499 token->tkn_ssnkey.len == SMBAUTH_HASH_SZ) { in smbd_ntlmssp_authenticate()
510 token->tkn_ssnkey.val); in smbd_ntlmssp_authenticate()
513 (void) memcpy(kxkey, token->tkn_ssnkey.val, in smbd_ntlmssp_authenticate()
523 (void) smb_auth_RC4(token->tkn_ssnkey.val, in smbd_ntlmssp_authenticate()
528 (void) memcpy(token->tkn_ssnkey.val, kxkey, in smbd_ntlmssp_authenticate()
H A Dsmbd_krb5ssp.c380 ctx->ctx_token->tkn_ssnkey.val = malloc(keylen); in get_ssnkey()
381 if (ctx->ctx_token->tkn_ssnkey.val == NULL) { in get_ssnkey()
385 ctx->ctx_token->tkn_ssnkey.len = keylen; in get_ssnkey()
387 ctx->ctx_token->tkn_ssnkey.val, keylen); in get_ssnkey()
/illumos-gate/usr/src/uts/common/smbsrv/
H A Dsmb_token.h105 smb_buf32_t tkn_ssnkey; member
/illumos-gate/usr/src/common/smbsrv/
H A Dsmb_token_xdr.c276 if (!smb_buf32_xdr(xdrs, &objp->tkn_ssnkey)) in smb_token_xdr()