Exercise 4.7
Last updated
Last updated
Let be a pseudorandom function. Show that each of the following MACs is insecure, even if used to authenticate fixed-length messages. (In each case Gen outputs a uniform . Let denote an -bit encoding of the integer .)
To authenticate a message where , compute .
To authenticate a message where , compute .
To authenticate a message where , choose uniform , compute , and let the tag be
Reorder the blocks in and the tag doesn't change.
Query
, tag
, tag
, tag
Thus , tag .
Let . When choosing , .
Thus will be a valid tag for .