summaryrefstree
path: root/kernel/drivers/crypto/fmp/fmp_fips_func_test.h
blob: 141bd1d64b195b7b48b7e5dc0f7ab98ddcfff5e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * Copyright (C) 2017 Samsung Electronics Co., Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 */

#ifndef _FMP_FIPS_FUNC_TEST_H_
#define _FMP_FIPS_FUNC_TEST_H_

#if defined(CONFIG_EXYNOS_FMP_FIPS_FUNC_TEST)
#define FMP_FUNCTEST_KAT_CASE_NUM 6
#define FMP_FUNCTEST_NO_TEST "NO_TEST"

int exynos_fmp_func_test_KAT_case(struct platform_device *pdev,
				struct exynos_fmp *fmp,
				struct exynos_fmp_variant_ops *fmp_vops);
#else
inline int exynos_fmp_func_test_KAT_case(struct platform_device *pdev,
				struct exynos_fmp *fmp,
				struct exynos_fmp_variant_ops *fmp_vops)
{
	if (fmp)
		fmp->test_vops = NULL;
	return 0;
}
#endif /* CONFIG_EXYNOS_FMP_FIPS_FUNC_TEST */
#endif /* _FMP_FIPS_FUNC_TEST_H_ */