certificate

package
v0.0.3-beta Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReturnPrivateKey

func ReturnPrivateKey(key AsymmetricKey) (interface{}, error)

Types

type AsymmetricKey

type AsymmetricKey interface {
	KeyPair() interface{}
	Sign(data []byte) ([]byte, error)
}

type CertificateAuthority

type CertificateAuthority struct {
	Certificate             *x509.Certificate
	AsymmetricKey           *AsymmetricKey
	SerialNumber            string
	CertificateAuthorityArn string
}

type ECDSA

type ECDSA struct {
	PublicKey  *ecdsa.PublicKey
	PrivateKey *ecdsa.PrivateKey
}

func (*ECDSA) KeyPair

func (key *ECDSA) KeyPair() interface{}

func (*ECDSA) Sign

func (key *ECDSA) Sign(data []byte) ([]byte, error)

type RSA

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

func (*RSA) KeyPair

func (key *RSA) KeyPair() interface{}

func (*RSA) Sign

func (key *RSA) Sign(data []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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