projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unnecessary trailing whitespace
[openssl.git]
/
crypto
/
ec
/
curve448
/
point_448.h
diff --git
a/crypto/ec/curve448/point_448.h
b/crypto/ec/curve448/point_448.h
index 30e5b780c03b74d8930ea7702e3f650e129abc48..9dabb89090b69ecb4660a79cd7f70735766dd2c5 100644
(file)
--- a/
crypto/ec/curve448/point_448.h
+++ b/
crypto/ec/curve448/point_448.h
@@
-28,7
+28,7
@@
typedef struct {
typedef struct {
niels_t n;
gf z;
typedef struct {
niels_t n;
gf z;
-}
VECTOR_ALIGNED
pniels_t[1];
+} pniels_t[1];
/* Precomputed base */
struct curve448_precomputed_s {
/* Precomputed base */
struct curve448_precomputed_s {
@@
-79,6
+79,7
@@
extern const curve448_point_t curve448_point_identity;
/* Precomputed table for the base point on the curve. */
extern const struct curve448_precomputed_s *curve448_precomputed_base;
/* Precomputed table for the base point on the curve. */
extern const struct curve448_precomputed_s *curve448_precomputed_base;
+extern const niels_t *curve448_wnaf_base;
/*
* Read a scalar from wire format or from bytes.
/*
* Read a scalar from wire format or from bytes.
@@
-91,9
+92,8
@@
extern const struct curve448_precomputed_s *curve448_precomputed_base;
* C448_FAILURE: The scalar was greater than the modulus, and has been reduced
* modulo that modulus.
*/
* C448_FAILURE: The scalar was greater than the modulus, and has been reduced
* modulo that modulus.
*/
-__owur c448_error_t curve448_scalar_decode(
- curve448_scalar_t out,
- const unsigned char ser[C448_SCALAR_BYTES]);
+c448_error_t curve448_scalar_decode(curve448_scalar_t out,
+ const unsigned char ser[C448_SCALAR_BYTES]);
/*
* Read a scalar from wire format or from bytes. Reduces mod scalar prime.
/*
* Read a scalar from wire format or from bytes. Reduces mod scalar prime.
@@
-115,8
+115,8
@@
void curve448_scalar_encode(unsigned char ser[C448_SCALAR_BYTES],
const curve448_scalar_t s);
/*
const curve448_scalar_t s);
/*
- * Add two scalars.
The scalars may use the same memory
.
- *
+ * Add two scalars.
|a|, |b| and |out| may alias each other
.
+ *
* a (in): One scalar.
* b (in): Another scalar.
* out (out): a+b.
* a (in): One scalar.
* b (in): Another scalar.
* out (out): a+b.
@@
-125,7
+125,7
@@
void curve448_scalar_add(curve448_scalar_t out,
const curve448_scalar_t a, const curve448_scalar_t b);
/*
const curve448_scalar_t a, const curve448_scalar_t b);
/*
- * Subtract two scalars.
The scalars may use the same memory
.
+ * Subtract two scalars.
|a|, |b| and |out| may alias each other
.
* a (in): One scalar.
* b (in): Another scalar.
* out (out): a-b.
* a (in): One scalar.
* b (in): Another scalar.
* out (out): a-b.
@@
-134,8
+134,8
@@
void curve448_scalar_sub(curve448_scalar_t out,
const curve448_scalar_t a, const curve448_scalar_t b);
/*
const curve448_scalar_t a, const curve448_scalar_t b);
/*
- * Multiply two scalars.
The scalars may use the same memory
.
- *
+ * Multiply two scalars.
|a|, |b| and |out| may alias each other
.
+ *
* a (in): One scalar.
* b (in): Another scalar.
* out (out): a*b.
* a (in): One scalar.
* b (in): Another scalar.
* out (out): a*b.
@@
-144,17
+144,17
@@
void curve448_scalar_mul(curve448_scalar_t out,
const curve448_scalar_t a, const curve448_scalar_t b);
/*
const curve448_scalar_t a, const curve448_scalar_t b);
/*
-* Halve a scalar.
The scalars may use the same memory
.
-*
+* Halve a scalar.
|a| and |out| may alias each other
.
+*
* a (in): A scalar.
* out (out): a/2.
*/
void curve448_scalar_halve(curve448_scalar_t out, const curve448_scalar_t a);
/*
* a (in): A scalar.
* out (out): a/2.
*/
void curve448_scalar_halve(curve448_scalar_t out, const curve448_scalar_t a);
/*
- * Copy a scalar. The scalars may
use the same memory
, in which case this
+ * Copy a scalar. The scalars may
alias each other
, in which case this
* function does nothing.
* function does nothing.
- *
+ *
* a (in): A scalar.
* out (out): Will become a copy of a.
*/
* a (in): A scalar.
* out (out): Will become a copy of a.
*/
@@
-183,7
+183,7
@@
static ossl_inline void curve448_point_copy(curve448_point_t a,
*
* a (in): A point.
* b (in): Another point.
*
* a (in): A point.
* b (in): Another point.
- *
+ *
* Returns:
* C448_TRUE: The points are equal.
* C448_FALSE: The points are not equal.
* Returns:
* C448_TRUE: The points are equal.
* C448_FALSE: The points are not equal.
@@
-243,7
+243,7
@@
void curve448_point_mul_by_ratio_and_encode_like_x448(
/*
* RFC 7748 Diffie-Hellman base point scalarmul. This function uses a different
* (non-Decaf) encoding.
/*
* RFC 7748 Diffie-Hellman base point scalarmul. This function uses a different
* (non-Decaf) encoding.
- *
+ *
* out (out): The scaled point base*scalar
* scalar (in): The scalar to multiply by.
*/
* out (out): The scaled point base*scalar
* scalar (in): The scalar to multiply by.
*/
@@
-273,7
+273,7
@@
void curve448_precomputed_scalarmul(curve448_point_t scaled,
* base2 (in): A second point to be scaled.
* scalar2 (in) A second scalar to multiply by.
*
* base2 (in): A second point to be scaled.
* scalar2 (in) A second scalar to multiply by.
*
- * Warning: This function takes variable time, and may leak the scalars used.
+ * Warning: This function takes variable time, and may leak the scalars used.
* It is designed for signature verification.
*/
void curve448_base_double_scalarmul_non_secret(curve448_point_t combo,
* It is designed for signature verification.
*/
void curve448_base_double_scalarmul_non_secret(curve448_point_t combo,