diff options
author | jsg <> | 2022-08-29 06:08:03 +0000 |
---|---|---|
committer | jsg <> | 2022-08-29 06:08:03 +0000 |
commit | a03a478b1e78f960430c820fba5baff78084cd45 (patch) | |
tree | 12e2a48b7a5cff29808b2e61ec5f9bfdb7602734 | |
parent | 626a10f351f1847ad1363ebef1150a4ad18bb836 (diff) | |
download | openbsd-a03a478b1e78f960430c820fba5baff78084cd45.tar.gz openbsd-a03a478b1e78f960430c820fba5baff78084cd45.tar.bz2 openbsd-a03a478b1e78f960430c820fba5baff78084cd45.zip |
static const, not const static
c99 6.11.5:
"The placement of a storage-class specifier other than at the beginning
of the declaration specifiers in a declaration is an obsolescent
feature."
ok miod@ tb@
-rw-r--r-- | src/lib/libcrypto/ec/ecp_nistz256.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ec/ecp_nistz256.c b/src/lib/libcrypto/ec/ecp_nistz256.c index 05a16b8c07..dec7d31256 100644 --- a/src/lib/libcrypto/ec/ecp_nistz256.c +++ b/src/lib/libcrypto/ec/ecp_nistz256.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ecp_nistz256.c,v 1.10 2021/09/08 17:29:21 tb Exp $ */ | 1 | /* $OpenBSD: ecp_nistz256.c,v 1.11 2022/08/29 06:08:03 jsg Exp $ */ |
2 | /* Copyright (c) 2014, Intel Corporation. | 2 | /* Copyright (c) 2014, Intel Corporation. |
3 | * | 3 | * |
4 | * Permission to use, copy, modify, and/or distribute this software for any | 4 | * Permission to use, copy, modify, and/or distribute this software for any |
@@ -573,12 +573,12 @@ ecp_nistz256_windowed_mul(const EC_GROUP *group, P256_POINT *r, | |||
573 | } | 573 | } |
574 | 574 | ||
575 | /* Coordinates of G, for which we have precomputed tables */ | 575 | /* Coordinates of G, for which we have precomputed tables */ |
576 | const static BN_ULONG def_xG[P256_LIMBS] = { | 576 | static const BN_ULONG def_xG[P256_LIMBS] = { |
577 | TOBN(0x79e730d4, 0x18a9143c), TOBN(0x75ba95fc, 0x5fedb601), | 577 | TOBN(0x79e730d4, 0x18a9143c), TOBN(0x75ba95fc, 0x5fedb601), |
578 | TOBN(0x79fb732b, 0x77622510), TOBN(0x18905f76, 0xa53755c6) | 578 | TOBN(0x79fb732b, 0x77622510), TOBN(0x18905f76, 0xa53755c6) |
579 | }; | 579 | }; |
580 | 580 | ||
581 | const static BN_ULONG def_yG[P256_LIMBS] = { | 581 | static const BN_ULONG def_yG[P256_LIMBS] = { |
582 | TOBN(0xddf25357, 0xce95560a), TOBN(0x8b4ab8e4, 0xba19e45c), | 582 | TOBN(0xddf25357, 0xce95560a), TOBN(0x8b4ab8e4, 0xba19e45c), |
583 | TOBN(0xd2e88688, 0xdd21f325), TOBN(0x8571ff18, 0x25885d85) | 583 | TOBN(0xd2e88688, 0xdd21f325), TOBN(0x8571ff18, 0x25885d85) |
584 | }; | 584 | }; |