From 405a69c0724ec4403f2755ccb1bb257dd87137f3 Mon Sep 17 00:00:00 2001 From: Miloslav Trmač Date: Mon, 26 Jul 2010 19:16:32 +0200 Subject: Don't override the user-specified key algorithm --- ncr-key.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ncr-key.c b/ncr-key.c index 9e67b52..db443cb 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) || -- cgit