Home
last modified time | relevance | path

Searched refs:encKey (Results 1 – 20 of 20) sorted by relevance

/ohos5.0/drivers/peripheral/huks/hdi_service/
H A Dhuks_hdi_service.c72 static int32_t HuksExportPublicKey(struct IHuks *self, const struct HuksBlob *encKey, in HuksExportPublicKey() argument
77 HDI_CONVERTER_FUNC_EXPORTPUBLICKEY(encKey, paramSet, keyOut, ret, HuksHdiAdapterExportPublicKey) in HuksExportPublicKey()
86 HDI_CONVERTER_FUNC_INIT(encKey, paramSet, handle, token, ret, HuksHdiAdapterInit) in HuksInit()
117 const struct HuksBlob *encKey) in HuksCheckKeyValidity() argument
121 HDI_CONVERTER_FUNC_CHECKKEYVALIDITY(paramSet, encKey, ret, HuksHdiAdapterGetKeyProperties) in HuksCheckKeyValidity()
130 HDI_CONVERTER_FUNC_ATTESTKEY(encKey, paramSet, certChain, ret, HuksHdiAdapterAttestKey) in HuksAttestKey()
147 HDI_CONVERTER_FUNC_SIGN(encKey, paramSet, srcData, signature, ret, HuksHdiAdapterSign) in HuksSign()
156 HDI_CONVERTER_FUNC_VERIFY(encKey, paramSet, srcData, signature, ret, HuksHdiAdapterVerify) in HuksVerify()
165 HDI_CONVERTER_FUNC_ENCRYPT(encKey, paramSet, plainText, cipherText, ret, HuksHdiAdapterEncrypt) in HuksEncrypt()
174 HDI_CONVERTER_FUNC_DECRYPT(encKey, paramSet, cipherText, plainText, ret, HuksHdiAdapterDecrypt) in HuksDecrypt()
[all …]
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/huks/
H A Dinterface_i_huks.md105 IHuks::AttestKey ([in] struct HuksBlob encKey, [in] struct HuksParamSet paramSet, [out] struct Huks…
117 | encKey | 密钥材料密文[HuksBlob](_huks_blob.md),密钥材料结构参见《HUKS设备开发指南》。 |
131 IHuks::CheckKeyValidity ([in] struct HuksParamSet paramSet, [in] struct HuksBlob encKey )
144 | encKey | 密钥材料密文[HuksBlob](_huks_blob.md),密钥材料结构参见《HUKS设备开发指南》。 |
168 | encKey | 密钥材料密文[HuksBlob](_huks_blob.md),密钥材料结构参见《HUKS设备开发指南》。 |
221 | encKey | 密钥材料密文[HuksBlob](_huks_blob.md),密钥材料结构参见《HUKS设备开发指南》。 |
274 | encKey | 加密的密钥对材料[HuksBlob](_huks_blob.md),密钥材料结构参见《HUKS设备开发指南》。 |
438 | encKey | 加密的密钥材料[HuksBlob](_huks_blob.md),密钥材料结构参见《HUKS设备开发指南》。 |
469 | encKey | 密钥材料密文[HuksBlob](_huks_blob.md),密钥材料结构参见《HUKS设备开发指南》。 |
514 | encKey | 密钥材料密文[HuksBlob](_huks_blob.md),密钥材料结构参见《HUKS设备开发指南》。 |
[all …]
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/huks_v1_0/c_target/huks/v1_0/
H A Dihuks.h.txt47 …int32_t (*ExportPublicKey)(struct IHuks *self, const struct HuksBlob* encKey, const struct HuksPar…
50 …int32_t (*Init)(struct IHuks *self, const struct HuksBlob* encKey, const struct HuksParamSet* para…
61 …yValidity)(struct IHuks *self, const struct HuksParamSet* paramSet, const struct HuksBlob* encKey);
63 …int32_t (*AttestKey)(struct IHuks *self, const struct HuksBlob* encKey, const struct HuksParamSet*…
68 …int32_t (*Sign)(struct IHuks *self, const struct HuksBlob* encKey, const struct HuksParamSet* para…
71 …int32_t (*Verify)(struct IHuks *self, const struct HuksBlob* encKey, const struct HuksParamSet* pa…
74 …int32_t (*Encrypt)(struct IHuks *self, const struct HuksBlob* encKey, const struct HuksParamSet* p…
77 …int32_t (*Decrypt)(struct IHuks *self, const struct HuksBlob* encKey, const struct HuksParamSet* p…
86 …int32_t (*Mac)(struct IHuks *self, const struct HuksBlob* encKey, const struct HuksParamSet* param…
H A Dhuks_service.c.txt56 static int32_t HuksExportPublicKey(struct IHuks *self, const struct HuksBlob* encKey,
62 static int32_t HuksInit(struct IHuks *self, const struct HuksBlob* encKey, const struct HuksParamSe…
86 const struct HuksBlob* encKey)
91 static int32_t HuksAttestKey(struct IHuks *self, const struct HuksBlob* encKey, const struct HuksPa…
102 static int32_t HuksSign(struct IHuks *self, const struct HuksBlob* encKey, const struct HuksParamSe…
108 static int32_t HuksVerify(struct IHuks *self, const struct HuksBlob* encKey, const struct HuksParam…
114 static int32_t HuksEncrypt(struct IHuks *self, const struct HuksBlob* encKey, const struct HuksPara…
120 static int32_t HuksDecrypt(struct IHuks *self, const struct HuksBlob* encKey, const struct HuksPara…
138 static int32_t HuksMac(struct IHuks *self, const struct HuksBlob* encKey, const struct HuksParamSet…
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/huks_v1_0/dump_ast_target/
H A Ddump.txt31 [in] ohos.hdi.huks.v1_0.HuksBlob encKey,
36 [in] ohos.hdi.huks.v1_0.HuksBlob encKey,
59 [in] ohos.hdi.huks.v1_0.HuksBlob encKey);
62 [in] ohos.hdi.huks.v1_0.HuksBlob encKey,
71 [in] ohos.hdi.huks.v1_0.HuksBlob encKey,
77 [in] ohos.hdi.huks.v1_0.HuksBlob encKey,
83 [in] ohos.hdi.huks.v1_0.HuksBlob encKey,
89 [in] ohos.hdi.huks.v1_0.HuksBlob encKey,
106 [in] ohos.hdi.huks.v1_0.HuksBlob encKey,
/ohos5.0/base/security/device_auth/services/session_manager/src/session/v2/expand_sub_session/
H A Dexpand_sub_session.c55 Uint8Buff encKey; member
107 …KeyParams keyParams = { { impl->encKey.val, impl->encKey.length, false }, false, DEFAULT_OS_ACCOUN… in EncryptMsg()
130 …KeyParams keyParams = { { impl->encKey.val, impl->encKey.length, false }, false, DEFAULT_OS_ACCOUN… in DecryptMsg()
493 ClearFreeUint8Buff(&(impl->encKey)); in DestroyExpandSubSession()
503 int32_t CreateExpandSubSession(const Uint8Buff *nonce, const Uint8Buff *encKey, ExpandSubSession **… in CreateExpandSubSession() argument
509 if ((encKey == NULL) || (encKey->val == NULL)) { in CreateExpandSubSession()
527 if (DeepCopyUint8Buff(encKey, &(impl->encKey)) != HC_SUCCESS) { in CreateExpandSubSession()
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/ble/
H A Dble_security.cpp535 LeEncKey encKey; in GapLeLocalEncryptionKeyReqEvent() local
536 (void)memset_s(&encKey, sizeof(encKey), 0x00, sizeof(encKey)); in GapLeLocalEncryptionKeyReqEvent()
545 (void)memcpy_s(encKey.ltk, GAP_CSRK_SIZE, &vec[0], vec.size()); in GapLeLocalEncryptionKeyReqEvent()
546 encKey.rand = std::stoull(rand); in GapLeLocalEncryptionKeyReqEvent()
547 encKey.ediv = std::stoull(ediv); in GapLeLocalEncryptionKeyReqEvent()
554 (void)memset_s(&encKey, sizeof(encKey), 0x00, sizeof(encKey)); in GapLeLocalEncryptionKeyReqEvent()
564 LeEncKey encKey; in GapLeRemoteEncryptionKeyReqEvent() local
565 (void)memset_s(&encKey, sizeof(encKey), 0x00, sizeof(encKey)); in GapLeRemoteEncryptionKeyReqEvent()
574 encKey.rand = std::stoull(rand); in GapLeRemoteEncryptionKeyReqEvent()
575 encKey.ediv = std::stoull(ediv); in GapLeRemoteEncryptionKeyReqEvent()
[all …]
/ohos5.0/docs/zh-cn/device-dev/subsystems/
H A Dsubsys-security-huks-guide.md363 <strong>const struct HuksBlob *encKey</strong>
365 1. encKey != null
366 2. encKey -> data != null
367 3. encKey -> dataLen != 0
404 <strong>const struct HuksBlob *encKey</strong>
406 1. encKey != null
407 2. encKey -> data != null
408 3. encKey -> dataLen != 0
592 const struct HuksBlob *encKey);</code></pre>
603 <strong>const struct HuksBlob *encKey</strong>
[all …]
/ohos5.0/drivers/interface/huks/v1_0/
H A DIHuks.idl148 * @param encKey Indicates the key pair material {@link HuksBlob}
170 * @param encKey Indicates the key material {@link HuksBlob} in ciphertext.
187 … Init([in] struct HuksBlob encKey, [in] struct HuksParamSet paramSet, [out]struct HuksBlob handle,
259 * @param encKey Indicates the key material {@link HuksBlob} in ciphertext
269 CheckKeyValidity([in] struct HuksParamSet paramSet, [in] struct HuksBlob encKey);
274 * @param encKey Indicates the key material {@link HuksBlob} in ciphertext.
310 * @param encKey Indicates the key material {@link HuksBlob} in ciphertext.
329 * @param encKey Indicates the key material {@link HuksBlob} in ciphertext.
350 * @param encKey Indicates the key material {@link HuksBlob} in ciphertext.
370 * @param encKey Indicates the key material {@link HuksBlob} in ciphertext.
[all …]
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/huks_v1_0/foo/huks/v1_0/
H A DIHuks.idl148 * @param encKey Indicates the key pair material {@link HuksBlob}
170 * @param encKey Indicates the key material {@link HuksBlob} in ciphertext.
187 … Init([in] struct HuksBlob encKey, [in] struct HuksParamSet paramSet, [out]struct HuksBlob handle,
259 * @param encKey Indicates the key material {@link HuksBlob} in ciphertext
269 CheckKeyValidity([in] struct HuksParamSet paramSet, [in] struct HuksBlob encKey);
274 * @param encKey Indicates the key material {@link HuksBlob} in ciphertext.
310 * @param encKey Indicates the key material {@link HuksBlob} in ciphertext.
329 * @param encKey Indicates the key material {@link HuksBlob} in ciphertext.
350 * @param encKey Indicates the key material {@link HuksBlob} in ciphertext.
370 * @param encKey Indicates the key material {@link HuksBlob} in ciphertext.
[all …]
/ohos5.0/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/src/
H A Ddlp_file.cpp79 cipher_.encKey.data = nullptr; in DlpFile()
80 cipher_.encKey.size = 0; in DlpFile()
94 if (cipher_.encKey.data != nullptr) { in ~DlpFile()
95 (void)memset_s(cipher_.encKey.data, cipher_.encKey.size, 0, cipher_.encKey.size); in ~DlpFile()
96 delete[] cipher_.encKey.data; in ~DlpFile()
97 cipher_.encKey.data = nullptr; in ~DlpFile()
299 res = CopyBlobParam(key, cipher_.encKey); in SetCipher()
312 CleanBlobParam(cipher_.encKey); in SetCipher()
900 DlpOpensslAesDecrypt(&cipher_.encKey, &spec, &message1, &message2); in DoDlpBlockCryptOperation()
1296 if (!IsValidCipher(cipher_.encKey, cipher_.usageSpec, cipher_.hmacKey)) { in RemoveDlpPermission()
[all …]
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/src/gap/
H A Dgap_le_sec.c571 int GAP_LeRemoteEncryptionKeyRsp(const BtAddr *addr, uint8_t accept, LeEncKey encKey, uint8_t keyTy… in GAP_LeRemoteEncryptionKeyRsp() argument
588 deviceInfo->keySize = encKey.keySize; in GAP_LeRemoteEncryptionKeyRsp()
597 … ret = SMP_StartEncryption(deviceInfo->handle, (uint8_t *)&encKey.rand, encKey.ediv, encKey.ltk); in GAP_LeRemoteEncryptionKeyRsp()
603 … ret = SMP_StartEncryption(deviceInfo->handle, (uint8_t *)&encKey.rand, encKey.ediv, encKey.ltk); in GAP_LeRemoteEncryptionKeyRsp()
617 int GAP_LeLocalEncryptionKeyRsp(const BtAddr *addr, uint8_t accept, LeEncKey encKey, uint8_t keyTyp… in GAP_LeLocalEncryptionKeyRsp() argument
631 deviceInfo->keySize = encKey.keySize; in GAP_LeLocalEncryptionKeyRsp()
633 ret = SMP_LongTermKeyRequestReply(deviceInfo->handle, true, encKey.ltk); in GAP_LeLocalEncryptionKeyRsp()
H A Dgap_le.h355 int GAP_LeRemoteEncryptionKeyRsp(const BtAddr *addr, uint8_t accept, LeEncKey encKey, uint8_t keyTy…
366 int GAP_LeLocalEncryptionKeyRsp(const BtAddr *addr, uint8_t accept, LeEncKey encKey, uint8_t keyTyp…
H A Dgap_le_if.c139 LeEncKey encKey; member
1177 …info->result = GAP_LeRemoteEncryptionKeyRsp(info->addr, info->accept, info->encKey, info->keyType); in GapLeRemoteEncryptionKeyRspTask()
1193 ctx->encKey = remoteEncKey; in GAPIF_LeRemoteEncryptionKeyRsp()
1208 … info->result = GAP_LeLocalEncryptionKeyRsp(info->addr, info->accept, info->encKey, info->keyType); in GapLeLocalEncryptionKeyRspTask()
1224 ctx->encKey = localEncKey; in GAPIF_LeLocalEncryptionKeyRsp()
/ohos5.0/docs/en/device-dev/subsystems/
H A Dsubsys-security-huks-guide.md365 <strong>const struct HuksBlob *encKey</strong>
367 1. encKey != null
368 2. encKey -> data != null
369 3. encKey -> dataLen != 0
406 <strong>const struct HuksBlob *encKey</strong>
408 1. encKey != null
409 2. encKey -> data != null
410 3. encKey -> dataLen != 0
593 const struct HuksBlob *encKey);</code></pre>
604 <strong>const struct HuksBlob *encKey</strong>
[all …]
/ohos5.0/base/security/device_auth/services/session_manager/inc/session/v2/expand_sub_session/
H A Dexpand_sub_session.h42 int32_t CreateExpandSubSession(const Uint8Buff *nonce, const Uint8Buff *encKey, ExpandSubSession **…
/ohos5.0/base/security/huks/services/huks_standard/huks_engine/main/core/src/
H A Dhks_keyblob_lite.c167 …struct HksBlob encKey = { keyInfo->keySize, cipherKey->data + keyInfo->keyInfoLen - keyInfo->keySi… in EncryptAndDecryptKeyBlob() local
170 ret = HksCryptoHalEncrypt(&kek, &usageSpec, rawKey, &encKey, &tag); in EncryptAndDecryptKeyBlob()
172 encKey.size -= HKS_AE_TAG_LEN; /* the decrypt len should remove the tag len */ in EncryptAndDecryptKeyBlob()
173 ret = HksCryptoHalDecrypt(&kek, &usageSpec, &encKey, rawKey); in EncryptAndDecryptKeyBlob()
H A Dhks_keyblob.c229 struct HksBlob encKey = srcKey; in EncryptAndDecryptKeyBlob() local
240 ret = HksCryptoHalEncrypt(&derivedKey, usageSpec, &srcKey, &encKey, &tag); in EncryptAndDecryptKeyBlob()
242 ret = HksCryptoHalDecrypt(&derivedKey, usageSpec, &encKey, &srcKey); in EncryptAndDecryptKeyBlob()
/ohos5.0/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/test/
H A Ddlp_file_test.cpp1331 testFile.cipher_.encKey.size = 0;
1333 testFile.cipher_.encKey.size = 16;
1392 testFile.cipher_.encKey.size = 0;
1394 testFile.cipher_.encKey.size = 16;
1646 testFile.cipher_.encKey.size = 0;
1648 testFile.cipher_.encKey.size = 16;
/ohos5.0/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/include/
H A Ddlp_file.h44 struct DlpBlob encKey; member