#asn-1 #kerberos #encryption #kerberos-string

himmelblau_kerberos_asn1

Parse/Build Kerberos ASN1 DER To/From Rust structs

3 releases

0.4.2 Feb 19, 2025
0.4.1 Jul 3, 2024
0.4.0 Jun 21, 2024

#676 in Cryptography

Download history 59/week @ 2024-12-18 7/week @ 2025-01-01 51/week @ 2025-01-08 21/week @ 2025-01-15 27/week @ 2025-01-22 44/week @ 2025-01-29 40/week @ 2025-02-05 63/week @ 2025-02-12 263/week @ 2025-02-19 105/week @ 2025-02-26 106/week @ 2025-03-05 101/week @ 2025-03-12 38/week @ 2025-03-19 39/week @ 2025-03-26 75/week @ 2025-04-02

279 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 himmelblau_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
~88K SLoC