Home
last modified time | relevance | path

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

/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/utils/
H A Dcrypto.cpp46 const char* hexCode = isUpper ? "0123456789ABCDEF" : "0123456789abcdef"; in Sha256() local
50 hash[i * 2] = hexCode[(value >> WIDTH) & MASK]; in Sha256()
52 hash[i * 2 + 1] = hexCode[value & MASK]; in Sha256()
/ohos5.0/foundation/distributedhardware/device_manager/utils/src/crypto/
H A Ddm_crypto.cpp100 const char* hexCode = isUpper ? "0123456789ABCDEF" : "0123456789abcdef"; in Sha256() local
104 hash[i * HEX_TO_UINT8] = hexCode[(value >> WIDTH) & MASK]; in Sha256()
105 hash[i * HEX_TO_UINT8 + 1] = hexCode[value & MASK]; in Sha256()
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/utils/src/
H A Ddh_utils_tool.cpp124 const char* hexCode = "0123456789abcdef"; in Sha256() local
128 out[i * DOUBLE_TIMES] = hexCode[(value >> WIDTH) & MASK]; in Sha256()
129 out[i * DOUBLE_TIMES + 1] = hexCode[value & MASK]; in Sha256()
/ohos5.0/foundation/distributedhardware/distributed_input/utils/src/
H A Ddinput_utils_tool.cpp260 const char* hexCode = "0123456789abcdef"; in Sha256() local
264 out[i * DOUBLE_TIMES] = hexCode[(value >> WIDTH) & MASK]; in Sha256()
265 out[i * DOUBLE_TIMES + 1] = hexCode[value & MASK]; in Sha256()