diff options
author | jbj <devnull@localhost> | 2002-06-15 18:49:02 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2002-06-15 18:49:02 +0000 |
commit | 1412d46c3c97f5fb6d8dcf46a827529800a33a96 (patch) | |
tree | ccd51413cbd6f9e5230b9c73ca785c755532b976 /beecrypt/tests | |
parent | ba1865e6077d3cbc1d877e1c711bd27503c4a5bc (diff) | |
download | librpm-tizen-1412d46c3c97f5fb6d8dcf46a827529800a33a96.tar.gz librpm-tizen-1412d46c3c97f5fb6d8dcf46a827529800a33a96.tar.bz2 librpm-tizen-1412d46c3c97f5fb6d8dcf46a827529800a33a96.zip |
Make check and splint clean.
Don't install fooopt files, they are merely ASM_FOO switches.
Don't install beecrypt.{api,win}.h
Get rid of autocruft files in CVS.
CVS patchset: 5490
CVS date: 2002/06/15 18:49:02
Diffstat (limited to 'beecrypt/tests')
-rw-r--r-- | beecrypt/tests/Makefile.in | 7 | ||||
-rw-r--r-- | beecrypt/tests/beetest.c | 40 |
2 files changed, 26 insertions, 21 deletions
diff --git a/beecrypt/tests/Makefile.in b/beecrypt/tests/Makefile.in index 17485bc47..000ed45c3 100644 --- a/beecrypt/tests/Makefile.in +++ b/beecrypt/tests/Makefile.in @@ -80,12 +80,8 @@ POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : -build_alias = @build_alias@ -build_triplet = @build@ host_alias = @host_alias@ host_triplet = @host@ -target_alias = @target_alias@ -target_triplet = @target@ EXEEXT = @EXEEXT@ OBJEXT = @OBJEXT@ @@ -95,13 +91,12 @@ AS = @AS@ AWK = @AWK@ CC = @CC@ CPP = @CPP@ +CXX = @CXX@ DEPDIR = @DEPDIR@ DLLTOOL = @DLLTOOL@ ECHO = @ECHO@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LD = @LD@ LIBTOOL = @LIBTOOL@ -LIBTOOL_DEPS = @LIBTOOL_DEPS@ LN_S = @LN_S@ OBJDUMP = @OBJDUMP@ PACKAGE = @PACKAGE@ diff --git a/beecrypt/tests/beetest.c b/beecrypt/tests/beetest.c index ad4172b95..705051355 100644 --- a/beecrypt/tests/beetest.c +++ b/beecrypt/tests/beetest.c @@ -43,20 +43,21 @@ #include "debug.h" -/*@unused@*/ /*@observer@*/ +/*@unchecked@*/ /*@observer@*/ static const char* dsa_p = "8df2a494492276aa3d25759bb06869cbeac0d83afb8d0cf7cbb8324f0d7882e5d0762fc5b7210eafc2e9adac32ab7aac49693dfbf83724c2ec0736ee31c80291"; -/*@unused@*/ /*@observer@*/ +/*@unchecked@*/ /*@observer@*/ static const char* dsa_q = "c773218c737ec8ee993b4f2ded30f48edace915f"; -/*@unused@*/ /*@observer@*/ +/*@unchecked@*/ /*@observer@*/ static const char* dsa_g = "626d027839ea0a13413163a55b4cb500299d5522956cefcb3bff10f399ce2c2e71cb9de5fa24babf58e5b79521925c9cc42e9f6f464b088cc572af53e6d78802"; -/*@unused@*/ /*@observer@*/ +/*@unchecked@*/ /*@observer@*/ static const char* dsa_x = "2070b3223dba372fde1c0ffc7b2e3b498b260614"; -/*@unused@*/ /*@observer@*/ +/*@unchecked@*/ /*@observer@*/ static const char* dsa_y = "19131871d75b1612a819f29d78d1b0d7346f7aa77bb62a859bfd6c5675da9d212d3a36ef1672ef660b8c7c255cc0ec74858fba33f44c06699630a76b030ee333"; -/*@unused@*/ /*@observer@*/ +/*@unchecked@*/ /*@observer@*/ static const char* elg_n = "8df2a494492276aa3d25759bb06869cbeac0d83afb8d0cf7cbb8324f0d7882e5d0762fc5b7210eafc2e9adac32ab7aac49693dfbf83724c2ec0736ee31c80290"; -/*@unused@*/ static int testVectorInvMod(const dlkp_p* keypair) +/*@unused@*/ +static int testVectorInvMod(const dlkp_p* keypair) /*@*/ { randomGeneratorContext rngc; @@ -91,7 +92,8 @@ static const char* elg_n = "8df2a494492276aa3d25759bb06869cbeac0d83afb8d0cf7cbb8 return -1; } -/*@unused@*/ static int testVectorExpMod(const dlkp_p* keypair) +/*@unused@*/ +static int testVectorExpMod(const dlkp_p* keypair) /*@*/ { int rc; @@ -108,7 +110,8 @@ static const char* elg_n = "8df2a494492276aa3d25759bb06869cbeac0d83afb8d0cf7cbb8 return rc; } -/*@unused@*/ static int testVectorDSA(const dlkp_p* keypair) +/*@unused@*/ +static int testVectorDSA(const dlkp_p* keypair) /*@*/ { int rc = 0; @@ -148,7 +151,8 @@ static const char* elg_n = "8df2a494492276aa3d25759bb06869cbeac0d83afb8d0cf7cbb8 return rc; } -/*@unused@*/ static int testVectorElGamalV1(const dlkp_p* keypair) +/*@unused@*/ +static int testVectorElGamalV1(const dlkp_p* keypair) /*@*/ { int rc = 0; @@ -188,7 +192,8 @@ static const char* elg_n = "8df2a494492276aa3d25759bb06869cbeac0d83afb8d0cf7cbb8 return rc; } -/*@unused@*/ static int testVectorElGamalV3(const dlkp_p* keypair) +/*@unused@*/ +static int testVectorElGamalV3(const dlkp_p* keypair) /*@*/ { int rc = 0; @@ -286,7 +291,8 @@ static int testVectorDHAES(const dlkp_p* keypair) } #endif -/*@unused@*/ static int testVectorRSA(void) +/*@unused@*/ +static int testVectorRSA(void) /*@globals fileSystem @*/ /*@modifies fileSystem @*/ { @@ -333,7 +339,8 @@ static int testVectorDHAES(const dlkp_p* keypair) return -1; } -/*@unused@*/ static int testVectorDLDP(void) +/*@unused@*/ +static int testVectorDLDP(void) /*@*/ { /* try generating dldp_p parameters, then see if the order of the generator is okay */ @@ -370,7 +377,8 @@ static int testVectorDHAES(const dlkp_p* keypair) return 0; } -/*@unused@*/ static int testVectorMD5(void) +/*@unused@*/ +static int testVectorMD5(void) /*@*/ { uint32 expect[4] = { 0x90015098, 0x3cd24fb0, 0xd6963f7d, 0x28e17f72 }; @@ -386,7 +394,8 @@ static int testVectorDHAES(const dlkp_p* keypair) return mp32eq(4, expect, digest); } -/*@unused@*/ static int testVectorSHA1(void) +/*@unused@*/ +static int testVectorSHA1(void) /*@*/ { uint32 expect[5] = { 0xA9993E36, 0x4706816A, 0xBA3E2571, 0x7850C26C, 0x9CD0D89D }; @@ -420,6 +429,7 @@ static int testVectorDHAES(const dlkp_p* keypair) return mp32eq(8, expect, digest); } +/*@unchecked@*/ static uint32 keyValue[] = { 0x00010203, |