Errors while encrypting audio file using AES algorithm ?

2 Ansichten (letzte 30 Tage)
amina dilwar
amina dilwar am 4 Sep. 2014
Beantwortet: sree takeoff am 30 Jul. 2021
AES on my audio file it is giving me errors......like plaintext should be vector of 16 elements not a cell array..i have removed that errors then i complie it now it is giving me these errors......please me in removing these error
errors are
??? Error using ==> bitxor Inputs must be unsigned integers of the same class or scalar doubles.
?????Error in ==> add_round_key at 14 state_out = bitxor (state_in, round_key);
?????Error in ==> cipher at 97 state = add_round_key (state, round_key);
??????Error in ==> aes_demo at 41 ciphertext = cipher (plaintext1, w, s_box, poly_mat, 1);

Antworten (1)

sree takeoff
sree takeoff am 30 Jul. 2021
Hi I am working on AES encryption and decryption in my project.
I have a .mp4 file which is encrypted using "AES/CBC/pkcs5padding".
I have the key and iv values which is used to encrypt the first 256 bytes of the audio file.
I need to decrypt the file's first 256 bytes using the same algorithm , key and iv values.
I have followed some links (link1,link2).
I got a audio player demo and tried to implement my part(AES encryption and decryption) as demo.
Below I explained the code what I have done.
This method reads the data from encrypted file which is under res/raw folder.
https://takeoffprojects.com/takeoffprojects

Kategorien

Mehr zu Encryption / Cryptography finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by