Extract PKCS#5 handling from pkcs8 plugin to separate helper class