(function(){function t(k){var l=k.jsustoolkitErrCode=k.jsustoolkitErrCode||{},b=k.asn1=k.asn1||{};b.Class={UNIVERSAL:0,APPLICATION:64,CONTEXT_SPECIFIC:128,PRIVATE:192};b.Type={NONE:0,BOOLEAN:1,INTEGER:2,BITSTRING:3,OCTETSTRING:4,NULL:5,OID:6,ODESC:7,EXTERNAL:8,REAL:9,ENUMERATED:10,EMBEDDED:11,UTF8:12,ROID:13,SEQUENCE:16,SET:17,PRINTABLESTRING:19,IA5STRING:22,UTCTIME:23,GENERALIZEDTIME:24,BMPSTRING:30};b.create=function(a,d,b,c){if(c.constructor==Array){for(var g=[],f=0;fa.length())throw{code:"110001",message:l["110001"]+"(bytes:"+a.length()+")"};var d=a.getByte(),g=d&192,c=d&31;var e=a;var f=e.getByte();e=128==f?void 0:f&128?e.getInt((f&127)<<3):f;if(a.length()=c.length())d.putByte(c.length()&127);else{e=c.length();a="";do a+=String.fromCharCode(e&255),e>>>=8;while(0>>=7,b||(f|=128),c.push(f),b=!1;while(0b[a].length&&(d+="0"),d+=b[a];return d+"Z"};b.dateToGeneralizedTime=function(a){var b="",g=[];g.push(""+a.getUTCFullYear());g.push(""+(a.getUTCMonth()+1));g.push(""+a.getUTCDate());g.push(""+a.getUTCHours());g.push(""+a.getUTCMinutes());g.push(""+a.getUTCSeconds());for(a=0;ag[a].length&&(b+="0"):2>g[a].length&&(b+="0"),b+=g[a];return b+"Z"};b.validate=function(a,d,g,c){var e=!1;if(a.tagClass!==d.tagClass&&"undefined"!==typeof d.tagClass||a.type!==d.type&&"undefined"!==typeof d.type)c&&(a.tagClass!==d.tagClass&&c.push("["+d.name+'] Expected tag class "'+d.tagClass+'", got "'+a.tagClass+'"'),a.type!==d.type&&c.push("["+d.name+'] Expected type "'+d.type+'", got "'+a.type+'"'));else if(a.constructed===d.constructed||"undefined"===typeof d.constructed){e=!0;if(d.value&&d.value.constructor==Array)for(var f=0,h=0;e&&h