Generate publicKey from keyData - Compatibility for Java 1.8