Path: blob/main/crypto/openssl/providers/fips/self_test.h
48261 views
/*1* Copyright 2019-2024 The OpenSSL Project Authors. All Rights Reserved.2*3* Licensed under the Apache License 2.0 (the "License"). You may not use4* this file except in compliance with the License. You can obtain a copy5* in the file LICENSE in the source distribution or at6* https://www.openssl.org/source/license.html7*/89#include <openssl/core_dispatch.h>10#include <openssl/types.h>11#include <openssl/self_test.h>1213typedef struct self_test_post_params_st {14/* FIPS module integrity check parameters */15const char *module_filename; /* Module file to perform MAC on */16const char *module_checksum_data; /* Expected module MAC integrity */1718/* Used for continuous tests */19const char *conditional_error_check;2021/* BIO callbacks supplied to the FIPS provider */22OSSL_FUNC_BIO_new_file_fn *bio_new_file_cb;23OSSL_FUNC_BIO_new_membuf_fn *bio_new_buffer_cb;24OSSL_FUNC_BIO_read_ex_fn *bio_read_ex_cb;25OSSL_FUNC_BIO_free_fn *bio_free_cb;26OSSL_CALLBACK *cb;27void *cb_arg;28OSSL_LIB_CTX *libctx;2930} SELF_TEST_POST_PARAMS;3132int SELF_TEST_post(SELF_TEST_POST_PARAMS *st, int on_demand_test);33int SELF_TEST_kats(OSSL_SELF_TEST *event, OSSL_LIB_CTX *libctx);3435void SELF_TEST_disable_conditional_error_state(void);363738