diff options
author | lloyd <[email protected]> | 2007-03-01 00:53:20 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2007-03-01 00:53:20 +0000 |
commit | afcd75d5f60be62e7a9dfc8e1a1cda3fc3d0762e (patch) | |
tree | eaaa21bb757bff25e63387576438333b64f46cef /include | |
parent | fe17e1b8f9f73fcc7664b1f880677f45c8d6f1ea (diff) |
Inline the round functions of RC2. This is about 15% faster on my machine,
and actually reduced the total line count.
Diffstat (limited to 'include')
-rw-r--r-- | include/rc2.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/rc2.h b/include/rc2.h index c29ba0d66..e83b44eb2 100644 --- a/include/rc2.h +++ b/include/rc2.h @@ -26,10 +26,7 @@ class RC2 : public BlockCipher void enc(const byte[], byte[]) const; void dec(const byte[], byte[]) const; void key(const byte[], u32bit); - void mash(u16bit&, u16bit&, u16bit&, u16bit&) const; - void rmash(u16bit&, u16bit&, u16bit&, u16bit&) const; - void mix(u16bit&, u16bit&, u16bit&, u16bit&, u32bit) const; - void rmix(u16bit&, u16bit&, u16bit&, u16bit&, u32bit) const; + SecureBuffer<u16bit, 64> K; }; |