entity

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MIT Imports: 3 Imported by: 0

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"
)

type RsaKey

type RsaKey struct {
	PrivateKey *rsa.PrivateKey
	PublicKey  *rsa.PublicKey
}

RsaKey represents RSA private & public key

Jump to

Keyboard shortcuts

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