> > On Apr 20, 2014, at 7:49 PM, YAMAMOTO Takashi <yamam...@valinux.co.jp> wrote: > >>> + hash = mhash_finish(hash, 13); /* No need to match byte length >>> here. */ >> >> is it worth being special? >> > > I知 not exactly sure what you ask here, but in general, the length parameter > is used to distinguish between inputs that would otherwise seem the same > after being padded to 32-bit length for mash_add(). This is not a concern > here, so the actual value of the second parameter to mhash_finish() is > inconsequential.
i wonder if it's worth to depend on the hash algo details as it doesn't seem to cost much to provide the correct byte length. YAMAMOTO Takashi > >> YAMAMOTO Takashi > > Jarno > _______________________________________________ > dev mailing list > dev@openvswitch.org > http://openvswitch.org/mailman/listinfo/dev _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev