X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=verity%2FUtils.java;h=6d8027625575fe33dd5b828360d2f5ef42538e08;hb=20e3c1bc9429230b7379db3747fd0c918f76af27;hp=937c2063baa03172300f48406ef33a9538b7d687;hpb=82003283a2679a21d91502e66765605254a7a1bb;p=android-x86%2Fsystem-extras.git diff --git a/verity/Utils.java b/verity/Utils.java index 937c2063..6d802762 100644 --- a/verity/Utils.java +++ b/verity/Utils.java @@ -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);