refactor: convert HashAlgorithm to enum class (#38233)

This commit is contained in:
Milan Burda 2023-05-12 15:23:42 +02:00 committed by GitHub
parent 3dbc0a365f
commit 88a9962e22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 12 deletions

View file

@ -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;
}