Home
last modified time | relevance | path

Searched refs:montgomery_mul (Results 1 – 1 of 1) sorted by relevance

/u-boot/lib/rsa/
A Drsa-mod-exp.c124 static void montgomery_mul(const struct rsa_public_key *key, in montgomery_mul() function
219 montgomery_mul(key, acc, val, key->rr); /* acc = a * RR / R mod n */ in pow_mod()
224 montgomery_mul(key, tmp, acc, acc); /* tmp = acc^2 / R mod n */ in pow_mod()
228 montgomery_mul(key, acc, tmp, a_scaled); in pow_mod()
236 montgomery_mul(key, tmp, acc, acc); /* tmp = acc^2 / R mod n */ in pow_mod()
237 montgomery_mul(key, acc, tmp, val); /* acc = tmp * a / R mod M */ in pow_mod()
345 montgomery_mul(key, acc, val, key->rr); /* axx = a * RR / R mod M */ in zynq_pow_mod()
347 montgomery_mul(key, tmp, acc, acc); /* tmp = acc^2 / R mod M */ in zynq_pow_mod()
348 montgomery_mul(key, acc, tmp, tmp); /* acc = tmp^2 / R mod M */ in zynq_pow_mod()
350 montgomery_mul(key, result, acc, val); /* result = XX * a / R mod M */ in zynq_pow_mod()

Completed in 2 milliseconds