added PKCS#7 handling, not yet tested