Make ec/make_tables.go run cleanly again p256-nistz-table.h was manually editted for the C++ conversion without updating the generator. Also put the alignas marker in a slightly less surprising location. Change-Id: I5ac0d1852caa7b8608c856f4fe7438ea5499f872 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/74488 Reviewed-by: Adam Langley <agl@google.com> Commit-Queue: David Benjamin <davidben@google.com>
diff --git a/crypto/fipsmodule/ec/make_tables.go b/crypto/fipsmodule/ec/make_tables.go index 83b4939..fc51088 100644 --- a/crypto/fipsmodule/ec/make_tables.go +++ b/crypto/fipsmodule/ec/make_tables.go
@@ -196,7 +196,7 @@ // This file is generated by make_tables.go. -static const alignas(4096) PRECOMP256_ROW ecp_nistz256_precomputed[37] = ` +alignas(4096) static const PRECOMP256_ROW ecp_nistz256_precomputed[37] = ` if _, err := io.WriteString(w, fileHeader); err != nil { return err }
diff --git a/crypto/fipsmodule/ec/p256-nistz-table.h b/crypto/fipsmodule/ec/p256-nistz-table.h index f2c8a48..bfe977f 100644 --- a/crypto/fipsmodule/ec/p256-nistz-table.h +++ b/crypto/fipsmodule/ec/p256-nistz-table.h
@@ -22,7 +22,7 @@ // This file is generated by make_tables.go. -static const PRECOMP256_ROW ecp_nistz256_precomputed alignas(4096)[37] = { +alignas(4096) static const PRECOMP256_ROW ecp_nistz256_precomputed[37] = { {{{TOBN(0x79e730d4, 0x18a9143c), TOBN(0x75ba95fc, 0x5fedb601), TOBN(0x79fb732b, 0x77622510), TOBN(0x18905f76, 0xa53755c6)}, {TOBN(0xddf25357, 0xce95560a), TOBN(0x8b4ab8e4, 0xba19e45c),