Home
last modified time | relevance | path

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

/system/security/keystore2/src/crypto/
Dcertificate_utils.cpp54 std::variant<CertUtilsError, X509_NAME_Ptr>
60 return CertUtilsError::MemoryAllocation; in makeCommonName()
67 return CertUtilsError::MemoryAllocation; in makeCommonName()
72 return CertUtilsError::BoringSsl; in makeCommonName()
77 std::variant<CertUtilsError, std::vector<uint8_t>> makeKeyId(const X509* cert) { in makeKeyId()
81 return CertUtilsError::Encoding; in makeKeyId()
86 std::variant<CertUtilsError, AUTHORITY_KEYID_Ptr>
90 return CertUtilsError::MemoryAllocation; in makeAuthorityKeyExtension()
95 return CertUtilsError::MemoryAllocation; in makeAuthorityKeyExtension()
99 return CertUtilsError::BoringSsl; in makeAuthorityKeyExtension()
[all …]
/system/security/keystore2/src/crypto/include/
Dcertificate_utils.h46 class CertUtilsError {
63 constexpr CertUtilsError(Error e) : e_(e) {} in CertUtilsError() function
92 std::variant<CertUtilsError, X509_Ptr>
113 CertUtilsError setIssuer(X509* cert, const X509* signingCert, bool addAuthKeyExt);
119 CertUtilsError signCert(X509* certificate, EVP_PKEY* signing_key);
167 CertUtilsError signCertWith(X509* certificate,
177 std::variant<CertUtilsError, std::vector<uint8_t>> encodeCert(X509* certificate);
/system/security/keystore2/src/km_compat/
Dkm_compat.cpp1008 if (std::holds_alternative<keystore::CertUtilsError>(certOrError)) { in makeCert()
1213 if (std::holds_alternative<keystore::CertUtilsError>(encodedCertOrError)) { in getCertificate()