Lines Matching defs:protected
34 "protected",
103 * and we can't do it until we see the protected alg.
471 * - Everything needed in the header part must go in the protected header
560 * into out. Only the plaintext protected header
575 * temporary JWS protected header plaintext
600 p1 += lws_snprintf(p1, lws_ptr_diff_size_t(end1, p1), "{\"protected\":\"");
604 lwsl_notice("%s: failed to encode protected\n", __func__);
633 * taking the b64 protected header and the b64 payload, sign them
671 * "protected":
700 * "protected": "eyJlbmMiOiJBMTI4Q0JDLUhTMjU2In0",
710 * "protected":"<integrity-protected header contents>",
711 * "unprotected":<non-integrity-protected header contents>,
712 * "header":<more non-integrity-protected header contents>,
724 char buf[3072], *p1, *end1, protected[128];
742 * The protected header is b64url encoding of the JOSE header part
745 plen = lws_snprintf(protected, sizeof(protected),
749 p1 += lws_snprintf(p1, lws_ptr_diff_size_t(end1, p1), "{\"protected\":\"");
751 n = lws_jws_base64_enc(protected, (size_t)plen, p1, lws_ptr_diff_size_t(end1, p1));
753 lwsl_notice("%s: failed to encode protected\n", __func__);