summaryrefslogtreecommitdiffstats
path: root/ncr-pk.h
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-07-24 01:41:00 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-07-24 02:06:22 +0200
commit785cc374c65b2e206db4e38d686dfede50fdb9f5 (patch)
treeba98676f8b2b51638854d5d4dda0cdaf38882eaa /ncr-pk.h
parent9ea8ffaa934b50ced391817ce2e11527f5426f22 (diff)
downloadcryptodev-linux-785cc374c65b2e206db4e38d686dfede50fdb9f5.tar.gz
cryptodev-linux-785cc374c65b2e206db4e38d686dfede50fdb9f5.tar.xz
cryptodev-linux-785cc374c65b2e206db4e38d686dfede50fdb9f5.zip
Use algo_properties_st in ncr_pk_ctx.algorithm
Diffstat (limited to 'ncr-pk.h')
-rw-r--r--ncr-pk.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ncr-pk.h b/ncr-pk.h
index 1180017..0bf2745 100644
--- a/ncr-pk.h
+++ b/ncr-pk.h
@@ -4,7 +4,7 @@
#include <tomcrypt.h>
struct ncr_pk_ctx {
- ncr_algorithm_t algorithm; /* algorithm */
+ const struct algo_properties_st *algorithm; /* algorithm */
ncr_algorithm_t sign_hash; /* for verification */
@@ -30,7 +30,7 @@ int ncr_pk_queue_init(void);
void ncr_pk_queue_deinit(void);
/* encryption/decryption */
-int ncr_pk_cipher_init(ncr_algorithm_t algo,
+int ncr_pk_cipher_init(const struct algo_properties_st *algo,
struct ncr_pk_ctx* ctx, struct ncr_key_params_st* params,
struct key_item_st *key);
void ncr_pk_cipher_deinit(struct ncr_pk_ctx* ctx);