aboutsummaryrefslogtreecommitdiff
path: root/projects/hsm/hsm.c
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2018-02-26 16:06:42 -0500
committerPaul Selkirk <paul@psgd.org>2018-04-19 18:50:32 -0400
commitaf127e807008b2153d597e756ff26da69daf9e45 (patch)
tree6bab36ce01ffbbafa0e9d19f5bfd07e2471f58e6 /projects/hsm/hsm.c
parent33ac5751d8e56b8cbec0cc5ac41a18f2692e4bf9 (diff)
Implement hash-based signatures, per draft-mcgrew-hash-sigs-08.txt
Diffstat (limited to 'projects/hsm/hsm.c')
-rw-r--r--projects/hsm/hsm.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/projects/hsm/hsm.c b/projects/hsm/hsm.c
index f20ee64..d971f14 100644
--- a/projects/hsm/hsm.c
+++ b/projects/hsm/hsm.c
@@ -90,18 +90,11 @@ static uint8_t busy_stack[BUSY_STACK_SIZE];
#endif
static uint8_t cli_stack[CLI_STACK_SIZE];
-#ifndef MAX_PKT_SIZE
-/* An arbitrary number, more or less driven by the 4096-bit RSA
- * keygen test.
- */
-#define MAX_PKT_SIZE 4096
-#endif
-
/* RPC buffers. For each active request, there will be two - input and output.
*/
typedef struct rpc_buffer_s {
size_t len;
- uint8_t buf[MAX_PKT_SIZE];
+ uint8_t buf[HAL_RPC_MAX_PKT_SIZE];
struct rpc_buffer_s *next; /* for ibuf queue linking */
} rpc_buffer_t;