Bug 1353956 - P1. Rename checksum used in SafeBrowsing V4 to SHA256. r=gcp
SafeBrowsing V4 protocol use SHA-256 as the checksum to check integrity of update data and also the integrity of prefix files. SafeBrowsing V2 HashStore use MD5 as the checksum to check integrity of .sbstore Since we are going to use CRC32 as the integrity check of V4 prefix files, I think rename V4 "checksum" to SHA256 can improve readability. Differential Revision: https://phabricator.services.mozilla.com/D21460
This commit is contained in:
@@ -829,7 +829,7 @@ nsresult ProtocolParserProtobuf::ProcessOneResponse(
|
||||
tuV4->SetNewClientState(state);
|
||||
|
||||
if (aResponse.has_checksum()) {
|
||||
tuV4->NewChecksum(aResponse.checksum().sha256());
|
||||
tuV4->SetSHA256(aResponse.checksum().sha256());
|
||||
}
|
||||
|
||||
PARSER_LOG(
|
||||
|
||||
Reference in New Issue
Block a user