concept hardware in category cryptography

appears as: hardware, hardware
Real-World Cryptography

This is an excerpt from Manning's book Real-World Cryptography.

Often, real-world cryptographic algorithms are compared with the security, size and speed they provide. We’ve already talked about the security of AES (depending on the key it can provide 128-bit, 192-bit or 256-bit of security), and the fact that it is an 128-bit block cipher. Speed-wise: AES has been implemented in hardware by many CPU vendors: AES-New Instructions (AES-NI) is a set of instruction implemented by Intel and AMD CPUs that can be used to encrypt and decrypt with AES. These special instructions make AES extremely fast in practice.

  • Hardware Attacks. By default, cryptography on hardware is helpless against the threat of physical attacks. Imagine the following scenario: you leave your phone or laptop unattended in your hotel room; a malicious maid comes, opens the device, uses a low-budget off-the-shelf tool to modify the system, and then leaves the device appearing untouched where it was found before you get back to your room. Maybe he copied or changed the content of your memory (perhaps even rolling it back to a previous state), or he replaced some of the hardware, or he installed components capable of man-in-the-middle’ing some of the hardware, etc. This is known as an evil maid attack in the literature and can be generalized to many situations (carrying devices in check-in luggages while flying, storing sensitive keys in an insecure data center, and so forth). More complex and more expensive hardware attacks exist. For example hardware certification labs will often use the same tools that chip manufacturers themselves use to debug their chips. Lasers can be shot on targetted places to force a computation to produce an erroneous value (so-called fault attacks), chips can be opened up to reveal their parts, focused ion beam (FIB) microscopes can be used to reverse-engineer components. The sky’s the limit and it is very hard to protect against such motivated attackers.