Selecting the Best AES Block Cipher Mode (AES-GCM VS AES-CBC)

About AES

AES Cipher Modes

  • ECB mode: Electronic Code Book mode
  • CBC mode: Cipher Block Chaining mode
  • CFB mode: Cipher Feedback mode
  • OFB mode: Output FeedBack mode
  • CTR mode: Counter mode
  • GCM mode: Galois/Counter mode

CBC mode: Cipher Block Chaining mode

  • Chosen Plaintext Attack(CPA) — Attacks with a set of chosen plaintexts and to obtain respective ciphertext.
  • Chosen Ciphertext Attack(CCA) — Attacks with a set of chosen ciphertexts to obtain respective plaintexts.
  • Padding oracle attacks

AES-GCM instead of AES-CBC

Reference

  • Blazhevski, D., Божиновски, А., Stojcevska, B. and Pachovski, V., 2013. MODES OF OPERATION OF THE AES ALGORITHM. [online] https://www.researchgate.net. Available at: <https://www.researchgate.net/publication/236656798_MODES_OF_OPERATION_OF_THE_AES_ALGORITHM>
  • McGrew, D. and Viega, J. The Galois/Counter Mode of Operation (GCM). [online] Luca-giuzzi.unibs.it. Available at: <https://luca-giuzzi.unibs.it/corsi/Support/papers-cryptography/gcm-spec.pdf>
  • Ahamed, N. and Wei, L., 2017. Advanced Encryption Standard with Galois Counter Mode using Field Programmable Gate Array.. [online] Iopscience.iop.org. Available at: <https://iopscience.iop.org/article/10.1088/1742-6596/1019/1/012008/pdf>
  • Kaneesha, D., n.d. What’s the difference between AES-CBC and AES-GCM? — Knowledgebase / Technical / Application Settings and Features / Encryption — PIA Support Portal. [online] Privateinternetaccess.com. Available at: <https://www.privateinternetaccess.com/helpdesk/kb/articles/what-s-the-difference-between-aes-cbc-and-aes-gcm-2>
  • Dworkin, M., 2021. Recommendation for Block Cipher Modes of Operation: Galois/Counter Mode (GCM) and GMAC. [online] https://nvlpubs.nist.go. Available at: <https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf>

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Isuru Kariyawasam

Isuru Kariyawasam

Co-Founder and principle Engineer (Virtuan PTE)