Home
last modified time | relevance | path

Searched refs:public_key (Results 1 – 25 of 32) sorted by relevance

12

/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_common/tinycrypt/src/
Decc_dh.c69 int uECC_make_key_with_d(uint8_t *public_key, uint8_t *private_key, in uECC_make_key_with_d() argument
88 uECC_vli_nativeToBytes(public_key, in uECC_make_key_with_d()
91 uECC_vli_nativeToBytes(public_key + curve->num_bytes, in uECC_make_key_with_d()
103 int uECC_make_key(uint8_t *public_key, uint8_t *private_key, uECC_Curve curve) in uECC_make_key() argument
129 uECC_vli_nativeToBytes(public_key, in uECC_make_key()
132 uECC_vli_nativeToBytes(public_key + curve->num_bytes, in uECC_make_key()
145 int uECC_shared_secret(const uint8_t *public_key, const uint8_t *private_key, in uECC_shared_secret() argument
165 public_key, in uECC_shared_secret()
168 public_key + num_bytes, in uECC_shared_secret()
Decc_dsa.c191 int uECC_verify(const uint8_t *public_key, const uint8_t *message_hash, in uECC_verify() argument
218 uECC_vli_bytesToNative(_public, public_key, curve->num_bytes); in uECC_verify()
219 uECC_vli_bytesToNative(_public + num_words, public_key + curve->num_bytes, in uECC_verify()
Decc.c890 int uECC_valid_public_key(const uint8_t *public_key, uECC_Curve curve) in uECC_valid_public_key() argument
895 uECC_vli_bytesToNative(_public, public_key, curve->num_bytes); in uECC_valid_public_key()
898 public_key + curve->num_bytes, in uECC_valid_public_key()
908 int uECC_compute_public_key(const uint8_t *private_key, uint8_t *public_key, in uECC_compute_public_key() argument
934 uECC_vli_nativeToBytes(public_key, curve->num_bytes, _public); in uECC_compute_public_key()
936 public_key + in uECC_compute_public_key()
/hal_espressif-3.7.0/components/bt/porting/ext/tinycrypt/src/
Decc_dh.c68 int uECC_make_key_with_d(uint8_t *public_key, uint8_t *private_key, in uECC_make_key_with_d() argument
87 uECC_vli_nativeToBytes(public_key, in uECC_make_key_with_d()
90 uECC_vli_nativeToBytes(public_key + curve->num_bytes, in uECC_make_key_with_d()
102 int uECC_make_key(uint8_t *public_key, uint8_t *private_key, uECC_Curve curve) in uECC_make_key() argument
128 uECC_vli_nativeToBytes(public_key, in uECC_make_key()
131 uECC_vli_nativeToBytes(public_key + curve->num_bytes, in uECC_make_key()
144 int uECC_shared_secret(const uint8_t *public_key, const uint8_t *private_key, in uECC_shared_secret() argument
164 public_key, in uECC_shared_secret()
167 public_key + num_bytes, in uECC_shared_secret()
Decc_dsa.c192 int uECC_verify(const uint8_t *public_key, const uint8_t *message_hash, in uECC_verify() argument
219 uECC_vli_bytesToNative(_public, public_key, curve->num_bytes); in uECC_verify()
220 uECC_vli_bytesToNative(_public + num_words, public_key + curve->num_bytes, in uECC_verify()
Decc.c890 int uECC_valid_public_key(const uint8_t *public_key, uECC_Curve curve) in uECC_valid_public_key() argument
895 uECC_vli_bytesToNative(_public, public_key, curve->num_bytes); in uECC_valid_public_key()
898 public_key + curve->num_bytes, in uECC_valid_public_key()
908 int uECC_compute_public_key(const uint8_t *private_key, uint8_t *public_key, in uECC_compute_public_key() argument
934 uECC_vli_nativeToBytes(public_key, curve->num_bytes, _public); in uECC_compute_public_key()
936 public_key + in uECC_compute_public_key()
/hal_espressif-3.7.0/tools/esptool_py/espsecure/esp_hsm_sign/
D__init__.py98 public_key = session.get_key(
102 if public_key.key_type == pkcs11.mechanisms.KeyType.RSA:
103 exponent = public_key[pkcs11.Attribute.PUBLIC_EXPONENT]
104 modulus = public_key[pkcs11.Attribute.MODULUS]
107 public_key = RSA.RSAPublicNumbers(e, n).public_key()
109 elif public_key.key_type == pkcs11.mechanisms.KeyType.EC:
111 public_key[pkcs11.Attribute.EC_POINT]
113 public_key = EC.EllipticCurvePublicKey.from_encoded_point(
122 return public_key
/hal_espressif-3.7.0/components/bt/test/
Dtest_smp.c92 Point public_key; variable
95 ECC_PointMult_Bin_NAF(&public_key, &(curve_p256.G), private_key, KEY_LENGTH_DWORDS_P256);
97 TEST_ASSERT(ECC_CheckPointIsInElliCur_P256(&public_key));
100 public_key.y[i] = 0x0;
103 TEST_ASSERT(!ECC_CheckPointIsInElliCur_P256(&public_key));
109 ECC_PointMult_Bin_NAF(&public_key, &(curve_p256.G), private_key, KEY_LENGTH_DWORDS_P256);
111 TEST_ASSERT(ECC_CheckPointIsInElliCur_P256(&public_key));
/hal_espressif-3.7.0/components/bootloader/subproject/components/micro-ecc/
DuECC_verify_antifault.c17 int uECC_verify_antifault(const uint8_t *public_key, in uECC_verify_antifault() argument
36 uECC_word_t *_public = (uECC_word_t *)public_key; in uECC_verify_antifault()
52 uECC_vli_bytesToNative(_public, public_key, curve->num_bytes); in uECC_verify_antifault()
54 _public + num_words, public_key + curve->num_bytes, curve->num_bytes); in uECC_verify_antifault()
DuECC_verify_antifault.h15 int uECC_verify_antifault(const uint8_t *public_key,
/hal_espressif-3.7.0/tools/esptool_py/espsecure/
D__init__.py307 return _load_sbv2_signing_key(key_data).public_key()
318 def _get_sbv2_rsa_primitives(public_key): argument
320 numbers = public_key.public_numbers()
328 rr = 1 << (public_key.key_size * 2)
567 public_key = _get_sbv2_pub_key(pk)
569 if isinstance(public_key, rsa.RSAPublicKey):
571 rsa_primitives = _get_sbv2_rsa_primitives(public_key)
573 public_key.verify(
585 numbers = public_key.public_numbers()
596 public_key.verify(
[all …]
/hal_espressif-3.7.0/components/wpa_supplicant/src/wps/
Dwps_attr_parse.h66 const u8 *public_key; member
Dwps_validate.c612 static int wps_validate_public_key(const u8 *public_key, size_t len, in wps_validate_public_key() argument
615 if (public_key == NULL) { in wps_validate_public_key()
1409 wps_validate_public_key(attr->public_key, attr->public_key_len, 1) || in wps_validate_m1()
1483 wps_validate_public_key(attr->public_key, attr->public_key_len, 1) || in wps_validate_m2()
/hal_espressif-3.7.0/components/bt/porting/ext/tinycrypt/include/tinycrypt/
Decc.h267 uint8_t *public_key, uECC_Curve curve);
521 int uECC_valid_public_key(const uint8_t *public_key, uECC_Curve curve);
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_common/tinycrypt/include/tinycrypt/
Decc.h267 uint8_t *public_key, uECC_Curve curve);
521 int uECC_valid_public_key(const uint8_t *public_key, uECC_Curve curve);
/hal_espressif-3.7.0/tools/esptool_py/docs/en/espsecure/
Dindex.rst30 … sign_data --version 2 --hsm --hsm-config <hsm_config_file> --pub-key <public_key> --output <signe…
44 python espsecure.py verify_signature --version 2 --keyfile <public_key> <signed_image>
/hal_espressif-3.7.0/components/wpa_supplicant/src/tls/
Dx509v3.h63 u8 *public_key; member
Dx509v3.c56 os_free(cert->public_key); in x509_certificate_free()
270 os_free(cert->public_key); in x509_parse_public_key()
271 cert->public_key = os_memdup(pos + 1, hdr.length - 1); in x509_parse_public_key()
272 if (cert->public_key == NULL) { in x509_parse_public_key()
279 cert->public_key, cert->public_key_len); in x509_parse_public_key()
1865 pk = crypto_public_key_import(issuer->public_key, in x509_check_signature()
Dtlsv1_client_ocsp.c55 const u8 *addr[1] = { signer->public_key }; in ocsp_responder_id_match()
197 hash_len = ocsp_hash_data(&alg.oid, issuer->public_key, in tls_process_ocsp_single_response()
/hal_espressif-3.7.0/components/mbedtls/esp_crt_bundle/
Dgen_crt_bundle.py127 pub_key = crt.public_key()
/hal_espressif-3.7.0/components/esp_hw_support/test_apps/security_support/esp_hw_support_unity_tests/main/
Dgen_digital_signature_tests.py116 pub_numbers = private_key.public_key().public_numbers()
/hal_espressif-3.7.0/components/wpa_supplicant/esp_supplicant/src/crypto/
Dcrypto_mbedtls-ec.c1106 struct wpabuf *public_key = NULL; in crypto_ecdh_get_pubkey() local
1119 public_key = wpabuf_alloc_copy(buf, 32); in crypto_ecdh_get_pubkey()
1121 return public_key; in crypto_ecdh_get_pubkey()
/hal_espressif-3.7.0/components/bt/host/bluedroid/stack/smp/
Dsmp_keys.c1121 Point public_key; in smp_process_private_key() local
1135 ECC_PointMult(&public_key, &(curve_p256.G), (DWORD *) private_key, KEY_LENGTH_DWORDS_P256); in smp_process_private_key()
1136 memcpy(p_cb->loc_publ_key.x, public_key.x, BT_OCTET32_LEN); in smp_process_private_key()
1137 memcpy(p_cb->loc_publ_key.y, public_key.y, BT_OCTET32_LEN); in smp_process_private_key()
/hal_espressif-3.7.0/components/bt/controller/esp32c2/
Dbt.c1142 static int mbedtls_gen_keypair(uint8_t *public_key, uint8_t *private_key) in mbedtls_gen_keypair() argument
1174 memcpy(public_key, &pub[1], 64); in mbedtls_gen_keypair()
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_core/bluedroid_host/
Dmesh_bearer_adapt.c1798 Point public_key = {0}; in bt_mesh_pub_key_get() local
1819 ECC_PointMult(&public_key, &(curve_p256.G), (DWORD *)private_key, KEY_LENGTH_DWORDS_P256); in bt_mesh_pub_key_get()
1821 memcpy(bt_mesh_public_key, public_key.x, BT_OCTET32_LEN); in bt_mesh_pub_key_get()
1822 memcpy(bt_mesh_public_key + BT_OCTET32_LEN, public_key.y, BT_OCTET32_LEN); in bt_mesh_pub_key_get()

12