diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-06-14 16:08:16 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-06-17 20:48:18 +0200 |
commit | e9f738aa05a2dbf94fdf05de01d06d2ebf62529d (patch) | |
tree | b07b75913153014c0019ed78cfdd3e7e2ccc5596 /cryptodev_int.h | |
parent | 0b2ab77de147d60ca44de978a36e90e1138a5551 (diff) | |
download | cryptodev-linux-e9f738aa05a2dbf94fdf05de01d06d2ebf62529d.tar.gz cryptodev-linux-e9f738aa05a2dbf94fdf05de01d06d2ebf62529d.tar.xz cryptodev-linux-e9f738aa05a2dbf94fdf05de01d06d2ebf62529d.zip |
Added initial wrapping and unwrapping key API. Adds an implementation of the AES-WRAP (untested yet).
Diffstat (limited to 'cryptodev_int.h')
-rw-r--r-- | cryptodev_int.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cryptodev_int.h b/cryptodev_int.h index 6f2cc5e..5d4ebfe 100644 --- a/cryptodev_int.h +++ b/cryptodev_int.h @@ -10,6 +10,7 @@ #include <linux/miscdevice.h> #include <linux/module.h> #include <linux/moduleparam.h> +#include <linux/scatterlist.h> #define PFX "cryptodev: " #define dprintk(level,severity,format,a...) \ @@ -35,7 +36,7 @@ struct cipher_data } async; }; -int cryptodev_cipher_init(struct cipher_data* out, const char* alg_name, __user uint8_t * key, size_t keylen); +int cryptodev_cipher_init(struct cipher_data* out, const char* alg_name, uint8_t * key, size_t keylen); 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); @@ -57,7 +58,7 @@ int cryptodev_hash_final( struct hash_data* hdata, void* output); ssize_t cryptodev_hash_update( struct hash_data* hdata, struct scatterlist *sg, size_t len); int cryptodev_hash_reset( struct hash_data* hdata); void cryptodev_hash_deinit(struct hash_data* hdata); -int cryptodev_hash_init( struct hash_data* hdata, const char* alg_name, int hmac_mode, __user void* mackey, size_t mackeylen); +int cryptodev_hash_init( struct hash_data* hdata, const char* alg_name, int hmac_mode, void* mackey, size_t mackeylen); /* compatibility stuff */ #ifdef CONFIG_COMPAT |