Documentation ¶
Index ¶
Constants ¶
View Source
const ( SCRYPT_COST_FACTOR = 16384 SCRYPT_BLOCK_SIZE = 8 SCRYPT_PARALLELIZATION = 1 SCRYPT_OUTPUT_SIZE = 32 SCRYPT_SALT_SIZE = 32 )
View Source
const ( ECPrivateKey = "EC PRIVATE KEY" RSAPrivateKey = "RSA PRIVATE KEY" )
View Source
const (
AlgRSA = "rsa"
)
Variables ¶
This section is empty.
Functions ¶
func HashPassword ¶
func LoadPEMKeys ¶
Types ¶
type KeyManager ¶
type KeyManager interface { FingerPrint(pubkey string) (string, error) CreateKeyPair(algorith string, bits int) (string, string, error) }
func NewSSHKeyManager ¶
func NewSSHKeyManager() KeyManager
func NewX509KeyManager ¶
func NewX509KeyManager() KeyManager
Click to show internal directories.
Click to hide internal directories.