Home
last modified time | relevance | path

Searched refs:eskSelf (Results 1 – 7 of 7) sorted by relevance

/base/security/device_auth/services/protocol/src/pake_protocol/pake_protocol_ec_common/
Dpake_protocol_ec_common.c36 return params->loader->generateRandom(&(params->eskSelf)); in GenerateEsk()
38 res = params->loader->generateRandom(&(params->eskSelf)); in GenerateEsk()
43 params->eskSelf.val[PAKE_EC_KEY_LEN - 1] &= PAKE_PRIVATE_KEY_AND_MASK_HIGH; in GenerateEsk()
44 params->eskSelf.val[0] &= PAKE_PRIVATE_KEY_AND_MASK_LOW; in GenerateEsk()
45 params->eskSelf.val[0] |= PAKE_PRIVATE_KEY_OR_MASK_LOW; in GenerateEsk()
55 params->eskSelf.length = PAKE_EC_KEY_LEN; in InitEcPakeParams()
59 int32_t res = InitSingleParam(&(params->eskSelf), params->eskSelf.length); in InitEcPakeParams()
97 KeyBuff eskSelfBuff = { params->eskSelf.val, params->eskSelf.length, false }; in GenerateEcPakeParams()
127 KeyBuff eskSelfBuff = { params->eskSelf.val, params->eskSelf.length, false }; in AgreeEcSharedSecret()
/base/security/device_auth/services/protocol/src/pake_protocol/pake_protocol_dl_common/
Dpake_protocol_dl_common.c54 int res = params->loader->generateRandom(&(params->eskSelf)); in GenerateEsk()
65 params->eskSelf.length = PAKE_DL_ESK_LEN; in FillDlKeysLenAccordingToEpkPeer()
71 params->eskSelf.length = PAKE_DL_ESK_SMALL_LEN; in FillDlKeysLenAccordingToEpkPeer()
82 params->eskSelf.length = PAKE_DL_ESK_LEN; in FillDlKeysLenAccordingToMod()
87 params->eskSelf.length = PAKE_DL_ESK_SMALL_LEN; in FillDlKeysLenAccordingToMod()
107 res = InitSingleParam(&(params->eskSelf), params->eskSelf.length); in InitDlPakeParams()
147 …res = params->loader->bigNumExpMod(&params->base, &(params->eskSelf), params->largePrimeNumHex, &(… in GenerateDlPakeParams()
184 …res = params->loader->bigNumExpMod(&(params->epkPeer), &(params->eskSelf), params->largePrimeNumHe… in AgreeDlSharedSecret()
/base/security/device_auth/services/protocol/src/pake_protocol/
Dpake_common.c27 FreeAndCleanKey(&params->eskSelf); in CleanPakeSensitiveKeys()
/base/security/device_auth/services/protocol/inc/pake_protocol/
Dpake_defs.h55 Uint8Buff eskSelf; member
/base/security/device_auth/services/session_manager/src/session/v2/auth_sub_session/protocol_lib/
Dec_speke_protocol.c61 Uint8Buff eskSelf; member
242 if (InitUint8Buff(&params->eskSelf, EC_SPEKE_EC_KEY_LEN) != HC_SUCCESS) { in EcSpekeCalEskSelf()
248 res = GetLoaderInstance()->generateRandom(&(params->eskSelf)); in EcSpekeCalEskSelf()
254 res = GetLoaderInstance()->generateRandom(&(params->eskSelf)); in EcSpekeCalEskSelf()
259 params->eskSelf.val[EC_SPEKE_EC_KEY_LEN - 1] &= EC_SPEKE_PRIVATE_KEY_AND_MASK_HIGH; in EcSpekeCalEskSelf()
260 params->eskSelf.val[0] &= EC_SPEKE_PRIVATE_KEY_AND_MASK_LOW; in EcSpekeCalEskSelf()
261 params->eskSelf.val[0] |= EC_SPEKE_PRIVATE_KEY_OR_MASK_LOW; in EcSpekeCalEskSelf()
288 KeyBuff eskSelfBuff = { params->eskSelf.val, params->eskSelf.length, false }; in EcSpekeCalEpkSelf()
317 KeyBuff eskSelfBuff = { params->eskSelf.val, params->eskSelf.length, false }; in CalP()
321 ClearFreeUint8Buff(&params->eskSelf); in CalP()
[all …]
/base/security/device_auth/services/protocol/src/pake_protocol/pake_v1_protocol/
Dpake_v1_protocol_common.c125 params->eskSelf.val = NULL; in FillDefaultValue()
126 params->eskSelf.length = 0; in FillDefaultValue()
276 FreeAndCleanKey(&params->eskSelf); in GenerateSessionKey()
/base/security/device_auth/services/protocol/src/pake_protocol/pake_v2_protocol/
Dpake_v2_protocol_common.c119 params->eskSelf.val = NULL; in FillDefaultValue()
120 params->eskSelf.length = 0; in FillDefaultValue()
405 FreeAndCleanKey(&params->eskSelf); in GenerateSharedSecret()