ThalesGroup / pycryptoki

Python interface to SafeNet's PKCS11 library implementation
Apache License 2.0
58 stars 22 forks source link

Adding compatibility to other PKCS#11 libraries? #40

Closed Muzosh closed 8 months ago

Muzosh commented 1 year ago

Hello, I love your library but I would love to use it with my own PKCS#11 library. Is this functionality in the scope of this project?

If not, I would like to propose to change repository name, since "pycryptoki" suggests it should load other PKCS#11 libraries. Thanks

astraw38 commented 1 year ago

As much as possible, we try to be P11 compliant -- and we do late binding of calls -> C lib calls. So you can use other libraries if you really wanted to, just you might run into issues based on different implementations of P11 (mostly around constants, templates, extensions, etc).

Support for other implementations is not planned.

hasnainvirk commented 1 year ago

From where we can install SafeNEt Cryptoki lib ?

LudovicRousseau commented 1 year ago

@Muzosh You can have a look at https://github.com/LudovicRousseau/PyKCS11 for another Python wrapper above PKCS#11. It is easy to use with any PKCS#11 library. https://github.com/LudovicRousseau/PyKCS11/blob/master/samples/encrypt.py#L25