From 6b5b35e6cc60e54adfdda18af73efb03ede4bf50 Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Wed, 20 Mar 2013 18:10:51 +0200 Subject: [PATCH] ocb3: don't zero ocb3 context in ocb3_{de,en}crypt_last --- src/encauth/ocb3/ocb3_decrypt_last.c | 1 - src/encauth/ocb3/ocb3_encrypt_last.c | 1 - 2 files changed, 2 deletions(-) diff --git a/src/encauth/ocb3/ocb3_decrypt_last.c b/src/encauth/ocb3/ocb3_decrypt_last.c index 35ba864..a932d53 100644 --- a/src/encauth/ocb3/ocb3_decrypt_last.c +++ b/src/encauth/ocb3/ocb3_decrypt_last.c @@ -93,7 +93,6 @@ LBL_ERR: #ifdef LTC_CLEAN_STACK zeromem(iOffset_star, MAXBLOCKSIZE); zeromem(iPad, MAXBLOCKSIZE); - zeromem(ocb, sizeof(*ocb)); #endif return err; diff --git a/src/encauth/ocb3/ocb3_encrypt_last.c b/src/encauth/ocb3/ocb3_encrypt_last.c index 788a257..b21cfae 100644 --- a/src/encauth/ocb3/ocb3_encrypt_last.c +++ b/src/encauth/ocb3/ocb3_encrypt_last.c @@ -95,7 +95,6 @@ LBL_ERR: #ifdef LTC_CLEAN_STACK zeromem(iOffset_star, MAXBLOCKSIZE); zeromem(iPad, MAXBLOCKSIZE); - zeromem(ocb, sizeof(*ocb)); #endif return err;