Home
last modified time | relevance | path

Searched refs:Bstr (Results 1 – 12 of 12) sorted by relevance

/hardware/interfaces/identity/support/tests/
Dcppbor_test.cpp113 EXPECT_EQ("\x40", Bstr("").toString()); in TEST()
114 EXPECT_EQ("\x41\x61", Bstr("a").toString()); in TEST()
115 EXPECT_EQ("\x41\x41", Bstr("A").toString()); in TEST()
116 EXPECT_EQ("\x44\x49\x45\x54\x46", Bstr("IETF").toString()); in TEST()
117 EXPECT_EQ("\x42\x22\x5c", Bstr("\"\\").toString()); in TEST()
118 EXPECT_EQ("\x42\xc3\xbc", Bstr("\xc3\xbc").toString()); in TEST()
119 EXPECT_EQ("\x43\xe6\xb0\xb4", Bstr("\xe6\xb0\xb4").toString()); in TEST()
120 EXPECT_EQ("\x44\xf0\x90\x85\x91", Bstr("\xf0\x90\x85\x91").toString()); in TEST()
121 EXPECT_EQ("\x44\x01\x02\x03\x04", Bstr("\x01\x02\x03\x04").toString()); in TEST()
122 EXPECT_EQ("\x44\x40\x40\x40\x40", Bstr("@@@@").toString()); in TEST()
[all …]
DIdentityCredentialSupportTest.cpp65 cppbor::Bstr(vector<uint8_t>({1, 0, 2, 240, 255, 64})).encode())); in TEST()
67 EXPECT_EQ("{}", support::cborPrettyPrint(cppbor::Bstr(vector<uint8_t>()).encode())); in TEST()
142 support::cborPrettyPrint(cppbor::Array(cppbor::Bstr(vector<uint8_t>{10, 11}), in TEST()
/hardware/interfaces/identity/support/include/cppbor/
Dcppbor.h60 class Bstr; variable
118 virtual const Bstr* asBstr() const { return nullptr; } in asBstr()
285 class Bstr : public Item {
290 explicit Bstr(std::vector<uint8_t> v) : mValue(std::move(v)) {} in Bstr() function
293 explicit Bstr(const std::string& v) in Bstr() function
298 explicit Bstr(const std::pair<const uint8_t*, size_t>& buf) in Bstr() function
305 explicit Bstr(const std::pair<I1, I2>& pair) : mValue(pair.first, pair.second) {} in Bstr() function
311 Bstr(I1 begin, I2 end) : mValue(begin, end) {} in Bstr() function
313 bool operator==(const Bstr& other) const& { return mValue == other.mValue; }
316 const Bstr* asBstr() const override { return this; } in asBstr()
[all …]
DREADME.md32 * `Bstr` corresponds to major type 2, a byte string.
55 iterator>` and `std::pair<uint8_t*, size_t>` convert to `Bstr`.
/hardware/interfaces/identity/aidl/default/
DWritableIdentityCredential.cpp195 cppbor::Bstr(profile.readerCertificate.encodedCertificate)); in addAccessControlProfile()
346 array.add(cppbor::Bstr(storageKey)); in generateCredentialKeys()
347 array.add(cppbor::Bstr(credentialPrivKey)); in generateCredentialKeys()
374 array.add(cppbor::Bstr(credentialBlob.value())); in generateCredentialData()
DUtil.cpp47 map.add("readerCertificate", cppbor::Bstr(profile.readerCertificate.encodedCertificate)); in secureAccessControlProfileEncodeCbor()
DIdentityCredential.cpp62 const cppbor::Bstr* encryptedCredentialKeysItem = (*arrayItem)[2]->asBstr(); in initialize()
98 const cppbor::Bstr* storageKeyItem = (*dckArrayItem)[0]->asBstr(); in initialize()
99 const cppbor::Bstr* credentialPrivKeyItem = (*dckArrayItem)[1]->asBstr(); in initialize()
/hardware/interfaces/identity/support/src/
Dcppbor.cpp150 uint8_t* Bstr::encode(uint8_t* pos, const uint8_t* end) const { in encode()
156 void Bstr::encodeValue(EncodeCallback encodeCallback) const { in encodeValue()
DIdentityCredentialSupport.cpp205 const cppbor::Bstr* bstr = item->asBstr(); in cborPrettyPrintInternal()
1509 cppbor::Bstr emptyBstr(vector<uint8_t>({})); in coseEncodeHeaders()
1655 const cppbor::Bstr* encodedProtectedHeadersBstr = (*array)[0]->asBstr(); in coseCheckEcDsaSignature()
1677 const cppbor::Bstr* payloadAsBstr = (*array)[2]->asBstr(); in coseCheckEcDsaSignature()
1690 const cppbor::Bstr* signatureBstr = (*array)[3]->asBstr(); in coseCheckEcDsaSignature()
1737 const cppbor::Bstr* payloadAsBstr = (*array)[2]->asBstr(); in coseSignGetPayload()
1780 const cppbor::Bstr* bstr = valueItem->asBstr(); in coseSignGetX5Chain()
1788 const cppbor::Bstr* bstr = ((*array)[m])->asBstr(); in coseSignGetX5Chain()
Dcppbor_parse.cpp235 return handleString<Bstr>(addlData, begin, pos, end, "byte string", parseClient); in parseRecursively()
/hardware/interfaces/identity/aidl/vts/
DVtsIdentityTestUtils.h68 valueCbor = cppbor::Bstr(value).encode(); in TestEntryData()
DVtsHalIdentityEndToEndTest.cpp92 const cppbor::Bstr* encryptedCredentialKeysItem = (*arrayItem)[2]->asBstr(); in extractFromTestCredentialData()
117 const cppbor::Bstr* storageKeyItem = (*dckArrayItem)[0]->asBstr(); in extractFromTestCredentialData()
118 const cppbor::Bstr* credentialPrivKeyItem = (*dckArrayItem)[1]->asBstr(); in extractFromTestCredentialData()