diff options
author | Erwin Nindl <nine@wirdorange.org> | 2007-12-12 14:14:58 +0000 |
---|---|---|
committer | Erwin Nindl <nine@wirdorange.org> | 2007-12-12 14:14:58 +0000 |
commit | a83f590e0e89883e8362bb5c4a760f09856378f9 (patch) | |
tree | fd84c16aadc37ed1011e4cbb5a4d42dc18534085 /cypher.cpp | |
parent | set iv to fixed length of 16byte in kd (diff) |
changed Mpi::getBuf, now returns u_int8_t *!
Diffstat (limited to 'cypher.cpp')
-rw-r--r-- | cypher.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -147,7 +147,7 @@ Buffer AesIcmCypher::getBitStream(u_int32_t length, seq_nr_t seq_nr, sender_id_t iv = salt.mul2exp(16) ^ sid.mul2exp(64) ^ seq.mul2exp(16); - err = gcry_cipher_setiv( cipher_, iv.getBuf().getBuf(), 16 ); + err = gcry_cipher_setiv( cipher_, iv.getBuf(16), 16 ); if( err ) { cLog.msg(Log::PRIO_ERR) << "AesIcmCypher: Failed to set cipher IV: " << gpg_strerror( err ); return Buffer(0); |