sha1-ppc.pl: shave off one cycle from BODY_20_39
[openssl.git] / demos / maurice / Makefile
index c05039850a9340033ae61c7ea83b0a4009e0c5d8..f9bf62276e83ad2bba25c0b2450efa613041c1d3 100644 (file)
@@ -1,5 +1,5 @@
 CC=cc
-CFLAGS= -g -I../../include
+CFLAGS= -g -I../../include -Wall
 LIBS=  -L../.. -lcrypto
 EXAMPLES=example1 example2 example3 example4
 
@@ -20,3 +20,40 @@ example4: example4.o
 clean: 
        rm -f $(EXAMPLES) *.o
 
+test: all
+       @echo
+       @echo Example 1 Demonstrates the sealing and opening APIs
+       @echo Doing the encrypt side...
+       ./example1 <README >t.t
+       @echo Doing the decrypt side...
+       ./example1 -d <t.t >t.2
+       diff t.2 README
+       rm -f t.t t.2
+       @echo  example1 is OK
+
+       @echo
+       @echo Example2 Demonstrates rsa encryption and decryption
+       @echo   and it should just print \"This the clear text\"
+       ./example2
+
+       @echo
+       @echo Example3 Demonstrates the use of symmetric block ciphers
+       @echo in this case it uses EVP_des_ede3_cbc
+       @echo i.e. triple DES in Cipher Block Chaining mode
+       @echo Doing the encrypt side...
+       ./example3 ThisIsThePassword <README >t.t
+       @echo Doing the decrypt side...
+       ./example3 -d ThisIsThePassword <t.t >t.2
+       diff t.2 README
+       rm -f t.t t.2
+       @echo  example3 is OK
+
+       @echo
+       @echo Example4 Demonstrates base64 encoding and decoding
+       @echo Doing the encrypt side...
+       ./example4 <README >t.t
+       @echo Doing the decrypt side...
+       ./example4 -d <t.t >t.2
+       diff t.2 README
+       rm -f t.t t.2
+       @echo example4 is OK