Lines Matching refs:kty
177 switch (jwk->kty) { in lws_jwk_dump()
376 if (jwk->kty == LWS_GENCRYPTO_KTY_RSA && in cb_jwk()
393 if (jwk->kty == LWS_GENCRYPTO_KTY_RSA && in cb_jwk()
410 if (jwk->kty == LWS_GENCRYPTO_KTY_RSA && in cb_jwk()
418 if ((jwk->kty == LWS_GENCRYPTO_KTY_RSA || in cb_jwk()
419 jwk->kty == LWS_GENCRYPTO_KTY_EC) && in cb_jwk()
446 jwk->kty = LWS_GENCRYPTO_KTY_OCT; in cb_jwk()
453 jwk->kty = LWS_GENCRYPTO_KTY_RSA; in cb_jwk()
460 jwk->kty = LWS_GENCRYPTO_KTY_EC; in cb_jwk()
560 jwk->kty = LWS_GENCRYPTO_KTY_OCT; in lws_jwk_dup_oct()
570 enum lws_gencrypto_kty kty, int bits, const char *curve) in lws_jwk_generate() argument
577 jwk->kty = kty; in lws_jwk_generate()
580 switch (kty) { in lws_jwk_generate()
658 switch (jwk->kty) { in lws_jwk_import()
687 switch (jwk->kty) { in lws_jwk_export()
720 l->name, kty_names[jwk->kty]); in lws_jwk_export()
787 if (jwk->kty == LWS_GENCRYPTO_KTY_EC && in lws_jwk_export()