Searched refs:innerKeyLen (Results 1 – 8 of 8) sorted by relevance
/base/security/device_auth/services/protocol/src/pake_protocol/pake_protocol_dl_common/ |
D | pake_protocol_dl_common.c | 66 params->innerKeyLen = PAKE_DL_PRIME_LEN; in FillDlKeysLenAccordingToEpkPeer() 72 params->innerKeyLen = PAKE_DL_PRIME_SMALL_LEN; in FillDlKeysLenAccordingToEpkPeer() 83 params->innerKeyLen = PAKE_DL_PRIME_LEN; in FillDlKeysLenAccordingToMod() 88 params->innerKeyLen = PAKE_DL_PRIME_SMALL_LEN; in FillDlKeysLenAccordingToMod() 112 res = InitSingleParam(&(params->epkSelf), params->innerKeyLen); in InitDlPakeParams() 117 res = InitSingleParam(&(params->base), params->innerKeyLen); in InitDlPakeParams() 139 params->largePrimeNumHex = (params->innerKeyLen == PAKE_DL_PRIME_SMALL_LEN) ? in GenerateDlPakeParams()
|
/base/security/device_auth/services/protocol/src/pake_protocol/pake_v2_protocol/ |
D | pake_v2_protocol_common.c | 137 params->innerKeyLen = 0; in FillDefaultValue() 212 Uint8Buff idSelfMsg = { NULL, params->idSelf.length + params->innerKeyLen }; in ComputeSidSelf() 226 params->epkSelf.val, params->innerKeyLen) != EOK) { // only need x-coordinate in ComputeSidSelf() 244 Uint8Buff idPeerMsg = { NULL, params->idPeer.length + params->innerKeyLen }; in ComputeSidPeer() 258 params->epkPeer.val, params->innerKeyLen) != EOK) { // only need x-coordinate in ComputeSidPeer() 335 …sharedSecretMsg.length = sid->length + params->innerKeyLen + HcStrlen(SHARED_SECRET_DERIVED_FACTOR… in ComputeSharedSecret() 350 tmpSharedSecret->val, params->innerKeyLen) != EOK) { // Only need x-coordinate in ComputeSharedSecret() 355 usedLen += params->innerKeyLen; in ComputeSharedSecret() 387 …cret.length = (params->curveType == CURVE_256) ? (params->innerKeyLen * 2) : (params->innerKeyLen); in GenerateSharedSecret() 466 … res = CombineEpk(¶ms->epkSelf, ¶ms->epkPeer, params->innerKeyLen, proofMsg, &usedLen); in CombineProofMsg() [all …]
|
/base/security/device_auth/services/protocol/src/pake_protocol/pake_protocol_ec_common/ |
D | pake_protocol_ec_common.c | 56 params->innerKeyLen = PAKE_EC_KEY_LEN; in InitEcPakeParams() 58 …eyBufferLen = (params->curveType == CURVE_256) ? (params->innerKeyLen * 2) : (params->innerKeyLen); in InitEcPakeParams()
|
/base/security/device_auth/services/protocol/inc/pake_protocol/ |
D | pake_defs.h | 66 uint32_t innerKeyLen; member
|
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/mini/ |
D | huks_adapter.c | 646 uint32_t innerKeyLen = HcStrlen(primeHex) / BYTE_TO_HEX_OPER_LENGTH; in CheckDlPublicKey() local 647 if (key->length > innerKeyLen) { in CheckDlPublicKey() 651 uint8_t *primeByte = (uint8_t *)HcMalloc(innerKeyLen, 0); in CheckDlPublicKey() 656 if (HexStringToByte(primeHex, primeByte, innerKeyLen) != HAL_SUCCESS) { in CheckDlPublicKey() 665 primeByte[innerKeyLen - 1] -= 1; in CheckDlPublicKey() 674 Uint8Buff primeBuff = { primeByte, innerKeyLen }; in CheckDlPublicKey()
|
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/small/ |
D | huks_adapter.c | 1094 uint32_t innerKeyLen = HcStrlen(primeHex) / BYTE_TO_HEX_OPER_LENGTH; in CheckDlPublicKey() local 1095 if (key->length > innerKeyLen) { in CheckDlPublicKey() 1099 uint8_t *primeByte = (uint8_t *)HcMalloc(innerKeyLen, 0); in CheckDlPublicKey() 1104 if (HexStringToByte(primeHex, primeByte, innerKeyLen) != HAL_SUCCESS) { in CheckDlPublicKey() 1113 primeByte[innerKeyLen - 1] -= 1; in CheckDlPublicKey() 1122 Uint8Buff primeBuff = { primeByte, innerKeyLen }; in CheckDlPublicKey()
|
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/standard/ |
D | huks_adapter.c | 1222 uint32_t innerKeyLen = HcStrlen(primeHex) / BYTE_TO_HEX_OPER_LENGTH; in CheckDlPublicKey() local 1223 if (key->length > innerKeyLen) { in CheckDlPublicKey() 1227 uint8_t *primeByte = (uint8_t *)HcMalloc(innerKeyLen, 0); in CheckDlPublicKey() 1232 if (HexStringToByte(primeHex, primeByte, innerKeyLen) != HAL_SUCCESS) { in CheckDlPublicKey() 1241 primeByte[innerKeyLen - 1] -= 1; in CheckDlPublicKey() 1250 Uint8Buff primeBuff = { primeByte, innerKeyLen }; in CheckDlPublicKey()
|
/base/security/device_auth/services/protocol/src/pake_protocol/pake_v1_protocol/ |
D | pake_v1_protocol_common.c | 143 params->innerKeyLen = 0; in FillDefaultValue() 259 int32_t res = InitSingleParam(¶ms->sharedSecret, params->innerKeyLen); in GenerateSessionKey()
|