I have done encryption on my audio file by using AES algo encryption that is giving error given below:

Error using cipher (line 38)

Plaintext has to be a vector (not a cell array) with 16 elements.

Error in aes_demo (line 37)

ciphertext = cipher (V2, w, s_box, poly_mat, 1);

sir firstly i tried to convert it after encryption but it doesnt works after that i tried to convert it before applying AES algo but it is giving me the same error . i have applied these lines for conversion of 2d array into vector.

V1 = x(:);

V2 = reshape(x, 1, []);

V3 = reshape(x, numel(x), 1);

 

Help me please, I have been stuck in at this point.

Similar questions and discussions