Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: payload_signer.h

Issue 6771024: AU: Switch to 2048 bit RSA keys; Pad SHA256 hashes appropriately. (Closed) Base URL: http://git.chromium.org/git/update_engine.git@master
Patch Set: remove debug log statement Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: payload_signer.h
diff --git a/payload_signer.h b/payload_signer.h
index eb0663d6969f374811784293a2eeb01255bbfb75..c0f7cae8bb43726d3adc087c9ea5ec348027cf3f 100644
--- a/payload_signer.h
+++ b/payload_signer.h
@@ -67,6 +67,9 @@ class PayloadSigner {
static bool VerifySignedPayload(const std::string& payload_path,
const std::string& public_key_path);
+ // Pads a SHA256 hash so that it may be encrypted/signed with RSA2048.
gauravsh 2011/03/29 23:04:05 just a add a comment that this pads using the PKCS
adlr 2011/03/30 19:40:14 Done.
+ // Returns true on success, false otherwise.
+ static bool PadRSA2048SHA256Hash(std::vector<char>* hash);
gauravsh 2011/03/29 23:04:05 comment on what |hash| is? Also that in-place modi
adlr 2011/03/30 19:40:14 Done.
private:
// This should never be constructed
DISALLOW_IMPLICIT_CONSTRUCTORS(PayloadSigner);
« no previous file with comments | « delta_performer_unittest.cc ('k') | payload_signer.cc » ('j') | payload_signer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698