#[allow(unused_imports)] use asn1obj_codegen::*; #[allow(unused_imports)] use asn1obj::base::*; use asn1obj::complex::*; use asn1obj::strop::*; use asn1obj::asn1impl::*; #[allow(unused_imports)] use asn1obj::{asn1obj_error_class,asn1obj_new_error}; #[allow(unused_imports)] use std::io::Write; use std::error::Error; #[derive(Clone)] #[asn1_sequence()] pub struct X9_62_PENTANOMIALELem { pub k1 :Asn1Integer, pub k2 :Asn1Integer, pub k3 :Asn1Integer, } #[derive(Clone)] #[asn1_sequence()] pub struct X9_62_PENTANOMIAL { pub elem :Asn1Seq, } #[derive(Clone)] #[asn1_obj_selector(other=default,onBasis="1.2.840.10045.1.2.3.1",tpBasis="1.2.840.10045.1.2.3.2",ppBasis="1.2.840.10045.1.2.3.3")] pub struct X962Selector { pub val :Asn1Object, } #[derive(Clone)] #[asn1_choice(selector=otype)] pub struct X9_62_CHARACTERISTIC_TWO_ELEM_CHOICE { pub otype : X962Selector, pub onBasis : Asn1Null, pub tpBasis : Asn1BigNum, pub ppBasis : X9_62_PENTANOMIAL, pub other :Asn1Any, } #[derive(Clone)] #[asn1_sequence()] pub struct X9_62_CHARACTERISTIC_TWO_ELEM { pub m :Asn1Integer, pub elemchoice : X9_62_CHARACTERISTIC_TWO_ELEM_CHOICE, } #[derive(Clone)] #[asn1_sequence()] pub struct X9_62_CHARACTERISTIC_TWO { pub elem :Asn1Seq, } #[derive(Clone)] #[asn1_obj_selector(prime="1.2.840.10045.1.1",char_two="1.2.840.10045.1.2")] pub struct X964FieldSelector { pub val :Asn1Object, } #[derive(Clone)] #[asn1_choice(selector=fieldType)] pub struct X9_62_FIELDIDElem { pub fieldType :X964FieldSelector, pub prime : Asn1BigNum, pub char_two :X9_62_CHARACTERISTIC_TWO, } #[derive(Clone)] #[asn1_sequence()] pub struct X9_62_FIELDID { pub elem :Asn1Seq, } #[derive(Clone)] #[asn1_sequence()] pub struct X9_62_CURVEElem { pub a :Asn1OctData, pub b :Asn1OctData, pub seed :Asn1Opt, } #[derive(Clone)] #[asn1_sequence()] pub struct X9_62_CURVE { pub elem :Asn1Seq, } #[derive(Clone)] #[asn1_sequence()] pub struct ECPARAMETERSElem { pub version : Asn1Integer, pub fieldID : X9_62_FIELDID, pub curve :X9_62_CURVE, pub base :Asn1OctData, pub order :Asn1BigNum, pub cofactor : Asn1Opt, } #[derive(Clone)] #[asn1_sequence()] pub struct ECPARAMETERS { pub elem :Asn1Seq, } #[asn1_int_choice(debug=0,selector=itype,named_curve=0,parameters=1,implicitCA=2)] #[derive(Clone)] pub struct ECPKPARAMETERS { pub itype :i32, pub named_curve :Asn1Object, pub parameters : ECPARAMETERS, pub implicitCA : Asn1Null, } #[derive(Clone)] #[asn1_sequence()] pub struct ECPublicKeyPackElem { pub typef :Asn1Object, pub parameters :ECPKPARAMETERS, } #[derive(Clone)] #[asn1_sequence()] pub struct ECPublicKeyPack { pub elem :Asn1Seq, } #[derive(Clone)] #[asn1_sequence()] pub struct ECPublicKeyAsn1Elem { pub packed :ECPublicKeyPack, pub pubdata :Asn1BitDataFlag, } #[derive(Clone)] #[asn1_sequence()] pub struct ECPublicKeyAsn1 { pub elem :Asn1Seq, } #[derive(Clone)] #[asn1_sequence()] pub struct ECPrivateKeyAsn1Elem { pub version :Asn1Integer, pub privkey :Asn1OctData, pub parameters :Asn1Opt>, pub pubkey : Asn1ImpSet, } #[derive(Clone)] #[asn1_sequence()] pub (crate) struct ECPrivateKeyAsn1 { pub elem :Asn1Seq, } #[asn1_sequence()] #[derive(Clone)] pub struct Asn1X509AttributeElem { pub object :Asn1Object, pub set :Asn1Any, } //#[asn1_sequence(debug=enable)] #[asn1_sequence()] #[derive(Clone)] pub struct Asn1X509Attribute { pub elem : Asn1Seq, } #[asn1_sequence()] #[derive(Clone)] pub struct Asn1X509AlgorElem { pub algorithm : Asn1Object, pub parameters : Asn1Opt, } #[asn1_sequence()] #[derive(Clone)] pub struct Asn1X509Algor { pub elem : Asn1Seq, } #[asn1_sequence()] #[derive(Clone)] pub struct Asn1Pkcs8PrivKeyInfoElem { pub version :Asn1Integer, pub pkeyalg : Asn1X509Algor, pub pkey : Asn1OctData, pub attributes : Asn1Opt>, } #[asn1_sequence()] #[derive(Clone)] pub struct Asn1Pkcs8PrivKeyInfo { pub elem : Asn1Seq, }