diff --git a/include/crypto/internal/poly1305.h b/include/crypto/internal/poly1305.h index a72fff409ab8..f6de53965319 100644 --- a/include/crypto/internal/poly1305.h +++ b/include/crypto/internal/poly1305.h @@ -8,6 +8,7 @@ #include #include +#include /* * Poly1305 core functions. These only accept whole blocks; the caller must @@ -21,7 +22,8 @@ void poly1305_core_setkey(struct poly1305_core_key *key, const u8 raw_key[POLY1305_BLOCK_SIZE]); static inline void poly1305_core_init(struct poly1305_state *state) { - *state = (struct poly1305_state){}; + //*state = (struct poly1305_state){}; + memset(state, 0, sizeof(struct poly1305_state)); } void poly1305_core_blocks(struct poly1305_state *state,