Lines Matching refs:outlen
550 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()
608 if (!output->Reinitialize(outlen)) in Finish()
614 if (padding_ == KM_PAD_NONE && to_decrypt_len < outlen) { in Finish()
615 keymaster_error_t error = zero_pad_left(&zero_padded, outlen, data_); in Finish()
619 to_decrypt_len = outlen; in Finish()
622 if (EVP_PKEY_decrypt(ctx.get(), output->peek_write(), &outlen, to_decrypt, to_decrypt_len) <= 0) in Finish()
624 if (!output->advance_write(outlen)) in Finish()