Check IV length against the block size
Check IV length against the block size

While a block size of 8 works for DES:
http://godoc.org/crypto/des#pkg-constants

For other algorithms it is different:
http://godoc.org/crypto/aes#pkg-constants

This removes the magic number

fullsailor/pkcs7