Home
last modified time | relevance | path

Searched refs:priv_key (Results 1 – 13 of 13) sorted by relevance

/net-tools-3.7.0/mbedtls-2.4.0/library/
Dpkcs11.c98 int mbedtls_pkcs11_priv_key_bind( mbedtls_pkcs11_context *priv_key, in mbedtls_pkcs11_priv_key_bind() argument
106 if( priv_key == NULL ) in mbedtls_pkcs11_priv_key_bind()
112 priv_key->len = mbedtls_pk_get_len( &cert.pk ); in mbedtls_pkcs11_priv_key_bind()
113 priv_key->pkcs11h_cert = pkcs11_cert; in mbedtls_pkcs11_priv_key_bind()
123 void mbedtls_pkcs11_priv_key_free( mbedtls_pkcs11_context *priv_key ) in mbedtls_pkcs11_priv_key_free() argument
125 if( NULL != priv_key ) in mbedtls_pkcs11_priv_key_free()
126 pkcs11h_certificate_freeCertificate( priv_key->pkcs11h_cert ); in mbedtls_pkcs11_priv_key_free()
/net-tools-3.7.0/tinydtls-0.8.2/ecc/
Decc.h55 int ecc_is_valid_key(const uint32_t * priv_key);
56 static inline void ecc_gen_pub_key(const uint32_t *priv_key, uint32_t *pub_x, uint32_t *pub_y) in ecc_gen_pub_key() argument
58 ecc_ec_mult(ecc_g_point_x, ecc_g_point_y, priv_key, pub_x, pub_y); in ecc_gen_pub_key()
Decc.c631 int ecc_is_valid_key(const uint32_t * priv_key) in ecc_is_valid_key() argument
633 return isGreater(ecc_order_m, priv_key, arrayLength) == 1; in ecc_is_valid_key()
/net-tools-3.7.0/mbedtls-2.4.0/include/mbedtls/
Dpkcs11.h83 int mbedtls_pkcs11_priv_key_bind( mbedtls_pkcs11_context *priv_key,
92 void mbedtls_pkcs11_priv_key_free( mbedtls_pkcs11_context *priv_key );
/net-tools-3.7.0/tinydtls-0.8.2/
Dcrypto.c398 int dtls_ecdh_pre_master_secret(unsigned char *priv_key, in dtls_ecdh_pre_master_secret() argument
414 dtls_ec_key_to_uint32(priv_key, key_size, priv); in dtls_ecdh_pre_master_secret()
425 dtls_ecdsa_generate_key(unsigned char *priv_key, in dtls_ecdsa_generate_key() argument
439 dtls_ec_key_from_uint32(priv, key_size, priv_key); in dtls_ecdsa_generate_key()
446 dtls_ecdsa_create_sig_hash(const unsigned char *priv_key, size_t key_size, in dtls_ecdsa_create_sig_hash() argument
454 dtls_ec_key_to_uint32(priv_key, key_size, priv); in dtls_ecdsa_create_sig_hash()
463 dtls_ecdsa_create_sig(const unsigned char *priv_key, size_t key_size, in dtls_ecdsa_create_sig() argument
477 dtls_ecdsa_create_sig_hash(priv_key, key_size, sha256hash, in dtls_ecdsa_create_sig()
Dcrypto.h311 int dtls_ecdh_pre_master_secret(unsigned char *priv_key,
318 void dtls_ecdsa_generate_key(unsigned char *priv_key,
323 void dtls_ecdsa_create_sig_hash(const unsigned char *priv_key, size_t key_size,
327 void dtls_ecdsa_create_sig(const unsigned char *priv_key, size_t key_size,
Ddtls.h65 const unsigned char *priv_key; /** < private key as bytes > */ member
Ddtls.c1972 dtls_ecdsa_create_sig(key->priv_key, DTLS_EC_KEY_SIZE, in dtls_send_server_key_exchange_ecdh()
2263 dtls_ecdsa_create_sig_hash(key->priv_key, DTLS_EC_KEY_SIZE, in dtls_send_certificate_verify_ecdh()
/net-tools-3.7.0/tinydtls-0.8.2/examples/contiki/
Ddtls-server.c169 .priv_key = ecdsa_priv_key, in get_ecdsa_key()
Ddtls-client.c188 .priv_key = ecdsa_priv_key, in get_ecdsa_key()
/net-tools-3.7.0/tinydtls-0.8.2/tests/
Ddtls-server.c104 .priv_key = ecdsa_priv_key, in get_ecdsa_key()
Ddtls-client.c150 .priv_key = ecdsa_priv_key, in get_ecdsa_key()
/net-tools-3.7.0/
Dcoap-client.c576 .priv_key = ecdsa_priv_key, in get_ecdsa_key()