summaryrefslogtreecommitdiff
path: root/src/AES.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/AES.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/AES.c')
-rw-r--r--src/AES.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/AES.c b/src/AES.c
index 5da189f..1e705da 100644
--- a/src/AES.c
+++ b/src/AES.c
@@ -1446,6 +1446,10 @@ static void block_init(block_state *state, unsigned char *key,
rijndaelKeySetupDec(state->dk, key, keylen*8);
}
+static void block_finalize(block_state* self)
+{
+}
+
static void block_encrypt(block_state *self, u8 *in, u8 *out)
{
rijndaelEncrypt(self->ek, self->rounds, in, out);