diff options
-rw-r--r-- | src/common/crypto.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c index 4a0fc653a..60775e7e7 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -74,7 +74,8 @@ struct crypto_pk_env_t struct crypto_cipher_env_t { unsigned char key[CIPHER_KEY_LEN]; - unsigned char iv[CIPHER_IV_LEN]; + unsigned char iv[CIPHER_IV_LEN+1]; + /* +1 because some compilers don't like a length of 0 */ aes_cnt_cipher_t *cipher; }; |