aboutsummaryrefslogtreecommitdiff
path: root/ks.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-03-11 19:24:00 -0500
committerRob Austein <sra@hactrn.net>2016-03-11 19:24:00 -0500
commit7e4d5d73cf1fdcbee10a06a307529955ad17919e (patch)
tree97a635c28724e4eacccc555f0bac027fd350f97c /ks.c
parent0b8820c33421d5c23022af326ada1815fb5c742d (diff)
First round of debugging based on RPC pkey tests: mostly ASN.1
silliness, with a bit of PKCS #1.5 padding silliness for desert.
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;