Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyMusatkin committed Oct 30, 2024
1 parent 798f13e commit a882d14
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions source/unix/openssl_rsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,16 +241,10 @@ static int s_set_signature_ctx_from_algo(EVP_PKEY_CTX *ctx, enum aws_rsa_signatu
s_reinterpret_evp_error_as_crt(
EVP_PKEY_CTX_set_signature_md(ctx, EVP_sha256()), "EVP_PKEY_CTX_set_signature_md")) {
return AWS_OP_ERR;
} else if (
algorithm == AWS_CAL_RSA_SIGNATURE_PKCS1_5_SHA1 &&
s_reinterpret_evp_error_as_crt(
} else if(s_reinterpret_evp_error_as_crt(
EVP_PKEY_CTX_set_signature_md(ctx, EVP_sha1()), "EVP_PKEY_CTX_set_signature_md")) {

} else {
AWS_LOGF_ERROR(AWS_LS_CAL_RSA, "Unsupported RSA signing algorithm: %d", algorithm);
return aws_raise_error(AWS_ERROR_CAL_UNSUPPORTED_ALGORITHM);
return AWS_OP_ERR;
}

} else if (algorithm == AWS_CAL_RSA_SIGNATURE_PSS_SHA256) {
if (s_reinterpret_evp_error_as_crt(
EVP_PKEY_CTX_set_rsa_padding(ctx, RSA_PKCS1_PSS_PADDING), "EVP_PKEY_CTX_set_rsa_padding")) {
Expand Down

0 comments on commit a882d14

Please sign in to comment.