I try to implement cSHAKE.
According to the specification, it needs to use a different rate.
If N = "" and S = "":
return SHAKE128(X, L);
Else:
return KECCAK[256](bytepad(encode_string(N) || encode_string(S), 168) || X || 00, L).
Note that the numbers 168 and 136 are rates (in bytes) of the KECCAK[256] and KECCAK[512] sponge functions, respectively; the characters 00 in the Courier New font in these definitions specify two zero bits.
I try to implement
cSHAKE
. According to the specification,it needs to use a different rate.