countersigner

package
v0.0.0-...-c7c1189 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const COSE_Countersignature0_header = int64(12)
View Source
const COSE_Countersignature_header = int64(11)

Variables

This section is empty.

Functions

func Countersign

func Countersign(target cose.Sign1Message, hostport string, embedInSignature bool) ([]byte, error)

Using full COSE_Countersignature aka cose.Sign1Message

func GetCountersignHeaders

func GetCountersignHeaders(hostport string) cose.Headers

func ToBeSigned

func ToBeSigned(target cose.Sign1Message, csHeaders cose.Headers) ([]byte, error)

ToBeSigned constructs Countersign_structure, computes and returns ToBeSigned.

Reference: https://datatracker.ietf.org/doc/html/rfc9338#section-3.3

func Verify

func Verify(countersignature cose.Sign1Message, target cose.Sign1Message) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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