From a1efc129b57b2db284df356470070c8a8bea80ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Mur=C3=A9?= Date: Thu, 10 Jul 2025 12:01:34 +0200 Subject: [PATCH] crypto: cleanup commented code --- crypto/rsa/private.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/crypto/rsa/private.go b/crypto/rsa/private.go index 3b2ca43..7346bb9 100644 --- a/crypto/rsa/private.go +++ b/crypto/rsa/private.go @@ -33,12 +33,6 @@ func PrivateKeyFromNEDPQ(n, e, d, p, q []byte) (*PrivateKey, error) { Primes: []*big.Int{pBInt, qBInt}, } - // // while go doesn't care, we ensure to have the JWK canonical order of primes, - // // so that the JWK code becomes simpler - // if subtle.ConstantTimeCompare(p, q) > 0 { - // priv.Primes[0], priv.Primes[1] = priv.Primes[1], priv.Primes[0] - // } - err = priv.Validate() if err != nil { return nil, err