diff options
author | Miloslav Trmač <mitr@redhat.com> | 2010-08-16 16:18:07 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2010-08-24 23:44:25 +0200 |
commit | 96ec7e16575010e4d48c47ade593ca91690c105b (patch) | |
tree | 61366a140136256e28165bd143ef1cc1811a7246 /ncr.h | |
parent | 3ab6fc7d0d19f62b48ecef310249014192289613 (diff) | |
download | cryptodev-linux-96ec7e16575010e4d48c47ade593ca91690c105b.tar.gz cryptodev-linux-96ec7e16575010e4d48c47ade593ca91690c105b.tar.xz cryptodev-linux-96ec7e16575010e4d48c47ade593ca91690c105b.zip |
Convert *_KEY_UNWRAP
Diffstat (limited to 'ncr.h')
-rw-r--r-- | ncr.h | 26 |
1 files changed, 8 insertions, 18 deletions
@@ -229,27 +229,17 @@ struct ncr_key_wrap { __NL_ATTRIBUTES; }; -struct ncr_key_wrap_st { - ncr_wrap_algorithm_t algorithm; - - /* when unwrapping the algorithm of the wrapped key. - * For symmetric ciphers AES would do. - */ - ncr_algorithm_t wrapped_key_algorithm; - unsigned int wrapped_key_flags; /* flags for the newly unwrapped key */ - - ncr_key_t keytowrap; - - ncr_key_t key; - struct ncr_key_params_st params; - - void __user * io; /* encrypted keytowrap */ - /* this will be updated by the actual size on wrap */ - __kernel_size_t io_size; +struct ncr_key_unwrap { + __u32 input_size, output_size; + ncr_key_t wrapping_key; + ncr_key_t dest_key; + const void __user *data; + __u32 data_size; + __NL_ATTRIBUTES; }; #define NCRIO_KEY_WRAP _IOWR('c', 250, struct ncr_key_wrap) -#define NCRIO_KEY_UNWRAP _IOR ('c', 251, struct ncr_key_wrap_st) +#define NCRIO_KEY_UNWRAP _IOWR('c', 251, struct ncr_key_unwrap) /* Internal ops */ struct ncr_master_key_st { |