ccgo_linux_s390x.go 260 KB

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