wc_port.h 794 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*!
  2. \ingroup wolfCrypt
  3. \brief Used to initialize resources used by wolfCrypt.
  4. \return 0 upon success.
  5. \return <0 upon failure of init resources.
  6. \param none No parameters.
  7. _Example_
  8. \code
  9. ...
  10. if (wolfCrypt_Init() != 0) {
  11. WOLFSSL_MSG("Error with wolfCrypt_Init call");
  12. }
  13. \endcode
  14. \sa wolfCrypt_Cleanup
  15. */
  16. int wolfCrypt_Init(void);
  17. /*!
  18. \ingroup wolfCrypt
  19. \brief Used to clean up resources used by wolfCrypt.
  20. \return 0 upon success.
  21. \return <0 upon failure of cleaning up resources.
  22. \param none No parameters.
  23. _Example_
  24. \code
  25. ...
  26. if (wolfCrypt_Cleanup() != 0) {
  27. WOLFSSL_MSG("Error with wolfCrypt_Cleanup call");
  28. }
  29. \endcode
  30. \sa wolfCrypt_Init
  31. */
  32. int wolfCrypt_Cleanup(void);