remove no longer valid comment
add checks for pkcs7_padding