iPXE
config_digest_cmd.c
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License as
4  * published by the Free Software Foundation; either version 2 of the
5  * License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful, but
8  * WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10  * General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software
14  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
15  * 02110-1301, USA.
16  *
17  * You can also choose to distribute this program under the terms of
18  * the Unmodified Binary Distribution Licence (as given in the file
19  * COPYING.UBDL), provided that you have satisfied its requirements.
20  */
21 
22 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
23 FILE_SECBOOT ( PERMITTED );
24 
25 #include <config/crypto.h>
26 
27 /** @file
28  *
29  * Digest command configuration
30  *
31  */
32 
34 
35 /* MD4 */
36 #if defined ( CRYPTO_DIGEST_MD4 )
37 REQUIRE_OBJECT ( cmd_md4 );
38 #endif
39 
40 /* MD5 is present by default for historical reasons */
41 
42 /* SHA-1 is present by default for historical reasons */
43 
44 /* SHA-224 */
45 #if defined ( CRYPTO_DIGEST_SHA224 )
46 REQUIRE_OBJECT ( cmd_sha224 );
47 #endif
48 
49 /* SHA-256 */
50 #if defined ( CRYPTO_DIGEST_SHA256 )
51 REQUIRE_OBJECT ( cmd_sha256 );
52 #endif
53 
54 /* SHA-384 */
55 #if defined ( CRYPTO_DIGEST_SHA384 )
56 REQUIRE_OBJECT ( cmd_sha384 );
57 #endif
58 
59 /* SHA-512 */
60 #if defined ( CRYPTO_DIGEST_SHA512 )
61 REQUIRE_OBJECT ( cmd_sha512 );
62 #endif
#define REQUIRE_OBJECT(object)
Require an object.
Definition: compiler.h:202
FILE_SECBOOT(PERMITTED)
PROVIDE_REQUIRING_SYMBOL()
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
Cryptographic configuration.