Ticket #1 (closed task: fixed)

Opened 2 years ago

Last modified 2 months ago

New (simplified) high level Python interface to PyKCS11

Reported by: midori Assigned to: dfalsdfes
Priority: minor Milestone: M1
Component: pykcs11 Version: 1.0.3.0
Keywords: Cc:

Description (Last modified by admin)

While the current PyKCS11 interface is usefull for testing PKCS#11 modules, it's not so easy to use and is a little too far from the Python way. So a new interface, would be much apreciated.
I.e. something like:

import PyKCS11
try:
   p11wrap = PyKCS11.PyKCS11W()
   p11wrap.Load(lib="p11.dll")
   p11wrap.Login(pin="123456")
   objects = p11wrap.GetObjects(\
                        obj_class=PyKCS11.CKO_PRIVATE_KEY, \
                        objId=None)
   signature = p11wrap.RSASign(key=objects[0], \
                            data="to-be-signed", \
                            hash_algo=None)
    # [...]
    decrypted = p11wrap.RSADecrypt(key=objects[0], data="to-be-decrypted")
    # [...]
except:
  print "Exception:", str(sys.exc_value)

Attachments

Change History

08/09/06 13:36:36 changed by admin

  • description changed.

08/09/06 13:37:07 changed by admin

  • status changed from new to assigned.
  • owner changed from developers to admin.

08/16/06 15:03:30 changed by lrousseau

I completely agree on that.

I diccovered another Python wrapper for PKCS#11 with a higher API. The API is described at http://www.ultraemail.net:8000/~jbj1/pkcs11_readme.txt

I am very new to Python so any help to implement a higher level API is welcome.

08/30/06 11:59:42 changed by lrousseau

  • status changed from assigned to closed.
  • resolution set to fixed.

A new API version is available in Subversion so I close this bug. A new release will be available soon.

09/12/08 15:02:10 changed by admin

  • status changed from reopened to closed.
  • cc deleted.
  • component set to pykcs11.
  • summary changed from alyce to New (simplified) high level Python interface to PyKCS11.
  • keywords deleted.
  • resolution set to fixed.

Add/Change #1 (New (simplified) high level Python interface to PyKCS11)




Action

 
(C) 2006 bit4id srl, for informations please contact info@bit4id.com
visitors since August 21, 2006