aboutsummaryrefslogtreecommitdiff
path: root/ks.c
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2016-03-21 23:04:59 -0400
committerPaul Selkirk <paul@psgd.org>2016-03-21 23:04:59 -0400
commit01f5452659c34e5232bcb534e14e45b0c430047e (patch)
treebeff8a4f0bfadf551517063aa7f91cff6673e433 /ks.c
parentcdaf07d30bd440cf3ee2f6615d044634734047bd (diff)
parentcf04c6c34994f545cbf509a6de4aed096e48aa61 (diff)
Merge branch 'master' into rpc
Diffstat (limited to 'ks.c')
-rw-r--r--ks.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ks.c b/ks.c
index a856bbf..d1ce089 100644
--- a/ks.c
+++ b/ks.c
@@ -93,6 +93,7 @@ hal_error_t hal_ks_store(const hal_key_type_t type,
hal_ks_key_t k;
memset(&k, 0, sizeof(k));
+ k.der_len = sizeof(k.der);
uint8_t kek[KEK_LENGTH];
size_t kek_len;