diff options
Diffstat (limited to 'src/block/tea')
-rw-r--r-- | src/block/tea/tea.cpp | 28 | ||||
-rw-r--r-- | src/block/tea/tea.h | 16 |
2 files changed, 24 insertions, 20 deletions
diff --git a/src/block/tea/tea.cpp b/src/block/tea/tea.cpp index 7b79d86d1..2b4212d9c 100644 --- a/src/block/tea/tea.cpp +++ b/src/block/tea/tea.cpp @@ -1,16 +1,18 @@ -/************************************************* -* TEA Source File * -* (C) 1999-2007 Jack Lloyd * -*************************************************/ +/* +* TEA +* (C) 1999-2007 Jack Lloyd +* +* Distributed under the terms of the Botan license +*/ #include <botan/tea.h> #include <botan/loadstor.h> namespace Botan { -/************************************************* -* TEA Encryption * -*************************************************/ +/* +* TEA Encryption +*/ void TEA::enc(const byte in[], byte out[]) const { u32bit L = load_be<u32bit>(in, 0), R = load_be<u32bit>(in, 1); @@ -26,9 +28,9 @@ void TEA::enc(const byte in[], byte out[]) const store_be(out, L, R); } -/************************************************* -* TEA Decryption * -*************************************************/ +/* +* TEA Decryption +*/ void TEA::dec(const byte in[], byte out[]) const { u32bit L = load_be<u32bit>(in, 0), R = load_be<u32bit>(in, 1); @@ -44,9 +46,9 @@ void TEA::dec(const byte in[], byte out[]) const store_be(out, L, R); } -/************************************************* -* TEA Key Schedule * -*************************************************/ +/* +* TEA Key Schedule +*/ void TEA::key_schedule(const byte key[], u32bit) { for(u32bit j = 0; j != 4; ++j) diff --git a/src/block/tea/tea.h b/src/block/tea/tea.h index b751eda4e..8ddf3e330 100644 --- a/src/block/tea/tea.h +++ b/src/block/tea/tea.h @@ -1,7 +1,9 @@ -/************************************************* -* TEA Header File * -* (C) 1999-2007 Jack Lloyd * -*************************************************/ +/* +* TEA +* (C) 1999-2007 Jack Lloyd +* +* Distributed under the terms of the Botan license +*/ #ifndef BOTAN_TEA_H__ #define BOTAN_TEA_H__ @@ -10,9 +12,9 @@ namespace Botan { -/************************************************* -* TEA * -*************************************************/ +/* +* TEA +*/ class BOTAN_DLL TEA : public BlockCipher { public: |