Lines Matching refs:kty
115 (long long)ck->kty, ck->gencrypto_kty); in lws_cose_key_dump()
140 lws_cose_key_checks(const lws_cose_key_t *key, int64_t kty, cose_param_t alg, in lws_cose_key_checks() argument
150 assert(kty); in lws_cose_key_checks()
153 assert((kty != LWSCOSE_WKKTV_OKP && kty != LWSCOSE_WKKTV_EC2) || crv); in lws_cose_key_checks()
162 if (!kty || kty >= (int)LWS_ARRAY_SIZE(kty_strings)) { in lws_cose_key_checks()
164 lwsl_notice("%s: unknown kty %d\n", __func__, (int)kty); in lws_cose_key_checks()
169 if (ke->buf && (strlen(kty_strings[kty]) != ke->len || in lws_cose_key_checks()
170 memcmp(kty_strings[kty], ke->buf, ke->len))) { in lws_cose_key_checks()
219 if (kty == LWSCOSE_WKKTV_OKP || kty == LWSCOSE_WKKTV_EC2) { in lws_cose_key_checks()
369 cps->ck->kty = (int)ctx->item.u.u64; in cb_cose_key()
494 switch (cps->ck->kty) { in cb_cose_key()
800 ck->kty = cose_kty; in lws_cose_key_generate()
1036 lws_lec_signed(ctx, (int64_t)ck->kty); in lws_cose_key_export()