From 425889ba69b69a9b6fb14bfbef121d51b78e853a Mon Sep 17 00:00:00 2001 From: Erlang/OTP Date: Tue, 23 Apr 2019 17:38:37 +0200 Subject: Prepare release --- lib/crypto/doc/src/notes.xml | 131 +++++++++++++++++++++++++++++++++++++++++++ lib/crypto/vsn.mk | 2 +- 2 files changed, 132 insertions(+), 1 deletion(-) (limited to 'lib/crypto') diff --git a/lib/crypto/doc/src/notes.xml b/lib/crypto/doc/src/notes.xml index 195c9d029d..1f549f3295 100644 --- a/lib/crypto/doc/src/notes.xml +++ b/lib/crypto/doc/src/notes.xml @@ -31,6 +31,137 @@

This document describes the changes made to the Crypto application.

+
Crypto 4.5 + +
Fixed Bugs and Malfunctions + + +

+ Fixed a bug in error return for crypto:poly1305/2. + It returned the atom notsup instead of the + exception notsup.

+

+ *** POTENTIAL INCOMPATIBILITY ***

+

+ Own Id: OTP-15677

+
+ +

+ The cipher chacha20 was introduced in OpenSSL 1.1.0. + However, it could in a very odd situation, fail for + versions less than OpenSSL 1.1.0d. It is therefore + disabled for those versions.

+

+ *** POTENTIAL INCOMPATIBILITY ***

+

+ Own Id: OTP-15678

+
+
+
+ + +
Improvements and New Features + + +

A new rand module algorithm, exro928ss + (Xoroshiro928**), has been implemented. It has got a + really long period and good statistical quality for all + output bits, while still being only about 50% slower than + the default algorithm.

The same generator is also + used as a long period counter in a new crypto + plugin for the rand module, algorithm + crypto_aes. This plugin uses AES-256 to scramble + the counter which buries any detectable statistical + artifacts. Scrambling is done in chunks which are cached + to get good amortized speed (about half of the default + algorithm).

+

+ Own Id: OTP-14461 Aux Id: PR-1857

+
+ +

+ Crypto's single C-file is splitted into multiple files. + The different coding styles in the different parts are + unified into a single style.

+

+ Own Id: OTP-14732 Aux Id: PR-2068, PR-2095

+
+ +

+ Build configuration of the crypto application has + been moved from the erts application into the + crypto application.

+

+ Own Id: OTP-15129

+
+ +

+ Adds two hash functions blake2b and blake2s + (64 bit hash and 32 bit hash respectively). These are + modern and standard hash functions used in blockchains + and encrypted communication protocols. The hash functions + are available in OpenSSL since version 1.1.1.

+

+ Own Id: OTP-15564 Aux Id: PR-2129

+
+ +

+ A new API is implemented in crypto. See the CRYPTO user's + guide, chapter New and Old API for more + information.

+

+ The old api with the crypto:block_* and + crypto:stream_* interfaces is kept for + compatibility, but implemented with the new api. Please + note that since the error checking is more thorough, + there might be arguments with for example faulty + lengths that are no longer accepted.

+

+ *** POTENTIAL INCOMPATIBILITY ***

+

+ Own Id: OTP-15644 Aux Id: OTP-14732 , OTP-15451, PR-1857 + , PR-2068, PR-2095

+
+ +

+ The new hash_info/1 and cipher_info/1 functions returns + maps with information about the hash or cipher in the + argument.

+

+ Own Id: OTP-15655 Aux Id: PR-2173, ERL-864, PR-2186

+
+ +

+ Obey additional OpenSSL configure flags when compiling + the C-part of the CRYPTO application: no-bf, + no-blake2, no-chacha, no-cmac, + no-dh, no-dsa, no-md4, + no-poly1305, no-rc2, no-rc4 and + no-rmd160.

+

+ Own Id: OTP-15683

+
+ +

+ A new function crypto:supports/1 is introduced. + The single argument takes an atom as argument: + hashs, public_keys, ciphers, + macs, curves or rsa_opts. The return + value is a list of supported algorithms.

+

+ The difference with the existing crypto:supports/0 + is, apart from the argument and the return value, that + the old function reports what is supported by the old + api, and the new function reports algorithms in the new + api.

+

+ Own Id: OTP-15771

+
+
+
+ +
+
Crypto 4.4.2
Fixed Bugs and Malfunctions diff --git a/lib/crypto/vsn.mk b/lib/crypto/vsn.mk index 0a3d9f45e4..72a51bfec9 100644 --- a/lib/crypto/vsn.mk +++ b/lib/crypto/vsn.mk @@ -1 +1 @@ -CRYPTO_VSN = 4.4.2 +CRYPTO_VSN = 4.5 -- cgit v1.2.3