FelipeMdeO commented on PR #19396:
URL: https://github.com/apache/nuttx/pull/19396#issuecomment-4939676102

   Hello @ThePassionate and @xiaoxiang781216, one compatibility issue I'd like 
to flag, though, since my use case is exactly the one mentioned in your summary 
(SSH [email protected]): this PR changes chacha_ivsetup to the RFC 
8439/IETF layout (32-bit counter in input[12] + 96-bit nonce in input[13..15]), 
but the OpenSSH cipher uses the original DJB construction — 64-bit counter 
(input[12..13]) + 64-bit nonce (input[14..15]).
   
   Would you be open to accommodating the DJB 64/64 variant as well — e.g. 
accepting a 16-byte IV (8-byte LE counter + 8-byte nonce) like FreeBSD's 
enc_xform_chacha20 does, or keeping both layouts selectable? With that, your 
unified path would cover the SSH case too and I can build the Dropbear side 
directly on top of it.
   


-- 
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