Lines Matching refs:jose
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, (int)strlen(test1), temp, in test_jws_HS256()
135 &temp_len) < 0 || !jose.alg) { in test_jws_HS256()
141 if (strcmp(jose.alg->alg, "HS256")) { in test_jws_HS256()
179 if (lws_genhmac_init(&ctx, jose.alg->hmac_type, in test_jws_HS256()
209 lws_jose_destroy(&jose); in test_jws_HS256()
223 lws_jose_destroy(&jose); in test_jws_HS256()
279 struct lws_jose jose; in test_jws_RS256() local
285 lws_jose_init(&jose); in test_jws_RS256()
290 if (lws_gencrypto_jws_alg_to_definition("RS256", &jose.alg)) { in test_jws_RS256()
338 n = lws_jws_sign_from_b64(&jose, &jws, in test_jws_RS256()
414 struct lws_jose jose; in test_jws_ES256() local
422 lws_jose_init(&jose); in test_jws_ES256()
449 if (lws_jws_parse_jose(&jose, jws.map.buf[LJWS_JOSE], in test_jws_ES256()
457 if (strcmp(jose.alg->alg, "ES256")) { in test_jws_ES256()
497 if (lws_genhash_init(&hash_ctx, jose.alg->hash_type) || in test_jws_ES256()
512 n = lws_jws_sign_from_b64(&jose, &jws, in test_jws_ES256()
538 lws_jose_destroy(&jose); in test_jws_ES256()
576 struct lws_jose jose; in test_jws_ES512() local
584 lws_jose_init(&jose); in test_jws_ES512()
611 if (lws_jws_parse_jose(&jose, jws.map.buf[LJWS_JOSE], in test_jws_ES512()
619 if (strcmp(jose.alg->alg, "ES512")) { in test_jws_ES512()
659 if (lws_genhash_init(&hash_ctx, jose.alg->hash_type) || in test_jws_ES512()
672 n = lws_jws_sign_from_b64(&jose, &jws, in test_jws_ES512()
732 lws_jose_destroy(&jose); in test_jws_ES512()