Home
last modified time | relevance | path

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

/system/keymaster/km_openssl/
Dhmac_operation.cpp181 size_t siglen = signature.available_read(); in Finish() local
182 if (siglen > digest_len || siglen < kMinHmacLengthBits / 8) in Finish()
184 if (siglen < min_mac_length_) return KM_ERROR_INVALID_MAC_LENGTH; in Finish()
185 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.cpp375 size_t siglen; in SignDigested() local
376 if (EVP_DigestSignFinal(&digest_ctx_, nullptr /* signature */, &siglen) != 1) in SignDigested()
379 if (!output->Reinitialize(siglen)) in SignDigested()
382 if (EVP_DigestSignFinal(&digest_ctx_, output->peek_write(), &siglen) <= 0) in SignDigested()
384 if (!output->advance_write(siglen)) in SignDigested()