File tree 3 files changed +8
-8
lines changed
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ GOST_Magma_Expand_Key(const uint8_t *key)
173
173
}
174
174
175
175
void
176
- GOST_Magma_Encript (const uint8_t * blk , uint8_t * out_blk )
176
+ GOST_Magma_Encrypt (const uint8_t * blk , uint8_t * out_blk )
177
177
{
178
178
#ifdef DEBUG_MODE
179
179
printf ("Text:\n" );
@@ -187,13 +187,13 @@ GOST_Magma_Encript(const uint8_t *blk, uint8_t *out_blk)
187
187
GOST_Magma_G_Fin (iter_key [31 ], out_blk , out_blk );
188
188
189
189
#ifdef DEBUG_MODE
190
- printf ("Encripted text:\n" );
190
+ printf ("Encrypted text:\n" );
191
191
GOST_Magma_Blk_8_PrintDebug (out_blk );
192
192
#endif
193
193
}
194
194
195
195
void
196
- GOST_Magma_Decript (const uint8_t * blk , uint8_t * out_blk )
196
+ GOST_Magma_Decrypt (const uint8_t * blk , uint8_t * out_blk )
197
197
{
198
198
#ifdef DEBUG_MODE
199
199
printf ("Gipher text:\n" );
@@ -207,7 +207,7 @@ GOST_Magma_Decript(const uint8_t *blk, uint8_t *out_blk)
207
207
GOST_Magma_G_Fin (iter_key [0 ], out_blk , out_blk );
208
208
209
209
#ifdef DEBUG_MODE
210
- printf ("Decripted text:\n" );
210
+ printf ("Decrypted text:\n" );
211
211
GOST_Magma_Blk_8_PrintDebug (out_blk );
212
212
#endif
213
213
}
Original file line number Diff line number Diff line change 16
16
GOST_Magma_Expand_Key (const uint8_t * key );
17
17
18
18
void
19
- GOST_Magma_Encript (const uint8_t * blk , uint8_t * out_blk );
19
+ GOST_Magma_Encrypt (const uint8_t * blk , uint8_t * out_blk );
20
20
21
21
void
22
- GOST_Magma_Decript (const uint8_t * blk , uint8_t * out_blk );
22
+ GOST_Magma_Decrypt (const uint8_t * blk , uint8_t * out_blk );
23
23
24
24
#endif // MAGMA_CALC_H
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ int main(int argc, char *argv[])
5
5
{
6
6
uint8_t out_blk [4 ];
7
7
GOST_Magma_Expand_Key (test_key );
8
- GOST_Magma_Encript (encrypt_test_string , out_blk );
9
- GOST_Magma_Decript (decrypt_test_string , out_blk );
8
+ GOST_Magma_Encrypt (encrypt_test_string , out_blk );
9
+ GOST_Magma_Decrypt (decrypt_test_string , out_blk );
10
10
return 0 ;
11
11
}
You can’t perform that action at this time.
0 commit comments