Home
last modified time | relevance | path

Searched refs:bytevec (Results 1 – 8 of 8) sorted by relevance

/system/keymaster/include/keymaster/cppcose/
Dcppcose.h47 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/
Dcppcose.cpp39 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/
DAndroidRemotelyProvisionedComponentDevice.cpp48 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/
DTrustyRemotelyProvisionedComponentDevice.cpp42 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/
Dremote_provisioning_context.h45 GenerateHmacSha256(const cppcose::bytevec& input) const = 0;
/system/keymaster/include/keymaster/contexts/
Dpure_soft_remote_provisioning_context.h47 GenerateHmacSha256(const cppcose::bytevec& input) const override;
/system/keymaster/android_keymaster/
Dandroid_keymaster.cpp118 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/
Dpure_soft_remote_provisioning_context.cpp187 PureSoftRemoteProvisioningContext::GenerateHmacSha256(const cppcose::bytevec& input) const { in GenerateHmacSha256()