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_sqr_comba.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_sqr_comba.c')
-rw-r--r-- | networking/tls_pstm_sqr_comba.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/networking/tls_pstm_sqr_comba.c b/networking/tls_pstm_sqr_comba.c index 98186d3..378e064 100644 --- a/networking/tls_pstm_sqr_comba.c +++ b/networking/tls_pstm_sqr_comba.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_sqr_comba.c * @version 33ef80f (HEAD, tag: MATRIXSSL-3-7-2-OPEN, tag: MATRIXSSL-3-7-2-COMM, origin/master, origin/HEAD, master) @@ -466,13 +470,13 @@ static int32 pstm_sqr_comba_gen(psPool_t *pool, pstm_int *A, pstm_int *B, if (paD != NULL) { if (paDlen < (sizeof(pstm_digit) * pa)) { paDfail = 1; /* have a paD, but it's not big enough */ - dst = xzalloc(sizeof(pstm_digit) * pa); + dst = xzalloc(sizeof(pstm_digit) * pa);///bbox } else { dst = paD; memset(dst, 0x0, paDlen); } } else { - dst = xzalloc(sizeof(pstm_digit) * pa); + dst = xzalloc(sizeof(pstm_digit) * pa);///bbox } for (ix = 0; ix < pa; ix++) { |