AESdec wav file
I'm trying to use AES enc/dec with wav. I have run the following pipeline to encrypt a wav file:
gst-launch-1.0 filesrc location=./convo2_long.raw ! rawaudioparse format=mulaw sample-rate=8000 num-channels=1 use-sink-caps =false ! mulawdec ! audioconvert ! capsfilter caps=audio/x-raw,format=S16LE ! wavenc ! aesenc key=1f9423681beb9a79215820f6bda73d0f iv=e9aa8e834d8d70 b7e0d254ff670dd718 per-buffer-padding=false ! filesink location=./convo2_long_enc.wav
And based on the 'log_aesenc' logs I think it is doing what is supposed to.
Then, I tried to decode the wav file using:
gst-launch-1.0 filesrc location=./convo2_long_enc.wav ! aesdec key=1f9423681beb9a79215820f6bda73d0f iv=e9aa8e834d8d70b7e0d25 4ff670dd718 per-buffer-padding=false ! filesink location=./convo2_long_dec.wav
but it fails with:
ERROR: from element /GstPipeline:pipeline0/GstAesDec:aesdec0: Cipher finalization failed. Additional debug info: ../ext/aes/gstaesdec.c(416): gst_aes_dec_sink_event (): /GstPipeline:pipeline0/GstAesDec:aesdec0: Error while finalizing the stream
I do not get any extra details in the log file.
GST_DEBUG="2,wavenc:7,aesenc:7,aesdec:7" GST_DEBUG_FILE="./log.txt"log_aesdec.txt
Do I do something wrong or it is a bug ?log_aesenc.txtlog_aesdec.txt