#asn-1 #kerberos #parser

picky-krb

Encode/decode Kerberos ASN.1 DER structs

15 releases (8 breaking)

0.9.4 Feb 21, 2025
0.9.2 Nov 26, 2024
0.9.0 Jul 15, 2024
0.8.0 Aug 24, 2023
0.3.1 Jul 29, 2022

#264 in Encoding

Download history 4070/week @ 2024-12-14 1465/week @ 2024-12-21 1808/week @ 2024-12-28 2969/week @ 2025-01-04 3323/week @ 2025-01-11 3384/week @ 2025-01-18 2716/week @ 2025-01-25 3094/week @ 2025-02-01 3074/week @ 2025-02-08 5392/week @ 2025-02-15 4799/week @ 2025-02-22 4019/week @ 2025-03-01 2911/week @ 2025-03-08 3590/week @ 2025-03-15 3595/week @ 2025-03-22 2717/week @ 2025-03-29

13,419 downloads per month
Used in 18 crates (4 directly)

MIT/Apache

1MB
18K SLoC

Crates.io docs.rs Crates.io

Compatible with rustc 1.56. Minimal rustc version bumps happen only with minor number bumps in this project.

picky-krb

Provides implementation for types defined in RFC 4120.

Serializing and deserializing Kerberos structures

Use picky_asn1_der::from_bytes for deserialization from binary, for example:

use picky_krb::messages::AsRep;
let as_rep: AsRep = picky_asn1_der::from_bytes(&raw).unwrap();

And picky_asn1_der::to_vec for serialization to binary, for example:

use picky_krb::messages::TgsReq;
let tgs_req: TgsReq = picky_asn1_der::from_bytes(&raw).unwrap();
let tgs_req_encoded = picky_asn1_der::to_vec(&tgs_req).unwrap();

Dependencies

~4MB
~89K SLoC