#codec #asn1-der #kerberos #asn-1 #parse

picky-krb

Encode/decode Kerberos ASN.1 DER structs

13 releases (8 breaking)

0.9.2 Nov 26, 2024
0.9.0 Jul 15, 2024
0.8.0 Aug 24, 2023
0.7.0 Jun 15, 2023
0.3.1 Jul 29, 2022

#278 in Encoding

Download history 2389/week @ 2024-08-16 3365/week @ 2024-08-23 2591/week @ 2024-08-30 2228/week @ 2024-09-06 1794/week @ 2024-09-13 1471/week @ 2024-09-20 2341/week @ 2024-09-27 4506/week @ 2024-10-04 2490/week @ 2024-10-11 2823/week @ 2024-10-18 3708/week @ 2024-10-25 3631/week @ 2024-11-01 3654/week @ 2024-11-08 3114/week @ 2024-11-15 3143/week @ 2024-11-22 3614/week @ 2024-11-29

14,096 downloads per month
Used in 14 crates (3 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
~82K SLoC