diff options
-rw-r--r-- | c/sha3.c | 11 | ||||
-rw-r--r-- | c/sha3.h | 8 |
2 files changed, 19 insertions, 0 deletions
@@ -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; +} + @@ -98,3 +98,11 @@ extern void sha3_fastSqueeze(long times); */ extern byte* sha3_squeeze(void); + +/** + * 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); + |