generator

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateED25519Keys added in v0.1.3

func GenerateED25519Keys() (ed25519.PublicKey, ed25519.PrivateKey, error)

GenerateED25519Keys generates DER type ED25519 private key and public key

func GenerateEcdsaKeys added in v0.1.1

func GenerateEcdsaKeys(bits int) (*ecdsa.PrivateKey, *ecdsa.PublicKey, error)

GenerateEcdsaKeys generates DER type ECDSAprivate key and public key

func GenerateEncryptedED25519DER added in v0.1.3

func GenerateEncryptedED25519DER() ([]byte, []byte, error)

GenerateEncryptedED25519DER generates DER type ED25519 private key and public key

func GenerateEncryptedED25519PEM added in v0.1.3

func GenerateEncryptedED25519PEM(pwd string) ([]byte, []byte, error)

GenerateEncryptedED25519PEM generates PEM type ED25519 private key and public key

func GenerateEncryptedEcdsaDER added in v0.1.1

func GenerateEncryptedEcdsaDER(bits int) ([]byte, []byte, error)

GenerateEncryptedEcdsaDER generates DER type ECDSA private key and public key

func GenerateEncryptedEcdsaPEM added in v0.1.1

func GenerateEncryptedEcdsaPEM(bits int, pwd string) ([]byte, []byte, error)

GenerateEncryptedEcdsaPEM generates PEM type ECDSA private key and public ley

func GenerateEncryptedRsaDER added in v0.1.1

func GenerateEncryptedRsaDER(bits int) ([]byte, []byte, error)

GenerateEncryptedRsaDER generates DER type RSA private key and public key

func GenerateEncryptedRsaPEM added in v0.1.1

func GenerateEncryptedRsaPEM(bits int, pwd string) ([]byte, []byte, error)

GenerateEncryptedRsaPEM generates PEM type RSA private key and public key

func GenerateRsaKeys added in v0.1.1

func GenerateRsaKeys(bits int) (*rsa.PrivateKey, *rsa.PublicKey, error)

GenerateRsaKeys generates DER type RSA private key and 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