Lines Matching refs:jose
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()
598 jose.alg->curve_name)) in lws_jws_sig_confirm()
620 if (lws_genhash_init(&hash_ctx, jose.alg->hash_type) || in lws_jws_sig_confirm()
632 h_len = lws_genhash_size(jose.alg->hash_type); in lws_jws_sig_confirm()
647 jose.alg->hash_type, in lws_jws_sig_confirm()
648 jose.alg->keybits_fixed, in lws_jws_sig_confirm()
740 lws_jws_sign_from_b64(struct lws_jose *jose, struct lws_jws *jws, in lws_jws_sign_from_b64() argument
751 if (jose->alg->hash_type == LWS_GENHASH_TYPE_UNKNOWN && in lws_jws_sign_from_b64()
752 jose->alg->hmac_type == LWS_GENHMAC_TYPE_UNKNOWN && in lws_jws_sign_from_b64()
753 !strcmp(jose->alg->alg, "none")) in lws_jws_sign_from_b64()
756 if (lws_genhash_init(&hash_ctx, jose->alg->hash_type) || in lws_jws_sign_from_b64()
768 switch (jose->alg->algtype_signing) { in lws_jws_sign_from_b64()
790 n = lws_genrsa_hash_sign(&rsactx, digest, jose->alg->hash_type, in lws_jws_sign_from_b64()
810 lws_genhash_size(jose->alg->hash_type), in lws_jws_sign_from_b64()
834 jose->alg->curve_name)) in lws_jws_sign_from_b64()
848 m = lws_gencrypto_bits_to_bytes(jose->alg->keybits_fixed) * 2; in lws_jws_sign_from_b64()
854 jose->alg->hash_type, in lws_jws_sign_from_b64()
855 jose->alg->keybits_fixed, in lws_jws_sign_from_b64()