summaryrefslogtreecommitdiffstats
path: root/userspace/ncrypto_key.c
diff options
context:
space:
mode:
Diffstat (limited to 'userspace/ncrypto_key.c')
-rw-r--r--userspace/ncrypto_key.c4
1 files changed, 2 insertions, 2 deletions
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;
}