]> git.ipfire.org Git - thirdparty/openssl.git/blame - providers/fips/self_test.h
Make the naming scheme for dispatched functions more consistent
[thirdparty/openssl.git] / providers / fips / self_test.h
CommitLineData
25e60144 1/*
33388b44 2 * Copyright 2019-2020 The OpenSSL Project Authors. All Rights Reserved.
25e60144 3 *
a6ed19dc 4 * Licensed under the Apache License 2.0 (the "License"). You may not use
25e60144
SL
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
23c48d94 10#include <openssl/core_dispatch.h>
50cd4768 11#include <openssl/types.h>
36fc5fc6 12#include <openssl/self_test.h>
25e60144
SL
13
14typedef struct self_test_post_params_st {
15 /* FIPS module integrity check parameters */
16 const char *module_filename; /* Module file to perform MAC on */
17 const char *module_checksum_data; /* Expected module MAC integrity */
18
19 /* Used for KAT install indicator integrity check */
20 const char *indicator_version; /* version - for future proofing */
21 const char *indicator_data; /* data to perform MAC on */
22 const char *indicator_checksum_data; /* Expected MAC integrity value */
23
24 /* BIO callbacks supplied to the FIPS provider */
363b1e5d
DMSP
25 OSSL_FUNC_BIO_new_file_fn *bio_new_file_cb;
26 OSSL_FUNC_BIO_new_membuf_fn *bio_new_buffer_cb;
27 OSSL_FUNC_BIO_read_ex_fn *bio_read_ex_cb;
28 OSSL_FUNC_BIO_free_fn *bio_free_cb;
36fc5fc6 29 OSSL_CALLBACK *cb;
36fc5fc6 30 void *cb_arg;
47c239c6 31 OPENSSL_CTX *libctx;
36fc5fc6 32
47c239c6 33} SELF_TEST_POST_PARAMS;
36fc5fc6 34
14a684bf 35int SELF_TEST_post(SELF_TEST_POST_PARAMS *st, int on_demand_test);
47c239c6 36int SELF_TEST_kats(OSSL_SELF_TEST *event, OPENSSL_CTX *libctx);