[noise] Trim resume flash: one KDF, no discard state, packed ticket

This commit is contained in:
J. Nick Koston
2026-08-24 16:31:46 -05:00
parent d1f7e71efb
commit 1cb2136c38
10 changed files with 60 additions and 105 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ struct TestCache : ResumeTicketCache {
void plant(const uint8_t *session_id, const uint8_t *secret) {
std::memcpy(this->slots_[0].session_id, session_id, RESUME_SESSION_ID_SIZE);
std::memcpy(this->slots_[0].secret, secret, RESUME_SECRET_SIZE);
this->used_[0] = true;
this->used_mask_ |= 1u;
}
};