Skip to content

Commit fb1f3ce

Browse files
committed
Changes for PR
Added back newline that was deleted by mistake Added link to RSAES-OAEP issue in golang/go
1 parent b637d81 commit fb1f3ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

x509/x509.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1329,14 +1329,15 @@ func parsePublicKey(algo PublicKeyAlgorithm, keyData *publicKeyInfo, nfe *NonFat
13291329
if len(rest) != 0 {
13301330
return nil, errors.New("x509: trailing data after RSA public key")
13311331
}
1332+
13321333
if p.N.Sign() <= 0 {
13331334
nfe.AddError(errors.New("x509: RSA modulus is not a positive number"))
13341335
}
13351336
if p.E <= 0 {
13361337
return nil, errors.New("x509: RSA public exponent is not a positive number")
13371338
}
13381339

1339-
// TODO(dkarch): Update to return the parameters once crypto/x509 has come up with permanent solution
1340+
// TODO(dkarch): Update to return the parameters once crypto/x509 has come up with permanent solution (https://github.com/golang/go/issues/30416)
13401341
pub := &rsa.PublicKey{
13411342
E: p.E,
13421343
N: p.N,

0 commit comments

Comments
 (0)