Skip to content

Commit

Permalink
refactor public_decrypt -> verify crypto API function
Browse files Browse the repository at this point in the history
  • Loading branch information
m0rcq committed Aug 13, 2024
1 parent 3d6943d commit 3106096
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/dnssec.erl
Original file line number Diff line number Diff line change
Expand Up @@ -504,9 +504,6 @@ verify_rrsig(
Alg =:= ?DNS_ALG_RSASHA512
->
try
SigPayload = crypto:public_decrypt(
rsa, Sig, Key, rsa_pkcs1_padding
),
crypto:verify(
rsa, dns_algo_to_digest_type(Alg), SigInput, Sig, Key, [{rsa_padding, rsa_pkcs1_padding}]
)
Expand Down

0 comments on commit 3106096

Please sign in to comment.