Home
last modified time | relevance | path

Searched refs:shared_secret (Results 1 – 3 of 3) sorted by relevance

/system/keymaster/km_openssl/
Decies_kem.cpp90 Buffer shared_secret; in Encrypt() local
92 &shared_secret)) { in Encrypt()
109 Buffer actual_secret(z.available_read() + shared_secret.available_read()); in Encrypt()
111 actual_secret.write(shared_secret.peek_read(), shared_secret.available_read()); in Encrypt()
144 Buffer shared_secret; in Decrypt() local
145 if (!key_exchange_->CalculateSharedKey(encrypted_key, encrypted_key_len, &shared_secret)) { in Decrypt()
164 Buffer actual_secret(z.available_read() + shared_secret.available_read()); in Decrypt()
166 actual_secret.write(shared_secret.peek_read(), shared_secret.available_read()); in Decrypt()
/system/keymaster/tests/
Dnist_curve_key_exchange_test.cpp133 const char* shared_secret; member
187 string shared_secret = hex2str(test.shared_secret); in TEST() local
204 EXPECT_EQ(shared_secret.size(), computed_shared_secret.available_read()); in TEST()
205 EXPECT_EQ(0, memcmp(shared_secret.data(), computed_shared_secret.peek_read(), in TEST()
206 shared_secret.size())); in TEST()
/system/security/keystore2/src/km_compat/
Dlib.rs365 let shared_secret = match compat_service.getSharedSecret(SecurityLevel::TRUSTED_ENVIRONMENT) in test_shared_secret() localVariable
371 let result = shared_secret.getSharedSecretParameters(); in test_shared_secret()
375 let result = shared_secret.computeSharedSecret(&[params]); in test_shared_secret()