Home
last modified time | relevance | path

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

/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
H A Dlnn_cipherkey_manager_virtual.c23 LNN_LOGI(LNN_INIT, "init virtual lnn cipherkey manager"); in LnnInitCipherKeyManager()
29 LNN_LOGI(LNN_INIT, "Deinit virtual lnn cipherkey manager"); in LnnDeinitCipherKeyManager()
32 bool GetCipherKeyByNetworkId(const char *networkId, int32_t seq, uint32_t tableIndex, AesCtrCipherKey *cipherkey, in GetCipherKeyByNetworkId() argument
38 (void)cipherkey; in GetCipherKeyByNetworkId()
43 bool GetLocalCipherKey(int32_t seq, uint32_t *tableIndex, AesCtrCipherKey *cipherkey, int32_t keyLen) in GetLocalCipherKey() argument
47 (void)cipherkey; in GetLocalCipherKey()
/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 if (cipherkey == NULL) { in OpensslEvpInit()
68 EVP_CIPHER *cipher = GetGcmAlgorithmByKeyLen(cipherkey->keyLen); in OpensslEvpInit()
103 static int32_t PackIvAndTag(EVP_CIPHER_CTX *ctx, const AesGcmCipherKey *cipherkey, uint32_t dataLen, in PackIvAndTag() argument
110 if (memcpy_s(cipherText, cipherTextLen - dataLen, cipherkey->iv, GCM_IV_LEN) != EOK) { in PackIvAndTag()
127 static int32_t SslAesGcmEncrypt(const AesGcmCipherKey *cipherkey, const unsigned char *plainText, in SslAesGcmEncrypt() argument
130 if ((cipherkey == NULL) || (plainText == NULL) || (plainTextSize == 0) || cipherText == NULL || in SslAesGcmEncrypt()
139 int32_t ret = OpensslEvpInit(&ctx, cipherkey, true); in SslAesGcmEncrypt()
144 ret = EVP_EncryptInit_ex(ctx, NULL, NULL, cipherkey->key, cipherkey in SslAesGcmEncrypt()
174 SslAesGcmDecrypt(const AesGcmCipherKey *cipherkey, const unsigned char *cipherText, uint32_t cipherTextSize, unsigned char *plain, uint32_t plainLen) SslAesGcmDecrypt() argument
[all...]
/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/include/
H A Dlnn_cipherkey_manager.h38 bool GetCipherKeyByNetworkId(const char *networkId, int32_t seq, uint32_t tableIndex, AesCtrCipherKey *cipherkey,
40 bool GetLocalCipherKey(int32_t seq, uint32_t *tableIndex, AesCtrCipherKey *cipherkey, int32_t keyLen);

Completed in 2 milliseconds