/**
* \file sec_alloc.c
* \brief Memory allocator.
* \author Oleksandr Gabrilchuk (o.gabrilchuk@samsung.com)
* \version 0.1
* \date Created May 31, 2013
* \par In Samsung Ukraine R&D Center (SURC) under a contract between
* \par LLC "Samsung Electronics Ukraine Company" (Kiev, Ukraine) and
* \par "Samsung Elecrtronics Co", Ltd (Seoul, Republic of Korea)
* \par Copyright: (c) Samsung Electronics Co, Ltd 2012. All rights reserved.
**/

#ifndef __SEC_ALLOC_H_INCLUDED__
#define __SEC_ALLOC_H_INCLUDED__

void sec_init(void);
void *sec_malloc(size_t size);
void sec_free(void *ptr);
void *sec_realloc(void *ptr, size_t size);

#define malloc sec_malloc
#define free sec_free
#define realloc sec_realloc

/* from crypto.h */
void sec_cleanse(void *ptr, size_t len);

#endif /* __SEC_ALLOC_H_INCLUDED__ */
