INNER CODE UNIT · Python
get_enabled_kem_mechanisms
open-quantum-safe/liboqs-python · oqs/oqs.py:592
def get_enabled_kem_mechanisms() -> tuple[str, ...]:
"""Return the list of enabled KEM mechanisms."""
return _enabled_KEMs
def get_supported_kem_mechanisms() -> tuple[str, ...]:
"""Return the list of supported KEM mechanisms."""
return _supported_KEMs
# Register the OQS_SIG_supports_ctx_str function from the C library
native().OQS_SIG_supports_ctx_str.restype = ct.c_bool
native().OQS_SIG_supports_ctx_str.argtypes = [ct.c_char_p]
class Signature(ct.Structure):
"""
An OQS Signature wraps native/C liboqs OQS_SIG structs.