From 89236bc46fd3a7de0dbb9df2390c30e7333f6bdb Mon Sep 17 00:00:00 2001 From: Hans Nilsson Date: Thu, 21 Mar 2019 14:24:29 +0100 Subject: crypto: Declare *_info return map and other review-comments Conflicts: lib/crypto/doc/src/crypto.xml --- lib/crypto/doc/src/crypto.xml | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) (limited to 'lib/crypto/doc') diff --git a/lib/crypto/doc/src/crypto.xml b/lib/crypto/doc/src/crypto.xml index 17522bcdab..251263714d 100644 --- a/lib/crypto/doc/src/crypto.xml +++ b/lib/crypto/doc/src/crypto.xml @@ -562,6 +562,36 @@ + + + +

This is a more developed variant of the older + run_time_error(). +

+

It is like the older type an exception of the error class. In addition they contain + a descriptive text in English. That text is targeted to a developer. Examples are "Bad key size" + or "Cipher id is not an atom". +

+

The exceptions are:

+ + {badarg, Description::string()} +

Signifies that one or more arguments are of wrong data type or are otherwise badly formed.

+
+ + {notsup, Description::string()} +

Signifies that the algorithm is known but is not supported by current underlying libcrypto + or explicitly disabled when building that one.

+
+ + {error, Description::string()} +

An error condition that should not occur, for example a memory allocation failed or + the underlying cryptolib returned an error code, for example "Can't initialize context, step 1". + Thoose text usually needs searching the C-code to be understood.

+
+
+
+
+ @@ -873,7 +903,7 @@ 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. + hash algorithm in question.

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

@@ -885,7 +915,7 @@ 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. + cipher algorithm in question.

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

-- cgit v1.2.3