mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Rm ecp_keypair.alg
Avoid duplicating information already present in pk_context.
This commit is contained in:
committed by
Paul Bakker
parent
8b863cd641
commit
96f3a4e1b3
@ -101,7 +101,6 @@ void ecp_keypair_init( ecp_keypair *key )
|
||||
ecp_group_init( &key->grp );
|
||||
mpi_init( &key->d );
|
||||
ecp_point_init( &key->Q );
|
||||
key->alg = POLARSSL_ECP_KEY_ALG_UNRESTRICTED;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -142,7 +141,6 @@ void ecp_keypair_free( ecp_keypair *key )
|
||||
ecp_group_free( &key->grp );
|
||||
mpi_free( &key->d );
|
||||
ecp_point_free( &key->Q );
|
||||
key->alg = POLARSSL_ECP_KEY_ALG_UNRESTRICTED;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user