summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergio Giro <sgiro@google.com>2016-02-10 23:34:49 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-02-10 23:34:49 +0000
commit7a71552b8691ee6e3722744a49832d7e08defb1f (patch)
tree7876fb1041e3bd36afc68620ec383bbb56e92d57
parent1de27a8b66fb5f417d475dccd5d97910c7411866 (diff)
parentab9a0c802d88ff47f3467fd66415a27f8f141b19 (diff)
downloadextras-7a71552b8691ee6e3722744a49832d7e08defb1f.tar.gz
Merge "Track update to bouncycastle 1.54"
-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);