summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-02-26 12:45:07 +0000
committerChristian Pointner <equinox@anytun.org>2009-02-26 12:45:07 +0000
commit61b94c8ae640b8bea51edc2db54285c80ae42e11 (patch)
tree8e075a950db76c88862ecdc0c2d1d0aff2de5c3e
parentupdated ChangeLog (diff)
cleanup
-rw-r--r--src/cipher.h2
-rw-r--r--src/key_derivation.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cipher.h b/src/cipher.h
index cae5a88..17a4cec 100644
--- a/src/cipher.h
+++ b/src/cipher.h
@@ -83,7 +83,7 @@ union __attribute__((__packed__)) cipher_aesctr_ctr_union {
u_int16_t zero_;
} salt_;
struct __attribute__((__packed__)) {
- u_int8_t fill_[C_AESCTR_SALT_LENGTH - sizeof(mux_t) - sizeof(sender_id_t) - 2 - sizeof(seq_nr_t)];
+ u_int8_t fill_[C_AESCTR_SALT_LENGTH - sizeof(mux_t) - sizeof(sender_id_t) - 2*sizeof(u_int8_t) - sizeof(seq_nr_t)];
mux_t mux_;
sender_id_t sender_id_;
u_int8_t empty_[2];
diff --git a/src/key_derivation.h b/src/key_derivation.h
index f4a9420..dbbf73c 100644
--- a/src/key_derivation.h
+++ b/src/key_derivation.h
@@ -100,7 +100,7 @@ union __attribute__((__packed__)) key_derivation_aesctr_ctr_union {
u_int16_t zero_;
} params_;
struct __attribute__((__packed__)) {
- u_int8_t fill_[KD_AESCTR_SALT_LENGTH - sizeof(u_int8_t) - 2 - sizeof(seq_nr_t)];
+ u_int8_t fill_[KD_AESCTR_SALT_LENGTH - sizeof(u_int8_t) - 2*sizeof(u_int8_t) - sizeof(seq_nr_t)];
u_int8_t label_;
u_int8_t r_fill_[2];
seq_nr_t r_;