]> www.wagner.pp.ru Git - openssl-gost/engine.git/blobdiff - gosthash2012.h
gosthash2012: Change some byte (pointers) to union uint512_u
[openssl-gost/engine.git] / gosthash2012.h
index 51cb0fecfc9db3cfca665b5ae74fd17d6d2991cd..4d57e14f2f34c6cd4fc2ad84524a9b50404269e5 100644 (file)
@@ -48,6 +48,7 @@
 ALIGN(16)
 typedef union uint512_u {
     unsigned long long QWORD[8];
+    unsigned char B[64];
 } uint512_u;
 
 #include "gosthash2012_const.h"
@@ -55,7 +56,7 @@ typedef union uint512_u {
 
 /* GOST R 34.11-2012 hash context */
 typedef struct gost2012_hash_ctx {
-    unsigned char buffer[64];
+    union uint512_u buffer;
     union uint512_u h;
     union uint512_u N;
     union uint512_u Sigma;