Home
last modified time | relevance | path

Searched refs:nid (Results 1 – 6 of 6) sorted by relevance

/system/core/adb/tls/
Dadb_ca_list.cpp42 int X509_NAME_add_entry_by_NID_const(X509_NAME* name, int nid, int type, const unsigned char* bytes, in X509_NAME_add_entry_by_NID_const() argument
44 return X509_NAME_add_entry_by_NID(name, nid, type, const_cast<unsigned char*>(bytes), len, loc, in X509_NAME_add_entry_by_NID_const()
54 std::optional<std::string> GetX509NameTextByNid(X509_NAME* name, int nid) { in GetX509NameTextByNid() argument
56 int len = X509_NAME_get_text_by_NID(name, nid, nullptr, -1); in GetX509NameTextByNid()
63 CHECK(X509_NAME_get_text_by_NID(name, nid, buf.data(), buf.size())); in GetX509NameTextByNid()
/system/extras/libfec/
Davb_utils.cpp137 int nid = -1; in parse_avb_image() local
139 nid = NID_sha1; in parse_avb_image()
141 nid = NID_sha256; in parse_avb_image()
149 nid); in parse_avb_image()
Dfec_verity.cpp142 const std::vector<uint8_t> &salt, int nid) { in initialize() argument
143 check(nid == NID_sha256 || nid == NID_sha1); in initialize()
148 this->nid_ = nid; in initialize()
150 digest_length_ = nid == NID_sha1 ? SHA_DIGEST_LENGTH : SHA256_DIGEST_LENGTH; in initialize()
Dfec_private.h91 const std::vector<uint8_t> &salt, int nid);
/system/core/adb/crypto/
Dx509_generator.cpp37 bool add_ext(X509* cert, int nid, const char* value) { in add_ext() argument
45 X509_EXTENSION* ex = X509V3_EXT_nconf_nid(nullptr, &context, nid, mutableValue.data()); in add_ext()
/system/core/adb/tls/tests/
Dtls_connection_test.cpp195 int nid; member
234 CHECK(X509_NAME_add_entry_by_NID(name.get(), attr.nid, MBSTRING_ASC, in GetCAIssuerList()
553 EXPECT_EQ(X509_NAME_get_text_by_NID(name, attr.nid, in TEST_F()