File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -1184,6 +1184,20 @@ def free(self) -> None:
11841184native ().OQS_SIG_STFL_new .restype = ct .POINTER (StatefulSignature )
11851185native ().OQS_SIG_STFL_SECRET_KEY_new .restype = ct .c_void_p
11861186native ().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+ ]
11871201native ().OQS_SIG_STFL_SECRET_KEY_SET_store_cb .argtypes = [ct .c_void_p , ct .c_void_p , ct .c_void_p ]
11881202native ().OQS_SIG_STFL_keypair .argtypes = [ct .POINTER (StatefulSignature ), ct .c_void_p , ct .c_void_p ]
11891203native ().OQS_SIG_STFL_sign .argtypes = [
You can’t perform that action at this time.
0 commit comments