crypto

package
v0.1.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2024 License: AGPL-3.0 Imports: 2 Imported by: 2

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 GetKeyType(keyPairType int) string

func GetLibp2pKeyType

func GetLibp2pKeyType(keyPairType string) int

func GetPbKeyType

func GetPbKeyType(keyPairType string) pb.KeyType

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"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL