summaryrefslogtreecommitdiffstats
path: root/ncr_int.h
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-07-24 01:17:09 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-07-24 01:17:09 +0200
commit7188e485061fc6bbad9075333a289941f38a131e (patch)
treece3483cfb3f82d2a88aa8201822fda76bdf64ddb /ncr_int.h
parentb418f699a667ec34ee86f887b8e08e0c88a803d8 (diff)
downloadcryptodev-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ncr_int.h b/ncr_int.h
index bb83c6c..47eb419 100644
--- a/ncr_int.h
+++ b/ncr_int.h
@@ -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);