1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
#[derive(Debug,PartialEq)] pub enum DerError { /// Der object does not have the expected type DerTypeError, DerValueError, InvalidTag, InvalidLength, /// Der integer is too large to fit in a native type. Use `as_bigint()` IntegerTooLarge, } /// Unexpected DER tag pub const DER_TAG_ERROR : u32 = 128; /// Unexpected DER class pub const DER_CLASS_ERROR : u32 = 129; /// Unexpected DER structured flag pub const DER_STRUCT_ERROR : u32 = 130; /// Unknown or unsupported DER tag pub const DER_TAG_UNKNOWN : u32 = 131; /// Invalid length for DER object pub const DER_INVALID_LENGTH : u32 = 132; /// Items contained in a structured object do not fill the entire container object pub const DER_OBJ_TOOSHORT : u32 = 133;