Searched refs:coseSign1 (Results 1 – 3 of 3) sorted by relevance
116 auto coseSign1 = constructCoseSign1(privKey, /* signing key */ in GenerateBcc() local119 assert(coseSign1); in GenerateBcc()121 return {privKey, cppbor::Array().add(std::move(coseKey)).add(coseSign1.moveValue())}; in GenerateBcc()
173 ErrMsgOr<bytevec> verifyAndParseCoseSign1(const cppbor::Array* coseSign1, in verifyAndParseCoseSign1() argument175 if (!coseSign1 || coseSign1->size() != kCoseSign1EntryCount) { in verifyAndParseCoseSign1()179 const cppbor::Bstr* protectedParams = coseSign1->get(kCoseSign1ProtectedParams)->asBstr(); in verifyAndParseCoseSign1()180 const cppbor::Map* unprotectedParams = coseSign1->get(kCoseSign1UnprotectedParams)->asMap(); in verifyAndParseCoseSign1()181 const cppbor::Bstr* payload = coseSign1->get(kCoseSign1Payload)->asBstr(); in verifyAndParseCoseSign1()200 const cppbor::Bstr* signature = coseSign1->get(kCoseSign1Signature)->asBstr(); in verifyAndParseCoseSign1()
264 ErrMsgOr<bytevec /* payload */> verifyAndParseCoseSign1(const cppbor::Array* coseSign1,