Skip to content

HARP-I/cyber-crypto-practice

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

网络空间安全创新创业实践 (Cyberspace Security Innovation and entrepreneurship practice project)

202000460071 Xiaohan Ni

Status

Project Readme
Do your best to optimize SM3 implementation (software) SM3
Implement the naïve birthday attack of reduced SM3 Hash Collision , Birthday Attack
Implement the Rho method of reduced SM3 Hash Collision , Rho Attack
Implement length extension attack for SM3, SHA256 Length Extend Attack
Implement Merkle Tree following RFC6962 Merkle Tree
Find a key with hash value sdu_cst_20220610 under a message composed of your name followed by your student ID. For example, San Zhan 202000460001. mewo, invertibility
Find a 64-byte message under some $k$ fulfilling that their hash value is symmetrical mewo, symmetry
Other... SM4 , SM2

Build

Python

virtual env

For python, virtual env is recommanded. Type the following command in terminal.

python -m venv venv

Activate the venv

./venv/Script/activate

To exit:

deactivate

Python Library

# provide api for sm3
pip install snowland-smx==0.3.1

C/C++

Generally use CMake(3.5+) to build c/c++ project. Choose your build tools use -G.

mkdir build
cd build
cmake .. -G="MingW Makefiles"
make

Or:

cmake -S . -B build
cmake --build build
  • build\bin: Executable test programs
  • build\lib: Static lib

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 54.6%
  • Python 29.9%
  • C++ 14.0%
  • CMake 1.5%