mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 09:41:07 +00:00
aesenc: Fix IV length addition to output buffer length
Add length of IV to output buffer length only for the first buffer. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5093>
This commit is contained in:
parent
f46831a51d
commit
f2087cd663
1 changed files with 3 additions and 1 deletions
|
@ -498,7 +498,9 @@ gst_aes_enc_transform (GstBaseTransform * base,
|
|||
gst_buffer_unmap (inbuf, &inmap);
|
||||
gst_buffer_unmap (outbuf, &outmap);
|
||||
|
||||
out_len = ciphertext_len + (filter->serialize_iv ? GST_AES_BLOCK_SIZE : 0);
|
||||
out_len = ciphertext_len + ((filter->serialize_iv
|
||||
&& filter->awaiting_first_buffer)
|
||||
? GST_AES_BLOCK_SIZE : 0);
|
||||
gst_buffer_set_size (outbuf, out_len);
|
||||
GST_LOG_OBJECT (filter,
|
||||
"plaintext len: %d, ciphertext len: %d, padding: %d, output buffer length: %d",
|
||||
|
|
Loading…
Reference in a new issue