|
@@ -29,12 +29,16 @@ static void null_init ( void *ctx __unused ) {
|
29
|
29
|
/* Do nothing */
|
30
|
30
|
}
|
31
|
31
|
|
32
|
|
-static int null_setkey ( void *ctx __unused, void *key __unused,
|
|
32
|
+static int null_setkey ( void *ctx __unused, const void *key __unused,
|
33
|
33
|
size_t keylen __unused ) {
|
34
|
34
|
/* Do nothing */
|
35
|
35
|
return 0;
|
36
|
36
|
}
|
37
|
37
|
|
|
38
|
+static void null_setiv ( void *ctx __unused, const void *iv __unused ) {
|
|
39
|
+ /* Do nothing */
|
|
40
|
+}
|
|
41
|
+
|
38
|
42
|
static void null_encode ( void *ctx __unused, const void *src,
|
39
|
43
|
void *dst, size_t len ) {
|
40
|
44
|
if ( dst )
|
|
@@ -58,6 +62,7 @@ struct crypto_algorithm crypto_null = {
|
58
|
62
|
.digestsize = 0,
|
59
|
63
|
.init = null_init,
|
60
|
64
|
.setkey = null_setkey,
|
|
65
|
+ .setiv = null_setiv,
|
61
|
66
|
.encode = null_encode,
|
62
|
67
|
.decode = null_decode,
|
63
|
68
|
.final = null_final,
|