From: Michael Brown Date: Thu, 1 Feb 2007 02:19:16 +0000 (+0000) Subject: Add dummy setiv method X-Git-Tag: v0.9.3~467 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a01374b5cdecf44d937e0164c1719570fb6eea3d;p=thirdparty%2Fipxe.git Add dummy setiv method --- diff --git a/src/crypto/crypto_null.c b/src/crypto/crypto_null.c index 9a2ea996a..120ef0a6a 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,