You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
export_secret_key from StatefulSignature: TypeError: LoadLibrary() argument 1 must be str, not None #136
On my Python configuration (Windows 11, Python 3.14.4 32 bits, my own oqs.dll), the export_secret_key method applied on Stateful Signature algo returns the error "TypeError: LoadLibrary() argument 1 must be str, not None" on this line: ct.CDLL(ct.util.find_library("c")).free(buf_ptr) ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
Actually, the example stfl_sig.py fails when removing the comment line 33: # secret_key = signer.export_secret_key()
Another remark: with Python 3.14.4 64 bits, the same function 'export_secret_key' in StatefulSignature (with algo class fails "ctypes.ArgumentError: argument 3: OverflowError: int too long to convert" at this line when running the stfl_sig.py example: rc = native().OQS_SIG_STFL_SECRET_KEY_serialize( ct.byref(buf_ptr), ct.byref(buf_len), self._secret_key )
Activity
fjumelle commentedon May 7, 2026
Another remark: with Python 3.14.4 64 bits, the same function 'export_secret_key' in StatefulSignature (with algo class fails "ctypes.ArgumentError: argument 3: OverflowError: int too long to convert" at this line when running the stfl_sig.py example:
rc = native().OQS_SIG_STFL_SECRET_KEY_serialize( ct.byref(buf_ptr), ct.byref(buf_len), self._secret_key )dstebila commentedon May 14, 2026
@fjumelle Could you check if the changes in #141 address your issues?
Fix StatefulSignature.export_secret_key TypeErrors on Windows (#141)
fjumelle commentedon May 15, 2026
@dstebila I confirm that all is now fine.