From 19762575090d0f3c83c610de2a65cccf0c135516 Mon Sep 17 00:00:00 2001 From: Sverker Eriksson Date: Thu, 23 Sep 2010 16:39:30 +0200 Subject: crypto CTR support --- lib/crypto/doc/src/crypto.xml | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (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 e1431cfd81..c407350c47 100644 --- a/lib/crypto/doc/src/crypto.xml +++ b/lib/crypto/doc/src/crypto.xml @@ -53,7 +53,7 @@

aes: Advanced Encryption Standard (AES) (FIPS 197)

-

ecb, cbc, cfb, ofb: Recommendation for Block Cipher Modes +

ecb, cbc, cfb, ofb, ctr: Recommendation for Block Cipher Modes of Operation (NIST SP 800-38A).

@@ -556,6 +556,34 @@ Mpint() = >]]> data from the previous iteration step.

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

Encrypts Text according to AES in Counter mode (CTR). Text + can be any number of bytes. Key is the AES key and must be either + 128, 192 or 256 bits long. IVec is an arbitrary initializing vector of 128 bits + (16 bytes).

+
+
+ + aes_ctr_decrypt(Key, IVec, Cipher) -> Text + Decrypt Cipheraccording to AES in Counter mode + + Key = Cipher = iolist() | binary() + IVec = Text = binary() + + +

Decrypts Cipher according to AES in Counter mode (CTR). Cipher + can be any number of bytes. Key is the AES key and must be either + 128, 192 or 256 bits long. IVec is an arbitrary initializing vector of 128 bits + (16 bytes).

+
+
erlint(Mpint) -> N mpint(N) -> Mpint -- cgit v1.2.3