This library defines the ASN1 structures used by the Kerberos protocol as Rust structs. Based in the red_asn1 library.
Each type defined in this library provides a method parse
to parse
an array of bytes and create the type, and a method build
to create
an array of bytes from the type and its values.
Decoding a string of Kerberos: ```rust use kerberosasn1::KerberosString; use redasn1::Asn1Object;
let rawstring = &[ 0x1b, 0x0e, 0x4b, 0x49, 0x4e, 0x47, 0x44, 0x4f, 0x4d, 0x2e, 0x48, 0x45, 0x41, 0x52, 0x54, 0x53, ]; let (restraw, kerberosstring) = KerberosString::parse(rawstring).unwrap();
asserteq!("KINGDOM.HEARTS", kerberosstring);
```