Key management API functions and integration with Serval