diff options
-rw-r--r-- | doc/examples/package.cpp | 12 |
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"; |