171 jose_jwe_enc(jose_cfg_t *cfg, json_t *jwe, json_t *rcp,
const json_t *jwk,
172 const void *pt,
size_t ptl);
190 jose_jwe_enc_io(jose_cfg_t *cfg, json_t *jwe, json_t *rcp,
const json_t *jwk,
255 jose_jwe_enc_jwk(jose_cfg_t *cfg, json_t *jwe, json_t *rcp,
const json_t *jwk,
275 const void *pt,
size_t ptl);
327 jose_jwe_dec(jose_cfg_t *cfg,
const json_t *jwe,
const json_t *rcp,
328 const json_t *jwk,
size_t *ptl);
jose_io_t * jose_jwe_dec_io(jose_cfg_t *cfg, const json_t *jwe, const json_t *rcp, const json_t *jwk, jose_io_t *next)
Unwraps and decrypts ciphertext using streaming.
json_t * jose_jwe_dec_jwk(jose_cfg_t *cfg, const json_t *jwe, const json_t *rcp, const json_t *jwk)
Unwraps a CEK with a JWK.
void * jose_jwe_dec(jose_cfg_t *cfg, const json_t *jwe, const json_t *rcp, const json_t *jwk, size_t *ptl)
Unwraps and decrypts ciphertext.
bool jose_jwe_enc_cek(jose_cfg_t *cfg, json_t *jwe, const json_t *cek, const void *pt, size_t ptl)
Encrypts plaintext with the CEK.
bool jose_jwe_enc(jose_cfg_t *cfg, json_t *jwe, json_t *rcp, const json_t *jwk, const void *pt, size_t ptl)
Wraps and encrypts plaintext.
The interface for chained IO.
Definition: io.h:61
jose_io_t * jose_jwe_enc_cek_io(jose_cfg_t *cfg, json_t *jwe, const json_t *cek, jose_io_t *next)
Encrypts plaintext with the CEK using streaming.
jose_io_t * jose_jwe_dec_cek_io(jose_cfg_t *cfg, const json_t *jwe, const json_t *cek, jose_io_t *next)
Decrypts ciphertext with the CEK using streaming.
void * jose_jwe_dec_cek(jose_cfg_t *cfg, const json_t *jwe, const json_t *cek, size_t *ptl)
Decrypts ciphertext with the CEK.
jose_io_t * jose_jwe_enc_io(jose_cfg_t *cfg, json_t *jwe, json_t *rcp, const json_t *jwk, jose_io_t *next)
Wraps and encrypts plaintext using streaming.
bool jose_jwe_enc_jwk(jose_cfg_t *cfg, json_t *jwe, json_t *rcp, const json_t *jwk, json_t *cek)
Wraps a CEK with a JWK.
json_t * jose_jwe_hdr(const json_t *jwe, const json_t *rcp)
Merges the JOSE headers of a JWE object and a JWE recpient object.