mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-03-08 02:36:27 +00:00
ChaCha20: move working state from ctx to stack
No need to keep it around.
This commit is contained in:
@@ -54,8 +54,7 @@ extern "C" {
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint32_t initial_state[16]; /*! The initial state (before round operations). */
|
||||
uint32_t working_state[16]; /*! The working state (after round operations). */
|
||||
uint32_t state[16]; /*! The state (before round operations). */
|
||||
uint8_t keystream8[64]; /*! Leftover keystream bytes. */
|
||||
size_t keystream_bytes_used; /*! Number of keystream bytes already used. */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user