bump default RSA bits to 4096

This commit is contained in:
Adrien Delorme 2020-10-13 17:50:43 +02:00
parent 9b68099ad5
commit 3712cd8e2c
1 changed files with 1 additions and 1 deletions

View File

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