summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bn/bn_sqr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bn/bn_sqr.c')
-rw-r--r--src/lib/libcrypto/bn/bn_sqr.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/libcrypto/bn/bn_sqr.c b/src/lib/libcrypto/bn/bn_sqr.c
index 36b3965207..80070831ab 100644
--- a/src/lib/libcrypto/bn/bn_sqr.c
+++ b/src/lib/libcrypto/bn/bn_sqr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_sqr.c,v 1.14 2022/11/24 01:30:01 jsing Exp $ */ 1/* $OpenBSD: bn_sqr.c,v 1.15 2022/11/26 13:56:33 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 *
@@ -72,7 +72,6 @@ BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx)
72#ifdef BN_COUNT 72#ifdef BN_COUNT
73 fprintf(stderr, "BN_sqr %d * %d\n", a->top, a->top); 73 fprintf(stderr, "BN_sqr %d * %d\n", a->top, a->top);
74#endif 74#endif
75 bn_check_top(a);
76 75
77 al = a->top; 76 al = a->top;
78 if (al <= 0) { 77 if (al <= 0) {
@@ -145,8 +144,6 @@ BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx)
145 ret = 1; 144 ret = 1;
146 145
147err: 146err:
148 bn_check_top(rr);
149 bn_check_top(tmp);
150 BN_CTX_end(ctx); 147 BN_CTX_end(ctx);
151 return (ret); 148 return (ret);
152} 149}