Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
unisolate committed Apr 7, 2022
1 parent 9a79269 commit e2f6b61
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ void GSV_close();

`GSV_close()` frees GPU memory.

## Configuration

Configurable flags in `gsv_wrapper.h`:

- `GSV_TPI`: Threads per instance, a parameter of the CGBN library. Can be set to 4, 8, 16, or 32. Default value is 16.
- `GSV_256BIT`: Enable this flag to use 256-bit integers for calculation rather than 512-bit integers. Will save space but a bit slower.
- `GSV_KNOWN_PKEY`: When the public key of a batch of signatures are the same, use a precomputed table to speed up verification. Need to generate different `sm2_pkey_512.table` for different keys.

## Acknowledgement

This project used the [CGBN](https://github.com/NVlabs/CGBN) library.
12 changes: 0 additions & 12 deletions src/README.md

This file was deleted.

0 comments on commit e2f6b61

Please sign in to comment.