您当前的位置: 首页 > 

mutourend

暂无认证

  • 0浏览

    0关注

    661博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Curve25519 Field域2^255-19代码实现对fieldelement值的限制要求?

mutourend 发布时间:2019-07-31 19:09:17 ,浏览量:0

src/backend/serial/u64/field.rs中的乘法运算fn mul(self, _rhs: &'b FieldElement51) -> FieldElement51函数中有如下限制:

		// Alias self, _rhs for more readable formulas
        let a: &[u64; 5] = &self.0;
        let b: &[u64; 5] = &_rhs.0;

		// So we require b < 3 to ensure this fits.
        debug_assert!(a[0] < (1             
关注
打赏
1664532908
查看更多评论
0.0550s