Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Message authentication code, HMAC, authenticated encryption, AEAD?

Dikenal juga sebagai: message authentication code · HMAC · authenticated encryption · AEAD

Definition 27.10 University Computer Science — Year 3 · Bab 27 — Symmetric Cryptography and Hash Functions

A message authentication code (MAC) computes, from a key and a message, a tag that no one without the key can compute for a new message, even after seeing the tags of messages of its choice. HMAC is the MAC of RFC 2104 built from a hash function HH with blocks of BB bytes: HMAC(K,m)=H((K⊕opad) ∥ H((K⊕ipad) ∥ m))\mathrm{HMAC}(K, m) = H\bigl((K \oplus \mathit{opad}) \,\|\, H((K \oplus \mathit{ipad}) \,\|\, m)\bigr), where the key is padded with zeros to BB bytes and ipad\mathit{ipad}, opad\mathit{opad} are the bytes 0x36 and 0x5C repeated BB times. Authenticated encryption gives both secrecy and integrity: the receiver either gets the plaintext or learns that the ciphertext was changed. AEAD (authenticated encryption with associated data) also authenticates data sent in the clear, such as a header.

An Enigma I, the military model, in the Museo della Scienza e della Tecnologia, Milan (photograph by Alessandro Nassiri, 2012, CC BY-SA 4.0). The machine was invented by the German engineer Arthur Scherbius at the end of the First World War; its rotors scramble the 26 letters anew at each key press.
An Enigma I, the military model, in the Museo della Scienza e della Tecnologia, Milan (photograph by Alessandro Nassiri, 2012, CC BY-SA 4.0). The machine was invented by the German engineer Arthur Scherbius at the end of the First World War; its rotors scramble the 26 letters anew at each key press.
Baca dalam konteks →