Supress 'format' argument to ecp_read_binary.

And adjust error codes for ecp_*_binary while at it.
This commit is contained in:
Manuel Pégourié-Gonnard 2013-02-10 10:53:04 +01:00
parent 0079405918
commit d84895dc22
4 changed files with 23 additions and 33 deletions

View file

@ -256,7 +256,6 @@ int ecp_write_binary( const ecp_group *grp, const ecp_point *P, int format,
*
* \param grp Group to which the point should belong
* \param P Point to import
* \param format Point format, must be POLARSSL_ECP_PF_UNCOMPRESSED for now
* \param buf Input buffer
* \param ilen Actual length of input
*
@ -268,7 +267,7 @@ int ecp_write_binary( const ecp_group *grp, const ecp_point *P, int format,
* belongs to the given group, see ecp_check_pubkey() for
* that.
*/
int ecp_read_binary( const ecp_group *grp, ecp_point *P, int format,
int ecp_read_binary( const ecp_group *grp, ecp_point *P,
const unsigned char *buf, size_t ilen );
/**