aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/include/net/stpsession.h14
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];