commit | 9550c3ac8bd549412dbddea18badb45b11fa14bd | [log] [tgz] |
---|---|---|
author | David Benjamin <davidben@chromium.org> | Wed Aug 05 08:50:34 2015 -0400 |
committer | Adam Langley <agl@google.com> | Fri Aug 07 01:10:33 2015 +0000 |
tree | 69b641785839fb8f5c84cf34d8f009ce16368ed5 | |
parent | 5055c7670907a84b8769c3ab2558260748e8893e [diff] |
Decouple the handshake buffer and digest. The handshake hash is initialized from the buffer as soon as the cipher is known. When adding a message to the transcript, independently update the buffer and rolling hash, whichever is active. This avoids the complications around dont_free_handshake_buffer and EMS. BUG=492371 Change-Id: I3b1065796a50fd1be5d42ead7210c2f253ef0aca Reviewed-on: https://boringssl-review.googlesource.com/5615 Reviewed-by: Adam Langley <agl@google.com>