8.3 Encoding of an integer value
8.3.1 The encoding of an integer value shall be primitive.
The contents octets shall consist of one or more octets.
Previously this returned ErrorKind::Noncanonical, however this restriction applies to all INTEGER encodings including BER, so ErrorKind::Length is more appropriate.
From X.690 § 8.3.1:
Previously this returned
ErrorKind::Noncanonical
, however this restriction applies to all INTEGER encodings including BER, soErrorKind::Length
is more appropriate.