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 * 1024func_bounded_body(request) -> bytesThe request's body, refused with 413 past HANDSHAKE_BODY_MAX before more is read.
paramrequestRequestReturns
bytesfunchandshake_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.
paramrawRequestReturns
dict[str, str]