le_iks_aesCbc_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 //--------------------------------------------------------------------------------------------------140 * The initialization vector, IV, does not need to be kept secret but must be unpredictable. Thus151 //--------------------------------------------------------------------------------------------------163 //--------------------------------------------------------------------------------------------------165 * Encrypt a chunk of plaintext. le_iks_aesCbc_StartEncrypt() must have been previously called. The166 * plaintest must be a multiple of the block size. It is up to the caller to pad the plaintext as178 //--------------------------------------------------------------------------------------------------193 //--------------------------------------------------------------------------------------------------211 //--------------------------------------------------------------------------------------------------223 //--------------------------------------------------------------------------------------------------225 * Decrypt a chunk of ciphertext. le_iks_aesCbc_StartDecrypt() must have been previously called to237 //--------------------------------------------------------------------------------------------------void le_iks_aesCbc_DisconnectService(void)le_result_t le_iks_aesCbc_TryConnectService(void)le_result_t le_iks_aesCbc_StartEncrypt(uint64_t session, const uint8_t *ivPtr, size_t ivSize)le_result_t le_iks_aesCbc_StartDecrypt(uint64_t session, const uint8_t *ivPtr, size_t ivSize)le_result_t le_iks_aesCbc_Decrypt(uint64_t session, const uint8_t *ciphertextChunkPtr, size_t ciphertextChunkSize, uint8_t *plaintextChunkPtr, size_t *plaintextChunkSizePtr)LE_FULL_API void le_iks_aesCbc_SetServerDisconnectHandler(le_iks_aesCbc_DisconnectHandler_t disconnectHandler, void *contextPtr)le_result_t le_iks_aesCbc_Encrypt(uint64_t session, const uint8_t *plaintextChunkPtr, size_t plaintextChunkSize, uint8_t *ciphertextChunkPtr, size_t *ciphertextChunkSizePtr)void(* le_iks_aesCbc_DisconnectHandler_t)(void *)Definition: le_iks_aesCbc_interface.h:53void le_iks_aesCbc_ConnectService(void)