summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2019-06-04 18:15:27 +0000
committertb <tb@openbsd.org>2019-06-04 18:15:27 +0000
commit759317bf8c074545ab9a48c6d2e234e34b86080e (patch)
tree5576ba3a5503f56c47c795b52f6de86600c9e87f
parentRemove the blinding later to avoid leaking information on the length (diff)
downloadwireguard-openbsd-759317bf8c074545ab9a48c6d2e234e34b86080e.tar.xz
wireguard-openbsd-759317bf8c074545ab9a48c6d2e234e34b86080e.zip
Readability tweak in a comment.
-rw-r--r--lib/libcrypto/ecdsa/ecs_ossl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/ecdsa/ecs_ossl.c b/lib/libcrypto/ecdsa/ecs_ossl.c
index c9d23013a99..8a6685de580 100644
--- a/lib/libcrypto/ecdsa/ecs_ossl.c
+++ b/lib/libcrypto/ecdsa/ecs_ossl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ecs_ossl.c,v 1.19 2019/06/04 18:13:44 tb Exp $ */
+/* $OpenBSD: ecs_ossl.c,v 1.20 2019/06/04 18:15:27 tb Exp $ */
/*
* Written by Nils Larsch for the OpenSSL project
*/
@@ -329,7 +329,7 @@ ecdsa_do_sign(const unsigned char *dgst, int dgst_len,
* In order to reduce the possibility of a side-channel attack,
* the following is calculated using a blinding value:
*
- * s = inv(k)inv(b)(bm + bxr) mod order
+ * s = inv(b)(bm + bxr)inv(k) mod order
*
* where b is a random value in the range [1, order-1].
*/