DanielLeens commented on issue #13377:
URL: https://github.com/apache/seatunnel/issues/13377#issuecomment-7041960200

   Classification: F / Transform-V2 cryptographic SQL-function contract.
   
   Thank you for the concrete interoperability goal. This needs a small design 
decision before an implementation PR: current `AES_ENCRYPT` is explicitly 
`AES/CBC/PKCS5Padding`, uses a Base64 result, and prefixes a generated IV only 
when the caller did not supply one. The Doris example, by contrast, refers to 
SM4's default ECB behavior. We must not call the two formats compatible without 
choosing one precise SM4 mode, padding rule, IV layout, key-input rule, and 
Base64 envelope.
   
   Please first propose that contract and the provider/packaging plan. A 
standard JDK provider does not by itself establish SM4 availability, so any new 
crypto dependency or shading/licensing impact needs an explicit review; do not 
add one as an incidental function change. The proposal should also say which 
SQL engines expose the function and must ensure secrets and derived key 
material are never logged.
   
   Once that is agreed, acceptance should include fixed-IV published test 
vectors, generated-IV round trips, raw and `base64:` 16-byte-key validation, 
null handling, malformed/tampered ciphertext, wrong-key failure, and EN/ZH 
documentation. Until then this is a design-gated feature rather than a ready 
implementation task.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to