Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:MaxxedSUSE:Compiler-Tools
openssl-1_1
openssl-1_1-Zeroization.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openssl-1_1-Zeroization.patch of Package openssl-1_1
--- openssl-1.1.1l/crypto/fips/fips.c +++ openssl-1.1.1l/crypto/fips/fips.c @@ -350,6 +350,10 @@ static int FIPSCHECK_verify(const char * if (strcmp(hex, hmac) != 0) { rv = -1; } + if (hmaclen != 0) { + OPENSSL_cleanse(buf, hmaclen); + OPENSSL_cleanse(hex, hmaclen * 2 + 1); + } free(buf); free(hex); } else { @@ -357,7 +360,11 @@ static int FIPSCHECK_verify(const char * } end: + if (n != 0) + OPENSSL_cleanse(hmac, n); free(hmac); + if (strlen(hmacpath) != 0) + OPENSSL_cleanse(hmacpath, strlen(hmacpath)); free(hmacpath); fclose(hf);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor