diff options
Diffstat (limited to 'src/crypto/cipher/salsa20/xmm/salsa20_xmm.c')
-rw-r--r-- | src/crypto/cipher/salsa20/xmm/salsa20_xmm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crypto/cipher/salsa20/xmm/salsa20_xmm.c b/src/crypto/cipher/salsa20/xmm/salsa20_xmm.c index a85ed72..abf717f 100644 --- a/src/crypto/cipher/salsa20/xmm/salsa20_xmm.c +++ b/src/crypto/cipher/salsa20/xmm/salsa20_xmm.c @@ -33,6 +33,7 @@ */ +#include "../../../../alloc.h" #include "../../../../crypto.h" #include "../../../../cpuid.h" @@ -67,7 +68,7 @@ static bool salsa20_available(void) { /** Initializes the cipher state */ static fastd_cipher_state_t* salsa20_init(const uint8_t *key) { - fastd_cipher_state_t *state = malloc(sizeof(fastd_cipher_state_t)); + fastd_cipher_state_t *state = fastd_new(fastd_cipher_state_t); memcpy(state->key, key, KEYBYTES); return state; |