x509

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodePrivateKeyPKCS1

func DecodePrivateKeyPKCS1(data []byte) (*rsa.PrivateKey, error)

DecodePrivateKeyPKCS1 uses pkcs1 to decode private key.

func DecodePrivateKeyPKCS8

func DecodePrivateKeyPKCS8[Key any](data []byte) (Key, error)

DecodePrivateKeyPKCS8 uses pkcs8 to decode private key.

func DecodePublicKeyPKCS1

func DecodePublicKeyPKCS1(data []byte) (*rsa.PublicKey, error)

DecodePublicKeyPKCS1 uses pkcs1 to decode public key.

func DecodePublicKeyPKIX

func DecodePublicKeyPKIX[Key any](data []byte) (Key, error)

DecodePublicKeyPKIX uses pkix to decode public key.

func EncodePrivateKeyPKCS1

func EncodePrivateKeyPKCS1(key *rsa.PrivateKey) ([]byte, error)

EncodePrivateKeyPKCS1 uses pkcs1 to encode private key.

func EncodePrivateKeyPKCS8

func EncodePrivateKeyPKCS8[Key any](key Key) ([]byte, error)

EncodePrivateKeyPKCS8 uses pkcs8 to encode private key.

func EncodePublicKeyPKCS1

func EncodePublicKeyPKCS1(key *rsa.PublicKey) ([]byte, error)

EncodePublicKeyPKCS1 uses pkcs1 to encode public key.

func EncodePublicKeyPKIX

func EncodePublicKeyPKIX[Key any](key Key) ([]byte, error)

EncodePublicKeyPKIX uses pkix to encode public key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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