4l3x777 / Magma

GOST 34.12-2018 (GOST 28147-89) x64 asm realization

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GOST 34.12-2018|28147-89 Magma

  • Intel syntax assembler x64 for Windows OS realization

  • Dynamic and static release

Algorithm guide

alt text

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

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

About

GOST 34.12-2018 (GOST 28147-89) x64 asm realization

License:GNU General Public License v3.0


Languages

Language:C++ 52.4%Language:CMake 20.5%Language:Assembly 18.8%Language:C 8.3%