Searched refs:eskSelf (Results 1 - 8 of 8) sorted by relevance
/base/security/device_auth/services/protocol/src/pake_protocol/pake_protocol_ec_common/ |
H A D | pake_protocol_ec_common.c | 36 return params->loader->generateRandom(&(params->eskSelf)); in GenerateEsk() 38 res = params->loader->generateRandom(&(params->eskSelf)); in GenerateEsk() 40 LOGE("CURVE_25519: GenerateRandom for eskSelf failed, res: %x.", res); 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() 61 LOGE("InitSingleParam for eskSelf faile in InitEcPakeParams() [all...] |
/base/security/device_auth/services/protocol/src/pake_protocol/pake_protocol_dl_common/ |
H A D | pake_protocol_dl_common.c | 54 int res = params->loader->generateRandom(&(params->eskSelf)); in GenerateEsk() 56 LOGE("GenerateRandom for eskSelf failed, res: %x.", res); 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() 109 LOGE("InitSingleParam for eskSelf failed, res: %x.", res); in InitDlPakeParams() 147 res = params->loader->bigNumExpMod(¶ms->base, &(params->eskSelf), param in GenerateDlPakeParams() [all...] |
/base/security/device_auth/services/protocol/src/pake_protocol/ |
H A D | pake_common.c | 27 FreeAndCleanKey(¶ms->eskSelf); in CleanPakeSensitiveKeys()
|
/base/security/device_auth/services/session_manager/src/session/v2/auth_sub_session/protocol_lib/ |
H A D | ec_speke_protocol.c | 61 Uint8Buff eskSelf; member 250 if (InitUint8Buff(¶ms->eskSelf, EC_SPEKE_EC_KEY_LEN) != HC_SUCCESS) { in EcSpekeCalEskSelf() 251 LOGE("allocate eskSelf memory fail."); in EcSpekeCalEskSelf() 256 res = GetLoaderInstance()->generateRandom(&(params->eskSelf)); in EcSpekeCalEskSelf() 258 LOGE("GenerateRandom for eskSelf failed, res: %x", res); in EcSpekeCalEskSelf() 262 res = GetLoaderInstance()->generateRandom(&(params->eskSelf)); in EcSpekeCalEskSelf() 264 LOGE("GenerateRandom for eskSelf failed, res: %x", res); in EcSpekeCalEskSelf() 267 params->eskSelf.val[EC_SPEKE_EC_KEY_LEN - 1] &= EC_SPEKE_PRIVATE_KEY_AND_MASK_HIGH; in EcSpekeCalEskSelf() 268 params->eskSelf.val[0] &= EC_SPEKE_PRIVATE_KEY_AND_MASK_LOW; in EcSpekeCalEskSelf() 269 params->eskSelf in EcSpekeCalEskSelf() [all...] |
H A D | dl_speke_protocol.c | 79 Uint8Buff eskSelf; member 220 params->eskSelf.length = DL_SPEKE_ESK_LEN; in SetSelfKeyLenByMod() 225 params->eskSelf.length = DL_SPEKE_ESK_SMALL_LEN; in SetSelfKeyLenByMod() 273 params->eskSelf.length = DL_SPEKE_ESK_LEN; in SetSelfKeyLenByEpkPeerAndMod() 279 params->eskSelf.length = DL_SPEKE_ESK_SMALL_LEN; in SetSelfKeyLenByEpkPeerAndMod() 306 if (InitUint8Buff(¶ms->eskSelf, params->eskSelf.length) != HC_SUCCESS) { in DlSpekeCalEskSelf() 307 LOGE("Failed to init eskSelf!"); in DlSpekeCalEskSelf() 310 int res = GetLoaderInstance()->generateRandom(&(params->eskSelf)); in DlSpekeCalEskSelf() 312 LOGE("GenerateRandom for eskSelf faile in DlSpekeCalEskSelf() [all...] |
/base/security/device_auth/services/protocol/inc/pake_protocol/ |
H A D | pake_defs.h | 55 Uint8Buff eskSelf; member
|
/base/security/device_auth/services/protocol/src/pake_protocol/pake_v1_protocol/ |
H A D | pake_v1_protocol_common.c | 125 params->eskSelf.val = NULL; in FillDefaultValue() 126 params->eskSelf.length = 0; in FillDefaultValue() 290 FreeAndCleanKey(¶ms->eskSelf); in GenerateSessionKey()
|
/base/security/device_auth/services/protocol/src/pake_protocol/pake_v2_protocol/ |
H A 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()
|
Completed in 5 milliseconds