Skip to content

Commit

Permalink
优化 ECGDSA 证书生成
Browse files Browse the repository at this point in the history
  • Loading branch information
deatil committed Nov 5, 2024
1 parent be89324 commit d43b472
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cryptobin/ecgdsa/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (this ECGDSA) CreatePKCS1PrivateKey() ECGDSA {
}

privateBlock := &pem.Block{
Type: "EC PRIVATE KEY",
Type: "ECGDSA PRIVATE KEY",
Bytes: publicKeyBytes,
}

Expand Down Expand Up @@ -93,7 +93,7 @@ func (this ECGDSA) CreatePKCS1PrivateKeyWithPassword(password string, opts ...st
// 生成加密数据
privateBlock, err := pkcs1.EncryptPEMBlock(
rand.Reader,
"EC PRIVATE KEY",
"ECGDSA PRIVATE KEY",
publicKeyBytes,
[]byte(password),
cipher,
Expand Down

0 comments on commit d43b472

Please sign in to comment.