Skip to content

Commit

Permalink
Fix a few cut-and-paste errors in comments for new P-384 functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jargh committed Aug 29, 2024
1 parent 4d86ede commit 9019f26
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion arm/p384/p384_montjscalarmul.S
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ S2N_BN_SYMBOL(p384_montjscalarmul):

mov res, x0

// Reduce the input scalar mod n_256, i.e. conditionally subtract n_256.
// Reduce the input scalar mod n_384, i.e. conditionally subtract n_384.
// Store it to "scalarb".

ldp x3, x4, [x1]
Expand Down
2 changes: 1 addition & 1 deletion arm/p384/p384_montjscalarmul_alt.S
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ S2N_BN_SYMBOL(p384_montjscalarmul_alt):

mov res, x0

// Reduce the input scalar mod n_256, i.e. conditionally subtract n_256.
// Reduce the input scalar mod n_384, i.e. conditionally subtract n_384.
// Store it to "scalarb".

ldp x3, x4, [x1]
Expand Down
2 changes: 1 addition & 1 deletion x86/p384/p384_montjscalarmul.S
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ p384_montjscalarmul_standard:

mov res, rdi

// Reduce the input scalar mod n_256, i.e. conditionally subtract n_256.
// Reduce the input scalar mod n_384, i.e. conditionally subtract n_384.
// Store it to "scalarb".

mov r8, [rsi]
Expand Down
2 changes: 1 addition & 1 deletion x86/p384/p384_montjscalarmul_alt.S
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ p384_montjscalarmul_alt_standard:

mov res, rdi

// Reduce the input scalar mod n_256, i.e. conditionally subtract n_256.
// Reduce the input scalar mod n_384, i.e. conditionally subtract n_384.
// Store it to "scalarb".

mov r8, [rsi]
Expand Down
2 changes: 1 addition & 1 deletion x86_att/p384/p384_montjscalarmul.S
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ p384_montjscalarmul_standard:

movq %rdi, res

// Reduce the input scalar mod n_256, i.e. conditionally subtract n_256.
// Reduce the input scalar mod n_384, i.e. conditionally subtract n_384.
// Store it to "scalarb".

movq (%rsi), %r8
Expand Down
2 changes: 1 addition & 1 deletion x86_att/p384/p384_montjscalarmul_alt.S
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ p384_montjscalarmul_alt_standard:

movq %rdi, res

// Reduce the input scalar mod n_256, i.e. conditionally subtract n_256.
// Reduce the input scalar mod n_384, i.e. conditionally subtract n_384.
// Store it to "scalarb".

movq (%rsi), %r8
Expand Down

0 comments on commit 9019f26

Please sign in to comment.