Home
last modified time | relevance | path

Searched refs:isPubKey (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/base/security/huks/frameworks/huks_standard/main/common/src/
H A Dhks_crypto_adapter.c331 static int32_t SetCurve25519KeyMaterial(bool isPubKey, const struct HksBlob *keyIn, struct HksBlob … in SetCurve25519KeyMaterial() argument
338 if (isPubKey) { in SetCurve25519KeyMaterial()
415 int32_t GetCurve25519FromKeyMaterial(const bool isPubKey, const struct HksBlob *keyMaterial, in GetCurve25519FromKeyMaterial() argument
423 uint32_t size = (isPubKey ? km->pubKeySize : km->priKeySize); in GetCurve25519FromKeyMaterial()
433 …uint8_t *tmp = (isPubKey ? (keyMaterial->data + offset) : (keyMaterial->data + offset + km->pubKey… in GetCurve25519FromKeyMaterial()
564 int32_t HksSetKeyToMaterial(uint32_t alg, bool isPubKey, const struct HksBlob *key, struct HksBlob … in HksSetKeyToMaterial() argument
569 return SetCurve25519KeyMaterial(isPubKey, key, keyMaterial); in HksSetKeyToMaterial()
590 int32_t HksGetKeyFromMaterial(uint32_t alg, bool isPubKey, const struct HksBlob *keyMaterial, struc… in HksGetKeyFromMaterial() argument
595 return GetCurve25519FromKeyMaterial(isPubKey, keyMaterial, key); in HksGetKeyFromMaterial()
/ohos5.0/base/security/huks/frameworks/huks_standard/main/common/include/
H A Dhks_crypto_adapter.h50 int32_t HksSetKeyToMaterial(uint32_t alg, bool isPubKey, const struct HksBlob *key, struct HksBlob …
52 int32_t HksGetKeyFromMaterial(uint32_t alg, bool isPubKey, const struct HksBlob *keyMaterial, struc…
/ohos5.0/base/security/huks/services/huks_standard/huks_engine/main/core/src/
H A Dhks_core_service_key_generate.c111 static int32_t GetAgreeBaseKey(const bool isPubKey, const bool isPlainPubKey, const struct HksBlob … in GetAgreeBaseKey() argument
115 uint32_t size = isPubKey ? keyPair->publicBufferSize : keyPair->privateBufferSize; in GetAgreeBaseKey()
119 uint8_t *tmp = isPubKey ? (keyIn->data + sizeof(*keyPair)) : in GetAgreeBaseKey()
/ohos5.0/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/
H A Dhks_mbedtls_x25519.c145 …9CheckKeySize(const struct HksBlob *key, const struct KeyMaterial25519 *keyMaterial, bool isPubKey) in X25519CheckKeySize() argument
148 (isPubKey ? 0 : keyMaterial->priKeySize))) { in X25519CheckKeySize()