Searched refs:hash_len (Results 1 – 3 of 3) sorted by relevance
/bootable/recovery/install/ |
D | verifier.cpp | 200 switch (key.hash_len) { in verify_file() 264 switch (key.hash_len) { in verify_file() 280 if (!RSA_verify(hash_nid, hash, key.hash_len, sig_der.data(), sig_der.size(), in verify_file() 288 } else if (key.key_type == Certificate::KEY_TYPE_EC && key.hash_len == SHA256_DIGEST_LENGTH) { in verify_file() 289 if (!ECDSA_verify(0, hash, key.hash_len, sig_der.data(), sig_der.size(), key.ec.get())) { in verify_file() 425 cert->hash_len = SHA_DIGEST_LENGTH; in LoadCertificateFromBuffer() 429 cert->hash_len = SHA256_DIGEST_LENGTH; in LoadCertificateFromBuffer()
|
/bootable/recovery/install/include/install/ |
D | verifier.h | 53 : hash_len(hash_len_), key_type(key_type_), rsa(std::move(rsa_)), ec(std::move(ec_)) {} in Certificate() 56 int hash_len; member
|
/bootable/recovery/tests/unit/ |
D | verifier_test.cpp | 110 ASSERT_EQ(SHA_DIGEST_LENGTH, cert.hash_len); in TEST() 121 ASSERT_EQ(SHA_DIGEST_LENGTH, cert.hash_len); in TEST() 132 ASSERT_EQ(SHA256_DIGEST_LENGTH, cert.hash_len); in TEST() 143 ASSERT_EQ(SHA256_DIGEST_LENGTH, cert.hash_len); in TEST() 154 ASSERT_EQ(SHA256_DIGEST_LENGTH, cert.hash_len); in TEST() 165 ASSERT_EQ(SHA256_DIGEST_LENGTH, cert.hash_len); in TEST()
|