Evaluating bids

Csharp Com Library for Digital Signature (xml,pdf) parameters must accept Memorystream and Bytearray

Published on the February 08, 2017 in IT & Programming

About this project

Open

C# Com Interop Library for digitally sig xml and pdf

1) Digital signature mus be performed using USB Token PKCS11  ( Windows Certificate Store )
2) Must accept data as Memorystream/IStream, Byte Array/byte[], also need extra function load, sign and save file on disk
3) PDF must be signed with Itextsharp
4) xml must be signed using transformation c14n
5) com functions will be consumed;compatible with delphi/pascal
6) certificate must be validated before sign ( revogated must be rejected, self signed must be allowed only if requested on parameter )

i have working sample code to sign xml, also pdf, but does not provide code for use with memorystream/istream or byte array/byte[] parameters, only loadfromfile/save to file, "poor quality code, amateur programer"

function sugestions:

int signpdfstream( bool allowselfsigned, string certificateserial, istream pdfdata, int pdfsize, out istream pdfsigneddata, out int pdfsignedsize )

int signpdfbytes( bool allowselfsigned, string certificateserial, byte[] pdfdata, int pdfsize, out byte[] pdfsigneddata, out int pdfsignedsize )

int signpdffile( bool allowselfsigned, string certificateserial, string inputfilename, string outputfilename )


int signxmlstream( bool allowselfsigned, string certificateserial, istream xmldata, int xmlsize, out istream xmlsigneddata, out int xmlsignedsize )

int signxmlbytes( bool allowselfsigned, string certificateserial, byte[] xmldata, int xmlsize, out byte[] xmlsigneddata, out int xmlsignedsize )

int signxmlstring( bool allowselfsigned, string certificateserial, string xmldata, out string xmlsigneddata )

int signxmlfile( bool allowselfsigned, string certificateserial, string unsignedfilename, string signedfilename )

all functions need return an integer enum like, signsucessfull(0), signcertificaterevogated(1), signcertificateexpired(2), signcertificatenotfound(3) and other errors.

I can accept new ideas about functions that can improve code and performace.

Source code must be provided for build with Visual Studio 2013 or 2015

Source code must handle exceptions

Category IT & Programming
Subcategory Other
Project size Small
Is this a project or a position? Project
I currently have I have specifications
Required availability As needed
Experience in this type of projects Yes (I have managed this kind of project before)
API Integrations Other (Other APIs)

Delivery term: Not specified

Skills needed