121 jose_jwk_prm(jose_cfg_t *cfg,
const json_t *jwk,
bool req,
const char *op);
135 jose_jwk_thp(jose_cfg_t *cfg,
const json_t *jwk,
const char *alg);
156 const char *alg, uint8_t *thp,
size_t len);
169 jose_jwk_exc(jose_cfg_t *cfg,
const json_t *prv,
const json_t *pub);
bool jose_jwk_gen(jose_cfg_t *cfg, json_t *jwk)
Generates a new JWK.
size_t jose_jwk_thp_buf(jose_cfg_t *cfg, const json_t *jwk, const char *alg, uint8_t *thp, size_t len)
Calculates the thumbprint of a JWK.
bool jose_jwk_pub(jose_cfg_t *cfg, json_t *jwk)
Removes all private key material from a JWK.
bool jose_jwk_prm(jose_cfg_t *cfg, const json_t *jwk, bool req, const char *op)
Determines if an operation is permitted for a JWK.
json_t * jose_jwk_thp(jose_cfg_t *cfg, const json_t *jwk, const char *alg)
Calculates the thumbprint of a JWK as a URL-safe Base64 encoded JSON string.
json_t * jose_jwk_exc(jose_cfg_t *cfg, const json_t *prv, const json_t *pub)
Perform a key exchange.