This question already has an answer here:

Can someone tell me in laymens terms what this is?

$$K_i = \mathrm{Hash}(Z \| \mathit{Counter} \| [\mathit{SharedInfo}])$$

What do the double pipes represent?


marked as duplicate by yyyyyyy, Maarten Bodewes, tylo, e-sushi Sep 20 '17 at 16:24

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


It means concatenation. Z, Counter, and SharedInfo are three bitstrings which are to be concatenated before hashing. The [ ] around SharedInfo means it may be absent in which case you would use an empty string instead. (Since concatenating an empty string to the end yields the same result as not concatenating anything.)


Not the answer you're looking for? Browse other questions tagged or ask your own question.