函数逻辑报告 |
Source Code:lib\crypto\curve25519-fiat32.c |
Create Date:2022-07-27 07:43:49 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:curve25519_generic
函数原型:void curve25519_generic(u8 out[CURVE25519_KEY_SIZE], const u8 scalar[CURVE25519_KEY_SIZE], const u8 point[CURVE25519_KEY_SIZE])
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| u8 | out | |
| const u8 | scalar | |
| const u8 | point |
| 762 | swap等于0 |
| 767 | curve25519_clamp_secret(e) |
| 794 | fe_frombytes( & x1, point) |
| 795 | h = 1 |
| 796 | h = 0 |
| 797 | h = f |
| 798 | h = 1 |
| 816 | Replace (f,g) with (g,f) if b == 1;* replace (f,g) with (f,g) if b == 0.* Preconditions: b in {0,1} |
| 817 | Replace (f,g) with (g,f) if b == 1;* replace (f,g) with (f,g) if b == 0.* Preconditions: b in {0,1} |
| 830 | fe_mul_tll( & z3, & tmp0l, & x2l) |
| 831 | fe_mul_tll( & z2, & z2l, & tmp1l) |
| 836 | fe_mul_ttt( & x2, & tmp1, & tmp0) |
| 839 | fe_mul121666( & z3, & tmp1l) |
| 842 | fe_mul_ttt( & z3, & x1, & z2) |
| 843 | fe_mul_tll( & z2, & tmp1l, & tmp0l) |
| 848 | Replace (f,g) with (g,f) if b == 1;* replace (f,g) with (f,g) if b == 0.* Preconditions: b in {0,1} |
| 849 | Replace (f,g) with (g,f) if b == 1;* replace (f,g) with (f,g) if b == 0.* Preconditions: b in {0,1} |
| 852 | fe_mul_ttt( & x2, & x2, & z2) |
| 853 | fe_tobytes(out, & x2) |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |