Fixed a direct reference to APG which would have broken the
plugin-pattern which is in effect in the crypto-package. Replaced it
with an extension to the cryptoProvider interface