… | |
… | |
34 | #include <cstring> |
34 | #include <cstring> |
35 | #include <openssl/rand.h> |
35 | #include <openssl/rand.h> |
36 | |
36 | |
37 | #include "util.h" |
37 | #include "util.h" |
38 | #include "curve25519.h" |
38 | #include "curve25519.h" |
|
|
39 | |
|
|
40 | #if __GNUC__ >= 4 && __SIZEOF_LONG__ == 8 |
|
|
41 | #include "curve25519-donna-c64.c" |
|
|
42 | #else |
39 | #include "curve25519-donna.c" |
43 | #include "curve25519-donna.c" |
|
|
44 | #endif |
40 | |
45 | |
41 | static void |
46 | static void |
42 | curve25519_derive (const curve25519_key &a, curve25519_key &b) |
47 | curve25519_derive (const curve25519_key &a, curve25519_key &b) |
43 | { |
48 | { |
44 | static const curve25519_key basepoint = { 9 }; |
49 | static const curve25519_key basepoint = { 9 }; |