OpenSSL 1.1.1 Compiler Warnings

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

OpenSSL 1.1.1 Compiler Warnings

Jay Foster-2
With the recent release of OpenSSL 1.1.1, I tried to cross compile it
for a 32-bit ARM architecture.  I observe many compiler warnings similar
to the following:

crypto/ec/curve448/curve448.c:30: warning: integer constant is too large
for 'long' type
crypto/ec/curve448/curve448.c:30: warning: integer constant is too large
for 'long' type
crypto/ec/curve448/curve448.c:30: warning: integer constant is too large
for 'long' type
crypto/ec/curve448/curve448.c:30: warning: integer constant is too large
for 'long' type

crypto/ec/curve448/curve448_tables.c:19: warning: integer constant is
too large for 'long' type
crypto/ec/curve448/curve448_tables.c:19: warning: integer constant is
too large for 'long' type
crypto/ec/curve448/curve448_tables.c:19: warning: integer constant is
too large for 'long' type
crypto/ec/curve448/curve448_tables.c:19: warning: integer constant is
too large for 'long' type
crypto/ec/curve448/curve448_tables.c:19: warning: integer constant is
too large for 'long' type
crypto/ec/curve448/curve448_tables.c:19: warning: integer constant is
too large for 'long' type
crypto/ec/curve448/curve448_tables.c:19: warning: integer constant is
too large for 'long' type
crypto/ec/curve448/curve448_tables.c:19: warning: integer constant is
too large for 'long' type

crypto/ec/curve448/f_generic.c:15: warning: integer constant is too
large for 'long' type
crypto/ec/curve448/f_generic.c:15: warning: integer constant is too
large for 'long' type
crypto/ec/curve448/f_generic.c:15: warning: integer constant is too
large for 'long' type
crypto/ec/curve448/f_generic.c:15: warning: integer constant is too
large for 'long' type
crypto/ec/curve448/f_generic.c:15: warning: integer constant is too
large for 'long' type

crypto/ec/curve448/scalar.c:17: warning: integer constant is too large
for 'long' type
crypto/ec/curve448/scalar.c:21: warning: integer constant is too large
for 'long' type
crypto/ec/curve448/scalar.c:21: warning: integer constant is too large
for 'long' type
crypto/ec/curve448/scalar.c:21: warning: integer constant is too large
for 'long' type

There were many many more of these, which I omitted for brevity.  I
looked at the source and it does look like the code is trying to stuff a
64-bit constant into a 32-bit variable.  Does OpenSSL-1.1.1 work on
32-bit architectures?

Jay
--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
Reply | Threaded
Open this post in threaded view
|

Re: OpenSSL 1.1.1 Compiler Warnings

Matt Caswell-2


On 17/09/18 19:12, Jay Foster wrote:
> There were many many more of these, which I omitted for brevity.  I
> looked at the source and it does look like the code is trying to stuff a
> 64-bit constant into a 32-bit variable.  Does OpenSSL-1.1.1 work on
> 32-bit architectures?

Yes. It should work just fine on 32-bit.

Matt

--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users