le_iks_aesCbc_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 //--------------------------------------------------------------------------------------------------136 * The initialization vector, IV, does not need to be kept secret but must be unpredictable. Thus147 //--------------------------------------------------------------------------------------------------159 //--------------------------------------------------------------------------------------------------161 * Encrypt a chunk of plaintext. le_iks_aesCbc_StartEncrypt() must have been previously called. The162 * plaintest must be a multiple of the block size. It is up to the caller to pad the plaintext as174 //--------------------------------------------------------------------------------------------------189 //--------------------------------------------------------------------------------------------------207 //--------------------------------------------------------------------------------------------------219 //--------------------------------------------------------------------------------------------------221 * Decrypt a chunk of ciphertext. le_iks_aesCbc_StartDecrypt() must have been previously called to233 //--------------------------------------------------------------------------------------------------void le_iks_aesCbc_DisconnectService(void)le_result_t le_iks_aesCbc_TryConnectService(void)void le_iks_aesCbc_ConnectService(void)le_result_t le_iks_aesCbc_Encrypt(uint64_t session, const uint8_t *plaintextChunkPtr, size_t plaintextChunkSize, uint8_t *ciphertextChunkPtr, size_t *ciphertextChunkSizePtr)le_result_t le_iks_aesCbc_StartEncrypt(uint64_t session, const uint8_t *ivPtr, size_t ivSize)void(* le_iks_aesCbc_DisconnectHandler_t)(void *)Definition: le_iks_aesCbc_interface.h:49le_result_t le_iks_aesCbc_Decrypt(uint64_t session, const uint8_t *ciphertextChunkPtr, size_t ciphertextChunkSize, uint8_t *plaintextChunkPtr, size_t *plaintextChunkSizePtr)le_result_t le_iks_aesCbc_StartDecrypt(uint64_t session, const uint8_t *ivPtr, size_t ivSize)LE_FULL_API void le_iks_aesCbc_SetServerDisconnectHandler(le_iks_aesCbc_DisconnectHandler_t disconnectHandler, void *contextPtr)