Work around BC RSA Cipher returning wrong OAEPParameterSpec.

Bouncy Castle RSA Cipher caches the AlgorithmParameters it returns
from its Cipher.getParameters and does not invalidate or update this
cache when the Cipher instance is reinitialized. This changes an
Android Keystore RSA Cipher CTS test to work around this bug by
creating a new instance of Bouncy Castle RSA Cipher instead of
reinitializing an existing instance.

Bug: 25874471
Change-Id: Id3d749256c2e71b160b0cd7668bfda32c25a5fdd
1 file changed