config.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* Copyright (C) 2017 Fortanix, Inc.
  2. Copyright (C) 2019 Intel Corp.
  3. This file is part of Graphene Library OS.
  4. Graphene Library OS is free software: you can redistribute it and/or
  5. modify it under the terms of the GNU Lesser General Public License
  6. as published by the Free Software Foundation, either version 3 of the
  7. License, or (at your option) any later version.
  8. Graphene Library OS is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  14. #ifndef MBEDTLS_CONFIG_H
  15. #define MBEDTLS_CONFIG_H
  16. #define MBEDTLS_AES_C
  17. #define MBEDTLS_AESNI_C
  18. #define MBEDTLS_BIGNUM_C
  19. #define MBEDTLS_CIPHER_C
  20. #define MBEDTLS_CMAC_C
  21. #define MBEDTLS_DHM_C
  22. #define MBEDTLS_GENPRIME
  23. #define MBEDTLS_HAVE_ASM
  24. #define MBEDTLS_HAVE_X86_64
  25. #define MBEDTLS_MD_C
  26. #define MBEDTLS_PKCS1
  27. #define MBEDTLS_PKCS1_V15
  28. #define MBEDTLS_OID_C
  29. #define MBEDTLS_PLATFORM_C
  30. #define MBEDTLS_RSA_C
  31. #define MBEDTLS_SHA256_C
  32. #define MBEDTLS_BASE64_C
  33. #define MBEDTLS_ASN1_PARSE_C
  34. #define MBEDTLS_PLATFORM_NO_STD_FUNCTIONS
  35. #include <limits.h>
  36. #include <stddef.h>
  37. void* calloc(size_t nmem, size_t size);
  38. void free(void*);
  39. #define MBEDTLS_PLATFORM_STD_CALLOC calloc
  40. #define MBEDTLS_PLATFORM_STD_FREE free
  41. #define MBEDTLS_PLATFORM_STD_SNPRINTF snprintf
  42. #endif