Skip to content

Commit f10568e

Browse files
committed
hss_param: Fix missing include
The function hss_get_parameter_set() in hss_param.c uses printf, but does not include stdio.h. Fix this by adding the missing include. Signed-off-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
1 parent afdabc9 commit f10568e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lms-hash-sigs/hss_param.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include <string.h>
2+
#include <stdio.h>
23
#include "hss.h"
34
#include "hss_internal.h"
45
#include "endian.h"
@@ -77,7 +78,7 @@ static bool unmap(param_set_t *a,
7778
* so we try to make it as small as possible
7879
*/
7980
bool hss_compress_param_set( unsigned char *compressed,
80-
int levels,
81+
int levels,
8182
const param_set_t *lm_type,
8283
const param_set_t *lm_ots_type,
8384
size_t len_compressed ) {
@@ -119,7 +120,7 @@ bool hss_compress_param_set( unsigned char *compressed,
119120
* and lm_ots_type[] will be set to the lm/ots parameter sets
120121
*
121122
* On success, this returns true; on failure (can't read the private key, or
122-
* the private key is invalid), returns false
123+
* the private key is invalid), returns false
123124
*/
124125
bool hss_get_parameter_set( unsigned *levels,
125126
param_set_t lm_type[ MAX_HSS_LEVELS ],
@@ -240,7 +241,7 @@ int get_level0_lm_hash_len( const unsigned char *private_key ) {
240241
/* Look up the compressed parameter set format */
241242
unsigned char c = private_key[PRIVATE_KEY_PARAM_SET];
242243
param_set_t lm = c;
243-
if (!unmap( &lm, lm_map )) return 0;
244+
if (!unmap( &lm, lm_map )) return 0;
244245
unsigned n;
245246
if (!lm_look_up_parameter_set(lm, 0, &n, 0)) return 0;
246247
return n;

0 commit comments

Comments
 (0)