summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bn
diff options
context:
space:
mode:
authorderaadt <>2023-05-19 00:54:28 +0000
committerderaadt <>2023-05-19 00:54:28 +0000
commit810ffccceee23ecfabf0344198f93c78f166076e (patch)
tree2966339a1eb80b2ee20d3d4217893b5c4a50f75d /src/lib/libcrypto/bn
parent7ffc9f677ed2e28353efec97b72894c9e457f44c (diff)
downloadopenbsd-810ffccceee23ecfabf0344198f93c78f166076e.tar.gz
openbsd-810ffccceee23ecfabf0344198f93c78f166076e.tar.bz2
openbsd-810ffccceee23ecfabf0344198f93c78f166076e.zip
backout alignment changes (breaking at least two architectures)
Diffstat (limited to 'src/lib/libcrypto/bn')
-rw-r--r--src/lib/libcrypto/bn/bn_isqrt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bn/bn_isqrt.c b/src/lib/libcrypto/bn/bn_isqrt.c
index 1dff1b0562..d24a4a43ba 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.8 2023/05/17 07:42:38 tb Exp $ */ 1/* $OpenBSD: bn_isqrt.c,v 1.9 2023/05/19 00:54:28 deraadt Exp $ */
2/* 2/*
3 * Copyright (c) 2022 Theo Buehler <tb@openbsd.org> 3 * Copyright (c) 2022 Theo Buehler <tb@openbsd.org>
4 * 4 *
@@ -22,7 +22,9 @@
22#include <openssl/err.h> 22#include <openssl/err.h>
23 23
24#include "bn_local.h" 24#include "bn_local.h"
25#include "crypto_internal.h" 25
26#define CTASSERT(x) extern char _ctassert[(x) ? 1 : -1 ] \
27 __attribute__((__unused__))
26 28
27/* 29/*
28 * Calculate integer square root of |n| using a variant of Newton's method. 30 * Calculate integer square root of |n| using a variant of Newton's method.