crypto/shachain: detect if we're inserting a bogus hash.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 25 May 2015 05:41:56 +0000 (15:11 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 25 May 2015 05:41:56 +0000 (15:11 +0930)
commit9fc07111603c6e892ed768f900465282314b2982
tree752e8fc411ef80eba49fa50c6770cdcb1bc6a288
parent954082d1b37e2e0be7816f53255965a99dd1b2ee
crypto/shachain: detect if we're inserting a bogus hash.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/crypto/shachain/shachain.c
ccan/crypto/shachain/shachain.h
ccan/crypto/shachain/test/run-8bit.c
ccan/crypto/shachain/test/run-badhash.c [new file with mode: 0644]
ccan/crypto/shachain/test/run.c