secretflow / yacl

YACL (Yet Another Common crypto library) is a C++ library that contains cryptography, network and io modules which other SecretFlow code depends on.
Apache License 2.0
73 stars 61 forks source link

国密SM2+FastECDLP代码 #346

Closed ShallMate closed 2 months ago

ShallMate commented 2 months ago

已经将国密SM2和FastECDLP结合的代码完整实现。FastECDLP使用的K-V是论文中改良过的cuckoo hashing,不需要计算哈希值,无stash,冗余率为1.3。每一个桶仅需64比特,比简单的hashmap至少减少4倍内存开销(实际远不只4倍)。

github-actions[bot] commented 2 months ago

CLA Assistant Lite bot:
Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


1 out of 2 committers have signed the CLA.
:white_check_mark: @ShallMate
:x: @oraccc
You can retrigger this bot by commenting recheck in this Pull Request

ShallMate commented 2 months ago

I have read the CLA Document and I hereby sign the CLA

Jamie-Cui commented 2 months ago

整个文件的 format style 好像有点问题,可以用 clang-format 的 google style 来自动 format 一下代码