From 58a20b797e5a987fc8f7c5bea3be24d754908bf5 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Wed, 7 Jul 2010 08:31:14 +0200 Subject: set_iv() function accepts argument from kernel memory. --- cryptodev_int.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cryptodev_int.h') diff --git a/cryptodev_int.h b/cryptodev_int.h index c686150..2901d59 100644 --- a/cryptodev_int.h +++ b/cryptodev_int.h @@ -41,7 +41,7 @@ void cryptodev_cipher_deinit(struct cipher_data* cdata); ssize_t cryptodev_cipher_decrypt( struct cipher_data* cdata, struct scatterlist *sg1, struct scatterlist *sg2, size_t len); ssize_t cryptodev_cipher_encrypt( struct cipher_data* cdata, struct scatterlist *sg1, struct scatterlist *sg2, size_t len); -int cryptodev_cipher_set_iv(struct cipher_data* cdata, void* iv, size_t iv_size); +void cryptodev_cipher_set_iv(struct cipher_data* cdata, void* iv, size_t iv_size); int _cryptodev_cipher_decrypt(struct cipher_data* cdata, const void* ciphertext, size_t ciphertext_size, void* plaintext, size_t plaintext_size); int _cryptodev_cipher_encrypt(struct cipher_data* cdata, const void* plaintext, -- cgit