Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EcdsaKey ¶ added in v0.1.1
type EcdsaKey struct {
PrivateKey *ecdsa.PrivateKey
PublicKey *ecdsa.PublicKey
}
EcdsaKey represents ECDSA private & public key
type Ed25519Key ¶ added in v0.1.1
type Ed25519Key struct {
PrivateKey *ed25519.PrivateKey
PublicKey *ed25519.PublicKey
}
Ed25519Key represents Ed25519 private & public key
type EncryptKey ¶ added in v0.1.1
type EncryptKey struct {
Keytype EncryptKeyType
RsaKey RsaKey
EcdsaKey EcdsaKey
Ed25519Key Ed25519Key
}
EncryptKey represents private & public key
type EncryptKeyType ¶ added in v0.1.1
type EncryptKeyType string
EncryptKeyType is EncryptKey KeyType
const ( // EncryptTypeRSA is RSA KeyType EncryptTypeRSA EncryptKeyType = "rsa" // EncryptTypeECDSA is ECDSASA KeyType EncryptTypeECDSA EncryptKeyType = "ecdsa" // EncryptTypeED25519 is ED25519 KeyType EncryptTypeED25519 EncryptKeyType = "ed25519" )
Click to show internal directories.
Click to hide internal directories.