Lines Matching refs:ge
158 gcry_error_t ge; in dnssec_rsa_verify_raw() local
162 ge = gcry_mpi_scan(&s, GCRYMPI_FMT_USG, signature, signature_size, NULL); in dnssec_rsa_verify_raw()
163 if (ge != 0) { in dnssec_rsa_verify_raw()
168 ge = gcry_mpi_scan(&e, GCRYMPI_FMT_USG, exponent, exponent_size, NULL); in dnssec_rsa_verify_raw()
169 if (ge != 0) { in dnssec_rsa_verify_raw()
174 ge = gcry_mpi_scan(&n, GCRYMPI_FMT_USG, modulus, modulus_size, NULL); in dnssec_rsa_verify_raw()
175 if (ge != 0) { in dnssec_rsa_verify_raw()
180 ge = gcry_sexp_build(&signature_sexp, in dnssec_rsa_verify_raw()
185 if (ge != 0) { in dnssec_rsa_verify_raw()
190 ge = gcry_sexp_build(&data_sexp, in dnssec_rsa_verify_raw()
196 if (ge != 0) { in dnssec_rsa_verify_raw()
201 ge = gcry_sexp_build(&public_key_sexp, in dnssec_rsa_verify_raw()
206 if (ge != 0) { in dnssec_rsa_verify_raw()
211 ge = gcry_pk_verify(signature_sexp, data_sexp, public_key_sexp); in dnssec_rsa_verify_raw()
212 if (gpg_err_code(ge) == GPG_ERR_BAD_SIGNATURE) in dnssec_rsa_verify_raw()
214 else if (ge != 0) in dnssec_rsa_verify_raw()
216 "RSA signature check failed: %s", gpg_strerror(ge)); in dnssec_rsa_verify_raw()
370 gcry_error_t ge; in dnssec_ecdsa_verify_raw() local
374 ge = gcry_mpi_scan(&r, GCRYMPI_FMT_USG, signature_r, signature_r_size, NULL); in dnssec_ecdsa_verify_raw()
375 if (ge != 0) { in dnssec_ecdsa_verify_raw()
380 ge = gcry_mpi_scan(&s, GCRYMPI_FMT_USG, signature_s, signature_s_size, NULL); in dnssec_ecdsa_verify_raw()
381 if (ge != 0) { in dnssec_ecdsa_verify_raw()
386 ge = gcry_mpi_scan(&q, GCRYMPI_FMT_USG, key, key_size, NULL); in dnssec_ecdsa_verify_raw()
387 if (ge != 0) { in dnssec_ecdsa_verify_raw()
392 ge = gcry_sexp_build(&signature_sexp, in dnssec_ecdsa_verify_raw()
397 if (ge != 0) { in dnssec_ecdsa_verify_raw()
402 ge = gcry_sexp_build(&data_sexp, in dnssec_ecdsa_verify_raw()
408 if (ge != 0) { in dnssec_ecdsa_verify_raw()
413 ge = gcry_sexp_build(&public_key_sexp, in dnssec_ecdsa_verify_raw()
418 if (ge != 0) { in dnssec_ecdsa_verify_raw()
423 ge = gcry_pk_verify(signature_sexp, data_sexp, public_key_sexp); in dnssec_ecdsa_verify_raw()
424 if (gpg_err_code(ge) == GPG_ERR_BAD_SIGNATURE) in dnssec_ecdsa_verify_raw()
426 else if (ge != 0) { in dnssec_ecdsa_verify_raw()
427 log_debug("ECDSA signature check failed: %s", gpg_strerror(ge)); in dnssec_ecdsa_verify_raw()
541 gcry_error_t ge; in dnssec_eddsa_verify_raw()
546 ge = gcry_sexp_build(&signature_sexp, in dnssec_eddsa_verify_raw()
553 if (ge != 0) { in dnssec_eddsa_verify_raw()
558 ge = gcry_sexp_build(&data_sexp, in dnssec_eddsa_verify_raw()
563 if (ge != 0) { in dnssec_eddsa_verify_raw()
568 ge = gcry_sexp_build(&public_key_sexp, in dnssec_eddsa_verify_raw()
574 if (ge != 0) { in dnssec_eddsa_verify_raw()
579 ge = gcry_pk_verify(signature_sexp, data_sexp, public_key_sexp); in dnssec_eddsa_verify_raw()
580 if (gpg_err_code(ge) == GPG_ERR_BAD_SIGNATURE) in dnssec_eddsa_verify_raw()
582 else if (ge != 0) in dnssec_eddsa_verify_raw()
584 "EdDSA signature check failed: %s", gpg_strerror(ge)); in dnssec_eddsa_verify_raw()