crypto

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CoseAlgEs256 = -7
	CoseAlgEs384 = -35
	CoseAlgEs512 = -36

	CoseAlgEdDsa = -8

	CoseAlgRs256 = -257
	CoseAlgRs384 = -258
	CoseAlgRs512 = -259

	CoseAlgPs256 = -37
	CoseAlgPs384 = -38
	CoseAlgPs512 = -39

	AlgEs256 = "ES256"
	AlgEs384 = "ES384"
	AlgEs512 = "ES512"

	AlgEdDsa = "EdDSA"

	AlgRs256 = "RS256"
	AlgRs384 = "RS384"
	AlgRs512 = "RS512"

	AlgPs256 = "PS256"
	AlgPs384 = "PS384"
	AlgPs512 = "PS512"
)

Variables

Functions

func MakeRawDerCertificateChain

func MakeRawDerCertificateChain(certificates []*x509.Certificate) [][]byte

func MakeTlsCertificateFromX509Certificates

func MakeTlsCertificateFromX509Certificates(certificates []*x509.Certificate, key crypto.PrivateKey) *tls.Certificate

func PrivateKeyFromPem

func PrivateKeyFromPem[T any](pemKey string) (T, error)

func PublicKeyFromDer

func PublicKeyFromDer[T any](der []byte) (T, error)

func PublicKeyFromPem

func PublicKeyFromPem[T any](pemKey string) (T, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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