summaryrefslogtreecommitdiffstats
path: root/ncr-pk.h
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-08-12 18:44:36 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-08-24 22:56:23 +0200
commitb327f41fefe390d6db4832fe44f3cf37d86514c0 (patch)
tree1067f76eaea1d2e903ef84ecfd5ccb5caf626e8d /ncr-pk.h
parent2c51dc1a549816a34cb78230bf656537ecd21961 (diff)
downloadkernel-crypto-b327f41fefe390d6db4832fe44f3cf37d86514c0.tar.gz
kernel-crypto-b327f41fefe390d6db4832fe44f3cf37d86514c0.tar.xz
kernel-crypto-b327f41fefe390d6db4832fe44f3cf37d86514c0.zip
Convert *_KEY_GENERATE_PAIR
Diffstat (limited to 'ncr-pk.h')
-rw-r--r--ncr-pk.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ncr-pk.h b/ncr-pk.h
index 1c8d7208737..722d1eae12b 100644
--- a/ncr-pk.h
+++ b/ncr-pk.h
@@ -3,6 +3,8 @@
#include <tomcrypt.h>
+struct nlattr;
+
struct ncr_pk_ctx {
const struct algo_properties_st *algorithm; /* algorithm */
@@ -19,8 +21,7 @@ struct ncr_pk_ctx {
/* PK */
void ncr_pk_clear(struct key_item_st* key);
-int ncr_pk_generate(const struct algo_properties_st *algo,
- struct ncr_key_generate_params_st * params,
+int ncr_pk_generate(const struct algo_properties_st *algo, struct nlattr *tb[],
struct key_item_st* private, struct key_item_st* public);
int ncr_pk_pack( const struct key_item_st * key, uint8_t * packed, uint32_t * packed_size);
int ncr_pk_unpack( struct key_item_st * key, const void * packed, size_t packed_size);