cipher

package
v0.0.0-...-a0ddc14 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ECPrivateKey

type ECPrivateKey struct {
	// contains filtered or unexported fields
}

func GenerateECKey

func GenerateECKey(curve elliptic.Curve) (*ECPrivateKey, error)

func (*ECPrivateKey) DER

func (k *ECPrivateKey) DER() []byte

func (*ECPrivateKey) PEM

func (k *ECPrivateKey) PEM() []byte

type RSAPrivateKey

type RSAPrivateKey struct {
	rsa.PrivateKey
}

func GenerateRSAKey

func GenerateRSAKey(random io.Reader, bits int) (*RSAPrivateKey, error)

func (*RSAPrivateKey) DER

func (k *RSAPrivateKey) DER() []byte

func (*RSAPrivateKey) PEM

func (k *RSAPrivateKey) PEM() []byte

func (*RSAPrivateKey) PKCS1PrivateKey

func (k *RSAPrivateKey) PKCS1PrivateKey() []byte

func (*RSAPrivateKey) PKCS1PrivateKeyPEM

func (k *RSAPrivateKey) PKCS1PrivateKeyPEM() []byte

func (*RSAPrivateKey) PKCS1PublicKey

func (k *RSAPrivateKey) PKCS1PublicKey() []byte

func (*RSAPrivateKey) PKCS1PublicKeyPEM

func (k *RSAPrivateKey) PKCS1PublicKeyPEM() []byte

func (*RSAPrivateKey) PKCS8PrivateKey

func (k *RSAPrivateKey) PKCS8PrivateKey() []byte

func (*RSAPrivateKey) PKCS8PrivateKeyPEM

func (k *RSAPrivateKey) PKCS8PrivateKeyPEM() []byte

func (*RSAPrivateKey) PKIXPrivateKey

func (k *RSAPrivateKey) PKIXPrivateKey() []byte

func (*RSAPrivateKey) PKIXPrivateKeyPEM

func (k *RSAPrivateKey) PKIXPrivateKeyPEM() []byte

Jump to

Keyboard shortcuts

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