File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 2222
2323# Create signer and verifier with sample signature mechanisms
2424stfl_sigalg = "XMSS-SHA2_10_256"
25- with StatefulSignature (stfl_sigalg ) as signer , StatefulSignature (stfl_sigalg ) as verifier :
25+ with (
26+ StatefulSignature (stfl_sigalg ) as signer ,
27+ StatefulSignature (stfl_sigalg ) as verifier ,
28+ ):
2629 logger .info ("Signature details:\n %s" , pformat (signer .details ))
2730
2831 # Signer generates its keypair
Original file line number Diff line number Diff line change @@ -53,9 +53,9 @@ def test_sig_with_ctx_support_detection() -> None:
5353 with Signature (alg_name ) as sig :
5454 # Check Python attribute matches C API
5555 c_api_result = native ().OQS_SIG_supports_ctx_str (sig .method_name )
56- assert bool (sig .sig_with_ctx_support ) == bool (c_api_result ), ( # noqa: S101
56+ assert bool (sig .sig_with_ctx_support ) == bool (c_api_result ), (
5757 f"sig_with_ctx_support mismatch for { alg_name } "
58- )
58+ ) # noqa: S101
5959 # If not supported, sign_with_ctx_str should raise
6060 if not sig .sig_with_ctx_support :
6161 try :
Original file line number Diff line number Diff line change 44
55import oqs
66
7- _skip_names = ["LMS_SHA256_H20_W8_H10_W8" , "LMS_SHA256_H20_W8_H15_W8" , "LMS_SHA256_H20_W8_H20_W8" ]
7+ _skip_names = [
8+ "LMS_SHA256_H20_W8_H10_W8" ,
9+ "LMS_SHA256_H20_W8_H15_W8" ,
10+ "LMS_SHA256_H20_W8_H20_W8" ,
11+ ]
812
913
1014# Sigs for which unit testing is disabled
You can’t perform that action at this time.
0 commit comments