104 #define LWS_JWS_MAX_RECIPIENTS 3
198 const char *buf,
int len,
char *temp,
int *temp_len);
214 const char *buf,
int len,
char *temp,
int *temp_len);
LWS_VISIBLE LWS_EXTERN int lws_gencrypto_jws_alg_to_definition(const char *alg, const struct lws_jose_jwe_alg **jose)
unsigned short keybits_fixed
const struct lws_jose_jwe_alg * enc_alg
LWS_VISIBLE LWS_EXTERN void lws_jose_init(struct lws_jose *jose)
enum lws_genhmac_types hmac_type
@ LWS_COUNT_JOSE_HDR_ELEMENTS
LWS_VISIBLE LWS_EXTERN void lws_jose_destroy(struct lws_jose *jose)
LWS_VISIBLE LWS_EXTERN int lws_gencrypto_jwe_alg_to_definition(const char *alg, const struct lws_jose_jwe_alg **jose)
enum lws_jose_algtype algtype_crypto
const struct lws_jose_jwe_alg * alg
#define LWS_JWS_MAX_RECIPIENTS
struct lws_jwk jwk_ephemeral
LWS_VISIBLE LWS_EXTERN int lws_jwe_parse_jose(struct lws_jose *jose, const char *buf, int len, char *temp, int *temp_len)
@ LWS_JOSE_ENCTYPE_AES_CFB128
@ LWS_JOSE_ENCTYPE_AES_CTR
@ LWS_JOSE_ENCTYPE_AES_ECB
@ LWS_JOSE_ENCTYPE_AES_GCM
@ LWS_JOSE_ENCTYPE_AES_CFB8
@ LWS_JOSE_ENCTYPE_RSASSA_PKCS1_OAEP
@ LWS_JOSE_ENCTYPE_AES_OFB
@ LWS_JOSE_ENCTYPE_AES_XTS
@ LWS_JOSE_ENCTYPE_ECDHES
@ LWS_JOSE_ENCTYPE_RSASSA_PKCS1_PSS
@ LWS_JOSE_ENCTYPE_RSASSA_PKCS1_1_5
@ LWS_JOSE_ENCTYPE_AES_CBC
char edone[LWS_COUNT_JOSE_HDR_ELEMENTS]
struct lws_gencrypto_keyelem e[LWS_COUNT_JOSE_HDR_ELEMENTS]
LWS_VISIBLE LWS_EXTERN int lws_gencrypto_jwe_enc_to_definition(const char *enc, const struct lws_jose_jwe_alg **jose)
LWS_VISIBLE LWS_EXTERN int lws_jws_parse_jose(struct lws_jose *jose, const char *buf, int len, char *temp, int *temp_len)
enum lws_genhash_types hash_type
struct lws_gencrypto_keyelem unprot[LWS_COUNT_JOSE_HDR_ELEMENTS]
struct lws_jws_recpient recipient[LWS_JWS_MAX_RECIPIENTS]
enum lws_jose_algtype algtype_signing
unsigned short keybits_min