Skip to content

Commit

Permalink
crypto/rsa: skip overlong message test in FIPS mode
Browse files Browse the repository at this point in the history
  • Loading branch information
derekparker committed Mar 1, 2024
1 parent 60bc305 commit 1b990bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/crypto/rsa/pkcs1v15_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ func TestHashVerifyPKCS1v15(t *testing.T) {
}

func TestOverlongMessagePKCS1v15(t *testing.T) {
// OpenSSL now returns a random string instead of an error
if boring.Enabled() {
t.Skip("Not relevant in boring mode")
}
ciphertext := decodeBase64("fjOVdirUzFoLlukv80dBllMLjXythIf22feqPrNo0YoIjzyzyoMFiLjAc/Y4krkeZ11XFThIrEvw\nkRiZcCq5ng==")
_, err := DecryptPKCS1v15(nil, rsaPrivateKey, ciphertext)
if err == nil {
Expand Down

0 comments on commit 1b990bf

Please sign in to comment.