fixing
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
//Package openssl shells out openssl for testing
|
||||
// Package openssl shells out openssl for testing
|
||||
package openssl
|
||||
|
||||
import (
|
||||
@ -16,7 +16,7 @@ import (
|
||||
// SMIME is the commpand used for openssl smime, can be replaces with cms
|
||||
var SMIME = "smime"
|
||||
|
||||
//Encrypt a message with openssl
|
||||
// Encrypt a message with openssl
|
||||
func Encrypt(in []byte, cert *x509.Certificate, opts ...string) (der []byte, err error) {
|
||||
|
||||
tmpKey, err := ioutil.TempFile("", "example")
|
||||
@ -39,7 +39,7 @@ func Encrypt(in []byte, cert *x509.Certificate, opts ...string) (der []byte, err
|
||||
return
|
||||
}
|
||||
|
||||
//Decrypt a message with openssl
|
||||
// Decrypt a message with openssl
|
||||
func Decrypt(in []byte, key crypto.PrivateKey, opts ...string) (plain []byte, err error) {
|
||||
|
||||
tmpKey, err := ioutil.TempFile("", "example")
|
||||
@ -122,7 +122,7 @@ func Sign(in []byte, cert *x509.Certificate, key crypto.PrivateKey, interm []*x5
|
||||
return
|
||||
}
|
||||
|
||||
//Verify a signature with openssl
|
||||
// Verify a signature with openssl
|
||||
func Verify(in []byte, ca *x509.Certificate, opts ...string) (plain []byte, err error) {
|
||||
|
||||
tmpCA, err := ioutil.TempFile("", "example")
|
||||
|
Reference in New Issue
Block a user