Search code examples
algorithmnotation

unknown notation |Z|


I was reading a PDF about SHA-3 but on this page I was confronted to a notation that I don't undertand.

It's |Z| on step 9. I thought that was the length of the String Z but but in this case it would be written len(Z). Different notations were explained on this page but |Z| does not figure.

The line in question :

If d≤|Z|, then return Truncd(Z); else continue.

with d a nonnegative integer and Z a string

Thanks


Solution

  • Take a look here https://keccak.team/files/SpongeDuplex.pdf
    On page 3, section Sequrity requirements, given such explanation:
    "|x| is the bitlength of string x"
    Think it should be this value.