Commit 35a1cc90 authored by Matt Caswell's avatar Matt Caswell
Browse files

More comment realignment



Reviewed-by: default avatarTim Hudson <tjh@openssl.org>
parent 50e735f9
Loading
Loading
Loading
Loading
+40 −37
Original line number Diff line number Diff line
@@ -1094,7 +1094,8 @@ static void smallfelem_inv_contract(smallfelem out, const smallfelem in)
 *
 * Building on top of the field operations we have the operations on the
 * elliptic curve group itself. Points on the curve are represented in Jacobian
 * coordinates */
 * coordinates
 */

/*-
 * point_double calculates 2*(x_in, y_in, z_in)
@@ -1103,7 +1104,8 @@ static void smallfelem_inv_contract(smallfelem out, const smallfelem in)
 *   http://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#doubling-dbl-2001-b
 *
 * Outputs can equal corresponding inputs, i.e., x_out == x_in is allowed.
 * while x_out == y_in is not (maybe this works, but it's not tested). */
 * while x_out == y_in is not (maybe this works, but it's not tested).
 */
static void
point_double(felem x_out, felem y_out, felem z_out,
             const felem x_in, const felem y_in, const felem z_in)
@@ -1234,7 +1236,8 @@ static void copy_small_conditional(felem out, const smallfelem in, limb mask)
 * This function includes a branch for checking whether the two input points
 * are equal, (while not equal to the point at infinity). This case never
 * happens during single point multiplication, so there is no timing leak for
 * ECDH or ECDSA signing. */
 * ECDH or ECDSA signing.
 */
static void point_add(felem x3, felem y3, felem z3,
                      const felem x1, const felem y1, const felem z1,
                      const int mixed, const smallfelem x2,
+23 −22
Original line number Diff line number Diff line
@@ -422,7 +422,8 @@ static void felem_square(largefelem out, const felem in)
     *   2 * in[x] * in[y]
     * However, rather than do the doubling on the 128 bit result, we
     * double one of the inputs to the multiplication by reading from
	 * |inx2| */
     * |inx2|
     */

    out[0] = ((uint128_t) in[0]) * in[0];
    out[1] = ((uint128_t) in[0]) * inx2[1];
+8 −7
Original line number Diff line number Diff line
@@ -754,7 +754,8 @@ int n_ssl3_mac(SSL *ssl, unsigned char *md, int send)
         *
         * With SHA-1 (the largest hash speced for SSLv3) the hash size
         * goes up 4, but npad goes down by 8, resulting in a smaller
                 * total size. */
         * total size.
         */
        unsigned char header[75];
        unsigned j = 0;
        memcpy(header + j, mac_sec, md_size);
+10 −10

File changed.

Contains only whitespace changes.

+6 −6

File changed.

Contains only whitespace changes.

+5 −5

File changed.

Contains only whitespace changes.

+11 −11

File changed.

Contains only whitespace changes.

+15 −15

File changed.

Contains only whitespace changes.

+2 −2

File changed.

Contains only whitespace changes.

+6 −6

File changed.

Contains only whitespace changes.

+5 −5

File changed.

Contains only whitespace changes.

+5 −5

File changed.

Contains only whitespace changes.

+2 −2

File changed.

Contains only whitespace changes.

+5 −5

File changed.

Contains only whitespace changes.

+8 −8

File changed.

Contains only whitespace changes.

+42 −42

File changed.

Contains only whitespace changes.

+26 −26

File changed.

Contains only whitespace changes.

+3 −3

File changed.

Contains only whitespace changes.

+15 −15

File changed.

Contains only whitespace changes.

+2 −2

File changed.

Contains only whitespace changes.

+19 −19

File changed.

Contains only whitespace changes.

+2 −2

File changed.

Contains only whitespace changes.

+4 −4

File changed.

Contains only whitespace changes.

+7 −7

File changed.

Contains only whitespace changes.

+6 −6

File changed.

Contains only whitespace changes.

+25 −25

File changed.

Contains only whitespace changes.

+3 −3

File changed.

Contains only whitespace changes.

+2 −2

File changed.

Contains only whitespace changes.

+3 −3

File changed.

Contains only whitespace changes.

+2 −2

File changed.

Contains only whitespace changes.

+9 −9

File changed.

Contains only whitespace changes.

+37 −37

File changed.

Contains only whitespace changes.

+2 −2

File changed.

Contains only whitespace changes.

+7 −7

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+4 −4

File changed.

Contains only whitespace changes.

+13 −13

File changed.

Contains only whitespace changes.

+6 −6

File changed.

Contains only whitespace changes.

+3 −3

File changed.

Contains only whitespace changes.

+5 −5

File changed.

Contains only whitespace changes.

+4 −4

File changed.

Contains only whitespace changes.

Loading