envelope

package
v0.12.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	COSE = "cose"
	JWS  = "jws"
)

Supported envelope format.

Variables

This section is empty.

Functions

func GetEnvelopeMediaType

func GetEnvelopeMediaType(sigFormat string) (string, error)

GetEnvelopeMediaType converts the envelope type to mediaType name.

func SpeculateSignatureEnvelopeFormat

func SpeculateSignatureEnvelopeFormat(raw []byte) (string, error)

SpeculateSignatureEnvelopeFormat speculates envelope format by looping all builtin envelope format.

TODO: abandon this fature in RC1.

Types

This section is empty.

Jump to

Keyboard shortcuts

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