From 544ed5647d9a89fd2dbd62d56964fa37539bfa11 Mon Sep 17 00:00:00 2001
From: Alexander Uvarov
Date: Mon, 1 Mar 2010 02:46:23 +0500
Subject: Add des_ecb_encrypt/2 and des_ecb_decrypt/2 to crypto module
---
lib/crypto/doc/src/crypto.xml | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
(limited to 'lib/crypto/doc')
diff --git a/lib/crypto/doc/src/crypto.xml b/lib/crypto/doc/src/crypto.xml
index cfc6996332..763c198638 100644
--- a/lib/crypto/doc/src/crypto.xml
+++ b/lib/crypto/doc/src/crypto.xml
@@ -338,6 +338,33 @@ Mpint() = >]]>
+
+ des_ecb_encrypt(Key, Text) -> Cipher
+ Encrypt Textaccording to DES in ECB mode
+
+ Key = Text = iolist() | binary()
+ Cipher = binary()
+
+
+ Encrypts Text according to DES in ECB mode.
+ Key is the DES key. The lengths of Key and
+ Text must be 64 bits (8 bytes).
+
+
+
+ des_ecb_decrypt(Key, Cipher) -> Text
+ Decrypt Cipheraccording to DES in ECB mode
+
+ Key = Cipher = iolist() | binary()
+ Text = binary()
+
+
+ Decrypts Cipher according to DES in ECB mode.
+ Key is the DES key. The lengths of Key and
+ Cipher must be 64 bits (8 bytes).
+
+
+
blowfish_ecb_encrypt(Key, Text) -> Cipher
Encrypt the first 64 bits of Text using Blowfish in ECB mode
--
cgit v1.2.3
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')
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