6b7c37f6c4
Use the standard auto-generated kernel version string instead of a manually assigned version number that will get out-of-date. There was discussion of custom version numbers being needed for certification purposes, but it appears that they won't be needed after all. This will produce a version string like "5.10.66-android12-9-00017-g0b8a0a4df237". Bug: 188620248 Change-Id: Ia369e91e4a18f489418123c672686e05ca99063d Signed-off-by: Eric Biggers <ebiggers@google.com> (cherry picked from commit 4e0c1040758540aac34b753ed41792c8ad322a8c)
36 lines
875 B
C
36 lines
875 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright 2021 Google LLC
|
|
*/
|
|
|
|
#ifndef _CRYPTO_FIPS140_MODULE_H
|
|
#define _CRYPTO_FIPS140_MODULE_H
|
|
|
|
#include <linux/completion.h>
|
|
#include <linux/module.h>
|
|
#include <generated/utsrelease.h>
|
|
|
|
#undef pr_fmt
|
|
#define pr_fmt(fmt) "fips140: " fmt
|
|
|
|
/*
|
|
* This is the name and version number of the module that are shown on the FIPS
|
|
* certificate.
|
|
*/
|
|
#define FIPS140_MODULE_NAME "Android Kernel Cryptographic Module"
|
|
#define FIPS140_MODULE_VERSION UTS_RELEASE
|
|
|
|
#ifdef CONFIG_CRYPTO_FIPS140_MOD_ERROR_INJECTION
|
|
extern char *fips140_broken_alg;
|
|
#endif
|
|
|
|
extern struct completion fips140_tests_done;
|
|
extern struct task_struct *fips140_init_thread;
|
|
|
|
bool __init __must_check fips140_run_selftests(void);
|
|
|
|
bool fips140_is_approved_service(const char *name);
|
|
const char *fips140_module_version(void);
|
|
|
|
#endif /* _CRYPTO_FIPS140_MODULE_H */
|