crypto: cleanup commented code

This commit is contained in:
Michael Muré
2025-07-10 12:01:34 +02:00
parent e29022920b
commit a1efc129b5

View File

@@ -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