Skip to content

Commit a8e6a4a

Browse files
committed
Fix code.
Signed-off-by: Guiliano99 <[email protected]>
1 parent 2a4e901 commit a8e6a4a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

oqs/serialize.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ def deserialize_stateful_signature_key(
8888
msg = f"Unsupported stateful signature OID: {oid}"
8989
raise ValueError(msg)
9090

91+
private_key_bytes = one_asym_key["privateKey"].asOctets()
92+
public_key_bytes = one_asym_key["publicKey"].asOctets()
93+
return private_key_bytes, public_key_bytes
94+
9195
def _may_generate_stfl_key(
9296
key_name: str, dir_name: str
9397
) -> tuple[Optional[bytes], Optional[bytes]]:
@@ -112,9 +116,6 @@ def _may_generate_stfl_key(
112116
return private_key_bytes, public_key_bytes
113117

114118
return None, None
115-
private_key_bytes = one_asym_key["privateKey"].asOctets()
116-
public_key_bytes = one_asym_key["publicKey"].asOctets()
117-
return private_key_bytes, public_key_bytes
118119

119120

120121
def gen_or_load_stateful_signature_key(

0 commit comments

Comments
 (0)