Home
last modified time | relevance | path

Searched refs:siglen (Results 1 – 4 of 4) sorted by relevance

/system/core/trusty/keymaster/
Dtrusty_keymaster_device_test.cpp186 size_t siglen; in TEST_F() local
188 &signature, &siglen)); in TEST_F()
190 EXPECT_EQ(message_len, siglen); in TEST_F()
205 size_t siglen; in TEST_F() local
207 message_len, &signature, &siglen)); in TEST_F()
222 size_t siglen; in TEST_F() local
224 message_len, &signature, &siglen)); in TEST_F()
238 size_t siglen; in TEST_F() local
240 array_size(message) - 1, &signature, &siglen)); in TEST_F()
242 EXPECT_GT(siglen, 69U); in TEST_F()
[all …]
/system/keymaster/
Dhmac_operation.cpp183 size_t siglen = signature.available_read(); in Finish() local
184 if (siglen > digest_len || siglen < kMinHmacLengthBits / 8) in Finish()
186 if (siglen < min_mac_length_) in Finish()
188 if (CRYPTO_memcmp(signature.peek_read(), digest, siglen) != 0) in Finish()
Decdsa_operation.cpp149 size_t siglen; in Finish() local
160 siglen = siglen_tmp; in Finish()
162 if (EVP_DigestSignFinal(&digest_ctx_, nullptr /* signature */, &siglen) != 1) in Finish()
164 if (!output->Reinitialize(siglen)) in Finish()
166 if (EVP_DigestSignFinal(&digest_ctx_, output->peek_write(), &siglen) <= 0) in Finish()
169 if (!output->advance_write(siglen)) in Finish()
Drsa_operation.cpp371 size_t siglen; in SignDigested() local
372 if (EVP_DigestSignFinal(&digest_ctx_, nullptr /* signature */, &siglen) != 1) in SignDigested()
375 if (!output->Reinitialize(siglen)) in SignDigested()
378 if (EVP_DigestSignFinal(&digest_ctx_, output->peek_write(), &siglen) <= 0) in SignDigested()
380 if (!output->advance_write(siglen)) in SignDigested()