aboutsummaryrefslogtreecommitdiffstats
path: root/src/constructs/aont/package.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-06-16 01:21:33 +0000
committerlloyd <[email protected]>2010-06-16 01:21:33 +0000
commita87419f1304aa63b0b4e17f750f5dd2097cb8bf4 (patch)
treeae6c8b89d432394877e657b27b5b55fe8ef0cb4f /src/constructs/aont/package.cpp
parentecb574d32f4382326e94ad19e9d5baecc84a3c29 (diff)
Remove some of the more extraneous namespaces
Diffstat (limited to 'src/constructs/aont/package.cpp')
-rw-r--r--src/constructs/aont/package.cpp18
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,
}
}
-
-}