Home
last modified time | relevance | path

Searched refs:tagbuf (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/adapter/common/openssl/
H A Dsoftbus_adapter_crypto.c110 char tagbuf[TAG_LEN]; in PackIvAndTag() local
111 int ret = EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_GCM_GET_TAG, TAG_LEN, (void *)tagbuf); in PackIvAndTag()
116 …if (memcpy_s(cipherText + dataLen + GCM_IV_LEN, cipherTextLen - dataLen - GCM_IV_LEN, tagbuf, TAG_… in PackIvAndTag()
H A Dsoftbus_aes_encrypt.c354 uint8_t tagbuf[AES_GCM_TAG_LEN]; // outData has two part: EncryptedData & AES-GCM-TAG in OpensslAesGcmEncrypt() local
355 if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_GCM_GET_TAG, AES_GCM_TAG_LEN, (void *)tagbuf) != 1) { in OpensslAesGcmEncrypt()
359 if (memcpy_s(outData + outLen, *outDataLen - outLen, tagbuf, AES_GCM_TAG_LEN) != EOK) { in OpensslAesGcmEncrypt()