Documentation ¶
Index ¶
- func CreateTempFile(template string) (*os.File, func(), error)
- func DecryptJweFile(ctx context.Context, file string, alg jwa.KeyEncryptionAlgorithm, ...) ([]byte, error)
- func DumpFile(t *testing.T, file string)
- func EncryptJweFile(ctx context.Context, payload []byte, keyalg jwa.KeyEncryptionAlgorithm, ...) (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, ...) (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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptJweFile ¶
func EncryptJweFile ¶
func EncryptJweFile(ctx context.Context, payload []byte, keyalg jwa.KeyEncryptionAlgorithm, keyfile string, contentalg jwa.ContentEncryptionAlgorithm, compressalg jwa.CompressionAlgorithm) (string, func(), error)
func GenerateEcdsaJwk ¶
func GenerateEcdsaKey ¶
func GenerateEcdsaKey(alg jwa.EllipticCurveAlgorithm) (*ecdsa.PrivateKey, error)
func GenerateEcdsaPublicJwk ¶
func GenerateEd25519Jwk ¶ added in v1.0.7
func GenerateEd25519Key ¶ added in v1.0.7
func GenerateEd25519Key() (ed25519.PrivateKey, error)
func GenerateRsaJwk ¶
func GenerateRsaKey ¶
func GenerateRsaKey() (*rsa.PrivateKey, error)
func GenerateRsaPublicJwk ¶
func GenerateSymmetricJwk ¶
func GenerateSymmetricKey ¶
func GenerateSymmetricKey() []byte
func GenerateX25519Jwk ¶ added in v1.0.7
func GenerateX25519Key ¶ added in v1.0.7
func GenerateX25519Key() (x25519.PrivateKey, error)
func SignJwsFile ¶ added in v1.1.3
func VerifyJwsFile ¶ added in v1.1.3
func WriteJSONFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.