From 8ca11d98e601dda66cdfb12d526b20fa3beece8e Mon Sep 17 00:00:00 2001
From: Paul Oliver
Date: Wed, 2 Dec 2009 21:53:04 +0000
Subject: Add Blowfish ECB, CBC and OFB modes
My previous patch added CFB mode. This patch adds all remaining
Blowfish modes. According to the man page
http://www.fifi.org/cgi-bin/man2html/usr/share/man/man3/blowfish.3ssl.gz
these are available in all versions of OpenSSL.
[ Squashed in elimination of signed/unsigned compiler warnings. /bg ]
---
lib/crypto/doc/src/crypto.xml | 64 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 64 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 42ba523c8c..cfc6996332 100644
--- a/lib/crypto/doc/src/crypto.xml
+++ b/lib/crypto/doc/src/crypto.xml
@@ -337,6 +337,53 @@ Mpint() = >]]>
Key3, and IVec must be 64 bits (8 bytes).
+
+
+ blowfish_ecb_encrypt(Key, Text) -> Cipher
+ Encrypt the first 64 bits of Text using Blowfish in ECB mode
+
+ Key = Text = iolist() | binary()
+ IVec = Cipher = binary()
+
+
+ Encrypts the first 64 bits of Text using Blowfish in ECB mode. Key is the Blowfish key. The length of Text must be at least 64 bits (8 bytes).
+
+ blowfish_ecb_decrypt(Key, Text) -> Cipher
+ Decrypt the first 64 bits of Text using Blowfish in ECB mode
+
+ Key = Text = iolist() | binary()
+ IVec = Cipher = binary()
+
+
+ Decrypts the first 64 bits of Text using Blowfish in ECB mode. Key is the Blowfish key. The length of Text must be at least 64 bits (8 bytes).
+
+
+
+
+ blowfish_cbc_encrypt(Key, Text) -> Cipher
+ Encrypt Text using Blowfish in CBC mode
+
+ Key = Text = iolist() | binary()
+ IVec = Cipher = binary()
+
+
+ Encrypts Text using Blowfish in CBC mode. Key is the Blowfish key, and IVec is an
+ arbitrary initializing vector. The length of IVec
+ must be 64 bits (8 bytes). The length of Text must be a multiple of 64 bits (8 bytes).
+
+ blowfish_cbc_decrypt(Key, Text) -> Cipher
+ Decrypt Text using Blowfish in CBC mode
+
+ Key = Text = iolist() | binary()
+ IVec = Cipher = binary()
+
+
+ Decrypts Text using Blowfish in CBC mode. Key is the Blowfish key, and IVec is an
+ arbitrary initializing vector. The length of IVec
+ must be 64 bits (8 bytes). The length of Text must be a multiple 64 bits (8 bytes).
+
+
+
blowfish_cfb64_encrypt(Key, IVec, Text) -> Cipher
Encrypt Textusing Blowfish in CFB mode with 64
@@ -367,6 +414,23 @@ Mpint() = >]]>
must be 64 bits (8 bytes).
+
+
+ blowfish_ofb64_encrypt(Key, IVec, Text) -> Cipher
+ Encrypt Textusing Blowfish in OFB mode with 64
+ bit feedback
+
+ Key = Text = iolist() | binary()
+ IVec = Cipher = binary()
+
+
+ Encrypts Text using Blowfish in OFB mode with 64 bit
+ feedback. Key is the Blowfish key, and IVec is an
+ arbitrary initializing vector. The length of IVec
+ must be 64 bits (8 bytes).
+
+
+
aes_cfb_128_encrypt(Key, IVec, Text) -> Cipher
aes_cbc_128_encrypt(Key, IVec, Text) -> Cipher
--
cgit v1.2.3