Home
last modified time | relevance | path

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

/system/keymaster/
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()
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()
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()
/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.cpp142 int adb_auth_verify(uint8_t* token, uint8_t* sig, int siglen) in adb_auth_verify() argument
148 if (siglen != RSANUMBYTES) in adb_auth_verify()
155 ret = RSA_verify(&key->key, sig, siglen, token, SHA_DIGEST_SIZE); in adb_auth_verify()