files should be compiled.
Rev: nettle/testsuite/dsa-keygen-test.c:1.2
Rev: nettle/testsuite/dsa-test.c:1.2
Rev: nettle/testsuite/pkcs1-test.c:1.2
Rev: nettle/testsuite/rsa-encrypt-test.c:1.2
Rev: nettle/testsuite/rsa-keygen-test.c:1.2
Rev: nettle/testsuite/rsa-test.c:1.2
Rev: nettle/testsuite/rsa2sexp-test.c:1.2
Rev: nettle/testsuite/sexp2rsa-test.c:1.2
int
test_main(void)
{
-#if WITH_PUBLIC_KEY
-
struct dsa_public_key pub;
struct dsa_private_key key;
dsa_private_key_clear(&key);
SUCCESS();
-
-#else /* !WITH_PUBLIC_KEY */
- SKIP();
-#endif /* !WITH_PUBLIC_KEY */
}
int
test_main(void)
{
-#if WITH_PUBLIC_KEY
struct dsa_public_key pub;
struct dsa_private_key key;
dsa_private_key_clear(&key);
SUCCESS();
-
-#else /* !WITH_PUBLIC_KEY */
- SKIP();
-#endif /* !WITH_PUBLIC_KEY */
}
#include "testutils.h"
-#if WITH_PUBLIC_KEY
-# include "pkcs1.h"
-#endif
+#include "pkcs1.h"
int
test_main(void)
{
-#if WITH_PUBLIC_KEY
-
uint8_t buffer[16];
uint8_t expected[16] = { 1, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0, 'a', 'b', 'c' };
ASSERT(MEMEQ(sizeof(buffer), buffer, expected));
SUCCESS();
-#else /* !WITH_PUBLIC_KEY */
- SKIP();
-#endif /* !WITH_PUBLIC_KEY */
}
#include "testutils.h"
-#if WITH_PUBLIC_KEY
-# include "rsa.h"
-#endif
-
+#include "rsa.h"
#include "knuth-lfib.h"
int
test_main(void)
{
-#if WITH_PUBLIC_KEY
struct rsa_public_key pub;
struct rsa_private_key key;
struct knuth_lfib_ctx lfib;
mpz_clear(gibberish);
free(decrypted);
SUCCESS();
-
-#else /* !WITH_PUBLIC_KEY */
- SKIP();
-#endif /* !WITH_PUBLIC_KEY */
}
int
test_main(void)
{
-#if WITH_PUBLIC_KEY
-
struct rsa_public_key pub;
struct rsa_private_key key;
mpz_clear(expected);
SUCCESS();
-
-#else /* !WITH_PUBLIC_KEY */
- SKIP();
-#endif /* !WITH_PUBLIC_KEY */
}
int
test_main(void)
{
-#if WITH_PUBLIC_KEY
-
struct rsa_public_key pub;
struct rsa_private_key key;
mpz_clear(expected);
SUCCESS();
-
-#else /* !WITH_PUBLIC_KEY */
- SKIP();
-#endif /* !WITH_PUBLIC_KEY */
}
int
test_main(void)
{
-#if WITH_PUBLIC_KEY
struct rsa_public_key pub;
struct rsa_private_key priv;
rsa_private_key_clear(&priv);
SUCCESS();
-
-#else /* !WITH_PUBLIC_KEY */
- SKIP();
-#endif /* !WITH_PUBLIC_KEY */
}
int
test_main(void)
{
-#if WITH_PUBLIC_KEY
struct rsa_public_key pub;
struct rsa_private_key priv;
rsa_private_key_clear(&priv);
SUCCESS();
-
-#else /* !WITH_PUBLIC_KEY */
- SKIP();
-#endif /* !WITH_PUBLIC_KEY */
}