Ns 3
Ns 3
Ns 3
▪ MesAuthentication Codes
▪ MAC requirements and security
▪ MACs based on Hash Functions
▪ MACs based on Block sage Ciphers
Message Authentication
▪ Message authentication is a procedure to verify that received
message came from the genuine source and has not been altered.
▪ Message authentication may also verify sequencing and
timeliness.
▪ Message authentication is a mechanism or service used to verify
the integrity of a message.
▪ Message authentication assures that data received are exactly
same as sent (i.e., message contains no modification, no insertion,
no deletion, or no replay).
M E D M
K K
(a) Symmetric encryption : confidentiality and authentication
M E D M
PUb PRb
PRa PUa
M E E D D M
P1 P2 PN
IV CN-1
K K K
Encrypt Encrypt … Encrypt
C1 C2 CN
INS is very Interesting Subject
Unit-6 Message Authentication Codes Darshan Institute of Engineering & Technology 18
Data Authentication Algorithm (DAA)
Time = 1 Time = 2 Time = N
D1
D2 DN
(64 bits)
O1
O2 ON
(64 bits)
b K1
k
K Encrypt K Encrypt K Encrypt
MSB(Tlen)
(a) Message length is integer multiple of block size T
M1 M2 … Mn 10..0
K2
MSB(Tlen)
(b) Message length is not integer multiple of block size T
INS is very Interesting Subject
Unit-6 Message Authentication Codes Darshan Institute of Engineering & Technology 25
Cipher-Based Message Authentication Code (CMAC)