refactor: convert HashAlgorithm to enum class (#38233)
This commit is contained in:
parent
3dbc0a365f
commit
88a9962e22
6 changed files with 12 additions and 12 deletions
|
@ -46,11 +46,11 @@ void AsarFileValidator::OnRead(base::span<char> buffer,
|
|||
if (!current_hash_) {
|
||||
current_hash_byte_count_ = 0;
|
||||
switch (integrity_.algorithm) {
|
||||
case HashAlgorithm::SHA256:
|
||||
case HashAlgorithm::kSHA256:
|
||||
current_hash_ =
|
||||
crypto::SecureHash::Create(crypto::SecureHash::SHA256);
|
||||
break;
|
||||
case HashAlgorithm::NONE:
|
||||
case HashAlgorithm::kNone:
|
||||
CHECK(false);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue