aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/xor_ciph.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/xor_ciph.cpp')
-rw-r--r--doc/examples/xor_ciph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/xor_ciph.cpp b/doc/examples/xor_ciph.cpp
index 496d23323..a8632911c 100644
--- a/doc/examples/xor_ciph.cpp
+++ b/doc/examples/xor_ciph.cpp
@@ -57,7 +57,7 @@ void XOR_Cipher::key(const byte key[], u32bit length)
int main()
{
- add_algorithm(new XOR_Cipher); // make it available to use
+ add_algorithm(global_state(), new XOR_Cipher); // make it available to use
global_state().add_alias("Vernam", "XOR"); // make Vernam an alias for XOR
// a hex key value