Browse Source

Add dummy setiv method

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
a01374b5cd
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      src/crypto/crypto_null.c

+ 6
- 1
src/crypto/crypto_null.c View File

@@ -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,

Loading…
Cancel
Save