-
Carlos IL authored
Moved EncryptSerializedReport, DecryptErrorReport, and GetHkdfSubkeySecret from certificate_reporting to a new encrypted_messages component and renamed them EncryptSerializedMessage and DecryptMessage. Changed hkdf_label from a constant to a parameter and modified all the code that depended on those functions to use them from their new locations. Moved existing decryption test from error_reporter.cc to the new component and added a test to validate decryption fails with an invalid private key. Bug: 769143 Change-Id: I86b9b362fde92d35bca27be43adf0bc72fbf73f0 Reviewed-on: https://chromium-review.googlesource.com/690849 Reviewed-by: Nathan Parker <nparker@chromium.org> Reviewed-by: Jochen Eisinger <jochen@chromium.org> Reviewed-by: David Benjamin <davidben@chromium.org> Reviewed-by: Emily Stark <estark@chromium.org> Commit-Queue: Carlos IL <carlosil@chromium.org> Cr-Commit-Position: refs/heads/master@{#507200}
3e5dd765