def des_cbc_pkcs5_decrypt(key, data, iv):
if len(key) != <NUM_LIT:8>:<EOL><INDENT>raise ValueError(pretty_message(<EOL>'''<STR_LIT>''',<EOL>len(key)<EOL>))<EOL><DEDENT>if len(iv) != <NUM_LIT:8>:<EOL><INDENT>raise ValueError(pretty_message(<EOL>'''<STR_LIT>''',<EOL>len(iv)<EOL>))<EOL><DEDENT>return _decrypt('<STR_LIT>', key, data, iv, True)<EOL>
Decrypts DES ciphertext in CBC mode using a 56 bit key and PKCS#5 padding.

:param key:
    The encryption key - a byte string 8 bytes long (includes error correction bits)

:param data:
    The ciphertext - a byte string

:param iv:
    The initialization vector - a byte string 8-bytes long

:raises:
    ValueError - when any of the parameters contain an invalid value
    TypeError - when any of the parameters are of the wrong type
    OSError - when an error is returned by OpenSSL

:return:
    A byte string of the plaintext