Lines Matching refs:err
36 int err;
47 if ((err = mp_init_multi(&w, &v, &u1, &u2, NULL)) != CRYPT_OK) {
48 return err;
53 err = CRYPT_INVALID_PACKET;
58 if ((err = mp_invmod(s, key->q, w)) != CRYPT_OK) { goto error; }
61 if ((err = mp_read_unsigned_bin(u1, (unsigned char *)hash, hashlen)) != CRYPT_OK) { goto error; }
62 if ((err = mp_mulmod(u1, w, key->q, u1)) != CRYPT_OK) { goto error; }
65 if ((err = mp_mulmod(r, w, key->q, u2)) != CRYPT_OK) { goto error; }
68 if ((err = mp_exptmod(key->g, u1, key->p, u1)) != CRYPT_OK) { goto error; }
69 if ((err = mp_exptmod(key->y, u2, key->p, u2)) != CRYPT_OK) { goto error; }
70 if ((err = mp_mulmod(u1, u2, key->p, v)) != CRYPT_OK) { goto error; }
71 if ((err = mp_mod(v, key->q, v)) != CRYPT_OK) { goto error; }
78 err = CRYPT_OK;
81 return err;
98 int err;
101 if ((err = mp_init_multi(&r, &s, NULL)) != CRYPT_OK) {
106 if ((err = der_decode_sequence_multi(sig, siglen,
114 err = dsa_verify_hash_raw(r, s, hash, hashlen, stat, key);
118 return err;