Paillier Threshold Cryptography Web Service Quick Set-up

daughterinsectΤεχνίτη Νοημοσύνη και Ρομποτική

21 Νοε 2013 (πριν από 3 χρόνια και 6 μήνες)

108 εμφανίσεις

Paillier Threshold Cryptography Web Service Quick Set
-
up



1.

Copy the ~/gsc/pub/bswilson/src/ThresholdCryptoService folder to a computer with Internet
Information Services (IIS) installed.

2.

Open Internet Information Services from Administrative Tools.

3.

Expan
d the local computer folder (named your computer name), expand the Web Sites folder,
expand the Default Web Site folder.

4.

Right click the Default Web Site folder, and select New
-
>Virtual Directory. The virtual
directory creation wizard will start. Click

next, and type in ThresholdCryptoService for the
directory alias. Click next, then
browse to and select the folder where you copied the
ThresholdCryptoService directory in step 1. Click next, then
check Read and Run Scripts, then
click next, then click
Finish.

You have created a new virtual directory which should be
accessible at
http://barleydog/ThresholdCryptoService/ThresholdCryptoService.asmx
. Test it
and see if it

works. You should get a Threshold Cryptography Service page.

5.

Copy all VS2005
folders/
files from

~/gsc/pub/bswilson/src/VS2005 into a directory on a
Windows machine with VS2005 installed.

6.

Copy the gmp.dll file into %system root%
\
system32

7.

Open the Threshol
dCryptoService.sln file from VS2005.

You should now be able to
build/debug and view the source code from VS 2005

8.

Click Debug
-
>Start Debugging to kick off the CryptoServiceTester in debug mode.

9.

In the CryptoServiceTester form, select the key size (at this
time 512 bits or less is
recommended due to the time it takes to find safe primes).

10.

Select the number of secret key shares to generate and the threshold value. The threshold value
will range from 0 to the number of shares
-
1. A value of 0 indicates that
only 1 share is
required to decrypt.

11.

Click “create request” to generate a request for the web service. A message will be printed in
the status window indicating that the request was generated.

12.

Click “send request” to send the request for the Paillier para
meters to the web service.

13.

After a short delay (up to 30 seconds for a key length of 512 bits), a message will be printed in
the status window indicating that the parameters were received.

14.

At the current state of the project, both the public and secret par
ameters are received and used
for testing the encryption and decryption functions

15.

Once the parameters have been received, type in a short message (less than the number of bits
in the keysize), and click encrypt. The message will be encrypted using the pub
lic key received
from the web service and displayed in the status window.

16.

Click decrypt. The encrypted string will be decrypted using the first t+1 key shares received
back from the service. The resulting clear text will be printed to the status window.