[openssl-commits] [openssl] master update

Richard Levitte levitte at openssl.org
Wed May 23 09:57:19 UTC 2018


The branch master has been updated
       via  b501ab6bee469eafb8b67ac38896bb689ab632fa (commit)
       via  8cc1dc3632ee685f7609c4923c7fb6e75154ea0d (commit)
      from  04225915731e913b4ad077aff6b6d7bbeb8b916b (commit)


- Log -----------------------------------------------------------------
commit b501ab6bee469eafb8b67ac38896bb689ab632fa
Author: Richard Levitte <levitte at openssl.org>
Date:   Tue May 22 23:09:01 2018 +0200

    INSTALL: Provide better documentation for enable-ec_nistp_64_gcc_128
    
    Reviewed-by: Andy Polyakov <appro at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/6328)

commit 8cc1dc3632ee685f7609c4923c7fb6e75154ea0d
Author: Richard Levitte <levitte at openssl.org>
Date:   Tue May 22 13:57:29 2018 +0200

    Better error code when lacking __SIZEOF_INT128__
    
    Fixes #6327
    
    Reviewed-by: Andy Polyakov <appro at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/6328)

-----------------------------------------------------------------------

Summary of changes:
 INSTALL                  | 9 +++++++--
 crypto/ec/ecp_nistp224.c | 2 +-
 crypto/ec/ecp_nistp256.c | 2 +-
 crypto/ec/ecp_nistp521.c | 2 +-
 4 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/INSTALL b/INSTALL
index a0ebef9..52e3f2a 100644
--- a/INSTALL
+++ b/INSTALL
@@ -336,8 +336,13 @@
 
   enable-ec_nistp_64_gcc_128
                    Enable support for optimised implementations of some commonly
-                   used NIST elliptic curves. This is only supported on some
-                   platforms.
+                   used NIST elliptic curves.
+                   This is only supported on platforms:
+                   - with little-endian storage of non-byte types
+                   - that tolerate misaligned memory references
+                   - where the compiler:
+                     - supports the non-standard type __uint128_t
+                     - defines the built-in macro __SIZEOF_INT128__
 
   enable-egd
                    Build support for gathering entropy from EGD (Entropy
diff --git a/crypto/ec/ecp_nistp224.c b/crypto/ec/ecp_nistp224.c
index 5b8da3f..364b7f2 100644
--- a/crypto/ec/ecp_nistp224.c
+++ b/crypto/ec/ecp_nistp224.c
@@ -45,7 +45,7 @@ NON_EMPTY_TRANSLATION_UNIT
 typedef __uint128_t uint128_t;  /* nonstandard; implemented by gcc on 64-bit
                                  * platforms */
 # else
-#  error "Need GCC 4.0 or later to define type uint128_t"
+#  error "Your compiler doesn't appear to support 128-bit integer types"
 # endif
 
 typedef uint8_t u8;
diff --git a/crypto/ec/ecp_nistp256.c b/crypto/ec/ecp_nistp256.c
index 5eee25c..19caa03 100644
--- a/crypto/ec/ecp_nistp256.c
+++ b/crypto/ec/ecp_nistp256.c
@@ -47,7 +47,7 @@ typedef __uint128_t uint128_t;  /* nonstandard; implemented by gcc on 64-bit
                                  * platforms */
 typedef __int128_t int128_t;
 # else
-#  error "Need GCC 4.0 or later to define type uint128_t"
+#  error "Your compiler doesn't appear to support 128-bit integer types"
 # endif
 
 typedef uint8_t u8;
diff --git a/crypto/ec/ecp_nistp521.c b/crypto/ec/ecp_nistp521.c
index 97846f8..3f68ae3 100644
--- a/crypto/ec/ecp_nistp521.c
+++ b/crypto/ec/ecp_nistp521.c
@@ -45,7 +45,7 @@ NON_EMPTY_TRANSLATION_UNIT
 typedef __uint128_t uint128_t;  /* nonstandard; implemented by gcc on 64-bit
                                  * platforms */
 # else
-#  error "Need GCC 4.0 or later to define type uint128_t"
+#  error "Your compiler doesn't appear to support 128-bit integer types"
 # endif
 
 typedef uint8_t u8;


More information about the openssl-commits mailing list