Lines Matching refs:CoseKey
26 using cppcose::CoseKey;
89 auto parsedPubKey = CoseKey::parse(lastPubKey); in validateAndExtractEekPubAndId()
95 auto curve = parsedPubKey->getIntValue(CoseKey::CURVE); in validateAndExtractEekPubAndId()
101 auto rawPubKey = parsedPubKey->getBstrValue(CoseKey::PUBKEY_X); in validateAndExtractEekPubAndId()
117 auto eek = CoseKey::parseX25519(lastPubKey, true /* requireKid */); in validateAndExtractEekPubAndId()
123 return std::make_pair(eek->getBstrValue(CoseKey::PUBKEY_X).value(), in validateAndExtractEekPubAndId()
124 eek->getBstrValue(CoseKey::KEY_ID).value()); in validateAndExtractEekPubAndId()
160 auto pubKey = CoseKey::parse(payload->value(), EC2, ES256, P256); in validateAndExtractPubkeys()
166 bool testKey = static_cast<bool>(pubKey->getMap().get(CoseKey::TEST_KEY)); in validateAndExtractPubkeys()
202 .add(CoseKey::KEY_TYPE, OCTET_KEY_PAIR) in buildCertReqRecipients()
203 .add(CoseKey::CURVE, cppcose::X25519) in buildCertReqRecipients()
204 .add(CoseKey::PUBKEY_X, pubkey) in buildCertReqRecipients()