History log of /libcore/luni/src/test/java/libcore/javax/crypto/MacTest.java
Revision Date Author Comments
491d88834d8af35b9701f92d972212d873dbb6a0 10-Oct-2017 Adam Vartanian <flooey@google.com> Deprecate BC implementations of duplicated algorithms

The first step in deprecating the BC implementations of algorithms that
are also provided by Conscrypt. This checks whether the app's target
API level is greater than a given threshold (currently O, but subject
to change later) and disallows access to those algorithms when true.
This limit only applies to requests from the system-created BC provider.
Apps can install their own provider, in which case they get the
implementations they requested.

This doesn't yet implement the deprecation for Cipher instances, since
the transformation scheme makes that more complicated.

The ultimate removal of these algorithms, once a sufficient deprecation
period has elapsed, is tracked in b/67761667.

Bug: 67626877
Test: cts -m CtsLibcoreTestCases
Test: cts -m CtsLibcoreOkHttpTestCases
Test: cts -m CtsLibcoreWycheproofBCTestCases
Test: cts -m CtsLibcoreWycheproofConscryptTestCases
Change-Id: I48f07226e66873a65859121af32028c1547952ac
2216155c3066236eb450f307983019f69a10303d 19-Oct-2016 Kenny Root <kroot@google.com> Address various ErrorProne warnings

Test: mmma -j32 libcore
Test: cts-tradefed run cts -m CtsLibcoreTestCases -a arm64-v8a
Change-Id: Ib42abe9c1a21b1d3cb103c769787c44fb7e793ae
61a39247fb8ae7183518607ca98c2296722762e7 05-Oct-2016 Sergio Giro <sgiro@google.com> external/bouncycastle: add algorithms for PbeWithHmacSha mac variants

Bug: 29631070
Test: run CtsLibcoreTestCases
Change-Id: I5fd344c1de7c687585bc65a582e468501ee9154d
565dd0cde6649cb401ff504ea557f8126bc65cea 26-Aug-2016 Sergio Giro <sgiro@google.com> Test alias name for HmacSHA224/HmacSHA256

(cherry picked from commit 6c6767d7b1dfeb09cb7fcf090274dac9c8978f3d)

Bug: 31114355
Change-Id: Ia2ffa15b626dd057f34a5c51f4fbc67876813f6d
Test: make -j 32, vogar MacTest
6c6767d7b1dfeb09cb7fcf090274dac9c8978f3d 26-Aug-2016 Sergio Giro <sgiro@google.com> Test alias name for HmacSHA224/HmacSHA256

Bug: 31114355
Test: make -j 32, vogar MacTest
Change-Id: Ia986e282aac082977865afbf50986f670562a027
2ae508725e0b6c4dd4c23717bc1625bd745670b6 02-Jun-2015 Sergio Giro <sgiro@google.com> libcore: throw InvalidKeyException instead of ProviderException

In java.security javax.crypto and java.security classes with
late binding, when guessing the provider and none of the
available ones supports the specified key

Bug: 18987633

(cherry pick from e38b83dd96281d178b01476b67d354655bf2de62)

Change-Id: I5931046e9044984baf724157138bf3a7c7ef5e90
e38b83dd96281d178b01476b67d354655bf2de62 02-Jun-2015 Sergio Giro <sgiro@google.com> libcore: throw InvalidKeyException instead of ProviderException

In java.security javax.crypto and java.security classes with
late binding, when guessing the provider and none of the
available ones supports the specified key

Bug: 18987633
Change-Id: I2a4d258c8f628e2c40f4cbb060cb8825097bd22a