crypto: format curve25519 internal header Signed-off-by: Xiangfei Ding <xfding@google.com> Change-Id: I179bf6e99ae261df9c6e5d397a0b16b26a6a6964 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/101147 Presubmit-BoringSSL-Verified: boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com <boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: David Benjamin <davidben@google.com>
diff --git a/crypto/curve25519/internal.h b/crypto/curve25519/internal.h index ecaecb9..8e78185 100644 --- a/crypto/curve25519/internal.h +++ b/crypto/curve25519/internal.h
@@ -56,22 +56,30 @@ // t[3]+2^204 t[4]. // fe limbs are bounded by 1.125*2^51. // Multiplication and carrying produce fe from fe_loose. -typedef struct fe { uint64_t v[5]; } fe; +typedef struct fe { + uint64_t v[5]; +} fe; // fe_loose limbs are bounded by 3.375*2^51. // Addition and subtraction produce fe_loose from (fe, fe). -typedef struct fe_loose { uint64_t v[5]; } fe_loose; +typedef struct fe_loose { + uint64_t v[5]; +} fe_loose; #else // fe means field element. Here the field is \Z/(2^255-19). An element t, // entries t[0]...t[9], represents the integer t[0]+2^26 t[1]+2^51 t[2]+2^77 // t[3]+2^102 t[4]+...+2^230 t[9]. // fe limbs are bounded by 1.125*2^26,1.125*2^25,1.125*2^26,1.125*2^25,etc. // Multiplication and carrying produce fe from fe_loose. -typedef struct fe { uint32_t v[10]; } fe; +typedef struct fe { + uint32_t v[10]; +} fe; -// fe_loose limbs are bounded by 3.375*2^26,3.375*2^25,3.375*2^26,3.375*2^25,etc. -// Addition and subtraction produce fe_loose from (fe, fe). -typedef struct fe_loose { uint32_t v[10]; } fe_loose; +// fe_loose limbs are bounded by 3.375*2^26, 3.375*2^25, 3.375*2^26, 3.375*2^25, +// etc. Addition and subtraction produce fe_loose from (fe, fe). +typedef struct fe_loose { + uint32_t v[10]; +} fe_loose; #endif // ge means group element.