Skip to content

Commit 96911ed

Browse files
authored
Add files via upload
1 parent 677b9e5 commit 96911ed

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

magma_calc.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ GOST_Magma_Expand_Key(const uint8_t *key)
173173
}
174174

175175
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)
177177
{
178178
#ifdef DEBUG_MODE
179179
printf("Text:\n");
@@ -187,13 +187,13 @@ GOST_Magma_Encript(const uint8_t *blk, uint8_t *out_blk)
187187
GOST_Magma_G_Fin(iter_key[31], out_blk, out_blk);
188188

189189
#ifdef DEBUG_MODE
190-
printf("Encripted text:\n");
190+
printf("Encrypted text:\n");
191191
GOST_Magma_Blk_8_PrintDebug(out_blk);
192192
#endif
193193
}
194194

195195
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)
197197
{
198198
#ifdef DEBUG_MODE
199199
printf("Gipher text:\n");
@@ -207,7 +207,7 @@ GOST_Magma_Decript(const uint8_t *blk, uint8_t *out_blk)
207207
GOST_Magma_G_Fin(iter_key[0], out_blk, out_blk);
208208

209209
#ifdef DEBUG_MODE
210-
printf("Decripted text:\n");
210+
printf("Decrypted text:\n");
211211
GOST_Magma_Blk_8_PrintDebug(out_blk);
212212
#endif
213213
}

magma_calc.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ void
1616
GOST_Magma_Expand_Key(const uint8_t *key);
1717

1818
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);
2020

2121
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);
2323

2424
#endif // MAGMA_CALC_H

main.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ int main(int argc, char *argv[])
55
{
66
uint8_t out_blk[4];
77
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);
1010
return 0;
1111
}

0 commit comments

Comments
 (0)