From e2de6b1f6d220fc2481b19bd1ed203b493d2db18 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Thu, 21 May 2015 00:17:33 -0400 Subject: 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. --- cryptech.h | 1 + 1 file changed, 1 insertion(+) (limited to 'cryptech.h') 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 */ -- cgit v1.2.3