diff --git a/src/sizes.rs b/src/sizes.rs index d8b73e4..06b1419 100644 --- a/src/sizes.rs +++ b/src/sizes.rs @@ -21,10 +21,7 @@ pub const PACKET_SIZE: usize = 64; /// The theoretical maximal message size, which however is far /// too large for most platforms. pub const THEORETICAL_MAX_MESSAGE_SIZE: usize = PACKET_SIZE - 7 + 128 * (PACKET_SIZE - 5); -/// The size used by Yubico, which means that no platforms will -/// realistically expect a larger size. -pub const REALISTIC_MAX_MESSAGE_SIZE: usize = 1200; /// Max length for a large blob fragment, according to /// https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#largeBlobsRW -pub const LARGE_BLOB_MAX_FRAGMENT_LENGTH: usize = REALISTIC_MAX_MESSAGE_SIZE - 64; +pub const LARGE_BLOB_MAX_FRAGMENT_LENGTH: usize = 1200 - 64;