Home
last modified time | relevance | path

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

/hardware/interfaces/security/keymint/support/include/remote_prov/
Dremote_prov_utils.h25 using bytevec = std::vector<uint8_t>; variable
28 extern bytevec kTestMacKey;
58 bytevec randomBytes(size_t numBytes);
61 bytevec chain;
62 bytevec last_pubkey;
63 bytevec last_privkey;
70 ErrMsgOr<EekChain> generateEekChain(size_t length, const bytevec& eekId);
75 bytevec getProdEekChain();
78 bytevec pubKey;
/hardware/interfaces/security/keymint/support/
Dremote_prov_utils.cpp29 bytevec kTestMacKey(32 /* count */, 0 /* byte value */);
31 bytevec randomBytes(size_t numBytes) { in randomBytes()
32 bytevec retval(numBytes); in randomBytes()
37 ErrMsgOr<EekChain> generateEekChain(size_t length, const bytevec& eekId) { in generateEekChain()
44 bytevec prev_priv_key; in generateEekChain()
46 bytevec pub_key(ED25519_PUBLIC_KEY_LEN); in generateEekChain()
47 bytevec priv_key(ED25519_PRIVATE_KEY_LEN); in generateEekChain()
69 bytevec pub_key(X25519_PUBLIC_VALUE_LEN); in generateEekChain()
70 bytevec priv_key(X25519_PRIVATE_KEY_LEN); in generateEekChain()
89 bytevec getProdEekChain() { in getProdEekChain()
[all …]
Dremote_prov_utils_test.cpp42 bytevec kTestEekId = {'t', 'e', 's', 't', 'I', 'd', 0}; in TEST()
/hardware/interfaces/security/keymint/aidl/vts/functional/
DVtsRemotelyProvisionedComponentTests.cpp50 using bytevec = std::vector<uint8_t>; typedef
55 bytevec string_to_bytevec(const char* s) { in string_to_bytevec()
57 return bytevec(p, p + strlen(s)); in string_to_bytevec()
107 ErrMsgOr<bytevec> corrupt_sig_chain(const bytevec& encodedEekChain, int which) { in corrupt_sig_chain()
188 bytevec privateKeyBlob; in TEST_P()
211 bytevec privateKeyBlob; in TEST_P()
265 bytevec privateKeyBlob; in TEST_P()
291 bytevec privateKeyBlob; in generateKeys()
302 const bytevec& keysToSignMac, const ProtectedData& protectedData, in checkProtectedData()
319 decryptCoseEncrypt(*sessionKey, parsedProtectedData.get(), bytevec{} /* aad */); in checkProtectedData()
[all …]
DKeyMintAidlTestBase.cpp1635 auto macFunction = [](const cppcose::bytevec& input) { in check_maced_pubkey()