open-quantum-safe / liboqs-python

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

api-based services with Libqs for testing #41

Closed jhocce closed 2 years ago

jhocce commented 2 years ago

Hello!! I had the following problem at the time of de-encapsulating the key using the methods described in the documentation, creating 2 API services with Django Rest Framework, one to create public_key, ciphertext and another to de-encapsulate using these variables, the problem comes in that at the time of using These variables do not get the client's secret, the result is a different value despite having public_key and correct ciphertext, isn't it okay to do this separately? What am I doing wrong???

post data: I have used "binascii.hexlify / binascii.unhexlify" to send and receive these strings to the frontend