diff options
author | Michael Brown <mcb30@etherboot.org> | 2007-01-31 03:42:07 +0000 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2007-01-31 03:42:07 +0000 |
commit | a502fcda45ef5512f19621a1b4e8a46f1371907b (patch) | |
tree | f9495b85bef86804a12f33045f6cca0a3b4248c5 /src/crypto/crypto_null.c | |
parent | 138967dd6bc8b2cf00924e5a160184af3977a4ce (diff) | |
download | ipxe-a502fcda45ef5512f19621a1b4e8a46f1371907b.tar.gz |
The null crypto algorithm should at least copy data...
Diffstat (limited to 'src/crypto/crypto_null.c')
-rw-r--r-- | src/crypto/crypto_null.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/crypto/crypto_null.c b/src/crypto/crypto_null.c index 01c67e9f6..dda59ea5d 100644 --- a/src/crypto/crypto_null.c +++ b/src/crypto/crypto_null.c @@ -22,6 +22,7 @@ * Null crypto algorithm */ +#include <string.h> #include <gpxe/crypto.h> static void null_init ( void *ctx __unused ) { @@ -34,14 +35,14 @@ static int null_setkey ( void *ctx __unused, void *key __unused, return 0; } -static void null_encode ( void *ctx __unused, const void *src __unused, - void *dst __unused, size_t len __unused ) { - /* Do nothing */ +static void null_encode ( void *ctx __unused, const void *src, + void *dst, size_t len ) { + memcpy ( dst, src, len ); } -static void null_decode ( void *ctx __unused, const void *src __unused, - void *dst __unused, size_t len __unused ) { - /* Do nothing */ +static void null_decode ( void *ctx __unused, const void *src, + void *dst, size_t len ) { + memcpy ( dst, src, len ); } static void null_final ( void *ctx __unused, void *out __unused ) { |