#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

#233 in Encoding

Download history 1727/week @ 2024-09-14 1421/week @ 2024-09-21 3017/week @ 2024-09-28 3982/week @ 2024-10-05 2558/week @ 2024-10-12 2914/week @ 2024-10-19 3842/week @ 2024-10-26 3581/week @ 2024-11-02 3753/week @ 2024-11-09 2933/week @ 2024-11-16 3087/week @ 2024-11-23 4110/week @ 2024-11-30 4160/week @ 2024-12-07 4070/week @ 2024-12-14 1465/week @ 2024-12-21 1425/week @ 2024-12-28

12,054 downloads per month
Used in 15 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