open-quantum-safe / liboqs-python

Python 3 bindings for liboqs
https://openquantumsafe.org/
MIT License
108 stars 39 forks source link

Question: How to vary the signature size? #35

Closed invalidexplorer closed 3 years ago

invalidexplorer commented 3 years ago

Hi, I am a bit confused when it comes to varying the signature size & the key sizes. According to the Liboqs documentation in C, the OQS_SIG_sign should contain the following parameters such as the signature size. What would be the corresponding class/function containing such parameters?

vsoftco commented 3 years ago

@invalidexplorer Not sure I understand. The signature size is fixed for a given sig algorithm, and the wrapper takes care of it automatically. Can you post a code snippet so I understand the issue?

invalidexplorer commented 3 years ago

Hi @vsoftco, I feel I was not able to express my question correctly. What I mean to ask was how can I access the parameters of a signature scheme in the python wrapper

vsoftco commented 3 years ago

You can simply do print(signer.details) to get a dictionary that contains all the signature details. See our example https://github.com/open-quantum-safe/liboqs-python/blob/8bf81666cf992e1ba73c6dee339eca4c3797af82/examples/sig.py#L22