Home
last modified time | relevance | path

Searched refs:outEcPoint (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/standard/
H A Dhuks_adapter_diff_impl.c34 int32_t HashToPointX25519(const Uint8Buff *hash, Uint8Buff *outEcPoint) in HashToPointX25519() argument
37 struct HksBlob pointBlob = { outEcPoint->length, outEcPoint->val }; in HashToPointX25519()
/ohos5.0/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/common/
H A Dmbedtls_ec_adapter.c487 int32_t MbedtlsHashToPoint(const Uint8Buff *hash, Uint8Buff *outEcPoint) in MbedtlsHashToPoint() argument
492 CHECK_PTR_RETURN_HAL_ERROR_CODE(outEcPoint, "outEcPoint"); in MbedtlsHashToPoint()
493 CHECK_PTR_RETURN_HAL_ERROR_CODE(outEcPoint->val, "outEcPoint->val"); in MbedtlsHashToPoint()
494 CHECK_LEN_EQUAL_RETURN(outEcPoint->length, EC_LEN, "outEcPoint->length"); in MbedtlsHashToPoint()
501 .dataSize = outEcPoint->length, in MbedtlsHashToPoint()
502 .data = outEcPoint->val in MbedtlsHashToPoint()
514 int32_t MbedtlsHashToPoint25519(const Uint8Buff *hash, Uint8Buff *outEcPoint) in MbedtlsHashToPoint25519() argument
516 if (!IsValidUint8Buff(hash) || !IsValidUint8Buff(outEcPoint)) { in MbedtlsHashToPoint25519()
519 if (hash->length != BYTE_LENGTH_CURVE_25519 || outEcPoint->length != BYTE_LENGTH_CURVE_25519) { in MbedtlsHashToPoint25519()
528 …int status = Elligator(outEcPoint->val, BYTE_LENGTH_CURVE_25519, hashTmp, BYTE_LENGTH_CURVE_25519); in MbedtlsHashToPoint25519()
/ohos5.0/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/small/
H A Dhuks_adapter_diff_impl.c34 int32_t HashToPointX25519(const Uint8Buff *hash, Uint8Buff *outEcPoint) in HashToPointX25519() argument
36 int32_t res = MbedtlsHashToPoint25519(hash, outEcPoint); in HashToPointX25519()
/ohos5.0/base/security/device_auth/deps_adapter/key_management_adapter/impl/inc/
H A Dmbedtls_ec_adapter.h30 int32_t MbedtlsHashToPoint(const Uint8Buff *hash, Uint8Buff *outEcPoint);
31 int32_t MbedtlsHashToPoint25519(const Uint8Buff *hash, Uint8Buff *outEcPoint);
H A Dhuks_adapter_diff_impl.h27 int32_t HashToPointX25519(const Uint8Buff *hash, Uint8Buff *outEcPoint);
/ohos5.0/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/mini/
H A Dhuks_adapter_diff_impl.c61 int32_t HashToPointX25519(const Uint8Buff *hash, Uint8Buff *outEcPoint) in HashToPointX25519() argument
63 int32_t res = MbedtlsHashToPoint25519(hash, outEcPoint); in HashToPointX25519()
/ohos5.0/base/security/device_auth/deps_adapter/key_management_adapter/interfaces/
H A Dalg_defs.h113 typedef int32_t (*HashToPointFunc)(const Uint8Buff *hash, Algorithm algo, Uint8Buff *outEcPoint);
/ohos5.0/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/
H A Dhuks_adapter.c1138 static int32_t HashToPoint(const Uint8Buff *hash, Algorithm algo, Uint8Buff *outEcPoint) in HashToPoint() argument
1143 CHECK_PTR_RETURN_HAL_ERROR_CODE(outEcPoint, "outEcPoint"); in HashToPoint()
1144 CHECK_PTR_RETURN_HAL_ERROR_CODE(outEcPoint->val, "outEcPoint->val"); in HashToPoint()
1152 return MbedtlsHashToPoint(hash, outEcPoint); in HashToPoint()
1155 CHECK_LEN_EQUAL_RETURN(outEcPoint->length, SHA256_LEN, "outEcPoint->length"); in HashToPoint()
1156 return HashToPointX25519(hash, outEcPoint); in HashToPoint()