ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Cyber Security
    ITEC3125
    Progress0 / 39 topics
    Topics
    1. Introduction: Fundamental Concepts of Security2. Types of Attacks3. Social Engineering Attacks4. Classification Traits of Malwares5. Circulation6. Infection7. Concealment8. Payload Capabilities9. Web Application Attacks: SQL Injection10. Web Application Attacks: Cross Site Scripting11. Security Management & Cryptography12. Client Side Attacks: Cookies13. Client Side Attacks: DoS14. Client Side Attacks: Man in the Middle15. Client Side Attacks: Replay16. Developing Security Policy17. Deploy and Manage Security Settings18. Security Through Design19. Security Through Anti Malware20. Fundamentals of Cryptography21. OSI Reference Model22. AES23. Standard Network Devices24. Network Security Hardware25. Firewalls26. Types of Firewalls27. Spam Filters28. Virtual Private Networks29. Intrusion Detection and Prevention Study30. DNS31. Network Security: Network Address Translation (NAT)32. Network Access Control (NAC)33. Network Protocols34. TCP/IP35. Wireless Network Security: Wireless Network Attacks36. Wireless Network Security: Types of Attacks37. Mobile Devices Security38. Cloud Security Challenges and Solution39. IoT Security Challenges
    ITEC3125›AES
    Cyber SecurityTopic 22 of 39

    AES

    8 minread
    1,348words
    Intermediatelevel

    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 load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time8 min
      Word count1,348
      Code examples0
      DifficultyIntermediate