pub const LARGE_SAFE_PRIME_LENGTH: u8 = 32;
Expand description

The size in bytes of the large safe prime.

The client does not work with sizes greater than 32 for unknown reasons, despite the field in the CMD_AUTH_LOGON_CHALLENGE packet being variable size.

The public key field in the same packet is also statically 32 bytes wide and since the public key is generated modulo the large safe prime, large safe prime lengths of greater than 32 could lead to public keys that were unable to be sent over the network.