[openssh-commits] [openssh] 01/02: upstream: rename a variable to be more accurate
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri Jun 5 18:49:27 AEST 2026
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 37bf1431aa0f5e746f9ae0247f52da1e8b5758d6
Author: djm at openbsd.org <djm at openbsd.org>
AuthorDate: Fri Jun 5 06:51:02 2026 +0000
upstream: rename a variable to be more accurate
OpenBSD-Commit-ID: bf277f2832125eb40ac2c9fa3ea66e31214f2131
---
ed25519.c | 8 ++++----
ed25519.sh | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/ed25519.c b/ed25519.c
index 8f683a2c0..553f2f3c9 100644
--- a/ed25519.c
+++ b/ed25519.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ed25519.c,v 1.5 2026/06/04 04:26:51 djm Exp $ */
+/* $OpenBSD: ed25519.c,v 1.6 2026/06/05 06:51:02 djm Exp $ */
/*
* Public Domain, Authors:
@@ -2004,13 +2004,13 @@ int crypto_sign_ed25519(
* Where L = 2^{252} + 27742317777372353535851937790883648493
* This can be variable time as the signature is public.
*/
-static inline int sc25519_inrange(const unsigned char *pk)
+static inline int sc25519_inrange(const unsigned char *s)
{
int i;
for (i = 0; i < 32; i++) {
- if (pk[31 - i] > sc25519_m[31 - i]) return -1;
- if (pk[31 - i] < sc25519_m[31 - i]) return 0;
+ if (s[31 - i] > sc25519_m[31 - i]) return -1;
+ if (s[31 - i] < sc25519_m[31 - i]) return 0;
}
return -1;
}
diff --git a/ed25519.sh b/ed25519.sh
index d24cdc0fc..1560b5efb 100644
--- a/ed25519.sh
+++ b/ed25519.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-# $OpenBSD: ed25519.sh,v 1.3 2026/06/04 04:26:51 djm Exp $
+# $OpenBSD: ed25519.sh,v 1.4 2026/06/05 06:51:02 djm Exp $
# Placed in the Public Domain.
#
AUTHOR="supercop-20221122/crypto_sign/ed25519/ref/implementors"
@@ -60,13 +60,13 @@ for i in $FILES; do
* Where L = 2^{252} + 27742317777372353535851937790883648493
* This can be variable time as the signature is public.
*/
-static inline int sc25519_inrange(const unsigned char *pk)
+static inline int sc25519_inrange(const unsigned char *s)
{
int i;
for (i = 0; i < 32; i++) {
- if (pk[31 - i] > sc25519_m[31 - i]) return -1;
- if (pk[31 - i] < sc25519_m[31 - i]) return 0;
+ if (s[31 - i] > sc25519_m[31 - i]) return -1;
+ if (s[31 - i] < sc25519_m[31 - i]) return 0;
}
return -1;
}
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list