|
@@ -87,7 +87,7 @@ struct hmac_drbg_test_instantiate {
|
87
|
87
|
key, value ) \
|
88
|
88
|
static const uint8_t name ## _key [] = key; \
|
89
|
89
|
static const uint8_t name ## _value [] = value; \
|
90
|
|
- static const struct hmac_drbg_test_instantiate name = { \
|
|
90
|
+ static struct hmac_drbg_test_instantiate name = { \
|
91
|
91
|
.hash = HMAC_DRBG_HASH ( hmac_drbg ), \
|
92
|
92
|
.out_len = HMAC_DRBG_OUTLEN_BYTES ( hmac_drbg ), \
|
93
|
93
|
.entropy = entropy_array, \
|
|
@@ -169,7 +169,7 @@ struct hmac_drbg_test_reseed {
|
169
|
169
|
additional_array, key, value ) \
|
170
|
170
|
static const uint8_t name ## _key [] = key; \
|
171
|
171
|
static const uint8_t name ## _value [] = value; \
|
172
|
|
- static const struct hmac_drbg_test_reseed name = { \
|
|
172
|
+ static struct hmac_drbg_test_reseed name = { \
|
173
|
173
|
.hash = HMAC_DRBG_HASH ( hmac_drbg ), \
|
174
|
174
|
.out_len = HMAC_DRBG_OUTLEN_BYTES ( hmac_drbg ), \
|
175
|
175
|
.entropy = entropy_array, \
|
|
@@ -240,7 +240,7 @@ struct hmac_drbg_test_generate {
|
240
|
240
|
static const uint8_t name ## _key [] = key; \
|
241
|
241
|
static const uint8_t name ## _value [] = value; \
|
242
|
242
|
static const uint8_t name ## _data [] = data; \
|
243
|
|
- static const struct hmac_drbg_test_generate name = { \
|
|
243
|
+ static struct hmac_drbg_test_generate name = { \
|
244
|
244
|
.hash = HMAC_DRBG_HASH ( hmac_drbg ), \
|
245
|
245
|
.out_len = HMAC_DRBG_OUTLEN_BYTES ( hmac_drbg ), \
|
246
|
246
|
.additional = additional_array, \
|
|
@@ -300,7 +300,7 @@ struct hmac_drbg_test_generate_fail {
|
300
|
300
|
*/
|
301
|
301
|
#define HMAC_DRBG_TEST_GENERATE_FAIL( name, hmac_drbg, \
|
302
|
302
|
additional_array, len ) \
|
303
|
|
- static const struct hmac_drbg_test_generate_fail name = { \
|
|
303
|
+ static struct hmac_drbg_test_generate_fail name = { \
|
304
|
304
|
.hash = HMAC_DRBG_HASH ( hmac_drbg ), \
|
305
|
305
|
.additional = additional_array, \
|
306
|
306
|
.additional_len = sizeof ( additional_array ), \
|