@@ -545,8 +545,8 @@ def build_ffi(local_wolfssl, features):
545545 typedef struct { ...; } OS_Seed;
546546
547547 int wc_InitRng(WC_RNG*);
548- int wc_InitRngNonce(WC_RNG*, byte*, word32);
549- int wc_InitRngNonce_ex(WC_RNG*, byte*, word32, void*, int);
548+ int wc_InitRngNonce(WC_RNG*, const byte*, word32);
549+ int wc_InitRngNonce_ex(WC_RNG*, const byte*, word32, void*, int);
550550 int wc_RNG_GenerateBlock(WC_RNG*, byte*, word32);
551551 int wc_RNG_GenerateByte(WC_RNG*, byte*);
552552 int wc_FreeRng(WC_RNG*);
@@ -1039,10 +1039,12 @@ def build_ffi(local_wolfssl, features):
10391039 RsaKey*, WC_RNG*);
10401040 int wc_RsaPublicEncrypt_ex(const byte* in, word32 inLen, byte* out,
10411041 word32 outLen, RsaKey* key, WC_RNG* rng, int type,
1042- enum wc_HashType hash, int mgf, byte* label, word32 labelSz);
1042+ enum wc_HashType hash, int mgf, const byte* label,
1043+ word32 labelSz);
10431044 int wc_RsaPrivateDecrypt_ex(const byte* in, word32 inLen,
10441045 byte* out, word32 outLen, RsaKey* key, int type,
1045- enum wc_HashType hash, int mgf, byte* label, word32 labelSz);
1046+ enum wc_HashType hash, int mgf, const byte* label,
1047+ word32 labelSz);
10461048 int wc_RsaSSL_Sign(const byte*, word32, byte*, word32, RsaKey*, WC_RNG*);
10471049 int wc_RsaSSL_Verify(const byte*, word32, byte*, word32, RsaKey*);
10481050 """
0 commit comments