Lines Matching defs:compact

73 	char temp[2048], compact[2048];
84 /* converts a compact serialization to jws b64 + decoded maps */
170 n = lws_jwe_render_compact(&jwe, compact, sizeof(compact));
177 // puts(compact);
187 /* converts a compact serialization to jws b64 + decoded maps */
188 if (lws_jws_compact_decode(compact, (int)strlen(compact), &jwe.jws.map,
300 /* converts a compact serialization to jws b64 + decoded maps */
495 char temp[4096], compact[4096];
548 n = lws_jwe_render_compact(&jwe, compact, sizeof(compact));
554 // puts(compact);
567 if (lws_jws_compact_decode(compact, n, &jwe.jws.map, &jwe.jws.map_b64,
569 lwsl_err("%s: failed to parse generated compact\n", __func__);
623 char temp[4096], compact[4096];
678 n = lws_jwe_render_compact(&jwe, compact, sizeof(compact));
684 // puts(compact);
696 if (lws_jws_compact_decode(compact, n, &jwe.jws.map, &jwe.jws.map_b64,
698 lwsl_err("%s: failed to parse generated compact\n", __func__);
755 char temp[4096], compact[4096];
810 n = lws_jwe_render_compact(&jwe, compact, sizeof(compact));
816 // puts(compact);
828 if (lws_jws_compact_decode(compact, n, &jwe.jws.map, &jwe.jws.map_b64,
830 lwsl_err("%s: failed to parse generated compact\n", __func__);
1010 /* This is a compact JWE containing the plaintext ra_ptext_1024 for the key
1060 /* converts a compact serialization to jws b64 + decoded maps */
1101 /* This is a compact JWE containing the plaintext ra_ptext_1024 for the key
1151 /* converts a compact serialization to jws b64 + decoded maps */
1242 /* converts a compact serialization to jws b64 + decoded maps */
1788 char temp[3072], compact[2048];
1845 n = lws_jwe_render_flattened(&jwe, compact, sizeof(compact));
1852 // puts(compact);
1854 n = lws_jwe_render_compact(&jwe, compact, sizeof(compact));
1861 // puts(compact);
1864 * getting the compact. jws->jwk needs to be our private key. */
1876 /* converts a compact serialization to jws b64 + decoded maps */
1877 if (lws_jws_compact_decode(compact, (int)strlen(compact), &jwe.jws.map,
1978 /* converts a compact serialization to jws b64 + decoded maps */
2020 const char *key, char *compact, int compact_len)
2081 n = lws_jwe_render_compact(&jwe, compact, (unsigned int)compact_len);
2173 char compact[4096];
2242 akw_ptext, akw_key_128, compact, sizeof(compact)))
2243 n |= test_akw_decrypt(context, "ed-128kw_128", compact, akw_key_128);
2247 akw_ptext, akw_key_128, compact, sizeof(compact)))
2248 n |= test_akw_decrypt(context, "ed-128kw_192", compact, akw_key_128);
2252 akw_ptext, akw_key_128, compact, sizeof(compact)))
2253 n |= test_akw_decrypt(context, "ed-128kw_256", compact, akw_key_128);
2258 akw_ptext, akw_key_192, compact, sizeof(compact)))
2259 n |= test_akw_decrypt(context, "ed-192kw_128", compact, akw_key_192);
2263 akw_ptext, akw_key_192, compact, sizeof(compact)))
2264 n |= test_akw_decrypt(context, "ed-192kw_192", compact, akw_key_192);
2268 akw_ptext, akw_key_192, compact, sizeof(compact)))
2269 n |= test_akw_decrypt(context, "ed-192kw_256", compact, akw_key_192);
2274 akw_ptext, akw_key_256, compact, sizeof(compact)))
2275 n |= test_akw_decrypt(context, "ed-256kw_128", compact, akw_key_256);
2279 akw_ptext, akw_key_256, compact, sizeof(compact)))
2280 n |= test_akw_decrypt(context, "ed-256kw_192", compact, akw_key_256);
2284 akw_ptext, akw_key_256, compact, sizeof(compact)))
2285 n |= test_akw_decrypt(context, "ed-256kw_256", compact, akw_key_256);