david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Add dummy setiv method

This commit is contained in:
Michael Brown 2007-02-01 02:19:16 +00:00
parent f5776dbef1
commit a01374b5cd
1 changed files with 6 additions and 1 deletions

View File

@ -29,12 +29,16 @@ static void null_init ( void *ctx __unused ) {
/* Do nothing */
}
static int null_setkey ( void *ctx __unused, void *key __unused,
static int null_setkey ( void *ctx __unused, const void *key __unused,
size_t keylen __unused ) {
/* Do nothing */
return 0;
}
static void null_setiv ( void *ctx __unused, const void *iv __unused ) {
/* Do nothing */
}
static void null_encode ( void *ctx __unused, const void *src,
void *dst, size_t len ) {
if ( dst )
@ -58,6 +62,7 @@ struct crypto_algorithm crypto_null = {
.digestsize = 0,
.init = null_init,
.setkey = null_setkey,
.setiv = null_setiv,
.encode = null_encode,
.decode = null_decode,
.final = null_final,