Merge "Keystore 2.0: Fix infinit recursion." am: 544f3d5211 am: d68724597d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1645913 Change-Id: Ibc53be4a881787c592a8b7869b8e7973d83ad5b5
This commit is contained in:
@@ -124,7 +124,7 @@ abstract class AndroidKeyStoreCipherSpiBase extends CipherSpi implements KeyStor
|
|||||||
resetAll();
|
resetAll();
|
||||||
|
|
||||||
// Public key operations get diverted to the default provider.
|
// Public key operations get diverted to the default provider.
|
||||||
if (opmode == Cipher.ENCRYPT_MODE
|
if (!(key instanceof AndroidKeyStorePrivateKey)
|
||||||
&& (key instanceof PrivateKey || key instanceof PublicKey)) {
|
&& (key instanceof PrivateKey || key instanceof PublicKey)) {
|
||||||
try {
|
try {
|
||||||
mCipher = Cipher.getInstance(getTransform());
|
mCipher = Cipher.getInstance(getTransform());
|
||||||
@@ -186,7 +186,7 @@ abstract class AndroidKeyStoreCipherSpiBase extends CipherSpi implements KeyStor
|
|||||||
resetAll();
|
resetAll();
|
||||||
|
|
||||||
// Public key operations get diverted to the default provider.
|
// Public key operations get diverted to the default provider.
|
||||||
if (opmode == Cipher.ENCRYPT_MODE
|
if (!(key instanceof AndroidKeyStorePrivateKey)
|
||||||
&& (key instanceof PrivateKey || key instanceof PublicKey)) {
|
&& (key instanceof PrivateKey || key instanceof PublicKey)) {
|
||||||
try {
|
try {
|
||||||
mCipher = Cipher.getInstance(getTransform());
|
mCipher = Cipher.getInstance(getTransform());
|
||||||
@@ -216,7 +216,7 @@ abstract class AndroidKeyStoreCipherSpiBase extends CipherSpi implements KeyStor
|
|||||||
resetAll();
|
resetAll();
|
||||||
|
|
||||||
// Public key operations get diverted to the default provider.
|
// Public key operations get diverted to the default provider.
|
||||||
if (opmode == Cipher.ENCRYPT_MODE
|
if (!(key instanceof AndroidKeyStorePrivateKey)
|
||||||
&& (key instanceof PrivateKey || key instanceof PublicKey)) {
|
&& (key instanceof PrivateKey || key instanceof PublicKey)) {
|
||||||
try {
|
try {
|
||||||
mCipher = Cipher.getInstance(getTransform());
|
mCipher = Cipher.getInstance(getTransform());
|
||||||
|
|||||||
Reference in New Issue
Block a user