signature

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 6 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapECCurveToKeyType

func MapECCurveToKeyType(curve elliptic.Curve) (kmsapi.KeyType, error)

MapECCurveToKeyType makes a mapping of Elliptic Curve to KeyType of kms.

Types

type Signer

type Signer = util.Signer

Signer defines generic signer.

func GetEd25519Signer

func GetEd25519Signer(privKey ed25519.PrivateKey, pubKey ed25519.PublicKey) Signer

GetEd25519Signer returns Ed25519 Signer with predefined private and public keys.

func GetSigner added in v0.1.9

func GetSigner(privateKeyJWK *jwk.JWK) (Signer, error)

GetSigner returns a new Signer based on privateKey. For case ed25519.PrivateKey pubKey is nil.

func NewCryptoSigner

func NewCryptoSigner(crypto cryptoapi.Crypto, kms kmsapi.KeyManager, keyType kmsapi.KeyType) (Signer, error)

NewCryptoSigner creates a new signer based on crypto if possible.

func NewSigner

func NewSigner(keyType kmsapi.KeyType) (Signer, error)

NewSigner creates a new signer.

Jump to

Keyboard shortcuts

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