From 8f45c2409ca2f28f716f01d09047c6bb6f90d9b9 Mon Sep 17 00:00:00 2001 From: andreaP Date: Tue, 23 Dec 2014 15:38:51 +0100 Subject: proposal of documentation --- lib/crypto/doc/src/crypto.xml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'lib/crypto') diff --git a/lib/crypto/doc/src/crypto.xml b/lib/crypto/doc/src/crypto.xml index 271130a9e6..77cff252ef 100644 --- a/lib/crypto/doc/src/crypto.xml +++ b/lib/crypto/doc/src/crypto.xml @@ -169,7 +169,38 @@ + + block_encrypt(Type, Key, PlainText) -> CipherText + Encrypt PlainTextaccording to Type block cipher + + Type = des_ecb | blowfish_ecb | aes_ecb + Key = block_key() + PlainText = iodata() + + +

Encrypt PlainTextaccording to Type block cipher. +

May throw exception notsup in case the chosen Type + is not supported by the underlying OpenSSL implementation.

+
+
+ + block_decrypt(Type, Key, CipherText) -> PlainText + Decrypt CipherTextaccording to Type block cipher + + Type = des_ecb | blowfish_ecb | aes_ecb + Key = block_key() + PlainText = iodata() + + +

Decrypt CipherTextaccording to Type block cipher. +

May throw exception notsup in case the chosen Type + is not supported by the underlying OpenSSL implementation.

+
+
+ + + block_encrypt(Type, Key, Ivec, PlainText) -> CipherText block_encrypt(AeadType, Key, Ivec, {AAD, PlainText}) -> {CipherText, CipherTag} Encrypt PlainText according to Type block cipher -- cgit v1.2.3