Skip to content

Commit

Permalink
Make parameter to ed25519 decode function const
Browse files Browse the repository at this point in the history
  • Loading branch information
torben-hansen committed Nov 27, 2023
1 parent 9e60dfc commit d93670d
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion arm/curve25519/edwards25519_decode.S
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Decode compressed 256-bit form of edwards25519 point
// Input c[32] (bytes); output function return and z[8]
//
// extern uint64_t edwards25519_decode(uint64_t z[static 8],uint8_t c[static 32]);
// extern uint64_t edwards25519_decode(uint64_t z[static 8], const uint8_t c[static 32]);
//
// This interprets the input byte string as a little-endian number
// representing a point (x,y) on the edwards25519 curve, encoded as
Expand Down
2 changes: 1 addition & 1 deletion arm/curve25519/edwards25519_decode_alt.S
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Decode compressed 256-bit form of edwards25519 point
// Input c[32] (bytes); output function return and z[8]
//
// extern uint64_t edwards25519_decode_alt(uint64_t z[static 8],uint8_t c[static 32]);
// extern uint64_t edwards25519_decode_alt(uint64_t z[static 8], const uint8_t c[static 32]);
//
// This interprets the input byte string as a little-endian number
// representing a point (x,y) on the edwards25519 curve, encoded as
Expand Down
4 changes: 2 additions & 2 deletions include/s2n-bignum.h
Original file line number Diff line number Diff line change
Expand Up @@ -923,8 +923,8 @@ extern void curve25519_x25519base_byte_alt(uint8_t res[S2N_BIGNUM_STATIC 32],uin

// Decode compressed 256-bit form of edwards25519 point
// Input c[32] (bytes); output function return and z[8]
extern uint64_t edwards25519_decode(uint64_t z[S2N_BIGNUM_STATIC 8],uint8_t c[S2N_BIGNUM_STATIC 32]);
extern uint64_t edwards25519_decode_alt(uint64_t z[S2N_BIGNUM_STATIC 8],uint8_t c[S2N_BIGNUM_STATIC 32]);
extern uint64_t edwards25519_decode(uint64_t z[S2N_BIGNUM_STATIC 8], const uint8_t c[S2N_BIGNUM_STATIC 32]);
extern uint64_t edwards25519_decode_alt(uint64_t z[S2N_BIGNUM_STATIC 8], const uint8_t c[S2N_BIGNUM_STATIC 32]);

// Encode edwards25519 point into compressed form as 256-bit number
// Input p[8]; output z[32] (bytes)
Expand Down
2 changes: 1 addition & 1 deletion x86/curve25519/edwards25519_decode.S
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Decode compressed 256-bit form of edwards25519 point
// Input c[32] (bytes); output function return and z[8]
//
// extern uint64_t edwards25519_decode(uint64_t z[static 8],uint8_t c[static 32]);
// extern uint64_t edwards25519_decode(uint64_t z[static 8], const uint8_t c[static 32]);
//
// This interprets the input byte string as a little-endian number
// representing a point (x,y) on the edwards25519 curve, encoded as
Expand Down
2 changes: 1 addition & 1 deletion x86/curve25519/edwards25519_decode_alt.S
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Decode compressed 256-bit form of edwards25519 point
// Input c[32] (bytes); output function return and z[8]
//
// extern uint64_t edwards25519_decode_alt(uint64_t z[static 8],uint8_t c[static 32]);
// extern uint64_t edwards25519_decode_alt(uint64_t z[static 8], const uint8_t c[static 32]);
//
// This interprets the input byte string as a little-endian number
// representing a point (x,y) on the edwards25519 curve, encoded as
Expand Down
2 changes: 1 addition & 1 deletion x86_att/curve25519/edwards25519_decode.S
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Decode compressed 256-bit form of edwards25519 point
// Input c[32] (bytes); output function return and z[8]
//
// extern uint64_t edwards25519_decode(uint64_t z[static 8],uint8_t c[static 32]);
// extern uint64_t edwards25519_decode(uint64_t z[static 8], const uint8_t c[static 32]);
//
// This interprets the input byte string as a little-endian number
// representing a point (x,y) on the edwards25519 curve, encoded as
Expand Down
2 changes: 1 addition & 1 deletion x86_att/curve25519/edwards25519_decode_alt.S
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Decode compressed 256-bit form of edwards25519 point
// Input c[32] (bytes); output function return and z[8]
//
// extern uint64_t edwards25519_decode_alt(uint64_t z[static 8],uint8_t c[static 32]);
// extern uint64_t edwards25519_decode_alt(uint64_t z[static 8], const uint8_t c[static 32]);
//
// This interprets the input byte string as a little-endian number
// representing a point (x,y) on the edwards25519 curve, encoded as
Expand Down

0 comments on commit d93670d

Please sign in to comment.