
PROTO-153:多变量多项式公钥指纹低延迟哈希检索索引表
标准名称:多变量密码体制(MPKC)高维非线性公钥指纹硬件级级联布谷鸟哈希(Cuckoo Hashing)索引检索核心
技术领域:公钥寻址加速 / 密码芯片设计 / 确定性常数级(O(1))检索

(C++ 级联布谷鸟检索索引表)
C++
#include
#include
#include
#include
class HCOS_CuckooPublicKeyIndexTable {
private:
static const int TABLE_SIZE = 1024;
uint64_t table_1[TABLE_SIZE];
uint64_t table_2[TABLE_SIZE];
const int max_kick_limit = 16;
uint32_t hash_1(uint64_t key) { return (key ^ 0x5A5A5A5A) % TABLE_SIZE; }
uint32_t hash_2(uint64_t key) { return ((key >> 16) ^ 0x3C3C3C3C) % TABLE_SIZE; }
© 伙乘控星台 huocheng.love 版权所有