ccgo_linux_amd64.go 288 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935
  1. // Code generated for linux/amd64 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 && amd64
  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_DIGEST_LENGTH = 16
  53. const m_MD2_DIGEST_STRING_LENGTH = 33
  54. const m_NDEBUG = 1
  55. const m_PACKAGE = "libmd"
  56. const m_PACKAGE_BUGREPORT = "libbsd@lists.freedesktop.org"
  57. const m_PACKAGE_NAME = "libmd"
  58. const m_PACKAGE_STRING = "libmd 1.0.4"
  59. const m_PACKAGE_TARNAME = "libmd"
  60. const m_PACKAGE_URL = ""
  61. const m_PACKAGE_VERSION = "1.0.4"
  62. const m_PDP_ENDIAN = "__PDP_ENDIAN"
  63. const m_PTRDIFF_MAX = "INT64_MAX"
  64. const m_PTRDIFF_MIN = "INT64_MIN"
  65. const m_SIG_ATOMIC_MAX = "INT32_MAX"
  66. const m_SIG_ATOMIC_MIN = "INT32_MIN"
  67. const m_SIZE_MAX = "UINT64_MAX"
  68. const m_STDC_HEADERS = 1
  69. const m_UINT16_MAX = 0xffff
  70. const m_UINT32_MAX = "0xffffffffu"
  71. const m_UINT64_MAX = "0xffffffffffffffffu"
  72. const m_UINT8_MAX = 0xff
  73. const m_UINTMAX_MAX = "UINT64_MAX"
  74. const m_UINTPTR_MAX = "UINT64_MAX"
  75. const m_UINT_FAST16_MAX = "UINT32_MAX"
  76. const m_UINT_FAST32_MAX = "UINT32_MAX"
  77. const m_UINT_FAST64_MAX = "UINT64_MAX"
  78. const m_UINT_FAST8_MAX = "UINT8_MAX"
  79. const m_UINT_LEAST16_MAX = "UINT16_MAX"
  80. const m_UINT_LEAST32_MAX = "UINT32_MAX"
  81. const m_UINT_LEAST64_MAX = "UINT64_MAX"
  82. const m_UINT_LEAST8_MAX = "UINT8_MAX"
  83. const m_VERSION = "1.0.4"
  84. const m_WINT_MAX = "UINT32_MAX"
  85. const m_WINT_MIN = 0
  86. const m__ALL_SOURCE = 1
  87. const m__DARWIN_C_SOURCE = 1
  88. const m__GNU_SOURCE = 1
  89. const m__HPUX_ALT_XOPEN_SOCKET_API = 1
  90. const m__LP64 = 1
  91. const m__NETBSD_SOURCE = 1
  92. const m__OPENBSD_SOURCE = 1
  93. const m__POSIX_PTHREAD_SEMANTICS = 1
  94. const m__STDC_PREDEF_H = 1
  95. const m__TANDEM_SOURCE = 1
  96. const m___ATOMIC_ACQUIRE = 2
  97. const m___ATOMIC_ACQ_REL = 4
  98. const m___ATOMIC_CONSUME = 1
  99. const m___ATOMIC_HLE_ACQUIRE = 65536
  100. const m___ATOMIC_HLE_RELEASE = 131072
  101. const m___ATOMIC_RELAXED = 0
  102. const m___ATOMIC_RELEASE = 3
  103. const m___ATOMIC_SEQ_CST = 5
  104. const m___BIGGEST_ALIGNMENT__ = 16
  105. const m___BIG_ENDIAN = 4321
  106. const m___BYTE_ORDER = 1234
  107. const m___BYTE_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  108. const m___CCGO__ = 1
  109. const m___CHAR_BIT__ = 8
  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__ = 2
  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___DEC128_EPSILON__ = 1e-33
  120. const m___DEC128_MANT_DIG__ = 34
  121. const m___DEC128_MAX_EXP__ = 6145
  122. const m___DEC128_MAX__ = "9.999999999999999999999999999999999E6144"
  123. const m___DEC128_MIN__ = 1e-6143
  124. const m___DEC128_SUBNORMAL_MIN__ = 0.000000000000000000000000000000001e-6143
  125. const m___DEC32_EPSILON__ = 1e-6
  126. const m___DEC32_MANT_DIG__ = 7
  127. const m___DEC32_MAX_EXP__ = 97
  128. const m___DEC32_MAX__ = 9.999999e96
  129. const m___DEC32_MIN__ = 1e-95
  130. const m___DEC32_SUBNORMAL_MIN__ = 0.000001e-95
  131. const m___DEC64_EPSILON__ = 1e-15
  132. const m___DEC64_MANT_DIG__ = 16
  133. const m___DEC64_MAX_EXP__ = 385
  134. const m___DEC64_MAX__ = "9.999999999999999E384"
  135. const m___DEC64_MIN__ = 1e-383
  136. const m___DEC64_SUBNORMAL_MIN__ = 0.000000000000001e-383
  137. const m___DECIMAL_BID_FORMAT__ = 1
  138. const m___DECIMAL_DIG__ = 17
  139. const m___DEC_EVAL_METHOD__ = 2
  140. const m___ELF__ = 1
  141. const m___EXTENSIONS__ = 1
  142. const m___FINITE_MATH_ONLY__ = 0
  143. const m___FLOAT_WORD_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  144. const m___FLT128_DECIMAL_DIG__ = 36
  145. const m___FLT128_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
  146. const m___FLT128_DIG__ = 33
  147. const m___FLT128_EPSILON__ = 1.92592994438723585305597794258492732e-34
  148. const m___FLT128_HAS_DENORM__ = 1
  149. const m___FLT128_HAS_INFINITY__ = 1
  150. const m___FLT128_HAS_QUIET_NAN__ = 1
  151. const m___FLT128_IS_IEC_60559__ = 2
  152. const m___FLT128_MANT_DIG__ = 113
  153. const m___FLT128_MAX_10_EXP__ = 4932
  154. const m___FLT128_MAX_EXP__ = 16384
  155. const m___FLT128_MAX__ = "1.18973149535723176508575932662800702e+4932"
  156. const m___FLT128_MIN__ = 3.36210314311209350626267781732175260e-4932
  157. const m___FLT128_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
  158. const m___FLT16_DECIMAL_DIG__ = 5
  159. const m___FLT16_DENORM_MIN__ = 5.96046447753906250000000000000000000e-8
  160. const m___FLT16_DIG__ = 3
  161. const m___FLT16_EPSILON__ = 9.76562500000000000000000000000000000e-4
  162. const m___FLT16_HAS_DENORM__ = 1
  163. const m___FLT16_HAS_INFINITY__ = 1
  164. const m___FLT16_HAS_QUIET_NAN__ = 1
  165. const m___FLT16_IS_IEC_60559__ = 2
  166. const m___FLT16_MANT_DIG__ = 11
  167. const m___FLT16_MAX_10_EXP__ = 4
  168. const m___FLT16_MAX_EXP__ = 16
  169. const m___FLT16_MAX__ = 6.55040000000000000000000000000000000e+4
  170. const m___FLT16_MIN__ = 6.10351562500000000000000000000000000e-5
  171. const m___FLT16_NORM_MAX__ = 6.55040000000000000000000000000000000e+4
  172. const m___FLT32X_DECIMAL_DIG__ = 17
  173. const m___FLT32X_DENORM_MIN__ = 4.94065645841246544176568792868221372e-324
  174. const m___FLT32X_DIG__ = 15
  175. const m___FLT32X_EPSILON__ = 2.22044604925031308084726333618164062e-16
  176. const m___FLT32X_HAS_DENORM__ = 1
  177. const m___FLT32X_HAS_INFINITY__ = 1
  178. const m___FLT32X_HAS_QUIET_NAN__ = 1
  179. const m___FLT32X_IS_IEC_60559__ = 2
  180. const m___FLT32X_MANT_DIG__ = 53
  181. const m___FLT32X_MAX_10_EXP__ = 308
  182. const m___FLT32X_MAX_EXP__ = 1024
  183. const m___FLT32X_MAX__ = 1.79769313486231570814527423731704357e+308
  184. const m___FLT32X_MIN__ = 2.22507385850720138309023271733240406e-308
  185. const m___FLT32X_NORM_MAX__ = 1.79769313486231570814527423731704357e+308
  186. const m___FLT32_DECIMAL_DIG__ = 9
  187. const m___FLT32_DENORM_MIN__ = 1.40129846432481707092372958328991613e-45
  188. const m___FLT32_DIG__ = 6
  189. const m___FLT32_EPSILON__ = 1.19209289550781250000000000000000000e-7
  190. const m___FLT32_HAS_DENORM__ = 1
  191. const m___FLT32_HAS_INFINITY__ = 1
  192. const m___FLT32_HAS_QUIET_NAN__ = 1
  193. const m___FLT32_IS_IEC_60559__ = 2
  194. const m___FLT32_MANT_DIG__ = 24
  195. const m___FLT32_MAX_10_EXP__ = 38
  196. const m___FLT32_MAX_EXP__ = 128
  197. const m___FLT32_MAX__ = 3.40282346638528859811704183484516925e+38
  198. const m___FLT32_MIN__ = 1.17549435082228750796873653722224568e-38
  199. const m___FLT32_NORM_MAX__ = 3.40282346638528859811704183484516925e+38
  200. const m___FLT64X_DECIMAL_DIG__ = 36
  201. const m___FLT64X_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
  202. const m___FLT64X_DIG__ = 33
  203. const m___FLT64X_EPSILON__ = 1.92592994438723585305597794258492732e-34
  204. const m___FLT64X_HAS_DENORM__ = 1
  205. const m___FLT64X_HAS_INFINITY__ = 1
  206. const m___FLT64X_HAS_QUIET_NAN__ = 1
  207. const m___FLT64X_IS_IEC_60559__ = 2
  208. const m___FLT64X_MANT_DIG__ = 113
  209. const m___FLT64X_MAX_10_EXP__ = 4932
  210. const m___FLT64X_MAX_EXP__ = 16384
  211. const m___FLT64X_MAX__ = "1.18973149535723176508575932662800702e+4932"
  212. const m___FLT64X_MIN__ = 3.36210314311209350626267781732175260e-4932
  213. const m___FLT64X_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
  214. const m___FLT64_DECIMAL_DIG__ = 17
  215. const m___FLT64_DENORM_MIN__ = 4.94065645841246544176568792868221372e-324
  216. const m___FLT64_DIG__ = 15
  217. const m___FLT64_EPSILON__ = 2.22044604925031308084726333618164062e-16
  218. const m___FLT64_HAS_DENORM__ = 1
  219. const m___FLT64_HAS_INFINITY__ = 1
  220. const m___FLT64_HAS_QUIET_NAN__ = 1
  221. const m___FLT64_IS_IEC_60559__ = 2
  222. const m___FLT64_MANT_DIG__ = 53
  223. const m___FLT64_MAX_10_EXP__ = 308
  224. const m___FLT64_MAX_EXP__ = 1024
  225. const m___FLT64_MAX__ = 1.79769313486231570814527423731704357e+308
  226. const m___FLT64_MIN__ = 2.22507385850720138309023271733240406e-308
  227. const m___FLT64_NORM_MAX__ = 1.79769313486231570814527423731704357e+308
  228. const m___FLT_DECIMAL_DIG__ = 9
  229. const m___FLT_DENORM_MIN__ = 1.40129846432481707092372958328991613e-45
  230. const m___FLT_DIG__ = 6
  231. const m___FLT_EPSILON__ = 1.19209289550781250000000000000000000e-7
  232. const m___FLT_EVAL_METHOD_TS_18661_3__ = 0
  233. const m___FLT_EVAL_METHOD__ = 0
  234. const m___FLT_HAS_DENORM__ = 1
  235. const m___FLT_HAS_INFINITY__ = 1
  236. const m___FLT_HAS_QUIET_NAN__ = 1
  237. const m___FLT_IS_IEC_60559__ = 2
  238. const m___FLT_MANT_DIG__ = 24
  239. const m___FLT_MAX_10_EXP__ = 38
  240. const m___FLT_MAX_EXP__ = 128
  241. const m___FLT_MAX__ = 3.40282346638528859811704183484516925e+38
  242. const m___FLT_MIN__ = 1.17549435082228750796873653722224568e-38
  243. const m___FLT_NORM_MAX__ = 3.40282346638528859811704183484516925e+38
  244. const m___FLT_RADIX__ = 2
  245. const m___FUNCTION__ = "__func__"
  246. const m___FXSR__ = 1
  247. const m___GCC_ASM_FLAG_OUTPUTS__ = 1
  248. const m___GCC_ATOMIC_BOOL_LOCK_FREE = 2
  249. const m___GCC_ATOMIC_CHAR16_T_LOCK_FREE = 2
  250. const m___GCC_ATOMIC_CHAR32_T_LOCK_FREE = 2
  251. const m___GCC_ATOMIC_CHAR_LOCK_FREE = 2
  252. const m___GCC_ATOMIC_INT_LOCK_FREE = 2
  253. const m___GCC_ATOMIC_LLONG_LOCK_FREE = 2
  254. const m___GCC_ATOMIC_LONG_LOCK_FREE = 2
  255. const m___GCC_ATOMIC_POINTER_LOCK_FREE = 2
  256. const m___GCC_ATOMIC_SHORT_LOCK_FREE = 2
  257. const m___GCC_ATOMIC_TEST_AND_SET_TRUEVAL = 1
  258. const m___GCC_ATOMIC_WCHAR_T_LOCK_FREE = 2
  259. const m___GCC_CONSTRUCTIVE_SIZE = 64
  260. const m___GCC_DESTRUCTIVE_SIZE = 64
  261. const m___GCC_HAVE_DWARF2_CFI_ASM = 1
  262. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 = 1
  263. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 = 1
  264. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 = 1
  265. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 = 1
  266. const m___GCC_IEC_559 = 2
  267. const m___GCC_IEC_559_COMPLEX = 2
  268. const m___GNUC_EXECUTION_CHARSET_NAME = "UTF-8"
  269. const m___GNUC_MINOR__ = 2
  270. const m___GNUC_PATCHLEVEL__ = 0
  271. const m___GNUC_STDC_INLINE__ = 1
  272. const m___GNUC_WIDE_EXECUTION_CHARSET_NAME = "UTF-32LE"
  273. const m___GNUC__ = 12
  274. const m___GXX_ABI_VERSION = 1017
  275. const m___HAVE_SPECULATION_SAFE_VALUE = 1
  276. const m___INT16_MAX__ = 0x7fff
  277. const m___INT32_MAX__ = 0x7fffffff
  278. const m___INT32_TYPE__ = "int"
  279. const m___INT64_MAX__ = 0x7fffffffffffffff
  280. const m___INT8_MAX__ = 0x7f
  281. const m___INTMAX_MAX__ = 0x7fffffffffffffff
  282. const m___INTMAX_WIDTH__ = 64
  283. const m___INTPTR_MAX__ = 0x7fffffffffffffff
  284. const m___INTPTR_WIDTH__ = 64
  285. const m___INT_FAST16_MAX__ = 0x7fffffffffffffff
  286. const m___INT_FAST16_WIDTH__ = 64
  287. const m___INT_FAST32_MAX__ = 0x7fffffffffffffff
  288. const m___INT_FAST32_WIDTH__ = 64
  289. const m___INT_FAST64_MAX__ = 0x7fffffffffffffff
  290. const m___INT_FAST64_WIDTH__ = 64
  291. const m___INT_FAST8_MAX__ = 0x7f
  292. const m___INT_FAST8_WIDTH__ = 8
  293. const m___INT_LEAST16_MAX__ = 0x7fff
  294. const m___INT_LEAST16_WIDTH__ = 16
  295. const m___INT_LEAST32_MAX__ = 0x7fffffff
  296. const m___INT_LEAST32_TYPE__ = "int"
  297. const m___INT_LEAST32_WIDTH__ = 32
  298. const m___INT_LEAST64_MAX__ = 0x7fffffffffffffff
  299. const m___INT_LEAST64_WIDTH__ = 64
  300. const m___INT_LEAST8_MAX__ = 0x7f
  301. const m___INT_LEAST8_WIDTH__ = 8
  302. const m___INT_MAX__ = 0x7fffffff
  303. const m___INT_WIDTH__ = 32
  304. const m___LDBL_DECIMAL_DIG__ = 17
  305. const m___LDBL_DENORM_MIN__ = 4.94065645841246544176568792868221372e-324
  306. const m___LDBL_DIG__ = 15
  307. const m___LDBL_EPSILON__ = 2.22044604925031308084726333618164062e-16
  308. const m___LDBL_HAS_DENORM__ = 1
  309. const m___LDBL_HAS_INFINITY__ = 1
  310. const m___LDBL_HAS_QUIET_NAN__ = 1
  311. const m___LDBL_IS_IEC_60559__ = 2
  312. const m___LDBL_MANT_DIG__ = 53
  313. const m___LDBL_MAX_10_EXP__ = 308
  314. const m___LDBL_MAX_EXP__ = 1024
  315. const m___LDBL_MAX__ = 1.79769313486231570814527423731704357e+308
  316. const m___LDBL_MIN__ = 2.22507385850720138309023271733240406e-308
  317. const m___LDBL_NORM_MAX__ = 1.79769313486231570814527423731704357e+308
  318. const m___LITTLE_ENDIAN = 1234
  319. const m___LONG_DOUBLE_64__ = 1
  320. const m___LONG_LONG_MAX__ = 0x7fffffffffffffff
  321. const m___LONG_LONG_WIDTH__ = 64
  322. const m___LONG_MAX = 0x7fffffffffffffff
  323. const m___LONG_MAX__ = 0x7fffffffffffffff
  324. const m___LONG_WIDTH__ = 64
  325. const m___LP64__ = 1
  326. const m___MMX_WITH_SSE__ = 1
  327. const m___MMX__ = 1
  328. const m___NO_INLINE__ = 1
  329. const m___ORDER_BIG_ENDIAN__ = 4321
  330. const m___ORDER_LITTLE_ENDIAN__ = 1234
  331. const m___ORDER_PDP_ENDIAN__ = 3412
  332. const m___PDP_ENDIAN = 3412
  333. const m___PIC__ = 2
  334. const m___PIE__ = 2
  335. const m___PRAGMA_REDEFINE_EXTNAME = 1
  336. const m___PRETTY_FUNCTION__ = "__func__"
  337. const m___PTRDIFF_MAX__ = 0x7fffffffffffffff
  338. const m___PTRDIFF_WIDTH__ = 64
  339. const m___SCHAR_MAX__ = 0x7f
  340. const m___SCHAR_WIDTH__ = 8
  341. const m___SEG_FS = 1
  342. const m___SEG_GS = 1
  343. const m___SHRT_MAX__ = 0x7fff
  344. const m___SHRT_WIDTH__ = 16
  345. const m___SIG_ATOMIC_MAX__ = 0x7fffffff
  346. const m___SIG_ATOMIC_TYPE__ = "int"
  347. const m___SIG_ATOMIC_WIDTH__ = 32
  348. const m___SIZEOF_DOUBLE__ = 8
  349. const m___SIZEOF_FLOAT128__ = 16
  350. const m___SIZEOF_FLOAT80__ = 16
  351. const m___SIZEOF_FLOAT__ = 4
  352. const m___SIZEOF_INT128__ = 16
  353. const m___SIZEOF_INT__ = 4
  354. const m___SIZEOF_LONG_DOUBLE__ = 8
  355. const m___SIZEOF_LONG_LONG__ = 8
  356. const m___SIZEOF_LONG__ = 8
  357. const m___SIZEOF_POINTER__ = 8
  358. const m___SIZEOF_PTRDIFF_T__ = 8
  359. const m___SIZEOF_SHORT__ = 2
  360. const m___SIZEOF_SIZE_T__ = 8
  361. const m___SIZEOF_WCHAR_T__ = 4
  362. const m___SIZEOF_WINT_T__ = 4
  363. const m___SIZE_MAX__ = 0xffffffffffffffff
  364. const m___SIZE_WIDTH__ = 64
  365. const m___SSE2_MATH__ = 1
  366. const m___SSE2__ = 1
  367. const m___SSE_MATH__ = 1
  368. const m___SSE__ = 1
  369. const m___STDC_HOSTED__ = 1
  370. const m___STDC_IEC_559_COMPLEX__ = 1
  371. const m___STDC_IEC_559__ = 1
  372. const m___STDC_IEC_60559_BFP__ = 201404
  373. const m___STDC_IEC_60559_COMPLEX__ = 201404
  374. const m___STDC_ISO_10646__ = 201706
  375. const m___STDC_UTF_16__ = 1
  376. const m___STDC_UTF_32__ = 1
  377. const m___STDC_VERSION__ = 201710
  378. const m___STDC_WANT_IEC_60559_ATTRIBS_EXT__ = 1
  379. const m___STDC_WANT_IEC_60559_BFP_EXT__ = 1
  380. const m___STDC_WANT_IEC_60559_DFP_EXT__ = 1
  381. const m___STDC_WANT_IEC_60559_FUNCS_EXT__ = 1
  382. const m___STDC_WANT_IEC_60559_TYPES_EXT__ = 1
  383. const m___STDC_WANT_LIB_EXT2__ = 1
  384. const m___STDC_WANT_MATH_SPEC_FUNCS__ = 1
  385. const m___STDC__ = 1
  386. const m___UINT16_MAX__ = 0xffff
  387. const m___UINT32_MAX__ = 0xffffffff
  388. const m___UINT64_MAX__ = 0xffffffffffffffff
  389. const m___UINT8_MAX__ = 0xff
  390. const m___UINTMAX_MAX__ = 0xffffffffffffffff
  391. const m___UINTPTR_MAX__ = 0xffffffffffffffff
  392. const m___UINT_FAST16_MAX__ = 0xffffffffffffffff
  393. const m___UINT_FAST32_MAX__ = 0xffffffffffffffff
  394. const m___UINT_FAST64_MAX__ = 0xffffffffffffffff
  395. const m___UINT_FAST8_MAX__ = 0xff
  396. const m___UINT_LEAST16_MAX__ = 0xffff
  397. const m___UINT_LEAST32_MAX__ = 0xffffffff
  398. const m___UINT_LEAST64_MAX__ = 0xffffffffffffffff
  399. const m___UINT_LEAST8_MAX__ = 0xff
  400. const m___USE_TIME_BITS64 = 1
  401. const m___VERSION__ = "12.2.0"
  402. const m___WCHAR_MAX__ = 0x7fffffff
  403. const m___WCHAR_TYPE__ = "int"
  404. const m___WCHAR_WIDTH__ = 32
  405. const m___WINT_MAX__ = 0xffffffff
  406. const m___WINT_MIN__ = 0
  407. const m___WINT_WIDTH__ = 32
  408. const m___amd64 = 1
  409. const m___amd64__ = 1
  410. const m___code_model_small__ = 1
  411. const m___gnu_linux__ = 1
  412. const m___inline = "inline"
  413. const m___k8 = 1
  414. const m___k8__ = 1
  415. const m___linux = 1
  416. const m___linux__ = 1
  417. const m___pic__ = 2
  418. const m___pie__ = 2
  419. const m___restrict = "restrict"
  420. const m___restrict_arr = "restrict"
  421. const m___unix = 1
  422. const m___unix__ = 1
  423. const m___x86_64 = 1
  424. const m___x86_64__ = 1
  425. const m_linux = 1
  426. const m_static_assert = "_Static_assert"
  427. const m_unix = 1
  428. type t__builtin_va_list = uintptr
  429. type t__predefined_size_t = uint64
  430. type t__predefined_wchar_t = int32
  431. type t__predefined_ptrdiff_t = int64
  432. type Tsize_t = uint64
  433. type Tssize_t = int64
  434. type Tregister_t = int64
  435. type Ttime_t = int64
  436. type Tsuseconds_t = int64
  437. type Tint8_t = int8
  438. type Tint16_t = int16
  439. type Tint32_t = int32
  440. type Tint64_t = int64
  441. type Tu_int64_t = uint64
  442. type Tmode_t = uint32
  443. type Tnlink_t = uint64
  444. type Toff_t = int64
  445. type Tino_t = uint64
  446. type Tdev_t = uint64
  447. type Tblksize_t = int64
  448. type Tblkcnt_t = int64
  449. type Tfsblkcnt_t = uint64
  450. type Tfsfilcnt_t = uint64
  451. type Ttimer_t = uintptr
  452. type Tclockid_t = int32
  453. type Tclock_t = int64
  454. type Tpid_t = int32
  455. type Tid_t = uint32
  456. type Tuid_t = uint32
  457. type Tgid_t = uint32
  458. type Tkey_t = int32
  459. type Tuseconds_t = uint32
  460. type Tpthread_t = uintptr
  461. type Tpthread_once_t = int32
  462. type Tpthread_key_t = uint32
  463. type Tpthread_spinlock_t = int32
  464. type Tpthread_mutexattr_t = struct {
  465. F__attr uint32
  466. }
  467. type Tpthread_condattr_t = struct {
  468. F__attr uint32
  469. }
  470. type Tpthread_barrierattr_t = struct {
  471. F__attr uint32
  472. }
  473. type Tpthread_rwlockattr_t = struct {
  474. F__attr [2]uint32
  475. }
  476. type Tpthread_attr_t = struct {
  477. F__u struct {
  478. F__vi [0][14]int32
  479. F__s [0][7]uint64
  480. F__i [14]int32
  481. }
  482. }
  483. type Tpthread_mutex_t = struct {
  484. F__u struct {
  485. F__vi [0][10]int32
  486. F__p [0][5]uintptr
  487. F__i [10]int32
  488. }
  489. }
  490. type Tpthread_cond_t = struct {
  491. F__u struct {
  492. F__vi [0][12]int32
  493. F__p [0][6]uintptr
  494. F__i [12]int32
  495. }
  496. }
  497. type Tpthread_rwlock_t = struct {
  498. F__u struct {
  499. F__vi [0][14]int32
  500. F__p [0][7]uintptr
  501. F__i [14]int32
  502. }
  503. }
  504. type Tpthread_barrier_t = struct {
  505. F__u struct {
  506. F__vi [0][8]int32
  507. F__p [0][4]uintptr
  508. F__i [8]int32
  509. }
  510. }
  511. type Tu_int8_t = uint8
  512. type Tu_int16_t = uint16
  513. type Tu_int32_t = uint32
  514. type Tcaddr_t = uintptr
  515. type Tu_char = uint8
  516. type Tu_short = uint16
  517. type Tushort = uint16
  518. type Tu_int = uint32
  519. type Tuint = uint32
  520. type Tu_long = uint64
  521. type Tulong = uint64
  522. type Tquad_t = int64
  523. type Tu_quad_t = uint64
  524. type Tuint16_t = uint16
  525. type Tuint32_t = uint32
  526. type Tuint64_t = uint64
  527. type Ttimeval = struct {
  528. Ftv_sec Ttime_t
  529. Ftv_usec Tsuseconds_t
  530. }
  531. type Ttimespec = struct {
  532. Ftv_sec Ttime_t
  533. Ftv_nsec int64
  534. }
  535. type Tsigset_t = struct {
  536. F__bits [16]uint64
  537. }
  538. type t__sigset_t = Tsigset_t
  539. type Tfd_mask = uint64
  540. type Tfd_set = struct {
  541. Ffds_bits [16]uint64
  542. }
  543. type Tuintptr_t = uint64
  544. type Tintptr_t = int64
  545. type Tintmax_t = int64
  546. type Tuint8_t = uint8
  547. type Tuintmax_t = uint64
  548. type Tint_fast8_t = int8
  549. type Tint_fast64_t = int64
  550. type Tint_least8_t = int8
  551. type Tint_least16_t = int16
  552. type Tint_least32_t = int32
  553. type Tint_least64_t = int64
  554. type Tuint_fast8_t = uint8
  555. type Tuint_fast64_t = uint64
  556. type Tuint_least8_t = uint8
  557. type Tuint_least16_t = uint16
  558. type Tuint_least32_t = uint32
  559. type Tuint_least64_t = uint64
  560. type Tint_fast16_t = int32
  561. type Tint_fast32_t = int32
  562. type Tuint_fast16_t = uint32
  563. type Tuint_fast32_t = uint32
  564. type TMD2_CTX = struct {
  565. Fi Tuint32_t
  566. FC [16]uint8
  567. FX [48]uint8
  568. }
  569. type TMD2Context = TMD2_CTX
  570. type Tlocale_t = uintptr
  571. // C documentation
  572. //
  573. // /* cut-n-pasted from rfc1319 */
  574. var _S = [256]uint8{
  575. 0: uint8(41),
  576. 1: uint8(46),
  577. 2: uint8(67),
  578. 3: uint8(201),
  579. 4: uint8(162),
  580. 5: uint8(216),
  581. 6: uint8(124),
  582. 7: uint8(1),
  583. 8: uint8(61),
  584. 9: uint8(54),
  585. 10: uint8(84),
  586. 11: uint8(161),
  587. 12: uint8(236),
  588. 13: uint8(240),
  589. 14: uint8(6),
  590. 15: uint8(19),
  591. 16: uint8(98),
  592. 17: uint8(167),
  593. 18: uint8(5),
  594. 19: uint8(243),
  595. 20: uint8(192),
  596. 21: uint8(199),
  597. 22: uint8(115),
  598. 23: uint8(140),
  599. 24: uint8(152),
  600. 25: uint8(147),
  601. 26: uint8(43),
  602. 27: uint8(217),
  603. 28: uint8(188),
  604. 29: uint8(76),
  605. 30: uint8(130),
  606. 31: uint8(202),
  607. 32: uint8(30),
  608. 33: uint8(155),
  609. 34: uint8(87),
  610. 35: uint8(60),
  611. 36: uint8(253),
  612. 37: uint8(212),
  613. 38: uint8(224),
  614. 39: uint8(22),
  615. 40: uint8(103),
  616. 41: uint8(66),
  617. 42: uint8(111),
  618. 43: uint8(24),
  619. 44: uint8(138),
  620. 45: uint8(23),
  621. 46: uint8(229),
  622. 47: uint8(18),
  623. 48: uint8(190),
  624. 49: uint8(78),
  625. 50: uint8(196),
  626. 51: uint8(214),
  627. 52: uint8(218),
  628. 53: uint8(158),
  629. 54: uint8(222),
  630. 55: uint8(73),
  631. 56: uint8(160),
  632. 57: uint8(251),
  633. 58: uint8(245),
  634. 59: uint8(142),
  635. 60: uint8(187),
  636. 61: uint8(47),
  637. 62: uint8(238),
  638. 63: uint8(122),
  639. 64: uint8(169),
  640. 65: uint8(104),
  641. 66: uint8(121),
  642. 67: uint8(145),
  643. 68: uint8(21),
  644. 69: uint8(178),
  645. 70: uint8(7),
  646. 71: uint8(63),
  647. 72: uint8(148),
  648. 73: uint8(194),
  649. 74: uint8(16),
  650. 75: uint8(137),
  651. 76: uint8(11),
  652. 77: uint8(34),
  653. 78: uint8(95),
  654. 79: uint8(33),
  655. 80: uint8(128),
  656. 81: uint8(127),
  657. 82: uint8(93),
  658. 83: uint8(154),
  659. 84: uint8(90),
  660. 85: uint8(144),
  661. 86: uint8(50),
  662. 87: uint8(39),
  663. 88: uint8(53),
  664. 89: uint8(62),
  665. 90: uint8(204),
  666. 91: uint8(231),
  667. 92: uint8(191),
  668. 93: uint8(247),
  669. 94: uint8(151),
  670. 95: uint8(3),
  671. 96: uint8(255),
  672. 97: uint8(25),
  673. 98: uint8(48),
  674. 99: uint8(179),
  675. 100: uint8(72),
  676. 101: uint8(165),
  677. 102: uint8(181),
  678. 103: uint8(209),
  679. 104: uint8(215),
  680. 105: uint8(94),
  681. 106: uint8(146),
  682. 107: uint8(42),
  683. 108: uint8(172),
  684. 109: uint8(86),
  685. 110: uint8(170),
  686. 111: uint8(198),
  687. 112: uint8(79),
  688. 113: uint8(184),
  689. 114: uint8(56),
  690. 115: uint8(210),
  691. 116: uint8(150),
  692. 117: uint8(164),
  693. 118: uint8(125),
  694. 119: uint8(182),
  695. 120: uint8(118),
  696. 121: uint8(252),
  697. 122: uint8(107),
  698. 123: uint8(226),
  699. 124: uint8(156),
  700. 125: uint8(116),
  701. 126: uint8(4),
  702. 127: uint8(241),
  703. 128: uint8(69),
  704. 129: uint8(157),
  705. 130: uint8(112),
  706. 131: uint8(89),
  707. 132: uint8(100),
  708. 133: uint8(113),
  709. 134: uint8(135),
  710. 135: uint8(32),
  711. 136: uint8(134),
  712. 137: uint8(91),
  713. 138: uint8(207),
  714. 139: uint8(101),
  715. 140: uint8(230),
  716. 141: uint8(45),
  717. 142: uint8(168),
  718. 143: uint8(2),
  719. 144: uint8(27),
  720. 145: uint8(96),
  721. 146: uint8(37),
  722. 147: uint8(173),
  723. 148: uint8(174),
  724. 149: uint8(176),
  725. 150: uint8(185),
  726. 151: uint8(246),
  727. 152: uint8(28),
  728. 153: uint8(70),
  729. 154: uint8(97),
  730. 155: uint8(105),
  731. 156: uint8(52),
  732. 157: uint8(64),
  733. 158: uint8(126),
  734. 159: uint8(15),
  735. 160: uint8(85),
  736. 161: uint8(71),
  737. 162: uint8(163),
  738. 163: uint8(35),
  739. 164: uint8(221),
  740. 165: uint8(81),
  741. 166: uint8(175),
  742. 167: uint8(58),
  743. 168: uint8(195),
  744. 169: uint8(92),
  745. 170: uint8(249),
  746. 171: uint8(206),
  747. 172: uint8(186),
  748. 173: uint8(197),
  749. 174: uint8(234),
  750. 175: uint8(38),
  751. 176: uint8(44),
  752. 177: uint8(83),
  753. 178: uint8(13),
  754. 179: uint8(110),
  755. 180: uint8(133),
  756. 181: uint8(40),
  757. 182: uint8(132),
  758. 183: uint8(9),
  759. 184: uint8(211),
  760. 185: uint8(223),
  761. 186: uint8(205),
  762. 187: uint8(244),
  763. 188: uint8(65),
  764. 189: uint8(129),
  765. 190: uint8(77),
  766. 191: uint8(82),
  767. 192: uint8(106),
  768. 193: uint8(220),
  769. 194: uint8(55),
  770. 195: uint8(200),
  771. 196: uint8(108),
  772. 197: uint8(193),
  773. 198: uint8(171),
  774. 199: uint8(250),
  775. 200: uint8(36),
  776. 201: uint8(225),
  777. 202: uint8(123),
  778. 203: uint8(8),
  779. 204: uint8(12),
  780. 205: uint8(189),
  781. 206: uint8(177),
  782. 207: uint8(74),
  783. 208: uint8(120),
  784. 209: uint8(136),
  785. 210: uint8(149),
  786. 211: uint8(139),
  787. 212: uint8(227),
  788. 213: uint8(99),
  789. 214: uint8(232),
  790. 215: uint8(109),
  791. 216: uint8(233),
  792. 217: uint8(203),
  793. 218: uint8(213),
  794. 219: uint8(254),
  795. 220: uint8(59),
  796. 222: uint8(29),
  797. 223: uint8(57),
  798. 224: uint8(242),
  799. 225: uint8(239),
  800. 226: uint8(183),
  801. 227: uint8(14),
  802. 228: uint8(102),
  803. 229: uint8(88),
  804. 230: uint8(208),
  805. 231: uint8(228),
  806. 232: uint8(166),
  807. 233: uint8(119),
  808. 234: uint8(114),
  809. 235: uint8(248),
  810. 236: uint8(235),
  811. 237: uint8(117),
  812. 238: uint8(75),
  813. 239: uint8(10),
  814. 240: uint8(49),
  815. 241: uint8(68),
  816. 242: uint8(80),
  817. 243: uint8(180),
  818. 244: uint8(143),
  819. 245: uint8(237),
  820. 246: uint8(31),
  821. 247: uint8(26),
  822. 248: uint8(219),
  823. 249: uint8(153),
  824. 250: uint8(141),
  825. 251: uint8(51),
  826. 252: uint8(159),
  827. 253: uint8(17),
  828. 254: uint8(131),
  829. 255: uint8(20),
  830. }
  831. // C documentation
  832. //
  833. // /* cut-n-pasted from rfc1319 */
  834. var _pad = [17]uintptr{
  835. 0: __ccgo_ts,
  836. 1: __ccgo_ts + 1,
  837. 2: __ccgo_ts + 3,
  838. 3: __ccgo_ts + 6,
  839. 4: __ccgo_ts + 10,
  840. 5: __ccgo_ts + 15,
  841. 6: __ccgo_ts + 21,
  842. 7: __ccgo_ts + 28,
  843. 8: __ccgo_ts + 36,
  844. 9: __ccgo_ts + 45,
  845. 10: __ccgo_ts + 55,
  846. 11: __ccgo_ts + 66,
  847. 12: __ccgo_ts + 78,
  848. 13: __ccgo_ts + 91,
  849. 14: __ccgo_ts + 105,
  850. 15: __ccgo_ts + 120,
  851. 16: __ccgo_ts + 136,
  852. }
  853. func XMD2Init(tls *libc.TLS, context uintptr) {
  854. (*TMD2_CTX)(unsafe.Pointer(context)).Fi = uint32(16)
  855. libc.Xmemset(tls, context+4, 0, uint64(16))
  856. libc.Xmemset(tls, context+20, 0, uint64(48))
  857. }
  858. func XMD2Update(tls *libc.TLS, context uintptr, input uintptr, inputLen uint32) {
  859. var idx, piece uint32
  860. var p2 uintptr
  861. _, _, _ = idx, piece, p2
  862. idx = uint32(0)
  863. for {
  864. if !(idx < inputLen) {
  865. break
  866. }
  867. piece = uint32(32) - (*TMD2_CTX)(unsafe.Pointer(context)).Fi
  868. if inputLen-idx < piece {
  869. piece = inputLen - idx
  870. }
  871. libc.Xmemcpy(tls, context+20+uintptr((*TMD2_CTX)(unsafe.Pointer(context)).Fi), input+uintptr(idx), uint64(piece))
  872. p2 = context
  873. *(*Tuint32_t)(unsafe.Pointer(p2)) += piece
  874. if *(*Tuint32_t)(unsafe.Pointer(p2)) == uint32(32) {
  875. XMD2Transform(tls, context)
  876. } /* resets i */
  877. goto _1
  878. _1:
  879. ;
  880. idx += piece
  881. }
  882. }
  883. func XMD2Final(tls *libc.TLS, digest uintptr, context uintptr) {
  884. var padlen uint32
  885. _ = padlen
  886. /* padlen should be 1..16 */
  887. padlen = uint32(32) - (*TMD2_CTX)(unsafe.Pointer(context)).Fi
  888. /* add padding */
  889. XMD2Update(tls, context, _pad[padlen], padlen)
  890. /* add checksum */
  891. XMD2Update(tls, context, context+4, libc.Uint32FromInt64(16))
  892. /* copy out final digest */
  893. libc.Xmemcpy(tls, digest, context+20, libc.Uint64FromInt32(16))
  894. /* reset the context */
  895. XMD2Init(tls, context)
  896. }
  897. // C documentation
  898. //
  899. // /*static*/
  900. func XMD2Transform(tls *libc.TLS, context uintptr) {
  901. var j, k, l, t, v4 Tuint32_t
  902. var v6 uint8
  903. var p2 uintptr
  904. _, _, _, _, _, _, _ = j, k, l, t, v4, v6, p2
  905. /* set block "3" and update "checksum" */
  906. l = uint32(*(*uint8)(unsafe.Pointer(context + 4 + 15)))
  907. j = libc.Uint32FromInt32(0)
  908. for {
  909. if !(j < uint32(16)) {
  910. break
  911. }
  912. *(*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)))))
  913. p2 = context + 4 + uintptr(j)
  914. *(*uint8)(unsafe.Pointer(p2)) = uint8(int32(*(*uint8)(unsafe.Pointer(p2))) ^ libc.Int32FromUint8(_S[uint32(*(*uint8)(unsafe.Pointer(context + 20 + uintptr(uint32(16)+j))))^l]))
  915. l = uint32(*(*uint8)(unsafe.Pointer(p2)))
  916. goto _1
  917. _1:
  918. ;
  919. j++
  920. }
  921. /* mangle input block */
  922. v4 = libc.Uint32FromInt32(0)
  923. j = v4
  924. t = v4
  925. for {
  926. if !(j < uint32(18)) {
  927. break
  928. }
  929. k = uint32(0)
  930. for {
  931. if !(k < uint32(48)) {
  932. break
  933. }
  934. v6 = libc.Uint8FromInt32(libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(context + 20 + uintptr(k)))) ^ libc.Int32FromUint8(_S[t]))
  935. *(*uint8)(unsafe.Pointer(context + 20 + uintptr(k))) = v6
  936. t = uint32(v6)
  937. goto _5
  938. _5:
  939. ;
  940. k++
  941. }
  942. goto _3
  943. _3:
  944. ;
  945. t = (t + j) % uint32(256)
  946. j++
  947. }
  948. /* reset input pointer */
  949. (*TMD2_CTX)(unsafe.Pointer(context)).Fi = uint32(16)
  950. }
  951. const m_MD4_BLOCK_LENGTH = 64
  952. const m_MD4_DIGEST_LENGTH = 16
  953. type TMD4_CTX = struct {
  954. Fstate [4]Tuint32_t
  955. Fcount Tuint64_t
  956. Fbuffer [64]Tuint8_t
  957. }
  958. type TMD4Context = TMD4_CTX
  959. var _PADDING = [64]Tuint8_t{
  960. 0: uint8(0x80),
  961. }
  962. // C documentation
  963. //
  964. // /*
  965. // * Start MD4 accumulation.
  966. // * Set bit count to 0 and buffer to mysterious initialization constants.
  967. // */
  968. func XMD4Init(tls *libc.TLS, ctx uintptr) {
  969. (*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount = uint64(0)
  970. *(*Tuint32_t)(unsafe.Pointer(ctx)) = uint32(0x67452301)
  971. *(*Tuint32_t)(unsafe.Pointer(ctx + 1*4)) = uint32(0xefcdab89)
  972. *(*Tuint32_t)(unsafe.Pointer(ctx + 2*4)) = uint32(0x98badcfe)
  973. *(*Tuint32_t)(unsafe.Pointer(ctx + 3*4)) = uint32(0x10325476)
  974. }
  975. // C documentation
  976. //
  977. // /*
  978. // * Update context to reflect the concatenation of another buffer full
  979. // * of bytes.
  980. // */
  981. func XMD4Update(tls *libc.TLS, ctx uintptr, input uintptr, len1 Tsize_t) {
  982. var have, need Tsize_t
  983. _, _ = have, need
  984. /* Check how many bytes we already have and how many more we need. */
  985. have = (*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount >> libc.Int32FromInt32(3) & libc.Uint64FromInt32(libc.Int32FromInt32(m_MD4_BLOCK_LENGTH)-libc.Int32FromInt32(1))
  986. need = uint64(m_MD4_BLOCK_LENGTH) - have
  987. /* Update bitcount */
  988. *(*Tuint64_t)(unsafe.Pointer(ctx + 16)) += len1 << int32(3)
  989. if len1 >= need {
  990. if have != uint64(0) {
  991. libc.Xmemcpy(tls, ctx+24+uintptr(have), input, need)
  992. XMD4Transform(tls, ctx, ctx+24)
  993. input += uintptr(need)
  994. len1 -= need
  995. have = uint64(0)
  996. }
  997. /* Process data in MD4_BLOCK_LENGTH-byte chunks. */
  998. for len1 >= uint64(m_MD4_BLOCK_LENGTH) {
  999. XMD4Transform(tls, ctx, input)
  1000. input += uintptr(m_MD4_BLOCK_LENGTH)
  1001. len1 -= uint64(m_MD4_BLOCK_LENGTH)
  1002. }
  1003. }
  1004. /* Handle any remaining bytes of data. */
  1005. if len1 != uint64(0) {
  1006. libc.Xmemcpy(tls, ctx+24+uintptr(have), input, len1)
  1007. }
  1008. }
  1009. // C documentation
  1010. //
  1011. // /*
  1012. // * Pad pad to 64-byte boundary with the bit pattern
  1013. // * 1 0* (64-bit count of bits processed, MSB-first)
  1014. // */
  1015. func XMD4Pad(tls *libc.TLS, ctx uintptr) {
  1016. bp := tls.Alloc(16)
  1017. defer tls.Free(16)
  1018. var padlen Tsize_t
  1019. var _ /* count at bp+0 */ [8]Tuint8_t
  1020. _ = padlen
  1021. /* Convert count to 8 bytes in little endian order. */
  1022. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(7)] = uint8((*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(56))
  1023. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(6)] = uint8((*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(48))
  1024. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(5)] = uint8((*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(40))
  1025. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(4)] = uint8((*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(32))
  1026. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(3)] = uint8((*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(24))
  1027. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(2)] = uint8((*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(16))
  1028. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(1)] = uint8((*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(8))
  1029. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[0] = uint8((*TMD4_CTX)(unsafe.Pointer(ctx)).Fcount)
  1030. /* Pad out to 56 mod 64. */
  1031. 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))
  1032. if padlen < libc.Uint64FromInt32(libc.Int32FromInt32(1)+libc.Int32FromInt32(8)) {
  1033. padlen += uint64(m_MD4_BLOCK_LENGTH)
  1034. }
  1035. XMD4Update(tls, ctx, uintptr(unsafe.Pointer(&_PADDING)), padlen-uint64(8)) /* padlen - 8 <= 64 */
  1036. XMD4Update(tls, ctx, bp, uint64(8))
  1037. }
  1038. // C documentation
  1039. //
  1040. // /*
  1041. // * Final wrapup--call MD4Pad, fill in digest and zero out ctx.
  1042. // */
  1043. func XMD4Final(tls *libc.TLS, digest uintptr, ctx uintptr) {
  1044. var i int32
  1045. _ = i
  1046. XMD4Pad(tls, ctx)
  1047. if digest != libc.UintptrFromInt32(0) {
  1048. i = 0
  1049. for {
  1050. if !(i < int32(4)) {
  1051. break
  1052. }
  1053. *(*uint8)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 3)) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)) >> int32(24))
  1054. *(*uint8)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 2)) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)) >> int32(16))
  1055. *(*uint8)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 1)) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)) >> int32(8))
  1056. *(*uint8)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)))) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)))
  1057. goto _1
  1058. _1:
  1059. ;
  1060. i++
  1061. }
  1062. libc.Xmemset(tls, ctx, 0, uint64(88))
  1063. }
  1064. }
  1065. /* The three core functions - F1 is optimized somewhat */
  1066. /* #define F1(x, y, z) (x & y | ~x & z) */
  1067. /* This is the central step in the MD4 algorithm. */
  1068. // C documentation
  1069. //
  1070. // /*
  1071. // * The core of the MD4 algorithm, this alters an existing MD4 hash to
  1072. // * reflect the addition of 16 longwords of new data. MD4Update blocks
  1073. // * the data and converts bytes into longwords for this routine.
  1074. // */
  1075. func XMD4Transform(tls *libc.TLS, state uintptr, block uintptr) {
  1076. bp := tls.Alloc(64)
  1077. defer tls.Free(64)
  1078. var a, b, c, d Tuint32_t
  1079. var _ /* in at bp+0 */ [16]Tuint32_t
  1080. _, _, _, _ = a, b, c, d
  1081. libc.Xmemcpy(tls, bp, block, uint64(64))
  1082. a = *(*Tuint32_t)(unsafe.Pointer(state))
  1083. b = *(*Tuint32_t)(unsafe.Pointer(state + 1*4))
  1084. c = *(*Tuint32_t)(unsafe.Pointer(state + 2*4))
  1085. d = *(*Tuint32_t)(unsafe.Pointer(state + 3*4))
  1086. a += d ^ b&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0]
  1087. a = a<<libc.Int32FromInt32(3) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3))
  1088. d += c ^ a&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)]
  1089. d = d<<libc.Int32FromInt32(7) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7))
  1090. c += b ^ d&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)]
  1091. c = c<<libc.Int32FromInt32(11) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11))
  1092. b += a ^ c&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)]
  1093. b = b<<libc.Int32FromInt32(19) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(19))
  1094. a += d ^ b&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)]
  1095. a = a<<libc.Int32FromInt32(3) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3))
  1096. d += c ^ a&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)]
  1097. d = d<<libc.Int32FromInt32(7) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7))
  1098. c += b ^ d&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)]
  1099. c = c<<libc.Int32FromInt32(11) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11))
  1100. b += a ^ c&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)]
  1101. b = b<<libc.Int32FromInt32(19) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(19))
  1102. a += d ^ b&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)]
  1103. a = a<<libc.Int32FromInt32(3) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3))
  1104. d += c ^ a&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)]
  1105. d = d<<libc.Int32FromInt32(7) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7))
  1106. c += b ^ d&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)]
  1107. c = c<<libc.Int32FromInt32(11) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11))
  1108. b += a ^ c&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)]
  1109. b = b<<libc.Int32FromInt32(19) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(19))
  1110. a += d ^ b&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)]
  1111. a = a<<libc.Int32FromInt32(3) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3))
  1112. d += c ^ a&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)]
  1113. d = d<<libc.Int32FromInt32(7) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7))
  1114. c += b ^ d&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)]
  1115. c = c<<libc.Int32FromInt32(11) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11))
  1116. b += a ^ c&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)]
  1117. b = b<<libc.Int32FromInt32(19) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(19))
  1118. a += b&c | b&d | c&d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0] + uint32(0x5a827999)
  1119. a = a<<libc.Int32FromInt32(3) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3))
  1120. d += a&b | a&c | b&c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)] + uint32(0x5a827999)
  1121. d = d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))
  1122. c += d&a | d&b | a&b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)] + uint32(0x5a827999)
  1123. c = c<<libc.Int32FromInt32(9) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9))
  1124. b += c&d | c&a | d&a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)] + uint32(0x5a827999)
  1125. b = b<<libc.Int32FromInt32(13) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13))
  1126. a += b&c | b&d | c&d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)] + uint32(0x5a827999)
  1127. a = a<<libc.Int32FromInt32(3) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3))
  1128. d += a&b | a&c | b&c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)] + uint32(0x5a827999)
  1129. d = d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))
  1130. c += d&a | d&b | a&b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)] + uint32(0x5a827999)
  1131. c = c<<libc.Int32FromInt32(9) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9))
  1132. b += c&d | c&a | d&a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)] + uint32(0x5a827999)
  1133. b = b<<libc.Int32FromInt32(13) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13))
  1134. a += b&c | b&d | c&d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)] + uint32(0x5a827999)
  1135. a = a<<libc.Int32FromInt32(3) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3))
  1136. d += a&b | a&c | b&c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)] + uint32(0x5a827999)
  1137. d = d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))
  1138. c += d&a | d&b | a&b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)] + uint32(0x5a827999)
  1139. c = c<<libc.Int32FromInt32(9) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9))
  1140. b += c&d | c&a | d&a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)] + uint32(0x5a827999)
  1141. b = b<<libc.Int32FromInt32(13) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13))
  1142. a += b&c | b&d | c&d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)] + uint32(0x5a827999)
  1143. a = a<<libc.Int32FromInt32(3) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3))
  1144. d += a&b | a&c | b&c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)] + uint32(0x5a827999)
  1145. d = d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))
  1146. c += d&a | d&b | a&b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)] + uint32(0x5a827999)
  1147. c = c<<libc.Int32FromInt32(9) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9))
  1148. b += c&d | c&a | d&a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)] + uint32(0x5a827999)
  1149. b = b<<libc.Int32FromInt32(13) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(13))
  1150. a += b ^ c ^ d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0] + uint32(0x6ed9eba1)
  1151. a = a<<libc.Int32FromInt32(3) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3))
  1152. d += a ^ b ^ c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)] + uint32(0x6ed9eba1)
  1153. d = d<<libc.Int32FromInt32(9) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9))
  1154. c += d ^ a ^ b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)] + uint32(0x6ed9eba1)
  1155. c = c<<libc.Int32FromInt32(11) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11))
  1156. b += c ^ d ^ a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)] + uint32(0x6ed9eba1)
  1157. b = b<<libc.Int32FromInt32(15) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15))
  1158. a += b ^ c ^ d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)] + uint32(0x6ed9eba1)
  1159. a = a<<libc.Int32FromInt32(3) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3))
  1160. d += a ^ b ^ c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)] + uint32(0x6ed9eba1)
  1161. d = d<<libc.Int32FromInt32(9) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9))
  1162. c += d ^ a ^ b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)] + uint32(0x6ed9eba1)
  1163. c = c<<libc.Int32FromInt32(11) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11))
  1164. b += c ^ d ^ a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)] + uint32(0x6ed9eba1)
  1165. b = b<<libc.Int32FromInt32(15) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15))
  1166. a += b ^ c ^ d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)] + uint32(0x6ed9eba1)
  1167. a = a<<libc.Int32FromInt32(3) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3))
  1168. d += a ^ b ^ c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)] + uint32(0x6ed9eba1)
  1169. d = d<<libc.Int32FromInt32(9) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9))
  1170. c += d ^ a ^ b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)] + uint32(0x6ed9eba1)
  1171. c = c<<libc.Int32FromInt32(11) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11))
  1172. b += c ^ d ^ a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)] + uint32(0x6ed9eba1)
  1173. b = b<<libc.Int32FromInt32(15) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15))
  1174. a += b ^ c ^ d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)] + uint32(0x6ed9eba1)
  1175. a = a<<libc.Int32FromInt32(3) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(3))
  1176. d += a ^ b ^ c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)] + uint32(0x6ed9eba1)
  1177. d = d<<libc.Int32FromInt32(9) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9))
  1178. c += d ^ a ^ b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)] + uint32(0x6ed9eba1)
  1179. c = c<<libc.Int32FromInt32(11) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11))
  1180. b += c ^ d ^ a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)] + uint32(0x6ed9eba1)
  1181. b = b<<libc.Int32FromInt32(15) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15))
  1182. *(*Tuint32_t)(unsafe.Pointer(state)) += a
  1183. *(*Tuint32_t)(unsafe.Pointer(state + 1*4)) += b
  1184. *(*Tuint32_t)(unsafe.Pointer(state + 2*4)) += c
  1185. *(*Tuint32_t)(unsafe.Pointer(state + 3*4)) += d
  1186. }
  1187. const m_MD5_BLOCK_LENGTH = 64
  1188. const m_MD5_DIGEST_LENGTH = 16
  1189. type TMD5_CTX = struct {
  1190. Fstate [4]Tuint32_t
  1191. Fcount Tuint64_t
  1192. Fbuffer [64]Tuint8_t
  1193. }
  1194. type TMD5Context = TMD5_CTX
  1195. /* Avoid polluting the namespace. Even though this makes this usage
  1196. * implementation-specific, defining it unconditionally should not be
  1197. * a problem, and better than possibly breaking unexpecting code. */
  1198. var _PADDING1 = [64]Tuint8_t{
  1199. 0: uint8(0x80),
  1200. }
  1201. // C documentation
  1202. //
  1203. // /*
  1204. // * Start MD5 accumulation. Set bit count to 0 and buffer to mysterious
  1205. // * initialization constants.
  1206. // */
  1207. func XMD5Init(tls *libc.TLS, ctx uintptr) {
  1208. (*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount = uint64(0)
  1209. *(*Tuint32_t)(unsafe.Pointer(ctx)) = uint32(0x67452301)
  1210. *(*Tuint32_t)(unsafe.Pointer(ctx + 1*4)) = uint32(0xefcdab89)
  1211. *(*Tuint32_t)(unsafe.Pointer(ctx + 2*4)) = uint32(0x98badcfe)
  1212. *(*Tuint32_t)(unsafe.Pointer(ctx + 3*4)) = uint32(0x10325476)
  1213. }
  1214. // C documentation
  1215. //
  1216. // /*
  1217. // * Update context to reflect the concatenation of another buffer full
  1218. // * of bytes.
  1219. // */
  1220. func XMD5Update(tls *libc.TLS, ctx uintptr, input uintptr, len1 Tsize_t) {
  1221. var have, need Tsize_t
  1222. _, _ = have, need
  1223. /* Check how many bytes we already have and how many more we need. */
  1224. have = (*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount >> libc.Int32FromInt32(3) & libc.Uint64FromInt32(libc.Int32FromInt32(m_MD5_BLOCK_LENGTH)-libc.Int32FromInt32(1))
  1225. need = uint64(m_MD5_BLOCK_LENGTH) - have
  1226. /* Update bitcount */
  1227. *(*Tuint64_t)(unsafe.Pointer(ctx + 16)) += len1 << int32(3)
  1228. if len1 >= need {
  1229. if have != uint64(0) {
  1230. libc.Xmemcpy(tls, ctx+24+uintptr(have), input, need)
  1231. XMD5Transform(tls, ctx, ctx+24)
  1232. input += uintptr(need)
  1233. len1 -= need
  1234. have = uint64(0)
  1235. }
  1236. /* Process data in MD5_BLOCK_LENGTH-byte chunks. */
  1237. for len1 >= uint64(m_MD5_BLOCK_LENGTH) {
  1238. XMD5Transform(tls, ctx, input)
  1239. input += uintptr(m_MD5_BLOCK_LENGTH)
  1240. len1 -= uint64(m_MD5_BLOCK_LENGTH)
  1241. }
  1242. }
  1243. /* Handle any remaining bytes of data. */
  1244. if len1 != uint64(0) {
  1245. libc.Xmemcpy(tls, ctx+24+uintptr(have), input, len1)
  1246. }
  1247. }
  1248. // C documentation
  1249. //
  1250. // /*
  1251. // * Pad pad to 64-byte boundary with the bit pattern
  1252. // * 1 0* (64-bit count of bits processed, MSB-first)
  1253. // */
  1254. func XMD5Pad(tls *libc.TLS, ctx uintptr) {
  1255. bp := tls.Alloc(16)
  1256. defer tls.Free(16)
  1257. var padlen Tsize_t
  1258. var _ /* count at bp+0 */ [8]Tuint8_t
  1259. _ = padlen
  1260. /* Convert count to 8 bytes in little endian order. */
  1261. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(7)] = uint8((*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(56))
  1262. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(6)] = uint8((*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(48))
  1263. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(5)] = uint8((*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(40))
  1264. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(4)] = uint8((*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(32))
  1265. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(3)] = uint8((*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(24))
  1266. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(2)] = uint8((*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(16))
  1267. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(1)] = uint8((*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(8))
  1268. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[0] = uint8((*TMD5_CTX)(unsafe.Pointer(ctx)).Fcount)
  1269. /* Pad out to 56 mod 64. */
  1270. 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))
  1271. if padlen < libc.Uint64FromInt32(libc.Int32FromInt32(1)+libc.Int32FromInt32(8)) {
  1272. padlen += uint64(m_MD5_BLOCK_LENGTH)
  1273. }
  1274. XMD5Update(tls, ctx, uintptr(unsafe.Pointer(&_PADDING1)), padlen-uint64(8)) /* padlen - 8 <= 64 */
  1275. XMD5Update(tls, ctx, bp, uint64(8))
  1276. }
  1277. // C documentation
  1278. //
  1279. // /*
  1280. // * Final wrapup--call MD5Pad, fill in digest and zero out ctx.
  1281. // */
  1282. func XMD5Final(tls *libc.TLS, digest uintptr, ctx uintptr) {
  1283. var i int32
  1284. _ = i
  1285. XMD5Pad(tls, ctx)
  1286. if digest != libc.UintptrFromInt32(0) {
  1287. i = 0
  1288. for {
  1289. if !(i < int32(4)) {
  1290. break
  1291. }
  1292. *(*uint8)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 3)) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)) >> int32(24))
  1293. *(*uint8)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 2)) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)) >> int32(16))
  1294. *(*uint8)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 1)) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)) >> int32(8))
  1295. *(*uint8)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)))) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)))
  1296. goto _1
  1297. _1:
  1298. ;
  1299. i++
  1300. }
  1301. libc.Xmemset(tls, ctx, 0, uint64(88))
  1302. }
  1303. }
  1304. /* The four core functions - F1 is optimized somewhat */
  1305. /* #define F1(x, y, z) (x & y | ~x & z) */
  1306. /* This is the central step in the MD5 algorithm. */
  1307. // C documentation
  1308. //
  1309. // /*
  1310. // * The core of the MD5 algorithm, this alters an existing MD5 hash to
  1311. // * reflect the addition of 16 longwords of new data. MD5Update blocks
  1312. // * the data and converts bytes into longwords for this routine.
  1313. // */
  1314. func XMD5Transform(tls *libc.TLS, state uintptr, block uintptr) {
  1315. bp := tls.Alloc(64)
  1316. defer tls.Free(64)
  1317. var a, b, c, d Tuint32_t
  1318. var _ /* in at bp+0 */ [16]Tuint32_t
  1319. _, _, _, _ = a, b, c, d
  1320. libc.Xmemcpy(tls, bp, block, uint64(64))
  1321. a = *(*Tuint32_t)(unsafe.Pointer(state))
  1322. b = *(*Tuint32_t)(unsafe.Pointer(state + 1*4))
  1323. c = *(*Tuint32_t)(unsafe.Pointer(state + 2*4))
  1324. d = *(*Tuint32_t)(unsafe.Pointer(state + 3*4))
  1325. a += d ^ b&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0] + uint32(0xd76aa478)
  1326. a = a<<int32(7) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7))
  1327. a += b
  1328. d += c ^ a&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)] + uint32(0xe8c7b756)
  1329. d = d<<int32(12) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12))
  1330. d += a
  1331. c += b ^ d&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)] + uint32(0x242070db)
  1332. c = c<<int32(17) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(17))
  1333. c += d
  1334. b += a ^ c&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)] + uint32(0xc1bdceee)
  1335. b = b<<int32(22) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(22))
  1336. b += c
  1337. a += d ^ b&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)] + uint32(0xf57c0faf)
  1338. a = a<<int32(7) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7))
  1339. a += b
  1340. d += c ^ a&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)] + uint32(0x4787c62a)
  1341. d = d<<int32(12) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12))
  1342. d += a
  1343. c += b ^ d&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)] + uint32(0xa8304613)
  1344. c = c<<int32(17) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(17))
  1345. c += d
  1346. b += a ^ c&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)] + uint32(0xfd469501)
  1347. b = b<<int32(22) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(22))
  1348. b += c
  1349. a += d ^ b&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)] + uint32(0x698098d8)
  1350. a = a<<int32(7) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7))
  1351. a += b
  1352. d += c ^ a&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)] + uint32(0x8b44f7af)
  1353. d = d<<int32(12) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12))
  1354. d += a
  1355. c += b ^ d&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)] + uint32(0xffff5bb1)
  1356. c = c<<int32(17) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(17))
  1357. c += d
  1358. b += a ^ c&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)] + uint32(0x895cd7be)
  1359. b = b<<int32(22) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(22))
  1360. b += c
  1361. a += d ^ b&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)] + uint32(0x6b901122)
  1362. a = a<<int32(7) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(7))
  1363. a += b
  1364. d += c ^ a&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)] + uint32(0xfd987193)
  1365. d = d<<int32(12) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(12))
  1366. d += a
  1367. c += b ^ d&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)] + uint32(0xa679438e)
  1368. c = c<<int32(17) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(17))
  1369. c += d
  1370. b += a ^ c&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)] + uint32(0x49b40821)
  1371. b = b<<int32(22) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(22))
  1372. b += c
  1373. a += c ^ d&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)] + uint32(0xf61e2562)
  1374. a = a<<int32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))
  1375. a += b
  1376. d += b ^ c&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)] + uint32(0xc040b340)
  1377. d = d<<int32(9) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9))
  1378. d += a
  1379. c += a ^ b&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)] + uint32(0x265e5a51)
  1380. c = c<<int32(14) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14))
  1381. c += d
  1382. b += d ^ a&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0] + uint32(0xe9b6c7aa)
  1383. b = b<<int32(20) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(20))
  1384. b += c
  1385. a += c ^ d&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)] + uint32(0xd62f105d)
  1386. a = a<<int32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))
  1387. a += b
  1388. d += b ^ c&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)] + uint32(0x02441453)
  1389. d = d<<int32(9) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9))
  1390. d += a
  1391. c += a ^ b&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)] + uint32(0xd8a1e681)
  1392. c = c<<int32(14) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14))
  1393. c += d
  1394. b += d ^ a&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)] + uint32(0xe7d3fbc8)
  1395. b = b<<int32(20) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(20))
  1396. b += c
  1397. a += c ^ d&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)] + uint32(0x21e1cde6)
  1398. a = a<<int32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))
  1399. a += b
  1400. d += b ^ c&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)] + uint32(0xc33707d6)
  1401. d = d<<int32(9) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9))
  1402. d += a
  1403. c += a ^ b&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)] + uint32(0xf4d50d87)
  1404. c = c<<int32(14) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14))
  1405. c += d
  1406. b += d ^ a&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)] + uint32(0x455a14ed)
  1407. b = b<<int32(20) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(20))
  1408. b += c
  1409. a += c ^ d&(b^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)] + uint32(0xa9e3e905)
  1410. a = a<<int32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5))
  1411. a += b
  1412. d += b ^ c&(a^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)] + uint32(0xfcefa3f8)
  1413. d = d<<int32(9) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(9))
  1414. d += a
  1415. c += a ^ b&(d^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)] + uint32(0x676f02d9)
  1416. c = c<<int32(14) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(14))
  1417. c += d
  1418. b += d ^ a&(c^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)] + uint32(0x8d2a4c8a)
  1419. b = b<<int32(20) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(20))
  1420. b += c
  1421. a += b ^ c ^ d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)] + uint32(0xfffa3942)
  1422. a = a<<int32(4) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(4))
  1423. a += b
  1424. d += a ^ b ^ c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)] + uint32(0x8771f681)
  1425. d = d<<int32(11) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11))
  1426. d += a
  1427. c += d ^ a ^ b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)] + uint32(0x6d9d6122)
  1428. c = c<<int32(16) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(16))
  1429. c += d
  1430. b += c ^ d ^ a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)] + uint32(0xfde5380c)
  1431. b = b<<int32(23) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(23))
  1432. b += c
  1433. a += b ^ c ^ d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)] + uint32(0xa4beea44)
  1434. a = a<<int32(4) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(4))
  1435. a += b
  1436. d += a ^ b ^ c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)] + uint32(0x4bdecfa9)
  1437. d = d<<int32(11) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11))
  1438. d += a
  1439. c += d ^ a ^ b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)] + uint32(0xf6bb4b60)
  1440. c = c<<int32(16) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(16))
  1441. c += d
  1442. b += c ^ d ^ a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)] + uint32(0xbebfbc70)
  1443. b = b<<int32(23) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(23))
  1444. b += c
  1445. a += b ^ c ^ d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)] + uint32(0x289b7ec6)
  1446. a = a<<int32(4) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(4))
  1447. a += b
  1448. d += a ^ b ^ c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0] + uint32(0xeaa127fa)
  1449. d = d<<int32(11) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11))
  1450. d += a
  1451. c += d ^ a ^ b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)] + uint32(0xd4ef3085)
  1452. c = c<<int32(16) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(16))
  1453. c += d
  1454. b += c ^ d ^ a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)] + uint32(0x04881d05)
  1455. b = b<<int32(23) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(23))
  1456. b += c
  1457. a += b ^ c ^ d + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)] + uint32(0xd9d4d039)
  1458. a = a<<int32(4) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(4))
  1459. a += b
  1460. d += a ^ b ^ c + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)] + uint32(0xe6db99e5)
  1461. d = d<<int32(11) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(11))
  1462. d += a
  1463. c += d ^ a ^ b + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)] + uint32(0x1fa27cf8)
  1464. c = c<<int32(16) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(16))
  1465. c += d
  1466. b += c ^ d ^ a + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)] + uint32(0xc4ac5665)
  1467. b = b<<int32(23) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(23))
  1468. b += c
  1469. a += c ^ (b | ^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[0] + uint32(0xf4292244)
  1470. a = a<<int32(6) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6))
  1471. a += b
  1472. d += b ^ (a | ^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(7)] + uint32(0x432aff97)
  1473. d = d<<int32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1474. d += a
  1475. c += a ^ (d | ^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(14)] + uint32(0xab9423a7)
  1476. c = c<<int32(15) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15))
  1477. c += d
  1478. b += d ^ (c | ^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(5)] + uint32(0xfc93a039)
  1479. b = b<<int32(21) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(21))
  1480. b += c
  1481. a += c ^ (b | ^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(12)] + uint32(0x655b59c3)
  1482. a = a<<int32(6) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6))
  1483. a += b
  1484. d += b ^ (a | ^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(3)] + uint32(0x8f0ccc92)
  1485. d = d<<int32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1486. d += a
  1487. c += a ^ (d | ^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(10)] + uint32(0xffeff47d)
  1488. c = c<<int32(15) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15))
  1489. c += d
  1490. b += d ^ (c | ^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(1)] + uint32(0x85845dd1)
  1491. b = b<<int32(21) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(21))
  1492. b += c
  1493. a += c ^ (b | ^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(8)] + uint32(0x6fa87e4f)
  1494. a = a<<int32(6) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6))
  1495. a += b
  1496. d += b ^ (a | ^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(15)] + uint32(0xfe2ce6e0)
  1497. d = d<<int32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1498. d += a
  1499. c += a ^ (d | ^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(6)] + uint32(0xa3014314)
  1500. c = c<<int32(15) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15))
  1501. c += d
  1502. b += d ^ (c | ^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(13)] + uint32(0x4e0811a1)
  1503. b = b<<int32(21) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(21))
  1504. b += c
  1505. a += c ^ (b | ^d) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(4)] + uint32(0xf7537e82)
  1506. a = a<<int32(6) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(6))
  1507. a += b
  1508. d += b ^ (a | ^c) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(11)] + uint32(0xbd3af235)
  1509. d = d<<int32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1510. d += a
  1511. c += a ^ (d | ^b) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(2)] + uint32(0x2ad7d2bb)
  1512. c = c<<int32(15) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(15))
  1513. c += d
  1514. b += d ^ (c | ^a) + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[int32(9)] + uint32(0xeb86d391)
  1515. b = b<<int32(21) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(21))
  1516. b += c
  1517. *(*Tuint32_t)(unsafe.Pointer(state)) += a
  1518. *(*Tuint32_t)(unsafe.Pointer(state + 1*4)) += b
  1519. *(*Tuint32_t)(unsafe.Pointer(state + 2*4)) += c
  1520. *(*Tuint32_t)(unsafe.Pointer(state + 3*4)) += d
  1521. }
  1522. const m_H0 = 1732584193
  1523. const m_H1 = 4023233417
  1524. const m_H2 = 2562383102
  1525. const m_H3 = 271733878
  1526. const m_H4 = 3285377520
  1527. const m_K0 = 0
  1528. const m_K1 = 1518500249
  1529. const m_K2 = 1859775393
  1530. const m_K3 = 2400959708
  1531. const m_K4 = 2840853838
  1532. const m_KK0 = 1352829926
  1533. const m_KK1 = 1548603684
  1534. const m_KK2 = 1836072691
  1535. const m_KK3 = 2053994217
  1536. const m_KK4 = 0
  1537. const m_RMD160_BLOCK_LENGTH = 64
  1538. const m_RMD160_DIGEST_LENGTH = 20
  1539. type TRMD160_CTX = struct {
  1540. Fstate [5]Tuint32_t
  1541. Fcount Tuint64_t
  1542. Fbuffer [64]Tuint8_t
  1543. }
  1544. type TRMD160Context = TRMD160_CTX
  1545. /* rotate x left n bits. */
  1546. var _PADDING2 = [64]Tuint8_t{
  1547. 0: uint8(0x80),
  1548. }
  1549. func XRMD160Init(tls *libc.TLS, ctx uintptr) {
  1550. (*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount = uint64(0)
  1551. *(*Tuint32_t)(unsafe.Pointer(ctx)) = uint32(0x67452301)
  1552. *(*Tuint32_t)(unsafe.Pointer(ctx + 1*4)) = uint32(0xEFCDAB89)
  1553. *(*Tuint32_t)(unsafe.Pointer(ctx + 2*4)) = uint32(0x98BADCFE)
  1554. *(*Tuint32_t)(unsafe.Pointer(ctx + 3*4)) = uint32(0x10325476)
  1555. *(*Tuint32_t)(unsafe.Pointer(ctx + 4*4)) = uint32(0xC3D2E1F0)
  1556. }
  1557. func XRMD160Update(tls *libc.TLS, ctx uintptr, input uintptr, len1 Tsize_t) {
  1558. var have, need, off Tsize_t
  1559. _, _, _ = have, need, off
  1560. have = (*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount / uint64(8) % uint64(m_RMD160_BLOCK_LENGTH)
  1561. need = uint64(m_RMD160_BLOCK_LENGTH) - have
  1562. *(*Tuint64_t)(unsafe.Pointer(ctx + 24)) += uint64(8) * len1
  1563. off = uint64(0)
  1564. if len1 >= need {
  1565. if have != 0 {
  1566. libc.Xmemcpy(tls, ctx+32+uintptr(have), input, need)
  1567. XRMD160Transform(tls, ctx, ctx+32)
  1568. off = need
  1569. have = uint64(0)
  1570. }
  1571. /* now the buffer is empty */
  1572. for off+uint64(m_RMD160_BLOCK_LENGTH) <= len1 {
  1573. XRMD160Transform(tls, ctx, input+uintptr(off))
  1574. off += uint64(m_RMD160_BLOCK_LENGTH)
  1575. }
  1576. }
  1577. if off < len1 {
  1578. libc.Xmemcpy(tls, ctx+32+uintptr(have), input+uintptr(off), len1-off)
  1579. }
  1580. }
  1581. func XRMD160Pad(tls *libc.TLS, ctx uintptr) {
  1582. bp := tls.Alloc(16)
  1583. defer tls.Free(16)
  1584. var padlen Tsize_t
  1585. var _ /* size at bp+0 */ [8]Tuint8_t
  1586. _ = padlen
  1587. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(7)] = uint8((*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(56))
  1588. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(6)] = uint8((*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(48))
  1589. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(5)] = uint8((*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(40))
  1590. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(4)] = uint8((*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(32))
  1591. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(3)] = uint8((*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(24))
  1592. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(2)] = uint8((*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(16))
  1593. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[int32(1)] = uint8((*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount >> int32(8))
  1594. (*(*[8]Tuint8_t)(unsafe.Pointer(bp)))[0] = uint8((*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount)
  1595. /*
  1596. * pad to RMD160_BLOCK_LENGTH byte blocks, at least one byte from
  1597. * PADDING plus 8 bytes for the size
  1598. */
  1599. padlen = uint64(m_RMD160_BLOCK_LENGTH) - (*TRMD160_CTX)(unsafe.Pointer(ctx)).Fcount/uint64(8)%uint64(m_RMD160_BLOCK_LENGTH)
  1600. if padlen < libc.Uint64FromInt32(libc.Int32FromInt32(1)+libc.Int32FromInt32(8)) {
  1601. padlen += uint64(m_RMD160_BLOCK_LENGTH)
  1602. }
  1603. XRMD160Update(tls, ctx, uintptr(unsafe.Pointer(&_PADDING2)), padlen-uint64(8)) /* padlen - 8 <= 64 */
  1604. XRMD160Update(tls, ctx, bp, uint64(8))
  1605. }
  1606. func XRMD160Final(tls *libc.TLS, digest uintptr, ctx uintptr) {
  1607. var i int32
  1608. _ = i
  1609. XRMD160Pad(tls, ctx)
  1610. if digest != libc.UintptrFromInt32(0) {
  1611. i = 0
  1612. for {
  1613. if !(i < int32(5)) {
  1614. break
  1615. }
  1616. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 3)) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)) >> int32(24))
  1617. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 2)) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)) >> int32(16))
  1618. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 1)) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)) >> int32(8))
  1619. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)))) = uint8(*(*Tuint32_t)(unsafe.Pointer(ctx + uintptr(i)*4)))
  1620. goto _1
  1621. _1:
  1622. ;
  1623. i++
  1624. }
  1625. libc.Xmemset(tls, ctx, 0, uint64(96))
  1626. }
  1627. }
  1628. func XRMD160Transform(tls *libc.TLS, state uintptr, block uintptr) {
  1629. bp := tls.Alloc(64)
  1630. defer tls.Free(64)
  1631. var a, aa, b, bb, c, cc, d, dd, e, ee, t Tuint32_t
  1632. var _ /* x at bp+0 */ [16]Tuint32_t
  1633. _, _, _, _, _, _, _, _, _, _, _ = a, aa, b, bb, c, cc, d, dd, e, ee, t
  1634. libc.Xmemcpy(tls, bp, block, uint64(m_RMD160_BLOCK_LENGTH))
  1635. a = *(*Tuint32_t)(unsafe.Pointer(state))
  1636. b = *(*Tuint32_t)(unsafe.Pointer(state + 1*4))
  1637. c = *(*Tuint32_t)(unsafe.Pointer(state + 2*4))
  1638. d = *(*Tuint32_t)(unsafe.Pointer(state + 3*4))
  1639. e = *(*Tuint32_t)(unsafe.Pointer(state + 4*4))
  1640. /* Round 1 */
  1641. 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
  1642. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1643. 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
  1644. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1645. 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
  1646. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1647. 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
  1648. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1649. 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
  1650. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1651. 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
  1652. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1653. 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
  1654. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1655. 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
  1656. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1657. 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
  1658. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1659. 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
  1660. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1661. 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
  1662. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1663. 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
  1664. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1665. 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
  1666. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1667. 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
  1668. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1669. 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
  1670. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1671. 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
  1672. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #15 */
  1673. /* Round 2 */
  1674. 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
  1675. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1676. 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
  1677. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1678. 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
  1679. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1680. 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
  1681. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1682. 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
  1683. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1684. 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
  1685. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1686. 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
  1687. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1688. 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
  1689. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1690. 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
  1691. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1692. 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
  1693. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1694. 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
  1695. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1696. 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
  1697. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1698. 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
  1699. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1700. 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
  1701. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1702. 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
  1703. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1704. 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
  1705. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #31 */
  1706. /* Round 3 */
  1707. 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
  1708. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1709. 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
  1710. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1711. 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
  1712. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1713. 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
  1714. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1715. 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
  1716. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1717. 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
  1718. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1719. 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
  1720. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1721. 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
  1722. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1723. 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
  1724. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1725. 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
  1726. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1727. 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
  1728. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1729. 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
  1730. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1731. 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
  1732. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1733. 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
  1734. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1735. 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
  1736. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1737. 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
  1738. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #47 */
  1739. /* Round 4 */
  1740. 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
  1741. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1742. 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
  1743. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1744. 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
  1745. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1746. 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
  1747. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1748. 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
  1749. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1750. 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
  1751. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1752. 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
  1753. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1754. 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
  1755. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1756. 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
  1757. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1758. 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
  1759. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1760. 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
  1761. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1762. 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
  1763. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1764. 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
  1765. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1766. 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
  1767. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1768. 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
  1769. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1770. 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
  1771. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #63 */
  1772. /* Round 5 */
  1773. 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
  1774. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1775. 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
  1776. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1777. 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
  1778. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1779. 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
  1780. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1781. 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
  1782. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1783. 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
  1784. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1785. 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
  1786. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1787. 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
  1788. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1789. 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
  1790. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1791. 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
  1792. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1793. 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
  1794. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1795. 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
  1796. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1797. 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
  1798. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1799. 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
  1800. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1801. 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
  1802. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1803. 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
  1804. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #79 */
  1805. aa = a
  1806. bb = b
  1807. cc = c
  1808. dd = d
  1809. ee = e
  1810. a = *(*Tuint32_t)(unsafe.Pointer(state))
  1811. b = *(*Tuint32_t)(unsafe.Pointer(state + 1*4))
  1812. c = *(*Tuint32_t)(unsafe.Pointer(state + 2*4))
  1813. d = *(*Tuint32_t)(unsafe.Pointer(state + 3*4))
  1814. e = *(*Tuint32_t)(unsafe.Pointer(state + 4*4))
  1815. /* Parallel round 1 */
  1816. 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
  1817. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1818. 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
  1819. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1820. 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
  1821. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1822. 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
  1823. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1824. 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
  1825. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1826. 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
  1827. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1828. 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
  1829. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1830. 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
  1831. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1832. 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
  1833. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1834. 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
  1835. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1836. 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
  1837. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1838. 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
  1839. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1840. 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
  1841. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1842. 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
  1843. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1844. 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
  1845. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1846. 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
  1847. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #15 */
  1848. /* Parallel round 2 */
  1849. 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
  1850. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1851. 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
  1852. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1853. 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
  1854. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1855. 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
  1856. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1857. 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
  1858. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1859. 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
  1860. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1861. 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
  1862. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1863. 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
  1864. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1865. 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
  1866. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1867. 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
  1868. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1869. 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
  1870. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1871. 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
  1872. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1873. 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
  1874. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1875. 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
  1876. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1877. 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
  1878. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1879. 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
  1880. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #31 */
  1881. /* Parallel round 3 */
  1882. 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
  1883. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1884. 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
  1885. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1886. 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
  1887. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1888. 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
  1889. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1890. 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
  1891. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1892. 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
  1893. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1894. 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
  1895. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1896. 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
  1897. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1898. 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
  1899. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1900. 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
  1901. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1902. 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
  1903. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1904. 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
  1905. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1906. 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
  1907. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1908. 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
  1909. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1910. 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
  1911. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1912. 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
  1913. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #47 */
  1914. /* Parallel round 4 */
  1915. 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
  1916. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1917. 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
  1918. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1919. 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
  1920. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1921. 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
  1922. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1923. 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
  1924. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1925. 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
  1926. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1927. 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
  1928. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1929. 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
  1930. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1931. 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
  1932. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1933. 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
  1934. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1935. 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
  1936. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1937. 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
  1938. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1939. 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
  1940. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1941. 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
  1942. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1943. 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
  1944. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1945. 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
  1946. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #63 */
  1947. /* Parallel round 5 */
  1948. 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
  1949. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1950. 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
  1951. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1952. 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
  1953. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1954. 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
  1955. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1956. 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
  1957. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1958. 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
  1959. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1960. 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
  1961. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1962. 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
  1963. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1964. 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
  1965. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1966. 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
  1967. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1968. 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
  1969. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1970. 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
  1971. c = c<<libc.Int32FromInt32(10) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1972. 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
  1973. b = b<<libc.Int32FromInt32(10) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1974. 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
  1975. a = a<<libc.Int32FromInt32(10) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1976. 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
  1977. e = e<<libc.Int32FromInt32(10) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10))
  1978. 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
  1979. d = d<<libc.Int32FromInt32(10) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(10)) /* #79 */
  1980. t = *(*Tuint32_t)(unsafe.Pointer(state + 1*4)) + cc + d
  1981. *(*Tuint32_t)(unsafe.Pointer(state + 1*4)) = *(*Tuint32_t)(unsafe.Pointer(state + 2*4)) + dd + e
  1982. *(*Tuint32_t)(unsafe.Pointer(state + 2*4)) = *(*Tuint32_t)(unsafe.Pointer(state + 3*4)) + ee + a
  1983. *(*Tuint32_t)(unsafe.Pointer(state + 3*4)) = *(*Tuint32_t)(unsafe.Pointer(state + 4*4)) + aa + b
  1984. *(*Tuint32_t)(unsafe.Pointer(state + 4*4)) = *(*Tuint32_t)(unsafe.Pointer(state)) + bb + c
  1985. *(*Tuint32_t)(unsafe.Pointer(state)) = t
  1986. }
  1987. const m_SHA1_BLOCK_LENGTH = 64
  1988. const m_SHA1_DIGEST_LENGTH = 20
  1989. type TSHA1_CTX = struct {
  1990. Fstate [5]Tuint32_t
  1991. Fcount Tuint64_t
  1992. Fbuffer [64]Tuint8_t
  1993. }
  1994. /*
  1995. * blk0() and blk() perform the initial expand.
  1996. * I got the idea of expanding during the round function from SSLeay
  1997. */
  1998. /*
  1999. * (R0+R1), R2, R3, R4 are the different operations (rounds) used in SHA1
  2000. */
  2001. type TCHAR64LONG16 = struct {
  2002. Fl [0][16]Tuint32_t
  2003. Fc [64]Tuint8_t
  2004. }
  2005. // C documentation
  2006. //
  2007. // /*
  2008. // * Hash a single 512-bit block. This is the core of the algorithm.
  2009. // */
  2010. func XSHA1Transform(tls *libc.TLS, state uintptr, buffer uintptr) {
  2011. bp := tls.Alloc(64)
  2012. defer tls.Free(64)
  2013. 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
  2014. var block uintptr
  2015. var _ /* workspace at bp+0 */ [64]Tuint8_t
  2016. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = 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
  2017. block = bp
  2018. libc.Xmemcpy(tls, block, buffer, uint64(m_SHA1_BLOCK_LENGTH))
  2019. /* Copy context->state[] to working vars */
  2020. a = *(*Tuint32_t)(unsafe.Pointer(state))
  2021. b = *(*Tuint32_t)(unsafe.Pointer(state + 1*4))
  2022. c = *(*Tuint32_t)(unsafe.Pointer(state + 2*4))
  2023. d = *(*Tuint32_t)(unsafe.Pointer(state + 3*4))
  2024. e = *(*Tuint32_t)(unsafe.Pointer(state + 4*4))
  2025. /* 4 rounds of 20 operations each. Loop unrolled. */
  2026. 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)
  2027. *(*Tuint32_t)(unsafe.Pointer(block)) = v1
  2028. e += b&(c^d) ^ d + v1 + uint32(0x5A827999) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2029. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2030. 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)
  2031. *(*Tuint32_t)(unsafe.Pointer(block + 1*4)) = v2
  2032. d += a&(b^c) ^ c + v2 + uint32(0x5A827999) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2033. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2034. 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)
  2035. *(*Tuint32_t)(unsafe.Pointer(block + 2*4)) = v3
  2036. c += e&(a^b) ^ b + v3 + uint32(0x5A827999) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2037. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2038. 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)
  2039. *(*Tuint32_t)(unsafe.Pointer(block + 3*4)) = v4
  2040. b += d&(e^a) ^ a + v4 + uint32(0x5A827999) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2041. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2042. 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)
  2043. *(*Tuint32_t)(unsafe.Pointer(block + 4*4)) = v5
  2044. a += c&(d^e) ^ e + v5 + uint32(0x5A827999) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2045. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2046. 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)
  2047. *(*Tuint32_t)(unsafe.Pointer(block + 5*4)) = v6
  2048. e += b&(c^d) ^ d + v6 + uint32(0x5A827999) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2049. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2050. 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)
  2051. *(*Tuint32_t)(unsafe.Pointer(block + 6*4)) = v7
  2052. d += a&(b^c) ^ c + v7 + uint32(0x5A827999) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2053. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2054. 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)
  2055. *(*Tuint32_t)(unsafe.Pointer(block + 7*4)) = v8
  2056. c += e&(a^b) ^ b + v8 + uint32(0x5A827999) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2057. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2058. 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)
  2059. *(*Tuint32_t)(unsafe.Pointer(block + 8*4)) = v9
  2060. b += d&(e^a) ^ a + v9 + uint32(0x5A827999) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2061. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2062. 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)
  2063. *(*Tuint32_t)(unsafe.Pointer(block + 9*4)) = v10
  2064. a += c&(d^e) ^ e + v10 + uint32(0x5A827999) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2065. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2066. 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)
  2067. *(*Tuint32_t)(unsafe.Pointer(block + 10*4)) = v11
  2068. e += b&(c^d) ^ d + v11 + uint32(0x5A827999) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2069. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2070. 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)
  2071. *(*Tuint32_t)(unsafe.Pointer(block + 11*4)) = v12
  2072. d += a&(b^c) ^ c + v12 + uint32(0x5A827999) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2073. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2074. 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)
  2075. *(*Tuint32_t)(unsafe.Pointer(block + 12*4)) = v13
  2076. c += e&(a^b) ^ b + v13 + uint32(0x5A827999) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2077. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2078. 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)
  2079. *(*Tuint32_t)(unsafe.Pointer(block + 13*4)) = v14
  2080. b += d&(e^a) ^ a + v14 + uint32(0x5A827999) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2081. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2082. 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)
  2083. *(*Tuint32_t)(unsafe.Pointer(block + 14*4)) = v15
  2084. a += c&(d^e) ^ e + v15 + uint32(0x5A827999) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2085. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2086. 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)
  2087. *(*Tuint32_t)(unsafe.Pointer(block + 15*4)) = v16
  2088. e += b&(c^d) ^ d + v16 + uint32(0x5A827999) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2089. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2090. 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))
  2091. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(16)&libc.Int32FromInt32(15))*4)) = v17
  2092. d += a&(b^c) ^ c + v17 + uint32(0x5A827999) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2093. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2094. 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))
  2095. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(17)&libc.Int32FromInt32(15))*4)) = v18
  2096. c += e&(a^b) ^ b + v18 + uint32(0x5A827999) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2097. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2098. 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))
  2099. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(18)&libc.Int32FromInt32(15))*4)) = v19
  2100. b += d&(e^a) ^ a + v19 + uint32(0x5A827999) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2101. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2102. 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))
  2103. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(19)&libc.Int32FromInt32(15))*4)) = v20
  2104. a += c&(d^e) ^ e + v20 + uint32(0x5A827999) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2105. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2106. 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))
  2107. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(20)&libc.Int32FromInt32(15))*4)) = v21
  2108. e += b ^ c ^ d + v21 + uint32(0x6ED9EBA1) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2109. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2110. 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))
  2111. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(21)&libc.Int32FromInt32(15))*4)) = v22
  2112. d += a ^ b ^ c + v22 + uint32(0x6ED9EBA1) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2113. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2114. 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))
  2115. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(22)&libc.Int32FromInt32(15))*4)) = v23
  2116. c += e ^ a ^ b + v23 + uint32(0x6ED9EBA1) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2117. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2118. 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))
  2119. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(23)&libc.Int32FromInt32(15))*4)) = v24
  2120. b += d ^ e ^ a + v24 + uint32(0x6ED9EBA1) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2121. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2122. 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))
  2123. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(24)&libc.Int32FromInt32(15))*4)) = v25
  2124. a += c ^ d ^ e + v25 + uint32(0x6ED9EBA1) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2125. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2126. 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))
  2127. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(25)&libc.Int32FromInt32(15))*4)) = v26
  2128. e += b ^ c ^ d + v26 + uint32(0x6ED9EBA1) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2129. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2130. 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))
  2131. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(26)&libc.Int32FromInt32(15))*4)) = v27
  2132. d += a ^ b ^ c + v27 + uint32(0x6ED9EBA1) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2133. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2134. 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))
  2135. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(27)&libc.Int32FromInt32(15))*4)) = v28
  2136. c += e ^ a ^ b + v28 + uint32(0x6ED9EBA1) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2137. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2138. 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))
  2139. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(28)&libc.Int32FromInt32(15))*4)) = v29
  2140. b += d ^ e ^ a + v29 + uint32(0x6ED9EBA1) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2141. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2142. 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))
  2143. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(29)&libc.Int32FromInt32(15))*4)) = v30
  2144. a += c ^ d ^ e + v30 + uint32(0x6ED9EBA1) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2145. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2146. 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))
  2147. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(30)&libc.Int32FromInt32(15))*4)) = v31
  2148. e += b ^ c ^ d + v31 + uint32(0x6ED9EBA1) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2149. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2150. 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))
  2151. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(31)&libc.Int32FromInt32(15))*4)) = v32
  2152. d += a ^ b ^ c + v32 + uint32(0x6ED9EBA1) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2153. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2154. 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))
  2155. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(32)&libc.Int32FromInt32(15))*4)) = v33
  2156. c += e ^ a ^ b + v33 + uint32(0x6ED9EBA1) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2157. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2158. 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))
  2159. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(33)&libc.Int32FromInt32(15))*4)) = v34
  2160. b += d ^ e ^ a + v34 + uint32(0x6ED9EBA1) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2161. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2162. 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))
  2163. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(34)&libc.Int32FromInt32(15))*4)) = v35
  2164. a += c ^ d ^ e + v35 + uint32(0x6ED9EBA1) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2165. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2166. 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))
  2167. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(35)&libc.Int32FromInt32(15))*4)) = v36
  2168. e += b ^ c ^ d + v36 + uint32(0x6ED9EBA1) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2169. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2170. 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))
  2171. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(36)&libc.Int32FromInt32(15))*4)) = v37
  2172. d += a ^ b ^ c + v37 + uint32(0x6ED9EBA1) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2173. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2174. 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))
  2175. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(37)&libc.Int32FromInt32(15))*4)) = v38
  2176. c += e ^ a ^ b + v38 + uint32(0x6ED9EBA1) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2177. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2178. 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))
  2179. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(38)&libc.Int32FromInt32(15))*4)) = v39
  2180. b += d ^ e ^ a + v39 + uint32(0x6ED9EBA1) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2181. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2182. 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))
  2183. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(39)&libc.Int32FromInt32(15))*4)) = v40
  2184. a += c ^ d ^ e + v40 + uint32(0x6ED9EBA1) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2185. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2186. 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))
  2187. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(40)&libc.Int32FromInt32(15))*4)) = v41
  2188. e += (b|c)&d | b&c + v41 + uint32(0x8F1BBCDC) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2189. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2190. 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))
  2191. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(41)&libc.Int32FromInt32(15))*4)) = v42
  2192. d += (a|b)&c | a&b + v42 + uint32(0x8F1BBCDC) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2193. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2194. 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))
  2195. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(42)&libc.Int32FromInt32(15))*4)) = v43
  2196. c += (e|a)&b | e&a + v43 + uint32(0x8F1BBCDC) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2197. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2198. 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))
  2199. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(43)&libc.Int32FromInt32(15))*4)) = v44
  2200. b += (d|e)&a | d&e + v44 + uint32(0x8F1BBCDC) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2201. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2202. 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))
  2203. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(44)&libc.Int32FromInt32(15))*4)) = v45
  2204. a += (c|d)&e | c&d + v45 + uint32(0x8F1BBCDC) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2205. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2206. 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))
  2207. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(45)&libc.Int32FromInt32(15))*4)) = v46
  2208. e += (b|c)&d | b&c + v46 + uint32(0x8F1BBCDC) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2209. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2210. 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))
  2211. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(46)&libc.Int32FromInt32(15))*4)) = v47
  2212. d += (a|b)&c | a&b + v47 + uint32(0x8F1BBCDC) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2213. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2214. 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))
  2215. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(47)&libc.Int32FromInt32(15))*4)) = v48
  2216. c += (e|a)&b | e&a + v48 + uint32(0x8F1BBCDC) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2217. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2218. 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))
  2219. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(48)&libc.Int32FromInt32(15))*4)) = v49
  2220. b += (d|e)&a | d&e + v49 + uint32(0x8F1BBCDC) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2221. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2222. 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))
  2223. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(49)&libc.Int32FromInt32(15))*4)) = v50
  2224. a += (c|d)&e | c&d + v50 + uint32(0x8F1BBCDC) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2225. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2226. 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))
  2227. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(50)&libc.Int32FromInt32(15))*4)) = v51
  2228. e += (b|c)&d | b&c + v51 + uint32(0x8F1BBCDC) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2229. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2230. 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))
  2231. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(51)&libc.Int32FromInt32(15))*4)) = v52
  2232. d += (a|b)&c | a&b + v52 + uint32(0x8F1BBCDC) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2233. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2234. 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))
  2235. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(52)&libc.Int32FromInt32(15))*4)) = v53
  2236. c += (e|a)&b | e&a + v53 + uint32(0x8F1BBCDC) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2237. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2238. 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))
  2239. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(53)&libc.Int32FromInt32(15))*4)) = v54
  2240. b += (d|e)&a | d&e + v54 + uint32(0x8F1BBCDC) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2241. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2242. 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))
  2243. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(54)&libc.Int32FromInt32(15))*4)) = v55
  2244. a += (c|d)&e | c&d + v55 + uint32(0x8F1BBCDC) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2245. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2246. 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))
  2247. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(55)&libc.Int32FromInt32(15))*4)) = v56
  2248. e += (b|c)&d | b&c + v56 + uint32(0x8F1BBCDC) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2249. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2250. 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))
  2251. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(56)&libc.Int32FromInt32(15))*4)) = v57
  2252. d += (a|b)&c | a&b + v57 + uint32(0x8F1BBCDC) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2253. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2254. 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))
  2255. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(57)&libc.Int32FromInt32(15))*4)) = v58
  2256. c += (e|a)&b | e&a + v58 + uint32(0x8F1BBCDC) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2257. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2258. 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))
  2259. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(58)&libc.Int32FromInt32(15))*4)) = v59
  2260. b += (d|e)&a | d&e + v59 + uint32(0x8F1BBCDC) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2261. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2262. 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))
  2263. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(59)&libc.Int32FromInt32(15))*4)) = v60
  2264. a += (c|d)&e | c&d + v60 + uint32(0x8F1BBCDC) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2265. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2266. 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))
  2267. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(60)&libc.Int32FromInt32(15))*4)) = v61
  2268. e += b ^ c ^ d + v61 + uint32(0xCA62C1D6) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2269. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2270. 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))
  2271. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(61)&libc.Int32FromInt32(15))*4)) = v62
  2272. d += a ^ b ^ c + v62 + uint32(0xCA62C1D6) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2273. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2274. 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))
  2275. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(62)&libc.Int32FromInt32(15))*4)) = v63
  2276. c += e ^ a ^ b + v63 + uint32(0xCA62C1D6) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2277. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2278. 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))
  2279. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(63)&libc.Int32FromInt32(15))*4)) = v64
  2280. b += d ^ e ^ a + v64 + uint32(0xCA62C1D6) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2281. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2282. 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))
  2283. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(64)&libc.Int32FromInt32(15))*4)) = v65
  2284. a += c ^ d ^ e + v65 + uint32(0xCA62C1D6) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2285. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2286. 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))
  2287. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(65)&libc.Int32FromInt32(15))*4)) = v66
  2288. e += b ^ c ^ d + v66 + uint32(0xCA62C1D6) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2289. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2290. 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))
  2291. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(66)&libc.Int32FromInt32(15))*4)) = v67
  2292. d += a ^ b ^ c + v67 + uint32(0xCA62C1D6) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2293. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2294. 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))
  2295. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(67)&libc.Int32FromInt32(15))*4)) = v68
  2296. c += e ^ a ^ b + v68 + uint32(0xCA62C1D6) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2297. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2298. 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))
  2299. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(68)&libc.Int32FromInt32(15))*4)) = v69
  2300. b += d ^ e ^ a + v69 + uint32(0xCA62C1D6) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2301. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2302. 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))
  2303. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(69)&libc.Int32FromInt32(15))*4)) = v70
  2304. a += c ^ d ^ e + v70 + uint32(0xCA62C1D6) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2305. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2306. 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))
  2307. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(70)&libc.Int32FromInt32(15))*4)) = v71
  2308. e += b ^ c ^ d + v71 + uint32(0xCA62C1D6) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2309. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2310. 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))
  2311. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(71)&libc.Int32FromInt32(15))*4)) = v72
  2312. d += a ^ b ^ c + v72 + uint32(0xCA62C1D6) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2313. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2314. 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))
  2315. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(72)&libc.Int32FromInt32(15))*4)) = v73
  2316. c += e ^ a ^ b + v73 + uint32(0xCA62C1D6) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2317. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2318. 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))
  2319. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(73)&libc.Int32FromInt32(15))*4)) = v74
  2320. b += d ^ e ^ a + v74 + uint32(0xCA62C1D6) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2321. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2322. 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))
  2323. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(74)&libc.Int32FromInt32(15))*4)) = v75
  2324. a += c ^ d ^ e + v75 + uint32(0xCA62C1D6) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2325. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2326. 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))
  2327. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(75)&libc.Int32FromInt32(15))*4)) = v76
  2328. e += b ^ c ^ d + v76 + uint32(0xCA62C1D6) + (a<<libc.Int32FromInt32(5) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2329. b = b<<libc.Int32FromInt32(30) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2330. 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))
  2331. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(76)&libc.Int32FromInt32(15))*4)) = v77
  2332. d += a ^ b ^ c + v77 + uint32(0xCA62C1D6) + (e<<libc.Int32FromInt32(5) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2333. a = a<<libc.Int32FromInt32(30) | a>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2334. 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))
  2335. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(77)&libc.Int32FromInt32(15))*4)) = v78
  2336. c += e ^ a ^ b + v78 + uint32(0xCA62C1D6) + (d<<libc.Int32FromInt32(5) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2337. e = e<<libc.Int32FromInt32(30) | e>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2338. 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))
  2339. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(78)&libc.Int32FromInt32(15))*4)) = v79
  2340. b += d ^ e ^ a + v79 + uint32(0xCA62C1D6) + (c<<libc.Int32FromInt32(5) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2341. d = d<<libc.Int32FromInt32(30) | d>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2342. 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))
  2343. *(*Tuint32_t)(unsafe.Pointer(block + uintptr(libc.Int32FromInt32(79)&libc.Int32FromInt32(15))*4)) = v80
  2344. a += c ^ d ^ e + v80 + uint32(0xCA62C1D6) + (b<<libc.Int32FromInt32(5) | b>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(5)))
  2345. c = c<<libc.Int32FromInt32(30) | c>>(libc.Int32FromInt32(32)-libc.Int32FromInt32(30))
  2346. /* Add the working vars back into context.state[] */
  2347. *(*Tuint32_t)(unsafe.Pointer(state)) += a
  2348. *(*Tuint32_t)(unsafe.Pointer(state + 1*4)) += b
  2349. *(*Tuint32_t)(unsafe.Pointer(state + 2*4)) += c
  2350. *(*Tuint32_t)(unsafe.Pointer(state + 3*4)) += d
  2351. *(*Tuint32_t)(unsafe.Pointer(state + 4*4)) += e
  2352. /* Wipe variables */
  2353. v84 = libc.Uint32FromInt32(0)
  2354. e = v84
  2355. v83 = v84
  2356. d = v83
  2357. v82 = v83
  2358. c = v82
  2359. v81 = v82
  2360. b = v81
  2361. a = v81
  2362. }
  2363. // C documentation
  2364. //
  2365. // /*
  2366. // * SHA1Init - Initialize new context
  2367. // */
  2368. func XSHA1Init(tls *libc.TLS, context uintptr) {
  2369. /* SHA1 initialization constants */
  2370. (*TSHA1_CTX)(unsafe.Pointer(context)).Fcount = uint64(0)
  2371. *(*Tuint32_t)(unsafe.Pointer(context)) = uint32(0x67452301)
  2372. *(*Tuint32_t)(unsafe.Pointer(context + 1*4)) = uint32(0xEFCDAB89)
  2373. *(*Tuint32_t)(unsafe.Pointer(context + 2*4)) = uint32(0x98BADCFE)
  2374. *(*Tuint32_t)(unsafe.Pointer(context + 3*4)) = uint32(0x10325476)
  2375. *(*Tuint32_t)(unsafe.Pointer(context + 4*4)) = uint32(0xC3D2E1F0)
  2376. }
  2377. // C documentation
  2378. //
  2379. // /*
  2380. // * Run your data through this.
  2381. // */
  2382. func XSHA1Update(tls *libc.TLS, context uintptr, data uintptr, len1 Tsize_t) {
  2383. var i, j, v1 Tsize_t
  2384. _, _, _ = i, j, v1
  2385. j = (*TSHA1_CTX)(unsafe.Pointer(context)).Fcount >> libc.Int32FromInt32(3) & libc.Uint64FromInt32(63)
  2386. *(*Tuint64_t)(unsafe.Pointer(context + 24)) += len1 << libc.Int32FromInt32(3)
  2387. if j+len1 > uint64(63) {
  2388. v1 = libc.Uint64FromInt32(64) - j
  2389. i = v1
  2390. libc.Xmemcpy(tls, context+32+uintptr(j), data, v1)
  2391. XSHA1Transform(tls, context, context+32)
  2392. for {
  2393. if !(i+uint64(63) < len1) {
  2394. break
  2395. }
  2396. XSHA1Transform(tls, context, data+uintptr(i))
  2397. goto _2
  2398. _2:
  2399. ;
  2400. i += uint64(64)
  2401. }
  2402. j = uint64(0)
  2403. } else {
  2404. i = uint64(0)
  2405. }
  2406. libc.Xmemcpy(tls, context+32+uintptr(j), data+uintptr(i), len1-i)
  2407. }
  2408. // C documentation
  2409. //
  2410. // /*
  2411. // * Add padding and return the message digest.
  2412. // */
  2413. func XSHA1Pad(tls *libc.TLS, context uintptr) {
  2414. bp := tls.Alloc(16)
  2415. defer tls.Free(16)
  2416. var i uint32
  2417. var _ /* finalcount at bp+0 */ [8]Tuint8_t
  2418. _ = i
  2419. i = uint32(0)
  2420. for {
  2421. if !(i < uint32(8)) {
  2422. break
  2423. }
  2424. (*(*[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 */
  2425. goto _1
  2426. _1:
  2427. ;
  2428. i++
  2429. }
  2430. XSHA1Update(tls, context, __ccgo_ts+153, uint64(1))
  2431. for (*TSHA1_CTX)(unsafe.Pointer(context)).Fcount&uint64(504) != uint64(448) {
  2432. XSHA1Update(tls, context, __ccgo_ts+155, uint64(1))
  2433. }
  2434. XSHA1Update(tls, context, bp, uint64(8)) /* Should cause a SHA1Transform() */
  2435. }
  2436. func XSHA1Final(tls *libc.TLS, digest uintptr, context uintptr) {
  2437. var i uint32
  2438. _ = i
  2439. XSHA1Pad(tls, context)
  2440. if digest != 0 {
  2441. i = uint32(0)
  2442. for {
  2443. if !(i < uint32(m_SHA1_DIGEST_LENGTH)) {
  2444. break
  2445. }
  2446. *(*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))
  2447. goto _1
  2448. _1:
  2449. ;
  2450. i++
  2451. }
  2452. libc.Xmemset(tls, context, 0, uint64(96))
  2453. }
  2454. }
  2455. const m_SHA256_BLOCK_LENGTH = 64
  2456. const m_SHA256_DIGEST_LENGTH = 32
  2457. const m_SHA384_BLOCK_LENGTH = 128
  2458. const m_SHA384_DIGEST_LENGTH = 48
  2459. const m_SHA512_BLOCK_LENGTH = 128
  2460. const m_SHA512_DIGEST_LENGTH = 64
  2461. type TSHA2_CTX = struct {
  2462. Fstate struct {
  2463. Fst64 [0][8]Tuint64_t
  2464. Fst32 [8]Tuint32_t
  2465. F__ccgo_pad2 [32]byte
  2466. }
  2467. Fbitcount [2]Tuint64_t
  2468. Fbuffer [128]Tuint8_t
  2469. }
  2470. type T_SHA2_CTX = TSHA2_CTX
  2471. /*
  2472. * UNROLLED TRANSFORM LOOP NOTE:
  2473. * You can define SHA2_UNROLL_TRANSFORM to use the unrolled transform
  2474. * loop version for the hash transform rounds (defined using macros
  2475. * later in this file). Either define on the command line, for example:
  2476. *
  2477. * cc -DSHA2_UNROLL_TRANSFORM -o sha2 sha2.c sha2prog.c
  2478. *
  2479. * or define below:
  2480. *
  2481. * #define SHA2_UNROLL_TRANSFORM
  2482. *
  2483. */
  2484. /*** SHA-256/384/512 Various Length Definitions ***********************/
  2485. /* NOTE: Most of these are in sha2.h */
  2486. /*** ENDIAN SPECIFIC COPY MACROS **************************************/
  2487. /*
  2488. * Macro for incrementally adding the unsigned 64-bit integer n to the
  2489. * unsigned 128-bit integer (represented using a two-element array of
  2490. * 64-bit words):
  2491. */
  2492. /*** THE SIX LOGICAL FUNCTIONS ****************************************/
  2493. /*
  2494. * Bit shifting and rotation (used by the six SHA-XYZ logical functions:
  2495. *
  2496. * NOTE: The naming of R and S appears backwards here (R is a SHIFT and
  2497. * S is a ROTATION) because the SHA-256/384/512 description document
  2498. * (see http://csrc.nist.gov/cryptval/shs/sha256-384-512.pdf) uses this
  2499. * same "backwards" definition.
  2500. */
  2501. /* Shift-right (used in SHA-256, SHA-384, and SHA-512): */
  2502. /* 32-bit Rotate-right (used in SHA-256): */
  2503. /* 64-bit Rotate-right (used in SHA-384 and SHA-512): */
  2504. /* Two of six logical functions used in SHA-256, SHA-384, and SHA-512: */
  2505. /* Four of six logical functions used in SHA-256: */
  2506. /* Four of six logical functions used in SHA-384 and SHA-512: */
  2507. // C documentation
  2508. //
  2509. // /*** SHA-XYZ INITIAL HASH VALUES AND CONSTANTS ************************/
  2510. // /* Hash constant words K for SHA-256: */
  2511. var _K256 = [64]Tuint32_t{
  2512. 0: uint32(0x428a2f98),
  2513. 1: uint32(0x71374491),
  2514. 2: uint32(0xb5c0fbcf),
  2515. 3: uint32(0xe9b5dba5),
  2516. 4: uint32(0x3956c25b),
  2517. 5: uint32(0x59f111f1),
  2518. 6: uint32(0x923f82a4),
  2519. 7: uint32(0xab1c5ed5),
  2520. 8: uint32(0xd807aa98),
  2521. 9: uint32(0x12835b01),
  2522. 10: uint32(0x243185be),
  2523. 11: uint32(0x550c7dc3),
  2524. 12: uint32(0x72be5d74),
  2525. 13: uint32(0x80deb1fe),
  2526. 14: uint32(0x9bdc06a7),
  2527. 15: uint32(0xc19bf174),
  2528. 16: uint32(0xe49b69c1),
  2529. 17: uint32(0xefbe4786),
  2530. 18: uint32(0x0fc19dc6),
  2531. 19: uint32(0x240ca1cc),
  2532. 20: uint32(0x2de92c6f),
  2533. 21: uint32(0x4a7484aa),
  2534. 22: uint32(0x5cb0a9dc),
  2535. 23: uint32(0x76f988da),
  2536. 24: uint32(0x983e5152),
  2537. 25: uint32(0xa831c66d),
  2538. 26: uint32(0xb00327c8),
  2539. 27: uint32(0xbf597fc7),
  2540. 28: uint32(0xc6e00bf3),
  2541. 29: uint32(0xd5a79147),
  2542. 30: uint32(0x06ca6351),
  2543. 31: uint32(0x14292967),
  2544. 32: uint32(0x27b70a85),
  2545. 33: uint32(0x2e1b2138),
  2546. 34: uint32(0x4d2c6dfc),
  2547. 35: uint32(0x53380d13),
  2548. 36: uint32(0x650a7354),
  2549. 37: uint32(0x766a0abb),
  2550. 38: uint32(0x81c2c92e),
  2551. 39: uint32(0x92722c85),
  2552. 40: uint32(0xa2bfe8a1),
  2553. 41: uint32(0xa81a664b),
  2554. 42: uint32(0xc24b8b70),
  2555. 43: uint32(0xc76c51a3),
  2556. 44: uint32(0xd192e819),
  2557. 45: uint32(0xd6990624),
  2558. 46: uint32(0xf40e3585),
  2559. 47: uint32(0x106aa070),
  2560. 48: uint32(0x19a4c116),
  2561. 49: uint32(0x1e376c08),
  2562. 50: uint32(0x2748774c),
  2563. 51: uint32(0x34b0bcb5),
  2564. 52: uint32(0x391c0cb3),
  2565. 53: uint32(0x4ed8aa4a),
  2566. 54: uint32(0x5b9cca4f),
  2567. 55: uint32(0x682e6ff3),
  2568. 56: uint32(0x748f82ee),
  2569. 57: uint32(0x78a5636f),
  2570. 58: uint32(0x84c87814),
  2571. 59: uint32(0x8cc70208),
  2572. 60: uint32(0x90befffa),
  2573. 61: uint32(0xa4506ceb),
  2574. 62: uint32(0xbef9a3f7),
  2575. 63: uint32(0xc67178f2),
  2576. }
  2577. // C documentation
  2578. //
  2579. // /* Initial hash value H for SHA-256: */
  2580. var _sha256_initial_hash_value = [8]Tuint32_t{
  2581. 0: uint32(0x6a09e667),
  2582. 1: uint32(0xbb67ae85),
  2583. 2: uint32(0x3c6ef372),
  2584. 3: uint32(0xa54ff53a),
  2585. 4: uint32(0x510e527f),
  2586. 5: uint32(0x9b05688c),
  2587. 6: uint32(0x1f83d9ab),
  2588. 7: uint32(0x5be0cd19),
  2589. }
  2590. // C documentation
  2591. //
  2592. // /* Hash constant words K for SHA-384 and SHA-512: */
  2593. var _K512 = [80]Tuint64_t{
  2594. 0: uint64(0x428a2f98d728ae22),
  2595. 1: uint64(0x7137449123ef65cd),
  2596. 2: uint64(0xb5c0fbcfec4d3b2f),
  2597. 3: uint64(0xe9b5dba58189dbbc),
  2598. 4: uint64(0x3956c25bf348b538),
  2599. 5: uint64(0x59f111f1b605d019),
  2600. 6: uint64(0x923f82a4af194f9b),
  2601. 7: uint64(0xab1c5ed5da6d8118),
  2602. 8: uint64(0xd807aa98a3030242),
  2603. 9: uint64(0x12835b0145706fbe),
  2604. 10: uint64(0x243185be4ee4b28c),
  2605. 11: uint64(0x550c7dc3d5ffb4e2),
  2606. 12: uint64(0x72be5d74f27b896f),
  2607. 13: uint64(0x80deb1fe3b1696b1),
  2608. 14: uint64(0x9bdc06a725c71235),
  2609. 15: uint64(0xc19bf174cf692694),
  2610. 16: uint64(0xe49b69c19ef14ad2),
  2611. 17: uint64(0xefbe4786384f25e3),
  2612. 18: uint64(0x0fc19dc68b8cd5b5),
  2613. 19: uint64(0x240ca1cc77ac9c65),
  2614. 20: uint64(0x2de92c6f592b0275),
  2615. 21: uint64(0x4a7484aa6ea6e483),
  2616. 22: uint64(0x5cb0a9dcbd41fbd4),
  2617. 23: uint64(0x76f988da831153b5),
  2618. 24: uint64(0x983e5152ee66dfab),
  2619. 25: uint64(0xa831c66d2db43210),
  2620. 26: uint64(0xb00327c898fb213f),
  2621. 27: uint64(0xbf597fc7beef0ee4),
  2622. 28: uint64(0xc6e00bf33da88fc2),
  2623. 29: uint64(0xd5a79147930aa725),
  2624. 30: uint64(0x06ca6351e003826f),
  2625. 31: uint64(0x142929670a0e6e70),
  2626. 32: uint64(0x27b70a8546d22ffc),
  2627. 33: uint64(0x2e1b21385c26c926),
  2628. 34: uint64(0x4d2c6dfc5ac42aed),
  2629. 35: uint64(0x53380d139d95b3df),
  2630. 36: uint64(0x650a73548baf63de),
  2631. 37: uint64(0x766a0abb3c77b2a8),
  2632. 38: uint64(0x81c2c92e47edaee6),
  2633. 39: uint64(0x92722c851482353b),
  2634. 40: uint64(0xa2bfe8a14cf10364),
  2635. 41: uint64(0xa81a664bbc423001),
  2636. 42: uint64(0xc24b8b70d0f89791),
  2637. 43: uint64(0xc76c51a30654be30),
  2638. 44: uint64(0xd192e819d6ef5218),
  2639. 45: uint64(0xd69906245565a910),
  2640. 46: uint64(0xf40e35855771202a),
  2641. 47: uint64(0x106aa07032bbd1b8),
  2642. 48: uint64(0x19a4c116b8d2d0c8),
  2643. 49: uint64(0x1e376c085141ab53),
  2644. 50: uint64(0x2748774cdf8eeb99),
  2645. 51: uint64(0x34b0bcb5e19b48a8),
  2646. 52: uint64(0x391c0cb3c5c95a63),
  2647. 53: uint64(0x4ed8aa4ae3418acb),
  2648. 54: uint64(0x5b9cca4f7763e373),
  2649. 55: uint64(0x682e6ff3d6b2b8a3),
  2650. 56: uint64(0x748f82ee5defb2fc),
  2651. 57: uint64(0x78a5636f43172f60),
  2652. 58: uint64(0x84c87814a1f0ab72),
  2653. 59: uint64(0x8cc702081a6439ec),
  2654. 60: uint64(0x90befffa23631e28),
  2655. 61: uint64(0xa4506cebde82bde9),
  2656. 62: uint64(0xbef9a3f7b2c67915),
  2657. 63: uint64(0xc67178f2e372532b),
  2658. 64: uint64(0xca273eceea26619c),
  2659. 65: uint64(0xd186b8c721c0c207),
  2660. 66: uint64(0xeada7dd6cde0eb1e),
  2661. 67: uint64(0xf57d4f7fee6ed178),
  2662. 68: uint64(0x06f067aa72176fba),
  2663. 69: uint64(0x0a637dc5a2c898a6),
  2664. 70: uint64(0x113f9804bef90dae),
  2665. 71: uint64(0x1b710b35131c471b),
  2666. 72: uint64(0x28db77f523047d84),
  2667. 73: uint64(0x32caab7b40c72493),
  2668. 74: uint64(0x3c9ebe0a15c9bebc),
  2669. 75: uint64(0x431d67c49c100d4c),
  2670. 76: uint64(0x4cc5d4becb3e42b6),
  2671. 77: uint64(0x597f299cfc657e2a),
  2672. 78: uint64(0x5fcb6fab3ad6faec),
  2673. 79: uint64(0x6c44198c4a475817),
  2674. }
  2675. // C documentation
  2676. //
  2677. // /* Initial hash value H for SHA-384 */
  2678. var _sha384_initial_hash_value = [8]Tuint64_t{
  2679. 0: uint64(0xcbbb9d5dc1059ed8),
  2680. 1: uint64(0x629a292a367cd507),
  2681. 2: uint64(0x9159015a3070dd17),
  2682. 3: uint64(0x152fecd8f70e5939),
  2683. 4: uint64(0x67332667ffc00b31),
  2684. 5: uint64(0x8eb44a8768581511),
  2685. 6: uint64(0xdb0c2e0d64f98fa7),
  2686. 7: uint64(0x47b5481dbefa4fa4),
  2687. }
  2688. // C documentation
  2689. //
  2690. // /* Initial hash value H for SHA-512 */
  2691. var _sha512_initial_hash_value = [8]Tuint64_t{
  2692. 0: uint64(0x6a09e667f3bcc908),
  2693. 1: uint64(0xbb67ae8584caa73b),
  2694. 2: uint64(0x3c6ef372fe94f82b),
  2695. 3: uint64(0xa54ff53a5f1d36f1),
  2696. 4: uint64(0x510e527fade682d1),
  2697. 5: uint64(0x9b05688c2b3e6c1f),
  2698. 6: uint64(0x1f83d9abfb41bd6b),
  2699. 7: uint64(0x5be0cd19137e2179),
  2700. }
  2701. // C documentation
  2702. //
  2703. // /*** SHA-256: *********************************************************/
  2704. func XSHA256Init(tls *libc.TLS, context uintptr) {
  2705. if context == libc.UintptrFromInt32(0) {
  2706. return
  2707. }
  2708. libc.Xmemcpy(tls, context, uintptr(unsafe.Pointer(&_sha256_initial_hash_value)), uint64(32))
  2709. libc.Xmemset(tls, context+80, 0, uint64(128))
  2710. *(*Tuint64_t)(unsafe.Pointer(context + 64)) = uint64(0)
  2711. }
  2712. func XSHA256Transform(tls *libc.TLS, state uintptr, data uintptr) {
  2713. bp := tls.Alloc(64)
  2714. defer tls.Free(64)
  2715. var T1, T2, a, b, c, d, e, f, g, h, s0, s1, v10, v2, v3, v4, v5, v6, v7, v8, v9 Tuint32_t
  2716. var j int32
  2717. var p1 uintptr
  2718. var _ /* W256 at bp+0 */ [16]Tuint32_t
  2719. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = T1, T2, a, b, c, d, e, f, g, h, j, s0, s1, v10, v2, v3, v4, v5, v6, v7, v8, v9, p1
  2720. /* Initialize registers with the prev. intermediate value */
  2721. a = *(*Tuint32_t)(unsafe.Pointer(state))
  2722. b = *(*Tuint32_t)(unsafe.Pointer(state + 1*4))
  2723. c = *(*Tuint32_t)(unsafe.Pointer(state + 2*4))
  2724. d = *(*Tuint32_t)(unsafe.Pointer(state + 3*4))
  2725. e = *(*Tuint32_t)(unsafe.Pointer(state + 4*4))
  2726. f = *(*Tuint32_t)(unsafe.Pointer(state + 5*4))
  2727. g = *(*Tuint32_t)(unsafe.Pointer(state + 6*4))
  2728. h = *(*Tuint32_t)(unsafe.Pointer(state + 7*4))
  2729. j = 0
  2730. for cond := true; cond; cond = j < int32(16) {
  2731. (*(*[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)
  2732. data += uintptr(4)
  2733. /* Apply the SHA-256 compression function to update a..h */
  2734. 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]
  2735. 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)
  2736. h = g
  2737. g = f
  2738. f = e
  2739. e = d + T1
  2740. d = c
  2741. c = b
  2742. b = a
  2743. a = T1 + T2
  2744. j++
  2745. }
  2746. for cond := true; cond; cond = j < int32(64) {
  2747. /* Part of the message block expansion: */
  2748. s0 = (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[(j+int32(1))&int32(0x0f)]
  2749. 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)
  2750. s1 = (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[(j+int32(14))&int32(0x0f)]
  2751. 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)
  2752. /* Apply the SHA-256 compression function to update a..h */
  2753. p1 = bp + uintptr(j&int32(0x0f))*4
  2754. *(*Tuint32_t)(unsafe.Pointer(p1)) += s1 + (*(*[16]Tuint32_t)(unsafe.Pointer(bp)))[(j+int32(9))&int32(0x0f)] + s0
  2755. 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))
  2756. 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)
  2757. h = g
  2758. g = f
  2759. f = e
  2760. e = d + T1
  2761. d = c
  2762. c = b
  2763. b = a
  2764. a = T1 + T2
  2765. j++
  2766. }
  2767. /* Compute the current intermediate hash value */
  2768. *(*Tuint32_t)(unsafe.Pointer(state)) += a
  2769. *(*Tuint32_t)(unsafe.Pointer(state + 1*4)) += b
  2770. *(*Tuint32_t)(unsafe.Pointer(state + 2*4)) += c
  2771. *(*Tuint32_t)(unsafe.Pointer(state + 3*4)) += d
  2772. *(*Tuint32_t)(unsafe.Pointer(state + 4*4)) += e
  2773. *(*Tuint32_t)(unsafe.Pointer(state + 5*4)) += f
  2774. *(*Tuint32_t)(unsafe.Pointer(state + 6*4)) += g
  2775. *(*Tuint32_t)(unsafe.Pointer(state + 7*4)) += h
  2776. /* Clean up */
  2777. v10 = libc.Uint32FromInt32(0)
  2778. T2 = v10
  2779. v9 = v10
  2780. T1 = v9
  2781. v8 = v9
  2782. h = v8
  2783. v7 = v8
  2784. g = v7
  2785. v6 = v7
  2786. f = v6
  2787. v5 = v6
  2788. e = v5
  2789. v4 = v5
  2790. d = v4
  2791. v3 = v4
  2792. c = v3
  2793. v2 = v3
  2794. b = v2
  2795. a = v2
  2796. }
  2797. func XSHA256Update(tls *libc.TLS, context uintptr, data uintptr, len1 Tsize_t) {
  2798. var freespace, usedspace, v1, v2 Tsize_t
  2799. _, _, _, _ = freespace, usedspace, v1, v2
  2800. /* Calling with no data is valid (we do nothing) */
  2801. if len1 == uint64(0) {
  2802. return
  2803. }
  2804. usedspace = *(*Tuint64_t)(unsafe.Pointer(context + 64)) >> libc.Int32FromInt32(3) % uint64(m_SHA256_BLOCK_LENGTH)
  2805. if usedspace > uint64(0) {
  2806. /* Calculate how much free space is available in the buffer */
  2807. freespace = uint64(m_SHA256_BLOCK_LENGTH) - usedspace
  2808. if len1 >= freespace {
  2809. /* Fill the buffer completely and process it */
  2810. libc.Xmemcpy(tls, context+80+uintptr(usedspace), data, freespace)
  2811. *(*Tuint64_t)(unsafe.Pointer(context + 64)) += freespace << int32(3)
  2812. len1 -= freespace
  2813. data += uintptr(freespace)
  2814. XSHA256Transform(tls, context, context+80)
  2815. } else {
  2816. /* The buffer is not yet full */
  2817. libc.Xmemcpy(tls, context+80+uintptr(usedspace), data, len1)
  2818. *(*Tuint64_t)(unsafe.Pointer(context + 64)) += len1 << int32(3)
  2819. /* Clean up: */
  2820. v1 = libc.Uint64FromInt32(0)
  2821. freespace = v1
  2822. usedspace = v1
  2823. return
  2824. }
  2825. }
  2826. for len1 >= uint64(m_SHA256_BLOCK_LENGTH) {
  2827. /* Process as many complete blocks as we can */
  2828. XSHA256Transform(tls, context, data)
  2829. *(*Tuint64_t)(unsafe.Pointer(context + 64)) += libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH) << libc.Int32FromInt32(3))
  2830. len1 -= uint64(m_SHA256_BLOCK_LENGTH)
  2831. data += uintptr(m_SHA256_BLOCK_LENGTH)
  2832. }
  2833. if len1 > uint64(0) {
  2834. /* There's left-overs, so save 'em */
  2835. libc.Xmemcpy(tls, context+80, data, len1)
  2836. *(*Tuint64_t)(unsafe.Pointer(context + 64)) += len1 << int32(3)
  2837. }
  2838. /* Clean up: */
  2839. v2 = libc.Uint64FromInt32(0)
  2840. freespace = v2
  2841. usedspace = v2
  2842. }
  2843. func XSHA256Pad(tls *libc.TLS, context uintptr) {
  2844. var usedspace, v1 uint32
  2845. _, _ = usedspace, v1
  2846. usedspace = uint32(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> libc.Int32FromInt32(3) % uint64(m_SHA256_BLOCK_LENGTH))
  2847. if usedspace > uint32(0) {
  2848. /* Begin padding with a 1 bit: */
  2849. v1 = usedspace
  2850. usedspace++
  2851. *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(v1))) = uint8(0x80)
  2852. if usedspace <= libc.Uint32FromInt32(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH)-libc.Int32FromInt32(8)) {
  2853. /* Set-up for the last transform: */
  2854. libc.Xmemset(tls, context+80+uintptr(usedspace), 0, uint64(libc.Uint32FromInt32(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH)-libc.Int32FromInt32(8))-usedspace))
  2855. } else {
  2856. if usedspace < uint32(m_SHA256_BLOCK_LENGTH) {
  2857. libc.Xmemset(tls, context+80+uintptr(usedspace), 0, uint64(uint32(m_SHA256_BLOCK_LENGTH)-usedspace))
  2858. }
  2859. /* Do second-to-last transform: */
  2860. XSHA256Transform(tls, context, context+80)
  2861. /* Prepare for last transform: */
  2862. libc.Xmemset(tls, context+80, 0, libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH)-libc.Int32FromInt32(8)))
  2863. }
  2864. } else {
  2865. /* Set-up for the last transform: */
  2866. libc.Xmemset(tls, context+80, 0, libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH)-libc.Int32FromInt32(8)))
  2867. /* Begin padding with a 1 bit: */
  2868. *(*Tuint8_t)(unsafe.Pointer(context + 80)) = uint8(0x80)
  2869. }
  2870. /* Store the length of input data (in bits) in big endian format: */
  2871. *(*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))
  2872. *(*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))
  2873. *(*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))
  2874. *(*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))
  2875. *(*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))
  2876. *(*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))
  2877. *(*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))
  2878. *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(libc.Int32FromInt32(m_SHA256_BLOCK_LENGTH)-libc.Int32FromInt32(8)) + 7)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + 64)))
  2879. /* Final transform: */
  2880. XSHA256Transform(tls, context, context+80)
  2881. /* Clean up: */
  2882. usedspace = uint32(0)
  2883. }
  2884. func XSHA256Final(tls *libc.TLS, digest uintptr, context uintptr) {
  2885. var i int32
  2886. _ = i
  2887. XSHA256Pad(tls, context)
  2888. /* If no digest buffer is passed, we don't bother doing this: */
  2889. if digest != libc.UintptrFromInt32(0) {
  2890. /* Convert TO host byte order */
  2891. i = 0
  2892. for {
  2893. if !(i < int32(8)) {
  2894. break
  2895. }
  2896. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)))) = uint8(*(*Tuint32_t)(unsafe.Pointer(context + uintptr(i)*4)) >> int32(24))
  2897. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 1)) = uint8(*(*Tuint32_t)(unsafe.Pointer(context + uintptr(i)*4)) >> int32(16))
  2898. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 2)) = uint8(*(*Tuint32_t)(unsafe.Pointer(context + uintptr(i)*4)) >> int32(8))
  2899. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(4)) + 3)) = uint8(*(*Tuint32_t)(unsafe.Pointer(context + uintptr(i)*4)))
  2900. goto _1
  2901. _1:
  2902. ;
  2903. i++
  2904. }
  2905. libc.Xmemset(tls, context, 0, uint64(208))
  2906. }
  2907. }
  2908. // C documentation
  2909. //
  2910. // /*** SHA-512: *********************************************************/
  2911. func XSHA512Init(tls *libc.TLS, context uintptr) {
  2912. var v1 Tuint64_t
  2913. _ = v1
  2914. if context == libc.UintptrFromInt32(0) {
  2915. return
  2916. }
  2917. libc.Xmemcpy(tls, context, uintptr(unsafe.Pointer(&_sha512_initial_hash_value)), uint64(64))
  2918. libc.Xmemset(tls, context+80, 0, uint64(128))
  2919. v1 = libc.Uint64FromInt32(0)
  2920. *(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8)) = v1
  2921. *(*Tuint64_t)(unsafe.Pointer(context + 64)) = v1
  2922. }
  2923. func XSHA512Transform(tls *libc.TLS, state uintptr, data uintptr) {
  2924. bp := tls.Alloc(128)
  2925. defer tls.Free(128)
  2926. var T1, T2, a, b, c, d, e, f, g, h, s0, s1, v10, v2, v3, v4, v5, v6, v7, v8, v9 Tuint64_t
  2927. var j int32
  2928. var p1 uintptr
  2929. var _ /* W512 at bp+0 */ [16]Tuint64_t
  2930. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = T1, T2, a, b, c, d, e, f, g, h, j, s0, s1, v10, v2, v3, v4, v5, v6, v7, v8, v9, p1
  2931. /* Initialize registers with the prev. intermediate value */
  2932. a = *(*Tuint64_t)(unsafe.Pointer(state))
  2933. b = *(*Tuint64_t)(unsafe.Pointer(state + 1*8))
  2934. c = *(*Tuint64_t)(unsafe.Pointer(state + 2*8))
  2935. d = *(*Tuint64_t)(unsafe.Pointer(state + 3*8))
  2936. e = *(*Tuint64_t)(unsafe.Pointer(state + 4*8))
  2937. f = *(*Tuint64_t)(unsafe.Pointer(state + 5*8))
  2938. g = *(*Tuint64_t)(unsafe.Pointer(state + 6*8))
  2939. h = *(*Tuint64_t)(unsafe.Pointer(state + 7*8))
  2940. j = 0
  2941. for cond := true; cond; cond = j < int32(16) {
  2942. (*(*[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)
  2943. data += uintptr(8)
  2944. /* Apply the SHA-512 compression function to update a..h */
  2945. 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]
  2946. 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)
  2947. h = g
  2948. g = f
  2949. f = e
  2950. e = d + T1
  2951. d = c
  2952. c = b
  2953. b = a
  2954. a = T1 + T2
  2955. j++
  2956. }
  2957. for cond := true; cond; cond = j < int32(80) {
  2958. /* Part of the message block expansion: */
  2959. s0 = (*(*[16]Tuint64_t)(unsafe.Pointer(bp)))[(j+int32(1))&int32(0x0f)]
  2960. 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)
  2961. s1 = (*(*[16]Tuint64_t)(unsafe.Pointer(bp)))[(j+int32(14))&int32(0x0f)]
  2962. 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)
  2963. /* Apply the SHA-512 compression function to update a..h */
  2964. p1 = bp + uintptr(j&int32(0x0f))*8
  2965. *(*Tuint64_t)(unsafe.Pointer(p1)) += s1 + (*(*[16]Tuint64_t)(unsafe.Pointer(bp)))[(j+int32(9))&int32(0x0f)] + s0
  2966. 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))
  2967. 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)
  2968. h = g
  2969. g = f
  2970. f = e
  2971. e = d + T1
  2972. d = c
  2973. c = b
  2974. b = a
  2975. a = T1 + T2
  2976. j++
  2977. }
  2978. /* Compute the current intermediate hash value */
  2979. *(*Tuint64_t)(unsafe.Pointer(state)) += a
  2980. *(*Tuint64_t)(unsafe.Pointer(state + 1*8)) += b
  2981. *(*Tuint64_t)(unsafe.Pointer(state + 2*8)) += c
  2982. *(*Tuint64_t)(unsafe.Pointer(state + 3*8)) += d
  2983. *(*Tuint64_t)(unsafe.Pointer(state + 4*8)) += e
  2984. *(*Tuint64_t)(unsafe.Pointer(state + 5*8)) += f
  2985. *(*Tuint64_t)(unsafe.Pointer(state + 6*8)) += g
  2986. *(*Tuint64_t)(unsafe.Pointer(state + 7*8)) += h
  2987. /* Clean up */
  2988. v10 = libc.Uint64FromInt32(0)
  2989. T2 = v10
  2990. v9 = v10
  2991. T1 = v9
  2992. v8 = v9
  2993. h = v8
  2994. v7 = v8
  2995. g = v7
  2996. v6 = v7
  2997. f = v6
  2998. v5 = v6
  2999. e = v5
  3000. v4 = v5
  3001. d = v4
  3002. v3 = v4
  3003. c = v3
  3004. v2 = v3
  3005. b = v2
  3006. a = v2
  3007. }
  3008. func XSHA512Update(tls *libc.TLS, context uintptr, data uintptr, len1 Tsize_t) {
  3009. var freespace, usedspace, v1, v2 Tsize_t
  3010. _, _, _, _ = freespace, usedspace, v1, v2
  3011. /* Calling with no data is valid (we do nothing) */
  3012. if len1 == uint64(0) {
  3013. return
  3014. }
  3015. usedspace = *(*Tuint64_t)(unsafe.Pointer(context + 64)) >> libc.Int32FromInt32(3) % uint64(m_SHA512_BLOCK_LENGTH)
  3016. if usedspace > uint64(0) {
  3017. /* Calculate how much free space is available in the buffer */
  3018. freespace = uint64(m_SHA512_BLOCK_LENGTH) - usedspace
  3019. if len1 >= freespace {
  3020. /* Fill the buffer completely and process it */
  3021. libc.Xmemcpy(tls, context+80+uintptr(usedspace), data, freespace)
  3022. *(*Tuint64_t)(unsafe.Pointer(context + 64)) += freespace << libc.Int32FromInt32(3)
  3023. if *(*Tuint64_t)(unsafe.Pointer(context + 64)) < freespace<<libc.Int32FromInt32(3) {
  3024. *(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8))++
  3025. }
  3026. len1 -= freespace
  3027. data += uintptr(freespace)
  3028. XSHA512Transform(tls, context, context+80)
  3029. } else {
  3030. /* The buffer is not yet full */
  3031. libc.Xmemcpy(tls, context+80+uintptr(usedspace), data, len1)
  3032. *(*Tuint64_t)(unsafe.Pointer(context + 64)) += len1 << libc.Int32FromInt32(3)
  3033. if *(*Tuint64_t)(unsafe.Pointer(context + 64)) < len1<<libc.Int32FromInt32(3) {
  3034. *(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8))++
  3035. }
  3036. /* Clean up: */
  3037. v1 = libc.Uint64FromInt32(0)
  3038. freespace = v1
  3039. usedspace = v1
  3040. return
  3041. }
  3042. }
  3043. for len1 >= uint64(m_SHA512_BLOCK_LENGTH) {
  3044. /* Process as many complete blocks as we can */
  3045. XSHA512Transform(tls, context, data)
  3046. *(*Tuint64_t)(unsafe.Pointer(context + 64)) += libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH) << libc.Int32FromInt32(3))
  3047. if *(*Tuint64_t)(unsafe.Pointer(context + 64)) < libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)<<libc.Int32FromInt32(3)) {
  3048. *(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8))++
  3049. }
  3050. len1 -= uint64(m_SHA512_BLOCK_LENGTH)
  3051. data += uintptr(m_SHA512_BLOCK_LENGTH)
  3052. }
  3053. if len1 > uint64(0) {
  3054. /* There's left-overs, so save 'em */
  3055. libc.Xmemcpy(tls, context+80, data, len1)
  3056. *(*Tuint64_t)(unsafe.Pointer(context + 64)) += len1 << libc.Int32FromInt32(3)
  3057. if *(*Tuint64_t)(unsafe.Pointer(context + 64)) < len1<<libc.Int32FromInt32(3) {
  3058. *(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8))++
  3059. }
  3060. }
  3061. /* Clean up: */
  3062. v2 = libc.Uint64FromInt32(0)
  3063. freespace = v2
  3064. usedspace = v2
  3065. }
  3066. func XSHA512Pad(tls *libc.TLS, context uintptr) {
  3067. var usedspace, v1 uint32
  3068. _, _ = usedspace, v1
  3069. usedspace = uint32(*(*Tuint64_t)(unsafe.Pointer(context + 64)) >> libc.Int32FromInt32(3) % uint64(m_SHA512_BLOCK_LENGTH))
  3070. if usedspace > uint32(0) {
  3071. /* Begin padding with a 1 bit: */
  3072. v1 = usedspace
  3073. usedspace++
  3074. *(*Tuint8_t)(unsafe.Pointer(context + 80 + uintptr(v1))) = uint8(0x80)
  3075. if usedspace <= libc.Uint32FromInt32(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)) {
  3076. /* Set-up for the last transform: */
  3077. libc.Xmemset(tls, context+80+uintptr(usedspace), 0, uint64(libc.Uint32FromInt32(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16))-usedspace))
  3078. } else {
  3079. if usedspace < uint32(m_SHA512_BLOCK_LENGTH) {
  3080. libc.Xmemset(tls, context+80+uintptr(usedspace), 0, uint64(uint32(m_SHA512_BLOCK_LENGTH)-usedspace))
  3081. }
  3082. /* Do second-to-last transform: */
  3083. XSHA512Transform(tls, context, context+80)
  3084. /* And set-up for the last transform: */
  3085. libc.Xmemset(tls, context+80, 0, libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(2)))
  3086. }
  3087. } else {
  3088. /* Prepare for final transform: */
  3089. libc.Xmemset(tls, context+80, 0, libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA512_BLOCK_LENGTH)-libc.Int32FromInt32(16)))
  3090. /* Begin padding with a 1 bit: */
  3091. *(*Tuint8_t)(unsafe.Pointer(context + 80)) = uint8(0x80)
  3092. }
  3093. /* Store the length of input data (in bits) in big endian format: */
  3094. *(*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))
  3095. *(*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))
  3096. *(*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))
  3097. *(*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))
  3098. *(*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))
  3099. *(*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))
  3100. *(*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))
  3101. *(*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)))
  3102. *(*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))
  3103. *(*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))
  3104. *(*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))
  3105. *(*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))
  3106. *(*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))
  3107. *(*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))
  3108. *(*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))
  3109. *(*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)))
  3110. /* Final transform: */
  3111. XSHA512Transform(tls, context, context+80)
  3112. /* Clean up: */
  3113. usedspace = uint32(0)
  3114. }
  3115. func XSHA512Final(tls *libc.TLS, digest uintptr, context uintptr) {
  3116. var i int32
  3117. _ = i
  3118. XSHA512Pad(tls, context)
  3119. /* If no digest buffer is passed, we don't bother doing this: */
  3120. if digest != libc.UintptrFromInt32(0) {
  3121. /* Convert TO host byte order */
  3122. i = 0
  3123. for {
  3124. if !(i < int32(8)) {
  3125. break
  3126. }
  3127. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)))) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(56))
  3128. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 1)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(48))
  3129. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 2)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(40))
  3130. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 3)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(32))
  3131. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 4)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(24))
  3132. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 5)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(16))
  3133. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 6)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(8))
  3134. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 7)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)))
  3135. goto _1
  3136. _1:
  3137. ;
  3138. i++
  3139. }
  3140. libc.Xmemset(tls, context, 0, uint64(208))
  3141. }
  3142. }
  3143. // C documentation
  3144. //
  3145. // /*** SHA-384: *********************************************************/
  3146. func XSHA384Init(tls *libc.TLS, context uintptr) {
  3147. var v1 Tuint64_t
  3148. _ = v1
  3149. if context == libc.UintptrFromInt32(0) {
  3150. return
  3151. }
  3152. libc.Xmemcpy(tls, context, uintptr(unsafe.Pointer(&_sha384_initial_hash_value)), uint64(64))
  3153. libc.Xmemset(tls, context+80, 0, uint64(128))
  3154. v1 = libc.Uint64FromInt32(0)
  3155. *(*Tuint64_t)(unsafe.Pointer(context + 64 + 1*8)) = v1
  3156. *(*Tuint64_t)(unsafe.Pointer(context + 64)) = v1
  3157. }
  3158. func XSHA384Final(tls *libc.TLS, digest uintptr, context uintptr) {
  3159. var i int32
  3160. _ = i
  3161. XSHA512Pad(tls, context)
  3162. /* If no digest buffer is passed, we don't bother doing this: */
  3163. if digest != libc.UintptrFromInt32(0) {
  3164. /* Convert TO host byte order */
  3165. i = 0
  3166. for {
  3167. if !(i < int32(6)) {
  3168. break
  3169. }
  3170. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)))) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(56))
  3171. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 1)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(48))
  3172. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 2)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(40))
  3173. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 3)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(32))
  3174. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 4)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(24))
  3175. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 5)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(16))
  3176. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 6)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)) >> int32(8))
  3177. *(*Tuint8_t)(unsafe.Pointer(digest + uintptr(i*libc.Int32FromInt32(8)) + 7)) = uint8(*(*Tuint64_t)(unsafe.Pointer(context + uintptr(i)*8)))
  3178. goto _1
  3179. _1:
  3180. ;
  3181. i++
  3182. }
  3183. }
  3184. /* Zero out state data */
  3185. libc.Xmemset(tls, context, 0, uint64(208))
  3186. }
  3187. const m_AT_EACCESS = 0x200
  3188. const m_AT_EMPTY_PATH = 0x1000
  3189. const m_AT_NO_AUTOMOUNT = 0x800
  3190. const m_AT_RECURSIVE = 0x8000
  3191. const m_AT_REMOVEDIR = 0x200
  3192. const m_AT_STATX_DONT_SYNC = 0x4000
  3193. const m_AT_STATX_FORCE_SYNC = 0x2000
  3194. const m_AT_STATX_SYNC_AS_STAT = 0x0000
  3195. const m_AT_STATX_SYNC_TYPE = 0x6000
  3196. const m_AT_SYMLINK_FOLLOW = 0x400
  3197. const m_AT_SYMLINK_NOFOLLOW = 0x100
  3198. const m_BUFSIZ = 1024
  3199. const m_DN_ACCESS = 0x00000001
  3200. const m_DN_ATTRIB = 0x00000020
  3201. const m_DN_CREATE = 0x00000004
  3202. const m_DN_DELETE = 0x00000008
  3203. const m_DN_MODIFY = 0x00000002
  3204. const m_DN_MULTISHOT = 0x80000000
  3205. const m_DN_RENAME = 0x00000010
  3206. const m_E2BIG = 7
  3207. const m_EACCES = 13
  3208. const m_EADDRINUSE = 98
  3209. const m_EADDRNOTAVAIL = 99
  3210. const m_EADV = 68
  3211. const m_EAFNOSUPPORT = 97
  3212. const m_EAGAIN = 11
  3213. const m_EALREADY = 114
  3214. const m_EBADE = 52
  3215. const m_EBADF = 9
  3216. const m_EBADFD = 77
  3217. const m_EBADMSG = 74
  3218. const m_EBADR = 53
  3219. const m_EBADRQC = 56
  3220. const m_EBADSLT = 57
  3221. const m_EBFONT = 59
  3222. const m_EBUSY = 16
  3223. const m_ECANCELED = 125
  3224. const m_ECHILD = 10
  3225. const m_ECHRNG = 44
  3226. const m_ECOMM = 70
  3227. const m_ECONNABORTED = 103
  3228. const m_ECONNREFUSED = 111
  3229. const m_ECONNRESET = 104
  3230. const m_EDEADLK = 35
  3231. const m_EDEADLOCK = "EDEADLK"
  3232. const m_EDESTADDRREQ = 89
  3233. const m_EDOM = 33
  3234. const m_EDOTDOT = 73
  3235. const m_EDQUOT = 122
  3236. const m_EEXIST = 17
  3237. const m_EFAULT = 14
  3238. const m_EFBIG = 27
  3239. const m_EHOSTDOWN = 112
  3240. const m_EHOSTUNREACH = 113
  3241. const m_EHWPOISON = 133
  3242. const m_EIDRM = 43
  3243. const m_EILSEQ = 84
  3244. const m_EINPROGRESS = 115
  3245. const m_EINTR = 4
  3246. const m_EINVAL = 22
  3247. const m_EIO = 5
  3248. const m_EISCONN = 106
  3249. const m_EISDIR = 21
  3250. const m_EISNAM = 120
  3251. const m_EKEYEXPIRED = 127
  3252. const m_EKEYREJECTED = 129
  3253. const m_EKEYREVOKED = 128
  3254. const m_EL2HLT = 51
  3255. const m_EL2NSYNC = 45
  3256. const m_EL3HLT = 46
  3257. const m_EL3RST = 47
  3258. const m_ELIBACC = 79
  3259. const m_ELIBBAD = 80
  3260. const m_ELIBEXEC = 83
  3261. const m_ELIBMAX = 82
  3262. const m_ELIBSCN = 81
  3263. const m_ELNRNG = 48
  3264. const m_ELOOP = 40
  3265. const m_EMEDIUMTYPE = 124
  3266. const m_EMFILE = 24
  3267. const m_EMLINK = 31
  3268. const m_EMSGSIZE = 90
  3269. const m_EMULTIHOP = 72
  3270. const m_ENAMETOOLONG = 36
  3271. const m_ENAVAIL = 119
  3272. const m_ENETDOWN = 100
  3273. const m_ENETRESET = 102
  3274. const m_ENETUNREACH = 101
  3275. const m_ENFILE = 23
  3276. const m_ENOANO = 55
  3277. const m_ENOBUFS = 105
  3278. const m_ENOCSI = 50
  3279. const m_ENODATA = 61
  3280. const m_ENODEV = 19
  3281. const m_ENOENT = 2
  3282. const m_ENOEXEC = 8
  3283. const m_ENOKEY = 126
  3284. const m_ENOLCK = 37
  3285. const m_ENOLINK = 67
  3286. const m_ENOMEDIUM = 123
  3287. const m_ENOMEM = 12
  3288. const m_ENOMSG = 42
  3289. const m_ENONET = 64
  3290. const m_ENOPKG = 65
  3291. const m_ENOPROTOOPT = 92
  3292. const m_ENOSPC = 28
  3293. const m_ENOSR = 63
  3294. const m_ENOSTR = 60
  3295. const m_ENOSYS = 38
  3296. const m_ENOTBLK = 15
  3297. const m_ENOTCONN = 107
  3298. const m_ENOTDIR = 20
  3299. const m_ENOTEMPTY = 39
  3300. const m_ENOTNAM = 118
  3301. const m_ENOTRECOVERABLE = 131
  3302. const m_ENOTSOCK = 88
  3303. const m_ENOTSUP = "EOPNOTSUPP"
  3304. const m_ENOTTY = 25
  3305. const m_ENOTUNIQ = 76
  3306. const m_ENXIO = 6
  3307. const m_EOPNOTSUPP = 95
  3308. const m_EOVERFLOW = 75
  3309. const m_EOWNERDEAD = 130
  3310. const m_EPERM = 1
  3311. const m_EPFNOSUPPORT = 96
  3312. const m_EPIPE = 32
  3313. const m_EPROTO = 71
  3314. const m_EPROTONOSUPPORT = 93
  3315. const m_EPROTOTYPE = 91
  3316. const m_ERANGE = 34
  3317. const m_EREMCHG = 78
  3318. const m_EREMOTE = 66
  3319. const m_EREMOTEIO = 121
  3320. const m_ERESTART = 85
  3321. const m_ERFKILL = 132
  3322. const m_EROFS = 30
  3323. const m_ESHUTDOWN = 108
  3324. const m_ESOCKTNOSUPPORT = 94
  3325. const m_ESPIPE = 29
  3326. const m_ESRCH = 3
  3327. const m_ESRMNT = 69
  3328. const m_ESTALE = 116
  3329. const m_ESTRPIPE = 86
  3330. const m_ETIME = 62
  3331. const m_ETIMEDOUT = 110
  3332. const m_ETOOMANYREFS = 109
  3333. const m_ETXTBSY = 26
  3334. const m_EUCLEAN = 117
  3335. const m_EUNATCH = 49
  3336. const m_EUSERS = 87
  3337. const m_EWOULDBLOCK = "EAGAIN"
  3338. const m_EXDEV = 18
  3339. const m_EXFULL = 54
  3340. const m_EXIT_FAILURE = 1
  3341. const m_EXIT_SUCCESS = 0
  3342. const m_FALLOC_FL_KEEP_SIZE = 1
  3343. const m_FALLOC_FL_PUNCH_HOLE = 2
  3344. const m_FAPPEND = "O_APPEND"
  3345. const m_FASYNC = "O_ASYNC"
  3346. const m_FD_CLOEXEC = 1
  3347. const m_FFSYNC = "O_SYNC"
  3348. const m_FILENAME_MAX = 4096
  3349. const m_FNDELAY = "O_NDELAY"
  3350. const m_FNONBLOCK = "O_NONBLOCK"
  3351. const m_FOPEN_MAX = 1000
  3352. const m_F_ADD_SEALS = 1033
  3353. const m_F_CANCELLK = 1029
  3354. const m_F_DUPFD = 0
  3355. const m_F_DUPFD_CLOEXEC = 1030
  3356. const m_F_GETFD = 1
  3357. const m_F_GETFL = 3
  3358. const m_F_GETLEASE = 1025
  3359. const m_F_GETLK = 5
  3360. const m_F_GETOWN = 9
  3361. const m_F_GETOWNER_UIDS = 17
  3362. const m_F_GETOWN_EX = 16
  3363. const m_F_GETPIPE_SZ = 1032
  3364. const m_F_GETSIG = 11
  3365. const m_F_GET_FILE_RW_HINT = 1037
  3366. const m_F_GET_RW_HINT = 1035
  3367. const m_F_GET_SEALS = 1034
  3368. const m_F_LOCK = 1
  3369. const m_F_NOTIFY = 1026
  3370. const m_F_OFD_GETLK = 36
  3371. const m_F_OFD_SETLK = 37
  3372. const m_F_OFD_SETLKW = 38
  3373. const m_F_OK = 0
  3374. const m_F_OWNER_GID = 2
  3375. const m_F_OWNER_PGRP = 2
  3376. const m_F_OWNER_PID = 1
  3377. const m_F_OWNER_TID = 0
  3378. const m_F_RDLCK = 0
  3379. const m_F_SEAL_FUTURE_WRITE = 0x0010
  3380. const m_F_SEAL_GROW = 0x0004
  3381. const m_F_SEAL_SEAL = 0x0001
  3382. const m_F_SEAL_SHRINK = 0x0002
  3383. const m_F_SEAL_WRITE = 0x0008
  3384. const m_F_SETFD = 2
  3385. const m_F_SETFL = 4
  3386. const m_F_SETLEASE = 1024
  3387. const m_F_SETLK = 6
  3388. const m_F_SETLKW = 7
  3389. const m_F_SETOWN = 8
  3390. const m_F_SETOWN_EX = 15
  3391. const m_F_SETPIPE_SZ = 1031
  3392. const m_F_SETSIG = 10
  3393. const m_F_SET_FILE_RW_HINT = 1038
  3394. const m_F_SET_RW_HINT = 1036
  3395. const m_F_TEST = 3
  3396. const m_F_TLOCK = 2
  3397. const m_F_ULOCK = 0
  3398. const m_F_UNLCK = 2
  3399. const m_F_WRLCK = 1
  3400. const m_L_INCR = 1
  3401. const m_L_SET = 0
  3402. const m_L_XTND = 2
  3403. const m_L_ctermid = 20
  3404. const m_L_cuserid = 20
  3405. const m_L_tmpnam = 20
  3406. const m_MAX_HANDLE_SZ = 128
  3407. const m_O_APPEND = 02000
  3408. const m_O_ASYNC = 020000
  3409. const m_O_CLOEXEC = 02000000
  3410. const m_O_CREAT = 0100
  3411. const m_O_DIRECT = 040000
  3412. const m_O_DIRECTORY = 0200000
  3413. const m_O_DSYNC = 010000
  3414. const m_O_EXCL = 0200
  3415. const m_O_EXEC = "O_PATH"
  3416. const m_O_LARGEFILE = 0100000
  3417. const m_O_NDELAY = "O_NONBLOCK"
  3418. const m_O_NOATIME = 01000000
  3419. const m_O_NOCTTY = 0400
  3420. const m_O_NOFOLLOW = 0400000
  3421. const m_O_NONBLOCK = 04000
  3422. const m_O_PATH = 010000000
  3423. const m_O_RDONLY = 0
  3424. const m_O_RDWR = 02
  3425. const m_O_RSYNC = 04010000
  3426. const m_O_SEARCH = "O_PATH"
  3427. const m_O_SYNC = 04010000
  3428. const m_O_TMPFILE = 020200000
  3429. const m_O_TRUNC = 01000
  3430. const m_O_TTY_INIT = 0
  3431. const m_O_WRONLY = 01
  3432. const m_POSIX_CLOSE_RESTART = 0
  3433. const m_POSIX_FADV_DONTNEED = 4
  3434. const m_POSIX_FADV_NOREUSE = 5
  3435. const m_POSIX_FADV_NORMAL = 0
  3436. const m_POSIX_FADV_RANDOM = 1
  3437. const m_POSIX_FADV_SEQUENTIAL = 2
  3438. const m_POSIX_FADV_WILLNEED = 3
  3439. const m_P_tmpdir = "/tmp"
  3440. const m_RAND_MAX = 0x7fffffff
  3441. const m_RWF_WRITE_LIFE_NOT_SET = 0
  3442. const m_RWH_WRITE_LIFE_EXTREME = 5
  3443. const m_RWH_WRITE_LIFE_LONG = 4
  3444. const m_RWH_WRITE_LIFE_MEDIUM = 3
  3445. const m_RWH_WRITE_LIFE_NONE = 1
  3446. const m_RWH_WRITE_LIFE_SHORT = 2
  3447. const m_R_OK = 4
  3448. const m_SEEK_DATA = 3
  3449. const m_SEEK_HOLE = 4
  3450. const m_SPLICE_F_GIFT = 8
  3451. const m_SPLICE_F_MORE = 4
  3452. const m_SPLICE_F_MOVE = 1
  3453. const m_SPLICE_F_NONBLOCK = 2
  3454. const m_STATX_ALL = 0xfff
  3455. const m_STATX_ATIME = 0x20
  3456. const m_STATX_BASIC_STATS = 0x7ff
  3457. const m_STATX_BLOCKS = 0x400
  3458. const m_STATX_BTIME = 0x800
  3459. const m_STATX_CTIME = 0x80
  3460. const m_STATX_GID = 0x10
  3461. const m_STATX_INO = 0x100
  3462. const m_STATX_MODE = 2
  3463. const m_STATX_MTIME = 0x40
  3464. const m_STATX_NLINK = 4
  3465. const m_STATX_SIZE = 0x200
  3466. const m_STATX_TYPE = 1
  3467. const m_STATX_UID = 8
  3468. const m_STDERR_FILENO = 2
  3469. const m_STDIN_FILENO = 0
  3470. const m_STDOUT_FILENO = 1
  3471. const m_SYNC_FILE_RANGE_WAIT_AFTER = 4
  3472. const m_SYNC_FILE_RANGE_WAIT_BEFORE = 1
  3473. const m_SYNC_FILE_RANGE_WRITE = 2
  3474. const m_S_IEXEC = "S_IXUSR"
  3475. const m_S_IFBLK = 0060000
  3476. const m_S_IFCHR = 0020000
  3477. const m_S_IFDIR = 0040000
  3478. const m_S_IFIFO = 0010000
  3479. const m_S_IFLNK = 0120000
  3480. const m_S_IFMT = 0170000
  3481. const m_S_IFREG = 0100000
  3482. const m_S_IFSOCK = 0140000
  3483. const m_S_IREAD = "S_IRUSR"
  3484. const m_S_IRGRP = 0040
  3485. const m_S_IROTH = 0004
  3486. const m_S_IRUSR = 0400
  3487. const m_S_IRWXG = 0070
  3488. const m_S_IRWXO = 0007
  3489. const m_S_IRWXU = 0700
  3490. const m_S_ISGID = 02000
  3491. const m_S_ISUID = 04000
  3492. const m_S_ISVTX = 01000
  3493. const m_S_IWGRP = 0020
  3494. const m_S_IWOTH = 0002
  3495. const m_S_IWRITE = "S_IWUSR"
  3496. const m_S_IWUSR = 0200
  3497. const m_S_IXGRP = 0010
  3498. const m_S_IXOTH = 0001
  3499. const m_S_IXUSR = 0100
  3500. const m_TMP_MAX = 10000
  3501. const m_UTIME_NOW = 0x3fffffff
  3502. const m_UTIME_OMIT = 0x3ffffffe
  3503. const m_WNOHANG = 1
  3504. const m_WUNTRACED = 2
  3505. const m_W_OK = 2
  3506. const m_X_OK = 1
  3507. const m__CS_GNU_LIBC_VERSION = 2
  3508. const m__CS_GNU_LIBPTHREAD_VERSION = 3
  3509. const m__CS_PATH = 0
  3510. const m__CS_POSIX_V5_WIDTH_RESTRICTED_ENVS = 4
  3511. const m__CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116
  3512. const m__CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117
  3513. const m__CS_POSIX_V6_ILP32_OFF32_LIBS = 1118
  3514. const m__CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119
  3515. const m__CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120
  3516. const m__CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121
  3517. const m__CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122
  3518. const m__CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123
  3519. const m__CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124
  3520. const m__CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125
  3521. const m__CS_POSIX_V6_LP64_OFF64_LIBS = 1126
  3522. const m__CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127
  3523. const m__CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128
  3524. const m__CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129
  3525. const m__CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130
  3526. const m__CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131
  3527. const m__CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 1
  3528. const m__CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132
  3529. const m__CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133
  3530. const m__CS_POSIX_V7_ILP32_OFF32_LIBS = 1134
  3531. const m__CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135
  3532. const m__CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136
  3533. const m__CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137
  3534. const m__CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138
  3535. const m__CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139
  3536. const m__CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140
  3537. const m__CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141
  3538. const m__CS_POSIX_V7_LP64_OFF64_LIBS = 1142
  3539. const m__CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143
  3540. const m__CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144
  3541. const m__CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145
  3542. const m__CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146
  3543. const m__CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147
  3544. const m__CS_POSIX_V7_THREADS_CFLAGS = 1150
  3545. const m__CS_POSIX_V7_THREADS_LDFLAGS = 1151
  3546. const m__CS_POSIX_V7_WIDTH_RESTRICTED_ENVS = 5
  3547. const m__CS_V6_ENV = 1148
  3548. const m__CS_V7_ENV = 1149
  3549. const m__IOFBF = 0
  3550. const m__IOLBF = 1
  3551. const m__IONBF = 2
  3552. const m__PC_2_SYMLINKS = 20
  3553. const m__PC_ALLOC_SIZE_MIN = 18
  3554. const m__PC_ASYNC_IO = 10
  3555. const m__PC_CHOWN_RESTRICTED = 6
  3556. const m__PC_FILESIZEBITS = 13
  3557. const m__PC_LINK_MAX = 0
  3558. const m__PC_MAX_CANON = 1
  3559. const m__PC_MAX_INPUT = 2
  3560. const m__PC_NAME_MAX = 3
  3561. const m__PC_NO_TRUNC = 7
  3562. const m__PC_PATH_MAX = 4
  3563. const m__PC_PIPE_BUF = 5
  3564. const m__PC_PRIO_IO = 11
  3565. const m__PC_REC_INCR_XFER_SIZE = 14
  3566. const m__PC_REC_MAX_XFER_SIZE = 15
  3567. const m__PC_REC_MIN_XFER_SIZE = 16
  3568. const m__PC_REC_XFER_ALIGN = 17
  3569. const m__PC_SOCK_MAXBUF = 12
  3570. const m__PC_SYMLINK_MAX = 19
  3571. const m__PC_SYNC_IO = 9
  3572. const m__PC_VDISABLE = 8
  3573. const m__POSIX2_C_BIND = "_POSIX_VERSION"
  3574. const m__POSIX2_VERSION = "_POSIX_VERSION"
  3575. const m__POSIX_ADVISORY_INFO = "_POSIX_VERSION"
  3576. const m__POSIX_ASYNCHRONOUS_IO = "_POSIX_VERSION"
  3577. const m__POSIX_BARRIERS = "_POSIX_VERSION"
  3578. const m__POSIX_CHOWN_RESTRICTED = 1
  3579. const m__POSIX_CLOCK_SELECTION = "_POSIX_VERSION"
  3580. const m__POSIX_CPUTIME = "_POSIX_VERSION"
  3581. const m__POSIX_FSYNC = "_POSIX_VERSION"
  3582. const m__POSIX_IPV6 = "_POSIX_VERSION"
  3583. const m__POSIX_JOB_CONTROL = 1
  3584. const m__POSIX_MAPPED_FILES = "_POSIX_VERSION"
  3585. const m__POSIX_MEMLOCK = "_POSIX_VERSION"
  3586. const m__POSIX_MEMLOCK_RANGE = "_POSIX_VERSION"
  3587. const m__POSIX_MEMORY_PROTECTION = "_POSIX_VERSION"
  3588. const m__POSIX_MESSAGE_PASSING = "_POSIX_VERSION"
  3589. const m__POSIX_MONOTONIC_CLOCK = "_POSIX_VERSION"
  3590. const m__POSIX_NO_TRUNC = 1
  3591. const m__POSIX_RAW_SOCKETS = "_POSIX_VERSION"
  3592. const m__POSIX_READER_WRITER_LOCKS = "_POSIX_VERSION"
  3593. const m__POSIX_REALTIME_SIGNALS = "_POSIX_VERSION"
  3594. const m__POSIX_REGEXP = 1
  3595. const m__POSIX_SAVED_IDS = 1
  3596. const m__POSIX_SEMAPHORES = "_POSIX_VERSION"
  3597. const m__POSIX_SHARED_MEMORY_OBJECTS = "_POSIX_VERSION"
  3598. const m__POSIX_SHELL = 1
  3599. const m__POSIX_SPAWN = "_POSIX_VERSION"
  3600. const m__POSIX_SPIN_LOCKS = "_POSIX_VERSION"
  3601. const m__POSIX_THREADS = "_POSIX_VERSION"
  3602. const m__POSIX_THREAD_ATTR_STACKADDR = "_POSIX_VERSION"
  3603. const m__POSIX_THREAD_ATTR_STACKSIZE = "_POSIX_VERSION"
  3604. const m__POSIX_THREAD_CPUTIME = "_POSIX_VERSION"
  3605. const m__POSIX_THREAD_PRIORITY_SCHEDULING = "_POSIX_VERSION"
  3606. const m__POSIX_THREAD_PROCESS_SHARED = "_POSIX_VERSION"
  3607. const m__POSIX_THREAD_SAFE_FUNCTIONS = "_POSIX_VERSION"
  3608. const m__POSIX_TIMEOUTS = "_POSIX_VERSION"
  3609. const m__POSIX_TIMERS = "_POSIX_VERSION"
  3610. const m__POSIX_V6_LP64_OFF64 = 1
  3611. const m__POSIX_V7_LP64_OFF64 = 1
  3612. const m__POSIX_VDISABLE = 0
  3613. const m__POSIX_VERSION = 200809
  3614. const m__SC_2_CHAR_TERM = 95
  3615. const m__SC_2_C_BIND = 47
  3616. const m__SC_2_C_DEV = 48
  3617. const m__SC_2_FORT_DEV = 49
  3618. const m__SC_2_FORT_RUN = 50
  3619. const m__SC_2_LOCALEDEF = 52
  3620. const m__SC_2_PBS = 168
  3621. const m__SC_2_PBS_ACCOUNTING = 169
  3622. const m__SC_2_PBS_CHECKPOINT = 175
  3623. const m__SC_2_PBS_LOCATE = 170
  3624. const m__SC_2_PBS_MESSAGE = 171
  3625. const m__SC_2_PBS_TRACK = 172
  3626. const m__SC_2_SW_DEV = 51
  3627. const m__SC_2_UPE = 97
  3628. const m__SC_2_VERSION = 46
  3629. const m__SC_ADVISORY_INFO = 132
  3630. const m__SC_AIO_LISTIO_MAX = 23
  3631. const m__SC_AIO_MAX = 24
  3632. const m__SC_AIO_PRIO_DELTA_MAX = 25
  3633. const m__SC_ARG_MAX = 0
  3634. const m__SC_ASYNCHRONOUS_IO = 12
  3635. const m__SC_ATEXIT_MAX = 87
  3636. const m__SC_AVPHYS_PAGES = 86
  3637. const m__SC_BARRIERS = 133
  3638. const m__SC_BC_BASE_MAX = 36
  3639. const m__SC_BC_DIM_MAX = 37
  3640. const m__SC_BC_SCALE_MAX = 38
  3641. const m__SC_BC_STRING_MAX = 39
  3642. const m__SC_CHILD_MAX = 1
  3643. const m__SC_CLK_TCK = 2
  3644. const m__SC_CLOCK_SELECTION = 137
  3645. const m__SC_COLL_WEIGHTS_MAX = 40
  3646. const m__SC_CPUTIME = 138
  3647. const m__SC_DELAYTIMER_MAX = 26
  3648. const m__SC_EXPR_NEST_MAX = 42
  3649. const m__SC_FSYNC = 15
  3650. const m__SC_GETGR_R_SIZE_MAX = 69
  3651. const m__SC_GETPW_R_SIZE_MAX = 70
  3652. const m__SC_HOST_NAME_MAX = 180
  3653. const m__SC_IOV_MAX = 60
  3654. const m__SC_IPV6 = 235
  3655. const m__SC_JOB_CONTROL = 7
  3656. const m__SC_LINE_MAX = 43
  3657. const m__SC_LOGIN_NAME_MAX = 71
  3658. const m__SC_MAPPED_FILES = 16
  3659. const m__SC_MEMLOCK = 17
  3660. const m__SC_MEMLOCK_RANGE = 18
  3661. const m__SC_MEMORY_PROTECTION = 19
  3662. const m__SC_MESSAGE_PASSING = 20
  3663. const m__SC_MINSIGSTKSZ = 249
  3664. const m__SC_MONOTONIC_CLOCK = 149
  3665. const m__SC_MQ_OPEN_MAX = 27
  3666. const m__SC_MQ_PRIO_MAX = 28
  3667. const m__SC_NGROUPS_MAX = 3
  3668. const m__SC_NPROCESSORS_CONF = 83
  3669. const m__SC_NPROCESSORS_ONLN = 84
  3670. const m__SC_NZERO = 109
  3671. const m__SC_OPEN_MAX = 4
  3672. const m__SC_PAGESIZE = 30
  3673. const m__SC_PAGE_SIZE = 30
  3674. const m__SC_PASS_MAX = 88
  3675. const m__SC_PHYS_PAGES = 85
  3676. const m__SC_PRIORITIZED_IO = 13
  3677. const m__SC_PRIORITY_SCHEDULING = 10
  3678. const m__SC_RAW_SOCKETS = 236
  3679. const m__SC_READER_WRITER_LOCKS = 153
  3680. const m__SC_REALTIME_SIGNALS = 9
  3681. const m__SC_REGEXP = 155
  3682. const m__SC_RE_DUP_MAX = 44
  3683. const m__SC_RTSIG_MAX = 31
  3684. const m__SC_SAVED_IDS = 8
  3685. const m__SC_SEMAPHORES = 21
  3686. const m__SC_SEM_NSEMS_MAX = 32
  3687. const m__SC_SEM_VALUE_MAX = 33
  3688. const m__SC_SHARED_MEMORY_OBJECTS = 22
  3689. const m__SC_SHELL = 157
  3690. const m__SC_SIGQUEUE_MAX = 34
  3691. const m__SC_SIGSTKSZ = 250
  3692. const m__SC_SPAWN = 159
  3693. const m__SC_SPIN_LOCKS = 154
  3694. const m__SC_SPORADIC_SERVER = 160
  3695. const m__SC_SS_REPL_MAX = 241
  3696. const m__SC_STREAMS = 174
  3697. const m__SC_STREAM_MAX = 5
  3698. const m__SC_SYMLOOP_MAX = 173
  3699. const m__SC_SYNCHRONIZED_IO = 14
  3700. const m__SC_THREADS = 67
  3701. const m__SC_THREAD_ATTR_STACKADDR = 77
  3702. const m__SC_THREAD_ATTR_STACKSIZE = 78
  3703. const m__SC_THREAD_CPUTIME = 139
  3704. const m__SC_THREAD_DESTRUCTOR_ITERATIONS = 73
  3705. const m__SC_THREAD_KEYS_MAX = 74
  3706. const m__SC_THREAD_PRIORITY_SCHEDULING = 79
  3707. const m__SC_THREAD_PRIO_INHERIT = 80
  3708. const m__SC_THREAD_PRIO_PROTECT = 81
  3709. const m__SC_THREAD_PROCESS_SHARED = 82
  3710. const m__SC_THREAD_ROBUST_PRIO_INHERIT = 247
  3711. const m__SC_THREAD_ROBUST_PRIO_PROTECT = 248
  3712. const m__SC_THREAD_SAFE_FUNCTIONS = 68
  3713. const m__SC_THREAD_SPORADIC_SERVER = 161
  3714. const m__SC_THREAD_STACK_MIN = 75
  3715. const m__SC_THREAD_THREADS_MAX = 76
  3716. const m__SC_TIMEOUTS = 164
  3717. const m__SC_TIMERS = 11
  3718. const m__SC_TIMER_MAX = 35
  3719. const m__SC_TRACE = 181
  3720. const m__SC_TRACE_EVENT_FILTER = 182
  3721. const m__SC_TRACE_EVENT_NAME_MAX = 242
  3722. const m__SC_TRACE_INHERIT = 183
  3723. const m__SC_TRACE_LOG = 184
  3724. const m__SC_TRACE_NAME_MAX = 243
  3725. const m__SC_TRACE_SYS_MAX = 244
  3726. const m__SC_TRACE_USER_EVENT_MAX = 245
  3727. const m__SC_TTY_NAME_MAX = 72
  3728. const m__SC_TYPED_MEMORY_OBJECTS = 165
  3729. const m__SC_TZNAME_MAX = 6
  3730. const m__SC_UIO_MAXIOV = 60
  3731. const m__SC_V6_ILP32_OFF32 = 176
  3732. const m__SC_V6_ILP32_OFFBIG = 177
  3733. const m__SC_V6_LP64_OFF64 = 178
  3734. const m__SC_V6_LPBIG_OFFBIG = 179
  3735. const m__SC_V7_ILP32_OFF32 = 237
  3736. const m__SC_V7_ILP32_OFFBIG = 238
  3737. const m__SC_V7_LP64_OFF64 = 239
  3738. const m__SC_V7_LPBIG_OFFBIG = 240
  3739. const m__SC_VERSION = 29
  3740. const m__SC_XBS5_ILP32_OFF32 = 125
  3741. const m__SC_XBS5_ILP32_OFFBIG = 126
  3742. const m__SC_XBS5_LP64_OFF64 = 127
  3743. const m__SC_XBS5_LPBIG_OFFBIG = 128
  3744. const m__SC_XOPEN_CRYPT = 92
  3745. const m__SC_XOPEN_ENH_I18N = 93
  3746. const m__SC_XOPEN_LEGACY = 129
  3747. const m__SC_XOPEN_REALTIME = 130
  3748. const m__SC_XOPEN_REALTIME_THREADS = 131
  3749. const m__SC_XOPEN_SHM = 94
  3750. const m__SC_XOPEN_STREAMS = 246
  3751. const m__SC_XOPEN_UNIX = 91
  3752. const m__SC_XOPEN_VERSION = 89
  3753. const m__SC_XOPEN_XCU_VERSION = 90
  3754. const m__SC_XOPEN_XPG2 = 98
  3755. const m__SC_XOPEN_XPG3 = 99
  3756. const m__SC_XOPEN_XPG4 = 100
  3757. const m__XOPEN_ENH_I18N = 1
  3758. const m__XOPEN_UNIX = 1
  3759. const m__XOPEN_VERSION = 700
  3760. const m_alloca = "__builtin_alloca"
  3761. const m_loff_t = "off_t"
  3762. type Tstat = struct {
  3763. Fst_dev Tdev_t
  3764. Fst_ino Tino_t
  3765. Fst_nlink Tnlink_t
  3766. Fst_mode Tmode_t
  3767. Fst_uid Tuid_t
  3768. Fst_gid Tgid_t
  3769. F__pad0 uint32
  3770. Fst_rdev Tdev_t
  3771. Fst_size Toff_t
  3772. Fst_blksize Tblksize_t
  3773. Fst_blocks Tblkcnt_t
  3774. Fst_atim Ttimespec
  3775. Fst_mtim Ttimespec
  3776. Fst_ctim Ttimespec
  3777. F__unused [3]int64
  3778. }
  3779. type Tstatx_timestamp = struct {
  3780. Ftv_sec Tint64_t
  3781. Ftv_nsec Tuint32_t
  3782. F__pad Tuint32_t
  3783. }
  3784. type Tstatx = struct {
  3785. Fstx_mask Tuint32_t
  3786. Fstx_blksize Tuint32_t
  3787. Fstx_attributes Tuint64_t
  3788. Fstx_nlink Tuint32_t
  3789. Fstx_uid Tuint32_t
  3790. Fstx_gid Tuint32_t
  3791. Fstx_mode Tuint16_t
  3792. F__pad0 [1]Tuint16_t
  3793. Fstx_ino Tuint64_t
  3794. Fstx_size Tuint64_t
  3795. Fstx_blocks Tuint64_t
  3796. Fstx_attributes_mask Tuint64_t
  3797. Fstx_atime Tstatx_timestamp
  3798. Fstx_btime Tstatx_timestamp
  3799. Fstx_ctime Tstatx_timestamp
  3800. Fstx_mtime Tstatx_timestamp
  3801. Fstx_rdev_major Tuint32_t
  3802. Fstx_rdev_minor Tuint32_t
  3803. Fstx_dev_major Tuint32_t
  3804. Fstx_dev_minor Tuint32_t
  3805. F__pad1 [14]Tuint64_t
  3806. }
  3807. type Tiovec = struct {
  3808. Fiov_base uintptr
  3809. Fiov_len Tsize_t
  3810. }
  3811. type Tflock = struct {
  3812. Fl_type int16
  3813. Fl_whence int16
  3814. Fl_start Toff_t
  3815. Fl_len Toff_t
  3816. Fl_pid Tpid_t
  3817. }
  3818. type Tfile_handle = struct {
  3819. Fhandle_bytes uint32
  3820. Fhandle_type int32
  3821. }
  3822. type Tf_owner_ex = struct {
  3823. Ftype1 int32
  3824. Fpid Tpid_t
  3825. }
  3826. type Twchar_t = int32
  3827. type Tdiv_t = struct {
  3828. Fquot int32
  3829. Frem int32
  3830. }
  3831. type Tldiv_t = struct {
  3832. Fquot int64
  3833. Frem int64
  3834. }
  3835. type Tlldiv_t = struct {
  3836. Fquot int64
  3837. Frem int64
  3838. }
  3839. type Tva_list = uintptr
  3840. type t__isoc_va_list = uintptr
  3841. type Tfpos_t = struct {
  3842. F__lldata [0]int64
  3843. F__align [0]float64
  3844. F__opaque [16]int8
  3845. }
  3846. type T_G_fpos64_t = Tfpos_t
  3847. type Tcookie_io_functions_t = struct {
  3848. Fread uintptr
  3849. Fwrite uintptr
  3850. Fseek uintptr
  3851. Fclose1 uintptr
  3852. }
  3853. type T_IO_cookie_io_functions_t = Tcookie_io_functions_t
  3854. // C documentation
  3855. //
  3856. // /* ARGSUSED */
  3857. func XMD2End(tls *libc.TLS, ctx uintptr, buf uintptr) (r uintptr) {
  3858. bp := tls.Alloc(16)
  3859. defer tls.Free(16)
  3860. var i int32
  3861. var v1 uintptr
  3862. var v2 bool
  3863. var _ /* digest at bp+0 */ [16]Tuint8_t
  3864. _, _, _ = i, v1, v2
  3865. if v2 = buf == libc.UintptrFromInt32(0); v2 {
  3866. v1 = libc.Xmalloc(tls, uint64(m_MD2_DIGEST_STRING_LENGTH))
  3867. buf = v1
  3868. }
  3869. if v2 && v1 == libc.UintptrFromInt32(0) {
  3870. return libc.UintptrFromInt32(0)
  3871. }
  3872. XMD2Final(tls, bp, ctx)
  3873. i = 0
  3874. for {
  3875. if !(i < int32(m_MD2_DIGEST_LENGTH)) {
  3876. break
  3877. }
  3878. *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = _hex[libc.Int32FromUint8((*(*[16]Tuint8_t)(unsafe.Pointer(bp)))[i])>>int32(4)]
  3879. *(*int8)(unsafe.Pointer(buf + uintptr(i+i+int32(1)))) = _hex[libc.Int32FromUint8((*(*[16]Tuint8_t)(unsafe.Pointer(bp)))[i])&int32(0x0f)]
  3880. goto _3
  3881. _3:
  3882. ;
  3883. i++
  3884. }
  3885. *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = int8('\000')
  3886. libc.Xmemset(tls, bp, 0, uint64(16))
  3887. return buf
  3888. }
  3889. var _hex = [17]int8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}
  3890. func XMD2FileChunk(tls *libc.TLS, filename uintptr, buf uintptr, off Toff_t, len1 Toff_t) (r uintptr) {
  3891. bp := tls.Alloc(1248)
  3892. defer tls.Free(1248)
  3893. var fd, save_errno, v1 int32
  3894. var nr, v2 Tssize_t
  3895. var v3 int64
  3896. var v4 bool
  3897. var v5 uintptr
  3898. var _ /* buffer at bp+144 */ [1024]Tuint8_t
  3899. var _ /* ctx at bp+1168 */ TMD2_CTX
  3900. var _ /* sb at bp+0 */ Tstat
  3901. _, _, _, _, _, _, _, _ = fd, nr, save_errno, v1, v2, v3, v4, v5
  3902. XMD2Init(tls, bp+1168)
  3903. v1 = libc.Xopen(tls, filename, m_O_RDONLY, 0)
  3904. fd = v1
  3905. if v1 < 0 {
  3906. return libc.UintptrFromInt32(0)
  3907. }
  3908. if len1 == 0 {
  3909. if libc.Xfstat(tls, fd, bp) == -int32(1) {
  3910. libc.Xclose(tls, fd)
  3911. return libc.UintptrFromInt32(0)
  3912. }
  3913. len1 = (*(*Tstat)(unsafe.Pointer(bp))).Fst_size
  3914. }
  3915. if off > 0 && libc.Xlseek(tls, fd, off, 0) < 0 {
  3916. libc.Xclose(tls, fd)
  3917. return libc.UintptrFromInt32(0)
  3918. }
  3919. for {
  3920. if libc.Int64FromInt64(1024) < len1 {
  3921. v3 = libc.Int64FromInt64(1024)
  3922. } else {
  3923. v3 = len1
  3924. }
  3925. v2 = libc.Xread(tls, fd, bp+144, libc.Uint64FromInt64(v3))
  3926. nr = v2
  3927. if !(v2 > 0) {
  3928. break
  3929. }
  3930. XMD2Update(tls, bp+1168, bp+144, uint32(libc.Uint64FromInt64(nr)))
  3931. if v4 = len1 > 0; v4 {
  3932. len1 -= nr
  3933. }
  3934. if v4 && len1 == 0 {
  3935. break
  3936. }
  3937. }
  3938. save_errno = *(*int32)(unsafe.Pointer(libc.X__errno_location(tls)))
  3939. libc.Xclose(tls, fd)
  3940. *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) = save_errno
  3941. if nr < 0 {
  3942. v5 = libc.UintptrFromInt32(0)
  3943. } else {
  3944. v5 = XMD2End(tls, bp+1168, buf)
  3945. }
  3946. return v5
  3947. }
  3948. func XMD2File(tls *libc.TLS, filename uintptr, buf uintptr) (r uintptr) {
  3949. return XMD2FileChunk(tls, filename, buf, libc.Int64FromInt32(0), libc.Int64FromInt32(0))
  3950. }
  3951. func XMD2Data(tls *libc.TLS, data uintptr, len1 Tsize_t, buf uintptr) (r uintptr) {
  3952. bp := tls.Alloc(80)
  3953. defer tls.Free(80)
  3954. var _ /* ctx at bp+0 */ TMD2_CTX
  3955. XMD2Init(tls, bp)
  3956. XMD2Update(tls, bp, data, uint32(len1))
  3957. return XMD2End(tls, bp, buf)
  3958. }
  3959. // C documentation
  3960. //
  3961. // /* ARGSUSED */
  3962. func XMD4End(tls *libc.TLS, ctx uintptr, buf uintptr) (r uintptr) {
  3963. bp := tls.Alloc(16)
  3964. defer tls.Free(16)
  3965. var i int32
  3966. var v1 uintptr
  3967. var v2 bool
  3968. var _ /* digest at bp+0 */ [16]Tuint8_t
  3969. _, _, _ = i, v1, v2
  3970. if v2 = buf == libc.UintptrFromInt32(0); v2 {
  3971. v1 = libc.Xmalloc(tls, libc.Uint64FromInt32(libc.Int32FromInt32(m_MD4_DIGEST_LENGTH)*libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))
  3972. buf = v1
  3973. }
  3974. if v2 && v1 == libc.UintptrFromInt32(0) {
  3975. return libc.UintptrFromInt32(0)
  3976. }
  3977. XMD4Final(tls, bp, ctx)
  3978. i = 0
  3979. for {
  3980. if !(i < int32(m_MD4_DIGEST_LENGTH)) {
  3981. break
  3982. }
  3983. *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = _hex1[libc.Int32FromUint8((*(*[16]Tuint8_t)(unsafe.Pointer(bp)))[i])>>int32(4)]
  3984. *(*int8)(unsafe.Pointer(buf + uintptr(i+i+int32(1)))) = _hex1[libc.Int32FromUint8((*(*[16]Tuint8_t)(unsafe.Pointer(bp)))[i])&int32(0x0f)]
  3985. goto _3
  3986. _3:
  3987. ;
  3988. i++
  3989. }
  3990. *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = int8('\000')
  3991. libc.Xmemset(tls, bp, 0, uint64(16))
  3992. return buf
  3993. }
  3994. var _hex1 = [17]int8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}
  3995. func XMD4FileChunk(tls *libc.TLS, filename uintptr, buf uintptr, off Toff_t, len1 Toff_t) (r uintptr) {
  3996. bp := tls.Alloc(1264)
  3997. defer tls.Free(1264)
  3998. var fd, save_errno, v1 int32
  3999. var nr, v2 Tssize_t
  4000. var v3 int64
  4001. var v4 bool
  4002. var v5 uintptr
  4003. var _ /* buffer at bp+144 */ [1024]Tuint8_t
  4004. var _ /* ctx at bp+1168 */ TMD4_CTX
  4005. var _ /* sb at bp+0 */ Tstat
  4006. _, _, _, _, _, _, _, _ = fd, nr, save_errno, v1, v2, v3, v4, v5
  4007. XMD4Init(tls, bp+1168)
  4008. v1 = libc.Xopen(tls, filename, m_O_RDONLY, 0)
  4009. fd = v1
  4010. if v1 < 0 {
  4011. return libc.UintptrFromInt32(0)
  4012. }
  4013. if len1 == 0 {
  4014. if libc.Xfstat(tls, fd, bp) == -int32(1) {
  4015. libc.Xclose(tls, fd)
  4016. return libc.UintptrFromInt32(0)
  4017. }
  4018. len1 = (*(*Tstat)(unsafe.Pointer(bp))).Fst_size
  4019. }
  4020. if off > 0 && libc.Xlseek(tls, fd, off, 0) < 0 {
  4021. libc.Xclose(tls, fd)
  4022. return libc.UintptrFromInt32(0)
  4023. }
  4024. for {
  4025. if libc.Int64FromInt64(1024) < len1 {
  4026. v3 = libc.Int64FromInt64(1024)
  4027. } else {
  4028. v3 = len1
  4029. }
  4030. v2 = libc.Xread(tls, fd, bp+144, libc.Uint64FromInt64(v3))
  4031. nr = v2
  4032. if !(v2 > 0) {
  4033. break
  4034. }
  4035. XMD4Update(tls, bp+1168, bp+144, libc.Uint64FromInt64(nr))
  4036. if v4 = len1 > 0; v4 {
  4037. len1 -= nr
  4038. }
  4039. if v4 && len1 == 0 {
  4040. break
  4041. }
  4042. }
  4043. save_errno = *(*int32)(unsafe.Pointer(libc.X__errno_location(tls)))
  4044. libc.Xclose(tls, fd)
  4045. *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) = save_errno
  4046. if nr < 0 {
  4047. v5 = libc.UintptrFromInt32(0)
  4048. } else {
  4049. v5 = XMD4End(tls, bp+1168, buf)
  4050. }
  4051. return v5
  4052. }
  4053. func XMD4File(tls *libc.TLS, filename uintptr, buf uintptr) (r uintptr) {
  4054. return XMD4FileChunk(tls, filename, buf, libc.Int64FromInt32(0), libc.Int64FromInt32(0))
  4055. }
  4056. func XMD4Data(tls *libc.TLS, data uintptr, len1 Tsize_t, buf uintptr) (r uintptr) {
  4057. bp := tls.Alloc(96)
  4058. defer tls.Free(96)
  4059. var _ /* ctx at bp+0 */ TMD4_CTX
  4060. XMD4Init(tls, bp)
  4061. XMD4Update(tls, bp, data, len1)
  4062. return XMD4End(tls, bp, buf)
  4063. }
  4064. /* Avoid polluting the namespace. Even though this makes this usage
  4065. * implementation-specific, defining it unconditionally should not be
  4066. * a problem, and better than possibly breaking unexpecting code. */
  4067. // C documentation
  4068. //
  4069. // /* ARGSUSED */
  4070. func XMD5End(tls *libc.TLS, ctx uintptr, buf uintptr) (r uintptr) {
  4071. bp := tls.Alloc(16)
  4072. defer tls.Free(16)
  4073. var i int32
  4074. var v1 uintptr
  4075. var v2 bool
  4076. var _ /* digest at bp+0 */ [16]Tuint8_t
  4077. _, _, _ = i, v1, v2
  4078. if v2 = buf == libc.UintptrFromInt32(0); v2 {
  4079. v1 = libc.Xmalloc(tls, libc.Uint64FromInt32(libc.Int32FromInt32(m_MD5_DIGEST_LENGTH)*libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))
  4080. buf = v1
  4081. }
  4082. if v2 && v1 == libc.UintptrFromInt32(0) {
  4083. return libc.UintptrFromInt32(0)
  4084. }
  4085. XMD5Final(tls, bp, ctx)
  4086. i = 0
  4087. for {
  4088. if !(i < int32(m_MD5_DIGEST_LENGTH)) {
  4089. break
  4090. }
  4091. *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = _hex2[libc.Int32FromUint8((*(*[16]Tuint8_t)(unsafe.Pointer(bp)))[i])>>int32(4)]
  4092. *(*int8)(unsafe.Pointer(buf + uintptr(i+i+int32(1)))) = _hex2[libc.Int32FromUint8((*(*[16]Tuint8_t)(unsafe.Pointer(bp)))[i])&int32(0x0f)]
  4093. goto _3
  4094. _3:
  4095. ;
  4096. i++
  4097. }
  4098. *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = int8('\000')
  4099. libc.Xmemset(tls, bp, 0, uint64(16))
  4100. return buf
  4101. }
  4102. var _hex2 = [17]int8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}
  4103. func XMD5FileChunk(tls *libc.TLS, filename uintptr, buf uintptr, off Toff_t, len1 Toff_t) (r uintptr) {
  4104. bp := tls.Alloc(1264)
  4105. defer tls.Free(1264)
  4106. var fd, save_errno, v1 int32
  4107. var nr, v2 Tssize_t
  4108. var v3 int64
  4109. var v4 bool
  4110. var v5 uintptr
  4111. var _ /* buffer at bp+144 */ [1024]Tuint8_t
  4112. var _ /* ctx at bp+1168 */ TMD5_CTX
  4113. var _ /* sb at bp+0 */ Tstat
  4114. _, _, _, _, _, _, _, _ = fd, nr, save_errno, v1, v2, v3, v4, v5
  4115. XMD5Init(tls, bp+1168)
  4116. v1 = libc.Xopen(tls, filename, m_O_RDONLY, 0)
  4117. fd = v1
  4118. if v1 < 0 {
  4119. return libc.UintptrFromInt32(0)
  4120. }
  4121. if len1 == 0 {
  4122. if libc.Xfstat(tls, fd, bp) == -int32(1) {
  4123. libc.Xclose(tls, fd)
  4124. return libc.UintptrFromInt32(0)
  4125. }
  4126. len1 = (*(*Tstat)(unsafe.Pointer(bp))).Fst_size
  4127. }
  4128. if off > 0 && libc.Xlseek(tls, fd, off, 0) < 0 {
  4129. libc.Xclose(tls, fd)
  4130. return libc.UintptrFromInt32(0)
  4131. }
  4132. for {
  4133. if libc.Int64FromInt64(1024) < len1 {
  4134. v3 = libc.Int64FromInt64(1024)
  4135. } else {
  4136. v3 = len1
  4137. }
  4138. v2 = libc.Xread(tls, fd, bp+144, libc.Uint64FromInt64(v3))
  4139. nr = v2
  4140. if !(v2 > 0) {
  4141. break
  4142. }
  4143. XMD5Update(tls, bp+1168, bp+144, libc.Uint64FromInt64(nr))
  4144. if v4 = len1 > 0; v4 {
  4145. len1 -= nr
  4146. }
  4147. if v4 && len1 == 0 {
  4148. break
  4149. }
  4150. }
  4151. save_errno = *(*int32)(unsafe.Pointer(libc.X__errno_location(tls)))
  4152. libc.Xclose(tls, fd)
  4153. *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) = save_errno
  4154. if nr < 0 {
  4155. v5 = libc.UintptrFromInt32(0)
  4156. } else {
  4157. v5 = XMD5End(tls, bp+1168, buf)
  4158. }
  4159. return v5
  4160. }
  4161. func XMD5File(tls *libc.TLS, filename uintptr, buf uintptr) (r uintptr) {
  4162. return XMD5FileChunk(tls, filename, buf, libc.Int64FromInt32(0), libc.Int64FromInt32(0))
  4163. }
  4164. func XMD5Data(tls *libc.TLS, data uintptr, len1 Tsize_t, buf uintptr) (r uintptr) {
  4165. bp := tls.Alloc(96)
  4166. defer tls.Free(96)
  4167. var _ /* ctx at bp+0 */ TMD5_CTX
  4168. XMD5Init(tls, bp)
  4169. XMD5Update(tls, bp, data, len1)
  4170. return XMD5End(tls, bp, buf)
  4171. }
  4172. // C documentation
  4173. //
  4174. // /* ARGSUSED */
  4175. func XRMD160End(tls *libc.TLS, ctx uintptr, buf uintptr) (r uintptr) {
  4176. bp := tls.Alloc(32)
  4177. defer tls.Free(32)
  4178. var i int32
  4179. var v1 uintptr
  4180. var v2 bool
  4181. var _ /* digest at bp+0 */ [20]Tuint8_t
  4182. _, _, _ = i, v1, v2
  4183. if v2 = buf == libc.UintptrFromInt32(0); v2 {
  4184. v1 = libc.Xmalloc(tls, libc.Uint64FromInt32(libc.Int32FromInt32(m_RMD160_DIGEST_LENGTH)*libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))
  4185. buf = v1
  4186. }
  4187. if v2 && v1 == libc.UintptrFromInt32(0) {
  4188. return libc.UintptrFromInt32(0)
  4189. }
  4190. XRMD160Final(tls, bp, ctx)
  4191. i = 0
  4192. for {
  4193. if !(i < int32(m_RMD160_DIGEST_LENGTH)) {
  4194. break
  4195. }
  4196. *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = _hex3[libc.Int32FromUint8((*(*[20]Tuint8_t)(unsafe.Pointer(bp)))[i])>>int32(4)]
  4197. *(*int8)(unsafe.Pointer(buf + uintptr(i+i+int32(1)))) = _hex3[libc.Int32FromUint8((*(*[20]Tuint8_t)(unsafe.Pointer(bp)))[i])&int32(0x0f)]
  4198. goto _3
  4199. _3:
  4200. ;
  4201. i++
  4202. }
  4203. *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = int8('\000')
  4204. libc.Xmemset(tls, bp, 0, uint64(20))
  4205. return buf
  4206. }
  4207. var _hex3 = [17]int8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}
  4208. func XRMD160FileChunk(tls *libc.TLS, filename uintptr, buf uintptr, off Toff_t, len1 Toff_t) (r uintptr) {
  4209. bp := tls.Alloc(1264)
  4210. defer tls.Free(1264)
  4211. var fd, save_errno, v1 int32
  4212. var nr, v2 Tssize_t
  4213. var v3 int64
  4214. var v4 bool
  4215. var v5 uintptr
  4216. var _ /* buffer at bp+144 */ [1024]Tuint8_t
  4217. var _ /* ctx at bp+1168 */ TRMD160_CTX
  4218. var _ /* sb at bp+0 */ Tstat
  4219. _, _, _, _, _, _, _, _ = fd, nr, save_errno, v1, v2, v3, v4, v5
  4220. XRMD160Init(tls, bp+1168)
  4221. v1 = libc.Xopen(tls, filename, m_O_RDONLY, 0)
  4222. fd = v1
  4223. if v1 < 0 {
  4224. return libc.UintptrFromInt32(0)
  4225. }
  4226. if len1 == 0 {
  4227. if libc.Xfstat(tls, fd, bp) == -int32(1) {
  4228. libc.Xclose(tls, fd)
  4229. return libc.UintptrFromInt32(0)
  4230. }
  4231. len1 = (*(*Tstat)(unsafe.Pointer(bp))).Fst_size
  4232. }
  4233. if off > 0 && libc.Xlseek(tls, fd, off, 0) < 0 {
  4234. libc.Xclose(tls, fd)
  4235. return libc.UintptrFromInt32(0)
  4236. }
  4237. for {
  4238. if libc.Int64FromInt64(1024) < len1 {
  4239. v3 = libc.Int64FromInt64(1024)
  4240. } else {
  4241. v3 = len1
  4242. }
  4243. v2 = libc.Xread(tls, fd, bp+144, libc.Uint64FromInt64(v3))
  4244. nr = v2
  4245. if !(v2 > 0) {
  4246. break
  4247. }
  4248. XRMD160Update(tls, bp+1168, bp+144, libc.Uint64FromInt64(nr))
  4249. if v4 = len1 > 0; v4 {
  4250. len1 -= nr
  4251. }
  4252. if v4 && len1 == 0 {
  4253. break
  4254. }
  4255. }
  4256. save_errno = *(*int32)(unsafe.Pointer(libc.X__errno_location(tls)))
  4257. libc.Xclose(tls, fd)
  4258. *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) = save_errno
  4259. if nr < 0 {
  4260. v5 = libc.UintptrFromInt32(0)
  4261. } else {
  4262. v5 = XRMD160End(tls, bp+1168, buf)
  4263. }
  4264. return v5
  4265. }
  4266. func XRMD160File(tls *libc.TLS, filename uintptr, buf uintptr) (r uintptr) {
  4267. return XRMD160FileChunk(tls, filename, buf, libc.Int64FromInt32(0), libc.Int64FromInt32(0))
  4268. }
  4269. func XRMD160Data(tls *libc.TLS, data uintptr, len1 Tsize_t, buf uintptr) (r uintptr) {
  4270. bp := tls.Alloc(96)
  4271. defer tls.Free(96)
  4272. var _ /* ctx at bp+0 */ TRMD160_CTX
  4273. XRMD160Init(tls, bp)
  4274. XRMD160Update(tls, bp, data, len1)
  4275. return XRMD160End(tls, bp, buf)
  4276. }
  4277. // C documentation
  4278. //
  4279. // /* ARGSUSED */
  4280. func XSHA1End(tls *libc.TLS, ctx uintptr, buf uintptr) (r uintptr) {
  4281. bp := tls.Alloc(32)
  4282. defer tls.Free(32)
  4283. var i int32
  4284. var v1 uintptr
  4285. var v2 bool
  4286. var _ /* digest at bp+0 */ [20]Tuint8_t
  4287. _, _, _ = i, v1, v2
  4288. if v2 = buf == libc.UintptrFromInt32(0); v2 {
  4289. v1 = libc.Xmalloc(tls, libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA1_DIGEST_LENGTH)*libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))
  4290. buf = v1
  4291. }
  4292. if v2 && v1 == libc.UintptrFromInt32(0) {
  4293. return libc.UintptrFromInt32(0)
  4294. }
  4295. XSHA1Final(tls, bp, ctx)
  4296. i = 0
  4297. for {
  4298. if !(i < int32(m_SHA1_DIGEST_LENGTH)) {
  4299. break
  4300. }
  4301. *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = _hex4[libc.Int32FromUint8((*(*[20]Tuint8_t)(unsafe.Pointer(bp)))[i])>>int32(4)]
  4302. *(*int8)(unsafe.Pointer(buf + uintptr(i+i+int32(1)))) = _hex4[libc.Int32FromUint8((*(*[20]Tuint8_t)(unsafe.Pointer(bp)))[i])&int32(0x0f)]
  4303. goto _3
  4304. _3:
  4305. ;
  4306. i++
  4307. }
  4308. *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = int8('\000')
  4309. libc.Xmemset(tls, bp, 0, uint64(20))
  4310. return buf
  4311. }
  4312. var _hex4 = [17]int8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}
  4313. func XSHA1FileChunk(tls *libc.TLS, filename uintptr, buf uintptr, off Toff_t, len1 Toff_t) (r uintptr) {
  4314. bp := tls.Alloc(1264)
  4315. defer tls.Free(1264)
  4316. var fd, save_errno, v1 int32
  4317. var nr, v2 Tssize_t
  4318. var v3 int64
  4319. var v4 bool
  4320. var v5 uintptr
  4321. var _ /* buffer at bp+144 */ [1024]Tuint8_t
  4322. var _ /* ctx at bp+1168 */ TSHA1_CTX
  4323. var _ /* sb at bp+0 */ Tstat
  4324. _, _, _, _, _, _, _, _ = fd, nr, save_errno, v1, v2, v3, v4, v5
  4325. XSHA1Init(tls, bp+1168)
  4326. v1 = libc.Xopen(tls, filename, m_O_RDONLY, 0)
  4327. fd = v1
  4328. if v1 < 0 {
  4329. return libc.UintptrFromInt32(0)
  4330. }
  4331. if len1 == 0 {
  4332. if libc.Xfstat(tls, fd, bp) == -int32(1) {
  4333. libc.Xclose(tls, fd)
  4334. return libc.UintptrFromInt32(0)
  4335. }
  4336. len1 = (*(*Tstat)(unsafe.Pointer(bp))).Fst_size
  4337. }
  4338. if off > 0 && libc.Xlseek(tls, fd, off, 0) < 0 {
  4339. libc.Xclose(tls, fd)
  4340. return libc.UintptrFromInt32(0)
  4341. }
  4342. for {
  4343. if libc.Int64FromInt64(1024) < len1 {
  4344. v3 = libc.Int64FromInt64(1024)
  4345. } else {
  4346. v3 = len1
  4347. }
  4348. v2 = libc.Xread(tls, fd, bp+144, libc.Uint64FromInt64(v3))
  4349. nr = v2
  4350. if !(v2 > 0) {
  4351. break
  4352. }
  4353. XSHA1Update(tls, bp+1168, bp+144, libc.Uint64FromInt64(nr))
  4354. if v4 = len1 > 0; v4 {
  4355. len1 -= nr
  4356. }
  4357. if v4 && len1 == 0 {
  4358. break
  4359. }
  4360. }
  4361. save_errno = *(*int32)(unsafe.Pointer(libc.X__errno_location(tls)))
  4362. libc.Xclose(tls, fd)
  4363. *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) = save_errno
  4364. if nr < 0 {
  4365. v5 = libc.UintptrFromInt32(0)
  4366. } else {
  4367. v5 = XSHA1End(tls, bp+1168, buf)
  4368. }
  4369. return v5
  4370. }
  4371. func XSHA1File(tls *libc.TLS, filename uintptr, buf uintptr) (r uintptr) {
  4372. return XSHA1FileChunk(tls, filename, buf, libc.Int64FromInt32(0), libc.Int64FromInt32(0))
  4373. }
  4374. func XSHA1Data(tls *libc.TLS, data uintptr, len1 Tsize_t, buf uintptr) (r uintptr) {
  4375. bp := tls.Alloc(96)
  4376. defer tls.Free(96)
  4377. var _ /* ctx at bp+0 */ TSHA1_CTX
  4378. XSHA1Init(tls, bp)
  4379. XSHA1Update(tls, bp, data, len1)
  4380. return XSHA1End(tls, bp, buf)
  4381. }
  4382. // C documentation
  4383. //
  4384. // /* ARGSUSED */
  4385. func XSHA256End(tls *libc.TLS, ctx uintptr, buf uintptr) (r uintptr) {
  4386. bp := tls.Alloc(32)
  4387. defer tls.Free(32)
  4388. var i int32
  4389. var v1 uintptr
  4390. var v2 bool
  4391. var _ /* digest at bp+0 */ [32]Tuint8_t
  4392. _, _, _ = i, v1, v2
  4393. if v2 = buf == libc.UintptrFromInt32(0); v2 {
  4394. v1 = libc.Xmalloc(tls, libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA256_DIGEST_LENGTH)*libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))
  4395. buf = v1
  4396. }
  4397. if v2 && v1 == libc.UintptrFromInt32(0) {
  4398. return libc.UintptrFromInt32(0)
  4399. }
  4400. XSHA256Final(tls, bp, ctx)
  4401. i = 0
  4402. for {
  4403. if !(i < int32(m_SHA256_DIGEST_LENGTH)) {
  4404. break
  4405. }
  4406. *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = _hex5[libc.Int32FromUint8((*(*[32]Tuint8_t)(unsafe.Pointer(bp)))[i])>>int32(4)]
  4407. *(*int8)(unsafe.Pointer(buf + uintptr(i+i+int32(1)))) = _hex5[libc.Int32FromUint8((*(*[32]Tuint8_t)(unsafe.Pointer(bp)))[i])&int32(0x0f)]
  4408. goto _3
  4409. _3:
  4410. ;
  4411. i++
  4412. }
  4413. *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = int8('\000')
  4414. libc.Xmemset(tls, bp, 0, uint64(32))
  4415. return buf
  4416. }
  4417. var _hex5 = [17]int8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}
  4418. func XSHA256FileChunk(tls *libc.TLS, filename uintptr, buf uintptr, off Toff_t, len1 Toff_t) (r uintptr) {
  4419. bp := tls.Alloc(1376)
  4420. defer tls.Free(1376)
  4421. var fd, save_errno, v1 int32
  4422. var nr, v2 Tssize_t
  4423. var v3 int64
  4424. var v4 bool
  4425. var v5 uintptr
  4426. var _ /* buffer at bp+144 */ [1024]Tuint8_t
  4427. var _ /* ctx at bp+1168 */ TSHA2_CTX
  4428. var _ /* sb at bp+0 */ Tstat
  4429. _, _, _, _, _, _, _, _ = fd, nr, save_errno, v1, v2, v3, v4, v5
  4430. XSHA256Init(tls, bp+1168)
  4431. v1 = libc.Xopen(tls, filename, m_O_RDONLY, 0)
  4432. fd = v1
  4433. if v1 < 0 {
  4434. return libc.UintptrFromInt32(0)
  4435. }
  4436. if len1 == 0 {
  4437. if libc.Xfstat(tls, fd, bp) == -int32(1) {
  4438. libc.Xclose(tls, fd)
  4439. return libc.UintptrFromInt32(0)
  4440. }
  4441. len1 = (*(*Tstat)(unsafe.Pointer(bp))).Fst_size
  4442. }
  4443. if off > 0 && libc.Xlseek(tls, fd, off, 0) < 0 {
  4444. libc.Xclose(tls, fd)
  4445. return libc.UintptrFromInt32(0)
  4446. }
  4447. for {
  4448. if libc.Int64FromInt64(1024) < len1 {
  4449. v3 = libc.Int64FromInt64(1024)
  4450. } else {
  4451. v3 = len1
  4452. }
  4453. v2 = libc.Xread(tls, fd, bp+144, libc.Uint64FromInt64(v3))
  4454. nr = v2
  4455. if !(v2 > 0) {
  4456. break
  4457. }
  4458. XSHA256Update(tls, bp+1168, bp+144, libc.Uint64FromInt64(nr))
  4459. if v4 = len1 > 0; v4 {
  4460. len1 -= nr
  4461. }
  4462. if v4 && len1 == 0 {
  4463. break
  4464. }
  4465. }
  4466. save_errno = *(*int32)(unsafe.Pointer(libc.X__errno_location(tls)))
  4467. libc.Xclose(tls, fd)
  4468. *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) = save_errno
  4469. if nr < 0 {
  4470. v5 = libc.UintptrFromInt32(0)
  4471. } else {
  4472. v5 = XSHA256End(tls, bp+1168, buf)
  4473. }
  4474. return v5
  4475. }
  4476. func XSHA256File(tls *libc.TLS, filename uintptr, buf uintptr) (r uintptr) {
  4477. return XSHA256FileChunk(tls, filename, buf, libc.Int64FromInt32(0), libc.Int64FromInt32(0))
  4478. }
  4479. func XSHA256Data(tls *libc.TLS, data uintptr, len1 Tsize_t, buf uintptr) (r uintptr) {
  4480. bp := tls.Alloc(208)
  4481. defer tls.Free(208)
  4482. var _ /* ctx at bp+0 */ TSHA2_CTX
  4483. XSHA256Init(tls, bp)
  4484. XSHA256Update(tls, bp, data, len1)
  4485. return XSHA256End(tls, bp, buf)
  4486. }
  4487. // C documentation
  4488. //
  4489. // /* ARGSUSED */
  4490. func XSHA384End(tls *libc.TLS, ctx uintptr, buf uintptr) (r uintptr) {
  4491. bp := tls.Alloc(48)
  4492. defer tls.Free(48)
  4493. var i int32
  4494. var v1 uintptr
  4495. var v2 bool
  4496. var _ /* digest at bp+0 */ [48]Tuint8_t
  4497. _, _, _ = i, v1, v2
  4498. if v2 = buf == libc.UintptrFromInt32(0); v2 {
  4499. v1 = libc.Xmalloc(tls, libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA384_DIGEST_LENGTH)*libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))
  4500. buf = v1
  4501. }
  4502. if v2 && v1 == libc.UintptrFromInt32(0) {
  4503. return libc.UintptrFromInt32(0)
  4504. }
  4505. XSHA384Final(tls, bp, ctx)
  4506. i = 0
  4507. for {
  4508. if !(i < int32(m_SHA384_DIGEST_LENGTH)) {
  4509. break
  4510. }
  4511. *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = _hex6[libc.Int32FromUint8((*(*[48]Tuint8_t)(unsafe.Pointer(bp)))[i])>>int32(4)]
  4512. *(*int8)(unsafe.Pointer(buf + uintptr(i+i+int32(1)))) = _hex6[libc.Int32FromUint8((*(*[48]Tuint8_t)(unsafe.Pointer(bp)))[i])&int32(0x0f)]
  4513. goto _3
  4514. _3:
  4515. ;
  4516. i++
  4517. }
  4518. *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = int8('\000')
  4519. libc.Xmemset(tls, bp, 0, uint64(48))
  4520. return buf
  4521. }
  4522. var _hex6 = [17]int8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}
  4523. func XSHA384FileChunk(tls *libc.TLS, filename uintptr, buf uintptr, off Toff_t, len1 Toff_t) (r uintptr) {
  4524. bp := tls.Alloc(1376)
  4525. defer tls.Free(1376)
  4526. var fd, save_errno, v1 int32
  4527. var nr, v2 Tssize_t
  4528. var v3 int64
  4529. var v4 bool
  4530. var v5 uintptr
  4531. var _ /* buffer at bp+144 */ [1024]Tuint8_t
  4532. var _ /* ctx at bp+1168 */ TSHA2_CTX
  4533. var _ /* sb at bp+0 */ Tstat
  4534. _, _, _, _, _, _, _, _ = fd, nr, save_errno, v1, v2, v3, v4, v5
  4535. XSHA384Init(tls, bp+1168)
  4536. v1 = libc.Xopen(tls, filename, m_O_RDONLY, 0)
  4537. fd = v1
  4538. if v1 < 0 {
  4539. return libc.UintptrFromInt32(0)
  4540. }
  4541. if len1 == 0 {
  4542. if libc.Xfstat(tls, fd, bp) == -int32(1) {
  4543. libc.Xclose(tls, fd)
  4544. return libc.UintptrFromInt32(0)
  4545. }
  4546. len1 = (*(*Tstat)(unsafe.Pointer(bp))).Fst_size
  4547. }
  4548. if off > 0 && libc.Xlseek(tls, fd, off, 0) < 0 {
  4549. libc.Xclose(tls, fd)
  4550. return libc.UintptrFromInt32(0)
  4551. }
  4552. for {
  4553. if libc.Int64FromInt64(1024) < len1 {
  4554. v3 = libc.Int64FromInt64(1024)
  4555. } else {
  4556. v3 = len1
  4557. }
  4558. v2 = libc.Xread(tls, fd, bp+144, libc.Uint64FromInt64(v3))
  4559. nr = v2
  4560. if !(v2 > 0) {
  4561. break
  4562. }
  4563. XSHA512Update(tls, bp+1168, bp+144, libc.Uint64FromInt64(nr))
  4564. if v4 = len1 > 0; v4 {
  4565. len1 -= nr
  4566. }
  4567. if v4 && len1 == 0 {
  4568. break
  4569. }
  4570. }
  4571. save_errno = *(*int32)(unsafe.Pointer(libc.X__errno_location(tls)))
  4572. libc.Xclose(tls, fd)
  4573. *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) = save_errno
  4574. if nr < 0 {
  4575. v5 = libc.UintptrFromInt32(0)
  4576. } else {
  4577. v5 = XSHA384End(tls, bp+1168, buf)
  4578. }
  4579. return v5
  4580. }
  4581. func XSHA384File(tls *libc.TLS, filename uintptr, buf uintptr) (r uintptr) {
  4582. return XSHA384FileChunk(tls, filename, buf, libc.Int64FromInt32(0), libc.Int64FromInt32(0))
  4583. }
  4584. func XSHA384Data(tls *libc.TLS, data uintptr, len1 Tsize_t, buf uintptr) (r uintptr) {
  4585. bp := tls.Alloc(208)
  4586. defer tls.Free(208)
  4587. var _ /* ctx at bp+0 */ TSHA2_CTX
  4588. XSHA384Init(tls, bp)
  4589. XSHA512Update(tls, bp, data, len1)
  4590. return XSHA384End(tls, bp, buf)
  4591. }
  4592. // C documentation
  4593. //
  4594. // /* ARGSUSED */
  4595. func XSHA512End(tls *libc.TLS, ctx uintptr, buf uintptr) (r uintptr) {
  4596. bp := tls.Alloc(64)
  4597. defer tls.Free(64)
  4598. var i int32
  4599. var v1 uintptr
  4600. var v2 bool
  4601. var _ /* digest at bp+0 */ [64]Tuint8_t
  4602. _, _, _ = i, v1, v2
  4603. if v2 = buf == libc.UintptrFromInt32(0); v2 {
  4604. v1 = libc.Xmalloc(tls, libc.Uint64FromInt32(libc.Int32FromInt32(m_SHA512_DIGEST_LENGTH)*libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))
  4605. buf = v1
  4606. }
  4607. if v2 && v1 == libc.UintptrFromInt32(0) {
  4608. return libc.UintptrFromInt32(0)
  4609. }
  4610. XSHA512Final(tls, bp, ctx)
  4611. i = 0
  4612. for {
  4613. if !(i < int32(m_SHA512_DIGEST_LENGTH)) {
  4614. break
  4615. }
  4616. *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = _hex7[libc.Int32FromUint8((*(*[64]Tuint8_t)(unsafe.Pointer(bp)))[i])>>int32(4)]
  4617. *(*int8)(unsafe.Pointer(buf + uintptr(i+i+int32(1)))) = _hex7[libc.Int32FromUint8((*(*[64]Tuint8_t)(unsafe.Pointer(bp)))[i])&int32(0x0f)]
  4618. goto _3
  4619. _3:
  4620. ;
  4621. i++
  4622. }
  4623. *(*int8)(unsafe.Pointer(buf + uintptr(i+i))) = int8('\000')
  4624. libc.Xmemset(tls, bp, 0, uint64(64))
  4625. return buf
  4626. }
  4627. var _hex7 = [17]int8{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}
  4628. func XSHA512FileChunk(tls *libc.TLS, filename uintptr, buf uintptr, off Toff_t, len1 Toff_t) (r uintptr) {
  4629. bp := tls.Alloc(1376)
  4630. defer tls.Free(1376)
  4631. var fd, save_errno, v1 int32
  4632. var nr, v2 Tssize_t
  4633. var v3 int64
  4634. var v4 bool
  4635. var v5 uintptr
  4636. var _ /* buffer at bp+144 */ [1024]Tuint8_t
  4637. var _ /* ctx at bp+1168 */ TSHA2_CTX
  4638. var _ /* sb at bp+0 */ Tstat
  4639. _, _, _, _, _, _, _, _ = fd, nr, save_errno, v1, v2, v3, v4, v5
  4640. XSHA512Init(tls, bp+1168)
  4641. v1 = libc.Xopen(tls, filename, m_O_RDONLY, 0)
  4642. fd = v1
  4643. if v1 < 0 {
  4644. return libc.UintptrFromInt32(0)
  4645. }
  4646. if len1 == 0 {
  4647. if libc.Xfstat(tls, fd, bp) == -int32(1) {
  4648. libc.Xclose(tls, fd)
  4649. return libc.UintptrFromInt32(0)
  4650. }
  4651. len1 = (*(*Tstat)(unsafe.Pointer(bp))).Fst_size
  4652. }
  4653. if off > 0 && libc.Xlseek(tls, fd, off, 0) < 0 {
  4654. libc.Xclose(tls, fd)
  4655. return libc.UintptrFromInt32(0)
  4656. }
  4657. for {
  4658. if libc.Int64FromInt64(1024) < len1 {
  4659. v3 = libc.Int64FromInt64(1024)
  4660. } else {
  4661. v3 = len1
  4662. }
  4663. v2 = libc.Xread(tls, fd, bp+144, libc.Uint64FromInt64(v3))
  4664. nr = v2
  4665. if !(v2 > 0) {
  4666. break
  4667. }
  4668. XSHA512Update(tls, bp+1168, bp+144, libc.Uint64FromInt64(nr))
  4669. if v4 = len1 > 0; v4 {
  4670. len1 -= nr
  4671. }
  4672. if v4 && len1 == 0 {
  4673. break
  4674. }
  4675. }
  4676. save_errno = *(*int32)(unsafe.Pointer(libc.X__errno_location(tls)))
  4677. libc.Xclose(tls, fd)
  4678. *(*int32)(unsafe.Pointer(libc.X__errno_location(tls))) = save_errno
  4679. if nr < 0 {
  4680. v5 = libc.UintptrFromInt32(0)
  4681. } else {
  4682. v5 = XSHA512End(tls, bp+1168, buf)
  4683. }
  4684. return v5
  4685. }
  4686. func XSHA512File(tls *libc.TLS, filename uintptr, buf uintptr) (r uintptr) {
  4687. return XSHA512FileChunk(tls, filename, buf, libc.Int64FromInt32(0), libc.Int64FromInt32(0))
  4688. }
  4689. func XSHA512Data(tls *libc.TLS, data uintptr, len1 Tsize_t, buf uintptr) (r uintptr) {
  4690. bp := tls.Alloc(208)
  4691. defer tls.Free(208)
  4692. var _ /* ctx at bp+0 */ TSHA2_CTX
  4693. XSHA512Init(tls, bp)
  4694. XSHA512Update(tls, bp, data, len1)
  4695. return XSHA512End(tls, bp, buf)
  4696. }
  4697. var __ccgo_ts = (*reflect.StringHeader)(unsafe.Pointer(&__ccgo_ts1)).Data
  4698. 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"