Searched refs:coseSign1 (Results 1 – 3 of 3) sorted by relevance
154 auto coseSign1 = constructCoseSign1(privKey, /* signing key */ in GenerateBcc() local157 assert(coseSign1); in GenerateBcc()159 return {privKey, cppbor::Array().add(std::move(coseKey)).add(coseSign1.moveValue())}; in GenerateBcc()
367 ErrMsgOr<bytevec> verifyAndParseCoseSign1(const cppbor::Array* coseSign1, in verifyAndParseCoseSign1() argument369 if (!coseSign1 || coseSign1->size() != kCoseSign1EntryCount) { in verifyAndParseCoseSign1()373 const cppbor::Bstr* protectedParams = coseSign1->get(kCoseSign1ProtectedParams)->asBstr(); in verifyAndParseCoseSign1()374 const cppbor::Map* unprotectedParams = coseSign1->get(kCoseSign1UnprotectedParams)->asMap(); in verifyAndParseCoseSign1()375 const cppbor::Bstr* payload = coseSign1->get(kCoseSign1Payload)->asBstr(); in verifyAndParseCoseSign1()396 const cppbor::Bstr* signature = coseSign1->get(kCoseSign1Signature)->asBstr(); in verifyAndParseCoseSign1()
312 ErrMsgOr<bytevec /* payload */> verifyAndParseCoseSign1(const cppbor::Array* coseSign1,