From c7cab680b80ef9220832151ed2c8c23a5d590b8b Mon Sep 17 00:00:00 2001 From: Hans Nilsson Date: Thu, 31 Jan 2019 10:27:23 +0100 Subject: crypto: New experimental api The new files api_ng.h and api_ng.c implements an api using EVP. The api is not by any mean new, except for the crypto application in Erlang/OTP. The aims at using the block api in a stream manor, that is 1) call crypto_init/4 2..N) call crypto_update/{2,3} The purpose is to simplify and hopefully optimize the SSL and SSH applications. By keeping the crypto state in C in an enif_resource the costful state copying in SSL and SSH is reduced with 1-2 per message sent or received. Changes in other files are for adaptation like FIPS etc since many functions uses the central get_cipher_type() function. --- lib/crypto/doc/src/crypto.xml | 18 ++++++++++++++++-- 1 file changed, 16 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 e0794a080e..83e10c4c78 100644 --- a/lib/crypto/doc/src/crypto.xml +++ b/lib/crypto/doc/src/crypto.xml @@ -193,10 +193,12 @@ Ciphers + +

Stream ciphers for - stream_encrypt/2 and - stream_decrypt/2 . + stream_init/3 and + stream_init/2 .

@@ -213,6 +215,18 @@ + + + + +

Names that are replaced by more common names. They may deprecated in futer releases.

+

des3_cbc and des_ede3 should be replaced by des_ede3_cbc

+

des_ede3_cbf, des3_cbf and des3_cfb should be replaced by des_ede3_cfb.

+

aes_cbc128 should be replaced by aes_128_cbc.

+

aes_cbc256 should be replaced by aes_256_cbc.

+
+
+ -- cgit v1.2.3