Lines Matching refs:secmech
120 rc = cifs_alloc_hash("md5", &server->secmech.md5); in cifs_calc_signature()
124 rc = crypto_shash_init(server->secmech.md5); in cifs_calc_signature()
130 rc = crypto_shash_update(server->secmech.md5, in cifs_calc_signature()
137 return __cifs_calc_signature(rqst, server, signature, server->secmech.md5); in cifs_calc_signature()
700 cifs_free_hash(&server->secmech.aes_cmac); in cifs_crypto_secmech_release()
701 cifs_free_hash(&server->secmech.hmacsha256); in cifs_crypto_secmech_release()
702 cifs_free_hash(&server->secmech.md5); in cifs_crypto_secmech_release()
703 cifs_free_hash(&server->secmech.sha512); in cifs_crypto_secmech_release()
706 if (server->secmech.enc) { in cifs_crypto_secmech_release()
707 crypto_free_aead(server->secmech.enc); in cifs_crypto_secmech_release()
708 server->secmech.enc = NULL; in cifs_crypto_secmech_release()
711 if (server->secmech.dec) { in cifs_crypto_secmech_release()
712 crypto_free_aead(server->secmech.dec); in cifs_crypto_secmech_release()
713 server->secmech.dec = NULL; in cifs_crypto_secmech_release()
716 server->secmech.enc = NULL; in cifs_crypto_secmech_release()
717 server->secmech.dec = NULL; in cifs_crypto_secmech_release()