Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix RSA signature verification issue
Both verifyKeySignature() and verifyCertificateVerify() has a bug when handling RSA signature as it looks at the signature algorithm of the certificate to determine whether to verify with RSA PKCSv1.5. This will cause issues if the certificate's issuing CA uses something other than RSA (e.g. ECDSA) to sign the certificate. Since DTLS v1.2 does not support RSA-PSS [1], we can just use RSA PKCSv1.5 verification directly if the public key of the certificate is RSA. [1] https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml
- Loading branch information