From fcd949ca7895a3b35dab57ee8e5b793dbe47d4f1 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 11 Feb 2014 09:47:07 +0100 Subject: c version: make the state accessible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- c/sha3.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'c/sha3.c') diff --git a/c/sha3.c b/c/sha3.c index 5ac3144..6c35267 100644 --- a/c/sha3.c +++ b/c/sha3.c @@ -842,3 +842,14 @@ extern byte* sha3_squeeze(void) return rc; } + +/** + * Retrieve the state of the Keccak sponge + * + * @return A 25-element array with the state, changes will be applied to the sponge + */ +extern llong* sha3_state(void) +{ + return S; +} + -- cgit v1.2.3-70-g09d2