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
 	/* Do nothing */
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
 			 size_t keylen __unused ) {
33
 			 size_t keylen __unused ) {
34
 	/* Do nothing */
34
 	/* Do nothing */
35
 	return 0;
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
 static void null_encode ( void *ctx __unused, const void *src,
42
 static void null_encode ( void *ctx __unused, const void *src,
39
 			  void *dst, size_t len ) {
43
 			  void *dst, size_t len ) {
40
 	if ( dst )
44
 	if ( dst )
58
 	.digestsize = 0,
62
 	.digestsize = 0,
59
 	.init = null_init,
63
 	.init = null_init,
60
 	.setkey = null_setkey,
64
 	.setkey = null_setkey,
65
+	.setiv = null_setiv,
61
 	.encode = null_encode,
66
 	.encode = null_encode,
62
 	.decode = null_decode,
67
 	.decode = null_decode,
63
 	.final = null_final,
68
 	.final = null_final,

Loading…
Cancel
Save