@@ -564,7 +564,7 @@ void crypto_ec_free_key(struct crypto_key *key)
564564 os_free (key );
565565}
566566
567- struct crypto_ec_point * crypto_ec_get_public_key (struct crypto_key * key )
567+ struct crypto_ec_point * crypto_ec_key_get_public_key (struct crypto_key * key )
568568{
569569 mbedtls_pk_context * pkey = (mbedtls_pk_context * )key ;
570570
@@ -614,7 +614,7 @@ int crypto_ec_key_group(struct crypto_ec_key *key)
614614 return iana_group ;
615615}
616616
617- struct crypto_bignum * crypto_ec_get_private_key (struct crypto_key * key )
617+ struct crypto_bignum * crypto_ec_key_get_private_key (struct crypto_key * key )
618618{
619619 mbedtls_pk_context * pkey = (mbedtls_pk_context * )key ;
620620
@@ -669,7 +669,7 @@ int crypto_write_pubkey_der(struct crypto_key *key, unsigned char **key_buf)
669669 return len ;
670670}
671671
672- struct crypto_key * crypto_ec_get_key (const u8 * privkey , size_t privkey_len )
672+ struct crypto_key * crypto_ec_key_parse_priv (const u8 * privkey , size_t privkey_len )
673673{
674674 int ret ;
675675 mbedtls_pk_context * kctx = (mbedtls_pk_context * )crypto_alloc_key ();
@@ -841,7 +841,7 @@ int crypto_edcsa_sign_verify(const unsigned char *hash,
841841 return ret ;
842842}
843843
844- void crypto_debug_print_ec_key (const char * title , struct crypto_key * key )
844+ void crypto_ec_key_debug_print (const char * title , struct crypto_key * key )
845845{
846846#ifdef DEBUG_PRINT
847847 mbedtls_pk_context * pkey = (mbedtls_pk_context * )key ;
@@ -852,12 +852,12 @@ void crypto_debug_print_ec_key(const char *title, struct crypto_key *key)
852852 int len = mbedtls_mpi_size ((mbedtls_mpi * )crypto_ec_get_prime ((struct crypto_ec * )crypto_ec_get_group_from_key (key )));
853853
854854 wpa_printf (MSG_ERROR , "prime len is %d" , len );
855- crypto_ec_point_to_bin ((struct crypto_ec * )crypto_ec_get_group_from_key (key ), crypto_ec_get_public_key (key ), x , y );
856- crypto_bignum_to_bin (crypto_ec_get_private_key (key ),
857- d , len , len );
858- wpa_hexdump (MSG_ERROR , "Q_x:" , x , 32 );
859- wpa_hexdump (MSG_ERROR , "Q_y:" , y , 32 );
860- wpa_hexdump (MSG_ERROR , "d: " , d , 32 );
855+ crypto_ec_point_to_bin ((struct crypto_ec * )crypto_ec_get_group_from_key (key ), crypto_ec_key_get_public_key (key ), x , y );
856+ crypto_bignum_to_bin (crypto_ec_key_get_private_key (key ),
857+ d , len , len );
858+ wpa_hexdump (MSG_INFO , "Q_x:" , x , 32 );
859+ wpa_hexdump (MSG_INFO , "Q_y:" , y , 32 );
860+ wpa_hexdump (MSG_INFO , "d: " , d , 32 );
861861#endif
862862}
863863
@@ -885,7 +885,7 @@ int crypto_is_ec_key(struct crypto_key *key)
885885 return ret ;
886886}
887887
888- struct crypto_key * crypto_ec_gen_keypair (u16 ike_group )
888+ struct crypto_key * crypto_ec_key_gen (u16 ike_group )
889889{
890890 mbedtls_pk_context * kctx = (mbedtls_pk_context * )crypto_alloc_key ();
891891
0 commit comments