1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 08:32:40 +08:00
This commit is contained in:
2022-05-06 17:29:35 +08:00
parent 25af24d7c0
commit cd0740f443
12 changed files with 102 additions and 6 deletions

View File

@ -3,7 +3,6 @@ package crypto
import (
"crypto/rand"
"errors"
"fmt"
s "github.com/tjfoc/gmsm/sm2"
x "github.com/tjfoc/gmsm/x509"
@ -54,8 +53,6 @@ func NewSm2(opts ...option) (*sm2Instance, error) {
func ParseSm2PrivateKey(p []byte, pwd []byte) option {
return func(so *sm2Instance) error {
fmt.Println(string(p))
priv, err := x.ReadPrivateKeyFromPem(p, pwd)
if err != nil {
return err