mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
chacha20_poly1305 function expects a key size of 32 bytes
This commit is contained in:
@@ -1980,7 +1980,7 @@ static INLINE const char* mymktemp(char *tempfn, int len, int num)
|
|||||||
|
|
||||||
typedef struct key_ctx {
|
typedef struct key_ctx {
|
||||||
byte name[WOLFSSL_TICKET_NAME_SZ]; /* name for this context */
|
byte name[WOLFSSL_TICKET_NAME_SZ]; /* name for this context */
|
||||||
byte key[16]; /* cipher key */
|
byte key[CHACHA20_POLY1305_AEAD_KEYSIZE]; /* cipher key */
|
||||||
} key_ctx;
|
} key_ctx;
|
||||||
|
|
||||||
static key_ctx myKey_ctx;
|
static key_ctx myKey_ctx;
|
||||||
|
Reference in New Issue
Block a user