summaryrefslogtreecommitdiff
path: root/cypher.cpp
diff options
context:
space:
mode:
authorErwin Nindl <nine@wirdorange.org>2007-12-12 14:14:58 +0000
committerErwin Nindl <nine@wirdorange.org>2007-12-12 14:14:58 +0000
commita83f590e0e89883e8362bb5c4a760f09856378f9 (patch)
treefd84c16aadc37ed1011e4cbb5a4d42dc18534085 /cypher.cpp
parentset 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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cypher.cpp b/cypher.cpp
index 7bf0c3e..34a9a10 100644
--- a/cypher.cpp
+++ b/cypher.cpp
@@ -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);