|
@@ -22,6 +22,7 @@
|
22
|
22
|
* Null crypto algorithm
|
23
|
23
|
*/
|
24
|
24
|
|
|
25
|
+#include <string.h>
|
25
|
26
|
#include <gpxe/crypto.h>
|
26
|
27
|
|
27
|
28
|
static void null_init ( void *ctx __unused ) {
|
|
@@ -34,14 +35,14 @@ static int null_setkey ( void *ctx __unused, void *key __unused,
|
34
|
35
|
return 0;
|
35
|
36
|
}
|
36
|
37
|
|
37
|
|
-static void null_encode ( void *ctx __unused, const void *src __unused,
|
38
|
|
- void *dst __unused, size_t len __unused ) {
|
39
|
|
- /* Do nothing */
|
|
38
|
+static void null_encode ( void *ctx __unused, const void *src,
|
|
39
|
+ void *dst, size_t len ) {
|
|
40
|
+ memcpy ( dst, src, len );
|
40
|
41
|
}
|
41
|
42
|
|
42
|
|
-static void null_decode ( void *ctx __unused, const void *src __unused,
|
43
|
|
- void *dst __unused, size_t len __unused ) {
|
44
|
|
- /* Do nothing */
|
|
43
|
+static void null_decode ( void *ctx __unused, const void *src,
|
|
44
|
+ void *dst, size_t len ) {
|
|
45
|
+ memcpy ( dst, src, len );
|
45
|
46
|
}
|
46
|
47
|
|
47
|
48
|
static void null_final ( void *ctx __unused, void *out __unused ) {
|