summaryrefslogtreecommitdiff
path: root/examples/fips_validation/fips_validation_tdes.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/fips_validation/fips_validation_tdes.c')
-rw-r--r--examples/fips_validation/fips_validation_tdes.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/fips_validation/fips_validation_tdes.c b/examples/fips_validation/fips_validation_tdes.c
index 15ee434..2b262c9 100644
--- a/examples/fips_validation/fips_validation_tdes.c
+++ b/examples/fips_validation/fips_validation_tdes.c
@@ -212,6 +212,8 @@ writeback_tdes_hex_str(const char *key, char *dst, struct fips_val *val)
tmp_val.val = val->val + 8;
else if (strstr(key, KEY3_STR))
tmp_val.val = val->val + 16;
+ else
+ return -EINVAL;
return writeback_hex_str(key, dst, &tmp_val);
}