Lines Matching refs:params
43 HmacSharingParameters params; member
44 auto tie() { return std::tie(error, params); } in tie()
60 .getHmacSharingParameters([&](auto error, auto params) { in getHmacSharingParameters() argument
61 result.tie() = std::tie(error, params); in getHmacSharingParameters()
72 if (result.error == ErrorCode::OK) paramsVec.push_back(std::move(result.params)); in getHmacSharingParameters()
78 const hidl_vec<HmacSharingParameters>& params) { in computeSharedHmac() argument
81 .computeSharedHmac(params, in computeSharedHmac()
82 [&](auto error, auto params) { in computeSharedHmac() argument
83 result.tie() = std::tie(error, params); in computeSharedHmac()
126 ASSERT_EQ(result1.params.seed, result2.params.seed) in TEST_P()
128 ASSERT_EQ(result1.params.nonce, result2.params.nonce) in TEST_P()
133 auto params = getHmacSharingParameters(allKeymasters()); in TEST_P() local
134 ASSERT_EQ(allKeymasters().size(), params.size()) in TEST_P()
137 auto nonces = copyNonces(params); in TEST_P()
143 auto responses = computeSharedHmac(allKeymasters(), params); in TEST_P()
148 params = getHmacSharingParameters(allKeymasters()); in TEST_P()
149 ASSERT_EQ(allKeymasters().size(), params.size()) in TEST_P()
152 responses = computeSharedHmac(allKeymasters(), params); in TEST_P()
182 auto params = getHmacSharingParameters(allKeymasters()); in TEST_P() local
183 ASSERT_EQ(allKeymasters().size(), params.size()) in TEST_P()
187 auto responses = computeSharedHmac(allKeymasters(), params); in TEST_P()
195 size_t param_to_tweak = rand() % params.size(); in TEST_P()
196 uint8_t byte_to_tweak = rand() % sizeof(params[param_to_tweak].nonce); in TEST_P()
198 params[param_to_tweak].nonce[byte_to_tweak] ^= (1 << bit_to_tweak); in TEST_P()
200 responses = computeSharedHmac(allKeymasters(), params); in TEST_P()
222 auto params = getHmacSharingParameters(allKeymasters()); in TEST_P() local
223 ASSERT_EQ(allKeymasters().size(), params.size()) in TEST_P()
227 auto responses = computeSharedHmac(allKeymasters(), params); in TEST_P()
235 auto param_to_tweak = rand() % params.size(); in TEST_P()
236 auto& to_tweak = params[param_to_tweak].seed; in TEST_P()
243 responses = computeSharedHmac(allKeymasters(), params); in TEST_P()