summaryrefslogtreecommitdiffstats
path: root/ncr-key.c
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-07-24 01:51:43 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-07-24 04:21:44 +0200
commit442669bac9acde432d01d423a3fd1dd2c7a27fd7 (patch)
tree29bdcfa7df5191bbd2d210c5ea48b5b6a63bb920 /ncr-key.c
parent25b214ce62127133c2bca50df073475d754a81cd (diff)
downloadcryptodev-linux-442669bac9acde432d01d423a3fd1dd2c7a27fd7.tar.gz
cryptodev-linux-442669bac9acde432d01d423a3fd1dd2c7a27fd7.tar.xz
cryptodev-linux-442669bac9acde432d01d423a3fd1dd2c7a27fd7.zip
Use algo_properties_st in ncr_pk_generate
Diffstat (limited to 'ncr-key.c')
-rw-r--r--ncr-key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ncr-key.c b/ncr-key.c
index 82a3818..db5d458 100644
--- a/ncr-key.c
+++ b/ncr-key.c
@@ -544,7 +544,7 @@ int ret;
public->flags |= (NCR_KEY_FLAG_EXPORTABLE|NCR_KEY_FLAG_WRAPPABLE);
if (public->type == NCR_KEY_TYPE_PUBLIC) {
- ret = ncr_pk_generate(gen.params.algorithm, &gen.params, private, public);
+ ret = ncr_pk_generate(public->algorithm, &gen.params, private, public);
if (ret < 0) {
err();
goto fail;