mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-07 06:42:56 +03:00
Merge pull request #4694 from gilles-peskine-arm/out_size-3.0
Add output size parameter to signature functions
This commit is contained in:
9
docs/3.0-migration-guide.d/out_size.md
Normal file
9
docs/3.0-migration-guide.d/out_size.md
Normal file
@@ -0,0 +1,9 @@
|
||||
Extra parameter for the output buffer size
|
||||
------------------------------------------
|
||||
|
||||
The following functions now take an extra parameter indicating the size of the output buffer:
|
||||
|
||||
* `mbedtls_ecdsa_write_signature()`, `mbedtls_ecdsa_write_signature_restartable()`
|
||||
* `mbedtls_pk_sign()`, `mbedtls_pk_sign_restartable()`
|
||||
|
||||
The requirements for the output buffer have not changed, but passing a buffer that is too small now reliably causes the functions to return an error, rather than overflowing the buffer.
|
Reference in New Issue
Block a user