Crate yasna [−] [src]
A library for reading and writing ASN.1 data.
Example
extern crate yasna; fn main() { let der = yasna::construct_der(|writer| { writer.write_sequence(|writer| { try!(writer.write_i64(10)); try!(writer.write_bool(true)); return Ok(()); }) }).unwrap(); println!("(10, true) = {:?}", der); }
Modules
ber |
Structs
BitString | |
DERWriter |
A writer object that has an internal buffer storing DER-encoded data. |
ObjectIdentifier | |
PrintableString | |
SetOf | |
Tag | |
UtcTime |
Enums
TagClass | |
TagType |
Constants
TAG_BITSTRING | |
TAG_BOOLEAN | |
TAG_INTEGER | |
TAG_NULL | |
TAG_OCTETSTRING | |
TAG_OID | |
TAG_PRINTABLESTRING | |
TAG_SEQUENCE | |
TAG_SET | |
TAG_UTCTIME | |
TAG_UTF8STRING |
Functions
construct_der |
Constructs DER-encoded data as |