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

Виконано Опубліковано %project.relative_time Оплачується при отриманні
Виконано Оплачується при отриманні

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.

Regards.

## 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

Windows

Асемблювання Комп'ютерна безпека Техніка MySQL PHP Архітектура ПЗ Тестування ПЗ Веб-безпека

ID Проекту: #3967755

Про проект

3 заявок(-ки) Дистанційний проект Остання активність Dec 26, 2006

Доручено:

amaresolutions

See private message.

$170 USD за 12 дні(-в)
(44 відгуків(-и))
5.5

3 фрілансерів(-и) готові виконати цю роботу у середньому за $198

dmitriytolmachov

See private message.

$297.5 USD за 12 дні(-в)
(7 відгуків(и))
2.2
n0namevw

See private message.

$127.5 USD за 12 дні(-в)
(0 відгуків(и))
0.0