summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-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 */