aboutsummaryrefslogtreecommitdiff
path: root/ssl/ssl_locl.h
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2016-08-05 10:58:52 +0100
committerMatt Caswell <matt@openssl.org>2016-08-16 10:24:57 +0100
commit31c34a3e2f2a2421f66f1ab2a1fcc98e28d01848 (patch)
tree3646203f333e7ba312b18b8981194ed7daf84f07 /ssl/ssl_locl.h
parente0421bd8b203b8c4e460c99740b5684600a503da (diff)
downloadopenssl-31c34a3e2f2a2421f66f1ab2a1fcc98e28d01848.zip
openssl-31c34a3e2f2a2421f66f1ab2a1fcc98e28d01848.tar.gz
openssl-31c34a3e2f2a2421f66f1ab2a1fcc98e28d01848.tar.bz2
Fix satsub64be() to unconditionally use 64-bit integers
Now we support (u)int64_t this can be very much simpler. Reviewed-by: Andy Polyakov <appro@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'ssl/ssl_locl.h')
-rw-r--r--ssl/ssl_locl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ssl/ssl_locl.h b/ssl/ssl_locl.h
index 8566760..46161a8 100644
--- a/ssl/ssl_locl.h
+++ b/ssl/ssl_locl.h
@@ -105,6 +105,16 @@
l|=((unsigned long)(*((c)++)))<< 8, \
l|=((unsigned long)(*((c)++))))
+# define n2l8(c,l) (l =((uint64_t)(*((c)++)))<<56, \
+ l|=((uint64_t)(*((c)++)))<<48, \
+ l|=((uint64_t)(*((c)++)))<<40, \
+ l|=((uint64_t)(*((c)++)))<<32, \
+ l|=((uint64_t)(*((c)++)))<<24, \
+ l|=((uint64_t)(*((c)++)))<<16, \
+ l|=((uint64_t)(*((c)++)))<< 8, \
+ l|=((uint64_t)(*((c)++))))
+
+
# define l2n(l,c) (*((c)++)=(unsigned char)(((l)>>24)&0xff), \
*((c)++)=(unsigned char)(((l)>>16)&0xff), \
*((c)++)=(unsigned char)(((l)>> 8)&0xff), \