1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-23 20:15:19 -07:00
This commit is contained in:
Frank Denis 2020-10-06 12:58:15 +02:00
parent e945207b77
commit 29041d8ba1

View File

@ -116,6 +116,10 @@ fe25519_invert(fe25519 out, const fe25519 z)
fe25519_mul(out, t1, t0); fe25519_mul(out, t1, t0);
} }
/*
* returns z^((p-5)/8) = z^(2^252-3)
* used to compute square roots since we have p=5 (mod 8); see Cohen and Frey.
*/
static void static void
fe25519_pow22523(fe25519 out, const fe25519 z) fe25519_pow22523(fe25519 out, const fe25519 z)
{ {