Searched refs:montgomery_mul (Results 1 – 1 of 1) sorted by relevance
/external/u-boot/lib/rsa/ |
D | rsa-mod-exp.c | 115 static void montgomery_mul(const struct rsa_public_key *key, in montgomery_mul() function 210 montgomery_mul(key, acc, val, key->rr); /* acc = a * RR / R mod n */ in pow_mod() 215 montgomery_mul(key, tmp, acc, acc); /* tmp = acc^2 / R mod n */ in pow_mod() 219 montgomery_mul(key, acc, tmp, a_scaled); in pow_mod() 227 montgomery_mul(key, tmp, acc, acc); /* tmp = acc^2 / R mod n */ in pow_mod() 228 montgomery_mul(key, acc, tmp, val); /* acc = tmp * a / R mod M */ in pow_mod()
|