Home
last modified time | relevance | path

Searched refs:cipherkey (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/adapter/common/openssl/
H A Dsoftbus_adapter_crypto.c62 static int32_t OpensslEvpInit(EVP_CIPHER_CTX **ctx, const AesGcmCipherKey *cipherkey, bool mode) in OpensslEvpInit() argument
64 EVP_CIPHER *cipher = GetGcmAlgorithmByKeyLen(cipherkey->keyLen); in OpensslEvpInit()
106 if (memcpy_s(cipherText, cipherTextLen - dataLen, cipherkey->iv, GCM_IV_LEN) != EOK) { in PackIvAndTag()
123 static int32_t SslAesGcmEncrypt(const AesGcmCipherKey *cipherkey, const unsigned char *plainText, in SslAesGcmEncrypt() argument
126 if ((cipherkey == NULL) || (plainText == NULL) || (plainTextSize == 0) || cipherText == NULL || in SslAesGcmEncrypt()
135 int32_t ret = OpensslEvpInit(&ctx, cipherkey, true); in SslAesGcmEncrypt()
140 ret = EVP_EncryptInit_ex(ctx, NULL, NULL, cipherkey->key, cipherkey->iv); in SslAesGcmEncrypt()
160 ret = PackIvAndTag(ctx, cipherkey, outlen, cipherText, cipherTextLen); in SslAesGcmEncrypt()
170 static int32_t SslAesGcmDecrypt(const AesGcmCipherKey *cipherkey, const unsigned char *cipherText, in SslAesGcmDecrypt() argument
181 int32_t ret = OpensslEvpInit(&ctx, cipherkey, false); in SslAesGcmDecrypt()
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/
H A Dnet_builder.gni51 … "$dsoftbus_root_path/dsoftbus_enhance/core/bus_center/lnn/net_builder/cipherkey/cipherkey.gni")
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/
H A DBUILD.gn2152 … "$dsoftbus_root_path/dsoftbus_enhance/test/core/bus_center/lnn/net_builder/cipherkey:unittest",