diff options
author | lloyd <[email protected]> | 2010-10-13 16:10:34 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-10-13 16:10:34 +0000 |
commit | a142500346e9bef5c4b0905103eac9a494d6822e (patch) | |
tree | 6bdee25d85d7071f927caa5d4ffb251f085e02a8 /doc/examples/package.cpp | |
parent | 18d3acffbe2324a90c505cf23ff17c1392c3be4d (diff) |
Fix examples
Diffstat (limited to 'doc/examples/package.cpp')
-rw-r--r-- | doc/examples/package.cpp | 4 |
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(), |