le_iks_hmac_interface.h
Go to the documentation of this file.
48 //--------------------------------------------------------------------------------------------------52 //--------------------------------------------------------------------------------------------------55 //--------------------------------------------------------------------------------------------------58 * Connect the current client thread to the service providing this API. Block until the service is62 * called before any other functions in this API. Normally, ConnectService is automatically called67 //--------------------------------------------------------------------------------------------------73 //--------------------------------------------------------------------------------------------------76 * Try to connect the current client thread to the service providing this API. Return with an error80 * called before any other functions in this API. Normally, ConnectService is automatically called89 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).92 //--------------------------------------------------------------------------------------------------98 //--------------------------------------------------------------------------------------------------102 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants105 //--------------------------------------------------------------------------------------------------112 //--------------------------------------------------------------------------------------------------118 * longer a connection to the service, and the functions in this API can't be used. For details, see123 //--------------------------------------------------------------------------------------------------130 //--------------------------------------------------------------------------------------------------147 //--------------------------------------------------------------------------------------------------158 //--------------------------------------------------------------------------------------------------166 * If the supplied buffer is larger than or equal to the maximum authentication tag size then the167 * full authentication tag is copied to the buffer and the rest of the buffer is left unmodified.170 * However, all tags produced using the same key must use the same tag size. It is up to the caller183 //--------------------------------------------------------------------------------------------------194 //--------------------------------------------------------------------------------------------------196 * Complete message processing and compare the resulting authentication tag with the supplied tag.205 * If the supplied tag is smaller than the maximum tag size then only the first tagSize bytes will222 //--------------------------------------------------------------------------------------------------void le_iks_hmac_DisconnectService(void)le_result_t le_iks_hmac_ProcessChunk(uint64_t session, const uint8_t *msgChunkPtr, size_t msgChunkSize)void(* le_iks_hmac_DisconnectHandler_t)(void *)Definition: le_iks_hmac_interface.h:53le_result_t le_iks_hmac_TryConnectService(void)void le_iks_hmac_ConnectService(void)le_result_t le_iks_hmac_Verify(uint64_t session, const uint8_t *tagBufPtr, size_t tagBufSize)le_result_t le_iks_hmac_Done(uint64_t session, uint8_t *tagBufPtr, size_t *tagBufSizePtr)LE_FULL_API void le_iks_hmac_SetServerDisconnectHandler(le_iks_hmac_DisconnectHandler_t disconnectHandler, void *contextPtr)