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. 
This method and those like it that clear the buffer first seem like they'd make the code using this class think a lot about its internal state. Would it make sense to use a separate buffer and leave the class-scope one unchanged?