summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bn
diff options
context:
space:
mode:
authortb <>2023-05-17 07:42:38 +0000
committertb <>2023-05-17 07:42:38 +0000
commit244fe4acf652024e7c876f6498c46317be42ed9d (patch)
treec3571a1584949460ec1e7791842855fc20abe3f0 /src/lib/libcrypto/bn
parent6683fd06977fdaa02290993ccf540e097725fbcb (diff)
downloadopenbsd-244fe4acf652024e7c876f6498c46317be42ed9d.tar.gz
openbsd-244fe4acf652024e7c876f6498c46317be42ed9d.tar.bz2
openbsd-244fe4acf652024e7c876f6498c46317be42ed9d.zip
Use crypto_internal.h's CTASSERT()
Now that this macro is available in a header, let's use that version rather than copies in several .c files. discussed with jsing
Diffstat (limited to 'src/lib/libcrypto/bn')
-rw-r--r--src/lib/libcrypto/bn/bn_isqrt.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/libcrypto/bn/bn_isqrt.c b/src/lib/libcrypto/bn/bn_isqrt.c
index 4a757b02ce..1dff1b0562 100644
--- a/src/lib/libcrypto/bn/bn_isqrt.c
+++ b/src/lib/libcrypto/bn/bn_isqrt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_isqrt.c,v 1.7 2023/03/27 10:25:02 tb Exp $ */ 1/* $OpenBSD: bn_isqrt.c,v 1.8 2023/05/17 07:42:38 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2022 Theo Buehler <tb@openbsd.org> 3 * Copyright (c) 2022 Theo Buehler <tb@openbsd.org>
4 * 4 *
@@ -22,9 +22,7 @@
22#include <openssl/err.h> 22#include <openssl/err.h>
23 23
24#include "bn_local.h" 24#include "bn_local.h"
25 25#include "crypto_internal.h"
26#define CTASSERT(x) extern char _ctassert[(x) ? 1 : -1 ] \
27 __attribute__((__unused__))
28 26
29/* 27/*
30 * Calculate integer square root of |n| using a variant of Newton's method. 28 * Calculate integer square root of |n| using a variant of Newton's method.