ecdsasigner

package
v0.0.0-...-989067b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ECDSAPrivateKey

type ECDSAPrivateKey struct {
	Value *ecdsa.PrivateKey
}

func (*ECDSAPrivateKey) PublicKey

func (k *ECDSAPrivateKey) PublicKey() ecdsa.PublicKey

func (*ECDSAPrivateKey) Sign

func (k *ECDSAPrivateKey) Sign(digestHash []byte) (sig []byte, err error)

type ECDSASigner

type ECDSASigner interface {
	// Sign generates a signature using the provided hasher.
	Sign([]byte) (sig []byte, err error)
	// PublicKey returns the public key.
	PublicKey() ecdsa.PublicKey
}

type KMSClient

type KMSClient struct {
	Client *kms.KeyManagementClient
	// contains filtered or unexported fields
}

Client is a client for interacting with the Google Cloud KMS API

func NewKMSClient

func NewKMSClient(ctx context.Context, keyId string, opts ...option.ClientOption) (*KMSClient, error)

func (*KMSClient) PublicKey

func (c *KMSClient) PublicKey() ecdsa.PublicKey

func (*KMSClient) Sign

func (c *KMSClient) Sign(digest []byte) ([]byte, error)

ECDSASigner methods

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL