mirror of
https://github.com/emmansun/gmsm.git
synced 2025-04-26 04:06:18 +08:00
pkcs8: fix copy issue
This commit is contained in:
parent
7271ce6df9
commit
ffe5bff24e
@ -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: "",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user