Lines Matching refs:ge
179 gcry_error_t ge;
184 ge = gcry_mpi_scan(&s, GCRYMPI_FMT_USG, signature, signature_size, NULL);
185 if (ge != 0) {
190 ge = gcry_mpi_scan(&e, GCRYMPI_FMT_USG, exponent, exponent_size, NULL);
191 if (ge != 0) {
196 ge = gcry_mpi_scan(&n, GCRYMPI_FMT_USG, modulus, modulus_size, NULL);
197 if (ge != 0) {
202 ge = gcry_sexp_build(&signature_sexp,
207 if (ge != 0) {
212 ge = gcry_sexp_build(&data_sexp,
218 if (ge != 0) {
223 ge = gcry_sexp_build(&public_key_sexp,
228 if (ge != 0) {
233 ge = gcry_pk_verify(signature_sexp, data_sexp, public_key_sexp);
234 if (gpg_err_code(ge) == GPG_ERR_BAD_SIGNATURE)
236 else if (ge != 0) {
237 log_debug("RSA signature check failed: %s", gpg_strerror(ge));
326 gcry_error_t ge;
331 ge = gcry_mpi_scan(&r, GCRYMPI_FMT_USG, signature_r, signature_r_size, NULL);
332 if (ge != 0) {
337 ge = gcry_mpi_scan(&s, GCRYMPI_FMT_USG, signature_s, signature_s_size, NULL);
338 if (ge != 0) {
343 ge = gcry_mpi_scan(&q, GCRYMPI_FMT_USG, key, key_size, NULL);
344 if (ge != 0) {
349 ge = gcry_sexp_build(&signature_sexp,
354 if (ge != 0) {
359 ge = gcry_sexp_build(&data_sexp,
365 if (ge != 0) {
370 ge = gcry_sexp_build(&public_key_sexp,
375 if (ge != 0) {
380 ge = gcry_pk_verify(signature_sexp, data_sexp, public_key_sexp);
381 if (gpg_err_code(ge) == GPG_ERR_BAD_SIGNATURE)
383 else if (ge != 0) {
384 log_debug("ECDSA signature check failed: %s", gpg_strerror(ge));