You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think we should consider using keyed Blake instead of prepend the tag. It would be as simply as replacing the nil in the Blake2s instantiation with the H3Tag.
@nikkolasg It would simplify a bit the code and also, keyed hash functions are there exactly for this usecase, no?
The text was updated successfully, but these errors were encountered:
I'd like to have the possibility to run any hash function and methods we want, extract this bit into a generic or something or config, so we can change it - it's already an issue here #29
Here's blake2s but if we want to use this in a solidity context, I think we might want to go back to like sha256 or keccak and keep the simple "tags" to differentiate the "hash functions" as in the paper.
Maybe something like
Currently we prepend a fixed tag to our mesages when we are hashing data:
kyber/encrypt/ibe/ibe.go
Lines 132 to 138 in a780ab2
I think we should consider using keyed Blake instead of prepend the tag. It would be as simply as replacing the
nil
in the Blake2s instantiation with theH3Tag
.@nikkolasg It would simplify a bit the code and also, keyed hash functions are there exactly for this usecase, no?
The text was updated successfully, but these errors were encountered: