Giter Site home page Giter Site logo

taletn / libtomcrypt-rsa-howto Goto Github PK

View Code? Open in Web Editor NEW
9.0 4.0 4.0 46 KB

LibTomCrypt RSA digital signatures how-to

License: Other

C++ 34.92% Shell 0.85% C 3.21% Makefile 53.38% Perl 7.64%
libtomcrypt libtommath rsa rsa-key rsa-sign rsa-signature how-to howto rsa-key-pair

libtomcrypt-rsa-howto's Introduction

LIBTOMCRYPT RSA DIGITAL SIGNATURES HOW-TO

This how-to describes how to implement RSA digital signatures using
LibTomCrypt (and LibTomMath) on Windows and macOS.

GETTING STARTED

1. Get LibTomMath and LibTomCrypt

   git clone https://github.com/TaleTN/libtommath.git
   git clone https://github.com/TaleTN/libtomcrypt.git

2. Remove unused source files (optional)

   perl remove_unused.pl --force

3. Build LibTomMath and LibTomCrypt

   [n]make [-f makefile.msvc]

4. Generate public/private key pair

   [n]make [-f makefile.msvc] key

5. Run sign and verify examples

   [n]make [-f makefile.msvc] test

6. Have fun!

FILES IN THIS DISTRIBUTION

dertoh.cpp       - Utility that converts DER to C/C++ header file format, so
                   you can directly include the public key in a C/C++ source
                   file.
dertopem.sh      - Bash script that uses OpenSSL to convert the public and
                   private key pair from DER to PEM file format.
error.h          - Helper routines for rsa_make_key.cpp, rsa_sign.cpp, and
                   rsa_verify.cpp.
LICENSE          - License, duh!
makefile         - GCC/Clang makefile.
makefile.msvc    - Microsoft C/C++ makefile.
README           - <-- You are here.
remove_unused.pl - Perl script that removes all unused LibTomMath and
                   LibTomCrypt files.
rsa_make_key.cpp - Example that generates a public and private key pair.
rsa_sign.cpp     - Example that signs a message.
rsa_verify.cpp   - Example that verifies a signature.

LICENSE

Copyright (C) 2015-2021 Theo Niessink <[email protected]>
This work is free. You can redistribute it and/or modify it under the
terms of the Do What The Fuck You Want To Public License, Version 2,
as published by Sam Hocevar. See the LICENSE file for more details.

libtomcrypt-rsa-howto's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

libtomcrypt-rsa-howto's Issues

Sorry but can you tell me how to use it?

I came across your git while doing a google search to use libtomcrypt on an embedded system.

I want to use libtomcrypt in windows environment.

However, even if I download it from git, I do not have the Visual Studio 2008 version.
Also, other visual studios do not have a version.

I want to get a lib and run it in another program... I'm not sure from your kind explanation.

GETTING STARTED

1. Get LibTomMath and LibTomCrypt - Success โˆš

git clone https://github.com/TaleTN/libtommath.git
git clone https://github.com/TaleTN/libtomcrypt.git

  1. Remove unused source files (optional) - Fail...

    perl remove_unused.pl --force

  2. Build LibTomMath and LibTomCrypt

    [n]make [-f makefile.msvc]

  3. Generate public/private key pair

    [n]make [-f makefile.msvc] key

  4. Run sign and verify examples

    [n]make [-f makefile.msvc] test

  5. Have fun! :(

Can you explain a little more?

I proceeded with step 1 below, and additionally downloaded your git and unzipped it.

The folders I currently have are "libtomcrypt", "libtommath", and "libtomcrypt-rsa-howto".

If you execute "perl remove_unused.pl --force" in step 2, the following error appears.

Can't stat libtommath: No such file or directory
at remove_unused.pl line 54.
Can't stat libtomcrypt: No such file or directory
at remove_unused.pl line 54.

how can i solve it...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.