diff options
author | lloyd <[email protected]> | 2010-06-16 01:21:33 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-06-16 01:21:33 +0000 |
commit | a87419f1304aa63b0b4e17f750f5dd2097cb8bf4 (patch) | |
tree | ae6c8b89d432394877e657b27b5b55fe8ef0cb4f /src/constructs/aont/package.cpp | |
parent | ecb574d32f4382326e94ad19e9d5baecc84a3c29 (diff) |
Remove some of the more extraneous namespaces
Diffstat (limited to 'src/constructs/aont/package.cpp')
-rw-r--r-- | src/constructs/aont/package.cpp | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/constructs/aont/package.cpp b/src/constructs/aont/package.cpp index 5d1e674ca..e10087060 100644 --- a/src/constructs/aont/package.cpp +++ b/src/constructs/aont/package.cpp @@ -14,12 +14,10 @@ namespace Botan { -namespace AllOrNothingTransform { - -void package(RandomNumberGenerator& rng, - BlockCipher* cipher, - const byte input[], u32bit input_len, - byte output[]) +void aont_package(RandomNumberGenerator& rng, + BlockCipher* cipher, + const byte input[], u32bit input_len, + byte output[]) { if(!cipher->valid_keylength(cipher->BLOCK_SIZE)) throw Invalid_Argument("AONT::package: Invalid cipher"); @@ -66,9 +64,9 @@ void package(RandomNumberGenerator& rng, xor_buf(final_block, package_key.begin(), cipher->BLOCK_SIZE); } -void unpackage(BlockCipher* cipher, - const byte input[], u32bit input_len, - byte output[]) +void aont_unpackage(BlockCipher* cipher, + const byte input[], u32bit input_len, + byte output[]) { if(!cipher->valid_keylength(cipher->BLOCK_SIZE)) throw Invalid_Argument("AONT::unpackage: Invalid cipher"); @@ -116,5 +114,3 @@ void unpackage(BlockCipher* cipher, } } - -} |