Errors while encrypting audio file using AES algorithm ?
1 次查看(过去 30 天)
显示 更早的评论
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);
0 个评论
回答(1 个)
sree takeoff
2021-7-30
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 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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Encryption / Cryptography 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!