SealSkin

handshake

E2EE handshake endpoints, the routes a client reaches before it has a session key.

attributelogger
= logging.getLogger(__name__)
attributerouter
= APIRouter()
attributeHANDSHAKE_BODY_MAX
= 16 * 1024
func_bounded_body(request) -> bytes

The request's body, refused with 413 past HANDSHAKE_BODY_MAX before more is read.

paramrequestRequest

Returns

bytes
funchandshake_initiate() -> dict[str, str]

Return a signed nonce so the client can authenticate the server.

Returns

dict[str, str]
funchandshake_exchange(raw) -> dict[str, str]

Accept the client's wrapped AES key and open an E2EE session.

paramrawRequest

Returns

dict[str, str]