Searched refs:ivLen (Results 1 – 10 of 10) sorted by relevance
/base/security/dlp_permission_service/frameworks/common/src/ |
D | permission_policy.cpp | 191 void PermissionPolicy::SetIv(const uint8_t* iv, uint32_t ivLen) in SetIv() argument 198 if (!CheckAesParamLen(ivLen)) { in SetIv() 199 DLP_LOG_ERROR(LABEL, "Iv len invalid, len=%{public}u", ivLen); in SetIv() 203 if (ivLen < 1) { in SetIv() 204 DLP_LOG_ERROR(LABEL, "ivLen error %{public}u", ivLen); in SetIv() 207 iv_ = new (std::nothrow) uint8_t[ivLen]; in SetIv() 209 DLP_LOG_ERROR(LABEL, "Alloc %{public}u buff for iv fail", ivLen); in SetIv() 212 ivLen_ = ivLen; in SetIv() 213 if (memcpy_s(iv_, ivLen_, iv, ivLen) != EOK) { in SetIv()
|
/base/security/huks/frameworks/crypto_lite/cipher/src/ |
D | cipher_aes.c | 117 …if ((ivBufLen < (ctx->iv.ivOffset + ctx->iv.ivLen)) || (ctx->iv.ivOffset < 0) || (ctx->iv.ivLen <=… in SetIv() 121 ctx->iv.ivBuf = malloc(ctx->iv.ivLen); in SetIv() 127 int32_t ret = memcpy_s(ctx->iv.ivBuf, ctx->iv.ivLen, ivBuf + ctx->iv.ivOffset, ctx->iv.ivLen); in SetIv() 153 if ((iv->ivLen < 0) || (iv->ivLen != AES_BLOCK_SIZE)) { in InitAesCryptContext() 155 iv->ivLen, AES_BLOCK_SIZE); in InitAesCryptContext() 158 ctx->iv.ivLen = AES_BLOCK_SIZE; in InitAesCryptContext()
|
/base/security/huks/frameworks/crypto_lite/js/builtin/src/ |
D | cipher_module.cpp | 121 double ivLen = -1; in Aes() local 123 ivLen = JSI::ValueToNumber(jsIvLen); in Aes() 124 if (ivLen < 0) { in Aes() 125 HILOG_ERROR(HILOG_MODULE_ACE, "Ivlen:%lf is not natural number.", ivLen); in Aes() 131 iv.ivLen = ivLen; in Aes()
|
/base/security/crypto_framework/plugin/openssl_plugin/common/inc/ |
D | aes_openssl_common.h | 33 uint32_t ivLen; member
|
/base/security/huks/frameworks/crypto_lite/cipher/include/ |
D | cipher.h | 55 int32_t ivLen; member
|
/base/security/dlp_permission_service/frameworks/common/include/ |
D | permission_policy.h | 115 void SetIv(const uint8_t* iv, uint32_t ivLen);
|
/base/security/dlp_permission_service/services/dlp_permission/sa/sa_common/ |
D | dlp_permission_serializer.cpp | 414 uint32_t ivLen = 0; in DeserializeDlpPermission() local 415 res = ReadUint8ArrayFromJson(fileEncJson, &iv, ivLen, "iv", "ivLen"); in DeserializeDlpPermission() 419 policy.SetIv(iv, ivLen); in DeserializeDlpPermission()
|
/base/security/huks/frameworks/crypto_lite/js/napi/ |
D | cipher_napi.cpp | 66 int32_t ivLen = 0; member 203 context->ivLen = IV_LEN; in ReadAesData() 315 iv.ivLen = asyncContext->ivLen; in AesExcute()
|
/base/security/dlp_permission_service/services/dlp_permission/sa/test/unittest/src/ |
D | dlp_permission_service_test.cpp | 145 uint32_t ivLen; member 169 uint8_t* iv = GenerateRandArray(param.ivLen); in GeneratePolicy() 170 encPolicy.SetIv(iv, param.ivLen); in GeneratePolicy()
|
/base/security/dlp_permission_service/interfaces/inner_api/dlp_permission/test/unittest/src/ |
D | dlp_permission_kit_test.cpp | 258 uint32_t ivLen; member 282 uint8_t* iv = GenerateRandArray(param.ivLen); in GeneratePolicy() 283 encPolicy.SetIv(iv, param.ivLen); in GeneratePolicy()
|