Home
last modified time | relevance | path

Searched refs:kty (Results 1 – 25 of 25) sorted by relevance

/external/libwebsockets/minimal-examples/crypto/minimal-crypto-jwk/
Dmain.c71 enum lws_gencrypto_kty kty = LWS_GENCRYPTO_KTY_RSA; in main() local
91 kty = LWS_GENCRYPTO_KTY_RSA; in main()
94 kty = LWS_GENCRYPTO_KTY_OCT; in main()
97 kty = LWS_GENCRYPTO_KTY_EC; in main()
119 if (lws_jwk_generate(context, &jwk, kty, bits, curve)) { in main()
138 kty != LWS_GENCRYPTO_KTY_OCT) { in main()
DREADME.md43 {"crv":"P-256","d":"eMKM_S4BTL2aiebZLqvxglufV2YX4b3_32DesgEUOaM","key_ops":["sign","verify"],"kty":…
49 {"crv":"P-256","key_ops":["verify"],"kty":"EC","x":"OWauiGGtJ60ZegtqlwETQlmO1exTZdWbT2VbUs4a1hg","y…
/external/libwebsockets/lib/jose/jwk/
Djwk.c177 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()
[all …]
/external/libwebsockets/lib/jose/jwe/enc/
Daeskw.c47 if (jwe->jws.jwk->kty != LWS_GENCRYPTO_KTY_OCT) { in lws_jwe_encrypt_aeskw_cbc_hs()
48 lwsl_err("%s: unexpected kty %d\n", __func__, jwe->jws.jwk->kty); in lws_jwe_encrypt_aeskw_cbc_hs()
125 if (jwe->jws.jwk->kty != LWS_GENCRYPTO_KTY_OCT) { in lws_jwe_auth_and_decrypt_aeskw_cbc_hs()
126 lwsl_err("%s: unexpected kty %d\n", __func__, jwe->jws.jwk->kty); in lws_jwe_auth_and_decrypt_aeskw_cbc_hs()
/external/libwebsockets/lib/jose/jwe/
Djwe-rsa-aescbc.c53 if (jwe->jws.jwk->kty != LWS_GENCRYPTO_KTY_RSA) { in lws_jwe_encrypt_rsa_aes_cbc_hs()
54 lwsl_err("%s: unexpected kty %d\n", __func__, jwe->jws.jwk->kty); in lws_jwe_encrypt_rsa_aes_cbc_hs()
138 if (jwe->jws.jwk->kty != LWS_GENCRYPTO_KTY_RSA) { in lws_jwe_auth_and_decrypt_rsa_aes_cbc_hs()
139 lwsl_err("%s: unexpected kty %d\n", __func__, jwe->jws.jwk->kty); in lws_jwe_auth_and_decrypt_rsa_aes_cbc_hs()
Djwe-rsa-aesgcm.c38 if (jwe->jws.jwk->kty != LWS_GENCRYPTO_KTY_RSA) { in lws_jwe_encrypt_rsa_aes_gcm()
39 lwsl_err("%s: wrong kty %d\n", __func__, jwe->jws.jwk->kty); in lws_jwe_encrypt_rsa_aes_gcm()
130 if (jwe->jws.jwk->kty != LWS_GENCRYPTO_KTY_RSA) { in lws_jwe_auth_and_decrypt_rsa_aes_gcm()
131 lwsl_err("%s: unexpected kty %d\n", __func__, jwe->jws.jwk->kty); in lws_jwe_auth_and_decrypt_rsa_aes_gcm()
Djwe-ecdh-es-aeskw.c211 if (jwe->jws.jwk->kty != LWS_GENCRYPTO_KTY_EC) { in lws_jwe_encrypt_ecdh()
212 lwsl_err("%s: unexpected kty %d\n", __func__, jwe->jws.jwk->kty); in lws_jwe_encrypt_ecdh()
217 ephem->kty = LWS_GENCRYPTO_KTY_EC; in lws_jwe_encrypt_ecdh()
462 if (jwe->jws.jwk->kty != LWS_GENCRYPTO_KTY_EC) { in lws_jwe_auth_and_decrypt_ecdh()
463 lwsl_err("%s: unexpected kty %d\n", __func__, jwe->jws.jwk->kty); in lws_jwe_auth_and_decrypt_ecdh()
468 if (jwe->jose.recipient[jwe->recip].jwk_ephemeral.kty != in lws_jwe_auth_and_decrypt_ecdh()
/external/libwebsockets/minimal-examples/api-tests/api-test-jose/
Djws.c152 if (jwk.kty != LWS_GENCRYPTO_KTY_OCT) { in test_jws_HS256()
153 lwsl_err("%s: unexpected kty %d\n", __func__, jwk.kty); in test_jws_HS256()
303 if (jwk.kty != LWS_GENCRYPTO_KTY_RSA) { in test_jws_RS256()
304 lwsl_err("%s: 2.2: kty: %d instead of RSA\n", __func__, jwk.kty); in test_jws_RS256()
471 if (jwk.kty != LWS_GENCRYPTO_KTY_EC) { in test_jws_ES256()
473 __func__, jwk.kty); in test_jws_ES256()
632 if (jwk.kty != LWS_GENCRYPTO_KTY_EC) { in test_jws_ES512()
634 __func__, jwk.kty); in test_jws_ES512()
Djwk.c272 lwsl_notice("%s: key type %d\n", __func__, s->kty); in key_import_callback()
/external/libwebsockets/include/libwebsockets/
Dlws-jwk.h55 int kty; /**< one of LWS_JWK_ */ member
216 enum lws_gencrypto_kty kty, int bits, const char *curve);
/external/libwebsockets/lib/tls/mbedtls/
Dmbedtls-x509.c292 jwk->kty = LWS_GENCRYPTO_KTY_RSA; in lws_x509_public_to_jwk()
310 jwk->kty = LWS_GENCRYPTO_KTY_EC; in lws_x509_public_to_jwk()
376 if (jwk->kty != LWS_GENCRYPTO_KTY_RSA) { in lws_x509_jwk_privkey_pem()
388 if (jwk->kty != LWS_GENCRYPTO_KTY_EC) { in lws_x509_jwk_privkey_pem()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/security/credentials/jwt/
Djwt_verifier.cc504 static EVP_PKEY* pkey_from_jwk(const Json& json, const char* kty) { in pkey_from_jwk() argument
512 GPR_ASSERT(kty != nullptr); in pkey_from_jwk()
513 if (strcmp(kty, "RSA") != 0) { in pkey_from_jwk()
514 gpr_log(GPR_ERROR, "Unsupported key type %s.", kty); in pkey_from_jwk()
584 const char* kty = nullptr; in find_verification_key() local
587 kty = validate_string_field(it->second, "kty"); in find_verification_key()
589 if (alg != nullptr && kid != nullptr && kty != nullptr && in find_verification_key()
591 return pkey_from_jwk(jkey, kty); in find_verification_key()
/external/grpc-grpc/src/core/lib/security/credentials/jwt/
Djwt_verifier.cc500 static EVP_PKEY* pkey_from_jwk(const grpc_json* json, const char* kty) { in pkey_from_jwk() argument
507 GPR_ASSERT(kty != nullptr && json != nullptr); in pkey_from_jwk()
508 if (strcmp(kty, "RSA") != 0) { in pkey_from_jwk()
509 gpr_log(GPR_ERROR, "Unsupported key type %s.", kty); in pkey_from_jwk()
574 const char* kty = nullptr; in find_verification_key() local
587 kty = key_prop->value; in find_verification_key()
590 if (alg != nullptr && kid != nullptr && kty != nullptr && in find_verification_key()
592 return pkey_from_jwk(jkey, kty); in find_verification_key()
/external/libwebsockets/lib/tls/openssl/
Dopenssl-x509.c342 jwk->kty = LWS_GENCRYPTO_KTY_EC; in lws_x509_public_to_jwk()
400 jwk->kty = LWS_GENCRYPTO_KTY_RSA; in lws_x509_public_to_jwk()
513 switch (jwk->kty) { in lws_x509_jwk_privkey_pem()
636 lwsl_err("%s: JWK has unknown kty %d\n", __func__, jwk->kty); in lws_x509_jwk_privkey_pem()
643 if (jwk->kty == LWS_GENCRYPTO_KTY_EC) in lws_x509_jwk_privkey_pem()
/external/libwebsockets/minimal-examples/crypto/minimal-crypto-jwe/
Dkey-rsa-4096.pub1 {"e":"AQAB","kid":"my kid","kty":"RSA","n":"2_YjG_D1sOWJxs6cohikupHf5WJfWSFfSCrnNZ7WR7AyTLnKZAF4VKy…
Dkey-rsa-4096.private1 …LP3CRlqzDTvHrMe2A9cNAQ4dNsCbNAjW_MxxGKKWuWXAMQ","e":"AQAB","kid":"my kid","kty":"RSA","n":"2_YjG_D…
/external/libwebsockets/minimal-examples/crypto/minimal-crypto-x509/
DREADME.md38 {"crv":"P-521","kty":"EC","x":"_uRNBbIbm0zhk8v6ujvQX9924264ZkqJhit0qamAoCegzuJbLf434kN7_aFEt6u-QWUu…
55 …ncrYLhipUYzLYty2XhemTQ_nSuUB1vB76jHmOYUTRXFBLkVCW8cQYyMa5dMa3Bvv-cdvH0IB","kty":"EC","x":"_uRNBbIb…
/external/libwebsockets/minimal-examples/api-tests/api-test-gencrypto/
Dlws-genec.c57 if (jwk.kty != LWS_GENCRYPTO_KTY_EC) { in test_genec1()
/external/libwebsockets/lib/jose/jws/
Djws.c494 if (jwk->kty != LWS_GENCRYPTO_KTY_RSA) in lws_jws_sig_confirm()
589 if (jwk->kty != LWS_GENCRYPTO_KTY_EC) in lws_jws_sig_confirm()
775 if (jws->jwk->kty != LWS_GENCRYPTO_KTY_RSA) in lws_jws_sign_from_b64()
818 if (jws->jwk->kty != LWS_GENCRYPTO_KTY_EC) in lws_jws_sign_from_b64()
Djose.c543 if (!jwk || !jwk->kty) in lws_jose_render()
/external/libwebsockets/lib/jose/
DREADME.md49 |JWK kty|JWA|lws|
/external/libwebsockets/plugins/acme-client/
Dprotocol_lws_acme_client.c669 vhd->jwk.kty = LWS_GENCRYPTO_KTY_RSA; in lws_acme_load_create_auth_keys()
/external/cldr/tools/java/org/unicode/cldr/util/data/
Diso-639-3_Name_Index.tab3471 kty Kango (Bas-Uélé District) Kango (Bas-Uélé District)
Diso-639-3.tab3308 kty I L Kango (Bas-Uélé District)
Dlanguage-subtag-registry18525 Subtag: kty