Home
last modified time | relevance | path

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

/system/keymaster/
Decdsa_operation.cpp144 size_t siglen; in Finish() local
155 siglen = siglen_tmp; in Finish()
157 if (EVP_DigestSignFinal(&digest_ctx_, nullptr /* signature */, &siglen) != 1) in Finish()
159 if (!output->Reinitialize(siglen)) in Finish()
161 if (EVP_DigestSignFinal(&digest_ctx_, output->peek_write(), &siglen) <= 0) in Finish()
164 if (!output->advance_write(siglen)) in Finish()
Dhmac_operation.cpp179 size_t siglen = signature.available_read(); in Finish() local
180 if (siglen > digest_len || siglen < kMinHmacLengthBits / 8) in Finish()
182 if (siglen < min_mac_length_) in Finish()
184 if (CRYPTO_memcmp(signature.peek_read(), digest, siglen) != 0) in Finish()
Drsa_operation.cpp364 size_t siglen; in SignDigested() local
365 if (EVP_DigestSignFinal(&digest_ctx_, nullptr /* signature */, &siglen) != 1) in SignDigested()
368 if (!output->Reinitialize(siglen)) in SignDigested()
371 if (EVP_DigestSignFinal(&digest_ctx_, output->peek_write(), &siglen) <= 0) in SignDigested()
373 if (!output->advance_write(siglen)) in SignDigested()
/system/core/adb/
Dadb_auth.h47 static inline int adb_auth_verify(void *token, void *sig, int siglen) { return 0; } in adb_auth_verify() argument
62 int adb_auth_verify(uint8_t* token, uint8_t* sig, int siglen);
Dadb_auth_client.cpp141 int adb_auth_verify(uint8_t* token, uint8_t* sig, int siglen) in adb_auth_verify() argument
147 if (siglen != RSANUMBYTES) in adb_auth_verify()
154 ret = RSA_verify(&key->key, sig, siglen, token, SHA_DIGEST_SIZE); in adb_auth_verify()