[Remops] Zax: 2 small mixmaster problems...

lists at notatla.org.uk lists at notatla.org.uk
Wed Oct 15 03:12:52 BST 2014


>  line 567
>  // AES CTR mode is identical for encrypt/decrypt
>  int buf_aes_ctr128(BUFFER *buf, BUFFER *key, BUFFER *iv)
>  {
>  unsigned int n = 0;
>  unsigned char ecount[AES_BLOCK_SIZE];
>  memset(ecount, 0, sizeof(ecount));
>  AES_KEY ks;
>  
>  Here, AES_KEY is placed wrong. You have it _after_ the memset function.
>  It needs to be before any functions are called.

Starting with C99 that seems to be no longer true.
https://stackoverflow.com/questions/8474100/where-you-can-and-cannot-declare-new-variables-in-c


More information about the Remops mailing list