le_iks_aesMilenage_interface.h
Go to the documentation of this file.
19 * This module provides APIs for performing Milenage authentication and key derivation using AES as49 //--------------------------------------------------------------------------------------------------53 //--------------------------------------------------------------------------------------------------56 //--------------------------------------------------------------------------------------------------59 * Connect the current client thread to the service providing this API. Block until the service is63 * called before any other functions in this API. Normally, ConnectService is automatically called68 //--------------------------------------------------------------------------------------------------74 //--------------------------------------------------------------------------------------------------77 * Try to connect the current client thread to the service providing this API. Return with an error81 * called before any other functions in this API. Normally, ConnectService is automatically called90 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).93 //--------------------------------------------------------------------------------------------------99 //--------------------------------------------------------------------------------------------------103 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants106 //--------------------------------------------------------------------------------------------------113 //--------------------------------------------------------------------------------------------------119 * longer a connection to the service, and the functions in this API can't be used. For details, see124 //--------------------------------------------------------------------------------------------------131 //--------------------------------------------------------------------------------------------------133 * Calculates the network authentication code MAC-A using the Milenage algorithm set with AES-128 as144 //--------------------------------------------------------------------------------------------------172 //--------------------------------------------------------------------------------------------------174 * Calculates the re-synchronisation authentication code MAC-S using the Milenage algorithm set with185 //--------------------------------------------------------------------------------------------------213 //--------------------------------------------------------------------------------------------------226 //--------------------------------------------------------------------------------------------------259 //--------------------------------------------------------------------------------------------------272 //--------------------------------------------------------------------------------------------------290 //--------------------------------------------------------------------------------------------------304 //--------------------------------------------------------------------------------------------------void(* le_iks_aesMilenage_DisconnectHandler_t)(void *)Definition: le_iks_aesMilenage_interface.h:54void le_iks_aesMilenage_DisconnectService(void)le_result_t le_iks_aesMilenage_TryConnectService(void)LE_FULL_API void le_iks_aesMilenage_SetServerDisconnectHandler(le_iks_aesMilenage_DisconnectHandler_t disconnectHandler, void *contextPtr)le_result_t le_iks_aesMilenage_GetMacS(uint64_t kRef, uint64_t opcRef, const uint8_t *randPtr, size_t randSize, const uint8_t *amfPtr, size_t amfSize, const uint8_t *sqnPtr, size_t sqnSize, uint8_t *macsPtr, size_t *macsSizePtr)le_result_t le_iks_aesMilenage_GetMacA(uint64_t kRef, uint64_t opcRef, const uint8_t *randPtr, size_t randSize, const uint8_t *amfPtr, size_t amfSize, const uint8_t *sqnPtr, size_t sqnSize, uint8_t *macaPtr, size_t *macaSizePtr)void le_iks_aesMilenage_ConnectService(void)le_result_t le_iks_aesMilenage_GetKeys(uint64_t kRef, uint64_t opcRef, const uint8_t *randPtr, size_t randSize, uint8_t *resPtr, size_t *resSizePtr, uint8_t *ckPtr, size_t *ckSizePtr, uint8_t *ikPtr, size_t *ikSizePtr, uint8_t *akPtr, size_t *akSizePtr)le_result_t le_iks_aesMilenage_DeriveOpc(uint64_t opRef, const uint8_t *kPtr, size_t kSize, uint8_t *opcPtr, size_t *opcSizePtr)le_result_t le_iks_aesMilenage_GetAk(uint64_t kRef, uint64_t opcRef, const uint8_t *randPtr, size_t randSize, uint8_t *akPtr, size_t *akSizePtr)