Home
last modified time | relevance | path

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

/system/keymaster/
Drsa_operation.cpp546 size_t outlen; in Finish() local
547 if (EVP_PKEY_encrypt(ctx.get(), nullptr /* out */, &outlen, data_.peek_read(), in Finish()
551 if (!output->Reinitialize(outlen)) in Finish()
557 if (padding_ == KM_PAD_NONE && to_encrypt_len < outlen) { in Finish()
558 keymaster_error_t error = zero_pad_left(&zero_padded, outlen, data_); in Finish()
562 to_encrypt_len = outlen; in Finish()
565 if (EVP_PKEY_encrypt(ctx.get(), output->peek_write(), &outlen, to_encrypt, to_encrypt_len) <= 0) in Finish()
567 if (!output->advance_write(outlen)) in Finish()
599 size_t outlen; in Finish() local
600 if (EVP_PKEY_decrypt(ctx.get(), nullptr /* out */, &outlen, data_.peek_read(), in Finish()
[all …]
/system/vold/
DKeyStorage.cpp325 int outlen; in encryptWithoutKeymaster() local
327 reinterpret_cast<uint8_t*>(&(*ciphertext)[0] + GCM_NONCE_BYTES), &outlen, in encryptWithoutKeymaster()
332 if (outlen != static_cast<int>(plaintext.size())) { in encryptWithoutKeymaster()
333 LOG(ERROR) << "GCM ciphertext length should be " << plaintext.size() << " was " << outlen; in encryptWithoutKeymaster()
337 … reinterpret_cast<uint8_t*>(&(*ciphertext)[0] + GCM_NONCE_BYTES + plaintext.size()), &outlen)) { in encryptWithoutKeymaster()
341 if (outlen != 0) { in encryptWithoutKeymaster()
342 LOG(ERROR) << "GCM EncryptFinal should be 0, was " << outlen; in encryptWithoutKeymaster()
374 int outlen; in decryptWithoutKeymaster() local
376 reinterpret_cast<uint8_t*>(&(*plaintext)[0]), &outlen, in decryptWithoutKeymaster()
381 if (outlen != static_cast<int>(plaintext->size())) { in decryptWithoutKeymaster()
[all …]
/system/core/adb/
Dsysdeps_win32.cpp1959 size_t outlen; in _console_read() local
1967 outlen = strlen(seqstr); in _console_read()
1970 outlen = seqbuflen; in _console_read()
1976 outlen = seqbuflen; in _console_read()
1991 g_console_input_buffer.insert(g_console_input_buffer.end(), out, out + outlen); in _console_read()