liboqs.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /* liboqs.h
  2. *
  3. * Copyright (C) 2006-2023 wolfSSL Inc.
  4. *
  5. * This file is part of wolfSSL.
  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-1335, USA
  20. */
  21. /*!
  22. \file wolfssl/wolfcrypt/port/liboqs/liboqs.h
  23. */
  24. /*
  25. DESCRIPTION
  26. This library provides the support interfaces to the liboqs library providing
  27. implementations for Post-Quantum cryptography algorithms.
  28. */
  29. #ifndef WOLF_CRYPT_LIBOQS_H
  30. #define WOLF_CRYPT_LIBOQS_H
  31. #include <wolfssl/wolfcrypt/types.h>
  32. #include <wolfssl/wolfcrypt/random.h>
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36. #if defined(HAVE_LIBOQS)
  37. #include "oqs/oqs.h"
  38. int wolfSSL_liboqsInit(void);
  39. void wolfSSL_liboqsClose(void);
  40. int wolfSSL_liboqsRngMutexLock(WC_RNG* rng);
  41. int wolfSSL_liboqsRngMutexUnlock(void);
  42. #endif /* HAVE_LIBOQS */
  43. #ifdef __cplusplus
  44. } /* extern "C" */
  45. #endif
  46. #endif /* WOLF_CRYPT_LIBOQS_H */