diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-06-27 17:39:39 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-06-27 18:26:21 +0200 |
commit | c8620dbeef9207a0bef7711d10ac90feef1bff82 (patch) | |
tree | f0f69632ff41e21a29ecd705b55eb4ef0c79ab1f /src/method_aes128_gcm.c | |
parent | 4bda71ac395b09a9af545f894f0100713a66868b (diff) | |
download | fastd-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.c | 6 |
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; |