Skip to content

Commit

Permalink
Merge pull request aws#88 from torben-hansen/document_x25519_zero_che…
Browse files Browse the repository at this point in the history
…ck_no

Document that x25519 function does not implement zero-check
s2n-bignum original commit: awslabs/s2n-bignum@5c4b15a
  • Loading branch information
jargh authored Nov 1, 2023
2 parents b527913 + b8ee5c0 commit 519f95f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion arm/curve25519/curve25519_x25519.S
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
// this returns the X coordinate of n * P = (X, Y), or 0 when n * P is the
// point at infinity. Both n and X inputs are first slightly modified/mangled
// as specified in the relevant RFC (https://www.rfc-editor.org/rfc/rfc7748);
// in particular the lower three bits of n are set to zero.
// in particular the lower three bits of n are set to zero. Does not implement
// the zero-check specified in Section 6.1.
//
// Standard ARM ABI: X0 = res, X1 = scalar, X2 = point
// ----------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion arm/curve25519/curve25519_x25519_alt.S
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
// this returns the X coordinate of n * P = (X, Y), or 0 when n * P is the
// point at infinity. Both n and X inputs are first slightly modified/mangled
// as specified in the relevant RFC (https://www.rfc-editor.org/rfc/rfc7748);
// in particular the lower three bits of n are set to zero.
// in particular the lower three bits of n are set to zero. Does not implement
// the zero-check specified in Section 6.1.
//
// Standard ARM ABI: X0 = res, X1 = scalar, X2 = point
// ----------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion arm/curve25519/curve25519_x25519_byte.S
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
// this returns the X coordinate of n * P = (X, Y), or 0 when n * P is the
// point at infinity. Both n and X inputs are first slightly modified/mangled
// as specified in the relevant RFC (https://www.rfc-editor.org/rfc/rfc7748);
// in particular the lower three bits of n are set to zero.
// in particular the lower three bits of n are set to zero. Does not implement
// the zero-check specified in Section 6.1.
//
// Standard ARM ABI: X0 = res, X1 = scalar, X2 = point
// ----------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion arm/curve25519/curve25519_x25519_byte_alt.S
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
// this returns the X coordinate of n * P = (X, Y), or 0 when n * P is the
// point at infinity. Both n and X inputs are first slightly modified/mangled
// as specified in the relevant RFC (https://www.rfc-editor.org/rfc/rfc7748);
// in particular the lower three bits of n are set to zero.
// in particular the lower three bits of n are set to zero. Does not implement
// the zero-check specified in Section 6.1.
//
// Standard ARM ABI: X0 = res, X1 = scalar, X2 = point
// ----------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion x86_att/curve25519/curve25519_x25519.S
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
// this returns the X coordinate of n * P = (X, Y), or 0 when n * P is the
// point at infinity. Both n and X inputs are first slightly modified/mangled
// as specified in the relevant RFC (https://www.rfc-editor.org/rfc/rfc7748);
// in particular the lower three bits of n are set to zero.
// in particular the lower three bits of n are set to zero. Does not implement
// the zero-check specified in Section 6.1.
//
// Standard x86-64 ABI: RDI = res, RSI = scalar, RDX = point
// Microsoft x64 ABI: RCX = res, RDX = scalar, R8 = point
Expand Down
3 changes: 2 additions & 1 deletion x86_att/curve25519/curve25519_x25519_alt.S
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
// this returns the X coordinate of n * P = (X, Y), or 0 when n * P is the
// point at infinity. Both n and X inputs are first slightly modified/mangled
// as specified in the relevant RFC (https://www.rfc-editor.org/rfc/rfc7748);
// in particular the lower three bits of n are set to zero.
// in particular the lower three bits of n are set to zero. Does not implement
// the zero-check specified in Section 6.1.
//
// Standard x86-64 ABI: RDI = res, RSI = scalar, RDX = point
// Microsoft x64 ABI: RCX = res, RDX = scalar, R8 = point
Expand Down

0 comments on commit 519f95f

Please sign in to comment.