Home
last modified time | relevance | path

Searched refs:tagBuf (Results 1 - 2 of 2) sorted by relevance

/foundation/communication/dsoftbus/components/nstackx/nstackx_util/core/
H A Dnstackx_mbedtls.c100 unsigned char tagBuf[GCM_TAG_LENGTH] = {0}; in MbedAesGcmEncrypt() local
111 GCM_IV_LENGTH, cryptPara->aad, cryptPara->aadLen, inBuf, outBuf, GCM_TAG_LENGTH, tagBuf); in MbedAesGcmEncrypt()
117 if (memcpy_s(outBuf + inLen, outLen - inLen, tagBuf, GCM_TAG_LENGTH) != 0) { in MbedAesGcmEncrypt()
134 unsigned char tagBuf[GCM_TAG_LENGTH] = {0}; in MbedChaChaEncrypt() local
144 cryptPara->aad, cryptPara->aadLen, inBuf, outBuf, tagBuf); in MbedChaChaEncrypt()
151 if (memcpy_s(outBuf + inLen, outLen - inLen, tagBuf, GCM_TAG_LENGTH) != 0) { in MbedChaChaEncrypt()
/foundation/communication/dsoftbus/adapter/common/mbedtls/
H A Dsoftbus_adapter_crypto.c88 unsigned char tagBuf[TAG_LEN] = { 0 }; in MbedAesGcmEncrypt() local
99 plainText, cipherText + GCM_IV_LEN, TAG_LEN, tagBuf); in MbedAesGcmEncrypt()
110 if (memcpy_s(cipherText + GCM_IV_LEN + plainTextSize, cipherTextLen - GCM_IV_LEN - plainTextSize, tagBuf, in MbedAesGcmEncrypt()

Completed in 3 milliseconds