Home
last modified time | relevance | path

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

/foundation/communication/dsoftbus/adapter/common/openssl/
H A Dsoftbus_aes_encrypt.c45 if (randomKey == NULL || rootKey == NULL || rootKeyLen == 0 || hash == NULL || hashLen < SHA256_MAC_LEN) { in SoftBusGenerateHmacHash()
75 if (outBufLen != SHA256_MAC_LEN) { in SoftBusGenerateHmacHash()
128 uint8_t result[SHA256_MAC_LEN] = { 0 }; in RootKeyGenerateIvAndSessionKey()
139 SHA256_MAC_LEN - AES_SESSION_KEY_LENGTH) != EOK) { in RootKeyGenerateIvAndSessionKey()
218 uint8_t result[SHA256_MAC_LEN] = { 0 }; in SoftBusAesCfbEncrypt()
230 if (SoftBusGenerateHmacHash(&key, random, sizeof(random), result, SHA256_MAC_LEN) != SOFTBUS_OK) { in SoftBusAesCfbEncrypt()
236 if (memcpy_s(cipherKey->key, cipherKey->keyLen, result, SHA256_MAC_LEN) != EOK) { in SoftBusAesCfbEncrypt()
/foundation/communication/dsoftbus/adapter/common/include/
H A Dsoftbus_aes_encrypt.h27 #define SHA256_MAC_LEN 32 macro
/foundation/communication/dsoftbus/tests/adapter/fuzztest/softbusaescrypto_fuzzer/
H A Dsoftbusaescrypto_fuzzer.cpp29 uint8_t hash[SHA256_MAC_LEN] = { 0 }; in SoftBusGenerateHmacHashFuzzTest()
31 SoftBusGenerateHmacHash(&randomKey, data, size, hash, SHA256_MAC_LEN); in SoftBusGenerateHmacHashFuzzTest()

Completed in 2 milliseconds