Home
last modified time | relevance | path

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

/system/keymaster/km_openssl/
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)) return KM_ERROR_MEMORY_ALLOCATION_FAILED; in Finish()
556 if (padding_ == KM_PAD_NONE && to_encrypt_len < outlen) { in Finish()
557 keymaster_error_t error = zero_pad_left(&zero_padded, outlen, data_); in Finish()
560 to_encrypt_len = outlen; in Finish()
563 if (EVP_PKEY_encrypt(ctx.get(), output->peek_write(), &outlen, to_encrypt, to_encrypt_len) <= 0) in Finish()
565 if (!output->advance_write(outlen)) return KM_ERROR_UNKNOWN_ERROR; in Finish()
589 size_t outlen; in Finish() local
590 if (EVP_PKEY_decrypt(ctx.get(), nullptr /* out */, &outlen, data_.peek_read(), in Finish()
[all …]
/system/keymaster/cppcose/
Dcppcose.cpp45 int outlen; in aesGcmInitAndProcessAad() local
46 if (!aad.empty() && !EVP_CipherUpdate(ctx.get(), nullptr /* out; null means AAD */, &outlen, in aesGcmInitAndProcessAad()
415 int outlen; in aesGcmEncrypt() local
416 if (!EVP_CipherUpdate(ctx->get(), ciphertext.data(), &outlen, plaintext.data(), in aesGcmEncrypt()
420 assert(plaintext.size() == static_cast<uint64_t>(outlen)); in aesGcmEncrypt()
422 if (!EVP_CipherFinal_ex(ctx->get(), ciphertext.data() + outlen, &outlen)) { in aesGcmEncrypt()
425 assert(outlen == 0); in aesGcmEncrypt()
443 int outlen; in aesGcmDecrypt() local
444 if (!EVP_CipherUpdate(ctx->get(), plaintext.data(), &outlen, ciphertextWithTag.data(), in aesGcmDecrypt()
448 assert(plaintext.size() == static_cast<uint64_t>(outlen)); in aesGcmDecrypt()
[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/vold/
DKeyStorage.cpp492 int outlen; in encryptWithoutKeymaster() local
495 &outlen, reinterpret_cast<const uint8_t*>(plaintext.data()), plaintext.size())) { in encryptWithoutKeymaster()
499 if (outlen != static_cast<int>(plaintext.size())) { in encryptWithoutKeymaster()
500 LOG(ERROR) << "GCM ciphertext length should be " << plaintext.size() << " was " << outlen; in encryptWithoutKeymaster()
506 &outlen)) { in encryptWithoutKeymaster()
510 if (outlen != 0) { in encryptWithoutKeymaster()
511 LOG(ERROR) << "GCM EncryptFinal should be 0, was " << outlen; in encryptWithoutKeymaster()
545 int outlen; in decryptWithoutKeymaster() local
546 if (1 != EVP_DecryptUpdate(ctx.get(), reinterpret_cast<uint8_t*>(&(*plaintext)[0]), &outlen, in decryptWithoutKeymaster()
552 if (outlen != static_cast<int>(plaintext->size())) { in decryptWithoutKeymaster()
[all …]