Remove unneeded functions

parent e2a5bf63
......@@ -403,8 +403,8 @@ static void
curve25519_expand(bignum25519 out, const unsigned char in[32]) {
static const union { uint8_t b[2]; uint16_t s; } endian_check = {{1,0}};
uint32_t x0,x1,x2,x3,x4,x5,x6,x7;
if (endian_check.s == 1) {
/* Take care, this only works when in is aligned */
x0 = *(uint32_t *)(in + 0);
x1 = *(uint32_t *)(in + 4);
x2 = *(uint32_t *)(in + 8);
......
......@@ -327,26 +327,6 @@ STATIC void ge25519_scalarmult_vartime(ge25519 *r, const ge25519 *p1, const bign
}
}
DONNA_INLINE static void ge25519_move_conditional_niels(ge25519_niels *a, const ge25519_niels *b, uint32_t flag) {
curve25519_move_conditional(a->ysubx, b->ysubx, flag);
curve25519_move_conditional(a->xaddy, b->xaddy, flag);
curve25519_move_conditional(a->t2d, b->t2d, flag);
}
DONNA_INLINE static void ge25519_move_conditional_pniels(ge25519_pniels *a, const ge25519_pniels *b, uint32_t flag) {
curve25519_move_conditional(a->ysubx, b->ysubx, flag);
curve25519_move_conditional(a->xaddy, b->xaddy, flag);
curve25519_move_conditional(a->z, b->z, flag);
curve25519_move_conditional(a->t2d, b->t2d, flag);
}
DONNA_INLINE static void ge25519_move_conditional(ge25519 *a, const ge25519 *b, uint32_t flag) {
curve25519_move_conditional(a->x, b->x, flag);
curve25519_move_conditional(a->y, b->y, flag);
curve25519_move_conditional(a->z, b->z, flag);
curve25519_move_conditional(a->t, b->t, flag);
}
/*
* The following conditional move stuff uses conditional moves.
* I will check on which compilers this works, and provide suitable
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment