Lines Matching refs:hash
94 static int _ecdsa_verify(struct ecc_ctx *ctx, const u64 *hash, const u64 *r, const u64 *s)
110 /* hash is given */
111 pr_devel("hash : %016llx %016llx ... %016llx\n",
112 hash[ndigits - 1], hash[ndigits - 2], hash[0]);
116 /* u1 = (hash * s1) mod n */
117 vli_mod_mult_slow(u1, hash, s1, curve->n, ndigits);
146 u64 hash[ECC_MAX_DIGITS];
167 /* if the hash is shorter then we will add leading zeros to fit to ndigits */
174 /* given hash is longer, we take the left-most bytes */
178 ecc_swap_digits((u64 *)rawhash, hash, ctx->curve->g.ndigits);
180 ret = _ecdsa_verify(ctx, hash, sig_ctx.r, sig_ctx.s);