1. Alice creates message m, concatenates s with m to create m + s, and calculates the hash H(m + s) (for example with SHA-1). H(m + s) is called the message authentication code (MAC).
2. Alice then appends the MAC to the message m, creating an extended message (m, H(m + s)), and sends the extended message to Bob.
3. Bob receives an extended message (m, h) and knowing s, calculates the MAC H(m + s). If H(m + s) = h, Bob concludes that everything is fine.
1 . อลิซจะสร้างข้อความ M , concatenates S กับ M เพื่อสร้าง M + S , และคำนวณกัญชา H ( M + S ) ( ตัวอย่าง กับ sha-1 ) H ( M + S ) เรียกว่าข้อความการตรวจสอบรหัส ( Mac )2 . อลิซแล้วต่อท้าย Mac กับจดหมาย M , การขยายข้อความ ( M , H ( M + S ) และจะขยายข้อความ บ๊อบ3 . บ๊อบได้รับการขยายข้อความ ( M , H ) และทราบ s , คำนวณ Mac H ( M + S ) ถ้า H ( M + S ) = H , บ๊อบ สรุปว่าทุกอย่างโอเค
การแปล กรุณารอสักครู่..
