Home
last modified time | relevance | path

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

12

/third_party/libwebsockets/lib/jose/jws/
Djose.c66 struct lws_jose *jose; member
192 args->jose->recipients++; in lws_jws_jose_cb()
212 &args->jose->alg)) { in lws_jws_jose_cb()
221 &args->jose->alg)) { in lws_jws_jose_cb()
231 lws_strnncpy(args->jose->typ, ctx->buf, ctx->npos, in lws_jws_jose_cb()
232 sizeof(args->jose->typ)); in lws_jws_jose_cb()
288 &args->jose->enc_alg)) { in lws_jws_jose_cb()
354 if (!args->jose->e[ctx->path_match - 1].buf) { in lws_jws_jose_cb()
355 args->jose->e[ctx->path_match - 1].buf = (uint8_t *)args->temp; in lws_jws_jose_cb()
356 args->jose->e[ctx->path_match - 1].len = 0; in lws_jws_jose_cb()
[all …]
Djws.c456 struct lws_jose jose; in lws_jws_sig_confirm() local
458 lws_jose_init(&jose); in lws_jws_sig_confirm()
464 if (lws_jws_parse_jose(&jose, map->buf[LJWS_JOSE], (int)map->len[LJWS_JOSE], in lws_jws_sig_confirm()
465 temp, &temp_len) < 0 || !jose.alg) { in lws_jws_sig_confirm()
470 if (!strcmp(jose.alg->alg, "none")) { in lws_jws_sig_confirm()
485 switch (jose.alg->algtype_signing) { in lws_jws_sig_confirm()
499 if (lws_genhash_init(&hash_ctx, jose.alg->hash_type)) in lws_jws_sig_confirm()
529 jose.alg->hash_type, in lws_jws_sig_confirm()
545 h_len = (int)lws_genhmac_size(jose.alg->hmac_type); in lws_jws_sig_confirm()
549 if (lws_genhmac_init(&ctx, jose.alg->hmac_type, in lws_jws_sig_confirm()
[all …]
/third_party/libwebsockets/lib/jose/jwe/
Djwe.c164 lws_jose_init(&jwe->jose); in lws_jwe_init()
175 lws_jose_destroy(&jwe->jose); in lws_jwe_destroy()
217 if (!jwe->jose.enc_alg || !jwe->jose.alg) in lws_jwa_concat_kdf()
238 aid = direct ? jwe->jose.enc_alg->alg : jwe->jose.alg->alg; in lws_jwa_concat_kdf()
271 while (ctr <= (uint32_t)((jwe->jose.enc_alg->keybits_fixed + (hlen - 1)) / hlen)) { in lws_jwa_concat_kdf()
290 be32(jwe->jose.e[LJJHI_APU].len, &t), 4) || in lws_jwa_concat_kdf()
291 lws_genhash_update(&hash_ctx, jwe->jose.e[LJJHI_APU].buf, in lws_jwa_concat_kdf()
292 jwe->jose.e[LJJHI_APU].len) || in lws_jwa_concat_kdf()
294 be32(jwe->jose.e[LJJHI_APV].len, &t), 4) || in lws_jwa_concat_kdf()
295 lws_genhash_update(&hash_ctx, jwe->jose.e[LJJHI_APV].buf, in lws_jwa_concat_kdf()
[all …]
Djwe-ecdh-es-aeskw.c206 enc_hlen = (int)lws_genhmac_size(jwe->jose.enc_alg->hmac_type), in lws_jwe_encrypt_ecdh()
209 struct lws_jwk *ephem = &jwe->jose.recipient[jwe->recip].jwk_ephemeral; in lws_jwe_encrypt_ecdh()
267 jwe->jose.alg->algtype_crypto == LWS_JOSE_ENCTYPE_NONE, in lws_jwe_encrypt_ecdh()
290 if (jwe->jose.alg->algtype_crypto != LWS_JOSE_ENCTYPE_NONE) { in lws_jwe_encrypt_ecdh()
342 jwe->jose.alg->alg, jwe->jose.enc_alg->alg); in lws_jwe_encrypt_ecdh()
381 enc_hlen = (int)lws_genhmac_size(jwe->jose.enc_alg->hmac_type); in lws_jwe_encrypt_ecdh_cbc_hs()
383 int ekbytes = jwe->jose.alg->keybits_fixed / 8; in lws_jwe_encrypt_ecdh_cbc_hs()
388 if (jwe->jose.alg->algtype_crypto != LWS_JOSE_ENCTYPE_NONE) { in lws_jwe_encrypt_ecdh_cbc_hs()
432 if (ret || jwe->jose.enc_alg->algtype_crypto == LWS_JOSE_ENCTYPE_NONE) { in lws_jwe_encrypt_ecdh_cbc_hs()
457 int ekbytes = jwe->jose.enc_alg->keybits_fixed / 8, in lws_jwe_auth_and_decrypt_ecdh()
[all …]
Djwe-rsa-aesgcm.c34 int ekbytes = jwe->jose.enc_alg->keybits_fixed / 8; in lws_jwe_encrypt_rsa_aes_gcm()
97 !strcmp(jwe->jose.alg->alg, "RSA-OAEP") ? in lws_jwe_encrypt_rsa_aes_gcm()
146 !strcmp(jwe->jose.alg->alg, "RSA-OAEP") ? in lws_jwe_auth_and_decrypt_rsa_aes_gcm()
Djwe-rsa-aescbc.c49 int n, hlen = (int)lws_genhmac_size(jwe->jose.enc_alg->hmac_type), in lws_jwe_encrypt_rsa_aes_cbc_hs()
101 !strcmp(jwe->jose.alg->alg, "RSA-OAEP") ? in lws_jwe_encrypt_rsa_aes_cbc_hs()
155 !strcmp(jwe->jose.alg->alg, "RSA-OAEP") ? in lws_jwe_auth_and_decrypt_rsa_aes_cbc_hs()
/third_party/libwebsockets/minimal-examples/api-tests/api-test-jose/
Djws.c40 struct lws_jose jose; in test_jws_none() local
44 lws_jose_init(&jose); in test_jws_none()
63 if (lws_jws_parse_jose(&jose, map.buf[LJWS_JOSE], in test_jws_none()
66 &temp_len) < 0 || !jose.alg) { in test_jws_none()
72 if (strcmp(jose.alg->alg, "none")) { in test_jws_none()
89 lws_jose_destroy(&jose); in test_jws_none()
122 struct lws_jose jose; in test_jws_HS256() local
127 lws_jose_init(&jose); in test_jws_HS256()
134 if (lws_jws_parse_jose(&jose, test1, (int)strlen(test1), temp, in test_jws_HS256()
135 &temp_len) < 0 || !jose.alg) { in test_jws_HS256()
[all …]
DCMakeLists.txt1 project(lws-api-test-jose C)
8 set(SAMP lws-api-test-jose)
19 add_test(NAME api-test-jose COMMAND lws-api-test-jose)
Djwe.c125 if (lws_gencrypto_jwe_alg_to_definition("RSA-OAEP", &jwe.jose.alg)) { in test_jwe_a1()
129 if (lws_gencrypto_jwe_enc_to_definition("A256GCM", &jwe.jose.enc_alg)) { in test_jwe_a1()
155 n = lws_gencrypto_bits_to_bytes(jwe.jose.enc_alg->keybits_fixed); in test_jwe_a1()
532 n = lws_jwe_parse_jose(&jwe.jose, jwe.jws.map.buf[LJWE_JOSE], in test_jwe_ra_ptext_1024()
662 n = lws_jwe_parse_jose(&jwe.jose, jwe.jws.map.buf[LJWE_JOSE], in test_jwe_r256a192_ptext()
794 n = lws_jwe_parse_jose(&jwe.jose, rsa256a256_jose, in test_jwe_r256a256_ptext()
1396 if (lws_gencrypto_jwe_alg_to_definition("A128KW", &jwe.jose.alg)) in test_jwa_b2()
1399 &jwe.jose.enc_alg)) in test_jwa_b2()
1552 if (lws_gencrypto_jwe_alg_to_definition("A128KW", &jwe.jose.alg)) in test_jwa_b3()
1555 &jwe.jose.enc_alg)) in test_jwa_b3()
[all …]
/third_party/libwebsockets/lib/jose/
DCMakeLists.txt29 jose/jws/jose.c
30 jose/jwk/jwk.c
31 jose/jwk/jose_key.c
32 jose/jws/jws.c
33 jose/jwe/jwe.c
34 jose/jwe/enc/aescbc.c
35 jose/jwe/enc/aesgcm.c
36 jose/jwe/enc/aeskw.c
37 jose/jwe/jwe-rsa-aescbc.c
38 jose/jwe/jwe-rsa-aesgcm.c
[all …]
Dprivate-lib-jose.h39 lws_jose_render(struct lws_jose *jose, struct lws_jwk *aux_jwk,
/third_party/libwebsockets/include/libwebsockets/
Dlws-jose.h137 lws_jose_init(struct lws_jose *jose);
145 lws_jose_destroy(struct lws_jose *jose);
157 const struct lws_jose_jwe_alg **jose);
169 const struct lws_jose_jwe_alg **jose);
181 const struct lws_jose_jwe_alg **jose);
196 lws_jws_parse_jose(struct lws_jose *jose,
212 lws_jwe_parse_jose(struct lws_jose *jose,
Dlws-jwe.h46 struct lws_jose jose; member
/third_party/libwebsockets/lib/tls/
Dlws-gencrypto-common.c577 const struct lws_jose_jwe_alg **jose) in lws_gencrypto_jws_alg_to_definition() argument
583 *jose = a; in lws_gencrypto_jws_alg_to_definition()
595 const struct lws_jose_jwe_alg **jose) in lws_gencrypto_jwe_alg_to_definition() argument
601 *jose = a; in lws_gencrypto_jwe_alg_to_definition()
613 const struct lws_jose_jwe_alg **jose) in lws_gencrypto_jwe_enc_to_definition() argument
619 *jose = e; in lws_gencrypto_jwe_enc_to_definition()
/third_party/libwebsockets/minimal-examples/crypto/minimal-crypto-jws/
Dmain.c26 struct lws_jose jose; in main() local
49 lws_jose_init(&jose); in main()
56 if (lws_gencrypto_jws_alg_to_definition(p, &jose.alg)) { in main()
134 n = lws_jws_sign_from_b64(&jose, &jws, in main()
/third_party/libwebsockets/lib/jose/jwe/enc/
Daescbc.c32 int n, hlen = (int)lws_genhmac_size(jwe->jose.enc_alg->hmac_type); in lws_jwe_encrypt_cbc_hs()
119 if (lws_genhmac_init(&hmacctx, jwe->jose.enc_alg->hmac_type, in lws_jwe_encrypt_cbc_hs()
165 int n, hlen = (int)lws_genhmac_size(jwe->jose.enc_alg->hmac_type); in lws_jwe_auth_and_decrypt_cbc_hs()
203 if (lws_genhmac_init(&hmacctx, jwe->jose.enc_alg->hmac_type, enc_cek, in lws_jwe_auth_and_decrypt_cbc_hs()
Daeskw.c44 int n, m, hlen = (int)lws_genhmac_size(jwe->jose.enc_alg->hmac_type), in lws_jwe_encrypt_aeskw_cbc_hs()
98 jwe->jose.enc_alg->keybits_fixed)); in lws_jwe_encrypt_aeskw_cbc_hs()
152 jwe->jose.enc_alg->keybits_fixed)); in lws_jwe_auth_and_decrypt_aeskw_cbc_hs()
Daesgcm.c78 el.len = jwe->jose.enc_alg->keybits_fixed / 8; in lws_jwe_encrypt_gcm()
143 el.len = jwe->jose.enc_alg->keybits_fixed / 8; in lws_jwe_auth_and_decrypt_gcm()
/third_party/libwebsockets/minimal-examples/crypto/minimal-crypto-jwe/
Dmain.c126 if (lws_gencrypto_jwe_alg_to_definition(p, &jwe.jose.alg)) { in main()
130 if (lws_gencrypto_jwe_enc_to_definition(sp + 1, &jwe.jose.enc_alg)) { in main()
189 n = lws_gencrypto_bits_to_bytes(jwe.jose.enc_alg->keybits_fixed); in main()
/third_party/libwebsockets/
DBUILD.gn166 "//third_party/libwebsockets/lib/jose",
167 "//third_party/libwebsockets/lib/jose/jwk",
168 "//third_party/libwebsockets/lib/jose/jwe",
169 "//third_party/libwebsockets/lib/jose/jwe/enc",
170 "//third_party/libwebsockets/lib/jose/jws",
285 "//third_party/libwebsockets/lib/jose/jwe",
286 "//third_party/libwebsockets/lib/jose/jws",
287 "//third_party/libwebsockets/lib/jose",
/third_party/libwebsockets/READMEs/
DREADME.crypto-apis.md124 …OSE|[./include/libwebsockets/lws-jose.h](https://libwebsockets.org/git/libwebsockets/tree/include/…
136 …-examples/api-tests/api-test-jose](https://libwebsockets.org/git/libwebsockets/tree/minimal-exampl…
/third_party/libwebsockets/minimal-examples/api-tests/
DREADME.md10 api-test-jose|LWS JOSE apis
/third_party/libabigail/
D.mailmap5 Jose E. Marchesi <jose.marchesi@oracle.com> Jose E. Marchesi via Libabigail <libabigail@sourceware.…
/third_party/libwebsockets/lib/
DREADME.md10 lib/jose|JOSE / JWS / JWK / JWE implementations
/third_party/skia/third_party/externals/expat/
D.mailmap6 José Gutiérrez de la Concha <jose@zeroc.com>

12