File tree 2 files changed +12
-1
lines changed 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,14 @@ corresponding ARM feature.
150
150
Note that if a feature is enabled in this way, but not actually supported at
151
151
run-time, BoringSSL will likely crash.
152
152
153
- # Running tests
153
+ ## Binary Size
154
+
155
+ The implementations of some algorithms require a trade-off between binary size
156
+ and performance. For instance, BoringSSL's fastest P-256 implementation uses a
157
+ 148 KiB pre-computed table. To optimize instead for binary size, pass
158
+ ` -DOPENSSL_SMALL=1 ` to CMake or define the ` OPENSSL_SMALL ` preprocessor symbol.
159
+
160
+ # Running Tests
154
161
155
162
There are two sets of tests: the C/C++ tests and the blackbox tests. For former
156
163
are built by Ninja and can be run from the top-level directory with `go run
Original file line number Diff line number Diff line change @@ -279,6 +279,10 @@ if(FIPS)
279
279
endif ()
280
280
endif ()
281
281
282
+ if (OPENSSL_SMALL)
283
+ add_definitions (-DOPENSSL_SMALL)
284
+ endif ()
285
+
282
286
# CMake's iOS support uses Apple's multiple-architecture toolchain. It takes an
283
287
# architecture list from CMAKE_OSX_ARCHITECTURES, leaves CMAKE_SYSTEM_PROCESSOR
284
288
# alone, and expects all architecture-specific logic to be conditioned within
You can’t perform that action at this time.
0 commit comments