1 |
- (function(){function z(c){var g=c.jsustoolkitErrCode=c.jsustoolkitErrCode||{},d=c.seed=c.seed||{};c.cipher=c.cipher||{};c.cipher.algorithms=c.cipher.algorithms||{};c.cipher.seed=c.cipher.algorithms.seed=d;var A=[696885672,92635524,382128852,331600848,340021332,487395612,747413676,621093156,491606364,54739776,403181592,504238620,289493328,1020063996,181060296,591618912,671621160,71581764,536879136,495817116,549511392,583197408,147374280,386339604,629514660,261063564,50529024,994800504,999011256,318968592,314757840,785310444,809529456,210534540,1057960764,680042664,839004720,500027868,919007988,876900468,751624428,361075092,185271048,390550356,474763356,457921368,1032696252,16843008,604250148,470552604,860058480,411603096,268439568,214745292,851636976,432656856,738992172,667411428,843215472,58950528,462132120,297914832,109478532,164217288,541089888,272650320,595829664,734782440,218956044,914797236,512660124,256852812,931640244,441078360,113689284,944271480,646357668,302125584,797942700,365285844,557932896,63161280,881111220,21053760,306336336,1028485500,227377548,134742024,521081628,428446104,0,420024600,67371012,323179344,935850996,566354400,1036907004,910586484,789521196,654779172,813740208,193692552,235799052,730571688,578986656,776888940,327390096,223166796,692674920,1011642492,151585032,168428040,1066382268,802153452,868479984,96846276,126321540,335810580,1053750012,608460900,516870876,772678188,189481800,436867608,101057028,553722144,726360936,642146916,33686016,902164980,310547088,176849544,202113036,864269232,1045328508,281071824,977957496,122110788,377918100,633725412,637936164,8421504,764256684,533713884,562143648,805318704,923218740,781099692,906375732,352653588,570565152,940060728,885321972,663200676,88424772,206323788,25264512,701096424,75792516,394761108,889532724,197903304,248431308,1007431740,826372464,285282576,130532292,160006536,893743476,1003222008,449499864,952692984,344232084,424235352,42107520,80003268,1070593020,155795784,956903736,658989924,12632256,265274316,398971860,948482232,252642060,244220556,37896768,587408160,293704080,743202924,466342872,612671652,872689716,834793968,138952776,46318272,793731948,1024274748,755835180,4210752,1049539260,1041117756,1015853244,29475264,713728680,982168248,240009804,356864340,990589752,483184860,675831912,1062171516,478974108,415813848,172638792,373707348,927429492,545300640,768467436,105267780,897954228,722150184,625303908,986379E3,600040416,965325240,830583216,529503132,508449372,969535992,650568420,847426224,822161712,717939432,760045932,525292380,616882404,817950960,231588300,143163528,369496596,973746744,407392344,348442836,574775904,688464168,117900036,855847728,684253416,453710616,84214020,961114488,276861072,709517928,705307176,445289112,1148347745,1836279139,1970432372,2033066083,1865296928,1282696238,541291129,1886678887],v=[943196208,3894986976,741149985,2753988258,3423588291,3693006546,2956166067,3090712752,2888798115,1612726368,1410680145,3288844227,1141130304,1815039843,1747667811,1478183763,3221472195,1612857954,808649523,3023406513,673777953,2686484640,3760374498,2754054051,3490956243,2417066385,269549841,67503618,471600144,3158084784,875955762,1208699715,3962556387,2282260608,1814842464,2821228704,337053459,3288646848,336987666,4097098992,3221406402,1141196097,3760308705,3558262482,1010765619,1010634033,2349764226,2551744656,673712160,1276005954,4097230578,1010699826,2753922465,4164536817,202181889,3693072339,3625502928,673909539,1680229986,2017086066,606537507,741281571,4029792753,1882342002,1073889858,3558130896,1073824065,3221274816,1882407795,1680295779,2888600736,2282457987,4097296371,2888666529,2147516544,471797523,3356150466,741084192,2821360290,875824176,3490890450,134941443,3962490594,3895052769,1545424209,2484372624,404228112,4164471024,1410811731,2888732322,134744064,3288712641,269681427,3423456705,2215020162,3090778545,4232040435,2084392305,3221340609,808517937,4097164785,2282392194,1747602018,2956034481,3490824657,538968096,3558328275,131586,539099682,67372032,1747470432,1882276209,67569411,3625700307,2619182481,2551810449,1612792161,3158216370,3827746530,1478052177,3692940753,1343308113,2417000592,3692874960,2551876242,2686682019,2821426083,3490758864,2147582337,202313475,1141327683,404359698,3760440291,3962359008,2349698433,3158282163,2484504210,2017151859,1545358416,2686616226,2686550433,1612923747,539165475,1275940161,3356018880,2619248274,2619116688,943327794,202116096,741215778,3090844338,1814974050,2619314067,1478117970,4029858546,2417132178,4029924339,1208568129,2016954480,3423390912,336921873,4164668403,1882210416,1949648241,2084523891,875889969,269484048,197379,1680098400,1814908257,3288778434,1949582448,3558196689,3023340720,3895118562,134809857,1949714034,404293905,4231974642,1073758272,269615634,3760242912,3158150577,67437825,4164602610,65793,4029726960,673843746,1545490002,2821294497,1410745938,1073955651,2214954369,336856080,2282326401,2551942035,2955968688,3827680737,1208502336,2017020273,2484570003,4231843056,471731730,2147648130,539033889,2349632640,404425491,1545555795,1949779827,1410614352,2956100274,471665937,606405921,1276071747,0,1141261890,3962424801,1477986384,1343373906,3895184355,2084458098,3625634514,3356084673,4231908849,808452144,2484438417,1680164193,1010568240,3023472306,3827614944,3090910131,2084326512,202247682,1343242320,943262001,606471714,808583730,2214888576,1747536225,2417197971,876021555,3827812323,606340128,2753856672,3356216259,1343439699,134875650,2215085955,3625568721,1275874368,2147713923,2349830019,3423522498,943393587,1208633922,3023538099,1918988392,1768104013,1868854636,1694498816,1148347745,1836279139,1970432372,2033066083],B=[2712152457,2172913029,3537114822,3553629123,1347687492,287055117,2695638156,556016901,1364991309,1128268611,270014472,303832590,1364201793,4043062476,3267889866,1667244867,539502600,1078199364,538976256,2442927501,3772784832,3806339778,3234334920,320083719,2711889285,2206994319,50332419,1937259339,3015195531,319820547,3536851650,3807129294,1886400576,2156661900,859586319,2695374984,842019330,3520863693,4076091078,1886663748,3773574348,2442401157,50858763,1398019911,1348213836,1398283083,2981903757,16777473,539239428,270277644,1936732995,2425886856,269488128,3234598092,4075827906,3520600521,539765772,3823380423,1919955522,2206204803,2476219275,3520074177,2189690502,3251112393,1616912448,1347424320,2745181059,3823643595,17566989,2998154886,2459704974,1129058127,3014932359,1381505610,3267626694,1886926920,2728666758,303043074,2745970575,3520337349,1633689921,3284140995,2964599940,1094713665,1380979266,1903967565,2173439373,526344,320610063,2442664329,0,286791945,263172,1397756739,4092868551,3789562305,4059839949,1920218694,590098191,589571847,2964336768,2206731147,34344462,2745707403,2728403586,1651256910,2475692931,1095503181,1634216265,1887190092,17303817,34081290,3015458703,3823906767,4092605379,3250849221,2206467975,269751300,4076617422,1617175620,3537641166,573320718,1128794955,303569418,33818118,555753729,1667771211,1650730566,33554946,4059313605,2458915458,2189953674,789516,3014669187,1920745038,3503296704,1920481866,1128531783,2459178630,3789825477,572794374,2155872384,2712415629,3554418639,2711626113,808464384,859059975,2729193102,842282502,286528773,572531202,808990728,4042536132,2745444231,1094976837,1078725708,2172649857,3790088649,2156135556,2475956103,825505029,3284667339,3268153038,809253900,1903178049,286265601,3284404167,2173176201,1903441221,4093131723,3537377994,4042799304,2425623684,1364728137,2189427330,3234071748,4093394895,1095240009,825768201,1667508039,3233808576,3284930511,3553892295,2964863112,51121935,2190216846,1111491138,589308675,2442137985,1617701964,3554155467,2695111812,808727556,4059050433,1078462536,3267363522,1668034383,826031373,556543245,1077936192,2998681230,842808846,2965126284,3250586049,2728929930,2998418058,1112280654,1364464965,859323147,3504086220,1617438792,1937522511,2426150028,3503823048,1112017482,1381242438,1936996167,2694848640,3790351821,1111754310,2981377413,589835019,1633953093,4076354250,3823117251,2981640585,2981114241,2476482447,1381768782,4059576777,3806602950,2997891714,825241857,3806866122,1634479437,1398546255,3773048004,4042272960,3251375565,2156398728,303306246,842545674,1347950664,3503559876,1650467394,556280073,50595591,858796803,3773311176,320346891,17040645,1903704393,2425360512,1650993738,573057546,2459441802,1865296928,1282696238,541291129,1886678887,1918988392,1768104013,1868854636,1694498816],C=[137377848,3370182696,220277805,2258805798,3485715471,3469925406,2209591347,2293282872,2409868335,1080057888,1162957845,3351495687,1145062404,1331915823,1264805931,1263753243,3284385795,1113743394,53686323,2243015733,153167913,2158010400,3269648418,2275648551,3285438483,2173800465,17895441,100795398,202382364,2360392764,103953462,1262700555,3487820847,2290124808,1281387564,2292230184,118690839,3300967428,101848086,3304125492,3267543042,1161905157,3252805665,3335705622,255015999,221330493,2390920206,2291177496,136325160,1312967694,3337810998,238173246,2241963045,3388078137,218172429,3486768159,3369130008,186853419,1180853286,1249015866,119743527,253963311,3253858353,1114796082,1111638018,3302020116,1094795265,3233857536,1131638835,1197696039,2359340076,2340653067,3354653751,2376182829,2155905024,252910623,3401762826,203435052,2325915690,70267956,3268595730,184748043,3470978094,3387025449,1297177629,2224067604,135272472,3371235384,1196643351,2393025582,134219784,3317810181,51580947,3452029965,2256700422,2310125625,3488873535,1299283005,3250700289,20000817,3320968245,2323810314,1247963178,2175905841,3251752977,2105376,3352548375,33685506,35790882,67109892,1214277672,1097953329,117638151,3419658267,2375130141,2308020249,1096900641,2394078270,3336758310,1230067737,3453082653,1095847953,2156957712,3436239900,2324863002,2208538659,2342758443,3234910224,2172747777,251857935,1195590663,168957978,3286491171,3437292588,2374077453,2410921023,2257753110,1265858619,1280334876,2191695906,2174853153,1130586147,52633635,1296124941,3368077320,2391972894,2358287388,171063354,201329676,237120558,2326968378,1315073070,2408815647,1246910490,3270701106,2190643218,3287543859,1229015049,1215330360,3435187212,85005333,3421763643,1081110576,1165063221,1332968511,87110709,1052688,50528259,1147167780,1298230317,3334652934,1148220468,3318862869,2226172980,3403868202,151062537,1181905974,152115225,3472030782,1077952512,34738194,3235962912,2377235517,83952645,3404920890,16842753,3237015600,170010666,1314020382,2309072937,1179800598,1128480771,2239857669,68162580,2306967561,2341705755,2159063088,3319915557,1212172296,1232173113,2274595863,3438345276,236067870,2189590530,18948129,2357234700,185800731,1330863135,1198748727,1146115092,2192748594,219225117,86058021,1329810447,0,1178747910,3454135341,1213224984,1112690706,3420710955,1316125758,3402815514,3384920073,3455188029,3158064,2240910357,1164010533,204487740,2259858486,3303072804,2343811131,1282440252,235015182,1079005200,154220601,102900774,36843570,2223014916,1231120425,2207485971,120796215,3353601063,69215268,2225120292,3418605579,1129533459,167905290,2273543175,3385972761,1279282188,2206433283,2407762959,3468872718,187906107,1245857802,2276701239,1148347745,1836279139,1970432372,2033066083,1865296928,1282696238,541291129,1886678887],E=function(a){for(var q=[2654435769,1013904243,2027808486,4055616972,3816266649,3337566003,2380164711,465362127,930724254,1861448508,3722897016,3150826737,2006686179,4013372358,3731777421,3168587547],d=16<a.length?24:16,g=Array(16),e=0;e<g.length;e++)g[e]=Array(2);var r=a.getInt32(),t=a.getInt32(),u=a.getInt32();a=a.getInt32();for(e=0;e<d;e++){var n=r+u-q[e],p=t-a+q[e];g[e][0]=(A[n&255]^v[n>>>8&255]^B[n>>>16&255]^C[n>>>24&255])<<32>>>32;g[e][1]=(A[p&255]^v[p>>>8&255]^B[p>>>16&255]^C[p>>>24&255])<<32>>>32;c.util.createBuffer();c.util.createBuffer();0==e%2?(n=(t&255)<<24|r>>>8,p=(r&255)<<24|t>>>8,r=n,t=p):(n=(u&16777215)<<8|a>>>24&255,p=(a&16777215)<<8|u>>>24&255,u=n,a=p)}return g},x=function(a,q){if(null==a||"undefined"==typeof a)throw{code:"100021",message:g["100021"]};if(a.constructor==String&&16==a.length)a=c.util.createBuffer(a);else if(a.constructor==String||16!=a.length())throw{code:"100022",message:g["100022"]};var d=E(a),x=1,e=0,r=0,t=0,u=0,n=0,p=0,z=0,D=0,F=!1,l=null,m=null,G=null;return G={start:function(b,a){if(null!=b){if(b.constructor==String&&16==b.length)b=c.util.createBuffer(b);else if(b.constructor==Array&&16==b.length){var f=b;b=c.util.createBuffer();for(var d=0;16>d;++d)b.putByte(f[d])}else if(b.constructor==String||16!=b.length())throw{code:"100025",message:g["100025"]};x=1;e=b.getInt32();r=b.getInt32();t=b.getInt32();u=b.getInt32()}else x=0;l=c.util.createBuffer();m=a||c.util.createBuffer();F=!1;G.output=m},update:function(b){if(null==l&&null==m)throw{code:"100024",message:g["100024"]};null!=b&&b.constructor==String&&(b=c.util.createBuffer(b));if(!F){if(null==b||"undefined"==typeof b)throw{code:"100023",message:g["100023"]};l.putBuffer(b)}for(;16<=l.length();){b=l.getInt32();var a=l.getInt32(),f=l.getInt32(),w=l.getInt32();1==x&&(q?(b^=e,a^=r,f^=t,w^=u):(n=e,p=r,z=t,D=u,e=b,r=a,t=f,u=w));for(var k,h,y=0;16>y;y++)q?(k=f^d[y][0],h=w^d[y][1]^k):(k=f^d[15-y][0],h=w^d[15-y][1]^k),h=A[h&255]^v[h>>>8&255]^B[h>>>16&255]^C[h>>>24&255],k=c.util.getAddMod32(k,h),k=A[k&255]^v[k>>>8&255]^B[k>>>16&255]^C[k>>>24&255],h=c.util.getAddMod32(h,k),h=A[h&255]^v[h>>>8&255]^B[h>>>16&255]^C[h>>>24&255],k=c.util.getAddMod32(k,h),b^=k,a^=h,15>y&&(k=f,h=w,f=b,w=a,b=k,a=h);1==x&&(q?(e=b,r=a,t=f,u=w):(b^=n,a^=p,f^=z,w^=D));m.putInt32(b);m.putInt32(a);m.putInt32(f);m.putInt32(w)}},finish:function(b){var c=!0;if(q)if(b)c=b(16,l,!q);else{var f=16==l.length()?16:16-l.length();l.fillWithByte(f,f)}c&&(F=!0,G.update());if(!q)if(c=0===l.length())if(b)c=b(16,m,!q);else if(b=m.length(),f=m.at(b-1),16<f||0>f)c=!1;else{for(var e=b-f;e<b;e++)m.at(e)!=f&&(c=!1);c&&m.truncate(f)}else throw{code:"100026",message:g["100026"]};l=input=d=iv=a="";return c}}};c.seed.startEncrypting=function(a,c,d){a=x(a,!0);a.start(c,d);return a};c.seed.createEncryptionCipher=function(a){return x(a,!0)};c.seed.startDecrypting=function(a,c,d){a=x(a,!1);a.start(c,d);return a};c.seed.createDecryptionCipher=function(a){return x(a,!1)}}var D=["./util","./jsustoolkitErrCode"],E=null;"function"!==typeof define&&("object"===typeof module&&module.exports?E=function(c,g){g(require,module)}:(crosscert=window.crosscert=window.crosscert||{},z(crosscert)));(E||"function"===typeof define)&&(E||define)(["require","module"].concat(D),function(c,g){g.exports=function(d){var g=D.map(function(d){return c(d)}).concat(z);d=d||{};d.defined=d.defined||{};if(d.defined.seed)return d.seed;d.defined.seed=!0;for(var v=0;v<g.length;++v)g[v](d);return d.seed}})})();
|