Searched refs:bytevec (Results 1 – 8 of 8) sorted by relevance
/system/keymaster/include/keymaster/cppcose/ |
D | cppcose.h | 39 using bytevec = std::vector<uint8_t>; variable 41 using HmacSha256Function = std::function<ErrMsgOr<HmacSha256>(const bytevec&)>; 140 static ErrMsgOr<CoseKey> parse(const bytevec& coseKey) { in parse() 147 static ErrMsgOr<CoseKey> parse(const bytevec& coseKey, CoseKeyType expectedKeyType, in parse() 161 static ErrMsgOr<CoseKey> parseEd25519(const bytevec& coseKey) { in parseEd25519() 174 static ErrMsgOr<CoseKey> parseX25519(const bytevec& coseKey, bool requireKid) { in parseX25519() 192 static ErrMsgOr<CoseKey> parseP256(const bytevec& coseKey) { in parseP256() 212 std::optional<bytevec> getBstrValue(Label label) { in getBstrValue() 227 void add(Label label, bytevec value) { key_->add(label, std::move(value)); } in add() 229 bytevec encode() { return key_->canonicalize().encode(); } in encode() [all …]
|
/system/keymaster/cppcose/ |
D | cppcose.cpp | 31 ErrMsgOr<bssl::UniquePtr<EVP_CIPHER_CTX>> aesGcmInitAndProcessAad(const bytevec& key, in aesGcmInitAndProcessAad() 32 const bytevec& nonce, in aesGcmInitAndProcessAad() 33 const bytevec& aad, in aesGcmInitAndProcessAad() 56 ErrMsgOr<HmacSha256> generateHmacSha256(const bytevec& key, const bytevec& data) { in generateHmacSha256() 70 ErrMsgOr<HmacSha256> generateCoseMac0Mac(HmacSha256Function macFunction, const bytevec& externalAad, in generateCoseMac0Mac() 71 const bytevec& payload) { in generateCoseMac0Mac() 88 const bytevec& externalAad, const bytevec& payload) { in constructCoseMac0() 99 ErrMsgOr<bytevec /* payload */> verifyAndParseCoseMac0(const cppbor::Item* macItem, in verifyAndParseCoseMac0() 100 const bytevec& macKey) { in verifyAndParseCoseMac0() 123 auto macFunction = [&macKey](const bytevec& input) { in verifyAndParseCoseMac0() [all …]
|
/system/core/trusty/keymaster/keymint/ |
D | TrustyRemotelyProvisionedComponentDevice.cpp | 37 using bytevec = ::std::vector<uint8_t>; typedef 81 bool testMode, MacedPublicKey* macedPublicKey, bytevec* privateKeyHandle) { in generateEcdsaP256KeyPair() 97 const bytevec& endpointEncCertChain, const bytevec& challenge, DeviceInfo* deviceInfo, in generateCertificateRequest() 98 ProtectedData* protectedData, bytevec* keysToSignMac) { in generateCertificateRequest()
|
/system/keymaster/ng/ |
D | AndroidRemotelyProvisionedComponentDevice.cpp | 44 using bytevec = ::std::vector<uint8_t>; typedef 93 bool testMode, MacedPublicKey* macedPublicKey, bytevec* privateKeyHandle) { in generateEcdsaP256KeyPair() 108 bool testMode, const vector<MacedPublicKey>& keysToSign, const bytevec& endpointEncCertChain, in generateCertificateRequest() 109 const bytevec& challenge, DeviceInfo* deviceInfo, ProtectedData* protectedData, in generateCertificateRequest() 110 bytevec* keysToSignMac) { in generateCertificateRequest()
|
/system/keymaster/include/keymaster/contexts/ |
D | pure_soft_remote_provisioning_context.h | 37 GenerateHmacSha256(const cppcose::bytevec& input) const override;
|
/system/keymaster/include/keymaster/ |
D | remote_provisioning_context.h | 42 GenerateHmacSha256(const cppcose::bytevec& input) const = 0;
|
/system/keymaster/contexts/ |
D | pure_soft_remote_provisioning_context.cpp | 125 PureSoftRemoteProvisioningContext::GenerateHmacSha256(const cppcose::bytevec& input) const { in GenerateHmacSha256()
|
/system/keymaster/android_keymaster/ |
D | android_keymaster.cpp | 114 return [](const cppcose::bytevec& input) { in getMacFunction() 115 const cppcose::bytevec macKey(32); in getMacFunction() 120 return [rem_prov_ctx](const cppcose::bytevec& input) -> cppcose::ErrMsgOr<cppcose::HmacSha256> { in getMacFunction() 433 auto ephemeral_mac_function = [&ephemeral_mac_key](const cppcose::bytevec& input) { in GenerateCsr()
|