@@ -78,13 +78,6 @@ FUZZ_TEST(const uint8_t *data, size_t size) {
78
78
sizeof (uint8_t ) * GetFDP ()->ConsumeIntegral <uint16_t >());
79
79
const uint8_t *message = (const uint8_t *)message_vec.data ();
80
80
81
- // The parameter "len" seems to represent the length of a buffer/array. In
82
- // this case, we usually don't want to provide fuzzer-generated lengths
83
- // that differ from the actual length of the buffer. If you confirm that
84
- // the parameter is a length parameter, you can get the length of the
85
- // fuzzer-generated buffer as follows (replace "buffer" with the actual
86
- // variable):
87
- // int len = buffer.size();
88
81
int len = message_vec.size ();
89
82
crypto_hmac hmac_tmp = {};
90
83
ConsumeDataAndFillRestWithZeros (hmac_tmp.hmac , 64 );
@@ -108,13 +101,6 @@ FUZZ_TEST(const uint8_t *data, size_t size) {
108
101
sizeof (uint8_t ) * GetFDP ()->ConsumeIntegral <uint16_t >());
109
102
const uint8_t *message = (const uint8_t *)message_vec.data ();
110
103
111
- // The parameter "len" seems to represent the length of a buffer/array. In
112
- // this case, we usually don't want to provide fuzzer-generated lengths
113
- // that differ from the actual length of the buffer. If you confirm that
114
- // the parameter is a length parameter, you can get the length of the
115
- // fuzzer-generated buffer as follows (replace "buffer" with the actual
116
- // variable):
117
- // int len = buffer.size();
118
104
int len = message_vec.size ();
119
105
crypto_hmac hmac_tmp = {};
120
106
ConsumeDataAndFillRestWithZeros (hmac_tmp.hmac , 64 );
@@ -169,13 +155,6 @@ FUZZ_TEST(const uint8_t *data, size_t size) {
169
155
sizeof (uint8_t ) * GetFDP ()->ConsumeIntegral <uint16_t >());
170
156
uint8_t *key = (uint8_t *)key_vec.data ();
171
157
172
- // The parameter "length" seems to represent the length of a buffer/array.
173
- // In this case, we usually don't want to provide fuzzer-generated lengths
174
- // that differ from the actual length of the buffer. If you confirm that
175
- // the parameter is a length parameter, you can get the length of the
176
- // fuzzer-generated buffer as follows (replace "buffer" with the actual
177
- // variable):
178
- // uint8_t length = buffer.size();
179
158
uint8_t length = key_vec.size ();
180
159
181
160
key_management_create_key (key, length);
@@ -187,13 +166,6 @@ FUZZ_TEST(const uint8_t *data, size_t size) {
187
166
sizeof (uint8_t ) * GetFDP ()->ConsumeIntegral <uint16_t >());
188
167
uint8_t *nonce = (uint8_t *)nonce_vec.data ();
189
168
190
- // The parameter "length" seems to represent the length of a buffer/array.
191
- // In this case, we usually don't want to provide fuzzer-generated lengths
192
- // that differ from the actual length of the buffer. If you confirm that
193
- // the parameter is a length parameter, you can get the length of the
194
- // fuzzer-generated buffer as follows (replace "buffer" with the actual
195
- // variable):
196
- // uint8_t length = buffer.size();
197
169
uint8_t length = nonce_vec.size ();
198
170
199
171
key_management_create_nonce (nonce, length);
0 commit comments