signer

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: Apache-2.0 Imports: 27 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, gcpkmsretries, gcpkmstimeout uint) (signature.Signer, error)

func NewTinkSigner added in v1.3.7

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

NewTinkSigner 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)

type SigningConfig added in v1.3.9

type SigningConfig struct {
	SigningSchemeOrKeyPath string `json:"signingSchemeOrKeyPath" yaml:"signingSchemeOrKeyPath"`
	FileSignerPassword     string `json:"fileSignerPassword" yaml:"fileSignerPassword"`
	TinkKEKURI             string `json:"tinkKEKURI" yaml:"tinkKEKURI"`
	TinkKeysetPath         string `json:"tinkKeysetPath" yaml:"tinkKeysetPath"`
	GCPKMSRetries          uint   `json:"gcpkmsRetries" yaml:"gcpkmsRetries"`
	GCPKMSTimeout          uint   `json:"gcpkmsTimeout" yaml:"gcpkmsTimeout"`
}

SigningConfig initializes the signer for a specific shard

func (SigningConfig) IsUnset added in v1.3.9

func (sc SigningConfig) IsUnset() bool

Jump to

Keyboard shortcuts

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