diff --git a/rsa_test.go b/rsa_test.go index 1b7d0b6..9e8c667 100644 --- a/rsa_test.go +++ b/rsa_test.go @@ -193,6 +193,14 @@ func TestRSAEncryptDecryptOAEP_WrongLabel(t *testing.T) { } } +func TestSupportsSignatureRSAPKCS1v15(t *testing.T) { + // crypto.SHA256 should always be supported. + // Use it to test that the function works. + if !openssl.SupportsSignatureRSAPKCS1v15(crypto.SHA256) { + t.Error("crypto.SHA256 not supported") + } +} + func TestRSASignVerifyPKCS1v15(t *testing.T) { priv, pub := newRSAKey(t, 2048) // These are all the hashes supported by Go's crypto/rsa package