Documentation ¶
Index ¶
Constants ¶
View Source
const ( KeyPairType_RSA string = "RSA" KeyPairType_ECDSA string = "ECDSA" KeyPairType_Secp256k1 string = "Secp256k1" KeyPairType_Ed25519 string = "Ed25519" )
View Source
const ( Protocol_openpgp string = "OpenPGP" Protocol_libp2p string = "libp2p" Protocol_standard string = "standard" )
Variables ¶
This section is empty.
Functions ¶
func GetKeyType ¶
func GetLibp2pKeyType ¶
func GetPbKeyType ¶
Types ¶
type SecurityContext ¶
type SecurityContext struct { Protocol string `json:",omitempty"` KeyFactoryAlgorithm string `json:",omitempty"` KeyStoreType string `json:",omitempty"` KeyPairAlgorithm string `json:",omitempty"` KeyPairType string `json:",omitempty"` KeyPairLength uint `json:",omitempty"` SecretKeyAlgorithm string `json:",omitempty"` SecretKeySize uint `json:",omitempty"` HashKeySize uint `json:",omitempty"` AsymmetricalAlgorithm string `json:",omitempty"` SymmetricalAlgorithm string `json:",omitempty"` SignatureAlgorithm string `json:",omitempty"` MessageDigestAlgorithm string `json:",omitempty"` KeyGeneratorAlgorithm string `json:",omitempty"` HmacAlgorithm string `json:",omitempty"` Username string `json:",omitempty"` Password string `json:",omitempty"` }
Click to show internal directories.
Click to hide internal directories.