blob: 003e5ceff825ea59a7ee9c387b5657f3b8440b00 (
plain) (
blame)
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
|
#ifndef _IPXE_HASH_DF_H
#define _IPXE_HASH_DF_H
/** @file
*
* Hash-based derivation function (Hash_df)
*
*/
FILE_LICENCE ( GPL2_OR_LATER );
#include <stdint.h>
#include <ipxe/sha1.h>
/** Use SHA-1 as the underlying hash algorithm
*
* Hash_df using SHA-1 is an Approved algorithm in ANS X9.82.
*/
#define hash_df_algorithm sha1_algorithm
/** Underlying hash algorithm output length (in bytes) */
#define HASH_DF_OUTLEN_BYTES SHA1_DIGEST_SIZE
/** Underlying hash algorithm context size (in bytes) */
#define HASH_DF_CTX_SIZE SHA1_CTX_SIZE
extern void hash_df ( const void *input, size_t input_len, void *output,
size_t output_len );
#endif /* _IPXE_HASH_DF_H */
|