2 releases

0.4.1 Jul 3, 2024
0.4.0 Jun 21, 2024

#715 in Network programming

Download history 5/week @ 2024-10-13 1/week @ 2024-10-20 64/week @ 2024-11-03 55/week @ 2024-11-10 11/week @ 2024-11-17 61/week @ 2024-11-24 76/week @ 2024-12-01 151/week @ 2024-12-08 81/week @ 2024-12-15 1/week @ 2024-12-22 2/week @ 2024-12-29 47/week @ 2025-01-05 25/week @ 2025-01-12 24/week @ 2025-01-19 25/week @ 2025-01-26

121 downloads per month
Used in 5 crates (3 directly)

AGPL-3.0

175KB
3.5K SLoC

Kerberos ASN1

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.

Examples

Decoding a string of Kerberos:

use kerberos_asn1::KerberosString;
use red_asn1::Asn1Object;

let raw_string = &[
                0x1b, 0x0e, 0x4b, 0x49, 0x4e, 0x47, 0x44, 0x4f, 0x4d, 0x2e,
                0x48, 0x45, 0x41, 0x52, 0x54, 0x53,
            ];
let (rest_raw, kerberos_string) = KerberosString::parse(raw_string).unwrap();

assert_eq!("KINGDOM.HEARTS", kerberos_string);  

References

Dependencies

~4.5MB
~90K SLoC