mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2025-03-19 11:50:07 +08:00
11 lines
325 B
Go
11 lines
325 B
Go
package crypto
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
// ErrRsaKeyTooSmall is returned when trying to generate or parse an RSA key
|
|
// that's smaller than 512 bits. Keys need to be larger enough to sign a 256bit
|
|
// hash so this is a reasonable absolute minimum.
|
|
var ErrRsaKeyTooSmall = errors.New("rsa keys must be >= 512 bits to be useful")
|