Commit c1f15b76 authored by Matt Caswell's avatar Matt Caswell
Browse files

Further style changes to curve448 code

parent 9c9d6ff4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -22,7 +22,8 @@
#define C448_WNAF_FIXED_TABLE_BITS 5
#define C448_WNAF_VAR_TABLE_BITS 3

static const int EDWARDS_D = -39081;
#define EDWARDS_D       (-39081)

static const curve448_scalar_t precomputed_scalarmul_adjustment = {
    {
        {
+2 −4
Original line number Diff line number Diff line
@@ -14,13 +14,11 @@
# define HEADER_WORD_H

# include <string.h>

# include <assert.h>
# include <stdlib.h>
# include <openssl/e_os2.h>
# include "arch_intrinsics.h"

# include "curve448utils.h"
# include <stdlib.h>

# if defined(__ARM_NEON__)
#  include <arm_neon.h>
@@ -56,7 +54,7 @@ typedef int64_t dsword_t;
# if C448_WORD_BITS == 64
#  define SC_LIMB(x) (x)
# elif C448_WORD_BITS == 32
#  define SC_LIMB(x) ((uint32_t)x),(x >> 32)
#  define SC_LIMB(x) ((uint32_t)(x)),((x) >> 32)
# else
#  error "For now we only support 32- and 64-bit architectures."
# endif