Lines Matching refs:input

169                                                   const Buffer& input,  in Update()  argument
173 if (block_mode_ == KM_MODE_GCM && !HandleAad(additional_params, input, &error)) return error; in Update()
174 if (!InternalUpdate(input.peek_read(), input.available_read(), output, &error)) return error; in Update()
175 *input_consumed = input.available_read(); in Update()
186 const Buffer& input, in Finish() argument
190 if (!UpdateForFinish(additional_params, input, output_params, output, &error)) return error; in Finish()
287 bool BlockCipherEvpOperation::HandleAad(const AuthorizationSet& input_params, const Buffer& input, in HandleAad() argument
316 if (input.available_read()) { in HandleAad()
359 bool BlockCipherEvpOperation::InternalUpdate(const uint8_t* input, size_t input_length, in InternalUpdate() argument
372 if (!EVP_CipherUpdate(&ctx_, output->peek_write(), &output_written, input, input_length)) { in InternalUpdate()
380 const Buffer& input, AuthorizationSet* output_params, in UpdateForFinish() argument
382 if (input.available_read() || !additional_params.empty()) { in UpdateForFinish()
384 *error = Update(additional_params, input, output_params, output, &input_consumed); in UpdateForFinish()
386 if (input_consumed != input.available_read()) { in UpdateForFinish()
417 const Buffer& input, in Finish() argument
421 if (!output->reserve(input.available_read() + block_size_bytes() + tag_length_)) { in Finish()
426 BlockCipherEvpOperation::Finish(additional_params, input, signature, output_params, output); in Finish()
464 const Buffer& input, in Update() argument
470 *input_consumed = input.available_read(); in Update()
474 if (!HandleAad(additional_params, input, &error)) return error; in Update()
475 return ProcessAllButTagLengthBytes(input, output); in Update()
478 if (!InternalUpdate(input.peek_read(), input.available_read(), output, &error)) return error; in Update()
482 keymaster_error_t BlockCipherEvpDecryptOperation::ProcessAllButTagLengthBytes(const Buffer& input, in ProcessAllButTagLengthBytes() argument
484 if (input.available_read() <= tag_buf_unused()) { in ProcessAllButTagLengthBytes()
485 BufferCandidateTagData(input.peek_read(), input.available_read()); in ProcessAllButTagLengthBytes()
489 const size_t data_available = tag_buf_len_ + input.available_read(); in ProcessAllButTagLengthBytes()
500 if (!InternalUpdate(input.peek_read(), to_process_from_input, output, &error)) return error; in ProcessAllButTagLengthBytes()
502 BufferCandidateTagData(input.peek_read() + to_process_from_input, in ProcessAllButTagLengthBytes()
503 input.available_read() - to_process_from_input); in ProcessAllButTagLengthBytes()
528 const Buffer& input, in Finish() argument
533 if (!UpdateForFinish(additional_params, input, output_params, output, &error)) return error; in Finish()