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 PemDecodeKey ¶
PemDecodeKey takes bytes and returns a Go key
func PemEncodeKey ¶
PemEncodeKey takes a Go key and converts it to bytes
Types ¶
type ECDSASignature ¶
type ECDSASigner ¶
type ECDSASigner struct { *ECDSAVerifier SK *ecdsa.PrivateKey }
func NewECDSASigner ¶
func NewECDSASigner() (*ECDSASigner, error)
func (*ECDSASigner) Serialize ¶
func (s *ECDSASigner) Serialize() ([]byte, error)
type ECDSAVerifier ¶
func NewECDSAVerifier ¶
func NewECDSAVerifier(pk *ecdsa.PublicKey) *ECDSAVerifier
func (*ECDSAVerifier) Serialize ¶
func (v *ECDSAVerifier) Serialize() ([]byte, error)
func (*ECDSAVerifier) Verify ¶
func (d *ECDSAVerifier) Verify(message, sigma []byte) error
Click to show internal directories.
Click to hide internal directories.