summaryrefslogtreecommitdiff
path: root/kalyna.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2020-04-13 19:02:39 -0400
committerJeffrey Walton <noloader@gmail.com>2020-04-13 19:02:39 -0400
commit950a5a2ff459d476fabddf87f61ed67edd9985b3 (patch)
tree5d681e7c2b5d42399840e3d8b724dd68bb50b371 /kalyna.h
parent2c3dd14a1ed56a880107616948074ae6ffccea21 (diff)
downloadcryptopp-git-950a5a2ff459d476fabddf87f61ed67edd9985b3.tar.gz
Fix aliasing violations in Kalyna
Diffstat (limited to 'kalyna.h')
-rw-r--r--kalyna.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/kalyna.h b/kalyna.h
index cf009eea..277fccb5 100644
--- a/kalyna.h
+++ b/kalyna.h
@@ -106,8 +106,8 @@ public:
protected:
void SetKey_22(const word64 key[2]);
void SetKey_24(const word64 key[4]);
- void ProcessBlock_22(const word64 inBlock[2], const word64 xorBlock[2], word64 outBlock[2]) const;
- void ProcessBlock_24(const word64 inBlock[2], const word64 xorBlock[2] ,word64 outBlock[2]) const;
+ void ProcessBlock_22(const byte *inBlock, const byte *xorBlock, byte *outBlock) const;
+ void ProcessBlock_24(const byte *inBlock, const byte *xorBlock, byte *outBlock) const;
};
typedef BlockCipherFinal<ENCRYPTION, Base> Encryption;
@@ -152,8 +152,8 @@ public:
protected:
void SetKey_44(const word64 key[4]);
void SetKey_48(const word64 key[8]);
- void ProcessBlock_44(const word64 inBlock[4], const word64 xorBlock[4], word64 outBlock[4]) const;
- void ProcessBlock_48(const word64 inBlock[4], const word64 xorBlock[4], word64 outBlock[4]) const;
+ void ProcessBlock_44(const byte *inBlock, const byte *xorBlock, byte *outBlock) const;
+ void ProcessBlock_48(const byte *inBlock, const byte *xorBlock, byte *outBlock) const;
};
typedef BlockCipherFinal<ENCRYPTION, Base> Encryption;
@@ -197,7 +197,7 @@ public:
protected:
void SetKey_88(const word64 key[8]);
- void ProcessBlock_88(const word64 inBlock[8], const word64 xorBlock[8], word64 outBlock[8]) const;
+ void ProcessBlock_88(const byte *inBlock, const byte *xorBlock, byte *outBlock) const;
};
typedef BlockCipherFinal<ENCRYPTION, Base> Encryption;