Saving jpegs with encryption

Hi guys,

I am trying to save encrypted JPEGs with multifilesink.
My pipeline is:

gst-launch-1.0 videotestsrc is-live=true num-buffers=100 ! videoconvert ! jpegenc ! aesenc key=0123456789abcdef0123456789abcdef iv=0123456789abcdef0123456789abcdef ! multifilesink location="encrypted_frame_%05d.aes

My issue is I cant decrypte the frames.
I Tried with an aesdec element, didn’t work.
When tried a standalone python code, only the first frame was decrypted.

Any help?