Hashing API

Here is the Hashing API I have written as part of my GSoC project. Also added a  check of policy files for JCE in JCELoader. 
Since I'm running this in a for loop for each type, if I used ExpectedException it would only test the first type. As soon as the Exception is caught it passes it and moves on to the next.