Home
last modified time | relevance | path

Searched refs:keySize (Results 1 – 25 of 129) sorted by relevance

123456

/base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/
Dhks_crypto_hal_rsa_oaep_encrypt.cpp37 HksKeySize keySize = HksKeySize::HKS_RSA_KEY_SIZE_512; member
58 .keySize = HKS_RSA_KEY_SIZE_512,
80 .keySize = HKS_RSA_KEY_SIZE_768,
104 .keySize = HKS_RSA_KEY_SIZE_1024,
135 .keySize = HKS_RSA_KEY_SIZE_2048,
173 .keySize = HKS_RSA_KEY_SIZE_3072,
218 .keySize = HKS_RSA_KEY_SIZE_4096,
238 .keySize = HKS_RSA_KEY_SIZE_512,
260 .keySize = HKS_RSA_KEY_SIZE_768,
284 .keySize = HKS_RSA_KEY_SIZE_1024,
[all …]
Dhks_crypto_hal_rsa_encrypt.cpp36 HksKeySize keySize = HksKeySize::HKS_RSA_KEY_SIZE_512; member
58 .keySize = HKS_RSA_KEY_SIZE_512,
86 .keySize = HKS_RSA_KEY_SIZE_768,
116 .keySize = HKS_RSA_KEY_SIZE_1024,
157 .keySize = HKS_RSA_KEY_SIZE_2048,
206 .keySize = HKS_RSA_KEY_SIZE_3072,
265 .keySize = HKS_RSA_KEY_SIZE_4096,
291 .keySize = HKS_RSA_KEY_SIZE_512,
313 .keySize = HKS_RSA_KEY_SIZE_768,
337 .keySize = HKS_RSA_KEY_SIZE_1024,
[all …]
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/
Dhks_import_agree_test.cpp675 static void ModifyImportParams(uint32_t alg, uint32_t keySize, uint32_t importType) in ModifyImportParams() argument
678 g_importKeyParams[TAG_KEY_SIZE_ID].uint32Param = keySize; in ModifyImportParams()
682 static void ModifyinitOpParams(uint32_t alg, uint32_t keySize) in ModifyinitOpParams() argument
685 g_initOpParams[TAG_KEY_SIZE_ID].uint32Param = keySize; in ModifyinitOpParams()
712 uint32_t alg, uint32_t keySize, uint32_t importType, struct HksBlob *outKey) in ConstructCurve25519Key() argument
720 material.keySize = keySize; in ConstructCurve25519Key()
757 uint32_t keySize, uint32_t importType, struct HksBlob *outKey) in ConstructEccKey() argument
767 material.keySize = keySize; in ConstructEccKey()
813 uint32_t keySize, uint32_t importType, struct HksBlob *outKey) in ConstructDhKey() argument
823 material.keySize = keySize; in ConstructDhKey()
[all …]
Dhks_import_sign_verify_test.cpp420 static int32_t ConstructImportedCurve25519Key(uint32_t alg, uint32_t keySize, uint32_t importType, in ConstructImportedCurve25519Key() argument
435 material.keySize = keySize; in ConstructImportedCurve25519Key()
471 static int32_t ConstructImportedDsaPriOrPairKey(uint32_t keySize, uint32_t importType, struct HksBl… in ConstructImportedDsaPriOrPairKey() argument
476 material.keySize = keySize; in ConstructImportedDsaPriOrPairKey()
538 static int32_t ConstructImportedDsaKey(uint32_t keySize, uint32_t importType, struct HksBlob *outKe… in ConstructImportedDsaKey() argument
543 return ConstructImportedDsaPriOrPairKey(keySize, importType, outKey); in ConstructImportedDsaKey()
547 static int32_t ConstructEcPrivateKey(const struct HksBlob *zDataBlob, uint32_t keySize, struct HksB… in ConstructEcPrivateKey() argument
551 material.keySize = keySize; in ConstructEcPrivateKey()
580 static int32_t ConstructEccPubKey(uint32_t keySize, struct HksBlob *outKey) in ConstructEccPubKey() argument
583 switch (keySize) { in ConstructEccPubKey()
[all …]
Dhks_import_key_test.cpp61 uint32_t keySize = 0; member
75 .keySize = HKS_AES_KEY_SIZE_128 / HKS_BITS_PER_BYTE,
89 .keySize = HKS_AES_KEY_SIZE_192 / HKS_BITS_PER_BYTE,
103 .keySize = HKS_AES_KEY_SIZE_256 / HKS_BITS_PER_BYTE,
118 .keySize = HKS_AES_KEY_SIZE_256 / HKS_BITS_PER_BYTE,
132 .keySize = HKS_AES_KEY_SIZE_256 / HKS_BITS_PER_BYTE,
147 .keySize = HKS_AES_KEY_SIZE_256 / HKS_BITS_PER_BYTE,
160 .keySize = HKS_AES_KEY_SIZE_256 / HKS_BITS_PER_BYTE,
174 .keySize = HKS_AES_KEY_SIZE_256 / HKS_BITS_PER_BYTE,
187 .keySize = HKS_AES_KEY_SIZE_256 / HKS_BITS_PER_BYTE,
[all …]
Dhks_import_rsa_test.cpp457 static int32_t ConstructPubKey(uint32_t keySize, struct HksBlob *outKey) in ConstructPubKey() argument
460 switch (keySize) { in ConstructPubKey()
492 uint32_t keySize, struct HksBlob *outKey, bool isPriKey) in ConstructKey() argument
496 material.keySize = keySize; in ConstructKey()
541 static int32_t ConstructImportedKey(uint32_t keySize, uint32_t importType, struct HksBlob *outKey) in ConstructImportedKey() argument
544 return ConstructPubKey(keySize, outKey); in ConstructImportedKey()
551 switch (keySize) { in ConstructImportedKey()
592 return ConstructKey(&nDataBlob, &dDataBlob, keySize, outKey, isPriKey); in ConstructImportedKey()
595 static void ModifyImportParams(uint32_t purpose, uint32_t keySize, uint32_t padding, in ModifyImportParams() argument
599 g_importRsaKeyParams[TAG_KEY_SIZE_ID].uint32Param = keySize; in ModifyImportParams()
[all …]
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_app_cert_process.c98 static int32_t SaveKeyMaterialEcc(const EC_KEY *eccKey, const uint32_t keySize, struct CmBlob *keyO… in SaveKeyMaterialEcc() argument
102 rawMaterial.size = sizeof(struct HksKeyMaterialEcc) + CM_KEY_BYTES(keySize) * ECC_KEYPAIR_CNT; in SaveKeyMaterialEcc()
116 keyMaterial->keySize = keySize; in SaveKeyMaterialEcc()
117 keyMaterial->xSize = CM_KEY_BYTES(keySize); in SaveKeyMaterialEcc()
118 keyMaterial->ySize = CM_KEY_BYTES(keySize); in SaveKeyMaterialEcc()
119 keyMaterial->zSize = CM_KEY_BYTES(keySize); in SaveKeyMaterialEcc()
134 static int32_t SaveKeyMaterialRsa(const RSA *rsa, const uint32_t keySize, struct CmBlob *keyOut) in SaveKeyMaterialRsa() argument
136 const uint32_t keyByteLen = keySize / CM_BITS_PER_BYTE; in SaveKeyMaterialRsa()
146 keyMaterial->keySize = keySize; in SaveKeyMaterialRsa()
219 keyMaterial->keySize = HKS_CURVE25519_KEY_SIZE_256; in SaveKeyMaterialCurve25519()
[all …]
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/
Dhks_openssl_dsa.c53 uint8_t *buff = (uint8_t *)HksMalloc(HKS_KEY_BYTES(keyMaterial->keySize)); in InitDsaStructKey()
62 …if (memcpy_s(buff, HKS_KEY_BYTES(keyMaterial->keySize), key->data + *offset, keyMaterial->xSize) !… in InitDsaStructKey()
70 …if (memcpy_s(buff, HKS_KEY_BYTES(keyMaterial->keySize), key->data + *offset, keyMaterial->ySize) !… in InitDsaStructKey()
85 … (void)memset_s(buff, HKS_KEY_BYTES(keyMaterial->keySize), 0, HKS_KEY_BYTES(keyMaterial->keySize)); in InitDsaStructKey()
94 uint8_t *buff = HksMalloc(HKS_KEY_BYTES(keyMaterial->keySize)); in InitDsaStructParameter()
97 …if (memcpy_s(buff, HKS_KEY_BYTES(keyMaterial->keySize), key->data + *offset, keyMaterial->pSize) !… in InitDsaStructParameter()
103 …if (memcpy_s(buff, HKS_KEY_BYTES(keyMaterial->keySize), key->data + *offset, keyMaterial->qSize) !… in InitDsaStructParameter()
110 …if (memcpy_s(buff, HKS_KEY_BYTES(keyMaterial->keySize), key->data + *offset, keyMaterial->gSize) !… in InitDsaStructParameter()
111 … (void)memset_s(buff, HKS_KEY_BYTES(keyMaterial->keySize), 0, HKS_KEY_BYTES(keyMaterial->keySize)); in InitDsaStructParameter()
128 … (void)memset_s(buff, HKS_KEY_BYTES(keyMaterial->keySize), 0, HKS_KEY_BYTES(keyMaterial->keySize)); in InitDsaStructParameter()
[all …]
Dhks_openssl_ecc.c112 uint32_t keySize = spec->keyLen; in EccSaveKeyMaterial() local
114 …uint32_t rawMaterialLen = sizeof(struct KeyMaterialEcc) + HKS_KEY_BYTES(keySize) * ECC_KEYPAIR_CNT; in EccSaveKeyMaterial()
126 keyMaterial->keySize = keySize; in EccSaveKeyMaterial()
127 keyMaterial->xSize = HKS_KEY_BYTES(keySize); in EccSaveKeyMaterial()
128 keyMaterial->ySize = HKS_KEY_BYTES(keySize); in EccSaveKeyMaterial()
129 keyMaterial->zSize = HKS_KEY_BYTES(keySize); in EccSaveKeyMaterial()
219 publickeyMaterial->keySize = keyMaterial->keySize; in HksOpensslGetEccPubKey()
232 …const uint8_t *key, uint32_t *keySize, uint32_t *publicXSize, uint32_t *publicYSize, uint32_t *pri… in GetEccModules() argument
235 *keySize = keyMaterial->keySize; in GetEccModules()
299 uint32_t keySize; in EccInitKey() local
[all …]
Dhks_openssl_sm4.c56 static const EVP_CIPHER *GetSm4CbcCipherType(uint32_t keySize) in GetSm4CbcCipherType() argument
58 switch (keySize) { in GetSm4CbcCipherType()
66 static const EVP_CIPHER *GetSm4CtrCipherType(uint32_t keySize) in GetSm4CtrCipherType() argument
68 switch (keySize) { in GetSm4CtrCipherType()
76 static const EVP_CIPHER *GetSm4EcbCipherType(uint32_t keySize) in GetSm4EcbCipherType() argument
78 switch (keySize) { in GetSm4EcbCipherType()
86 static const EVP_CIPHER *GetSm4CipherType(uint32_t keySize, uint32_t mode) in GetSm4CipherType() argument
88 …return GetBlockCipherType(keySize, mode, GetSm4CbcCipherType, GetSm4CtrCipherType, GetSm4EcbCipher… in GetSm4CipherType()
Dhks_openssl_dh.c39 static int32_t HksOpensslGetNid(uint32_t keySize, int *nid) in HksOpensslGetNid() argument
41 switch (keySize) { in HksOpensslGetNid()
52 HKS_LOG_E("invalid key size, keySize = %" LOG_PUBLIC "u", keySize); in HksOpensslGetNid()
65 int32_t ret = HksOpensslGetNid(keyMaterial->keySize, &nid); in InitDhStruct()
89 static int32_t DhSaveKeyMaterial(const DH *dh, const uint32_t keySize, struct HksBlob *key) in DhSaveKeyMaterial() argument
103 keyMaterial->keySize = keySize; in DhSaveKeyMaterial()
/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/
Dhks_mbedtls_ecc.c42 static int32_t HksMbedtlsEccCheckKeySize(const uint32_t keySize) in HksMbedtlsEccCheckKeySize() argument
44 …if ((keySize != HKS_ECC_KEY_SIZE_224) && (keySize != HKS_ECC_KEY_SIZE_256) && (keySize != HKS_ECC_… in HksMbedtlsEccCheckKeySize()
45 (keySize != HKS_ECC_KEY_SIZE_521)) { in HksMbedtlsEccCheckKeySize()
46 HKS_LOG_E("Invalid ecc keySize! keySize = 0x%" LOG_PUBLIC "X", keySize); in HksMbedtlsEccCheckKeySize()
91 int32_t ret = HksMbedtlsEccCheckKeySize(keyMaterial->keySize); in EccKeyCheck()
113 return GetEccGroupId(keyMaterial->keySize, curve); in HksMbedtlsEccGetKeyCurveNist()
161 const uint32_t keySize, struct HksBlob *key) in EccSaveKeyMaterial() argument
164 const uint32_t keyByteLen = HKS_KEY_BYTES(keySize); in EccSaveKeyMaterial()
173 keyMaterial->keySize = keySize; in EccSaveKeyMaterial()
Dhks_mbedtls_dh.c43 static int32_t GetDhParam(uint32_t keySize, struct HksBlob *P, struct HksBlob *G) in GetDhParam() argument
45 switch (keySize) { in GetDhParam()
71 static int32_t DhSaveKeyMaterial(const mbedtls_dhm_context *ctx, const uint32_t keySize, struct Hks… in DhSaveKeyMaterial() argument
73 const uint32_t keyByteLen = HKS_KEY_BYTES(keySize); in DhSaveKeyMaterial()
81 keyMaterial->keySize = keySize; in DhSaveKeyMaterial()
193 ret = GetDhParam(keyMaterial->keySize, &paramP, &paramG); in DhKeyMaterialToCtx()
201 ctx->len = HKS_KEY_BYTES(keyMaterial->keySize); in DhKeyMaterialToCtx()
/base/security/huks/frameworks/huks_standard/main/common/src/
Dhks_check_paramset.c370 if ((keyMaterial->keyAlg != alg) || (keyMaterial->keySize != params->keyLen.value)) { in CheckImportKeySize()
473 if ((keyMaterial->keyAlg != alg) || (keyMaterial->keySize != params->keyLen.value)) { in CheckRsaKeyLen()
485 …uint32_t keySize = sizeof(struct HksKeyMaterialRsa) + keyMaterial->nSize + keyMaterial->dSize + ke… in CheckRsaKeyLen() local
486 if (key->size < keySize) { in CheckRsaKeyLen()
487 …_E("import key size[%" LOG_PUBLIC "u] smaller than keySize[%" LOG_PUBLIC "u]", key->size, keySize); in CheckRsaKeyLen()
503 if ((keyMaterial->keyAlg != alg) || (keyMaterial->keySize != params->keyLen.value)) { in CheckEccKeyLen()
523 …uint32_t keySize = sizeof(struct HksKeyMaterialEcc) + keyMaterial->xSize + keyMaterial->ySize + ke… in CheckEccKeyLen() local
524 if (key->size < keySize) { in CheckEccKeyLen()
525 …_E("import key size[%" LOG_PUBLIC "u] smaller than keySize[%" LOG_PUBLIC "u]", key->size, keySize); in CheckEccKeyLen()
541 if ((keyMaterial->keyAlg != alg) || (keyMaterial->keySize != params->keyLen.value)) { in CheckDsaKeyLen()
[all …]
Dhks_base_check.c779 uint32_t expectCnt, uint32_t *keySize) in CheckAndGetKeySize() argument
798 *keySize = keySizeParam->uint32Param; in CheckAndGetKeySize()
803 uint32_t expectCnt, uint32_t *keySize) in CheckAndGetKeySize() argument
815 *keySize = keyLen; in CheckAndGetKeySize()
1067 static int32_t CheckEccSignature(uint32_t cmdId, uint32_t keySize, const struct HksBlob *signature) in CheckEccSignature() argument
1074 uint32_t eccSignRSize = keySize / HKS_BITS_PER_BYTE + keySize % HKS_BITS_PER_BYTE; in CheckEccSignature()
1080 keySize, signature->size); in CheckEccSignature()
1087 keySize, signature->size); in CheckEccSignature()
1138 static int32_t CheckRsaSignature(uint32_t cmdId, uint32_t keySize, const struct HksBlob *signature) in CheckRsaSignature() argument
1146 if (signature->size < keySize / HKS_BITS_PER_BYTE) { in CheckRsaSignature()
[all …]
/base/security/huks/services/huks_standard/huks_engine/main/core/src/
Dhks_keyblob.c47 uint32_t keySize; member
181 uint32_t keySize; in BuildKeyBlobUsageSpec() local
182 … (void)memcpy_s(&keySize, sizeof(keySize), &(keyBlobInfo->keySize), sizeof(keyBlobInfo->keySize)); in BuildKeyBlobUsageSpec()
184 aeadParam->payloadLen = keySize; in BuildKeyBlobUsageSpec()
218 uint32_t keySize; in EncryptAndDecryptKeyBlob() local
219 (void)memcpy_s(&keySize, sizeof(keySize), &(keyBlobInfo->keySize), sizeof(keySize)); in EncryptAndDecryptKeyBlob()
220 if ((keyParam->blob.size - sizeof(*keyBlobInfo)) != keySize) { in EncryptAndDecryptKeyBlob()
222 keySize, keyParam->blob.size); in EncryptAndDecryptKeyBlob()
228 struct HksBlob srcKey = { keySize, keyParam->blob.data + sizeof(*keyBlobInfo) }; in EncryptAndDecryptKeyBlob()
288 keyBlobInfo->keySize = key->size; in InitKeyBlobInfo()
[all …]
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/include/
Dhks_openssl_aes.h76 const EVP_CIPHER *GetBlockCipherType(uint32_t keySize, uint32_t mode,
77 const EVP_CIPHER *(*getCbcCipherType)(uint32_t keySize),
78 const EVP_CIPHER *(*getCtrCipherType)(uint32_t keySize),
79 const EVP_CIPHER *(*getEcbCipherType)(uint32_t keySize));
88 const EVP_CIPHER *(*getCipherType)(uint32_t keySize, uint32_t mode));
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
Dhks_inner_test.cpp150 HksParam keySize; variable
151 keySize.tag = HKS_TAG_KEY_SIZE;
152 keySize.uint32Param = 256;
153 HksAddParams(paramSet, &keySize, 1);
197 HksParam keySize; variable
198 keySize.tag = HKS_TAG_KEY_SIZE;
199 keySize.uint32Param = 256;
200 HksAddParams(paramSet, &keySize, 1);
317 HksParam keySize; variable
318 keySize.tag = HKS_TAG_KEY_SIZE;
[all …]
/base/security/huks/utils/crypto_adapter/
Dhks_client_service_adapter.c122 static int32_t GetEccNid(uint32_t keySize, int32_t *nid) in GetEccNid() argument
135 if (keySize == (uint32_t)nids[i][0]) { in GetEccNid()
146 …const uint32_t alg, uint32_t keySize, const struct HksBlob *x, const struct HksBlob *y, struct Hks… in EccToX509PublicKey() argument
152 …HKS_IF_NOT_SUCC_LOGE_RETURN(GetEccNid(keySize, &nid), HKS_ERROR_INVALID_ARGUMENT, "GetNidFromKeySi… in EccToX509PublicKey()
200 … uint32_t keySize, const struct HksBlob *x, const struct HksBlob *y, struct HksBlob* uncompressed) in ConstructSm2ParamsPushPubKey() argument
211 …int memRet = memcpy_s(uncompressed->data + 1 + HKS_KEY_BYTES(keySize) - x->size, x->size, x->data,… in ConstructSm2ParamsPushPubKey()
231 static OSSL_PARAM *ConstructSm2ParamsFromRawPubKey(uint32_t keySize, const struct HksBlob *x, const… in ConstructSm2ParamsFromRawPubKey() argument
233 …if (keySize != HKS_SM2_KEY_SIZE_256 || x->size > HKS_KEY_BYTES(keySize) || y->size > HKS_KEY_BYTES… in ConstructSm2ParamsFromRawPubKey()
240 …struct HksBlob uncompressedPublicKey = { 1 + HKS_KEY_BYTES(keySize) + HKS_KEY_BYTES(keySize), NULL… in ConstructSm2ParamsFromRawPubKey()
253 ret = ConstructSm2ParamsPushPubKey(paramBld, keySize, x, y, &uncompressedPublicKey); in ConstructSm2ParamsFromRawPubKey()
[all …]
/base/security/huks/frameworks/huks_standard/main/core/src/
Dhks_local_engine.c181 uint32_t keySize = 0; in CheckLocalCipherParams()
183 keySize = key->size * HKS_BITS_PER_BYTE; in CheckLocalCipherParams()
186 keySize = keyMaterial->keySize; in CheckLocalCipherParams()
191 return HksLocalCheckCipherParams(cmdId, keySize, paramSet, inputText, outputText); in CheckLocalCipherParams()
261 uint32_t keySize = 0; in CheckLocalSignVerifyParams()
263 keySize = ((struct KeyMaterialRsa *)key->data)->keySize; in CheckLocalSignVerifyParams()
265 keySize = ((struct KeyMaterialDsa *)key->data)->keySize; in CheckLocalSignVerifyParams()
267 keySize = ((struct KeyMaterialEcc *)key->data)->keySize; in CheckLocalSignVerifyParams()
269 keySize = key->size * HKS_BITS_PER_BYTE; in CheckLocalSignVerifyParams()
272 ret = HksLocalCheckSignVerifyParams(cmdId, keySize, paramSet, srcData, signature); in CheckLocalSignVerifyParams()
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/include/
Dopenssl_dsa_helper.h31 EVP_PKEY *GenerateDsaKey(const uint32_t keySize);
43 int32_t SaveDsaKeyToHksBlob(EVP_PKEY *pkey, const uint32_t keySize, struct HksBlob *key);
/base/security/huks/interfaces/kits/c/include/
Dnative_huks_type.h748 uint32_t keySize; member
767 uint32_t keySize; member
786 uint32_t keySize; member
805 uint32_t keySize; member
828 uint32_t keySize; member
847 uint32_t keySize; member
/base/security/huks/interfaces/kits/napi/src/
Dhuks_napi.cpp201 napi_value keySize = nullptr; in CreateHuksKeySize() local
202 NAPI_CALL(env, napi_create_object(env, &keySize)); in CreateHuksKeySize()
204 AddInt32Property(env, keySize, "HUKS_RSA_KEY_SIZE_512", HKS_RSA_KEY_SIZE_512); in CreateHuksKeySize()
205 AddInt32Property(env, keySize, "HUKS_RSA_KEY_SIZE_768", HKS_RSA_KEY_SIZE_768); in CreateHuksKeySize()
206 AddInt32Property(env, keySize, "HUKS_RSA_KEY_SIZE_1024", HKS_RSA_KEY_SIZE_1024); in CreateHuksKeySize()
207 AddInt32Property(env, keySize, "HUKS_RSA_KEY_SIZE_2048", HKS_RSA_KEY_SIZE_2048); in CreateHuksKeySize()
208 AddInt32Property(env, keySize, "HUKS_RSA_KEY_SIZE_3072", HKS_RSA_KEY_SIZE_3072); in CreateHuksKeySize()
209 AddInt32Property(env, keySize, "HUKS_RSA_KEY_SIZE_4096", HKS_RSA_KEY_SIZE_4096); in CreateHuksKeySize()
211 AddInt32Property(env, keySize, "HUKS_ECC_KEY_SIZE_224", HKS_ECC_KEY_SIZE_224); in CreateHuksKeySize()
212 AddInt32Property(env, keySize, "HUKS_ECC_KEY_SIZE_256", HKS_ECC_KEY_SIZE_256); in CreateHuksKeySize()
[all …]
/base/security/huks/interfaces/kits/liteapi/src/
Dhks_lite_api.cpp94 JSIValue keySize = JSI::CreateObject(); in CreateHuksKeySize() local
96 AddInt32PropertyInLite(keySize, "HUKS_AES_KEY_SIZE_128", HKS_AES_KEY_SIZE_128); in CreateHuksKeySize()
97 AddInt32PropertyInLite(keySize, "HUKS_AES_KEY_SIZE_192", HKS_AES_KEY_SIZE_192); in CreateHuksKeySize()
98 AddInt32PropertyInLite(keySize, "HUKS_AES_KEY_SIZE_256", HKS_AES_KEY_SIZE_256); in CreateHuksKeySize()
99 AddInt32PropertyInLite(keySize, "HUKS_AES_KEY_SIZE_512", HKS_AES_KEY_SIZE_512); in CreateHuksKeySize()
101 return keySize; in CreateHuksKeySize()
/base/security/crypto_framework/frameworks/key/
Dsym_key_generator.c78 keyAttr->keySize = AES_KEY_SIZE_128; in SetKeyLength()
82 keyAttr->keySize = AES_KEY_SIZE_192; in SetKeyLength()
86 keyAttr->keySize = AES_KEY_SIZE_256; in SetKeyLength()
90 keyAttr->keySize = SM4_KEY_SIZE_128; in SetKeyLength()
94 keyAttr->keySize = DES_KEY_SIZE_192; in SetKeyLength()

123456