resolve merge conflicts of bdc6074276
to master.
Change-Id: Ieea1b33867acc7a6dd17f0340f30a66c29ce4359
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
LOCAL_PATH:= $(call my-dir)
|
LOCAL_PATH:= $(call my-dir)
|
||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
LOCAL_JAVA_LIBRARIES := bouncycastle conscrypt telephony-common ims-common
|
LOCAL_JAVA_LIBRARIES := bouncycastle core-oj telephony-common ims-common
|
||||||
LOCAL_STATIC_JAVA_LIBRARIES := \
|
LOCAL_STATIC_JAVA_LIBRARIES := \
|
||||||
android-support-v4 \
|
android-support-v4 \
|
||||||
android-support-v13 \
|
android-support-v13 \
|
||||||
|
@@ -48,7 +48,8 @@ import com.android.internal.widget.LockPatternUtils;
|
|||||||
import com.android.org.bouncycastle.asn1.ASN1InputStream;
|
import com.android.org.bouncycastle.asn1.ASN1InputStream;
|
||||||
import com.android.org.bouncycastle.asn1.pkcs.PrivateKeyInfo;
|
import com.android.org.bouncycastle.asn1.pkcs.PrivateKeyInfo;
|
||||||
|
|
||||||
import org.apache.harmony.security.utils.AlgNameMapper;
|
import sun.security.util.ObjectIdentifier;
|
||||||
|
import sun.security.x509.AlgorithmId;
|
||||||
|
|
||||||
import java.io.ByteArrayInputStream;
|
import java.io.ByteArrayInputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@@ -217,8 +218,8 @@ public final class CredentialStorage extends Activity {
|
|||||||
try {
|
try {
|
||||||
ASN1InputStream bIn = new ASN1InputStream(new ByteArrayInputStream(keyData));
|
ASN1InputStream bIn = new ASN1InputStream(new ByteArrayInputStream(keyData));
|
||||||
PrivateKeyInfo pki = PrivateKeyInfo.getInstance(bIn.readObject());
|
PrivateKeyInfo pki = PrivateKeyInfo.getInstance(bIn.readObject());
|
||||||
String algId = pki.getAlgorithmId().getAlgorithm().getId();
|
String algOid = pki.getAlgorithmId().getAlgorithm().getId();
|
||||||
String algName = AlgNameMapper.map2AlgName(algId);
|
String algName = new AlgorithmId(new ObjectIdentifier(algOid)).getName();
|
||||||
|
|
||||||
return KeyChain.isBoundKeyAlgorithm(algName);
|
return KeyChain.isBoundKeyAlgorithm(algName);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
Reference in New Issue
Block a user