Home
last modified time | relevance | path

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

/system/keymaster/km_openssl/
Drsa_operation.cpp550 size_t outlen; in Finish() local
551 if (EVP_PKEY_encrypt(ctx.get(), nullptr /* out */, &outlen, data_.peek_read(), in Finish()
555 if (!output->Reinitialize(outlen)) in Finish()
561 if (padding_ == KM_PAD_NONE && to_encrypt_len < outlen) { in Finish()
562 keymaster_error_t error = zero_pad_left(&zero_padded, outlen, data_); in Finish()
566 to_encrypt_len = outlen; in Finish()
569 if (EVP_PKEY_encrypt(ctx.get(), output->peek_write(), &outlen, to_encrypt, to_encrypt_len) <= 0) in Finish()
571 if (!output->advance_write(outlen)) in Finish()
603 size_t outlen; in Finish() local
604 if (EVP_PKEY_decrypt(ctx.get(), nullptr /* out */, &outlen, data_.peek_read(), in Finish()
[all …]
/system/vold/
DKeyStorage.cpp396 int outlen; in encryptWithoutKeymaster() local
399 &outlen, reinterpret_cast<const uint8_t*>(plaintext.data()), plaintext.size())) { in encryptWithoutKeymaster()
403 if (outlen != static_cast<int>(plaintext.size())) { in encryptWithoutKeymaster()
404 LOG(ERROR) << "GCM ciphertext length should be " << plaintext.size() << " was " << outlen; in encryptWithoutKeymaster()
410 &outlen)) { in encryptWithoutKeymaster()
414 if (outlen != 0) { in encryptWithoutKeymaster()
415 LOG(ERROR) << "GCM EncryptFinal should be 0, was " << outlen; in encryptWithoutKeymaster()
449 int outlen; in decryptWithoutKeymaster() local
450 if (1 != EVP_DecryptUpdate(ctx.get(), reinterpret_cast<uint8_t*>(&(*plaintext)[0]), &outlen, in decryptWithoutKeymaster()
456 if (outlen != static_cast<int>(plaintext->size())) { in decryptWithoutKeymaster()
[all …]
/system/bt/embdrv/g722/
Dg722_decode.cc278 uint32_t outlen; in g722_decode() local
282 outlen = 0; in g722_decode()
410 amp[outlen++] = ((int16_t) (xout1 >> 4) + 2048); in g722_decode()
411 amp[outlen++] = ((int16_t) (xout2 >> 4) + 2048); in g722_decode()
415 amp[outlen++] = xout1; in g722_decode()
416 amp[outlen++] = xout2; in g722_decode()
419 return outlen; in g722_decode()
/system/core/adb/pairing_auth/include/adb/pairing/
Dpairing_auth.h150 size_t* outlen) __INTRODUCED_IN(30);
183 size_t* outlen) __INTRODUCED_IN(30);
/system/core/adb/pairing_auth/
Dpairing_auth.cpp252 size_t* outlen) { in pairing_auth_encrypt() argument
256 CHECK(outlen); in pairing_auth_encrypt()
266 *outlen = out.size(); in pairing_auth_encrypt()
279 size_t* outlen) { in pairing_auth_decrypt() argument
283 CHECK(outlen); in pairing_auth_decrypt()
293 *outlen = out.size(); in pairing_auth_decrypt()
/system/core/adb/
Dsysdeps_win32.cpp2074 size_t outlen; in _console_read() local
2082 outlen = strlen(seqstr); in _console_read()
2085 outlen = seqbuflen; in _console_read()
2091 outlen = seqbuflen; in _console_read()
2106 g_console_input_buffer.insert(g_console_input_buffer.end(), out, out + outlen); in _console_read()