Check KEY_ALGORITHM to make it possible to run on ibm java.