Track update to bouncycastle 1.54
Change-Id: I87252e179e191c6210d26e4055bee03fb43d8ba7
diff --git a/verity/Utils.java b/verity/Utils.java
index 937c206..6d80276 100644
--- a/verity/Utils.java
+++ b/verity/Utils.java
@@ -258,10 +258,10 @@
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);