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 in49 //--------------------------------------------------------------------------------------------------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 //--------------------------------------------------------------------------------------------------135 * le_iks_aesCmac_Verify() has been called this function should not be called again with the same148 //--------------------------------------------------------------------------------------------------160 //--------------------------------------------------------------------------------------------------178 //--------------------------------------------------------------------------------------------------189 //--------------------------------------------------------------------------------------------------191 * Complete message processing and compare the resulting authentication tag with the supplied tag.195 * However, all tags produced using the same key must use the same tag size. It is up to the caller209 //--------------------------------------------------------------------------------------------------le_result_t le_iks_aesCmac_Verify(uint64_t session, const uint8_t *tagBufPtr, size_t tagBufSize)void le_iks_aesCmac_ConnectService(void)void le_iks_aesCmac_DisconnectService(void)LE_FULL_API void le_iks_aesCmac_SetServerDisconnectHandler(le_iks_aesCmac_DisconnectHandler_t disconnectHandler, void *contextPtr)le_result_t le_iks_aesCmac_ProcessChunk(uint64_t session, const uint8_t *msgChunkPtr, size_t msgChunkSize)void(* le_iks_aesCmac_DisconnectHandler_t)(void *)Definition: le_iks_aesCmac_interface.h:54le_result_t le_iks_aesCmac_TryConnectService(void)le_result_t le_iks_aesCmac_Done(uint64_t session, uint8_t *tagBufPtr, size_t *tagBufSizePtr)