Commit cbb4cbd
committed
Rename TLS 1.3 ACVP handlers and add BoringSSL attribution
Address review feedback:
- Rename the new modulewrapper ACVP handlers HKDFExtract/HKDFExpandLabel
to TLS13_HKDFExtract/TLS13_HKDFExpandLabel. The ACVP command strings
on the wire are unchanged; only the C++ identifiers move. This matches
the existing TLSKDF / "TLSKDF/1.2/..." convention in the same file
and disambiguates the new helpers from the generic HKDF / HKDF_expand
helpers (KDA/HKDF and KDF/Feedback) already defined in this TU.
- Add in-code attribution for the parts of this change that are ported
from BoringSSL: the pair of ACVP handlers in modulewrapper.cc and the
HkdfLabel/CBB construction in CRYPTO_tls13_hkdf_expand_label. The
comment on the latter also calls out that the FIPS service-indicator
lock/unlock and TLS13_KDF_verify_service_indicator call are
AWS-LC-specific, to make the port vs. novel split explicit for future
reviewers and for resyncs with BoringSSL upstream.1 parent 59e6bb9 commit cbb4cbd
2 files changed
Lines changed: 20 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
133 | 139 | | |
134 | 140 | | |
135 | 141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3246 | 3246 | | |
3247 | 3247 | | |
3248 | 3248 | | |
| 3249 | + | |
| 3250 | + | |
| 3251 | + | |
| 3252 | + | |
| 3253 | + | |
| 3254 | + | |
3249 | 3255 | | |
3250 | | - | |
3251 | | - | |
| 3256 | + | |
| 3257 | + | |
3252 | 3258 | | |
3253 | 3259 | | |
3254 | 3260 | | |
| |||
3264 | 3270 | | |
3265 | 3271 | | |
3266 | 3272 | | |
3267 | | - | |
3268 | | - | |
| 3273 | + | |
| 3274 | + | |
3269 | 3275 | | |
3270 | 3276 | | |
3271 | 3277 | | |
| |||
4275 | 4281 | | |
4276 | 4282 | | |
4277 | 4283 | | |
4278 | | - | |
4279 | | - | |
4280 | | - | |
4281 | | - | |
| 4284 | + | |
| 4285 | + | |
| 4286 | + | |
| 4287 | + | |
4282 | 4288 | | |
4283 | 4289 | | |
4284 | 4290 | | |
| |||
0 commit comments