diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-02-19 23:58:11 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-02-19 23:58:11 +0100 |
commit | 74a3fa37f57e49df0ce0275677b45282735d9570 (patch) | |
tree | 576122ab4be5ce30090bb7b4c5280e2c1410e366 /cryptodev_cipher.c | |
parent | ac4b8802a5b1a5f5a7fd5b937b55405546b0c19b (diff) | |
download | kernel-crypto-74a3fa37f57e49df0ce0275677b45282735d9570.tar.gz kernel-crypto-74a3fa37f57e49df0ce0275677b45282735d9570.tar.xz kernel-crypto-74a3fa37f57e49df0ce0275677b45282735d9570.zip |
Switched type with __user.
Diffstat (limited to 'cryptodev_cipher.c')
-rw-r--r-- | cryptodev_cipher.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cryptodev_cipher.c b/cryptodev_cipher.c index af7571d51f4..5c54196ec7c 100644 --- a/cryptodev_cipher.c +++ b/cryptodev_cipher.c @@ -48,7 +48,7 @@ static void cryptodev_complete(struct crypto_async_request *req, int err) complete(&res->completion); } -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 __user * key, size_t keylen) { uint8_t keyp[CRYPTO_CIPHER_MAX_KEY_LEN]; int ret; @@ -187,7 +187,7 @@ void cryptodev_cipher_deinit(struct cipher_data* cdata) cdata->type = 0; } -void cryptodev_cipher_set_iv(struct cipher_data* cdata, __user void* iv, size_t iv_size) +void cryptodev_cipher_set_iv(struct cipher_data* cdata, void __user* iv, size_t iv_size) { if (cdata->type == 1) { uint8_t _iv[EALG_MAX_BLOCK_LEN]; @@ -272,7 +272,7 @@ uint32_t type = 0, mask = 0; return crypto_has_alg(alg_name, type, mask); } -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 __user* mackey, size_t mackeylen) { int ret; uint8_t hkeyp[CRYPTO_HMAC_MAX_KEY_LEN]; |