Lines Matching refs:cert
485 Certificate& cert = certs.back();
492 cert.key_type = Certificate::KEY_TYPE_RSA;
494 cert.hash_len = SHA_DIGEST_LENGTH;
500 cert.key_type = Certificate::KEY_TYPE_RSA;
502 cert.hash_len = SHA_DIGEST_LENGTH;
505 cert.key_type = Certificate::KEY_TYPE_RSA;
507 cert.hash_len = SHA256_DIGEST_LENGTH;
510 cert.key_type = Certificate::KEY_TYPE_RSA;
512 cert.hash_len = SHA256_DIGEST_LENGTH;
515 cert.key_type = Certificate::KEY_TYPE_EC;
516 cert.hash_len = SHA256_DIGEST_LENGTH;
523 if (cert.key_type == Certificate::KEY_TYPE_RSA) {
524 cert.rsa = parse_rsa_key(f.get(), exponent);
525 if (!cert.rsa) {
529 LOG(INFO) << "read key e=" << exponent << " hash=" << cert.hash_len;
530 } else if (cert.key_type == Certificate::KEY_TYPE_EC) {
531 cert.ec = parse_ec_key(f.get());
532 if (!cert.ec) {
536 LOG(ERROR) << "Unknown key type " << cert.key_type;