|
1 | 1 | #include <string.h> |
| 2 | +#include <stdio.h> |
2 | 3 | #include "hss.h" |
3 | 4 | #include "hss_internal.h" |
4 | 5 | #include "endian.h" |
@@ -77,7 +78,7 @@ static bool unmap(param_set_t *a, |
77 | 78 | * so we try to make it as small as possible |
78 | 79 | */ |
79 | 80 | bool hss_compress_param_set( unsigned char *compressed, |
80 | | - int levels, |
| 81 | + int levels, |
81 | 82 | const param_set_t *lm_type, |
82 | 83 | const param_set_t *lm_ots_type, |
83 | 84 | size_t len_compressed ) { |
@@ -119,7 +120,7 @@ bool hss_compress_param_set( unsigned char *compressed, |
119 | 120 | * and lm_ots_type[] will be set to the lm/ots parameter sets |
120 | 121 | * |
121 | 122 | * 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 |
123 | 124 | */ |
124 | 125 | bool hss_get_parameter_set( unsigned *levels, |
125 | 126 | param_set_t lm_type[ MAX_HSS_LEVELS ], |
@@ -240,7 +241,7 @@ int get_level0_lm_hash_len( const unsigned char *private_key ) { |
240 | 241 | /* Look up the compressed parameter set format */ |
241 | 242 | unsigned char c = private_key[PRIVATE_KEY_PARAM_SET]; |
242 | 243 | param_set_t lm = c; |
243 | | - if (!unmap( &lm, lm_map )) return 0; |
| 244 | + if (!unmap( &lm, lm_map )) return 0; |
244 | 245 | unsigned n; |
245 | 246 | if (!lm_look_up_parameter_set(lm, 0, &n, 0)) return 0; |
246 | 247 | return n; |
|
0 commit comments