From 3f8ecd933a610c6f3b5d02e184c7faf205ad95d3 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 15 Jan 2017 14:16:51 +0100 Subject: tls: rearrange code, add/improve comments, fix whitespace, no real changes here Signed-off-by: Denys Vlasenko --- networking/tls_pstm_montgomery_reduce.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'networking/tls_pstm_montgomery_reduce.c') diff --git a/networking/tls_pstm_montgomery_reduce.c b/networking/tls_pstm_montgomery_reduce.c index c231c4ddf..e9ae81c53 100644 --- a/networking/tls_pstm_montgomery_reduce.c +++ b/networking/tls_pstm_montgomery_reduce.c @@ -5,6 +5,10 @@ */ #include "tls.h" +/* The file is taken almost verbatim from matrixssl-3-7-2b-open/crypto/math/. + * Changes are flagged with ///bbox + */ + /** * @file pstm_montgomery_reduce.c * @version 33ef80f (HEAD, tag: MATRIXSSL-3-7-2-OPEN, tag: MATRIXSSL-3-7-2-COMM, origin/master, origin/HEAD, master) @@ -353,7 +357,7 @@ int32 pstm_montgomery_reduce(psPool_t *pool, pstm_int *a, pstm_int *m, c = paD; memset(c, 0x0, paDlen); } else { - c = xzalloc(2*pa+1); + c = xzalloc(2*pa+1);///bbox } /* copy the input */ oldused = a->used; -- cgit v1.2.3