summaryrefslogtreecommitdiff
path: root/src/DES.c
diff options
context:
space:
mode:
authorSebastian Ramacher <sebastian+dev@ramacher.at>2013-10-28 02:47:48 +0100
committerSebastian Ramacher <sebastian+dev@ramacher.at>2013-10-28 17:24:20 +0100
commit8cde8b9893819e9586bde2ce9be84f24689ff0d9 (patch)
treeb0ad65ded19ca599e66f5f80fc220eb7e8980e34 /src/DES.c
parent4b2a15fef3e9f0ca3809a54ae2a18109dae4ae01 (diff)
downloadpycrypto-8cde8b9893819e9586bde2ce9be84f24689ff0d9.tar.gz
Add block_finalize to clean up block_state from ALGdealloc
This is the counterpart to block_init which is called from ALGnew. Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
Diffstat (limited to 'src/DES.c')
-rw-r--r--src/DES.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/DES.c b/src/DES.c
index 9cbda53..5187870 100644
--- a/src/DES.c
+++ b/src/DES.c
@@ -76,6 +76,10 @@ static void block_init(block_state *self, unsigned char *key, int keylen)
}
}
+static void block_finalize(block_state *self)
+{
+}
+
static void block_encrypt(block_state *self, unsigned char *in, unsigned char *out)
{
int rc;