diff options
author | Doug Zongker <dougz@android.com> | 2009-12-11 00:35:23 +0100 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2009-12-11 00:35:23 +0100 |
commit | 9b430e11d6c4fb907d0aa96667142e2c00585e09 (patch) | |
tree | 3d7f4df0550a64aed5cf98eb165de9a4ca7d7cfc /verifier.c | |
parent | am 9acf28a3: am c652e41d: fix cut-and-paste error in verifier (diff) | |
parent | add a simple unit test for the OTA package verifier (diff) | |
download | android_bootable_recovery-9b430e11d6c4fb907d0aa96667142e2c00585e09.tar android_bootable_recovery-9b430e11d6c4fb907d0aa96667142e2c00585e09.tar.gz android_bootable_recovery-9b430e11d6c4fb907d0aa96667142e2c00585e09.tar.bz2 android_bootable_recovery-9b430e11d6c4fb907d0aa96667142e2c00585e09.tar.lz android_bootable_recovery-9b430e11d6c4fb907d0aa96667142e2c00585e09.tar.xz android_bootable_recovery-9b430e11d6c4fb907d0aa96667142e2c00585e09.tar.zst android_bootable_recovery-9b430e11d6c4fb907d0aa96667142e2c00585e09.zip |
Diffstat (limited to 'verifier.c')
-rw-r--r-- | verifier.c | 4 |
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)) { |