Home
last modified time | relevance | path

Searched refs:pub (Results 1 – 18 of 18) sorted by relevance

/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/
Dhks_crypto_ed25519.c38 #define ED25519_PUBLIC_FROM_PRIVATE(pub, priv) ED25519_public_from_private((pub), (priv)) argument
39 #define ED25519_SIGN(sig, msgData, msgSize, pub, priv) ED25519_sign((sig), (msgData), (msgSize), (p… argument
40 #define ED25519_VERIFY(msgData, msgSize, sig, pub) ED25519_verify((msgData), (msgSize), (sig), (pub argument
43 #define ED25519_PUBLIC_FROM_PRIVATE(pub, priv) ossl_ed25519_public_from_private(NULL, (pub), (priv)… argument
44 #define ED25519_SIGN(sig, msgData, msgSize, pub, priv) \ argument
45 ossl_ed25519_sign((sig), (msgData), (msgSize), (pub), (priv), NULL, NULL)
46 #define ED25519_VERIFY(msgData, msgSize, sig, pub) ossl_ed25519_verify((msgData), (msgSize), (sig),… argument
Dhks_mbedtls_ecc.c116 int32_t HksEccKeyMaterialToPub(const struct HksBlob *key, mbedtls_ecp_point *pub) in HksEccKeyMaterialToPub() argument
121 …int32_t ret = mbedtls_mpi_read_binary(&(pub->MBEDTLS_PRIVATE(X)), key->data + offset, keyMaterial-… in HksEccKeyMaterialToPub()
128 … ret = mbedtls_mpi_read_binary(&(pub->MBEDTLS_PRIVATE(Y)), key->data + offset, keyMaterial->ySize); in HksEccKeyMaterialToPub()
135 ret = mbedtls_mpi_lset(&(pub->MBEDTLS_PRIVATE(Z)), 1); in HksEccKeyMaterialToPub()
Dhks_mbedtls_x25519.c170 static int32_t X25519SaveKeyMaterial(const mbedtls_ecp_point *pub, in X25519SaveKeyMaterial() argument
187 …int32_t ret = mbedtls_mpi_write_binary(&(pub->MBEDTLS_PRIVATE(X)), rawMaterial + offset, keyMateri… in X25519SaveKeyMaterial()
221 mbedtls_ecp_point pub; in HksMbedtlsX25519GenerateKey() local
232 mbedtls_ecp_point_init(&pub); in HksMbedtlsX25519GenerateKey()
242 ret = mbedtls_ecdh_gen_public(&grp, &pri, &pub, mbedtls_ctr_drbg_random, &ctrDrbg); in HksMbedtlsX25519GenerateKey()
248 ret = X25519SaveKeyMaterial(&pub, &pri, key); in HksMbedtlsX25519GenerateKey()
252 mbedtls_ecp_point_free(&pub); in HksMbedtlsX25519GenerateKey()
261 static int32_t X25519KeyMaterialToPub(const struct HksBlob *pubKey, mbedtls_ecp_point *pub) in X25519KeyMaterialToPub() argument
279 … ret = mbedtls_mpi_read_binary(&(pub->MBEDTLS_PRIVATE(X)), tmpPubKey, keyMaterial->pubKeySize); in X25519KeyMaterialToPub()
286 ret = mbedtls_mpi_lset(&(pub->MBEDTLS_PRIVATE(Z)), 1); in X25519KeyMaterialToPub()
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/
Dhks_openssl_dh.c175 …BIGNUM *pub = BN_bin2bn(pubKey->data + sizeof(struct KeyMaterialDh), pubKeyMaterial->pubKeySize, N… in HksOpensslDhAgreeKey() local
176 HKS_IF_NULL_RETURN(pub, HKS_ERROR_CRYPTO_ENGINE_ERROR) in HksOpensslDhAgreeKey()
180 BN_free(pub); in HksOpensslDhAgreeKey()
186 BN_free(pub); in HksOpensslDhAgreeKey()
191 if (DH_compute_key_padded(computeKey, pub, dh) <= 0) { in HksOpensslDhAgreeKey()
193 BN_free(pub); in HksOpensslDhAgreeKey()
211 BN_free(pub); in HksOpensslDhAgreeKey()
Dhks_openssl_ecc.c253 EC_POINT *pub = EC_POINT_new(ecGroup); in EccInitPublicKey() local
258 if ((pubX == NULL) || (pubY == NULL) || (pub == NULL)) { in EccInitPublicKey()
263 if (EC_POINT_set_affine_coordinates_GFp(ecGroup, pub, pubX, pubY, NULL) <= 0) { in EccInitPublicKey()
268 if (EC_KEY_set_public_key(eccKey, pub) <= 0) { in EccInitPublicKey()
285 if (pub != NULL) { in EccInitPublicKey()
286 EC_POINT_free(pub); in EccInitPublicKey()
287 pub = NULL; in EccInitPublicKey()
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/
Dopenssl_dh_helper.c158 …BIGNUM *pub = BN_bin2bn(pubKey->data + sizeof(struct KeyMaterialDh), pubKeyMaterial->pubKeySize, N… in DhAgreeKey() local
159 if (pub == NULL) { in DhAgreeKey()
166 BN_free(pub); in DhAgreeKey()
171 if (DH_compute_key_padded(computeKey, pub, dh) <= 0) { in DhAgreeKey()
173 BN_free(pub); in DhAgreeKey()
191 BN_free(pub); in DhAgreeKey()
Dopenssl_ecc_helper.c179 EC_POINT *pub = EC_POINT_new(ecGroup); in EccInitPublicKey() local
184 if ((pubX == NULL) || (pubY == NULL) || (pub == NULL)) { in EccInitPublicKey()
188 if (EC_POINT_set_affine_coordinates_GFp(ecGroup, pub, pubX, pubY, NULL) <= 0) { in EccInitPublicKey()
192 if (EC_KEY_set_public_key(eccKey, pub) <= 0) { in EccInitPublicKey()
208 if (pub != NULL) { in EccInitPublicKey()
209 EC_POINT_free(pub); in EccInitPublicKey()
210 pub = NULL; in EccInitPublicKey()
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/ohos/global/i18n/
DResourceConfiguration.java73 String pub; field in ResourceConfiguration.ConfigItem
121 return pub; in getPub()
DUtils.java272 if ("true".equals(item.pub) && item.elements != null) { in generateAvailableDateTimeFormatPattern()
/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/include/
Dhks_mbedtls_ecc.h42 int32_t HksEccKeyMaterialToPub(const struct HksBlob *key, mbedtls_ecp_point *pub);
/base/telephony/ril_adapter/interfaces/innerkits/
DBUILD.gn60 relative_install_dir = "chipset-pub-sdk"
/base/security/huks/utils/crypto_adapter/
Dhks_client_service_adapter.c439 BIGNUM *pub = NULL; in DhToX509PublicKey()
446 pub = BN_bin2bn(pubKey->data, pubKey->size, NULL); in DhToX509PublicKey()
447 …HKS_IF_NULL_LOGE_BREAK(pub, "BN_bin2bn error %" LOG_PUBLIC "s", ERR_reason_error_string(ERR_get_er… in DhToX509PublicKey()
449 if (DH_set0_key(dh, pub, NULL) != 1) { in DhToX509PublicKey()
453 pub = NULL; in DhToX509PublicKey()
467 SELF_FREE_PTR(pub, BN_free) in DhToX509PublicKey()
/base/security/crypto_framework/plugin/openssl_plugin/common/src/
Dopenssl_adapter.c121 int Openssl_EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub) in Openssl_EC_KEY_set_public_key() argument
123 return EC_KEY_set_public_key(key, pub); in Openssl_EC_KEY_set_public_key()
/base/security/crypto_framework/test/unittest/src/
Dopenssl_adapter_mock.c216 int Openssl_EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub) in Openssl_EC_KEY_set_public_key() argument
221 return EC_KEY_set_public_key(key, pub); in Openssl_EC_KEY_set_public_key()
/base/security/crypto_framework/plugin/openssl_plugin/common/inc/
Dopenssl_adapter.h54 int Openssl_EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub);
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest008/
Dlast_kmsg704 <6>[ 5.724490] [I/xpm_kernel]test_print_info: /system/lib/chipset-pub-sdk/libxml2.z.so -> type: …
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest004/
Dlast_kmsg704 <6>[ 5.724490] [I/xpm_kernel]test_print_info: /system/lib/chipset-pub-sdk/libxml2.z.so -> type: …
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest005/
Dlast_kmsg704 <6>[ 5.724490] [I/xpm_kernel]test_print_info: /system/lib/chipset-pub-sdk/libxml2.z.so -> type: …