Package jwxtest
import "github.com/lestrrat-go/jwx/internal/jwxtest"
- Overview
- Index
- func CreateTempFile(template string) (*os.File, func(), error)
- func DecryptJweFile(ctx context.Context, file string, alg jwa.KeyEncryptionAlgorithm, jwkfile string) ([]byte, error)
- func DumpFile(t *testing.T, file string)
- func EncryptJweFile(ctx context.Context, payload []byte, keyalg jwa.KeyEncryptionAlgorithm, keyfile string, contentalg jwa.ContentEncryptionAlgorithm, compressalg jwa.CompressionAlgorithm) (string, func(), error)
- func GenerateEcdsaJwk() (jwk.Key, error)
- func GenerateEcdsaKey(alg jwa.EllipticCurveAlgorithm) (*ecdsa.PrivateKey, error)
- func GenerateEcdsaPublicJwk() (jwk.Key, error)
- func GenerateEd25519Jwk() (jwk.Key, error)
- func GenerateEd25519Key() (ed25519.PrivateKey, error)
- func GenerateRsaJwk() (jwk.Key, error)
- func GenerateRsaKey() (*rsa.PrivateKey, error)
- func GenerateRsaPublicJwk() (jwk.Key, error)
- func GenerateSymmetricJwk() (jwk.Key, error)
- func GenerateSymmetricKey() []byte
- func GenerateX25519Jwk() (jwk.Key, error)
- func GenerateX25519Key() (x25519.PrivateKey, error)
- func ParseJwkFile(_ context.Context, file string) (jwk.Key, error)
- func ReadFile(file string) ([]byte, error)
- func SignJwsFile(ctx context.Context, payload []byte, alg jwa.SignatureAlgorithm, keyfile string) (string, func(), error)
- func VerifyJwsFile(ctx context.Context, file string, alg jwa.SignatureAlgorithm, jwkfile string) ([]byte, error)
- func WriteFile(template string, src io.Reader) (string, func(), error)
- func WriteJSONFile(template string, v interface{}) (string, func(), error)
Package files
jwxtest.go
func CreateTempFile(template string) (*os.File, func(), error)
func DecryptJweFile(ctx context.Context, file string, alg jwa.KeyEncryptionAlgorithm, jwkfile string) ([]byte, error)
func DumpFile(t *testing.T, file string)
func EncryptJweFile(ctx context.Context, payload []byte, keyalg jwa.KeyEncryptionAlgorithm, keyfile string, contentalg jwa.ContentEncryptionAlgorithm, compressalg jwa.CompressionAlgorithm) (string, func(), error)
func GenerateEcdsaJwk() (jwk.Key, error)
func GenerateEcdsaKey(alg jwa.EllipticCurveAlgorithm) (*ecdsa.PrivateKey, error)
func GenerateEcdsaPublicJwk() (jwk.Key, error)
func GenerateEd25519Jwk() (jwk.Key, error)
func GenerateEd25519Key() (ed25519.PrivateKey, error)
func GenerateRsaJwk() (jwk.Key, error)
func GenerateRsaKey() (*rsa.PrivateKey, error)
func GenerateRsaPublicJwk() (jwk.Key, error)
func GenerateSymmetricJwk() (jwk.Key, error)
func GenerateSymmetricKey() []byte
func GenerateX25519Jwk() (jwk.Key, error)
func GenerateX25519Key() (x25519.PrivateKey, error)
func ParseJwkFile(_ context.Context, file string) (jwk.Key, error)
func ReadFile(file string) ([]byte, error)
func SignJwsFile(ctx context.Context, payload []byte, alg jwa.SignatureAlgorithm, keyfile string) (string, func(), error)
func VerifyJwsFile(ctx context.Context, file string, alg jwa.SignatureAlgorithm, jwkfile string) ([]byte, error)
func WriteFile(template string, src io.Reader) (string, func(), error)
func WriteJSONFile(template string, v interface{}) (string, func(), error)