OSDN Git Service

ANRdaemon: move trace result from /sdcard to /data am: d93aa41807
[android-x86/system-extras.git] / verity / Utils.java
index 937c206..6d80276 100644 (file)
@@ -258,10 +258,10 @@ public class Utils {
 
     static boolean verify(PublicKey key, byte[] input, byte[] signature,
             AlgorithmIdentifier algId) throws Exception {
-        String algName = ID_TO_ALG.get(algId.getObjectId().getId());
+        String algName = ID_TO_ALG.get(algId.getAlgorithm().getId());
 
         if (algName == null) {
-            throw new IllegalArgumentException("Unsupported algorithm " + algId.getObjectId());
+            throw new IllegalArgumentException("Unsupported algorithm " + algId.getAlgorithm());
         }
 
         Signature verifier = Signature.getInstance(algName);