Searched refs:exAuthInfoLen (Results 1 – 1 of 1) sorted by relevance
/ohos5.0/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/pake_task/standard_exchange_task/ |
H A D | standard_exchange_message_util.c | 28 uint32_t exAuthInfoLen = nonce->length + cipher->length; in PackageNonceAndCipherToJson() local 29 uint8_t *exAuthInfoVal = (uint8_t *)HcMalloc(exAuthInfoLen, 0); in PackageNonceAndCipherToJson() 35 if (memcpy_s(exAuthInfoVal, exAuthInfoLen, nonce->val, nonce->length) != EOK) { in PackageNonceAndCipherToJson() 40 if (memcpy_s(exAuthInfoVal + nonce->length, exAuthInfoLen - nonce->length, in PackageNonceAndCipherToJson() 46 GOTO_ERR_AND_SET_RET(AddByteToJson(data, key, exAuthInfoVal, exAuthInfoLen), res); in PackageNonceAndCipherToJson() 62 int32_t exAuthInfoLen = (int32_t)HcStrlen(exAuthInfoStr) / BYTE_TO_HEX_OPER_LENGTH; in ParseNonceAndCipherFromJson() local 63 exAuthInfoVal = (uint8_t *)HcMalloc(exAuthInfoLen, 0); in ParseNonceAndCipherFromJson() 69 res = HexStringToByte(exAuthInfoStr, exAuthInfoVal, exAuthInfoLen); in ParseNonceAndCipherFromJson() 80 res = InitSingleParam(cipher, exAuthInfoLen - nonce->length); in ParseNonceAndCipherFromJson() 86 exAuthInfoLen - nonce->length) != EOK) { in ParseNonceAndCipherFromJson()
|