diff options
author | Rob Austein <sra@hactrn.net> | 2015-05-21 00:17:33 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2015-05-21 00:17:33 -0400 |
commit | e2de6b1f6d220fc2481b19bd1ed203b493d2db18 (patch) | |
tree | 47135c32d1586d53812d12419db691330b92ff32 /cryptech.h | |
parent | 6d805ea76b2b8556b25ec846fada6f3c0b7f71f6 (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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 */ |