From a01374b5cdecf44d937e0164c1719570fb6eea3d Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 1 Feb 2007 02:19:16 +0000 Subject: [PATCH] Add dummy setiv method --- src/crypto/crypto_null.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/crypto/crypto_null.c b/src/crypto/crypto_null.c index 9a2ea996..120ef0a6 100644 --- a/src/crypto/crypto_null.c +++ b/src/crypto/crypto_null.c @@ -29,12 +29,16 @@ static void null_init ( void *ctx __unused ) { /* Do nothing */ } -static int null_setkey ( void *ctx __unused, void *key __unused, +static int null_setkey ( void *ctx __unused, const void *key __unused, size_t keylen __unused ) { /* Do nothing */ return 0; } +static void null_setiv ( void *ctx __unused, const void *iv __unused ) { + /* Do nothing */ +} + static void null_encode ( void *ctx __unused, const void *src, void *dst, size_t len ) { if ( dst ) @@ -58,6 +62,7 @@ struct crypto_algorithm crypto_null = { .digestsize = 0, .init = null_init, .setkey = null_setkey, + .setiv = null_setiv, .encode = null_encode, .decode = null_decode, .final = null_final,