From 891730d13b324fad916572a82f0bd610c5de9aad Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sun, 13 Sep 2020 23:06:24 +0000 Subject: Rename for conversion --- ...GitRepositories%2Fuser%2Fshatov%2Fecdsa256.trac | 102 +++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 raw-wiki-dump/GitRepositories%2Fuser%2Fshatov%2Fecdsa256.trac (limited to 'raw-wiki-dump/GitRepositories%2Fuser%2Fshatov%2Fecdsa256.trac') diff --git a/raw-wiki-dump/GitRepositories%2Fuser%2Fshatov%2Fecdsa256.trac b/raw-wiki-dump/GitRepositories%2Fuser%2Fshatov%2Fecdsa256.trac new file mode 100644 index 0000000..417cbf8 --- /dev/null +++ b/raw-wiki-dump/GitRepositories%2Fuser%2Fshatov%2Fecdsa256.trac @@ -0,0 +1,102 @@ +{{{ +#!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 +

ecdsa256

+ +

Core Description

+ +

This core implements the scalar base point multiplier for ECDSA curve P-256. It can be used during generation of public keys, the core can also be used as part of the signing operation.

+ +

API Specification

+ +

The core interface is similar to other Cryptech cores. FMC memory map looks like the following:

+ +

0x0000 | NAME0 +0x0004 | NAME1 +0x0008 | VERSION

+ +

0x0020 | CONTROL +0x0024 | STATUS

+ +

0x0080 | K0 +0x0084 | K1 +... +0x009C | K7 +0x00A0 | X0 +0x00A4 | X1 +... +0x00BC | X7 +0x00C0 | Y0 +0x00C4 | Y1 +... +0x00DC | Y7

+ +

The core has the following registers:

+ + + +

Implementation Details

+ +

The top-level core module contains block memory buffers for input and output operands and the base point multiplier, that reads from the input buffer and writes to the output buffers.

+ +

The base point multiplier itself consists of the following:

+ + + +

The "worker" unit can execute five basic operations:

+ + + +

There are two primary microprograms, that the worker runs: curve point doubling and addition of curve point to the base point. Those microprograms use projective Jacobian coordinates, so one more microprogram is used to convert the product into affine coordinates with the help of modular inversion unit.

+ +

Note, that the core is supplemented by a reference model written in C, that has extensive comments describing tricky corners of the underlying math.

+ +

Vendor-specific Primitives

+ +

Cryptech Alpha platform is based on Xilinx Artix-7 200T FPGA, so this core takes advantage of Xilinx-specific DSP slices to carry out math-intensive operations. All vendor-specific math primitives are placed under /rtl/lowlevel/artix7, the core also offers generic replacements under /rtl/lowlevel/generic, they can be used for simulation with 3rd party tools, that are not aware of Xilinx-specific stuff. Selection of vendor/generic primitives is done in ecdsa_lowlevel_settings.v, when porting to other architectures, only those four low-level modules need to be ported.

+}}} + +[[RepositoryIndex(format=table,glob=user/shatov/ecdsa256)]] + +|| Clone `https://git.cryptech.is/user/shatov/ecdsa256.git` || -- cgit v1.2.3