Searched refs:eskSelf (Results 1 – 7 of 7) sorted by relevance
/base/security/device_auth/services/protocol/src/pake_protocol/pake_protocol_ec_common/ |
D | pake_protocol_ec_common.c | 36 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/ |
D | pake_protocol_dl_common.c | 54 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(¶ms->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/ |
D | pake_common.c | 27 FreeAndCleanKey(¶ms->eskSelf); in CleanPakeSensitiveKeys()
|
/base/security/device_auth/services/protocol/inc/pake_protocol/ |
D | pake_defs.h | 55 Uint8Buff eskSelf; member
|
/base/security/device_auth/services/session_manager/src/session/v2/auth_sub_session/protocol_lib/ |
D | ec_speke_protocol.c | 61 Uint8Buff eskSelf; member 242 if (InitUint8Buff(¶ms->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(¶ms->eskSelf); in CalP() [all …]
|
/base/security/device_auth/services/protocol/src/pake_protocol/pake_v1_protocol/ |
D | pake_v1_protocol_common.c | 125 params->eskSelf.val = NULL; in FillDefaultValue() 126 params->eskSelf.length = 0; in FillDefaultValue() 276 FreeAndCleanKey(¶ms->eskSelf); in GenerateSessionKey()
|
/base/security/device_auth/services/protocol/src/pake_protocol/pake_v2_protocol/ |
D | pake_v2_protocol_common.c | 119 params->eskSelf.val = NULL; in FillDefaultValue() 120 params->eskSelf.length = 0; in FillDefaultValue() 405 FreeAndCleanKey(¶ms->eskSelf); in GenerateSharedSecret()
|