You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
- 1$\begingroup$ What is the purpose of interleaving, rather than concatenating the bits? And what properties do you believe this combination would have that others do not? $\endgroup$otus– otus2016-01-16 08:30:19 +00:00Commented Jan 16, 2016 at 8:30
- $\begingroup$ Interleaving the hash outputs to make the HMAC key means that each HMAC depends on bits from every hash algorithm, while concatenation would end up with each HMAC just being $HMAC_{H_n}(H_n(x), x)$. If the key depends on all the base hash functions, forging any single element of the final concatenation of HMACs should require breaking all the base hash functions (or at least the bits of each hash used for that key). $\endgroup$Extrarius– Extrarius2016-01-16 22:32:51 +00:00Commented Jan 16, 2016 at 22:32
- $\begingroup$ With your equation that uses full $K$ for each HMAC, concatenation would work just as well – I missed the part where you said one could drop some of the bits. By "what properties", I meant what you think the collision resistance, preimage resistances etc. would be here. $\endgroup$otus– otus2016-01-17 10:04:01 +00:00Commented Jan 17, 2016 at 10:04
- $\begingroup$ I would expect collision resistance at least as good as the strongest hash (as for just concating the base hashes, since HMAC is ultimately the output of a call to the base hash). I would expect similar properties for preimage resistance, since each part of the final output depends not only on the data but also a pseudo-random key derived from all the base hashes. Unlike simple hashes, finding a preimage for one of the base hashes still doesn't let you use that string to generate the other HMACs without the key, so you can't use the others to select among the possible preimages. $\endgroup$Extrarius– Extrarius2016-01-17 19:32:45 +00:00Commented Jan 17, 2016 at 19:32
Add a comment |
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
- MathJax equations
$\sin^2 \theta$
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. public-key), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you