https://github.com/4l3x777/magma
GOST 34.12-2018 (GOST 28147-89) x64 asm realization
https://github.com/4l3x777/magma
assembler cipher cryptography
Last synced: about 1 month ago
JSON representation
GOST 34.12-2018 (GOST 28147-89) x64 asm realization
- Host: GitHub
- URL: https://github.com/4l3x777/magma
- Owner: 4l3x777
- License: gpl-3.0
- Created: 2023-11-22T18:31:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-22T20:28:30.000Z (over 2 years ago)
- Last Synced: 2025-02-22T02:15:26.948Z (over 1 year ago)
- Topics: assembler, cipher, cryptography
- Language: C++
- Homepage:
- Size: 566 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GOST ```34.12-2018```|```28147-89``` Magma
+ ```Intel syntax assembler x64``` for Windows OS realization
+ ```Dynamic``` and ```static``` release
### Algorithm guide

### How to use
#### Dynamic
+ copy ```gost_34_12_magma_dynamic.h```
+ copy ```magma_dynamic.dll```
+ copy ```magma_dynamic.lib```
#### Static
+ copy ```gost_34_12_magma_static.h```
+ copy ```magma_static.lib```
### Use in your code
```C++
uint64_t encrypt(uint8_t* byPKey, uint64_t data_block);
uint64_t decrypt(uint8_t* byPKey, uint64_t data_block);
```
### Testing speed (10Mb)
+ C++/C encryption time: 275 milliseconds
+ ASM encryption time: 253 milliseconds
+ ~ same time