pkcs8: fix copy issue

This commit is contained in:
Sun Yimin 2022-07-15 13:37:54 +08:00 committed by GitHub
parent 7271ce6df9
commit ffe5bff24e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,10 +4,7 @@
package pkcs8_test package pkcs8_test
import ( import (
"encoding/pem"
"testing" "testing"
"github.com/emmansun/gmsm/pkcs8"
) )
// From https://tools.ietf.org/html/rfc7914 // From https://tools.ietf.org/html/rfc7914
@ -21,12 +18,7 @@ iBGY/Dls7B1TsWeGObE0sS1MXEpuREuloZjcsNVcNXWPlLdZtkSH6uwWzR0PyG/Z
` `
func TestParseFFCscryptPrivateKey(t *testing.T) { func TestParseFFCscryptPrivateKey(t *testing.T) {
keyList := []struct { keyList := []testPrivateKey{
name string
clear string
encrypted string
password string
}{
{ {
name: "encryptedRFCscrypt", name: "encryptedRFCscrypt",
clear: "", clear: "",