Skip to content

Commit 6617bc7

Browse files
committed
Keep native_object on decapsulate error
1 parent a82393b commit 6617bc7

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

wolfcrypt/ciphers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2032,7 +2032,6 @@ def decapsulate(self, ct):
20322032
)
20332033

20342034
if ret < 0: # pragma: no cover
2035-
self.native_object = None
20362035
raise WolfCryptError("wc_KyberKey_Decapsulate() error (%d)" % ret)
20372036

20382037
return _ffi.buffer(ss, ss_size)[:]

0 commit comments

Comments
 (0)