FreeAndFair / dvl

The Digital Voter List system—experiments in electronic poll books for Denmark.
Other
6 stars 2 forks source link

Slow import of voter list/key #36

Closed hyllekilde closed 11 years ago

hyllekilde commented 11 years ago

The event of going from the DataLoadPage to OverviewPage is very slow (30+ seconds). It must be able to speed this up.

hyllekilde commented 11 years ago

I have located the time consumption to be when the station is created in the UiHandler at line 254. It is possibly the creation of the several objects (SqLiteDatabase, Communicator, Crypto etc.) in Station.cs at line 222-229

hyllekilde commented 11 years ago

It seems to be the Crypto class that takes up time. I'm not sure if anything can be done to improve this.

hyllekilde commented 11 years ago

The problem lies in the initialisation of an RSA key pair at line 49 in the Crypto class. The time consumption increases the larger the encryption number given in the KeyGenerationParameters.

It is recommended to have 3072 and the import is only done once, so I conclude this problem to be solved as the keys are only generated once during the election and the time consumption will not be a problem.