summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2016-02-10 15:30:56 -0800
committerKenny Root <kroot@google.com>2016-02-10 15:30:56 -0800
commitab9a0c802d88ff47f3467fd66415a27f8f141b19 (patch)
tree077c7cb33edccaba5ef5c8f5369565bd019de9e1
parent796b0704878a54eabf7a90df507d3442ddb47833 (diff)
downloadextras-ab9a0c802d88ff47f3467fd66415a27f8f141b19.tar.gz
Track update to bouncycastle 1.54
Change-Id: I87252e179e191c6210d26e4055bee03fb43d8ba7
-rw-r--r--verity/Utils.java4
1 files changed, 2 insertions, 2 deletions
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);