Cryptography Stack Exchange is a question and answer site for software developers, mathematicians and others interested in cryptography. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I remember I read that a MAC can be considered as a PRF.

Can a variable-length input keyed-PRF be considered as a MAC?

share|improve this question
I'd note that the first statement is incorrect: a secure MAC is not necessarily a secure PRF. Consider any secure MAC and add a single zero bit in the end. The result is clearly not random, but equally secure as a MAC. – Dmitry Khovratovich Jul 3 '14 at 12:49

Usually. $\:$ A variable-length input keyed-PRF is a [PRF's output length]-bit MAC.
In particular, a variable-length input keyed-PRF with long output is automatically a MAC.

share|improve this answer
I would add that we are talking about secure PRFs and secure MACs. – Dmitry Khovratovich Jul 3 '14 at 12:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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