[viff-devel] Stand alone java version of comparison (proof-of-concept)
Tord Ingolf Reistad
tordr at stud.ntnu.no
Wed Jan 28 04:11:24 PST 2009
To anyone interested,
Attached is a stand alone proof-of-concept for a faster comparison of
secret shared values. When I say proof-of-concept it is that the shares
are just simulated as there is no real communication (or sharing) going
on. Other than that this file contains all the code needed.
The file contains 3 classes, 2 of which should be taken from a real library.
ZpValue - class for elements of Zp (note based on integers)
ZpShare - dummy class for shares of Zp
(the internal operation of ZpShare is for test purposes only)
TestComparisonStandAlone - all the code needed to do comparison once a
real implementation of ZpValue and ZpShare is done.
So just load this file into your favourite java interpreter (add it to a
packet of files) and you are ready to test it. All code tested and
verified to be correct.
Tord
PS: Not verified to be correct in the strictly mathematical sense, but
verified to be correct for all elements of Zp = 31, 1009 and 1031.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: TestComparisonStandAlone.java
URL: <http://lists.viff.dk/pipermail/viff-devel-viff.dk/attachments/20090128/34cfb2a7/attachment-0001.txt>
More information about the viff-devel
mailing list