Symmetric Algorithms: Advanced Encryption Standard (Aes)
Symmetric Algorithms: Advanced Encryption Standard (Aes)
ADVANCED ENCRYPTION
STANDARD (AES)
Group 5
OVERVIEW OF SYMMETRIC
ENCRYPTION
Symmetric encryption (also called private-key encryption or
secret-key encryption) involves using the same key for
encryption and decryption.
AES has a fixed block size of 128 bits and a key size of
128, 192, or 256 bits, whereas Rijndael can be specified
with block and key sizes in any multiple of 32 bits, with
a minimum of 128 bits. The blocksize has a maximum of
256 bits, but the keysize has no theoretical maximum.
AES operates on a 4×4 array of bytes, termed the state
(versions of Rijndael with a larger block size have
additional columns in the state). Most AES calculations
are done in a special finite field.
DESCRIPTION(CONT’)
The AES cipher is specified as a number of repetitions of
transformation rounds that convert the input plaintext
into the final output of ciphertext. Each round consists of
several processing steps, including one that depends on
the encryption key. A set of reverse rounds are applied to
transform ciphertext back into the original plaintext
using the same encryption key.
ALGORITHM
11010100
XOR 11111111
= 00101011 (Hex 2B)
RESULT: 0010111
DURING EACH ROUND, THE
FOLLOWING OPERATIONS ARE APPLIED
ON THE STATE:
1. ShiftRow: every row in the 4x4 array is shifted a
certain amount to the left
2. AddRoundKey: each byte of the state is combined
with a round key, which is a different key for each
round and derived from the Rijndael key schedule
3. SubBytes: every byte in the state is 1. replaced by
another one, using the Rijndael S-Box
4. MixColumn: a linear transformation on the columns of
the state
ADD ROUND KEY
THE SHIFTROW OPERATION:
SHIFTED
| a0,0 | a0,1 | a0,2 | a0,3 | | a0,0 | a0,1 | a0,2 | a0,3 |
| a1,0 | a1,1 | a1,2 | a1,3 | -> | a1,1 | a0,2 | a1,3 | a1,0 |
| a2,0 | a2,1 | a2,2 | a2,3 | | a2,2 | a2,3 | a2,0 | a2,1 |
| a3,0 | a3,1 | a3,2 | a3,3 | | a3,3 | a3,0 | a3,1 | a3,2 |
KEY: 000102030405060708090a0b0c0d0e0f
CIPHER (ENCRYPT):
HAPPY BIRTHDAY BHEM…
.