Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eae75389 authored by Neil Fuller's avatar Neil Fuller Committed by android-build-merger
Browse files

Merge "Avoid deprecated PrivateKeyInfo.getAlgorithmId()" am: a934366a

am: 8caeafdf

Change-Id: I9dcfcf4414837d32a42abc152a49fb4544ddac80
parents ce939610 8caeafdf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -218,7 +218,7 @@ public final class CredentialStorage extends Activity {
        try {
            ASN1InputStream bIn = new ASN1InputStream(new ByteArrayInputStream(keyData));
            PrivateKeyInfo pki = PrivateKeyInfo.getInstance(bIn.readObject());
            String algOid = pki.getAlgorithmId().getAlgorithm().getId();
            String algOid = pki.getPrivateKeyAlgorithm().getAlgorithm().getId();
            String algName = new AlgorithmId(new ObjectIdentifier(algOid)).getName();

            return KeyChain.isBoundKeyAlgorithm(algName);