summaryrefslogblamecommitdiff
path: root/raw-wiki-dump/GitRepositories%2Fuser%2Fshatov%2Fmodexpng_fpga_model.trac
blob: 8309852200f22909088da857af92c5e65147bb55 (plain) (tree)




















                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
{{{
#!htmlcomment

This page is maintained automatically by a script.  Don't modify this page by hand,
your changes will just be overwritten the next time the script runs.  Talk to your
Friendly Neighborhood Repository Maintainer if you need to change something here.

}}}

{{{
#!html
<h1>modexpng_fpga_model</h1>

<p>Math model of ModExpNG IP core. The model mimics how an FPGA does modular exponentiation.</p>

<p>First use the scripts from the <code>vector/</code> folder to generate and format a keypair vector, then edit the <i>DUMP_*</i> switches in <code>modexpng_fpga_model.py</code> to dump the desired internal values. The <i>FORCE_OVERFLOW</i> setting artificially forces the virtually neven seen internal interim overflow situation and allows its handler to be tested. You can also un-comment the _#c.dump_banks()_ line and move it anywhere within _sign_using_crt()_ and/or _sign_without_crt()_ to dump the contents of entire core's memory.</p>
}}}

[[RepositoryIndex(format=table,glob=user/shatov/modexpng_fpga_model)]]

|| Clone `https://git.cryptech.is/user/shatov/modexpng_fpga_model.git` ||