Fix large RSA exponent check (#481)

This commit is contained in:
saurori 2017-03-29 15:52:38 -04:00 committed by Miek Gieben
parent c1bdeb82b2
commit 89d392d274
1 changed files with 1 additions and 1 deletions

View File

@ -515,7 +515,7 @@ func (k *DNSKEY) publicKeyRSA() *rsa.PublicKey {
}
// Remainder
expo += uint64(keybuf[keyoff])
if expo > 2<<31 {
if expo > (2<<31)+1 {
// Larger expo than supported.
// println("dns: F5 primes (or larger) are not supported")
return nil