Skip to content

A simple crate with some cryptographic functions implemented in C++ AND Rust like mirror code.

Notifications You must be signed in to change notification settings

Ergus/cryptography-rust-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Readme

This is a test project that implements the some cryptographic primitives in C++ and Rust and compare results. The main goal of this is to learn (for me) about the cryptographic primitives and the use of big number libraries in C++ and Rust.

Currently this includes only some code to

  1. Generate sha256 hash for strings and generic binary messages.
  2. Generate ECDSA key pairs
  3. Sign a message with the private key.
  4. Validate the signatures given the public keys, the signature and the message.

This does not use any ssl or cryptographic library or rust crate. Only the gmp library for bit integers in C++ and num_bigint for Rust.

TODO: Implement my own bigint library.

About

A simple crate with some cryptographic functions implemented in C++ AND Rust like mirror code.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published