ccgo_linux_386.go 288 KB

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