Home
last modified time | relevance | path

Searched refs:TAG_LEN (Results 1 - 3 of 3) sorted by relevance

/foundation/communication/dsoftbus/adapter/common/include/
H A Dsoftbus_adapter_crypto.h30 #define TAG_LEN 16 macro
31 #define OVERHEAD_LEN (GCM_IV_LEN + TAG_LEN)
/foundation/communication/dsoftbus/adapter/common/mbedtls/
H A Dsoftbus_adapter_crypto.c88 unsigned char tagBuf[TAG_LEN] = { 0 }; in MbedAesGcmEncrypt()
99 plainText, cipherText + GCM_IV_LEN, TAG_LEN, tagBuf); in MbedAesGcmEncrypt()
111 TAG_LEN) != 0) { in MbedAesGcmEncrypt()
141 cipherText + actualPlainLen + GCM_IV_LEN, TAG_LEN, cipherText + GCM_IV_LEN, plain); in MbedAesGcmDecrypt()
/foundation/communication/dsoftbus/adapter/common/openssl/
H A Dsoftbus_adapter_crypto.c114 char tagbuf[TAG_LEN]; in PackIvAndTag()
115 int ret = EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_GCM_GET_TAG, TAG_LEN, (void *)tagbuf); in PackIvAndTag()
120 if (memcpy_s(cipherText + dataLen + GCM_IV_LEN, cipherTextLen - dataLen - GCM_IV_LEN, tagbuf, TAG_LEN) != EOK) { in PackIvAndTag()
195 ret = EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_GCM_SET_TAG, TAG_LEN, (void *)(cipherText + (cipherTextSize - TAG_LEN))); in SslAesGcmDecrypt()

Completed in 3 milliseconds