/base/security/huks/frameworks/crypto_lite/cipher/src/ |
H A D | cipher_aes.c | 190 data->textLen = (strlen(text) / AES_BLOCK_SIZE) * AES_BLOCK_SIZE + AES_BLOCK_SIZE; in InitAesCryptDataText() 192 data->textLen = strlen(text); in InitAesCryptDataText() 194 if ((data->textLen + 1) <= 0) { in InitAesCryptDataText() 197 data->text = malloc(data->textLen + 1); in InitAesCryptDataText() 201 (void)memset_s(data->text, data->textLen + 1, 0, data->textLen + 1); in InitAesCryptDataText() 202 if (memcpy_s(data->text, data->textLen + 1, text, strlen(text)) != EOK) { in InitAesCryptDataText() 207 data->textLen = PaddingPkcs5(data->text, strlen(text)); in InitAesCryptDataText() 210 size_t textLen = (size_t)data->textLen; in InitAesCryptDataText() local 298 size_t textLen = ctx->data.textLen; DoAesCbcEncrypt() local [all...] |
/base/hiviewdfx/hilog_lite/frameworks/featured/ |
H A D | hiview_log.c | 404 int textLen; in SecDecodeTypeC() local 427 textLen = 1; /* only 1 wide character */ in SecDecodeTypeC() 434 textLen = wctomb(buffer->str, wchar); in SecDecodeTypeC() 436 if (textLen < 0) { in SecDecodeTypeC() 444 textLen = 1; in SecDecodeTypeC() 449 return textLen; in SecDecodeTypeC() 462 int textLen; in SecDecodeTypeS() local 481 for (textLen = 0; textLen < finalPrecision && *strEnd; textLen in SecDecodeTypeS() 556 int textLen; /* length of the text */ HiLogSecOutputS() local [all...] |
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/cipher/src/ |
H A D | cipher_sm2_openssl.c | 161 size_t textLen = 0; in GetTextLen() local 163 if (OpensslSm2CipherTextSize(impl->sm2Key, impl->sm2Digest, input->len, &textLen) != HCF_OPENSSL_SUCCESS) { in GetTextLen() 169 if (OpensslSm2PlainTextSize(input->data, input->len, &textLen) != HCF_OPENSSL_SUCCESS) { in GetTextLen() 177 return textLen; in GetTextLen() 181 int32_t mode, size_t textLen) in DoSm2EncryptAndDecrypt() 183 uint8_t *outputText = (uint8_t *)HcfMalloc(sizeof(uint8_t) * textLen, 0); in DoSm2EncryptAndDecrypt() 190 ret = OpensslOsslSm2Encrypt(impl->sm2Key, impl->sm2Digest, input->data, input->len, outputText, &textLen); in DoSm2EncryptAndDecrypt() 192 ret = OpensslOsslSm2Decrypt(impl->sm2Key, impl->sm2Digest, input->data, input->len, outputText, &textLen); in DoSm2EncryptAndDecrypt() 205 output->len = textLen; in DoSm2EncryptAndDecrypt() 211 size_t textLen in DoSm2Crypt() local 180 DoSm2EncryptAndDecrypt(HcfCipherSm2GeneratorSpiImpl *impl, HcfBlob *input, HcfBlob *output, int32_t mode, size_t textLen) DoSm2EncryptAndDecrypt() argument [all...] |
/base/security/huks/frameworks/crypto_lite/cipher/include/ |
H A D | cipher.h | 47 int32_t textLen;
member
|
/base/security/appverify/interfaces/innerkits/appverify/src/util/ |
H A D | hap_cert_verify_openssl_utils.cpp | 565 int32_t textLen = X509_NAME_get_text_by_NID(name, nId, nullptr, 0);
in GetTextFromX509Name() local 566 if (textLen <= 0) {
in GetTextFromX509Name() 570 std::unique_ptr<char[]> buffer = std::make_unique<char[]>(textLen + 1);
in GetTextFromX509Name() 571 if (X509_NAME_get_text_by_NID(name, nId, buffer.get(), textLen + 1) != textLen) {
in GetTextFromX509Name()
|
/base/telephony/sms_mms/utils/ |
H A D | text_coder.cpp | 283 gsize textLen = static_cast<gsize>(srcLength); in Utf8ToUcs2() local 289 err = g_iconv(cd, reinterpret_cast<gchar **>(const_cast<uint8_t **>(&src)), reinterpret_cast<gsize *>(&textLen), in Utf8ToUcs2() 441 gsize textLen = static_cast<gsize>(srcLength); in Ucs2ToUtf8() local 446 err = g_iconv(cd, reinterpret_cast<gchar **>(const_cast<uint8_t **>(&src)), reinterpret_cast<gsize *>(&textLen), in Ucs2ToUtf8() 472 gsize textLen = static_cast<gsize>(srcLength); in EuckrToUtf8() local 476 err = g_iconv(cd, reinterpret_cast<gchar **>(const_cast<uint8_t **>(&src)), reinterpret_cast<gsize *>(&textLen), in EuckrToUtf8() 502 gsize textLen = static_cast<gsize>(srcLength); in ShiftjisToUtf8() local 507 err = g_iconv(cd, reinterpret_cast<gchar **>(const_cast<uint8_t **>(&src)), reinterpret_cast<gsize *>(&textLen), in ShiftjisToUtf8()
|