Reputation: 43
I have program for a hash function:
H(a || b || g || y1 || y2)
where a,b,g,y1,and y2 are inputs. Can anybody tell me what to do with these inputs if I am using SHA-2
as my hash function? does this mean I have to either concatenate all the inputs, do the OR operation, or something else??
Upvotes: 0
Views: 194
Reputation: 2240
You can xor them, if these inputs are numbers, or concatenate them using sentinels, if they are strings.
Upvotes: 1