Skip to content

Commit

Permalink
public_key: Add new API functions to the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
IngelaAndin committed May 8, 2013
1 parent b968404 commit a9add4e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions lib/public_key/doc/src/public_key.xml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,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>
Expand Down Expand Up @@ -210,6 +223,17 @@
</desc>
</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
Expand Down

0 comments on commit a9add4e

Please sign in to comment.