Convert code ''RSA verify function'' to Assembly code

Hello Coders,

We need to convert the following function into assembly code:


bool RSAVerifyBuffer(const char *pubFilename, const char *messageFilename, const char *signatureFilename)


StringSource pubFile(pubFilename, true, new HexDecoder);

RSASSA_PKCS1v15_SHA_Verifier pub(pubFile);

StringSource signatureFile(signatureFilename, true, new HexDecoder);

if ([url removed, login to view]() != [url removed, login to view]())

return false;

SecByteBlock signature([url removed, login to view]());

[url removed, login to view](signature, [url removed, login to view]());

VerifierFilter *verifierFilter = new VerifierFilter(pub);

verifierFilter->Put(signature, [url removed, login to view]());

StringSource f(messageFilename, true, verifierFilter);

return verifierFilter->GetLastResult();



That code is taken from Crypto++ library (we just changed "FileSource" for "StringResource" to work with buffer instead of files). (Note, there is also "LibTomCrypt" which has the rsa_verify function in C, in case you prefer look into that one instead, though you should also need the SHA function)

We don't require the conversion from that C++ code specifically, that is, we just want the function "RSAVerifyBuffer" implemented in Assembly language (you can copy paste code some IDA disassembled code if you want). If you want to code that function from the scratch (without looking into the above code), that's excellent too.

RSAVerifyBuffer receives 3 arguments:

bool RSAVerifyBuffer(publicKey, msgtoVerify, signature)

publicKey = pointer to public key to verify the buffer

msgToVerify = pointer to message to verify

signature = signature to compare verification

The final solution can be just a command line application compiled with MASM which receives the 3 arguments to pass to RSAVerifyBuffer.


## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform


Skills: Assembly, Computer Security, Engineering, MySQL, PHP, Software Architecture, Software Testing, Web Security

See more: web assembly, signature assembly, server assembly, rsa security, looking to hire coders, hire web coder rsa, hire assembly coder, desktop assembly, convert windows form application to web application, assembly web, verify, Sha, rsa, need a new security code, key code verification, IDA, command line application, Assembly language, size function, buffer source code, copy windows command line, convert line, source code verification, crypto server, php crypto

About the Employer:
( 62 reviews ) Jerez de la Frontera, Spain

Project ID: #3967755

Awarded to:


See private message.

$170 USD in 12 days
(44 Reviews)

3 freelancers are bidding on average $198 for this job


See private message.

$297.5 USD in 12 days
(7 Reviews)

See private message.

$127.5 USD in 12 days
(0 Reviews)