Searched refs:cert_buf (Results 1 – 7 of 7) sorted by relevance
/system/security/keystore2/test_utils/ |
D | ffi_test_utils.rs | 31 fn validateCertChain(cert_buf: Vec<u8>, cert_len: u32, strict_issuer_check: bool) -> bool; in validateCertChain() 41 cert_buf: Vec<u8>, in getValueFromAttestRecord() 52 pub fn validate_certchain(cert_buf: &[u8]) -> Result<bool, Error> { in validate_certchain() 53 validate_certchain_with_strict_issuer_check(cert_buf, true) in validate_certchain() 58 cert_buf: &[u8], in validate_certchain_with_strict_issuer_check() 62 cert_buf.to_vec(), in validate_certchain_with_strict_issuer_check() 63 cert_buf.len().try_into().unwrap(), in validate_certchain_with_strict_issuer_check() 120 cert_buf: &[u8], in get_value_from_attest_record() 124 let result = ffi::getValueFromAttestRecord(cert_buf.to_vec(), tag.0, expected_sec_level.0); in get_value_from_attest_record()
|
D | ffi_test_utils.hpp | 6 bool validateCertChain(rust::Vec<rust::u8> cert_buf, uint32_t cert_len, bool strict_issuer_check); 12 CxxResult getValueFromAttestRecord(rust::Vec<rust::u8> cert_buf, int32_t tag,
|
D | ffi_test_utils.cpp | 269 bool validateCertChain(rust::Vec<rust::u8> cert_buf, uint32_t cert_len, bool strict_issuer_check) { in validateCertChain() argument 274 if (!getCertificateChain(cert_buf, cert_chain)) { in validateCertChain() 612 CxxResult getValueFromAttestRecord(rust::Vec<rust::u8> cert_buf, int32_t tag, in getValueFromAttestRecord() argument 617 uint8_t* cert_data = cert_buf.data(); in getValueFromAttestRecord() 618 int cert_data_size = cert_buf.size(); in getValueFromAttestRecord()
|
/system/security/keystore2/src/crypto/ |
D | lib.rs | 433 pub fn parse_subject_from_certificate(cert_buf: &[u8]) -> Result<Vec<u8>, Error> { in parse_subject_from_certificate() 441 cert_buf.as_ptr(), in parse_subject_from_certificate() 442 cert_buf.len(), in parse_subject_from_certificate() 461 cert_buf.as_ptr(), in parse_subject_from_certificate() 462 cert_buf.len(), in parse_subject_from_certificate()
|
D | crypto.cpp | 284 int extractSubjectFromCertificate(const uint8_t* cert_buf, size_t cert_len, uint8_t* subject_buf, in extractSubjectFromCertificate() argument 286 if (!cert_buf || !subject_buf) { in extractSubjectFromCertificate() 291 const uint8_t* p = cert_buf; in extractSubjectFromCertificate()
|
D | crypto.hpp | 89 int extractSubjectFromCertificate(const uint8_t* cert_buf, size_t cert_len,
|
D | certificate_utils.cpp | 615 uint8_t* cert_buf = nullptr; in signCertWith() local 616 int buf_len = i2d_re_X509_tbs(certificate, &cert_buf); in signCertWith() 621 bssl::UniquePtr<uint8_t> free_cert_buf(cert_buf); in signCertWith() 622 auto signature = sign(cert_buf, buf_len); in signCertWith()
|