summaryrefslogtreecommitdiffstats
path: root/verifier.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2009-12-10 02:01:45 +0100
committerDoug Zongker <dougz@android.com>2009-12-10 02:01:45 +0100
commit73ae31ce0ac09c0e45924d817644261c87ab1a60 (patch)
tree532c9d372ba61216f1e8b2f6673db11e44174935 /verifier.c
parentam c652e41d: fix cut-and-paste error in verifier (diff)
downloadandroid_bootable_recovery-73ae31ce0ac09c0e45924d817644261c87ab1a60.tar
android_bootable_recovery-73ae31ce0ac09c0e45924d817644261c87ab1a60.tar.gz
android_bootable_recovery-73ae31ce0ac09c0e45924d817644261c87ab1a60.tar.bz2
android_bootable_recovery-73ae31ce0ac09c0e45924d817644261c87ab1a60.tar.lz
android_bootable_recovery-73ae31ce0ac09c0e45924d817644261c87ab1a60.tar.xz
android_bootable_recovery-73ae31ce0ac09c0e45924d817644261c87ab1a60.tar.zst
android_bootable_recovery-73ae31ce0ac09c0e45924d817644261c87ab1a60.zip
Diffstat (limited to '')
-rw-r--r--verifier.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/verifier.c b/verifier.c
index 164fb4a01..9d39fd139 100644
--- a/verifier.c
+++ b/verifier.c
@@ -42,7 +42,7 @@ int verify_file(const char* path, const RSAPublicKey *pKeys, unsigned int numKey
// An archive with a whole-file signature will end in six bytes:
//
- // $ff $ff (2-byte comment size) (2-byte signature start)
+ // (2-byte signature start) $ff $ff (2-byte comment size)
//
// (As far as the ZIP format is concerned, these are part of the
// archive comment.) We start by reading this footer, this tells
@@ -169,7 +169,7 @@ int verify_file(const char* path, const RSAPublicKey *pKeys, unsigned int numKey
const uint8_t* sha1 = SHA_final(&ctx);
for (i = 0; i < numKeys; ++i) {
- // The 6 bytes is the "$ff $ff (signature_start) (comment_size)" that
+ // The 6 bytes is the "(signature_start) $ff $ff (comment_size)" that
// the signing tool appends after the signature itself.
if (RSA_verify(pKeys+i, eocd + eocd_size - 6 - RSANUMBYTES,
RSANUMBYTES, sha1)) {