2 CFLAGS= -g -I../../include -Wall
4 EXAMPLES=example1 example2 example3 example4
8 example1: example1.o loadkeys.o
9 $(CC) -o example1 example1.o loadkeys.o $(LIBS)
11 example2: example2.o loadkeys.o
12 $(CC) -o example2 example2.o loadkeys.o $(LIBS)
15 $(CC) -o example3 example3.o $(LIBS)
18 $(CC) -o example4 example4.o $(LIBS)
25 @echo Example 1 Demonstrates the sealing and opening APIs
26 @echo Doing the encrypt side...
27 ./example1 <README >t.t
28 @echo Doing the decrypt side...
29 ./example1 -d <t.t >t.2
35 @echo Example2 Demonstrates rsa encryption and decryption
36 @echo and it should just print \"This the clear text\"
40 @echo Example3 Demonstrates the use of symmetric block ciphers
41 @echo in this case it uses EVP_des_ede3_cbc
42 @echo i.e. triple DES in Cipher Block Chaining mode
43 @echo Doing the encrypt side...
44 ./example3 ThisIsThePassword <README >t.t
45 @echo Doing the decrypt side...
46 ./example3 -d ThisIsThePassword <t.t >t.2
52 @echo Example4 Demonstrates base64 encoding and decoding
53 @echo Doing the encrypt side...
54 ./example4 <README >t.t
55 @echo Doing the decrypt side...
56 ./example4 -d <t.t >t.2