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) (*ecdsa.PrivateKey, error)
func LoadPrivateKey ¶
func LoadPrivateKey(keystorePath string) (*ecdsa.PrivateKey, error)
Types ¶
type ECDSASignature ¶
type ECDSASigner ¶
type ECDSASigner struct {
PrivateKey *ecdsa.PrivateKey
}
func (*ECDSASigner) Public ¶
func (e *ECDSASigner) Public() crypto.PublicKey
func (*ECDSASigner) Sign ¶
func (e *ECDSASigner) Sign(rand io.Reader, digest []byte, opts crypto.SignerOpts) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.