Module: JWT::PQ::LibOQS
- Extended by:
- FFI::Library
- Defined in:
- lib/jwt/pq/liboqs.rb
Overview
FFI bindings for liboqs signature operations.
Library search order:
1. OQS_LIB environment variable (explicit path)
2. Vendored liboqs (compiled during gem install)
3. System-installed liboqs (via standard library search)
Constant Summary collapse
- OQS_SUCCESS =
0- OQS_ERROR =
-1
Class Method Summary collapse
Class Method Details
.lib_path ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/jwt/pq/liboqs.rb', line 19 def self.lib_path # 1. Explicit path from environment return ENV["OQS_LIB"] if ENV["OQS_LIB"] # 2. Vendored library (compiled during gem install) vendored = vendored_lib_path return vendored if vendored # 3. System library "oqs" end |