INNER CODE UNIT · Python

__exit__

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

    def __exit__(
        self,
        exc_type: Union[type[BaseException], None],
        exc_value: Union[BaseException, None],
        traceback: Union[TracebackType, None],
    ) -> None:
        self.free()

    def generate_keypair_seed(self, seed: bytes) -> bytes:
        """
        Generate a new keypair using the provided seed and returns the public key.

        :param seed: A seed to use for key generation.
        If the seed is None, a random seed will be generated.
        """
        if self.length_keypair_seed == 0:
            msg = f"Key generation with seed is not supported. Got {self.alg_name}."
            raise RuntimeError(msg)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…