/external/libwebsockets/lib/jose/jws/ |
D | jose.c | 66 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 …]
|
D | jws.c | 456 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], 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 = 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 …]
|
/external/libwebsockets/lib/jose/jwe/ |
D | jwe.c | 164 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 …]
|
D | jwe-ecdh-es-aeskw.c | 206 enc_hlen = 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 = 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 …]
|
D | jwe-rsa-aescbc.c | 49 int n, hlen = lws_genhmac_size(jwe->jose.enc_alg->hmac_type), ot = *temp_len; in lws_jwe_encrypt_rsa_aes_cbc_hs() 100 !strcmp(jwe->jose.alg->alg, "RSA-OAEP") ? in lws_jwe_encrypt_rsa_aes_cbc_hs() 154 !strcmp(jwe->jose.alg->alg, "RSA-OAEP") ? in lws_jwe_auth_and_decrypt_rsa_aes_cbc_hs()
|
D | jwe-rsa-aesgcm.c | 34 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()
|
/external/libwebsockets/minimal-examples/api-tests/api-test-jose/ |
D | jws.c | 40 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, strlen(test1), temp, &temp_len) < 0 || in test_jws_HS256() 135 !jose.alg) { in test_jws_HS256() [all …]
|
D | jwe.c | 125 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, strlen(rsa256a256_jose), in test_jwe_r256a256_ptext() 1395 if (lws_gencrypto_jwe_alg_to_definition("A128KW", &jwe.jose.alg)) in test_jwa_b2() 1398 &jwe.jose.enc_alg)) in test_jwa_b2() 1551 if (lws_gencrypto_jwe_alg_to_definition("A128KW", &jwe.jose.alg)) in test_jwa_b3() 1554 &jwe.jose.enc_alg)) in test_jwa_b3() [all …]
|
D | CMakeLists.txt | 1 project(lws-api-test-jose) 5 set(SAMP lws-api-test-jose)
|
/external/libwebsockets/include/libwebsockets/ |
D | lws-jose.h | 137 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); 195 lws_jws_parse_jose(struct lws_jose *jose, 210 lws_jwe_parse_jose(struct lws_jose *jose,
|
D | lws-jwe.h | 46 struct lws_jose jose; member
|
D | lws-jws.h | 193 lws_jws_sign_from_b64(struct lws_jose *jose, struct lws_jws *jws, char *b64_sig,
|
/external/libwebsockets/lib/tls/ |
D | lws-gencrypto-common.c | 577 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()
|
/external/libwebsockets/minimal-examples/crypto/minimal-crypto-jws/ |
D | main.c | 26 struct lws_jose jose; in main() local 47 lws_jose_init(&jose); in main() 54 if (lws_gencrypto_jws_alg_to_definition(p, &jose.alg)) { in main() 132 n = lws_jws_sign_from_b64(&jose, &jws, in main()
|
/external/libwebsockets/lib/jose/jwe/enc/ |
D | aeskw.c | 44 int n, m, hlen = 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()
|
D | aescbc.c | 32 int n, hlen = 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 = 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()
|
D | aesgcm.c | 78 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()
|
/external/libwebsockets/minimal-examples/crypto/minimal-crypto-jwe/ |
D | main.c | 124 if (lws_gencrypto_jwe_alg_to_definition(p, &jwe.jose.alg)) { in main() 128 if (lws_gencrypto_jwe_enc_to_definition(sp + 1, &jwe.jose.enc_alg)) { in main() 187 n = lws_gencrypto_bits_to_bytes(jwe.jose.enc_alg->keybits_fixed); in main()
|
/external/libwebsockets/lib/jose/ |
D | private-lib-jose.h | 34 lws_jose_render(struct lws_jose *jose, struct lws_jwk *aux_jwk,
|
D | README.md | 77 See `./minimal-examples/api-tests/api-test-jose/` for example test code.
|
/external/libwebsockets/minimal-examples/api-tests/ |
D | README.md | 10 api-test-jose|LWS JOSE apis
|
/external/libwebsockets/ |
D | Android.bp | 139 "lib/jose/jwe", 140 "lib/jose/jws", 141 "lib/jose",
|
/external/libwebsockets/READMEs/ |
D | README.crypto-apis.md | 124 …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…
|
/external/libwebsockets/lib/ |
D | README.md | 10 lib/jose|JOSE / JWS / JWK / JWE implementations
|
/external/testng/ |
D | .mailmap | 9 Jose Dillet <jose.dillet@gmail.com> <jdillet@ada>
|