From 6faad239766accdcc007540f0b8b38d4709cd435 Mon Sep 17 00:00:00 2001 From: Sverker Eriksson Date: Wed, 4 Jul 2012 17:26:29 +0200 Subject: crypto: Allow aes_cfb_128_{en|de}crypt to accept unaligned data Remove the need for padding up to 16-byte multiple. --- lib/crypto/doc/src/crypto.xml | 42 +++++++++++++++++++++++++++++++++++------- 1 file changed, 35 insertions(+), 7 deletions(-) (limited to 'lib/crypto/doc') diff --git a/lib/crypto/doc/src/crypto.xml b/lib/crypto/doc/src/crypto.xml index 19db6c9dd4..2868fe05f0 100644 --- a/lib/crypto/doc/src/crypto.xml +++ b/lib/crypto/doc/src/crypto.xml @@ -643,16 +643,14 @@ Mpint() = >]]> aes_cfb_128_encrypt(Key, IVec, Text) -> Cipher - aes_cbc_128_encrypt(Key, IVec, Text) -> Cipher - Encrypt Textaccording to AES in Cipher Feedback mode or Cipher Block Chaining mode + Encrypt Textaccording to AES in Cipher Feedback mode Key = Text = iolist() | binary() IVec = Cipher = binary()

Encrypts Text according to AES in Cipher Feedback - mode (CFB) or Cipher Block Chaining mode (CBC). Text - must be a multiple of 128 bits (16 bytes). Key is the + mode (CFB). Key is the AES key, and IVec is an arbitrary initializing vector. The lengths of Key and IVec must be 128 bits (16 bytes).

@@ -660,15 +658,45 @@ Mpint() = >]]>
aes_cfb_128_decrypt(Key, IVec, Cipher) -> Text + Decrypt Cipheraccording to AES in Cipher Feedback mode + + Key = Cipher = iolist() | binary() + IVec = Text = binary() + + +

Decrypts Cipher according to AES in Cipher Feedback Mode (CFB). + Key is the AES 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 128 bits (16 bytes).

+
+
+ + aes_cbc_128_encrypt(Key, IVec, Text) -> Cipher + Encrypt Textaccording to AES in Cipher Block Chaining mode + + Key = Text = iolist() | binary() + IVec = Cipher = binary() + + +

Encrypts Text according to AES in Cipher Block Chaining + mode (CBC). Text + must be a multiple of 128 bits (16 bytes). Key is the + AES key, and IVec is an arbitrary initializing vector. + The lengths of Key and IVec must be 128 bits + (16 bytes).

+
+
+ aes_cbc_128_decrypt(Key, IVec, Cipher) -> Text - Decrypt Cipheraccording to AES in Cipher Feedback mode or Cipher Block Chaining mode + Decrypt Cipheraccording to AES in Cipher Block Chaining mode Key = Cipher = iolist() | binary() IVec = Text = binary() -

Decrypts Cipher according to Cipher Feedback Mode (CFB) - or Cipher Block Chaining mode (CBC). +

Decrypts Cipher according to AES in Cipher Block + Chaining mode (CBC). Key is the AES key, and IVec is an arbitrary initializing vector. Key and IVec must have the same values as those used when encrypting. Cipher -- cgit v1.2.3