@@ -375,7 +375,7 @@ def get_features(local_wolfssl, features):
375375 features ["WC_RNG_SEED_CB" ] = 1 if '#define WC_RNG_SEED_CB' in defines else 0
376376 features ["AESGCM_STREAM" ] = 1 if '#define WOLFSSL_AESGCM_STREAM' in defines else 0
377377 features ["RSA_PSS" ] = 1 if '#define WC_RSA_PSS' in defines else 0
378- features ["CHACHA20_POLY1305" ] = 1 if '#define HAVE_CHACHA' and '#define HAVE_POLY1305' in defines else 0
378+ features ["CHACHA20_POLY1305" ] = 1 if ( '#define HAVE_CHACHA' in defines and '#define HAVE_POLY1305' in defines ) else 0
379379 features ["ML_DSA" ] = 1 if '#define HAVE_DILITHIUM' in defines else 0
380380 features ["ML_KEM" ] = 1 if '#define WOLFSSL_HAVE_MLKEM' in defines else 0
381381 features ["HKDF" ] = 1 if "#define HAVE_HKDF" in defines else 0
@@ -386,7 +386,7 @@ def get_features(local_wolfssl, features):
386386 raise RuntimeError (e )
387387
388388 features ["FIPS" ] = 1
389- version_match = re .search (r'#define HAVE_FIPS_VERSION\s+(\d+)' , defines )
389+ version_match = re .search (r'#define HAVE_FIPS_VERSION\s+(\d+)' , ' \n ' . join ( defines ) )
390390 if version_match is not None :
391391 features ["FIPS_VERSION" ] = int (version_match .group (1 ))
392392 else :
@@ -756,6 +756,8 @@ def build_ffi(local_wolfssl, features):
756756 int wc_RsaPrivateDecrypt_ex(const byte* in, word32 inLen,
757757 byte* out, word32 outLen, RsaKey* key, int type,
758758 enum wc_HashType hash, int mgf, byte* label, word32 labelSz);
759+ int wc_RsaSSL_Sign(const byte*, word32, byte*, word32, RsaKey*, WC_RNG*);
760+ int wc_RsaSSL_Verify(const byte*, word32, byte*, word32, RsaKey*);
759761 """
760762
761763 if features ["RSA_PSS" ]:
@@ -766,8 +768,6 @@ def build_ffi(local_wolfssl, features):
766768 enum wc_HashType hash, int mgf, RsaKey* key);
767769 int wc_RsaPSS_CheckPadding(const byte* in, word32 inSz, byte* sig,
768770 word32 sigSz, enum wc_HashType hashType);
769- int wc_RsaSSL_Sign(const byte*, word32, byte*, word32, RsaKey*, WC_RNG*);
770- int wc_RsaSSL_Verify(const byte*, word32, byte*, word32, RsaKey*);
771771 """
772772
773773 if features ["RSA_BLINDING" ]:
0 commit comments