Skip to content

Commit

Permalink
Update oqs.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vsoftco committed Oct 12, 2023
1 parent 3d2c536 commit 9f74aa6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions oqs/oqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ 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:
if path:
lib = dll.LoadLibrary(path)
return lib

raise RuntimeError("No liboqs shared libraries found")
raise RuntimeError("No " + name + " shared libraries found")


try:
Expand Down Expand Up @@ -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"

Expand Down

0 comments on commit 9f74aa6

Please sign in to comment.