diff options
author | Michael Brown | 2007-02-01 03:19:16 +0100 |
---|---|---|
committer | Michael Brown | 2007-02-01 03:19:16 +0100 |
commit | a01374b5cdecf44d937e0164c1719570fb6eea3d (patch) | |
tree | ad96051eb0c322db4676b14507045061cef88bdd /src/crypto | |
parent | Fix prototypes (diff) | |
download | ipxe-a01374b5cdecf44d937e0164c1719570fb6eea3d.tar.gz ipxe-a01374b5cdecf44d937e0164c1719570fb6eea3d.tar.xz ipxe-a01374b5cdecf44d937e0164c1719570fb6eea3d.zip |
Add dummy setiv method
Diffstat (limited to 'src/crypto')
-rw-r--r-- | src/crypto/crypto_null.c | 7 |
1 files changed, 6 insertions, 1 deletions
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, |