aboutsummaryrefslogtreecommitdiffstats
path: root/doc/manual
diff options
context:
space:
mode:
authorKrzysztof Kwiatkowski <[email protected]>2017-04-14 22:23:34 +0100
committerKrzysztof Kwiatkowski <[email protected]>2017-04-14 22:25:38 +0100
commit70f24fcccb832de6a0d2563306a82f306370033a (patch)
treeebff0c12f6b4051ce7bf6cc32540f1d3e5a3bd10 /doc/manual
parentd0e4ce08973dbbc1ed28c85b67371e720e425922 (diff)
Support for ElGamal in FFI interface
* Adds `botan_pubkey_load_elgamal' and `botan_privkey_load_elgamal' functions to FFI interface. * Adds test `ffi_test_elgamal'
Diffstat (limited to 'doc/manual')
-rw-r--r--doc/manual/ffi.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/manual/ffi.rst b/doc/manual/ffi.rst
index 8acbf225a..61a06718a 100644
--- a/doc/manual/ffi.rst
+++ b/doc/manual/ffi.rst
@@ -623,6 +623,18 @@ DSA specific functions
Initialize a private DSA key using group parameters p, q, and g and public key y.
+ElGamal specific functions
+----------------------------------------
+
+.. cpp:function:: int botan_privkey_load_elgamal(botan_privkey_t* key, \
+ botan_mp_t p, botan_mp_t g, botan_mp_t x)
+
+ Initialize a private ElGamal key using group parameters p and g and private key x.
+
+.. cpp:function:: int botan_pubkey_load_elgamal(botan_pubkey_t* key, \
+ botan_mp_t p, botan_mp_t g, botan_mp_t y)
+
+ Initialize a private ElGamal key using group parameters p and g and public key y.
Public Key Encryption/Decryption
----------------------------------------