11 releases

0.2.1 Dec 23, 2020
0.2.0 May 31, 2020
0.1.0 May 22, 2020
0.0.8 May 13, 2020

#522 in Authentication

Download history 86/week @ 2024-06-17 82/week @ 2024-06-24 40/week @ 2024-07-01 24/week @ 2024-07-08 61/week @ 2024-07-15 41/week @ 2024-07-22 67/week @ 2024-07-29 85/week @ 2024-08-05 181/week @ 2024-08-12 295/week @ 2024-08-19 88/week @ 2024-08-26 146/week @ 2024-09-02 56/week @ 2024-09-09 25/week @ 2024-09-16 148/week @ 2024-09-23 65/week @ 2024-09-30

307 downloads per month
Used in 5 crates (4 directly)

AGPL-3.0

170KB
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
~89K SLoC