diff options
author | Miloslav Trmač <mitr@redhat.com> | 2010-07-24 01:31:44 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2010-07-24 01:32:21 +0200 |
commit | 9ea8ffaa934b50ced391817ce2e11527f5426f22 (patch) | |
tree | 1444f4d02a65c97116774b311a6938b9159ffe07 /ncr_int.h | |
parent | 9ea47f5b396bb1e767d4a231bc7166efd3dffd3e (diff) | |
download | cryptodev-linux-9ea8ffaa934b50ced391817ce2e11527f5426f22.tar.gz cryptodev-linux-9ea8ffaa934b50ced391817ce2e11527f5426f22.tar.xz cryptodev-linux-9ea8ffaa934b50ced391817ce2e11527f5426f22.zip |
Replace ncr_algoritm_to_key_type by a struct member
Also handle some algorithms missing in the function.
Diffstat (limited to 'ncr_int.h')
-rw-r--r-- | ncr_int.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -20,6 +20,10 @@ struct algo_properties_st { unsigned can_encrypt:1; unsigned is_symmetric:1; int digest_size; + /* NCR_KEY_TYPE_SECRET if for a secret key algorithm or MAC, + * NCR_KEY_TYPE_PUBLIC for a public key algorithm. + */ + ncr_key_type_t key_type; }; struct session_item_st { @@ -154,8 +158,6 @@ int ncr_limits_add_and_check(uid_t uid, pid_t pid, limits_type_t type); void ncr_limits_init(void); void ncr_limits_deinit(void); -ncr_key_type_t ncr_algorithm_to_key_type(const struct algo_properties_st *algo); - int ncr_key_wrap(struct list_sem_st* keys, struct list_sem_st* data, void __user* arg); int ncr_key_unwrap(struct list_sem_st*, struct list_sem_st* data, void __user* arg); int ncr_key_storage_wrap(struct list_sem_st* key_lst, struct list_sem_st* data_lst, void __user* arg); |