Documentation ¶
Overview ¶
Package openssl shells out openssl for testing
Index ¶
- Variables
- func Decrypt(in []byte, key crypto.PrivateKey, opts ...string) (plain []byte, err error)
- func Encrypt(in []byte, cert *x509.Certificate, opts ...string) (der []byte, err error)
- func Openssl(stdin []byte, args ...string) ([]byte, error)
- func Sign(in []byte, cert *x509.Certificate, key crypto.PrivateKey, ...) (plain []byte, err error)
- func SignDetached(in []byte, cert *x509.Certificate, key crypto.PrivateKey, ...) (plain []byte, err error)
- func Verify(in []byte, ca *x509.Certificate, opts ...string) (plain []byte, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var SMIME = "cms"
SMIME is the commpand used for openssl smime, can be replaces with cms
Functions ¶
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.