Documentation ¶
Overview ¶
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePrivateKey ¶
func GeneratePrivateKey(keystorePath string) (*sm2.PrivateKey, error)
GeneratePrivateKey creates an SM2 private key using SM2P256V1 curve and stores it in keystorePath.
func LoadPrivateKey ¶
func LoadPrivateKey(keystorePath string) (*sm2.PrivateKey, error)
LoadPrivateKey loads a private key from a file in keystorePath. It looks for a file ending in "_sk" and expects a PEM-encoded PKCS8 EC private key.
Types ¶
type SM2Signature ¶
Click to show internal directories.
Click to hide internal directories.