RSA MD5Source Code (rsa algorithm
in Visual C++ source code)
This
C++ implementation of the RSA
MD5 source code was provided
by Langfine Ltd (http://www.langfine.com/). The working version of this
code's program can be downloaded
form their website.
MD5
v1.2
MD5
Library Source Code (MD5.dsw)
This
Visual C++ project builds a
static library that provides
the MD5 calculation routines.
The library will build to 'Release'
or 'Debug' subfolders. Do not
change this folder configuration
if you wish to build the MD5
Test Program (see below).
MD5.dsp
MD5.dsw
MD5.opt
MD5.rc
MD5Checksum.cpp
MD5Checksum.h
MD5ChecksumDefines.h
resource.h
StdAfx.cpp
StdAfx.h
MD5 Test Program Source Code (MD5ChecksumTest.dsw)
This
Visual C++ project builds an
executable program that uses
the MD5 library to calculate
checksums. The executable will
build to 'Release' or 'Debug'
subfolders. The MD5 Library
is a dependent subproject and
so will build automatically
before the test program. The
MD5 library source code must
be held in a folder named 'Code'
which should be at the same
level as the 'Test' folder.
MD5About.cpp
MD5About.h
MD5ChecksumTest.cpp
MD5ChecksumTest.dsp
MD5ChecksumTest.dsw
MD5ChecksumTest.h
MD5ChecksumTest.opt
MD5ChecksumTest.rc
MD5ChecksumTestDlg.cpp
MD5ChecksumTestDlg.h
PerformanceLogDlg.cpp
PerformanceLogDlg.h
resource.h
StdAfx.cpp
StdAfx.h
Timers.cpp
Timers.h
(with thanks Nick Stone
of http://www.langfine.com/)
The Cigarette-smokers problem:
Consider a system with three
smoker processes and one agent
process. Each smoker continuously
rolls a cigarette and then smokes
it. But to roll and cigarette
and then smokes it. But to roll
and smoke a cigarette, the smoker
needs three ingredients: tobacco,
paper and matches. One of the
smoker processes has an infinite
supply of all the three materials.
The agent places two of the
ingredients on the table. The
smoker who has the remaining
ingredient then makes the smokes
a cigarette, signaling the agent
on completion. The agent then
puts out another two of the
three ingredients, and the cycle
repeats. Write a program to
synchronize the agent and the
smokers. |