Lines Matching refs:output

171                                                   Buffer* output, size_t* input_consumed) {  in Update()  argument
174 if (!InternalUpdate(input.peek_read(), input.available_read(), output, &error)) return error; in Update()
188 AuthorizationSet* output_params, Buffer* output) { in Finish() argument
190 if (!UpdateForFinish(additional_params, input, output_params, output, &error)) return error; in Finish()
191 if (!output->reserve(block_size_bytes())) return KM_ERROR_MEMORY_ALLOCATION_FAILED; in Finish()
198 if (!EVP_CipherFinal_ex(&ctx_, output->peek_write(), &output_written)) { in Finish()
206 if (!output->advance_write(output_written)) return KM_ERROR_UNKNOWN_ERROR; in Finish()
360 Buffer* output, keymaster_error_t* error) { in InternalUpdate() argument
361 assert(output); in InternalUpdate()
366 if (!output->reserve(input_length + block_size_bytes())) { in InternalUpdate()
372 if (!EVP_CipherUpdate(&ctx_, output->peek_write(), &output_written, input, input_length)) { in InternalUpdate()
376 return output->advance_write(output_written); in InternalUpdate()
381 Buffer* output, keymaster_error_t* error) { in UpdateForFinish() argument
384 *error = Update(additional_params, input, output_params, output, &input_consumed); in UpdateForFinish()
420 Buffer* output) { 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()
430 if (!output->reserve(tag_length_)) return KM_ERROR_MEMORY_ALLOCATION_FAILED; in Finish()
432 if (!EVP_CIPHER_CTX_ctrl(&ctx_, EVP_CTRL_GCM_GET_TAG, tag_length_, output->peek_write())) in Finish()
434 if (!output->advance_write(tag_length_)) return KM_ERROR_UNKNOWN_ERROR; in Finish()
466 Buffer* output, size_t* input_consumed) { in Update() argument
467 if (!output || !input_consumed) return KM_ERROR_OUTPUT_PARAMETER_NULL; in Update()
475 return ProcessAllButTagLengthBytes(input, output); in Update()
478 if (!InternalUpdate(input.peek_read(), input.available_read(), output, &error)) return error; in Update()
483 Buffer* output) { in ProcessAllButTagLengthBytes() argument
495 if (!output->reserve(to_process + block_size_bytes())) return KM_ERROR_MEMORY_ALLOCATION_FAILED; in ProcessAllButTagLengthBytes()
498 if (!ProcessTagBufContentsAsData(to_process_from_tag_buf, output, &error)) return error; in ProcessAllButTagLengthBytes()
500 if (!InternalUpdate(input.peek_read(), to_process_from_input, output, &error)) return error; in ProcessAllButTagLengthBytes()
509 bool BlockCipherEvpDecryptOperation::ProcessTagBufContentsAsData(size_t to_process, Buffer* output, in ProcessTagBufContentsAsData() argument
512 if (!InternalUpdate(tag_buf_.get(), to_process, output, error)) return false; in ProcessTagBufContentsAsData()
531 Buffer* output) { in Finish() argument
533 if (!UpdateForFinish(additional_params, input, output_params, output, &error)) return error; in Finish()
545 output); in Finish()