openssl

package
v0.0.0-...-1ff597b Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package openssl shells out openssl for testing

Index

Constants

This section is empty.

Variables

View Source
var SMIME = "smime"

SMIME is the commpand used for openssl smime, can be replaces with cms

Functions

func Decrypt

func Decrypt(in []byte, key crypto.PrivateKey, opts ...string) (plain []byte, err error)

Decrypt a message with openssl

func Encrypt

func Encrypt(in []byte, cert *x509.Certificate, opts ...string) (der []byte, err error)

Encrypt a message with openssl

func Openssl

func Openssl(stdin []byte, args ...string) ([]byte, error)

Openssl runs the openssl command with given args

func Sign

func Sign(in []byte, cert *x509.Certificate, key crypto.PrivateKey, interm []*x509.Certificate, opts ...string) (plain []byte, err error)

Sign creates a signature with openssl

func SignDetached

func SignDetached(in []byte, cert *x509.Certificate, key crypto.PrivateKey, interm []*x509.Certificate, opts ...string) (plain []byte, err error)

SignDetached creates a detached signature with openssl

func Verify

func Verify(in []byte, ca *x509.Certificate, opts ...string) (plain []byte, err error)

Verify a signature with openssl

Types

This section is empty.

Jump to

Keyboard shortcuts

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