privatekey

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Length     = 32
	ASN1Length = 34
)

Variables

This section is empty.

Functions

func DecodeDER

func DecodeDER(derData containers.DER) (key *gost3410.PrivateKey, err error)

func DecodePEM

func DecodePEM(pemData []byte) (key *gost3410.PrivateKey, err error)

func DecodePEMFile

func DecodePEMFile(file string) (key *gost3410.PrivateKey, err error)

Types

type Container

type Container struct {
	Version    int
	Algorithm  pkix.AlgorithmIdentifier
	PrivateKey []byte
}

Container - asn.1 Private Key structure

Jump to

Keyboard shortcuts

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