• Home
  • Raw
  • Download

Lines Matching refs:jws

86 				   &jwe.jws.map, &jwe.jws.map_b64, temp,  in test_jwe_a1()
101 if (jwe.jws.map.len[LJWE_CTXT] < strlen(ex_a1_ptext) || in test_jwe_a1()
102 lws_timingsafe_bcmp(jwe.jws.map.buf[LJWE_CTXT], ex_a1_ptext, in test_jwe_a1()
106 lwsl_hexdump_notice(jwe.jws.map.buf[LJWE_CTXT], in test_jwe_a1()
107 jwe.jws.map.len[LJWE_CTXT]); in test_jwe_a1()
136 jwe.jws.map.buf[LJWS_JOSE] = temp; in test_jwe_a1()
137 jwe.jws.map.len[LJWS_JOSE] = (uint32_t)lws_snprintf(temp, (unsigned int)temp_len, in test_jwe_a1()
139 temp_len -= (int)jwe.jws.map.len[LJWS_JOSE]; in test_jwe_a1()
146 if (lws_jws_dup_element(&jwe.jws.map, LJWE_CTXT, in test_jwe_a1()
156 if (lws_jws_randomize_element(context, &jwe.jws.map, LJWE_EKEY, in test_jwe_a1()
188 if (lws_jws_compact_decode(compact, (int)strlen(compact), &jwe.jws.map, in test_jwe_a1()
189 &jwe.jws.map_b64, temp, &temp_len) != 5) { in test_jwe_a1()
303 &jwe.jws.map, &jwe.jws.map_b64, in test_jwe_a2()
318 if (jwe.jws.map.len[LJWE_CTXT] < sizeof(ex_a2_ptext) || in test_jwe_a2()
319 lws_timingsafe_bcmp(jwe.jws.map.buf[LJWE_CTXT], ex_a2_ptext, in test_jwe_a2()
323 lwsl_hexdump_notice(jwe.jws.map.buf[LJWE_CTXT], in test_jwe_a2()
324 jwe.jws.map.len[LJWE_CTXT]); in test_jwe_a2()
510 if (lws_jws_dup_element(&jwe.jws.map, LJWE_CTXT, in test_jwe_ra_ptext_1024()
521 if (lws_jws_dup_element(&jwe.jws.map, LJWE_EKEY, in test_jwe_ra_ptext_1024()
529 jwe.jws.map.buf[LJWE_JOSE] = rsa256a128_jose; in test_jwe_ra_ptext_1024()
530 jwe.jws.map.len[LJWE_JOSE] = (uint32_t)strlen(rsa256a128_jose); in test_jwe_ra_ptext_1024()
532 n = lws_jwe_parse_jose(&jwe.jose, jwe.jws.map.buf[LJWE_JOSE], in test_jwe_ra_ptext_1024()
533 (int)jwe.jws.map.len[LJWE_JOSE], in test_jwe_ra_ptext_1024()
567 if (lws_jws_compact_decode(compact, n, &jwe.jws.map, &jwe.jws.map_b64, in test_jwe_ra_ptext_1024()
583 if (jwe.jws.map.len[LJWE_CTXT] < sizeof(ra_ptext_1024) || in test_jwe_ra_ptext_1024()
584 lws_timingsafe_bcmp(jwe.jws.map.buf[LJWE_CTXT], ra_ptext_1024, in test_jwe_ra_ptext_1024()
588 lwsl_hexdump_notice(jwe.jws.map.buf[LJWE_CTXT], in test_jwe_ra_ptext_1024()
589 jwe.jws.map.len[LJWE_CTXT]); in test_jwe_ra_ptext_1024()
640 if (lws_jws_dup_element(&jwe.jws.map, LJWE_CTXT, in test_jwe_r256a192_ptext()
651 if (lws_jws_dup_element(&jwe.jws.map, LJWE_EKEY, in test_jwe_r256a192_ptext()
659 jwe.jws.map.buf[LJWE_JOSE] = rsa256a192_jose; in test_jwe_r256a192_ptext()
660 jwe.jws.map.len[LJWE_JOSE] = (uint32_t)strlen(rsa256a192_jose); in test_jwe_r256a192_ptext()
662 n = lws_jwe_parse_jose(&jwe.jose, jwe.jws.map.buf[LJWE_JOSE], in test_jwe_r256a192_ptext()
663 (int)jwe.jws.map.len[LJWE_JOSE], in test_jwe_r256a192_ptext()
696 if (lws_jws_compact_decode(compact, n, &jwe.jws.map, &jwe.jws.map_b64, in test_jwe_r256a192_ptext()
712 if (jwe.jws.map.len[LJWE_CTXT] < sizeof(ra_ptext_1024) || in test_jwe_r256a192_ptext()
713 lws_timingsafe_bcmp(jwe.jws.map.buf[LJWE_CTXT], ra_ptext_1024, in test_jwe_r256a192_ptext()
717 lwsl_hexdump_notice(jwe.jws.map.buf[LJWE_CTXT], in test_jwe_r256a192_ptext()
718 jwe.jws.map.len[LJWE_CTXT]); in test_jwe_r256a192_ptext()
772 if (lws_jws_dup_element(&jwe.jws.map, LJWE_CTXT, in test_jwe_r256a256_ptext()
783 if (lws_jws_dup_element(&jwe.jws.map, LJWE_EKEY, in test_jwe_r256a256_ptext()
791 jwe.jws.map.buf[LJWE_JOSE] = rsa256a256_jose; in test_jwe_r256a256_ptext()
792 jwe.jws.map.len[LJWE_JOSE] = (uint32_t)strlen(rsa256a256_jose); in test_jwe_r256a256_ptext()
828 if (lws_jws_compact_decode(compact, n, &jwe.jws.map, &jwe.jws.map_b64, in test_jwe_r256a256_ptext()
844 if (jwe.jws.map.len[LJWE_CTXT] < sizeof(ra_ptext_1024) || in test_jwe_r256a256_ptext()
845 lws_timingsafe_bcmp(jwe.jws.map.buf[LJWE_CTXT], ra_ptext_1024, in test_jwe_r256a256_ptext()
849 lwsl_hexdump_notice(jwe.jws.map.buf[LJWE_CTXT], in test_jwe_r256a256_ptext()
850 jwe.jws.map.len[LJWE_CTXT]); in test_jwe_r256a256_ptext()
1063 &jwe.jws.map, &jwe.jws.map_b64, in test_jwe_r256a128_jwe_openssl()
1078 if (jwe.jws.map.len[LJWE_CTXT] < sizeof(ra_ptext_1024) || in test_jwe_r256a128_jwe_openssl()
1079 lws_timingsafe_bcmp(jwe.jws.map.buf[LJWE_CTXT], ra_ptext_1024, in test_jwe_r256a128_jwe_openssl()
1083 lwsl_hexdump_notice(jwe.jws.map.buf[LJWE_CTXT], in test_jwe_r256a128_jwe_openssl()
1084 jwe.jws.map.len[LJWE_CTXT]); in test_jwe_r256a128_jwe_openssl()
1154 &jwe.jws.map, &jwe.jws.map_b64, in test_jwe_r256a128_jwe_mbedtls()
1169 if (jwe.jws.map.len[LJWE_CTXT] < sizeof(ra_ptext_1024) || in test_jwe_r256a128_jwe_mbedtls()
1170 lws_timingsafe_bcmp(jwe.jws.map.buf[LJWE_CTXT], ra_ptext_1024, in test_jwe_r256a128_jwe_mbedtls()
1174 lwsl_hexdump_notice(jwe.jws.map.buf[LJWE_CTXT], in test_jwe_r256a128_jwe_mbedtls()
1175 jwe.jws.map.len[LJWE_CTXT]); in test_jwe_r256a128_jwe_mbedtls()
1245 &jwe.jws.map, &jwe.jws.map_b64, temp, in test_jwe_a3()
1260 if (jwe.jws.map.len[LJWE_CTXT] < sizeof(ex_a3_ptext) || in test_jwe_a3()
1261 lws_timingsafe_bcmp(jwe.jws.map.buf[LJWE_CTXT], ex_a3_ptext, in test_jwe_a3()
1265 lwsl_hexdump_notice(jwe.jws.map.buf[LJWE_CTXT], in test_jwe_a3()
1266 jwe.jws.map.len[LJWE_CTXT]); in test_jwe_a3()
1382 jwe.jws.map.buf[LJWE_IV] = (char *)jwa_b2_iv; in test_jwa_b2()
1383 jwe.jws.map.len[LJWE_IV] = sizeof(jwa_b2_iv); in test_jwa_b2()
1385 jwe.jws.map.buf[LJWE_CTXT] = buf; in test_jwa_b2()
1386 jwe.jws.map.len[LJWE_CTXT] = sizeof(jwa_b2_e); in test_jwa_b2()
1388 jwe.jws.map.buf[LJWE_ATAG] = (char *)jwa_b2_tag; in test_jwa_b2()
1389 jwe.jws.map.len[LJWE_ATAG] = sizeof(jwa_b2_tag); in test_jwa_b2()
1411 if (jwe.jws.map.len[LJWE_CTXT] < sizeof(jwa_b2_ptext) || in test_jwa_b2()
1412 lws_timingsafe_bcmp(jwe.jws.map.buf[LJWE_CTXT],jwa_b2_ptext, in test_jwa_b2()
1416 lwsl_hexdump_notice(jwe.jws.map.buf[LJWE_CTXT], in test_jwa_b2()
1417 jwe.jws.map.len[LJWE_CTXT]); in test_jwa_b2()
1538 jwe.jws.map.buf[LJWE_IV] = (char *)jwa_b3_iv; in test_jwa_b3()
1539 jwe.jws.map.len[LJWE_IV] = sizeof(jwa_b3_iv); in test_jwa_b3()
1541 jwe.jws.map.buf[LJWE_CTXT] = buf; in test_jwa_b3()
1542 jwe.jws.map.len[LJWE_CTXT] = sizeof(jwa_b3_e); in test_jwa_b3()
1544 jwe.jws.map.buf[LJWE_ATAG] = (char *)jws_b3_tag; in test_jwa_b3()
1545 jwe.jws.map.len[LJWE_ATAG] = sizeof(jws_b3_tag); in test_jwa_b3()
1567 if (jwe.jws.map.len[LJWE_CTXT] < sizeof(jwa_b3_ptext) || in test_jwa_b3()
1568 lws_timingsafe_bcmp(jwe.jws.map.buf[LJWE_CTXT],jwa_b3_ptext, in test_jwa_b3()
1572 lwsl_hexdump_notice(jwe.jws.map.buf[LJWE_CTXT], in test_jwa_b3()
1573 jwe.jws.map.len[LJWE_CTXT]); in test_jwa_b3()
1796 if (lws_jws_dup_element(&jwe.jws.map, LJWS_JOSE, in test_ecdhes_t1()
1821 if (lws_jws_dup_element(&jwe.jws.map, LJWE_CTXT, in test_ecdhes_t1()
1877 if (lws_jws_compact_decode(compact, (int)strlen(compact), &jwe.jws.map, in test_ecdhes_t1()
1878 &jwe.jws.map_b64, temp, &temp_len) != 5) { in test_ecdhes_t1()
1980 &jwe.jws.map, &jwe.jws.map_b64, in test_akw_decrypt()
1994 if (jwe.jws.map.len[LJWE_CTXT] < strlen(akw_ptext) || in test_akw_decrypt()
1995 lws_timingsafe_bcmp(jwe.jws.map.buf[LJWE_CTXT], akw_ptext, in test_akw_decrypt()
1999 lwsl_hexdump_notice(jwe.jws.map.buf[LJWE_CTXT], in test_akw_decrypt()
2000 jwe.jws.map.len[LJWE_CTXT]); in test_akw_decrypt()
2044 jwe.jws.map.buf[LJWS_JOSE] = temp; in test_akw_encrypt()
2045 jwe.jws.map.len[LJWS_JOSE] = (uint32_t)lws_snprintf(temp, (unsigned int)temp_len, in test_akw_encrypt()
2047 temp_len -= (int)jwe.jws.map.len[LJWS_JOSE]; in test_akw_encrypt()
2054 if (lws_jws_dup_element(&jwe.jws.map, LJWE_CTXT, in test_akw_encrypt()
2066 if (lws_jws_randomize_element(context, &jwe.jws.map, LJWE_EKEY, in test_akw_encrypt()