selftest.h 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the OpenSSL license (the "License"). You may not use
  5. * this file except in compliance with the License. You can obtain a copy
  6. * in the file LICENSE in the source distribution or at
  7. * https://www.openssl.org/source/license.html
  8. */
  9. #include <openssl/core_numbers.h>
  10. #include <openssl/types.h>
  11. typedef struct self_test_post_params_st {
  12. /* FIPS module integrity check parameters */
  13. const char *module_filename; /* Module file to perform MAC on */
  14. const char *module_checksum_data; /* Expected module MAC integrity */
  15. /* Used for KAT install indicator integrity check */
  16. const char *indicator_version; /* version - for future proofing */
  17. const char *indicator_data; /* data to perform MAC on */
  18. const char *indicator_checksum_data; /* Expected MAC integrity value */
  19. /* BIO callbacks supplied to the FIPS provider */
  20. OSSL_BIO_new_file_fn *bio_new_file_cb;
  21. OSSL_BIO_new_membuf_fn *bio_new_buffer_cb;
  22. OSSL_BIO_read_ex_fn *bio_read_ex_cb;
  23. OSSL_BIO_free_fn *bio_free_cb;
  24. OPENSSL_CTX *libctx;
  25. } SELF_TEST_POST_PARAMS;
  26. int SELF_TEST_post(SELF_TEST_POST_PARAMS *st);