mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 19:54:40 +02:00
Fixes for configure used in wolfssl-examples/signature/rsa_vfy_only and fix for wrong WOLFSSL_MP_PUBLIC defines.
./configure CFLAGS=-DWOLFSSL_PUBLIC_MP --disable-asn --disable-filesystem --enable-static --enable-shared --enable-cryptonly --enable-sp=smallrsa2048 --enable-sp-math --disable-dh --disable-ecc --disable-sha224 --enable-rsavfy
This commit is contained in:
@@ -71,6 +71,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if !defined(WOLFSSL_SP_MATH)
|
||||||
int get_digit_count(mp_int* a)
|
int get_digit_count(mp_int* a)
|
||||||
{
|
{
|
||||||
if (a == NULL)
|
if (a == NULL)
|
||||||
@@ -78,6 +79,7 @@ int get_digit_count(mp_int* a)
|
|||||||
|
|
||||||
return a->used;
|
return a->used;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
mp_digit get_digit(mp_int* a, int n)
|
mp_digit get_digit(mp_int* a, int n)
|
||||||
{
|
{
|
||||||
|
@@ -11587,7 +11587,7 @@ int rsa_test(void)
|
|||||||
#if defined(HAVE_NTRU)
|
#if defined(HAVE_NTRU)
|
||||||
RsaKey caKey;
|
RsaKey caKey;
|
||||||
#endif
|
#endif
|
||||||
#if !defined(WOLFSSL_RSA_PUBLIC_ONLY) || defined(WOLFSSL_MP_PUBLIC)
|
#if !defined(WOLFSSL_RSA_PUBLIC_ONLY) || defined(WOLFSSL_PUBLIC_MP)
|
||||||
word32 idx = 0;
|
word32 idx = 0;
|
||||||
const char* inStr = "Everyone gets Friday off.";
|
const char* inStr = "Everyone gets Friday off.";
|
||||||
word32 inLen = (word32)XSTRLEN((char*)inStr);
|
word32 inLen = (word32)XSTRLEN((char*)inStr);
|
||||||
@@ -11607,7 +11607,7 @@ int rsa_test(void)
|
|||||||
DecodedCert cert;
|
DecodedCert cert;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(WOLFSSL_RSA_PUBLIC_ONLY) || defined(WOLFSSL_MP_PUBLIC)
|
#if !defined(WOLFSSL_RSA_PUBLIC_ONLY) || defined(WOLFSSL_PUBLIC_MP)
|
||||||
DECLARE_VAR_INIT(in, byte, inLen, inStr, HEAP_HINT);
|
DECLARE_VAR_INIT(in, byte, inLen, inStr, HEAP_HINT);
|
||||||
DECLARE_VAR(out, byte, RSA_TEST_BYTES, HEAP_HINT);
|
DECLARE_VAR(out, byte, RSA_TEST_BYTES, HEAP_HINT);
|
||||||
DECLARE_VAR(plain, byte, RSA_TEST_BYTES, HEAP_HINT);
|
DECLARE_VAR(plain, byte, RSA_TEST_BYTES, HEAP_HINT);
|
||||||
@@ -11802,7 +11802,7 @@ int rsa_test(void)
|
|||||||
}
|
}
|
||||||
TEST_SLEEP();
|
TEST_SLEEP();
|
||||||
|
|
||||||
#elif defined(WOLFSSL_MP_PUBLIC)
|
#elif defined(WOLFSSL_PUBLIC_MP)
|
||||||
(void)outSz;
|
(void)outSz;
|
||||||
(void)inLen;
|
(void)inLen;
|
||||||
(void)res;
|
(void)res;
|
||||||
@@ -11846,7 +11846,7 @@ int rsa_test(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(WOLFSSL_RSA_PUBLIC_ONLY) || defined(WOLFSSL_MP_PUBLIC)
|
#if !defined(WOLFSSL_RSA_PUBLIC_ONLY) || defined(WOLFSSL_PUBLIC_MP)
|
||||||
idx = (word32)ret;
|
idx = (word32)ret;
|
||||||
XMEMSET(plain, 0, plainSz);
|
XMEMSET(plain, 0, plainSz);
|
||||||
do {
|
do {
|
||||||
|
Reference in New Issue
Block a user