diff options
author | Ian Moffett <ian@osmora.org> | 2024-10-01 00:23:11 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-10-01 00:23:11 -0400 |
commit | 7d1a25045f30882dd5d5618a83b4bbb5564ebf8f (patch) | |
tree | 1466a0db583b3f63c053b985dd53a92b67cfbf2c | |
parent | eb3eedb13e111d38afac86ab1de63c41f6421c9f (diff) |
lib: stpsession: Remove hash field
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r-- | lib/include/net/stpsession.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/include/net/stpsession.h b/lib/include/net/stpsession.h index aeed9cb..8b61da2 100644 --- a/lib/include/net/stpsession.h +++ b/lib/include/net/stpsession.h @@ -46,18 +46,9 @@ /* * The Session Request is sent from the client to the - * server and contains a HOP (hash, options, pubkey) - * payload along with some optional padding. If the 'U' - * bit of options (see Options/flag bits below) is to - * be set, then everything but the 'hash' field must - * be encrypted with the server's AES-128-CBC key and - * the 'hash' field should contain a SHA256 hash of the - * username as well as an FNV-1a hash (used for internal - * lookups in the server) after it. However, if the 'U' - * bit is to be left unset, the session request packet - * can be left unencrypted and 'hash' may be zeroed. + * server and contains options, public key and some + * optional padding. * - * @hash: SHA256 username hash + FNV-1a username hash. * @options: Flags/options * @pubkey: Ephemeral public key. * @pad: Random padding used to obsecure message length @@ -77,7 +68,6 @@ * R: Reserved, keep zero. */ struct session_request { - uint8_t hash[64]; uint8_t options; uint8_t pubkey[32]; uint8_t pad[8]; |