le_iks_aesCmac_interface.h
Go to the documentation of this file.
19 * Legato IoT Keystore APIs for generating and verifying message authentication codes using AES in45 //--------------------------------------------------------------------------------------------------49 //--------------------------------------------------------------------------------------------------52 //--------------------------------------------------------------------------------------------------55 * Connect the current client thread to the service providing this API. Block until the service is59 * called before any other functions in this API. Normally, ConnectService is automatically called64 //--------------------------------------------------------------------------------------------------70 //--------------------------------------------------------------------------------------------------73 * Try to connect the current client thread to the service providing this API. Return with an error77 * called before any other functions in this API. Normally, ConnectService is automatically called86 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).89 //--------------------------------------------------------------------------------------------------95 //--------------------------------------------------------------------------------------------------99 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants102 //--------------------------------------------------------------------------------------------------109 //--------------------------------------------------------------------------------------------------115 * longer a connection to the service, and the functions in this API can't be used. For details, see120 //--------------------------------------------------------------------------------------------------127 //--------------------------------------------------------------------------------------------------131 * le_iks_aesCmac_Verify() has been called this function should not be called again with the same144 //--------------------------------------------------------------------------------------------------156 //--------------------------------------------------------------------------------------------------174 //--------------------------------------------------------------------------------------------------185 //--------------------------------------------------------------------------------------------------187 * Complete message processing and compare the resulting authentication tag with the supplied tag.191 * However, all tags produced using the same key must use the same tag size. It is up to the caller205 //--------------------------------------------------------------------------------------------------le_result_t le_iks_aesCmac_Verify(uint64_t session, const uint8_t *tagBufPtr, size_t tagBufSize)void le_iks_aesCmac_ConnectService(void)LE_FULL_API void le_iks_aesCmac_SetServerDisconnectHandler(le_iks_aesCmac_DisconnectHandler_t disconnectHandler, void *contextPtr)void(* le_iks_aesCmac_DisconnectHandler_t)(void *)Definition: le_iks_aesCmac_interface.h:50le_result_t le_iks_aesCmac_ProcessChunk(uint64_t session, const uint8_t *msgChunkPtr, size_t msgChunkSize)le_result_t le_iks_aesCmac_Done(uint64_t session, uint8_t *tagBufPtr, size_t *tagBufSizePtr)void le_iks_aesCmac_DisconnectService(void)le_result_t le_iks_aesCmac_TryConnectService(void)