Skip to content

Commit f47e2d2

Browse files
committed
Skip overlong message test
OpenSSL now returns a random string instead of an error to avoid timing-based attacks.
1 parent 2538d02 commit f47e2d2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/crypto/rsa/pkcs1v15_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,10 @@ func TestHashVerifyPKCS1v15(t *testing.T) {
238238
}
239239

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

0 commit comments

Comments
 (0)