summaryrefslogtreecommitdiff
path: root/cipher.cpp
diff options
context:
space:
mode:
authorMichael Gebetsroither <gebi@mgeb.org>2008-03-18 15:02:40 +0000
committerMichael Gebetsroither <gebi@mgeb.org>2008-03-18 15:02:40 +0000
commita35a207fae02334e3f08f566cd53e1b8b5337b48 (patch)
tree425995f720a3466ac45a01c2d99e483162cee4f4 /cipher.cpp
parentdatatypes.h: correct datatypes (diff)
changed u_int32_t* argument to size_t* in Mpi::getNewBuf
Diffstat (limited to 'cipher.cpp')
-rw-r--r--cipher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cipher.cpp b/cipher.cpp
index 5103480..b36df1a 100644
--- a/cipher.cpp
+++ b/cipher.cpp
@@ -145,7 +145,7 @@ void AesIcmCipher::calc(u_int8_t* in, u_int32_t ilen, u_int8_t* out, u_int32_t o
ctr = salt.mul2exp(16) ^ sid.mul2exp(64) ^ seq.mul2exp(16); // TODO: hardcoded size
- u_int32_t written;
+ size_t written;
u_int8_t *ctr_buf = ctr.getNewBuf(&written); // TODO: hardcoded size
err = gcry_cipher_setctr( cipher_, ctr_buf, written ); // TODO: hardcoded size
delete[] ctr_buf;