Add mbedtls_asn1_write_len() support for 3 and 4 byte lengths
As a consequence also adds coverage for reading 3 and 4 byte lengths (which were not covered before)
This commit is contained in:
parent
5e8b77cd8c
commit
c7d6bd4b5f
3 changed files with 52 additions and 18 deletions
|
@ -40,8 +40,6 @@ extern "C" {
|
|||
* \param start start of the buffer (for bounds-checking)
|
||||
* \param len the length to write
|
||||
*
|
||||
* \note lengths over 65535 are not supported at the moment
|
||||
*
|
||||
* \return the length written or a negative error code
|
||||
*/
|
||||
int mbedtls_asn1_write_len( unsigned char **p, unsigned char *start, size_t len );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue