sign

package
v0.0.0-...-99fd3eb Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Canon

func Canon(in interface{}) ([]byte, error)

Types

type Signature

type Signature struct {
	Certificate []byte `json:"certificate"`
	Value       []byte `json:"value"`
	Algorithm   string `json:"algorithm"`
}

type Signer

type Signer interface {
	Sign(interface{}) (Signature, error)
}

func NewSigner

func NewSigner(certificate *tls.Certificate) (Signer, error)

Creates a new signer given the certificate type. Currently supports RSA (PKCS1v15) and ECDSA (SHA256 is used in both cases)

Jump to

Keyboard shortcuts

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