diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-08-08 12:34:06 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-08-08 12:34:06 +0200 |
commit | b38c76745c81f93e7a9f14d774210ee985f47b6a (patch) | |
tree | 5b74a3996a7df841de4e764768602c62a9d6323a /src | |
parent | 6cf76ca46dc1620431d536839472709895a60a9a (diff) | |
download | fastd-b38c76745c81f93e7a9f14d774210ee985f47b6a.tar fastd-b38c76745c81f93e7a9f14d774210ee985f47b6a.zip |
aes128-gcm: don't restore buffer on verification failure
The buffer descriptor is a local variable and no buffer data is changed, so
there is nothing to restore before returning
Diffstat (limited to 'src')
-rw-r--r-- | src/method_aes128_gcm.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/method_aes128_gcm.c b/src/method_aes128_gcm.c index 81edd7c..c6dafb4 100644 --- a/src/method_aes128_gcm.c +++ b/src/method_aes128_gcm.c @@ -262,10 +262,6 @@ static bool method_decrypt(fastd_context_t *ctx, fastd_peer_t *peer, fastd_metho if (!ok || memcmp(&sig, &outblocks[0], sizeof(fastd_block128_t)) != 0) { fastd_buffer_free(*out); - - /* restore input buffer */ - fastd_buffer_pull_head(ctx, &in, NONCEBYTES); - return false; } |