mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-03-16 05:56:29 +00:00
Remove spurious '+ 3' in ecdsa_write_signature()
This commit is contained in:
committed by
Paul Bakker
parent
dd0f57f186
commit
4cf0686d6d
@@ -220,8 +220,8 @@ int ecdsa_write_signature( ecdsa_context *ctx,
|
||||
void *p_rng )
|
||||
{
|
||||
int ret;
|
||||
unsigned char buf[MAX_SIG_LEN + 3];
|
||||
unsigned char *p = buf + MAX_SIG_LEN;
|
||||
unsigned char buf[MAX_SIG_LEN];
|
||||
unsigned char *p = buf + sizeof( buf );
|
||||
size_t len = 0;
|
||||
|
||||
if( ( ret = ecdsa_sign( &ctx->grp, &ctx->r, &ctx->s, &ctx->d,
|
||||
|
||||
Reference in New Issue
Block a user