39 enum enum_jwk_meta_tok {
47 LWS_COUNT_JWK_ELEMENTS
59 typedef int (*lws_jwk_key_import_callback)(
struct lws_jwk *s,
void *user);
63 char b64[(((8192 / 8) * 4) / 3) + 1];
64 lws_jwk_key_import_callback per_key_cb;
69 unsigned short possible;
95 LWS_VISIBLE LWS_EXTERN
int
97 const char *in,
size_t len);
105 LWS_VISIBLE LWS_EXTERN
void
117 LWS_VISIBLE LWS_EXTERN
int
120 #define LWSJWKF_EXPORT_PRIVATE (1 << 0)
121 #define LWSJWKF_EXPORT_NOCRLF (1 << 1)
142 LWS_VISIBLE LWS_EXTERN
int
165 LWS_VISIBLE LWS_EXTERN
int
167 lws_jwk_key_import_callback cb,
void *user);
176 LWS_VISIBLE LWS_EXTERN
int
186 LWS_VISIBLE LWS_EXTERN
int
198 LWS_VISIBLE LWS_EXTERN
int
200 const char *in,
int len);
203 LWS_VISIBLE LWS_EXTERN
int
204 lws_jwk_dump(
struct lws_jwk *jwk);
218 enum lws_gencrypto_kty
kty,
int bits,
const char *curve);
LWS_VISIBLE LWS_EXTERN int lws_jwk_import(struct lws_jwk *jwk, lws_jwk_key_import_callback cb, void *user, const char *in, size_t len)
LWS_VISIBLE LWS_EXTERN int lws_jwk_load(struct lws_jwk *jwk, const char *filename, lws_jwk_key_import_callback cb, void *user)
LWS_VISIBLE LWS_EXTERN int lws_jwk_strdup_meta(struct lws_jwk *jwk, enum enum_jwk_meta_tok idx, const char *in, int len)
LWS_VISIBLE LWS_EXTERN int lws_jwk_export(struct lws_jwk *jwk, int flags, char *p, int *len)
LWS_VISIBLE LWS_EXTERN void lws_jwk_destroy(struct lws_jwk *jwk)
LWS_VISIBLE int lws_jwk_generate(struct lws_context *context, struct lws_jwk *jwk, enum lws_gencrypto_kty kty, int bits, const char *curve)
LWS_VISIBLE LWS_EXTERN int lws_jwk_rfc7638_fingerprint(struct lws_jwk *jwk, char *digest32)
LWS_VISIBLE LWS_EXTERN int lws_jwk_save(struct lws_jwk *jwk, const char *filename)
LWS_VISIBLE LWS_EXTERN int lws_jwk_dup_oct(struct lws_jwk *jwk, const void *key, int len)
Definition: lws-gencrypto.h:99
int kty
Definition: lws-jwk.h:55