pkcs11.net

beta
23 Recommendations
40 Downloads (This Week)
Last Update:
  Browse Code SVN Repository

Description

Pkcs11 wrapper for .Net, written in C#. Supported Methods: TokeInfo/SlotInfo, Open/Close Session, Login/Logout, Find Objects, Digest, Sign/Verify, Encrypt/Decrypt

pkcs11.net Web Site

Categories

License

MIT License

Features

  • you can use any cryptoki library (gclib.dll, siecap11.dll etc..)
  • initialize token, manage session, digest sign
  • similar to iaikwrapper

Update Notifications





User Ratings

 
 
23
3
Write a Review

User Reviews

  • Posted by Thomas 2012-11-04

    pkcs11net, easy to use

  • Posted by OpenID User 2012-10-16

    I build with AnyCpu for using 64 bit drivers(like siecap11.dll). But most of functions failed. Did anyone try with 64bit drivers? I solved it:) Just change the like this; [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode,Pack=1)] public struct CK_ATTRIBUTE{ public uint atype; public IntPtr pValue; public uint ulValueLen; }

  • Posted by Chris 2012-04-18

    Super tool, but some major bugs. All delegates must use Cdecl calling convention (add [UnmanagedFunctionPointer(CallingConvention.Cdecl)]). All marshalled structs must not be aligned (edit [StructLayout(LayoutKind.Sequential,Pack=1)]. Some functions alloc memory with Marshal.AllocHGlobal(..) and that memory is never reclaimed (solvable with an IntPtr wrapper class which keeps track of all allocs and frees the memory when the finalizer gets called). Tested with IKey, Gemalto and Feitian token. Works perfect now!

  • Posted by Henry 2012-03-26

    Great tool

  • Posted by Hoài Linh Nguyễn 2012-01-11

    I can not get TokenInfo in Token because it throw System.FormatException: "Input string is not in a correct format", ncryptoki can get correct TokenInfo but I have to buy license. :D Sorry, I get the latest in SVN and it work. That version in SVN is 1.1 and current version in download is 1.0. Thank for great wrapper. I try to get object is container name in VENDOR_DEFINED + address, it's work well when use in C++ and NCryptoki, but pkcs11.net return 3 null objects, there're 3 objects but they aren't null at all. It contains more info in that. When I test with other address, it gets nothing (that's right).

  • Posted by Michael Zarlenga 2011-03-13

    Works well, but documentation is terrible. Drop the .dll into .NET Reflector and browse to the tests for code usage examples.

Read more reviews

Additional Project Details

Intended Audience

Developers

Programming Language

C#

Registered

2009-09-07

Icons must be PNG, GIF, or JPEG and less than 1 MiB in size. They will be displayed as 48x48 images.