History log of /libcore/luni/src/test/java/libcore/javax/crypto/MockCipherSpi.java
Revision Date Author Comments
264d21f1e86e7ec7976fc5346c21a8e17d8635b1 06-Jun-2016 Sergio Giro <sgiro@google.com> Cipher: always select a SPI in init according to the parameters

Behaviour before this CL was to avoid selecting a SPI if there
was a previously selected one. That is an incompatibility wrt M.

This CL makes Cipher compatible with the M behaviour

Bug: 29038928
Change-Id: Ie5ddf17e25344d41dc45f0c6df6effbca7dc7021
45a9e938ee58e79b00ae37233678ef9ab54e0392 22-Jul-2015 Kenny Root <kroot@google.com> Late binding: add more Cipher tests

Any provider throwing an unchecked exception should not prevent the next
possibly working provider from having a chance.

(cherry picked from commit f7cae3971c030257c62ebc20e9e5dfd6d734b34c)

Bug: 22573249
Change-Id: If3f508ed3e87de58b39ab380fb298a92fb1b593b
5423595a40397888d426112b1c6fe7b4fcf24e7a 21-Jul-2015 Kenny Root <kroot@google.com> Late binding: add tests for init-time rejection

Cipher should try to to initialize the CipherSpi it selects before
returning it as a successful match. These tests ensure that it is
correct.

(cherry picked from commit 85d1800ec694bb4c2f629073d79520c4a7ad0cc8)

Bug: 22573249
Change-Id: I12ed5021cf85fccb5d04a0904a302f6cd3569c3d
f7cae3971c030257c62ebc20e9e5dfd6d734b34c 22-Jul-2015 Kenny Root <kroot@google.com> Late binding: add more Cipher tests

Any provider throwing an unchecked exception should not prevent the next
possibly working provider from having a chance.

Bug: 22573249
Change-Id: If3f508ed3e87de58b39ab380fb298a92fb1b593b
85d1800ec694bb4c2f629073d79520c4a7ad0cc8 21-Jul-2015 Kenny Root <kroot@google.com> Late binding: add tests for init-time rejection

Cipher should try to to initialize the CipherSpi it selects before
returning it as a successful match. These tests ensure that it is
correct.

Bug: 22573249
Change-Id: I12ed5021cf85fccb5d04a0904a302f6cd3569c3d
beff0f1375b635c692d48190aa69a06986b5111f 06-Feb-2014 Kenny Root <kroot@google.com> Late binding: reinitializing causes selection

The Sun PKCS#11 document says that calling initialization with different
keys causes a new provider and service will be chosen. Currently the RI
fails these tests, but it seems like the correct thing to do.

Change-Id: Ie40d8ef5f0996477e157ffbc0d9f145448df3df1
3ed78a8925825daccdba23fda1f69cbb3aa77a24 05-Feb-2014 Kenny Root <kroot@google.com> Late binding: supplied Provider should be used

If a program supplies a Provider object, it should be used instead of
looking at the registered providers.

Bug: 12890254
Change-Id: Ia4d1ac88a1ed20ab6ad6a11d2d5f53ee51310544
85dab151e734557d356fb45c45cf7d4548dd6fdc 30-Sep-2013 Kenny Root <kroot@google.com> Late binding: add support to Cipher

This enables late binding support for Cipher algorithms. It will now pay
attention to SupportedKeyClasses and SupportedKeyFormats after the
Cipher#init(...) is called on the instance instead of selecting the
provider when Cipher#getInstance(...) creates the instance.

Change-Id: I27802f1f8b96d81dd2a269741d080dbe68232c9f