Home
last modified time | relevance | path

Searched refs:key_type (Results 1 – 3 of 3) sorted by relevance

/bootable/recovery/install/
Dverifier.cpp279 if (key.key_type == Certificate::KEY_TYPE_RSA) { in verify_file()
288 } else if (key.key_type == Certificate::KEY_TYPE_EC && key.hash_len == SHA256_DIGEST_LENGTH) { in verify_file()
297 LOG(INFO) << "Unknown key type " << key.key_type; in verify_file()
449 int key_type = EVP_PKEY_id(public_key.get()); in LoadCertificateFromBuffer() local
450 if (key_type == EVP_PKEY_RSA) { in LoadCertificateFromBuffer()
451 cert->key_type = Certificate::KEY_TYPE_RSA; in LoadCertificateFromBuffer()
458 } else if (key_type == EVP_PKEY_EC) { in LoadCertificateFromBuffer()
459 cert->key_type = Certificate::KEY_TYPE_EC; in LoadCertificateFromBuffer()
467 LOG(ERROR) << "Unrecognized public key type " << OBJ_nid2ln(key_type); in LoadCertificateFromBuffer()
/bootable/recovery/install/include/install/
Dverifier.h53 : hash_len(hash_len_), key_type(key_type_), rsa(std::move(rsa_)), ec(std::move(ec_)) {} in Certificate()
57 KeyType key_type; member
/bootable/recovery/tests/unit/
Dverifier_test.cpp111 ASSERT_EQ(Certificate::KEY_TYPE_RSA, cert.key_type); in TEST()
122 ASSERT_EQ(Certificate::KEY_TYPE_RSA, cert.key_type); in TEST()
133 ASSERT_EQ(Certificate::KEY_TYPE_RSA, cert.key_type); in TEST()
144 ASSERT_EQ(Certificate::KEY_TYPE_RSA, cert.key_type); in TEST()
155 ASSERT_EQ(Certificate::KEY_TYPE_EC, cert.key_type); in TEST()
166 ASSERT_EQ(Certificate::KEY_TYPE_RSA, cert.key_type); in TEST()