04.11.2012 Views

1 Montgomery Modular Multiplication in Hard- ware

1 Montgomery Modular Multiplication in Hard- ware

1 Montgomery Modular Multiplication in Hard- ware

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

FEI KEMT<br />

Equation 6.11 can be viewed as a stochastic model of the generator, s<strong>in</strong>ce it permits<br />

to estimate a probability of the generator output value as a function of the mean<br />

values of critical samples (which depend on the jitter characteristics). However, the<br />

model is valid if and only if critical samples are <strong>in</strong>dependent.<br />

The proposed model shows that (as it could be expected) the bias of the generator<br />

output decreases with the <strong>in</strong>creas<strong>in</strong>g number of critical samples (note that this<br />

number is related to the jitter variation). It can be seen that if the mean value of<br />

any of these samples is equal to 0.5, the bias on the generator output is equal to<br />

zero and does not depend on the rema<strong>in</strong><strong>in</strong>g samples. F<strong>in</strong>ally, the sign of the bias<br />

depends on the number of samples hav<strong>in</strong>g a mean value equal to one (K 1 D).<br />

The advantage of the proposed model lies <strong>in</strong> the fact that the model can also be<br />

used as a proof of mutual statistical <strong>in</strong>dependence of the critical samples. To evaluate<br />

the statistical <strong>in</strong>dependence, the output mean value and the mean value of critical<br />

samples are measured and the validity of the model expressed <strong>in</strong> Equation 6.11<br />

is verified. If the test fails, the random variables (critical samples) are mutually<br />

dependent.<br />

Model Verification The validity of the model has been tested on real data <strong>in</strong><br />

order to confirm the model empirically. We have tested outputs of seven TRNG<br />

configurations implemented <strong>in</strong> Altera Stratix devices. The Table 6 – 8 presents the<br />

chosen parameters of the tested configurations (KM, KD, FCLK and FCLJ) and the<br />

correspond<strong>in</strong>g results – mean value of critical samples (E[pi]), mean value of the<br />

generator output (m = E [x(nTQ)]), number of samples equal to one (K 1 D) and<br />

number of critical samples (K p<br />

D).<br />

The mean value of the output bitstream m = E [x(nTQ)] is computed as an<br />

arithmetic mean of 512,000 successive bits at the output of the TRNG. The mean of<br />

the model E[pi] is calculated us<strong>in</strong>g the Equation 6.11, while employ<strong>in</strong>g probabilities<br />

of the critical samples pi accumulated after Q = 1000 periods TQ.<br />

As it can be seen, the model is very precise for a small number of critical samples,<br />

s<strong>in</strong>ce both mean values are very similar. For a higher number of critical samples,<br />

the mean value tends to the ideal value 0.5. Note that the model provides correct<br />

<strong>in</strong>formation about the statistical deviation of the output bitstream <strong>in</strong> configurations<br />

1, 2 and 5. The model gives acceptable results correspond<strong>in</strong>g closely to the mean<br />

value of the generated sequence <strong>in</strong> tests 6 and 7. It should be noted that <strong>in</strong> config-<br />

urations 3 and 4, the model outputs do not agree with the generator outputs (most<br />

probably) because of statistical dependence between critical samples.<br />

113

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!