From 01ed66d2ba4f1469b259965b186cafc04da57451 Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Wed, 9 Oct 2013 15:00:14 -0700 Subject: [PATCH] Allow ECDSA signing OTA files ECDSA works in the recovery verifier, so we can allow OTA updates to be signed with EC keys. Change-Id: If8f2be028843fbfd6c8c9c41b492605d9b5cbeb0 --- tools/signapk/SignApk.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tools/signapk/SignApk.java b/tools/signapk/SignApk.java index 11139eb11..b2470722c 100644 --- a/tools/signapk/SignApk.java +++ b/tools/signapk/SignApk.java @@ -858,10 +858,6 @@ class SignApk { if (signWholeFile) { - if (!"RSA".equalsIgnoreCase(privateKey[0].getAlgorithm())) { - System.err.println("Cannot sign OTA packages with non-RSA keys"); - System.exit(1); - } SignApk.signWholeFile(inputJar, firstPublicKeyFile, publicKey[0], privateKey[0], outputFile); } else {