INNER CODE UNIT · Python

KeyEncapsulation

open-quantum-safe/liboqs-python · oqs/oqs.py:367

class KeyEncapsulation(ct.Structure):
    """
    An OQS KeyEncapsulation wraps native/C liboqs OQS_KEM structs.

    The wrapper maps methods to the C equivalent as follows:

    Python                 |  C liboqs
    -------------------------------
    generate_keypair      |  keypair
    generate_keypair_seed |  keypair
    encap_secret          |  encaps
    decap_secret          |  decaps
    free                  |  OQS_KEM_free
    """

    _fields_: ClassVar[Sequence[tuple[str, Any]]] = [
        ("method_name", ct.c_char_p),
        ("alg_version", ct.c_char_p),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…