Home
last modified time | relevance | path

Searched refs:key (Results 1 – 25 of 39) sorted by relevance

12

/test/dittosuite/src/
Dshared_variables.cpp39 std::size_t key = variables_.size(); in GetKey() local
40 keys_[thread_ids.back()].insert({variable_name, key}); in GetKey()
42 return key; in GetKey()
45 SharedVariables::Variant SharedVariables::Get(int key) { in Get() argument
46 if (key < 0 || static_cast<unsigned int>(key) >= variables_.size()) { in Get()
49 return variables_[key]; in Get()
57 void SharedVariables::Set(int key, const SharedVariables::Variant& value) { in Set() argument
58 if (key < 0 || static_cast<unsigned int>(key) >= variables_.size()) { in Set()
61 variables_[key] = value; in Set()
/test/vts-testcase/kernel/encryption/
DKeymaster.cpp88 std::string* key) { in generateKey() argument
101 if (keyMetadata.key.blob == std::nullopt) { in generateKey()
105 if (key) in generateKey()
106 *key = in generateKey()
107 std::string(keyMetadata.key.blob->begin(), keyMetadata.key.blob->end()); in generateKey()
109 zeroize_vector(keyMetadata.key.blob.value()); in generateKey()
114 const std::string& key, std::string* outKeyBlob) { in importKey() argument
121 std::vector<uint8_t> key_vec(key.begin(), key.end()); in importKey()
128 if (keyMetadata.key.blob == std::nullopt) { in importKey()
135 std::string(keyMetadata.key.blob->begin(), keyMetadata.key.blob->end()); in importKey()
[all …]
Dadiantum.cpp91 const uint8_t key[kChaChaKeySize], in ChaChaInitState()
99 state[4 + i] = get_unaligned_le32(&key[i * sizeof(__le32)]); in ChaChaInitState()
132 static void XChaCha(const uint8_t key[kXChaChaKeySize], in XChaCha()
141 ChaChaInitState(state, key, nonce); in XChaCha()
177 static void XChaCha12(const uint8_t key[kXChaChaKeySize], in XChaCha12()
180 XChaCha(key, nonce, src, dst, nbytes, 12); in XChaCha12()
187 static void Poly1305(const uint8_t key[kPoly1305KeySize], const uint8_t *msg, in Poly1305()
196 memcpy(mac_key, key, kPoly1305KeySize); in Poly1305()
214 static uint64_t NH_Pass(const uint32_t *key, const uint8_t *msg, int msglen) { in NH_Pass() argument
219 sum += NH_Add(msg + 0, key[0]) * NH_Add(msg + 8, key[2]); in NH_Pass()
[all …]
Dvts_kernel_encryption.h30 bool Encrypt(const std::vector<uint8_t> &key, const uint8_t *iv, in Encrypt() argument
32 if (key.size() != keysize()) { in Encrypt()
36 return DoCrypt(key.data(), iv, src, dst, nbytes, true); in Encrypt()
38 bool Decrypt(const std::vector<uint8_t> &key, const uint8_t *iv, in Decrypt() argument
40 if (key.size() != keysize()) { in Decrypt()
44 return DoCrypt(key.data(), iv, src, dst, nbytes, false); in Decrypt()
50 virtual bool DoCrypt(const uint8_t *key, const uint8_t *iv,
67 bool DoCrypt(const uint8_t *key, const uint8_t *iv, const uint8_t *src,
84 bool DoCrypt(const uint8_t *key, const uint8_t *iv, const uint8_t *src,
Dmetadata_encryption_tests.cpp147 const std::vector<uint8_t> &key, bool is_wrapped_key);
148 void VerifyDecryption(const std::vector<uint8_t> &key, const Cipher &cipher);
189 const std::vector<uint8_t> &key, in CreateTestDevice() argument
194 cipher.c_str(), BytesToHex(key), in CreateTestDevice()
218 << "\", key=" << BytesToHex(key) in CreateTestDevice()
223 void DmDefaultKeyTest::VerifyDecryption(const std::vector<uint8_t> &key, in VerifyDecryption() argument
245 ASSERT_TRUE(cipher.Encrypt(key, reinterpret_cast<const uint8_t *>(iv.get()), in VerifyDecryption()
260 std::vector<uint8_t> key = GenerateTestKey(cipher.keysize()); in DoTest() local
262 if (!CreateTestDevice(cipher_string, key, false)) return; in DoTest()
264 VerifyDecryption(key, cipher); in DoTest()
DKeymaster.h48 bool generateKey(const km::AuthorizationSet& inParams, std::string* key);
51 bool exportKey(const std::string& kmKey, std::string* key);
53 bool importKey(const km::AuthorizationSet& inParams, const std::string& key,
Daes_256_xts.cpp52 bool Aes256XtsCipher::DoCrypt(const uint8_t key[kAes256XtsKeySize], in DoCrypt()
77 key + kAes256KeySize, nullptr) != 1) { in DoCrypt()
94 if (EVP_CipherInit_ex(ctx.get(), EVP_aes_256_ecb(), nullptr, key, nullptr, in DoCrypt()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/util/
DDynamicConfigFileReader.java44 public static String getValueFromConfig(File file, String key) in getValueFromConfig() argument
48 return config.getValue(key); in getValueFromConfig()
59 public static List<String> getValuesFromConfig(File file, String key) in getValuesFromConfig() argument
63 return config.getValues(key); in getValuesFromConfig()
74 public static String getValueFromConfig(IBuildInfo info, String moduleName, String key) in getValueFromConfig() argument
82 return getValueFromConfig(dynamicConfig, key); in getValueFromConfig()
93 public static List<String> getValuesFromConfig(IBuildInfo info, String moduleName, String key) in getValuesFromConfig() argument
107 return getValuesFromConfig(dynamicConfig, key); in getValuesFromConfig()
119 String key) in getValuesFromConfig() argument
127 return getValuesFromConfig(dynamicConfig, key); in getValuesFromConfig()
DCollectorUtil.java138 String key = m.group(1); in reformatJsonString() local
140 if (!jsonMap.containsKey(key)) { in reformatJsonString()
141 jsonMap.put(key, new ArrayList<String>()); in reformatJsonString()
143 jsonMap.get(key).add(value); in reformatJsonString()
148 for (String key : jsonMap.keySet()) { in reformatJsonString()
154 newJsonBuilder.append("\"").append(key).append("\":["); in reformatJsonString()
156 for (String stream : jsonMap.get(key)) { in reformatJsonString()
/test/catbox/report/src/com/android/catbox/result/
DJsonResultReporter.java228 for (String key : metrics.keySet()) { in writeAllMetrics()
230 double value = Double.parseDouble(metrics.get(key)); in writeAllMetrics()
231 reportLog.addValue(key, value, ResultType.NEUTRAL, ResultUnit.NONE); in writeAllMetrics()
237 metrics.get(key), key)); in writeAllMetrics()
253 for (String key : mReportMetricKeyMap.keySet()) { in writeMetricsForGivenKeys()
254 if (!metrics.containsKey(key) || metrics.get(key) == null) { in writeMetricsForGivenKeys()
255 CLog.logAndDisplay(LogLevel.WARN, String.format("%s metric key is missing.", key)); in writeMetricsForGivenKeys()
258 …estNameMap != null && mExcludeMetricTestNameMap.get(key) !=null && mExcludeMetricTestNameMap.get(k… in writeMetricsForGivenKeys()
259 …AndDisplay(LogLevel.WARN, String.format("Excluding %s metric key from %s test.", key, streamName)); in writeMetricsForGivenKeys()
263 double value = Double.parseDouble(metrics.get(key)); in writeMetricsForGivenKeys()
[all …]
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/suite/
DTestMetricsJsonResultReporter.java197 for (String key : metricsMap.keySet()) { in writeAllMetrics()
199 double value = Double.parseDouble(metricsMap.get(key)); in writeAllMetrics()
200 reportLog.addValue(key, value, ResultType.NEUTRAL, ResultUnit.NONE); in writeAllMetrics()
206 metricsMap.get(key), key)); in writeAllMetrics()
222 for (String key : mReportMetricKeyMap.keySet()) { in writeMetricsForGivenKeys()
223 if (!metrics.containsKey(key) || metrics.get(key) == null) { in writeMetricsForGivenKeys()
224 CLog.logAndDisplay(LogLevel.WARN, String.format("%s metric key is missing.", key)); in writeMetricsForGivenKeys()
229 double value = Double.parseDouble(metricsMap.get(key)); in writeMetricsForGivenKeys()
231 mReportMetricKeyMap.get(key), value, ResultType.NEUTRAL, ResultUnit.NONE); in writeMetricsForGivenKeys()
237 metricsMap.get(key), key)); in writeMetricsForGivenKeys()
DCertificationResultXml.java146 for (String key : build.getBuildAttributes().keySet()) { in addBuildInfoAttributes()
147 if (key.startsWith(getAttributesPrefix())) { in addBuildInfoAttributes()
148 String newKey = key.split(getAttributesPrefix())[1]; in addBuildInfoAttributes()
149 serializer.attribute(NS, newKey, build.getBuildAttributes().get(key)); in addBuildInfoAttributes()
162 String key = parser.getAttributeName(index); in parseBuildInfoAttributes() local
163 String value = parser.getAttributeValue(NS, key); in parseBuildInfoAttributes()
164 context.addInvocationAttribute(key, value); in parseBuildInfoAttributes()
/test/cts-root/hostsidetests/rollback/src/com/android/cts_root/rollback/host/
DWatchdogEventLogger.java39 String key = PROP_PREFIX + type; in resetProperties() local
40 assertThat(mDevice.setProperty(key, "")).isTrue(); in resetProperties()
42 assertThat(mDevice.setProperty(key + "." + attr, "")).isTrue(); in resetProperties()
59 String key = PROP_PREFIX + type + "." + attr; in matchProperty() local
60 String val = mDevice.getProperty(key); in matchProperty()
/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/
DDynamicConfigHandler.java104 String key = keys.getString(i); in parseJsonToConfigMap() local
105 JSONArray jsonValues = configObject.getJSONObject(key).getJSONArray("configValues"); in parseJsonToConfigMap()
110 configMap.put(key, values); in parseJsonToConfigMap()
126 for (String key : configMap.keySet()) { in storeMergedConfigFile()
128 serializer.attribute(NS, DynamicConfig.KEY_ATTR, key); in storeMergedConfigFile()
129 for (String value : configMap.get(key)) { in storeMergedConfigFile()
DDynamicConfigHostSide.java46 public static String getValueFromConfig(File file, String key) in getValueFromConfig() argument
49 List<String> singleValue = configMap.get(key); in getValueFromConfig()
DUrlReplacement.java104 String key = parser.getAttributeValue(NS, URL_ATTR); in init() local
111 if (key != null && value != null) { in init()
112 urlReplacementMap.put(key, value); in init()
/test/catbox/report/src/com/android/catbox/util/
DTestMetricsUtil.java104 String key = entry.getKey(); in storeTestMetrics() local
106 if (key.indexOf(mTestIterationSeparator) != -1 && in storeTestMetrics()
107 key.contains(testDescription.getClassName())) { in storeTestMetrics()
108 key = key.substring(0, key.indexOf(mTestIterationSeparator)); in storeTestMetrics()
109 key = CLASS_METHOD_JOINER.join(key, testDescription.getTestName()); in storeTestMetrics()
111 storedMetricsForThisTest.put(key, entry.getValue()); in storeTestMetrics()
/test/dittosuite/include/ditto/
Dshared_variables.h30 static Variant Get(int key);
32 static void Set(int key, const Variant& value);
/test/vts-testcase/vndk/golden/
Dextract_lsdump.py34 def __getattr__(self, key): argument
37 return self[key]
39 raise AttributeError('Failed to get attribute: %s' % key)
41 def __setattr__(self, key, value): argument
43 self[key] = value
/test/vts-testcase/kernel/api/bpf_native_test/
Dkern.c47 uint32_t key = 1; local
48 uint32_t* config = bpf_test_configuration_map_lookup_elem(&key);
/test/vts/vndk_utils/library/vtable/
Dvtable_dumper.py76 key = other.begin_addr
78 key = other
79 return self.begin_addr < key
253 for key in inv_table:
254 inv_table[key] = sorted(set(inv_table[key]))
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/build/
DCompatibilityBuildHelper.java136 String key = (moduleId == null) ? "" : moduleId; in setBusinessLogicHostFile() local
137 mBuildInfo.setFile(BUSINESS_LOGIC_HOST_FILE + key, hostFile, in setBusinessLogicHostFile()
175 String key = (moduleId == null) ? "" : moduleId; in hasBusinessLogicHostFile() local
176 return mBuildInfo.getFile(BUSINESS_LOGIC_HOST_FILE + key) != null; in hasBusinessLogicHostFile()
195 String key = (moduleId == null) ? "" : moduleId; in getBusinessLogicHostFile() local
196 return mBuildInfo.getFile(BUSINESS_LOGIC_HOST_FILE + key); in getBusinessLogicHostFile()
/test/dittosuite/test/
Dshared_variables_test.cpp24 auto key = SharedVariables::GetKey(thread_ids, "variable_name"); in TEST() local
29 SharedVariables::Set(key, shared_variable); in TEST()
30 ASSERT_EQ(SharedVariables::Get(key), shared_variable); in TEST()
/test/vts-testcase/kernel/isa/
Dvts_kernel_isa_test.cpp26 const std::map<std::string, std::string>& configs, const std::string& key) { in get_config() argument
27 auto it = configs.find(key); in get_config()
/test/mlts/benchmark/src/com/android/nn/benchmark/app/
DAcceleratorSpecificTestSupport.java70 static String getTestParameter(String key, String defaultValue) { in getTestParameter() argument
71 return InstrumentationRegistry.getArguments().getString(key, defaultValue); in getTestParameter()
74 static boolean getBooleanTestParameter(String key, boolean defaultValue) { in getBooleanTestParameter() argument
77 InstrumentationRegistry.getArguments().getString(key, "" + defaultValue)); in getBooleanTestParameter()

12