ext/digest/kangarootwelve/XKCP/lib/high/KangarooTwelve/KangarooTwelve.h in digest-kangarootwelve-0.4.6 vs ext/digest/kangarootwelve/XKCP/lib/high/KangarooTwelve/KangarooTwelve.h in digest-kangarootwelve-0.4.7

- old
+ new

@@ -2,11 +2,11 @@ The eXtended Keccak Code Package (XKCP) https://github.com/XKCP/XKCP KangarooTwelve, designed by Guido Bertoni, Joan Daemen, Michaël Peeters, Gilles Van Assche, Ronny Van Keer and Benoît Viguier. -Implementation by Ronny Van Keer, hereby denoted as "the implementer". +Implementation by Gilles Van Assche and Ronny Van Keer, hereby denoted as "the implementer". For more information, feedback or questions, please refer to the Keccak Team website: https://keccak.team/ To the extent possible under law, the implementer has waived all copyright @@ -20,18 +20,18 @@ #include "config.h" #ifdef XKCP_has_KeccakP1600 #include <stddef.h> #include "align.h" -#include "KeccakSponge.h" +#include "TurboSHAKE.h" #include "Phases.h" typedef KCP_Phases KangarooTwelve_Phases; typedef struct { - KeccakWidth1600_12rounds_SpongeInstance queueNode; - KeccakWidth1600_12rounds_SpongeInstance finalNode; + TurboSHAKE_Instance queueNode; + TurboSHAKE_Instance finalNode; size_t fixedOutputLength; size_t blockNumber; unsigned int queueAbsorbedLen; KangarooTwelve_Phases phase; } KangarooTwelve_Instance; @@ -43,10 +43,10 @@ * @param outputByteLen The desired number of output bytes. * @param customization Pointer to the customization string (C). * @param customByteLen The length of the customization string in bytes. * @return 0 if successful, 1 otherwise. */ -int KangarooTwelve(const unsigned char *input, size_t inputByteLen, unsigned char *output, size_t outputByteLen, const unsigned char *customization, size_t customByteLen ); +int KangarooTwelve(const unsigned char *input, size_t inputByteLen, unsigned char *output, size_t outputByteLen, const unsigned char *customization, size_t customByteLen); /** * Function to initialize a KangarooTwelve instance. * @param ktInstance Pointer to the instance to be initialized. * @param outputByteLen The desired number of output bytes,