aboutsummaryrefslogtreecommitdiff
path: root/ks.h
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2018-04-14 14:10:45 -0400
committerRob Austein <sra@hactrn.net>2018-04-14 14:10:45 -0400
commit0d17fd984e6ed486d6cd622edee226e263aab510 (patch)
tree3e88c9e1a69d73e57231b357cf1547e46d2a8a64 /ks.h
parentd8f5f37c2dffab9083fa4c3a89032fabb100f627 (diff)
Clean up definition of HAL_KS_WRAPPED_KEYSIZE.
Diffstat (limited to 'ks.h')
-rw-r--r--ks.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ks.h b/ks.h
index ae1ba1c..559e46f 100644
--- a/ks.h
+++ b/ks.h
@@ -49,6 +49,10 @@
#define HAL_KS_BLOCK_SIZE (4096 * 2)
#endif
+#if HAL_KS_WRAPPED_KEYSIZE + 8 > HAL_KS_BLOCK_SIZE
+#warning HAL_KS_WRAPPED_KEYSIZE is too big for to fit in a keystore block
+#endif
+
/*
* PIN block gets the all-zeros UUID, which will never be returned by
* the UUID generation code (by definition -- it's not a version 4 UUID).