From 225e02302742657db0d5154e1fbfd558698e557c Mon Sep 17 00:00:00 2001 From: Jan Chadima Date: Thu, 5 Aug 2010 16:17:26 +0200 Subject: Userspace library updates from Jan --- userspace/ncrypto_key.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'userspace/ncrypto_key.c') diff --git a/userspace/ncrypto_key.c b/userspace/ncrypto_key.c index ca4cfeb..b5f2c92 100644 --- a/userspace/ncrypto_key.c +++ b/userspace/ncrypto_key.c @@ -243,7 +243,7 @@ ncr_key_wrap(ncr_key_t key, ncr_wrap_algorithm_t algorithm, ncr_key_params_t par struct ncr_key_wrap_st io; memset(&io, 0, sizeof(io)); - if (!key || !keytowrap || !idata || !idata_size || (algorithm == NCR_ALG_NONE)) { + if (!key || !keytowrap || !idata || !idata_size) { errno = EINVAL; return -1; } @@ -273,7 +273,7 @@ ncr_key_unwrap(ncr_key_t key, ncr_wrap_algorithm_t algorithm, ncr_key_params_t p struct ncr_key_wrap_st io; memset(&io, 0, sizeof(io)); - if (!key || !keytowrap || !idata || !idata_size || (algorithm == NCR_ALG_NONE)) { + if (!key || !keytowrap || !idata || !idata_size) { errno = EINVAL; return -1; } -- cgit