aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Zongker2009-08-12 20:30:03 -0500
committerDoug Zongker2009-08-14 19:26:33 -0500
commit60151a295ccf726238dc47456d80b427db6d6a38 (patch)
tree42fdf22f18dc4097c2f86cbd691fe6b1c8bd3820 /verifier.h
parent0cf0e33b5fdb6eb871b64f5325ccd54339f62f01 (diff)
downloadplatform-bootable-recovery-60151a295ccf726238dc47456d80b427db6d6a38.tar.gz
platform-bootable-recovery-60151a295ccf726238dc47456d80b427db6d6a38.tar.xz
platform-bootable-recovery-60151a295ccf726238dc47456d80b427db6d6a38.zip
verify whole-file signature instead of jarsigner signatures
In recovery, verify a signature that covers the entire zip file, instead of using the jarsigner format to verify individual files. Bug: 1328985
Diffstat (limited to 'verifier.h')
-rw-r--r--verifier.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/verifier.h b/verifier.h
index d784dce4..1bdfca6d 100644
--- a/verifier.h
+++ b/verifier.h
@@ -17,14 +17,14 @@
17#ifndef _RECOVERY_VERIFIER_H 17#ifndef _RECOVERY_VERIFIER_H
18#define _RECOVERY_VERIFIER_H 18#define _RECOVERY_VERIFIER_H
19 19
20#include "minzip/Zip.h"
21#include "mincrypt/rsa.h" 20#include "mincrypt/rsa.h"
22 21
23/* 22/* Look in the file for a signature footer, and verify that it
24 * Check the digital signature (as applied by jarsigner) on a Zip archive. 23 * matches one of the given keys. Return one of the constants below.
25 * Every file in the archive must be signed by one of the supplied RSA keys.
26 */ 24 */
27bool verify_jar_signature(const ZipArchive *pArchive, 25int verify_file(const char* path, const RSAPublicKey *pKeys, unsigned int numKeys);
28 const RSAPublicKey *pKeys, int numKeys); 26
27#define VERIFY_SUCCESS 0
28#define VERIFY_FAILURE 1
29 29
30#endif /* _RECOVERY_VERIFIER_H */ 30#endif /* _RECOVERY_VERIFIER_H */