diff options
author | Miloslav Trmač <mitr@redhat.com> | 2010-07-24 01:17:09 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2010-07-24 01:17:09 +0200 |
commit | 7188e485061fc6bbad9075333a289941f38a131e (patch) | |
tree | ce3483cfb3f82d2a88aa8201822fda76bdf64ddb /ncr_int.h | |
parent | b418f699a667ec34ee86f887b8e08e0c88a803d8 (diff) | |
download | cryptodev-linux-7188e485061fc6bbad9075333a289941f38a131e.tar.gz cryptodev-linux-7188e485061fc6bbad9075333a289941f38a131e.tar.xz cryptodev-linux-7188e485061fc6bbad9075333a289941f38a131e.zip |
Use algo_properties_st in key_item_st
Diffstat (limited to 'ncr_int.h')
-rw-r--r-- | ncr_int.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -68,7 +68,7 @@ struct key_item_st { */ ncr_key_type_t type; unsigned int flags; - ncr_algorithm_t algorithm; /* valid for public/private keys */ + const struct algo_properties_st *algorithm; /* non-NULL for public/private keys */ uint8_t key_id[MAX_KEY_ID_SIZE]; size_t key_id_size; @@ -203,6 +203,7 @@ inline static unsigned int data_flags_to_key(unsigned int data_flags) return flags; } +const struct algo_properties_st *_ncr_algo_to_properties(ncr_algorithm_t algo); const char* _ncr_algo_to_str(ncr_algorithm_t algo); int _ncr_algo_digest_size(ncr_algorithm_t algo); int ncr_key_params_get_sign_hash(ncr_algorithm_t algo, struct ncr_key_params_st * params); |