crypto

package
v0.1.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCertificateKeyPairBytes

func GenerateCertificateKeyPairBytes(template *x509.Certificate, bitSize int, caCert *x509.Certificate, caKey *rsa.PrivateKey) (*bytes.Buffer, *bytes.Buffer, error)

func GetCertificate

func GetCertificate(cert []byte) (*x509.Certificate, error)

func GetCertificateAndKeyPair

func GetCertificateAndKeyPair(template *x509.Certificate, caCert []byte, caPrivKey []byte) (*bytes.Buffer, *bytes.Buffer, error)

func GetPrivateKey

func GetPrivateKey(privKey []byte) (*rsa.PrivateKey, error)

func GetPublickKey

func GetPublickKey(pubKey []byte) (*rsa.PublicKey, error)

func IsValidCertificateKeyPairBytes

func IsValidCertificateKeyPairBytes(certBytes []byte, privKeyBytes []byte) (bool, error)

func IsValidKeyPairBytes

func IsValidKeyPairBytes(pubKeyBytes []byte, privKeyBytes []byte) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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