diff options
| author | tb <> | 2023-06-04 17:28:35 +0000 |
|---|---|---|
| committer | tb <> | 2023-06-04 17:28:35 +0000 |
| commit | 383800ed25dd1967077f5e56673b8363dd647b9e (patch) | |
| tree | 52e6cfec5c1b493d28cf1d4dcca6327a76116e70 /src/lib/libcrypto/bn/bn_isqrt.c | |
| parent | d6806c5824c21a9f7c02543a39b289207ebadf59 (diff) | |
| download | openbsd-383800ed25dd1967077f5e56673b8363dd647b9e.tar.gz openbsd-383800ed25dd1967077f5e56673b8363dd647b9e.tar.bz2 openbsd-383800ed25dd1967077f5e56673b8363dd647b9e.zip | |
Reinstate bn_isqrt.c r1.8 and crypto_lock.c r1.3
This traded local copies of CTASSERT() to the one in crypto_internal.h.
This change was backed out due to SHA-512 breakage on STRICT_ALIGNMENT
architectures still using Fred Flintstone's gcc without asm sha512.
Original commit message:
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/bn_isqrt.c')
| -rw-r--r-- | src/lib/libcrypto/bn/bn_isqrt.c | 6 |
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 d24a4a43ba..018d5f34bd 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.9 2023/05/19 00:54:28 deraadt Exp $ */ | 1 | /* $OpenBSD: bn_isqrt.c,v 1.10 2023/06/04 17:28:35 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. |
