Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/crypto/ec
diff options
context:
space:
mode:
authorBrian Smith <brian@briansmith.org>2016-01-27 04:16:37 +0300
committerDavid Benjamin <davidben@google.com>2016-01-28 01:15:04 +0300
commit24e428899b96da6b569bc1a6f898f53acb008e75 (patch)
treea5b2bf828b3c55736bc089e0e4dae9e83ccebd08 /crypto/ec
parentf547007332eece528542835be35424d0a052a1a6 (diff)
Define `int128_t` and `uint128_t` in one place.
Change-Id: Ia93130aadf319eaba1b6f2ec2896a4c50d9e8ede Reviewed-on: https://boringssl-review.googlesource.com/6975 Reviewed-by: David Benjamin <davidben@google.com>
Diffstat (limited to 'crypto/ec')
-rw-r--r--crypto/ec/p224-64.c3
-rw-r--r--crypto/ec/p256-64.c3
2 files changed, 3 insertions, 3 deletions
diff --git a/crypto/ec/p224-64.c b/crypto/ec/p224-64.c
index e026fc47..8e93850d 100644
--- a/crypto/ec/p224-64.c
+++ b/crypto/ec/p224-64.c
@@ -31,6 +31,7 @@
#include <string.h>
#include "internal.h"
+#include "../internal.h"
typedef uint8_t u8;
@@ -50,7 +51,7 @@ typedef int64_t s64;
* to the unique minimal representation at the end of the computation. */
typedef uint64_t limb;
-typedef __uint128_t widelimb;
+typedef uint128_t widelimb;
typedef limb felem[4];
typedef widelimb widefelem[7];
diff --git a/crypto/ec/p256-64.c b/crypto/ec/p256-64.c
index 3d7ace1a..29e9a204 100644
--- a/crypto/ec/p256-64.c
+++ b/crypto/ec/p256-64.c
@@ -32,13 +32,12 @@
#include <string.h>
#include "internal.h"
+#include "../internal.h"
typedef uint8_t u8;
typedef uint64_t u64;
typedef int64_t s64;
-typedef __uint128_t uint128_t;
-typedef __int128_t int128_t;
/* The underlying field. P256 operates over GF(2^256-2^224+2^192+2^96-1). We
* can serialise an element of this field into 32 bytes. We call this an