Repository navigation
Reduce stack usage in tls13_hkdf_expand - #7297
bernd-edlinger wants to merge 1 commit into
Conversation
mattcaswell
left a comment
There was a problem hiding this comment.
Nice catch. That change was made in one of the drafts, and it looks like this code didn't get updated to follow it.
|
Yeah, also the rationale for the 12 character limit is broken. |
Reviewed-by: Paul Dale <[email protected]> Reviewed-by: Matt Caswell <[email protected]> (Merged from #7297)
Reviewed-by: Paul Dale <[email protected]> Reviewed-by: Matt Caswell <[email protected]> (Merged from #7297) (cherry picked from commit ec0c5f5)
|
Merged to master and 111. Thanks! |
| * prefix and label + bytes for the label itself + bytes for the hash | ||
| * 2 bytes for length of derived secret + 1 byte for length of combined | ||
| * prefix and label + bytes for the label itself + 1 byte length of hash | ||
| * + bytes for the hash itself |
There was a problem hiding this comment.
Don't we need to actually add another sizeof(uint8_t) to the addition, for the length of the hash output?
There was a problem hiding this comment.
could be more clear this way, but then we should subtract one from sizeof(prefix)
There was a problem hiding this comment.
So initially I had this:
sizeof(uint16_t) + sizeof(uint8_t)
+ (sizeof(label_prefix) - 1) + TLS13_MAX_LABEL_LEN
+ sizeof(uint8_t) + EVP_MAX_MD_SIZE
... but dropped it again, since the result is effectively the same.
|
(This change introduced a regression for Tor: See #7712) |
No description provided.