aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <lloyd@randombit.net>2010-09-07 23:37:14 +0000
committerlloyd <lloyd@randombit.net>2010-09-07 23:37:14 +0000
commit5f83d344e49a6d62cd8989d9fb8f8ca80ed48fc1 (patch)
tree714aac3edd90ada9290d8e67a4bf49c346f2d10b
parent23eb8c4250d9dc763978e5fbddc1c7e784839078 (diff)
Oops... renamed this quite a while ago, never updated example
-rw-r--r--doc/examples/package.cpp12
1 files 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<byte> input = slurp_file(argv[1]);
std::vector<byte> 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<byte> 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";