Skip to content

Releases: corretto/amazon-corretto-crypto-provider

AmazonCorrettoCryptoProvider 1.6.1 - 2021-04-21

21 Apr 22:57
46cb685
Compare
Choose a tag to compare

1.6.1

Patches

  • Fix an issue where a race condition can cause ACCP's MessageDigest hashing algorithms to return the same value for different inputs PR #157

AmazonCorrettoCryptoProvider 1.6.0 - 2021-03-17

18 Mar 00:38
59b129a
Compare
Choose a tag to compare

1.6.0

Breaking Change

In accordance with our versioning policy, this release contains a low-risk breaking change. For details please see the 1.5.0 release. This change only impacts libraries that generate EC keys using the KeyPairGenerator.initialize(int keysize) method.

Improvements

  • Stricter guarantees about which curves are used for EC key generation. PR #127
  • Reduce timing signal from trimming zeros of TLSPremasterSecrets from DH KeyAgreement. PR #129
  • Reuse state in MessageDigest to decrease object allocation rate. PR #131
  • Now uses OpenSSL 1.1.1j. PR #145 (ACCP is not impacted by CVE-2020-1971, CVE-2021-23841, or CVE-2021-23839 as ACCP does not use or expose any of the relevant functionality. ACCP is not impacted by CVE-2021-23840 as ACCP does not use the relevant functionality under the affected conditions.)

Patches

  • Add version gating to some tests introduced in 1.5.0 PR #128
  • More accurate output size estimates from Cipher.getOutputSize() PR #138
  • Validate that AesGcmSpi receives a non-null key on init to prevent unnecessarily late NPE PR #146
  • Gracefully handle calling Cipher.doFinal() without any input bytes in RsaCipher PR #147

AmazonCorrettoCryptoProvider 1.5.0 - 2020-09-10

10 Sep 20:14
130ceaa
Compare
Choose a tag to compare

1.5.0

Breaking Change Warning

In accordance with our versioning policy, we post warnings of upcoming changes that might cause compatibility issues. As always, we expect that these changes will not impact the vast majority of consumers and can be picked up automatically provided you have good unit and integration changes.

Starting in ACCP version 1.6.0, EC key pair generation will throw an InvalidParameterException if initialized to a keysize that is not in the following list. For these explicit sizes (only), ACCP behavior is unchanged. ACCP selects the the "secp*r1" curve that corresponds to the value. (For these values, its also the corresponding NIST prime curve).

Supported keysize values:

  • 192
  • 224
  • 256
  • 384
  • 521

This means that the following code will start failing because it requests a keysize that is not on the list.

KeyPairGenerator kg = KeyPairGenerator.getInstance("EC");
kg.initialize(160); // Throws an InvalidParameterException

We are making this change because the "SunEC" provider does not document its curve selection process for sizes other than those listed above and does not promise that it will continue to use the same curve selection process. Without a consistency guarantee, developers can't use KeyPairGenerator.initialize(int keysize) safely (regardless of whether ACCP is used or not).

We strongly recommend using KeyPairGenerator.initialize(AlgorithmParameterSpec params) with ECGenParameterSpec to generate EC keys.

From versions 1.2.0 through 1.5.0, ACCP selects the corresponding "secp*r1" curve for any keysize requested.
For the explicit sizes listed above this matches the SunEC behavior.
For other sizes, there are no documented guarantees of the SunEC behavior.

Improvements

  • Now uses OpenSSL 1.1.1g. PR #108

  • Adds support for running a single test from the command line with the following syntax: PR #113

    ./gradlew single_test -DSINGLE_TEST=<Fully Qualified Classname>

    For example: ./gradlew single_test -DSINGLE_TEST=com.amazon.corretto.crypto.provider.test.EcGenTest

    You may need to do a clean build when changing tests.

Patches

Maintenance

  • Upgrade tests to JUnit5. PR #111
  • Upgrade BouncyCastle test dependency 1.65. PR #110
  • Add version gating to P1363 Format tests. PR #112
  • Re-add support for very old x86_64 build-chains. PR #112

AmazonCorrettoCryptoProvider 1.4.0 - 2020-04-16

16 Apr 23:46
31e7e92
Compare
Choose a tag to compare

1.4.0

Improvements

Maintenance

  • Test code reuses instances of SecureRandom for better efficiency on platforms with slow entropy. PR #96

AmazonCorrettoCryptoProvider 1.3.1 Release -- 2020-03-05

06 Mar 00:26
7472f26
Compare
Choose a tag to compare

1.3.1

Maintenance

  • Add timestamping to signed jars. PR #85
  • Create the Janitor in the Loader so that it gets a more logical and consistent ThreadGroup. PR #87
  • Signed with new JCE signing certificate

AmazonCorrettoCryptoProvider 1.3.0 Release -- 2020-01-13

13 Jan 18:30
e612563
Compare
Choose a tag to compare

1.3.0

Improvements

  • Now supports ECDSA signatures in IEEE P1363 format. (Also known as "raw" or "plain".) PR #75
  • Now allows cloning of Mac objects. PR #78

Maintenance

  • You can disable parallel execution of tests by setting the ACCP_TEST_PARALLEL environment variable to false.

AmazonCorrettoCryptoProvider 1.2.0 Release -- 2019-11-12

12 Nov 22:09
74697b2
Compare
Choose a tag to compare

1.2.0

Improvements

Patches

  • Detects stuck AMD Ryzen RDRAND and correctly treats as an error PR #67
  • When initialized with an int,KeyPairGenerator for "EC" keys now always uses "secp*r1" curves.
    This matches the behavior of SunEC.
    This changes the curves selected for 192 from secp192k1 to secp192r1/P-192, and curves selected for 256 from secp256k1 to secp256r1/P-256.
    PR #68

Maintenance

  • The test output now contains a prefix indication whether the suite will fail. PR #63
  • You can disable colored test output by setting the ACCP_TEST_COLOR environment variable to false PR #64

AmazonCorrettoCryptoProvider 1.1.1 Release -- 2019-09-12

12 Sep 20:15
57bae8c
Compare
Choose a tag to compare

1.1.1

Patches

  • amazon-corretto-crypto-provider.security updated to work on both JDK8 and JDK9+
  • Improve performance of single-byte handling in message digests.

Maintenance

  • Support using a different JDK for testing via the TEST_JAVA_HOME JVM property
  • Clarify licensing

AmazonCorrettoCryptoProvider 1.1.0 Release -- 2019-07-15

11 Jul 20:13
b985be5
Compare
Choose a tag to compare

1.1.0

Improvements

  • Now supports DH key agreement for more than two parties.

Patches

  • Reject RSA key generation shorter than 512 bits
  • Fix incorrect exception when SunJSSE validates RSA signatures backed by ACCP RSA
  • Make the provider actually serializable to keep JTREG happy
  • Moved property and resource access to inside PrivilegedAction blocks
  • Throw InvalidKeyException when KeyAgreement and Signature gets null keys
  • Throw SignatureException on corrupted signatures as required by the JCA/JCE

Maintenance

  • Changed logging level to eliminate output under normal usage.

1.0.4

Maintenance

  • Fix Java heap space issues in unit tests

AmazonCorrettoCryptoProvider 1.0.3 Release -- 2019-06-05

05 Jun 18:23
e8a9579
Compare
Choose a tag to compare

1.0.3

Patches

  • Fix performance issue caused by always clearing the OpenSSL error stack
  • Correctly clear OpenSSL error stack in failed signature verification

Maintenance

  • Make coverage fail if OpenSSL error stack isn't clean
  • Consolidate version information to single location
  • Improve docs