As for my use case need, I implemented SipHash in Cpp. I want to include this in the p4c such that the new programs written can access the SipHash algorithm directly, if wanted. The problem is, I registered the Hash in
register_hash function in
calculations.cpp. I made relevant changes in the p4c frontends, backends and in the behavioral-model folder. Even after updating the binaries of
p4c-bm2-ss, I’m still unable to access the hash algorithm I implemented, and it throws the error unexpected algorithm. If any one of you has worked on implementing a hash function/algorithm, please guide me through the process so that it can be useful to the community too. If everything goes well and right, this siphash algorithm could be our contribution to the community too.
If anyone of you are keen, then we can follow up for further details.
Thanks in advance.