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-05-02 17:54:02 +02:00
parent 809a9f9d7e
commit 88c568a035
4 changed files with 4 additions and 34 deletions

View File

@ -1,7 +1,7 @@
#include "private/quirks.h"
/*
Ignores top bit of h.
Ignores top bit of s.
*/
void

View File

@ -1,7 +1,7 @@
#include "private/quirks.h"
/*
Ignores top bit of h.
Ignores top bit of s.
*/
void

View File

@ -274,27 +274,7 @@ fe25519_cswap(fe25519 f, fe25519 g, unsigned int b)
static inline void
fe25519_copy(fe25519 h, const fe25519 f)
{
int32_t f0 = f[0];
int32_t f1 = f[1];
int32_t f2 = f[2];
int32_t f3 = f[3];
int32_t f4 = f[4];
int32_t f5 = f[5];
int32_t f6 = f[6];
int32_t f7 = f[7];
int32_t f8 = f[8];
int32_t f9 = f[9];
h[0] = f0;
h[1] = f1;
h[2] = f2;
h[3] = f3;
h[4] = f4;
h[5] = f5;
h[6] = f6;
h[7] = f7;
h[8] = f8;
h[9] = f9;
memcpy(h, f, 10 * 4);
}
/*

View File

@ -192,17 +192,7 @@ fe25519_cswap(fe25519 f, fe25519 g, unsigned int b)
static inline void
fe25519_copy(fe25519 h, const fe25519 f)
{
uint64_t f0 = f[0];
uint64_t f1 = f[1];
uint64_t f2 = f[2];
uint64_t f3 = f[3];
uint64_t f4 = f[4];
h[0] = f0;
h[1] = f1;
h[2] = f2;
h[3] = f3;
h[4] = f4;
memcpy(h, f, 5 * 8);
}
/*