|
@@ -851,8 +851,7 @@ int EVP_PKEY_CTX_set_rsa_oaep_md_name(EVP_PKEY_CTX *ctx, const char *mdname,
|
|
|
* Cast away the const. This is read
|
|
|
* only so should be safe
|
|
|
*/
|
|
|
- (char *)mdname,
|
|
|
- strlen(mdname) + 1);
|
|
|
+ (char *)mdname, 0);
|
|
|
if (mdprops != NULL) {
|
|
|
*p++ = OSSL_PARAM_construct_utf8_string(
|
|
|
OSSL_ASYM_CIPHER_PARAM_OAEP_DIGEST_PROPS,
|
|
@@ -860,8 +859,7 @@ int EVP_PKEY_CTX_set_rsa_oaep_md_name(EVP_PKEY_CTX *ctx, const char *mdname,
|
|
|
* Cast away the const. This is read
|
|
|
* only so should be safe
|
|
|
*/
|
|
|
- (char *)mdprops,
|
|
|
- strlen(mdprops) + 1);
|
|
|
+ (char *)mdprops, 0);
|
|
|
}
|
|
|
*p++ = OSSL_PARAM_construct_end();
|
|
|
|
|
@@ -979,8 +977,7 @@ int EVP_PKEY_CTX_set_rsa_mgf1_md_name(EVP_PKEY_CTX *ctx, const char *mdname,
|
|
|
* Cast away the const. This is read
|
|
|
* only so should be safe
|
|
|
*/
|
|
|
- (char *)mdname,
|
|
|
- strlen(mdname) + 1);
|
|
|
+ (char *)mdname, 0);
|
|
|
if (mdprops != NULL) {
|
|
|
*p++ = OSSL_PARAM_construct_utf8_string(
|
|
|
OSSL_ASYM_CIPHER_PARAM_MGF1_DIGEST_PROPS,
|
|
@@ -988,8 +985,7 @@ int EVP_PKEY_CTX_set_rsa_mgf1_md_name(EVP_PKEY_CTX *ctx, const char *mdname,
|
|
|
* Cast away the const. This is read
|
|
|
* only so should be safe
|
|
|
*/
|
|
|
- (char *)mdprops,
|
|
|
- strlen(mdprops) + 1);
|
|
|
+ (char *)mdprops, 0);
|
|
|
}
|
|
|
*p++ = OSSL_PARAM_construct_end();
|
|
|
|