From b211df3a0cca478822d57836dac3dd6452aab32a Mon Sep 17 00:00:00 2001 From: Ingela Anderton Andin Date: Tue, 18 Oct 2011 18:01:40 +0200 Subject: Additions to crypto and public_key needed for full PKCS-8 support --- lib/crypto/doc/src/crypto.xml | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) (limited to 'lib/crypto/doc') diff --git a/lib/crypto/doc/src/crypto.xml b/lib/crypto/doc/src/crypto.xml index 824be09438..48243fd693 100644 --- a/lib/crypto/doc/src/crypto.xml +++ b/lib/crypto/doc/src/crypto.xml @@ -1,4 +1,4 @@ - + @@ -334,14 +334,16 @@ Mpint() = >]]> sha_mac(Key, Data) -> Mac + sha_mac(Key, Data, MacLength) -> Mac Compute an MD5 MACmessage authentification code Key = Data = iolist() | binary() Mac = binary() + MacLenength = integer() =< 20

Computes an SHA MAC message authentification code - from Key and Data, where the length of the Mac + from Key and Data, where the default length of the Mac is 160 bits (20 bytes).

@@ -1045,6 +1047,30 @@ Mpint() = >]]> + + rc2_cbc_encrypt(Key, IVec, Text) -> Cipher + Encrypt Textaccording to RC2 in CBC mode + + Key = Text = iolist() | binary() + Ivec = Cipher = binary() + + +

Encrypts Text according to RC2 in CBC mode.

+
+
+ + + rc2_cbc_decrypt(Key, IVec, Cipher) -> Text + Decrypts Cipheraccording to RC2 in CBC mode + + Key = Text = iolist() | binary() + Ivec = Cipher = binary() + + +

Decrypts Cipher according to RC2 in CBC mode.

+
+
+ rc4_encrypt(Key, Data) -> Result Encrypt data using RC4 -- cgit v1.2.3