From f0db3eff30b298e765a9af78a86f4865cad21da8 Mon Sep 17 00:00:00 2001
From: Paul Guyot
Date: Tue, 6 Sep 2011 14:38:39 +0200
Subject: [crypto] Add DES and Triple DES cipher feedback (CFB) mode functions
---
lib/crypto/doc/src/crypto.xml | 79 ++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 78 insertions(+), 1 deletion(-)
(limited to 'lib/crypto/doc')
diff --git a/lib/crypto/doc/src/crypto.xml b/lib/crypto/doc/src/crypto.xml
index 179ba4498c..110ab5b746 100644
--- a/lib/crypto/doc/src/crypto.xml
+++ b/lib/crypto/doc/src/crypto.xml
@@ -403,6 +403,51 @@ Mpint() = >]]>
data from the previous iteration step.
+
+ des_cfb_encrypt(Key, IVec, Text) -> Cipher
+ Encrypt Textaccording to DES in CFB mode
+
+ Key = Text = iolist() | binary()
+ IVec = Cipher = binary()
+
+
+ Encrypts Text according to DES in 8-bit CFB
+ mode. Key is the DES key, and IVec is an
+ arbitrary initializing vector. The lengths of Key and
+ IVec must be 64 bits (8 bytes).
+
+
+
+ des_cfb_decrypt(Key, IVec, Cipher) -> Text
+ Decrypt Cipheraccording to DES in CFB mode
+
+ Key = Cipher = iolist() | binary()
+ IVec = Text = binary()
+
+
+ Decrypts Cipher according to DES in 8-bit CFB mode.
+ Key is the DES key, and IVec is an arbitrary
+ initializing vector. Key and IVec must have
+ the same values as those used when encrypting. The lengths of
+ Key and IVec must be 64 bits (8 bytes).
+
+
+
+ des_cfb_ivec(IVec, Data) -> NextIVec
+ Get IVec to be used in next iteration of
+ des_cfb_[ecrypt|decrypt]
+
+ IVec = iolist() | binary()
+ Data = iolist() | binary()
+ NextIVec = binary()
+
+
+ Returns the IVec to be used in a next iteration of
+ des_cfb_[encrypt|decrypt]. IVec is the vector
+ used in the previous iteration step. Data is the encrypted
+ data from the previous iteration step.
+
+
des3_cbc_encrypt(Key1, Key2, Key3, IVec, Text) -> Cipher
Encrypt Textaccording to DES3 in CBC mode
@@ -421,7 +466,7 @@ Mpint() = >]]>
des3_cbc_decrypt(Key1, Key2, Key3, IVec, Cipher) -> Text
- Decrypt Cipheraccording to DES in CBC mode
+ Decrypt Cipheraccording to DES3 in CBC mode
Key1 = Key2 = Key3 = Cipher = iolist() | binary()
IVec = Text = binary()
@@ -437,6 +482,38 @@ Mpint() = >]]>
Key3, and IVec must be 64 bits (8 bytes).
+
+ des3_cfb_encrypt(Key1, Key2, Key3, IVec, Text) -> Cipher
+ Encrypt Textaccording to DES3 in CFB mode
+
+ Key1 =Key2 = Key3 Text = iolist() | binary()
+ IVec = Cipher = binary()
+
+
+ Encrypts Text according to DES3 in 8-bit CFB
+ mode. Key1, Key2, Key3, are the DES
+ keys, and IVec is an arbitrary initializing
+ vector. The lengths of each of Key1, Key2,
+ Key3 and IVec must be 64 bits (8 bytes).
+
+
+
+ des3_cfb_decrypt(Key1, Key2, Key3, IVec, Cipher) -> Text
+ Decrypt Cipheraccording to DES3 in CFB mode
+
+ Key1 = Key2 = Key3 = Cipher = iolist() | binary()
+ IVec = Text = binary()
+
+
+ Decrypts Cipher according to DES3 in 8-bit CFB mode.
+ Key1, Key2, Key3 are the DES key, and
+ IVec is an arbitrary initializing vector.
+ Key1, Key2, Key3 and IVec must
+ and IVec must have the same values as those used when
+ encrypting. The lengths of Key1, Key2,
+ Key3, and IVec must be 64 bits (8 bytes).
+
+
des_ecb_encrypt(Key, Text) -> Cipher
--
cgit v1.2.3