aboutsummaryrefslogtreecommitdiff
path: root/ecdsa.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-08-25 01:01:30 -0400
committerRob Austein <sra@hactrn.net>2015-08-25 01:01:30 -0400
commita4930dbbac93b3637a6f99a443dca55319c35d92 (patch)
tree3d98996ca208c76350335fb121187a346d6c5b59 /ecdsa.c
parent36cd3636538328f381bff9857698b5d1807542e0 (diff)
ASN.1 bugfixes.
Diffstat (limited to 'ecdsa.c')
-rw-r--r--ecdsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ecdsa.c b/ecdsa.c
index a657aaf..46484dc 100644
--- a/ecdsa.c
+++ b/ecdsa.c
@@ -1153,7 +1153,7 @@ hal_error_t hal_ecdsa_sign(const hal_ecdsa_key_t * const key,
uint8_t * const r_out = signature + *signature_len;
uint8_t * const s_out = r_out + r_len;
- signature_len += r_len + s_len;
+ *signature_len += r_len + s_len;
assert(*signature_len <= signature_max);
if ((err = hal_asn1_encode_integer(r, r_out, NULL, signature_max - (r_out - signature))) != HAL_OK ||