• Home
  • Raw
  • Download

Lines Matching refs:rc

55 	int rc;  in smb3_crypto_shash_allocate()  local
57 rc = cifs_alloc_hash("hmac(sha256)", in smb3_crypto_shash_allocate()
60 if (rc) in smb3_crypto_shash_allocate()
63 rc = cifs_alloc_hash("cmac(aes)", &p->cmacaes, &p->sdesccmacaes); in smb3_crypto_shash_allocate()
64 if (rc) in smb3_crypto_shash_allocate()
70 return rc; in smb3_crypto_shash_allocate()
77 int rc = 0; in smb311_crypto_shash_allocate() local
79 rc = cifs_alloc_hash("hmac(sha256)", in smb311_crypto_shash_allocate()
82 if (rc) in smb311_crypto_shash_allocate()
83 return rc; in smb311_crypto_shash_allocate()
85 rc = cifs_alloc_hash("cmac(aes)", &p->cmacaes, &p->sdesccmacaes); in smb311_crypto_shash_allocate()
86 if (rc) in smb311_crypto_shash_allocate()
89 rc = cifs_alloc_hash("sha512", &p->sha512, &p->sdescsha512); in smb311_crypto_shash_allocate()
90 if (rc) in smb311_crypto_shash_allocate()
98 return rc; in smb311_crypto_shash_allocate()
168 int rc; in smb2_calc_signature() local
186 rc = smb2_crypto_shash_allocate(server); in smb2_calc_signature()
187 if (rc) { in smb2_calc_signature()
189 return rc; in smb2_calc_signature()
192 rc = crypto_shash_setkey(server->secmech.hmacsha256, in smb2_calc_signature()
194 if (rc) { in smb2_calc_signature()
196 return rc; in smb2_calc_signature()
200 rc = crypto_shash_init(shash); in smb2_calc_signature()
201 if (rc) { in smb2_calc_signature()
203 return rc; in smb2_calc_signature()
215 rc = crypto_shash_update(shash, iov[0].iov_base, in smb2_calc_signature()
217 if (rc) { in smb2_calc_signature()
220 return rc; in smb2_calc_signature()
226 rc = __cifs_calc_signature(&drqst, server, sigptr, shash); in smb2_calc_signature()
227 if (!rc) in smb2_calc_signature()
230 return rc; in smb2_calc_signature()
239 int rc = 0; in generate_key() local
247 rc = smb3_crypto_shash_allocate(server); in generate_key()
248 if (rc) { in generate_key()
253 rc = crypto_shash_setkey(server->secmech.hmacsha256, in generate_key()
255 if (rc) { in generate_key()
260 rc = crypto_shash_init(&server->secmech.sdeschmacsha256->shash); in generate_key()
261 if (rc) { in generate_key()
266 rc = crypto_shash_update(&server->secmech.sdeschmacsha256->shash, in generate_key()
268 if (rc) { in generate_key()
273 rc = crypto_shash_update(&server->secmech.sdeschmacsha256->shash, in generate_key()
275 if (rc) { in generate_key()
280 rc = crypto_shash_update(&server->secmech.sdeschmacsha256->shash, in generate_key()
282 if (rc) { in generate_key()
287 rc = crypto_shash_update(&server->secmech.sdeschmacsha256->shash, in generate_key()
289 if (rc) { in generate_key()
294 rc = crypto_shash_update(&server->secmech.sdeschmacsha256->shash, in generate_key()
296 if (rc) { in generate_key()
301 rc = crypto_shash_final(&server->secmech.sdeschmacsha256->shash, in generate_key()
303 if (rc) { in generate_key()
311 return rc; in generate_key()
329 int rc; in generate_smb3signingkey() local
331 rc = generate_key(ses, ptriplet->signing.label, in generate_smb3signingkey()
334 if (rc) in generate_smb3signingkey()
335 return rc; in generate_smb3signingkey()
337 rc = generate_key(ses, ptriplet->encryption.label, in generate_smb3signingkey()
340 if (rc) in generate_smb3signingkey()
341 return rc; in generate_smb3signingkey()
343 rc = generate_key(ses, ptriplet->decryption.label, in generate_smb3signingkey()
347 if (rc) in generate_smb3signingkey()
348 return rc; in generate_smb3signingkey()
367 return rc; in generate_smb3signingkey()
429 int rc; in smb3_calc_signature() local
447 rc = crypto_shash_setkey(server->secmech.cmacaes, in smb3_calc_signature()
449 if (rc) { in smb3_calc_signature()
451 return rc; in smb3_calc_signature()
459 rc = crypto_shash_init(shash); in smb3_calc_signature()
460 if (rc) { in smb3_calc_signature()
462 return rc; in smb3_calc_signature()
474 rc = crypto_shash_update(shash, iov[0].iov_base, in smb3_calc_signature()
476 if (rc) { in smb3_calc_signature()
479 return rc; in smb3_calc_signature()
485 rc = __cifs_calc_signature(&drqst, server, sigptr, shash); in smb3_calc_signature()
486 if (!rc) in smb3_calc_signature()
489 return rc; in smb3_calc_signature()
496 int rc = 0; in smb2_sign_rqst() local
502 return rc; in smb2_sign_rqst()
506 return rc; in smb2_sign_rqst()
509 rc = server->ops->calc_signature(rqst, server); in smb2_sign_rqst()
511 return rc; in smb2_sign_rqst()
517 unsigned int rc; in smb2_verify_signature() local
548 rc = server->ops->calc_signature(rqst, server); in smb2_verify_signature()
551 if (rc) in smb2_verify_signature()
552 return rc; in smb2_verify_signature()
668 int rc; in smb2_check_receive() local
670 rc = smb2_verify_signature(&rqst, server); in smb2_check_receive()
671 if (rc) in smb2_check_receive()
673 rc); in smb2_check_receive()
682 int rc; in smb2_setup_request() local
689 rc = smb2_get_mid_entry(ses, shdr, &mid); in smb2_setup_request()
690 if (rc) { in smb2_setup_request()
692 return ERR_PTR(rc); in smb2_setup_request()
695 rc = smb2_sign_rqst(rqst, ses->server); in smb2_setup_request()
696 if (rc) { in smb2_setup_request()
699 return ERR_PTR(rc); in smb2_setup_request()
708 int rc; in smb2_setup_async_request() local
725 rc = smb2_sign_rqst(rqst, server); in smb2_setup_async_request()
726 if (rc) { in smb2_setup_async_request()
729 return ERR_PTR(rc); in smb2_setup_async_request()