summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkn <>2018-07-11 13:57:53 +0000
committerkn <>2018-07-11 13:57:53 +0000
commit13d98c37792a5abab14711474be5b9d62863e1a8 (patch)
tree675ca6b770984628a8fff7b5b14b26925d2633d7 /src
parent99f37fd961ece4ed3d15352d6ea71fdfadaef845 (diff)
downloadopenbsd-13d98c37792a5abab14711474be5b9d62863e1a8.tar.gz
openbsd-13d98c37792a5abab14711474be5b9d62863e1a8.tar.bz2
openbsd-13d98c37792a5abab14711474be5b9d62863e1a8.zip
Sync comment
Makes it a tad easier to read through and compare with BN_swap_ct(). OK tb
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/bn/bn_lib.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/libcrypto/bn/bn_lib.c b/src/lib/libcrypto/bn/bn_lib.c
index 3be9eaae5d..d3ec00413f 100644
--- a/src/lib/libcrypto/bn/bn_lib.c
+++ b/src/lib/libcrypto/bn/bn_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_lib.c,v 1.42 2018/07/11 07:38:00 tb Exp $ */ 1/* $OpenBSD: bn_lib.c,v 1.43 2018/07/11 13:57:53 kn Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -837,8 +837,10 @@ bn_cmp_part_words(const BN_ULONG *a, const BN_ULONG *b, int cl, int dl)
837 837
838/* 838/*
839 * Constant-time conditional swap of a and b. 839 * Constant-time conditional swap of a and b.
840 * a and b are swapped if condition is not 0. The code assumes that at most one bit of condition is set. 840 * a and b are swapped if condition is not 0.
841 * nwords is the number of words to swap. The code assumes that at least nwords are allocated in both a and b, 841 * The code assumes that at most one bit of condition is set.
842 * nwords is the number of words to swap.
843 * The code assumes that at least nwords are allocated in both a and b,
842 * and that no more than nwords are used by either a or b. 844 * and that no more than nwords are used by either a or b.
843 * a and b cannot be the same number 845 * a and b cannot be the same number
844 */ 846 */