From 7cb7cd54f3000c08c925f2ad10723b54efdc485e Mon Sep 17 00:00:00 2001 From: Hans Nilsson Date: Mon, 18 Mar 2019 13:53:47 +0100 Subject: crypto: Document hash_info/1 and cipher_info/1 --- lib/crypto/doc/src/crypto.xml | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/lib/crypto/doc/src/crypto.xml b/lib/crypto/doc/src/crypto.xml index e5a3af923c..17522bcdab 100644 --- a/lib/crypto/doc/src/crypto.xml +++ b/lib/crypto/doc/src/crypto.xml @@ -546,6 +546,22 @@ + Error types + + + + +

The exception error:badarg signifies that one or more arguments are of wrong data type, + or are otherwise badly formed. +

+

The exception error:notsup signifies that the algorithm is known but is not supported + by current underlying libcrypto or explicitly disabled when building that. +

+

For a list of supported algorithms, see supports/0. +

+
+
+ @@ -852,6 +868,30 @@ + + + Information about supported hash algorithms. + +

Provides a map with information about block_size, size and possibly other properties of the + hash algorithm in the argument. +

+

For a list of supported hash algorithms, see supports/0. +

+
+
+ + + + Information about supported ciphers. + +

Provides a map with information about block_size, key_length, iv_length and possibly other properties of the + cipher algorithm in the argument. +

+

For a list of supported cipher algorithms, see supports/0. +

+
+
+ Computes the function: N^P mod M @@ -1301,6 +1341,9 @@ FloatValue = rand:uniform(). % again

Note: the rsa_opts entry is in an experimental state and may change or be removed without notice. No guarantee for the accuarcy of the rsa option's value list should be assumed.

+

See hash_info/1 and cipher_info/1 + for information about the hash and cipher algorithms. +

-- cgit v1.2.3