Searched refs:tagBuf (Results 1 - 2 of 2) sorted by relevance
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/core/ |
H A D | nstackx_mbedtls.c | 100 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 D | softbus_adapter_crypto.c | 88 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