Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
deatil committed Jul 9, 2024
1 parent 8bfbcee commit 89964d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/rsa.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,9 @@ func main() {
// FromXMLPrivateKey(priKeyXML).
// CreatePrivateKey().
// CreatePrivateKeyWithPassword(psssword, "AES256CBC").
CreatePKCS1PrivateKey(). // 转为 PKCS8 编码
// CreatePKCS1PrivateKey().
// CreatePKCS1PrivateKeyWithPassword(psssword, "AES256CBC").
// CreatePKCS8PrivateKey().
CreatePKCS8PrivateKey(). // 转为 PKCS8 编码
// CreatePKCS8PrivateKeyWithPassword(psssword, "AES256CBC", "SHA256").
// CreateXMLPrivateKey().
ToKeyString()
Expand Down
4 changes: 2 additions & 2 deletions docs/sm2.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,9 @@ func main() {
// FromPKCS8PrivateKeyWithPassword(priKeyPem, psssword).
// CreatePrivateKey().
// CreatePrivateKeyWithPassword(psssword, "AES256CBC").
CreatePKCS1PrivateKey(). // 转为 PKCS8 编码
// CreatePKCS1PrivateKey().
// CreatePKCS1PrivateKeyWithPassword(psssword, "AES256CBC").
// CreatePKCS8PrivateKey().
CreatePKCS8PrivateKey(). // 转为 PKCS8 编码
// CreatePKCS8PrivateKeyWithPassword(psssword, "AES256CBC", "SHA256").
ToKeyString()
}
Expand Down

0 comments on commit 89964d8

Please sign in to comment.