0

Need help in making the keccakf function based on endiness in https://github.com/ethereum/solidity/blob/develop/libdevcore/Keccak256.cpp. I have gone through similar functionality at https://github.com/stbrumme/hash-library/blob/master/keccak.cpp. but unable to re write keccakf function in Keccak256.cpp. Any help on this would be very helpfull

  • I think you need to modify the xorin which executes dst[i] ^= src[i] to something like dst[i] ^= swap(src[i]) – Ismael Jun 21 '19 at 5:17
  • @Ismael thanks for the input.but It didn't work. – Ravi _SS Jun 21 '19 at 6:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.