Function report |
Source Code:lib\crypto\curve25519-fiat32.c |
Create Date:2022-07-28 06:46:13 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:curve25519_generic
Proto:void curve25519_generic(u8 out[CURVE25519_KEY_SIZE], const u8 scalar[CURVE25519_KEY_SIZE], const u8 point[CURVE25519_KEY_SIZE])
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| u8 | out | |
| const u8 | scalar | |
| const u8 | point |
| 762 | swap = 0 |
| 766 | No 3D Now!(e, scalar, 32) |
| 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) |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |