Loading src/ext/README +1 −2 Original line number Diff line number Diff line Loading @@ -39,5 +39,4 @@ tor_queue.h curve25519_donna/*.c A copy of Adam Langley's curve25519-donna mostly-portable implementations of curve25519, with a couple of portability changes which Adam hasn't merged yet. implementations of curve25519. src/ext/curve25519_donna/curve25519-donna-c64.c +3 −6 Original line number Diff line number Diff line Loading @@ -188,8 +188,7 @@ fsquare_times(felem output, const felem in, limb count) { /* Load a little-endian 64-bit number */ static limb load_limb(const u8 *in) { load_limb(const u8 *in) { return ((limb)in[0]) | (((limb)in[1]) << 8) | Loading @@ -202,8 +201,7 @@ load_limb(const u8 *in) } static void store_limb(u8 *out, limb in) { store_limb(u8 *out, limb in) { out[0] = in & 0xff; out[1] = (in >> 8) & 0xff; out[2] = (in >> 16) & 0xff; Loading @@ -216,8 +214,7 @@ store_limb(u8 *out, limb in) /* Take a little-endian, 32-byte number and expand it into polynomial form */ static void fexpand(limb *output, const u8 *in) { fexpand(limb *output, const u8 *in) { output[0] = load_limb(in) & 0x7ffffffffffff; output[1] = (load_limb(in+6) >> 3) & 0x7ffffffffffff; output[2] = (load_limb(in+12) >> 6) & 0x7ffffffffffff; Loading Loading
src/ext/README +1 −2 Original line number Diff line number Diff line Loading @@ -39,5 +39,4 @@ tor_queue.h curve25519_donna/*.c A copy of Adam Langley's curve25519-donna mostly-portable implementations of curve25519, with a couple of portability changes which Adam hasn't merged yet. implementations of curve25519.
src/ext/curve25519_donna/curve25519-donna-c64.c +3 −6 Original line number Diff line number Diff line Loading @@ -188,8 +188,7 @@ fsquare_times(felem output, const felem in, limb count) { /* Load a little-endian 64-bit number */ static limb load_limb(const u8 *in) { load_limb(const u8 *in) { return ((limb)in[0]) | (((limb)in[1]) << 8) | Loading @@ -202,8 +201,7 @@ load_limb(const u8 *in) } static void store_limb(u8 *out, limb in) { store_limb(u8 *out, limb in) { out[0] = in & 0xff; out[1] = (in >> 8) & 0xff; out[2] = (in >> 16) & 0xff; Loading @@ -216,8 +214,7 @@ store_limb(u8 *out, limb in) /* Take a little-endian, 32-byte number and expand it into polynomial form */ static void fexpand(limb *output, const u8 *in) { fexpand(limb *output, const u8 *in) { output[0] = load_limb(in) & 0x7ffffffffffff; output[1] = (load_limb(in+6) >> 3) & 0x7ffffffffffff; output[2] = (load_limb(in+12) >> 6) & 0x7ffffffffffff; Loading