aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/eax_test.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-21 18:21:56 +0000
committerlloyd <[email protected]>2008-11-21 18:21:56 +0000
commit40c642fc6bc7b3feab657000d2df05db96480d13 (patch)
treee4ab954e165435ea7cd91f0a32699903aee69474 /doc/examples/eax_test.cpp
parente5f7085f03c816e7e44530997cd507705de34955 (diff)
Update examples for changed 1.8 APIs, including:
EAX mode taking a BlockCipher* instead of a name. PK_Signer taking an EMSA* instead of a name. generate_dsa_primes using an Algorithm_Factory Changes to how new algorithms are added (look_add.h is gone entirely, replaced by Algorithm_Factory calls) in xor_ciph. Also update for new stream cipher key schedule function name and new directory for base class decl.
Diffstat (limited to 'doc/examples/eax_test.cpp')
-rw-r--r--doc/examples/eax_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/eax_test.cpp b/doc/examples/eax_test.cpp
index ea20bd0a6..07564c097 100644
--- a/doc/examples/eax_test.cpp
+++ b/doc/examples/eax_test.cpp
@@ -54,7 +54,7 @@ void eax_test(const std::string& algo,
EAX_Encryption* enc;
Pipe pipe(new Hex_Decoder,
- enc = new EAX_Encryption(algo),
+ enc = new EAX_Encryption(get_block_cipher(algo)),
new Hex_Encoder);
enc->set_key(key);
@@ -82,7 +82,7 @@ void eax_test(const std::string& algo,
{
EAX_Decryption* dec;
Pipe pipe2(new Hex_Decoder,
- dec = new EAX_Decryption(algo),
+ dec = new EAX_Decryption(get_block_cipher(algo)),
new Hex_Encoder);
dec->set_key(key);