summaryrefslogtreecommitdiff
path: root/keyDerivation.cpp
diff options
context:
space:
mode:
authorErwin Nindl <nine@wirdorange.org>2007-12-11 17:47:29 +0000
committerErwin Nindl <nine@wirdorange.org>2007-12-11 17:47:29 +0000
commitf7307935fb087f8c327c8d8f09f8837925e70c34 (patch)
treea6fb23076c80ee1590d9937bf6dbbd169fab7f13 /keyDerivation.cpp
parentkd iv generation fix again (diff)
set iv to fixed length of 16byte in kd
Diffstat (limited to 'keyDerivation.cpp')
-rw-r--r--keyDerivation.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/keyDerivation.cpp b/keyDerivation.cpp
index 406e877..5e5068a 100644
--- a/keyDerivation.cpp
+++ b/keyDerivation.cpp
@@ -133,9 +133,7 @@ void KeyDerivation::generate(satp_prf_label label, seq_nr_t seq_nr, Buffer& key,
if( err )
cLog.msg(Log::PRIO_ERR) << "KeyDerivation::generate: Failed to reset cipher: " << gpg_strerror( err );
- iv.clearHighBit(129);
-
- err = gcry_cipher_setiv( cipher_ , iv.getBuf().getBuf(), iv.getBuf().getLength());
+ err = gcry_cipher_setiv( cipher_ , iv.getBuf(16).getBuf(), iv.getBuf().getLength());
if( err )
cLog.msg(Log::PRIO_ERR) << "KeyDerivation::generate: Failed to set IV: " << gpg_strerror( err );