le_iks_hmac_interface.h
Go to the documentation of this file.
44 //--------------------------------------------------------------------------------------------------48 //--------------------------------------------------------------------------------------------------51 //--------------------------------------------------------------------------------------------------54 * Connect the current client thread to the service providing this API. Block until the service is58 * called before any other functions in this API. Normally, ConnectService is automatically called63 //--------------------------------------------------------------------------------------------------69 //--------------------------------------------------------------------------------------------------72 * Try to connect the current client thread to the service providing this API. Return with an error76 * called before any other functions in this API. Normally, ConnectService is automatically called85 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).88 //--------------------------------------------------------------------------------------------------94 //--------------------------------------------------------------------------------------------------98 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants101 //--------------------------------------------------------------------------------------------------108 //--------------------------------------------------------------------------------------------------114 * longer a connection to the service, and the functions in this API can't be used. For details, see119 //--------------------------------------------------------------------------------------------------126 //--------------------------------------------------------------------------------------------------143 //--------------------------------------------------------------------------------------------------154 //--------------------------------------------------------------------------------------------------162 * If the supplied buffer is larger than or equal to the maximum authentication tag size then the163 * full authentication tag is copied to the buffer and the rest of the buffer is left unmodified.166 * However, all tags produced using the same key must use the same tag size. It is up to the caller179 //--------------------------------------------------------------------------------------------------190 //--------------------------------------------------------------------------------------------------192 * Complete message processing and compare the resulting authentication tag with the supplied tag.201 * If the supplied tag is smaller than the maximum tag size then only the first tagSize bytes will218 //--------------------------------------------------------------------------------------------------le_result_t le_iks_hmac_Done(uint64_t session, uint8_t *tagBufPtr, size_t *tagBufSizePtr)void(* le_iks_hmac_DisconnectHandler_t)(void *)Definition: le_iks_hmac_interface.h:49LE_FULL_API void le_iks_hmac_SetServerDisconnectHandler(le_iks_hmac_DisconnectHandler_t disconnectHandler, void *contextPtr)le_result_t le_iks_hmac_TryConnectService(void)void le_iks_hmac_ConnectService(void)void le_iks_hmac_DisconnectService(void)le_result_t le_iks_hmac_ProcessChunk(uint64_t session, const uint8_t *msgChunkPtr, size_t msgChunkSize)le_result_t le_iks_hmac_Verify(uint64_t session, const uint8_t *tagBufPtr, size_t tagBufSize)
