pkcs7

package module
v0.0.0-...-986dbfe Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2016 License: MIT Imports: 12 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadCertificate

func LoadCertificate(path string) (*x509.Certificate, error)

LoadCertificate load & parse a single certificate from the given ASN.1 DER file (*.cer).

func LoadPKCS1PrivateKeyPEM

func LoadPKCS1PrivateKeyPEM(path, password string) (*rsa.PrivateKey, error)

LoadPKCS1PrivateKeyPEM load & parse private key from PEM-file

func Sign

func Sign(data io.Reader, cert *x509.Certificate, priv *rsa.PrivateKey) ([]byte, error)

Sign generate sign for data with cert & private key

Types

This section is empty.

Jump to

Keyboard shortcuts

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