aboutsummaryrefslogtreecommitdiff
path: root/cryptech.h
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-05-21 00:17:33 -0400
committerRob Austein <sra@hactrn.net>2015-05-21 00:17:33 -0400
commite2de6b1f6d220fc2481b19bd1ed203b493d2db18 (patch)
tree47135c32d1586d53812d12419db691330b92ff32 /cryptech.h
parent6d805ea76b2b8556b25ec846fada6f3c0b7f71f6 (diff)
Copy Joachim's EIM timeout change, make timeout configurable at
compile time. Detect not-multiple-of-four-byte errors before they trigger an infinite loop. Remove printfs() that don't belong in library code, along with an unnecessary malloc(). Other minor cleanup.
Diffstat (limited to 'cryptech.h')
-rw-r--r--cryptech.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cryptech.h b/cryptech.h
index dce2b8b..8218aa2 100644
--- a/cryptech.h
+++ b/cryptech.h
@@ -436,6 +436,7 @@ typedef enum {
HAL_ERROR_IO_TIMEOUT, /* I/O with FPGA timed out */
HAL_ERROR_IO_UNEXPECTED, /* Unexpected response from FPGA */
HAL_ERROR_IO_OS_ERROR, /* Operating system error talking to FPGA */
+ HAL_ERROR_IO_BAD_COUNT, /* Bad byte count */
HAL_ERROR_CSPRNG_BROKEN, /* CSPRNG is returning nonsense (perhaps core not present?) */
HAL_ERROR_KEYWRAP_BAD_MAGIC, /* Bad magic number while unwrapping key */
HAL_ERROR_KEYWRAP_BAD_LENGTH, /* Length out of range while unwrapping key */