Lines Matching refs:Certificate
123 int verify_file(const unsigned char* addr, size_t length, const std::vector<Certificate>& keys,
273 if (key.key_type == Certificate::KEY_TYPE_RSA) {
282 } else if (key.key_type == Certificate::KEY_TYPE_EC && key.hash_len == SHA256_DIGEST_LENGTH) {
463 // A Certificate is a pair of an RSAPublicKey and a particular hash
476 bool load_keys(const char* filename, std::vector<Certificate>& certs) {
484 certs.emplace_back(0, Certificate::KEY_TYPE_RSA, nullptr, nullptr);
485 Certificate& cert = certs.back();
492 cert.key_type = Certificate::KEY_TYPE_RSA;
500 cert.key_type = Certificate::KEY_TYPE_RSA;
505 cert.key_type = Certificate::KEY_TYPE_RSA;
510 cert.key_type = Certificate::KEY_TYPE_RSA;
515 cert.key_type = Certificate::KEY_TYPE_EC;
523 if (cert.key_type == Certificate::KEY_TYPE_RSA) {
530 } else if (cert.key_type == Certificate::KEY_TYPE_EC) {