aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/package.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-10-13 16:33:20 +0000
committerlloyd <[email protected]>2010-10-13 16:33:20 +0000
commitb502cefaf0f9396354d58c4c18a78ac7870f6168 (patch)
tree8e4d699bd47bcdecaa6c3b670e19743d52047bb8 /doc/examples/package.cpp
parentfc4c8f57baa06cfc9073ce83a5e3d1547bea86c0 (diff)
parenta142500346e9bef5c4b0905103eac9a494d6822e (diff)
propagate from branch 'net.randombit.botan' (head cba32f885eb7889a9711cbee120df42839deb9d0)
to branch 'net.randombit.botan.c++0x' (head 7cb9cdfda0f3dedab24f1d3bc7e7ea9b22164234)
Diffstat (limited to 'doc/examples/package.cpp')
-rw-r--r--doc/examples/package.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/package.cpp b/doc/examples/package.cpp
index b907ac3ae..38a2e1666 100644
--- a/doc/examples/package.cpp
+++ b/doc/examples/package.cpp
@@ -51,13 +51,13 @@ int main(int argc, char* argv[])
BlockCipher* cipher = new Serpent;
std::vector<byte> input = slurp_file(argv[1]);
- std::vector<byte> output(input.size() + cipher->BLOCK_SIZE);
+ std::vector<byte> output(input.size() + cipher->block_size());
aont_package(rng, new Serpent,
&input[0], input.size(),
&output[0]);
- std::vector<byte> unpackage_output(output.size() - cipher->BLOCK_SIZE);
+ std::vector<byte> unpackage_output(output.size() - cipher->block_size());
aont_unpackage(new Serpent,
&output[0], output.size(),