Searched refs:ctx_arc4 (Results 1 – 2 of 2) sorted by relevance
/linux-6.6.21/fs/smb/client/ |
D | cifsencrypt.c | 816 struct arc4_ctx *ctx_arc4; in calc_seckey() local 823 ctx_arc4 = kmalloc(sizeof(*ctx_arc4), GFP_KERNEL); in calc_seckey() 824 if (!ctx_arc4) { in calc_seckey() 829 cifs_arc4_setkey(ctx_arc4, ses->auth_key.response, CIFS_SESS_KEY_SIZE); in calc_seckey() 830 cifs_arc4_crypt(ctx_arc4, ses->ntlmssp->ciphertext, sec_key, in calc_seckey() 839 kfree_sensitive(ctx_arc4); in calc_seckey()
|
/linux-6.6.21/fs/smb/server/ |
D | auth.c | 349 struct arc4_ctx *ctx_arc4; in ksmbd_decode_ntlmssp_auth_blob() local 361 ctx_arc4 = kmalloc(sizeof(*ctx_arc4), GFP_KERNEL); in ksmbd_decode_ntlmssp_auth_blob() 362 if (!ctx_arc4) in ksmbd_decode_ntlmssp_auth_blob() 365 cifs_arc4_setkey(ctx_arc4, sess->sess_key, in ksmbd_decode_ntlmssp_auth_blob() 367 cifs_arc4_crypt(ctx_arc4, sess->sess_key, in ksmbd_decode_ntlmssp_auth_blob() 369 kfree_sensitive(ctx_arc4); in ksmbd_decode_ntlmssp_auth_blob()
|