Skip to content
Snippets Groups Projects
Commit 5d151088 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

use nick's _ARRAYSIZE abstraction

svn:r1741
parent 47dc5cd1
No related branches found
No related tags found
No related merge requests found
......@@ -78,8 +78,7 @@ struct crypto_pk_env_t
struct crypto_cipher_env_t
{
unsigned char key[CIPHER_KEY_LEN];
unsigned char iv[CIPHER_IV_LEN+1];
/* +1 because some compilers don't like a length of 0 */
unsigned char iv[_ARRAYSIZE(CIPHER_IV_LEN)];
aes_cnt_cipher_t *cipher;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment