Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\crypto\curve25519-hacl64.c Create Date:2022-07-28 06:46:40
Last Modify:2022-05-21 12:16:42 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:curve25519_generic

Proto:void curve25519_generic(u8 mypublic[CURVE25519_KEY_SIZE], const u8 secret[CURVE25519_KEY_SIZE], const u8 basepoint[CURVE25519_KEY_SIZE])

Type:void

Parameter:

TypeParameterName
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  No 3D Now!(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
Caller
NameDescribe
curve25519
curve25519_generate_public