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;
67 unsigned short possible;
93 LWS_VISIBLE LWS_EXTERN
int
95 const char *in,
size_t len);
103 LWS_VISIBLE LWS_EXTERN
void
115 LWS_VISIBLE LWS_EXTERN
int
118 #define LWSJWKF_EXPORT_PRIVATE (1 << 0)
119 #define LWSJWKF_EXPORT_NOCRLF (1 << 1)
140 LWS_VISIBLE LWS_EXTERN
int
163 LWS_VISIBLE LWS_EXTERN
int
165 lws_jwk_key_import_callback cb,
void *user);
174 LWS_VISIBLE LWS_EXTERN
int
184 LWS_VISIBLE LWS_EXTERN
int
196 LWS_VISIBLE LWS_EXTERN
int
198 const char *in,
int len);
201 LWS_VISIBLE LWS_EXTERN
int
202 lws_jwk_dump(
struct lws_jwk *jwk);
216 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:92
int kty
Definition: lws-jwk.h:55