jwa

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ED25519            = string(jose.ED25519)
	RSA1_5             = string(jose.RSA1_5)
	RSA_OAEP           = string(jose.RSA_OAEP)
	RSA_OAEP_256       = string(jose.RSA_OAEP_256)
	A128KW             = string(jose.A128KW)
	A192KW             = string(jose.A192KW)
	A256KW             = string(jose.A256KW)
	DIRECT             = string(jose.DIRECT)
	ECDH_ES            = string(jose.ECDH_ES)
	ECDH_ES_A128KW     = string(jose.ECDH_ES_A128KW)
	ECDH_ES_A192KW     = string(jose.ECDH_ES_A192KW)
	ECDH_ES_A256KW     = string(jose.ECDH_ES_A256KW)
	A128GCMKW          = string(jose.A128GCMKW)
	A192GCMKW          = string(jose.A192GCMKW)
	A256GCMKW          = string(jose.A256GCMKW)
	PBES2_HS256_A128KW = string(jose.PBES2_HS256_A128KW)
	PBES2_HS384_A192KW = string(jose.PBES2_HS384_A192KW)
	PBES2_HS512_A256KW = string(jose.PBES2_HS512_A256KW)
)
View Source
const (
	A128CBC_HS256 = string(jose.A128CBC_HS256)
	A192CBC_HS384 = string(jose.A192CBC_HS384)
	A256CBC_HS512 = string(jose.A256CBC_HS512)
	A128GCM       = string(jose.A128GCM)
	A192GCM       = string(jose.A192GCM)
	A256GCM       = string(jose.A256GCM)
)
View Source
const (
	HS256 = string(jose.HS256)
	HS384 = string(jose.HS384)
	HS512 = string(jose.HS512)
	RS256 = string(jose.RS256)
	RS384 = string(jose.RS384)
	RS512 = string(jose.RS512)
	PS256 = string(jose.PS256)
	PS384 = string(jose.PS384)
	PS512 = string(jose.PS512)
	ES256 = string(jose.ES256)
	ES384 = string(jose.ES384)
	ES512 = string(jose.ES512)
)
View Source
const None = "none"

Variables

View Source
var (
	// EnumEncrypt is a collection of all JWA encryption algorithms
	EnumEncrypt = []string{
		ED25519,
		RSA1_5, RSA_OAEP, RSA_OAEP_256,
		A128KW, A192KW, A256KW,
		DIRECT,
		ECDH_ES, ECDH_ES_A128KW, ECDH_ES_A192KW, ECDH_ES_A256KW,
		A128GCMKW, A192GCMKW, A256GCMKW,
		PBES2_HS256_A128KW, PBES2_HS384_A192KW, PBES2_HS512_A256KW,
	}
	// EnumEncode is a collection of all JWA encryption encoding algorithm.
	EnumEncode = []string{
		A128CBC_HS256, A192CBC_HS384, A256CBC_HS512,
		A128GCM, A192GCM, A256GCM,
	}
)

EnumSig is a collection of all JWA signature algorithm values.

Functions

func IsDefined

func IsDefined(alg string) bool

IsDefined is the opposite of IsNoneOrEmpty.

func IsNoneOrEmpty

func IsNoneOrEmpty(alg string) bool

IsNoneOrEmpty returns true if the given algorithm is None or is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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