Documentation ¶
Index ¶
- Constants
- func ChiselKey2PEM(chiselKey []byte) ([]byte, error)
- func FingerprintKey(k ssh.PublicKey) string
- func GenerateKey(seed string) ([]byte, error)
- func GenerateKeyFile(keyFilePath, seed string) error
- func GenerateKeyGo119(c elliptic.Curve, rand io.Reader) (*ecdsa.PrivateKey, error)
- func IsChiselKey(chiselKey []byte) bool
- func NewDetermRand(seed []byte) io.Reader
- func Seed2PEM(seed string) ([]byte, error)
Constants ¶
View Source
const ChiselKeyPrefix = "ck-"
View Source
const DetermRandIter = 2048
Variables ¶
This section is empty.
Functions ¶
func FingerprintKey ¶
FingerprintKey calculates the SHA256 hash of an SSH public key
func GenerateKeyFile ¶
GenerateKeyFile generates an ChiselKey
func GenerateKeyGo119 ¶
This function is copied from ecdsa.GenerateKey() of Go 1.19
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.