ccgo_linux_arm64.go 288 KB

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