Skip to content

Commit 8c3eb20

Browse files
committed
Update OQS typing.
Signed-off-by: Guiliano99 <guilianolehmann@live.de>
1 parent a4c99aa commit 8c3eb20

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

oqs/oqs.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,6 +1184,20 @@ def free(self) -> None:
11841184
native().OQS_SIG_STFL_new.restype = ct.POINTER(StatefulSignature)
11851185
native().OQS_SIG_STFL_SECRET_KEY_new.restype = ct.c_void_p
11861186
native().OQS_SIG_STFL_SECRET_KEY_new.argtypes = [ct.c_char_p]
1187+
# Added precise signatures for (de)serialization to avoid ABI issues
1188+
native().OQS_SIG_STFL_SECRET_KEY_serialize.restype = ct.c_int
1189+
native().OQS_SIG_STFL_SECRET_KEY_serialize.argtypes = [
1190+
ct.POINTER(ct.POINTER(ct.c_uint8)),
1191+
ct.POINTER(ct.c_size_t),
1192+
ct.c_void_p,
1193+
]
1194+
native().OQS_SIG_STFL_SECRET_KEY_deserialize.restype = ct.c_int
1195+
native().OQS_SIG_STFL_SECRET_KEY_deserialize.argtypes = [
1196+
ct.c_void_p,
1197+
ct.c_void_p,
1198+
ct.c_size_t,
1199+
ct.c_void_p,
1200+
]
11871201
native().OQS_SIG_STFL_SECRET_KEY_SET_store_cb.argtypes = [ct.c_void_p, ct.c_void_p, ct.c_void_p]
11881202
native().OQS_SIG_STFL_keypair.argtypes = [ct.POINTER(StatefulSignature), ct.c_void_p, ct.c_void_p]
11891203
native().OQS_SIG_STFL_sign.argtypes = [

0 commit comments

Comments
 (0)