diff options
author | Denys Vlasenko | 2017-01-15 14:16:51 +0100 |
---|---|---|
committer | Denys Vlasenko | 2017-01-15 14:16:51 +0100 |
commit | 3f8ecd933a610c6f3b5d02e184c7faf205ad95d3 (patch) | |
tree | ae7a778a4a8dbbfc255b9a9f527179bfa9cc865c /networking/tls_pstm_montgomery_reduce.c | |
parent | c5540d61f6b411967fc3e30f1eb1e8af5077c2e5 (diff) | |
download | busybox-3f8ecd933a610c6f3b5d02e184c7faf205ad95d3.zip busybox-3f8ecd933a610c6f3b5d02e184c7faf205ad95d3.tar.gz |
tls: rearrange code, add/improve comments, fix whitespace, no real changes here
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/tls_pstm_montgomery_reduce.c')
-rw-r--r-- | networking/tls_pstm_montgomery_reduce.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/networking/tls_pstm_montgomery_reduce.c b/networking/tls_pstm_montgomery_reduce.c index c231c4d..e9ae81c 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; |