Exemple #1
0
    def _ensure_ffi_initialized(cls):
        if cls.lib is not None:
            return

        cls.lib = load_library_for_binding(
            cls.ffi,
            module_prefix=cls._module_prefix,
            modules=cls._modules,
        )
Exemple #2
0
    def _ensure_ffi_initialized(cls):
        if cls.lib is not None:
            return

        cls.lib = load_library_for_binding(
            cls.ffi,
            cls._module_prefix,
            cls._modules,
        )

        res = cls.lib.Cryptography_add_osrandom_engine()
        assert res != 0
Exemple #3
0
    def _ensure_ffi_initialized(cls):
        if cls.lib is not None:
            return

        cls.lib = load_library_for_binding(
            cls.ffi,
            cls._module_prefix,
            cls._modules,
        )

        res = cls.lib.Cryptography_add_osrandom_engine()
        assert res != 0