aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/dh.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/dh.cpp')
-rw-r--r--doc/examples/dh.cpp4
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