summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bn/bn_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bn/bn_lib.c')
-rw-r--r--src/lib/libcrypto/bn/bn_lib.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/lib/libcrypto/bn/bn_lib.c b/src/lib/libcrypto/bn/bn_lib.c
index 851c337ef0..c47f2fa024 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.66 2022/11/30 03:08:39 jsing Exp $ */ 1/* $OpenBSD: bn_lib.c,v 1.67 2022/12/17 15:56:25 jsing 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 *
@@ -998,11 +998,22 @@ BN_swap_ct(BN_ULONG condition, BIGNUM *a, BIGNUM *b, size_t nwords)
998} 998}
999 999
1000void 1000void
1001BN_zero_ex(BIGNUM *a) 1001BN_zero(BIGNUM *a)
1002{ 1002{
1003 a->neg = 0; 1003 a->neg = 0;
1004 a->top = 0; 1004 a->top = 0;
1005 /* XXX: a->flags &= ~BN_FIXED_TOP */ 1005}
1006
1007void
1008BN_zero_ex(BIGNUM *a)
1009{
1010 BN_zero(a);
1011}
1012
1013int
1014BN_one(BIGNUM *a)
1015{
1016 return BN_set_word(a, 1);
1006} 1017}
1007 1018
1008int 1019int