Fixed errors with conscrypt/java and added mka function