From 5f83d344e49a6d62cd8989d9fb8f8ca80ed48fc1 Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 7 Sep 2010 23:37:14 +0000 Subject: Oops... renamed this quite a while ago, never updated example --- doc/examples/package.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/examples/package.cpp b/doc/examples/package.cpp index bdb5b78c0..b907ac3ae 100644 --- a/doc/examples/package.cpp +++ b/doc/examples/package.cpp @@ -53,15 +53,15 @@ int main(int argc, char* argv[]) std::vector input = slurp_file(argv[1]); std::vector output(input.size() + cipher->BLOCK_SIZE); - AllOrNothingTransform::package(rng, new Serpent, - &input[0], input.size(), - &output[0]); + aont_package(rng, new Serpent, + &input[0], input.size(), + &output[0]); std::vector unpackage_output(output.size() - cipher->BLOCK_SIZE); - AllOrNothingTransform::unpackage(new Serpent, - &output[0], output.size(), - &unpackage_output[0]); + aont_unpackage(new Serpent, + &output[0], output.size(), + &unpackage_output[0]); if(unpackage_output == input) std::cout << "Package/unpackage worked\n"; -- cgit v1.2.3