Searched refs:KeyMaterialDh (Results 1 – 7 of 7) sorted by relevance
58 struct KeyMaterialDh *keyMaterial = (struct KeyMaterialDh *)rawMaterial; in DhSaveKeyMaterial()65 uint32_t offset = sizeof(struct KeyMaterialDh); in DhSaveKeyMaterial()108 const struct KeyMaterialDh *keyMaterial = (struct KeyMaterialDh *)(key->data); in InitDhStruct()124 uint32_t offset = sizeof(struct KeyMaterialDh); in InitDhStruct()157 struct KeyMaterialDh *pubKeyMaterial = (struct KeyMaterialDh *)pubKey->data; in DhAgreeKey()198 struct KeyMaterialDh *keyMaterial = (struct KeyMaterialDh *)input->data; in DhGetDhPubKey()210 ((struct KeyMaterialDh *)output->data)->priKeySize = 0; in DhGetDhPubKey()211 ((struct KeyMaterialDh *)output->data)->reserved = 0; in DhGetDhPubKey()244 struct KeyMaterialDh *keyMaterial = (struct KeyMaterialDh *)keyBuffer; in DhX509ToHksBlob()251 BN_bn2bin(pubKey, keyBuffer + sizeof(struct KeyMaterialDh)); in DhX509ToHksBlob()[all …]
72 const struct KeyMaterialDh *keyMaterial = (struct KeyMaterialDh *)(key->data); in InitDhStruct()87 uint32_t offset = sizeof(struct KeyMaterialDh); in InitDhStruct()103 const struct KeyMaterialDh *keyMaterial = (struct KeyMaterialDh *)(key->data); in InitDhPubStruct()115 uint32_t offset = sizeof(struct KeyMaterialDh); in InitDhPubStruct()140 struct KeyMaterialDh *keyMaterial = (struct KeyMaterialDh *)rawMaterial; in DhSaveKeyMaterial()147 uint32_t offset = sizeof(struct KeyMaterialDh); in DhSaveKeyMaterial()187 struct KeyMaterialDh *keyMaterial = (struct KeyMaterialDh *)input->data; in HksOpensslGetDhPubKey()196 ((struct KeyMaterialDh *)output->data)->priKeySize = 0; in HksOpensslGetDhPubKey()197 ((struct KeyMaterialDh *)output->data)->reserved = 0; in HksOpensslGetDhPubKey()208 struct KeyMaterialDh *pubKeyMaterial = (struct KeyMaterialDh *)nativeKey->data; in HksOpensslDhCheckPubKey()[all …]
74 const uint32_t rawMaterialLen = sizeof(struct KeyMaterialDh) + keyByteLen * HKS_DH_KEYPAIR_CNT; in DhSaveKeyMaterial()79 struct KeyMaterialDh *keyMaterial = (struct KeyMaterialDh *)rawMaterial; in DhSaveKeyMaterial()164 struct KeyMaterialDh *keyMaterial = (struct KeyMaterialDh *)input->data; in HksMbedtlsGetDhPubKey()165 if (input->size < sizeof(struct KeyMaterialDh) + keyMaterial->pubKeySize) { in HksMbedtlsGetDhPubKey()168 if (output->size < sizeof(struct KeyMaterialDh) + keyMaterial->pubKeySize) { in HksMbedtlsGetDhPubKey()176 ((struct KeyMaterialDh *)output->data)->priKeySize = 0; in HksMbedtlsGetDhPubKey()177 ((struct KeyMaterialDh *)output->data)->reserved = 0; in HksMbedtlsGetDhPubKey()178 output->size = sizeof(struct KeyMaterialDh) + keyMaterial->pubKeySize; in HksMbedtlsGetDhPubKey()187 const struct KeyMaterialDh *keyMaterial = (struct KeyMaterialDh *)(key->data); in DhKeyMaterialToCtx()203 uint32_t offset = sizeof(struct KeyMaterialDh); in DhKeyMaterialToCtx()[all …]
464 KeyMaterialDh *keyMaterial = (KeyMaterialDh *)key.data;466 uint32_t keyOutLen = sizeof(KeyMaterialDh) + keyMaterial->pubKeySize;467 HksBlob keyOut = { .size = sizeof(KeyMaterialDh), .data = (uint8_t *)HksMalloc(keyOutLen) };498 KeyMaterialDh *keyMaterial = (KeyMaterialDh *)key.data;
541 if (keyIn->size < sizeof(struct KeyMaterialDh)) { in FormatDhKey()545 struct KeyMaterialDh *keyMaterial = (struct KeyMaterialDh *)keyIn->data; in FormatDhKey()546 uint32_t publicKeySize = sizeof(struct KeyMaterialDh) + keyMaterial->pubKeySize; in FormatDhKey()556 ((struct KeyMaterialDh *)publicKey)->priKeySize = 0; in FormatDhKey()
705 if (pubKeySize > UINT32_MAX - sizeof(struct KeyMaterialDh)) { in X509PublicKeyToDh()710 uint32_t totalSize = sizeof(struct KeyMaterialDh) + pubKeySize; in X509PublicKeyToDh()713 struct KeyMaterialDh *keyMaterial = (struct KeyMaterialDh *)keyBuffer; in X509PublicKeyToDh()720 BN_bn2bin(pubKey, keyBuffer + sizeof(struct KeyMaterialDh)); in X509PublicKeyToDh()
103 struct KeyMaterialDh { struct