signer

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const MemoryScheme = "memory"
View Source
const TinkScheme = "tink"

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, signer, pass, tinkKEKURI, tinkKeysetPath string) (signature.Signer, error)

func NewTinkSigner added in v1.3.7

func NewTinkSigner(ctx context.Context, kekURI, keysetPath string) (signature.Signer, error)

NewTinkSignerWithHandle returns a signature.SignerVerifier that wraps crypto.Signer and a hash function. Provide a path to the encrypted keyset and cloud KMS key URI for decryption

func NewTinkSignerWithHandle added in v1.3.7

func NewTinkSignerWithHandle(kek tink.AEAD, keysetPath string) (signature.Signer, error)

NewTinkSignerWithHandle returns a signature.SignerVerifier that wraps crypto.Signer and a hash function. Provide a path to the encrypted keyset and a key handle for decrypting the keyset

Types

type File added in v0.12.1

type File struct {
	signature.SignerVerifier
}

returns an file based signer and verify, used for spinning up local instances

func NewFile added in v0.12.1

func NewFile(keyPath, keyPass string) (*File, error)

type Memory

type Memory struct {
	signature.ECDSASignerVerifier
}

returns an in-memory signer and verify, used for spinning up local instances

func NewMemory

func NewMemory() (*Memory, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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