diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-06-15 21:37:31 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-06-15 21:37:31 +0000 |
commit | cfdc83189347600d7216ae8f0508aa246a70bcb0 (patch) | |
tree | daf45d522673930ba2a90970d64295962b9ce13e | |
parent | 62381ee230134516917d37a6c7eb689b94e90cc5 (diff) | |
parent | 8687a85bc0e6ef46bac3bce290cca2cddc7d6720 (diff) | |
download | bouncycastle-android12-mainline-tzdata3-release.tar.gz |
Snap for 8730993 from 8687a85bc0e6ef46bac3bce290cca2cddc7d6720 to mainline-tzdata3-releaseaml_tz3_314012070aml_tz3_314012050aml_tz3_314012010aml_tz3_313110000aml_tz3_312511020aml_tz3_312511010aml_tz3_312410020aml_tz3_312410010android12-mainline-tzdata3-releaseaml_tz3_314012010
Change-Id: I09f4a8d6077fe7ef724bdcc18428bf1cdadfaeb2
5 files changed, 1 insertions, 179 deletions
@@ -147,7 +147,6 @@ unbundled_visibility = [ "//external/robolectric-shadows/robolectric", "//external/robolectric-shadows/shadows/supportv4", "//external/robolectric-shadows/shadows/httpclient", - "//external/wycheproof", "//frameworks/opt/net/wifi/service", "//frameworks/opt/net/wifi/tests/wifitests", "//packages/apps/CertInstaller", @@ -158,7 +157,6 @@ unbundled_visibility = [ "//packages/modules/Wifi/service/tests/wifitests", "//libcore", "//system/extras/verity", - "//system/security/identity/util", "//tools/security/remote_provisioning/attestation_testing", "//vendor:__subpackages__", ] @@ -253,26 +251,3 @@ java_library { ], sdk_version: "core_current", } - -// Bouncycastle for use by packages/modules/ExtServices project. -// -// Excludes directories not needed for ASN1*.java and X509* sources. -// -java_library { - name: "bouncycastle-extservices-asn", - visibility: [ - "//packages/modules/ExtServices", - ], - apex_available: [ - "com.android.extservices", - "test_com.android.extservices", - ], - srcs: [ - "bcprov/src/main/java/org/bouncycastle/**/*.java", - ], - exclude_srcs: [ - "bcprov/src/main/java/org/bouncycastle/asn1/ocsp/**/*.java", - "bcprov/src/main/java/org/bouncycastle/iana/**/*.java", - ], - sdk_version: "core_current", -} @@ -1,2 +1,2 @@ # Bug component: 684135 -include platform/libcore:/OWNERS +include platform/external/conscrypt:/OWNERS diff --git a/bcprov/src/main/java/org/bouncycastle/jcajce/provider/keystore/bc/BcKeyStoreSpi.java b/bcprov/src/main/java/org/bouncycastle/jcajce/provider/keystore/bc/BcKeyStoreSpi.java index 5ec21c8b..2c439f4e 100644 --- a/bcprov/src/main/java/org/bouncycastle/jcajce/provider/keystore/bc/BcKeyStoreSpi.java +++ b/bcprov/src/main/java/org/bouncycastle/jcajce/provider/keystore/bc/BcKeyStoreSpi.java @@ -931,33 +931,6 @@ public class BcKeyStoreSpi dOut.close(); } - // BEGIN Android-added: new API for KeyStore probing. - /** - * Probe the first few bytes of the keystore data stream for a valid - * keystore encoding. Only the primary keystore implementation is probed. - */ - public boolean engineProbe(InputStream stream) throws IOException { - if (stream == null) { - throw new NullPointerException("input stream must not be null"); - } - DataInputStream dIn = new DataInputStream(stream); - int version = dIn.readInt(); - - if (version != STORE_VERSION) { - if (version != 0 && version != 1) { - return false; - } - } - byte[] salt = new byte[dIn.readInt()]; - - if (salt.length != STORE_SALT_SIZE) { - return false; - } - - return true; - } - // END Android-added: new API for KeyStore probing. - /** * the BouncyCastle store. This wont work with the key tool as the * store is stored encrypted on disk, so the password is mandatory, @@ -1077,30 +1050,6 @@ public class BcKeyStoreSpi cOut.close(); } - - // BEGIN Android-added: new API for KeyStore probing. - @Override - public boolean engineProbe(InputStream stream) throws IOException { - if (stream == null) { - throw new NullPointerException("input stream must not be null"); - } - DataInputStream dIn = new DataInputStream(stream); - int version = dIn.readInt(); - - if (version != STORE_VERSION) { - if (version != 0 && version != 1) { - return false; - } - } - byte[] salt = new byte[dIn.readInt()]; - - if (salt.length != STORE_SALT_SIZE) { - return false; - } - - return true; - } - // END Android-added: new API for KeyStore probing. } public static class Std diff --git a/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/keystore/bc/BcKeyStoreSpi.java b/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/keystore/bc/BcKeyStoreSpi.java index 9605cedd..44faf7db 100644 --- a/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/keystore/bc/BcKeyStoreSpi.java +++ b/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/keystore/bc/BcKeyStoreSpi.java @@ -935,33 +935,6 @@ public class BcKeyStoreSpi dOut.close(); } - // BEGIN Android-added: new API for KeyStore probing. - /** - * Probe the first few bytes of the keystore data stream for a valid - * keystore encoding. Only the primary keystore implementation is probed. - */ - public boolean engineProbe(InputStream stream) throws IOException { - if (stream == null) { - throw new NullPointerException("input stream must not be null"); - } - DataInputStream dIn = new DataInputStream(stream); - int version = dIn.readInt(); - - if (version != STORE_VERSION) { - if (version != 0 && version != 1) { - return false; - } - } - byte[] salt = new byte[dIn.readInt()]; - - if (salt.length != STORE_SALT_SIZE) { - return false; - } - - return true; - } - // END Android-added: new API for KeyStore probing. - /** * the BouncyCastle store. This wont work with the key tool as the * store is stored encrypted on disk, so the password is mandatory, @@ -1082,30 +1055,6 @@ public class BcKeyStoreSpi cOut.close(); } - - // BEGIN Android-added: new API for KeyStore probing. - @Override - public boolean engineProbe(InputStream stream) throws IOException { - if (stream == null) { - throw new NullPointerException("input stream must not be null"); - } - DataInputStream dIn = new DataInputStream(stream); - int version = dIn.readInt(); - - if (version != STORE_VERSION) { - if (version != 0 && version != 1) { - return false; - } - } - byte[] salt = new byte[dIn.readInt()]; - - if (salt.length != STORE_SALT_SIZE) { - return false; - } - - return true; - } - // END Android-added: new API for KeyStore probing. } /** diff --git a/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/keystore/bc/BcKeyStoreSpi.java b/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/keystore/bc/BcKeyStoreSpi.java index 6c2c25b0..44be654a 100644 --- a/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/keystore/bc/BcKeyStoreSpi.java +++ b/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/keystore/bc/BcKeyStoreSpi.java @@ -935,33 +935,6 @@ public class BcKeyStoreSpi dOut.close(); } - // BEGIN Android-added: new API for KeyStore probing. - /** - * Probe the first few bytes of the keystore data stream for a valid - * keystore encoding. Only the primary keystore implementation is probed. - */ - public boolean engineProbe(InputStream stream) throws IOException { - if (stream == null) { - throw new NullPointerException("input stream must not be null"); - } - DataInputStream dIn = new DataInputStream(stream); - int version = dIn.readInt(); - - if (version != STORE_VERSION) { - if (version != 0 && version != 1) { - return false; - } - } - byte[] salt = new byte[dIn.readInt()]; - - if (salt.length != STORE_SALT_SIZE) { - return false; - } - - return true; - } - // END Android-added: new API for KeyStore probing. - /** * the BouncyCastle store. This wont work with the key tool as the * store is stored encrypted on disk, so the password is mandatory, @@ -1082,30 +1055,6 @@ public class BcKeyStoreSpi cOut.close(); } - - // BEGIN Android-added: new API for KeyStore probing. - @Override - public boolean engineProbe(InputStream stream) throws IOException { - if (stream == null) { - throw new NullPointerException("input stream must not be null"); - } - DataInputStream dIn = new DataInputStream(stream); - int version = dIn.readInt(); - - if (version != STORE_VERSION) { - if (version != 0 && version != 1) { - return false; - } - } - byte[] salt = new byte[dIn.readInt()]; - - if (salt.length != STORE_SALT_SIZE) { - return false; - } - - return true; - } - // END Android-added: new API for KeyStore probing. } /** |