xiaoxiang781216 commented on code in PR #3636:
URL: https://github.com/apache/nuttx-apps/pull/3636#discussion_r3567655613
##########
netutils/dropbear/patch/0005-use-nuttx-chachapoly-cryptodev.patch:
##########
@@ -0,0 +1,20 @@
+--- a/src/chachapoly.h
++++ b/src/chachapoly.h
+@@ -31,10 +31,17 @@
+
+ #if DROPBEAR_CHACHA20POLY1305
+
++#ifdef DROPBEAR_NUTTX_CHACHAPOLY
++typedef struct {
++ unsigned char key_main[32];
++ unsigned char key_header[32];
++} dropbear_chachapoly_state;
++#else
+ typedef struct {
+ chacha_state chacha;
Review Comment:
why not continue use this struct, but convert to nuttx one in porting layer
--
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]