-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathREADME
55 lines (38 loc) · 1.75 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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.