diff options
author | lloyd <[email protected]> | 2010-03-08 15:36:18 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-03-08 15:36:18 +0000 |
commit | 8a47f6f2bbf169a2ea0853234f81b49070c770df (patch) | |
tree | 2633ed0d927faf23a067aa88d6cceb9de29f0be4 /doc/examples/dh.cpp | |
parent | 05f6d6c8edec9907778f362c927f368140fee6a2 (diff) |
Modify pubkey classes to take names instead of object pointers.
Remove use of look_pk from the source and examples, instead
instantiate classes directly.
Diffstat (limited to 'doc/examples/dh.cpp')
-rw-r--r-- | doc/examples/dh.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/dh.cpp b/doc/examples/dh.cpp index 23d6c3952..652c7b136 100644 --- a/doc/examples/dh.cpp +++ b/doc/examples/dh.cpp @@ -35,8 +35,8 @@ int main() // Bob sends his public key to Alice MemoryVector<byte> public_b = private_b.public_value(); - PK_Key_Agreement ka1(private_a, get_kdf("KDF2(SHA-1)")); - PK_Key_Agreement ka2(private_b, get_kdf("KDF2(SHA-1)")); + PK_Key_Agreement ka1(private_a, "KDF2(SHA-1)"); + PK_Key_Agreement ka2(private_b, "KDF2(SHA-1)"); /* * Preferably, include some salt or parameter that binds this key |