From e2f6b617ce3f0b28ae148ecd7055c04865ea9577 Mon Sep 17 00:00:00 2001 From: unisolate Date: Thu, 7 Apr 2022 22:35:06 +0800 Subject: [PATCH] update README --- README.md | 8 ++++++++ src/README.md | 12 ------------ 2 files changed, 8 insertions(+), 12 deletions(-) delete mode 100644 src/README.md diff --git a/README.md b/README.md index 93c35ff..7252066 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/src/README.md b/src/README.md deleted file mode 100644 index 6e5e790..0000000 --- a/src/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# RapidSV: Accelerating Elliptic Curve Signature Verification - -## 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.