Andrea Cosentino created CAMEL-23847:
----------------------------------------
Summary: Camel-PQC: support streaming sign/verify for large
payloads
Key: CAMEL-23847
URL: https://issues.apache.org/jira/browse/CAMEL-23847
Project: Camel
Issue Type: Improvement
Components: camel-pqc
Reporter: Andrea Cosentino
Assignee: Andrea Cosentino
PQCProducer sign/verify materialise the entire body as a String
({{getMandatoryBody(String.class)}}) before feeding it to
{{Signature.update()}}. For large payloads (files, large messages) this loads
everything into memory.
h3. Proposal
* When the body is an {{InputStream}} (or {{byte[]}}), feed
{{Signature.update()}} in chunks from the stream instead of materialising the
whole payload.
* Works together with the byte[]/charset fix (separate issue) so binary
streaming behaves correctly.
Affected: {{components/camel-pqc}} PQCProducer (sign, verify and the hybrid
variants).
----
_Filed by Claude Code on behalf of Andrea Cosentino._
--
This message was sent by Atlassian Jira
(v8.20.10#820010)