AES - Advanced Encryption Standard

Examples of AES-128, AES-192, and AES-256 encryption/decryption functions
Updated 29 Nov 2011

AES - AES-128, AES-192, and AES-256 encryption/decryption functions with support of all NIST SP800-38A cipher modes, i.e., ECB, CBC, OFB, CFB, and CTR.
Files:
High level functions:
aesinit - Generate structure with s-boxes, expanded key, etc.
aes - Encrypt/decrypt array of bytes by AES.
aesinfo - Display info about AES setting in AES structure.
Low level 4x4 block functions:
aesdecrypt - Decrypt 16-bytes vector.
aesencrypt - Encrypt 16-bytes vector.
Test functions:
aestest - AES test script.
AES_GET_COUNTER - Generates counter for aes.m - an example.

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Encryption / Cryptography in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!