iOS: Add initial parts of support for key files