From b869aef371836879f0dd1c306a90acb5f93f3ad0 Mon Sep 17 00:00:00 2001 From: Alexander Uvarov Date: Mon, 1 Mar 2010 03:56:07 +0500 Subject: Add missing docs for crypto:md4/1 --- lib/crypto/doc/src/crypto.xml | 49 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) (limited to 'lib/crypto/doc/src/crypto.xml') diff --git a/lib/crypto/doc/src/crypto.xml b/lib/crypto/doc/src/crypto.xml index 763c198638..a6b5cee822 100644 --- a/lib/crypto/doc/src/crypto.xml +++ b/lib/crypto/doc/src/crypto.xml @@ -34,6 +34,9 @@

References:

+ +

md4: The MD4 Message Digest Algorithm (RFC 1320)

+

md5: The MD5 Message Digest Algorithm (RFC 1321)

@@ -114,6 +117,52 @@ Mpint() = >]]> + + md4(Data) -> Digest + Compute an MD4message digest from Data + + Data = iolist() | binary() + Digest = binary() + + +

Computes an MD4 message digest from Data, where + the length of the digest is 128 bits (16 bytes).

+
+
+ + md4_init() -> Context + Creates an MD4 context + + Context = binary() + + +

Creates an MD4 context, to be used in subsequent calls to + md4_update/2.

+
+
+ + md4_update(Context, Data) -> NewContext + Update an MD4 Contextwith Data, and return a NewContext + + Data = iolist() | binary() + Context = NewContext = binary() + + +

Updates an MD4 Context with Data, and returns + a NewContext.

+
+
+ + md4_final(Context) -> Digest + Finish the update of an MD4 Contextand return the computed MD4message digest + + Context = Digest = binary() + + +

Finishes the update of an MD4 Context and returns + the computed MD4 message digest.

+
+
md5(Data) -> Digest Compute an MD5message digest from Data -- cgit v1.2.3