Home
last modified time | relevance | path

Searched refs:plainText (Results 1 – 10 of 10) sorted by relevance

/foundation/distributeddatamgr/distributeddatamgr/services/distributeddataservice/adapter/account/src/
Daccount_delegate_impl.cpp204 std::string AccountDelegateImpl::Sha256UserId(const std::string &plainText) const in Sha256UserId()
207 if (!std::regex_match(plainText, pattern)) { in Sha256UserId()
208 return plainText; in Sha256UserId()
216 plainVal = static_cast<int64_t>(std::stoll(plainText, &sizeType)); in Sha256UserId()
219 plainText.substr(plainText.size() - int64MaxLen + 1, int64MaxLen - 1), &sizeType)); in Sha256UserId()
221 return plainText; in Sha256UserId()
Daccount_delegate_impl.h54 std::string Sha256UserId(const std::string &plainText) const;
/foundation/distributedhardware/devicemanager/services/devicemanagerservice/include/adapter/
Dcrypto_adapter.h25 …virtual int32_t MbedTlsEncrypt(const uint8_t *plainText, int32_t plainTextLen, uint8_t *cipherText,
27 …irtual int32_t MbedTlsDecrypt(const uint8_t *cipherText, int32_t cipherTextLen, uint8_t *plainText,
/foundation/distributedhardware/devicemanager/ext/mini/utils/src/cipher/
Dencrypt_utils.cpp104 int32_t EncryptUtils::MbedtlsEncrypt(const uint8_t *plainText, int32_t plainTextLen, uint8_t *ciphe… in MbedtlsEncrypt() argument
108 if (memcpy_s(cipherText, cipherTextLen, plainText, plainTextLen) != DEVICEMANAGER_OK) { in MbedtlsEncrypt()
115 … EncryptUtils::MbedtlsDecrypt(const uint8_t *cipherText, int32_t cipherTextLen, uint8_t *plainText, in MbedtlsDecrypt() argument
120 if (memcpy_s(plainText, plainTextLen, cipherText, cipherTextLen) != DEVICEMANAGER_OK) { in MbedtlsDecrypt()
/foundation/distributedhardware/devicemanager/ext/mini/utils/include/cipher/
Dencrypt_utils.h33 … static int32_t MbedtlsEncrypt(const uint8_t *plainText, int32_t plainTextLen, uint8_t *cipherText,
35 …static int32_t MbedtlsDecrypt(const uint8_t *cipherText, int32_t cipherTextLen, uint8_t *plainText,
/foundation/communication/wifi/services/wifi_standard/wifi_framework/common/utils/
Dwifi_global_func.cpp291 int HexStringToVec(const std::string &str, uint8_t plainText[], int plainLength, int &resultLength) in HexStringToVec() argument
304 plainText[i] = result[i]; in HexStringToVec()
323 std::string ConvertArrayToHex(const uint8_t plainText[], int size) in ConvertArrayToHex() argument
328 ss << ConvertArrayChar(plainText[i] >> bitWidth) << ConvertArrayChar (plainText[i] & 0xf); in ConvertArrayToHex()
Dwifi_global_func.h237 int HexStringToVec(const std::string &str, uint8_t plainText[], int plainLength, int &resultLength);
246 std::string ConvertArrayToHex(const uint8_t plainText[], int size);
/foundation/communication/dsoftbus/adapter/common/mbedtls/
Dsoftbus_adapter_crypto.c46 static int32_t MbedAesGcmEncrypt(const AesGcmCipherKey *cipherkey, const unsigned char *plainText, in MbedAesGcmEncrypt() argument
49 if ((cipherkey == NULL) || (plainText == NULL) || (plainTextSize == 0) || cipherText == NULL || in MbedAesGcmEncrypt()
67 GCM_IV_LEN, NULL, 0, plainText, cipherText + GCM_IV_LEN, TAG_LEN, tagBuf); in MbedAesGcmEncrypt()
/foundation/ace/ace_engine/frameworks/bridge/declarative_frontend/engine/functions/
Djs_drag_function.cpp42 auto plainText = JSVal(ToJSValue(pasteData_->GetPlainText())); in GetPlainText() local
43 auto plainTextRef = JSRef<JSVal>::Make(plainText); in GetPlainText()
/foundation/ace/ace_engine/frameworks/core/gestures/
Dgesture_info.h210 void SetPlainText(const std::string plainText) in SetPlainText() argument
212 plainText_ = plainText; in SetPlainText()