Lines Matching refs:cert_params

109                                          CertificateCallerParams* cert_params,  in get_certificate_params()  argument
111 if (!cert_params) return KM_ERROR_UNEXPECTED_NULL_POINTER; in get_certificate_params()
127 cert_params->serial = move(serial); in get_certificate_params()
129 cert_params->active_date_time = 0; in get_certificate_params()
130 cert_params->expire_date_time = kUndefinedExpirationDateTime; in get_certificate_params()
142 cert_params->active_date_time = static_cast<int64_t>(tmp); in get_certificate_params()
146 cert_params->expire_date_time = static_cast<int64_t>(tmp); in get_certificate_params()
155 cert_params->active_date_time = static_cast<int64_t>(tmp); in get_certificate_params()
161 cert_params->expire_date_time = static_cast<int64_t>(tmp); in get_certificate_params()
165 cert_params->active_date_time, cert_params->expire_date_time); in get_certificate_params()
169 return make_name_from_der(subject, &cert_params->subject_name); in get_certificate_params()
172 return make_name_from_str(kDefaultSubject, &cert_params->subject_name); in get_certificate_params()
249 const CertificateCallerParams& cert_params, X509_Ptr* cert_out) { in make_cert_rump() argument
262 !BN_to_ASN1_INTEGER(cert_params.serial.get(), serial_number.get()) || in make_cert_rump()
269 const_cast<X509_NAME*>(cert_params.subject_name.get()))) { in make_cert_rump()
279 LOG_D("Setting notBefore to %ld: ", cert_params.active_date_time / 1000); in make_cert_rump()
280 time_t notBeforeTime = static_cast<time_t>(cert_params.active_date_time / 1000); in make_cert_rump()
288 LOG_D("Setting notAfter to %ld: ", cert_params.expire_date_time / 1000); in make_cert_rump()
289 time_t notAfterTime = static_cast<time_t>(cert_params.expire_date_time / 1000); in make_cert_rump()
301 const CertificateCallerParams& cert_params, X509_Ptr* cert_out) { in make_cert() argument
305 if (keymaster_error_t error = make_cert_rump(issuer, cert_params, &certificate)) { in make_cert()
317 make_key_usage_extension(cert_params.is_signing_key, cert_params.is_encryption_key, in make_cert()
318 cert_params.is_agreement_key, &key_usage_extension)) { in make_cert()
354 CertificateCallerParams cert_params{}; in generate_self_signed_cert() local
359 *error = get_certificate_params(params, &cert_params, KmVersion::KEYMINT_1); in generate_self_signed_cert()
362 cert_params.is_signing_key = key.authorizations().Contains(TAG_PURPOSE, KM_PURPOSE_SIGN); in generate_self_signed_cert()
363 cert_params.is_encryption_key = key.authorizations().Contains(TAG_PURPOSE, KM_PURPOSE_DECRYPT); in generate_self_signed_cert()
364 cert_params.is_agreement_key = key.authorizations().Contains(TAG_PURPOSE, KM_PURPOSE_AGREE_KEY); in generate_self_signed_cert()
367 *error = make_cert(pkey.get(), cert_params.subject_name.get() /* issuer */, cert_params, &cert); in generate_self_signed_cert()