summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ncr-key.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ncr-key.c b/ncr-key.c
index 9e67b5246a7..db443cb7b16 100644
--- a/ncr-key.c
+++ b/ncr-key.c
@@ -459,8 +459,7 @@ size_t size;
}
item->type = algo->key_type;
if (item->type == NCR_KEY_TYPE_SECRET) {
- /* arbitrary */
- item->algorithm = _ncr_algo_to_properties(NCR_ALG_AES_CBC);
+ item->algorithm = algo;
size = gen.params.params.secret.bits/8;
if ((gen.params.params.secret.bits % 8 != 0) ||