您当前的位置: 首页 > 

mutourend

暂无认证

  • 1浏览

    0关注

    661博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

dudect_bencher test for constant-time函数

mutourend 发布时间:2019-09-05 14:22:33 ,浏览量:1

密码学中,constant-time函数可从软件层面预防side-channel攻击,对于constant-time函数的测试验证,可通过dudect_bencher来实现。

dudect_bencher的论文依据为《Dude, is my code constant time?》,基于统计学的角度来分析函数是否为constant-time。

https://github.com/brycx/orion-dudect/tree/subtle-short-circuit/ct-bencher中对subtlect-eq函数的constant-time一致性测试的结果,表现为:

git clone https://github.com/brycx/orion-dudect.git
cd orin-dudect
git checkout subtle-short-circuit
bash run_benches_stable.sh

在这里插入图片描述 其中输出信息的含义为:

  • max_t:为t-value的最大值。
  • n:计算t-value所用到的样本数量。
  • max_tau:计算方式为max_tau=max_t/sqrt(n)
  • (5/tau)^2:为t>5时,区分不同分布需要的计算次数。

通常地,认为max_t>5时,该函数的为not constant-time。但是,当max_t

关注
打赏
1664532908
查看更多评论
0.0356s