Seems like something which would nicely be replaced with const generics, whenever you're ready to bump MSRV to 1.51. _Originally posted by @tarcieri in https://github.com/RustCrypto/formats/pull/56#discussion_r716763640_