From 488cdee5e7e9b23cf7bfee78e47e070489c6ca20 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sun, 20 Dec 2015 15:15:11 -0500 Subject: When allocating a crypto_digest_t, allocate no more bytes than needed Previously we would allocate as many bytes as we'd need for a keccak--even when we were only calculating SHA1. Closes ticket 17796. --- changes/feature17796 | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 changes/feature17796 (limited to 'changes') diff --git a/changes/feature17796 b/changes/feature17796 new file mode 100644 index 0000000000..d96daed262 --- /dev/null +++ b/changes/feature17796 @@ -0,0 +1,6 @@ + o Minor features (crypto): + - When allocating a digest state object, allocate no more space than we + actually need. Previously, we were allocating as much space as the + state for the largest algorithm would need. This change saves up to + 672 bytes per circuit. Closes ticket 17796. + -- cgit v1.2.3-54-g00ecf