mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-12-24 17:41:01 +03:00
Added ecp_write_binary().
This commit is contained in:
committed by
Paul Bakker
parent
1c33057a63
commit
e19feb5b46
@@ -209,6 +209,20 @@ int ecp_group_read_string( ecp_group *grp, int radix,
|
||||
const char *p, const char *b,
|
||||
const char *gx, const char *gy, const char *n);
|
||||
|
||||
/**
|
||||
* \brief Export a point into unsigned binary data, uncompressed
|
||||
*
|
||||
* \param grp Group the point belongs to
|
||||
* \param P Point to export
|
||||
* \param olen Length of the actual ouput
|
||||
* \param buf Output buffer
|
||||
* \param buflen Length of the output buffer
|
||||
*
|
||||
* \return 0 if successful, or POLARSSL_ERR_ECP_GENERIC
|
||||
*/
|
||||
int ecp_write_binary( const ecp_group *grp, const ecp_point *P,
|
||||
size_t *olen, unsigned char *buf, size_t buflen );
|
||||
|
||||
/**
|
||||
* \brief Set a group using well-known domain parameters
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user