summaryrefslogtreecommitdiffstats
path: root/src/method_aes128_gcm.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-06-27 17:39:39 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-06-27 18:26:21 +0200
commitc8620dbeef9207a0bef7711d10ac90feef1bff82 (patch)
treef0f69632ff41e21a29ecd705b55eb4ef0c79ab1f /src/method_aes128_gcm.c
parent4bda71ac395b09a9af545f894f0100713a66868b (diff)
downloadfastd-c8620dbeef9207a0bef7711d10ac90feef1bff82.tar
fastd-c8620dbeef9207a0bef7711d10ac90feef1bff82.zip
Remove unneeded size bytes from GCM to suppress warnings
Diffstat (limited to 'src/method_aes128_gcm.c')
-rw-r--r--src/method_aes128_gcm.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/method_aes128_gcm.c b/src/method_aes128_gcm.c
index a15ae87..ad4a5d2 100644
--- a/src/method_aes128_gcm.c
+++ b/src/method_aes128_gcm.c
@@ -247,9 +247,6 @@ static bool method_encrypt(fastd_context *ctx, fastd_peer *peer, fastd_method_se
mulH(sig, sig, session);
}
- sig[BLOCKBYTES-8] ^= (in.len >> 53) & 0xff;
- sig[BLOCKBYTES-7] ^= (in.len >> 45) & 0xff;
- sig[BLOCKBYTES-6] ^= (in.len >> 37) & 0xff;
sig[BLOCKBYTES-5] ^= (in.len >> 29) & 0xff;
sig[BLOCKBYTES-4] ^= (in.len >> 21) & 0xff;
sig[BLOCKBYTES-3] ^= (in.len >> 13) & 0xff;
@@ -316,9 +313,6 @@ static bool method_decrypt(fastd_context *ctx, fastd_peer *peer, fastd_method_se
mulH(sig, sig, session);
}
- sig[BLOCKBYTES-8] ^= (in.len >> 53) & 0xff;
- sig[BLOCKBYTES-7] ^= (in.len >> 45) & 0xff;
- sig[BLOCKBYTES-6] ^= (in.len >> 37) & 0xff;
sig[BLOCKBYTES-5] ^= (in.len >> 29) & 0xff;
sig[BLOCKBYTES-4] ^= (in.len >> 21) & 0xff;
sig[BLOCKBYTES-3] ^= (in.len >> 13) & 0xff;