@@ -111,8 +111,8 @@ static void compress_and_compare(char *key, char *value)
111
111
112
112
out_comp_buf = new uint8_t [OUT_COMP_BUF_SIZE];
113
113
buffer = new uint8_t [BUFFER_LEN];
114
- input_buf = new uint8_t [BUFFER_LEN * 4 ];
115
114
temp_buf = new uint8_t [BUFFER_LEN * 2 ];
115
+ input_buf = new uint8_t [BUFFER_LEN * 4 ];
116
116
117
117
/* At the begining of step 2 load trng buffer from step 1*/
118
118
if (strcmp (key, MSG_TRNG_TEST_STEP2) == 0 ) {
@@ -149,7 +149,7 @@ static void compress_and_compare(char *key, char *value)
149
149
TEST_ASSERT_MESSAGE (comp_sz > BUFFER_LEN,
150
150
" TRNG_TEST_STEP1: trng_get_bytes was able to compress thus not random" );
151
151
152
- /* pithy_Compress will try to compress the random data with a different buffer sizem */
152
+ /* pithy_Compress will try to compress the random data with a different buffer size */
153
153
result = fill_buffer_trng (temp_buf, &trng_obj, TEMP_BUF_SIZE);
154
154
TEST_ASSERT_EQUAL (0 , result);
155
155
@@ -158,7 +158,7 @@ static void compress_and_compare(char *key, char *value)
158
158
(char *)out_comp_buf,
159
159
OUT_COMP_BUF_SIZE,
160
160
9 );
161
- if (comp_sz <= BUFFER_LEN ){
161
+ if (comp_sz <= TEMP_BUF_SIZE ){
162
162
print_array (temp_buf, TEMP_BUF_SIZE);
163
163
}
164
164
TEST_ASSERT_MESSAGE (comp_sz > TEMP_BUF_SIZE,
0 commit comments