My Project
Loading...
Searching...
No Matches
quickassist_sync.h
1/* quickassist_sync.h
2 *
3 * Copyright (C) 2006-2020 wolfSSL Inc.
4 *
5 * This file is part of wolfSSL. (formerly known as CyaSSL)
6 *
7 * wolfSSL is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * wolfSSL is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
20 */
21
22#ifndef _INTEL_QUICKASSIST_SYNC_H_
23#define _INTEL_QUICKASSIST_SYNC_H_
24
25#ifdef HAVE_INTEL_QA_SYNC
26
27WOLFSSL_API int wc_CryptoCb_InitIntelQa(void);
28WOLFSSL_API void wc_CryptoCb_CleanupIntelQa(int* id);
29
30WOLFSSL_API void* wc_CryptoCb_IntelQaMalloc(size_t size,
31 void* heap, int type
32#ifdef WOLFSSL_DEBUG_MEMORY
33 , const char* func, unsigned int line
34#endif
35);
36
37WOLFSSL_API void wc_CryptoCb_IntelQaFree(void *ptr,
38 void* heap, int type
39#ifdef WOLFSSL_DEBUG_MEMORY
40 , const char* func, unsigned int line
41#endif
42);
43
44WOLFSSL_API void* wc_CryptoCb_IntelQaRealloc(void *ptr,
45 size_t size, void* heap, int type
46#ifdef WOLFSSL_DEBUG_MEMORY
47 , const char* func, unsigned int line
48#endif
49);
50
51#endif /* HAVE_INTEL_QA_SYNC */
52
53#endif /* _INTEL_QUICKASSIST_SYNC_H_ */