Fix for the issue #3541 - salt size for Encrypt/Decrypt Filter

This PR fix the issue #3541. In the BlockCipher used by Encrypt/Decrypt Filter the salt (vector) value has been resize to the correct value during the authentication , according to the encryption algorithm.
This PR is a replacement of the pull #3547.

More changes have been introduced, see comments below.