diff options
author | Christian Pointner <equinox@anytun.org> | 2008-02-25 19:46:36 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2008-02-25 19:46:36 +0000 |
commit | ae5bfc433a47c2aedb2486a117e1b424d258e479 (patch) | |
tree | 3bf0188e1aefc404250a8dbda1d5a120cc93b31a /cipher.cpp | |
parent | fixed resize issue with buffer->xPacket (diff) |
added quick and dirty hack which remedies the cipher CTR error issues
Diffstat (limited to 'cipher.cpp')
-rw-r--r-- | cipher.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -100,6 +100,8 @@ void AesIcmCipher::setKey(Buffer key) void AesIcmCipher::setSalt(Buffer salt) { salt_ = salt; + if(!salt_[u_int32_t(0)]) + salt_[u_int32_t(0)] = 1; // TODO: this is a outstandingly ugly workaround } u_int32_t AesIcmCipher::cipher(u_int8_t* in, u_int32_t ilen, u_int8_t* out, u_int32_t olen, seq_nr_t seq_nr, sender_id_t sender_id) |