ScholarQuill logoScholarQuillUniversity Notes
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
Study Tools
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
Contact
ScholarQuill logo
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
ScholarQuill logoScholarQuillUniversity Notes
Study PortalITEC3125Aes
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    ITEC3125

    Cyber Security

    Progress0 / 39 done
    Topics39
    1Fundamental Concepts of Security2Types of Attacks3Social Engineering Attacks4Classification Traits of Malwares5Circulation6Infection7Concealment8Payload Capabilities
    9SQL Injection10Cross Site Scripting11Security Management & Cryptography
    12Cookies13DoS14Man in the Middle15Replay16Developing Security Policy17Deploy and Manage Security Settings18Security Through Design19Security Through Anti Malware20Fundamentals of Cryptography21OSI Reference Model22AES23Standard Network Devices24Network Security Hardware25Firewalls26Types of Firewalls27Spam Filters28Virtual Private Networks29Intrusion Detection and Prevention Study30DNS
    31Network Address Translation (NAT)32Network Access Control (NAC)33Network Protocols34TCP/IP
    35Wireless Network Attacks36Types of Attacks37Mobile Devices Security38Cloud Security Challenges and Solution39IoT Security Challenges
    8 min read
    Topic 22 of 39
    Topic Study Note Illustration
    22

    AES

    AES (Advanced Encryption Standard) is a widely-used symmetric encryption algorithm designed to securely encrypt data. AES is the standard encryption method adopted by the U.S. government and...

    AES (Advanced Encryption Standard)

    AES (Advanced Encryption Standard) is a widely-used symmetric encryption algorithm designed to securely encrypt data. AES is the standard encryption method adopted by the U.S. government and is used globally in various applications, including securing communications, protecting sensitive data, and ensuring confidentiality in online transactions. It replaced the older DES (Data Encryption Standard) due to security weaknesses and performance limitations.


    Key Features of AES

    1. Symmetric Key Encryption:
      AES is a symmetric encryption algorithm, meaning it uses the same key for both encryption and decryption. This requires secure management and exchange of the encryption key between the sender and the recipient.

    2. Block Cipher:
      AES operates as a block cipher, meaning it encrypts data in fixed-size blocks. AES processes 128-bit blocks of plaintext at a time and transforms them into 128-bit blocks of ciphertext.

    3. Key Sizes:
      AES supports three different key sizes:

      • AES-128: Uses a 128-bit key
      • AES-192: Uses a 192-bit key
      • AES-256: Uses a 256-bit key The key size determines the level of security provided; longer keys offer stronger security but also require more processing power.
    4. Strong Security:
      AES is considered highly secure and resistant to brute-force attacks. The strength of AES comes from its large key sizes and its cryptographic design, which involves multiple rounds of transformations.

    5. Efficiency:
      AES is designed to be efficient in both hardware and software implementations, making it suitable for a wide range of applications, from high-performance systems to resource-constrained devices (like IoT devices).


    How AES Works

    AES is based on a series of transformations applied to the data in multiple rounds. The process involves both substitution and permutation of the data to make it more difficult to decipher without the key. Here's an overview of the AES encryption process:

    1. Key Expansion

    Before the actual encryption begins, AES generates multiple round keys from the original encryption key. The number of round keys depends on the key size:

    • AES-128: 10 rounds, 11 round keys
    • AES-192: 12 rounds, 13 round keys
    • AES-256: 14 rounds, 15 round keys

    2. Initial Round

    Before the main rounds begin, AES performs an initial AddRoundKey step:

    • The plaintext (128 bits) is XORed with the first round key derived from the original encryption key.

    3. Main Rounds

    Each round consists of four key operations:

    • SubBytes:
      This is a substitution step where each byte of the block is replaced with a corresponding byte from the S-box (Substitution Box). The S-box is a predefined table designed to introduce non-linearity into the cipher and make the encryption resistant to certain types of attacks.

    • ShiftRows:
      This is a transposition step that shifts the rows of the data block to the left by a certain number of positions. The number of positions depends on the row: the first row is left unchanged, the second row is shifted by one byte, the third row by two bytes, and the fourth row by three bytes.

    • MixColumns:
      This operation mixes the data within each column, which helps to increase the diffusion (the property that ensures each bit of the plaintext affects many bits of the ciphertext). Each column of the state matrix is treated as a polynomial and multiplied with a fixed polynomial modulo x4+1x^4 + 1x4+1.

    • AddRoundKey:
      After the substitution and permutation steps, the block is XORed with a round key. This is the final operation for each round.

    These four steps are repeated for a specific number of rounds based on the key size (10 rounds for AES-128, 12 rounds for AES-192, and 14 rounds for AES-256). The last round is slightly different because it omits the MixColumns operation.

    4. Final Round

    After the last main round, a final round of transformations is performed without the MixColumns step, and the result is the ciphertext.


    AES Decryption Process

    The decryption process is the reverse of the encryption process. The same key is used for decryption, but the order of the operations is reversed. The steps include:

    1. AddRoundKey (initial round key is XORed)
    2. InverseShiftRows (opposite of ShiftRows)
    3. InverseSubBytes (opposite of SubBytes, using the inverse S-box)
    4. InverseMixColumns (opposite of MixColumns, used in all rounds except the last one)
    5. AddRoundKey (repeated for each round)
    6. Final AddRoundKey results in the original plaintext.

    AES Modes of Operation

    AES, as a block cipher, can be used in different modes of operation. Each mode determines how to encrypt data that is longer than a single block (128 bits). Common AES modes include:

    1. ECB (Electronic Codebook Mode):

      • Simple and parallelizable, but not very secure. It encrypts each block of data independently.
      • Weakness: Identical plaintext blocks result in identical ciphertext blocks, which can reveal patterns in the data.
    2. CBC (Cipher Block Chaining Mode):

      • Each block of plaintext is XORed with the previous ciphertext block before encryption.
      • Security: This mode prevents identical plaintext blocks from generating identical ciphertexts, making it more secure than ECB.
      • Weakness: Requires an initialization vector (IV) and is not easily parallelizable.
    3. CFB (Cipher Feedback Mode):

      • A stream cipher mode that operates on smaller units than a full block.
      • Security: Provides error propagation and is useful when data comes in small chunks (e.g., when dealing with streaming data).
    4. OFB (Output Feedback Mode):

      • Similar to CFB, but it uses the previous ciphertext block instead of the previous plaintext block for feedback. This mode doesn't propagate errors, but it still requires an IV.
    5. CTR (Counter Mode):

      • Converts a block cipher into a stream cipher by encrypting a counter value that increments with each block of data.
      • Security: Offers the ability to parallelize encryption and decryption, which improves performance.
    6. GCM (Galois/Counter Mode):

      • A popular mode for authenticated encryption, which provides both confidentiality (encryption) and integrity (authentication).
      • Security: GCM is used widely in secure communication protocols like TLS and IPsec.

    AES Applications

    1. Data Encryption:
      AES is widely used to encrypt sensitive data, including files, databases, and messages, ensuring confidentiality.

    2. Secure Communications:
      AES is employed in protocols like TLS/SSL to secure web traffic (HTTPS), IPsec for virtual private networks (VPNs), and Wi-Fi encryption (WPA2, WPA3).

    3. Disk Encryption:
      AES is used in full-disk encryption systems, such as BitLocker (Windows), FileVault (macOS), and LUKS (Linux), to protect data at rest.

    4. Payment Systems:
      AES is used to protect sensitive financial transactions, including in EMV (chip card) transactions and in securing credit card details.

    5. Cryptocurrency:
      AES is often used in the encryption of private keys, wallet files, and communication between nodes in cryptocurrency networks.

    6. Government and Military:
      AES-256 is frequently used by governments and military organizations for securing classified communications and documents due to its high level of security.


    Strengths of AES

    • Security: AES is highly secure and resistant to known attacks such as brute-force, differential, and linear cryptanalysis. AES-256, in particular, is considered secure against even future quantum computing threats (though this is still a topic of research).
    • Efficiency: AES is efficient in both hardware and software implementations, making it suitable for a variety of environments, including mobile devices, embedded systems, and large-scale enterprise systems.
    • Widely Adopted: AES has been thoroughly analyzed and is used in a wide range of applications, from securing internet traffic to encrypting sensitive data in cloud storage.

    Weaknesses and Considerations

    • Key Management: While AES itself is secure, the security of a system that uses AES depends on how the keys are managed. Poor key management (e.g., weak passwords, unencrypted key storage) can undermine the effectiveness of AES.
    • Side-channel Attacks: AES implementations may be vulnerable to side-channel attacks, which exploit physical characteristics (e.g., timing or power consumption) of the system running the algorithm.

    Conclusion

    AES is a fast, secure, and widely-used encryption standard that provides robust protection for data confidentiality. With key sizes ranging from 128 bits to 256 bits, AES is versatile and scalable for different security needs, from government and military encryption to securing everyday online communications. Its efficiency and security have made it the encryption standard of choice in a variety of applications worldwide.

    ← Previous topic 21
    OSI Reference Model
    Next topic 23 →
    Standard Network Devices

    Past Papers

    Open this section to view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    8mremaining
    1.3kwords
    Intermediatelevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Cyber Security