Searched refs:CoseKey (Results 1 – 5 of 5) sorted by relevance
/system/keymaster/include/keymaster/cppcose/ |
D | cppcose.h | 122 class CoseKey { 124 CoseKey() {} in CoseKey() function 125 CoseKey(const CoseKey&) = delete; 126 CoseKey(CoseKey&&) = default; 140 static ErrMsgOr<CoseKey> parse(const bytevec& coseKey) { in parse() 144 return CoseKey(static_cast<cppbor::Map*>(parsedKey.release())); in parse() 147 static ErrMsgOr<CoseKey> parse(const bytevec& coseKey, CoseKeyType expectedKeyType, in parse() 152 if (!key->checkIntValue(CoseKey::KEY_TYPE, expectedKeyType) || in parse() 153 !key->checkIntValue(CoseKey::ALGORITHM, expectedAlgorithm) || in parse() 154 !key->checkIntValue(CoseKey::CURVE, expectedCurve)) { in parse() [all …]
|
/system/keymaster/android_keymaster/ |
D | remote_provisioning_utils.cpp | 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() [all …]
|
D | android_keymaster.cpp | 51 using cppcose::CoseKey; 383 .add(CoseKey::KEY_TYPE, EC2) in GenerateRkpKey() 384 .add(CoseKey::ALGORITHM, ES256) in GenerateRkpKey() 385 .add(CoseKey::CURVE, P256) in GenerateRkpKey() 386 .add(CoseKey::PUBKEY_X, x_coord) in GenerateRkpKey() 387 .add(CoseKey::PUBKEY_Y, y_coord); in GenerateRkpKey() 389 cose_public_key_map.add(CoseKey::TEST_KEY, cppbor::Null()); in GenerateRkpKey()
|
/system/keymaster/contexts/ |
D | pure_soft_remote_provisioning_context.cpp | 33 using cppcose::CoseKey; 102 .add(CoseKey::KEY_TYPE, OCTET_KEY_PAIR) in GenerateBcc() 103 .add(CoseKey::ALGORITHM, EDDSA) in GenerateBcc() 104 .add(CoseKey::CURVE, ED25519) in GenerateBcc() 105 .add(CoseKey::KEY_OPS, VERIFY) in GenerateBcc() 106 .add(CoseKey::PUBKEY_X, pubKey) in GenerateBcc()
|
/system/keymaster/cppcose/ |
D | cppcose.cpp | 206 auto key = CoseKey::parseEd25519(selfSigned ? payload->value() : signingCoseKey); in verifyAndParseCoseSign1() 207 if (!key || key->getBstrValue(CoseKey::PUBKEY_X)->empty()) { in verifyAndParseCoseSign1() 215 key->getBstrValue(CoseKey::PUBKEY_X)->data())) { in verifyAndParseCoseSign1() 296 auto& keyType = senderCoseKey->asMap()->get(CoseKey::KEY_TYPE); in getSenderPubKeyFromCoseEncrypt() 301 auto& curve = senderCoseKey->asMap()->get(CoseKey::CURVE); in getSenderPubKeyFromCoseEncrypt() 306 auto& pubkey = senderCoseKey->asMap()->get(CoseKey::PUBKEY_X); in getSenderPubKeyFromCoseEncrypt()
|