libpqcrypto python implementation

230 Views Asked by At

I am trying to use the python API in libpqcrypto (https://libpqcrypto.org/index.html). I followed the installation and was able to import it to python but I get an error when I try to run the program.

Traceback (most recent call last):
  File "PQimport.py", line 1, in <module>
    import pqcrypto
  File "/home/libpqcrypto/libpqcrypto-20180314/python/pqcrypto.py", line 218
    %crypto_hash: x += [('PRIMITIVE',CRYPTO_BYTES)]
    ^
SyntaxError: invalid syntax

How do I address this issue?

Thank you.

0

There are 0 best solutions below