commit | 25d2270704e246d897596c991a36233cdc620790 | [log] [tgz] |
---|---|---|
author | Alex Klyubin <klyubin@google.com> | Thu Jun 25 09:04:37 2015 -0700 |
committer | Alex Klyubin <klyubin@google.com> | Thu Jun 25 09:09:04 2015 -0700 |
tree | 70f1800de6e8474bbd3140a8a079eae29c3a7b48 | |
parent | c781405f43ca06041777f2e382c0d5b7bdeac43a [diff] |
Support RSA encrypt using private key and PKCS#1 paddding. Some apps such as OpenVPN Connect for some reason generate PKCS#1-padded RSA signatures using Cipher (initialized in Cipher.ENCRYPT_MODE with private key!) instead of using Signature. Unfortunately, RI supports this strange behavior and previous releases of Android Keystore did the same. So, we have to continue supporting this craziness. Bug: 22083023 Change-Id: Ife3950d0d4ceb4e44e08014635312c1252878b69