bump default RSA bits to 4096
This commit is contained in:
parent
9b68099ad5
commit
3712cd8e2c
|
@ -171,7 +171,7 @@ func GeneratePair(t Algorithm, rand io.Reader, bits int) (*Pair, error) {
|
||||||
return NewPair(publicKey, privateKey)
|
return NewPair(publicKey, privateKey)
|
||||||
case RSA:
|
case RSA:
|
||||||
if bits == 0 {
|
if bits == 0 {
|
||||||
bits = 3072
|
bits = 4096
|
||||||
}
|
}
|
||||||
if bits < 1024 {
|
if bits < 1024 {
|
||||||
return nil, ErrInvalidRSAKeySize
|
return nil, ErrInvalidRSAKeySize
|
||||||
|
|
Loading…
Reference in New Issue