Advanced Encryption Standard (AES)-128,192, 256

버전 1.0.4 (4.6 KB) 작성자: David Hill
Advance Encryption Standard-128, 192, or 256 encryption and decryption using 128/192/256-bit hexadecimal key and 128-bit hexadecimal input.
다운로드 수: 3.7K
업데이트 날짜: 2021/1/25

라이선스 보기

AES-128/192/256 algorithm for creating a cipher given a 128-bit hexadecimal input message and 128/192/256-bit hexadecimal key. Created using FIBS-197 standard. Algorithm was not built for speed and does not covert a text message or data input 128-bit input blocks. Cipher and InvCipher are the main functions to execute. Function executes AES128 or AES192 or AES256 based on the key size. Functions do not check whether the key size or input are the correct length and will error if they are not the correct size.

Example:
Out = Cipher(key,In)
%key='000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f'
%In='00112233445566778899aabbccddeeff'
%Out='8ea2b7ca516745bfeafc49904b496089'

Out=InvCipher(key,In)
%key='000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f'
%In='8ea2b7ca516745bfeafc49904b496089'
%Out='00112233445566778899aabbccddeeff'

인용 양식

David Hill (2024). Advanced Encryption Standard (AES)-128,192, 256 (https://www.mathworks.com/matlabcentral/fileexchange/73412-advanced-encryption-standard-aes-128-192-256), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2020a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Encryption / Cryptography에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.4

Corrected coding for new versions of MATLAB.

1.0.3

Added 128 and 192 bit key choices

1.0.2

Corrected error.

1.0.1

Upgraded and simplified code.

1.0.0