/*!
 * In Samsung Ukraine R&D Center (SRK) under a contract between
 * LLC "Samsung Electronics Ukraine Company" (Kyiv, Ukraine)
 * and "Samsung Electronics Co", Ltd (Seoul, Republic of Korea)
 * Copyright: (c) Samsung Electronics Co, Ltd 2019. All rights reserved.
 *
 */


#ifndef TZ_UTILS_H
#define TZ_UTILS_H

#include <stddef.h>


void sleepProcess(int timeoutTimeInMilli);

void* tz_malloc(uint32_t size);
void tz_free(void *data);

/*!
 * \brief The function to zeroize memory.
 *
 * Instead memset() function need use this implementation,
 * because in some case a compiler will remove memset() optimize it out.
 * And security data stay in a memory.
 *
 */
void secure_memclear( void * secure_data, size_t size );

#endif /* TZ_UTILS_H */

