Home
last modified time | relevance | path

Searched refs:primeLen (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/test/unittest/unittest_mock/
H A Dhuks_adapter_mock.c269 uint32_t primeLen = strlen(primeHex) / BYTE_TO_HEX_OPER_LENGTH; in CheckDlSpekePublicKey() local
270 if (key->length > primeLen) { in CheckDlSpekePublicKey()
274 uint8_t *primeVal = (uint8_t *)MALLOC(primeLen); in CheckDlSpekePublicKey()
288 primeVal[primeLen - 1] -= 1; in CheckDlSpekePublicKey()
294 if (Compare(key->data, key->length, primeVal, primeLen) <= 0) { in CheckDlSpekePublicKey()
H A Dhuks_adapter_mock_for_pake.c269 uint32_t primeLen = strlen(primeHex) / BYTE_TO_HEX_OPER_LENGTH; in CheckDlSpekePublicKey() local
270 if (key->length > primeLen) { in CheckDlSpekePublicKey()
274 uint8_t *primeVal = (uint8_t *)MALLOC(primeLen); in CheckDlSpekePublicKey()
288 primeVal[primeLen - 1] -= 1; in CheckDlSpekePublicKey()
294 if (Compare(key->data, key->length, primeVal, primeLen) <= 0) { in CheckDlSpekePublicKey()
/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/source/huks_adapter/
H A Dhuks_adapter.c289 uint32_t primeLen = strlen(primeHex) / BYTE_TO_HEX_OPER_LENGTH; in CheckDlSpekePublicKey() local
290 if (key->length > primeLen) { in CheckDlSpekePublicKey()
294 uint8_t *primeVal = (uint8_t *)MALLOC(primeLen); in CheckDlSpekePublicKey()
308 primeVal[primeLen - 1] -= 1; in CheckDlSpekePublicKey()
314 if (Compare(key->data, key->length, primeVal, primeLen) <= 0) { in CheckDlSpekePublicKey()
/ohos5.0/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/
H A Dhuks_adapter.c1468 uint32_t primeLen = HcStrlen(bigNumHex) / BYTE_TO_HEX_OPER_LENGTH; in BigNumExpMod() local
1469 if ((primeLen != BIG_PRIME_LEN_384) && (primeLen != BIG_PRIME_LEN_256)) { in BigNumExpMod()
1473 CHECK_LEN_EQUAL_RETURN(outNum->length, primeLen, "outNum->length"); in BigNumExpMod()