Searched refs:bytevec (Results 1 – 8 of 8) sorted by relevance
/system/keymaster/include/keymaster/cppcose/ |
D | cppcose.h | 47 using bytevec = std::vector<uint8_t>; variable 49 using HmacSha256Function = std::function<ErrMsgOr<HmacSha256>(const bytevec&)>; 151 static ErrMsgOr<CoseKey> parse(const bytevec& coseKey) { in parse() 158 static ErrMsgOr<CoseKey> parse(const bytevec& coseKey, CoseKeyType expectedKeyType, in parse() 172 static ErrMsgOr<CoseKey> parseEd25519(const bytevec& coseKey) { in parseEd25519() 185 static ErrMsgOr<CoseKey> parseX25519(const bytevec& coseKey, bool requireKid) { in parseX25519() 203 static ErrMsgOr<CoseKey> parseP256(const bytevec& coseKey) { in parseP256() 217 static ErrMsgOr<CoseKey> parseP384(const bytevec& coseKey) { in parseP384() 231 static ErrMsgOr<bytevec> getEcPublicKey(const bytevec& pubX, const bytevec& pubY) { in getEcPublicKey() 235 bytevec pubKey; in getEcPublicKey() [all …]
|
/system/keymaster/cppcose/ |
D | cppcose.cpp | 39 ErrMsgOr<bssl::UniquePtr<EVP_CIPHER_CTX>> aesGcmInitAndProcessAad(const bytevec& key, in aesGcmInitAndProcessAad() 40 const bytevec& nonce, in aesGcmInitAndProcessAad() 41 const bytevec& aad, in aesGcmInitAndProcessAad() 62 ErrMsgOr<bytevec> signP256Digest(const bytevec& key, const bytevec& data) { in signP256Digest() 78 bytevec signature(len); in signP256Digest() 84 ErrMsgOr<bytevec> ecdh(const bytevec& publicKey, const bytevec& privateKey) { in ecdh() 137 bytevec sharedSecret(secretLen); in ecdh() 145 ErrMsgOr<bytevec> ecdsaCoseSignatureToDer(int point_size, const bytevec& ecdsaCoseSignature) { in ecdsaCoseSignatureToDer() 165 bytevec derSignature(len); in ecdsaCoseSignatureToDer() 171 ErrMsgOr<bytevec> ecdsaDerSignatureToCose(int point_size, const bytevec& ecdsaSignature) { in ecdsaDerSignatureToCose() [all …]
|
/system/keymaster/ng/ |
D | AndroidRemotelyProvisionedComponentDevice.cpp | 48 using bytevec = ::std::vector<uint8_t>; typedef 104 bool testMode, MacedPublicKey* macedPublicKey, bytevec* privateKeyHandle) { in generateEcdsaP256KeyPair() 119 bool testMode, const vector<MacedPublicKey>& keysToSign, const bytevec& endpointEncCertChain, in generateCertificateRequest() 120 const bytevec& challenge, DeviceInfo* deviceInfo, ProtectedData* protectedData, in generateCertificateRequest() 121 bytevec* keysToSignMac) { in generateCertificateRequest()
|
/system/core/trusty/keymaster/keymint/ |
D | TrustyRemotelyProvisionedComponentDevice.cpp | 42 using bytevec = ::std::vector<uint8_t>; typedef 93 bool testMode, MacedPublicKey* macedPublicKey, bytevec* privateKeyHandle) { in generateEcdsaP256KeyPair() 109 const bytevec& endpointEncCertChain, const bytevec& challenge, DeviceInfo* deviceInfo, in generateCertificateRequest() 110 ProtectedData* protectedData, bytevec* keysToSignMac) { in generateCertificateRequest()
|
/system/keymaster/include/keymaster/ |
D | remote_provisioning_context.h | 45 GenerateHmacSha256(const cppcose::bytevec& input) const = 0;
|
/system/keymaster/include/keymaster/contexts/ |
D | pure_soft_remote_provisioning_context.h | 47 GenerateHmacSha256(const cppcose::bytevec& input) const override;
|
/system/keymaster/android_keymaster/ |
D | android_keymaster.cpp | 118 return [](const cppcose::bytevec& input) { in getMacFunction() 119 const cppcose::bytevec macKey(32); in getMacFunction() 124 return [rem_prov_ctx](const cppcose::bytevec& input) -> cppcose::ErrMsgOr<cppcose::HmacSha256> { in getMacFunction() 467 auto ephemeral_mac_function = [&ephemeral_mac_key](const cppcose::bytevec& input) { in GenerateCsr()
|
/system/keymaster/contexts/ |
D | pure_soft_remote_provisioning_context.cpp | 187 PureSoftRemoteProvisioningContext::GenerateHmacSha256(const cppcose::bytevec& input) const { in GenerateHmacSha256()
|