aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2013-05-02 14:30:39 +0200
committerIngela Anderton Andin <[email protected]>2013-05-08 10:39:22 +0200
commita9add4e3d878bbd339fc2bb36e97d1053318b4e6 (patch)
tree64cd37b9ded797c1bf210dee985213f34aed1eca /lib
parentb968404bfb277c64f3ab040fd5921f8583443c6f (diff)
downloadotp-a9add4e3d878bbd339fc2bb36e97d1053318b4e6.tar.gz
otp-a9add4e3d878bbd339fc2bb36e97d1053318b4e6.tar.bz2
otp-a9add4e3d878bbd339fc2bb36e97d1053318b4e6.zip
public_key: Add new API functions to the documentation
Diffstat (limited to 'lib')
-rw-r--r--lib/public_key/doc/src/public_key.xml24
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/public_key/doc/src/public_key.xml b/lib/public_key/doc/src/public_key.xml
index 45aaf21b80..ffea387404 100644
--- a/lib/public_key/doc/src/public_key.xml
+++ b/lib/public_key/doc/src/public_key.xml
@@ -154,6 +154,19 @@
<funcs>
<func>
+ <name> compute_key(OthersKey, MyKey)-></name>
+ <name> compute_key(OthersKey, MyKey, Params)-></name>
+ <fsummary> Compute shared secret</fsummary>
+ <type>
+ <v>OthersKey = #'ECPoint'{} | binary(), MyKey = #'ECPrivateKey'{} | binary()</v>
+ <v>Params = #'DHParameter'{}</v>
+ </type>
+ <desc>
+ <p> Compute shared secret </p>
+ </desc>
+ </func>
+
+ <func>
<name>decrypt_private(CipherText, Key) -> binary()</name>
<name>decrypt_private(CipherText, Key, Options) -> binary()</name>
<fsummary>Public key decryption.</fsummary>
@@ -211,6 +224,17 @@
</func>
<func>
+ <name>generate_key(Params) -> {Public::binary(), Private::binary()} | #'ECPrivateKey'{} </name>
+ <fsummary>Generates a new keypair</fsummary>
+ <type>
+ <v> Params = #'DHParameter'{} | {namedCurve, oid()} | #'OTPECParameters'{} </v>
+ </type>
+ <desc>
+ <p>Generates a new keypair</p>
+ </desc>
+ </func>
+
+ <func>
<name>pem_decode(PemBin) -> [pem_entry()]</name>
<fsummary>Decode PEM binary data and return
entries as ASN.1 DER encoded entities. </fsummary>