self-test.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright (C) 2014 Free Software Foundation, Inc.
  3. *
  4. * Author: Nikos Mavrogiannopoulos
  5. *
  6. * This file is part of GnuTLS.
  7. *
  8. * The GnuTLS is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU Lesser General Public License
  10. * as published by the Free Software Foundation; either version 2.1 of
  11. * the License, or (at your option) any later version.
  12. *
  13. * This library is distributed in the hope that it will be useful, but
  14. * WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * Lesser General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public License
  19. * along with this program. If not, see <http://www.gnu.org/licenses/>
  20. *
  21. */
  22. #ifndef __GNUTLS_SELF_H
  23. #define __GNUTLS_SELF_H
  24. #include <gnutls/gnutls.h>
  25. /* Self checking functions */
  26. #define GNUTLS_SELF_TEST_FLAG_ALL 1
  27. #define GNUTLS_SELF_TEST_FLAG_NO_COMPAT (1<<1)
  28. int gnutls_cipher_self_test(unsigned flags, gnutls_cipher_algorithm_t cipher);
  29. int gnutls_mac_self_test(unsigned flags, gnutls_mac_algorithm_t mac);
  30. int gnutls_digest_self_test(unsigned flags, gnutls_digest_algorithm_t digest);
  31. int gnutls_pk_self_test(unsigned flags, gnutls_pk_algorithm_t pk);
  32. #endif