Add --fips-key configuration parameter to fipsinstall application.
[openssl.git] / include / openssl / fipskey.h.in
1 /*
2  * {- join("\n * ", @autowarntext) -}
3  *
4  * Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
5  *
6  * Licensed under the Apache License 2.0 (the "License").  You may not use
7  * this file except in compliance with the License.  You can obtain a copy
8  * in the file LICENSE in the source distribution or at
9  * https://www.openssl.org/source/license.html
10  */
11
12 #ifndef OPENSSL_FIPSKEY_H
13 # define OPENSSL_FIPSKEY_H
14
15 # ifdef  __cplusplus
16 extern "C" {
17 # endif
18
19 /*
20  * The FIPS validation HMAC key, usable as an array initializer.
21  */
22 #define FIPS_KEY_ELEMENTS \
23     {- join(', ', map { "0x$_" } unpack("(A2)*", $config{FIPSKEY})) -}
24
25 /*
26  * The FIPS validation key, as a string.
27  */
28 #define FIPS_KEY_STRING "{- $config{FIPSKEY} -}"
29
30 #endif