Home
last modified time | relevance | path

Searched refs:coseSign1 (Results 1 – 2 of 2) sorted by relevance

/hardware/interfaces/identity/support/tests/
DIdentityCredentialSupportTest.cpp212 optional<vector<uint8_t>> coseSign1 = support::coseSignEcDsa( in TEST() local
214 ASSERT_TRUE(support::coseCheckEcDsaSignature(coseSign1.value(), {} /* detachedContent */, in TEST()
217 optional<vector<uint8_t>> payload = support::coseSignGetPayload(coseSign1.value()); in TEST()
222 string out = support::cborPrettyPrint(coseSign1.value()); in TEST()
243 optional<vector<uint8_t>> coseSign1 = support::coseSignEcDsa(privKey.value(), {} /* data */, in TEST() local
246 support::coseCheckEcDsaSignature(coseSign1.value(), detachedContent, pubKey.value())); in TEST()
248 optional<vector<uint8_t>> payload = support::coseSignGetPayload(coseSign1.value()); in TEST()
253 string out = support::cborPrettyPrint(coseSign1.value()); in TEST()
293 optional<vector<uint8_t>> coseSign1 = in TEST() local
296 support::coseCheckEcDsaSignature(coseSign1.value(), detachedContent, pubKey.value())); in TEST()
[all …]
/hardware/interfaces/identity/support/src/
DIdentityCredentialSupport.cpp1622 cppbor::Array coseSign1; in coseSignEcDsa() local
1623 coseSign1.add(encodedProtectedHeaders); in coseSignEcDsa()
1624 coseSign1.add(std::move(unprotectedHeaders)); in coseSignEcDsa()
1627 coseSign1.add(std::move(nullValue)); in coseSignEcDsa()
1629 coseSign1.add(data); in coseSignEcDsa()
1631 coseSign1.add(coseSignature); in coseSignEcDsa()
1633 signatureCoseSign1 = coseSign1.encode(); in coseSignEcDsa()