/foundation/communication/dsoftbus/adapter/common/include/ |
H A D | softbus_adapter_crypto.h | 57 } AesGcmCipherKey; typedef 77 int32_t SoftBusEncryptData(AesGcmCipherKey *key, const unsigned char *input, uint32_t inLen, 80 int32_t SoftBusEncryptDataWithSeq(AesGcmCipherKey *cipherKey, const unsigned char *input, uint32_t inLen, 83 int32_t SoftBusDecryptData(AesGcmCipherKey *key, const unsigned char *input, uint32_t inLen, 86 int32_t SoftBusDecryptDataWithSeq(AesGcmCipherKey *cipherKey, const unsigned char *input, uint32_t inLen,
|
/foundation/communication/dsoftbus/core/bus_center/utils/src/ |
H A D | lnn_common_utils.c | 65 AesGcmCipherKey cipherKey = {.keyLen = in->keyLen}; in LnnEncryptAesGcm() 72 (void)memset_s(&cipherKey, sizeof(AesGcmCipherKey), 0, sizeof(AesGcmCipherKey)); in LnnEncryptAesGcm() 98 AesGcmCipherKey cipherKey = {.keyLen = in->keyLen}; in LnnDecryptAesGcm() 105 (void)memset_s(&cipherKey, sizeof(AesGcmCipherKey), 0, sizeof(AesGcmCipherKey)); in LnnDecryptAesGcm()
|
/foundation/communication/dsoftbus/tests/core/transmission/common/mock/include/ |
H A D | trans_common_mock.h | 38 virtual int32_t SoftBusEncryptDataWithSeq(AesGcmCipherKey *cipherKey, 42 virtual int32_t SoftBusDecryptDataWithSeq(AesGcmCipherKey *cipherKey, 60 MOCK_METHOD6(SoftBusEncryptDataWithSeq, int32_t (AesGcmCipherKey *, const unsigned char *, uint32_t, 62 MOCK_METHOD6(SoftBusDecryptDataWithSeq, int32_t (AesGcmCipherKey *, const unsigned char *, uint32_t,
|
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/adaptor/src/ |
H A D | stream_adaptor.cpp | 119 AesGcmCipherKey cipherKey = {0}; in Encrypt() 134 (void)memset_s(&cipherKey, sizeof(AesGcmCipherKey), 0, sizeof(AesGcmCipherKey)); in Encrypt() 146 AesGcmCipherKey cipherKey = {0}; in Decrypt() 160 (void)memset_s(&cipherKey, sizeof(AesGcmCipherKey), 0, sizeof(AesGcmCipherKey)); in Decrypt()
|
/foundation/communication/dsoftbus/tests/adapter/unittest/ |
H A D | dsoftbus_crypto_test.cpp | 280 AesGcmCipherKey cipherKey; in HWTEST_F() 302 AesGcmCipherKey cipherKey; in HWTEST_F() 325 AesGcmCipherKey cipherKey; in HWTEST_F() 345 AesGcmCipherKey cipherKey; in HWTEST_F() 368 AesGcmCipherKey cipherKey; in HWTEST_F() 390 AesGcmCipherKey cipherKey; in HWTEST_F() 410 AesGcmCipherKey cipherKey; in HWTEST_F() 433 AesGcmCipherKey cipherKey; in HWTEST_F() 460 AesGcmCipherKey cipherKey; in HWTEST_F() 494 AesGcmCipherKey cipherKe in HWTEST_F() [all...] |
/foundation/communication/dsoftbus/tests/core/transmission/common/mock/src/ |
H A D | trans_common_mock.cpp | 61 int32_t SoftBusEncryptDataWithSeq(AesGcmCipherKey *cipherKey, const unsigned char *input, uint32_t inLen, in SoftBusEncryptDataWithSeq() 67 int32_t SoftBusDecryptDataWithSeq(AesGcmCipherKey *cipherKey, const unsigned char *input, uint32_t inLen, in SoftBusDecryptDataWithSeq()
|
/foundation/communication/dsoftbus/tests/adapter/fuzztest/softbusdecryptdata_fuzzer/ |
H A D | softbusdecryptdata_fuzzer.cpp | 27 AesGcmCipherKey cipherKey; in SoftBusDecryptDataTest()
|
/foundation/communication/dsoftbus/adapter/common/openssl/ |
H A D | softbus_adapter_crypto.c | 62 static int32_t OpensslEvpInit(EVP_CIPHER_CTX **ctx, const AesGcmCipherKey *cipherkey, bool mode) in OpensslEvpInit() 103 static int32_t PackIvAndTag(EVP_CIPHER_CTX *ctx, const AesGcmCipherKey *cipherkey, uint32_t dataLen, in PackIvAndTag() 127 static int32_t SslAesGcmEncrypt(const AesGcmCipherKey *cipherkey, const unsigned char *plainText, in SslAesGcmEncrypt() 174 static int32_t SslAesGcmDecrypt(const AesGcmCipherKey *cipherkey, const unsigned char *cipherText, in SslAesGcmDecrypt() 397 int32_t SoftBusEncryptData(AesGcmCipherKey *cipherKey, const unsigned char *input, uint32_t inLen, in SoftBusEncryptData() 417 int32_t SoftBusEncryptDataWithSeq(AesGcmCipherKey *cipherKey, const unsigned char *input, uint32_t inLen, in SoftBusEncryptDataWithSeq() 439 int32_t SoftBusDecryptData(AesGcmCipherKey *cipherKey, const unsigned char *input, uint32_t inLen, in SoftBusDecryptData() 459 int32_t SoftBusDecryptDataWithSeq(AesGcmCipherKey *cipherKey, const unsigned char *input, uint32_t inLen, in SoftBusDecryptDataWithSeq()
|
/foundation/communication/dsoftbus/adapter/common/mbedtls/ |
H A D | softbus_adapter_crypto.c | 78 static int32_t MbedAesGcmEncrypt(const AesGcmCipherKey *cipherKey, const unsigned char *plainText, in MbedAesGcmEncrypt() 120 static int32_t MbedAesGcmDecrypt(const AesGcmCipherKey *cipherKey, const unsigned char *cipherText, in MbedAesGcmDecrypt() 269 int32_t SoftBusEncryptData(AesGcmCipherKey *cipherKey, const unsigned char *input, uint32_t inLen, in SoftBusEncryptData() 289 int32_t SoftBusEncryptDataWithSeq(AesGcmCipherKey *cipherKey, const unsigned char *input, uint32_t inLen, in SoftBusEncryptDataWithSeq() 311 int32_t SoftBusDecryptData(AesGcmCipherKey *cipherKey, const unsigned char *input, uint32_t inLen, in SoftBusDecryptData() 331 int32_t SoftBusDecryptDataWithSeq(AesGcmCipherKey *cipherKey, const unsigned char *input, uint32_t inLen, in SoftBusDecryptDataWithSeq()
|
/foundation/communication/dsoftbus/core/authentication/src/ |
H A D | auth_session_key.c | 434 AesGcmCipherKey cipherKey = {.keyLen = sessionKey.len}; in EncryptData() 443 (void)memset_s(&cipherKey, sizeof(AesGcmCipherKey), 0, sizeof(AesGcmCipherKey)); in EncryptData() 467 AesGcmCipherKey cipherKey = {.keyLen = sessionKey.len}; in DecryptData() 476 (void)memset_s(&cipherKey, sizeof(AesGcmCipherKey), 0, sizeof(AesGcmCipherKey)); in DecryptData()
|
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/tcp_direct/src/ |
H A D | client_trans_tcp_direct_message.c | 75 AesGcmCipherKey cipherKey = {0}; in TransTdcDecrypt() 82 (void)memset_s(&cipherKey, sizeof(AesGcmCipherKey), 0, sizeof(AesGcmCipherKey)); in TransTdcDecrypt() 93 AesGcmCipherKey cipherKey = {0}; in TransTdcEncryptWithSeq() 100 if (memset_s(&cipherKey, sizeof(AesGcmCipherKey), 0, sizeof(AesGcmCipherKey)) != EOK) { in TransTdcEncryptWithSeq()
|
/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/tcp_direct/unittest/mock/ |
H A D | trans_tcp_direct_message_test_mock.h | 74 virtual int32_t SoftBusEncryptData(AesGcmCipherKey *cipherKey, const unsigned char *input, uint32_t inLen,
124 MOCK_METHOD5(SoftBusEncryptData, int32_t (AesGcmCipherKey *cipherKey, const unsigned char *input, uint32_t inLen,
|
H A D | trans_tcp_direct_message_test_mock.cpp | 201 int32_t SoftBusEncryptData(AesGcmCipherKey *cipherKey, const unsigned char *input, uint32_t inLen,
in SoftBusEncryptData()
|
/foundation/communication/dsoftbus/core/transmission/common/src/ |
H A D | softbus_message_open_channel.c | 420 AesGcmCipherKey cipherKey = {0}; in TransTdcEncrypt() 427 (void)memset_s(&cipherKey, sizeof(AesGcmCipherKey), 0, sizeof(AesGcmCipherKey)); in TransTdcEncrypt()
|
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/proxy/src/ |
H A D | client_trans_proxy_manager.c | 409 AesGcmCipherKey cipherKey = { 0 }; in ClientTransProxyDecryptPacketData() 417 (void)memset_s(&cipherKey, sizeof(AesGcmCipherKey), 0, sizeof(AesGcmCipherKey)); in ClientTransProxyDecryptPacketData() 929 AesGcmCipherKey cipherKey = { 0 }; in ClientTransProxyPackBytes()
|
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/ |
H A D | vtp_stream_socket.cpp | 1543 AesGcmCipherKey cipherKey = {0}; in Encrypt() 1557 (void)memset_s(&cipherKey, sizeof(AesGcmCipherKey), 0, sizeof(AesGcmCipherKey)); in Encrypt() 1571 AesGcmCipherKey cipherKey = {0}; in Decrypt() 1584 (void)memset_s(&cipherKey, sizeof(AesGcmCipherKey), 0, sizeof(AesGcmCipherKey)); in Decrypt()
|
/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/src/ |
H A D | softbus_proxychannel_message.c | 915 AesGcmCipherKey cipherKey = { 0 }; in TransProxyEncryptFastData()
|