diff --git a/oqs/oqs.py b/oqs/oqs.py index 33b41ad..d81153a 100644 --- a/oqs/oqs.py +++ b/oqs/oqs.py @@ -24,8 +24,8 @@ def _load_shared_obj(name): paths = [] # search typical locations - paths += [ctu.find_library("oqs")] - paths += [ctu.find_library("liboqs")] + paths += [ctu.find_library(name)] + paths += [ctu.find_library("lib" + name)] dll = ct.windll if platform.system() == "Windows" else ct.cdll for path in paths: @@ -33,7 +33,7 @@ def _load_shared_obj(name): lib = dll.LoadLibrary(path) return lib - raise RuntimeError("No liboqs shared libraries found") + raise RuntimeError("No " + name + " shared libraries found") try: @@ -93,6 +93,7 @@ def __init__(self, alg_name): """ :param alg_name: requested algorithm name. """ + super().__init__(alg_name) self.alg_name = alg_name self.message = alg_name + " is supported but not enabled by OQS"