From 36a9e0a0dcb33c0cab6fdfcc6847e04b1b786a73 Mon Sep 17 00:00:00 2001 From: Ingela Anderton Andin Date: Wed, 15 May 2013 15:51:44 +0200 Subject: ssl, public_key, crypto: crypto:algorithms/0 -> crypto:supports/0 --- lib/crypto/doc/src/crypto.xml | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) (limited to 'lib/crypto/doc/src') diff --git a/lib/crypto/doc/src/crypto.xml b/lib/crypto/doc/src/crypto.xml index cac8f6ef28..b4e471111a 100644 --- a/lib/crypto/doc/src/crypto.xml +++ b/lib/crypto/doc/src/crypto.xml @@ -142,21 +142,16 @@

des3_key() = [binary(), binary(), binary()] Each key part is 64 bits (in CBC mode only 8 bits are used)

-

message_digest_algorithms() = md5 | ripemd160 | sha | sha224 | sha256 | sha384 | sha512 md4 is aslo supported for hash_init/1 and hash/2. +

digest_type() = md5 | sha | sha224 | sha256 | sha384 | sha512

+

hash_algorithms() = md5 | ripemd160 | sha | sha224 | sha256 | sha384 | sha512 md4 is aslo supported for hash_init/1 and hash/2. Note that both md4 and md5 are recommended only for compatibility with existing applications.

+

cipher_algorithms() = des | des3 | aes | blowfish | rc2 | rc4

+

public_key_algorithms() = rsa |dss | ecdsa | dh | ecdh

+ - - algorithms() -> [message_digest_algorithms() | md4 | ec] - Provide a list of available crypto algorithms. - -

Can be used to determine if the crypto library has support for elliptic curve (ec) and - which message digest algorithms that are supported.

-
-
- block_encrypt(Type, Key, Ivec, PlainText) -> CipherText Encrypt PlainTextaccording to Type block cipher @@ -665,6 +660,22 @@ + + supports() -> AlgorithmList + Provide a list of available crypto algorithms. + + AlgorithmList = [{hashs, [hash_algorithms()]}, + {ciphers, [cipher_algorithms()]}, + {public_keys, [public_key_algorithms()]} + + + +

Can be used to determine which crypto algorithms that are supported + by the underlying OpenSSL library

+
+
+ + verify(Algorithm, DigestType, Msg, Signature, Key) -> boolean() Verifies a digital signature. -- cgit v1.2.3