Take the 2-minute tour ×
Cryptography Stack Exchange is a question and answer site for software developers, mathematicians and others interested in cryptography. It's 100% free, no registration required.

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
2  
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 at 12:49

1 Answer 1

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
2  
I would add that we are talking about secure PRFs and secure MACs. –  Dmitry Khovratovich Jul 3 at 12:47

Your Answer

 
discard

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.