ccgo_linux_riscv64.go 297 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217
  1. // Code generated for linux/riscv64 by 'generator --prefix-enumerator=_ --prefix-external=x_ --prefix-field=F --prefix-macro=m_ --prefix-static-internal=_ --prefix-static-none=_ --prefix-tagged-enum=_ --prefix-tagged-struct=T --prefix-tagged-union=T --prefix-typename=T --prefix-undefined=_ -extended-errors -ignore-unsupported-alignment -ignore-link-errors -o libmd.go --package-name libmd src/.libs/libmd.a', DO NOT EDIT.
  2. //go:build linux && riscv64
  3. package libmd
  4. import (
  5. "reflect"
  6. "unsafe"
  7. "modernc.org/libc"
  8. )
  9. var _ reflect.Type
  10. var _ unsafe.Pointer
  11. const m_BIG_ENDIAN = "__BIG_ENDIAN"
  12. const m_BYTE_ORDER = "__BYTE_ORDER"
  13. const m_FD_SETSIZE = 1024
  14. const m_HAVE_CONFIG_H = 1
  15. const m_HAVE_DLFCN_H = 1
  16. const m_HAVE_INTTYPES_H = 1
  17. const m_HAVE_STDINT_H = 1
  18. const m_HAVE_STDIO_H = 1
  19. const m_HAVE_STDLIB_H = 1
  20. const m_HAVE_STRINGS_H = 1
  21. const m_HAVE_STRING_H = 1
  22. const m_HAVE_SYS_STAT_H = 1
  23. const m_HAVE_SYS_TYPES_H = 1
  24. const m_HAVE_UNISTD_H = 1
  25. const m_HAVE_WCHAR_H = 1
  26. const m_INT16_MAX = 0x7fff
  27. const m_INT32_MAX = 0x7fffffff
  28. const m_INT64_MAX = 0x7fffffffffffffff
  29. const m_INT8_MAX = 0x7f
  30. const m_INTMAX_MAX = "INT64_MAX"
  31. const m_INTMAX_MIN = "INT64_MIN"
  32. const m_INTPTR_MAX = "INT64_MAX"
  33. const m_INTPTR_MIN = "INT64_MIN"
  34. const m_INT_FAST16_MAX = "INT32_MAX"
  35. const m_INT_FAST16_MIN = "INT32_MIN"
  36. const m_INT_FAST32_MAX = "INT32_MAX"
  37. const m_INT_FAST32_MIN = "INT32_MIN"
  38. const m_INT_FAST64_MAX = "INT64_MAX"
  39. const m_INT_FAST64_MIN = "INT64_MIN"
  40. const m_INT_FAST8_MAX = "INT8_MAX"
  41. const m_INT_FAST8_MIN = "INT8_MIN"
  42. const m_INT_LEAST16_MAX = "INT16_MAX"
  43. const m_INT_LEAST16_MIN = "INT16_MIN"
  44. const m_INT_LEAST32_MAX = "INT32_MAX"
  45. const m_INT_LEAST32_MIN = "INT32_MIN"
  46. const m_INT_LEAST64_MAX = "INT64_MAX"
  47. const m_INT_LEAST64_MIN = "INT64_MIN"
  48. const m_INT_LEAST8_MAX = "INT8_MAX"
  49. const m_INT_LEAST8_MIN = "INT8_MIN"
  50. const m_LITTLE_ENDIAN = "__LITTLE_ENDIAN"
  51. const m_LT_OBJDIR = ".libs/"
  52. const m_MD2_BLOCK_LENGTH = 16
  53. const m_MD2_DIGEST_LENGTH = 16
  54. const m_MD2_DIGEST_STRING_LENGTH = 33
  55. const m_NDEBUG = 1
  56. const m_PACKAGE = "libmd"
  57. const m_PACKAGE_BUGREPORT = "libbsd@lists.freedesktop.org"
  58. const m_PACKAGE_NAME = "libmd"
  59. const m_PACKAGE_STRING = "libmd 1.1.0"
  60. const m_PACKAGE_TARNAME = "libmd"
  61. const m_PACKAGE_URL = ""
  62. const m_PACKAGE_VERSION = "1.1.0"
  63. const m_PDP_ENDIAN = "__PDP_ENDIAN"
  64. const m_PTRDIFF_MAX = "INT64_MAX"
  65. const m_PTRDIFF_MIN = "INT64_MIN"
  66. const m_SIG_ATOMIC_MAX = "INT32_MAX"
  67. const m_SIG_ATOMIC_MIN = "INT32_MIN"
  68. const m_SIZE_MAX = "UINT64_MAX"
  69. const m_STDC_HEADERS = 1
  70. const m_UINT16_MAX = 0xffff
  71. const m_UINT32_MAX = "0xffffffffu"
  72. const m_UINT64_MAX = "0xffffffffffffffffu"
  73. const m_UINT8_MAX = 0xff
  74. const m_UINTMAX_MAX = "UINT64_MAX"
  75. const m_UINTPTR_MAX = "UINT64_MAX"
  76. const m_UINT_FAST16_MAX = "UINT32_MAX"
  77. const m_UINT_FAST32_MAX = "UINT32_MAX"
  78. const m_UINT_FAST64_MAX = "UINT64_MAX"
  79. const m_UINT_FAST8_MAX = "UINT8_MAX"
  80. const m_UINT_LEAST16_MAX = "UINT16_MAX"
  81. const m_UINT_LEAST32_MAX = "UINT32_MAX"
  82. const m_UINT_LEAST64_MAX = "UINT64_MAX"
  83. const m_UINT_LEAST8_MAX = "UINT8_MAX"
  84. const m_VERSION = "1.1.0"
  85. const m_WINT_MAX = "UINT32_MAX"
  86. const m_WINT_MIN = 0
  87. const m__ALL_SOURCE = 1
  88. const m__DARWIN_C_SOURCE = 1
  89. const m__GNU_SOURCE = 1
  90. const m__HPUX_ALT_XOPEN_SOCKET_API = 1
  91. const m__LP64 = 1
  92. const m__NETBSD_SOURCE = 1
  93. const m__OPENBSD_SOURCE = 1
  94. const m__POSIX_PTHREAD_SEMANTICS = 1
  95. const m__STDC_PREDEF_H = 1
  96. const m__TANDEM_SOURCE = 1
  97. const m___ATOMIC_ACQUIRE = 2
  98. const m___ATOMIC_ACQ_REL = 4
  99. const m___ATOMIC_CONSUME = 1
  100. const m___ATOMIC_RELAXED = 0
  101. const m___ATOMIC_RELEASE = 3
  102. const m___ATOMIC_SEQ_CST = 5
  103. const m___BIGGEST_ALIGNMENT__ = 16
  104. const m___BIG_ENDIAN = 4321
  105. const m___BYTE_ORDER = 1234
  106. const m___BYTE_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  107. const m___CCGO__ = 1
  108. const m___CHAR_BIT__ = 8
  109. const m___CHAR_UNSIGNED__ = 1
  110. const m___DBL_DECIMAL_DIG__ = 17
  111. const m___DBL_DIG__ = 15
  112. const m___DBL_HAS_DENORM__ = 1
  113. const m___DBL_HAS_INFINITY__ = 1
  114. const m___DBL_HAS_QUIET_NAN__ = 1
  115. const m___DBL_IS_IEC_60559__ = 1
  116. const m___DBL_MANT_DIG__ = 53
  117. const m___DBL_MAX_10_EXP__ = 308
  118. const m___DBL_MAX_EXP__ = 1024
  119. const m___DECIMAL_DIG__ = 36
  120. const m___DEC_EVAL_METHOD__ = 2
  121. const m___ELF__ = 1
  122. const m___EXTENSIONS__ = 1
  123. const m___FINITE_MATH_ONLY__ = 0
  124. const m___FLOAT_WORD_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  125. const m___FLT128_DECIMAL_DIG__ = 36
  126. const m___FLT128_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
  127. const m___FLT128_DIG__ = 33
  128. const m___FLT128_EPSILON__ = 1.92592994438723585305597794258492732e-34
  129. const m___FLT128_HAS_DENORM__ = 1
  130. const m___FLT128_HAS_INFINITY__ = 1
  131. const m___FLT128_HAS_QUIET_NAN__ = 1
  132. const m___FLT128_IS_IEC_60559__ = 1
  133. const m___FLT128_MANT_DIG__ = 113
  134. const m___FLT128_MAX_10_EXP__ = 4932
  135. const m___FLT128_MAX_EXP__ = 16384
  136. const m___FLT128_MAX__ = "1.18973149535723176508575932662800702e+4932"
  137. const m___FLT128_MIN__ = 3.36210314311209350626267781732175260e-4932
  138. const m___FLT128_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
  139. const m___FLT16_DECIMAL_DIG__ = 5
  140. const m___FLT16_DENORM_MIN__ = 5.96046447753906250000000000000000000e-8
  141. const m___FLT16_DIG__ = 3
  142. const m___FLT16_EPSILON__ = 9.76562500000000000000000000000000000e-4
  143. const m___FLT16_HAS_DENORM__ = 1
  144. const m___FLT16_HAS_INFINITY__ = 1
  145. const m___FLT16_HAS_QUIET_NAN__ = 1
  146. const m___FLT16_IS_IEC_60559__ = 1
  147. const m___FLT16_MANT_DIG__ = 11
  148. const m___FLT16_MAX_10_EXP__ = 4
  149. const m___FLT16_MAX_EXP__ = 16
  150. const m___FLT16_MAX__ = 6.55040000000000000000000000000000000e+4
  151. const m___FLT16_MIN__ = 6.10351562500000000000000000000000000e-5
  152. const m___FLT16_NORM_MAX__ = 6.55040000000000000000000000000000000e+4
  153. const m___FLT32X_DECIMAL_DIG__ = 17
  154. const m___FLT32X_DENORM_MIN__ = 4.94065645841246544176568792868221372e-324
  155. const m___FLT32X_DIG__ = 15
  156. const m___FLT32X_EPSILON__ = 2.22044604925031308084726333618164062e-16
  157. const m___FLT32X_HAS_DENORM__ = 1
  158. const m___FLT32X_HAS_INFINITY__ = 1
  159. const m___FLT32X_HAS_QUIET_NAN__ = 1
  160. const m___FLT32X_IS_IEC_60559__ = 1
  161. const m___FLT32X_MANT_DIG__ = 53
  162. const m___FLT32X_MAX_10_EXP__ = 308
  163. const m___FLT32X_MAX_EXP__ = 1024
  164. const m___FLT32X_MAX__ = 1.79769313486231570814527423731704357e+308
  165. const m___FLT32X_MIN__ = 2.22507385850720138309023271733240406e-308
  166. const m___FLT32X_NORM_MAX__ = 1.79769313486231570814527423731704357e+308
  167. const m___FLT32_DECIMAL_DIG__ = 9
  168. const m___FLT32_DENORM_MIN__ = 1.40129846432481707092372958328991613e-45
  169. const m___FLT32_DIG__ = 6
  170. const m___FLT32_EPSILON__ = 1.19209289550781250000000000000000000e-7
  171. const m___FLT32_HAS_DENORM__ = 1
  172. const m___FLT32_HAS_INFINITY__ = 1
  173. const m___FLT32_HAS_QUIET_NAN__ = 1
  174. const m___FLT32_IS_IEC_60559__ = 1
  175. const m___FLT32_MANT_DIG__ = 24
  176. const m___FLT32_MAX_10_EXP__ = 38
  177. const m___FLT32_MAX_EXP__ = 128
  178. const m___FLT32_MAX__ = 3.40282346638528859811704183484516925e+38
  179. const m___FLT32_MIN__ = 1.17549435082228750796873653722224568e-38
  180. const m___FLT32_NORM_MAX__ = 3.40282346638528859811704183484516925e+38
  181. const m___FLT64X_DECIMAL_DIG__ = 36
  182. const m___FLT64X_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
  183. const m___FLT64X_DIG__ = 33
  184. const m___FLT64X_EPSILON__ = 1.92592994438723585305597794258492732e-34
  185. const m___FLT64X_HAS_DENORM__ = 1
  186. const m___FLT64X_HAS_INFINITY__ = 1
  187. const m___FLT64X_HAS_QUIET_NAN__ = 1
  188. const m___FLT64X_IS_IEC_60559__ = 1
  189. const m___FLT64X_MANT_DIG__ = 113
  190. const m___FLT64X_MAX_10_EXP__ = 4932
  191. const m___FLT64X_MAX_EXP__ = 16384
  192. const m___FLT64X_MAX__ = "1.18973149535723176508575932662800702e+4932"
  193. const m___FLT64X_MIN__ = 3.36210314311209350626267781732175260e-4932
  194. const m___FLT64X_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
  195. const m___FLT64_DECIMAL_DIG__ = 17
  196. const m___FLT64_DENORM_MIN__ = 4.94065645841246544176568792868221372e-324
  197. const m___FLT64_DIG__ = 15
  198. const m___FLT64_EPSILON__ = 2.22044604925031308084726333618164062e-16
  199. const m___FLT64_HAS_DENORM__ = 1
  200. const m___FLT64_HAS_INFINITY__ = 1
  201. const m___FLT64_HAS_QUIET_NAN__ = 1
  202. const m___FLT64_IS_IEC_60559__ = 1
  203. const m___FLT64_MANT_DIG__ = 53
  204. const m___FLT64_MAX_10_EXP__ = 308
  205. const m___FLT64_MAX_EXP__ = 1024
  206. const m___FLT64_MAX__ = 1.79769313486231570814527423731704357e+308
  207. const m___FLT64_MIN__ = 2.22507385850720138309023271733240406e-308
  208. const m___FLT64_NORM_MAX__ = 1.79769313486231570814527423731704357e+308
  209. const m___FLT_DECIMAL_DIG__ = 9
  210. const m___FLT_DENORM_MIN__ = 1.40129846432481707092372958328991613e-45
  211. const m___FLT_DIG__ = 6
  212. const m___FLT_EPSILON__ = 1.19209289550781250000000000000000000e-7
  213. const m___FLT_EVAL_METHOD_TS_18661_3__ = 0
  214. const m___FLT_EVAL_METHOD__ = 0
  215. const m___FLT_HAS_DENORM__ = 1
  216. const m___FLT_HAS_INFINITY__ = 1
  217. const m___FLT_HAS_QUIET_NAN__ = 1
  218. const m___FLT_IS_IEC_60559__ = 1
  219. const m___FLT_MANT_DIG__ = 24
  220. const m___FLT_MAX_10_EXP__ = 38
  221. const m___FLT_MAX_EXP__ = 128
  222. const m___FLT_MAX__ = 3.40282346638528859811704183484516925e+38
  223. const m___FLT_MIN__ = 1.17549435082228750796873653722224568e-38
  224. const m___FLT_NORM_MAX__ = 3.40282346638528859811704183484516925e+38
  225. const m___FLT_RADIX__ = 2
  226. const m___FP_FAST_FMA = 1
  227. const m___FP_FAST_FMAF = 1
  228. const m___FP_FAST_FMAF32 = 1
  229. const m___FP_FAST_FMAF32x = 1
  230. const m___FP_FAST_FMAF64 = 1
  231. const m___FUNCTION__ = "__func__"
  232. const m___GCC_ATOMIC_BOOL_LOCK_FREE = 2
  233. const m___GCC_ATOMIC_CHAR16_T_LOCK_FREE = 2
  234. const m___GCC_ATOMIC_CHAR32_T_LOCK_FREE = 2
  235. const m___GCC_ATOMIC_CHAR_LOCK_FREE = 2
  236. const m___GCC_ATOMIC_INT_LOCK_FREE = 2
  237. const m___GCC_ATOMIC_LLONG_LOCK_FREE = 2
  238. const m___GCC_ATOMIC_LONG_LOCK_FREE = 2
  239. const m___GCC_ATOMIC_POINTER_LOCK_FREE = 2
  240. const m___GCC_ATOMIC_SHORT_LOCK_FREE = 2
  241. const m___GCC_ATOMIC_TEST_AND_SET_TRUEVAL = 1
  242. const m___GCC_ATOMIC_WCHAR_T_LOCK_FREE = 2
  243. const m___GCC_HAVE_DWARF2_CFI_ASM = 1
  244. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 = 1
  245. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 = 1
  246. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 = 1
  247. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 = 1
  248. const m___GCC_IEC_559 = 2
  249. const m___GCC_IEC_559_COMPLEX = 2
  250. const m___GNUC_EXECUTION_CHARSET_NAME = "UTF-8"
  251. const m___GNUC_MINOR__ = 2
  252. const m___GNUC_PATCHLEVEL__ = 0
  253. const m___GNUC_STDC_INLINE__ = 1
  254. const m___GNUC_WIDE_EXECUTION_CHARSET_NAME = "UTF-32LE"
  255. const m___GNUC__ = 14
  256. const m___GXX_ABI_VERSION = 1019
  257. const m___INT16_MAX__ = 0x7fff
  258. const m___INT32_MAX__ = 0x7fffffff
  259. const m___INT32_TYPE__ = "int"
  260. const m___INT64_MAX__ = 0x7fffffffffffffff
  261. const m___INT8_MAX__ = 0x7f
  262. const m___INTMAX_MAX__ = 0x7fffffffffffffff
  263. const m___INTMAX_WIDTH__ = 64
  264. const m___INTPTR_MAX__ = 0x7fffffffffffffff
  265. const m___INTPTR_WIDTH__ = 64
  266. const m___INT_FAST16_MAX__ = 0x7fffffffffffffff
  267. const m___INT_FAST16_WIDTH__ = 64
  268. const m___INT_FAST32_MAX__ = 0x7fffffffffffffff
  269. const m___INT_FAST32_WIDTH__ = 64
  270. const m___INT_FAST64_MAX__ = 0x7fffffffffffffff
  271. const m___INT_FAST64_WIDTH__ = 64
  272. const m___INT_FAST8_MAX__ = 0x7f
  273. const m___INT_FAST8_WIDTH__ = 8
  274. const m___INT_LEAST16_MAX__ = 0x7fff
  275. const m___INT_LEAST16_WIDTH__ = 16
  276. const m___INT_LEAST32_MAX__ = 0x7fffffff
  277. const m___INT_LEAST32_TYPE__ = "int"
  278. const m___INT_LEAST32_WIDTH__ = 32
  279. const m___INT_LEAST64_MAX__ = 0x7fffffffffffffff
  280. const m___INT_LEAST64_WIDTH__ = 64
  281. const m___INT_LEAST8_MAX__ = 0x7f
  282. const m___INT_LEAST8_WIDTH__ = 8
  283. const m___INT_MAX__ = 0x7fffffff
  284. const m___INT_WIDTH__ = 32
  285. const m___LDBL_DECIMAL_DIG__ = 36
  286. const m___LDBL_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
  287. const m___LDBL_DIG__ = 33
  288. const m___LDBL_EPSILON__ = 1.92592994438723585305597794258492732e-34
  289. const m___LDBL_HAS_DENORM__ = 1
  290. const m___LDBL_HAS_INFINITY__ = 1
  291. const m___LDBL_HAS_QUIET_NAN__ = 1
  292. const m___LDBL_IS_IEC_60559__ = 1
  293. const m___LDBL_MANT_DIG__ = 113
  294. const m___LDBL_MAX_10_EXP__ = 4932
  295. const m___LDBL_MAX_EXP__ = 16384
  296. const m___LDBL_MAX__ = "1.18973149535723176508575932662800702e+4932"
  297. const m___LDBL_MIN__ = 3.36210314311209350626267781732175260e-4932
  298. const m___LDBL_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
  299. const m___LITTLE_ENDIAN = 1234
  300. const m___LONG_LONG_MAX__ = 0x7fffffffffffffff
  301. const m___LONG_LONG_WIDTH__ = 64
  302. const m___LONG_MAX = 0x7fffffffffffffff
  303. const m___LONG_MAX__ = 0x7fffffffffffffff
  304. const m___LONG_WIDTH__ = 64
  305. const m___LP64__ = 1
  306. const m___NO_INLINE__ = 1
  307. const m___ORDER_BIG_ENDIAN__ = 4321
  308. const m___ORDER_LITTLE_ENDIAN__ = 1234
  309. const m___ORDER_PDP_ENDIAN__ = 3412
  310. const m___PDP_ENDIAN = 3412
  311. const m___PIC__ = 2
  312. const m___PIE__ = 2
  313. const m___PRAGMA_REDEFINE_EXTNAME = 1
  314. const m___PRETTY_FUNCTION__ = "__func__"
  315. const m___PTRDIFF_MAX__ = 0x7fffffffffffffff
  316. const m___PTRDIFF_WIDTH__ = 64
  317. const m___SCHAR_MAX__ = 0x7f
  318. const m___SCHAR_WIDTH__ = 8
  319. const m___SHRT_MAX__ = 0x7fff
  320. const m___SHRT_WIDTH__ = 16
  321. const m___SIG_ATOMIC_MAX__ = 0x7fffffff
  322. const m___SIG_ATOMIC_TYPE__ = "int"
  323. const m___SIG_ATOMIC_WIDTH__ = 32
  324. const m___SIZEOF_DOUBLE__ = 8
  325. const m___SIZEOF_FLOAT__ = 4
  326. const m___SIZEOF_INT128__ = 16
  327. const m___SIZEOF_INT__ = 4
  328. const m___SIZEOF_LONG_DOUBLE__ = 8
  329. const m___SIZEOF_LONG_LONG__ = 8
  330. const m___SIZEOF_LONG__ = 8
  331. const m___SIZEOF_POINTER__ = 8
  332. const m___SIZEOF_PTRDIFF_T__ = 8
  333. const m___SIZEOF_SHORT__ = 2
  334. const m___SIZEOF_SIZE_T__ = 8
  335. const m___SIZEOF_WCHAR_T__ = 4
  336. const m___SIZEOF_WINT_T__ = 4
  337. const m___SIZE_MAX__ = 0xffffffffffffffff
  338. const m___SIZE_WIDTH__ = 64
  339. const m___STDC_HOSTED__ = 1
  340. const m___STDC_IEC_559_COMPLEX__ = 1
  341. const m___STDC_IEC_559__ = 1
  342. const m___STDC_IEC_60559_BFP__ = 201404
  343. const m___STDC_IEC_60559_COMPLEX__ = 201404
  344. const m___STDC_ISO_10646__ = 201706
  345. const m___STDC_UTF_16__ = 1
  346. const m___STDC_UTF_32__ = 1
  347. const m___STDC_VERSION__ = 201710
  348. const m___STDC_WANT_IEC_60559_ATTRIBS_EXT__ = 1
  349. const m___STDC_WANT_IEC_60559_BFP_EXT__ = 1
  350. const m___STDC_WANT_IEC_60559_DFP_EXT__ = 1
  351. const m___STDC_WANT_IEC_60559_FUNCS_EXT__ = 1
  352. const m___STDC_WANT_IEC_60559_TYPES_EXT__ = 1
  353. const m___STDC_WANT_LIB_EXT2__ = 1
  354. const m___STDC_WANT_MATH_SPEC_FUNCS__ = 1
  355. const m___STDC__ = 1
  356. const m___UINT16_MAX__ = 0xffff
  357. const m___UINT32_MAX__ = 0xffffffff
  358. const m___UINT64_MAX__ = 0xffffffffffffffff
  359. const m___UINT8_MAX__ = 0xff
  360. const m___UINTMAX_MAX__ = 0xffffffffffffffff
  361. const m___UINTPTR_MAX__ = 0xffffffffffffffff
  362. const m___UINT_FAST16_MAX__ = 0xffffffffffffffff
  363. const m___UINT_FAST32_MAX__ = 0xffffffffffffffff
  364. const m___UINT_FAST64_MAX__ = 0xffffffffffffffff
  365. const m___UINT_FAST8_MAX__ = 0xff
  366. const m___UINT_LEAST16_MAX__ = 0xffff
  367. const m___UINT_LEAST32_MAX__ = 0xffffffff
  368. const m___UINT_LEAST64_MAX__ = 0xffffffffffffffff
  369. const m___UINT_LEAST8_MAX__ = 0xff
  370. const m___USE_TIME_BITS64 = 1
  371. const m___VERSION__ = "14.2.0"
  372. const m___WCHAR_MAX__ = 0x7fffffff
  373. const m___WCHAR_TYPE__ = "int"
  374. const m___WCHAR_WIDTH__ = 32
  375. const m___WINT_MAX__ = 0xffffffff
  376. const m___WINT_MIN__ = 0
  377. const m___WINT_WIDTH__ = 32
  378. const m___gnu_linux__ = 1
  379. const m___inline = "inline"
  380. const m___linux = 1
  381. const m___linux__ = 1
  382. const m___pic__ = 2
  383. const m___pie__ = 2
  384. const m___restrict = "restrict"
  385. const m___restrict_arr = "restrict"
  386. const m___riscv = 1
  387. const m___riscv_a = 2001000
  388. const m___riscv_arch_test = 1
  389. const m___riscv_atomic = 1
  390. const m___riscv_c = 2000000
  391. const m___riscv_cmodel_medany = 1
  392. const m___riscv_compressed = 1
  393. const m___riscv_d = 2002000
  394. const m___riscv_div = 1
  395. const m___riscv_f = 2002000
  396. const m___riscv_fdiv = 1
  397. const m___riscv_flen = 64
  398. const m___riscv_float_abi_double = 1
  399. const m___riscv_fsqrt = 1
  400. const m___riscv_i = 2001000
  401. const m___riscv_m = 2000000
  402. const m___riscv_misaligned_slow = 1
  403. const m___riscv_mul = 1
  404. const m___riscv_muldiv = 1
  405. const m___riscv_xlen = 64
  406. const m___riscv_zicsr = 2000000
  407. const m___riscv_zifencei = 2000000
  408. const m___unix = 1
  409. const m___unix__ = 1
  410. const m_linux = 1
  411. const m_unix = 1
  412. type t__builtin_va_list = uintptr
  413. type t__predefined_size_t = uint64
  414. type t__predefined_wchar_t = int32
  415. type t__predefined_ptrdiff_t = int64
  416. type Tblksize_t = int32
  417. type Tnlink_t = uint32
  418. type Tsize_t = uint64
  419. type Tssize_t = int64
  420. type Tregister_t = int64
  421. type Ttime_t = int64
  422. type Tsuseconds_t = int64
  423. type Tint8_t = int8
  424. type Tint16_t = int16
  425. type Tint32_t = int32
  426. type Tint64_t = int64
  427. type Tu_int64_t = uint64
  428. type Tmode_t = uint32
  429. type Toff_t = int64
  430. type Tino_t = uint64
  431. type Tdev_t = uint64
  432. type Tblkcnt_t = int64
  433. type Tfsblkcnt_t = uint64
  434. type Tfsfilcnt_t = uint64
  435. type Ttimer_t = uintptr
  436. type Tclockid_t = int32
  437. type Tclock_t = int64
  438. type Tpid_t = int32
  439. type Tid_t = uint32
  440. type Tuid_t = uint32
  441. type Tgid_t = uint32
  442. type Tkey_t = int32
  443. type Tuseconds_t = uint32
  444. type Tpthread_t = uintptr
  445. type Tpthread_once_t = int32
  446. type Tpthread_key_t = uint32
  447. type Tpthread_spinlock_t = int32
  448. type Tpthread_mutexattr_t = struct {
  449. F__attr uint32
  450. }
  451. type Tpthread_condattr_t = struct {
  452. F__attr uint32
  453. }
  454. type Tpthread_barrierattr_t = struct {
  455. F__attr uint32
  456. }
  457. type Tpthread_rwlockattr_t = struct {
  458. F__attr [2]uint32
  459. }
  460. type Tpthread_attr_t = struct {
  461. F__u struct {
  462. F__vi [0][14]int32
  463. F__s [0][7]uint64
  464. F__i [14]int32
  465. }
  466. }
  467. type Tpthread_mutex_t = struct {
  468. F__u struct {
  469. F__vi [0][10]int32
  470. F__p [0][5]uintptr
  471. F__i [10]int32
  472. }
  473. }
  474. type Tpthread_cond_t = struct {
  475. F__u struct {
  476. F__vi [0][12]int32
  477. F__p [0][6]uintptr
  478. F__i [12]int32
  479. }
  480. }
  481. type Tpthread_rwlock_t = struct {
  482. F__u struct {
  483. F__vi [0][14]int32
  484. F__p [0][7]uintptr
  485. F__i [14]int32
  486. }
  487. }
  488. type Tpthread_barrier_t = struct {
  489. F__u struct {
  490. F__vi [0][8]int32
  491. F__p [0][4]uintptr
  492. F__i [8]int32
  493. }
  494. }
  495. type Tu_int8_t = uint8
  496. type Tu_int16_t = uint16
  497. type Tu_int32_t = uint32
  498. type Tcaddr_t = uintptr
  499. type Tu_char = uint8
  500. type Tu_short = uint16
  501. type Tushort = uint16
  502. type Tu_int = uint32
  503. type Tuint = uint32
  504. type Tu_long = uint64
  505. type Tulong = uint64
  506. type Tquad_t = int64
  507. type Tu_quad_t = uint64
  508. type Tuint16_t = uint16
  509. type Tuint32_t = uint32
  510. type Tuint64_t = uint64
  511. type Ttimeval = struct {
  512. Ftv_sec Ttime_t
  513. Ftv_usec Tsuseconds_t
  514. }
  515. type Ttimespec = struct {
  516. Ftv_sec Ttime_t
  517. Ftv_nsec int64
  518. }
  519. type Tsigset_t = struct {
  520. F__bits [16]uint64
  521. }
  522. type t__sigset_t = Tsigset_t
  523. type Tfd_mask = uint64
  524. type Tfd_set = struct {
  525. Ffds_bits [16]uint64
  526. }
  527. type Tuintptr_t = uint64
  528. type Tintptr_t = int64
  529. type Tintmax_t = int64
  530. type Tuint8_t = uint8
  531. type Tuintmax_t = uint64
  532. type Tint_fast8_t = int8
  533. type Tint_fast64_t = int64
  534. type Tint_least8_t = int8
  535. type Tint_least16_t = int16
  536. type Tint_least32_t = int32
  537. type Tint_least64_t = int64
  538. type Tuint_fast8_t = uint8
  539. type Tuint_fast64_t = uint64
  540. type Tuint_least8_t = uint8
  541. type Tuint_least16_t = uint16
  542. type Tuint_least32_t = uint32
  543. type Tuint_least64_t = uint64
  544. type Tint_fast16_t = int32
  545. type Tint_fast32_t = int32
  546. type Tuint_fast16_t = uint32
  547. type Tuint_fast32_t = uint32
  548. type TMD2_CTX = struct {
  549. Fi Tuint32_t
  550. FC [16]uint8
  551. FX [48]uint8
  552. }
  553. type TMD2Context = TMD2_CTX
  554. type Tlocale_t = uintptr
  555. // C documentation
  556. //
  557. // /* cut-n-pasted from rfc1319 */
  558. var _S = [256]uint8{
  559. 0: uint8(41),
  560. 1: uint8(46),
  561. 2: uint8(67),
  562. 3: uint8(201),
  563. 4: uint8(162),
  564. 5: uint8(216),
  565. 6: uint8(124),
  566. 7: uint8(1),
  567. 8: uint8(61),
  568. 9: uint8(54),
  569. 10: uint8(84),
  570. 11: uint8(161),
  571. 12: uint8(236),
  572. 13: uint8(240),
  573. 14: uint8(6),
  574. 15: uint8(19),
  575. 16: uint8(98),
  576. 17: uint8(167),
  577. 18: uint8(5),
  578. 19: uint8(243),
  579. 20: uint8(192),
  580. 21: uint8(199),
  581. 22: uint8(115),
  582. 23: uint8(140),
  583. 24: uint8(152),
  584. 25: uint8(147),
  585. 26: uint8(43),
  586. 27: uint8(217),
  587. 28: uint8(188),
  588. 29: uint8(76),
  589. 30: uint8(130),
  590. 31: uint8(202),
  591. 32: uint8(30),
  592. 33: uint8(155),
  593. 34: uint8(87),
  594. 35: uint8(60),
  595. 36: uint8(253),
  596. 37: uint8(212),
  597. 38: uint8(224),
  598. 39: uint8(22),
  599. 40: uint8(103),
  600. 41: uint8(66),
  601. 42: uint8(111),
  602. 43: uint8(24),
  603. 44: uint8(138),
  604. 45: uint8(23),
  605. 46: uint8(229),
  606. 47: uint8(18),
  607. 48: uint8(190),
  608. 49: uint8(78),
  609. 50: uint8(196),
  610. 51: uint8(214),
  611. 52: uint8(218),
  612. 53: uint8(158),
  613. 54: uint8(222),
  614. 55: uint8(73),
  615. 56: uint8(160),
  616. 57: uint8(251),
  617. 58: uint8(245),
  618. 59: uint8(142),
  619. 60: uint8(187),
  620. 61: uint8(47),
  621. 62: uint8(238),
  622. 63: uint8(122),
  623. 64: uint8(169),
  624. 65: uint8(104),
  625. 66: uint8(121),
  626. 67: uint8(145),
  627. 68: uint8(21),
  628. 69: uint8(178),
  629. 70: uint8(7),
  630. 71: uint8(63),
  631. 72: uint8(148),
  632. 73: uint8(194),
  633. 74: uint8(16),
  634. 75: uint8(137),
  635. 76: uint8(11),
  636. 77: uint8(34),
  637. 78: uint8(95),
  638. 79: uint8(33),
  639. 80: uint8(128),
  640. 81: uint8(127),
  641. 82: uint8(93),
  642. 83: uint8(154),
  643. 84: uint8(90),
  644. 85: uint8(144),
  645. 86: uint8(50),
  646. 87: uint8(39),
  647. 88: uint8(53),
  648. 89: uint8(62),
  649. 90: uint8(204),
  650. 91: uint8(231),
  651. 92: uint8(191),
  652. 93: uint8(247),
  653. 94: uint8(151),
  654. 95: uint8(3),
  655. 96: uint8(255),
  656. 97: uint8(25),
  657. 98: uint8(48),
  658. 99: uint8(179),
  659. 100: uint8(72),
  660. 101: uint8(165),
  661. 102: uint8(181),
  662. 103: uint8(209),
  663. 104: uint8(215),
  664. 105: uint8(94),
  665. 106: uint8(146),
  666. 107: uint8(42),
  667. 108: uint8(172),
  668. 109: uint8(86),
  669. 110: uint8(170),
  670. 111: uint8(198),
  671. 112: uint8(79),
  672. 113: uint8(184),
  673. 114: uint8(56),
  674. 115: uint8(210),
  675. 116: uint8(150),
  676. 117: uint8(164),
  677. 118: uint8(125),
  678. 119: uint8(182),
  679. 120: uint8(118),
  680. 121: uint8(252),
  681. 122: uint8(107),
  682. 123: uint8(226),
  683. 124: uint8(156),
  684. 125: uint8(116),
  685. 126: uint8(4),
  686. 127: uint8(241),
  687. 128: uint8(69),
  688. 129: uint8(157),
  689. 130: uint8(112),
  690. 131: uint8(89),
  691. 132: uint8(100),
  692. 133: uint8(113),
  693. 134: uint8(135),
  694. 135: uint8(32),
  695. 136: uint8(134),
  696. 137: uint8(91),
  697. 138: uint8(207),
  698. 139: uint8(101),
  699. 140: uint8(230),
  700. 141: uint8(45),
  701. 142: uint8(168),
  702. 143: uint8(2),
  703. 144: uint8(27),
  704. 145: uint8(96),
  705. 146: uint8(37),
  706. 147: uint8(173),
  707. 148: uint8(174),
  708. 149: uint8(176),
  709. 150: uint8(185),
  710. 151: uint8(246),
  711. 152: uint8(28),
  712. 153: uint8(70),
  713. 154: uint8(97),
  714. 155: uint8(105),
  715. 156: uint8(52),
  716. 157: uint8(64),
  717. 158: uint8(126),
  718. 159: uint8(15),
  719. 160: uint8(85),
  720. 161: uint8(71),
  721. 162: uint8(163),
  722. 163: uint8(35),
  723. 164: uint8(221),
  724. 165: uint8(81),
  725. 166: uint8(175),
  726. 167: uint8(58),
  727. 168: uint8(195),
  728. 169: uint8(92),
  729. 170: uint8(249),
  730. 171: uint8(206),
  731. 172: uint8(186),
  732. 173: uint8(197),
  733. 174: uint8(234),
  734. 175: uint8(38),
  735. 176: uint8(44),
  736. 177: uint8(83),
  737. 178: uint8(13),
  738. 179: uint8(110),
  739. 180: uint8(133),
  740. 181: uint8(40),
  741. 182: uint8(132),
  742. 183: uint8(9),
  743. 184: uint8(211),
  744. 185: uint8(223),
  745. 186: uint8(205),
  746. 187: uint8(244),
  747. 188: uint8(65),
  748. 189: uint8(129),
  749. 190: uint8(77),
  750. 191: uint8(82),
  751. 192: uint8(106),
  752. 193: uint8(220),
  753. 194: uint8(55),
  754. 195: uint8(200),
  755. 196: uint8(108),
  756. 197: uint8(193),
  757. 198: uint8(171),
  758. 199: uint8(250),
  759. 200: uint8(36),
  760. 201: uint8(225),
  761. 202: uint8(123),
  762. 203: uint8(8),
  763. 204: uint8(12),
  764. 205: uint8(189),
  765. 206: uint8(177),
  766. 207: uint8(74),
  767. 208: uint8(120),
  768. 209: uint8(136),
  769. 210: uint8(149),
  770. 211: uint8(139),
  771. 212: uint8(227),
  772. 213: uint8(99),
  773. 214: uint8(232),
  774. 215: uint8(109),
  775. 216: uint8(233),
  776. 217: uint8(203),
  777. 218: uint8(213),
  778. 219: uint8(254),
  779. 220: uint8(59),
  780. 222: uint8(29),
  781. 223: uint8(57),
  782. 224: uint8(242),
  783. 225: uint8(239),
  784. 226: uint8(183),
  785. 227: uint8(14),
  786. 228: uint8(102),
  787. 229: uint8(88),
  788. 230: uint8(208),
  789. 231: uint8(228),
  790. 232: uint8(166),
  791. 233: uint8(119),
  792. 234: uint8(114),
  793. 235: uint8(248),
  794. 236: uint8(235),
  795. 237: uint8(117),
  796. 238: uint8(75),
  797. 239: uint8(10),
  798. 240: uint8(49),
  799. 241: uint8(68),
  800. 242: uint8(80),
  801. 243: uint8(180),
  802. 244: uint8(143),
  803. 245: uint8(237),
  804. 246: uint8(31),
  805. 247: uint8(26),
  806. 248: uint8(219),
  807. 249: uint8(153),
  808. 250: uint8(141),
  809. 251: uint8(51),
  810. 252: uint8(159),
  811. 253: uint8(17),
  812. 254: uint8(131),
  813. 255: uint8(20),
  814. }
  815. // C documentation
  816. //
  817. // /* cut-n-pasted from rfc1319 */
  818. var _pad = [17]uintptr{
  819. 0: __ccgo_ts,
  820. 1: __ccgo_ts + 1,
  821. 2: __ccgo_ts + 3,
  822. 3: __ccgo_ts + 6,
  823. 4: __ccgo_ts + 10,
  824. 5: __ccgo_ts + 15,
  825. 6: __ccgo_ts + 21,
  826. 7: __ccgo_ts + 28,
  827. 8: __ccgo_ts + 36,
  828. 9: __ccgo_ts + 45,
  829. 10: __ccgo_ts + 55,
  830. 11: __ccgo_ts + 66,
  831. 12: __ccgo_ts + 78,
  832. 13: __ccgo_ts + 91,
  833. 14: __ccgo_ts + 105,
  834. 15: __ccgo_ts + 120,
  835. 16: __ccgo_ts + 136,
  836. }
  837. func XMD2Init(tls *libc.TLS, context uintptr) {
  838. (*TMD2_CTX)(unsafe.Pointer(context)).Fi = uint32(16)
  839. libc.Xmemset(tls, context+4, 0, uint64(16))
  840. libc.Xmemset(tls, context+20, 0, uint64(48))
  841. }
  842. func XMD2Update(tls *libc.TLS, context uintptr, input uintptr, inputLen uint32) {
  843. var idx, piece uint32
  844. var p2 uintptr
  845. _, _, _ = idx, piece, p2
  846. idx = uint32(0)
  847. for {
  848. if !(idx < inputLen) {
  849. break
  850. }
  851. piece = uint32(32) - (*TMD2_CTX)(unsafe.Pointer(context)).Fi
  852. if inputLen-idx < piece {
  853. piece = inputLen - idx
  854. }
  855. libc.Xmemcpy(tls, context+20+uintptr((*TMD2_CTX)(unsafe.Pointer(context)).Fi), input+uintptr(idx), uint64(piece))
  856. p2 = context
  857. *(*Tuint32_t)(unsafe.Pointer(p2)) += piece
  858. if *(*Tuint32_t)(unsafe.Pointer(p2)) == uint32(32) {
  859. XMD2Transform(tls, context)
  860. } /* resets i */
  861. goto _1
  862. _1:
  863. ;
  864. idx += piece
  865. }
  866. }
  867. func XMD2Final(tls *libc.TLS, digest uintptr, context uintptr) {
  868. var padlen uint32
  869. _ = padlen
  870. /* padlen should be 1..16 */
  871. padlen = uint32(32) - (*TMD2_CTX)(unsafe.Pointer(context)).Fi
  872. /* add padding */
  873. XMD2Update(tls, context, _pad[padlen], padlen)
  874. /* add checksum */
  875. XMD2Update(tls, context, context+4, libc.Uint32FromInt64(16))
  876. /* copy out final digest */
  877. libc.Xmemcpy(tls, digest, context+20, libc.Uint64FromInt32(16))
  878. /* reset the context */
  879. XMD2Init(tls, context)
  880. }
  881. // C documentation
  882. //
  883. // /*static*/
  884. func XMD2Transform(tls *libc.TLS, context uintptr) {
  885. var j, k, l, t, v4 Tuint32_t
  886. var v6 uint8
  887. var p2 uintptr
  888. _, _, _, _, _, _, _ = j, k, l, t, v4, v6, p2
  889. /* set block "3" and update "checksum" */
  890. l = uint32(*(*uint8)(unsafe.Pointer(context + 4 + 15)))
  891. j = libc.Uint32FromInt32(0)
  892. for {
  893. if !(j < uint32(16)) {
  894. break
  895. }
  896. *(*uint8)(unsafe.Pointer(context + 20 + uintptr(uint32(32)+j))) = libc.Uint8FromInt32(libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(context + 20 + uintptr(j)))) ^ libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(context + 20 + uintptr(uint32(16)+j)))))
  897. p2 = context + 4 + uintptr(j)
  898. *(*uint8)(unsafe.Pointer(p2)) = uint8(int32(*(*uint8)(unsafe.Pointer(p2))) ^ libc.Int32FromUint8(_S[uint32(*(*uint8)(unsafe.Pointer(context + 20 + uintptr(uint32(16)+j))))^l]))
  899. l = uint32(*(*uint8)(unsafe.Pointer(p2)))
  900. goto _1
  901. _1:
  902. ;
  903. j++
  904. }
  905. /* mangle input block */
  906. v4 = libc.Uint32FromInt32(0)
  907. j = v4
  908. t = v4
  909. for {
  910. if !(j < uint32(18)) {
  911. break
  912. }
  913. k = uint32(0)
  914. for {
  915. if !(k < uint32(48)) {
  916. break
  917. }
  918. v6 = libc.Uint8FromInt32(libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(context + 20 + uintptr(k)))) ^ libc.Int32FromUint8(_S[t]))
  919. *(*uint8)(unsafe.Pointer(context + 20 + uintptr(k))) = v6
  920. t = uint32(v6)
  921. goto _5
  922. _5:
  923. ;
  924. k++
  925. }
  926. goto _3
  927. _3:
  928. ;
  929. t = (t + j) % uint32(256)
  930. j++
  931. }
  932. /* reset input pointer */
  933. (*TMD2_CTX)(unsafe.Pointer(context)).Fi = uint32(16)
  934. }
  935. const m_MD4_BLOCK_LENGTH = 64
  936. const m_MD4_DIGEST_LENGTH = 16
  937. type TMD4_CTX = struct {
  938. Fstate [4]Tuint32_t
  939. Fcount Tuint64_t
  940. Fbuffer [64]Tuint8_t
  941. }
  942. type TMD4Context = TMD4_CTX
  943. var _PADDING = [64]Tuint8_t{
  944. 0: uint8(0x80),
  945. }
  946. // C documentation
  947. //
  948. // /*
  949. // * Start MD4 accumulation.
  950. // * Set bit count to 0 and buffer to mysterious initialization constants.
  951. // */
  952. func XMD4Init(tls *libc.TLS, ctx uintptr) {
  953. (*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount = uint64(0)
  954. *(*Tuint32_t)(unsafe.Pointer(ctx)) = uint32(0x67452301)
  955. *(*Tuint32_t)(unsafe.Pointer(ctx + 1*4)) = uint32(0xefcdab89)
  956. *(*Tuint32_t)(unsafe.Pointer(ctx + 2*4)) = uint32(0x98badcfe)
  957. *(*Tuint32_t)(unsafe.Pointer(ctx + 3*4)) = uint32(0x10325476)
  958. }
  959. // C documentation
  960. //
  961. // /*
  962. // * Update context to reflect the concatenation of another buffer full
  963. // * of bytes.
  964. // */
  965. func XMD4Update(tls *libc.TLS, ctx uintptr, input uintptr, len1 Tsize_t) {
  966. var have, need Tsize_t
  967. _, _ = have, need
  968. /* Check how many bytes we already have and how many more we need. */
  969. have = (*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount >> libc.Int32FromInt32(3) & libc.Uint64FromInt32(libc.Int32FromInt32(m_MD4_BLOCK_LENGTH)-libc.Int32FromInt32(1))
  970. need = uint64(m_MD4_BLOCK_LENGTH) - have
  971. /* Update bitcount */
  972. *(*Tuint64_t)(unsafe.Pointer(ctx + 16)) += len1 << int32(3)
  973. if len1 >= need {
  974. if have != uint64(0) {
  975. libc.Xmemcpy(tls, ctx+24+uintptr(have), input, need)
  976. XMD4Transform(tls, ctx, ctx+24)
  977. input += uintptr(need)
  978. len1 -= need
  979. have = uint64(0)
  980. }
  981. /* Process data in MD4_BLOCK_LENGTH-byte chunks. */
  982. for len1 >= uint64(m_MD4_BLOCK_LENGTH) {
  983. XMD4Transform(tls, ctx, input)
  984. input += uintptr(m_MD4_BLOCK_LENGTH)
  985. len1 -= uint64(m_MD4_BLOCK_LENGTH)
  986. }
  987. }
  988. /* Handle any remaining bytes of data. */
  989. if len1 != uint64(0) {
  990. libc.Xmemcpy(tls, ctx+24+uintptr(have), input, len1)
  991. }
  992. }
  993. // C documentation
  994. //
  995. // /*
  996. // * Pad pad to 64-byte boundary with the bit pattern
  997. // * 1 0* (64-bit count of bits processed, MSB-first)
  998. // */
  999. func XMD4Pad(tls *libc.TLS, ctx uintptr) {
  1000. bp := tls.Alloc(16)
  1001. defer tls.Free(16)
  1002. var padlen Tsize_t
  1003. var _ /* count at bp+0 */ [8]Tuint8_t
  1004. _ = padlen
  1005. /* Convert count to 8 bytes in little endian order. */
  1006. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(7)] = uint8((*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(56))
  1007. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(6)] = uint8((*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(48))
  1008. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(5)] = uint8((*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(40))
  1009. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(4)] = uint8((*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(32))
  1010. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(3)] = uint8((*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(24))
  1011. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(2)] = uint8((*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(16))
  1012. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(1)] = uint8((*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(8))
  1013. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[0] = uint8((*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount)
  1014. /* Pad out to 56 mod 64. */
  1015. padlen = uint64(m_MD4_BLOCK_LENGTH) - (*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount>>libc.Int32FromInt32(3)&libc.Uint64FromInt32(libc.Int32FromInt32(m_MD4_BLOCK_LENGTH)-libc.Int32FromInt32(1))
  1016. if padlen < libc.Uint64FromInt32(libc.Int32FromInt32(1)+libc.Int32FromInt32(8)) {
  1017. padlen += uint64(m_MD4_BLOCK_LENGTH)
  1018. }
  1019. XMD4Update(tls, ctx, uintptr(unsafe.Pointer(&_PADDING)), padlen-uint64(8)) /* padlen - 8 <= 64 */
  1020. XMD4Update(tls, ctx, bp, uint64(8))
  1021. }
  1022. // C documentation
  1023. //
  1024. // /*
  1025. // * Final wrapup--call MD4Pad, fill in digest and zero out ctx.
  1026. // */
  1027. func XMD4Final(tls *libc.TLS, digest uintptr, ctx uintptr) {
  1028. var i int32
  1029. _ = i
  1030. XMD4Pad(tls, ctx)
  1031. i = 0
  1032. for {
  1033. if !(i < int32(4)) {
  1034. break
  1035. }
  1036. *(*uint8)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 3)) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)) >> int32(24))
  1037. *(*uint8)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 2)) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)) >> int32(16))
  1038. *(*uint8)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 1)) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)) >> int32(8))
  1039. *(*uint8)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)))) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)))
  1040. goto _1
  1041. _1:
  1042. ;
  1043. i++
  1044. }
  1045. libc.Xmemset(tls, ctx, 0, uint64(88))
  1046. }
  1047. /* The three core functions - F1 is optimized somewhat */
  1048. /* #define F1(x, y, z) (x & y | ~x & z) */
  1049. /* This is the central step in the MD4 algorithm. */
  1050. // C documentation
  1051. //
  1052. // /*
  1053. // * The core of the MD4 algorithm, this alters an existing MD4 hash to
  1054. // * reflect the addition of 16 longwords of new data. MD4Update blocks
  1055. // * the data and converts bytes into longwords for this routine.
  1056. // */
  1057. func XMD4Transform(tls *libc.TLS, state uintptr, block uintptr) {
  1058. bp := tls.Alloc(64)
  1059. defer tls.Free(64)
  1060. var a, b, c, d Tuint32_t
  1061. var _ /* in at bp+0 */ [16]Tuint32_t
  1062. _, _, _, _ = a, b, c, d
  1063. libc.Xmemcpy(tls, bp, block, uint64(64))
  1064. a = *(*Tuint32_t)(unsafe.Pointer(state))
  1065. b = *(*Tuint32_t)(unsafe.Pointer(state + 1*4))
  1066. c = *(*Tuint32_t)(unsafe.Pointer(state + 2*4))
  1067. d = *(*Tuint32_t)(unsafe.Pointer(state + 3*4))
  1068. a += d ^ b&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]
  1069. a = a<<libc.Int32FromInt32(3) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3))
  1070. d += c ^ a&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]
  1071. d = d<<libc.Int32FromInt32(7) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7))
  1072. c += b ^ d&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]
  1073. c = c<<libc.Int32FromInt32(11) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11))
  1074. b += a ^ c&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]
  1075. b = b<<libc.Int32FromInt32(19) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(19))
  1076. a += d ^ b&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]
  1077. a = a<<libc.Int32FromInt32(3) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3))
  1078. d += c ^ a&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]
  1079. d = d<<libc.Int32FromInt32(7) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7))
  1080. c += b ^ d&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]
  1081. c = c<<libc.Int32FromInt32(11) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11))
  1082. b += a ^ c&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]
  1083. b = b<<libc.Int32FromInt32(19) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(19))
  1084. a += d ^ b&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]
  1085. a = a<<libc.Int32FromInt32(3) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3))
  1086. d += c ^ a&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]
  1087. d = d<<libc.Int32FromInt32(7) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7))
  1088. c += b ^ d&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]
  1089. c = c<<libc.Int32FromInt32(11) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11))
  1090. b += a ^ c&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]
  1091. b = b<<libc.Int32FromInt32(19) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(19))
  1092. a += d ^ b&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]
  1093. a = a<<libc.Int32FromInt32(3) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3))
  1094. d += c ^ a&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]
  1095. d = d<<libc.Int32FromInt32(7) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7))
  1096. c += b ^ d&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]
  1097. c = c<<libc.Int32FromInt32(11) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11))
  1098. b += a ^ c&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]
  1099. b = b<<libc.Int32FromInt32(19) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(19))
  1100. a += b&c | b&d | c&d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0] + uint32(0x5a827999)
  1101. a = a<<libc.Int32FromInt32(3) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3))
  1102. d += a&b | a&c | b&c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)] + uint32(0x5a827999)
  1103. d = d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))
  1104. c += d&a | d&b | a&b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)] + uint32(0x5a827999)
  1105. c = c<<libc.Int32FromInt32(9) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9))
  1106. b += c&d | c&a | d&a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)] + uint32(0x5a827999)
  1107. b = b<<libc.Int32FromInt32(13) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13))
  1108. a += b&c | b&d | c&d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)] + uint32(0x5a827999)
  1109. a = a<<libc.Int32FromInt32(3) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3))
  1110. d += a&b | a&c | b&c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)] + uint32(0x5a827999)
  1111. d = d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))
  1112. c += d&a | d&b | a&b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)] + uint32(0x5a827999)
  1113. c = c<<libc.Int32FromInt32(9) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9))
  1114. b += c&d | c&a | d&a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)] + uint32(0x5a827999)
  1115. b = b<<libc.Int32FromInt32(13) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13))
  1116. a += b&c | b&d | c&d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)] + uint32(0x5a827999)
  1117. a = a<<libc.Int32FromInt32(3) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3))
  1118. d += a&b | a&c | b&c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)] + uint32(0x5a827999)
  1119. d = d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))
  1120. c += d&a | d&b | a&b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)] + uint32(0x5a827999)
  1121. c = c<<libc.Int32FromInt32(9) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9))
  1122. b += c&d | c&a | d&a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)] + uint32(0x5a827999)
  1123. b = b<<libc.Int32FromInt32(13) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13))
  1124. a += b&c | b&d | c&d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)] + uint32(0x5a827999)
  1125. a = a<<libc.Int32FromInt32(3) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3))
  1126. d += a&b | a&c | b&c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)] + uint32(0x5a827999)
  1127. d = d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))
  1128. c += d&a | d&b | a&b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)] + uint32(0x5a827999)
  1129. c = c<<libc.Int32FromInt32(9) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9))
  1130. b += c&d | c&a | d&a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)] + uint32(0x5a827999)
  1131. b = b<<libc.Int32FromInt32(13) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13))
  1132. a += b ^ c ^ d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0] + uint32(0x6ed9eba1)
  1133. a = a<<libc.Int32FromInt32(3) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3))
  1134. d += a ^ b ^ c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)] + uint32(0x6ed9eba1)
  1135. d = d<<libc.Int32FromInt32(9) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9))
  1136. c += d ^ a ^ b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)] + uint32(0x6ed9eba1)
  1137. c = c<<libc.Int32FromInt32(11) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11))
  1138. b += c ^ d ^ a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)] + uint32(0x6ed9eba1)
  1139. b = b<<libc.Int32FromInt32(15) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15))
  1140. a += b ^ c ^ d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)] + uint32(0x6ed9eba1)
  1141. a = a<<libc.Int32FromInt32(3) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3))
  1142. d += a ^ b ^ c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)] + uint32(0x6ed9eba1)
  1143. d = d<<libc.Int32FromInt32(9) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9))
  1144. c += d ^ a ^ b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)] + uint32(0x6ed9eba1)
  1145. c = c<<libc.Int32FromInt32(11) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11))
  1146. b += c ^ d ^ a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)] + uint32(0x6ed9eba1)
  1147. b = b<<libc.Int32FromInt32(15) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15))
  1148. a += b ^ c ^ d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)] + uint32(0x6ed9eba1)
  1149. a = a<<libc.Int32FromInt32(3) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3))
  1150. d += a ^ b ^ c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)] + uint32(0x6ed9eba1)
  1151. d = d<<libc.Int32FromInt32(9) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9))
  1152. c += d ^ a ^ b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)] + uint32(0x6ed9eba1)
  1153. c = c<<libc.Int32FromInt32(11) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11))
  1154. b += c ^ d ^ a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)] + uint32(0x6ed9eba1)
  1155. b = b<<libc.Int32FromInt32(15) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15))
  1156. a += b ^ c ^ d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)] + uint32(0x6ed9eba1)
  1157. a = a<<libc.Int32FromInt32(3) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3))
  1158. d += a ^ b ^ c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)] + uint32(0x6ed9eba1)
  1159. d = d<<libc.Int32FromInt32(9) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9))
  1160. c += d ^ a ^ b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)] + uint32(0x6ed9eba1)
  1161. c = c<<libc.Int32FromInt32(11) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11))
  1162. b += c ^ d ^ a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)] + uint32(0x6ed9eba1)
  1163. b = b<<libc.Int32FromInt32(15) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15))
  1164. *(*Tuint32_t)(unsafe.Pointer(state)) += a
  1165. *(*Tuint32_t)(unsafe.Pointer(state + 1*4)) += b
  1166. *(*Tuint32_t)(unsafe.Pointer(state + 2*4)) += c
  1167. *(*Tuint32_t)(unsafe.Pointer(state + 3*4)) += d
  1168. }
  1169. const m_MD5_BLOCK_LENGTH = 64
  1170. const m_MD5_DIGEST_LENGTH = 16
  1171. type TMD5_CTX = struct {
  1172. Fstate [4]Tuint32_t
  1173. Fcount Tuint64_t
  1174. Fbuffer [64]Tuint8_t
  1175. }
  1176. type TMD5Context = TMD5_CTX
  1177. /* Avoid polluting the namespace. Even though this makes this usage
  1178. * implementation-specific, defining it unconditionally should not be
  1179. * a problem, and better than possibly breaking unexpecting code. */
  1180. var _PADDING1 = [64]Tuint8_t{
  1181. 0: uint8(0x80),
  1182. }
  1183. // C documentation
  1184. //
  1185. // /*
  1186. // * Start MD5 accumulation. Set bit count to 0 and buffer to mysterious
  1187. // * initialization constants.
  1188. // */
  1189. func XMD5Init(tls *libc.TLS, ctx uintptr) {
  1190. (*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount = uint64(0)
  1191. *(*Tuint32_t)(unsafe.Pointer(ctx)) = uint32(0x67452301)
  1192. *(*Tuint32_t)(unsafe.Pointer(ctx + 1*4)) = uint32(0xefcdab89)
  1193. *(*Tuint32_t)(unsafe.Pointer(ctx + 2*4)) = uint32(0x98badcfe)
  1194. *(*Tuint32_t)(unsafe.Pointer(ctx + 3*4)) = uint32(0x10325476)
  1195. }
  1196. // C documentation
  1197. //
  1198. // /*
  1199. // * Update context to reflect the concatenation of another buffer full
  1200. // * of bytes.
  1201. // */
  1202. func XMD5Update(tls *libc.TLS, ctx uintptr, input uintptr, len1 Tsize_t) {
  1203. var have, need Tsize_t
  1204. _, _ = have, need
  1205. /* Check how many bytes we already have and how many more we need. */
  1206. have = (*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount >> libc.Int32FromInt32(3) & libc.Uint64FromInt32(libc.Int32FromInt32(m_MD5_BLOCK_LENGTH)-libc.Int32FromInt32(1))
  1207. need = uint64(m_MD5_BLOCK_LENGTH) - have
  1208. /* Update bitcount */
  1209. *(*Tuint64_t)(unsafe.Pointer(ctx + 16)) += len1 << int32(3)
  1210. if len1 >= need {
  1211. if have != uint64(0) {
  1212. libc.Xmemcpy(tls, ctx+24+uintptr(have), input, need)
  1213. XMD5Transform(tls, ctx, ctx+24)
  1214. input += uintptr(need)
  1215. len1 -= need
  1216. have = uint64(0)
  1217. }
  1218. /* Process data in MD5_BLOCK_LENGTH-byte chunks. */
  1219. for len1 >= uint64(m_MD5_BLOCK_LENGTH) {
  1220. XMD5Transform(tls, ctx, input)
  1221. input += uintptr(m_MD5_BLOCK_LENGTH)
  1222. len1 -= uint64(m_MD5_BLOCK_LENGTH)
  1223. }
  1224. }
  1225. /* Handle any remaining bytes of data. */
  1226. if len1 != uint64(0) {
  1227. libc.Xmemcpy(tls, ctx+24+uintptr(have), input, len1)
  1228. }
  1229. }
  1230. // C documentation
  1231. //
  1232. // /*
  1233. // * Pad pad to 64-byte boundary with the bit pattern
  1234. // * 1 0* (64-bit count of bits processed, MSB-first)
  1235. // */
  1236. func XMD5Pad(tls *libc.TLS, ctx uintptr) {
  1237. bp := tls.Alloc(16)
  1238. defer tls.Free(16)
  1239. var padlen Tsize_t
  1240. var _ /* count at bp+0 */ [8]Tuint8_t
  1241. _ = padlen
  1242. /* Convert count to 8 bytes in little endian order. */
  1243. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(7)] = uint8((*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(56))
  1244. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(6)] = uint8((*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(48))
  1245. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(5)] = uint8((*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(40))
  1246. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(4)] = uint8((*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(32))
  1247. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(3)] = uint8((*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(24))
  1248. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(2)] = uint8((*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(16))
  1249. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(1)] = uint8((*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(8))
  1250. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[0] = uint8((*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount)
  1251. /* Pad out to 56 mod 64. */
  1252. padlen = uint64(m_MD5_BLOCK_LENGTH) - (*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount>>libc.Int32FromInt32(3)&libc.Uint64FromInt32(libc.Int32FromInt32(m_MD5_BLOCK_LENGTH)-libc.Int32FromInt32(1))
  1253. if padlen < libc.Uint64FromInt32(libc.Int32FromInt32(1)+libc.Int32FromInt32(8)) {
  1254. padlen += uint64(m_MD5_BLOCK_LENGTH)
  1255. }
  1256. XMD5Update(tls, ctx, uintptr(unsafe.Pointer(&_PADDING1)), padlen-uint64(8)) /* padlen - 8 <= 64 */
  1257. XMD5Update(tls, ctx, bp, uint64(8))
  1258. }
  1259. // C documentation
  1260. //
  1261. // /*
  1262. // * Final wrapup--call MD5Pad, fill in digest and zero out ctx.
  1263. // */
  1264. func XMD5Final(tls *libc.TLS, digest uintptr, ctx uintptr) {
  1265. var i int32
  1266. _ = i
  1267. XMD5Pad(tls, ctx)
  1268. i = 0
  1269. for {
  1270. if !(i < int32(4)) {
  1271. break
  1272. }
  1273. *(*uint8)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 3)) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)) >> int32(24))
  1274. *(*uint8)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 2)) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)) >> int32(16))
  1275. *(*uint8)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 1)) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)) >> int32(8))
  1276. *(*uint8)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)))) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)))
  1277. goto _1
  1278. _1:
  1279. ;
  1280. i++
  1281. }
  1282. libc.Xmemset(tls, ctx, 0, uint64(88))
  1283. }
  1284. /* The four core functions - F1 is optimized somewhat */
  1285. /* #define F1(x, y, z) (x & y | ~x & z) */
  1286. /* This is the central step in the MD5 algorithm. */
  1287. // C documentation
  1288. //
  1289. // /*
  1290. // * The core of the MD5 algorithm, this alters an existing MD5 hash to
  1291. // * reflect the addition of 16 longwords of new data. MD5Update blocks
  1292. // * the data and converts bytes into longwords for this routine.
  1293. // */
  1294. func XMD5Transform(tls *libc.TLS, state uintptr, block uintptr) {
  1295. bp := tls.Alloc(64)
  1296. defer tls.Free(64)
  1297. var a, b, c, d Tuint32_t
  1298. var _ /* in at bp+0 */ [16]Tuint32_t
  1299. _, _, _, _ = a, b, c, d
  1300. libc.Xmemcpy(tls, bp, block, uint64(64))
  1301. a = *(*Tuint32_t)(unsafe.Pointer(state))
  1302. b = *(*Tuint32_t)(unsafe.Pointer(state + 1*4))
  1303. c = *(*Tuint32_t)(unsafe.Pointer(state + 2*4))
  1304. d = *(*Tuint32_t)(unsafe.Pointer(state + 3*4))
  1305. a += d ^ b&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0] + uint32(0xd76aa478)
  1306. a = a<<int32(7) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7))
  1307. a += b
  1308. d += c ^ a&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)] + uint32(0xe8c7b756)
  1309. d = d<<int32(12) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12))
  1310. d += a
  1311. c += b ^ d&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)] + uint32(0x242070db)
  1312. c = c<<int32(17) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(17))
  1313. c += d
  1314. b += a ^ c&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)] + uint32(0xc1bdceee)
  1315. b = b<<int32(22) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(22))
  1316. b += c
  1317. a += d ^ b&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)] + uint32(0xf57c0faf)
  1318. a = a<<int32(7) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7))
  1319. a += b
  1320. d += c ^ a&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)] + uint32(0x4787c62a)
  1321. d = d<<int32(12) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12))
  1322. d += a
  1323. c += b ^ d&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)] + uint32(0xa8304613)
  1324. c = c<<int32(17) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(17))
  1325. c += d
  1326. b += a ^ c&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)] + uint32(0xfd469501)
  1327. b = b<<int32(22) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(22))
  1328. b += c
  1329. a += d ^ b&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)] + uint32(0x698098d8)
  1330. a = a<<int32(7) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7))
  1331. a += b
  1332. d += c ^ a&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)] + uint32(0x8b44f7af)
  1333. d = d<<int32(12) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12))
  1334. d += a
  1335. c += b ^ d&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)] + uint32(0xffff5bb1)
  1336. c = c<<int32(17) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(17))
  1337. c += d
  1338. b += a ^ c&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)] + uint32(0x895cd7be)
  1339. b = b<<int32(22) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(22))
  1340. b += c
  1341. a += d ^ b&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)] + uint32(0x6b901122)
  1342. a = a<<int32(7) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7))
  1343. a += b
  1344. d += c ^ a&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)] + uint32(0xfd987193)
  1345. d = d<<int32(12) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12))
  1346. d += a
  1347. c += b ^ d&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)] + uint32(0xa679438e)
  1348. c = c<<int32(17) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(17))
  1349. c += d
  1350. b += a ^ c&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)] + uint32(0x49b40821)
  1351. b = b<<int32(22) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(22))
  1352. b += c
  1353. a += c ^ d&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)] + uint32(0xf61e2562)
  1354. a = a<<int32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))
  1355. a += b
  1356. d += b ^ c&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)] + uint32(0xc040b340)
  1357. d = d<<int32(9) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9))
  1358. d += a
  1359. c += a ^ b&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)] + uint32(0x265e5a51)
  1360. c = c<<int32(14) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14))
  1361. c += d
  1362. b += d ^ a&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0] + uint32(0xe9b6c7aa)
  1363. b = b<<int32(20) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(20))
  1364. b += c
  1365. a += c ^ d&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)] + uint32(0xd62f105d)
  1366. a = a<<int32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))
  1367. a += b
  1368. d += b ^ c&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)] + uint32(0x02441453)
  1369. d = d<<int32(9) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9))
  1370. d += a
  1371. c += a ^ b&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)] + uint32(0xd8a1e681)
  1372. c = c<<int32(14) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14))
  1373. c += d
  1374. b += d ^ a&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)] + uint32(0xe7d3fbc8)
  1375. b = b<<int32(20) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(20))
  1376. b += c
  1377. a += c ^ d&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)] + uint32(0x21e1cde6)
  1378. a = a<<int32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))
  1379. a += b
  1380. d += b ^ c&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)] + uint32(0xc33707d6)
  1381. d = d<<int32(9) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9))
  1382. d += a
  1383. c += a ^ b&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)] + uint32(0xf4d50d87)
  1384. c = c<<int32(14) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14))
  1385. c += d
  1386. b += d ^ a&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)] + uint32(0x455a14ed)
  1387. b = b<<int32(20) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(20))
  1388. b += c
  1389. a += c ^ d&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)] + uint32(0xa9e3e905)
  1390. a = a<<int32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))
  1391. a += b
  1392. d += b ^ c&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)] + uint32(0xfcefa3f8)
  1393. d = d<<int32(9) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9))
  1394. d += a
  1395. c += a ^ b&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)] + uint32(0x676f02d9)
  1396. c = c<<int32(14) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14))
  1397. c += d
  1398. b += d ^ a&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)] + uint32(0x8d2a4c8a)
  1399. b = b<<int32(20) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(20))
  1400. b += c
  1401. a += b ^ c ^ d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)] + uint32(0xfffa3942)
  1402. a = a<<int32(4) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(4))
  1403. a += b
  1404. d += a ^ b ^ c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)] + uint32(0x8771f681)
  1405. d = d<<int32(11) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11))
  1406. d += a
  1407. c += d ^ a ^ b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)] + uint32(0x6d9d6122)
  1408. c = c<<int32(16) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(16))
  1409. c += d
  1410. b += c ^ d ^ a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)] + uint32(0xfde5380c)
  1411. b = b<<int32(23) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(23))
  1412. b += c
  1413. a += b ^ c ^ d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)] + uint32(0xa4beea44)
  1414. a = a<<int32(4) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(4))
  1415. a += b
  1416. d += a ^ b ^ c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)] + uint32(0x4bdecfa9)
  1417. d = d<<int32(11) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11))
  1418. d += a
  1419. c += d ^ a ^ b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)] + uint32(0xf6bb4b60)
  1420. c = c<<int32(16) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(16))
  1421. c += d
  1422. b += c ^ d ^ a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)] + uint32(0xbebfbc70)
  1423. b = b<<int32(23) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(23))
  1424. b += c
  1425. a += b ^ c ^ d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)] + uint32(0x289b7ec6)
  1426. a = a<<int32(4) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(4))
  1427. a += b
  1428. d += a ^ b ^ c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0] + uint32(0xeaa127fa)
  1429. d = d<<int32(11) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11))
  1430. d += a
  1431. c += d ^ a ^ b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)] + uint32(0xd4ef3085)
  1432. c = c<<int32(16) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(16))
  1433. c += d
  1434. b += c ^ d ^ a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)] + uint32(0x04881d05)
  1435. b = b<<int32(23) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(23))
  1436. b += c
  1437. a += b ^ c ^ d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)] + uint32(0xd9d4d039)
  1438. a = a<<int32(4) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(4))
  1439. a += b
  1440. d += a ^ b ^ c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)] + uint32(0xe6db99e5)
  1441. d = d<<int32(11) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11))
  1442. d += a
  1443. c += d ^ a ^ b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)] + uint32(0x1fa27cf8)
  1444. c = c<<int32(16) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(16))
  1445. c += d
  1446. b += c ^ d ^ a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)] + uint32(0xc4ac5665)
  1447. b = b<<int32(23) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(23))
  1448. b += c
  1449. a += c ^ (b | ^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0] + uint32(0xf4292244)
  1450. a = a<<int32(6) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6))
  1451. a += b
  1452. d += b ^ (a | ^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)] + uint32(0x432aff97)
  1453. d = d<<int32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1454. d += a
  1455. c += a ^ (d | ^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)] + uint32(0xab9423a7)
  1456. c = c<<int32(15) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15))
  1457. c += d
  1458. b += d ^ (c | ^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)] + uint32(0xfc93a039)
  1459. b = b<<int32(21) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(21))
  1460. b += c
  1461. a += c ^ (b | ^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)] + uint32(0x655b59c3)
  1462. a = a<<int32(6) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6))
  1463. a += b
  1464. d += b ^ (a | ^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)] + uint32(0x8f0ccc92)
  1465. d = d<<int32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1466. d += a
  1467. c += a ^ (d | ^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)] + uint32(0xffeff47d)
  1468. c = c<<int32(15) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15))
  1469. c += d
  1470. b += d ^ (c | ^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)] + uint32(0x85845dd1)
  1471. b = b<<int32(21) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(21))
  1472. b += c
  1473. a += c ^ (b | ^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)] + uint32(0x6fa87e4f)
  1474. a = a<<int32(6) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6))
  1475. a += b
  1476. d += b ^ (a | ^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)] + uint32(0xfe2ce6e0)
  1477. d = d<<int32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1478. d += a
  1479. c += a ^ (d | ^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)] + uint32(0xa3014314)
  1480. c = c<<int32(15) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15))
  1481. c += d
  1482. b += d ^ (c | ^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)] + uint32(0x4e0811a1)
  1483. b = b<<int32(21) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(21))
  1484. b += c
  1485. a += c ^ (b | ^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)] + uint32(0xf7537e82)
  1486. a = a<<int32(6) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6))
  1487. a += b
  1488. d += b ^ (a | ^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)] + uint32(0xbd3af235)
  1489. d = d<<int32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1490. d += a
  1491. c += a ^ (d | ^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)] + uint32(0x2ad7d2bb)
  1492. c = c<<int32(15) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15))
  1493. c += d
  1494. b += d ^ (c | ^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)] + uint32(0xeb86d391)
  1495. b = b<<int32(21) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(21))
  1496. b += c
  1497. *(*Tuint32_t)(unsafe.Pointer(state)) += a
  1498. *(*Tuint32_t)(unsafe.Pointer(state + 1*4)) += b
  1499. *(*Tuint32_t)(unsafe.Pointer(state + 2*4)) += c
  1500. *(*Tuint32_t)(unsafe.Pointer(state + 3*4)) += d
  1501. }
  1502. const m_H0 = 1732584193
  1503. const m_H1 = 4023233417
  1504. const m_H2 = 2562383102
  1505. const m_H3 = 271733878
  1506. const m_H4 = 3285377520
  1507. const m_K0 = 0
  1508. const m_K1 = 1518500249
  1509. const m_K2 = 1859775393
  1510. const m_K3 = 2400959708
  1511. const m_K4 = 2840853838
  1512. const m_KK0 = 1352829926
  1513. const m_KK1 = 1548603684
  1514. const m_KK2 = 1836072691
  1515. const m_KK3 = 2053994217
  1516. const m_KK4 = 0
  1517. const m_RMD160_BLOCK_LENGTH = 64
  1518. const m_RMD160_DIGEST_LENGTH = 20
  1519. type TRMD160_CTX = struct {
  1520. Fstate [5]Tuint32_t
  1521. Fcount Tuint64_t
  1522. Fbuffer [64]Tuint8_t
  1523. }
  1524. type TRMD160Context = TRMD160_CTX
  1525. /* rotate x left n bits. */
  1526. var _PADDING2 = [64]Tuint8_t{
  1527. 0: uint8(0x80),
  1528. }
  1529. func XRMD160Init(tls *libc.TLS, ctx uintptr) {
  1530. (*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount = uint64(0)
  1531. *(*Tuint32_t)(unsafe.Pointer(ctx)) = uint32(0x67452301)
  1532. *(*Tuint32_t)(unsafe.Pointer(ctx + 1*4)) = uint32(0xEFCDAB89)
  1533. *(*Tuint32_t)(unsafe.Pointer(ctx + 2*4)) = uint32(0x98BADCFE)
  1534. *(*Tuint32_t)(unsafe.Pointer(ctx + 3*4)) = uint32(0x10325476)
  1535. *(*Tuint32_t)(unsafe.Pointer(ctx + 4*4)) = uint32(0xC3D2E1F0)
  1536. }
  1537. func XRMD160Update(tls *libc.TLS, ctx uintptr, input uintptr, len1 Tsize_t) {
  1538. var have, need, off Tsize_t
  1539. _, _, _ = have, need, off
  1540. have = (*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount / uint64(8) % uint64(m_RMD160_BLOCK_LENGTH)
  1541. need = uint64(m_RMD160_BLOCK_LENGTH) - have
  1542. *(*Tuint64_t)(unsafe.Pointer(ctx + 24)) += uint64(8) * len1
  1543. off = uint64(0)
  1544. if len1 >= need {
  1545. if have != 0 {
  1546. libc.Xmemcpy(tls, ctx+32+uintptr(have), input, need)
  1547. XRMD160Transform(tls, ctx, ctx+32)
  1548. off = need
  1549. have = uint64(0)
  1550. }
  1551. /* now the buffer is empty */
  1552. for off+uint64(m_RMD160_BLOCK_LENGTH) <= len1 {
  1553. XRMD160Transform(tls, ctx, input+uintptr(off))
  1554. off += uint64(m_RMD160_BLOCK_LENGTH)
  1555. }
  1556. }
  1557. if off < len1 {
  1558. libc.Xmemcpy(tls, ctx+32+uintptr(have), input+uintptr(off), len1-off)
  1559. }
  1560. }
  1561. func XRMD160Pad(tls *libc.TLS, ctx uintptr) {
  1562. bp := tls.Alloc(16)
  1563. defer tls.Free(16)
  1564. var padlen Tsize_t
  1565. var _ /* size at bp+0 */ [8]Tuint8_t
  1566. _ = padlen
  1567. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(7)] = uint8((*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(56))
  1568. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(6)] = uint8((*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(48))
  1569. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(5)] = uint8((*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(40))
  1570. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(4)] = uint8((*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(32))
  1571. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(3)] = uint8((*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(24))
  1572. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(2)] = uint8((*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(16))
  1573. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(1)] = uint8((*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(8))
  1574. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[0] = uint8((*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount)
  1575. /*
  1576. * pad to RMD160_BLOCK_LENGTH byte blocks, at least one byte from
  1577. * PADDING plus 8 bytes for the size
  1578. */
  1579. padlen = uint64(m_RMD160_BLOCK_LENGTH) - (*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount/uint64(8)%uint64(m_RMD160_BLOCK_LENGTH)
  1580. if padlen < libc.Uint64FromInt32(libc.Int32FromInt32(1)+libc.Int32FromInt32(8)) {
  1581. padlen += uint64(m_RMD160_BLOCK_LENGTH)
  1582. }
  1583. XRMD160Update(tls, ctx, uintptr(unsafe.Pointer(&_PADDING2)), padlen-uint64(8)) /* padlen - 8 <= 64 */
  1584. XRMD160Update(tls, ctx, bp, uint64(8))
  1585. }
  1586. func XRMD160Final(tls *libc.TLS, digest uintptr, ctx uintptr) {
  1587. var i int32
  1588. _ = i
  1589. XRMD160Pad(tls, ctx)
  1590. i = 0
  1591. for {
  1592. if !(i < int32(5)) {
  1593. break
  1594. }
  1595. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 3)) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)) >> int32(24))
  1596. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 2)) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)) >> int32(16))
  1597. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 1)) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)) >> int32(8))
  1598. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)))) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)))
  1599. goto _1
  1600. _1:
  1601. ;
  1602. i++
  1603. }
  1604. libc.Xmemset(tls, ctx, 0, uint64(96))
  1605. }
  1606. func XRMD160Transform(tls *libc.TLS, state uintptr, block uintptr) {
  1607. bp := tls.Alloc(64)
  1608. defer tls.Free(64)
  1609. var a, aa, b, bb, c, cc, d, dd, e, ee, t Tuint32_t
  1610. var _ /* x at bp+0 */ [16]Tuint32_t
  1611. _, _, _, _, _, _, _, _, _, _, _ = a, aa, b, bb, c, cc, d, dd, e, ee, t
  1612. libc.Xmemcpy(tls, bp, block, uint64(m_RMD160_BLOCK_LENGTH))
  1613. a = *(*Tuint32_t)(unsafe.Pointer(state))
  1614. b = *(*Tuint32_t)(unsafe.Pointer(state + 1*4))
  1615. c = *(*Tuint32_t)(unsafe.Pointer(state + 2*4))
  1616. d = *(*Tuint32_t)(unsafe.Pointer(state + 3*4))
  1617. e = *(*Tuint32_t)(unsafe.Pointer(state + 4*4))
  1618. /* Round 1 */
  1619. a = (a+(b^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+0x00000000)<<int32(11) | (a+(b^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + e
  1620. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1621. e = (e+(a^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+0x00000000)<<int32(14) | (e+(a^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + d
  1622. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1623. d = (d+(e^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+0x00000000)<<int32(15) | (d+(e^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + c
  1624. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1625. c = (c+(d^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+0x00000000)<<int32(12) | (c+(d^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + b
  1626. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1627. b = (b+(c^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+0x00000000)<<int32(5) | (b+(c^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + a
  1628. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1629. a = (a+(b^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+0x00000000)<<int32(8) | (a+(b^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + e
  1630. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1631. e = (e+(a^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+0x00000000)<<int32(7) | (e+(a^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + d
  1632. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1633. d = (d+(e^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+0x00000000)<<int32(9) | (d+(e^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + c
  1634. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1635. c = (c+(d^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+0x00000000)<<int32(11) | (c+(d^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + b
  1636. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1637. b = (b+(c^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+0x00000000)<<int32(13) | (b+(c^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + a
  1638. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1639. a = (a+(b^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+0x00000000)<<int32(14) | (a+(b^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + e
  1640. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1641. e = (e+(a^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+0x00000000)<<int32(15) | (e+(a^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + d
  1642. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1643. d = (d+(e^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+0x00000000)<<int32(6) | (d+(e^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + c
  1644. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1645. c = (c+(d^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+0x00000000)<<int32(7) | (c+(d^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + b
  1646. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1647. b = (b+(c^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+0x00000000)<<int32(9) | (b+(c^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + a
  1648. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1649. a = (a+(b^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+0x00000000)<<int32(8) | (a+(b^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + e
  1650. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #15 */
  1651. /* Round 2 */
  1652. e = (e+(a&b|^a&c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+uint32(0x5A827999))<<int32(7) | (e+(a&b|^a&c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+uint32(0x5A827999))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + d
  1653. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1654. d = (d+(e&a|^e&b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+uint32(0x5A827999))<<int32(6) | (d+(e&a|^e&b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+uint32(0x5A827999))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + c
  1655. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1656. c = (c+(d&e|^d&a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+uint32(0x5A827999))<<int32(8) | (c+(d&e|^d&a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+uint32(0x5A827999))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + b
  1657. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1658. b = (b+(c&d|^c&e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+uint32(0x5A827999))<<int32(13) | (b+(c&d|^c&e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+uint32(0x5A827999))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + a
  1659. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1660. a = (a+(b&c|^b&d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+uint32(0x5A827999))<<int32(11) | (a+(b&c|^b&d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+uint32(0x5A827999))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + e
  1661. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1662. e = (e+(a&b|^a&c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+uint32(0x5A827999))<<int32(9) | (e+(a&b|^a&c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+uint32(0x5A827999))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + d
  1663. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1664. d = (d+(e&a|^e&b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+uint32(0x5A827999))<<int32(7) | (d+(e&a|^e&b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+uint32(0x5A827999))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + c
  1665. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1666. c = (c+(d&e|^d&a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+uint32(0x5A827999))<<int32(15) | (c+(d&e|^d&a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+uint32(0x5A827999))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + b
  1667. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1668. b = (b+(c&d|^c&e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+uint32(0x5A827999))<<int32(7) | (b+(c&d|^c&e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+uint32(0x5A827999))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + a
  1669. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1670. a = (a+(b&c|^b&d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+uint32(0x5A827999))<<int32(12) | (a+(b&c|^b&d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+uint32(0x5A827999))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + e
  1671. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1672. e = (e+(a&b|^a&c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+uint32(0x5A827999))<<int32(15) | (e+(a&b|^a&c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+uint32(0x5A827999))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + d
  1673. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1674. d = (d+(e&a|^e&b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+uint32(0x5A827999))<<int32(9) | (d+(e&a|^e&b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+uint32(0x5A827999))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + c
  1675. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1676. c = (c+(d&e|^d&a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+uint32(0x5A827999))<<int32(11) | (c+(d&e|^d&a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+uint32(0x5A827999))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + b
  1677. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1678. b = (b+(c&d|^c&e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+uint32(0x5A827999))<<int32(7) | (b+(c&d|^c&e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+uint32(0x5A827999))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + a
  1679. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1680. a = (a+(b&c|^b&d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+uint32(0x5A827999))<<int32(13) | (a+(b&c|^b&d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+uint32(0x5A827999))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + e
  1681. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1682. e = (e+(a&b|^a&c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+uint32(0x5A827999))<<int32(12) | (e+(a&b|^a&c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+uint32(0x5A827999))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + d
  1683. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #31 */
  1684. /* Round 3 */
  1685. d = (d+(e|^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+uint32(0x6ED9EBA1))<<int32(11) | (d+(e|^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+uint32(0x6ED9EBA1))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + c
  1686. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1687. c = (c+(d|^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+uint32(0x6ED9EBA1))<<int32(13) | (c+(d|^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+uint32(0x6ED9EBA1))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + b
  1688. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1689. b = (b+(c|^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+uint32(0x6ED9EBA1))<<int32(6) | (b+(c|^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+uint32(0x6ED9EBA1))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + a
  1690. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1691. a = (a+(b|^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+uint32(0x6ED9EBA1))<<int32(7) | (a+(b|^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+uint32(0x6ED9EBA1))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + e
  1692. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1693. e = (e+(a|^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+uint32(0x6ED9EBA1))<<int32(14) | (e+(a|^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+uint32(0x6ED9EBA1))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + d
  1694. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1695. d = (d+(e|^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+uint32(0x6ED9EBA1))<<int32(9) | (d+(e|^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+uint32(0x6ED9EBA1))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + c
  1696. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1697. c = (c+(d|^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+uint32(0x6ED9EBA1))<<int32(13) | (c+(d|^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+uint32(0x6ED9EBA1))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + b
  1698. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1699. b = (b+(c|^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+uint32(0x6ED9EBA1))<<int32(15) | (b+(c|^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+uint32(0x6ED9EBA1))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + a
  1700. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1701. a = (a+(b|^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+uint32(0x6ED9EBA1))<<int32(14) | (a+(b|^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+uint32(0x6ED9EBA1))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + e
  1702. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1703. e = (e+(a|^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+uint32(0x6ED9EBA1))<<int32(8) | (e+(a|^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+uint32(0x6ED9EBA1))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + d
  1704. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1705. d = (d+(e|^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+uint32(0x6ED9EBA1))<<int32(13) | (d+(e|^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+uint32(0x6ED9EBA1))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + c
  1706. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1707. c = (c+(d|^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+uint32(0x6ED9EBA1))<<int32(6) | (c+(d|^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+uint32(0x6ED9EBA1))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + b
  1708. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1709. b = (b+(c|^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+uint32(0x6ED9EBA1))<<int32(5) | (b+(c|^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+uint32(0x6ED9EBA1))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + a
  1710. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1711. a = (a+(b|^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+uint32(0x6ED9EBA1))<<int32(12) | (a+(b|^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+uint32(0x6ED9EBA1))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + e
  1712. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1713. e = (e+(a|^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+uint32(0x6ED9EBA1))<<int32(7) | (e+(a|^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+uint32(0x6ED9EBA1))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + d
  1714. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1715. d = (d+(e|^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+uint32(0x6ED9EBA1))<<int32(5) | (d+(e|^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+uint32(0x6ED9EBA1))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + c
  1716. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #47 */
  1717. /* Round 4 */
  1718. c = (c+(d&a | e & ^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+uint32(0x8F1BBCDC))<<int32(11) | (c+(d&a | e & ^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+uint32(0x8F1BBCDC))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + b
  1719. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1720. b = (b+(c&e | d & ^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+uint32(0x8F1BBCDC))<<int32(12) | (b+(c&e | d & ^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+uint32(0x8F1BBCDC))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + a
  1721. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1722. a = (a+(b&d | c & ^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+uint32(0x8F1BBCDC))<<int32(14) | (a+(b&d | c & ^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+uint32(0x8F1BBCDC))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + e
  1723. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1724. e = (e+(a&c | b & ^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+uint32(0x8F1BBCDC))<<int32(15) | (e+(a&c | b & ^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+uint32(0x8F1BBCDC))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + d
  1725. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1726. d = (d+(e&b | a & ^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+uint32(0x8F1BBCDC))<<int32(14) | (d+(e&b | a & ^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+uint32(0x8F1BBCDC))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + c
  1727. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1728. c = (c+(d&a | e & ^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+uint32(0x8F1BBCDC))<<int32(15) | (c+(d&a | e & ^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+uint32(0x8F1BBCDC))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + b
  1729. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1730. b = (b+(c&e | d & ^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+uint32(0x8F1BBCDC))<<int32(9) | (b+(c&e | d & ^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+uint32(0x8F1BBCDC))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + a
  1731. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1732. a = (a+(b&d | c & ^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+uint32(0x8F1BBCDC))<<int32(8) | (a+(b&d | c & ^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+uint32(0x8F1BBCDC))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + e
  1733. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1734. e = (e+(a&c | b & ^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+uint32(0x8F1BBCDC))<<int32(9) | (e+(a&c | b & ^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+uint32(0x8F1BBCDC))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + d
  1735. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1736. d = (d+(e&b | a & ^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+uint32(0x8F1BBCDC))<<int32(14) | (d+(e&b | a & ^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+uint32(0x8F1BBCDC))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + c
  1737. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1738. c = (c+(d&a | e & ^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+uint32(0x8F1BBCDC))<<int32(5) | (c+(d&a | e & ^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+uint32(0x8F1BBCDC))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + b
  1739. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1740. b = (b+(c&e | d & ^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+uint32(0x8F1BBCDC))<<int32(6) | (b+(c&e | d & ^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+uint32(0x8F1BBCDC))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + a
  1741. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1742. a = (a+(b&d | c & ^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+uint32(0x8F1BBCDC))<<int32(8) | (a+(b&d | c & ^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+uint32(0x8F1BBCDC))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + e
  1743. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1744. e = (e+(a&c | b & ^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+uint32(0x8F1BBCDC))<<int32(6) | (e+(a&c | b & ^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+uint32(0x8F1BBCDC))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + d
  1745. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1746. d = (d+(e&b | a & ^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+uint32(0x8F1BBCDC))<<int32(5) | (d+(e&b | a & ^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+uint32(0x8F1BBCDC))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + c
  1747. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1748. c = (c+(d&a | e & ^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+uint32(0x8F1BBCDC))<<int32(12) | (c+(d&a | e & ^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+uint32(0x8F1BBCDC))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + b
  1749. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #63 */
  1750. /* Round 5 */
  1751. b = (b+(c^(d|^e))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+uint32(0xA953FD4E))<<int32(9) | (b+(c^(d|^e))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+uint32(0xA953FD4E))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + a
  1752. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1753. a = (a+(b^(c|^d))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+uint32(0xA953FD4E))<<int32(15) | (a+(b^(c|^d))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+uint32(0xA953FD4E))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + e
  1754. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1755. e = (e+(a^(b|^c))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+uint32(0xA953FD4E))<<int32(5) | (e+(a^(b|^c))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+uint32(0xA953FD4E))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + d
  1756. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1757. d = (d+(e^(a|^b))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+uint32(0xA953FD4E))<<int32(11) | (d+(e^(a|^b))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+uint32(0xA953FD4E))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + c
  1758. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1759. c = (c+(d^(e|^a))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+uint32(0xA953FD4E))<<int32(6) | (c+(d^(e|^a))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+uint32(0xA953FD4E))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + b
  1760. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1761. b = (b+(c^(d|^e))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+uint32(0xA953FD4E))<<int32(8) | (b+(c^(d|^e))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+uint32(0xA953FD4E))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + a
  1762. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1763. a = (a+(b^(c|^d))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+uint32(0xA953FD4E))<<int32(13) | (a+(b^(c|^d))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+uint32(0xA953FD4E))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + e
  1764. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1765. e = (e+(a^(b|^c))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+uint32(0xA953FD4E))<<int32(12) | (e+(a^(b|^c))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+uint32(0xA953FD4E))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + d
  1766. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1767. d = (d+(e^(a|^b))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+uint32(0xA953FD4E))<<int32(5) | (d+(e^(a|^b))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+uint32(0xA953FD4E))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + c
  1768. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1769. c = (c+(d^(e|^a))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+uint32(0xA953FD4E))<<int32(12) | (c+(d^(e|^a))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+uint32(0xA953FD4E))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + b
  1770. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1771. b = (b+(c^(d|^e))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+uint32(0xA953FD4E))<<int32(13) | (b+(c^(d|^e))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+uint32(0xA953FD4E))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + a
  1772. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1773. a = (a+(b^(c|^d))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+uint32(0xA953FD4E))<<int32(14) | (a+(b^(c|^d))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+uint32(0xA953FD4E))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + e
  1774. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1775. e = (e+(a^(b|^c))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+uint32(0xA953FD4E))<<int32(11) | (e+(a^(b|^c))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+uint32(0xA953FD4E))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + d
  1776. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1777. d = (d+(e^(a|^b))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+uint32(0xA953FD4E))<<int32(8) | (d+(e^(a|^b))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+uint32(0xA953FD4E))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + c
  1778. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1779. c = (c+(d^(e|^a))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+uint32(0xA953FD4E))<<int32(5) | (c+(d^(e|^a))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+uint32(0xA953FD4E))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + b
  1780. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1781. b = (b+(c^(d|^e))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+uint32(0xA953FD4E))<<int32(6) | (b+(c^(d|^e))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+uint32(0xA953FD4E))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + a
  1782. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #79 */
  1783. aa = a
  1784. bb = b
  1785. cc = c
  1786. dd = d
  1787. ee = e
  1788. a = *(*Tuint32_t)(unsafe.Pointer(state))
  1789. b = *(*Tuint32_t)(unsafe.Pointer(state + 1*4))
  1790. c = *(*Tuint32_t)(unsafe.Pointer(state + 2*4))
  1791. d = *(*Tuint32_t)(unsafe.Pointer(state + 3*4))
  1792. e = *(*Tuint32_t)(unsafe.Pointer(state + 4*4))
  1793. /* Parallel round 1 */
  1794. a = (a+(b^(c|^d))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+uint32(0x50A28BE6))<<int32(8) | (a+(b^(c|^d))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+uint32(0x50A28BE6))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + e
  1795. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1796. e = (e+(a^(b|^c))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+uint32(0x50A28BE6))<<int32(9) | (e+(a^(b|^c))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+uint32(0x50A28BE6))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + d
  1797. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1798. d = (d+(e^(a|^b))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+uint32(0x50A28BE6))<<int32(9) | (d+(e^(a|^b))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+uint32(0x50A28BE6))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + c
  1799. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1800. c = (c+(d^(e|^a))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+uint32(0x50A28BE6))<<int32(11) | (c+(d^(e|^a))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+uint32(0x50A28BE6))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + b
  1801. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1802. b = (b+(c^(d|^e))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+uint32(0x50A28BE6))<<int32(13) | (b+(c^(d|^e))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+uint32(0x50A28BE6))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + a
  1803. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1804. a = (a+(b^(c|^d))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+uint32(0x50A28BE6))<<int32(15) | (a+(b^(c|^d))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+uint32(0x50A28BE6))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + e
  1805. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1806. e = (e+(a^(b|^c))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+uint32(0x50A28BE6))<<int32(15) | (e+(a^(b|^c))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+uint32(0x50A28BE6))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + d
  1807. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1808. d = (d+(e^(a|^b))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+uint32(0x50A28BE6))<<int32(5) | (d+(e^(a|^b))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+uint32(0x50A28BE6))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + c
  1809. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1810. c = (c+(d^(e|^a))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+uint32(0x50A28BE6))<<int32(7) | (c+(d^(e|^a))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+uint32(0x50A28BE6))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + b
  1811. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1812. b = (b+(c^(d|^e))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+uint32(0x50A28BE6))<<int32(7) | (b+(c^(d|^e))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+uint32(0x50A28BE6))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + a
  1813. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1814. a = (a+(b^(c|^d))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+uint32(0x50A28BE6))<<int32(8) | (a+(b^(c|^d))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+uint32(0x50A28BE6))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + e
  1815. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1816. e = (e+(a^(b|^c))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+uint32(0x50A28BE6))<<int32(11) | (e+(a^(b|^c))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+uint32(0x50A28BE6))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + d
  1817. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1818. d = (d+(e^(a|^b))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+uint32(0x50A28BE6))<<int32(14) | (d+(e^(a|^b))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+uint32(0x50A28BE6))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + c
  1819. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1820. c = (c+(d^(e|^a))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+uint32(0x50A28BE6))<<int32(14) | (c+(d^(e|^a))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+uint32(0x50A28BE6))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + b
  1821. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1822. b = (b+(c^(d|^e))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+uint32(0x50A28BE6))<<int32(12) | (b+(c^(d|^e))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+uint32(0x50A28BE6))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + a
  1823. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1824. a = (a+(b^(c|^d))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+uint32(0x50A28BE6))<<int32(6) | (a+(b^(c|^d))+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+uint32(0x50A28BE6))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + e
  1825. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #15 */
  1826. /* Parallel round 2 */
  1827. e = (e+(a&c | b & ^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+uint32(0x5C4DD124))<<int32(9) | (e+(a&c | b & ^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+uint32(0x5C4DD124))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + d
  1828. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1829. d = (d+(e&b | a & ^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+uint32(0x5C4DD124))<<int32(13) | (d+(e&b | a & ^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+uint32(0x5C4DD124))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + c
  1830. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1831. c = (c+(d&a | e & ^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+uint32(0x5C4DD124))<<int32(15) | (c+(d&a | e & ^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+uint32(0x5C4DD124))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + b
  1832. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1833. b = (b+(c&e | d & ^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+uint32(0x5C4DD124))<<int32(7) | (b+(c&e | d & ^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+uint32(0x5C4DD124))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + a
  1834. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1835. a = (a+(b&d | c & ^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+uint32(0x5C4DD124))<<int32(12) | (a+(b&d | c & ^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+uint32(0x5C4DD124))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + e
  1836. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1837. e = (e+(a&c | b & ^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+uint32(0x5C4DD124))<<int32(8) | (e+(a&c | b & ^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+uint32(0x5C4DD124))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + d
  1838. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1839. d = (d+(e&b | a & ^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+uint32(0x5C4DD124))<<int32(9) | (d+(e&b | a & ^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+uint32(0x5C4DD124))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + c
  1840. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1841. c = (c+(d&a | e & ^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+uint32(0x5C4DD124))<<int32(11) | (c+(d&a | e & ^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+uint32(0x5C4DD124))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + b
  1842. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1843. b = (b+(c&e | d & ^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+uint32(0x5C4DD124))<<int32(7) | (b+(c&e | d & ^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+uint32(0x5C4DD124))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + a
  1844. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1845. a = (a+(b&d | c & ^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+uint32(0x5C4DD124))<<int32(7) | (a+(b&d | c & ^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+uint32(0x5C4DD124))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + e
  1846. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1847. e = (e+(a&c | b & ^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+uint32(0x5C4DD124))<<int32(12) | (e+(a&c | b & ^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+uint32(0x5C4DD124))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + d
  1848. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1849. d = (d+(e&b | a & ^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+uint32(0x5C4DD124))<<int32(7) | (d+(e&b | a & ^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+uint32(0x5C4DD124))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + c
  1850. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1851. c = (c+(d&a | e & ^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+uint32(0x5C4DD124))<<int32(6) | (c+(d&a | e & ^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+uint32(0x5C4DD124))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + b
  1852. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1853. b = (b+(c&e | d & ^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+uint32(0x5C4DD124))<<int32(15) | (b+(c&e | d & ^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+uint32(0x5C4DD124))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + a
  1854. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1855. a = (a+(b&d | c & ^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+uint32(0x5C4DD124))<<int32(13) | (a+(b&d | c & ^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+uint32(0x5C4DD124))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + e
  1856. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1857. e = (e+(a&c | b & ^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+uint32(0x5C4DD124))<<int32(11) | (e+(a&c | b & ^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+uint32(0x5C4DD124))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + d
  1858. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #31 */
  1859. /* Parallel round 3 */
  1860. d = (d+(e|^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+uint32(0x6D703EF3))<<int32(9) | (d+(e|^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+uint32(0x6D703EF3))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + c
  1861. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1862. c = (c+(d|^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+uint32(0x6D703EF3))<<int32(7) | (c+(d|^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+uint32(0x6D703EF3))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + b
  1863. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1864. b = (b+(c|^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+uint32(0x6D703EF3))<<int32(15) | (b+(c|^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+uint32(0x6D703EF3))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + a
  1865. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1866. a = (a+(b|^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+uint32(0x6D703EF3))<<int32(11) | (a+(b|^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+uint32(0x6D703EF3))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + e
  1867. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1868. e = (e+(a|^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+uint32(0x6D703EF3))<<int32(8) | (e+(a|^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+uint32(0x6D703EF3))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + d
  1869. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1870. d = (d+(e|^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+uint32(0x6D703EF3))<<int32(6) | (d+(e|^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+uint32(0x6D703EF3))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + c
  1871. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1872. c = (c+(d|^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+uint32(0x6D703EF3))<<int32(6) | (c+(d|^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+uint32(0x6D703EF3))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + b
  1873. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1874. b = (b+(c|^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+uint32(0x6D703EF3))<<int32(14) | (b+(c|^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+uint32(0x6D703EF3))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + a
  1875. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1876. a = (a+(b|^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+uint32(0x6D703EF3))<<int32(12) | (a+(b|^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+uint32(0x6D703EF3))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + e
  1877. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1878. e = (e+(a|^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+uint32(0x6D703EF3))<<int32(13) | (e+(a|^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+uint32(0x6D703EF3))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + d
  1879. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1880. d = (d+(e|^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+uint32(0x6D703EF3))<<int32(5) | (d+(e|^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+uint32(0x6D703EF3))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + c
  1881. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1882. c = (c+(d|^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+uint32(0x6D703EF3))<<int32(14) | (c+(d|^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+uint32(0x6D703EF3))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + b
  1883. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1884. b = (b+(c|^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+uint32(0x6D703EF3))<<int32(13) | (b+(c|^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+uint32(0x6D703EF3))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + a
  1885. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1886. a = (a+(b|^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+uint32(0x6D703EF3))<<int32(13) | (a+(b|^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+uint32(0x6D703EF3))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + e
  1887. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1888. e = (e+(a|^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+uint32(0x6D703EF3))<<int32(7) | (e+(a|^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+uint32(0x6D703EF3))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) + d
  1889. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1890. d = (d+(e|^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+uint32(0x6D703EF3))<<int32(5) | (d+(e|^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+uint32(0x6D703EF3))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + c
  1891. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #47 */
  1892. /* Parallel round 4 */
  1893. c = (c+(d&e|^d&a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+uint32(0x7A6D76E9))<<int32(15) | (c+(d&e|^d&a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+uint32(0x7A6D76E9))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + b
  1894. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1895. b = (b+(c&d|^c&e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+uint32(0x7A6D76E9))<<int32(5) | (b+(c&d|^c&e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+uint32(0x7A6D76E9))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + a
  1896. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1897. a = (a+(b&c|^b&d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+uint32(0x7A6D76E9))<<int32(8) | (a+(b&c|^b&d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+uint32(0x7A6D76E9))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + e
  1898. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1899. e = (e+(a&b|^a&c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+uint32(0x7A6D76E9))<<int32(11) | (e+(a&b|^a&c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+uint32(0x7A6D76E9))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + d
  1900. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1901. d = (d+(e&a|^e&b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+uint32(0x7A6D76E9))<<int32(14) | (d+(e&a|^e&b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+uint32(0x7A6D76E9))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + c
  1902. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1903. c = (c+(d&e|^d&a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+uint32(0x7A6D76E9))<<int32(14) | (c+(d&e|^d&a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+uint32(0x7A6D76E9))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + b
  1904. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1905. b = (b+(c&d|^c&e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+uint32(0x7A6D76E9))<<int32(6) | (b+(c&d|^c&e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+uint32(0x7A6D76E9))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + a
  1906. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1907. a = (a+(b&c|^b&d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+uint32(0x7A6D76E9))<<int32(14) | (a+(b&c|^b&d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+uint32(0x7A6D76E9))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + e
  1908. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1909. e = (e+(a&b|^a&c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+uint32(0x7A6D76E9))<<int32(6) | (e+(a&b|^a&c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+uint32(0x7A6D76E9))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + d
  1910. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1911. d = (d+(e&a|^e&b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+uint32(0x7A6D76E9))<<int32(9) | (d+(e&a|^e&b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+uint32(0x7A6D76E9))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + c
  1912. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1913. c = (c+(d&e|^d&a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+uint32(0x7A6D76E9))<<int32(12) | (c+(d&e|^d&a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+uint32(0x7A6D76E9))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + b
  1914. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1915. b = (b+(c&d|^c&e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+uint32(0x7A6D76E9))<<int32(9) | (b+(c&d|^c&e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+uint32(0x7A6D76E9))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + a
  1916. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1917. a = (a+(b&c|^b&d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+uint32(0x7A6D76E9))<<int32(12) | (a+(b&c|^b&d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+uint32(0x7A6D76E9))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + e
  1918. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1919. e = (e+(a&b|^a&c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+uint32(0x7A6D76E9))<<int32(5) | (e+(a&b|^a&c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+uint32(0x7A6D76E9))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + d
  1920. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1921. d = (d+(e&a|^e&b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+uint32(0x7A6D76E9))<<int32(15) | (d+(e&a|^e&b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+uint32(0x7A6D76E9))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + c
  1922. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1923. c = (c+(d&e|^d&a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+uint32(0x7A6D76E9))<<int32(8) | (c+(d&e|^d&a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+uint32(0x7A6D76E9))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + b
  1924. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #63 */
  1925. /* Parallel round 5 */
  1926. b = (b+(c^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+0x00000000)<<int32(8) | (b+(c^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + a
  1927. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1928. a = (a+(b^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+0x00000000)<<int32(5) | (a+(b^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + e
  1929. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1930. e = (e+(a^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+0x00000000)<<int32(12) | (e+(a^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + d
  1931. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1932. d = (d+(e^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+0x00000000)<<int32(9) | (d+(e^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9)) + c
  1933. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1934. c = (c+(d^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+0x00000000)<<int32(12) | (c+(d^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12)) + b
  1935. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1936. b = (b+(c^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+0x00000000)<<int32(5) | (b+(c^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + a
  1937. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1938. a = (a+(b^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+0x00000000)<<int32(14) | (a+(b^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14)) + e
  1939. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1940. e = (e+(a^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+0x00000000)<<int32(6) | (e+(a^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + d
  1941. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1942. d = (d+(e^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+0x00000000)<<int32(8) | (d+(e^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)) + c
  1943. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1944. c = (c+(d^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+0x00000000)<<int32(13) | (c+(d^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + b
  1945. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1946. b = (b+(c^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+0x00000000)<<int32(6) | (b+(c^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) + a
  1947. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1948. a = (a+(b^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+0x00000000)<<int32(5) | (a+(b^c^d)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)) + e
  1949. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1950. e = (e+(a^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+0x00000000)<<int32(15) | (e+(a^b^c)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15)) + d
  1951. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1952. d = (d+(e^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+0x00000000)<<int32(13) | (d+(e^a^b)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13)) + c
  1953. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1954. c = (c+(d^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+0x00000000)<<int32(11) | (c+(d^e^a)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + b
  1955. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1956. b = (b+(c^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+0x00000000)<<int32(11) | (b+(c^d^e)+(*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]+0x00000000)>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11)) + a
  1957. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #79 */
  1958. t = *(*Tuint32_t)(unsafe.Pointer(state + 1*4)) + cc + d
  1959. *(*Tuint32_t)(unsafe.Pointer(state + 1*4)) = *(*Tuint32_t)(unsafe.Pointer(state + 2*4)) + dd + e
  1960. *(*Tuint32_t)(unsafe.Pointer(state + 2*4)) = *(*Tuint32_t)(unsafe.Pointer(state + 3*4)) + ee + a
  1961. *(*Tuint32_t)(unsafe.Pointer(state + 3*4)) = *(*Tuint32_t)(unsafe.Pointer(state + 4*4)) + aa + b
  1962. *(*Tuint32_t)(unsafe.Pointer(state + 4*4)) = *(*Tuint32_t)(unsafe.Pointer(state)) + bb + c
  1963. *(*Tuint32_t)(unsafe.Pointer(state)) = t
  1964. }
  1965. const m_SHA1_BLOCK_LENGTH = 64
  1966. const m_SHA1_DIGEST_LENGTH = 20
  1967. type TSHA1_CTX = struct {
  1968. Fstate [5]Tuint32_t
  1969. Fcount Tuint64_t
  1970. Fbuffer [64]Tuint8_t
  1971. }
  1972. /*
  1973. * blk0() and blk() perform the initial expand.
  1974. * I got the idea of expanding during the round function from SSLeay
  1975. */
  1976. /*
  1977. * (R0+R1), R2, R3, R4 are the different operations (rounds) used in SHA1
  1978. */
  1979. type TCHAR64LONG16 = struct {
  1980. Fl [0][16]Tuint32_t
  1981. Fc [64]Tuint8_t
  1982. }
  1983. // C documentation
  1984. //
  1985. // /*
  1986. // * Hash a single 512-bit block. This is the core of the algorithm.
  1987. // */
  1988. func XSHA1Transform(tls *libc.TLS, state uintptr, buffer uintptr) {
  1989. bp := tls.Alloc(64)
  1990. defer tls.Free(64)
  1991. var a, b, c, d, e, v1, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v2, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v3, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v4, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v5, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v6, v60, v61, v62, v63, v64, v65, v66, v67, v68, v69, v7, v70, v71, v72, v73, v74, v75, v76, v77, v78, v79, v8, v80, v81, v82, v83, v84, v9 Tuint32_t
  1992. var block uintptr
  1993. var _ /* workspace at bp+0 */ [64]Tuint8_t
  1994. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = a, b, block, c, d, e, v1, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v2, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v3, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v4, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v5, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v6, v60, v61, v62, v63, v64, v65, v66, v67, v68, v69, v7, v70, v71, v72, v73, v74, v75, v76, v77, v78, v79, v8, v80, v81, v82, v83, v84, v9
  1995. block = bp
  1996. libc.Xmemcpy(tls, block, buffer, uint64(m_SHA1_BLOCK_LENGTH))
  1997. /* Copy context->state[] to working vars */
  1998. a = *(*Tuint32_t)(unsafe.Pointer(state))
  1999. b = *(*Tuint32_t)(unsafe.Pointer(state + 1*4))
  2000. c = *(*Tuint32_t)(unsafe.Pointer(state + 2*4))
  2001. d = *(*Tuint32_t)(unsafe.Pointer(state + 3*4))
  2002. e = *(*Tuint32_t)(unsafe.Pointer(state + 4*4))
  2003. /* 4 rounds of 20 operations each. Loop unrolled. */
  2004. v1 = (*(*Tuint32_t)(unsafe.Pointer(block))<<libc.Int32FromInt32(24)|*(*Tuint32_t)(unsafe.Pointer(block))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block))<<libc.Int32FromInt32(8)|*(*Tuint32_t)(unsafe.Pointer(block))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF)
  2005. *(*Tuint32_t)(unsafe.Pointer(block)) = v1
  2006. e += b&(c^d) ^ d + v1 + uint32(0x5A827999) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2007. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2008. v2 = (*(*Tuint32_t)(unsafe.Pointer(block + 1*4))<<libc.Int32FromInt32(24)|*(*Tuint32_t)(unsafe.Pointer(block + 1*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 1*4))<<libc.Int32FromInt32(8)|*(*Tuint32_t)(unsafe.Pointer(block + 1*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF)
  2009. *(*Tuint32_t)(unsafe.Pointer(block + 1*4)) = v2
  2010. d += a&(b^c) ^ c + v2 + uint32(0x5A827999) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2011. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2012. v3 = (*(*Tuint32_t)(unsafe.Pointer(block + 2*4))<<libc.Int32FromInt32(24)|*(*Tuint32_t)(unsafe.Pointer(block + 2*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 2*4))<<libc.Int32FromInt32(8)|*(*Tuint32_t)(unsafe.Pointer(block + 2*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF)
  2013. *(*Tuint32_t)(unsafe.Pointer(block + 2*4)) = v3
  2014. c += e&(a^b) ^ b + v3 + uint32(0x5A827999) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2015. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2016. v4 = (*(*Tuint32_t)(unsafe.Pointer(block + 3*4))<<libc.Int32FromInt32(24)|*(*Tuint32_t)(unsafe.Pointer(block + 3*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 3*4))<<libc.Int32FromInt32(8)|*(*Tuint32_t)(unsafe.Pointer(block + 3*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF)
  2017. *(*Tuint32_t)(unsafe.Pointer(block + 3*4)) = v4
  2018. b += d&(e^a) ^ a + v4 + uint32(0x5A827999) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2019. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2020. v5 = (*(*Tuint32_t)(unsafe.Pointer(block + 4*4))<<libc.Int32FromInt32(24)|*(*Tuint32_t)(unsafe.Pointer(block + 4*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 4*4))<<libc.Int32FromInt32(8)|*(*Tuint32_t)(unsafe.Pointer(block + 4*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF)
  2021. *(*Tuint32_t)(unsafe.Pointer(block + 4*4)) = v5
  2022. a += c&(d^e) ^ e + v5 + uint32(0x5A827999) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2023. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2024. v6 = (*(*Tuint32_t)(unsafe.Pointer(block + 5*4))<<libc.Int32FromInt32(24)|*(*Tuint32_t)(unsafe.Pointer(block + 5*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 5*4))<<libc.Int32FromInt32(8)|*(*Tuint32_t)(unsafe.Pointer(block + 5*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF)
  2025. *(*Tuint32_t)(unsafe.Pointer(block + 5*4)) = v6
  2026. e += b&(c^d) ^ d + v6 + uint32(0x5A827999) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2027. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2028. v7 = (*(*Tuint32_t)(unsafe.Pointer(block + 6*4))<<libc.Int32FromInt32(24)|*(*Tuint32_t)(unsafe.Pointer(block + 6*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 6*4))<<libc.Int32FromInt32(8)|*(*Tuint32_t)(unsafe.Pointer(block + 6*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF)
  2029. *(*Tuint32_t)(unsafe.Pointer(block + 6*4)) = v7
  2030. d += a&(b^c) ^ c + v7 + uint32(0x5A827999) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2031. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2032. v8 = (*(*Tuint32_t)(unsafe.Pointer(block + 7*4))<<libc.Int32FromInt32(24)|*(*Tuint32_t)(unsafe.Pointer(block + 7*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 7*4))<<libc.Int32FromInt32(8)|*(*Tuint32_t)(unsafe.Pointer(block + 7*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF)
  2033. *(*Tuint32_t)(unsafe.Pointer(block + 7*4)) = v8
  2034. c += e&(a^b) ^ b + v8 + uint32(0x5A827999) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2035. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2036. v9 = (*(*Tuint32_t)(unsafe.Pointer(block + 8*4))<<libc.Int32FromInt32(24)|*(*Tuint32_t)(unsafe.Pointer(block + 8*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 8*4))<<libc.Int32FromInt32(8)|*(*Tuint32_t)(unsafe.Pointer(block + 8*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF)
  2037. *(*Tuint32_t)(unsafe.Pointer(block + 8*4)) = v9
  2038. b += d&(e^a) ^ a + v9 + uint32(0x5A827999) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2039. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2040. v10 = (*(*Tuint32_t)(unsafe.Pointer(block + 9*4))<<libc.Int32FromInt32(24)|*(*Tuint32_t)(unsafe.Pointer(block + 9*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 9*4))<<libc.Int32FromInt32(8)|*(*Tuint32_t)(unsafe.Pointer(block + 9*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF)
  2041. *(*Tuint32_t)(unsafe.Pointer(block + 9*4)) = v10
  2042. a += c&(d^e) ^ e + v10 + uint32(0x5A827999) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2043. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2044. v11 = (*(*Tuint32_t)(unsafe.Pointer(block + 10*4))<<libc.Int32FromInt32(24)|*(*Tuint32_t)(unsafe.Pointer(block + 10*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 10*4))<<libc.Int32FromInt32(8)|*(*Tuint32_t)(unsafe.Pointer(block + 10*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF)
  2045. *(*Tuint32_t)(unsafe.Pointer(block + 10*4)) = v11
  2046. e += b&(c^d) ^ d + v11 + uint32(0x5A827999) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2047. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2048. v12 = (*(*Tuint32_t)(unsafe.Pointer(block + 11*4))<<libc.Int32FromInt32(24)|*(*Tuint32_t)(unsafe.Pointer(block + 11*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 11*4))<<libc.Int32FromInt32(8)|*(*Tuint32_t)(unsafe.Pointer(block + 11*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF)
  2049. *(*Tuint32_t)(unsafe.Pointer(block + 11*4)) = v12
  2050. d += a&(b^c) ^ c + v12 + uint32(0x5A827999) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2051. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2052. v13 = (*(*Tuint32_t)(unsafe.Pointer(block + 12*4))<<libc.Int32FromInt32(24)|*(*Tuint32_t)(unsafe.Pointer(block + 12*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 12*4))<<libc.Int32FromInt32(8)|*(*Tuint32_t)(unsafe.Pointer(block + 12*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF)
  2053. *(*Tuint32_t)(unsafe.Pointer(block + 12*4)) = v13
  2054. c += e&(a^b) ^ b + v13 + uint32(0x5A827999) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2055. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2056. v14 = (*(*Tuint32_t)(unsafe.Pointer(block + 13*4))<<libc.Int32FromInt32(24)|*(*Tuint32_t)(unsafe.Pointer(block + 13*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 13*4))<<libc.Int32FromInt32(8)|*(*Tuint32_t)(unsafe.Pointer(block + 13*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF)
  2057. *(*Tuint32_t)(unsafe.Pointer(block + 13*4)) = v14
  2058. b += d&(e^a) ^ a + v14 + uint32(0x5A827999) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2059. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2060. v15 = (*(*Tuint32_t)(unsafe.Pointer(block + 14*4))<<libc.Int32FromInt32(24)|*(*Tuint32_t)(unsafe.Pointer(block + 14*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 14*4))<<libc.Int32FromInt32(8)|*(*Tuint32_t)(unsafe.Pointer(block + 14*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF)
  2061. *(*Tuint32_t)(unsafe.Pointer(block + 14*4)) = v15
  2062. a += c&(d^e) ^ e + v15 + uint32(0x5A827999) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2063. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2064. v16 = (*(*Tuint32_t)(unsafe.Pointer(block + 15*4))<<libc.Int32FromInt32(24)|*(*Tuint32_t)(unsafe.Pointer(block + 15*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(24)))&libc.Uint32FromUint32(0xFF00FF00) | (*(*Tuint32_t)(unsafe.Pointer(block + 15*4))<<libc.Int32FromInt32(8)|*(*Tuint32_t)(unsafe.Pointer(block + 15*4))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(8)))&libc.Uint32FromInt32(0x00FF00FF)
  2065. *(*Tuint32_t)(unsafe.Pointer(block + 15*4)) = v16
  2066. e += b&(c^d) ^ d + v16 + uint32(0x5A827999) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2067. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2068. v17 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(16)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(16)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(16)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(16)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(16)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(16)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(16)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(16)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2069. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(16)&libc.Int32FromInt32(15))*4)) = v17
  2070. d += a&(b^c) ^ c + v17 + uint32(0x5A827999) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2071. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2072. v18 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(17)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(17)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(17)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(17)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(17)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(17)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(17)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(17)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2073. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(17)&libc.Int32FromInt32(15))*4)) = v18
  2074. c += e&(a^b) ^ b + v18 + uint32(0x5A827999) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2075. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2076. v19 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(18)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(18)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(18)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(18)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(18)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(18)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(18)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(18)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2077. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(18)&libc.Int32FromInt32(15))*4)) = v19
  2078. b += d&(e^a) ^ a + v19 + uint32(0x5A827999) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2079. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2080. v20 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(19)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(19)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(19)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(19)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(19)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(19)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(19)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(19)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2081. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(19)&libc.Int32FromInt32(15))*4)) = v20
  2082. a += c&(d^e) ^ e + v20 + uint32(0x5A827999) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2083. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2084. v21 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(20)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(20)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(20)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(20)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(20)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(20)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(20)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(20)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2085. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(20)&libc.Int32FromInt32(15))*4)) = v21
  2086. e += b ^ c ^ d + v21 + uint32(0x6ED9EBA1) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2087. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2088. v22 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(21)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(21)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(21)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(21)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(21)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(21)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(21)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(21)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2089. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(21)&libc.Int32FromInt32(15))*4)) = v22
  2090. d += a ^ b ^ c + v22 + uint32(0x6ED9EBA1) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2091. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2092. v23 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(22)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(22)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(22)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(22)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(22)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(22)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(22)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(22)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2093. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(22)&libc.Int32FromInt32(15))*4)) = v23
  2094. c += e ^ a ^ b + v23 + uint32(0x6ED9EBA1) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2095. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2096. v24 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(23)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(23)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(23)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(23)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(23)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(23)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(23)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(23)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2097. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(23)&libc.Int32FromInt32(15))*4)) = v24
  2098. b += d ^ e ^ a + v24 + uint32(0x6ED9EBA1) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2099. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2100. v25 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(24)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(24)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(24)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(24)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(24)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(24)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(24)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(24)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2101. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(24)&libc.Int32FromInt32(15))*4)) = v25
  2102. a += c ^ d ^ e + v25 + uint32(0x6ED9EBA1) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2103. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2104. v26 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(25)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(25)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(25)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(25)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(25)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(25)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(25)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(25)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2105. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(25)&libc.Int32FromInt32(15))*4)) = v26
  2106. e += b ^ c ^ d + v26 + uint32(0x6ED9EBA1) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2107. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2108. v27 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(26)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(26)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(26)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(26)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(26)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(26)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(26)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(26)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2109. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(26)&libc.Int32FromInt32(15))*4)) = v27
  2110. d += a ^ b ^ c + v27 + uint32(0x6ED9EBA1) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2111. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2112. v28 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(27)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(27)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(27)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(27)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(27)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(27)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(27)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(27)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2113. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(27)&libc.Int32FromInt32(15))*4)) = v28
  2114. c += e ^ a ^ b + v28 + uint32(0x6ED9EBA1) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2115. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2116. v29 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(28)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(28)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(28)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(28)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(28)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(28)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(28)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(28)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2117. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(28)&libc.Int32FromInt32(15))*4)) = v29
  2118. b += d ^ e ^ a + v29 + uint32(0x6ED9EBA1) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2119. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2120. v30 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(29)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(29)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(29)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(29)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(29)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(29)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(29)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(29)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2121. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(29)&libc.Int32FromInt32(15))*4)) = v30
  2122. a += c ^ d ^ e + v30 + uint32(0x6ED9EBA1) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2123. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2124. v31 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(30)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(30)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(30)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(30)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(30)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(30)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(30)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(30)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2125. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(30)&libc.Int32FromInt32(15))*4)) = v31
  2126. e += b ^ c ^ d + v31 + uint32(0x6ED9EBA1) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2127. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2128. v32 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(31)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(31)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(31)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(31)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(31)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(31)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(31)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(31)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2129. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(31)&libc.Int32FromInt32(15))*4)) = v32
  2130. d += a ^ b ^ c + v32 + uint32(0x6ED9EBA1) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2131. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2132. v33 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(32)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(32)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(32)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(32)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(32)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(32)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(32)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(32)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2133. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(32)&libc.Int32FromInt32(15))*4)) = v33
  2134. c += e ^ a ^ b + v33 + uint32(0x6ED9EBA1) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2135. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2136. v34 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(33)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(33)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(33)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(33)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(33)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(33)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(33)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(33)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2137. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(33)&libc.Int32FromInt32(15))*4)) = v34
  2138. b += d ^ e ^ a + v34 + uint32(0x6ED9EBA1) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2139. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2140. v35 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(34)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(34)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(34)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(34)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(34)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(34)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(34)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(34)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2141. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(34)&libc.Int32FromInt32(15))*4)) = v35
  2142. a += c ^ d ^ e + v35 + uint32(0x6ED9EBA1) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2143. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2144. v36 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(35)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(35)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(35)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(35)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(35)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(35)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(35)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(35)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2145. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(35)&libc.Int32FromInt32(15))*4)) = v36
  2146. e += b ^ c ^ d + v36 + uint32(0x6ED9EBA1) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2147. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2148. v37 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(36)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(36)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(36)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(36)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(36)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(36)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(36)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(36)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2149. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(36)&libc.Int32FromInt32(15))*4)) = v37
  2150. d += a ^ b ^ c + v37 + uint32(0x6ED9EBA1) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2151. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2152. v38 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(37)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(37)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(37)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(37)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(37)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(37)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(37)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(37)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2153. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(37)&libc.Int32FromInt32(15))*4)) = v38
  2154. c += e ^ a ^ b + v38 + uint32(0x6ED9EBA1) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2155. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2156. v39 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(38)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(38)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(38)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(38)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(38)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(38)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(38)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(38)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2157. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(38)&libc.Int32FromInt32(15))*4)) = v39
  2158. b += d ^ e ^ a + v39 + uint32(0x6ED9EBA1) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2159. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2160. v40 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(39)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(39)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(39)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(39)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(39)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(39)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(39)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(39)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2161. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(39)&libc.Int32FromInt32(15))*4)) = v40
  2162. a += c ^ d ^ e + v40 + uint32(0x6ED9EBA1) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2163. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2164. v41 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(40)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(40)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(40)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(40)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(40)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(40)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(40)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(40)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2165. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(40)&libc.Int32FromInt32(15))*4)) = v41
  2166. e += (b|c)&d | b&c + v41 + uint32(0x8F1BBCDC) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2167. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2168. v42 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(41)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(41)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(41)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(41)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(41)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(41)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(41)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(41)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2169. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(41)&libc.Int32FromInt32(15))*4)) = v42
  2170. d += (a|b)&c | a&b + v42 + uint32(0x8F1BBCDC) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2171. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2172. v43 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(42)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(42)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(42)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(42)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(42)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(42)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(42)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(42)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2173. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(42)&libc.Int32FromInt32(15))*4)) = v43
  2174. c += (e|a)&b | e&a + v43 + uint32(0x8F1BBCDC) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2175. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2176. v44 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(43)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(43)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(43)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(43)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(43)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(43)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(43)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(43)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2177. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(43)&libc.Int32FromInt32(15))*4)) = v44
  2178. b += (d|e)&a | d&e + v44 + uint32(0x8F1BBCDC) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2179. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2180. v45 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(44)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(44)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(44)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(44)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(44)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(44)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(44)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(44)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2181. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(44)&libc.Int32FromInt32(15))*4)) = v45
  2182. a += (c|d)&e | c&d + v45 + uint32(0x8F1BBCDC) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2183. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2184. v46 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(45)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(45)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(45)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(45)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(45)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(45)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(45)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(45)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2185. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(45)&libc.Int32FromInt32(15))*4)) = v46
  2186. e += (b|c)&d | b&c + v46 + uint32(0x8F1BBCDC) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2187. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2188. v47 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(46)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(46)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(46)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(46)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(46)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(46)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(46)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(46)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2189. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(46)&libc.Int32FromInt32(15))*4)) = v47
  2190. d += (a|b)&c | a&b + v47 + uint32(0x8F1BBCDC) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2191. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2192. v48 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(47)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(47)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(47)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(47)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(47)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(47)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(47)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(47)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2193. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(47)&libc.Int32FromInt32(15))*4)) = v48
  2194. c += (e|a)&b | e&a + v48 + uint32(0x8F1BBCDC) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2195. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2196. v49 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(48)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(48)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(48)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(48)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(48)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(48)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(48)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(48)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2197. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(48)&libc.Int32FromInt32(15))*4)) = v49
  2198. b += (d|e)&a | d&e + v49 + uint32(0x8F1BBCDC) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2199. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2200. v50 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(49)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(49)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(49)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(49)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(49)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(49)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(49)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(49)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2201. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(49)&libc.Int32FromInt32(15))*4)) = v50
  2202. a += (c|d)&e | c&d + v50 + uint32(0x8F1BBCDC) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2203. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2204. v51 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(50)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(50)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(50)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(50)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(50)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(50)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(50)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(50)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2205. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(50)&libc.Int32FromInt32(15))*4)) = v51
  2206. e += (b|c)&d | b&c + v51 + uint32(0x8F1BBCDC) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2207. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2208. v52 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(51)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(51)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(51)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(51)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(51)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(51)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(51)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(51)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2209. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(51)&libc.Int32FromInt32(15))*4)) = v52
  2210. d += (a|b)&c | a&b + v52 + uint32(0x8F1BBCDC) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2211. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2212. v53 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(52)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(52)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(52)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(52)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(52)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(52)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(52)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(52)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2213. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(52)&libc.Int32FromInt32(15))*4)) = v53
  2214. c += (e|a)&b | e&a + v53 + uint32(0x8F1BBCDC) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2215. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2216. v54 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(53)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(53)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(53)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(53)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(53)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(53)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(53)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(53)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2217. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(53)&libc.Int32FromInt32(15))*4)) = v54
  2218. b += (d|e)&a | d&e + v54 + uint32(0x8F1BBCDC) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2219. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2220. v55 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(54)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(54)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(54)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(54)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(54)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(54)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(54)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(54)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2221. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(54)&libc.Int32FromInt32(15))*4)) = v55
  2222. a += (c|d)&e | c&d + v55 + uint32(0x8F1BBCDC) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2223. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2224. v56 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(55)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(55)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(55)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(55)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(55)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(55)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(55)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(55)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2225. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(55)&libc.Int32FromInt32(15))*4)) = v56
  2226. e += (b|c)&d | b&c + v56 + uint32(0x8F1BBCDC) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2227. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2228. v57 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(56)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(56)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(56)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(56)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(56)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(56)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(56)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(56)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2229. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(56)&libc.Int32FromInt32(15))*4)) = v57
  2230. d += (a|b)&c | a&b + v57 + uint32(0x8F1BBCDC) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2231. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2232. v58 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(57)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(57)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(57)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(57)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(57)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(57)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(57)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(57)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2233. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(57)&libc.Int32FromInt32(15))*4)) = v58
  2234. c += (e|a)&b | e&a + v58 + uint32(0x8F1BBCDC) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2235. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2236. v59 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(58)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(58)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(58)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(58)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(58)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(58)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(58)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(58)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2237. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(58)&libc.Int32FromInt32(15))*4)) = v59
  2238. b += (d|e)&a | d&e + v59 + uint32(0x8F1BBCDC) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2239. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2240. v60 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(59)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(59)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(59)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(59)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(59)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(59)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(59)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(59)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2241. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(59)&libc.Int32FromInt32(15))*4)) = v60
  2242. a += (c|d)&e | c&d + v60 + uint32(0x8F1BBCDC) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2243. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2244. v61 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(60)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(60)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(60)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(60)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(60)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(60)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(60)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(60)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2245. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(60)&libc.Int32FromInt32(15))*4)) = v61
  2246. e += b ^ c ^ d + v61 + uint32(0xCA62C1D6) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2247. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2248. v62 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(61)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(61)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(61)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(61)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(61)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(61)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(61)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(61)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2249. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(61)&libc.Int32FromInt32(15))*4)) = v62
  2250. d += a ^ b ^ c + v62 + uint32(0xCA62C1D6) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2251. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2252. v63 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(62)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(62)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(62)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(62)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(62)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(62)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(62)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(62)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2253. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(62)&libc.Int32FromInt32(15))*4)) = v63
  2254. c += e ^ a ^ b + v63 + uint32(0xCA62C1D6) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2255. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2256. v64 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(63)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(63)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(63)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(63)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(63)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(63)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(63)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(63)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2257. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(63)&libc.Int32FromInt32(15))*4)) = v64
  2258. b += d ^ e ^ a + v64 + uint32(0xCA62C1D6) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2259. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2260. v65 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(64)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(64)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(64)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(64)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(64)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(64)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(64)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(64)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2261. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(64)&libc.Int32FromInt32(15))*4)) = v65
  2262. a += c ^ d ^ e + v65 + uint32(0xCA62C1D6) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2263. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2264. v66 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(65)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(65)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(65)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(65)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(65)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(65)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(65)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(65)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2265. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(65)&libc.Int32FromInt32(15))*4)) = v66
  2266. e += b ^ c ^ d + v66 + uint32(0xCA62C1D6) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2267. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2268. v67 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(66)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(66)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(66)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(66)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(66)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(66)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(66)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(66)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2269. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(66)&libc.Int32FromInt32(15))*4)) = v67
  2270. d += a ^ b ^ c + v67 + uint32(0xCA62C1D6) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2271. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2272. v68 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(67)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(67)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(67)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(67)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(67)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(67)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(67)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(67)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2273. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(67)&libc.Int32FromInt32(15))*4)) = v68
  2274. c += e ^ a ^ b + v68 + uint32(0xCA62C1D6) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2275. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2276. v69 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(68)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(68)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(68)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(68)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(68)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(68)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(68)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(68)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2277. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(68)&libc.Int32FromInt32(15))*4)) = v69
  2278. b += d ^ e ^ a + v69 + uint32(0xCA62C1D6) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2279. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2280. v70 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(69)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(69)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(69)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(69)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(69)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(69)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(69)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(69)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2281. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(69)&libc.Int32FromInt32(15))*4)) = v70
  2282. a += c ^ d ^ e + v70 + uint32(0xCA62C1D6) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2283. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2284. v71 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(70)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(70)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(70)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(70)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(70)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(70)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(70)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(70)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2285. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(70)&libc.Int32FromInt32(15))*4)) = v71
  2286. e += b ^ c ^ d + v71 + uint32(0xCA62C1D6) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2287. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2288. v72 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(71)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(71)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(71)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(71)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(71)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(71)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(71)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(71)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2289. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(71)&libc.Int32FromInt32(15))*4)) = v72
  2290. d += a ^ b ^ c + v72 + uint32(0xCA62C1D6) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2291. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2292. v73 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(72)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(72)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(72)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(72)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(72)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(72)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(72)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(72)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2293. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(72)&libc.Int32FromInt32(15))*4)) = v73
  2294. c += e ^ a ^ b + v73 + uint32(0xCA62C1D6) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2295. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2296. v74 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(73)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(73)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(73)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(73)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(73)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(73)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(73)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(73)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2297. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(73)&libc.Int32FromInt32(15))*4)) = v74
  2298. b += d ^ e ^ a + v74 + uint32(0xCA62C1D6) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2299. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2300. v75 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(74)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(74)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(74)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(74)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(74)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(74)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(74)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(74)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2301. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(74)&libc.Int32FromInt32(15))*4)) = v75
  2302. a += c ^ d ^ e + v75 + uint32(0xCA62C1D6) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2303. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2304. v76 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(75)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(75)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(75)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(75)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(75)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(75)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(75)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(75)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2305. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(75)&libc.Int32FromInt32(15))*4)) = v76
  2306. e += b ^ c ^ d + v76 + uint32(0xCA62C1D6) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2307. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2308. v77 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(76)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(76)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(76)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(76)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(76)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(76)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(76)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(76)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2309. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(76)&libc.Int32FromInt32(15))*4)) = v77
  2310. d += a ^ b ^ c + v77 + uint32(0xCA62C1D6) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2311. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2312. v78 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(77)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(77)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(77)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(77)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(77)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(77)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(77)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(77)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2313. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(77)&libc.Int32FromInt32(15))*4)) = v78
  2314. c += e ^ a ^ b + v78 + uint32(0xCA62C1D6) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2315. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2316. v79 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(78)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(78)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(78)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(78)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(78)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(78)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(78)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(78)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2317. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(78)&libc.Int32FromInt32(15))*4)) = v79
  2318. b += d ^ e ^ a + v79 + uint32(0xCA62C1D6) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2319. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2320. v80 = (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(79)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(79)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(79)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(79)&libc.Int32FromInt32(15))*4)))<<libc.Int32FromInt32(1) | (*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(79)+libc.Int32FromInt32(13))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(79)+libc.Int32FromInt32(8))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr((libc.Int32FromInt32(79)+libc.Int32FromInt32(2))&libc.Int32FromInt32(15))*4))^*(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(79)&libc.Int32FromInt32(15))*4)))>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(1))
  2321. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(79)&libc.Int32FromInt32(15))*4)) = v80
  2322. a += c ^ d ^ e + v80 + uint32(0xCA62C1D6) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2323. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2324. /* Add the working vars back into context.state[] */
  2325. *(*Tuint32_t)(unsafe.Pointer(state)) += a
  2326. *(*Tuint32_t)(unsafe.Pointer(state + 1*4)) += b
  2327. *(*Tuint32_t)(unsafe.Pointer(state + 2*4)) += c
  2328. *(*Tuint32_t)(unsafe.Pointer(state + 3*4)) += d
  2329. *(*Tuint32_t)(unsafe.Pointer(state + 4*4)) += e
  2330. /* Wipe variables */
  2331. v84 = libc.Uint32FromInt32(0)
  2332. e = v84
  2333. v83 = v84
  2334. d = v83
  2335. v82 = v83
  2336. c = v82
  2337. v81 = v82
  2338. b = v81
  2339. a = v81
  2340. }
  2341. // C documentation
  2342. //
  2343. // /*
  2344. // * SHA1Init - Initialize new context
  2345. // */
  2346. func XSHA1Init(tls *libc.TLS, context uintptr) {
  2347. /* SHA1 initialization constants */
  2348. (*TSHA1_CTX)(unsafe.Pointer(context)).Fcount = uint64(0)
  2349. *(*Tuint32_t)(unsafe.Pointer(context)) = uint32(0x67452301)
  2350. *(*Tuint32_t)(unsafe.Pointer(context + 1*4)) = uint32(0xEFCDAB89)
  2351. *(*Tuint32_t)(unsafe.Pointer(context + 2*4)) = uint32(0x98BADCFE)
  2352. *(*Tuint32_t)(unsafe.Pointer(context + 3*4)) = uint32(0x10325476)
  2353. *(*Tuint32_t)(unsafe.Pointer(context + 4*4)) = uint32(0xC3D2E1F0)
  2354. }
  2355. // C documentation
  2356. //
  2357. // /*
  2358. // * Run your data through this.
  2359. // */
  2360. func XSHA1Update(tls *libc.TLS, context uintptr, data uintptr, len1 Tsize_t) {
  2361. var i, j, v1 Tsize_t
  2362. _, _, _ = i, j, v1
  2363. j = (*TSHA1_CTX)(unsafe.Pointer(context)).Fcount >> libc.Int32FromInt32(3) & libc.Uint64FromInt32(63)
  2364. *(*Tuint64_t)(unsafe.Pointer(context + 24)) += len1 << libc.Int32FromInt32(3)
  2365. if j+len1 > uint64(63) {
  2366. v1 = libc.Uint64FromInt32(64) - j
  2367. i = v1
  2368. libc.Xmemcpy(tls, context+32+uintptr(j), data, v1)
  2369. XSHA1Transform(tls, context, context+32)
  2370. for {
  2371. if !(i+uint64(63) < len1) {
  2372. break
  2373. }
  2374. XSHA1Transform(tls, context, data+uintptr(i))
  2375. goto _2
  2376. _2:
  2377. ;
  2378. i += uint64(64)
  2379. }
  2380. j = uint64(0)
  2381. } else {
  2382. i = uint64(0)
  2383. }
  2384. libc.Xmemcpy(tls, context+32+uintptr(j), data+uintptr(i), len1-i)
  2385. }
  2386. // C documentation
  2387. //
  2388. // /*
  2389. // * Add padding and return the message digest.
  2390. // */
  2391. func XSHA1Pad(tls *libc.TLS, context uintptr) {
  2392. bp := tls.Alloc(16)
  2393. defer tls.Free(16)
  2394. var i uint32
  2395. var _ /* finalcount at bp+0 */ [8]Tuint8_t
  2396. _ = i
  2397. i = uint32(0)
  2398. for {
  2399. if !(i < uint32(8)) {
  2400. break
  2401. }
  2402. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[i] = uint8((*TSHA1_CTX)(unsafe.Pointer(context)).Fcount >> ((libc.Uint32FromInt32(7) - i&libc.Uint32FromInt32(7)) * libc.Uint32FromInt32(8)) & libc.Uint64FromInt32(255)) /* Endian independent */
  2403. goto _1
  2404. _1:
  2405. ;
  2406. i++
  2407. }
  2408. XSHA1Update(tls, context, __ccgo_ts+153, uint64(1))
  2409. for (*TSHA1_CTX)(unsafe.Pointer(context)).Fcount&uint64(504) != uint64(448) {
  2410. XSHA1Update(tls, context, __ccgo_ts+155, uint64(1))
  2411. }
  2412. XSHA1Update(tls, context, bp, uint64(8)) /* Should cause a SHA1Transform() */
  2413. }
  2414. func XSHA1Final(tls *libc.TLS, digest uintptr, context uintptr) {
  2415. var i uint32
  2416. _ = i
  2417. XSHA1Pad(tls, context)
  2418. i = uint32(0)
  2419. for {
  2420. if !(i < uint32(m_SHA1_DIGEST_LENGTH)) {
  2421. break
  2422. }
  2423. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i))) = uint8(*(*Tuint32_t)(unsafe.Pointer(context + uintptr(i>>int32(2))*4)) >> ((libc.Uint32FromInt32(3) - i&libc.Uint32FromInt32(3)) * libc.Uint32FromInt32(8)) & libc.Uint32FromInt32(255))
  2424. goto _1
  2425. _1:
  2426. ;
  2427. i++
  2428. }
  2429. libc.Xmemset(tls, context, 0, uint64(96))
  2430. }
  2431. const m_SHA224_BLOCK_LENGTH = 64
  2432. const m_SHA224_DIGEST_LENGTH = 28
  2433. const m_SHA256_BLOCK_LENGTH = 64
  2434. const m_SHA256_DIGEST_LENGTH = 32
  2435. const m_SHA384_BLOCK_LENGTH = 128
  2436. const m_SHA384_DIGEST_LENGTH = 48
  2437. const m_SHA512_256_BLOCK_LENGTH = 128
  2438. const m_SHA512_256_DIGEST_LENGTH = 32
  2439. const m_SHA512_BLOCK_LENGTH = 128
  2440. const m_SHA512_DIGEST_LENGTH = 64
  2441. type TSHA2_CTX = struct {
  2442. Fstate struct {
  2443. Fst64 [0][8]Tuint64_t
  2444. Fst32 [8]Tuint32_t
  2445. F__ccgo_pad2 [32]byte
  2446. }
  2447. Fbitcount [2]Tuint64_t
  2448. Fbuffer [128]Tuint8_t
  2449. }
  2450. type T_SHA2_CTX = TSHA2_CTX
  2451. /*
  2452. * UNROLLED TRANSFORM LOOP NOTE:
  2453. * You can define SHA2_UNROLL_TRANSFORM to use the unrolled transform
  2454. * loop version for the hash transform rounds (defined using macros
  2455. * later in this file). Either define on the command line, for example:
  2456. *
  2457. * cc -DSHA2_UNROLL_TRANSFORM -o sha2 sha2.c sha2prog.c
  2458. *
  2459. * or define below:
  2460. *
  2461. * #define SHA2_UNROLL_TRANSFORM
  2462. *
  2463. */
  2464. /*** SHA-224/256/384/512 Various Length Definitions ***********************/
  2465. /* NOTE: Most of these are in sha2.h */
  2466. /*** ENDIAN SPECIFIC COPY MACROS **************************************/
  2467. /*
  2468. * Macro for incrementally adding the unsigned 64-bit integer n to the
  2469. * unsigned 128-bit integer (represented using a two-element array of
  2470. * 64-bit words):
  2471. */
  2472. /*** THE SIX LOGICAL FUNCTIONS ****************************************/
  2473. /*
  2474. * Bit shifting and rotation (used by the six SHA-XYZ logical functions:
  2475. *
  2476. * NOTE: The naming of R and S appears backwards here (R is a SHIFT and
  2477. * S is a ROTATION) because the SHA-224/256/384/512 description document
  2478. * (see http://csrc.nist.gov/cryptval/shs/sha256-384-512.pdf) uses this
  2479. * same "backwards" definition.
  2480. */
  2481. /* Shift-right (used in SHA-224, SHA-256, SHA-384, and SHA-512): */
  2482. /* 32-bit Rotate-right (used in SHA-224 and SHA-256): */
  2483. /* 64-bit Rotate-right (used in SHA-384 and SHA-512): */
  2484. /* Two of six logical functions used in SHA-224, SHA-256, SHA-384, and SHA-512: */
  2485. /* Four of six logical functions used in SHA-224 and SHA-256: */
  2486. /* Four of six logical functions used in SHA-384 and SHA-512: */
  2487. // C documentation
  2488. //
  2489. // /*** SHA-XYZ INITIAL HASH VALUES AND CONSTANTS ************************/
  2490. // /* Hash constant words K for SHA-224 and SHA-256: */
  2491. var _K256 = [64]Tuint32_t{
  2492. 0: uint32(0x428a2f98),
  2493. 1: uint32(0x71374491),
  2494. 2: uint32(0xb5c0fbcf),
  2495. 3: uint32(0xe9b5dba5),
  2496. 4: uint32(0x3956c25b),
  2497. 5: uint32(0x59f111f1),
  2498. 6: uint32(0x923f82a4),
  2499. 7: uint32(0xab1c5ed5),
  2500. 8: uint32(0xd807aa98),
  2501. 9: uint32(0x12835b01),
  2502. 10: uint32(0x243185be),
  2503. 11: uint32(0x550c7dc3),
  2504. 12: uint32(0x72be5d74),
  2505. 13: uint32(0x80deb1fe),
  2506. 14: uint32(0x9bdc06a7),
  2507. 15: uint32(0xc19bf174),
  2508. 16: uint32(0xe49b69c1),
  2509. 17: uint32(0xefbe4786),
  2510. 18: uint32(0x0fc19dc6),
  2511. 19: uint32(0x240ca1cc),
  2512. 20: uint32(0x2de92c6f),
  2513. 21: uint32(0x4a7484aa),
  2514. 22: uint32(0x5cb0a9dc),
  2515. 23: uint32(0x76f988da),
  2516. 24: uint32(0x983e5152),
  2517. 25: uint32(0xa831c66d),
  2518. 26: uint32(0xb00327c8),
  2519. 27: uint32(0xbf597fc7),
  2520. 28: uint32(0xc6e00bf3),
  2521. 29: uint32(0xd5a79147),
  2522. 30: uint32(0x06ca6351),
  2523. 31: uint32(0x14292967),
  2524. 32: uint32(0x27b70a85),
  2525. 33: uint32(0x2e1b2138),
  2526. 34: uint32(0x4d2c6dfc),
  2527. 35: uint32(0x53380d13),
  2528. 36: uint32(0x650a7354),
  2529. 37: uint32(0x766a0abb),
  2530. 38: uint32(0x81c2c92e),
  2531. 39: uint32(0x92722c85),
  2532. 40: uint32(0xa2bfe8a1),
  2533. 41: uint32(0xa81a664b),
  2534. 42: uint32(0xc24b8b70),
  2535. 43: uint32(0xc76c51a3),
  2536. 44: uint32(0xd192e819),
  2537. 45: uint32(0xd6990624),
  2538. 46: uint32(0xf40e3585),
  2539. 47: uint32(0x106aa070),
  2540. 48: uint32(0x19a4c116),
  2541. 49: uint32(0x1e376c08),
  2542. 50: uint32(0x2748774c),
  2543. 51: uint32(0x34b0bcb5),
  2544. 52: uint32(0x391c0cb3),
  2545. 53: uint32(0x4ed8aa4a),
  2546. 54: uint32(0x5b9cca4f),
  2547. 55: uint32(0x682e6ff3),
  2548. 56: uint32(0x748f82ee),
  2549. 57: uint32(0x78a5636f),
  2550. 58: uint32(0x84c87814),
  2551. 59: uint32(0x8cc70208),
  2552. 60: uint32(0x90befffa),
  2553. 61: uint32(0xa4506ceb),
  2554. 62: uint32(0xbef9a3f7),
  2555. 63: uint32(0xc67178f2),
  2556. }
  2557. // C documentation
  2558. //
  2559. // /* Initial hash value H for SHA-256: */
  2560. var _sha256_initial_hash_value = [8]Tuint32_t{
  2561. 0: uint32(0x6a09e667),
  2562. 1: uint32(0xbb67ae85),
  2563. 2: uint32(0x3c6ef372),
  2564. 3: uint32(0xa54ff53a),
  2565. 4: uint32(0x510e527f),
  2566. 5: uint32(0x9b05688c),
  2567. 6: uint32(0x1f83d9ab),
  2568. 7: uint32(0x5be0cd19),
  2569. }
  2570. // C documentation
  2571. //
  2572. // /* Hash constant words K for SHA-384 and SHA-512: */
  2573. var _K512 = [80]Tuint64_t{
  2574. 0: uint64(0x428a2f98d728ae22),
  2575. 1: uint64(0x7137449123ef65cd),
  2576. 2: uint64(0xb5c0fbcfec4d3b2f),
  2577. 3: uint64(0xe9b5dba58189dbbc),
  2578. 4: uint64(0x3956c25bf348b538),
  2579. 5: uint64(0x59f111f1b605d019),
  2580. 6: uint64(0x923f82a4af194f9b),
  2581. 7: uint64(0xab1c5ed5da6d8118),
  2582. 8: uint64(0xd807aa98a3030242),
  2583. 9: uint64(0x12835b0145706fbe),
  2584. 10: uint64(0x243185be4ee4b28c),
  2585. 11: uint64(0x550c7dc3d5ffb4e2),
  2586. 12: uint64(0x72be5d74f27b896f),
  2587. 13: uint64(0x80deb1fe3b1696b1),
  2588. 14: uint64(0x9bdc06a725c71235),
  2589. 15: uint64(0xc19bf174cf692694),
  2590. 16: uint64(0xe49b69c19ef14ad2),
  2591. 17: uint64(0xefbe4786384f25e3),
  2592. 18: uint64(0x0fc19dc68b8cd5b5),
  2593. 19: uint64(0x240ca1cc77ac9c65),
  2594. 20: uint64(0x2de92c6f592b0275),
  2595. 21: uint64(0x4a7484aa6ea6e483),
  2596. 22: uint64(0x5cb0a9dcbd41fbd4),
  2597. 23: uint64(0x76f988da831153b5),
  2598. 24: uint64(0x983e5152ee66dfab),
  2599. 25: uint64(0xa831c66d2db43210),
  2600. 26: uint64(0xb00327c898fb213f),
  2601. 27: uint64(0xbf597fc7beef0ee4),
  2602. 28: uint64(0xc6e00bf33da88fc2),
  2603. 29: uint64(0xd5a79147930aa725),
  2604. 30: uint64(0x06ca6351e003826f),
  2605. 31: uint64(0x142929670a0e6e70),
  2606. 32: uint64(0x27b70a8546d22ffc),
  2607. 33: uint64(0x2e1b21385c26c926),
  2608. 34: uint64(0x4d2c6dfc5ac42aed),
  2609. 35: uint64(0x53380d139d95b3df),
  2610. 36: uint64(0x650a73548baf63de),
  2611. 37: uint64(0x766a0abb3c77b2a8),
  2612. 38: uint64(0x81c2c92e47edaee6),
  2613. 39: uint64(0x92722c851482353b),
  2614. 40: uint64(0xa2bfe8a14cf10364),
  2615. 41: uint64(0xa81a664bbc423001),
  2616. 42: uint64(0xc24b8b70d0f89791),
  2617. 43: uint64(0xc76c51a30654be30),
  2618. 44: uint64(0xd192e819d6ef5218),
  2619. 45: uint64(0xd69906245565a910),
  2620. 46: uint64(0xf40e35855771202a),
  2621. 47: uint64(0x106aa07032bbd1b8),
  2622. 48: uint64(0x19a4c116b8d2d0c8),
  2623. 49: uint64(0x1e376c085141ab53),
  2624. 50: uint64(0x2748774cdf8eeb99),
  2625. 51: uint64(0x34b0bcb5e19b48a8),
  2626. 52: uint64(0x391c0cb3c5c95a63),
  2627. 53: uint64(0x4ed8aa4ae3418acb),
  2628. 54: uint64(0x5b9cca4f7763e373),
  2629. 55: uint64(0x682e6ff3d6b2b8a3),
  2630. 56: uint64(0x748f82ee5defb2fc),
  2631. 57: uint64(0x78a5636f43172f60),
  2632. 58: uint64(0x84c87814a1f0ab72),
  2633. 59: uint64(0x8cc702081a6439ec),
  2634. 60: uint64(0x90befffa23631e28),
  2635. 61: uint64(0xa4506cebde82bde9),
  2636. 62: uint64(0xbef9a3f7b2c67915),
  2637. 63: uint64(0xc67178f2e372532b),
  2638. 64: uint64(0xca273eceea26619c),
  2639. 65: uint64(0xd186b8c721c0c207),
  2640. 66: uint64(0xeada7dd6cde0eb1e),
  2641. 67: uint64(0xf57d4f7fee6ed178),
  2642. 68: uint64(0x06f067aa72176fba),
  2643. 69: uint64(0x0a637dc5a2c898a6),
  2644. 70: uint64(0x113f9804bef90dae),
  2645. 71: uint64(0x1b710b35131c471b),
  2646. 72: uint64(0x28db77f523047d84),
  2647. 73: uint64(0x32caab7b40c72493),
  2648. 74: uint64(0x3c9ebe0a15c9bebc),
  2649. 75: uint64(0x431d67c49c100d4c),
  2650. 76: uint64(0x4cc5d4becb3e42b6),
  2651. 77: uint64(0x597f299cfc657e2a),
  2652. 78: uint64(0x5fcb6fab3ad6faec),
  2653. 79: uint64(0x6c44198c4a475817),
  2654. }
  2655. // C documentation
  2656. //
  2657. // /* Initial hash value H for SHA-512 */
  2658. var _sha512_initial_hash_value = [8]Tuint64_t{
  2659. 0: uint64(0x6a09e667f3bcc908),
  2660. 1: uint64(0xbb67ae8584caa73b),
  2661. 2: uint64(0x3c6ef372fe94f82b),
  2662. 3: uint64(0xa54ff53a5f1d36f1),
  2663. 4: uint64(0x510e527fade682d1),
  2664. 5: uint64(0x9b05688c2b3e6c1f),
  2665. 6: uint64(0x1f83d9abfb41bd6b),
  2666. 7: uint64(0x5be0cd19137e2179),
  2667. }
  2668. // C documentation
  2669. //
  2670. // /* Initial hash value H for SHA-224: */
  2671. var _sha224_initial_hash_value = [8]Tuint32_t{
  2672. 0: uint32(0xc1059ed8),
  2673. 1: uint32(0x367cd507),
  2674. 2: uint32(0x3070dd17),
  2675. 3: uint32(0xf70e5939),
  2676. 4: uint32(0xffc00b31),
  2677. 5: uint32(0x68581511),
  2678. 6: uint32(0x64f98fa7),
  2679. 7: uint32(0xbefa4fa4),
  2680. }
  2681. // C documentation
  2682. //
  2683. // /* Initial hash value H for SHA-384 */
  2684. var _sha384_initial_hash_value = [8]Tuint64_t{
  2685. 0: uint64(0xcbbb9d5dc1059ed8),
  2686. 1: uint64(0x629a292a367cd507),
  2687. 2: uint64(0x9159015a3070dd17),
  2688. 3: uint64(0x152fecd8f70e5939),
  2689. 4: uint64(0x67332667ffc00b31),
  2690. 5: uint64(0x8eb44a8768581511),
  2691. 6: uint64(0xdb0c2e0d64f98fa7),
  2692. 7: uint64(0x47b5481dbefa4fa4),
  2693. }
  2694. // C documentation
  2695. //
  2696. // /* Initial hash value H for SHA-512-256 */
  2697. var _sha512_256_initial_hash_value = [8]Tuint64_t{
  2698. 0: uint64(0x22312194fc2bf72c),
  2699. 1: uint64(0x9f555fa3c84c64c2),
  2700. 2: uint64(0x2393b86b6f53b151),
  2701. 3: uint64(0x963877195940eabd),
  2702. 4: uint64(0x96283ee2a88effe3),
  2703. 5: uint64(0xbe5e1e2553863992),
  2704. 6: uint64(0x2b0199fc2c85b8aa),
  2705. 7: uint64(0x0eb72ddc81c52ca2),
  2706. }
  2707. // C documentation
  2708. //
  2709. // /*** SHA-224: *********************************************************/
  2710. func XSHA224Init(tls *libc.TLS, context uintptr) {
  2711. libc.Xmemcpy(tls, context, uintptr(unsafe.Pointer(&_sha224_initial_hash_value)), uint64(32))
  2712. libc.Xmemset(tls, context+80, 0, uint64(128))
  2713. *(*Tuint64_t)(unsafe.Pointer(context + 64)) = uint64(0)
  2714. }
  2715. func XSHA224Final(tls *libc.TLS, digest uintptr, context uintptr) {
  2716. var i int32
  2717. _ = i
  2718. XSHA256Pad(tls, context)
  2719. /* Convert TO host byte order */
  2720. i = 0
  2721. for {
  2722. if !(i < int32(7)) {
  2723. break
  2724. }
  2725. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)))) = uint8(*(*Tuint32_t)(unsafe.Pointer(context + uintptr(i)*4)) >> int32(24))
  2726. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 1)) = uint8(*(*Tuint32_t)(unsafe.Pointer(context + uintptr(i)*4)) >> int32(16))
  2727. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 2)) = uint8(*(*Tuint32_t)(unsafe.Pointer(context + uintptr(i)*4)) >> int32(8))
  2728. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 3)) = uint8(*(*Tuint32_t)(unsafe.Pointer(context + uintptr(i)*4)))
  2729. goto _1
  2730. _1:
  2731. ;
  2732. i++
  2733. }
  2734. libc.Xmemset(tls, context, 0, uint64(208))
  2735. }
  2736. // C documentation
  2737. //
  2738. // /*** SHA-256: *********************************************************/
  2739. func XSHA256Init(tls *libc.TLS, context uintptr) {
  2740. libc.Xmemcpy(tls, context, uintptr(unsafe.Pointer(&_sha256_initial_hash_value)), uint64(32))
  2741. libc.Xmemset(tls, context+80, 0, uint64(128))
  2742. *(*Tuint64_t)(unsafe.Pointer(context + 64)) = uint64(0)
  2743. }
  2744. func XSHA256Transform(tls *libc.TLS, state uintptr, data uintptr) {
  2745. bp := tls.Alloc(64)
  2746. defer tls.Free(64)
  2747. var T1, T2, a, b, c, d, e, f, g, h, s0, s1, v10, v2, v3, v4, v5, v6, v7, v8, v9 Tuint32_t
  2748. var j int32
  2749. var p1 uintptr
  2750. var _ /* W256 at bp+0 */ [16]Tuint32_t
  2751. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = T1, T2, a, b, c, d, e, f, g, h, j, s0, s1, v10, v2, v3, v4, v5, v6, v7, v8, v9, p1
  2752. /* Initialize registers with the prev. intermediate value */
  2753. a = *(*Tuint32_t)(unsafe.Pointer(state))
  2754. b = *(*Tuint32_t)(unsafe.Pointer(state + 1*4))
  2755. c = *(*Tuint32_t)(unsafe.Pointer(state + 2*4))
  2756. d = *(*Tuint32_t)(unsafe.Pointer(state + 3*4))
  2757. e = *(*Tuint32_t)(unsafe.Pointer(state + 4*4))
  2758. f = *(*Tuint32_t)(unsafe.Pointer(state + 5*4))
  2759. g = *(*Tuint32_t)(unsafe.Pointer(state + 6*4))
  2760. h = *(*Tuint32_t)(unsafe.Pointer(state + 7*4))
  2761. j = 0
  2762. for cond := true; cond; cond = j < int32(16) {
  2763. (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[j] = uint32(*(*Tuint8_t)(unsafe.Pointer(data + 3))) | uint32(*(*Tuint8_t)(unsafe.Pointer(data + 2)))<<libc.Int32FromInt32(8) | uint32(*(*Tuint8_t)(unsafe.Pointer(data + 1)))<<libc.Int32FromInt32(16) | uint32(*(*Tuint8_t)(unsafe.Pointer(data)))<<libc.Int32FromInt32(24)
  2764. data += uintptr(4)
  2765. /* Apply the SHA-256 compression function to update a..h */
  2766. T1 = h + (e>>libc.Int32FromInt32(6) | e<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) ^ (e>>libc.Int32FromInt32(11) | e<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(11))) ^ (e>>libc.Int32FromInt32(25) | e<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(25)))) + (e&f ^ ^e&g) + _K256[j] + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[j]
  2767. T2 = a>>libc.Int32FromInt32(2) | a<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(2)) ^ (a>>libc.Int32FromInt32(13) | a<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(13))) ^ (a>>libc.Int32FromInt32(22) | a<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(22))) + (a&b ^ a&c ^ b&c)
  2768. h = g
  2769. g = f
  2770. f = e
  2771. e = d + T1
  2772. d = c
  2773. c = b
  2774. b = a
  2775. a = T1 + T2
  2776. j++
  2777. }
  2778. for cond := true; cond; cond = j < int32(64) {
  2779. /* Part of the message block expansion: */
  2780. s0 = (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[(j+int32(1))&int32(0x0f)]
  2781. s0 = s0>>libc.Int32FromInt32(7) | s0<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(7)) ^ (s0>>libc.Int32FromInt32(18) | s0<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(18))) ^ s0>>libc.Int32FromInt32(3)
  2782. s1 = (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[(j+int32(14))&int32(0x0f)]
  2783. s1 = s1>>libc.Int32FromInt32(17) | s1<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(17)) ^ (s1>>libc.Int32FromInt32(19) | s1<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(19))) ^ s1>>libc.Int32FromInt32(10)
  2784. /* Apply the SHA-256 compression function to update a..h */
  2785. p1 = bp + uintptr(j&int32(0x0f))*4
  2786. *(*Tuint32_t)(unsafe.Pointer(p1)) += s1 + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[(j+int32(9))&int32(0x0f)] + s0
  2787. T1 = h + (e>>libc.Int32FromInt32(6) | e<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(6)) ^ (e>>libc.Int32FromInt32(11) | e<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(11))) ^ (e>>libc.Int32FromInt32(25) | e<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(25)))) + (e&f ^ ^e&g) + _K256[j] + *(*Tuint32_t)(unsafe.Pointer(p1))
  2788. T2 = a>>libc.Int32FromInt32(2) | a<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(2)) ^ (a>>libc.Int32FromInt32(13) | a<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(13))) ^ (a>>libc.Int32FromInt32(22) | a<<(libc.Int32FromInt32(32)-libc.Int32FromInt32(22))) + (a&b ^ a&c ^ b&c)
  2789. h = g
  2790. g = f
  2791. f = e
  2792. e = d + T1
  2793. d = c
  2794. c = b
  2795. b = a
  2796. a = T1 + T2
  2797. j++
  2798. }
  2799. /* Compute the current intermediate hash value */
  2800. *(*Tuint32_t)(unsafe.Pointer(state)) += a
  2801. *(*Tuint32_t)(unsafe.Pointer(state + 1*4)) += b
  2802. *(*Tuint32_t)(unsafe.Pointer(state + 2*4)) += c
  2803. *(*Tuint32_t)(unsafe.Pointer(state + 3*4)) += d
  2804. *(*Tuint32_t)(unsafe.Pointer(state + 4*4)) += e
  2805. *(*Tuint32_t)(unsafe.Pointer(state + 5*4)) += f
  2806. *(*Tuint32_t)(unsafe.Pointer(state + 6*4)) += g
  2807. *(*Tuint32_t)(unsafe.Pointer(state + 7*4)) += h
  2808. /* Clean up */
  2809. v10 = libc.Uint32FromInt32(0)
  2810. T2 = v10
  2811. v9 = v10
  2812. T1 = v9
  2813. v8 = v9
  2814. h = v8
  2815. v7 = v8
  2816. g = v7
  2817. v6 = v7
  2818. f = v6
  2819. v5 = v6
  2820. e = v5
  2821. v4 = v5
  2822. d = v4
  2823. v3 = v4
  2824. c = v3
  2825. v2 = v3
  2826. b = v2
  2827. a = v2
  2828. }
  2829. func XSHA256Update(tls *libc.TLS, context uintptr, data uintptr, len1 Tsize_t) {
  2830. var freespace, usedspace, v1, v2 Tsize_t
  2831. _, _, _, _ = freespace, usedspace, v1, v2
  2832. /* Calling with no data is valid (we do nothing) */
  2833. if len1 == uint64(0) {
  2834. return
  2835. }
  2836. usedspace = *(*Tuint64_t)(unsafe.Pointer(context + 64)) >> libc.Int32FromInt32(3) % uint64(m_SHA256_BLOCK_LENGTH)
  2837. if usedspace > uint64(0) {
  2838. /* Calculate how much free space is available in the buffer */
  2839. freespace = uint64(m_SHA256_BLOCK_LENGTH) - usedspace
  2840. if len1 >= freespace {
  2841. /* Fill the buffer completely and process it */
  2842. libc.Xmemcpy(tls, context+80+uintptr(usedspace), data, freespace)
  2843. *(*Tuint64_t)(unsafe.Pointer(context + 64)) += freespace << int32(3)
  2844. len1 -= freespace
  2845. data += uintptr(freespace)
  2846. XSHA256Transform(tls, context, context+80)
  2847. } else {
  2848. /* The buffer is not yet full */
  2849. libc.Xmemcpy(tls, context+80+uintptr(usedspace), data, len1)
  2850. *(*Tuint64_t)(unsafe.Pointer(context + 64)) += len1 << int32(3)
  2851. /* Clean up: */
  2852. v1 = libc.Uint64FromInt32(0)
  2853. freespace = v1
  2854. usedspace = v1
  2855. return
  2856. }
  2857. }
  2858. for len1 >= uint64(m_SHA256_BLOCK_LENGTH) {
  2859. /* Process as many complete blocks as we can */
  2860. XSHA256Transform(tls, context, data)
  2861. *(*Tuint64_t)(unsafe.Pointer(context + 64)) += libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH) << libc.Int32FromInt32(3))
  2862. len1 -= uint64(m_SHA256_BLOCK_LENGTH)
  2863. data += uintptr(m_SHA256_BLOCK_LENGTH)
  2864. }
  2865. if len1 > uint64(0) {
  2866. /* There's left-overs, so save 'em */
  2867. libc.Xmemcpy(tls, context+80, data, len1)
  2868. *(*Tuint64_t)(unsafe.Pointer(context + 64)) += len1 << int32(3)
  2869. }
  2870. /* Clean up: */
  2871. v2 = libc.Uint64FromInt32(0)
  2872. freespace = v2
  2873. usedspace = v2
  2874. }
  2875. func XSHA256Pad(tls *libc.TLS, context uintptr) {
  2876. var usedspace, v1 uint32
  2877. _, _ = usedspace, v1
  2878. usedspace = uint32(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> libc.Int32FromInt32(3) % uint64(m_SHA256_BLOCK_LENGTH))
  2879. if usedspace > uint32(0) {
  2880. /* Begin padding with a 1 bit: */
  2881. v1 = usedspace
  2882. usedspace++
  2883. *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(v1))) = uint8(0x80)
  2884. if usedspace <= libc.Uint32FromInt32(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH)-libc.Int32FromInt32(8)) {
  2885. /* Set-up for the last transform: */
  2886. libc.Xmemset(tls, context+80+uintptr(usedspace), 0, uint64(libc.Uint32FromInt32(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH)-libc.Int32FromInt32(8))-usedspace))
  2887. } else {
  2888. if usedspace < uint32(m_SHA256_BLOCK_LENGTH) {
  2889. libc.Xmemset(tls, context+80+uintptr(usedspace), 0, uint64(uint32(m_SHA256_BLOCK_LENGTH)-usedspace))
  2890. }
  2891. /* Do second-to-last transform: */
  2892. XSHA256Transform(tls, context, context+80)
  2893. /* Prepare for last transform: */
  2894. libc.Xmemset(tls, context+80, 0, libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH)-libc.Int32FromInt32(8)))
  2895. }
  2896. } else {
  2897. /* Set-up for the last transform: */
  2898. libc.Xmemset(tls, context+80, 0, libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH)-libc.Int32FromInt32(8)))
  2899. /* Begin padding with a 1 bit: */
  2900. *(*Tuint8_t)(unsafe.Pointer(context + 80)) = uint8(0x80)
  2901. }
  2902. /* Store the length of input data (in bits) in big endian format: */
  2903. *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH)-libc.Int32FromInt32(8)))) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> int32(56))
  2904. *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH)-libc.Int32FromInt32(8)) + 1)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> int32(48))
  2905. *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH)-libc.Int32FromInt32(8)) + 2)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> int32(40))
  2906. *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH)-libc.Int32FromInt32(8)) + 3)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> int32(32))
  2907. *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH)-libc.Int32FromInt32(8)) + 4)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> int32(24))
  2908. *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH)-libc.Int32FromInt32(8)) + 5)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> int32(16))
  2909. *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH)-libc.Int32FromInt32(8)) + 6)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> int32(8))
  2910. *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH)-libc.Int32FromInt32(8)) + 7)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)))
  2911. /* Final transform: */
  2912. XSHA256Transform(tls, context, context+80)
  2913. /* Clean up: */
  2914. usedspace = uint32(0)
  2915. }
  2916. func XSHA256Final(tls *libc.TLS, digest uintptr, context uintptr) {
  2917. var i int32
  2918. _ = i
  2919. XSHA256Pad(tls, context)
  2920. /* Convert TO host byte order */
  2921. i = 0
  2922. for {
  2923. if !(i < int32(8)) {
  2924. break
  2925. }
  2926. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)))) = uint8(*(*Tuint32_t)(unsafe.Pointer(context + uintptr(i)*4)) >> int32(24))
  2927. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 1)) = uint8(*(*Tuint32_t)(unsafe.Pointer(context + uintptr(i)*4)) >> int32(16))
  2928. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 2)) = uint8(*(*Tuint32_t)(unsafe.Pointer(context + uintptr(i)*4)) >> int32(8))
  2929. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 3)) = uint8(*(*Tuint32_t)(unsafe.Pointer(context + uintptr(i)*4)))
  2930. goto _1
  2931. _1:
  2932. ;
  2933. i++
  2934. }
  2935. libc.Xmemset(tls, context, 0, uint64(208))
  2936. }
  2937. // C documentation
  2938. //
  2939. // /*** SHA-512: *********************************************************/
  2940. func XSHA512Init(tls *libc.TLS, context uintptr) {
  2941. var v1 Tuint64_t
  2942. _ = v1
  2943. libc.Xmemcpy(tls, context, uintptr(unsafe.Pointer(&_sha512_initial_hash_value)), uint64(64))
  2944. libc.Xmemset(tls, context+80, 0, uint64(128))
  2945. v1 = libc.Uint64FromInt32(0)
  2946. *(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8)) = v1
  2947. *(*Tuint64_t)(unsafe.Pointer(context + 64)) = v1
  2948. }
  2949. func XSHA512Transform(tls *libc.TLS, state uintptr, data uintptr) {
  2950. bp := tls.Alloc(128)
  2951. defer tls.Free(128)
  2952. var T1, T2, a, b, c, d, e, f, g, h, s0, s1, v10, v2, v3, v4, v5, v6, v7, v8, v9 Tuint64_t
  2953. var j int32
  2954. var p1 uintptr
  2955. var _ /* W512 at bp+0 */ [16]Tuint64_t
  2956. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = T1, T2, a, b, c, d, e, f, g, h, j, s0, s1, v10, v2, v3, v4, v5, v6, v7, v8, v9, p1
  2957. /* Initialize registers with the prev. intermediate value */
  2958. a = *(*Tuint64_t)(unsafe.Pointer(state))
  2959. b = *(*Tuint64_t)(unsafe.Pointer(state + 1*8))
  2960. c = *(*Tuint64_t)(unsafe.Pointer(state + 2*8))
  2961. d = *(*Tuint64_t)(unsafe.Pointer(state + 3*8))
  2962. e = *(*Tuint64_t)(unsafe.Pointer(state + 4*8))
  2963. f = *(*Tuint64_t)(unsafe.Pointer(state + 5*8))
  2964. g = *(*Tuint64_t)(unsafe.Pointer(state + 6*8))
  2965. h = *(*Tuint64_t)(unsafe.Pointer(state + 7*8))
  2966. j = 0
  2967. for cond := true; cond; cond = j < int32(16) {
  2968. (*(*[16]Tuint64_t)(unsafe.Pointer(bp)))[j] = uint64(*(*Tuint8_t)(unsafe.Pointer(data + 7))) | uint64(*(*Tuint8_t)(unsafe.Pointer(data + 6)))<<libc.Int32FromInt32(8) | uint64(*(*Tuint8_t)(unsafe.Pointer(data + 5)))<<libc.Int32FromInt32(16) | uint64(*(*Tuint8_t)(unsafe.Pointer(data + 4)))<<libc.Int32FromInt32(24) | uint64(*(*Tuint8_t)(unsafe.Pointer(data + 3)))<<libc.Int32FromInt32(32) | uint64(*(*Tuint8_t)(unsafe.Pointer(data + 2)))<<libc.Int32FromInt32(40) | uint64(*(*Tuint8_t)(unsafe.Pointer(data + 1)))<<libc.Int32FromInt32(48) | uint64(*(*Tuint8_t)(unsafe.Pointer(data)))<<libc.Int32FromInt32(56)
  2969. data += uintptr(8)
  2970. /* Apply the SHA-512 compression function to update a..h */
  2971. T1 = h + (e>>libc.Int32FromInt32(14) | e<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(14)) ^ (e>>libc.Int32FromInt32(18) | e<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(18))) ^ (e>>libc.Int32FromInt32(41) | e<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(41)))) + (e&f ^ ^e&g) + _K512[j] + (*(*[16]Tuint64_t)(unsafe.Pointer(bp)))[j]
  2972. T2 = a>>libc.Int32FromInt32(28) | a<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(28)) ^ (a>>libc.Int32FromInt32(34) | a<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(34))) ^ (a>>libc.Int32FromInt32(39) | a<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(39))) + (a&b ^ a&c ^ b&c)
  2973. h = g
  2974. g = f
  2975. f = e
  2976. e = d + T1
  2977. d = c
  2978. c = b
  2979. b = a
  2980. a = T1 + T2
  2981. j++
  2982. }
  2983. for cond := true; cond; cond = j < int32(80) {
  2984. /* Part of the message block expansion: */
  2985. s0 = (*(*[16]Tuint64_t)(unsafe.Pointer(bp)))[(j+int32(1))&int32(0x0f)]
  2986. s0 = s0>>libc.Int32FromInt32(1) | s0<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(1)) ^ (s0>>libc.Int32FromInt32(8) | s0<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(8))) ^ s0>>libc.Int32FromInt32(7)
  2987. s1 = (*(*[16]Tuint64_t)(unsafe.Pointer(bp)))[(j+int32(14))&int32(0x0f)]
  2988. s1 = s1>>libc.Int32FromInt32(19) | s1<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(19)) ^ (s1>>libc.Int32FromInt32(61) | s1<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(61))) ^ s1>>libc.Int32FromInt32(6)
  2989. /* Apply the SHA-512 compression function to update a..h */
  2990. p1 = bp + uintptr(j&int32(0x0f))*8
  2991. *(*Tuint64_t)(unsafe.Pointer(p1)) += s1 + (*(*[16]Tuint64_t)(unsafe.Pointer(bp)))[(j+int32(9))&int32(0x0f)] + s0
  2992. T1 = h + (e>>libc.Int32FromInt32(14) | e<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(14)) ^ (e>>libc.Int32FromInt32(18) | e<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(18))) ^ (e>>libc.Int32FromInt32(41) | e<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(41)))) + (e&f ^ ^e&g) + _K512[j] + *(*Tuint64_t)(unsafe.Pointer(p1))
  2993. T2 = a>>libc.Int32FromInt32(28) | a<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(28)) ^ (a>>libc.Int32FromInt32(34) | a<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(34))) ^ (a>>libc.Int32FromInt32(39) | a<<(libc.Int32FromInt32(64)-libc.Int32FromInt32(39))) + (a&b ^ a&c ^ b&c)
  2994. h = g
  2995. g = f
  2996. f = e
  2997. e = d + T1
  2998. d = c
  2999. c = b
  3000. b = a
  3001. a = T1 + T2
  3002. j++
  3003. }
  3004. /* Compute the current intermediate hash value */
  3005. *(*Tuint64_t)(unsafe.Pointer(state)) += a
  3006. *(*Tuint64_t)(unsafe.Pointer(state + 1*8)) += b
  3007. *(*Tuint64_t)(unsafe.Pointer(state + 2*8)) += c
  3008. *(*Tuint64_t)(unsafe.Pointer(state + 3*8)) += d
  3009. *(*Tuint64_t)(unsafe.Pointer(state + 4*8)) += e
  3010. *(*Tuint64_t)(unsafe.Pointer(state + 5*8)) += f
  3011. *(*Tuint64_t)(unsafe.Pointer(state + 6*8)) += g
  3012. *(*Tuint64_t)(unsafe.Pointer(state + 7*8)) += h
  3013. /* Clean up */
  3014. v10 = libc.Uint64FromInt32(0)
  3015. T2 = v10
  3016. v9 = v10
  3017. T1 = v9
  3018. v8 = v9
  3019. h = v8
  3020. v7 = v8
  3021. g = v7
  3022. v6 = v7
  3023. f = v6
  3024. v5 = v6
  3025. e = v5
  3026. v4 = v5
  3027. d = v4
  3028. v3 = v4
  3029. c = v3
  3030. v2 = v3
  3031. b = v2
  3032. a = v2
  3033. }
  3034. func XSHA512Update(tls *libc.TLS, context uintptr, data uintptr, len1 Tsize_t) {
  3035. var freespace, usedspace, v1, v2 Tsize_t
  3036. _, _, _, _ = freespace, usedspace, v1, v2
  3037. /* Calling with no data is valid (we do nothing) */
  3038. if len1 == uint64(0) {
  3039. return
  3040. }
  3041. usedspace = *(*Tuint64_t)(unsafe.Pointer(context + 64)) >> libc.Int32FromInt32(3) % uint64(m_SHA512_BLOCK_LENGTH)
  3042. if usedspace > uint64(0) {
  3043. /* Calculate how much free space is available in the buffer */
  3044. freespace = uint64(m_SHA512_BLOCK_LENGTH) - usedspace
  3045. if len1 >= freespace {
  3046. /* Fill the buffer completely and process it */
  3047. libc.Xmemcpy(tls, context+80+uintptr(usedspace), data, freespace)
  3048. *(*Tuint64_t)(unsafe.Pointer(context + 64)) += freespace << libc.Int32FromInt32(3)
  3049. if *(*Tuint64_t)(unsafe.Pointer(context + 64)) < freespace<<libc.Int32FromInt32(3) {
  3050. *(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8))++
  3051. }
  3052. len1 -= freespace
  3053. data += uintptr(freespace)
  3054. XSHA512Transform(tls, context, context+80)
  3055. } else {
  3056. /* The buffer is not yet full */
  3057. libc.Xmemcpy(tls, context+80+uintptr(usedspace), data, len1)
  3058. *(*Tuint64_t)(unsafe.Pointer(context + 64)) += len1 << libc.Int32FromInt32(3)
  3059. if *(*Tuint64_t)(unsafe.Pointer(context + 64)) < len1<<libc.Int32FromInt32(3) {
  3060. *(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8))++
  3061. }
  3062. /* Clean up: */
  3063. v1 = libc.Uint64FromInt32(0)
  3064. freespace = v1
  3065. usedspace = v1
  3066. return
  3067. }
  3068. }
  3069. for len1 >= uint64(m_SHA512_BLOCK_LENGTH) {
  3070. /* Process as many complete blocks as we can */
  3071. XSHA512Transform(tls, context, data)
  3072. *(*Tuint64_t)(unsafe.Pointer(context + 64)) += libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH) << libc.Int32FromInt32(3))
  3073. if *(*Tuint64_t)(unsafe.Pointer(context + 64)) < libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)<<libc.Int32FromInt32(3)) {
  3074. *(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8))++
  3075. }
  3076. len1 -= uint64(m_SHA512_BLOCK_LENGTH)
  3077. data += uintptr(m_SHA512_BLOCK_LENGTH)
  3078. }
  3079. if len1 > uint64(0) {
  3080. /* There's left-overs, so save 'em */
  3081. libc.Xmemcpy(tls, context+80, data, len1)
  3082. *(*Tuint64_t)(unsafe.Pointer(context + 64)) += len1 << libc.Int32FromInt32(3)
  3083. if *(*Tuint64_t)(unsafe.Pointer(context + 64)) < len1<<libc.Int32FromInt32(3) {
  3084. *(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8))++
  3085. }
  3086. }
  3087. /* Clean up: */
  3088. v2 = libc.Uint64FromInt32(0)
  3089. freespace = v2
  3090. usedspace = v2
  3091. }
  3092. func XSHA512Pad(tls *libc.TLS, context uintptr) {
  3093. var usedspace, v1 uint32
  3094. _, _ = usedspace, v1
  3095. usedspace = uint32(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> libc.Int32FromInt32(3) % uint64(m_SHA512_BLOCK_LENGTH))
  3096. if usedspace > uint32(0) {
  3097. /* Begin padding with a 1 bit: */
  3098. v1 = usedspace
  3099. usedspace++
  3100. *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(v1))) = uint8(0x80)
  3101. if usedspace <= libc.Uint32FromInt32(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)) {
  3102. /* Set-up for the last transform: */
  3103. libc.Xmemset(tls, context+80+uintptr(usedspace), 0, uint64(libc.Uint32FromInt32(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16))-usedspace))
  3104. } else {
  3105. if usedspace < uint32(m_SHA512_BLOCK_LENGTH) {
  3106. libc.Xmemset(tls, context+80+uintptr(usedspace), 0, uint64(uint32(m_SHA512_BLOCK_LENGTH)-usedspace))
  3107. }
  3108. /* Do second-to-last transform: */
  3109. XSHA512Transform(tls, context, context+80)
  3110. /* And set-up for the last transform: */
  3111. libc.Xmemset(tls, context+80, 0, libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(2)))
  3112. }
  3113. } else {
  3114. /* Prepare for final transform: */
  3115. libc.Xmemset(tls, context+80, 0, libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)))
  3116. /* Begin padding with a 1 bit: */
  3117. *(*Tuint8_t)(unsafe.Pointer(context + 80)) = uint8(0x80)
  3118. }
  3119. /* Store the length of input data (in bits) in big endian format: */
  3120. *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)))) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8)) >> int32(56))
  3121. *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)) + 1)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8)) >> int32(48))
  3122. *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)) + 2)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8)) >> int32(40))
  3123. *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)) + 3)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8)) >> int32(32))
  3124. *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)) + 4)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8)) >> int32(24))
  3125. *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)) + 5)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8)) >> int32(16))
  3126. *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)) + 6)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8)) >> int32(8))
  3127. *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)) + 7)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8)))
  3128. *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)+libc.Int32FromInt32(8)))) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> int32(56))
  3129. *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)+libc.Int32FromInt32(8)) + 1)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> int32(48))
  3130. *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)+libc.Int32FromInt32(8)) + 2)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> int32(40))
  3131. *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)+libc.Int32FromInt32(8)) + 3)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> int32(32))
  3132. *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)+libc.Int32FromInt32(8)) + 4)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> int32(24))
  3133. *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)+libc.Int32FromInt32(8)) + 5)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> int32(16))
  3134. *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)+libc.Int32FromInt32(8)) + 6)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> int32(8))
  3135. *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)+libc.Int32FromInt32(8)) + 7)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)))
  3136. /* Final transform: */
  3137. XSHA512Transform(tls, context, context+80)
  3138. /* Clean up: */
  3139. usedspace = uint32(0)
  3140. }
  3141. func XSHA512Final(tls *libc.TLS, digest uintptr, context uintptr) {
  3142. var i int32
  3143. _ = i
  3144. XSHA512Pad(tls, context)
  3145. /* Convert TO host byte order */
  3146. i = 0
  3147. for {
  3148. if !(i < int32(8)) {
  3149. break
  3150. }
  3151. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)))) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(56))
  3152. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 1)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(48))
  3153. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 2)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(40))
  3154. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 3)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(32))
  3155. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 4)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(24))
  3156. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 5)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(16))
  3157. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 6)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(8))
  3158. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 7)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)))
  3159. goto _1
  3160. _1:
  3161. ;
  3162. i++
  3163. }
  3164. libc.Xmemset(tls, context, 0, uint64(208))
  3165. }
  3166. // C documentation
  3167. //
  3168. // /*** SHA-384: *********************************************************/
  3169. func XSHA384Init(tls *libc.TLS, context uintptr) {
  3170. var v1 Tuint64_t
  3171. _ = v1
  3172. libc.Xmemcpy(tls, context, uintptr(unsafe.Pointer(&_sha384_initial_hash_value)), uint64(64))
  3173. libc.Xmemset(tls, context+80, 0, uint64(128))
  3174. v1 = libc.Uint64FromInt32(0)
  3175. *(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8)) = v1
  3176. *(*Tuint64_t)(unsafe.Pointer(context + 64)) = v1
  3177. }
  3178. func XSHA384Final(tls *libc.TLS, digest uintptr, context uintptr) {
  3179. var i int32
  3180. _ = i
  3181. XSHA512Pad(tls, context)
  3182. /* Convert TO host byte order */
  3183. i = 0
  3184. for {
  3185. if !(i < int32(6)) {
  3186. break
  3187. }
  3188. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)))) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(56))
  3189. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 1)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(48))
  3190. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 2)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(40))
  3191. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 3)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(32))
  3192. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 4)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(24))
  3193. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 5)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(16))
  3194. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 6)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(8))
  3195. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 7)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)))
  3196. goto _1
  3197. _1:
  3198. ;
  3199. i++
  3200. }
  3201. /* Zero out state data */
  3202. libc.Xmemset(tls, context, 0, uint64(208))
  3203. }
  3204. // C documentation
  3205. //
  3206. // /*** SHA-512/256: *********************************************************/
  3207. func XSHA512_256Init(tls *libc.TLS, context uintptr) {
  3208. var v1 Tuint64_t
  3209. _ = v1
  3210. libc.Xmemcpy(tls, context, uintptr(unsafe.Pointer(&_sha512_256_initial_hash_value)), uint64(64))
  3211. libc.Xmemset(tls, context+80, 0, uint64(128))
  3212. v1 = libc.Uint64FromInt32(0)
  3213. *(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8)) = v1
  3214. *(*Tuint64_t)(unsafe.Pointer(context + 64)) = v1
  3215. }
  3216. func XSHA512_256Final(tls *libc.TLS, digest uintptr, context uintptr) {
  3217. var i int32
  3218. _ = i
  3219. XSHA512Pad(tls, context)
  3220. /* Convert TO host byte order */
  3221. i = 0
  3222. for {
  3223. if !(i < int32(4)) {
  3224. break
  3225. }
  3226. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)))) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(56))
  3227. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 1)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(48))
  3228. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 2)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(40))
  3229. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 3)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(32))
  3230. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 4)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(24))
  3231. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 5)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(16))
  3232. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 6)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(8))
  3233. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 7)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)))
  3234. goto _1
  3235. _1:
  3236. ;
  3237. i++
  3238. }
  3239. /* Zero out state data */
  3240. libc.Xmemset(tls, context, 0, uint64(208))
  3241. }
  3242. const m_AT_EACCESS = 0x200
  3243. const m_AT_EMPTY_PATH = 0x1000
  3244. const m_AT_NO_AUTOMOUNT = 0x800
  3245. const m_AT_RECURSIVE = 0x8000
  3246. const m_AT_REMOVEDIR = 0x200
  3247. const m_AT_STATX_DONT_SYNC = 0x4000
  3248. const m_AT_STATX_FORCE_SYNC = 0x2000
  3249. const m_AT_STATX_SYNC_AS_STAT = 0x0000
  3250. const m_AT_STATX_SYNC_TYPE = 0x6000
  3251. const m_AT_SYMLINK_FOLLOW = 0x400
  3252. const m_AT_SYMLINK_NOFOLLOW = 0x100
  3253. const m_BUFSIZ = 1024
  3254. const m_DN_ACCESS = 0x00000001
  3255. const m_DN_ATTRIB = 0x00000020
  3256. const m_DN_CREATE = 0x00000004
  3257. const m_DN_DELETE = 0x00000008
  3258. const m_DN_MODIFY = 0x00000002
  3259. const m_DN_MULTISHOT = 0x80000000
  3260. const m_DN_RENAME = 0x00000010
  3261. const m_E2BIG = 7
  3262. const m_EACCES = 13
  3263. const m_EADDRINUSE = 98
  3264. const m_EADDRNOTAVAIL = 99
  3265. const m_EADV = 68
  3266. const m_EAFNOSUPPORT = 97
  3267. const m_EAGAIN = 11
  3268. const m_EALREADY = 114
  3269. const m_EBADE = 52
  3270. const m_EBADF = 9
  3271. const m_EBADFD = 77
  3272. const m_EBADMSG = 74
  3273. const m_EBADR = 53
  3274. const m_EBADRQC = 56
  3275. const m_EBADSLT = 57
  3276. const m_EBFONT = 59
  3277. const m_EBUSY = 16
  3278. const m_ECANCELED = 125
  3279. const m_ECHILD = 10
  3280. const m_ECHRNG = 44
  3281. const m_ECOMM = 70
  3282. const m_ECONNABORTED = 103
  3283. const m_ECONNREFUSED = 111
  3284. const m_ECONNRESET = 104
  3285. const m_EDEADLK = 35
  3286. const m_EDEADLOCK = "EDEADLK"
  3287. const m_EDESTADDRREQ = 89
  3288. const m_EDOM = 33
  3289. const m_EDOTDOT = 73
  3290. const m_EDQUOT = 122
  3291. const m_EEXIST = 17
  3292. const m_EFAULT = 14
  3293. const m_EFBIG = 27
  3294. const m_EHOSTDOWN = 112
  3295. const m_EHOSTUNREACH = 113
  3296. const m_EHWPOISON = 133
  3297. const m_EIDRM = 43
  3298. const m_EILSEQ = 84
  3299. const m_EINPROGRESS = 115
  3300. const m_EINTR = 4
  3301. const m_EINVAL = 22
  3302. const m_EIO = 5
  3303. const m_EISCONN = 106
  3304. const m_EISDIR = 21
  3305. const m_EISNAM = 120
  3306. const m_EKEYEXPIRED = 127
  3307. const m_EKEYREJECTED = 129
  3308. const m_EKEYREVOKED = 128
  3309. const m_EL2HLT = 51
  3310. const m_EL2NSYNC = 45
  3311. const m_EL3HLT = 46
  3312. const m_EL3RST = 47
  3313. const m_ELIBACC = 79
  3314. const m_ELIBBAD = 80
  3315. const m_ELIBEXEC = 83
  3316. const m_ELIBMAX = 82
  3317. const m_ELIBSCN = 81
  3318. const m_ELNRNG = 48
  3319. const m_ELOOP = 40
  3320. const m_EMEDIUMTYPE = 124
  3321. const m_EMFILE = 24
  3322. const m_EMLINK = 31
  3323. const m_EMSGSIZE = 90
  3324. const m_EMULTIHOP = 72
  3325. const m_ENAMETOOLONG = 36
  3326. const m_ENAVAIL = 119
  3327. const m_ENETDOWN = 100
  3328. const m_ENETRESET = 102
  3329. const m_ENETUNREACH = 101
  3330. const m_ENFILE = 23
  3331. const m_ENOANO = 55
  3332. const m_ENOBUFS = 105
  3333. const m_ENOCSI = 50
  3334. const m_ENODATA = 61
  3335. const m_ENODEV = 19
  3336. const m_ENOENT = 2
  3337. const m_ENOEXEC = 8
  3338. const m_ENOKEY = 126
  3339. const m_ENOLCK = 37
  3340. const m_ENOLINK = 67
  3341. const m_ENOMEDIUM = 123
  3342. const m_ENOMEM = 12
  3343. const m_ENOMSG = 42
  3344. const m_ENONET = 64
  3345. const m_ENOPKG = 65
  3346. const m_ENOPROTOOPT = 92
  3347. const m_ENOSPC = 28
  3348. const m_ENOSR = 63
  3349. const m_ENOSTR = 60
  3350. const m_ENOSYS = 38
  3351. const m_ENOTBLK = 15
  3352. const m_ENOTCONN = 107
  3353. const m_ENOTDIR = 20
  3354. const m_ENOTEMPTY = 39
  3355. const m_ENOTNAM = 118
  3356. const m_ENOTRECOVERABLE = 131
  3357. const m_ENOTSOCK = 88
  3358. const m_ENOTSUP = "EOPNOTSUPP"
  3359. const m_ENOTTY = 25
  3360. const m_ENOTUNIQ = 76
  3361. const m_ENXIO = 6
  3362. const m_EOPNOTSUPP = 95
  3363. const m_EOVERFLOW = 75
  3364. const m_EOWNERDEAD = 130
  3365. const m_EPERM = 1
  3366. const m_EPFNOSUPPORT = 96
  3367. const m_EPIPE = 32
  3368. const m_EPROTO = 71
  3369. const m_EPROTONOSUPPORT = 93
  3370. const m_EPROTOTYPE = 91
  3371. const m_ERANGE = 34
  3372. const m_EREMCHG = 78
  3373. const m_EREMOTE = 66
  3374. const m_EREMOTEIO = 121
  3375. const m_ERESTART = 85
  3376. const m_ERFKILL = 132
  3377. const m_EROFS = 30
  3378. const m_ESHUTDOWN = 108
  3379. const m_ESOCKTNOSUPPORT = 94
  3380. const m_ESPIPE = 29
  3381. const m_ESRCH = 3
  3382. const m_ESRMNT = 69
  3383. const m_ESTALE = 116
  3384. const m_ESTRPIPE = 86
  3385. const m_ETIME = 62
  3386. const m_ETIMEDOUT = 110
  3387. const m_ETOOMANYREFS = 109
  3388. const m_ETXTBSY = 26
  3389. const m_EUCLEAN = 117
  3390. const m_EUNATCH = 49
  3391. const m_EUSERS = 87
  3392. const m_EWOULDBLOCK = "EAGAIN"
  3393. const m_EXDEV = 18
  3394. const m_EXFULL = 54
  3395. const m_EXIT_FAILURE = 1
  3396. const m_EXIT_SUCCESS = 0
  3397. const m_FALLOC_FL_KEEP_SIZE = 1
  3398. const m_FALLOC_FL_PUNCH_HOLE = 2
  3399. const m_FAPPEND = "O_APPEND"
  3400. const m_FASYNC = "O_ASYNC"
  3401. const m_FD_CLOEXEC = 1
  3402. const m_FFSYNC = "O_SYNC"
  3403. const m_FILENAME_MAX = 4096
  3404. const m_FNDELAY = "O_NDELAY"
  3405. const m_FNONBLOCK = "O_NONBLOCK"
  3406. const m_FOPEN_MAX = 1000
  3407. const m_F_ADD_SEALS = 1033
  3408. const m_F_CANCELLK = 1029
  3409. const m_F_DUPFD = 0
  3410. const m_F_DUPFD_CLOEXEC = 1030
  3411. const m_F_GETFD = 1
  3412. const m_F_GETFL = 3
  3413. const m_F_GETLEASE = 1025
  3414. const m_F_GETLK = 5
  3415. const m_F_GETOWN = 9
  3416. const m_F_GETOWNER_UIDS = 17
  3417. const m_F_GETOWN_EX = 16
  3418. const m_F_GETPIPE_SZ = 1032
  3419. const m_F_GETSIG = 11
  3420. const m_F_GET_FILE_RW_HINT = 1037
  3421. const m_F_GET_RW_HINT = 1035
  3422. const m_F_GET_SEALS = 1034
  3423. const m_F_LOCK = 1
  3424. const m_F_NOTIFY = 1026
  3425. const m_F_OFD_GETLK = 36
  3426. const m_F_OFD_SETLK = 37
  3427. const m_F_OFD_SETLKW = 38
  3428. const m_F_OK = 0
  3429. const m_F_OWNER_GID = 2
  3430. const m_F_OWNER_PGRP = 2
  3431. const m_F_OWNER_PID = 1
  3432. const m_F_OWNER_TID = 0
  3433. const m_F_RDLCK = 0
  3434. const m_F_SEAL_FUTURE_WRITE = 0x0010
  3435. const m_F_SEAL_GROW = 0x0004
  3436. const m_F_SEAL_SEAL = 0x0001
  3437. const m_F_SEAL_SHRINK = 0x0002
  3438. const m_F_SEAL_WRITE = 0x0008
  3439. const m_F_SETFD = 2
  3440. const m_F_SETFL = 4
  3441. const m_F_SETLEASE = 1024
  3442. const m_F_SETLK = 6
  3443. const m_F_SETLKW = 7
  3444. const m_F_SETOWN = 8
  3445. const m_F_SETOWN_EX = 15
  3446. const m_F_SETPIPE_SZ = 1031
  3447. const m_F_SETSIG = 10
  3448. const m_F_SET_FILE_RW_HINT = 1038
  3449. const m_F_SET_RW_HINT = 1036
  3450. const m_F_TEST = 3
  3451. const m_F_TLOCK = 2
  3452. const m_F_ULOCK = 0
  3453. const m_F_UNLCK = 2
  3454. const m_F_WRLCK = 1
  3455. const m_L_INCR = 1
  3456. const m_L_SET = 0
  3457. const m_L_XTND = 2
  3458. const m_L_ctermid = 20
  3459. const m_L_cuserid = 20
  3460. const m_L_tmpnam = 20
  3461. const m_MAX_HANDLE_SZ = 128
  3462. const m_O_APPEND = 02000
  3463. const m_O_ASYNC = 020000
  3464. const m_O_CLOEXEC = 02000000
  3465. const m_O_CREAT = 0100
  3466. const m_O_DIRECT = 040000
  3467. const m_O_DIRECTORY = 0200000
  3468. const m_O_DSYNC = 010000
  3469. const m_O_EXCL = 0200
  3470. const m_O_EXEC = "O_PATH"
  3471. const m_O_LARGEFILE = 0100000
  3472. const m_O_NDELAY = "O_NONBLOCK"
  3473. const m_O_NOATIME = 01000000
  3474. const m_O_NOCTTY = 0400
  3475. const m_O_NOFOLLOW = 0400000
  3476. const m_O_NONBLOCK = 04000
  3477. const m_O_PATH = 010000000
  3478. const m_O_RDONLY = 0
  3479. const m_O_RDWR = 02
  3480. const m_O_RSYNC = 04010000
  3481. const m_O_SEARCH = "O_PATH"
  3482. const m_O_SYNC = 04010000
  3483. const m_O_TMPFILE = 020200000
  3484. const m_O_TRUNC = 01000
  3485. const m_O_TTY_INIT = 0
  3486. const m_O_WRONLY = 01
  3487. const m_POSIX_CLOSE_RESTART = 0
  3488. const m_POSIX_FADV_DONTNEED = 4
  3489. const m_POSIX_FADV_NOREUSE = 5
  3490. const m_POSIX_FADV_NORMAL = 0
  3491. const m_POSIX_FADV_RANDOM = 1
  3492. const m_POSIX_FADV_SEQUENTIAL = 2
  3493. const m_POSIX_FADV_WILLNEED = 3
  3494. const m_P_tmpdir = "/tmp"
  3495. const m_RAND_MAX = 0x7fffffff
  3496. const m_RWF_WRITE_LIFE_NOT_SET = 0
  3497. const m_RWH_WRITE_LIFE_EXTREME = 5
  3498. const m_RWH_WRITE_LIFE_LONG = 4
  3499. const m_RWH_WRITE_LIFE_MEDIUM = 3
  3500. const m_RWH_WRITE_LIFE_NONE = 1
  3501. const m_RWH_WRITE_LIFE_SHORT = 2
  3502. const m_R_OK = 4
  3503. const m_SEEK_DATA = 3
  3504. const m_SEEK_HOLE = 4
  3505. const m_SPLICE_F_GIFT = 8
  3506. const m_SPLICE_F_MORE = 4
  3507. const m_SPLICE_F_MOVE = 1
  3508. const m_SPLICE_F_NONBLOCK = 2
  3509. const m_STATX_ALL = 0xfff
  3510. const m_STATX_ATIME = 0x20
  3511. const m_STATX_BASIC_STATS = 0x7ff
  3512. const m_STATX_BLOCKS = 0x400
  3513. const m_STATX_BTIME = 0x800
  3514. const m_STATX_CTIME = 0x80
  3515. const m_STATX_GID = 0x10
  3516. const m_STATX_INO = 0x100
  3517. const m_STATX_MODE = 2
  3518. const m_STATX_MTIME = 0x40
  3519. const m_STATX_NLINK = 4
  3520. const m_STATX_SIZE = 0x200
  3521. const m_STATX_TYPE = 1
  3522. const m_STATX_UID = 8
  3523. const m_STDERR_FILENO = 2
  3524. const m_STDIN_FILENO = 0
  3525. const m_STDOUT_FILENO = 1
  3526. const m_SYNC_FILE_RANGE_WAIT_AFTER = 4
  3527. const m_SYNC_FILE_RANGE_WAIT_BEFORE = 1
  3528. const m_SYNC_FILE_RANGE_WRITE = 2
  3529. const m_S_IEXEC = "S_IXUSR"
  3530. const m_S_IFBLK = 0060000
  3531. const m_S_IFCHR = 0020000
  3532. const m_S_IFDIR = 0040000
  3533. const m_S_IFIFO = 0010000
  3534. const m_S_IFLNK = 0120000
  3535. const m_S_IFMT = 0170000
  3536. const m_S_IFREG = 0100000
  3537. const m_S_IFSOCK = 0140000
  3538. const m_S_IREAD = "S_IRUSR"
  3539. const m_S_IRGRP = 0040
  3540. const m_S_IROTH = 0004
  3541. const m_S_IRUSR = 0400
  3542. const m_S_IRWXG = 0070
  3543. const m_S_IRWXO = 0007
  3544. const m_S_IRWXU = 0700
  3545. const m_S_ISGID = 02000
  3546. const m_S_ISUID = 04000
  3547. const m_S_ISVTX = 01000
  3548. const m_S_IWGRP = 0020
  3549. const m_S_IWOTH = 0002
  3550. const m_S_IWRITE = "S_IWUSR"
  3551. const m_S_IWUSR = 0200
  3552. const m_S_IXGRP = 0010
  3553. const m_S_IXOTH = 0001
  3554. const m_S_IXUSR = 0100
  3555. const m_TMP_MAX = 10000
  3556. const m_UTIME_NOW = 0x3fffffff
  3557. const m_UTIME_OMIT = 0x3ffffffe
  3558. const m_WNOHANG = 1
  3559. const m_WUNTRACED = 2
  3560. const m_W_OK = 2
  3561. const m_X_OK = 1
  3562. const m__CS_GNU_LIBC_VERSION = 2
  3563. const m__CS_GNU_LIBPTHREAD_VERSION = 3
  3564. const m__CS_PATH = 0
  3565. const m__CS_POSIX_V5_WIDTH_RESTRICTED_ENVS = 4
  3566. const m__CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116
  3567. const m__CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117
  3568. const m__CS_POSIX_V6_ILP32_OFF32_LIBS = 1118
  3569. const m__CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119
  3570. const m__CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120
  3571. const m__CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121
  3572. const m__CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122
  3573. const m__CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123
  3574. const m__CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124
  3575. const m__CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125
  3576. const m__CS_POSIX_V6_LP64_OFF64_LIBS = 1126
  3577. const m__CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127
  3578. const m__CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128
  3579. const m__CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129
  3580. const m__CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130
  3581. const m__CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131
  3582. const m__CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 1
  3583. const m__CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132
  3584. const m__CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133
  3585. const m__CS_POSIX_V7_ILP32_OFF32_LIBS = 1134
  3586. const m__CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135
  3587. const m__CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136
  3588. const m__CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137
  3589. const m__CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138
  3590. const m__CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139
  3591. const m__CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140
  3592. const m__CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141
  3593. const m__CS_POSIX_V7_LP64_OFF64_LIBS = 1142
  3594. const m__CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143
  3595. const m__CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144
  3596. const m__CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145
  3597. const m__CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146
  3598. const m__CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147
  3599. const m__CS_POSIX_V7_THREADS_CFLAGS = 1150
  3600. const m__CS_POSIX_V7_THREADS_LDFLAGS = 1151
  3601. const m__CS_POSIX_V7_WIDTH_RESTRICTED_ENVS = 5
  3602. const m__CS_V6_ENV = 1148
  3603. const m__CS_V7_ENV = 1149
  3604. const m__IOFBF = 0
  3605. const m__IOLBF = 1
  3606. const m__IONBF = 2
  3607. const m__PC_2_SYMLINKS = 20
  3608. const m__PC_ALLOC_SIZE_MIN = 18
  3609. const m__PC_ASYNC_IO = 10
  3610. const m__PC_CHOWN_RESTRICTED = 6
  3611. const m__PC_FILESIZEBITS = 13
  3612. const m__PC_LINK_MAX = 0
  3613. const m__PC_MAX_CANON = 1
  3614. const m__PC_MAX_INPUT = 2
  3615. const m__PC_NAME_MAX = 3
  3616. const m__PC_NO_TRUNC = 7
  3617. const m__PC_PATH_MAX = 4
  3618. const m__PC_PIPE_BUF = 5
  3619. const m__PC_PRIO_IO = 11
  3620. const m__PC_REC_INCR_XFER_SIZE = 14
  3621. const m__PC_REC_MAX_XFER_SIZE = 15
  3622. const m__PC_REC_MIN_XFER_SIZE = 16
  3623. const m__PC_REC_XFER_ALIGN = 17
  3624. const m__PC_SOCK_MAXBUF = 12
  3625. const m__PC_SYMLINK_MAX = 19
  3626. const m__PC_SYNC_IO = 9
  3627. const m__PC_VDISABLE = 8
  3628. const m__POSIX2_C_BIND = "_POSIX_VERSION"
  3629. const m__POSIX2_VERSION = "_POSIX_VERSION"
  3630. const m__POSIX_ADVISORY_INFO = "_POSIX_VERSION"
  3631. const m__POSIX_ASYNCHRONOUS_IO = "_POSIX_VERSION"
  3632. const m__POSIX_BARRIERS = "_POSIX_VERSION"
  3633. const m__POSIX_CHOWN_RESTRICTED = 1
  3634. const m__POSIX_CLOCK_SELECTION = "_POSIX_VERSION"
  3635. const m__POSIX_CPUTIME = "_POSIX_VERSION"
  3636. const m__POSIX_FSYNC = "_POSIX_VERSION"
  3637. const m__POSIX_IPV6 = "_POSIX_VERSION"
  3638. const m__POSIX_JOB_CONTROL = 1
  3639. const m__POSIX_MAPPED_FILES = "_POSIX_VERSION"
  3640. const m__POSIX_MEMLOCK = "_POSIX_VERSION"
  3641. const m__POSIX_MEMLOCK_RANGE = "_POSIX_VERSION"
  3642. const m__POSIX_MEMORY_PROTECTION = "_POSIX_VERSION"
  3643. const m__POSIX_MESSAGE_PASSING = "_POSIX_VERSION"
  3644. const m__POSIX_MONOTONIC_CLOCK = "_POSIX_VERSION"
  3645. const m__POSIX_NO_TRUNC = 1
  3646. const m__POSIX_RAW_SOCKETS = "_POSIX_VERSION"
  3647. const m__POSIX_READER_WRITER_LOCKS = "_POSIX_VERSION"
  3648. const m__POSIX_REALTIME_SIGNALS = "_POSIX_VERSION"
  3649. const m__POSIX_REGEXP = 1
  3650. const m__POSIX_SAVED_IDS = 1
  3651. const m__POSIX_SEMAPHORES = "_POSIX_VERSION"
  3652. const m__POSIX_SHARED_MEMORY_OBJECTS = "_POSIX_VERSION"
  3653. const m__POSIX_SHELL = 1
  3654. const m__POSIX_SPAWN = "_POSIX_VERSION"
  3655. const m__POSIX_SPIN_LOCKS = "_POSIX_VERSION"
  3656. const m__POSIX_THREADS = "_POSIX_VERSION"
  3657. const m__POSIX_THREAD_ATTR_STACKADDR = "_POSIX_VERSION"
  3658. const m__POSIX_THREAD_ATTR_STACKSIZE = "_POSIX_VERSION"
  3659. const m__POSIX_THREAD_CPUTIME = "_POSIX_VERSION"
  3660. const m__POSIX_THREAD_PRIORITY_SCHEDULING = "_POSIX_VERSION"
  3661. const m__POSIX_THREAD_PROCESS_SHARED = "_POSIX_VERSION"
  3662. const m__POSIX_THREAD_SAFE_FUNCTIONS = "_POSIX_VERSION"
  3663. const m__POSIX_TIMEOUTS = "_POSIX_VERSION"
  3664. const m__POSIX_TIMERS = "_POSIX_VERSION"
  3665. const m__POSIX_V6_LP64_OFF64 = 1
  3666. const m__POSIX_V7_LP64_OFF64 = 1
  3667. const m__POSIX_VDISABLE = 0
  3668. const m__POSIX_VERSION = 200809
  3669. const m__SC_2_CHAR_TERM = 95
  3670. const m__SC_2_C_BIND = 47
  3671. const m__SC_2_C_DEV = 48
  3672. const m__SC_2_FORT_DEV = 49
  3673. const m__SC_2_FORT_RUN = 50
  3674. const m__SC_2_LOCALEDEF = 52
  3675. const m__SC_2_PBS = 168
  3676. const m__SC_2_PBS_ACCOUNTING = 169
  3677. const m__SC_2_PBS_CHECKPOINT = 175
  3678. const m__SC_2_PBS_LOCATE = 170
  3679. const m__SC_2_PBS_MESSAGE = 171
  3680. const m__SC_2_PBS_TRACK = 172
  3681. const m__SC_2_SW_DEV = 51
  3682. const m__SC_2_UPE = 97
  3683. const m__SC_2_VERSION = 46
  3684. const m__SC_ADVISORY_INFO = 132
  3685. const m__SC_AIO_LISTIO_MAX = 23
  3686. const m__SC_AIO_MAX = 24
  3687. const m__SC_AIO_PRIO_DELTA_MAX = 25
  3688. const m__SC_ARG_MAX = 0
  3689. const m__SC_ASYNCHRONOUS_IO = 12
  3690. const m__SC_ATEXIT_MAX = 87
  3691. const m__SC_AVPHYS_PAGES = 86
  3692. const m__SC_BARRIERS = 133
  3693. const m__SC_BC_BASE_MAX = 36
  3694. const m__SC_BC_DIM_MAX = 37
  3695. const m__SC_BC_SCALE_MAX = 38
  3696. const m__SC_BC_STRING_MAX = 39
  3697. const m__SC_CHILD_MAX = 1
  3698. const m__SC_CLK_TCK = 2
  3699. const m__SC_CLOCK_SELECTION = 137
  3700. const m__SC_COLL_WEIGHTS_MAX = 40
  3701. const m__SC_CPUTIME = 138
  3702. const m__SC_DELAYTIMER_MAX = 26
  3703. const m__SC_EXPR_NEST_MAX = 42
  3704. const m__SC_FSYNC = 15
  3705. const m__SC_GETGR_R_SIZE_MAX = 69
  3706. const m__SC_GETPW_R_SIZE_MAX = 70
  3707. const m__SC_HOST_NAME_MAX = 180
  3708. const m__SC_IOV_MAX = 60
  3709. const m__SC_IPV6 = 235
  3710. const m__SC_JOB_CONTROL = 7
  3711. const m__SC_LINE_MAX = 43
  3712. const m__SC_LOGIN_NAME_MAX = 71
  3713. const m__SC_MAPPED_FILES = 16
  3714. const m__SC_MEMLOCK = 17
  3715. const m__SC_MEMLOCK_RANGE = 18
  3716. const m__SC_MEMORY_PROTECTION = 19
  3717. const m__SC_MESSAGE_PASSING = 20
  3718. const m__SC_MINSIGSTKSZ = 249
  3719. const m__SC_MONOTONIC_CLOCK = 149
  3720. const m__SC_MQ_OPEN_MAX = 27
  3721. const m__SC_MQ_PRIO_MAX = 28
  3722. const m__SC_NGROUPS_MAX = 3
  3723. const m__SC_NPROCESSORS_CONF = 83
  3724. const m__SC_NPROCESSORS_ONLN = 84
  3725. const m__SC_NZERO = 109
  3726. const m__SC_OPEN_MAX = 4
  3727. const m__SC_PAGESIZE = 30
  3728. const m__SC_PAGE_SIZE = 30
  3729. const m__SC_PASS_MAX = 88
  3730. const m__SC_PHYS_PAGES = 85
  3731. const m__SC_PRIORITIZED_IO = 13
  3732. const m__SC_PRIORITY_SCHEDULING = 10
  3733. const m__SC_RAW_SOCKETS = 236
  3734. const m__SC_READER_WRITER_LOCKS = 153
  3735. const m__SC_REALTIME_SIGNALS = 9
  3736. const m__SC_REGEXP = 155
  3737. const m__SC_RE_DUP_MAX = 44
  3738. const m__SC_RTSIG_MAX = 31
  3739. const m__SC_SAVED_IDS = 8
  3740. const m__SC_SEMAPHORES = 21
  3741. const m__SC_SEM_NSEMS_MAX = 32
  3742. const m__SC_SEM_VALUE_MAX = 33
  3743. const m__SC_SHARED_MEMORY_OBJECTS = 22
  3744. const m__SC_SHELL = 157
  3745. const m__SC_SIGQUEUE_MAX = 34
  3746. const m__SC_SIGSTKSZ = 250
  3747. const m__SC_SPAWN = 159
  3748. const m__SC_SPIN_LOCKS = 154
  3749. const m__SC_SPORADIC_SERVER = 160
  3750. const m__SC_SS_REPL_MAX = 241
  3751. const m__SC_STREAMS = 174
  3752. const m__SC_STREAM_MAX = 5
  3753. const m__SC_SYMLOOP_MAX = 173
  3754. const m__SC_SYNCHRONIZED_IO = 14
  3755. const m__SC_THREADS = 67
  3756. const m__SC_THREAD_ATTR_STACKADDR = 77
  3757. const m__SC_THREAD_ATTR_STACKSIZE = 78
  3758. const m__SC_THREAD_CPUTIME = 139
  3759. const m__SC_THREAD_DESTRUCTOR_ITERATIONS = 73
  3760. const m__SC_THREAD_KEYS_MAX = 74
  3761. const m__SC_THREAD_PRIORITY_SCHEDULING = 79
  3762. const m__SC_THREAD_PRIO_INHERIT = 80
  3763. const m__SC_THREAD_PRIO_PROTECT = 81
  3764. const m__SC_THREAD_PROCESS_SHARED = 82
  3765. const m__SC_THREAD_ROBUST_PRIO_INHERIT = 247
  3766. const m__SC_THREAD_ROBUST_PRIO_PROTECT = 248
  3767. const m__SC_THREAD_SAFE_FUNCTIONS = 68
  3768. const m__SC_THREAD_SPORADIC_SERVER = 161
  3769. const m__SC_THREAD_STACK_MIN = 75
  3770. const m__SC_THREAD_THREADS_MAX = 76
  3771. const m__SC_TIMEOUTS = 164
  3772. const m__SC_TIMERS = 11
  3773. const m__SC_TIMER_MAX = 35
  3774. const m__SC_TRACE = 181
  3775. const m__SC_TRACE_EVENT_FILTER = 182
  3776. const m__SC_TRACE_EVENT_NAME_MAX = 242
  3777. const m__SC_TRACE_INHERIT = 183
  3778. const m__SC_TRACE_LOG = 184
  3779. const m__SC_TRACE_NAME_MAX = 243
  3780. const m__SC_TRACE_SYS_MAX = 244
  3781. const m__SC_TRACE_USER_EVENT_MAX = 245
  3782. const m__SC_TTY_NAME_MAX = 72
  3783. const m__SC_TYPED_MEMORY_OBJECTS = 165
  3784. const m__SC_TZNAME_MAX = 6
  3785. const m__SC_UIO_MAXIOV = 60
  3786. const m__SC_V6_ILP32_OFF32 = 176
  3787. const m__SC_V6_ILP32_OFFBIG = 177
  3788. const m__SC_V6_LP64_OFF64 = 178
  3789. const m__SC_V6_LPBIG_OFFBIG = 179
  3790. const m__SC_V7_ILP32_OFF32 = 237
  3791. const m__SC_V7_ILP32_OFFBIG = 238
  3792. const m__SC_V7_LP64_OFF64 = 239
  3793. const m__SC_V7_LPBIG_OFFBIG = 240
  3794. const m__SC_VERSION = 29
  3795. const m__SC_XBS5_ILP32_OFF32 = 125
  3796. const m__SC_XBS5_ILP32_OFFBIG = 126
  3797. const m__SC_XBS5_LP64_OFF64 = 127
  3798. const m__SC_XBS5_LPBIG_OFFBIG = 128
  3799. const m__SC_XOPEN_CRYPT = 92
  3800. const m__SC_XOPEN_ENH_I18N = 93
  3801. const m__SC_XOPEN_LEGACY = 129
  3802. const m__SC_XOPEN_REALTIME = 130
  3803. const m__SC_XOPEN_REALTIME_THREADS = 131
  3804. const m__SC_XOPEN_SHM = 94
  3805. const m__SC_XOPEN_STREAMS = 246
  3806. const m__SC_XOPEN_UNIX = 91
  3807. const m__SC_XOPEN_VERSION = 89
  3808. const m__SC_XOPEN_XCU_VERSION = 90
  3809. const m__SC_XOPEN_XPG2 = 98
  3810. const m__SC_XOPEN_XPG3 = 99
  3811. const m__SC_XOPEN_XPG4 = 100
  3812. const m__XOPEN_ENH_I18N = 1
  3813. const m__XOPEN_UNIX = 1
  3814. const m__XOPEN_VERSION = 700
  3815. const m_alloca = "__builtin_alloca"
  3816. const m_loff_t = "off_t"
  3817. type Tstat = struct {
  3818. Fst_dev Tdev_t
  3819. Fst_ino Tino_t
  3820. Fst_mode Tmode_t
  3821. Fst_nlink Tnlink_t
  3822. Fst_uid Tuid_t
  3823. Fst_gid Tgid_t
  3824. Fst_rdev Tdev_t
  3825. F__pad uint64
  3826. Fst_size Toff_t
  3827. Fst_blksize Tblksize_t
  3828. F__pad2 int32
  3829. Fst_blocks Tblkcnt_t
  3830. Fst_atim Ttimespec
  3831. Fst_mtim Ttimespec
  3832. Fst_ctim Ttimespec
  3833. F__unused [2]uint32
  3834. }
  3835. type Tstatx_timestamp = struct {
  3836. Ftv_sec Tint64_t
  3837. Ftv_nsec Tuint32_t
  3838. F__pad Tuint32_t
  3839. }
  3840. type Tstatx = struct {
  3841. Fstx_mask Tuint32_t
  3842. Fstx_blksize Tuint32_t
  3843. Fstx_attributes Tuint64_t
  3844. Fstx_nlink Tuint32_t
  3845. Fstx_uid Tuint32_t
  3846. Fstx_gid Tuint32_t
  3847. Fstx_mode Tuint16_t
  3848. F__pad0 [1]Tuint16_t
  3849. Fstx_ino Tuint64_t
  3850. Fstx_size Tuint64_t
  3851. Fstx_blocks Tuint64_t
  3852. Fstx_attributes_mask Tuint64_t
  3853. Fstx_atime Tstatx_timestamp
  3854. Fstx_btime Tstatx_timestamp
  3855. Fstx_ctime Tstatx_timestamp
  3856. Fstx_mtime Tstatx_timestamp
  3857. Fstx_rdev_major Tuint32_t
  3858. Fstx_rdev_minor Tuint32_t
  3859. Fstx_dev_major Tuint32_t
  3860. Fstx_dev_minor Tuint32_t
  3861. F__pad1 [14]Tuint64_t
  3862. }
  3863. type Tiovec = struct {
  3864. Fiov_base uintptr
  3865. Fiov_len Tsize_t
  3866. }
  3867. type Tflock = struct {
  3868. Fl_type int16
  3869. Fl_whence int16
  3870. Fl_start Toff_t
  3871. Fl_len Toff_t
  3872. Fl_pid Tpid_t
  3873. }
  3874. type Tfile_handle = struct {
  3875. Fhandle_bytes uint32
  3876. Fhandle_type int32
  3877. }
  3878. type Tf_owner_ex = struct {
  3879. Ftype1 int32
  3880. Fpid Tpid_t
  3881. }
  3882. type Twchar_t = int32
  3883. type Tdiv_t = struct {
  3884. Fquot int32
  3885. Frem int32
  3886. }
  3887. type Tldiv_t = struct {
  3888. Fquot int64
  3889. Frem int64
  3890. }
  3891. type Tlldiv_t = struct {
  3892. Fquot int64
  3893. Frem int64
  3894. }
  3895. type Tva_list = uintptr
  3896. type t__isoc_va_list = uintptr
  3897. type Tfpos_t = struct {
  3898. F__lldata [0]int64
  3899. F__align [0]float64
  3900. F__opaque [16]uint8
  3901. }
  3902. type T_G_fpos64_t = Tfpos_t
  3903. type Tcookie_io_functions_t = struct {
  3904. Fread uintptr
  3905. Fwrite uintptr
  3906. Fseek uintptr
  3907. Fclose1 uintptr
  3908. }
  3909. type T_IO_cookie_io_functions_t = Tcookie_io_functions_t
  3910. // C documentation
  3911. //
  3912. // /* ARGSUSED */
  3913. func XMD2End(tls *libc.TLS, ctx uintptr, buf uintptr) (r uintptr) {
  3914. bp := tls.Alloc(16)
  3915. defer tls.Free(16)
  3916. var i int32
  3917. var v1 uintptr
  3918. var v2 bool
  3919. var _ /* digest at bp+0 */ [16]Tuint8_t
  3920. _, _, _ = i, v1, v2
  3921. if v2 = buf == libc.UintptrFromInt32(0); v2 {
  3922. v1 = libc.Xmalloc(tls, uint64(m_MD2_DIGEST_STRING_LENGTH))
  3923. buf = v1
  3924. }
  3925. if v2 && v1 == libc.UintptrFromInt32(0) {
  3926. return libc.UintptrFromInt32(0)
  3927. }
  3928. XMD2Final(tls, bp, ctx)
  3929. i = 0
  3930. for {
  3931. if !(i < int32(m_MD2_DIGEST_LENGTH)) {
  3932. break
  3933. }
  3934. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i))) = _hex[libc.Int32FromUint8((*(*[16]Tuint8_t)(unsafe.Pointer(bp)))[i])>>int32(4)]
  3935. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i+int32(1)))) = _hex[libc.Int32FromUint8((*(*[16]Tuint8_t)(unsafe.Pointer(bp)))[i])&int32(0x0f)]
  3936. goto _3
  3937. _3:
  3938. ;
  3939. i++
  3940. }
  3941. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i))) = uint8('\000')
  3942. libc.Xmemset(tls, bp, 0, uint64(16))
  3943. return buf
  3944. }
  3945. var _hex = [17]uint8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}
  3946. func XMD2FileChunk(tls *libc.TLS, filename uintptr, buf uintptr, off Toff_t, len1 Toff_t) (r uintptr) {
  3947. bp := tls.Alloc(1232)
  3948. defer tls.Free(1232)
  3949. var fd, save_errno, v1 int32
  3950. var nr, v2 Tssize_t
  3951. var v3 int64
  3952. var v4 bool
  3953. var v5 uintptr
  3954. var _ /* buffer at bp+128 */ [1024]Tuint8_t
  3955. var _ /* ctx at bp+1152 */ TMD2_CTX
  3956. var _ /* sb at bp+0 */ Tstat
  3957. _, _, _, _, _, _, _, _ = fd, nr, save_errno, v1, v2, v3, v4, v5
  3958. XMD2Init(tls, bp+1152)
  3959. v1 = libc.Xopen(tls, filename, m_O_RDONLY, 0)
  3960. fd = v1
  3961. if v1 < 0 {
  3962. return libc.UintptrFromInt32(0)
  3963. }
  3964. if len1 == 0 {
  3965. if libc.Xfstat(tls, fd, bp) == -int32(1) {
  3966. libc.Xclose(tls, fd)
  3967. return libc.UintptrFromInt32(0)
  3968. }
  3969. len1 = (*(*Tstat)(unsafe.Pointer(bp))).Fst_size
  3970. }
  3971. if off > 0 && libc.Xlseek(tls, fd, off, 0) < 0 {
  3972. libc.Xclose(tls, fd)
  3973. return libc.UintptrFromInt32(0)
  3974. }
  3975. for {
  3976. if libc.Int64FromInt64(1024) < len1 {
  3977. v3 = libc.Int64FromInt64(1024)
  3978. } else {
  3979. v3 = len1
  3980. }
  3981. v2 = libc.Xread(tls, fd, bp+128, libc.Uint64FromInt64(v3))
  3982. nr = v2
  3983. if !(v2 > 0) {
  3984. break
  3985. }
  3986. XMD2Update(tls, bp+1152, bp+128, uint32(libc.Uint64FromInt64(nr)))
  3987. if v4 = len1 > 0; v4 {
  3988. len1 -= nr
  3989. }
  3990. if v4 && len1 == 0 {
  3991. break
  3992. }
  3993. }
  3994. save_errno = *(*int32)(unsafe.Pointer(libc.X__errno_location(tls)))
  3995. libc.Xclose(tls, fd)
  3996. *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) = save_errno
  3997. if nr < 0 {
  3998. v5 = libc.UintptrFromInt32(0)
  3999. } else {
  4000. v5 = XMD2End(tls, bp+1152, buf)
  4001. }
  4002. return v5
  4003. }
  4004. func XMD2File(tls *libc.TLS, filename uintptr, buf uintptr) (r uintptr) {
  4005. return XMD2FileChunk(tls, filename, buf, libc.Int64FromInt32(0), libc.Int64FromInt32(0))
  4006. }
  4007. func XMD2Data(tls *libc.TLS, data uintptr, len1 Tsize_t, buf uintptr) (r uintptr) {
  4008. bp := tls.Alloc(80)
  4009. defer tls.Free(80)
  4010. var _ /* ctx at bp+0 */ TMD2_CTX
  4011. XMD2Init(tls, bp)
  4012. XMD2Update(tls, bp, data, uint32(len1))
  4013. return XMD2End(tls, bp, buf)
  4014. }
  4015. // C documentation
  4016. //
  4017. // /* ARGSUSED */
  4018. func XMD4End(tls *libc.TLS, ctx uintptr, buf uintptr) (r uintptr) {
  4019. bp := tls.Alloc(16)
  4020. defer tls.Free(16)
  4021. var i int32
  4022. var v1 uintptr
  4023. var v2 bool
  4024. var _ /* digest at bp+0 */ [16]Tuint8_t
  4025. _, _, _ = i, v1, v2
  4026. if v2 = buf == libc.UintptrFromInt32(0); v2 {
  4027. v1 = libc.Xmalloc(tls, libc.Uint64FromInt32(libc.Int32FromInt32(m_MD4_DIGEST_LENGTH)*libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))
  4028. buf = v1
  4029. }
  4030. if v2 && v1 == libc.UintptrFromInt32(0) {
  4031. return libc.UintptrFromInt32(0)
  4032. }
  4033. XMD4Final(tls, bp, ctx)
  4034. i = 0
  4035. for {
  4036. if !(i < int32(m_MD4_DIGEST_LENGTH)) {
  4037. break
  4038. }
  4039. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i))) = _hex1[libc.Int32FromUint8((*(*[16]Tuint8_t)(unsafe.Pointer(bp)))[i])>>int32(4)]
  4040. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i+int32(1)))) = _hex1[libc.Int32FromUint8((*(*[16]Tuint8_t)(unsafe.Pointer(bp)))[i])&int32(0x0f)]
  4041. goto _3
  4042. _3:
  4043. ;
  4044. i++
  4045. }
  4046. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i))) = uint8('\000')
  4047. libc.Xmemset(tls, bp, 0, uint64(16))
  4048. return buf
  4049. }
  4050. var _hex1 = [17]uint8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}
  4051. func XMD4FileChunk(tls *libc.TLS, filename uintptr, buf uintptr, off Toff_t, len1 Toff_t) (r uintptr) {
  4052. bp := tls.Alloc(1248)
  4053. defer tls.Free(1248)
  4054. var fd, save_errno, v1 int32
  4055. var nr, v2 Tssize_t
  4056. var v3 int64
  4057. var v4 bool
  4058. var v5 uintptr
  4059. var _ /* buffer at bp+128 */ [1024]Tuint8_t
  4060. var _ /* ctx at bp+1152 */ TMD4_CTX
  4061. var _ /* sb at bp+0 */ Tstat
  4062. _, _, _, _, _, _, _, _ = fd, nr, save_errno, v1, v2, v3, v4, v5
  4063. XMD4Init(tls, bp+1152)
  4064. v1 = libc.Xopen(tls, filename, m_O_RDONLY, 0)
  4065. fd = v1
  4066. if v1 < 0 {
  4067. return libc.UintptrFromInt32(0)
  4068. }
  4069. if len1 == 0 {
  4070. if libc.Xfstat(tls, fd, bp) == -int32(1) {
  4071. libc.Xclose(tls, fd)
  4072. return libc.UintptrFromInt32(0)
  4073. }
  4074. len1 = (*(*Tstat)(unsafe.Pointer(bp))).Fst_size
  4075. }
  4076. if off > 0 && libc.Xlseek(tls, fd, off, 0) < 0 {
  4077. libc.Xclose(tls, fd)
  4078. return libc.UintptrFromInt32(0)
  4079. }
  4080. for {
  4081. if libc.Int64FromInt64(1024) < len1 {
  4082. v3 = libc.Int64FromInt64(1024)
  4083. } else {
  4084. v3 = len1
  4085. }
  4086. v2 = libc.Xread(tls, fd, bp+128, libc.Uint64FromInt64(v3))
  4087. nr = v2
  4088. if !(v2 > 0) {
  4089. break
  4090. }
  4091. XMD4Update(tls, bp+1152, bp+128, libc.Uint64FromInt64(nr))
  4092. if v4 = len1 > 0; v4 {
  4093. len1 -= nr
  4094. }
  4095. if v4 && len1 == 0 {
  4096. break
  4097. }
  4098. }
  4099. save_errno = *(*int32)(unsafe.Pointer(libc.X__errno_location(tls)))
  4100. libc.Xclose(tls, fd)
  4101. *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) = save_errno
  4102. if nr < 0 {
  4103. v5 = libc.UintptrFromInt32(0)
  4104. } else {
  4105. v5 = XMD4End(tls, bp+1152, buf)
  4106. }
  4107. return v5
  4108. }
  4109. func XMD4File(tls *libc.TLS, filename uintptr, buf uintptr) (r uintptr) {
  4110. return XMD4FileChunk(tls, filename, buf, libc.Int64FromInt32(0), libc.Int64FromInt32(0))
  4111. }
  4112. func XMD4Data(tls *libc.TLS, data uintptr, len1 Tsize_t, buf uintptr) (r uintptr) {
  4113. bp := tls.Alloc(96)
  4114. defer tls.Free(96)
  4115. var _ /* ctx at bp+0 */ TMD4_CTX
  4116. XMD4Init(tls, bp)
  4117. XMD4Update(tls, bp, data, len1)
  4118. return XMD4End(tls, bp, buf)
  4119. }
  4120. /* Avoid polluting the namespace. Even though this makes this usage
  4121. * implementation-specific, defining it unconditionally should not be
  4122. * a problem, and better than possibly breaking unexpecting code. */
  4123. // C documentation
  4124. //
  4125. // /* ARGSUSED */
  4126. func XMD5End(tls *libc.TLS, ctx uintptr, buf uintptr) (r uintptr) {
  4127. bp := tls.Alloc(16)
  4128. defer tls.Free(16)
  4129. var i int32
  4130. var v1 uintptr
  4131. var v2 bool
  4132. var _ /* digest at bp+0 */ [16]Tuint8_t
  4133. _, _, _ = i, v1, v2
  4134. if v2 = buf == libc.UintptrFromInt32(0); v2 {
  4135. v1 = libc.Xmalloc(tls, libc.Uint64FromInt32(libc.Int32FromInt32(m_MD5_DIGEST_LENGTH)*libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))
  4136. buf = v1
  4137. }
  4138. if v2 && v1 == libc.UintptrFromInt32(0) {
  4139. return libc.UintptrFromInt32(0)
  4140. }
  4141. XMD5Final(tls, bp, ctx)
  4142. i = 0
  4143. for {
  4144. if !(i < int32(m_MD5_DIGEST_LENGTH)) {
  4145. break
  4146. }
  4147. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i))) = _hex2[libc.Int32FromUint8((*(*[16]Tuint8_t)(unsafe.Pointer(bp)))[i])>>int32(4)]
  4148. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i+int32(1)))) = _hex2[libc.Int32FromUint8((*(*[16]Tuint8_t)(unsafe.Pointer(bp)))[i])&int32(0x0f)]
  4149. goto _3
  4150. _3:
  4151. ;
  4152. i++
  4153. }
  4154. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i))) = uint8('\000')
  4155. libc.Xmemset(tls, bp, 0, uint64(16))
  4156. return buf
  4157. }
  4158. var _hex2 = [17]uint8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}
  4159. func XMD5FileChunk(tls *libc.TLS, filename uintptr, buf uintptr, off Toff_t, len1 Toff_t) (r uintptr) {
  4160. bp := tls.Alloc(1248)
  4161. defer tls.Free(1248)
  4162. var fd, save_errno, v1 int32
  4163. var nr, v2 Tssize_t
  4164. var v3 int64
  4165. var v4 bool
  4166. var v5 uintptr
  4167. var _ /* buffer at bp+128 */ [1024]Tuint8_t
  4168. var _ /* ctx at bp+1152 */ TMD5_CTX
  4169. var _ /* sb at bp+0 */ Tstat
  4170. _, _, _, _, _, _, _, _ = fd, nr, save_errno, v1, v2, v3, v4, v5
  4171. XMD5Init(tls, bp+1152)
  4172. v1 = libc.Xopen(tls, filename, m_O_RDONLY, 0)
  4173. fd = v1
  4174. if v1 < 0 {
  4175. return libc.UintptrFromInt32(0)
  4176. }
  4177. if len1 == 0 {
  4178. if libc.Xfstat(tls, fd, bp) == -int32(1) {
  4179. libc.Xclose(tls, fd)
  4180. return libc.UintptrFromInt32(0)
  4181. }
  4182. len1 = (*(*Tstat)(unsafe.Pointer(bp))).Fst_size
  4183. }
  4184. if off > 0 && libc.Xlseek(tls, fd, off, 0) < 0 {
  4185. libc.Xclose(tls, fd)
  4186. return libc.UintptrFromInt32(0)
  4187. }
  4188. for {
  4189. if libc.Int64FromInt64(1024) < len1 {
  4190. v3 = libc.Int64FromInt64(1024)
  4191. } else {
  4192. v3 = len1
  4193. }
  4194. v2 = libc.Xread(tls, fd, bp+128, libc.Uint64FromInt64(v3))
  4195. nr = v2
  4196. if !(v2 > 0) {
  4197. break
  4198. }
  4199. XMD5Update(tls, bp+1152, bp+128, libc.Uint64FromInt64(nr))
  4200. if v4 = len1 > 0; v4 {
  4201. len1 -= nr
  4202. }
  4203. if v4 && len1 == 0 {
  4204. break
  4205. }
  4206. }
  4207. save_errno = *(*int32)(unsafe.Pointer(libc.X__errno_location(tls)))
  4208. libc.Xclose(tls, fd)
  4209. *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) = save_errno
  4210. if nr < 0 {
  4211. v5 = libc.UintptrFromInt32(0)
  4212. } else {
  4213. v5 = XMD5End(tls, bp+1152, buf)
  4214. }
  4215. return v5
  4216. }
  4217. func XMD5File(tls *libc.TLS, filename uintptr, buf uintptr) (r uintptr) {
  4218. return XMD5FileChunk(tls, filename, buf, libc.Int64FromInt32(0), libc.Int64FromInt32(0))
  4219. }
  4220. func XMD5Data(tls *libc.TLS, data uintptr, len1 Tsize_t, buf uintptr) (r uintptr) {
  4221. bp := tls.Alloc(96)
  4222. defer tls.Free(96)
  4223. var _ /* ctx at bp+0 */ TMD5_CTX
  4224. XMD5Init(tls, bp)
  4225. XMD5Update(tls, bp, data, len1)
  4226. return XMD5End(tls, bp, buf)
  4227. }
  4228. // C documentation
  4229. //
  4230. // /* ARGSUSED */
  4231. func XRMD160End(tls *libc.TLS, ctx uintptr, buf uintptr) (r uintptr) {
  4232. bp := tls.Alloc(32)
  4233. defer tls.Free(32)
  4234. var i int32
  4235. var v1 uintptr
  4236. var v2 bool
  4237. var _ /* digest at bp+0 */ [20]Tuint8_t
  4238. _, _, _ = i, v1, v2
  4239. if v2 = buf == libc.UintptrFromInt32(0); v2 {
  4240. v1 = libc.Xmalloc(tls, libc.Uint64FromInt32(libc.Int32FromInt32(m_RMD160_DIGEST_LENGTH)*libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))
  4241. buf = v1
  4242. }
  4243. if v2 && v1 == libc.UintptrFromInt32(0) {
  4244. return libc.UintptrFromInt32(0)
  4245. }
  4246. XRMD160Final(tls, bp, ctx)
  4247. i = 0
  4248. for {
  4249. if !(i < int32(m_RMD160_DIGEST_LENGTH)) {
  4250. break
  4251. }
  4252. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i))) = _hex3[libc.Int32FromUint8((*(*[20]Tuint8_t)(unsafe.Pointer(bp)))[i])>>int32(4)]
  4253. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i+int32(1)))) = _hex3[libc.Int32FromUint8((*(*[20]Tuint8_t)(unsafe.Pointer(bp)))[i])&int32(0x0f)]
  4254. goto _3
  4255. _3:
  4256. ;
  4257. i++
  4258. }
  4259. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i))) = uint8('\000')
  4260. libc.Xmemset(tls, bp, 0, uint64(20))
  4261. return buf
  4262. }
  4263. var _hex3 = [17]uint8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}
  4264. func XRMD160FileChunk(tls *libc.TLS, filename uintptr, buf uintptr, off Toff_t, len1 Toff_t) (r uintptr) {
  4265. bp := tls.Alloc(1248)
  4266. defer tls.Free(1248)
  4267. var fd, save_errno, v1 int32
  4268. var nr, v2 Tssize_t
  4269. var v3 int64
  4270. var v4 bool
  4271. var v5 uintptr
  4272. var _ /* buffer at bp+128 */ [1024]Tuint8_t
  4273. var _ /* ctx at bp+1152 */ TRMD160_CTX
  4274. var _ /* sb at bp+0 */ Tstat
  4275. _, _, _, _, _, _, _, _ = fd, nr, save_errno, v1, v2, v3, v4, v5
  4276. XRMD160Init(tls, bp+1152)
  4277. v1 = libc.Xopen(tls, filename, m_O_RDONLY, 0)
  4278. fd = v1
  4279. if v1 < 0 {
  4280. return libc.UintptrFromInt32(0)
  4281. }
  4282. if len1 == 0 {
  4283. if libc.Xfstat(tls, fd, bp) == -int32(1) {
  4284. libc.Xclose(tls, fd)
  4285. return libc.UintptrFromInt32(0)
  4286. }
  4287. len1 = (*(*Tstat)(unsafe.Pointer(bp))).Fst_size
  4288. }
  4289. if off > 0 && libc.Xlseek(tls, fd, off, 0) < 0 {
  4290. libc.Xclose(tls, fd)
  4291. return libc.UintptrFromInt32(0)
  4292. }
  4293. for {
  4294. if libc.Int64FromInt64(1024) < len1 {
  4295. v3 = libc.Int64FromInt64(1024)
  4296. } else {
  4297. v3 = len1
  4298. }
  4299. v2 = libc.Xread(tls, fd, bp+128, libc.Uint64FromInt64(v3))
  4300. nr = v2
  4301. if !(v2 > 0) {
  4302. break
  4303. }
  4304. XRMD160Update(tls, bp+1152, bp+128, libc.Uint64FromInt64(nr))
  4305. if v4 = len1 > 0; v4 {
  4306. len1 -= nr
  4307. }
  4308. if v4 && len1 == 0 {
  4309. break
  4310. }
  4311. }
  4312. save_errno = *(*int32)(unsafe.Pointer(libc.X__errno_location(tls)))
  4313. libc.Xclose(tls, fd)
  4314. *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) = save_errno
  4315. if nr < 0 {
  4316. v5 = libc.UintptrFromInt32(0)
  4317. } else {
  4318. v5 = XRMD160End(tls, bp+1152, buf)
  4319. }
  4320. return v5
  4321. }
  4322. func XRMD160File(tls *libc.TLS, filename uintptr, buf uintptr) (r uintptr) {
  4323. return XRMD160FileChunk(tls, filename, buf, libc.Int64FromInt32(0), libc.Int64FromInt32(0))
  4324. }
  4325. func XRMD160Data(tls *libc.TLS, data uintptr, len1 Tsize_t, buf uintptr) (r uintptr) {
  4326. bp := tls.Alloc(96)
  4327. defer tls.Free(96)
  4328. var _ /* ctx at bp+0 */ TRMD160_CTX
  4329. XRMD160Init(tls, bp)
  4330. XRMD160Update(tls, bp, data, len1)
  4331. return XRMD160End(tls, bp, buf)
  4332. }
  4333. // C documentation
  4334. //
  4335. // /* ARGSUSED */
  4336. func XSHA1End(tls *libc.TLS, ctx uintptr, buf uintptr) (r uintptr) {
  4337. bp := tls.Alloc(32)
  4338. defer tls.Free(32)
  4339. var i int32
  4340. var v1 uintptr
  4341. var v2 bool
  4342. var _ /* digest at bp+0 */ [20]Tuint8_t
  4343. _, _, _ = i, v1, v2
  4344. if v2 = buf == libc.UintptrFromInt32(0); v2 {
  4345. v1 = libc.Xmalloc(tls, libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA1_DIGEST_LENGTH)*libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))
  4346. buf = v1
  4347. }
  4348. if v2 && v1 == libc.UintptrFromInt32(0) {
  4349. return libc.UintptrFromInt32(0)
  4350. }
  4351. XSHA1Final(tls, bp, ctx)
  4352. i = 0
  4353. for {
  4354. if !(i < int32(m_SHA1_DIGEST_LENGTH)) {
  4355. break
  4356. }
  4357. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i))) = _hex4[libc.Int32FromUint8((*(*[20]Tuint8_t)(unsafe.Pointer(bp)))[i])>>int32(4)]
  4358. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i+int32(1)))) = _hex4[libc.Int32FromUint8((*(*[20]Tuint8_t)(unsafe.Pointer(bp)))[i])&int32(0x0f)]
  4359. goto _3
  4360. _3:
  4361. ;
  4362. i++
  4363. }
  4364. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i))) = uint8('\000')
  4365. libc.Xmemset(tls, bp, 0, uint64(20))
  4366. return buf
  4367. }
  4368. var _hex4 = [17]uint8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}
  4369. func XSHA1FileChunk(tls *libc.TLS, filename uintptr, buf uintptr, off Toff_t, len1 Toff_t) (r uintptr) {
  4370. bp := tls.Alloc(1248)
  4371. defer tls.Free(1248)
  4372. var fd, save_errno, v1 int32
  4373. var nr, v2 Tssize_t
  4374. var v3 int64
  4375. var v4 bool
  4376. var v5 uintptr
  4377. var _ /* buffer at bp+128 */ [1024]Tuint8_t
  4378. var _ /* ctx at bp+1152 */ TSHA1_CTX
  4379. var _ /* sb at bp+0 */ Tstat
  4380. _, _, _, _, _, _, _, _ = fd, nr, save_errno, v1, v2, v3, v4, v5
  4381. XSHA1Init(tls, bp+1152)
  4382. v1 = libc.Xopen(tls, filename, m_O_RDONLY, 0)
  4383. fd = v1
  4384. if v1 < 0 {
  4385. return libc.UintptrFromInt32(0)
  4386. }
  4387. if len1 == 0 {
  4388. if libc.Xfstat(tls, fd, bp) == -int32(1) {
  4389. libc.Xclose(tls, fd)
  4390. return libc.UintptrFromInt32(0)
  4391. }
  4392. len1 = (*(*Tstat)(unsafe.Pointer(bp))).Fst_size
  4393. }
  4394. if off > 0 && libc.Xlseek(tls, fd, off, 0) < 0 {
  4395. libc.Xclose(tls, fd)
  4396. return libc.UintptrFromInt32(0)
  4397. }
  4398. for {
  4399. if libc.Int64FromInt64(1024) < len1 {
  4400. v3 = libc.Int64FromInt64(1024)
  4401. } else {
  4402. v3 = len1
  4403. }
  4404. v2 = libc.Xread(tls, fd, bp+128, libc.Uint64FromInt64(v3))
  4405. nr = v2
  4406. if !(v2 > 0) {
  4407. break
  4408. }
  4409. XSHA1Update(tls, bp+1152, bp+128, libc.Uint64FromInt64(nr))
  4410. if v4 = len1 > 0; v4 {
  4411. len1 -= nr
  4412. }
  4413. if v4 && len1 == 0 {
  4414. break
  4415. }
  4416. }
  4417. save_errno = *(*int32)(unsafe.Pointer(libc.X__errno_location(tls)))
  4418. libc.Xclose(tls, fd)
  4419. *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) = save_errno
  4420. if nr < 0 {
  4421. v5 = libc.UintptrFromInt32(0)
  4422. } else {
  4423. v5 = XSHA1End(tls, bp+1152, buf)
  4424. }
  4425. return v5
  4426. }
  4427. func XSHA1File(tls *libc.TLS, filename uintptr, buf uintptr) (r uintptr) {
  4428. return XSHA1FileChunk(tls, filename, buf, libc.Int64FromInt32(0), libc.Int64FromInt32(0))
  4429. }
  4430. func XSHA1Data(tls *libc.TLS, data uintptr, len1 Tsize_t, buf uintptr) (r uintptr) {
  4431. bp := tls.Alloc(96)
  4432. defer tls.Free(96)
  4433. var _ /* ctx at bp+0 */ TSHA1_CTX
  4434. XSHA1Init(tls, bp)
  4435. XSHA1Update(tls, bp, data, len1)
  4436. return XSHA1End(tls, bp, buf)
  4437. }
  4438. // C documentation
  4439. //
  4440. // /* ARGSUSED */
  4441. func XSHA224End(tls *libc.TLS, ctx uintptr, buf uintptr) (r uintptr) {
  4442. bp := tls.Alloc(32)
  4443. defer tls.Free(32)
  4444. var i int32
  4445. var v1 uintptr
  4446. var v2 bool
  4447. var _ /* digest at bp+0 */ [28]Tuint8_t
  4448. _, _, _ = i, v1, v2
  4449. if v2 = buf == libc.UintptrFromInt32(0); v2 {
  4450. v1 = libc.Xmalloc(tls, libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA224_DIGEST_LENGTH)*libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))
  4451. buf = v1
  4452. }
  4453. if v2 && v1 == libc.UintptrFromInt32(0) {
  4454. return libc.UintptrFromInt32(0)
  4455. }
  4456. XSHA224Final(tls, bp, ctx)
  4457. i = 0
  4458. for {
  4459. if !(i < int32(m_SHA224_DIGEST_LENGTH)) {
  4460. break
  4461. }
  4462. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i))) = _hex5[libc.Int32FromUint8((*(*[28]Tuint8_t)(unsafe.Pointer(bp)))[i])>>int32(4)]
  4463. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i+int32(1)))) = _hex5[libc.Int32FromUint8((*(*[28]Tuint8_t)(unsafe.Pointer(bp)))[i])&int32(0x0f)]
  4464. goto _3
  4465. _3:
  4466. ;
  4467. i++
  4468. }
  4469. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i))) = uint8('\000')
  4470. libc.Xmemset(tls, bp, 0, uint64(28))
  4471. return buf
  4472. }
  4473. var _hex5 = [17]uint8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}
  4474. func XSHA224FileChunk(tls *libc.TLS, filename uintptr, buf uintptr, off Toff_t, len1 Toff_t) (r uintptr) {
  4475. bp := tls.Alloc(1360)
  4476. defer tls.Free(1360)
  4477. var fd, save_errno, v1 int32
  4478. var nr, v2 Tssize_t
  4479. var v3 int64
  4480. var v4 bool
  4481. var v5 uintptr
  4482. var _ /* buffer at bp+128 */ [1024]Tuint8_t
  4483. var _ /* ctx at bp+1152 */ TSHA2_CTX
  4484. var _ /* sb at bp+0 */ Tstat
  4485. _, _, _, _, _, _, _, _ = fd, nr, save_errno, v1, v2, v3, v4, v5
  4486. XSHA224Init(tls, bp+1152)
  4487. v1 = libc.Xopen(tls, filename, m_O_RDONLY, 0)
  4488. fd = v1
  4489. if v1 < 0 {
  4490. return libc.UintptrFromInt32(0)
  4491. }
  4492. if len1 == 0 {
  4493. if libc.Xfstat(tls, fd, bp) == -int32(1) {
  4494. libc.Xclose(tls, fd)
  4495. return libc.UintptrFromInt32(0)
  4496. }
  4497. len1 = (*(*Tstat)(unsafe.Pointer(bp))).Fst_size
  4498. }
  4499. if off > 0 && libc.Xlseek(tls, fd, off, 0) < 0 {
  4500. libc.Xclose(tls, fd)
  4501. return libc.UintptrFromInt32(0)
  4502. }
  4503. for {
  4504. if libc.Int64FromInt64(1024) < len1 {
  4505. v3 = libc.Int64FromInt64(1024)
  4506. } else {
  4507. v3 = len1
  4508. }
  4509. v2 = libc.Xread(tls, fd, bp+128, libc.Uint64FromInt64(v3))
  4510. nr = v2
  4511. if !(v2 > 0) {
  4512. break
  4513. }
  4514. XSHA256Update(tls, bp+1152, bp+128, libc.Uint64FromInt64(nr))
  4515. if v4 = len1 > 0; v4 {
  4516. len1 -= nr
  4517. }
  4518. if v4 && len1 == 0 {
  4519. break
  4520. }
  4521. }
  4522. save_errno = *(*int32)(unsafe.Pointer(libc.X__errno_location(tls)))
  4523. libc.Xclose(tls, fd)
  4524. *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) = save_errno
  4525. if nr < 0 {
  4526. v5 = libc.UintptrFromInt32(0)
  4527. } else {
  4528. v5 = XSHA224End(tls, bp+1152, buf)
  4529. }
  4530. return v5
  4531. }
  4532. func XSHA224File(tls *libc.TLS, filename uintptr, buf uintptr) (r uintptr) {
  4533. return XSHA224FileChunk(tls, filename, buf, libc.Int64FromInt32(0), libc.Int64FromInt32(0))
  4534. }
  4535. func XSHA224Data(tls *libc.TLS, data uintptr, len1 Tsize_t, buf uintptr) (r uintptr) {
  4536. bp := tls.Alloc(208)
  4537. defer tls.Free(208)
  4538. var _ /* ctx at bp+0 */ TSHA2_CTX
  4539. XSHA224Init(tls, bp)
  4540. XSHA256Update(tls, bp, data, len1)
  4541. return XSHA224End(tls, bp, buf)
  4542. }
  4543. // C documentation
  4544. //
  4545. // /* ARGSUSED */
  4546. func XSHA256End(tls *libc.TLS, ctx uintptr, buf uintptr) (r uintptr) {
  4547. bp := tls.Alloc(32)
  4548. defer tls.Free(32)
  4549. var i int32
  4550. var v1 uintptr
  4551. var v2 bool
  4552. var _ /* digest at bp+0 */ [32]Tuint8_t
  4553. _, _, _ = i, v1, v2
  4554. if v2 = buf == libc.UintptrFromInt32(0); v2 {
  4555. v1 = libc.Xmalloc(tls, libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA256_DIGEST_LENGTH)*libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))
  4556. buf = v1
  4557. }
  4558. if v2 && v1 == libc.UintptrFromInt32(0) {
  4559. return libc.UintptrFromInt32(0)
  4560. }
  4561. XSHA256Final(tls, bp, ctx)
  4562. i = 0
  4563. for {
  4564. if !(i < int32(m_SHA256_DIGEST_LENGTH)) {
  4565. break
  4566. }
  4567. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i))) = _hex6[libc.Int32FromUint8((*(*[32]Tuint8_t)(unsafe.Pointer(bp)))[i])>>int32(4)]
  4568. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i+int32(1)))) = _hex6[libc.Int32FromUint8((*(*[32]Tuint8_t)(unsafe.Pointer(bp)))[i])&int32(0x0f)]
  4569. goto _3
  4570. _3:
  4571. ;
  4572. i++
  4573. }
  4574. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i))) = uint8('\000')
  4575. libc.Xmemset(tls, bp, 0, uint64(32))
  4576. return buf
  4577. }
  4578. var _hex6 = [17]uint8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}
  4579. func XSHA256FileChunk(tls *libc.TLS, filename uintptr, buf uintptr, off Toff_t, len1 Toff_t) (r uintptr) {
  4580. bp := tls.Alloc(1360)
  4581. defer tls.Free(1360)
  4582. var fd, save_errno, v1 int32
  4583. var nr, v2 Tssize_t
  4584. var v3 int64
  4585. var v4 bool
  4586. var v5 uintptr
  4587. var _ /* buffer at bp+128 */ [1024]Tuint8_t
  4588. var _ /* ctx at bp+1152 */ TSHA2_CTX
  4589. var _ /* sb at bp+0 */ Tstat
  4590. _, _, _, _, _, _, _, _ = fd, nr, save_errno, v1, v2, v3, v4, v5
  4591. XSHA256Init(tls, bp+1152)
  4592. v1 = libc.Xopen(tls, filename, m_O_RDONLY, 0)
  4593. fd = v1
  4594. if v1 < 0 {
  4595. return libc.UintptrFromInt32(0)
  4596. }
  4597. if len1 == 0 {
  4598. if libc.Xfstat(tls, fd, bp) == -int32(1) {
  4599. libc.Xclose(tls, fd)
  4600. return libc.UintptrFromInt32(0)
  4601. }
  4602. len1 = (*(*Tstat)(unsafe.Pointer(bp))).Fst_size
  4603. }
  4604. if off > 0 && libc.Xlseek(tls, fd, off, 0) < 0 {
  4605. libc.Xclose(tls, fd)
  4606. return libc.UintptrFromInt32(0)
  4607. }
  4608. for {
  4609. if libc.Int64FromInt64(1024) < len1 {
  4610. v3 = libc.Int64FromInt64(1024)
  4611. } else {
  4612. v3 = len1
  4613. }
  4614. v2 = libc.Xread(tls, fd, bp+128, libc.Uint64FromInt64(v3))
  4615. nr = v2
  4616. if !(v2 > 0) {
  4617. break
  4618. }
  4619. XSHA256Update(tls, bp+1152, bp+128, libc.Uint64FromInt64(nr))
  4620. if v4 = len1 > 0; v4 {
  4621. len1 -= nr
  4622. }
  4623. if v4 && len1 == 0 {
  4624. break
  4625. }
  4626. }
  4627. save_errno = *(*int32)(unsafe.Pointer(libc.X__errno_location(tls)))
  4628. libc.Xclose(tls, fd)
  4629. *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) = save_errno
  4630. if nr < 0 {
  4631. v5 = libc.UintptrFromInt32(0)
  4632. } else {
  4633. v5 = XSHA256End(tls, bp+1152, buf)
  4634. }
  4635. return v5
  4636. }
  4637. func XSHA256File(tls *libc.TLS, filename uintptr, buf uintptr) (r uintptr) {
  4638. return XSHA256FileChunk(tls, filename, buf, libc.Int64FromInt32(0), libc.Int64FromInt32(0))
  4639. }
  4640. func XSHA256Data(tls *libc.TLS, data uintptr, len1 Tsize_t, buf uintptr) (r uintptr) {
  4641. bp := tls.Alloc(208)
  4642. defer tls.Free(208)
  4643. var _ /* ctx at bp+0 */ TSHA2_CTX
  4644. XSHA256Init(tls, bp)
  4645. XSHA256Update(tls, bp, data, len1)
  4646. return XSHA256End(tls, bp, buf)
  4647. }
  4648. // C documentation
  4649. //
  4650. // /* ARGSUSED */
  4651. func XSHA384End(tls *libc.TLS, ctx uintptr, buf uintptr) (r uintptr) {
  4652. bp := tls.Alloc(48)
  4653. defer tls.Free(48)
  4654. var i int32
  4655. var v1 uintptr
  4656. var v2 bool
  4657. var _ /* digest at bp+0 */ [48]Tuint8_t
  4658. _, _, _ = i, v1, v2
  4659. if v2 = buf == libc.UintptrFromInt32(0); v2 {
  4660. v1 = libc.Xmalloc(tls, libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA384_DIGEST_LENGTH)*libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))
  4661. buf = v1
  4662. }
  4663. if v2 && v1 == libc.UintptrFromInt32(0) {
  4664. return libc.UintptrFromInt32(0)
  4665. }
  4666. XSHA384Final(tls, bp, ctx)
  4667. i = 0
  4668. for {
  4669. if !(i < int32(m_SHA384_DIGEST_LENGTH)) {
  4670. break
  4671. }
  4672. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i))) = _hex7[libc.Int32FromUint8((*(*[48]Tuint8_t)(unsafe.Pointer(bp)))[i])>>int32(4)]
  4673. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i+int32(1)))) = _hex7[libc.Int32FromUint8((*(*[48]Tuint8_t)(unsafe.Pointer(bp)))[i])&int32(0x0f)]
  4674. goto _3
  4675. _3:
  4676. ;
  4677. i++
  4678. }
  4679. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i))) = uint8('\000')
  4680. libc.Xmemset(tls, bp, 0, uint64(48))
  4681. return buf
  4682. }
  4683. var _hex7 = [17]uint8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}
  4684. func XSHA384FileChunk(tls *libc.TLS, filename uintptr, buf uintptr, off Toff_t, len1 Toff_t) (r uintptr) {
  4685. bp := tls.Alloc(1360)
  4686. defer tls.Free(1360)
  4687. var fd, save_errno, v1 int32
  4688. var nr, v2 Tssize_t
  4689. var v3 int64
  4690. var v4 bool
  4691. var v5 uintptr
  4692. var _ /* buffer at bp+128 */ [1024]Tuint8_t
  4693. var _ /* ctx at bp+1152 */ TSHA2_CTX
  4694. var _ /* sb at bp+0 */ Tstat
  4695. _, _, _, _, _, _, _, _ = fd, nr, save_errno, v1, v2, v3, v4, v5
  4696. XSHA384Init(tls, bp+1152)
  4697. v1 = libc.Xopen(tls, filename, m_O_RDONLY, 0)
  4698. fd = v1
  4699. if v1 < 0 {
  4700. return libc.UintptrFromInt32(0)
  4701. }
  4702. if len1 == 0 {
  4703. if libc.Xfstat(tls, fd, bp) == -int32(1) {
  4704. libc.Xclose(tls, fd)
  4705. return libc.UintptrFromInt32(0)
  4706. }
  4707. len1 = (*(*Tstat)(unsafe.Pointer(bp))).Fst_size
  4708. }
  4709. if off > 0 && libc.Xlseek(tls, fd, off, 0) < 0 {
  4710. libc.Xclose(tls, fd)
  4711. return libc.UintptrFromInt32(0)
  4712. }
  4713. for {
  4714. if libc.Int64FromInt64(1024) < len1 {
  4715. v3 = libc.Int64FromInt64(1024)
  4716. } else {
  4717. v3 = len1
  4718. }
  4719. v2 = libc.Xread(tls, fd, bp+128, libc.Uint64FromInt64(v3))
  4720. nr = v2
  4721. if !(v2 > 0) {
  4722. break
  4723. }
  4724. XSHA512Update(tls, bp+1152, bp+128, libc.Uint64FromInt64(nr))
  4725. if v4 = len1 > 0; v4 {
  4726. len1 -= nr
  4727. }
  4728. if v4 && len1 == 0 {
  4729. break
  4730. }
  4731. }
  4732. save_errno = *(*int32)(unsafe.Pointer(libc.X__errno_location(tls)))
  4733. libc.Xclose(tls, fd)
  4734. *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) = save_errno
  4735. if nr < 0 {
  4736. v5 = libc.UintptrFromInt32(0)
  4737. } else {
  4738. v5 = XSHA384End(tls, bp+1152, buf)
  4739. }
  4740. return v5
  4741. }
  4742. func XSHA384File(tls *libc.TLS, filename uintptr, buf uintptr) (r uintptr) {
  4743. return XSHA384FileChunk(tls, filename, buf, libc.Int64FromInt32(0), libc.Int64FromInt32(0))
  4744. }
  4745. func XSHA384Data(tls *libc.TLS, data uintptr, len1 Tsize_t, buf uintptr) (r uintptr) {
  4746. bp := tls.Alloc(208)
  4747. defer tls.Free(208)
  4748. var _ /* ctx at bp+0 */ TSHA2_CTX
  4749. XSHA384Init(tls, bp)
  4750. XSHA512Update(tls, bp, data, len1)
  4751. return XSHA384End(tls, bp, buf)
  4752. }
  4753. // C documentation
  4754. //
  4755. // /* ARGSUSED */
  4756. func XSHA512End(tls *libc.TLS, ctx uintptr, buf uintptr) (r uintptr) {
  4757. bp := tls.Alloc(64)
  4758. defer tls.Free(64)
  4759. var i int32
  4760. var v1 uintptr
  4761. var v2 bool
  4762. var _ /* digest at bp+0 */ [64]Tuint8_t
  4763. _, _, _ = i, v1, v2
  4764. if v2 = buf == libc.UintptrFromInt32(0); v2 {
  4765. v1 = libc.Xmalloc(tls, libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA512_DIGEST_LENGTH)*libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))
  4766. buf = v1
  4767. }
  4768. if v2 && v1 == libc.UintptrFromInt32(0) {
  4769. return libc.UintptrFromInt32(0)
  4770. }
  4771. XSHA512Final(tls, bp, ctx)
  4772. i = 0
  4773. for {
  4774. if !(i < int32(m_SHA512_DIGEST_LENGTH)) {
  4775. break
  4776. }
  4777. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i))) = _hex8[libc.Int32FromUint8((*(*[64]Tuint8_t)(unsafe.Pointer(bp)))[i])>>int32(4)]
  4778. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i+int32(1)))) = _hex8[libc.Int32FromUint8((*(*[64]Tuint8_t)(unsafe.Pointer(bp)))[i])&int32(0x0f)]
  4779. goto _3
  4780. _3:
  4781. ;
  4782. i++
  4783. }
  4784. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i))) = uint8('\000')
  4785. libc.Xmemset(tls, bp, 0, uint64(64))
  4786. return buf
  4787. }
  4788. var _hex8 = [17]uint8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}
  4789. func XSHA512FileChunk(tls *libc.TLS, filename uintptr, buf uintptr, off Toff_t, len1 Toff_t) (r uintptr) {
  4790. bp := tls.Alloc(1360)
  4791. defer tls.Free(1360)
  4792. var fd, save_errno, v1 int32
  4793. var nr, v2 Tssize_t
  4794. var v3 int64
  4795. var v4 bool
  4796. var v5 uintptr
  4797. var _ /* buffer at bp+128 */ [1024]Tuint8_t
  4798. var _ /* ctx at bp+1152 */ TSHA2_CTX
  4799. var _ /* sb at bp+0 */ Tstat
  4800. _, _, _, _, _, _, _, _ = fd, nr, save_errno, v1, v2, v3, v4, v5
  4801. XSHA512Init(tls, bp+1152)
  4802. v1 = libc.Xopen(tls, filename, m_O_RDONLY, 0)
  4803. fd = v1
  4804. if v1 < 0 {
  4805. return libc.UintptrFromInt32(0)
  4806. }
  4807. if len1 == 0 {
  4808. if libc.Xfstat(tls, fd, bp) == -int32(1) {
  4809. libc.Xclose(tls, fd)
  4810. return libc.UintptrFromInt32(0)
  4811. }
  4812. len1 = (*(*Tstat)(unsafe.Pointer(bp))).Fst_size
  4813. }
  4814. if off > 0 && libc.Xlseek(tls, fd, off, 0) < 0 {
  4815. libc.Xclose(tls, fd)
  4816. return libc.UintptrFromInt32(0)
  4817. }
  4818. for {
  4819. if libc.Int64FromInt64(1024) < len1 {
  4820. v3 = libc.Int64FromInt64(1024)
  4821. } else {
  4822. v3 = len1
  4823. }
  4824. v2 = libc.Xread(tls, fd, bp+128, libc.Uint64FromInt64(v3))
  4825. nr = v2
  4826. if !(v2 > 0) {
  4827. break
  4828. }
  4829. XSHA512Update(tls, bp+1152, bp+128, libc.Uint64FromInt64(nr))
  4830. if v4 = len1 > 0; v4 {
  4831. len1 -= nr
  4832. }
  4833. if v4 && len1 == 0 {
  4834. break
  4835. }
  4836. }
  4837. save_errno = *(*int32)(unsafe.Pointer(libc.X__errno_location(tls)))
  4838. libc.Xclose(tls, fd)
  4839. *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) = save_errno
  4840. if nr < 0 {
  4841. v5 = libc.UintptrFromInt32(0)
  4842. } else {
  4843. v5 = XSHA512End(tls, bp+1152, buf)
  4844. }
  4845. return v5
  4846. }
  4847. func XSHA512File(tls *libc.TLS, filename uintptr, buf uintptr) (r uintptr) {
  4848. return XSHA512FileChunk(tls, filename, buf, libc.Int64FromInt32(0), libc.Int64FromInt32(0))
  4849. }
  4850. func XSHA512Data(tls *libc.TLS, data uintptr, len1 Tsize_t, buf uintptr) (r uintptr) {
  4851. bp := tls.Alloc(208)
  4852. defer tls.Free(208)
  4853. var _ /* ctx at bp+0 */ TSHA2_CTX
  4854. XSHA512Init(tls, bp)
  4855. XSHA512Update(tls, bp, data, len1)
  4856. return XSHA512End(tls, bp, buf)
  4857. }
  4858. // C documentation
  4859. //
  4860. // /* ARGSUSED */
  4861. func XSHA512_256End(tls *libc.TLS, ctx uintptr, buf uintptr) (r uintptr) {
  4862. bp := tls.Alloc(32)
  4863. defer tls.Free(32)
  4864. var i int32
  4865. var v1 uintptr
  4866. var v2 bool
  4867. var _ /* digest at bp+0 */ [32]Tuint8_t
  4868. _, _, _ = i, v1, v2
  4869. if v2 = buf == libc.UintptrFromInt32(0); v2 {
  4870. v1 = libc.Xmalloc(tls, libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA512_256_DIGEST_LENGTH)*libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))
  4871. buf = v1
  4872. }
  4873. if v2 && v1 == libc.UintptrFromInt32(0) {
  4874. return libc.UintptrFromInt32(0)
  4875. }
  4876. XSHA512_256Final(tls, bp, ctx)
  4877. i = 0
  4878. for {
  4879. if !(i < int32(m_SHA512_256_DIGEST_LENGTH)) {
  4880. break
  4881. }
  4882. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i))) = _hex9[libc.Int32FromUint8((*(*[32]Tuint8_t)(unsafe.Pointer(bp)))[i])>>int32(4)]
  4883. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i+int32(1)))) = _hex9[libc.Int32FromUint8((*(*[32]Tuint8_t)(unsafe.Pointer(bp)))[i])&int32(0x0f)]
  4884. goto _3
  4885. _3:
  4886. ;
  4887. i++
  4888. }
  4889. *(*uint8)(unsafe.Pointer(buf + uintptr(i+i))) = uint8('\000')
  4890. libc.Xmemset(tls, bp, 0, uint64(32))
  4891. return buf
  4892. }
  4893. var _hex9 = [17]uint8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}
  4894. func XSHA512_256FileChunk(tls *libc.TLS, filename uintptr, buf uintptr, off Toff_t, len1 Toff_t) (r uintptr) {
  4895. bp := tls.Alloc(1360)
  4896. defer tls.Free(1360)
  4897. var fd, save_errno, v1 int32
  4898. var nr, v2 Tssize_t
  4899. var v3 int64
  4900. var v4 bool
  4901. var v5 uintptr
  4902. var _ /* buffer at bp+128 */ [1024]Tuint8_t
  4903. var _ /* ctx at bp+1152 */ TSHA2_CTX
  4904. var _ /* sb at bp+0 */ Tstat
  4905. _, _, _, _, _, _, _, _ = fd, nr, save_errno, v1, v2, v3, v4, v5
  4906. XSHA512_256Init(tls, bp+1152)
  4907. v1 = libc.Xopen(tls, filename, m_O_RDONLY, 0)
  4908. fd = v1
  4909. if v1 < 0 {
  4910. return libc.UintptrFromInt32(0)
  4911. }
  4912. if len1 == 0 {
  4913. if libc.Xfstat(tls, fd, bp) == -int32(1) {
  4914. libc.Xclose(tls, fd)
  4915. return libc.UintptrFromInt32(0)
  4916. }
  4917. len1 = (*(*Tstat)(unsafe.Pointer(bp))).Fst_size
  4918. }
  4919. if off > 0 && libc.Xlseek(tls, fd, off, 0) < 0 {
  4920. libc.Xclose(tls, fd)
  4921. return libc.UintptrFromInt32(0)
  4922. }
  4923. for {
  4924. if libc.Int64FromInt64(1024) < len1 {
  4925. v3 = libc.Int64FromInt64(1024)
  4926. } else {
  4927. v3 = len1
  4928. }
  4929. v2 = libc.Xread(tls, fd, bp+128, libc.Uint64FromInt64(v3))
  4930. nr = v2
  4931. if !(v2 > 0) {
  4932. break
  4933. }
  4934. XSHA512Update(tls, bp+1152, bp+128, libc.Uint64FromInt64(nr))
  4935. if v4 = len1 > 0; v4 {
  4936. len1 -= nr
  4937. }
  4938. if v4 && len1 == 0 {
  4939. break
  4940. }
  4941. }
  4942. save_errno = *(*int32)(unsafe.Pointer(libc.X__errno_location(tls)))
  4943. libc.Xclose(tls, fd)
  4944. *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) = save_errno
  4945. if nr < 0 {
  4946. v5 = libc.UintptrFromInt32(0)
  4947. } else {
  4948. v5 = XSHA512_256End(tls, bp+1152, buf)
  4949. }
  4950. return v5
  4951. }
  4952. func XSHA512_256File(tls *libc.TLS, filename uintptr, buf uintptr) (r uintptr) {
  4953. return XSHA512_256FileChunk(tls, filename, buf, libc.Int64FromInt32(0), libc.Int64FromInt32(0))
  4954. }
  4955. func XSHA512_256Data(tls *libc.TLS, data uintptr, len1 Tsize_t, buf uintptr) (r uintptr) {
  4956. bp := tls.Alloc(208)
  4957. defer tls.Free(208)
  4958. var _ /* ctx at bp+0 */ TSHA2_CTX
  4959. XSHA512_256Init(tls, bp)
  4960. XSHA512Update(tls, bp, data, len1)
  4961. return XSHA512_256End(tls, bp, buf)
  4962. }
  4963. var __ccgo_ts = (*reflect.StringHeader)(unsafe.Pointer(&__ccgo_ts1)).Data
  4964. var __ccgo_ts1 = "\x00\x01\x00\x02\x02\x00\x03\x03\x03\x00\x04\x04\x04\x04\x00\x05\x05\x05\x05\x05\x00\x06\x06\x06\x06\x06\x06\x00\a\a\a\a\a\a\a\x00\b\b\b\b\b\b\b\b\x00\t\t\t\t\t\t\t\t\t\x00\n\n\n\n\n\n\n\n\n\n\x00\v\v\v\v\v\v\v\v\v\v\v\x00\f\f\f\f\f\f\f\f\f\f\f\f\x00\r\r\r\r\r\r\r\r\r\r\r\r\r\x00\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x0e\x00\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x00\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x00\x80\x00\x00\x00"