1
1
LIBTOMCRYPT RSA DIGITAL SIGNATURES HOW-TO
2
2
3
3
This how-to describes how to implement RSA digital signatures using
4
- LibTomCrypt (and LibTomMath) on Windows.
4
+ LibTomCrypt (and LibTomMath) on Windows and Mac OS X .
5
5
6
6
GETTING STARTED
7
7
@@ -12,42 +12,43 @@ GETTING STARTED
12
12
13
13
2. Patch LibTomCrypt
14
14
15
- git apply patches\ 0001-der-fixes-and-additions.patch
16
- git apply patches\ 0002-dsa-fix-compiler-warning.patch
17
- git apply patches\ 0003-ecc-fix-compiler-warnings.patch
15
+ git apply patches/ 0001-der-fixes-and-additions.patch
16
+ git apply patches/ 0002-dsa-fix-compiler-warning.patch
17
+ git apply patches/ 0003-ecc-fix-compiler-warnings.patch
18
18
19
19
3. Remove unused source files (optional)
20
20
21
- remove_unsued.pl --force
21
+ perl remove_unsued.pl --force
22
22
23
23
4. Build LibTomMath and LibTomCrypt
24
24
25
- nmake -f makefile.msvc
25
+ [n]make [ -f makefile.msvc]
26
26
27
27
5. Generate public/private key pair
28
28
29
- nmake -f makefile.msvc key
29
+ [n]make [ -f makefile.msvc] key
30
30
31
31
6. Run sign and verify examples
32
32
33
- nmake -f makefile.msvc test
33
+ [n]make [ -f makefile.msvc] test
34
34
35
35
7. Have fun!
36
36
37
37
FILES IN THIS DISTRIBUTION
38
38
39
- dertoh.cpp - Utility to convert from DER to C/C++ header file format,
40
- so you can directly include the public key in a C/C++
41
- source file.
39
+ dertoh.cpp - Utility that converts DER to C/C++ header file format, so
40
+ you can directly include the public key in a C/C++ source
41
+ file.
42
42
dertopem.sh - Bash script that uses OpenSSL to convert the public and
43
43
private key pair from DER to PEM file format.
44
44
error.h - Helper routines for rsa_make_key.cpp, rsa_sign.cpp, and
45
45
rsa_verify.cpp.
46
46
LICENSE - License, duh!
47
+ makefile - GCC/Clang makefile.
47
48
makefile.msvc - Microsoft C/C++ makefile.
48
49
patches/ - LibTomCrypt patches.
49
50
README - <-- You are here.
50
- remove_unused.pl - Perl script that removes all unsued LibTomMath and
51
+ remove_unused.pl - Perl script that removes all unused LibTomMath and
51
52
LibTomCrypt files.
52
53
rsa_make_key.cpp - Example that generates a public and private key pair.
53
54
rsa_sign.cpp - Example that signs a message.
0 commit comments