![]() |
libfilezilla
|
Functions to create JSON Web Keys (JWK) and JSON Web Signatures (JWS) More...
#include "json.hpp"
Go to the source code of this file.
Namespaces | |
namespace | fz |
The namespace used by libfilezilla. |
Enumerations | |
enum class | jwk_type { ecdsa , rsa } |
Algorithm of JWKs. More... |
Functions | |
std::pair< json, json > | create_jwk (jwk_type t=jwk_type::ecdsa) |
Creates a JWK pair. | |
std::pair< json, json > | jwk_from_x509_privkey (std::string_view const &data, bool pem=true, logger_interface *logger=nullptr) |
json | jws_sign_flattened (json const &priv, json const &payload, json const &extra_protected={}) |
Create a JWS, with optional protected data. | |
std::string | create_jwt (json const &priv, json const &payload, json extra_protected={}) |
Functions to create JSON Web Keys (JWK) and JSON Web Signatures (JWS)