函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\crypto\curve25519-hacl64.c Create Date:2022-07-27 07:44:19
Last Modify:2022-05-21 12:16:42 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:curve25519_generic

函数原型:void curve25519_generic(u8 mypublic[CURVE25519_KEY_SIZE], const u8 secret[CURVE25519_KEY_SIZE], const u8 basepoint[CURVE25519_KEY_SIZE])

返回类型:void

参数:

类型参数名称
u8mypublic
const u8secret
const u8basepoint
763  u64 buf0[10]gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-aligned-function-attribute* gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Type-Attributes.html#index-aligned-type-attribute* gcc: https://gcc(32) = {0}
764  x0等于buf0
765  z等于buf0加5
767  format_fexpand(x0, basepoint)
768  z[0]等于1
769  q等于buf0
771  u8 e[32]gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-aligned-function-attribute* gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Type-Attributes.html#index-aligned-type-attribute* gcc: https://gcc(32) = {0}
773  内存复制(e, secret, 32)
774  curve25519_clamp_secret(e)
775  scalar等于e
777  u64 buf[15] = {0}
778  nq等于buf
779  x等于nq
780  x[0]等于1
781  ladder_cmult(nq, scalar, q)
785  memzero_explicit - Fill a region of memory (e
787  memzero_explicit - Fill a region of memory (e
调用者
名称描述
curve25519
curve25519_generate_public