keygen

package
v0.0.0-...-7b10b66 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package keygen contains the keygen functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeRSAPrivateKeyToPEM

func EncodeRSAPrivateKeyToPEM(privateKey *rsa.PrivateKey) []byte

EncodeRSAPrivateKeyToPEM encodes Private Key from RSA to PEM format

func GenerateRSAPrivateKey

func GenerateRSAPrivateKey(bitSize int) (*rsa.PrivateKey, error)

GenerateRSAPrivateKey creates a RSA Private Key of specified byte size

func GenerateRSAPublicKey

func GenerateRSAPublicKey(privatekey *rsa.PublicKey) ([]byte, error)

GenerateRSAPublicKey take a rsa.PublicKey and return bytes suitable for writing to .pub file returns in the format "ssh-rsa ..."

Types

This section is empty.

Jump to

Keyboard shortcuts

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