testmgr.h 327 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972
  1. /*
  2. * Algorithm testing framework and tests.
  3. *
  4. * Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
  5. * Copyright (c) 2002 Jean-Francois Dive <jef@linuxbe.org>
  6. * Copyright (c) 2007 Nokia Siemens Networks
  7. * Copyright (c) 2008 Herbert Xu <herbert@gondor.apana.org.au>
  8. *
  9. * Updated RFC4106 AES-GCM testing. Some test vectors were taken from
  10. * http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/proposedmodes/
  11. * gcm/gcm-test-vectors.tar.gz
  12. * Authors: Aidan O'Mahony (aidan.o.mahony@intel.com)
  13. * Adrian Hoban <adrian.hoban@intel.com>
  14. * Gabriele Paoloni <gabriele.paoloni@intel.com>
  15. * Tadeusz Struk (tadeusz.struk@intel.com)
  16. * Copyright (c) 2010, Intel Corporation.
  17. *
  18. * This program is free software; you can redistribute it and/or modify it
  19. * under the terms of the GNU General Public License as published by the Free
  20. * Software Foundation; either version 2 of the License, or (at your option)
  21. * any later version.
  22. *
  23. */
  24. #ifndef _CRYPTO_TESTMGR_H
  25. #define _CRYPTO_TESTMGR_H
  26. #include <linux/netlink.h>
  27. #include <linux/zlib.h>
  28. #include <crypto/compress.h>
  29. #define MAX_DIGEST_SIZE 64
  30. #define MAX_TAP 8
  31. #define MAX_KEYLEN 56
  32. #define MAX_IVLEN 32
  33. struct hash_testvec {
  34. /* only used with keyed hash algorithms */
  35. char *key;
  36. char *plaintext;
  37. char *digest;
  38. unsigned char tap[MAX_TAP];
  39. unsigned char psize;
  40. unsigned char np;
  41. unsigned char ksize;
  42. };
  43. struct cipher_testvec {
  44. char *key;
  45. char *iv;
  46. char *input;
  47. char *result;
  48. unsigned short tap[MAX_TAP];
  49. int np;
  50. unsigned char fail;
  51. unsigned char wk; /* weak key flag */
  52. unsigned char klen;
  53. unsigned short ilen;
  54. unsigned short rlen;
  55. };
  56. struct aead_testvec {
  57. char *key;
  58. char *iv;
  59. char *input;
  60. char *assoc;
  61. char *result;
  62. unsigned char tap[MAX_TAP];
  63. unsigned char atap[MAX_TAP];
  64. int np;
  65. int anp;
  66. unsigned char fail;
  67. unsigned char novrfy; /* ccm dec verification failure expected */
  68. unsigned char wk; /* weak key flag */
  69. unsigned char klen;
  70. unsigned short ilen;
  71. unsigned short alen;
  72. unsigned short rlen;
  73. };
  74. struct cprng_testvec {
  75. char *key;
  76. char *dt;
  77. char *v;
  78. char *result;
  79. unsigned char klen;
  80. unsigned short dtlen;
  81. unsigned short vlen;
  82. unsigned short rlen;
  83. unsigned short loops;
  84. };
  85. static char zeroed_string[48];
  86. /*
  87. * MD4 test vectors from RFC1320
  88. */
  89. #define MD4_TEST_VECTORS 7
  90. static struct hash_testvec md4_tv_template [] = {
  91. {
  92. .plaintext = "",
  93. .digest = "\x31\xd6\xcf\xe0\xd1\x6a\xe9\x31"
  94. "\xb7\x3c\x59\xd7\xe0\xc0\x89\xc0",
  95. }, {
  96. .plaintext = "a",
  97. .psize = 1,
  98. .digest = "\xbd\xe5\x2c\xb3\x1d\xe3\x3e\x46"
  99. "\x24\x5e\x05\xfb\xdb\xd6\xfb\x24",
  100. }, {
  101. .plaintext = "abc",
  102. .psize = 3,
  103. .digest = "\xa4\x48\x01\x7a\xaf\x21\xd8\x52"
  104. "\x5f\xc1\x0a\xe8\x7a\xa6\x72\x9d",
  105. }, {
  106. .plaintext = "message digest",
  107. .psize = 14,
  108. .digest = "\xd9\x13\x0a\x81\x64\x54\x9f\xe8"
  109. "\x18\x87\x48\x06\xe1\xc7\x01\x4b",
  110. }, {
  111. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  112. .psize = 26,
  113. .digest = "\xd7\x9e\x1c\x30\x8a\xa5\xbb\xcd"
  114. "\xee\xa8\xed\x63\xdf\x41\x2d\xa9",
  115. .np = 2,
  116. .tap = { 13, 13 },
  117. }, {
  118. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
  119. .psize = 62,
  120. .digest = "\x04\x3f\x85\x82\xf2\x41\xdb\x35"
  121. "\x1c\xe6\x27\xe1\x53\xe7\xf0\xe4",
  122. }, {
  123. .plaintext = "123456789012345678901234567890123456789012345678901234567890123"
  124. "45678901234567890",
  125. .psize = 80,
  126. .digest = "\xe3\x3b\x4d\xdc\x9c\x38\xf2\x19"
  127. "\x9c\x3e\x7b\x16\x4f\xcc\x05\x36",
  128. },
  129. };
  130. /*
  131. * MD5 test vectors from RFC1321
  132. */
  133. #define MD5_TEST_VECTORS 7
  134. static struct hash_testvec md5_tv_template[] = {
  135. {
  136. .digest = "\xd4\x1d\x8c\xd9\x8f\x00\xb2\x04"
  137. "\xe9\x80\x09\x98\xec\xf8\x42\x7e",
  138. }, {
  139. .plaintext = "a",
  140. .psize = 1,
  141. .digest = "\x0c\xc1\x75\xb9\xc0\xf1\xb6\xa8"
  142. "\x31\xc3\x99\xe2\x69\x77\x26\x61",
  143. }, {
  144. .plaintext = "abc",
  145. .psize = 3,
  146. .digest = "\x90\x01\x50\x98\x3c\xd2\x4f\xb0"
  147. "\xd6\x96\x3f\x7d\x28\xe1\x7f\x72",
  148. }, {
  149. .plaintext = "message digest",
  150. .psize = 14,
  151. .digest = "\xf9\x6b\x69\x7d\x7c\xb7\x93\x8d"
  152. "\x52\x5a\x2f\x31\xaa\xf1\x61\xd0",
  153. }, {
  154. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  155. .psize = 26,
  156. .digest = "\xc3\xfc\xd3\xd7\x61\x92\xe4\x00"
  157. "\x7d\xfb\x49\x6c\xca\x67\xe1\x3b",
  158. .np = 2,
  159. .tap = {13, 13}
  160. }, {
  161. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
  162. .psize = 62,
  163. .digest = "\xd1\x74\xab\x98\xd2\x77\xd9\xf5"
  164. "\xa5\x61\x1c\x2c\x9f\x41\x9d\x9f",
  165. }, {
  166. .plaintext = "12345678901234567890123456789012345678901234567890123456789012"
  167. "345678901234567890",
  168. .psize = 80,
  169. .digest = "\x57\xed\xf4\xa2\x2b\xe3\xc9\x55"
  170. "\xac\x49\xda\x2e\x21\x07\xb6\x7a",
  171. }
  172. };
  173. /*
  174. * RIPEMD-128 test vectors from ISO/IEC 10118-3:2004(E)
  175. */
  176. #define RMD128_TEST_VECTORS 10
  177. static struct hash_testvec rmd128_tv_template[] = {
  178. {
  179. .digest = "\xcd\xf2\x62\x13\xa1\x50\xdc\x3e"
  180. "\xcb\x61\x0f\x18\xf6\xb3\x8b\x46",
  181. }, {
  182. .plaintext = "a",
  183. .psize = 1,
  184. .digest = "\x86\xbe\x7a\xfa\x33\x9d\x0f\xc7"
  185. "\xcf\xc7\x85\xe7\x2f\x57\x8d\x33",
  186. }, {
  187. .plaintext = "abc",
  188. .psize = 3,
  189. .digest = "\xc1\x4a\x12\x19\x9c\x66\xe4\xba"
  190. "\x84\x63\x6b\x0f\x69\x14\x4c\x77",
  191. }, {
  192. .plaintext = "message digest",
  193. .psize = 14,
  194. .digest = "\x9e\x32\x7b\x3d\x6e\x52\x30\x62"
  195. "\xaf\xc1\x13\x2d\x7d\xf9\xd1\xb8",
  196. }, {
  197. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  198. .psize = 26,
  199. .digest = "\xfd\x2a\xa6\x07\xf7\x1d\xc8\xf5"
  200. "\x10\x71\x49\x22\xb3\x71\x83\x4e",
  201. }, {
  202. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
  203. "fghijklmnopqrstuvwxyz0123456789",
  204. .psize = 62,
  205. .digest = "\xd1\xe9\x59\xeb\x17\x9c\x91\x1f"
  206. "\xae\xa4\x62\x4c\x60\xc5\xc7\x02",
  207. }, {
  208. .plaintext = "1234567890123456789012345678901234567890"
  209. "1234567890123456789012345678901234567890",
  210. .psize = 80,
  211. .digest = "\x3f\x45\xef\x19\x47\x32\xc2\xdb"
  212. "\xb2\xc4\xa2\xc7\x69\x79\x5f\xa3",
  213. }, {
  214. .plaintext = "abcdbcdecdefdefgefghfghighij"
  215. "hijkijkljklmklmnlmnomnopnopq",
  216. .psize = 56,
  217. .digest = "\xa1\xaa\x06\x89\xd0\xfa\xfa\x2d"
  218. "\xdc\x22\xe8\x8b\x49\x13\x3a\x06",
  219. .np = 2,
  220. .tap = { 28, 28 },
  221. }, {
  222. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
  223. "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
  224. "lmnopqrsmnopqrstnopqrstu",
  225. .psize = 112,
  226. .digest = "\xd4\xec\xc9\x13\xe1\xdf\x77\x6b"
  227. "\xf4\x8d\xe9\xd5\x5b\x1f\x25\x46",
  228. }, {
  229. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  230. .psize = 32,
  231. .digest = "\x13\xfc\x13\xe8\xef\xff\x34\x7d"
  232. "\xe1\x93\xff\x46\xdb\xac\xcf\xd4",
  233. }
  234. };
  235. /*
  236. * RIPEMD-160 test vectors from ISO/IEC 10118-3:2004(E)
  237. */
  238. #define RMD160_TEST_VECTORS 10
  239. static struct hash_testvec rmd160_tv_template[] = {
  240. {
  241. .digest = "\x9c\x11\x85\xa5\xc5\xe9\xfc\x54\x61\x28"
  242. "\x08\x97\x7e\xe8\xf5\x48\xb2\x25\x8d\x31",
  243. }, {
  244. .plaintext = "a",
  245. .psize = 1,
  246. .digest = "\x0b\xdc\x9d\x2d\x25\x6b\x3e\xe9\xda\xae"
  247. "\x34\x7b\xe6\xf4\xdc\x83\x5a\x46\x7f\xfe",
  248. }, {
  249. .plaintext = "abc",
  250. .psize = 3,
  251. .digest = "\x8e\xb2\x08\xf7\xe0\x5d\x98\x7a\x9b\x04"
  252. "\x4a\x8e\x98\xc6\xb0\x87\xf1\x5a\x0b\xfc",
  253. }, {
  254. .plaintext = "message digest",
  255. .psize = 14,
  256. .digest = "\x5d\x06\x89\xef\x49\xd2\xfa\xe5\x72\xb8"
  257. "\x81\xb1\x23\xa8\x5f\xfa\x21\x59\x5f\x36",
  258. }, {
  259. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  260. .psize = 26,
  261. .digest = "\xf7\x1c\x27\x10\x9c\x69\x2c\x1b\x56\xbb"
  262. "\xdc\xeb\x5b\x9d\x28\x65\xb3\x70\x8d\xbc",
  263. }, {
  264. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
  265. "fghijklmnopqrstuvwxyz0123456789",
  266. .psize = 62,
  267. .digest = "\xb0\xe2\x0b\x6e\x31\x16\x64\x02\x86\xed"
  268. "\x3a\x87\xa5\x71\x30\x79\xb2\x1f\x51\x89",
  269. }, {
  270. .plaintext = "1234567890123456789012345678901234567890"
  271. "1234567890123456789012345678901234567890",
  272. .psize = 80,
  273. .digest = "\x9b\x75\x2e\x45\x57\x3d\x4b\x39\xf4\xdb"
  274. "\xd3\x32\x3c\xab\x82\xbf\x63\x32\x6b\xfb",
  275. }, {
  276. .plaintext = "abcdbcdecdefdefgefghfghighij"
  277. "hijkijkljklmklmnlmnomnopnopq",
  278. .psize = 56,
  279. .digest = "\x12\xa0\x53\x38\x4a\x9c\x0c\x88\xe4\x05"
  280. "\xa0\x6c\x27\xdc\xf4\x9a\xda\x62\xeb\x2b",
  281. .np = 2,
  282. .tap = { 28, 28 },
  283. }, {
  284. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
  285. "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
  286. "lmnopqrsmnopqrstnopqrstu",
  287. .psize = 112,
  288. .digest = "\x6f\x3f\xa3\x9b\x6b\x50\x3c\x38\x4f\x91"
  289. "\x9a\x49\xa7\xaa\x5c\x2c\x08\xbd\xfb\x45",
  290. }, {
  291. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  292. .psize = 32,
  293. .digest = "\x94\xc2\x64\x11\x54\x04\xe6\x33\x79\x0d"
  294. "\xfc\xc8\x7b\x58\x7d\x36\x77\x06\x7d\x9f",
  295. }
  296. };
  297. /*
  298. * RIPEMD-256 test vectors
  299. */
  300. #define RMD256_TEST_VECTORS 8
  301. static struct hash_testvec rmd256_tv_template[] = {
  302. {
  303. .digest = "\x02\xba\x4c\x4e\x5f\x8e\xcd\x18"
  304. "\x77\xfc\x52\xd6\x4d\x30\xe3\x7a"
  305. "\x2d\x97\x74\xfb\x1e\x5d\x02\x63"
  306. "\x80\xae\x01\x68\xe3\xc5\x52\x2d",
  307. }, {
  308. .plaintext = "a",
  309. .psize = 1,
  310. .digest = "\xf9\x33\x3e\x45\xd8\x57\xf5\xd9"
  311. "\x0a\x91\xba\xb7\x0a\x1e\xba\x0c"
  312. "\xfb\x1b\xe4\xb0\x78\x3c\x9a\xcf"
  313. "\xcd\x88\x3a\x91\x34\x69\x29\x25",
  314. }, {
  315. .plaintext = "abc",
  316. .psize = 3,
  317. .digest = "\xaf\xbd\x6e\x22\x8b\x9d\x8c\xbb"
  318. "\xce\xf5\xca\x2d\x03\xe6\xdb\xa1"
  319. "\x0a\xc0\xbc\x7d\xcb\xe4\x68\x0e"
  320. "\x1e\x42\xd2\xe9\x75\x45\x9b\x65",
  321. }, {
  322. .plaintext = "message digest",
  323. .psize = 14,
  324. .digest = "\x87\xe9\x71\x75\x9a\x1c\xe4\x7a"
  325. "\x51\x4d\x5c\x91\x4c\x39\x2c\x90"
  326. "\x18\xc7\xc4\x6b\xc1\x44\x65\x55"
  327. "\x4a\xfc\xdf\x54\xa5\x07\x0c\x0e",
  328. }, {
  329. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  330. .psize = 26,
  331. .digest = "\x64\x9d\x30\x34\x75\x1e\xa2\x16"
  332. "\x77\x6b\xf9\xa1\x8a\xcc\x81\xbc"
  333. "\x78\x96\x11\x8a\x51\x97\x96\x87"
  334. "\x82\xdd\x1f\xd9\x7d\x8d\x51\x33",
  335. }, {
  336. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
  337. "fghijklmnopqrstuvwxyz0123456789",
  338. .psize = 62,
  339. .digest = "\x57\x40\xa4\x08\xac\x16\xb7\x20"
  340. "\xb8\x44\x24\xae\x93\x1c\xbb\x1f"
  341. "\xe3\x63\xd1\xd0\xbf\x40\x17\xf1"
  342. "\xa8\x9f\x7e\xa6\xde\x77\xa0\xb8",
  343. }, {
  344. .plaintext = "1234567890123456789012345678901234567890"
  345. "1234567890123456789012345678901234567890",
  346. .psize = 80,
  347. .digest = "\x06\xfd\xcc\x7a\x40\x95\x48\xaa"
  348. "\xf9\x13\x68\xc0\x6a\x62\x75\xb5"
  349. "\x53\xe3\xf0\x99\xbf\x0e\xa4\xed"
  350. "\xfd\x67\x78\xdf\x89\xa8\x90\xdd",
  351. }, {
  352. .plaintext = "abcdbcdecdefdefgefghfghighij"
  353. "hijkijkljklmklmnlmnomnopnopq",
  354. .psize = 56,
  355. .digest = "\x38\x43\x04\x55\x83\xaa\xc6\xc8"
  356. "\xc8\xd9\x12\x85\x73\xe7\xa9\x80"
  357. "\x9a\xfb\x2a\x0f\x34\xcc\xc3\x6e"
  358. "\xa9\xe7\x2f\x16\xf6\x36\x8e\x3f",
  359. .np = 2,
  360. .tap = { 28, 28 },
  361. }
  362. };
  363. /*
  364. * RIPEMD-320 test vectors
  365. */
  366. #define RMD320_TEST_VECTORS 8
  367. static struct hash_testvec rmd320_tv_template[] = {
  368. {
  369. .digest = "\x22\xd6\x5d\x56\x61\x53\x6c\xdc\x75\xc1"
  370. "\xfd\xf5\xc6\xde\x7b\x41\xb9\xf2\x73\x25"
  371. "\xeb\xc6\x1e\x85\x57\x17\x7d\x70\x5a\x0e"
  372. "\xc8\x80\x15\x1c\x3a\x32\xa0\x08\x99\xb8",
  373. }, {
  374. .plaintext = "a",
  375. .psize = 1,
  376. .digest = "\xce\x78\x85\x06\x38\xf9\x26\x58\xa5\xa5"
  377. "\x85\x09\x75\x79\x92\x6d\xda\x66\x7a\x57"
  378. "\x16\x56\x2c\xfc\xf6\xfb\xe7\x7f\x63\x54"
  379. "\x2f\x99\xb0\x47\x05\xd6\x97\x0d\xff\x5d",
  380. }, {
  381. .plaintext = "abc",
  382. .psize = 3,
  383. .digest = "\xde\x4c\x01\xb3\x05\x4f\x89\x30\xa7\x9d"
  384. "\x09\xae\x73\x8e\x92\x30\x1e\x5a\x17\x08"
  385. "\x5b\xef\xfd\xc1\xb8\xd1\x16\x71\x3e\x74"
  386. "\xf8\x2f\xa9\x42\xd6\x4c\xdb\xc4\x68\x2d",
  387. }, {
  388. .plaintext = "message digest",
  389. .psize = 14,
  390. .digest = "\x3a\x8e\x28\x50\x2e\xd4\x5d\x42\x2f\x68"
  391. "\x84\x4f\x9d\xd3\x16\xe7\xb9\x85\x33\xfa"
  392. "\x3f\x2a\x91\xd2\x9f\x84\xd4\x25\xc8\x8d"
  393. "\x6b\x4e\xff\x72\x7d\xf6\x6a\x7c\x01\x97",
  394. }, {
  395. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  396. .psize = 26,
  397. .digest = "\xca\xbd\xb1\x81\x0b\x92\x47\x0a\x20\x93"
  398. "\xaa\x6b\xce\x05\x95\x2c\x28\x34\x8c\xf4"
  399. "\x3f\xf6\x08\x41\x97\x51\x66\xbb\x40\xed"
  400. "\x23\x40\x04\xb8\x82\x44\x63\xe6\xb0\x09",
  401. }, {
  402. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
  403. "fghijklmnopqrstuvwxyz0123456789",
  404. .psize = 62,
  405. .digest = "\xed\x54\x49\x40\xc8\x6d\x67\xf2\x50\xd2"
  406. "\x32\xc3\x0b\x7b\x3e\x57\x70\xe0\xc6\x0c"
  407. "\x8c\xb9\xa4\xca\xfe\x3b\x11\x38\x8a\xf9"
  408. "\x92\x0e\x1b\x99\x23\x0b\x84\x3c\x86\xa4",
  409. }, {
  410. .plaintext = "1234567890123456789012345678901234567890"
  411. "1234567890123456789012345678901234567890",
  412. .psize = 80,
  413. .digest = "\x55\x78\x88\xaf\x5f\x6d\x8e\xd6\x2a\xb6"
  414. "\x69\x45\xc6\xd2\xa0\xa4\x7e\xcd\x53\x41"
  415. "\xe9\x15\xeb\x8f\xea\x1d\x05\x24\x95\x5f"
  416. "\x82\x5d\xc7\x17\xe4\xa0\x08\xab\x2d\x42",
  417. }, {
  418. .plaintext = "abcdbcdecdefdefgefghfghighij"
  419. "hijkijkljklmklmnlmnomnopnopq",
  420. .psize = 56,
  421. .digest = "\xd0\x34\xa7\x95\x0c\xf7\x22\x02\x1b\xa4"
  422. "\xb8\x4d\xf7\x69\xa5\xde\x20\x60\xe2\x59"
  423. "\xdf\x4c\x9b\xb4\xa4\x26\x8c\x0e\x93\x5b"
  424. "\xbc\x74\x70\xa9\x69\xc9\xd0\x72\xa1\xac",
  425. .np = 2,
  426. .tap = { 28, 28 },
  427. }
  428. };
  429. /*
  430. * SHA1 test vectors from from FIPS PUB 180-1
  431. */
  432. #define SHA1_TEST_VECTORS 2
  433. static struct hash_testvec sha1_tv_template[] = {
  434. {
  435. .plaintext = "abc",
  436. .psize = 3,
  437. .digest = "\xa9\x99\x3e\x36\x47\x06\x81\x6a\xba\x3e"
  438. "\x25\x71\x78\x50\xc2\x6c\x9c\xd0\xd8\x9d",
  439. }, {
  440. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  441. .psize = 56,
  442. .digest = "\x84\x98\x3e\x44\x1c\x3b\xd2\x6e\xba\xae"
  443. "\x4a\xa1\xf9\x51\x29\xe5\xe5\x46\x70\xf1",
  444. .np = 2,
  445. .tap = { 28, 28 }
  446. }
  447. };
  448. /*
  449. * SHA224 test vectors from from FIPS PUB 180-2
  450. */
  451. #define SHA224_TEST_VECTORS 2
  452. static struct hash_testvec sha224_tv_template[] = {
  453. {
  454. .plaintext = "abc",
  455. .psize = 3,
  456. .digest = "\x23\x09\x7D\x22\x34\x05\xD8\x22"
  457. "\x86\x42\xA4\x77\xBD\xA2\x55\xB3"
  458. "\x2A\xAD\xBC\xE4\xBD\xA0\xB3\xF7"
  459. "\xE3\x6C\x9D\xA7",
  460. }, {
  461. .plaintext =
  462. "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  463. .psize = 56,
  464. .digest = "\x75\x38\x8B\x16\x51\x27\x76\xCC"
  465. "\x5D\xBA\x5D\xA1\xFD\x89\x01\x50"
  466. "\xB0\xC6\x45\x5C\xB4\xF5\x8B\x19"
  467. "\x52\x52\x25\x25",
  468. .np = 2,
  469. .tap = { 28, 28 }
  470. }
  471. };
  472. /*
  473. * SHA256 test vectors from from NIST
  474. */
  475. #define SHA256_TEST_VECTORS 2
  476. static struct hash_testvec sha256_tv_template[] = {
  477. {
  478. .plaintext = "abc",
  479. .psize = 3,
  480. .digest = "\xba\x78\x16\xbf\x8f\x01\xcf\xea"
  481. "\x41\x41\x40\xde\x5d\xae\x22\x23"
  482. "\xb0\x03\x61\xa3\x96\x17\x7a\x9c"
  483. "\xb4\x10\xff\x61\xf2\x00\x15\xad",
  484. }, {
  485. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  486. .psize = 56,
  487. .digest = "\x24\x8d\x6a\x61\xd2\x06\x38\xb8"
  488. "\xe5\xc0\x26\x93\x0c\x3e\x60\x39"
  489. "\xa3\x3c\xe4\x59\x64\xff\x21\x67"
  490. "\xf6\xec\xed\xd4\x19\xdb\x06\xc1",
  491. .np = 2,
  492. .tap = { 28, 28 }
  493. },
  494. };
  495. /*
  496. * SHA384 test vectors from from NIST and kerneli
  497. */
  498. #define SHA384_TEST_VECTORS 4
  499. static struct hash_testvec sha384_tv_template[] = {
  500. {
  501. .plaintext= "abc",
  502. .psize = 3,
  503. .digest = "\xcb\x00\x75\x3f\x45\xa3\x5e\x8b"
  504. "\xb5\xa0\x3d\x69\x9a\xc6\x50\x07"
  505. "\x27\x2c\x32\xab\x0e\xde\xd1\x63"
  506. "\x1a\x8b\x60\x5a\x43\xff\x5b\xed"
  507. "\x80\x86\x07\x2b\xa1\xe7\xcc\x23"
  508. "\x58\xba\xec\xa1\x34\xc8\x25\xa7",
  509. }, {
  510. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  511. .psize = 56,
  512. .digest = "\x33\x91\xfd\xdd\xfc\x8d\xc7\x39"
  513. "\x37\x07\xa6\x5b\x1b\x47\x09\x39"
  514. "\x7c\xf8\xb1\xd1\x62\xaf\x05\xab"
  515. "\xfe\x8f\x45\x0d\xe5\xf3\x6b\xc6"
  516. "\xb0\x45\x5a\x85\x20\xbc\x4e\x6f"
  517. "\x5f\xe9\x5b\x1f\xe3\xc8\x45\x2b",
  518. }, {
  519. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
  520. "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
  521. .psize = 112,
  522. .digest = "\x09\x33\x0c\x33\xf7\x11\x47\xe8"
  523. "\x3d\x19\x2f\xc7\x82\xcd\x1b\x47"
  524. "\x53\x11\x1b\x17\x3b\x3b\x05\xd2"
  525. "\x2f\xa0\x80\x86\xe3\xb0\xf7\x12"
  526. "\xfc\xc7\xc7\x1a\x55\x7e\x2d\xb9"
  527. "\x66\xc3\xe9\xfa\x91\x74\x60\x39",
  528. }, {
  529. .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
  530. "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
  531. .psize = 104,
  532. .digest = "\x3d\x20\x89\x73\xab\x35\x08\xdb"
  533. "\xbd\x7e\x2c\x28\x62\xba\x29\x0a"
  534. "\xd3\x01\x0e\x49\x78\xc1\x98\xdc"
  535. "\x4d\x8f\xd0\x14\xe5\x82\x82\x3a"
  536. "\x89\xe1\x6f\x9b\x2a\x7b\xbc\x1a"
  537. "\xc9\x38\xe2\xd1\x99\xe8\xbe\xa4",
  538. .np = 4,
  539. .tap = { 26, 26, 26, 26 }
  540. },
  541. };
  542. /*
  543. * SHA512 test vectors from from NIST and kerneli
  544. */
  545. #define SHA512_TEST_VECTORS 4
  546. static struct hash_testvec sha512_tv_template[] = {
  547. {
  548. .plaintext = "abc",
  549. .psize = 3,
  550. .digest = "\xdd\xaf\x35\xa1\x93\x61\x7a\xba"
  551. "\xcc\x41\x73\x49\xae\x20\x41\x31"
  552. "\x12\xe6\xfa\x4e\x89\xa9\x7e\xa2"
  553. "\x0a\x9e\xee\xe6\x4b\x55\xd3\x9a"
  554. "\x21\x92\x99\x2a\x27\x4f\xc1\xa8"
  555. "\x36\xba\x3c\x23\xa3\xfe\xeb\xbd"
  556. "\x45\x4d\x44\x23\x64\x3c\xe8\x0e"
  557. "\x2a\x9a\xc9\x4f\xa5\x4c\xa4\x9f",
  558. }, {
  559. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  560. .psize = 56,
  561. .digest = "\x20\x4a\x8f\xc6\xdd\xa8\x2f\x0a"
  562. "\x0c\xed\x7b\xeb\x8e\x08\xa4\x16"
  563. "\x57\xc1\x6e\xf4\x68\xb2\x28\xa8"
  564. "\x27\x9b\xe3\x31\xa7\x03\xc3\x35"
  565. "\x96\xfd\x15\xc1\x3b\x1b\x07\xf9"
  566. "\xaa\x1d\x3b\xea\x57\x78\x9c\xa0"
  567. "\x31\xad\x85\xc7\xa7\x1d\xd7\x03"
  568. "\x54\xec\x63\x12\x38\xca\x34\x45",
  569. }, {
  570. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
  571. "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
  572. .psize = 112,
  573. .digest = "\x8e\x95\x9b\x75\xda\xe3\x13\xda"
  574. "\x8c\xf4\xf7\x28\x14\xfc\x14\x3f"
  575. "\x8f\x77\x79\xc6\xeb\x9f\x7f\xa1"
  576. "\x72\x99\xae\xad\xb6\x88\x90\x18"
  577. "\x50\x1d\x28\x9e\x49\x00\xf7\xe4"
  578. "\x33\x1b\x99\xde\xc4\xb5\x43\x3a"
  579. "\xc7\xd3\x29\xee\xb6\xdd\x26\x54"
  580. "\x5e\x96\xe5\x5b\x87\x4b\xe9\x09",
  581. }, {
  582. .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
  583. "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
  584. .psize = 104,
  585. .digest = "\x93\x0d\x0c\xef\xcb\x30\xff\x11"
  586. "\x33\xb6\x89\x81\x21\xf1\xcf\x3d"
  587. "\x27\x57\x8a\xfc\xaf\xe8\x67\x7c"
  588. "\x52\x57\xcf\x06\x99\x11\xf7\x5d"
  589. "\x8f\x58\x31\xb5\x6e\xbf\xda\x67"
  590. "\xb2\x78\xe6\x6d\xff\x8b\x84\xfe"
  591. "\x2b\x28\x70\xf7\x42\xa5\x80\xd8"
  592. "\xed\xb4\x19\x87\x23\x28\x50\xc9",
  593. .np = 4,
  594. .tap = { 26, 26, 26, 26 }
  595. },
  596. };
  597. /*
  598. * WHIRLPOOL test vectors from Whirlpool package
  599. * by Vincent Rijmen and Paulo S. L. M. Barreto as part of the NESSIE
  600. * submission
  601. */
  602. #define WP512_TEST_VECTORS 8
  603. static struct hash_testvec wp512_tv_template[] = {
  604. {
  605. .plaintext = "",
  606. .psize = 0,
  607. .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
  608. "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
  609. "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
  610. "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
  611. "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
  612. "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57"
  613. "\xEA\x89\x64\xE5\x9B\x63\xD9\x37"
  614. "\x08\xB1\x38\xCC\x42\xA6\x6E\xB3",
  615. }, {
  616. .plaintext = "a",
  617. .psize = 1,
  618. .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
  619. "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
  620. "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
  621. "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
  622. "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
  623. "\x3A\x42\x39\x1A\x39\x14\x5A\x59"
  624. "\x1A\x92\x20\x0D\x56\x01\x95\xE5"
  625. "\x3B\x47\x85\x84\xFD\xAE\x23\x1A",
  626. }, {
  627. .plaintext = "abc",
  628. .psize = 3,
  629. .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
  630. "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
  631. "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
  632. "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
  633. "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
  634. "\x7D\x0E\x34\x95\x71\x14\xCB\xD6"
  635. "\xC7\x97\xFC\x9D\x95\xD8\xB5\x82"
  636. "\xD2\x25\x29\x20\x76\xD4\xEE\xF5",
  637. }, {
  638. .plaintext = "message digest",
  639. .psize = 14,
  640. .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
  641. "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
  642. "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
  643. "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
  644. "\x84\x21\x55\x76\x59\xEF\x55\xC1"
  645. "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6"
  646. "\x92\xED\x92\x00\x52\x83\x8F\x33"
  647. "\x62\xE8\x6D\xBD\x37\xA8\x90\x3E",
  648. }, {
  649. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  650. .psize = 26,
  651. .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
  652. "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
  653. "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
  654. "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
  655. "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
  656. "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6"
  657. "\xF6\x8F\x67\x3E\x72\x07\x86\x5D"
  658. "\x5D\x98\x19\xA3\xDB\xA4\xEB\x3B",
  659. }, {
  660. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  661. "abcdefghijklmnopqrstuvwxyz0123456789",
  662. .psize = 62,
  663. .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
  664. "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
  665. "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
  666. "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
  667. "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
  668. "\xB7\xCB\x57\x21\x1B\x92\x81\xA6"
  669. "\x55\x17\xCC\x87\x9D\x7B\x96\x21"
  670. "\x42\xC6\x5F\x5A\x7A\xF0\x14\x67",
  671. }, {
  672. .plaintext = "1234567890123456789012345678901234567890"
  673. "1234567890123456789012345678901234567890",
  674. .psize = 80,
  675. .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
  676. "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
  677. "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
  678. "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
  679. "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
  680. "\x38\xCD\x04\x7B\x26\x81\xA5\x1A"
  681. "\x2C\x60\x48\x1E\x88\xC5\xA2\x0B"
  682. "\x2C\x2A\x80\xCF\x3A\x9A\x08\x3B",
  683. }, {
  684. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  685. .psize = 32,
  686. .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
  687. "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
  688. "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
  689. "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
  690. "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
  691. "\x7B\x94\x76\x39\xFE\x05\x0B\x56"
  692. "\x93\x9B\xAA\xA0\xAD\xFF\x9A\xE6"
  693. "\x74\x5B\x7B\x18\x1C\x3B\xE3\xFD",
  694. },
  695. };
  696. #define WP384_TEST_VECTORS 8
  697. static struct hash_testvec wp384_tv_template[] = {
  698. {
  699. .plaintext = "",
  700. .psize = 0,
  701. .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
  702. "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
  703. "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
  704. "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
  705. "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
  706. "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57",
  707. }, {
  708. .plaintext = "a",
  709. .psize = 1,
  710. .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
  711. "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
  712. "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
  713. "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
  714. "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
  715. "\x3A\x42\x39\x1A\x39\x14\x5A\x59",
  716. }, {
  717. .plaintext = "abc",
  718. .psize = 3,
  719. .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
  720. "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
  721. "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
  722. "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
  723. "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
  724. "\x7D\x0E\x34\x95\x71\x14\xCB\xD6",
  725. }, {
  726. .plaintext = "message digest",
  727. .psize = 14,
  728. .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
  729. "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
  730. "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
  731. "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
  732. "\x84\x21\x55\x76\x59\xEF\x55\xC1"
  733. "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6",
  734. }, {
  735. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  736. .psize = 26,
  737. .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
  738. "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
  739. "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
  740. "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
  741. "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
  742. "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6",
  743. }, {
  744. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  745. "abcdefghijklmnopqrstuvwxyz0123456789",
  746. .psize = 62,
  747. .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
  748. "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
  749. "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
  750. "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
  751. "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
  752. "\xB7\xCB\x57\x21\x1B\x92\x81\xA6",
  753. }, {
  754. .plaintext = "1234567890123456789012345678901234567890"
  755. "1234567890123456789012345678901234567890",
  756. .psize = 80,
  757. .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
  758. "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
  759. "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
  760. "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
  761. "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
  762. "\x38\xCD\x04\x7B\x26\x81\xA5\x1A",
  763. }, {
  764. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  765. .psize = 32,
  766. .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
  767. "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
  768. "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
  769. "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
  770. "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
  771. "\x7B\x94\x76\x39\xFE\x05\x0B\x56",
  772. },
  773. };
  774. #define WP256_TEST_VECTORS 8
  775. static struct hash_testvec wp256_tv_template[] = {
  776. {
  777. .plaintext = "",
  778. .psize = 0,
  779. .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
  780. "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
  781. "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
  782. "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7",
  783. }, {
  784. .plaintext = "a",
  785. .psize = 1,
  786. .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
  787. "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
  788. "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
  789. "\x73\xC4\x50\x01\xD0\x08\x7B\x42",
  790. }, {
  791. .plaintext = "abc",
  792. .psize = 3,
  793. .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
  794. "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
  795. "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
  796. "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C",
  797. }, {
  798. .plaintext = "message digest",
  799. .psize = 14,
  800. .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
  801. "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
  802. "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
  803. "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B",
  804. }, {
  805. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  806. .psize = 26,
  807. .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
  808. "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
  809. "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
  810. "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B",
  811. }, {
  812. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  813. "abcdefghijklmnopqrstuvwxyz0123456789",
  814. .psize = 62,
  815. .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
  816. "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
  817. "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
  818. "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E",
  819. }, {
  820. .plaintext = "1234567890123456789012345678901234567890"
  821. "1234567890123456789012345678901234567890",
  822. .psize = 80,
  823. .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
  824. "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
  825. "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
  826. "\x54\x9C\x4A\xFA\xDB\x60\x14\x29",
  827. }, {
  828. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  829. .psize = 32,
  830. .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
  831. "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
  832. "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
  833. "\x07\xC5\x62\xF9\x88\xE9\x5C\x69",
  834. },
  835. };
  836. /*
  837. * TIGER test vectors from Tiger website
  838. */
  839. #define TGR192_TEST_VECTORS 6
  840. static struct hash_testvec tgr192_tv_template[] = {
  841. {
  842. .plaintext = "",
  843. .psize = 0,
  844. .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
  845. "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
  846. "\xf3\x73\xde\x2d\x49\x58\x4e\x7a",
  847. }, {
  848. .plaintext = "abc",
  849. .psize = 3,
  850. .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
  851. "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
  852. "\x93\x5f\x7b\x95\x1c\x13\x29\x51",
  853. }, {
  854. .plaintext = "Tiger",
  855. .psize = 5,
  856. .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
  857. "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
  858. "\x37\x79\x0c\x11\x6f\x9d\x2b\xdf",
  859. }, {
  860. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
  861. .psize = 64,
  862. .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
  863. "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
  864. "\xb5\x86\x44\x50\x34\xa5\xa3\x86",
  865. }, {
  866. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
  867. .psize = 64,
  868. .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
  869. "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
  870. "\x57\x89\x65\x65\x97\x5f\x91\x97",
  871. }, {
  872. .plaintext = "Tiger - A Fast New Hash Function, "
  873. "by Ross Anderson and Eli Biham, "
  874. "proceedings of Fast Software Encryption 3, "
  875. "Cambridge, 1996.",
  876. .psize = 125,
  877. .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
  878. "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
  879. "\xdd\x68\x15\x1d\x50\x39\x74\xfc",
  880. },
  881. };
  882. #define TGR160_TEST_VECTORS 6
  883. static struct hash_testvec tgr160_tv_template[] = {
  884. {
  885. .plaintext = "",
  886. .psize = 0,
  887. .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
  888. "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
  889. "\xf3\x73\xde\x2d",
  890. }, {
  891. .plaintext = "abc",
  892. .psize = 3,
  893. .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
  894. "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
  895. "\x93\x5f\x7b\x95",
  896. }, {
  897. .plaintext = "Tiger",
  898. .psize = 5,
  899. .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
  900. "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
  901. "\x37\x79\x0c\x11",
  902. }, {
  903. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
  904. .psize = 64,
  905. .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
  906. "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
  907. "\xb5\x86\x44\x50",
  908. }, {
  909. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
  910. .psize = 64,
  911. .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
  912. "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
  913. "\x57\x89\x65\x65",
  914. }, {
  915. .plaintext = "Tiger - A Fast New Hash Function, "
  916. "by Ross Anderson and Eli Biham, "
  917. "proceedings of Fast Software Encryption 3, "
  918. "Cambridge, 1996.",
  919. .psize = 125,
  920. .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
  921. "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
  922. "\xdd\x68\x15\x1d",
  923. },
  924. };
  925. #define TGR128_TEST_VECTORS 6
  926. static struct hash_testvec tgr128_tv_template[] = {
  927. {
  928. .plaintext = "",
  929. .psize = 0,
  930. .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
  931. "\x16\x16\x6e\x76\xb1\xbb\x92\x5f",
  932. }, {
  933. .plaintext = "abc",
  934. .psize = 3,
  935. .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
  936. "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf",
  937. }, {
  938. .plaintext = "Tiger",
  939. .psize = 5,
  940. .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
  941. "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec",
  942. }, {
  943. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
  944. .psize = 64,
  945. .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
  946. "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e",
  947. }, {
  948. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
  949. .psize = 64,
  950. .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
  951. "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9",
  952. }, {
  953. .plaintext = "Tiger - A Fast New Hash Function, "
  954. "by Ross Anderson and Eli Biham, "
  955. "proceedings of Fast Software Encryption 3, "
  956. "Cambridge, 1996.",
  957. .psize = 125,
  958. .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
  959. "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24",
  960. },
  961. };
  962. #define GHASH_TEST_VECTORS 1
  963. static struct hash_testvec ghash_tv_template[] =
  964. {
  965. {
  966. .key = "\xdf\xa6\xbf\x4d\xed\x81\xdb\x03\xff\xca\xff\x95\xf8\x30\xf0\x61",
  967. .ksize = 16,
  968. .plaintext = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0\xb3\x2b\x66\x56\xa0\x5b\x40\xb6",
  969. .psize = 16,
  970. .digest = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6"
  971. "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60",
  972. },
  973. };
  974. /*
  975. * HMAC-MD5 test vectors from RFC2202
  976. * (These need to be fixed to not use strlen).
  977. */
  978. #define HMAC_MD5_TEST_VECTORS 7
  979. static struct hash_testvec hmac_md5_tv_template[] =
  980. {
  981. {
  982. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  983. .ksize = 16,
  984. .plaintext = "Hi There",
  985. .psize = 8,
  986. .digest = "\x92\x94\x72\x7a\x36\x38\xbb\x1c"
  987. "\x13\xf4\x8e\xf8\x15\x8b\xfc\x9d",
  988. }, {
  989. .key = "Jefe",
  990. .ksize = 4,
  991. .plaintext = "what do ya want for nothing?",
  992. .psize = 28,
  993. .digest = "\x75\x0c\x78\x3e\x6a\xb0\xb5\x03"
  994. "\xea\xa8\x6e\x31\x0a\x5d\xb7\x38",
  995. .np = 2,
  996. .tap = {14, 14}
  997. }, {
  998. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  999. .ksize = 16,
  1000. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1001. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1002. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1003. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  1004. .psize = 50,
  1005. .digest = "\x56\xbe\x34\x52\x1d\x14\x4c\x88"
  1006. "\xdb\xb8\xc7\x33\xf0\xe8\xb3\xf6",
  1007. }, {
  1008. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1009. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1010. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  1011. .ksize = 25,
  1012. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1013. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1014. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1015. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1016. .psize = 50,
  1017. .digest = "\x69\x7e\xaf\x0a\xca\x3a\x3a\xea"
  1018. "\x3a\x75\x16\x47\x46\xff\xaa\x79",
  1019. }, {
  1020. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  1021. .ksize = 16,
  1022. .plaintext = "Test With Truncation",
  1023. .psize = 20,
  1024. .digest = "\x56\x46\x1e\xf2\x34\x2e\xdc\x00"
  1025. "\xf9\xba\xb9\x95\x69\x0e\xfd\x4c",
  1026. }, {
  1027. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1028. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1029. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1030. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1031. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1032. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1033. "\xaa\xaa",
  1034. .ksize = 80,
  1035. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1036. .psize = 54,
  1037. .digest = "\x6b\x1a\xb7\xfe\x4b\xd7\xbf\x8f"
  1038. "\x0b\x62\xe6\xce\x61\xb9\xd0\xcd",
  1039. }, {
  1040. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1041. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1042. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1043. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1044. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1045. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1046. "\xaa\xaa",
  1047. .ksize = 80,
  1048. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  1049. "Block-Size Data",
  1050. .psize = 73,
  1051. .digest = "\x6f\x63\x0f\xad\x67\xcd\xa0\xee"
  1052. "\x1f\xb1\xf5\x62\xdb\x3a\xa5\x3e",
  1053. },
  1054. };
  1055. /*
  1056. * HMAC-RIPEMD128 test vectors from RFC2286
  1057. */
  1058. #define HMAC_RMD128_TEST_VECTORS 7
  1059. static struct hash_testvec hmac_rmd128_tv_template[] = {
  1060. {
  1061. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  1062. .ksize = 16,
  1063. .plaintext = "Hi There",
  1064. .psize = 8,
  1065. .digest = "\xfb\xf6\x1f\x94\x92\xaa\x4b\xbf"
  1066. "\x81\xc1\x72\xe8\x4e\x07\x34\xdb",
  1067. }, {
  1068. .key = "Jefe",
  1069. .ksize = 4,
  1070. .plaintext = "what do ya want for nothing?",
  1071. .psize = 28,
  1072. .digest = "\x87\x5f\x82\x88\x62\xb6\xb3\x34"
  1073. "\xb4\x27\xc5\x5f\x9f\x7f\xf0\x9b",
  1074. .np = 2,
  1075. .tap = { 14, 14 },
  1076. }, {
  1077. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  1078. .ksize = 16,
  1079. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1080. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1081. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1082. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  1083. .psize = 50,
  1084. .digest = "\x09\xf0\xb2\x84\x6d\x2f\x54\x3d"
  1085. "\xa3\x63\xcb\xec\x8d\x62\xa3\x8d",
  1086. }, {
  1087. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1088. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1089. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  1090. .ksize = 25,
  1091. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1092. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1093. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1094. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1095. .psize = 50,
  1096. .digest = "\xbd\xbb\xd7\xcf\x03\xe4\x4b\x5a"
  1097. "\xa6\x0a\xf8\x15\xbe\x4d\x22\x94",
  1098. }, {
  1099. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  1100. .ksize = 16,
  1101. .plaintext = "Test With Truncation",
  1102. .psize = 20,
  1103. .digest = "\xe7\x98\x08\xf2\x4b\x25\xfd\x03"
  1104. "\x1c\x15\x5f\x0d\x55\x1d\x9a\x3a",
  1105. }, {
  1106. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1107. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1108. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1109. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1110. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1111. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1112. "\xaa\xaa",
  1113. .ksize = 80,
  1114. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1115. .psize = 54,
  1116. .digest = "\xdc\x73\x29\x28\xde\x98\x10\x4a"
  1117. "\x1f\x59\xd3\x73\xc1\x50\xac\xbb",
  1118. }, {
  1119. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1120. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1121. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1122. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1123. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1124. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1125. "\xaa\xaa",
  1126. .ksize = 80,
  1127. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  1128. "Block-Size Data",
  1129. .psize = 73,
  1130. .digest = "\x5c\x6b\xec\x96\x79\x3e\x16\xd4"
  1131. "\x06\x90\xc2\x37\x63\x5f\x30\xc5",
  1132. },
  1133. };
  1134. /*
  1135. * HMAC-RIPEMD160 test vectors from RFC2286
  1136. */
  1137. #define HMAC_RMD160_TEST_VECTORS 7
  1138. static struct hash_testvec hmac_rmd160_tv_template[] = {
  1139. {
  1140. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  1141. .ksize = 20,
  1142. .plaintext = "Hi There",
  1143. .psize = 8,
  1144. .digest = "\x24\xcb\x4b\xd6\x7d\x20\xfc\x1a\x5d\x2e"
  1145. "\xd7\x73\x2d\xcc\x39\x37\x7f\x0a\x56\x68",
  1146. }, {
  1147. .key = "Jefe",
  1148. .ksize = 4,
  1149. .plaintext = "what do ya want for nothing?",
  1150. .psize = 28,
  1151. .digest = "\xdd\xa6\xc0\x21\x3a\x48\x5a\x9e\x24\xf4"
  1152. "\x74\x20\x64\xa7\xf0\x33\xb4\x3c\x40\x69",
  1153. .np = 2,
  1154. .tap = { 14, 14 },
  1155. }, {
  1156. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  1157. .ksize = 20,
  1158. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1159. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1160. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1161. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  1162. .psize = 50,
  1163. .digest = "\xb0\xb1\x05\x36\x0d\xe7\x59\x96\x0a\xb4"
  1164. "\xf3\x52\x98\xe1\x16\xe2\x95\xd8\xe7\xc1",
  1165. }, {
  1166. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1167. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1168. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  1169. .ksize = 25,
  1170. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1171. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1172. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1173. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1174. .psize = 50,
  1175. .digest = "\xd5\xca\x86\x2f\x4d\x21\xd5\xe6\x10\xe1"
  1176. "\x8b\x4c\xf1\xbe\xb9\x7a\x43\x65\xec\xf4",
  1177. }, {
  1178. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  1179. .ksize = 20,
  1180. .plaintext = "Test With Truncation",
  1181. .psize = 20,
  1182. .digest = "\x76\x19\x69\x39\x78\xf9\x1d\x90\x53\x9a"
  1183. "\xe7\x86\x50\x0f\xf3\xd8\xe0\x51\x8e\x39",
  1184. }, {
  1185. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1186. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1187. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1188. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1189. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1190. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1191. "\xaa\xaa",
  1192. .ksize = 80,
  1193. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1194. .psize = 54,
  1195. .digest = "\x64\x66\xca\x07\xac\x5e\xac\x29\xe1\xbd"
  1196. "\x52\x3e\x5a\xda\x76\x05\xb7\x91\xfd\x8b",
  1197. }, {
  1198. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1199. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1200. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1201. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1202. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1203. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1204. "\xaa\xaa",
  1205. .ksize = 80,
  1206. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  1207. "Block-Size Data",
  1208. .psize = 73,
  1209. .digest = "\x69\xea\x60\x79\x8d\x71\x61\x6c\xce\x5f"
  1210. "\xd0\x87\x1e\x23\x75\x4c\xd7\x5d\x5a\x0a",
  1211. },
  1212. };
  1213. /*
  1214. * HMAC-SHA1 test vectors from RFC2202
  1215. */
  1216. #define HMAC_SHA1_TEST_VECTORS 7
  1217. static struct hash_testvec hmac_sha1_tv_template[] = {
  1218. {
  1219. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  1220. .ksize = 20,
  1221. .plaintext = "Hi There",
  1222. .psize = 8,
  1223. .digest = "\xb6\x17\x31\x86\x55\x05\x72\x64"
  1224. "\xe2\x8b\xc0\xb6\xfb\x37\x8c\x8e\xf1"
  1225. "\x46\xbe",
  1226. }, {
  1227. .key = "Jefe",
  1228. .ksize = 4,
  1229. .plaintext = "what do ya want for nothing?",
  1230. .psize = 28,
  1231. .digest = "\xef\xfc\xdf\x6a\xe5\xeb\x2f\xa2\xd2\x74"
  1232. "\x16\xd5\xf1\x84\xdf\x9c\x25\x9a\x7c\x79",
  1233. .np = 2,
  1234. .tap = { 14, 14 }
  1235. }, {
  1236. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  1237. .ksize = 20,
  1238. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1239. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1240. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1241. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  1242. .psize = 50,
  1243. .digest = "\x12\x5d\x73\x42\xb9\xac\x11\xcd\x91\xa3"
  1244. "\x9a\xf4\x8a\xa1\x7b\x4f\x63\xf1\x75\xd3",
  1245. }, {
  1246. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1247. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1248. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  1249. .ksize = 25,
  1250. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1251. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1252. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1253. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1254. .psize = 50,
  1255. .digest = "\x4c\x90\x07\xf4\x02\x62\x50\xc6\xbc\x84"
  1256. "\x14\xf9\xbf\x50\xc8\x6c\x2d\x72\x35\xda",
  1257. }, {
  1258. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  1259. .ksize = 20,
  1260. .plaintext = "Test With Truncation",
  1261. .psize = 20,
  1262. .digest = "\x4c\x1a\x03\x42\x4b\x55\xe0\x7f\xe7\xf2"
  1263. "\x7b\xe1\xd5\x8b\xb9\x32\x4a\x9a\x5a\x04",
  1264. }, {
  1265. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1266. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1267. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1268. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1269. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1270. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1271. "\xaa\xaa",
  1272. .ksize = 80,
  1273. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1274. .psize = 54,
  1275. .digest = "\xaa\x4a\xe5\xe1\x52\x72\xd0\x0e\x95\x70"
  1276. "\x56\x37\xce\x8a\x3b\x55\xed\x40\x21\x12",
  1277. }, {
  1278. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1279. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1280. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1281. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1282. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1283. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1284. "\xaa\xaa",
  1285. .ksize = 80,
  1286. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  1287. "Block-Size Data",
  1288. .psize = 73,
  1289. .digest = "\xe8\xe9\x9d\x0f\x45\x23\x7d\x78\x6d\x6b"
  1290. "\xba\xa7\x96\x5c\x78\x08\xbb\xff\x1a\x91",
  1291. },
  1292. };
  1293. /*
  1294. * SHA224 HMAC test vectors from RFC4231
  1295. */
  1296. #define HMAC_SHA224_TEST_VECTORS 4
  1297. static struct hash_testvec hmac_sha224_tv_template[] = {
  1298. {
  1299. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1300. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1301. "\x0b\x0b\x0b\x0b",
  1302. .ksize = 20,
  1303. /* ("Hi There") */
  1304. .plaintext = "\x48\x69\x20\x54\x68\x65\x72\x65",
  1305. .psize = 8,
  1306. .digest = "\x89\x6f\xb1\x12\x8a\xbb\xdf\x19"
  1307. "\x68\x32\x10\x7c\xd4\x9d\xf3\x3f"
  1308. "\x47\xb4\xb1\x16\x99\x12\xba\x4f"
  1309. "\x53\x68\x4b\x22",
  1310. }, {
  1311. .key = "Jefe",
  1312. .ksize = 4,
  1313. /* ("what do ya want for nothing?") */
  1314. .plaintext = "\x77\x68\x61\x74\x20\x64\x6f\x20"
  1315. "\x79\x61\x20\x77\x61\x6e\x74\x20"
  1316. "\x66\x6f\x72\x20\x6e\x6f\x74\x68"
  1317. "\x69\x6e\x67\x3f",
  1318. .psize = 28,
  1319. .digest = "\xa3\x0e\x01\x09\x8b\xc6\xdb\xbf"
  1320. "\x45\x69\x0f\x3a\x7e\x9e\x6d\x0f"
  1321. "\x8b\xbe\xa2\xa3\x9e\x61\x48\x00"
  1322. "\x8f\xd0\x5e\x44",
  1323. .np = 4,
  1324. .tap = { 7, 7, 7, 7 }
  1325. }, {
  1326. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1327. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1328. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1329. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1330. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1331. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1332. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1333. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1334. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1335. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1336. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1337. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1338. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1339. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1340. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1341. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1342. "\xaa\xaa\xaa",
  1343. .ksize = 131,
  1344. /* ("Test Using Larger Than Block-Size Key - Hash Key First") */
  1345. .plaintext = "\x54\x65\x73\x74\x20\x55\x73\x69"
  1346. "\x6e\x67\x20\x4c\x61\x72\x67\x65"
  1347. "\x72\x20\x54\x68\x61\x6e\x20\x42"
  1348. "\x6c\x6f\x63\x6b\x2d\x53\x69\x7a"
  1349. "\x65\x20\x4b\x65\x79\x20\x2d\x20"
  1350. "\x48\x61\x73\x68\x20\x4b\x65\x79"
  1351. "\x20\x46\x69\x72\x73\x74",
  1352. .psize = 54,
  1353. .digest = "\x95\xe9\xa0\xdb\x96\x20\x95\xad"
  1354. "\xae\xbe\x9b\x2d\x6f\x0d\xbc\xe2"
  1355. "\xd4\x99\xf1\x12\xf2\xd2\xb7\x27"
  1356. "\x3f\xa6\x87\x0e",
  1357. }, {
  1358. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1359. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1360. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1361. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1362. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1363. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1364. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1365. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1366. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1367. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1368. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1369. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1370. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1371. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1372. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1373. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1374. "\xaa\xaa\xaa",
  1375. .ksize = 131,
  1376. /* ("This is a test using a larger than block-size key and a")
  1377. (" larger than block-size data. The key needs to be")
  1378. (" hashed before being used by the HMAC algorithm.") */
  1379. .plaintext = "\x54\x68\x69\x73\x20\x69\x73\x20"
  1380. "\x61\x20\x74\x65\x73\x74\x20\x75"
  1381. "\x73\x69\x6e\x67\x20\x61\x20\x6c"
  1382. "\x61\x72\x67\x65\x72\x20\x74\x68"
  1383. "\x61\x6e\x20\x62\x6c\x6f\x63\x6b"
  1384. "\x2d\x73\x69\x7a\x65\x20\x6b\x65"
  1385. "\x79\x20\x61\x6e\x64\x20\x61\x20"
  1386. "\x6c\x61\x72\x67\x65\x72\x20\x74"
  1387. "\x68\x61\x6e\x20\x62\x6c\x6f\x63"
  1388. "\x6b\x2d\x73\x69\x7a\x65\x20\x64"
  1389. "\x61\x74\x61\x2e\x20\x54\x68\x65"
  1390. "\x20\x6b\x65\x79\x20\x6e\x65\x65"
  1391. "\x64\x73\x20\x74\x6f\x20\x62\x65"
  1392. "\x20\x68\x61\x73\x68\x65\x64\x20"
  1393. "\x62\x65\x66\x6f\x72\x65\x20\x62"
  1394. "\x65\x69\x6e\x67\x20\x75\x73\x65"
  1395. "\x64\x20\x62\x79\x20\x74\x68\x65"
  1396. "\x20\x48\x4d\x41\x43\x20\x61\x6c"
  1397. "\x67\x6f\x72\x69\x74\x68\x6d\x2e",
  1398. .psize = 152,
  1399. .digest = "\x3a\x85\x41\x66\xac\x5d\x9f\x02"
  1400. "\x3f\x54\xd5\x17\xd0\xb3\x9d\xbd"
  1401. "\x94\x67\x70\xdb\x9c\x2b\x95\xc9"
  1402. "\xf6\xf5\x65\xd1",
  1403. },
  1404. };
  1405. /*
  1406. * HMAC-SHA256 test vectors from
  1407. * draft-ietf-ipsec-ciph-sha-256-01.txt
  1408. */
  1409. #define HMAC_SHA256_TEST_VECTORS 10
  1410. static struct hash_testvec hmac_sha256_tv_template[] = {
  1411. {
  1412. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1413. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1414. "\x11\x12\x13\x14\x15\x16\x17\x18"
  1415. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
  1416. .ksize = 32,
  1417. .plaintext = "abc",
  1418. .psize = 3,
  1419. .digest = "\xa2\x1b\x1f\x5d\x4c\xf4\xf7\x3a"
  1420. "\x4d\xd9\x39\x75\x0f\x7a\x06\x6a"
  1421. "\x7f\x98\xcc\x13\x1c\xb1\x6a\x66"
  1422. "\x92\x75\x90\x21\xcf\xab\x81\x81",
  1423. }, {
  1424. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1425. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1426. "\x11\x12\x13\x14\x15\x16\x17\x18"
  1427. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
  1428. .ksize = 32,
  1429. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  1430. .psize = 56,
  1431. .digest = "\x10\x4f\xdc\x12\x57\x32\x8f\x08"
  1432. "\x18\x4b\xa7\x31\x31\xc5\x3c\xae"
  1433. "\xe6\x98\xe3\x61\x19\x42\x11\x49"
  1434. "\xea\x8c\x71\x24\x56\x69\x7d\x30",
  1435. }, {
  1436. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1437. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1438. "\x11\x12\x13\x14\x15\x16\x17\x18"
  1439. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
  1440. .ksize = 32,
  1441. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
  1442. "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  1443. .psize = 112,
  1444. .digest = "\x47\x03\x05\xfc\x7e\x40\xfe\x34"
  1445. "\xd3\xee\xb3\xe7\x73\xd9\x5a\xab"
  1446. "\x73\xac\xf0\xfd\x06\x04\x47\xa5"
  1447. "\xeb\x45\x95\xbf\x33\xa9\xd1\xa3",
  1448. }, {
  1449. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1450. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1451. "\x0b\x0b\x0b\x0b\x0b\x0b",
  1452. .ksize = 32,
  1453. .plaintext = "Hi There",
  1454. .psize = 8,
  1455. .digest = "\x19\x8a\x60\x7e\xb4\x4b\xfb\xc6"
  1456. "\x99\x03\xa0\xf1\xcf\x2b\xbd\xc5"
  1457. "\xba\x0a\xa3\xf3\xd9\xae\x3c\x1c"
  1458. "\x7a\x3b\x16\x96\xa0\xb6\x8c\xf7",
  1459. }, {
  1460. .key = "Jefe",
  1461. .ksize = 4,
  1462. .plaintext = "what do ya want for nothing?",
  1463. .psize = 28,
  1464. .digest = "\x5b\xdc\xc1\x46\xbf\x60\x75\x4e"
  1465. "\x6a\x04\x24\x26\x08\x95\x75\xc7"
  1466. "\x5a\x00\x3f\x08\x9d\x27\x39\x83"
  1467. "\x9d\xec\x58\xb9\x64\xec\x38\x43",
  1468. .np = 2,
  1469. .tap = { 14, 14 }
  1470. }, {
  1471. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1472. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1473. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  1474. .ksize = 32,
  1475. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1476. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1477. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1478. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  1479. .psize = 50,
  1480. .digest = "\xcd\xcb\x12\x20\xd1\xec\xcc\xea"
  1481. "\x91\xe5\x3a\xba\x30\x92\xf9\x62"
  1482. "\xe5\x49\xfe\x6c\xe9\xed\x7f\xdc"
  1483. "\x43\x19\x1f\xbd\xe4\x5c\x30\xb0",
  1484. }, {
  1485. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1486. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1487. "\x11\x12\x13\x14\x15\x16\x17\x18"
  1488. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  1489. "\x21\x22\x23\x24\x25",
  1490. .ksize = 37,
  1491. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1492. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1493. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1494. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1495. .psize = 50,
  1496. .digest = "\xd4\x63\x3c\x17\xf6\xfb\x8d\x74"
  1497. "\x4c\x66\xde\xe0\xf8\xf0\x74\x55"
  1498. "\x6e\xc4\xaf\x55\xef\x07\x99\x85"
  1499. "\x41\x46\x8e\xb4\x9b\xd2\xe9\x17",
  1500. }, {
  1501. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
  1502. "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
  1503. "\x0c\x0c\x0c\x0c\x0c\x0c",
  1504. .ksize = 32,
  1505. .plaintext = "Test With Truncation",
  1506. .psize = 20,
  1507. .digest = "\x75\x46\xaf\x01\x84\x1f\xc0\x9b"
  1508. "\x1a\xb9\xc3\x74\x9a\x5f\x1c\x17"
  1509. "\xd4\xf5\x89\x66\x8a\x58\x7b\x27"
  1510. "\x00\xa9\xc9\x7c\x11\x93\xcf\x42",
  1511. }, {
  1512. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1513. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1514. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1515. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1516. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1517. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1518. "\xaa\xaa",
  1519. .ksize = 80,
  1520. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1521. .psize = 54,
  1522. .digest = "\x69\x53\x02\x5e\xd9\x6f\x0c\x09"
  1523. "\xf8\x0a\x96\xf7\x8e\x65\x38\xdb"
  1524. "\xe2\xe7\xb8\x20\xe3\xdd\x97\x0e"
  1525. "\x7d\xdd\x39\x09\x1b\x32\x35\x2f",
  1526. }, {
  1527. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1528. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1529. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1530. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1531. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1532. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1533. "\xaa\xaa",
  1534. .ksize = 80,
  1535. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than "
  1536. "One Block-Size Data",
  1537. .psize = 73,
  1538. .digest = "\x63\x55\xac\x22\xe8\x90\xd0\xa3"
  1539. "\xc8\x48\x1a\x5c\xa4\x82\x5b\xc8"
  1540. "\x84\xd3\xe7\xa1\xff\x98\xa2\xfc"
  1541. "\x2a\xc7\xd8\xe0\x64\xc3\xb2\xe6",
  1542. },
  1543. };
  1544. #define XCBC_AES_TEST_VECTORS 6
  1545. static struct hash_testvec aes_xcbc128_tv_template[] = {
  1546. {
  1547. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1548. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1549. .plaintext = zeroed_string,
  1550. .digest = "\x75\xf0\x25\x1d\x52\x8a\xc0\x1c"
  1551. "\x45\x73\xdf\xd5\x84\xd7\x9f\x29",
  1552. .psize = 0,
  1553. .ksize = 16,
  1554. }, {
  1555. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1556. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1557. .plaintext = "\x00\x01\x02",
  1558. .digest = "\x5b\x37\x65\x80\xae\x2f\x19\xaf"
  1559. "\xe7\x21\x9c\xee\xf1\x72\x75\x6f",
  1560. .psize = 3,
  1561. .ksize = 16,
  1562. } , {
  1563. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1564. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1565. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1566. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1567. .digest = "\xd2\xa2\x46\xfa\x34\x9b\x68\xa7"
  1568. "\x99\x98\xa4\x39\x4f\xf7\xa2\x63",
  1569. .psize = 16,
  1570. .ksize = 16,
  1571. }, {
  1572. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1573. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1574. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1575. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  1576. "\x10\x11\x12\x13",
  1577. .digest = "\x47\xf5\x1b\x45\x64\x96\x62\x15"
  1578. "\xb8\x98\x5c\x63\x05\x5e\xd3\x08",
  1579. .tap = { 10, 10 },
  1580. .psize = 20,
  1581. .np = 2,
  1582. .ksize = 16,
  1583. }, {
  1584. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1585. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1586. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1587. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  1588. "\x10\x11\x12\x13\x14\x15\x16\x17"
  1589. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  1590. .digest = "\xf5\x4f\x0e\xc8\xd2\xb9\xf3\xd3"
  1591. "\x68\x07\x73\x4b\xd5\x28\x3f\xd4",
  1592. .psize = 32,
  1593. .ksize = 16,
  1594. }, {
  1595. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1596. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1597. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1598. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  1599. "\x10\x11\x12\x13\x14\x15\x16\x17"
  1600. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  1601. "\x20\x21",
  1602. .digest = "\xbe\xcb\xb3\xbc\xcd\xb5\x18\xa3"
  1603. "\x06\x77\xd5\x48\x1f\xb6\xb4\xd8",
  1604. .tap = { 17, 17 },
  1605. .psize = 34,
  1606. .np = 2,
  1607. .ksize = 16,
  1608. }
  1609. };
  1610. #define VMAC_AES_TEST_VECTORS 8
  1611. static char vmac_string1[128] = {'\x01', '\x01', '\x01', '\x01',
  1612. '\x02', '\x03', '\x02', '\x02',
  1613. '\x02', '\x04', '\x01', '\x07',
  1614. '\x04', '\x01', '\x04', '\x03',};
  1615. static char vmac_string2[128] = {'a', 'b', 'c',};
  1616. static char vmac_string3[128] = {'a', 'b', 'c', 'a', 'b', 'c',
  1617. 'a', 'b', 'c', 'a', 'b', 'c',
  1618. 'a', 'b', 'c', 'a', 'b', 'c',
  1619. 'a', 'b', 'c', 'a', 'b', 'c',
  1620. 'a', 'b', 'c', 'a', 'b', 'c',
  1621. 'a', 'b', 'c', 'a', 'b', 'c',
  1622. 'a', 'b', 'c', 'a', 'b', 'c',
  1623. 'a', 'b', 'c', 'a', 'b', 'c',
  1624. };
  1625. static struct hash_testvec aes_vmac128_tv_template[] = {
  1626. {
  1627. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1628. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1629. .plaintext = NULL,
  1630. .digest = "\x07\x58\x80\x35\x77\xa4\x7b\x54",
  1631. .psize = 0,
  1632. .ksize = 16,
  1633. }, {
  1634. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1635. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1636. .plaintext = vmac_string1,
  1637. .digest = "\xce\xf5\x3c\xd3\xae\x68\x8c\xa1",
  1638. .psize = 128,
  1639. .ksize = 16,
  1640. }, {
  1641. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1642. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1643. .plaintext = vmac_string2,
  1644. .digest = "\xc9\x27\xb0\x73\x81\xbd\x14\x2d",
  1645. .psize = 128,
  1646. .ksize = 16,
  1647. }, {
  1648. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1649. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1650. .plaintext = vmac_string3,
  1651. .digest = "\x8d\x1a\x95\x8c\x98\x47\x0b\x19",
  1652. .psize = 128,
  1653. .ksize = 16,
  1654. }, {
  1655. .key = "abcdefghijklmnop",
  1656. .plaintext = NULL,
  1657. .digest = "\x3b\x89\xa1\x26\x9e\x55\x8f\x84",
  1658. .psize = 0,
  1659. .ksize = 16,
  1660. }, {
  1661. .key = "abcdefghijklmnop",
  1662. .plaintext = vmac_string1,
  1663. .digest = "\xab\x5e\xab\xb0\xf6\x8d\x74\xc2",
  1664. .psize = 128,
  1665. .ksize = 16,
  1666. }, {
  1667. .key = "abcdefghijklmnop",
  1668. .plaintext = vmac_string2,
  1669. .digest = "\x11\x15\x68\x42\x3d\x7b\x09\xdf",
  1670. .psize = 128,
  1671. .ksize = 16,
  1672. }, {
  1673. .key = "abcdefghijklmnop",
  1674. .plaintext = vmac_string3,
  1675. .digest = "\x8b\x32\x8f\xe1\xed\x8f\xfa\xd4",
  1676. .psize = 128,
  1677. .ksize = 16,
  1678. },
  1679. };
  1680. /*
  1681. * SHA384 HMAC test vectors from RFC4231
  1682. */
  1683. #define HMAC_SHA384_TEST_VECTORS 4
  1684. static struct hash_testvec hmac_sha384_tv_template[] = {
  1685. {
  1686. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1687. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1688. "\x0b\x0b\x0b\x0b",
  1689. .ksize = 20,
  1690. .plaintext = "Hi There",
  1691. .psize = 8,
  1692. .digest = "\xaf\xd0\x39\x44\xd8\x48\x95\x62"
  1693. "\x6b\x08\x25\xf4\xab\x46\x90\x7f"
  1694. "\x15\xf9\xda\xdb\xe4\x10\x1e\xc6"
  1695. "\x82\xaa\x03\x4c\x7c\xeb\xc5\x9c"
  1696. "\xfa\xea\x9e\xa9\x07\x6e\xde\x7f"
  1697. "\x4a\xf1\x52\xe8\xb2\xfa\x9c\xb6",
  1698. }, {
  1699. .key = "Jefe",
  1700. .ksize = 4,
  1701. .plaintext = "what do ya want for nothing?",
  1702. .psize = 28,
  1703. .digest = "\xaf\x45\xd2\xe3\x76\x48\x40\x31"
  1704. "\x61\x7f\x78\xd2\xb5\x8a\x6b\x1b"
  1705. "\x9c\x7e\xf4\x64\xf5\xa0\x1b\x47"
  1706. "\xe4\x2e\xc3\x73\x63\x22\x44\x5e"
  1707. "\x8e\x22\x40\xca\x5e\x69\xe2\xc7"
  1708. "\x8b\x32\x39\xec\xfa\xb2\x16\x49",
  1709. .np = 4,
  1710. .tap = { 7, 7, 7, 7 }
  1711. }, {
  1712. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1713. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1714. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1715. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1716. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1717. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1718. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1719. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1720. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1721. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1722. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1723. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1724. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1725. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1726. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1727. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1728. "\xaa\xaa\xaa",
  1729. .ksize = 131,
  1730. .plaintext = "Test Using Larger Than Block-Siz"
  1731. "e Key - Hash Key First",
  1732. .psize = 54,
  1733. .digest = "\x4e\xce\x08\x44\x85\x81\x3e\x90"
  1734. "\x88\xd2\xc6\x3a\x04\x1b\xc5\xb4"
  1735. "\x4f\x9e\xf1\x01\x2a\x2b\x58\x8f"
  1736. "\x3c\xd1\x1f\x05\x03\x3a\xc4\xc6"
  1737. "\x0c\x2e\xf6\xab\x40\x30\xfe\x82"
  1738. "\x96\x24\x8d\xf1\x63\xf4\x49\x52",
  1739. }, {
  1740. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1741. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1742. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1743. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1744. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1745. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1746. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1747. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1748. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1749. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1750. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1751. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1752. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1753. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1754. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1755. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1756. "\xaa\xaa\xaa",
  1757. .ksize = 131,
  1758. .plaintext = "This is a test u"
  1759. "sing a larger th"
  1760. "an block-size ke"
  1761. "y and a larger t"
  1762. "han block-size d"
  1763. "ata. The key nee"
  1764. "ds to be hashed "
  1765. "before being use"
  1766. "d by the HMAC al"
  1767. "gorithm.",
  1768. .psize = 152,
  1769. .digest = "\x66\x17\x17\x8e\x94\x1f\x02\x0d"
  1770. "\x35\x1e\x2f\x25\x4e\x8f\xd3\x2c"
  1771. "\x60\x24\x20\xfe\xb0\xb8\xfb\x9a"
  1772. "\xdc\xce\xbb\x82\x46\x1e\x99\xc5"
  1773. "\xa6\x78\xcc\x31\xe7\x99\x17\x6d"
  1774. "\x38\x60\xe6\x11\x0c\x46\x52\x3e",
  1775. },
  1776. };
  1777. /*
  1778. * SHA512 HMAC test vectors from RFC4231
  1779. */
  1780. #define HMAC_SHA512_TEST_VECTORS 4
  1781. static struct hash_testvec hmac_sha512_tv_template[] = {
  1782. {
  1783. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1784. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1785. "\x0b\x0b\x0b\x0b",
  1786. .ksize = 20,
  1787. .plaintext = "Hi There",
  1788. .psize = 8,
  1789. .digest = "\x87\xaa\x7c\xde\xa5\xef\x61\x9d"
  1790. "\x4f\xf0\xb4\x24\x1a\x1d\x6c\xb0"
  1791. "\x23\x79\xf4\xe2\xce\x4e\xc2\x78"
  1792. "\x7a\xd0\xb3\x05\x45\xe1\x7c\xde"
  1793. "\xda\xa8\x33\xb7\xd6\xb8\xa7\x02"
  1794. "\x03\x8b\x27\x4e\xae\xa3\xf4\xe4"
  1795. "\xbe\x9d\x91\x4e\xeb\x61\xf1\x70"
  1796. "\x2e\x69\x6c\x20\x3a\x12\x68\x54",
  1797. }, {
  1798. .key = "Jefe",
  1799. .ksize = 4,
  1800. .plaintext = "what do ya want for nothing?",
  1801. .psize = 28,
  1802. .digest = "\x16\x4b\x7a\x7b\xfc\xf8\x19\xe2"
  1803. "\xe3\x95\xfb\xe7\x3b\x56\xe0\xa3"
  1804. "\x87\xbd\x64\x22\x2e\x83\x1f\xd6"
  1805. "\x10\x27\x0c\xd7\xea\x25\x05\x54"
  1806. "\x97\x58\xbf\x75\xc0\x5a\x99\x4a"
  1807. "\x6d\x03\x4f\x65\xf8\xf0\xe6\xfd"
  1808. "\xca\xea\xb1\xa3\x4d\x4a\x6b\x4b"
  1809. "\x63\x6e\x07\x0a\x38\xbc\xe7\x37",
  1810. .np = 4,
  1811. .tap = { 7, 7, 7, 7 }
  1812. }, {
  1813. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1814. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1815. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1816. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1817. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1818. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1819. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1820. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1821. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1822. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1823. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1824. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1825. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1826. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1827. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1828. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1829. "\xaa\xaa\xaa",
  1830. .ksize = 131,
  1831. .plaintext = "Test Using Large"
  1832. "r Than Block-Siz"
  1833. "e Key - Hash Key"
  1834. " First",
  1835. .psize = 54,
  1836. .digest = "\x80\xb2\x42\x63\xc7\xc1\xa3\xeb"
  1837. "\xb7\x14\x93\xc1\xdd\x7b\xe8\xb4"
  1838. "\x9b\x46\xd1\xf4\x1b\x4a\xee\xc1"
  1839. "\x12\x1b\x01\x37\x83\xf8\xf3\x52"
  1840. "\x6b\x56\xd0\x37\xe0\x5f\x25\x98"
  1841. "\xbd\x0f\xd2\x21\x5d\x6a\x1e\x52"
  1842. "\x95\xe6\x4f\x73\xf6\x3f\x0a\xec"
  1843. "\x8b\x91\x5a\x98\x5d\x78\x65\x98",
  1844. }, {
  1845. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1846. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1847. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1848. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1849. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1850. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1851. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1852. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1853. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1854. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1855. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1856. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1857. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1858. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1859. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1860. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1861. "\xaa\xaa\xaa",
  1862. .ksize = 131,
  1863. .plaintext =
  1864. "This is a test u"
  1865. "sing a larger th"
  1866. "an block-size ke"
  1867. "y and a larger t"
  1868. "han block-size d"
  1869. "ata. The key nee"
  1870. "ds to be hashed "
  1871. "before being use"
  1872. "d by the HMAC al"
  1873. "gorithm.",
  1874. .psize = 152,
  1875. .digest = "\xe3\x7b\x6a\x77\x5d\xc8\x7d\xba"
  1876. "\xa4\xdf\xa9\xf9\x6e\x5e\x3f\xfd"
  1877. "\xde\xbd\x71\xf8\x86\x72\x89\x86"
  1878. "\x5d\xf5\xa3\x2d\x20\xcd\xc9\x44"
  1879. "\xb6\x02\x2c\xac\x3c\x49\x82\xb1"
  1880. "\x0d\x5e\xeb\x55\xc3\xe4\xde\x15"
  1881. "\x13\x46\x76\xfb\x6d\xe0\x44\x60"
  1882. "\x65\xc9\x74\x40\xfa\x8c\x6a\x58",
  1883. },
  1884. };
  1885. /*
  1886. * DES test vectors.
  1887. */
  1888. #define DES_ENC_TEST_VECTORS 10
  1889. #define DES_DEC_TEST_VECTORS 4
  1890. #define DES_CBC_ENC_TEST_VECTORS 5
  1891. #define DES_CBC_DEC_TEST_VECTORS 4
  1892. #define DES3_EDE_ENC_TEST_VECTORS 3
  1893. #define DES3_EDE_DEC_TEST_VECTORS 3
  1894. #define DES3_EDE_CBC_ENC_TEST_VECTORS 1
  1895. #define DES3_EDE_CBC_DEC_TEST_VECTORS 1
  1896. static struct cipher_testvec des_enc_tv_template[] = {
  1897. { /* From Applied Cryptography */
  1898. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1899. .klen = 8,
  1900. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  1901. .ilen = 8,
  1902. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  1903. .rlen = 8,
  1904. }, { /* Same key, different plaintext block */
  1905. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1906. .klen = 8,
  1907. .input = "\x22\x33\x44\x55\x66\x77\x88\x99",
  1908. .ilen = 8,
  1909. .result = "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  1910. .rlen = 8,
  1911. }, { /* Sbox test from NBS */
  1912. .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
  1913. .klen = 8,
  1914. .input = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
  1915. .ilen = 8,
  1916. .result = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  1917. .rlen = 8,
  1918. }, { /* Three blocks */
  1919. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1920. .klen = 8,
  1921. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1922. "\x22\x33\x44\x55\x66\x77\x88\x99"
  1923. "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
  1924. .ilen = 24,
  1925. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1926. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
  1927. "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
  1928. .rlen = 24,
  1929. }, { /* Weak key */
  1930. .fail = 1,
  1931. .wk = 1,
  1932. .key = "\x01\x01\x01\x01\x01\x01\x01\x01",
  1933. .klen = 8,
  1934. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  1935. .ilen = 8,
  1936. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  1937. .rlen = 8,
  1938. }, { /* Two blocks -- for testing encryption across pages */
  1939. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1940. .klen = 8,
  1941. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1942. "\x22\x33\x44\x55\x66\x77\x88\x99",
  1943. .ilen = 16,
  1944. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1945. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  1946. .rlen = 16,
  1947. .np = 2,
  1948. .tap = { 8, 8 }
  1949. }, { /* Four blocks -- for testing encryption with chunking */
  1950. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1951. .klen = 8,
  1952. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1953. "\x22\x33\x44\x55\x66\x77\x88\x99"
  1954. "\xca\xfe\xba\xbe\xfe\xed\xbe\xef"
  1955. "\x22\x33\x44\x55\x66\x77\x88\x99",
  1956. .ilen = 32,
  1957. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1958. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
  1959. "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90"
  1960. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  1961. .rlen = 32,
  1962. .np = 3,
  1963. .tap = { 14, 10, 8 }
  1964. }, {
  1965. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1966. .klen = 8,
  1967. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1968. "\x22\x33\x44\x55\x66\x77\x88\x99"
  1969. "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
  1970. .ilen = 24,
  1971. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1972. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
  1973. "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
  1974. .rlen = 24,
  1975. .np = 4,
  1976. .tap = { 2, 1, 3, 18 }
  1977. }, {
  1978. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1979. .klen = 8,
  1980. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1981. "\x22\x33\x44\x55\x66\x77\x88\x99",
  1982. .ilen = 16,
  1983. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1984. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  1985. .rlen = 16,
  1986. .np = 5,
  1987. .tap = { 2, 2, 2, 2, 8 }
  1988. }, {
  1989. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1990. .klen = 8,
  1991. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  1992. .ilen = 8,
  1993. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  1994. .rlen = 8,
  1995. .np = 8,
  1996. .tap = { 1, 1, 1, 1, 1, 1, 1, 1 }
  1997. },
  1998. };
  1999. static struct cipher_testvec des_dec_tv_template[] = {
  2000. { /* From Applied Cryptography */
  2001. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2002. .klen = 8,
  2003. .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  2004. .ilen = 8,
  2005. .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  2006. .rlen = 8,
  2007. }, { /* Sbox test from NBS */
  2008. .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
  2009. .klen = 8,
  2010. .input = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  2011. .ilen = 8,
  2012. .result = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
  2013. .rlen = 8,
  2014. }, { /* Two blocks, for chunking test */
  2015. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2016. .klen = 8,
  2017. .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  2018. "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  2019. .ilen = 16,
  2020. .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  2021. "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
  2022. .rlen = 16,
  2023. .np = 2,
  2024. .tap = { 8, 8 }
  2025. }, {
  2026. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2027. .klen = 8,
  2028. .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  2029. "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  2030. .ilen = 16,
  2031. .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  2032. "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
  2033. .rlen = 16,
  2034. .np = 3,
  2035. .tap = { 3, 12, 1 }
  2036. },
  2037. };
  2038. static struct cipher_testvec des_cbc_enc_tv_template[] = {
  2039. { /* From OpenSSL */
  2040. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2041. .klen = 8,
  2042. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2043. .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
  2044. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  2045. "\x68\x65\x20\x74\x69\x6d\x65\x20",
  2046. .ilen = 24,
  2047. .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
  2048. "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
  2049. "\x46\x8e\x91\x15\x78\x88\xba\x68",
  2050. .rlen = 24,
  2051. }, { /* FIPS Pub 81 */
  2052. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2053. .klen = 8,
  2054. .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
  2055. .input = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
  2056. .ilen = 8,
  2057. .result = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  2058. .rlen = 8,
  2059. }, {
  2060. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2061. .klen = 8,
  2062. .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  2063. .input = "\x68\x65\x20\x74\x69\x6d\x65\x20",
  2064. .ilen = 8,
  2065. .result = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  2066. .rlen = 8,
  2067. }, {
  2068. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2069. .klen = 8,
  2070. .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  2071. .input = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
  2072. .ilen = 8,
  2073. .result = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
  2074. .rlen = 8,
  2075. }, { /* Copy of openssl vector for chunk testing */
  2076. /* From OpenSSL */
  2077. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2078. .klen = 8,
  2079. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2080. .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
  2081. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  2082. "\x68\x65\x20\x74\x69\x6d\x65\x20",
  2083. .ilen = 24,
  2084. .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
  2085. "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
  2086. "\x46\x8e\x91\x15\x78\x88\xba\x68",
  2087. .rlen = 24,
  2088. .np = 2,
  2089. .tap = { 13, 11 }
  2090. },
  2091. };
  2092. static struct cipher_testvec des_cbc_dec_tv_template[] = {
  2093. { /* FIPS Pub 81 */
  2094. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2095. .klen = 8,
  2096. .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
  2097. .input = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  2098. .ilen = 8,
  2099. .result = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
  2100. .rlen = 8,
  2101. }, {
  2102. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2103. .klen = 8,
  2104. .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  2105. .input = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  2106. .ilen = 8,
  2107. .result = "\x68\x65\x20\x74\x69\x6d\x65\x20",
  2108. .rlen = 8,
  2109. }, {
  2110. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2111. .klen = 8,
  2112. .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  2113. .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
  2114. .ilen = 8,
  2115. .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
  2116. .rlen = 8,
  2117. }, { /* Copy of above, for chunk testing */
  2118. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2119. .klen = 8,
  2120. .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  2121. .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
  2122. .ilen = 8,
  2123. .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
  2124. .rlen = 8,
  2125. .np = 2,
  2126. .tap = { 4, 4 }
  2127. },
  2128. };
  2129. static struct cipher_testvec des3_ede_enc_tv_template[] = {
  2130. { /* These are from openssl */
  2131. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2132. "\x55\x55\x55\x55\x55\x55\x55\x55"
  2133. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2134. .klen = 24,
  2135. .input = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
  2136. .ilen = 8,
  2137. .result = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
  2138. .rlen = 8,
  2139. }, {
  2140. .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
  2141. "\x86\x02\x87\x66\x59\x08\x21\x98"
  2142. "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
  2143. .klen = 24,
  2144. .input = "\x73\x71\x75\x69\x67\x67\x6c\x65",
  2145. .ilen = 8,
  2146. .result = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
  2147. .rlen = 8,
  2148. }, {
  2149. .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
  2150. "\x91\x07\xd0\x15\x89\x19\x01\x01"
  2151. "\x19\x07\x92\x10\x98\x1a\x01\x01",
  2152. .klen = 24,
  2153. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2154. .ilen = 8,
  2155. .result = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
  2156. .rlen = 8,
  2157. },
  2158. };
  2159. static struct cipher_testvec des3_ede_dec_tv_template[] = {
  2160. { /* These are from openssl */
  2161. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2162. "\x55\x55\x55\x55\x55\x55\x55\x55"
  2163. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2164. .klen = 24,
  2165. .input = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
  2166. .ilen = 8,
  2167. .result = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
  2168. .rlen = 8,
  2169. }, {
  2170. .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
  2171. "\x86\x02\x87\x66\x59\x08\x21\x98"
  2172. "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
  2173. .klen = 24,
  2174. .input = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
  2175. .ilen = 8,
  2176. .result = "\x73\x71\x75\x69\x67\x67\x6c\x65",
  2177. .rlen = 8,
  2178. }, {
  2179. .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
  2180. "\x91\x07\xd0\x15\x89\x19\x01\x01"
  2181. "\x19\x07\x92\x10\x98\x1a\x01\x01",
  2182. .klen = 24,
  2183. .input = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
  2184. .ilen = 8,
  2185. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2186. .rlen = 8,
  2187. },
  2188. };
  2189. static struct cipher_testvec des3_ede_cbc_enc_tv_template[] = {
  2190. { /* Generated from openssl */
  2191. .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
  2192. "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
  2193. "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
  2194. .klen = 24,
  2195. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  2196. .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  2197. "\x53\x20\x63\x65\x65\x72\x73\x74"
  2198. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  2199. "\x20\x79\x65\x53\x72\x63\x74\x65"
  2200. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  2201. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  2202. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  2203. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  2204. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  2205. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  2206. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  2207. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  2208. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  2209. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  2210. "\x63\x65\x65\x72\x73\x74\x54\x20"
  2211. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  2212. .ilen = 128,
  2213. .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
  2214. "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
  2215. "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
  2216. "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
  2217. "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
  2218. "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
  2219. "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
  2220. "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
  2221. "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
  2222. "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
  2223. "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
  2224. "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
  2225. "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
  2226. "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
  2227. "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
  2228. "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
  2229. .rlen = 128,
  2230. },
  2231. };
  2232. static struct cipher_testvec des3_ede_cbc_dec_tv_template[] = {
  2233. { /* Generated from openssl */
  2234. .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
  2235. "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
  2236. "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
  2237. .klen = 24,
  2238. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  2239. .input = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
  2240. "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
  2241. "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
  2242. "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
  2243. "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
  2244. "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
  2245. "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
  2246. "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
  2247. "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
  2248. "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
  2249. "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
  2250. "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
  2251. "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
  2252. "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
  2253. "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
  2254. "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
  2255. .ilen = 128,
  2256. .result = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  2257. "\x53\x20\x63\x65\x65\x72\x73\x74"
  2258. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  2259. "\x20\x79\x65\x53\x72\x63\x74\x65"
  2260. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  2261. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  2262. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  2263. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  2264. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  2265. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  2266. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  2267. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  2268. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  2269. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  2270. "\x63\x65\x65\x72\x73\x74\x54\x20"
  2271. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  2272. .rlen = 128,
  2273. },
  2274. };
  2275. /*
  2276. * Blowfish test vectors.
  2277. */
  2278. #define BF_ENC_TEST_VECTORS 6
  2279. #define BF_DEC_TEST_VECTORS 6
  2280. #define BF_CBC_ENC_TEST_VECTORS 1
  2281. #define BF_CBC_DEC_TEST_VECTORS 1
  2282. static struct cipher_testvec bf_enc_tv_template[] = {
  2283. { /* DES test vectors from OpenSSL */
  2284. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2285. .klen = 8,
  2286. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2287. .ilen = 8,
  2288. .result = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
  2289. .rlen = 8,
  2290. }, {
  2291. .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
  2292. .klen = 8,
  2293. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2294. .ilen = 8,
  2295. .result = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
  2296. .rlen = 8,
  2297. }, {
  2298. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  2299. .klen = 8,
  2300. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2301. .ilen = 8,
  2302. .result = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
  2303. .rlen = 8,
  2304. }, { /* Vary the keylength... */
  2305. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2306. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
  2307. .klen = 16,
  2308. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2309. .ilen = 8,
  2310. .result = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
  2311. .rlen = 8,
  2312. }, {
  2313. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2314. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  2315. "\x00\x11\x22\x33\x44",
  2316. .klen = 21,
  2317. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2318. .ilen = 8,
  2319. .result = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
  2320. .rlen = 8,
  2321. }, { /* Generated with bf488 */
  2322. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2323. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  2324. "\x00\x11\x22\x33\x44\x55\x66\x77"
  2325. "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
  2326. "\x58\x40\x23\x64\x1a\xba\x61\x76"
  2327. "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
  2328. "\xff\xff\xff\xff\xff\xff\xff\xff",
  2329. .klen = 56,
  2330. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2331. .ilen = 8,
  2332. .result = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
  2333. .rlen = 8,
  2334. },
  2335. };
  2336. static struct cipher_testvec bf_dec_tv_template[] = {
  2337. { /* DES test vectors from OpenSSL */
  2338. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2339. .klen = 8,
  2340. .input = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
  2341. .ilen = 8,
  2342. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2343. .rlen = 8,
  2344. }, {
  2345. .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
  2346. .klen = 8,
  2347. .input = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
  2348. .ilen = 8,
  2349. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2350. .rlen = 8,
  2351. }, {
  2352. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  2353. .klen = 8,
  2354. .input = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
  2355. .ilen = 8,
  2356. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2357. .rlen = 8,
  2358. }, { /* Vary the keylength... */
  2359. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2360. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
  2361. .klen = 16,
  2362. .input = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
  2363. .ilen = 8,
  2364. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2365. .rlen = 8,
  2366. }, {
  2367. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2368. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  2369. "\x00\x11\x22\x33\x44",
  2370. .klen = 21,
  2371. .input = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
  2372. .ilen = 8,
  2373. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2374. .rlen = 8,
  2375. }, { /* Generated with bf488, using OpenSSL, Libgcrypt and Nettle */
  2376. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2377. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  2378. "\x00\x11\x22\x33\x44\x55\x66\x77"
  2379. "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
  2380. "\x58\x40\x23\x64\x1a\xba\x61\x76"
  2381. "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
  2382. "\xff\xff\xff\xff\xff\xff\xff\xff",
  2383. .klen = 56,
  2384. .input = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
  2385. .ilen = 8,
  2386. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2387. .rlen = 8,
  2388. },
  2389. };
  2390. static struct cipher_testvec bf_cbc_enc_tv_template[] = {
  2391. { /* From OpenSSL */
  2392. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2393. "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  2394. .klen = 16,
  2395. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2396. .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
  2397. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  2398. "\x68\x65\x20\x74\x69\x6d\x65\x20"
  2399. "\x66\x6f\x72\x20\x00\x00\x00\x00",
  2400. .ilen = 32,
  2401. .result = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
  2402. "\x05\xb1\x56\xe2\x74\x03\x97\x93"
  2403. "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
  2404. "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
  2405. .rlen = 32,
  2406. },
  2407. };
  2408. static struct cipher_testvec bf_cbc_dec_tv_template[] = {
  2409. { /* From OpenSSL */
  2410. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2411. "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  2412. .klen = 16,
  2413. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2414. .input = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
  2415. "\x05\xb1\x56\xe2\x74\x03\x97\x93"
  2416. "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
  2417. "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
  2418. .ilen = 32,
  2419. .result = "\x37\x36\x35\x34\x33\x32\x31\x20"
  2420. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  2421. "\x68\x65\x20\x74\x69\x6d\x65\x20"
  2422. "\x66\x6f\x72\x20\x00\x00\x00\x00",
  2423. .rlen = 32,
  2424. },
  2425. };
  2426. /*
  2427. * Twofish test vectors.
  2428. */
  2429. #define TF_ENC_TEST_VECTORS 3
  2430. #define TF_DEC_TEST_VECTORS 3
  2431. #define TF_CBC_ENC_TEST_VECTORS 4
  2432. #define TF_CBC_DEC_TEST_VECTORS 4
  2433. static struct cipher_testvec tf_enc_tv_template[] = {
  2434. {
  2435. .key = zeroed_string,
  2436. .klen = 16,
  2437. .input = zeroed_string,
  2438. .ilen = 16,
  2439. .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2440. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2441. .rlen = 16,
  2442. }, {
  2443. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2444. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  2445. "\x00\x11\x22\x33\x44\x55\x66\x77",
  2446. .klen = 24,
  2447. .input = zeroed_string,
  2448. .ilen = 16,
  2449. .result = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
  2450. "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
  2451. .rlen = 16,
  2452. }, {
  2453. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2454. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  2455. "\x00\x11\x22\x33\x44\x55\x66\x77"
  2456. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2457. .klen = 32,
  2458. .input = zeroed_string,
  2459. .ilen = 16,
  2460. .result = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
  2461. "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
  2462. .rlen = 16,
  2463. },
  2464. };
  2465. static struct cipher_testvec tf_dec_tv_template[] = {
  2466. {
  2467. .key = zeroed_string,
  2468. .klen = 16,
  2469. .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2470. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2471. .ilen = 16,
  2472. .result = zeroed_string,
  2473. .rlen = 16,
  2474. }, {
  2475. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2476. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  2477. "\x00\x11\x22\x33\x44\x55\x66\x77",
  2478. .klen = 24,
  2479. .input = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
  2480. "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
  2481. .ilen = 16,
  2482. .result = zeroed_string,
  2483. .rlen = 16,
  2484. }, {
  2485. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2486. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  2487. "\x00\x11\x22\x33\x44\x55\x66\x77"
  2488. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2489. .klen = 32,
  2490. .input = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
  2491. "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
  2492. .ilen = 16,
  2493. .result = zeroed_string,
  2494. .rlen = 16,
  2495. },
  2496. };
  2497. static struct cipher_testvec tf_cbc_enc_tv_template[] = {
  2498. { /* Generated with Nettle */
  2499. .key = zeroed_string,
  2500. .klen = 16,
  2501. .iv = zeroed_string,
  2502. .input = zeroed_string,
  2503. .ilen = 16,
  2504. .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2505. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2506. .rlen = 16,
  2507. }, {
  2508. .key = zeroed_string,
  2509. .klen = 16,
  2510. .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2511. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2512. .input = zeroed_string,
  2513. .ilen = 16,
  2514. .result = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2515. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  2516. .rlen = 16,
  2517. }, {
  2518. .key = zeroed_string,
  2519. .klen = 16,
  2520. .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2521. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  2522. .input = zeroed_string,
  2523. .ilen = 16,
  2524. .result = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  2525. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  2526. .rlen = 16,
  2527. }, {
  2528. .key = zeroed_string,
  2529. .klen = 16,
  2530. .iv = zeroed_string,
  2531. .input = zeroed_string,
  2532. .ilen = 48,
  2533. .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2534. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
  2535. "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2536. "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
  2537. "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  2538. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  2539. .rlen = 48,
  2540. },
  2541. };
  2542. static struct cipher_testvec tf_cbc_dec_tv_template[] = {
  2543. { /* Reverse of the first four above */
  2544. .key = zeroed_string,
  2545. .klen = 16,
  2546. .iv = zeroed_string,
  2547. .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2548. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2549. .ilen = 16,
  2550. .result = zeroed_string,
  2551. .rlen = 16,
  2552. }, {
  2553. .key = zeroed_string,
  2554. .klen = 16,
  2555. .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2556. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2557. .input = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2558. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  2559. .ilen = 16,
  2560. .result = zeroed_string,
  2561. .rlen = 16,
  2562. }, {
  2563. .key = zeroed_string,
  2564. .klen = 16,
  2565. .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2566. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  2567. .input = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  2568. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  2569. .ilen = 16,
  2570. .result = zeroed_string,
  2571. .rlen = 16,
  2572. }, {
  2573. .key = zeroed_string,
  2574. .klen = 16,
  2575. .iv = zeroed_string,
  2576. .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2577. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
  2578. "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2579. "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
  2580. "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  2581. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  2582. .ilen = 48,
  2583. .result = zeroed_string,
  2584. .rlen = 48,
  2585. },
  2586. };
  2587. /*
  2588. * Serpent test vectors. These are backwards because Serpent writes
  2589. * octet sequences in right-to-left mode.
  2590. */
  2591. #define SERPENT_ENC_TEST_VECTORS 4
  2592. #define SERPENT_DEC_TEST_VECTORS 4
  2593. #define TNEPRES_ENC_TEST_VECTORS 4
  2594. #define TNEPRES_DEC_TEST_VECTORS 4
  2595. static struct cipher_testvec serpent_enc_tv_template[] = {
  2596. {
  2597. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2598. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2599. .ilen = 16,
  2600. .result = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
  2601. "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
  2602. .rlen = 16,
  2603. }, {
  2604. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2605. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2606. .klen = 16,
  2607. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2608. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2609. .ilen = 16,
  2610. .result = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
  2611. "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
  2612. .rlen = 16,
  2613. }, {
  2614. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2615. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2616. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2617. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2618. .klen = 32,
  2619. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2620. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2621. .ilen = 16,
  2622. .result = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
  2623. "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
  2624. .rlen = 16,
  2625. }, {
  2626. .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
  2627. .klen = 16,
  2628. .input = zeroed_string,
  2629. .ilen = 16,
  2630. .result = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
  2631. "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
  2632. .rlen = 16,
  2633. },
  2634. };
  2635. static struct cipher_testvec tnepres_enc_tv_template[] = {
  2636. { /* KeySize=128, PT=0, I=1 */
  2637. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2638. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2639. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  2640. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2641. .klen = 16,
  2642. .ilen = 16,
  2643. .result = "\x49\xaf\xbf\xad\x9d\x5a\x34\x05"
  2644. "\x2c\xd8\xff\xa5\x98\x6b\xd2\xdd",
  2645. .rlen = 16,
  2646. }, { /* KeySize=192, PT=0, I=1 */
  2647. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  2648. "\x00\x00\x00\x00\x00\x00\x00\x00"
  2649. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2650. .klen = 24,
  2651. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2652. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2653. .ilen = 16,
  2654. .result = "\xe7\x8e\x54\x02\xc7\x19\x55\x68"
  2655. "\xac\x36\x78\xf7\xa3\xf6\x0c\x66",
  2656. .rlen = 16,
  2657. }, { /* KeySize=256, PT=0, I=1 */
  2658. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  2659. "\x00\x00\x00\x00\x00\x00\x00\x00"
  2660. "\x00\x00\x00\x00\x00\x00\x00\x00"
  2661. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2662. .klen = 32,
  2663. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2664. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2665. .ilen = 16,
  2666. .result = "\xab\xed\x96\xe7\x66\xbf\x28\xcb"
  2667. "\xc0\xeb\xd2\x1a\x82\xef\x08\x19",
  2668. .rlen = 16,
  2669. }, { /* KeySize=256, I=257 */
  2670. .key = "\x1f\x1e\x1d\x1c\x1b\x1a\x19\x18"
  2671. "\x17\x16\x15\x14\x13\x12\x11\x10"
  2672. "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
  2673. "\x07\x06\x05\x04\x03\x02\x01\x00",
  2674. .klen = 32,
  2675. .input = "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
  2676. "\x07\x06\x05\x04\x03\x02\x01\x00",
  2677. .ilen = 16,
  2678. .result = "\x5c\xe7\x1c\x70\xd2\x88\x2e\x5b"
  2679. "\xb8\x32\xe4\x33\xf8\x9f\x26\xde",
  2680. .rlen = 16,
  2681. },
  2682. };
  2683. static struct cipher_testvec serpent_dec_tv_template[] = {
  2684. {
  2685. .input = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
  2686. "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
  2687. .ilen = 16,
  2688. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2689. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2690. .rlen = 16,
  2691. }, {
  2692. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2693. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2694. .klen = 16,
  2695. .input = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
  2696. "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
  2697. .ilen = 16,
  2698. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2699. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2700. .rlen = 16,
  2701. }, {
  2702. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2703. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2704. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2705. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2706. .klen = 32,
  2707. .input = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
  2708. "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
  2709. .ilen = 16,
  2710. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2711. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2712. .rlen = 16,
  2713. }, {
  2714. .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
  2715. .klen = 16,
  2716. .input = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
  2717. "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
  2718. .ilen = 16,
  2719. .result = zeroed_string,
  2720. .rlen = 16,
  2721. },
  2722. };
  2723. static struct cipher_testvec tnepres_dec_tv_template[] = {
  2724. {
  2725. .input = "\x41\xcc\x6b\x31\x59\x31\x45\x97"
  2726. "\x6d\x6f\xbb\x38\x4b\x37\x21\x28",
  2727. .ilen = 16,
  2728. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2729. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2730. .rlen = 16,
  2731. }, {
  2732. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2733. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2734. .klen = 16,
  2735. .input = "\xea\xf4\xd7\xfc\xd8\x01\x34\x47"
  2736. "\x81\x45\x0b\xfa\x0c\xd6\xad\x6e",
  2737. .ilen = 16,
  2738. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2739. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2740. .rlen = 16,
  2741. }, {
  2742. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2743. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2744. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2745. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2746. .klen = 32,
  2747. .input = "\x64\xa9\x1a\x37\xed\x9f\xe7\x49"
  2748. "\xa8\x4e\x76\xd6\xf5\x0d\x78\xee",
  2749. .ilen = 16,
  2750. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2751. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2752. .rlen = 16,
  2753. }, { /* KeySize=128, I=121 */
  2754. .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
  2755. .klen = 16,
  2756. .input = "\x3d\xda\xbf\xc0\x06\xda\xab\x06"
  2757. "\x46\x2a\xf4\xef\x81\x54\x4e\x26",
  2758. .ilen = 16,
  2759. .result = zeroed_string,
  2760. .rlen = 16,
  2761. },
  2762. };
  2763. /* Cast6 test vectors from RFC 2612 */
  2764. #define CAST6_ENC_TEST_VECTORS 3
  2765. #define CAST6_DEC_TEST_VECTORS 3
  2766. static struct cipher_testvec cast6_enc_tv_template[] = {
  2767. {
  2768. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2769. "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
  2770. .klen = 16,
  2771. .input = zeroed_string,
  2772. .ilen = 16,
  2773. .result = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
  2774. "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
  2775. .rlen = 16,
  2776. }, {
  2777. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2778. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  2779. "\xba\xc7\x7a\x77\x17\x94\x28\x63",
  2780. .klen = 24,
  2781. .input = zeroed_string,
  2782. .ilen = 16,
  2783. .result = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
  2784. "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
  2785. .rlen = 16,
  2786. }, {
  2787. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2788. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  2789. "\x8d\x7c\x47\xce\x26\x49\x08\x46"
  2790. "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
  2791. .klen = 32,
  2792. .input = zeroed_string,
  2793. .ilen = 16,
  2794. .result = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
  2795. "\xc9\x87\x01\x36\x55\x33\x17\xfa",
  2796. .rlen = 16,
  2797. },
  2798. };
  2799. static struct cipher_testvec cast6_dec_tv_template[] = {
  2800. {
  2801. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2802. "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
  2803. .klen = 16,
  2804. .input = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
  2805. "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
  2806. .ilen = 16,
  2807. .result = zeroed_string,
  2808. .rlen = 16,
  2809. }, {
  2810. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2811. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  2812. "\xba\xc7\x7a\x77\x17\x94\x28\x63",
  2813. .klen = 24,
  2814. .input = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
  2815. "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
  2816. .ilen = 16,
  2817. .result = zeroed_string,
  2818. .rlen = 16,
  2819. }, {
  2820. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2821. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  2822. "\x8d\x7c\x47\xce\x26\x49\x08\x46"
  2823. "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
  2824. .klen = 32,
  2825. .input = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
  2826. "\xc9\x87\x01\x36\x55\x33\x17\xfa",
  2827. .ilen = 16,
  2828. .result = zeroed_string,
  2829. .rlen = 16,
  2830. },
  2831. };
  2832. /*
  2833. * AES test vectors.
  2834. */
  2835. #define AES_ENC_TEST_VECTORS 3
  2836. #define AES_DEC_TEST_VECTORS 3
  2837. #define AES_CBC_ENC_TEST_VECTORS 4
  2838. #define AES_CBC_DEC_TEST_VECTORS 4
  2839. #define AES_LRW_ENC_TEST_VECTORS 8
  2840. #define AES_LRW_DEC_TEST_VECTORS 8
  2841. #define AES_XTS_ENC_TEST_VECTORS 4
  2842. #define AES_XTS_DEC_TEST_VECTORS 4
  2843. #define AES_CTR_ENC_TEST_VECTORS 3
  2844. #define AES_CTR_DEC_TEST_VECTORS 3
  2845. #define AES_CTR_3686_ENC_TEST_VECTORS 7
  2846. #define AES_CTR_3686_DEC_TEST_VECTORS 6
  2847. #define AES_GCM_ENC_TEST_VECTORS 9
  2848. #define AES_GCM_DEC_TEST_VECTORS 8
  2849. #define AES_GCM_4106_ENC_TEST_VECTORS 7
  2850. #define AES_GCM_4106_DEC_TEST_VECTORS 7
  2851. #define AES_CCM_ENC_TEST_VECTORS 7
  2852. #define AES_CCM_DEC_TEST_VECTORS 7
  2853. #define AES_CCM_4309_ENC_TEST_VECTORS 7
  2854. #define AES_CCM_4309_DEC_TEST_VECTORS 10
  2855. static struct cipher_testvec aes_enc_tv_template[] = {
  2856. { /* From FIPS-197 */
  2857. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2858. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2859. .klen = 16,
  2860. .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2861. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2862. .ilen = 16,
  2863. .result = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
  2864. "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
  2865. .rlen = 16,
  2866. }, {
  2867. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2868. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2869. "\x10\x11\x12\x13\x14\x15\x16\x17",
  2870. .klen = 24,
  2871. .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2872. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2873. .ilen = 16,
  2874. .result = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
  2875. "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
  2876. .rlen = 16,
  2877. }, {
  2878. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2879. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2880. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2881. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2882. .klen = 32,
  2883. .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2884. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2885. .ilen = 16,
  2886. .result = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
  2887. "\xea\xfc\x49\x90\x4b\x49\x60\x89",
  2888. .rlen = 16,
  2889. },
  2890. };
  2891. static struct cipher_testvec aes_dec_tv_template[] = {
  2892. { /* From FIPS-197 */
  2893. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2894. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2895. .klen = 16,
  2896. .input = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
  2897. "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
  2898. .ilen = 16,
  2899. .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2900. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2901. .rlen = 16,
  2902. }, {
  2903. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2904. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2905. "\x10\x11\x12\x13\x14\x15\x16\x17",
  2906. .klen = 24,
  2907. .input = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
  2908. "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
  2909. .ilen = 16,
  2910. .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2911. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2912. .rlen = 16,
  2913. }, {
  2914. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2915. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2916. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2917. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2918. .klen = 32,
  2919. .input = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
  2920. "\xea\xfc\x49\x90\x4b\x49\x60\x89",
  2921. .ilen = 16,
  2922. .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2923. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2924. .rlen = 16,
  2925. },
  2926. };
  2927. static struct cipher_testvec aes_cbc_enc_tv_template[] = {
  2928. { /* From RFC 3602 */
  2929. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  2930. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  2931. .klen = 16,
  2932. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  2933. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  2934. .input = "Single block msg",
  2935. .ilen = 16,
  2936. .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
  2937. "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
  2938. .rlen = 16,
  2939. }, {
  2940. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  2941. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  2942. .klen = 16,
  2943. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  2944. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  2945. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2946. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2947. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2948. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2949. .ilen = 32,
  2950. .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
  2951. "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
  2952. "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
  2953. "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
  2954. .rlen = 32,
  2955. }, { /* From NIST SP800-38A */
  2956. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  2957. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  2958. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  2959. .klen = 24,
  2960. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2961. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2962. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  2963. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  2964. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  2965. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  2966. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  2967. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  2968. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  2969. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  2970. .ilen = 64,
  2971. .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
  2972. "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
  2973. "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
  2974. "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
  2975. "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
  2976. "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
  2977. "\x08\xb0\xe2\x79\x88\x59\x88\x81"
  2978. "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
  2979. .rlen = 64,
  2980. }, {
  2981. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  2982. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  2983. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  2984. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  2985. .klen = 32,
  2986. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2987. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2988. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  2989. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  2990. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  2991. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  2992. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  2993. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  2994. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  2995. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  2996. .ilen = 64,
  2997. .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
  2998. "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
  2999. "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
  3000. "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
  3001. "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
  3002. "\xa5\x30\xe2\x63\x04\x23\x14\x61"
  3003. "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
  3004. "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
  3005. .rlen = 64,
  3006. },
  3007. };
  3008. static struct cipher_testvec aes_cbc_dec_tv_template[] = {
  3009. { /* From RFC 3602 */
  3010. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  3011. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  3012. .klen = 16,
  3013. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  3014. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  3015. .input = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
  3016. "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
  3017. .ilen = 16,
  3018. .result = "Single block msg",
  3019. .rlen = 16,
  3020. }, {
  3021. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  3022. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  3023. .klen = 16,
  3024. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  3025. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  3026. .input = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
  3027. "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
  3028. "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
  3029. "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
  3030. .ilen = 32,
  3031. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3032. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3033. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3034. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  3035. .rlen = 32,
  3036. }, { /* From NIST SP800-38A */
  3037. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  3038. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  3039. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  3040. .klen = 24,
  3041. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3042. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  3043. .input = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
  3044. "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
  3045. "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
  3046. "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
  3047. "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
  3048. "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
  3049. "\x08\xb0\xe2\x79\x88\x59\x88\x81"
  3050. "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
  3051. .ilen = 64,
  3052. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  3053. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  3054. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  3055. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  3056. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  3057. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  3058. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  3059. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  3060. .rlen = 64,
  3061. }, {
  3062. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  3063. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  3064. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  3065. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  3066. .klen = 32,
  3067. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3068. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  3069. .input = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
  3070. "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
  3071. "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
  3072. "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
  3073. "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
  3074. "\xa5\x30\xe2\x63\x04\x23\x14\x61"
  3075. "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
  3076. "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
  3077. .ilen = 64,
  3078. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  3079. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  3080. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  3081. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  3082. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  3083. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  3084. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  3085. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  3086. .rlen = 64,
  3087. },
  3088. };
  3089. static struct cipher_testvec aes_lrw_enc_tv_template[] = {
  3090. /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
  3091. { /* LRW-32-AES 1 */
  3092. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  3093. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  3094. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  3095. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  3096. .klen = 32,
  3097. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3098. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3099. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3100. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3101. .ilen = 16,
  3102. .result = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
  3103. "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
  3104. .rlen = 16,
  3105. }, { /* LRW-32-AES 2 */
  3106. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  3107. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  3108. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  3109. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  3110. .klen = 32,
  3111. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3112. "\x00\x00\x00\x00\x00\x00\x00\x02",
  3113. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3114. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3115. .ilen = 16,
  3116. .result = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
  3117. "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
  3118. .rlen = 16,
  3119. }, { /* LRW-32-AES 3 */
  3120. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  3121. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  3122. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  3123. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  3124. .klen = 32,
  3125. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3126. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3127. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3128. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3129. .ilen = 16,
  3130. .result = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
  3131. "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
  3132. .rlen = 16,
  3133. }, { /* LRW-32-AES 4 */
  3134. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  3135. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  3136. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  3137. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  3138. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  3139. .klen = 40,
  3140. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3141. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3142. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3143. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3144. .ilen = 16,
  3145. .result = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
  3146. "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
  3147. .rlen = 16,
  3148. }, { /* LRW-32-AES 5 */
  3149. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  3150. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  3151. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  3152. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  3153. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  3154. .klen = 40,
  3155. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3156. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3157. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3158. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3159. .ilen = 16,
  3160. .result = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
  3161. "\xc8\x60\x48\x02\x87\xe3\x34\x06",
  3162. .rlen = 16,
  3163. }, { /* LRW-32-AES 6 */
  3164. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  3165. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  3166. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  3167. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  3168. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  3169. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  3170. .klen = 48,
  3171. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3172. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3173. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3174. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3175. .ilen = 16,
  3176. .result = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
  3177. "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
  3178. .rlen = 16,
  3179. }, { /* LRW-32-AES 7 */
  3180. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  3181. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  3182. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  3183. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  3184. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  3185. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  3186. .klen = 48,
  3187. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3188. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3189. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3190. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3191. .ilen = 16,
  3192. .result = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
  3193. "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
  3194. .rlen = 16,
  3195. }, {
  3196. /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
  3197. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  3198. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  3199. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  3200. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  3201. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  3202. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  3203. .klen = 48,
  3204. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3205. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3206. .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  3207. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  3208. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  3209. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  3210. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  3211. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  3212. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  3213. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  3214. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  3215. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  3216. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  3217. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  3218. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  3219. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  3220. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  3221. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  3222. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  3223. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  3224. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  3225. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  3226. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  3227. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  3228. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  3229. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  3230. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  3231. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  3232. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  3233. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  3234. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  3235. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  3236. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  3237. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  3238. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  3239. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  3240. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  3241. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  3242. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  3243. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  3244. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  3245. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  3246. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  3247. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  3248. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  3249. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  3250. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  3251. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  3252. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  3253. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  3254. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  3255. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  3256. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  3257. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  3258. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  3259. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  3260. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  3261. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  3262. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  3263. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  3264. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  3265. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  3266. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  3267. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  3268. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  3269. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  3270. .ilen = 512,
  3271. .result = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
  3272. "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
  3273. "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
  3274. "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
  3275. "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
  3276. "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
  3277. "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
  3278. "\xe8\x58\x46\x97\x39\x51\x07\xde"
  3279. "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
  3280. "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
  3281. "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
  3282. "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
  3283. "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
  3284. "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
  3285. "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
  3286. "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
  3287. "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
  3288. "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
  3289. "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
  3290. "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
  3291. "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
  3292. "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
  3293. "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
  3294. "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
  3295. "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
  3296. "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
  3297. "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
  3298. "\x41\x30\x58\xc5\x62\x74\x52\x1d"
  3299. "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
  3300. "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
  3301. "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
  3302. "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
  3303. "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
  3304. "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
  3305. "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
  3306. "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
  3307. "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
  3308. "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
  3309. "\xb8\x79\x78\x97\x94\xff\x72\x13"
  3310. "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
  3311. "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
  3312. "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
  3313. "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
  3314. "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
  3315. "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
  3316. "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
  3317. "\x1e\x86\x53\x11\x53\x94\x00\xee"
  3318. "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
  3319. "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
  3320. "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
  3321. "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
  3322. "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
  3323. "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
  3324. "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
  3325. "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
  3326. "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
  3327. "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
  3328. "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
  3329. "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
  3330. "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
  3331. "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
  3332. "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
  3333. "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
  3334. "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
  3335. .rlen = 512,
  3336. }
  3337. };
  3338. static struct cipher_testvec aes_lrw_dec_tv_template[] = {
  3339. /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
  3340. /* same as enc vectors with input and result reversed */
  3341. { /* LRW-32-AES 1 */
  3342. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  3343. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  3344. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  3345. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  3346. .klen = 32,
  3347. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3348. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3349. .input = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
  3350. "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
  3351. .ilen = 16,
  3352. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3353. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3354. .rlen = 16,
  3355. }, { /* LRW-32-AES 2 */
  3356. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  3357. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  3358. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  3359. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  3360. .klen = 32,
  3361. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3362. "\x00\x00\x00\x00\x00\x00\x00\x02",
  3363. .input = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
  3364. "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
  3365. .ilen = 16,
  3366. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3367. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3368. .rlen = 16,
  3369. }, { /* LRW-32-AES 3 */
  3370. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  3371. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  3372. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  3373. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  3374. .klen = 32,
  3375. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3376. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3377. .input = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
  3378. "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
  3379. .ilen = 16,
  3380. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3381. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3382. .rlen = 16,
  3383. }, { /* LRW-32-AES 4 */
  3384. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  3385. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  3386. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  3387. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  3388. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  3389. .klen = 40,
  3390. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3391. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3392. .input = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
  3393. "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
  3394. .ilen = 16,
  3395. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3396. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3397. .rlen = 16,
  3398. }, { /* LRW-32-AES 5 */
  3399. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  3400. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  3401. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  3402. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  3403. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  3404. .klen = 40,
  3405. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3406. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3407. .input = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
  3408. "\xc8\x60\x48\x02\x87\xe3\x34\x06",
  3409. .ilen = 16,
  3410. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3411. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3412. .rlen = 16,
  3413. }, { /* LRW-32-AES 6 */
  3414. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  3415. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  3416. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  3417. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  3418. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  3419. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  3420. .klen = 48,
  3421. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3422. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3423. .input = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
  3424. "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
  3425. .ilen = 16,
  3426. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3427. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3428. .rlen = 16,
  3429. }, { /* LRW-32-AES 7 */
  3430. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  3431. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  3432. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  3433. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  3434. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  3435. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  3436. .klen = 48,
  3437. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3438. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3439. .input = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
  3440. "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
  3441. .ilen = 16,
  3442. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3443. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3444. .rlen = 16,
  3445. }, {
  3446. /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
  3447. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  3448. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  3449. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  3450. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  3451. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  3452. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  3453. .klen = 48,
  3454. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3455. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3456. .input = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
  3457. "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
  3458. "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
  3459. "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
  3460. "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
  3461. "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
  3462. "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
  3463. "\xe8\x58\x46\x97\x39\x51\x07\xde"
  3464. "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
  3465. "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
  3466. "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
  3467. "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
  3468. "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
  3469. "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
  3470. "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
  3471. "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
  3472. "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
  3473. "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
  3474. "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
  3475. "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
  3476. "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
  3477. "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
  3478. "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
  3479. "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
  3480. "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
  3481. "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
  3482. "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
  3483. "\x41\x30\x58\xc5\x62\x74\x52\x1d"
  3484. "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
  3485. "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
  3486. "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
  3487. "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
  3488. "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
  3489. "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
  3490. "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
  3491. "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
  3492. "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
  3493. "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
  3494. "\xb8\x79\x78\x97\x94\xff\x72\x13"
  3495. "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
  3496. "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
  3497. "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
  3498. "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
  3499. "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
  3500. "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
  3501. "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
  3502. "\x1e\x86\x53\x11\x53\x94\x00\xee"
  3503. "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
  3504. "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
  3505. "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
  3506. "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
  3507. "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
  3508. "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
  3509. "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
  3510. "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
  3511. "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
  3512. "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
  3513. "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
  3514. "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
  3515. "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
  3516. "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
  3517. "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
  3518. "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
  3519. "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
  3520. .ilen = 512,
  3521. .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  3522. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  3523. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  3524. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  3525. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  3526. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  3527. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  3528. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  3529. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  3530. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  3531. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  3532. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  3533. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  3534. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  3535. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  3536. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  3537. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  3538. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  3539. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  3540. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  3541. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  3542. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  3543. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  3544. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  3545. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  3546. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  3547. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  3548. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  3549. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  3550. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  3551. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  3552. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  3553. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  3554. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  3555. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  3556. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  3557. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  3558. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  3559. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  3560. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  3561. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  3562. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  3563. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  3564. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  3565. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  3566. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  3567. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  3568. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  3569. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  3570. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  3571. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  3572. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  3573. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  3574. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  3575. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  3576. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  3577. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  3578. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  3579. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  3580. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  3581. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  3582. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  3583. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  3584. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  3585. .rlen = 512,
  3586. }
  3587. };
  3588. static struct cipher_testvec aes_xts_enc_tv_template[] = {
  3589. /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
  3590. { /* XTS-AES 1 */
  3591. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3592. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3593. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3594. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3595. .klen = 32,
  3596. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3597. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3598. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3599. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3600. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3601. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3602. .ilen = 32,
  3603. .result = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
  3604. "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
  3605. "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
  3606. "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
  3607. .rlen = 32,
  3608. }, { /* XTS-AES 2 */
  3609. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  3610. "\x11\x11\x11\x11\x11\x11\x11\x11"
  3611. "\x22\x22\x22\x22\x22\x22\x22\x22"
  3612. "\x22\x22\x22\x22\x22\x22\x22\x22",
  3613. .klen = 32,
  3614. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  3615. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3616. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  3617. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3618. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3619. "\x44\x44\x44\x44\x44\x44\x44\x44",
  3620. .ilen = 32,
  3621. .result = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
  3622. "\x39\x33\x40\x38\xac\xef\x83\x8b"
  3623. "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
  3624. "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
  3625. .rlen = 32,
  3626. }, { /* XTS-AES 3 */
  3627. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  3628. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  3629. "\x22\x22\x22\x22\x22\x22\x22\x22"
  3630. "\x22\x22\x22\x22\x22\x22\x22\x22",
  3631. .klen = 32,
  3632. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  3633. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3634. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  3635. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3636. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3637. "\x44\x44\x44\x44\x44\x44\x44\x44",
  3638. .ilen = 32,
  3639. .result = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
  3640. "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
  3641. "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
  3642. "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
  3643. .rlen = 32,
  3644. }, { /* XTS-AES 4 */
  3645. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  3646. "\x23\x53\x60\x28\x74\x71\x35\x26"
  3647. "\x31\x41\x59\x26\x53\x58\x97\x93"
  3648. "\x23\x84\x62\x64\x33\x83\x27\x95",
  3649. .klen = 32,
  3650. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3651. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3652. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3653. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3654. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3655. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  3656. "\x20\x21\x22\x23\x24\x25\x26\x27"
  3657. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  3658. "\x30\x31\x32\x33\x34\x35\x36\x37"
  3659. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  3660. "\x40\x41\x42\x43\x44\x45\x46\x47"
  3661. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  3662. "\x50\x51\x52\x53\x54\x55\x56\x57"
  3663. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  3664. "\x60\x61\x62\x63\x64\x65\x66\x67"
  3665. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  3666. "\x70\x71\x72\x73\x74\x75\x76\x77"
  3667. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  3668. "\x80\x81\x82\x83\x84\x85\x86\x87"
  3669. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  3670. "\x90\x91\x92\x93\x94\x95\x96\x97"
  3671. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  3672. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  3673. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  3674. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  3675. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  3676. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  3677. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  3678. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  3679. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  3680. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  3681. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  3682. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3683. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  3684. "\x00\x01\x02\x03\x04\x05\x06\x07"
  3685. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3686. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3687. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  3688. "\x20\x21\x22\x23\x24\x25\x26\x27"
  3689. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  3690. "\x30\x31\x32\x33\x34\x35\x36\x37"
  3691. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  3692. "\x40\x41\x42\x43\x44\x45\x46\x47"
  3693. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  3694. "\x50\x51\x52\x53\x54\x55\x56\x57"
  3695. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  3696. "\x60\x61\x62\x63\x64\x65\x66\x67"
  3697. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  3698. "\x70\x71\x72\x73\x74\x75\x76\x77"
  3699. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  3700. "\x80\x81\x82\x83\x84\x85\x86\x87"
  3701. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  3702. "\x90\x91\x92\x93\x94\x95\x96\x97"
  3703. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  3704. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  3705. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  3706. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  3707. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  3708. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  3709. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  3710. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  3711. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  3712. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  3713. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  3714. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3715. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  3716. .ilen = 512,
  3717. .result = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
  3718. "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
  3719. "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
  3720. "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
  3721. "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
  3722. "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
  3723. "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
  3724. "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
  3725. "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
  3726. "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
  3727. "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
  3728. "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
  3729. "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
  3730. "\x22\x97\x61\x46\xae\x20\xce\x84"
  3731. "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
  3732. "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
  3733. "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
  3734. "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
  3735. "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
  3736. "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
  3737. "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
  3738. "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
  3739. "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
  3740. "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
  3741. "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
  3742. "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
  3743. "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
  3744. "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
  3745. "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
  3746. "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
  3747. "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
  3748. "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
  3749. "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
  3750. "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
  3751. "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
  3752. "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
  3753. "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
  3754. "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
  3755. "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
  3756. "\x55\xef\x52\x97\xca\x67\xe9\xf3"
  3757. "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
  3758. "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
  3759. "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
  3760. "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
  3761. "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
  3762. "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
  3763. "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
  3764. "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
  3765. "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
  3766. "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
  3767. "\x18\x84\x69\x77\xae\x11\x9f\x7a"
  3768. "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
  3769. "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
  3770. "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
  3771. "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
  3772. "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
  3773. "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
  3774. "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
  3775. "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
  3776. "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
  3777. "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
  3778. "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
  3779. "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
  3780. "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
  3781. .rlen = 512,
  3782. }
  3783. };
  3784. static struct cipher_testvec aes_xts_dec_tv_template[] = {
  3785. /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
  3786. { /* XTS-AES 1 */
  3787. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3788. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3789. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3790. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3791. .klen = 32,
  3792. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3793. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3794. .input = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
  3795. "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
  3796. "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
  3797. "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
  3798. .ilen = 32,
  3799. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3800. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3801. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3802. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3803. .rlen = 32,
  3804. }, { /* XTS-AES 2 */
  3805. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  3806. "\x11\x11\x11\x11\x11\x11\x11\x11"
  3807. "\x22\x22\x22\x22\x22\x22\x22\x22"
  3808. "\x22\x22\x22\x22\x22\x22\x22\x22",
  3809. .klen = 32,
  3810. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  3811. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3812. .input = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
  3813. "\x39\x33\x40\x38\xac\xef\x83\x8b"
  3814. "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
  3815. "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
  3816. .ilen = 32,
  3817. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  3818. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3819. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3820. "\x44\x44\x44\x44\x44\x44\x44\x44",
  3821. .rlen = 32,
  3822. }, { /* XTS-AES 3 */
  3823. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  3824. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  3825. "\x22\x22\x22\x22\x22\x22\x22\x22"
  3826. "\x22\x22\x22\x22\x22\x22\x22\x22",
  3827. .klen = 32,
  3828. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  3829. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3830. .input = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
  3831. "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
  3832. "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
  3833. "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
  3834. .ilen = 32,
  3835. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  3836. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3837. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3838. "\x44\x44\x44\x44\x44\x44\x44\x44",
  3839. .rlen = 32,
  3840. }, { /* XTS-AES 4 */
  3841. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  3842. "\x23\x53\x60\x28\x74\x71\x35\x26"
  3843. "\x31\x41\x59\x26\x53\x58\x97\x93"
  3844. "\x23\x84\x62\x64\x33\x83\x27\x95",
  3845. .klen = 32,
  3846. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3847. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3848. .input = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
  3849. "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
  3850. "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
  3851. "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
  3852. "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
  3853. "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
  3854. "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
  3855. "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
  3856. "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
  3857. "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
  3858. "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
  3859. "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
  3860. "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
  3861. "\x22\x97\x61\x46\xae\x20\xce\x84"
  3862. "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
  3863. "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
  3864. "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
  3865. "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
  3866. "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
  3867. "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
  3868. "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
  3869. "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
  3870. "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
  3871. "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
  3872. "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
  3873. "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
  3874. "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
  3875. "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
  3876. "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
  3877. "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
  3878. "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
  3879. "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
  3880. "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
  3881. "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
  3882. "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
  3883. "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
  3884. "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
  3885. "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
  3886. "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
  3887. "\x55\xef\x52\x97\xca\x67\xe9\xf3"
  3888. "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
  3889. "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
  3890. "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
  3891. "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
  3892. "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
  3893. "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
  3894. "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
  3895. "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
  3896. "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
  3897. "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
  3898. "\x18\x84\x69\x77\xae\x11\x9f\x7a"
  3899. "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
  3900. "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
  3901. "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
  3902. "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
  3903. "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
  3904. "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
  3905. "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
  3906. "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
  3907. "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
  3908. "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
  3909. "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
  3910. "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
  3911. "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
  3912. .ilen = 512,
  3913. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3914. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3915. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3916. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  3917. "\x20\x21\x22\x23\x24\x25\x26\x27"
  3918. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  3919. "\x30\x31\x32\x33\x34\x35\x36\x37"
  3920. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  3921. "\x40\x41\x42\x43\x44\x45\x46\x47"
  3922. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  3923. "\x50\x51\x52\x53\x54\x55\x56\x57"
  3924. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  3925. "\x60\x61\x62\x63\x64\x65\x66\x67"
  3926. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  3927. "\x70\x71\x72\x73\x74\x75\x76\x77"
  3928. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  3929. "\x80\x81\x82\x83\x84\x85\x86\x87"
  3930. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  3931. "\x90\x91\x92\x93\x94\x95\x96\x97"
  3932. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  3933. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  3934. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  3935. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  3936. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  3937. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  3938. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  3939. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  3940. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  3941. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  3942. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  3943. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3944. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  3945. "\x00\x01\x02\x03\x04\x05\x06\x07"
  3946. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3947. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3948. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  3949. "\x20\x21\x22\x23\x24\x25\x26\x27"
  3950. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  3951. "\x30\x31\x32\x33\x34\x35\x36\x37"
  3952. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  3953. "\x40\x41\x42\x43\x44\x45\x46\x47"
  3954. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  3955. "\x50\x51\x52\x53\x54\x55\x56\x57"
  3956. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  3957. "\x60\x61\x62\x63\x64\x65\x66\x67"
  3958. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  3959. "\x70\x71\x72\x73\x74\x75\x76\x77"
  3960. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  3961. "\x80\x81\x82\x83\x84\x85\x86\x87"
  3962. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  3963. "\x90\x91\x92\x93\x94\x95\x96\x97"
  3964. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  3965. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  3966. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  3967. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  3968. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  3969. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  3970. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  3971. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  3972. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  3973. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  3974. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  3975. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3976. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  3977. .rlen = 512,
  3978. }
  3979. };
  3980. static struct cipher_testvec aes_ctr_enc_tv_template[] = {
  3981. { /* From NIST Special Publication 800-38A, Appendix F.5 */
  3982. .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
  3983. "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
  3984. .klen = 16,
  3985. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3986. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  3987. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  3988. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  3989. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  3990. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  3991. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  3992. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  3993. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  3994. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  3995. .ilen = 64,
  3996. .result = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
  3997. "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
  3998. "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
  3999. "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
  4000. "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
  4001. "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
  4002. "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
  4003. "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
  4004. .rlen = 64,
  4005. }, {
  4006. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  4007. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  4008. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  4009. .klen = 24,
  4010. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4011. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  4012. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  4013. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  4014. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  4015. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  4016. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  4017. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  4018. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  4019. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  4020. .ilen = 64,
  4021. .result = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
  4022. "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
  4023. "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
  4024. "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
  4025. "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
  4026. "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
  4027. "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
  4028. "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
  4029. .rlen = 64,
  4030. }, {
  4031. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  4032. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  4033. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  4034. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  4035. .klen = 32,
  4036. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4037. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  4038. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  4039. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  4040. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  4041. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  4042. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  4043. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  4044. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  4045. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  4046. .ilen = 64,
  4047. .result = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
  4048. "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
  4049. "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
  4050. "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
  4051. "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
  4052. "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
  4053. "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
  4054. "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
  4055. .rlen = 64,
  4056. }
  4057. };
  4058. static struct cipher_testvec aes_ctr_dec_tv_template[] = {
  4059. { /* From NIST Special Publication 800-38A, Appendix F.5 */
  4060. .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
  4061. "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
  4062. .klen = 16,
  4063. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4064. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  4065. .input = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
  4066. "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
  4067. "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
  4068. "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
  4069. "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
  4070. "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
  4071. "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
  4072. "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
  4073. .ilen = 64,
  4074. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  4075. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  4076. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  4077. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  4078. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  4079. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  4080. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  4081. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  4082. .rlen = 64,
  4083. }, {
  4084. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  4085. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  4086. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  4087. .klen = 24,
  4088. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4089. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  4090. .input = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
  4091. "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
  4092. "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
  4093. "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
  4094. "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
  4095. "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
  4096. "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
  4097. "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
  4098. .ilen = 64,
  4099. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  4100. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  4101. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  4102. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  4103. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  4104. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  4105. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  4106. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  4107. .rlen = 64,
  4108. }, {
  4109. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  4110. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  4111. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  4112. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  4113. .klen = 32,
  4114. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4115. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  4116. .input = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
  4117. "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
  4118. "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
  4119. "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
  4120. "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
  4121. "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
  4122. "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
  4123. "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
  4124. .ilen = 64,
  4125. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  4126. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  4127. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  4128. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  4129. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  4130. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  4131. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  4132. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  4133. .rlen = 64,
  4134. }
  4135. };
  4136. static struct cipher_testvec aes_ctr_rfc3686_enc_tv_template[] = {
  4137. { /* From RFC 3686 */
  4138. .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
  4139. "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
  4140. "\x00\x00\x00\x30",
  4141. .klen = 20,
  4142. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  4143. .input = "Single block msg",
  4144. .ilen = 16,
  4145. .result = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
  4146. "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
  4147. .rlen = 16,
  4148. }, {
  4149. .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
  4150. "\x43\xd6\xce\x1f\x32\x53\x91\x63"
  4151. "\x00\x6c\xb6\xdb",
  4152. .klen = 20,
  4153. .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
  4154. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  4155. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4156. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4157. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  4158. .ilen = 32,
  4159. .result = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
  4160. "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
  4161. "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
  4162. "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
  4163. .rlen = 32,
  4164. }, {
  4165. .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
  4166. "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
  4167. "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
  4168. "\x00\x00\x00\x48",
  4169. .klen = 28,
  4170. .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
  4171. .input = "Single block msg",
  4172. .ilen = 16,
  4173. .result = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
  4174. "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
  4175. .rlen = 16,
  4176. }, {
  4177. .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
  4178. "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
  4179. "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
  4180. "\x00\x96\xb0\x3b",
  4181. .klen = 28,
  4182. .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
  4183. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  4184. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4185. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4186. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  4187. .ilen = 32,
  4188. .result = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
  4189. "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
  4190. "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
  4191. "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
  4192. .rlen = 32,
  4193. }, {
  4194. .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
  4195. "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
  4196. "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
  4197. "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
  4198. "\x00\x00\x00\x60",
  4199. .klen = 36,
  4200. .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
  4201. .input = "Single block msg",
  4202. .ilen = 16,
  4203. .result = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
  4204. "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
  4205. .rlen = 16,
  4206. }, {
  4207. .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
  4208. "\x07\x96\x36\x58\x79\xef\xf8\x86"
  4209. "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
  4210. "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
  4211. "\x00\xfa\xac\x24",
  4212. .klen = 36,
  4213. .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
  4214. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  4215. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4216. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4217. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  4218. .ilen = 32,
  4219. .result = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
  4220. "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
  4221. "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
  4222. "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
  4223. .rlen = 32,
  4224. }, {
  4225. // generated using Crypto++
  4226. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  4227. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4228. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4229. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  4230. "\x00\x00\x00\x00",
  4231. .klen = 32 + 4,
  4232. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  4233. .input =
  4234. "\x00\x01\x02\x03\x04\x05\x06\x07"
  4235. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4236. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4237. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  4238. "\x20\x21\x22\x23\x24\x25\x26\x27"
  4239. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  4240. "\x30\x31\x32\x33\x34\x35\x36\x37"
  4241. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  4242. "\x40\x41\x42\x43\x44\x45\x46\x47"
  4243. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  4244. "\x50\x51\x52\x53\x54\x55\x56\x57"
  4245. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  4246. "\x60\x61\x62\x63\x64\x65\x66\x67"
  4247. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  4248. "\x70\x71\x72\x73\x74\x75\x76\x77"
  4249. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  4250. "\x80\x81\x82\x83\x84\x85\x86\x87"
  4251. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  4252. "\x90\x91\x92\x93\x94\x95\x96\x97"
  4253. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  4254. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  4255. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  4256. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  4257. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  4258. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  4259. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  4260. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  4261. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  4262. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  4263. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  4264. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4265. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  4266. "\x00\x03\x06\x09\x0c\x0f\x12\x15"
  4267. "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
  4268. "\x30\x33\x36\x39\x3c\x3f\x42\x45"
  4269. "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
  4270. "\x60\x63\x66\x69\x6c\x6f\x72\x75"
  4271. "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
  4272. "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
  4273. "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
  4274. "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
  4275. "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
  4276. "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
  4277. "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
  4278. "\x20\x23\x26\x29\x2c\x2f\x32\x35"
  4279. "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
  4280. "\x50\x53\x56\x59\x5c\x5f\x62\x65"
  4281. "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
  4282. "\x80\x83\x86\x89\x8c\x8f\x92\x95"
  4283. "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
  4284. "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
  4285. "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
  4286. "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
  4287. "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
  4288. "\x10\x13\x16\x19\x1c\x1f\x22\x25"
  4289. "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
  4290. "\x40\x43\x46\x49\x4c\x4f\x52\x55"
  4291. "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
  4292. "\x70\x73\x76\x79\x7c\x7f\x82\x85"
  4293. "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
  4294. "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
  4295. "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
  4296. "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
  4297. "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
  4298. "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
  4299. "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
  4300. "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
  4301. "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
  4302. "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
  4303. "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
  4304. "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
  4305. "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
  4306. "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
  4307. "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
  4308. "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
  4309. "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
  4310. "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
  4311. "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
  4312. "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
  4313. "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
  4314. "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
  4315. "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
  4316. "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
  4317. "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
  4318. "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
  4319. "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
  4320. "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
  4321. "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
  4322. "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
  4323. "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
  4324. "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
  4325. "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
  4326. "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
  4327. "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
  4328. "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
  4329. "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
  4330. "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
  4331. "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
  4332. "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
  4333. "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
  4334. "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
  4335. "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
  4336. "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
  4337. "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
  4338. "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
  4339. "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
  4340. "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
  4341. "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
  4342. "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
  4343. "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
  4344. "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
  4345. "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
  4346. "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
  4347. "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
  4348. "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
  4349. "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
  4350. "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
  4351. "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
  4352. "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
  4353. "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
  4354. "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
  4355. "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
  4356. "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
  4357. "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
  4358. "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
  4359. "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
  4360. "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
  4361. "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
  4362. "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
  4363. "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
  4364. "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
  4365. "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
  4366. "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
  4367. "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
  4368. "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
  4369. "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
  4370. "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
  4371. "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
  4372. "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
  4373. "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
  4374. "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
  4375. "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
  4376. "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
  4377. "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
  4378. "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
  4379. "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
  4380. "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
  4381. "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
  4382. "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
  4383. "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
  4384. "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
  4385. "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
  4386. "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
  4387. "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
  4388. "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
  4389. "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
  4390. "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
  4391. "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
  4392. "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
  4393. "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
  4394. "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
  4395. "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
  4396. "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
  4397. "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
  4398. "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
  4399. "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
  4400. "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
  4401. "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
  4402. "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
  4403. "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
  4404. "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
  4405. "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
  4406. "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
  4407. "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
  4408. "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
  4409. "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
  4410. "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
  4411. "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
  4412. "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
  4413. "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
  4414. "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
  4415. "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
  4416. "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
  4417. "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
  4418. "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
  4419. "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
  4420. "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
  4421. "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
  4422. "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
  4423. "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
  4424. "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
  4425. "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
  4426. "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
  4427. "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
  4428. "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
  4429. "\x38\x45\x52\x5f\x6c\x79\x86\x93"
  4430. "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
  4431. "\x08\x15\x22\x2f\x3c\x49\x56\x63"
  4432. "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
  4433. "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
  4434. "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
  4435. "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
  4436. "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
  4437. "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
  4438. "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
  4439. "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
  4440. "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
  4441. "\x18\x25\x32\x3f\x4c\x59\x66\x73"
  4442. "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
  4443. "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
  4444. "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
  4445. "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
  4446. "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
  4447. "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
  4448. "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
  4449. "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
  4450. "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
  4451. "\x28\x35\x42\x4f\x5c\x69\x76\x83"
  4452. "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
  4453. "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
  4454. "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
  4455. "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
  4456. "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
  4457. "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
  4458. "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
  4459. "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
  4460. "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
  4461. "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
  4462. "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
  4463. "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
  4464. "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
  4465. "\x48\x57\x66\x75\x84\x93\xa2\xb1"
  4466. "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
  4467. "\x38\x47\x56\x65\x74\x83\x92\xa1"
  4468. "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
  4469. "\x28\x37\x46\x55\x64\x73\x82\x91"
  4470. "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
  4471. "\x18\x27\x36\x45\x54\x63\x72\x81"
  4472. "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
  4473. "\x08\x17\x26\x35\x44\x53\x62\x71"
  4474. "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
  4475. "\xf8\x07\x16\x25\x34\x43\x52\x61"
  4476. "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
  4477. "\xe8\xf7\x06\x15\x24\x33\x42\x51"
  4478. "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
  4479. "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
  4480. "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
  4481. "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
  4482. "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
  4483. "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
  4484. "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
  4485. "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
  4486. "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
  4487. "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
  4488. "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
  4489. "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
  4490. "\x00\x11\x22\x33\x44\x55\x66\x77"
  4491. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
  4492. "\x10\x21\x32\x43\x54\x65\x76\x87"
  4493. "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
  4494. "\x20\x31\x42\x53\x64\x75\x86\x97"
  4495. "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
  4496. "\x30\x41\x52\x63\x74\x85\x96\xa7"
  4497. "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
  4498. "\x40\x51\x62\x73\x84\x95\xa6\xb7"
  4499. "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
  4500. "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
  4501. "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
  4502. "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
  4503. "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
  4504. "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
  4505. "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
  4506. "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
  4507. "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
  4508. "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
  4509. "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
  4510. "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
  4511. "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
  4512. "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
  4513. "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
  4514. "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
  4515. "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
  4516. "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
  4517. "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
  4518. "\xe0\xf1\x02\x13\x24\x35\x46\x57"
  4519. "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
  4520. "\xf0\x01\x12\x23\x34\x45\x56\x67"
  4521. "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
  4522. "\x00\x13\x26\x39\x4c\x5f\x72\x85"
  4523. "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
  4524. "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
  4525. "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
  4526. "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
  4527. "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
  4528. "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
  4529. "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
  4530. "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
  4531. "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
  4532. "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
  4533. "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
  4534. "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
  4535. "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
  4536. "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
  4537. "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
  4538. "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
  4539. "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
  4540. "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
  4541. "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
  4542. "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
  4543. "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
  4544. "\x10\x23\x36\x49\x5c\x6f\x82\x95"
  4545. "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
  4546. "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
  4547. "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
  4548. "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
  4549. "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
  4550. "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
  4551. "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
  4552. "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
  4553. "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
  4554. "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
  4555. "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
  4556. "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
  4557. "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
  4558. "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
  4559. "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
  4560. "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
  4561. "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
  4562. "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
  4563. "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
  4564. "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
  4565. "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
  4566. "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
  4567. "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
  4568. "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
  4569. "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
  4570. "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
  4571. "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
  4572. "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
  4573. "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
  4574. "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
  4575. "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
  4576. "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
  4577. "\x18\x2d\x42\x57\x6c\x81\x96\xab"
  4578. "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
  4579. "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
  4580. "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
  4581. "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
  4582. "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
  4583. "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
  4584. "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
  4585. "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
  4586. "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
  4587. "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
  4588. "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
  4589. "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
  4590. "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
  4591. "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
  4592. "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
  4593. "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
  4594. "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
  4595. "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
  4596. "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
  4597. "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
  4598. "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
  4599. "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
  4600. "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
  4601. "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
  4602. "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
  4603. "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
  4604. "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
  4605. "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
  4606. "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
  4607. "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
  4608. "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
  4609. "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
  4610. "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
  4611. "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
  4612. "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
  4613. "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
  4614. "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
  4615. "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
  4616. "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
  4617. "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
  4618. "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
  4619. "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
  4620. "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
  4621. "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
  4622. "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
  4623. "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
  4624. "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
  4625. "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
  4626. "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
  4627. "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
  4628. "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
  4629. "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
  4630. "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
  4631. "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
  4632. "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
  4633. "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
  4634. "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
  4635. "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
  4636. "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
  4637. "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
  4638. "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
  4639. "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
  4640. "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
  4641. "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
  4642. "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
  4643. "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
  4644. "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
  4645. "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
  4646. "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
  4647. "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
  4648. "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
  4649. "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
  4650. "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
  4651. "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
  4652. "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
  4653. "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
  4654. "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
  4655. "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
  4656. "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
  4657. "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
  4658. "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
  4659. "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
  4660. "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
  4661. "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
  4662. "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
  4663. "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
  4664. "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
  4665. "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
  4666. "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
  4667. "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
  4668. "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
  4669. "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
  4670. "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
  4671. "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
  4672. "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
  4673. "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
  4674. "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
  4675. "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
  4676. "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
  4677. "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
  4678. "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
  4679. "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
  4680. "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
  4681. "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
  4682. "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
  4683. "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
  4684. "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
  4685. "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
  4686. "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
  4687. "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
  4688. "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
  4689. "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
  4690. "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
  4691. "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
  4692. "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
  4693. "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
  4694. "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
  4695. "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
  4696. "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
  4697. "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
  4698. "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
  4699. "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
  4700. "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
  4701. "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
  4702. "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
  4703. "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
  4704. "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
  4705. "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
  4706. "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
  4707. "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
  4708. "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
  4709. "\x78\x95\xb2\xcf\xec\x09\x26\x43"
  4710. "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
  4711. "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
  4712. "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
  4713. "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
  4714. "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
  4715. "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
  4716. "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
  4717. "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
  4718. "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
  4719. "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
  4720. "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
  4721. "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
  4722. "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
  4723. "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
  4724. "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
  4725. "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
  4726. "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
  4727. "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
  4728. "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
  4729. "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
  4730. "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
  4731. "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
  4732. "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
  4733. "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
  4734. "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
  4735. "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
  4736. "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
  4737. "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
  4738. "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
  4739. "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
  4740. "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
  4741. "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
  4742. "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
  4743. "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
  4744. "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
  4745. "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
  4746. "\x00\x21\x42\x63",
  4747. .ilen = 4100,
  4748. .result =
  4749. "\xf0\x5c\x74\xad\x4e\xbc\x99\xe2"
  4750. "\xae\xff\x91\x3a\x44\xcf\x38\x32"
  4751. "\x1e\xad\xa7\xcd\xa1\x39\x95\xaa"
  4752. "\x10\xb1\xb3\x2e\x04\x31\x8f\x86"
  4753. "\xf2\x62\x74\x70\x0c\xa4\x46\x08"
  4754. "\xa8\xb7\x99\xa8\xe9\xd2\x73\x79"
  4755. "\x7e\x6e\xd4\x8f\x1e\xc7\x8e\x31"
  4756. "\x0b\xfa\x4b\xce\xfd\xf3\x57\x71"
  4757. "\xe9\x46\x03\xa5\x3d\x34\x00\xe2"
  4758. "\x18\xff\x75\x6d\x06\x2d\x00\xab"
  4759. "\xb9\x3e\x6c\x59\xc5\x84\x06\xb5"
  4760. "\x8b\xd0\x89\x9c\x4a\x79\x16\xc6"
  4761. "\x3d\x74\x54\xfa\x44\xcd\x23\x26"
  4762. "\x5c\xcf\x7e\x28\x92\x32\xbf\xdf"
  4763. "\xa7\x20\x3c\x74\x58\x2a\x9a\xde"
  4764. "\x61\x00\x1c\x4f\xff\x59\xc4\x22"
  4765. "\xac\x3c\xd0\xe8\x6c\xf9\x97\x1b"
  4766. "\x58\x9b\xad\x71\xe8\xa9\xb5\x0d"
  4767. "\xee\x2f\x04\x1f\x7f\xbc\x99\xee"
  4768. "\x84\xff\x42\x60\xdc\x3a\x18\xa5"
  4769. "\x81\xf9\xef\xdc\x7a\x0f\x65\x41"
  4770. "\x2f\xa3\xd3\xf9\xc2\xcb\xc0\x4d"
  4771. "\x8f\xd3\x76\x96\xad\x49\x6d\x38"
  4772. "\x3d\x39\x0b\x6c\x80\xb7\x54\x69"
  4773. "\xf0\x2c\x90\x02\x29\x0d\x1c\x12"
  4774. "\xad\x55\xc3\x8b\x68\xd9\xcc\xb3"
  4775. "\xb2\x64\x33\x90\x5e\xca\x4b\xe2"
  4776. "\xfb\x75\xdc\x63\xf7\x9f\x82\x74"
  4777. "\xf0\xc9\xaa\x7f\xe9\x2a\x9b\x33"
  4778. "\xbc\x88\x00\x7f\xca\xb2\x1f\x14"
  4779. "\xdb\xc5\x8e\x7b\x11\x3c\x3e\x08"
  4780. "\xf3\x83\xe8\xe0\x94\x86\x2e\x92"
  4781. "\x78\x6b\x01\xc9\xc7\x83\xba\x21"
  4782. "\x6a\x25\x15\x33\x4e\x45\x08\xec"
  4783. "\x35\xdb\xe0\x6e\x31\x51\x79\xa9"
  4784. "\x42\x44\x65\xc1\xa0\xf1\xf9\x2a"
  4785. "\x70\xd5\xb6\xc6\xc1\x8c\x39\xfc"
  4786. "\x25\xa6\x55\xd9\xdd\x2d\x4c\xec"
  4787. "\x49\xc6\xeb\x0e\xa8\x25\x2a\x16"
  4788. "\x1b\x66\x84\xda\xe2\x92\xe5\xc0"
  4789. "\xc8\x53\x07\xaf\x80\x84\xec\xfd"
  4790. "\xcd\xd1\x6e\xcd\x6f\x6a\xf5\x36"
  4791. "\xc5\x15\xe5\x25\x7d\x77\xd1\x1a"
  4792. "\x93\x36\xa9\xcf\x7c\xa4\x54\x4a"
  4793. "\x06\x51\x48\x4e\xf6\x59\x87\xd2"
  4794. "\x04\x02\xef\xd3\x44\xde\x76\x31"
  4795. "\xb3\x34\x17\x1b\x9d\x66\x11\x9f"
  4796. "\x1e\xcc\x17\xe9\xc7\x3c\x1b\xe7"
  4797. "\xcb\x50\x08\xfc\xdc\x2b\x24\xdb"
  4798. "\x65\x83\xd0\x3b\xe3\x30\xea\x94"
  4799. "\x6c\xe7\xe8\x35\x32\xc7\xdb\x64"
  4800. "\xb4\x01\xab\x36\x2c\x77\x13\xaf"
  4801. "\xf8\x2b\x88\x3f\x54\x39\xc4\x44"
  4802. "\xfe\xef\x6f\x68\x34\xbe\x0f\x05"
  4803. "\x16\x6d\xf6\x0a\x30\xe7\xe3\xed"
  4804. "\xc4\xde\x3c\x1b\x13\xd8\xdb\xfe"
  4805. "\x41\x62\xe5\x28\xd4\x8d\xa3\xc7"
  4806. "\x93\x97\xc6\x48\x45\x1d\x9f\x83"
  4807. "\xdf\x4b\x40\x3e\x42\x25\x87\x80"
  4808. "\x4c\x7d\xa8\xd4\x98\x23\x95\x75"
  4809. "\x41\x8c\xda\x41\x9b\xd4\xa7\x06"
  4810. "\xb5\xf1\x71\x09\x53\xbe\xca\xbf"
  4811. "\x32\x03\xed\xf0\x50\x1c\x56\x39"
  4812. "\x5b\xa4\x75\x18\xf7\x9b\x58\xef"
  4813. "\x53\xfc\x2a\x38\x23\x15\x75\xcd"
  4814. "\x45\xe5\x5a\x82\x55\xba\x21\xfa"
  4815. "\xd4\xbd\xc6\x94\x7c\xc5\x80\x12"
  4816. "\xf7\x4b\x32\xc4\x9a\x82\xd8\x28"
  4817. "\x8f\xd9\xc2\x0f\x60\x03\xbe\x5e"
  4818. "\x21\xd6\x5f\x58\xbf\x5c\xb1\x32"
  4819. "\x82\x8d\xa9\xe5\xf2\x66\x1a\xc0"
  4820. "\xa0\xbc\x58\x2f\x71\xf5\x2f\xed"
  4821. "\xd1\x26\xb9\xd8\x49\x5a\x07\x19"
  4822. "\x01\x7c\x59\xb0\xf8\xa4\xb7\xd3"
  4823. "\x7b\x1a\x8c\x38\xf4\x50\xa4\x59"
  4824. "\xb0\xcc\x41\x0b\x88\x7f\xe5\x31"
  4825. "\xb3\x42\xba\xa2\x7e\xd4\x32\x71"
  4826. "\x45\x87\x48\xa9\xc2\xf2\x89\xb3"
  4827. "\xe4\xa7\x7e\x52\x15\x61\xfa\xfe"
  4828. "\xc9\xdd\x81\xeb\x13\xab\xab\xc3"
  4829. "\x98\x59\xd8\x16\x3d\x14\x7a\x1c"
  4830. "\x3c\x41\x9a\x16\x16\x9b\xd2\xd2"
  4831. "\x69\x3a\x29\x23\xac\x86\x32\xa5"
  4832. "\x48\x9c\x9e\xf3\x47\x77\x81\x70"
  4833. "\x24\xe8\x85\xd2\xf5\xb5\xfa\xff"
  4834. "\x59\x6a\xd3\x50\x59\x43\x59\xde"
  4835. "\xd9\xf1\x55\xa5\x0c\xc3\x1a\x1a"
  4836. "\x18\x34\x0d\x1a\x63\x33\xed\x10"
  4837. "\xe0\x1d\x2a\x18\xd2\xc0\x54\xa8"
  4838. "\xca\xb5\x9a\xd3\xdd\xca\x45\x84"
  4839. "\x50\xe7\x0f\xfe\xa4\x99\x5a\xbe"
  4840. "\x43\x2d\x9a\xcb\x92\x3f\x5a\x1d"
  4841. "\x85\xd8\xc9\xdf\x68\xc9\x12\x80"
  4842. "\x56\x0c\xdc\x00\xdc\x3a\x7d\x9d"
  4843. "\xa3\xa2\xe8\x4d\xbf\xf9\x70\xa0"
  4844. "\xa4\x13\x4f\x6b\xaf\x0a\x89\x7f"
  4845. "\xda\xf0\xbf\x9b\xc8\x1d\xe5\xf8"
  4846. "\x2e\x8b\x07\xb5\x73\x1b\xcc\xa2"
  4847. "\xa6\xad\x30\xbc\x78\x3c\x5b\x10"
  4848. "\xfa\x5e\x62\x2d\x9e\x64\xb3\x33"
  4849. "\xce\xf9\x1f\x86\xe7\x8b\xa2\xb8"
  4850. "\xe8\x99\x57\x8c\x11\xed\x66\xd9"
  4851. "\x3c\x72\xb9\xc3\xe6\x4e\x17\x3a"
  4852. "\x6a\xcb\x42\x24\x06\xed\x3e\x4e"
  4853. "\xa3\xe8\x6a\x94\xda\x0d\x4e\xd5"
  4854. "\x14\x19\xcf\xb6\x26\xd8\x2e\xcc"
  4855. "\x64\x76\x38\x49\x4d\xfe\x30\x6d"
  4856. "\xe4\xc8\x8c\x7b\xc4\xe0\x35\xba"
  4857. "\x22\x6e\x76\xe1\x1a\xf2\x53\xc3"
  4858. "\x28\xa2\x82\x1f\x61\x69\xad\xc1"
  4859. "\x7b\x28\x4b\x1e\x6c\x85\x95\x9b"
  4860. "\x51\xb5\x17\x7f\x12\x69\x8c\x24"
  4861. "\xd5\xc7\x5a\x5a\x11\x54\xff\x5a"
  4862. "\xf7\x16\xc3\x91\xa6\xf0\xdc\x0a"
  4863. "\xb6\xa7\x4a\x0d\x7a\x58\xfe\xa5"
  4864. "\xf5\xcb\x8f\x7b\x0e\xea\x57\xe7"
  4865. "\xbd\x79\xd6\x1c\x88\x23\x6c\xf2"
  4866. "\x4d\x29\x77\x53\x35\x6a\x00\x8d"
  4867. "\xcd\xa3\x58\xbe\x77\x99\x18\xf8"
  4868. "\xe6\xe1\x8f\xe9\x37\x8f\xe3\xe2"
  4869. "\x5a\x8a\x93\x25\xaf\xf3\x78\x80"
  4870. "\xbe\xa6\x1b\xc6\xac\x8b\x1c\x91"
  4871. "\x58\xe1\x9f\x89\x35\x9d\x1d\x21"
  4872. "\x29\x9f\xf4\x99\x02\x27\x0f\xa8"
  4873. "\x4f\x79\x94\x2b\x33\x2c\xda\xa2"
  4874. "\x26\x39\x83\x94\xef\x27\xd8\x53"
  4875. "\x8f\x66\x0d\xe4\x41\x7d\x34\xcd"
  4876. "\x43\x7c\x95\x0a\x53\xef\x66\xda"
  4877. "\x7e\x9b\xf3\x93\xaf\xd0\x73\x71"
  4878. "\xba\x40\x9b\x74\xf8\xd7\xd7\x41"
  4879. "\x6d\xaf\x72\x9c\x8d\x21\x87\x3c"
  4880. "\xfd\x0a\x90\xa9\x47\x96\x9e\xd3"
  4881. "\x88\xee\x73\xcf\x66\x2f\x52\x56"
  4882. "\x6d\xa9\x80\x4c\xe2\x6f\x62\x88"
  4883. "\x3f\x0e\x54\x17\x48\x80\x5d\xd3"
  4884. "\xc3\xda\x25\x3d\xa1\xc8\xcb\x9f"
  4885. "\x9b\x70\xb3\xa1\xeb\x04\x52\xa1"
  4886. "\xf2\x22\x0f\xfc\xc8\x18\xfa\xf9"
  4887. "\x85\x9c\xf1\xac\xeb\x0c\x02\x46"
  4888. "\x75\xd2\xf5\x2c\xe3\xd2\x59\x94"
  4889. "\x12\xf3\x3c\xfc\xd7\x92\xfa\x36"
  4890. "\xba\x61\x34\x38\x7c\xda\x48\x3e"
  4891. "\x08\xc9\x39\x23\x5e\x02\x2c\x1a"
  4892. "\x18\x7e\xb4\xd9\xfd\x9e\x40\x02"
  4893. "\xb1\x33\x37\x32\xe7\xde\xd6\xd0"
  4894. "\x7c\x58\x65\x4b\xf8\x34\x27\x9c"
  4895. "\x44\xb4\xbd\xe9\xe9\x4c\x78\x7d"
  4896. "\x4b\x9f\xce\xb1\xcd\x47\xa5\x37"
  4897. "\xe5\x6d\xbd\xb9\x43\x94\x0a\xd4"
  4898. "\xd6\xf9\x04\x5f\xb5\x66\x6c\x1a"
  4899. "\x35\x12\xe3\x36\x28\x27\x36\x58"
  4900. "\x01\x2b\x79\xe4\xba\x6d\x10\x7d"
  4901. "\x65\xdf\x84\x95\xf4\xd5\xb6\x8f"
  4902. "\x2b\x9f\x96\x00\x86\x60\xf0\x21"
  4903. "\x76\xa8\x6a\x8c\x28\x1c\xb3\x6b"
  4904. "\x97\xd7\xb6\x53\x2a\xcc\xab\x40"
  4905. "\x9d\x62\x79\x58\x52\xe6\x65\xb7"
  4906. "\xab\x55\x67\x9c\x89\x7c\x03\xb0"
  4907. "\x73\x59\xc5\x81\xf5\x18\x17\x5c"
  4908. "\x89\xf3\x78\x35\x44\x62\x78\x72"
  4909. "\xd0\x96\xeb\x31\xe7\x87\x77\x14"
  4910. "\x99\x51\xf2\x59\x26\x9e\xb5\xa6"
  4911. "\x45\xfe\x6e\xbd\x07\x4c\x94\x5a"
  4912. "\xa5\x7d\xfc\xf1\x2b\x77\xe2\xfe"
  4913. "\x17\xd4\x84\xa0\xac\xb5\xc7\xda"
  4914. "\xa9\x1a\xb6\xf3\x74\x11\xb4\x9d"
  4915. "\xfb\x79\x2e\x04\x2d\x50\x28\x83"
  4916. "\xbf\xc6\x52\xd3\x34\xd6\xe8\x7a"
  4917. "\xb6\xea\xe7\xa8\x6c\x15\x1e\x2c"
  4918. "\x57\xbc\x48\x4e\x5f\x5c\xb6\x92"
  4919. "\xd2\x49\x77\x81\x6d\x90\x70\xae"
  4920. "\x98\xa1\x03\x0d\x6b\xb9\x77\x14"
  4921. "\xf1\x4e\x23\xd3\xf8\x68\xbd\xc2"
  4922. "\xfe\x04\xb7\x5c\xc5\x17\x60\x8f"
  4923. "\x65\x54\xa4\x7a\x42\xdc\x18\x0d"
  4924. "\xb5\xcf\x0f\xd3\xc7\x91\x66\x1b"
  4925. "\x45\x42\x27\x75\x50\xe5\xee\xb8"
  4926. "\x7f\x33\x2c\xba\x4a\x92\x4d\x2c"
  4927. "\x3c\xe3\x0d\x80\x01\xba\x0d\x29"
  4928. "\xd8\x3c\xe9\x13\x16\x57\xe6\xea"
  4929. "\x94\x52\xe7\x00\x4d\x30\xb0\x0f"
  4930. "\x35\xb8\xb8\xa7\xb1\xb5\x3b\x44"
  4931. "\xe1\x2f\xfd\x88\xed\x43\xe7\x52"
  4932. "\x10\x93\xb3\x8a\x30\x6b\x0a\xf7"
  4933. "\x23\xc6\x50\x9d\x4a\xb0\xde\xc3"
  4934. "\xdc\x9b\x2f\x01\x56\x36\x09\xc5"
  4935. "\x2f\x6b\xfe\xf1\xd8\x27\x45\x03"
  4936. "\x30\x5e\x5c\x5b\xb4\x62\x0e\x1a"
  4937. "\xa9\x21\x2b\x92\x94\x87\x62\x57"
  4938. "\x4c\x10\x74\x1a\xf1\x0a\xc5\x84"
  4939. "\x3b\x9e\x72\x02\xd7\xcc\x09\x56"
  4940. "\xbd\x54\xc1\xf0\xc3\xe3\xb3\xf8"
  4941. "\xd2\x0d\x61\xcb\xef\xce\x0d\x05"
  4942. "\xb0\x98\xd9\x8e\x4f\xf9\xbc\x93"
  4943. "\xa6\xea\xc8\xcf\x10\x53\x4b\xf1"
  4944. "\xec\xfc\x89\xf9\x64\xb0\x22\xbf"
  4945. "\x9e\x55\x46\x9f\x7c\x50\x8e\x84"
  4946. "\x54\x20\x98\xd7\x6c\x40\x1e\xdb"
  4947. "\x69\x34\x78\x61\x24\x21\x9c\x8a"
  4948. "\xb3\x62\x31\x8b\x6e\xf5\x2a\x35"
  4949. "\x86\x13\xb1\x6c\x64\x2e\x41\xa5"
  4950. "\x05\xf2\x42\xba\xd2\x3a\x0d\x8e"
  4951. "\x8a\x59\x94\x3c\xcf\x36\x27\x82"
  4952. "\xc2\x45\xee\x58\xcd\x88\xb4\xec"
  4953. "\xde\xb2\x96\x0a\xaf\x38\x6f\x88"
  4954. "\xd7\xd8\xe1\xdf\xb9\x96\xa9\x0a"
  4955. "\xb1\x95\x28\x86\x20\xe9\x17\x49"
  4956. "\xa2\x29\x38\xaa\xa5\xe9\x6e\xf1"
  4957. "\x19\x27\xc0\xd5\x2a\x22\xc3\x0b"
  4958. "\xdb\x7c\x73\x10\xb9\xba\x89\x76"
  4959. "\x54\xae\x7d\x71\xb3\x93\xf6\x32"
  4960. "\xe6\x47\x43\x55\xac\xa0\x0d\xc2"
  4961. "\x93\x27\x4a\x8e\x0e\x74\x15\xc7"
  4962. "\x0b\x85\xd9\x0c\xa9\x30\x7a\x3e"
  4963. "\xea\x8f\x85\x6d\x3a\x12\x4f\x72"
  4964. "\x69\x58\x7a\x80\xbb\xb5\x97\xf3"
  4965. "\xcf\x70\xd2\x5d\xdd\x4d\x21\x79"
  4966. "\x54\x4d\xe4\x05\xe8\xbd\xc2\x62"
  4967. "\xb1\x3b\x77\x1c\xd6\x5c\xf3\xa0"
  4968. "\x79\x00\xa8\x6c\x29\xd9\x18\x24"
  4969. "\x36\xa2\x46\xc0\x96\x65\x7f\xbd"
  4970. "\x2a\xed\x36\x16\x0c\xaa\x9f\xf4"
  4971. "\xc5\xb4\xe2\x12\xed\x69\xed\x4f"
  4972. "\x26\x2c\x39\x52\x89\x98\xe7\x2c"
  4973. "\x99\xa4\x9e\xa3\x9b\x99\x46\x7a"
  4974. "\x3a\xdc\xa8\x59\xa3\xdb\xc3\x3b"
  4975. "\x95\x0d\x3b\x09\x6e\xee\x83\x5d"
  4976. "\x32\x4d\xed\xab\xfa\x98\x14\x4e"
  4977. "\xc3\x15\x45\x53\x61\xc4\x93\xbd"
  4978. "\x90\xf4\x99\x95\x4c\xe6\x76\x92"
  4979. "\x29\x90\x46\x30\x92\x69\x7d\x13"
  4980. "\xf2\xa5\xcd\x69\x49\x44\xb2\x0f"
  4981. "\x63\x40\x36\x5f\x09\xe2\x78\xf8"
  4982. "\x91\xe3\xe2\xfa\x10\xf7\xc8\x24"
  4983. "\xa8\x89\x32\x5c\x37\x25\x1d\xb2"
  4984. "\xea\x17\x8a\x0a\xa9\x64\xc3\x7c"
  4985. "\x3c\x7c\xbd\xc6\x79\x34\xe7\xe2"
  4986. "\x85\x8e\xbf\xf8\xde\x92\xa0\xae"
  4987. "\x20\xc4\xf6\xbb\x1f\x38\x19\x0e"
  4988. "\xe8\x79\x9c\xa1\x23\xe9\x54\x7e"
  4989. "\x37\x2f\xe2\x94\x32\xaf\xa0\x23"
  4990. "\x49\xe4\xc0\xb3\xac\x00\x8f\x36"
  4991. "\x05\xc4\xa6\x96\xec\x05\x98\x4f"
  4992. "\x96\x67\x57\x1f\x20\x86\x1b\x2d"
  4993. "\x69\xe4\x29\x93\x66\x5f\xaf\x6b"
  4994. "\x88\x26\x2c\x67\x02\x4b\x52\xd0"
  4995. "\x83\x7a\x43\x1f\xc0\x71\x15\x25"
  4996. "\x77\x65\x08\x60\x11\x76\x4c\x8d"
  4997. "\xed\xa9\x27\xc6\xb1\x2a\x2c\x6a"
  4998. "\x4a\x97\xf5\xc6\xb7\x70\x42\xd3"
  4999. "\x03\xd1\x24\x95\xec\x6d\xab\x38"
  5000. "\x72\xce\xe2\x8b\x33\xd7\x51\x09"
  5001. "\xdc\x45\xe0\x09\x96\x32\xf3\xc4"
  5002. "\x84\xdc\x73\x73\x2d\x1b\x11\x98"
  5003. "\xc5\x0e\x69\x28\x94\xc7\xb5\x4d"
  5004. "\xc8\x8a\xd0\xaa\x13\x2e\x18\x74"
  5005. "\xdd\xd1\x1e\xf3\x90\xe8\xfc\x9a"
  5006. "\x72\x4a\x0e\xd1\xe4\xfb\x0d\x96"
  5007. "\xd1\x0c\x79\x85\x1b\x1c\xfe\xe1"
  5008. "\x62\x8f\x7a\x73\x32\xab\xc8\x18"
  5009. "\x69\xe3\x34\x30\xdf\x13\xa6\xe5"
  5010. "\xe8\x0e\x67\x7f\x81\x11\xb4\x60"
  5011. "\xc7\xbd\x79\x65\x50\xdc\xc4\x5b"
  5012. "\xde\x39\xa4\x01\x72\x63\xf3\xd1"
  5013. "\x64\x4e\xdf\xfc\x27\x92\x37\x0d"
  5014. "\x57\xcd\x11\x4f\x11\x04\x8e\x1d"
  5015. "\x16\xf7\xcd\x92\x9a\x99\x30\x14"
  5016. "\xf1\x7c\x67\x1b\x1f\x41\x0b\xe8"
  5017. "\x32\xe8\xb8\xc1\x4f\x54\x86\x4f"
  5018. "\xe5\x79\x81\x73\xcd\x43\x59\x68"
  5019. "\x73\x02\x3b\x78\x21\x72\x43\x00"
  5020. "\x49\x17\xf7\x00\xaf\x68\x24\x53"
  5021. "\x05\x0a\xc3\x33\xe0\x33\x3f\x69"
  5022. "\xd2\x84\x2f\x0b\xed\xde\x04\xf4"
  5023. "\x11\x94\x13\x69\x51\x09\x28\xde"
  5024. "\x57\x5c\xef\xdc\x9a\x49\x1c\x17"
  5025. "\x97\xf3\x96\xc1\x7f\x5d\x2e\x7d"
  5026. "\x55\xb8\xb3\x02\x09\xb3\x1f\xe7"
  5027. "\xc9\x8d\xa3\x36\x34\x8a\x77\x13"
  5028. "\x30\x63\x4c\xa5\xcd\xc3\xe0\x7e"
  5029. "\x05\xa1\x7b\x0c\xcb\x74\x47\x31"
  5030. "\x62\x03\x43\xf1\x87\xb4\xb0\x85"
  5031. "\x87\x8e\x4b\x25\xc7\xcf\xae\x4b"
  5032. "\x36\x46\x3e\x62\xbc\x6f\xeb\x5f"
  5033. "\x73\xac\xe6\x07\xee\xc1\xa1\xd6"
  5034. "\xc4\xab\xc9\xd6\x89\x45\xe1\xf1"
  5035. "\x04\x4e\x1a\x6f\xbb\x4f\x3a\xa3"
  5036. "\xa0\xcb\xa3\x0a\xd8\x71\x35\x55"
  5037. "\xe4\xbc\x2e\x04\x06\xe6\xff\x5b"
  5038. "\x1c\xc0\x11\x7c\xc5\x17\xf3\x38"
  5039. "\xcf\xe9\xba\x0f\x0e\xef\x02\xc2"
  5040. "\x8d\xc6\xbc\x4b\x67\x20\x95\xd7"
  5041. "\x2c\x45\x5b\x86\x44\x8c\x6f\x2e"
  5042. "\x7e\x9f\x1c\x77\xba\x6b\x0e\xa3"
  5043. "\x69\xdc\xab\x24\x57\x60\x47\xc1"
  5044. "\xd1\xa5\x9d\x23\xe6\xb1\x37\xfe"
  5045. "\x93\xd2\x4c\x46\xf9\x0c\xc6\xfb"
  5046. "\xd6\x9d\x99\x69\xab\x7a\x07\x0c"
  5047. "\x65\xe7\xc4\x08\x96\xe2\xa5\x01"
  5048. "\x3f\x46\x07\x05\x7e\xe8\x9a\x90"
  5049. "\x50\xdc\xe9\x7a\xea\xa1\x39\x6e"
  5050. "\x66\xe4\x6f\xa5\x5f\xb2\xd9\x5b"
  5051. "\xf5\xdb\x2a\x32\xf0\x11\x6f\x7c"
  5052. "\x26\x10\x8f\x3d\x80\xe9\x58\xf7"
  5053. "\xe0\xa8\x57\xf8\xdb\x0e\xce\x99"
  5054. "\x63\x19\x3d\xd5\xec\x1b\x77\x69"
  5055. "\x98\xf6\xe4\x5f\x67\x17\x4b\x09"
  5056. "\x85\x62\x82\x70\x18\xe2\x9a\x78"
  5057. "\xe2\x62\xbd\xb4\xf1\x42\xc6\xfb"
  5058. "\x08\xd0\xbd\xeb\x4e\x09\xf2\xc8"
  5059. "\x1e\xdc\x3d\x32\x21\x56\x9c\x4f"
  5060. "\x35\xf3\x61\x06\x72\x84\xc4\x32"
  5061. "\xf2\xf1\xfa\x0b\x2f\xc3\xdb\x02"
  5062. "\x04\xc2\xde\x57\x64\x60\x8d\xcf"
  5063. "\xcb\x86\x5d\x97\x3e\xb1\x9c\x01"
  5064. "\xd6\x28\x8f\x99\xbc\x46\xeb\x05"
  5065. "\xaf\x7e\xb8\x21\x2a\x56\x85\x1c"
  5066. "\xb3\x71\xa0\xde\xca\x96\xf1\x78"
  5067. "\x49\xa2\x99\x81\x80\x5c\x01\xf5"
  5068. "\xa0\xa2\x56\x63\xe2\x70\x07\xa5"
  5069. "\x95\xd6\x85\xeb\x36\x9e\xa9\x51"
  5070. "\x66\x56\x5f\x1d\x02\x19\xe2\xf6"
  5071. "\x4f\x73\x38\x09\x75\x64\x48\xe0"
  5072. "\xf1\x7e\x0e\xe8\x9d\xf9\xed\x94"
  5073. "\xfe\x16\x26\x62\x49\x74\xf4\xb0"
  5074. "\xd4\xa9\x6c\xb0\xfd\x53\xe9\x81"
  5075. "\xe0\x7a\xbf\xcf\xb5\xc4\x01\x81"
  5076. "\x79\x99\x77\x01\x3b\xe9\xa2\xb6"
  5077. "\xe6\x6a\x8a\x9e\x56\x1c\x8d\x1e"
  5078. "\x8f\x06\x55\x2c\x6c\xdc\x92\x87"
  5079. "\x64\x3b\x4b\x19\xa1\x13\x64\x1d"
  5080. "\x4a\xe9\xc0\x00\xb8\x95\xef\x6b"
  5081. "\x1a\x86\x6d\x37\x52\x02\xc2\xe0"
  5082. "\xc8\xbb\x42\x0c\x02\x21\x4a\xc9"
  5083. "\xef\xa0\x54\xe4\x5e\x16\x53\x81"
  5084. "\x70\x62\x10\xaf\xde\xb8\xb5\xd3"
  5085. "\xe8\x5e\x6c\xc3\x8a\x3e\x18\x07"
  5086. "\xf2\x2f\x7d\xa7\xe1\x3d\x4e\xb4"
  5087. "\x26\xa7\xa3\x93\x86\xb2\x04\x1e"
  5088. "\x53\x5d\x86\xd6\xde\x65\xca\xe3"
  5089. "\x4e\xc1\xcf\xef\xc8\x70\x1b\x83"
  5090. "\x13\xdd\x18\x8b\x0d\x76\xd2\xf6"
  5091. "\x37\x7a\x93\x7a\x50\x11\x9f\x96"
  5092. "\x86\x25\xfd\xac\xdc\xbe\x18\x93"
  5093. "\x19\x6b\xec\x58\x4f\xb9\x75\xa7"
  5094. "\xdd\x3f\x2f\xec\xc8\x5a\x84\xab"
  5095. "\xd5\xe4\x8a\x07\xf6\x4d\x23\xd6"
  5096. "\x03\xfb\x03\x6a\xea\x66\xbf\xd4"
  5097. "\xb1\x34\xfb\x78\xe9\x55\xdc\x7c"
  5098. "\x3d\x9c\xe5\x9a\xac\xc3\x7a\x80"
  5099. "\x24\x6d\xa0\xef\x25\x7c\xb7\xea"
  5100. "\xce\x4d\x5f\x18\x60\xce\x87\x22"
  5101. "\x66\x2f\xd5\xdd\xdd\x02\x21\x75"
  5102. "\x82\xa0\x1f\x58\xc6\xd3\x62\xf7"
  5103. "\x32\xd8\xaf\x1e\x07\x77\x51\x96"
  5104. "\xd5\x6b\x1e\x7e\x80\x02\xe8\x67"
  5105. "\xea\x17\x0b\x10\xd2\x3f\x28\x25"
  5106. "\x4f\x05\x77\x02\x14\x69\xf0\x2c"
  5107. "\xbe\x0c\xf1\x74\x30\xd1\xb9\x9b"
  5108. "\xfc\x8c\xbb\x04\x16\xd9\xba\xc3"
  5109. "\xbc\x91\x8a\xc4\x30\xa4\xb0\x12"
  5110. "\x4c\x21\x87\xcb\xc9\x1d\x16\x96"
  5111. "\x07\x6f\x23\x54\xb9\x6f\x79\xe5"
  5112. "\x64\xc0\x64\xda\xb1\xae\xdd\x60"
  5113. "\x6c\x1a\x9d\xd3\x04\x8e\x45\xb0"
  5114. "\x92\x61\xd0\x48\x81\xed\x5e\x1d"
  5115. "\xa0\xc9\xa4\x33\xc7\x13\x51\x5d"
  5116. "\x7f\x83\x73\xb6\x70\x18\x65\x3e"
  5117. "\x2f\x0e\x7a\x12\x39\x98\xab\xd8"
  5118. "\x7e\x6f\xa3\xd1\xba\x56\xad\xbd"
  5119. "\xf0\x03\x01\x1c\x85\x35\x9f\xeb"
  5120. "\x19\x63\xa1\xaf\xfe\x2d\x35\x50"
  5121. "\x39\xa0\x65\x7c\x95\x7e\x6b\xfe"
  5122. "\xc1\xac\x07\x7c\x98\x4f\xbe\x57"
  5123. "\xa7\x22\xec\xe2\x7e\x29\x09\x53"
  5124. "\xe8\xbf\xb4\x7e\x3f\x8f\xfc\x14"
  5125. "\xce\x54\xf9\x18\x58\xb5\xff\x44"
  5126. "\x05\x9d\xce\x1b\xb6\x82\x23\xc8"
  5127. "\x2e\xbc\x69\xbb\x4a\x29\x0f\x65"
  5128. "\x94\xf0\x63\x06\x0e\xef\x8c\xbd"
  5129. "\xff\xfd\xb0\x21\x6e\x57\x05\x75"
  5130. "\xda\xd5\xc4\xeb\x8d\x32\xf7\x50"
  5131. "\xd3\x6f\x22\xed\x5f\x8e\xa2\x5b"
  5132. "\x80\x8c\xc8\x78\x40\x24\x4b\x89"
  5133. "\x30\xce\x7a\x97\x0e\xc4\xaf\xef"
  5134. "\x9b\xb4\xcd\x66\x74\x14\x04\x2b"
  5135. "\xf7\xce\x0b\x1c\x6e\xc2\x78\x8c"
  5136. "\xca\xc5\xd0\x1c\x95\x4a\x91\x2d"
  5137. "\xa7\x20\xeb\x86\x52\xb7\x67\xd8"
  5138. "\x0c\xd6\x04\x14\xde\x51\x74\x75"
  5139. "\xe7\x11\xb4\x87\xa3\x3d\x2d\xad"
  5140. "\x4f\xef\xa0\x0f\x70\x00\x6d\x13"
  5141. "\x19\x1d\x41\x50\xe9\xd8\xf0\x32"
  5142. "\x71\xbc\xd3\x11\xf2\xac\xbe\xaf"
  5143. "\x75\x46\x65\x4e\x07\x34\x37\xa3"
  5144. "\x89\xfe\x75\xd4\x70\x4c\xc6\x3f"
  5145. "\x69\x24\x0e\x38\x67\x43\x8c\xde"
  5146. "\x06\xb5\xb8\xe7\xc4\xf0\x41\x8f"
  5147. "\xf0\xbd\x2f\x0b\xb9\x18\xf8\xde"
  5148. "\x64\xb1\xdb\xee\x00\x50\x77\xe1"
  5149. "\xc7\xff\xa6\xfa\xdd\x70\xf4\xe3"
  5150. "\x93\xe9\x77\x35\x3d\x4b\x2f\x2b"
  5151. "\x6d\x55\xf0\xfc\x88\x54\x4e\x89"
  5152. "\xc1\x8a\x23\x31\x2d\x14\x2a\xb8"
  5153. "\x1b\x15\xdd\x9e\x6e\x7b\xda\x05"
  5154. "\x91\x7d\x62\x64\x96\x72\xde\xfc"
  5155. "\xc1\xec\xf0\x23\x51\x6f\xdb\x5b"
  5156. "\x1d\x08\x57\xce\x09\xb8\xf6\xcd"
  5157. "\x8d\x95\xf2\x20\xbf\x0f\x20\x57"
  5158. "\x98\x81\x84\x4f\x15\x5c\x76\xe7"
  5159. "\x3e\x0a\x3a\x6c\xc4\x8a\xbe\x78"
  5160. "\x74\x77\xc3\x09\x4b\x5d\x48\xe4"
  5161. "\xc8\xcb\x0b\xea\x17\x28\xcf\xcf"
  5162. "\x31\x32\x44\xa4\xe5\x0e\x1a\x98"
  5163. "\x94\xc4\xf0\xff\xae\x3e\x44\xe8"
  5164. "\xa5\xb3\xb5\x37\x2f\xe8\xaf\x6f"
  5165. "\x28\xc1\x37\x5f\x31\xd2\xb9\x33"
  5166. "\xb1\xb2\x52\x94\x75\x2c\x29\x59"
  5167. "\x06\xc2\x25\xe8\x71\x65\x4e\xed"
  5168. "\xc0\x9c\xb1\xbb\x25\xdc\x6c\xe7"
  5169. "\x4b\xa5\x7a\x54\x7a\x60\xff\x7a"
  5170. "\xe0\x50\x40\x96\x35\x63\xe4\x0b"
  5171. "\x76\xbd\xa4\x65\x00\x1b\x57\x88"
  5172. "\xae\xed\x39\x88\x42\x11\x3c\xed"
  5173. "\x85\x67\x7d\xb9\x68\x82\xe9\x43"
  5174. "\x3c\x47\x53\xfa\xe8\xf8\x9f\x1f"
  5175. "\x9f\xef\x0f\xf7\x30\xd9\x30\x0e"
  5176. "\xb9\x9f\x69\x18\x2f\x7e\xf8\xf8"
  5177. "\xf8\x8c\x0f\xd4\x02\x4d\xea\xcd"
  5178. "\x0a\x9c\x6f\x71\x6d\x5a\x4c\x60"
  5179. "\xce\x20\x56\x32\xc6\xc5\x99\x1f"
  5180. "\x09\xe6\x4e\x18\x1a\x15\x13\xa8"
  5181. "\x7d\xb1\x6b\xc0\xb2\x6d\xf8\x26"
  5182. "\x66\xf8\x3d\x18\x74\x70\x66\x7a"
  5183. "\x34\x17\xde\xba\x47\xf1\x06\x18"
  5184. "\xcb\xaf\xeb\x4a\x1e\x8f\xa7\x77"
  5185. "\xe0\x3b\x78\x62\x66\xc9\x10\xea"
  5186. "\x1f\xb7\x29\x0a\x45\xa1\x1d\x1e"
  5187. "\x1d\xe2\x65\x61\x50\x9c\xd7\x05"
  5188. "\xf2\x0b\x5b\x12\x61\x02\xc8\xe5"
  5189. "\x63\x4f\x20\x0c\x07\x17\x33\x5e"
  5190. "\x03\x9a\x53\x0f\x2e\x55\xfe\x50"
  5191. "\x43\x7d\xd0\xb6\x7e\x5a\xda\xae"
  5192. "\x58\xef\x15\xa9\x83\xd9\x46\xb1"
  5193. "\x42\xaa\xf5\x02\x6c\xce\x92\x06"
  5194. "\x1b\xdb\x66\x45\x91\x79\xc2\x2d"
  5195. "\xe6\x53\xd3\x14\xfd\xbb\x44\x63"
  5196. "\xc6\xd7\x3d\x7a\x0c\x75\x78\x9d"
  5197. "\x5c\xa6\x39\xb3\xe5\x63\xca\x8b"
  5198. "\xfe\xd3\xef\x60\x83\xf6\x8e\x70"
  5199. "\xb6\x67\xc7\x77\xed\x23\xef\x4c"
  5200. "\xf0\xed\x2d\x07\x59\x6f\xc1\x01"
  5201. "\x34\x37\x08\xab\xd9\x1f\x09\xb1"
  5202. "\xce\x5b\x17\xff\x74\xf8\x9c\xd5"
  5203. "\x2c\x56\x39\x79\x0f\x69\x44\x75"
  5204. "\x58\x27\x01\xc4\xbf\xa7\xa1\x1d"
  5205. "\x90\x17\x77\x86\x5a\x3f\xd9\xd1"
  5206. "\x0e\xa0\x10\xf8\xec\x1e\xa5\x7f"
  5207. "\x5e\x36\xd1\xe3\x04\x2c\x70\xf7"
  5208. "\x8e\xc0\x98\x2f\x6c\x94\x2b\x41"
  5209. "\xb7\x60\x00\xb7\x2e\xb8\x02\x8d"
  5210. "\xb8\xb0\xd3\x86\xba\x1d\xd7\x90"
  5211. "\xd6\xb6\xe1\xfc\xd7\xd8\x28\x06"
  5212. "\x63\x9b\xce\x61\x24\x79\xc0\x70"
  5213. "\x52\xd0\xb6\xd4\x28\x95\x24\x87"
  5214. "\x03\x1f\xb7\x9a\xda\xa3\xfb\x52"
  5215. "\x5b\x68\xe7\x4c\x8c\x24\xe1\x42"
  5216. "\xf7\xd5\xfd\xad\x06\x32\x9f\xba"
  5217. "\xc1\xfc\xdd\xc6\xfc\xfc\xb3\x38"
  5218. "\x74\x56\x58\x40\x02\x37\x52\x2c"
  5219. "\x55\xcc\xb3\x9e\x7a\xe9\xd4\x38"
  5220. "\x41\x5e\x0c\x35\xe2\x11\xd1\x13"
  5221. "\xf8\xb7\x8d\x72\x6b\x22\x2a\xb0"
  5222. "\xdb\x08\xba\x35\xb9\x3f\xc8\xd3"
  5223. "\x24\x90\xec\x58\xd2\x09\xc7\x2d"
  5224. "\xed\x38\x80\x36\x72\x43\x27\x49"
  5225. "\x4a\x80\x8a\xa2\xe8\xd3\xda\x30"
  5226. "\x7d\xb6\x82\x37\x86\x92\x86\x3e"
  5227. "\x08\xb2\x28\x5a\x55\x44\x24\x7d"
  5228. "\x40\x48\x8a\xb6\x89\x58\x08\xa0"
  5229. "\xd6\x6d\x3a\x17\xbf\xf6\x54\xa2"
  5230. "\xf5\xd3\x8c\x0f\x78\x12\x57\x8b"
  5231. "\xd5\xc2\xfd\x58\x5b\x7f\x38\xe3"
  5232. "\xcc\xb7\x7c\x48\xb3\x20\xe8\x81"
  5233. "\x14\x32\x45\x05\xe0\xdb\x9f\x75"
  5234. "\x85\xb4\x6a\xfc\x95\xe3\x54\x22"
  5235. "\x12\xee\x30\xfe\xd8\x30\xef\x34"
  5236. "\x50\xab\x46\x30\x98\x2f\xb7\xc0"
  5237. "\x15\xa2\x83\xb6\xf2\x06\x21\xa2"
  5238. "\xc3\x26\x37\x14\xd1\x4d\xb5\x10"
  5239. "\x52\x76\x4d\x6a\xee\xb5\x2b\x15"
  5240. "\xb7\xf9\x51\xe8\x2a\xaf\xc7\xfa"
  5241. "\x77\xaf\xb0\x05\x4d\xd1\x68\x8e"
  5242. "\x74\x05\x9f\x9d\x93\xa5\x3e\x7f"
  5243. "\x4e\x5f\x9d\xcb\x09\xc7\x83\xe3"
  5244. "\x02\x9d\x27\x1f\xef\x85\x05\x8d"
  5245. "\xec\x55\x88\x0f\x0d\x7c\x4c\xe8"
  5246. "\xa1\x75\xa0\xd8\x06\x47\x14\xef"
  5247. "\xaa\x61\xcf\x26\x15\xad\xd8\xa3"
  5248. "\xaa\x75\xf2\x78\x4a\x5a\x61\xdf"
  5249. "\x8b\xc7\x04\xbc\xb2\x32\xd2\x7e"
  5250. "\x42\xee\xb4\x2f\x51\xff\x7b\x2e"
  5251. "\xd3\x02\xe8\xdc\x5d\x0d\x50\xdc"
  5252. "\xae\xb7\x46\xf9\xa8\xe6\xd0\x16"
  5253. "\xcc\xe6\x2c\x81\xc7\xad\xe9\xf0"
  5254. "\x05\x72\x6d\x3d\x0a\x7a\xa9\x02"
  5255. "\xac\x82\x93\x6e\xb6\x1c\x28\xfc"
  5256. "\x44\x12\xfb\x73\x77\xd4\x13\x39"
  5257. "\x29\x88\x8a\xf3\x5c\xa6\x36\xa0"
  5258. "\x2a\xed\x7e\xb1\x1d\xd6\x4c\x6b"
  5259. "\x41\x01\x18\x5d\x5d\x07\x97\xa6"
  5260. "\x4b\xef\x31\x18\xea\xac\xb1\x84"
  5261. "\x21\xed\xda\x86",
  5262. .rlen = 4100,
  5263. .np = 2,
  5264. .tap = { 4064, 36 },
  5265. },
  5266. };
  5267. static struct cipher_testvec aes_ctr_rfc3686_dec_tv_template[] = {
  5268. { /* From RFC 3686 */
  5269. .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
  5270. "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
  5271. "\x00\x00\x00\x30",
  5272. .klen = 20,
  5273. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  5274. .input = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
  5275. "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
  5276. .ilen = 16,
  5277. .result = "Single block msg",
  5278. .rlen = 16,
  5279. }, {
  5280. .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
  5281. "\x43\xd6\xce\x1f\x32\x53\x91\x63"
  5282. "\x00\x6c\xb6\xdb",
  5283. .klen = 20,
  5284. .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
  5285. .input = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
  5286. "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
  5287. "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
  5288. "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
  5289. .ilen = 32,
  5290. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5291. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5292. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5293. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  5294. .rlen = 32,
  5295. }, {
  5296. .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
  5297. "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
  5298. "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
  5299. "\x00\x00\x00\x48",
  5300. .klen = 28,
  5301. .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
  5302. .input = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
  5303. "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
  5304. .ilen = 16,
  5305. .result = "Single block msg",
  5306. .rlen = 16,
  5307. }, {
  5308. .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
  5309. "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
  5310. "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
  5311. "\x00\x96\xb0\x3b",
  5312. .klen = 28,
  5313. .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
  5314. .input = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
  5315. "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
  5316. "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
  5317. "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
  5318. .ilen = 32,
  5319. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5320. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5321. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5322. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  5323. .rlen = 32,
  5324. }, {
  5325. .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
  5326. "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
  5327. "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
  5328. "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
  5329. "\x00\x00\x00\x60",
  5330. .klen = 36,
  5331. .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
  5332. .input = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
  5333. "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
  5334. .ilen = 16,
  5335. .result = "Single block msg",
  5336. .rlen = 16,
  5337. }, {
  5338. .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
  5339. "\x07\x96\x36\x58\x79\xef\xf8\x86"
  5340. "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
  5341. "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
  5342. "\x00\xfa\xac\x24",
  5343. .klen = 36,
  5344. .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
  5345. .input = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
  5346. "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
  5347. "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
  5348. "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
  5349. .ilen = 32,
  5350. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5351. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5352. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5353. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  5354. .rlen = 32,
  5355. },
  5356. };
  5357. static struct aead_testvec aes_gcm_enc_tv_template[] = {
  5358. { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
  5359. .key = zeroed_string,
  5360. .klen = 16,
  5361. .result = "\x58\xe2\xfc\xce\xfa\x7e\x30\x61"
  5362. "\x36\x7f\x1d\x57\xa4\xe7\x45\x5a",
  5363. .rlen = 16,
  5364. }, {
  5365. .key = zeroed_string,
  5366. .klen = 16,
  5367. .input = zeroed_string,
  5368. .ilen = 16,
  5369. .result = "\x03\x88\xda\xce\x60\xb6\xa3\x92"
  5370. "\xf3\x28\xc2\xb9\x71\xb2\xfe\x78"
  5371. "\xab\x6e\x47\xd4\x2c\xec\x13\xbd"
  5372. "\xf5\x3a\x67\xb2\x12\x57\xbd\xdf",
  5373. .rlen = 32,
  5374. }, {
  5375. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5376. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5377. .klen = 16,
  5378. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5379. "\xde\xca\xf8\x88",
  5380. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5381. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5382. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5383. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5384. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5385. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5386. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5387. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  5388. .ilen = 64,
  5389. .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  5390. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  5391. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  5392. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  5393. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  5394. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  5395. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  5396. "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
  5397. "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
  5398. "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
  5399. .rlen = 80,
  5400. }, {
  5401. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5402. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5403. .klen = 16,
  5404. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5405. "\xde\xca\xf8\x88",
  5406. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5407. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5408. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5409. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5410. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5411. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5412. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5413. "\xba\x63\x7b\x39",
  5414. .ilen = 60,
  5415. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5416. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5417. "\xab\xad\xda\xd2",
  5418. .alen = 20,
  5419. .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  5420. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  5421. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  5422. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  5423. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  5424. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  5425. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  5426. "\x3d\x58\xe0\x91"
  5427. "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
  5428. "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
  5429. .rlen = 76,
  5430. }, {
  5431. .key = zeroed_string,
  5432. .klen = 24,
  5433. .result = "\xcd\x33\xb2\x8a\xc7\x73\xf7\x4b"
  5434. "\xa0\x0e\xd1\xf3\x12\x57\x24\x35",
  5435. .rlen = 16,
  5436. }, {
  5437. .key = zeroed_string,
  5438. .klen = 24,
  5439. .input = zeroed_string,
  5440. .ilen = 16,
  5441. .result = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
  5442. "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
  5443. "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
  5444. "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
  5445. .rlen = 32,
  5446. }, {
  5447. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5448. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5449. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  5450. .klen = 24,
  5451. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5452. "\xde\xca\xf8\x88",
  5453. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5454. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5455. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5456. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5457. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5458. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5459. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5460. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  5461. .ilen = 64,
  5462. .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  5463. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  5464. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  5465. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  5466. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  5467. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  5468. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  5469. "\xcc\xda\x27\x10\xac\xad\xe2\x56"
  5470. "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
  5471. "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
  5472. .rlen = 80,
  5473. }, {
  5474. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5475. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5476. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  5477. .klen = 24,
  5478. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5479. "\xde\xca\xf8\x88",
  5480. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5481. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5482. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5483. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5484. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5485. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5486. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5487. "\xba\x63\x7b\x39",
  5488. .ilen = 60,
  5489. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5490. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5491. "\xab\xad\xda\xd2",
  5492. .alen = 20,
  5493. .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  5494. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  5495. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  5496. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  5497. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  5498. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  5499. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  5500. "\xcc\xda\x27\x10"
  5501. "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
  5502. "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
  5503. .rlen = 76,
  5504. .np = 2,
  5505. .tap = { 32, 28 },
  5506. .anp = 2,
  5507. .atap = { 8, 12 }
  5508. }, {
  5509. .key = zeroed_string,
  5510. .klen = 32,
  5511. .result = "\x53\x0f\x8a\xfb\xc7\x45\x36\xb9"
  5512. "\xa9\x63\xb4\xf1\xc4\xcb\x73\x8b",
  5513. .rlen = 16,
  5514. }
  5515. };
  5516. static struct aead_testvec aes_gcm_dec_tv_template[] = {
  5517. { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
  5518. .key = zeroed_string,
  5519. .klen = 32,
  5520. .input = "\xce\xa7\x40\x3d\x4d\x60\x6b\x6e"
  5521. "\x07\x4e\xc5\xd3\xba\xf3\x9d\x18"
  5522. "\xd0\xd1\xc8\xa7\x99\x99\x6b\xf0"
  5523. "\x26\x5b\x98\xb5\xd4\x8a\xb9\x19",
  5524. .ilen = 32,
  5525. .result = zeroed_string,
  5526. .rlen = 16,
  5527. }, {
  5528. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5529. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5530. "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5531. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5532. .klen = 32,
  5533. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5534. "\xde\xca\xf8\x88",
  5535. .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
  5536. "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
  5537. "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
  5538. "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
  5539. "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
  5540. "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
  5541. "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
  5542. "\xbc\xc9\xf6\x62\x89\x80\x15\xad"
  5543. "\xb0\x94\xda\xc5\xd9\x34\x71\xbd"
  5544. "\xec\x1a\x50\x22\x70\xe3\xcc\x6c",
  5545. .ilen = 80,
  5546. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5547. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5548. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5549. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5550. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5551. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5552. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5553. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  5554. .rlen = 64,
  5555. }, {
  5556. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5557. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5558. "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5559. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5560. .klen = 32,
  5561. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5562. "\xde\xca\xf8\x88",
  5563. .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
  5564. "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
  5565. "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
  5566. "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
  5567. "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
  5568. "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
  5569. "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
  5570. "\xbc\xc9\xf6\x62"
  5571. "\x76\xfc\x6e\xce\x0f\x4e\x17\x68"
  5572. "\xcd\xdf\x88\x53\xbb\x2d\x55\x1b",
  5573. .ilen = 76,
  5574. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5575. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5576. "\xab\xad\xda\xd2",
  5577. .alen = 20,
  5578. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5579. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5580. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5581. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5582. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5583. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5584. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5585. "\xba\x63\x7b\x39",
  5586. .rlen = 60,
  5587. .np = 2,
  5588. .tap = { 48, 28 },
  5589. .anp = 3,
  5590. .atap = { 8, 8, 4 }
  5591. }, {
  5592. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5593. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5594. .klen = 16,
  5595. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5596. "\xde\xca\xf8\x88",
  5597. .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  5598. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  5599. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  5600. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  5601. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  5602. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  5603. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  5604. "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
  5605. "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
  5606. "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
  5607. .ilen = 80,
  5608. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5609. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5610. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5611. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5612. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5613. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5614. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5615. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  5616. .rlen = 64,
  5617. }, {
  5618. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5619. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5620. .klen = 16,
  5621. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5622. "\xde\xca\xf8\x88",
  5623. .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  5624. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  5625. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  5626. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  5627. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  5628. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  5629. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  5630. "\x3d\x58\xe0\x91"
  5631. "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
  5632. "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
  5633. .ilen = 76,
  5634. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5635. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5636. "\xab\xad\xda\xd2",
  5637. .alen = 20,
  5638. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5639. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5640. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5641. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5642. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5643. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5644. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5645. "\xba\x63\x7b\x39",
  5646. .rlen = 60,
  5647. }, {
  5648. .key = zeroed_string,
  5649. .klen = 24,
  5650. .input = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
  5651. "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
  5652. "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
  5653. "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
  5654. .ilen = 32,
  5655. .result = zeroed_string,
  5656. .rlen = 16,
  5657. }, {
  5658. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5659. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5660. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  5661. .klen = 24,
  5662. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5663. "\xde\xca\xf8\x88",
  5664. .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  5665. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  5666. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  5667. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  5668. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  5669. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  5670. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  5671. "\xcc\xda\x27\x10\xac\xad\xe2\x56"
  5672. "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
  5673. "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
  5674. .ilen = 80,
  5675. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5676. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5677. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5678. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5679. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5680. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5681. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5682. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  5683. .rlen = 64,
  5684. }, {
  5685. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5686. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5687. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  5688. .klen = 24,
  5689. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5690. "\xde\xca\xf8\x88",
  5691. .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  5692. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  5693. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  5694. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  5695. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  5696. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  5697. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  5698. "\xcc\xda\x27\x10"
  5699. "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
  5700. "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
  5701. .ilen = 76,
  5702. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5703. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5704. "\xab\xad\xda\xd2",
  5705. .alen = 20,
  5706. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5707. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5708. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5709. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5710. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5711. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5712. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5713. "\xba\x63\x7b\x39",
  5714. .rlen = 60,
  5715. }
  5716. };
  5717. static struct aead_testvec aes_gcm_rfc4106_enc_tv_template[] = {
  5718. { /* Generated using Crypto++ */
  5719. .key = zeroed_string,
  5720. .klen = 20,
  5721. .iv = zeroed_string,
  5722. .input = zeroed_string,
  5723. .ilen = 16,
  5724. .assoc = zeroed_string,
  5725. .alen = 8,
  5726. .result = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
  5727. "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
  5728. "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
  5729. "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
  5730. .rlen = 32,
  5731. },{
  5732. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5733. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5734. "\x00\x00\x00\x00",
  5735. .klen = 20,
  5736. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
  5737. "\x00\x00\x00\x00",
  5738. .input = zeroed_string,
  5739. .ilen = 16,
  5740. .assoc = zeroed_string,
  5741. .alen = 8,
  5742. .result = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
  5743. "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
  5744. "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
  5745. "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
  5746. .rlen = 32,
  5747. }, {
  5748. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5749. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5750. "\x00\x00\x00\x00",
  5751. .klen = 20,
  5752. .iv = zeroed_string,
  5753. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  5754. "\x01\x01\x01\x01\x01\x01\x01\x01",
  5755. .ilen = 16,
  5756. .assoc = zeroed_string,
  5757. .alen = 8,
  5758. .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
  5759. "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
  5760. "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
  5761. "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
  5762. .rlen = 32,
  5763. }, {
  5764. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5765. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5766. "\x00\x00\x00\x00",
  5767. .klen = 20,
  5768. .iv = zeroed_string,
  5769. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  5770. "\x01\x01\x01\x01\x01\x01\x01\x01",
  5771. .ilen = 16,
  5772. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
  5773. .alen = 8,
  5774. .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
  5775. "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
  5776. "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
  5777. "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
  5778. .rlen = 32,
  5779. }, {
  5780. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5781. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5782. "\x00\x00\x00\x00",
  5783. .klen = 20,
  5784. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
  5785. "\x00\x00\x00\x00",
  5786. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  5787. "\x01\x01\x01\x01\x01\x01\x01\x01",
  5788. .ilen = 16,
  5789. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
  5790. .alen = 8,
  5791. .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
  5792. "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
  5793. "\x64\x50\xF9\x32\x13\xFB\x74\x61"
  5794. "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
  5795. .rlen = 32,
  5796. }, {
  5797. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5798. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5799. "\x00\x00\x00\x00",
  5800. .klen = 20,
  5801. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
  5802. "\x00\x00\x00\x00",
  5803. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  5804. "\x01\x01\x01\x01\x01\x01\x01\x01"
  5805. "\x01\x01\x01\x01\x01\x01\x01\x01"
  5806. "\x01\x01\x01\x01\x01\x01\x01\x01"
  5807. "\x01\x01\x01\x01\x01\x01\x01\x01"
  5808. "\x01\x01\x01\x01\x01\x01\x01\x01"
  5809. "\x01\x01\x01\x01\x01\x01\x01\x01"
  5810. "\x01\x01\x01\x01\x01\x01\x01\x01",
  5811. .ilen = 64,
  5812. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
  5813. .alen = 8,
  5814. .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
  5815. "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
  5816. "\x98\x14\xA1\x42\x37\x80\xFD\x90"
  5817. "\x68\x12\x01\xA8\x91\x89\xB9\x83"
  5818. "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
  5819. "\x94\x5F\x18\x12\xBA\x27\x09\x39"
  5820. "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
  5821. "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
  5822. "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
  5823. "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
  5824. .rlen = 80,
  5825. }, {
  5826. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5827. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5828. "\x00\x00\x00\x00",
  5829. .klen = 20,
  5830. .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef"
  5831. "\x00\x00\x00\x00",
  5832. .input = "\xff\xff\xff\xff\xff\xff\xff\xff"
  5833. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5834. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5835. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5836. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5837. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5838. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5839. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5840. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5841. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5842. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5843. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5844. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5845. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5846. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5847. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5848. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5849. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5850. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5851. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5852. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5853. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5854. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5855. "\xff\xff\xff\xff\xff\xff\xff\xff",
  5856. .ilen = 192,
  5857. .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  5858. "\xaa\xaa\xaa\xaa",
  5859. .alen = 12,
  5860. .result = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
  5861. "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
  5862. "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
  5863. "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
  5864. "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
  5865. "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
  5866. "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
  5867. "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
  5868. "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
  5869. "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
  5870. "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
  5871. "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
  5872. "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
  5873. "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
  5874. "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
  5875. "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
  5876. "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
  5877. "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
  5878. "\x7E\x13\x06\x82\x08\x17\xA4\x35"
  5879. "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
  5880. "\xA3\x05\x38\x95\x20\x1A\x47\x04"
  5881. "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
  5882. "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
  5883. "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
  5884. "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
  5885. "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
  5886. .rlen = 208,
  5887. }
  5888. };
  5889. static struct aead_testvec aes_gcm_rfc4106_dec_tv_template[] = {
  5890. { /* Generated using Crypto++ */
  5891. .key = zeroed_string,
  5892. .klen = 20,
  5893. .iv = zeroed_string,
  5894. .input = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
  5895. "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
  5896. "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
  5897. "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
  5898. .ilen = 32,
  5899. .assoc = zeroed_string,
  5900. .alen = 8,
  5901. .result = zeroed_string,
  5902. .rlen = 16,
  5903. },{
  5904. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5905. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5906. "\x00\x00\x00\x00",
  5907. .klen = 20,
  5908. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
  5909. "\x00\x00\x00\x00",
  5910. .input = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
  5911. "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
  5912. "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
  5913. "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
  5914. .ilen = 32,
  5915. .assoc = zeroed_string,
  5916. .alen = 8,
  5917. .result = zeroed_string,
  5918. .rlen = 16,
  5919. }, {
  5920. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5921. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5922. "\x00\x00\x00\x00",
  5923. .klen = 20,
  5924. .iv = zeroed_string,
  5925. .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
  5926. "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
  5927. "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
  5928. "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
  5929. .ilen = 32,
  5930. .assoc = zeroed_string,
  5931. .alen = 8,
  5932. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  5933. "\x01\x01\x01\x01\x01\x01\x01\x01",
  5934. .rlen = 16,
  5935. }, {
  5936. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5937. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5938. "\x00\x00\x00\x00",
  5939. .klen = 20,
  5940. .iv = zeroed_string,
  5941. .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
  5942. "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
  5943. "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
  5944. "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
  5945. .ilen = 32,
  5946. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
  5947. .alen = 8,
  5948. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  5949. "\x01\x01\x01\x01\x01\x01\x01\x01",
  5950. .rlen = 16,
  5951. }, {
  5952. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5953. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5954. "\x00\x00\x00\x00",
  5955. .klen = 20,
  5956. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
  5957. "\x00\x00\x00\x00",
  5958. .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
  5959. "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
  5960. "\x64\x50\xF9\x32\x13\xFB\x74\x61"
  5961. "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
  5962. .ilen = 32,
  5963. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
  5964. .alen = 8,
  5965. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  5966. "\x01\x01\x01\x01\x01\x01\x01\x01",
  5967. .rlen = 16,
  5968. }, {
  5969. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5970. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5971. "\x00\x00\x00\x00",
  5972. .klen = 20,
  5973. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
  5974. "\x00\x00\x00\x00",
  5975. .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
  5976. "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
  5977. "\x98\x14\xA1\x42\x37\x80\xFD\x90"
  5978. "\x68\x12\x01\xA8\x91\x89\xB9\x83"
  5979. "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
  5980. "\x94\x5F\x18\x12\xBA\x27\x09\x39"
  5981. "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
  5982. "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
  5983. "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
  5984. "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
  5985. .ilen = 80,
  5986. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
  5987. .alen = 8,
  5988. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  5989. "\x01\x01\x01\x01\x01\x01\x01\x01"
  5990. "\x01\x01\x01\x01\x01\x01\x01\x01"
  5991. "\x01\x01\x01\x01\x01\x01\x01\x01"
  5992. "\x01\x01\x01\x01\x01\x01\x01\x01"
  5993. "\x01\x01\x01\x01\x01\x01\x01\x01"
  5994. "\x01\x01\x01\x01\x01\x01\x01\x01"
  5995. "\x01\x01\x01\x01\x01\x01\x01\x01",
  5996. .rlen = 64,
  5997. }, {
  5998. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5999. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6000. "\x00\x00\x00\x00",
  6001. .klen = 20,
  6002. .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef"
  6003. "\x00\x00\x00\x00",
  6004. .input = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
  6005. "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
  6006. "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
  6007. "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
  6008. "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
  6009. "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
  6010. "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
  6011. "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
  6012. "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
  6013. "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
  6014. "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
  6015. "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
  6016. "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
  6017. "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
  6018. "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
  6019. "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
  6020. "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
  6021. "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
  6022. "\x7E\x13\x06\x82\x08\x17\xA4\x35"
  6023. "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
  6024. "\xA3\x05\x38\x95\x20\x1A\x47\x04"
  6025. "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
  6026. "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
  6027. "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
  6028. "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
  6029. "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
  6030. .ilen = 208,
  6031. .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  6032. "\xaa\xaa\xaa\xaa",
  6033. .alen = 12,
  6034. .result = "\xff\xff\xff\xff\xff\xff\xff\xff"
  6035. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6036. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6037. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6038. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6039. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6040. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6041. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6042. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6043. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6044. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6045. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6046. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6047. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6048. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6049. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6050. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6051. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6052. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6053. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6054. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6055. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6056. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6057. "\xff\xff\xff\xff\xff\xff\xff\xff",
  6058. .rlen = 192,
  6059. }
  6060. };
  6061. static struct aead_testvec aes_ccm_enc_tv_template[] = {
  6062. { /* From RFC 3610 */
  6063. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6064. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  6065. .klen = 16,
  6066. .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
  6067. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  6068. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  6069. .alen = 8,
  6070. .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6071. "\x10\x11\x12\x13\x14\x15\x16\x17"
  6072. "\x18\x19\x1a\x1b\x1c\x1d\x1e",
  6073. .ilen = 23,
  6074. .result = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
  6075. "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
  6076. "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
  6077. "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
  6078. .rlen = 31,
  6079. }, {
  6080. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6081. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  6082. .klen = 16,
  6083. .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
  6084. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  6085. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6086. "\x08\x09\x0a\x0b",
  6087. .alen = 12,
  6088. .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  6089. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  6090. "\x1c\x1d\x1e\x1f",
  6091. .ilen = 20,
  6092. .result = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
  6093. "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
  6094. "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
  6095. "\x7d\x9c\x2d\x93",
  6096. .rlen = 28,
  6097. }, {
  6098. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6099. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  6100. .klen = 16,
  6101. .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
  6102. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  6103. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  6104. .alen = 8,
  6105. .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6106. "\x10\x11\x12\x13\x14\x15\x16\x17"
  6107. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  6108. "\x20",
  6109. .ilen = 25,
  6110. .result = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
  6111. "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
  6112. "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
  6113. "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
  6114. "\x7e\x5f\x4e",
  6115. .rlen = 35,
  6116. }, {
  6117. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6118. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  6119. .klen = 16,
  6120. .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
  6121. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  6122. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6123. "\x08\x09\x0a\x0b",
  6124. .alen = 12,
  6125. .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  6126. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  6127. "\x1c\x1d\x1e",
  6128. .ilen = 19,
  6129. .result = "\x07\x34\x25\x94\x15\x77\x85\x15"
  6130. "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
  6131. "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
  6132. "\x4d\x99\x99\x88\xdd",
  6133. .rlen = 29,
  6134. }, {
  6135. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  6136. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  6137. .klen = 16,
  6138. .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
  6139. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  6140. .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
  6141. .alen = 8,
  6142. .input = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
  6143. "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
  6144. "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
  6145. .ilen = 24,
  6146. .result = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
  6147. "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
  6148. "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
  6149. "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
  6150. .rlen = 32,
  6151. }, {
  6152. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  6153. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  6154. .klen = 16,
  6155. .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
  6156. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  6157. .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
  6158. "\x20\xea\x60\xc0",
  6159. .alen = 12,
  6160. .input = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
  6161. "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
  6162. "\x3a\x80\x3b\xa8\x7f",
  6163. .ilen = 21,
  6164. .result = "\x00\x97\x69\xec\xab\xdf\x48\x62"
  6165. "\x55\x94\xc5\x92\x51\xe6\x03\x57"
  6166. "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
  6167. "\x5a\xe0\x70\x45\x51",
  6168. .rlen = 29,
  6169. }, {
  6170. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  6171. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  6172. .klen = 16,
  6173. .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
  6174. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  6175. .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
  6176. .alen = 8,
  6177. .input = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
  6178. "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
  6179. "\x98\x09\xd6\x7d\xbe\xdd\x18",
  6180. .ilen = 23,
  6181. .result = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
  6182. "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
  6183. "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
  6184. "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
  6185. "\xba",
  6186. .rlen = 33,
  6187. },
  6188. };
  6189. static struct aead_testvec aes_ccm_dec_tv_template[] = {
  6190. { /* From RFC 3610 */
  6191. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6192. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  6193. .klen = 16,
  6194. .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
  6195. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  6196. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  6197. .alen = 8,
  6198. .input = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
  6199. "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
  6200. "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
  6201. "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
  6202. .ilen = 31,
  6203. .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6204. "\x10\x11\x12\x13\x14\x15\x16\x17"
  6205. "\x18\x19\x1a\x1b\x1c\x1d\x1e",
  6206. .rlen = 23,
  6207. }, {
  6208. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6209. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  6210. .klen = 16,
  6211. .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
  6212. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  6213. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6214. "\x08\x09\x0a\x0b",
  6215. .alen = 12,
  6216. .input = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
  6217. "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
  6218. "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
  6219. "\x7d\x9c\x2d\x93",
  6220. .ilen = 28,
  6221. .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  6222. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  6223. "\x1c\x1d\x1e\x1f",
  6224. .rlen = 20,
  6225. }, {
  6226. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6227. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  6228. .klen = 16,
  6229. .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
  6230. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  6231. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  6232. .alen = 8,
  6233. .input = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
  6234. "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
  6235. "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
  6236. "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
  6237. "\x7e\x5f\x4e",
  6238. .ilen = 35,
  6239. .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6240. "\x10\x11\x12\x13\x14\x15\x16\x17"
  6241. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  6242. "\x20",
  6243. .rlen = 25,
  6244. }, {
  6245. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6246. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  6247. .klen = 16,
  6248. .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
  6249. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  6250. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6251. "\x08\x09\x0a\x0b",
  6252. .alen = 12,
  6253. .input = "\x07\x34\x25\x94\x15\x77\x85\x15"
  6254. "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
  6255. "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
  6256. "\x4d\x99\x99\x88\xdd",
  6257. .ilen = 29,
  6258. .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  6259. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  6260. "\x1c\x1d\x1e",
  6261. .rlen = 19,
  6262. }, {
  6263. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  6264. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  6265. .klen = 16,
  6266. .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
  6267. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  6268. .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
  6269. .alen = 8,
  6270. .input = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
  6271. "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
  6272. "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
  6273. "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
  6274. .ilen = 32,
  6275. .result = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
  6276. "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
  6277. "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
  6278. .rlen = 24,
  6279. }, {
  6280. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  6281. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  6282. .klen = 16,
  6283. .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
  6284. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  6285. .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
  6286. "\x20\xea\x60\xc0",
  6287. .alen = 12,
  6288. .input = "\x00\x97\x69\xec\xab\xdf\x48\x62"
  6289. "\x55\x94\xc5\x92\x51\xe6\x03\x57"
  6290. "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
  6291. "\x5a\xe0\x70\x45\x51",
  6292. .ilen = 29,
  6293. .result = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
  6294. "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
  6295. "\x3a\x80\x3b\xa8\x7f",
  6296. .rlen = 21,
  6297. }, {
  6298. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  6299. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  6300. .klen = 16,
  6301. .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
  6302. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  6303. .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
  6304. .alen = 8,
  6305. .input = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
  6306. "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
  6307. "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
  6308. "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
  6309. "\xba",
  6310. .ilen = 33,
  6311. .result = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
  6312. "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
  6313. "\x98\x09\xd6\x7d\xbe\xdd\x18",
  6314. .rlen = 23,
  6315. },
  6316. };
  6317. /*
  6318. * rfc4309 refers to section 8 of rfc3610 for test vectors, but they all
  6319. * use a 13-byte nonce, we only support an 11-byte nonce. Similarly, all of
  6320. * Special Publication 800-38C's test vectors also use nonce lengths our
  6321. * implementation doesn't support. The following are taken from fips cavs
  6322. * fax files on hand at Red Hat.
  6323. *
  6324. * nb: actual key lengths are (klen - 3), the last 3 bytes are actually
  6325. * part of the nonce which combine w/the iv, but need to be input this way.
  6326. */
  6327. static struct aead_testvec aes_ccm_rfc4309_enc_tv_template[] = {
  6328. {
  6329. .key = "\x83\xac\x54\x66\xc2\xeb\xe5\x05"
  6330. "\x2e\x01\xd1\xfc\x5d\x82\x66\x2e"
  6331. "\x96\xac\x59",
  6332. .klen = 19,
  6333. .iv = "\x30\x07\xa1\xe2\xa2\xc7\x55\x24",
  6334. .alen = 0,
  6335. .input = "\x19\xc8\x81\xf6\xe9\x86\xff\x93"
  6336. "\x0b\x78\x67\xe5\xbb\xb7\xfc\x6e"
  6337. "\x83\x77\xb3\xa6\x0c\x8c\x9f\x9c"
  6338. "\x35\x2e\xad\xe0\x62\xf9\x91\xa1",
  6339. .ilen = 32,
  6340. .result = "\xab\x6f\xe1\x69\x1d\x19\x99\xa8"
  6341. "\x92\xa0\xc4\x6f\x7e\xe2\x8b\xb1"
  6342. "\x70\xbb\x8c\xa6\x4c\x6e\x97\x8a"
  6343. "\x57\x2b\xbe\x5d\x98\xa6\xb1\x32"
  6344. "\xda\x24\xea\xd9\xa1\x39\x98\xfd"
  6345. "\xa4\xbe\xd9\xf2\x1a\x6d\x22\xa8",
  6346. .rlen = 48,
  6347. }, {
  6348. .key = "\x1e\x2c\x7e\x01\x41\x9a\xef\xc0"
  6349. "\x0d\x58\x96\x6e\x5c\xa2\x4b\xd3"
  6350. "\x4f\xa3\x19",
  6351. .klen = 19,
  6352. .iv = "\xd3\x01\x5a\xd8\x30\x60\x15\x56",
  6353. .assoc = "\xda\xe6\x28\x9c\x45\x2d\xfd\x63"
  6354. "\x5e\xda\x4c\xb6\xe6\xfc\xf9\xb7"
  6355. "\x0c\x56\xcb\xe4\xe0\x05\x7a\xe1"
  6356. "\x0a\x63\x09\x78\xbc\x2c\x55\xde",
  6357. .alen = 32,
  6358. .input = "\x87\xa3\x36\xfd\x96\xb3\x93\x78"
  6359. "\xa9\x28\x63\xba\x12\xa3\x14\x85"
  6360. "\x57\x1e\x06\xc9\x7b\x21\xef\x76"
  6361. "\x7f\x38\x7e\x8e\x29\xa4\x3e\x7e",
  6362. .ilen = 32,
  6363. .result = "\x8a\x1e\x11\xf0\x02\x6b\xe2\x19"
  6364. "\xfc\x70\xc4\x6d\x8e\xb7\x99\xab"
  6365. "\xc5\x4b\xa2\xac\xd3\xf3\x48\xff"
  6366. "\x3b\xb5\xce\x53\xef\xde\xbb\x02"
  6367. "\xa9\x86\x15\x6c\x13\xfe\xda\x0a"
  6368. "\x22\xb8\x29\x3d\xd8\x39\x9a\x23",
  6369. .rlen = 48,
  6370. }, {
  6371. .key = "\xf4\x6b\xc2\x75\x62\xfe\xb4\xe1"
  6372. "\xa3\xf0\xff\xdd\x4e\x4b\x12\x75"
  6373. "\x53\x14\x73\x66\x8d\x88\xf6\x80"
  6374. "\xa0\x20\x35",
  6375. .klen = 27,
  6376. .iv = "\x26\xf2\x21\x8d\x50\x20\xda\xe2",
  6377. .assoc = "\x5b\x9e\x13\x67\x02\x5e\xef\xc1"
  6378. "\x6c\xf9\xd7\x1e\x52\x8f\x7a\x47"
  6379. "\xe9\xd4\xcf\x20\x14\x6e\xf0\x2d"
  6380. "\xd8\x9e\x2b\x56\x10\x23\x56\xe7",
  6381. .alen = 32,
  6382. .ilen = 0,
  6383. .result = "\x36\xea\x7a\x70\x08\xdc\x6a\xbc"
  6384. "\xad\x0c\x7a\x63\xf6\x61\xfd\x9b",
  6385. .rlen = 16,
  6386. }, {
  6387. .key = "\x56\xdf\x5c\x8f\x26\x3f\x0e\x42"
  6388. "\xef\x7a\xd3\xce\xfc\x84\x60\x62"
  6389. "\xca\xb4\x40\xaf\x5f\xc9\xc9\x01"
  6390. "\xd6\x3c\x8c",
  6391. .klen = 27,
  6392. .iv = "\x86\x84\xb6\xcd\xef\x09\x2e\x94",
  6393. .assoc = "\x02\x65\x78\x3c\xe9\x21\x30\x91"
  6394. "\xb1\xb9\xda\x76\x9a\x78\x6d\x95"
  6395. "\xf2\x88\x32\xa3\xf2\x50\xcb\x4c"
  6396. "\xe3\x00\x73\x69\x84\x69\x87\x79",
  6397. .alen = 32,
  6398. .input = "\x9f\xd2\x02\x4b\x52\x49\x31\x3c"
  6399. "\x43\x69\x3a\x2d\x8e\x70\xad\x7e"
  6400. "\xe0\xe5\x46\x09\x80\x89\x13\xb2"
  6401. "\x8c\x8b\xd9\x3f\x86\xfb\xb5\x6b",
  6402. .ilen = 32,
  6403. .result = "\x39\xdf\x7c\x3c\x5a\x29\xb9\x62"
  6404. "\x5d\x51\xc2\x16\xd8\xbd\x06\x9f"
  6405. "\x9b\x6a\x09\x70\xc1\x51\x83\xc2"
  6406. "\x66\x88\x1d\x4f\x9a\xda\xe0\x1e"
  6407. "\xc7\x79\x11\x58\xe5\x6b\x20\x40"
  6408. "\x7a\xea\x46\x42\x8b\xe4\x6f\xe1",
  6409. .rlen = 48,
  6410. }, {
  6411. .key = "\xe0\x8d\x99\x71\x60\xd7\x97\x1a"
  6412. "\xbd\x01\x99\xd5\x8a\xdf\x71\x3a"
  6413. "\xd3\xdf\x24\x4b\x5e\x3d\x4b\x4e"
  6414. "\x30\x7a\xb9\xd8\x53\x0a\x5e\x2b"
  6415. "\x1e\x29\x91",
  6416. .klen = 35,
  6417. .iv = "\xad\x8e\xc1\x53\x0a\xcf\x2d\xbe",
  6418. .assoc = "\x19\xb6\x1f\x57\xc4\xf3\xf0\x8b"
  6419. "\x78\x2b\x94\x02\x29\x0f\x42\x27"
  6420. "\x6b\x75\xcb\x98\x34\x08\x7e\x79"
  6421. "\xe4\x3e\x49\x0d\x84\x8b\x22\x87",
  6422. .alen = 32,
  6423. .input = "\xe1\xd9\xd8\x13\xeb\x3a\x75\x3f"
  6424. "\x9d\xbd\x5f\x66\xbe\xdc\xbb\x66"
  6425. "\xbf\x17\x99\x62\x4a\x39\x27\x1f"
  6426. "\x1d\xdc\x24\xae\x19\x2f\x98\x4c",
  6427. .ilen = 32,
  6428. .result = "\x19\xb8\x61\x33\x45\x2b\x43\x96"
  6429. "\x6f\x51\xd0\x20\x30\x7d\x9b\xc6"
  6430. "\x26\x3d\xf8\xc9\x65\x16\xa8\x9f"
  6431. "\xf0\x62\x17\x34\xf2\x1e\x8d\x75"
  6432. "\x4e\x13\xcc\xc0\xc3\x2a\x54\x2d",
  6433. .rlen = 40,
  6434. }, {
  6435. .key = "\x7c\xc8\x18\x3b\x8d\x99\xe0\x7c"
  6436. "\x45\x41\xb8\xbd\x5c\xa7\xc2\x32"
  6437. "\x8a\xb8\x02\x59\xa4\xfe\xa9\x2c"
  6438. "\x09\x75\x9a\x9b\x3c\x9b\x27\x39"
  6439. "\xf9\xd9\x4e",
  6440. .klen = 35,
  6441. .iv = "\x63\xb5\x3d\x9d\x43\xf6\x1e\x50",
  6442. .assoc = "\x57\xf5\x6b\x8b\x57\x5c\x3d\x3b"
  6443. "\x13\x02\x01\x0c\x83\x4c\x96\x35"
  6444. "\x8e\xd6\x39\xcf\x7d\x14\x9b\x94"
  6445. "\xb0\x39\x36\xe6\x8f\x57\xe0\x13",
  6446. .alen = 32,
  6447. .input = "\x3b\x6c\x29\x36\xb6\xef\x07\xa6"
  6448. "\x83\x72\x07\x4f\xcf\xfa\x66\x89"
  6449. "\x5f\xca\xb1\xba\xd5\x8f\x2c\x27"
  6450. "\x30\xdb\x75\x09\x93\xd4\x65\xe4",
  6451. .ilen = 32,
  6452. .result = "\xb0\x88\x5a\x33\xaa\xe5\xc7\x1d"
  6453. "\x85\x23\xc7\xc6\x2f\xf4\x1e\x3d"
  6454. "\xcc\x63\x44\x25\x07\x78\x4f\x9e"
  6455. "\x96\xb8\x88\xeb\xbc\x48\x1f\x06"
  6456. "\x39\xaf\x39\xac\xd8\x4a\x80\x39"
  6457. "\x7b\x72\x8a\xf7",
  6458. .rlen = 44,
  6459. }, {
  6460. .key = "\xab\xd0\xe9\x33\x07\x26\xe5\x83"
  6461. "\x8c\x76\x95\xd4\xb6\xdc\xf3\x46"
  6462. "\xf9\x8f\xad\xe3\x02\x13\x83\x77"
  6463. "\x3f\xb0\xf1\xa1\xa1\x22\x0f\x2b"
  6464. "\x24\xa7\x8b",
  6465. .klen = 35,
  6466. .iv = "\x07\xcb\xcc\x0e\xe6\x33\xbf\xf5",
  6467. .assoc = "\xd4\xdb\x30\x1d\x03\xfe\xfd\x5f"
  6468. "\x87\xd4\x8c\xb6\xb6\xf1\x7a\x5d"
  6469. "\xab\x90\x65\x8d\x8e\xca\x4d\x4f"
  6470. "\x16\x0c\x40\x90\x4b\xc7\x36\x73",
  6471. .alen = 32,
  6472. .input = "\xf5\xc6\x7d\x48\xc1\xb7\xe6\x92"
  6473. "\x97\x5a\xca\xc4\xa9\x6d\xf9\x3d"
  6474. "\x6c\xde\xbc\xf1\x90\xea\x6a\xb2"
  6475. "\x35\x86\x36\xaf\x5c\xfe\x4b\x3a",
  6476. .ilen = 32,
  6477. .result = "\x83\x6f\x40\x87\x72\xcf\xc1\x13"
  6478. "\xef\xbb\x80\x21\x04\x6c\x58\x09"
  6479. "\x07\x1b\xfc\xdf\xc0\x3f\x5b\xc7"
  6480. "\xe0\x79\xa8\x6e\x71\x7c\x3f\xcf"
  6481. "\x5c\xda\xb2\x33\xe5\x13\xe2\x0d"
  6482. "\x74\xd1\xef\xb5\x0f\x3a\xb5\xf8",
  6483. .rlen = 48,
  6484. },
  6485. };
  6486. static struct aead_testvec aes_ccm_rfc4309_dec_tv_template[] = {
  6487. {
  6488. .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
  6489. "\xff\x80\x2e\x48\x7d\x82\xf8\xb9"
  6490. "\xc6\xfb\x7d",
  6491. .klen = 19,
  6492. .iv = "\x80\x0d\x13\xab\xd8\xa6\xb2\xd8",
  6493. .alen = 0,
  6494. .input = "\xd5\xe8\x93\x9f\xc7\x89\x2e\x2b",
  6495. .ilen = 8,
  6496. .result = "\x00",
  6497. .rlen = 0,
  6498. .novrfy = 1,
  6499. }, {
  6500. .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
  6501. "\xff\x80\x2e\x48\x7d\x82\xf8\xb9"
  6502. "\xaf\x94\x87",
  6503. .klen = 19,
  6504. .iv = "\x78\x35\x82\x81\x7f\x88\x94\x68",
  6505. .alen = 0,
  6506. .input = "\x41\x3c\xb8\x87\x73\xcb\xf3\xf3",
  6507. .ilen = 8,
  6508. .result = "\x00",
  6509. .rlen = 0,
  6510. }, {
  6511. .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
  6512. "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8"
  6513. "\xc6\xfb\x7d",
  6514. .klen = 19,
  6515. .iv = "\x80\x0d\x13\xab\xd8\xa6\xb2\xd8",
  6516. .assoc = "\xf3\x94\x87\x78\x35\x82\x81\x7f"
  6517. "\x88\x94\x68\xb1\x78\x6b\x2b\xd6"
  6518. "\x04\x1f\x4e\xed\x78\xd5\x33\x66"
  6519. "\xd8\x94\x99\x91\x81\x54\x62\x57",
  6520. .alen = 32,
  6521. .input = "\xf0\x7c\x29\x02\xae\x1c\x2f\x55"
  6522. "\xd0\xd1\x3d\x1a\xa3\x6d\xe4\x0a"
  6523. "\x86\xb0\x87\x6b\x62\x33\x8c\x34"
  6524. "\xce\xab\x57\xcc\x79\x0b\xe0\x6f"
  6525. "\x5c\x3e\x48\x1f\x6c\x46\xf7\x51"
  6526. "\x8b\x84\x83\x2a\xc1\x05\xb8\xc5",
  6527. .ilen = 48,
  6528. .result = "\x50\x82\x3e\x07\xe2\x1e\xb6\xfb"
  6529. "\x33\xe4\x73\xce\xd2\xfb\x95\x79"
  6530. "\xe8\xb4\xb5\x77\x11\x10\x62\x6f"
  6531. "\x6a\x82\xd1\x13\xec\xf5\xd0\x48",
  6532. .rlen = 32,
  6533. .novrfy = 1,
  6534. }, {
  6535. .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
  6536. "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8"
  6537. "\x05\xe0\xc9",
  6538. .klen = 19,
  6539. .iv = "\x0f\xed\x34\xea\x97\xd4\x3b\xdf",
  6540. .assoc = "\x49\x5c\x50\x1f\x1d\x94\xcc\x81"
  6541. "\xba\xb7\xb6\x03\xaf\xa5\xc1\xa1"
  6542. "\xd8\x5c\x42\x68\xe0\x6c\xda\x89"
  6543. "\x05\xac\x56\xac\x1b\x2a\xd3\x86",
  6544. .alen = 32,
  6545. .input = "\x39\xbe\x7d\x15\x62\x77\xf3\x3c"
  6546. "\xad\x83\x52\x6d\x71\x03\x25\x1c"
  6547. "\xed\x81\x3a\x9a\x16\x7d\x19\x80"
  6548. "\x72\x04\x72\xd0\xf6\xff\x05\x0f"
  6549. "\xb7\x14\x30\x00\x32\x9e\xa0\xa6"
  6550. "\x9e\x5a\x18\xa1\xb8\xfe\xdb\xd3",
  6551. .ilen = 48,
  6552. .result = "\x75\x05\xbe\xc2\xd9\x1e\xde\x60"
  6553. "\x47\x3d\x8c\x7d\xbd\xb5\xd9\xb7"
  6554. "\xf2\xae\x61\x05\x8f\x82\x24\x3f"
  6555. "\x9c\x67\x91\xe1\x38\x4f\xe4\x0c",
  6556. .rlen = 32,
  6557. }, {
  6558. .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
  6559. "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
  6560. "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
  6561. "\xee\x49\x83",
  6562. .klen = 27,
  6563. .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e",
  6564. .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
  6565. "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
  6566. "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
  6567. "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
  6568. .alen = 32,
  6569. .input = "\x71\x99\xfa\xf4\x44\x12\x68\x9b",
  6570. .ilen = 8,
  6571. .result = "\x00",
  6572. .rlen = 0,
  6573. }, {
  6574. .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
  6575. "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
  6576. "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
  6577. "\xee\x49\x83",
  6578. .klen = 27,
  6579. .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e",
  6580. .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
  6581. "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
  6582. "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
  6583. "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
  6584. .alen = 32,
  6585. .input = "\xfb\xe5\x5d\x34\xbe\xe5\xe8\xe7"
  6586. "\x5a\xef\x2f\xbf\x1f\x7f\xd4\xb2"
  6587. "\x66\xca\x61\x1e\x96\x7a\x61\xb3"
  6588. "\x1c\x16\x45\x52\xba\x04\x9c\x9f"
  6589. "\xb1\xd2\x40\xbc\x52\x7c\x6f\xb1",
  6590. .ilen = 40,
  6591. .result = "\x85\x34\x66\x42\xc8\x92\x0f\x36"
  6592. "\x58\xe0\x6b\x91\x3c\x98\x5c\xbb"
  6593. "\x0a\x85\xcc\x02\xad\x7a\x96\xe9"
  6594. "\x65\x43\xa4\xc3\x0f\xdc\x55\x81",
  6595. .rlen = 32,
  6596. }, {
  6597. .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
  6598. "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
  6599. "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
  6600. "\xd1\xfc\x57",
  6601. .klen = 27,
  6602. .iv = "\x9c\xfe\xb8\x9c\xad\x71\xaa\x1f",
  6603. .assoc = "\x86\x67\xa5\xa9\x14\x5f\x0d\xc6"
  6604. "\xff\x14\xc7\x44\xbf\x6c\x3a\xc3"
  6605. "\xff\xb6\x81\xbd\xe2\xd5\x06\xc7"
  6606. "\x3c\xa1\x52\x13\x03\x8a\x23\x3a",
  6607. .alen = 32,
  6608. .input = "\x3f\x66\xb0\x9d\xe5\x4b\x38\x00"
  6609. "\xc6\x0e\x6e\xe5\xd6\x98\xa6\x37"
  6610. "\x8c\x26\x33\xc6\xb2\xa2\x17\xfa"
  6611. "\x64\x19\xc0\x30\xd7\xfc\x14\x6b"
  6612. "\xe3\x33\xc2\x04\xb0\x37\xbe\x3f"
  6613. "\xa9\xb4\x2d\x68\x03\xa3\x44\xef",
  6614. .ilen = 48,
  6615. .result = "\x02\x87\x4d\x28\x80\x6e\xb2\xed"
  6616. "\x99\x2a\xa8\xca\x04\x25\x45\x90"
  6617. "\x1d\xdd\x5a\xd9\xe4\xdb\x9c\x9c"
  6618. "\x49\xe9\x01\xfe\xa7\x80\x6d\x6b",
  6619. .rlen = 32,
  6620. .novrfy = 1,
  6621. }, {
  6622. .key = "\xa4\x4b\x54\x29\x0a\xb8\x6d\x01"
  6623. "\x5b\x80\x2a\xcf\x25\xc4\xb7\x5c"
  6624. "\x20\x2c\xad\x30\xc2\x2b\x41\xfb"
  6625. "\x0e\x85\xbc\x33\xad\x0f\x2b\xff"
  6626. "\xee\x49\x83",
  6627. .klen = 35,
  6628. .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e",
  6629. .alen = 0,
  6630. .input = "\x1f\xb8\x8f\xa3\xdd\x54\x00\xf2",
  6631. .ilen = 8,
  6632. .result = "\x00",
  6633. .rlen = 0,
  6634. }, {
  6635. .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
  6636. "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
  6637. "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
  6638. "\xae\x8f\x11\x4c\xc2\x9c\x4a\xbb"
  6639. "\x85\x34\x66",
  6640. .klen = 35,
  6641. .iv = "\x42\xc8\x92\x0f\x36\x58\xe0\x6b",
  6642. .alen = 0,
  6643. .input = "\x48\x01\x5e\x02\x24\x04\x66\x47"
  6644. "\xa1\xea\x6f\xaf\xe8\xfc\xfb\xdd"
  6645. "\xa5\xa9\x87\x8d\x84\xee\x2e\x77"
  6646. "\xbb\x86\xb9\xf5\x5c\x6c\xff\xf6"
  6647. "\x72\xc3\x8e\xf7\x70\xb1\xb2\x07"
  6648. "\xbc\xa8\xa3\xbd\x83\x7c\x1d\x2a",
  6649. .ilen = 48,
  6650. .result = "\xdc\x56\xf2\x71\xb0\xb1\xa0\x6c"
  6651. "\xf0\x97\x3a\xfb\x6d\xe7\x32\x99"
  6652. "\x3e\xaf\x70\x5e\xb2\x4d\xea\x39"
  6653. "\x89\xd4\x75\x7a\x63\xb1\xda\x93",
  6654. .rlen = 32,
  6655. .novrfy = 1,
  6656. }, {
  6657. .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
  6658. "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
  6659. "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
  6660. "\x0d\x1a\x53\x3b\xb5\xe3\xf8\x8b"
  6661. "\xcf\x76\x3f",
  6662. .klen = 35,
  6663. .iv = "\xd9\x95\x75\x8f\x44\x89\x40\x7b",
  6664. .assoc = "\x8f\x86\x6c\x4d\x1d\xc5\x39\x88"
  6665. "\xc8\xf3\x5c\x52\x10\x63\x6f\x2b"
  6666. "\x8a\x2a\xc5\x6f\x30\x23\x58\x7b"
  6667. "\xfb\x36\x03\x11\xb4\xd9\xf2\xfe",
  6668. .alen = 32,
  6669. .input = "\x48\x58\xd6\xf3\xad\x63\x58\xbf"
  6670. "\xae\xc7\x5e\xae\x83\x8f\x7b\xe4"
  6671. "\x78\x5c\x4c\x67\x71\x89\x94\xbf"
  6672. "\x47\xf1\x63\x7e\x1c\x59\xbd\xc5"
  6673. "\x7f\x44\x0a\x0c\x01\x18\x07\x92"
  6674. "\xe1\xd3\x51\xce\x32\x6d\x0c\x5b",
  6675. .ilen = 48,
  6676. .result = "\xc2\x54\xc8\xde\x78\x87\x77\x40"
  6677. "\x49\x71\xe4\xb7\xe7\xcb\x76\x61"
  6678. "\x0a\x41\xb9\xe9\xc0\x76\x54\xab"
  6679. "\x04\x49\x3b\x19\x93\x57\x25\x5d",
  6680. .rlen = 32,
  6681. },
  6682. };
  6683. /*
  6684. * ANSI X9.31 Continuous Pseudo-Random Number Generator (AES mode)
  6685. * test vectors, taken from Appendix B.2.9 and B.2.10:
  6686. * http://csrc.nist.gov/groups/STM/cavp/documents/rng/RNGVS.pdf
  6687. * Only AES-128 is supported at this time.
  6688. */
  6689. #define ANSI_CPRNG_AES_TEST_VECTORS 6
  6690. static struct cprng_testvec ansi_cprng_aes_tv_template[] = {
  6691. {
  6692. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  6693. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  6694. .klen = 16,
  6695. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  6696. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xf9",
  6697. .dtlen = 16,
  6698. .v = "\x80\x00\x00\x00\x00\x00\x00\x00"
  6699. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6700. .vlen = 16,
  6701. .result = "\x59\x53\x1e\xd1\x3b\xb0\xc0\x55"
  6702. "\x84\x79\x66\x85\xc1\x2f\x76\x41",
  6703. .rlen = 16,
  6704. .loops = 1,
  6705. }, {
  6706. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  6707. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  6708. .klen = 16,
  6709. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  6710. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfa",
  6711. .dtlen = 16,
  6712. .v = "\xc0\x00\x00\x00\x00\x00\x00\x00"
  6713. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6714. .vlen = 16,
  6715. .result = "\x7c\x22\x2c\xf4\xca\x8f\xa2\x4c"
  6716. "\x1c\x9c\xb6\x41\xa9\xf3\x22\x0d",
  6717. .rlen = 16,
  6718. .loops = 1,
  6719. }, {
  6720. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  6721. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  6722. .klen = 16,
  6723. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  6724. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfb",
  6725. .dtlen = 16,
  6726. .v = "\xe0\x00\x00\x00\x00\x00\x00\x00"
  6727. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6728. .vlen = 16,
  6729. .result = "\x8a\xaa\x00\x39\x66\x67\x5b\xe5"
  6730. "\x29\x14\x28\x81\xa9\x4d\x4e\xc7",
  6731. .rlen = 16,
  6732. .loops = 1,
  6733. }, {
  6734. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  6735. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  6736. .klen = 16,
  6737. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  6738. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfc",
  6739. .dtlen = 16,
  6740. .v = "\xf0\x00\x00\x00\x00\x00\x00\x00"
  6741. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6742. .vlen = 16,
  6743. .result = "\x88\xdd\xa4\x56\x30\x24\x23\xe5"
  6744. "\xf6\x9d\xa5\x7e\x7b\x95\xc7\x3a",
  6745. .rlen = 16,
  6746. .loops = 1,
  6747. }, {
  6748. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  6749. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  6750. .klen = 16,
  6751. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  6752. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfd",
  6753. .dtlen = 16,
  6754. .v = "\xf8\x00\x00\x00\x00\x00\x00\x00"
  6755. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6756. .vlen = 16,
  6757. .result = "\x05\x25\x92\x46\x61\x79\xd2\xcb"
  6758. "\x78\xc4\x0b\x14\x0a\x5a\x9a\xc8",
  6759. .rlen = 16,
  6760. .loops = 1,
  6761. }, { /* Monte Carlo Test */
  6762. .key = "\x9f\x5b\x51\x20\x0b\xf3\x34\xb5"
  6763. "\xd8\x2b\xe8\xc3\x72\x55\xc8\x48",
  6764. .klen = 16,
  6765. .dt = "\x63\x76\xbb\xe5\x29\x02\xba\x3b"
  6766. "\x67\xc9\x25\xfa\x70\x1f\x11\xac",
  6767. .dtlen = 16,
  6768. .v = "\x57\x2c\x8e\x76\x87\x26\x47\x97"
  6769. "\x7e\x74\xfb\xdd\xc4\x95\x01\xd1",
  6770. .vlen = 16,
  6771. .result = "\x48\xe9\xbd\x0d\x06\xee\x18\xfb"
  6772. "\xe4\x57\x90\xd5\xc3\xfc\x9b\x73",
  6773. .rlen = 16,
  6774. .loops = 10000,
  6775. },
  6776. };
  6777. /* Cast5 test vectors from RFC 2144 */
  6778. #define CAST5_ENC_TEST_VECTORS 3
  6779. #define CAST5_DEC_TEST_VECTORS 3
  6780. static struct cipher_testvec cast5_enc_tv_template[] = {
  6781. {
  6782. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  6783. "\x23\x45\x67\x89\x34\x56\x78\x9a",
  6784. .klen = 16,
  6785. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6786. .ilen = 8,
  6787. .result = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
  6788. .rlen = 8,
  6789. }, {
  6790. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  6791. "\x23\x45",
  6792. .klen = 10,
  6793. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6794. .ilen = 8,
  6795. .result = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
  6796. .rlen = 8,
  6797. }, {
  6798. .key = "\x01\x23\x45\x67\x12",
  6799. .klen = 5,
  6800. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6801. .ilen = 8,
  6802. .result = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
  6803. .rlen = 8,
  6804. },
  6805. };
  6806. static struct cipher_testvec cast5_dec_tv_template[] = {
  6807. {
  6808. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  6809. "\x23\x45\x67\x89\x34\x56\x78\x9a",
  6810. .klen = 16,
  6811. .input = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
  6812. .ilen = 8,
  6813. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6814. .rlen = 8,
  6815. }, {
  6816. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  6817. "\x23\x45",
  6818. .klen = 10,
  6819. .input = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
  6820. .ilen = 8,
  6821. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6822. .rlen = 8,
  6823. }, {
  6824. .key = "\x01\x23\x45\x67\x12",
  6825. .klen = 5,
  6826. .input = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
  6827. .ilen = 8,
  6828. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6829. .rlen = 8,
  6830. },
  6831. };
  6832. /*
  6833. * ARC4 test vectors from OpenSSL
  6834. */
  6835. #define ARC4_ENC_TEST_VECTORS 7
  6836. #define ARC4_DEC_TEST_VECTORS 7
  6837. static struct cipher_testvec arc4_enc_tv_template[] = {
  6838. {
  6839. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6840. .klen = 8,
  6841. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6842. .ilen = 8,
  6843. .result = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
  6844. .rlen = 8,
  6845. }, {
  6846. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6847. .klen = 8,
  6848. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6849. .ilen = 8,
  6850. .result = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
  6851. .rlen = 8,
  6852. }, {
  6853. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6854. .klen = 8,
  6855. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6856. .ilen = 8,
  6857. .result = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
  6858. .rlen = 8,
  6859. }, {
  6860. .key = "\xef\x01\x23\x45",
  6861. .klen = 4,
  6862. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6863. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6864. "\x00\x00\x00\x00",
  6865. .ilen = 20,
  6866. .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  6867. "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
  6868. "\x36\xb6\x78\x58",
  6869. .rlen = 20,
  6870. }, {
  6871. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6872. .klen = 8,
  6873. .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  6874. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  6875. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  6876. "\x12\x34\x56\x78",
  6877. .ilen = 28,
  6878. .result = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
  6879. "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
  6880. "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
  6881. "\x40\x01\x1e\xcf",
  6882. .rlen = 28,
  6883. }, {
  6884. .key = "\xef\x01\x23\x45",
  6885. .klen = 4,
  6886. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6887. "\x00\x00",
  6888. .ilen = 10,
  6889. .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  6890. "\xbd\x61",
  6891. .rlen = 10,
  6892. }, {
  6893. .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
  6894. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6895. .klen = 16,
  6896. .input = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
  6897. .ilen = 8,
  6898. .result = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
  6899. .rlen = 8,
  6900. },
  6901. };
  6902. static struct cipher_testvec arc4_dec_tv_template[] = {
  6903. {
  6904. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6905. .klen = 8,
  6906. .input = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
  6907. .ilen = 8,
  6908. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6909. .rlen = 8,
  6910. }, {
  6911. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6912. .klen = 8,
  6913. .input = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
  6914. .ilen = 8,
  6915. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6916. .rlen = 8,
  6917. }, {
  6918. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6919. .klen = 8,
  6920. .input = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
  6921. .ilen = 8,
  6922. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6923. .rlen = 8,
  6924. }, {
  6925. .key = "\xef\x01\x23\x45",
  6926. .klen = 4,
  6927. .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  6928. "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
  6929. "\x36\xb6\x78\x58",
  6930. .ilen = 20,
  6931. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6932. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6933. "\x00\x00\x00\x00",
  6934. .rlen = 20,
  6935. }, {
  6936. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6937. .klen = 8,
  6938. .input = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
  6939. "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
  6940. "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
  6941. "\x40\x01\x1e\xcf",
  6942. .ilen = 28,
  6943. .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  6944. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  6945. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  6946. "\x12\x34\x56\x78",
  6947. .rlen = 28,
  6948. }, {
  6949. .key = "\xef\x01\x23\x45",
  6950. .klen = 4,
  6951. .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  6952. "\xbd\x61",
  6953. .ilen = 10,
  6954. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6955. "\x00\x00",
  6956. .rlen = 10,
  6957. }, {
  6958. .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
  6959. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6960. .klen = 16,
  6961. .input = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
  6962. .ilen = 8,
  6963. .result = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
  6964. .rlen = 8,
  6965. },
  6966. };
  6967. /*
  6968. * TEA test vectors
  6969. */
  6970. #define TEA_ENC_TEST_VECTORS 4
  6971. #define TEA_DEC_TEST_VECTORS 4
  6972. static struct cipher_testvec tea_enc_tv_template[] = {
  6973. {
  6974. .key = zeroed_string,
  6975. .klen = 16,
  6976. .input = zeroed_string,
  6977. .ilen = 8,
  6978. .result = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
  6979. .rlen = 8,
  6980. }, {
  6981. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  6982. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  6983. .klen = 16,
  6984. .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  6985. .ilen = 8,
  6986. .result = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
  6987. .rlen = 8,
  6988. }, {
  6989. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  6990. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  6991. .klen = 16,
  6992. .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  6993. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  6994. .ilen = 16,
  6995. .result = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
  6996. "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
  6997. .rlen = 16,
  6998. }, {
  6999. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  7000. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  7001. .klen = 16,
  7002. .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
  7003. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  7004. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  7005. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  7006. .ilen = 32,
  7007. .result = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
  7008. "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
  7009. "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
  7010. "\x07\x89\x73\xc2\x45\x92\xc6\x90",
  7011. .rlen = 32,
  7012. }
  7013. };
  7014. static struct cipher_testvec tea_dec_tv_template[] = {
  7015. {
  7016. .key = zeroed_string,
  7017. .klen = 16,
  7018. .input = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
  7019. .ilen = 8,
  7020. .result = zeroed_string,
  7021. .rlen = 8,
  7022. }, {
  7023. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  7024. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  7025. .klen = 16,
  7026. .input = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
  7027. .ilen = 8,
  7028. .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  7029. .rlen = 8,
  7030. }, {
  7031. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  7032. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  7033. .klen = 16,
  7034. .input = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
  7035. "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
  7036. .ilen = 16,
  7037. .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  7038. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  7039. .rlen = 16,
  7040. }, {
  7041. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  7042. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  7043. .klen = 16,
  7044. .input = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
  7045. "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
  7046. "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
  7047. "\x07\x89\x73\xc2\x45\x92\xc6\x90",
  7048. .ilen = 32,
  7049. .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
  7050. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  7051. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  7052. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  7053. .rlen = 32,
  7054. }
  7055. };
  7056. /*
  7057. * XTEA test vectors
  7058. */
  7059. #define XTEA_ENC_TEST_VECTORS 4
  7060. #define XTEA_DEC_TEST_VECTORS 4
  7061. static struct cipher_testvec xtea_enc_tv_template[] = {
  7062. {
  7063. .key = zeroed_string,
  7064. .klen = 16,
  7065. .input = zeroed_string,
  7066. .ilen = 8,
  7067. .result = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
  7068. .rlen = 8,
  7069. }, {
  7070. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  7071. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  7072. .klen = 16,
  7073. .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  7074. .ilen = 8,
  7075. .result = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
  7076. .rlen = 8,
  7077. }, {
  7078. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  7079. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  7080. .klen = 16,
  7081. .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  7082. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  7083. .ilen = 16,
  7084. .result = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
  7085. "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
  7086. .rlen = 16,
  7087. }, {
  7088. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  7089. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  7090. .klen = 16,
  7091. .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
  7092. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  7093. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  7094. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  7095. .ilen = 32,
  7096. .result = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
  7097. "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
  7098. "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
  7099. "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
  7100. .rlen = 32,
  7101. }
  7102. };
  7103. static struct cipher_testvec xtea_dec_tv_template[] = {
  7104. {
  7105. .key = zeroed_string,
  7106. .klen = 16,
  7107. .input = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
  7108. .ilen = 8,
  7109. .result = zeroed_string,
  7110. .rlen = 8,
  7111. }, {
  7112. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  7113. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  7114. .klen = 16,
  7115. .input = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
  7116. .ilen = 8,
  7117. .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  7118. .rlen = 8,
  7119. }, {
  7120. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  7121. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  7122. .klen = 16,
  7123. .input = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
  7124. "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
  7125. .ilen = 16,
  7126. .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  7127. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  7128. .rlen = 16,
  7129. }, {
  7130. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  7131. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  7132. .klen = 16,
  7133. .input = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
  7134. "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
  7135. "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
  7136. "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
  7137. .ilen = 32,
  7138. .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
  7139. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  7140. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  7141. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  7142. .rlen = 32,
  7143. }
  7144. };
  7145. /*
  7146. * KHAZAD test vectors.
  7147. */
  7148. #define KHAZAD_ENC_TEST_VECTORS 5
  7149. #define KHAZAD_DEC_TEST_VECTORS 5
  7150. static struct cipher_testvec khazad_enc_tv_template[] = {
  7151. {
  7152. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  7153. "\x00\x00\x00\x00\x00\x00\x00\x00",
  7154. .klen = 16,
  7155. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7156. .ilen = 8,
  7157. .result = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
  7158. .rlen = 8,
  7159. }, {
  7160. .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
  7161. "\x38\x38\x38\x38\x38\x38\x38\x38",
  7162. .klen = 16,
  7163. .input = "\x38\x38\x38\x38\x38\x38\x38\x38",
  7164. .ilen = 8,
  7165. .result = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
  7166. .rlen = 8,
  7167. }, {
  7168. .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
  7169. "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  7170. .klen = 16,
  7171. .input = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  7172. .ilen = 8,
  7173. .result = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
  7174. .rlen = 8,
  7175. }, {
  7176. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  7177. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  7178. .klen = 16,
  7179. .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  7180. .ilen = 8,
  7181. .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  7182. .rlen = 8,
  7183. }, {
  7184. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  7185. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  7186. .klen = 16,
  7187. .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  7188. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  7189. .ilen = 16,
  7190. .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
  7191. "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  7192. .rlen = 16,
  7193. },
  7194. };
  7195. static struct cipher_testvec khazad_dec_tv_template[] = {
  7196. {
  7197. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  7198. "\x00\x00\x00\x00\x00\x00\x00\x00",
  7199. .klen = 16,
  7200. .input = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
  7201. .ilen = 8,
  7202. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7203. .rlen = 8,
  7204. }, {
  7205. .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
  7206. "\x38\x38\x38\x38\x38\x38\x38\x38",
  7207. .klen = 16,
  7208. .input = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
  7209. .ilen = 8,
  7210. .result = "\x38\x38\x38\x38\x38\x38\x38\x38",
  7211. .rlen = 8,
  7212. }, {
  7213. .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
  7214. "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  7215. .klen = 16,
  7216. .input = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
  7217. .ilen = 8,
  7218. .result = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  7219. .rlen = 8,
  7220. }, {
  7221. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  7222. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  7223. .klen = 16,
  7224. .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  7225. .ilen = 8,
  7226. .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  7227. .rlen = 8,
  7228. }, {
  7229. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  7230. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  7231. .klen = 16,
  7232. .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
  7233. "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  7234. .ilen = 16,
  7235. .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  7236. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  7237. .rlen = 16,
  7238. },
  7239. };
  7240. /*
  7241. * Anubis test vectors.
  7242. */
  7243. #define ANUBIS_ENC_TEST_VECTORS 5
  7244. #define ANUBIS_DEC_TEST_VECTORS 5
  7245. #define ANUBIS_CBC_ENC_TEST_VECTORS 2
  7246. #define ANUBIS_CBC_DEC_TEST_VECTORS 2
  7247. static struct cipher_testvec anubis_enc_tv_template[] = {
  7248. {
  7249. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7250. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  7251. .klen = 16,
  7252. .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7253. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  7254. .ilen = 16,
  7255. .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  7256. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
  7257. .rlen = 16,
  7258. }, {
  7259. .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
  7260. "\x03\x03\x03\x03\x03\x03\x03\x03"
  7261. "\x03\x03\x03\x03",
  7262. .klen = 20,
  7263. .input = "\x03\x03\x03\x03\x03\x03\x03\x03"
  7264. "\x03\x03\x03\x03\x03\x03\x03\x03",
  7265. .ilen = 16,
  7266. .result = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
  7267. "\x87\x41\x6f\x82\x0a\x98\x64\xae",
  7268. .rlen = 16,
  7269. }, {
  7270. .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
  7271. "\x24\x24\x24\x24\x24\x24\x24\x24"
  7272. "\x24\x24\x24\x24\x24\x24\x24\x24"
  7273. "\x24\x24\x24\x24",
  7274. .klen = 28,
  7275. .input = "\x24\x24\x24\x24\x24\x24\x24\x24"
  7276. "\x24\x24\x24\x24\x24\x24\x24\x24",
  7277. .ilen = 16,
  7278. .result = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
  7279. "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
  7280. .rlen = 16,
  7281. }, {
  7282. .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
  7283. "\x25\x25\x25\x25\x25\x25\x25\x25"
  7284. "\x25\x25\x25\x25\x25\x25\x25\x25"
  7285. "\x25\x25\x25\x25\x25\x25\x25\x25",
  7286. .klen = 32,
  7287. .input = "\x25\x25\x25\x25\x25\x25\x25\x25"
  7288. "\x25\x25\x25\x25\x25\x25\x25\x25",
  7289. .ilen = 16,
  7290. .result = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
  7291. "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
  7292. .rlen = 16,
  7293. }, {
  7294. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7295. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7296. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7297. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7298. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7299. .klen = 40,
  7300. .input = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7301. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7302. .ilen = 16,
  7303. .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  7304. "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
  7305. .rlen = 16,
  7306. },
  7307. };
  7308. static struct cipher_testvec anubis_dec_tv_template[] = {
  7309. {
  7310. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7311. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  7312. .klen = 16,
  7313. .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  7314. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
  7315. .ilen = 16,
  7316. .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7317. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  7318. .rlen = 16,
  7319. }, {
  7320. .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
  7321. "\x03\x03\x03\x03\x03\x03\x03\x03"
  7322. "\x03\x03\x03\x03",
  7323. .klen = 20,
  7324. .input = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
  7325. "\x87\x41\x6f\x82\x0a\x98\x64\xae",
  7326. .ilen = 16,
  7327. .result = "\x03\x03\x03\x03\x03\x03\x03\x03"
  7328. "\x03\x03\x03\x03\x03\x03\x03\x03",
  7329. .rlen = 16,
  7330. }, {
  7331. .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
  7332. "\x24\x24\x24\x24\x24\x24\x24\x24"
  7333. "\x24\x24\x24\x24\x24\x24\x24\x24"
  7334. "\x24\x24\x24\x24",
  7335. .klen = 28,
  7336. .input = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
  7337. "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
  7338. .ilen = 16,
  7339. .result = "\x24\x24\x24\x24\x24\x24\x24\x24"
  7340. "\x24\x24\x24\x24\x24\x24\x24\x24",
  7341. .rlen = 16,
  7342. }, {
  7343. .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
  7344. "\x25\x25\x25\x25\x25\x25\x25\x25"
  7345. "\x25\x25\x25\x25\x25\x25\x25\x25"
  7346. "\x25\x25\x25\x25\x25\x25\x25\x25",
  7347. .klen = 32,
  7348. .input = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
  7349. "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
  7350. .ilen = 16,
  7351. .result = "\x25\x25\x25\x25\x25\x25\x25\x25"
  7352. "\x25\x25\x25\x25\x25\x25\x25\x25",
  7353. .rlen = 16,
  7354. }, {
  7355. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7356. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7357. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7358. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7359. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7360. .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  7361. "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
  7362. .klen = 40,
  7363. .ilen = 16,
  7364. .result = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7365. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7366. .rlen = 16,
  7367. },
  7368. };
  7369. static struct cipher_testvec anubis_cbc_enc_tv_template[] = {
  7370. {
  7371. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7372. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  7373. .klen = 16,
  7374. .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7375. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7376. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7377. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  7378. .ilen = 32,
  7379. .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  7380. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
  7381. "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
  7382. "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
  7383. .rlen = 32,
  7384. }, {
  7385. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7386. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7387. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7388. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7389. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7390. .klen = 40,
  7391. .input = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7392. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7393. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7394. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7395. .ilen = 32,
  7396. .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  7397. "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
  7398. "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
  7399. "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
  7400. .rlen = 32,
  7401. },
  7402. };
  7403. static struct cipher_testvec anubis_cbc_dec_tv_template[] = {
  7404. {
  7405. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7406. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  7407. .klen = 16,
  7408. .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  7409. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
  7410. "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
  7411. "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
  7412. .ilen = 32,
  7413. .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7414. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7415. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7416. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  7417. .rlen = 32,
  7418. }, {
  7419. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7420. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7421. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7422. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7423. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7424. .klen = 40,
  7425. .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  7426. "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
  7427. "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
  7428. "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
  7429. .ilen = 32,
  7430. .result = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7431. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7432. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7433. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7434. .rlen = 32,
  7435. },
  7436. };
  7437. /*
  7438. * XETA test vectors
  7439. */
  7440. #define XETA_ENC_TEST_VECTORS 4
  7441. #define XETA_DEC_TEST_VECTORS 4
  7442. static struct cipher_testvec xeta_enc_tv_template[] = {
  7443. {
  7444. .key = zeroed_string,
  7445. .klen = 16,
  7446. .input = zeroed_string,
  7447. .ilen = 8,
  7448. .result = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
  7449. .rlen = 8,
  7450. }, {
  7451. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  7452. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  7453. .klen = 16,
  7454. .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  7455. .ilen = 8,
  7456. .result = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
  7457. .rlen = 8,
  7458. }, {
  7459. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  7460. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  7461. .klen = 16,
  7462. .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  7463. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  7464. .ilen = 16,
  7465. .result = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
  7466. "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
  7467. .rlen = 16,
  7468. }, {
  7469. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  7470. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  7471. .klen = 16,
  7472. .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
  7473. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  7474. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  7475. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  7476. .ilen = 32,
  7477. .result = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
  7478. "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
  7479. "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
  7480. "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
  7481. .rlen = 32,
  7482. }
  7483. };
  7484. static struct cipher_testvec xeta_dec_tv_template[] = {
  7485. {
  7486. .key = zeroed_string,
  7487. .klen = 16,
  7488. .input = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
  7489. .ilen = 8,
  7490. .result = zeroed_string,
  7491. .rlen = 8,
  7492. }, {
  7493. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  7494. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  7495. .klen = 16,
  7496. .input = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
  7497. .ilen = 8,
  7498. .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  7499. .rlen = 8,
  7500. }, {
  7501. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  7502. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  7503. .klen = 16,
  7504. .input = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
  7505. "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
  7506. .ilen = 16,
  7507. .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  7508. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  7509. .rlen = 16,
  7510. }, {
  7511. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  7512. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  7513. .klen = 16,
  7514. .input = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
  7515. "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
  7516. "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
  7517. "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
  7518. .ilen = 32,
  7519. .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
  7520. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  7521. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  7522. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  7523. .rlen = 32,
  7524. }
  7525. };
  7526. /*
  7527. * FCrypt test vectors
  7528. */
  7529. #define FCRYPT_ENC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_enc_tv_template)
  7530. #define FCRYPT_DEC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_dec_tv_template)
  7531. static struct cipher_testvec fcrypt_pcbc_enc_tv_template[] = {
  7532. { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
  7533. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7534. .klen = 8,
  7535. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7536. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7537. .ilen = 8,
  7538. .result = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
  7539. .rlen = 8,
  7540. }, {
  7541. .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
  7542. .klen = 8,
  7543. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7544. .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
  7545. .ilen = 8,
  7546. .result = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
  7547. .rlen = 8,
  7548. }, { /* From Arla */
  7549. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7550. .klen = 8,
  7551. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7552. .input = "The quick brown fox jumps over the lazy dogs.\0\0",
  7553. .ilen = 48,
  7554. .result = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
  7555. "\xee\xac\x98\x62\x44\x51\xe4\x84"
  7556. "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
  7557. "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
  7558. "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
  7559. "\xf8\x91\x3c\xac\x44\x22\x92\xef",
  7560. .rlen = 48,
  7561. }, {
  7562. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7563. .klen = 8,
  7564. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7565. .input = "The quick brown fox jumps over the lazy dogs.\0\0",
  7566. .ilen = 48,
  7567. .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  7568. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  7569. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  7570. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  7571. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  7572. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  7573. .rlen = 48,
  7574. }, { /* split-page version */
  7575. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7576. .klen = 8,
  7577. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7578. .input = "The quick brown fox jumps over the lazy dogs.\0\0",
  7579. .ilen = 48,
  7580. .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  7581. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  7582. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  7583. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  7584. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  7585. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  7586. .rlen = 48,
  7587. .np = 2,
  7588. .tap = { 20, 28 },
  7589. }
  7590. };
  7591. static struct cipher_testvec fcrypt_pcbc_dec_tv_template[] = {
  7592. { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
  7593. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7594. .klen = 8,
  7595. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7596. .input = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
  7597. .ilen = 8,
  7598. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7599. .rlen = 8,
  7600. }, {
  7601. .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
  7602. .klen = 8,
  7603. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7604. .input = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
  7605. .ilen = 8,
  7606. .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
  7607. .rlen = 8,
  7608. }, { /* From Arla */
  7609. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7610. .klen = 8,
  7611. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7612. .input = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
  7613. "\xee\xac\x98\x62\x44\x51\xe4\x84"
  7614. "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
  7615. "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
  7616. "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
  7617. "\xf8\x91\x3c\xac\x44\x22\x92\xef",
  7618. .ilen = 48,
  7619. .result = "The quick brown fox jumps over the lazy dogs.\0\0",
  7620. .rlen = 48,
  7621. }, {
  7622. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7623. .klen = 8,
  7624. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7625. .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  7626. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  7627. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  7628. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  7629. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  7630. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  7631. .ilen = 48,
  7632. .result = "The quick brown fox jumps over the lazy dogs.\0\0",
  7633. .rlen = 48,
  7634. }, { /* split-page version */
  7635. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7636. .klen = 8,
  7637. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7638. .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  7639. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  7640. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  7641. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  7642. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  7643. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  7644. .ilen = 48,
  7645. .result = "The quick brown fox jumps over the lazy dogs.\0\0",
  7646. .rlen = 48,
  7647. .np = 2,
  7648. .tap = { 20, 28 },
  7649. }
  7650. };
  7651. /*
  7652. * CAMELLIA test vectors.
  7653. */
  7654. #define CAMELLIA_ENC_TEST_VECTORS 3
  7655. #define CAMELLIA_DEC_TEST_VECTORS 3
  7656. #define CAMELLIA_CBC_ENC_TEST_VECTORS 2
  7657. #define CAMELLIA_CBC_DEC_TEST_VECTORS 2
  7658. static struct cipher_testvec camellia_enc_tv_template[] = {
  7659. {
  7660. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7661. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7662. .klen = 16,
  7663. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7664. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7665. .ilen = 16,
  7666. .result = "\x67\x67\x31\x38\x54\x96\x69\x73"
  7667. "\x08\x57\x06\x56\x48\xea\xbe\x43",
  7668. .rlen = 16,
  7669. }, {
  7670. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7671. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  7672. "\x00\x11\x22\x33\x44\x55\x66\x77",
  7673. .klen = 24,
  7674. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7675. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7676. .ilen = 16,
  7677. .result = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
  7678. "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
  7679. .rlen = 16,
  7680. }, {
  7681. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7682. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  7683. "\x00\x11\x22\x33\x44\x55\x66\x77"
  7684. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  7685. .klen = 32,
  7686. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7687. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7688. .ilen = 16,
  7689. .result = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
  7690. "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
  7691. .rlen = 16,
  7692. },
  7693. };
  7694. static struct cipher_testvec camellia_dec_tv_template[] = {
  7695. {
  7696. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7697. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7698. .klen = 16,
  7699. .input = "\x67\x67\x31\x38\x54\x96\x69\x73"
  7700. "\x08\x57\x06\x56\x48\xea\xbe\x43",
  7701. .ilen = 16,
  7702. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7703. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7704. .rlen = 16,
  7705. }, {
  7706. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7707. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  7708. "\x00\x11\x22\x33\x44\x55\x66\x77",
  7709. .klen = 24,
  7710. .input = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
  7711. "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
  7712. .ilen = 16,
  7713. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7714. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7715. .rlen = 16,
  7716. }, {
  7717. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7718. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  7719. "\x00\x11\x22\x33\x44\x55\x66\x77"
  7720. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  7721. .klen = 32,
  7722. .input = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
  7723. "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
  7724. .ilen = 16,
  7725. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7726. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7727. .rlen = 16,
  7728. },
  7729. };
  7730. static struct cipher_testvec camellia_cbc_enc_tv_template[] = {
  7731. {
  7732. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  7733. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  7734. .klen = 16,
  7735. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  7736. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  7737. .input = "Single block msg",
  7738. .ilen = 16,
  7739. .result = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
  7740. "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
  7741. .rlen = 16,
  7742. }, {
  7743. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  7744. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  7745. .klen = 16,
  7746. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  7747. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  7748. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7749. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  7750. "\x10\x11\x12\x13\x14\x15\x16\x17"
  7751. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  7752. .ilen = 32,
  7753. .result = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
  7754. "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
  7755. "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
  7756. "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
  7757. .rlen = 32,
  7758. },
  7759. };
  7760. static struct cipher_testvec camellia_cbc_dec_tv_template[] = {
  7761. {
  7762. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  7763. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  7764. .klen = 16,
  7765. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  7766. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  7767. .input = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
  7768. "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
  7769. .ilen = 16,
  7770. .result = "Single block msg",
  7771. .rlen = 16,
  7772. }, {
  7773. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  7774. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  7775. .klen = 16,
  7776. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  7777. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  7778. .input = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
  7779. "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
  7780. "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
  7781. "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
  7782. .ilen = 32,
  7783. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7784. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  7785. "\x10\x11\x12\x13\x14\x15\x16\x17"
  7786. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  7787. .rlen = 32,
  7788. },
  7789. };
  7790. /*
  7791. * SEED test vectors
  7792. */
  7793. #define SEED_ENC_TEST_VECTORS 4
  7794. #define SEED_DEC_TEST_VECTORS 4
  7795. static struct cipher_testvec seed_enc_tv_template[] = {
  7796. {
  7797. .key = zeroed_string,
  7798. .klen = 16,
  7799. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7800. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  7801. .ilen = 16,
  7802. .result = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
  7803. "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
  7804. .rlen = 16,
  7805. }, {
  7806. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7807. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  7808. .klen = 16,
  7809. .input = zeroed_string,
  7810. .ilen = 16,
  7811. .result = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
  7812. "\x84\x48\x35\x97\xe4\x37\x0f\x43",
  7813. .rlen = 16,
  7814. }, {
  7815. .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
  7816. "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
  7817. .klen = 16,
  7818. .input = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
  7819. "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
  7820. .ilen = 16,
  7821. .result = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
  7822. "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
  7823. .rlen = 16,
  7824. }, {
  7825. .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
  7826. "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
  7827. .klen = 16,
  7828. .input = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
  7829. "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
  7830. .ilen = 16,
  7831. .result = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
  7832. "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
  7833. .rlen = 16,
  7834. }
  7835. };
  7836. static struct cipher_testvec seed_dec_tv_template[] = {
  7837. {
  7838. .key = zeroed_string,
  7839. .klen = 16,
  7840. .input = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
  7841. "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
  7842. .ilen = 16,
  7843. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7844. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  7845. .rlen = 16,
  7846. }, {
  7847. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7848. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  7849. .klen = 16,
  7850. .input = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
  7851. "\x84\x48\x35\x97\xe4\x37\x0f\x43",
  7852. .ilen = 16,
  7853. .result = zeroed_string,
  7854. .rlen = 16,
  7855. }, {
  7856. .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
  7857. "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
  7858. .klen = 16,
  7859. .input = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
  7860. "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
  7861. .ilen = 16,
  7862. .result = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
  7863. "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
  7864. .rlen = 16,
  7865. }, {
  7866. .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
  7867. "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
  7868. .klen = 16,
  7869. .input = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
  7870. "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
  7871. .ilen = 16,
  7872. .result = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
  7873. "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
  7874. .rlen = 16,
  7875. }
  7876. };
  7877. #define SALSA20_STREAM_ENC_TEST_VECTORS 5
  7878. static struct cipher_testvec salsa20_stream_enc_tv_template[] = {
  7879. /*
  7880. * Testvectors from verified.test-vectors submitted to ECRYPT.
  7881. * They are truncated to size 39, 64, 111, 129 to test a variety
  7882. * of input length.
  7883. */
  7884. { /* Set 3, vector 0 */
  7885. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7886. "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
  7887. .klen = 16,
  7888. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7889. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7890. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7891. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7892. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7893. "\x00\x00\x00\x00\x00\x00\x00",
  7894. .ilen = 39,
  7895. .result = "\x2D\xD5\xC3\xF7\xBA\x2B\x20\xF7"
  7896. "\x68\x02\x41\x0C\x68\x86\x88\x89"
  7897. "\x5A\xD8\xC1\xBD\x4E\xA6\xC9\xB1"
  7898. "\x40\xFB\x9B\x90\xE2\x10\x49\xBF"
  7899. "\x58\x3F\x52\x79\x70\xEB\xC1",
  7900. .rlen = 39,
  7901. }, { /* Set 5, vector 0 */
  7902. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7903. "\x00\x00\x00\x00\x00\x00\x00\x00",
  7904. .klen = 16,
  7905. .iv = "\x80\x00\x00\x00\x00\x00\x00\x00",
  7906. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7907. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7908. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7909. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7910. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7911. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7912. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7913. "\x00\x00\x00\x00\x00\x00\x00\x00",
  7914. .ilen = 64,
  7915. .result = "\xB6\x6C\x1E\x44\x46\xDD\x95\x57"
  7916. "\xE5\x78\xE2\x23\xB0\xB7\x68\x01"
  7917. "\x7B\x23\xB2\x67\xBB\x02\x34\xAE"
  7918. "\x46\x26\xBF\x44\x3F\x21\x97\x76"
  7919. "\x43\x6F\xB1\x9F\xD0\xE8\x86\x6F"
  7920. "\xCD\x0D\xE9\xA9\x53\x8F\x4A\x09"
  7921. "\xCA\x9A\xC0\x73\x2E\x30\xBC\xF9"
  7922. "\x8E\x4F\x13\xE4\xB9\xE2\x01\xD9",
  7923. .rlen = 64,
  7924. }, { /* Set 3, vector 27 */
  7925. .key = "\x1B\x1C\x1D\x1E\x1F\x20\x21\x22"
  7926. "\x23\x24\x25\x26\x27\x28\x29\x2A"
  7927. "\x2B\x2C\x2D\x2E\x2F\x30\x31\x32"
  7928. "\x33\x34\x35\x36\x37\x38\x39\x3A",
  7929. .klen = 32,
  7930. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7931. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7932. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7933. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7934. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7935. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7936. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7937. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7938. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7939. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7940. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7941. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7942. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7943. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7944. "\x00\x00\x00\x00\x00\x00\x00",
  7945. .ilen = 111,
  7946. .result = "\xAE\x39\x50\x8E\xAC\x9A\xEC\xE7"
  7947. "\xBF\x97\xBB\x20\xB9\xDE\xE4\x1F"
  7948. "\x87\xD9\x47\xF8\x28\x91\x35\x98"
  7949. "\xDB\x72\xCC\x23\x29\x48\x56\x5E"
  7950. "\x83\x7E\x0B\xF3\x7D\x5D\x38\x7B"
  7951. "\x2D\x71\x02\xB4\x3B\xB5\xD8\x23"
  7952. "\xB0\x4A\xDF\x3C\xEC\xB6\xD9\x3B"
  7953. "\x9B\xA7\x52\xBE\xC5\xD4\x50\x59"
  7954. "\x15\x14\xB4\x0E\x40\xE6\x53\xD1"
  7955. "\x83\x9C\x5B\xA0\x92\x29\x6B\x5E"
  7956. "\x96\x5B\x1E\x2F\xD3\xAC\xC1\x92"
  7957. "\xB1\x41\x3F\x19\x2F\xC4\x3B\xC6"
  7958. "\x95\x46\x45\x54\xE9\x75\x03\x08"
  7959. "\x44\xAF\xE5\x8A\x81\x12\x09",
  7960. .rlen = 111,
  7961. }, { /* Set 5, vector 27 */
  7962. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7963. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7964. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7965. "\x00\x00\x00\x00\x00\x00\x00\x00",
  7966. .klen = 32,
  7967. .iv = "\x00\x00\x00\x10\x00\x00\x00\x00",
  7968. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7969. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7970. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7971. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7972. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7973. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7974. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7975. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7976. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7977. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7978. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7979. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7980. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7981. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7982. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7983. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7984. "\x00",
  7985. .ilen = 129,
  7986. .result = "\xD2\xDB\x1A\x5C\xF1\xC1\xAC\xDB"
  7987. "\xE8\x1A\x7A\x43\x40\xEF\x53\x43"
  7988. "\x5E\x7F\x4B\x1A\x50\x52\x3F\x8D"
  7989. "\x28\x3D\xCF\x85\x1D\x69\x6E\x60"
  7990. "\xF2\xDE\x74\x56\x18\x1B\x84\x10"
  7991. "\xD4\x62\xBA\x60\x50\xF0\x61\xF2"
  7992. "\x1C\x78\x7F\xC1\x24\x34\xAF\x58"
  7993. "\xBF\x2C\x59\xCA\x90\x77\xF3\xB0"
  7994. "\x5B\x4A\xDF\x89\xCE\x2C\x2F\xFC"
  7995. "\x67\xF0\xE3\x45\xE8\xB3\xB3\x75"
  7996. "\xA0\x95\x71\xA1\x29\x39\x94\xCA"
  7997. "\x45\x2F\xBD\xCB\x10\xB6\xBE\x9F"
  7998. "\x8E\xF9\xB2\x01\x0A\x5A\x0A\xB7"
  7999. "\x6B\x9D\x70\x8E\x4B\xD6\x2F\xCD"
  8000. "\x2E\x40\x48\x75\xE9\xE2\x21\x45"
  8001. "\x0B\xC9\xB6\xB5\x66\xBC\x9A\x59"
  8002. "\x5A",
  8003. .rlen = 129,
  8004. }, { /* large test vector generated using Crypto++ */
  8005. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  8006. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  8007. "\x10\x11\x12\x13\x14\x15\x16\x17"
  8008. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  8009. .klen = 32,
  8010. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  8011. "\x00\x00\x00\x00\x00\x00\x00\x00",
  8012. .input =
  8013. "\x00\x01\x02\x03\x04\x05\x06\x07"
  8014. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  8015. "\x10\x11\x12\x13\x14\x15\x16\x17"
  8016. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  8017. "\x20\x21\x22\x23\x24\x25\x26\x27"
  8018. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  8019. "\x30\x31\x32\x33\x34\x35\x36\x37"
  8020. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  8021. "\x40\x41\x42\x43\x44\x45\x46\x47"
  8022. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  8023. "\x50\x51\x52\x53\x54\x55\x56\x57"
  8024. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  8025. "\x60\x61\x62\x63\x64\x65\x66\x67"
  8026. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  8027. "\x70\x71\x72\x73\x74\x75\x76\x77"
  8028. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  8029. "\x80\x81\x82\x83\x84\x85\x86\x87"
  8030. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  8031. "\x90\x91\x92\x93\x94\x95\x96\x97"
  8032. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  8033. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  8034. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  8035. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  8036. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  8037. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  8038. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  8039. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  8040. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  8041. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  8042. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  8043. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  8044. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  8045. "\x00\x03\x06\x09\x0c\x0f\x12\x15"
  8046. "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
  8047. "\x30\x33\x36\x39\x3c\x3f\x42\x45"
  8048. "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
  8049. "\x60\x63\x66\x69\x6c\x6f\x72\x75"
  8050. "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
  8051. "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
  8052. "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
  8053. "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
  8054. "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
  8055. "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
  8056. "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
  8057. "\x20\x23\x26\x29\x2c\x2f\x32\x35"
  8058. "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
  8059. "\x50\x53\x56\x59\x5c\x5f\x62\x65"
  8060. "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
  8061. "\x80\x83\x86\x89\x8c\x8f\x92\x95"
  8062. "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
  8063. "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
  8064. "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
  8065. "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
  8066. "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
  8067. "\x10\x13\x16\x19\x1c\x1f\x22\x25"
  8068. "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
  8069. "\x40\x43\x46\x49\x4c\x4f\x52\x55"
  8070. "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
  8071. "\x70\x73\x76\x79\x7c\x7f\x82\x85"
  8072. "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
  8073. "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
  8074. "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
  8075. "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
  8076. "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
  8077. "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
  8078. "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
  8079. "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
  8080. "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
  8081. "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
  8082. "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
  8083. "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
  8084. "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
  8085. "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
  8086. "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
  8087. "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
  8088. "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
  8089. "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
  8090. "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
  8091. "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
  8092. "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
  8093. "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
  8094. "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
  8095. "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
  8096. "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
  8097. "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
  8098. "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
  8099. "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
  8100. "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
  8101. "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
  8102. "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
  8103. "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
  8104. "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
  8105. "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
  8106. "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
  8107. "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
  8108. "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
  8109. "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
  8110. "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
  8111. "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
  8112. "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
  8113. "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
  8114. "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
  8115. "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
  8116. "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
  8117. "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
  8118. "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
  8119. "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
  8120. "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
  8121. "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
  8122. "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
  8123. "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
  8124. "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
  8125. "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
  8126. "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
  8127. "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
  8128. "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
  8129. "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
  8130. "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
  8131. "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
  8132. "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
  8133. "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
  8134. "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
  8135. "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
  8136. "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
  8137. "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
  8138. "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
  8139. "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
  8140. "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
  8141. "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
  8142. "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
  8143. "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
  8144. "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
  8145. "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
  8146. "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
  8147. "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
  8148. "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
  8149. "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
  8150. "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
  8151. "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
  8152. "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
  8153. "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
  8154. "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
  8155. "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
  8156. "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
  8157. "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
  8158. "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
  8159. "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
  8160. "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
  8161. "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
  8162. "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
  8163. "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
  8164. "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
  8165. "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
  8166. "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
  8167. "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
  8168. "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
  8169. "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
  8170. "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
  8171. "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
  8172. "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
  8173. "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
  8174. "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
  8175. "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
  8176. "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
  8177. "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
  8178. "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
  8179. "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
  8180. "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
  8181. "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
  8182. "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
  8183. "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
  8184. "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
  8185. "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
  8186. "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
  8187. "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
  8188. "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
  8189. "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
  8190. "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
  8191. "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
  8192. "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
  8193. "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
  8194. "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
  8195. "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
  8196. "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
  8197. "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
  8198. "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
  8199. "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
  8200. "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
  8201. "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
  8202. "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
  8203. "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
  8204. "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
  8205. "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
  8206. "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
  8207. "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
  8208. "\x38\x45\x52\x5f\x6c\x79\x86\x93"
  8209. "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
  8210. "\x08\x15\x22\x2f\x3c\x49\x56\x63"
  8211. "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
  8212. "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
  8213. "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
  8214. "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
  8215. "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
  8216. "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
  8217. "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
  8218. "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
  8219. "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
  8220. "\x18\x25\x32\x3f\x4c\x59\x66\x73"
  8221. "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
  8222. "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
  8223. "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
  8224. "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
  8225. "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
  8226. "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
  8227. "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
  8228. "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
  8229. "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
  8230. "\x28\x35\x42\x4f\x5c\x69\x76\x83"
  8231. "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
  8232. "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
  8233. "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
  8234. "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
  8235. "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
  8236. "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
  8237. "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
  8238. "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
  8239. "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
  8240. "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
  8241. "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
  8242. "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
  8243. "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
  8244. "\x48\x57\x66\x75\x84\x93\xa2\xb1"
  8245. "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
  8246. "\x38\x47\x56\x65\x74\x83\x92\xa1"
  8247. "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
  8248. "\x28\x37\x46\x55\x64\x73\x82\x91"
  8249. "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
  8250. "\x18\x27\x36\x45\x54\x63\x72\x81"
  8251. "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
  8252. "\x08\x17\x26\x35\x44\x53\x62\x71"
  8253. "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
  8254. "\xf8\x07\x16\x25\x34\x43\x52\x61"
  8255. "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
  8256. "\xe8\xf7\x06\x15\x24\x33\x42\x51"
  8257. "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
  8258. "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
  8259. "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
  8260. "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
  8261. "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
  8262. "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
  8263. "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
  8264. "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
  8265. "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
  8266. "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
  8267. "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
  8268. "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
  8269. "\x00\x11\x22\x33\x44\x55\x66\x77"
  8270. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
  8271. "\x10\x21\x32\x43\x54\x65\x76\x87"
  8272. "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
  8273. "\x20\x31\x42\x53\x64\x75\x86\x97"
  8274. "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
  8275. "\x30\x41\x52\x63\x74\x85\x96\xa7"
  8276. "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
  8277. "\x40\x51\x62\x73\x84\x95\xa6\xb7"
  8278. "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
  8279. "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
  8280. "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
  8281. "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
  8282. "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
  8283. "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
  8284. "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
  8285. "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
  8286. "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
  8287. "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
  8288. "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
  8289. "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
  8290. "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
  8291. "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
  8292. "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
  8293. "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
  8294. "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
  8295. "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
  8296. "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
  8297. "\xe0\xf1\x02\x13\x24\x35\x46\x57"
  8298. "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
  8299. "\xf0\x01\x12\x23\x34\x45\x56\x67"
  8300. "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
  8301. "\x00\x13\x26\x39\x4c\x5f\x72\x85"
  8302. "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
  8303. "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
  8304. "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
  8305. "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
  8306. "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
  8307. "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
  8308. "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
  8309. "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
  8310. "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
  8311. "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
  8312. "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
  8313. "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
  8314. "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
  8315. "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
  8316. "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
  8317. "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
  8318. "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
  8319. "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
  8320. "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
  8321. "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
  8322. "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
  8323. "\x10\x23\x36\x49\x5c\x6f\x82\x95"
  8324. "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
  8325. "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
  8326. "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
  8327. "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
  8328. "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
  8329. "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
  8330. "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
  8331. "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
  8332. "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
  8333. "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
  8334. "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
  8335. "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
  8336. "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
  8337. "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
  8338. "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
  8339. "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
  8340. "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
  8341. "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
  8342. "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
  8343. "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
  8344. "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
  8345. "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
  8346. "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
  8347. "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
  8348. "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
  8349. "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
  8350. "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
  8351. "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
  8352. "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
  8353. "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
  8354. "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
  8355. "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
  8356. "\x18\x2d\x42\x57\x6c\x81\x96\xab"
  8357. "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
  8358. "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
  8359. "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
  8360. "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
  8361. "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
  8362. "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
  8363. "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
  8364. "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
  8365. "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
  8366. "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
  8367. "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
  8368. "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
  8369. "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
  8370. "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
  8371. "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
  8372. "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
  8373. "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
  8374. "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
  8375. "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
  8376. "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
  8377. "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
  8378. "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
  8379. "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
  8380. "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
  8381. "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
  8382. "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
  8383. "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
  8384. "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
  8385. "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
  8386. "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
  8387. "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
  8388. "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
  8389. "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
  8390. "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
  8391. "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
  8392. "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
  8393. "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
  8394. "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
  8395. "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
  8396. "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
  8397. "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
  8398. "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
  8399. "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
  8400. "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
  8401. "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
  8402. "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
  8403. "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
  8404. "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
  8405. "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
  8406. "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
  8407. "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
  8408. "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
  8409. "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
  8410. "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
  8411. "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
  8412. "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
  8413. "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
  8414. "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
  8415. "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
  8416. "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
  8417. "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
  8418. "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
  8419. "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
  8420. "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
  8421. "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
  8422. "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
  8423. "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
  8424. "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
  8425. "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
  8426. "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
  8427. "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
  8428. "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
  8429. "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
  8430. "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
  8431. "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
  8432. "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
  8433. "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
  8434. "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
  8435. "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
  8436. "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
  8437. "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
  8438. "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
  8439. "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
  8440. "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
  8441. "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
  8442. "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
  8443. "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
  8444. "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
  8445. "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
  8446. "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
  8447. "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
  8448. "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
  8449. "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
  8450. "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
  8451. "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
  8452. "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
  8453. "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
  8454. "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
  8455. "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
  8456. "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
  8457. "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
  8458. "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
  8459. "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
  8460. "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
  8461. "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
  8462. "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
  8463. "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
  8464. "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
  8465. "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
  8466. "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
  8467. "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
  8468. "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
  8469. "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
  8470. "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
  8471. "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
  8472. "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
  8473. "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
  8474. "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
  8475. "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
  8476. "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
  8477. "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
  8478. "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
  8479. "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
  8480. "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
  8481. "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
  8482. "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
  8483. "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
  8484. "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
  8485. "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
  8486. "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
  8487. "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
  8488. "\x78\x95\xb2\xcf\xec\x09\x26\x43"
  8489. "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
  8490. "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
  8491. "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
  8492. "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
  8493. "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
  8494. "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
  8495. "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
  8496. "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
  8497. "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
  8498. "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
  8499. "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
  8500. "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
  8501. "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
  8502. "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
  8503. "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
  8504. "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
  8505. "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
  8506. "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
  8507. "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
  8508. "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
  8509. "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
  8510. "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
  8511. "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
  8512. "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
  8513. "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
  8514. "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
  8515. "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
  8516. "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
  8517. "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
  8518. "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
  8519. "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
  8520. "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
  8521. "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
  8522. "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
  8523. "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
  8524. "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
  8525. "\x00\x21\x42\x63",
  8526. .ilen = 4100,
  8527. .result =
  8528. "\xb5\x81\xf5\x64\x18\x73\xe3\xf0"
  8529. "\x4c\x13\xf2\x77\x18\x60\x65\x5e"
  8530. "\x29\x01\xce\x98\x55\x53\xf9\x0c"
  8531. "\x2a\x08\xd5\x09\xb3\x57\x55\x56"
  8532. "\xc5\xe9\x56\x90\xcb\x6a\xa3\xc0"
  8533. "\xff\xc4\x79\xb4\xd2\x97\x5d\xc4"
  8534. "\x43\xd1\xfe\x94\x7b\x88\x06\x5a"
  8535. "\xb2\x9e\x2c\xfc\x44\x03\xb7\x90"
  8536. "\xa0\xc1\xba\x6a\x33\xb8\xc7\xb2"
  8537. "\x9d\xe1\x12\x4f\xc0\x64\xd4\x01"
  8538. "\xfe\x8c\x7a\x66\xf7\xe6\x5a\x91"
  8539. "\xbb\xde\x56\x86\xab\x65\x21\x30"
  8540. "\x00\x84\x65\x24\xa5\x7d\x85\xb4"
  8541. "\xe3\x17\xed\x3a\xb7\x6f\xb4\x0b"
  8542. "\x0b\xaf\x15\xae\x5a\x8f\xf2\x0c"
  8543. "\x2f\x27\xf4\x09\xd8\xd2\x96\xb7"
  8544. "\x71\xf2\xc5\x99\x4d\x7e\x7f\x75"
  8545. "\x77\x89\x30\x8b\x59\xdb\xa2\xb2"
  8546. "\xa0\xf3\x19\x39\x2b\xc5\x7e\x3f"
  8547. "\x4f\xd9\xd3\x56\x28\x97\x44\xdc"
  8548. "\xc0\x8b\x77\x24\xd9\x52\xe7\xc5"
  8549. "\xaf\xf6\x7d\x59\xb2\x44\x05\x1d"
  8550. "\xb1\xb0\x11\xa5\x0f\xec\x33\xe1"
  8551. "\x6d\x1b\x4e\x1f\xff\x57\x91\xb4"
  8552. "\x5b\x9a\x96\xc5\x53\xbc\xae\x20"
  8553. "\x3c\xbb\x14\xe2\xe8\x22\x33\xc1"
  8554. "\x5e\x76\x9e\x46\x99\xf6\x2a\x15"
  8555. "\xc6\x97\x02\xa0\x66\x43\xd1\xa6"
  8556. "\x31\xa6\x9f\xfb\xf4\xd3\x69\xe5"
  8557. "\xcd\x76\x95\xb8\x7a\x82\x7f\x21"
  8558. "\x45\xff\x3f\xce\x55\xf6\x95\x10"
  8559. "\x08\x77\x10\x43\xc6\xf3\x09\xe5"
  8560. "\x68\xe7\x3c\xad\x00\x52\x45\x0d"
  8561. "\xfe\x2d\xc6\xc2\x94\x8c\x12\x1d"
  8562. "\xe6\x25\xae\x98\x12\x8e\x19\x9c"
  8563. "\x81\x68\xb1\x11\xf6\x69\xda\xe3"
  8564. "\x62\x08\x18\x7a\x25\x49\x28\xac"
  8565. "\xba\x71\x12\x0b\xe4\xa2\xe5\xc7"
  8566. "\x5d\x8e\xec\x49\x40\x21\xbf\x5a"
  8567. "\x98\xf3\x02\x68\x55\x03\x7f\x8a"
  8568. "\xe5\x94\x0c\x32\x5c\x07\x82\x63"
  8569. "\xaf\x6f\x91\x40\x84\x8e\x52\x25"
  8570. "\xd0\xb0\x29\x53\x05\xe2\x50\x7a"
  8571. "\x34\xeb\xc9\x46\x20\xa8\x3d\xde"
  8572. "\x7f\x16\x5f\x36\xc5\x2e\xdc\xd1"
  8573. "\x15\x47\xc7\x50\x40\x6d\x91\xc5"
  8574. "\xe7\x93\x95\x1a\xd3\x57\xbc\x52"
  8575. "\x33\xee\x14\x19\x22\x52\x89\xa7"
  8576. "\x4a\x25\x56\x77\x4b\xca\xcf\x0a"
  8577. "\xe1\xf5\x35\x85\x30\x7e\x59\x4a"
  8578. "\xbd\x14\x5b\xdf\xe3\x46\xcb\xac"
  8579. "\x1f\x6c\x96\x0e\xf4\x81\xd1\x99"
  8580. "\xca\x88\x63\x3d\x02\x58\x6b\xa9"
  8581. "\xe5\x9f\xb3\x00\xb2\x54\xc6\x74"
  8582. "\x1c\xbf\x46\xab\x97\xcc\xf8\x54"
  8583. "\x04\x07\x08\x52\xe6\xc0\xda\x93"
  8584. "\x74\x7d\x93\x99\x5d\x78\x68\xa6"
  8585. "\x2e\x6b\xd3\x6a\x69\xcc\x12\x6b"
  8586. "\xd4\xc7\xa5\xc6\xe7\xf6\x03\x04"
  8587. "\x5d\xcd\x61\x5e\x17\x40\xdc\xd1"
  8588. "\x5c\xf5\x08\xdf\x5c\x90\x85\xa4"
  8589. "\xaf\xf6\x78\xbb\x0d\xf1\xf4\xa4"
  8590. "\x54\x26\x72\x9e\x61\xfa\x86\xcf"
  8591. "\xe8\x9e\xa1\xe0\xc7\x48\x23\xae"
  8592. "\x5a\x90\xae\x75\x0a\x74\x18\x89"
  8593. "\x05\xb1\x92\xb2\x7f\xd0\x1b\xa6"
  8594. "\x62\x07\x25\x01\xc7\xc2\x4f\xf9"
  8595. "\xe8\xfe\x63\x95\x80\x07\xb4\x26"
  8596. "\xcc\xd1\x26\xb6\xc4\x3f\x9e\xcb"
  8597. "\x8e\x3b\x2e\x44\x16\xd3\x10\x9a"
  8598. "\x95\x08\xeb\xc8\xcb\xeb\xbf\x6f"
  8599. "\x0b\xcd\x1f\xc8\xca\x86\xaa\xec"
  8600. "\x33\xe6\x69\xf4\x45\x25\x86\x3a"
  8601. "\x22\x94\x4f\x00\x23\x6a\x44\xc2"
  8602. "\x49\x97\x33\xab\x36\x14\x0a\x70"
  8603. "\x24\xc3\xbe\x04\x3b\x79\xa0\xf9"
  8604. "\xb8\xe7\x76\x29\x22\x83\xd7\xf2"
  8605. "\x94\xf4\x41\x49\xba\x5f\x7b\x07"
  8606. "\xb5\xfb\xdb\x03\x1a\x9f\xb6\x4c"
  8607. "\xc2\x2e\x37\x40\x49\xc3\x38\x16"
  8608. "\xe2\x4f\x77\x82\xb0\x68\x4c\x71"
  8609. "\x1d\x57\x61\x9c\xd9\x4e\x54\x99"
  8610. "\x47\x13\x28\x73\x3c\xbb\x00\x90"
  8611. "\xf3\x4d\xc9\x0e\xfd\xe7\xb1\x71"
  8612. "\xd3\x15\x79\xbf\xcc\x26\x2f\xbd"
  8613. "\xad\x6c\x50\x69\x6c\x3e\x6d\x80"
  8614. "\x9a\xea\x78\xaf\x19\xb2\x0d\x4d"
  8615. "\xad\x04\x07\xae\x22\x90\x4a\x93"
  8616. "\x32\x0e\x36\x9b\x1b\x46\xba\x3b"
  8617. "\xb4\xac\xc6\xd1\xa2\x31\x53\x3b"
  8618. "\x2a\x3d\x45\xfe\x03\x61\x10\x85"
  8619. "\x17\x69\xa6\x78\xcc\x6c\x87\x49"
  8620. "\x53\xf9\x80\x10\xde\x80\xa2\x41"
  8621. "\x6a\xc3\x32\x02\xad\x6d\x3c\x56"
  8622. "\x00\x71\x51\x06\xa7\xbd\xfb\xef"
  8623. "\x3c\xb5\x9f\xfc\x48\x7d\x53\x7c"
  8624. "\x66\xb0\x49\x23\xc4\x47\x10\x0e"
  8625. "\xe5\x6c\x74\x13\xe6\xc5\x3f\xaa"
  8626. "\xde\xff\x07\x44\xdd\x56\x1b\xad"
  8627. "\x09\x77\xfb\x5b\x12\xb8\x0d\x38"
  8628. "\x17\x37\x35\x7b\x9b\xbc\xfe\xd4"
  8629. "\x7e\x8b\xda\x7e\x5b\x04\xa7\x22"
  8630. "\xa7\x31\xa1\x20\x86\xc7\x1b\x99"
  8631. "\xdb\xd1\x89\xf4\x94\xa3\x53\x69"
  8632. "\x8d\xe7\xe8\x74\x11\x8d\x74\xd6"
  8633. "\x07\x37\x91\x9f\xfd\x67\x50\x3a"
  8634. "\xc9\xe1\xf4\x36\xd5\xa0\x47\xd1"
  8635. "\xf9\xe5\x39\xa3\x31\xac\x07\x36"
  8636. "\x23\xf8\x66\x18\x14\x28\x34\x0f"
  8637. "\xb8\xd0\xe7\x29\xb3\x04\x4b\x55"
  8638. "\x01\x41\xb2\x75\x8d\xcb\x96\x85"
  8639. "\x3a\xfb\xab\x2b\x9e\xfa\x58\x20"
  8640. "\x44\x1f\xc0\x14\x22\x75\x61\xe8"
  8641. "\xaa\x19\xcf\xf1\x82\x56\xf4\xd7"
  8642. "\x78\x7b\x3d\x5f\xb3\x9e\x0b\x8a"
  8643. "\x57\x50\xdb\x17\x41\x65\x4d\xa3"
  8644. "\x02\xc9\x9c\x9c\x53\xfb\x39\x39"
  8645. "\x9b\x1d\x72\x24\xda\xb7\x39\xbe"
  8646. "\x13\x3b\xfa\x29\xda\x9e\x54\x64"
  8647. "\x6e\xba\xd8\xa1\xcb\xb3\x36\xfa"
  8648. "\xcb\x47\x85\xe9\x61\x38\xbc\xbe"
  8649. "\xc5\x00\x38\x2a\x54\xf7\xc4\xb9"
  8650. "\xb3\xd3\x7b\xa0\xa0\xf8\x72\x7f"
  8651. "\x8c\x8e\x82\x0e\xc6\x1c\x75\x9d"
  8652. "\xca\x8e\x61\x87\xde\xad\x80\xd2"
  8653. "\xf5\xf9\x80\xef\x15\x75\xaf\xf5"
  8654. "\x80\xfb\xff\x6d\x1e\x25\xb7\x40"
  8655. "\x61\x6a\x39\x5a\x6a\xb5\x31\xab"
  8656. "\x97\x8a\x19\x89\x44\x40\xc0\xa6"
  8657. "\xb4\x4e\x30\x32\x7b\x13\xe7\x67"
  8658. "\xa9\x8b\x57\x04\xc2\x01\xa6\xf4"
  8659. "\x28\x99\xad\x2c\x76\xa3\x78\xc2"
  8660. "\x4a\xe6\xca\x5c\x50\x6a\xc1\xb0"
  8661. "\x62\x4b\x10\x8e\x7c\x17\x43\xb3"
  8662. "\x17\x66\x1c\x3e\x8d\x69\xf0\x5a"
  8663. "\x71\xf5\x97\xdc\xd1\x45\xdd\x28"
  8664. "\xf3\x5d\xdf\x53\x7b\x11\xe5\xbc"
  8665. "\x4c\xdb\x1b\x51\x6b\xe9\xfb\x3d"
  8666. "\xc1\xc3\x2c\xb9\x71\xf5\xb6\xb2"
  8667. "\x13\x36\x79\x80\x53\xe8\xd3\xa6"
  8668. "\x0a\xaf\xfd\x56\x97\xf7\x40\x8e"
  8669. "\x45\xce\xf8\xb0\x9e\x5c\x33\x82"
  8670. "\xb0\x44\x56\xfc\x05\x09\xe9\x2a"
  8671. "\xac\x26\x80\x14\x1d\xc8\x3a\x35"
  8672. "\x4c\x82\x97\xfd\x76\xb7\xa9\x0a"
  8673. "\x35\x58\x79\x8e\x0f\x66\xea\xaf"
  8674. "\x51\x6c\x09\xa9\x6e\x9b\xcb\x9a"
  8675. "\x31\x47\xa0\x2f\x7c\x71\xb4\x4a"
  8676. "\x11\xaa\x8c\x66\xc5\x64\xe6\x3a"
  8677. "\x54\xda\x24\x6a\xc4\x41\x65\x46"
  8678. "\x82\xa0\x0a\x0f\x5f\xfb\x25\xd0"
  8679. "\x2c\x91\xa7\xee\xc4\x81\x07\x86"
  8680. "\x75\x5e\x33\x69\x97\xe4\x2c\xa8"
  8681. "\x9d\x9f\x0b\x6a\xbe\xad\x98\xda"
  8682. "\x6d\x94\x41\xda\x2c\x1e\x89\xc4"
  8683. "\xc2\xaf\x1e\x00\x05\x0b\x83\x60"
  8684. "\xbd\x43\xea\x15\x23\x7f\xb9\xac"
  8685. "\xee\x4f\x2c\xaf\x2a\xf3\xdf\xd0"
  8686. "\xf3\x19\x31\xbb\x4a\x74\x84\x17"
  8687. "\x52\x32\x2c\x7d\x61\xe4\xcb\xeb"
  8688. "\x80\x38\x15\x52\xcb\x6f\xea\xe5"
  8689. "\x73\x9c\xd9\x24\x69\xc6\x95\x32"
  8690. "\x21\xc8\x11\xe4\xdc\x36\xd7\x93"
  8691. "\x38\x66\xfb\xb2\x7f\x3a\xb9\xaf"
  8692. "\x31\xdd\x93\x75\x78\x8a\x2c\x94"
  8693. "\x87\x1a\x58\xec\x9e\x7d\x4d\xba"
  8694. "\xe1\xe5\x4d\xfc\xbc\xa4\x2a\x14"
  8695. "\xef\xcc\xa7\xec\xab\x43\x09\x18"
  8696. "\xd3\xab\x68\xd1\x07\x99\x44\x47"
  8697. "\xd6\x83\x85\x3b\x30\xea\xa9\x6b"
  8698. "\x63\xea\xc4\x07\xfb\x43\x2f\xa4"
  8699. "\xaa\xb0\xab\x03\x89\xce\x3f\x8c"
  8700. "\x02\x7c\x86\x54\xbc\x88\xaf\x75"
  8701. "\xd2\xdc\x63\x17\xd3\x26\xf6\x96"
  8702. "\xa9\x3c\xf1\x61\x8c\x11\x18\xcc"
  8703. "\xd6\xea\x5b\xe2\xcd\xf0\xf1\xb2"
  8704. "\xe5\x35\x90\x1f\x85\x4c\x76\x5b"
  8705. "\x66\xce\x44\xa4\x32\x9f\xe6\x7b"
  8706. "\x71\x6e\x9f\x58\x15\x67\x72\x87"
  8707. "\x64\x8e\x3a\x44\x45\xd4\x76\xfa"
  8708. "\xc2\xf6\xef\x85\x05\x18\x7a\x9b"
  8709. "\xba\x41\x54\xac\xf0\xfc\x59\x12"
  8710. "\x3f\xdf\xa0\xe5\x8a\x65\xfd\x3a"
  8711. "\x62\x8d\x83\x2c\x03\xbe\x05\x76"
  8712. "\x2e\x53\x49\x97\x94\x33\xae\x40"
  8713. "\x81\x15\xdb\x6e\xad\xaa\xf5\x4b"
  8714. "\xe3\x98\x70\xdf\xe0\x7c\xcd\xdb"
  8715. "\x02\xd4\x7d\x2f\xc1\xe6\xb4\xf3"
  8716. "\xd7\x0d\x7a\xd9\x23\x9e\x87\x2d"
  8717. "\xce\x87\xad\xcc\x72\x05\x00\x29"
  8718. "\xdc\x73\x7f\x64\xc1\x15\x0e\xc2"
  8719. "\xdf\xa7\x5f\xeb\x41\xa1\xcd\xef"
  8720. "\x5c\x50\x79\x2a\x56\x56\x71\x8c"
  8721. "\xac\xc0\x79\x50\x69\xca\x59\x32"
  8722. "\x65\xf2\x54\xe4\x52\x38\x76\xd1"
  8723. "\x5e\xde\x26\x9e\xfb\x75\x2e\x11"
  8724. "\xb5\x10\xf4\x17\x73\xf5\x89\xc7"
  8725. "\x4f\x43\x5c\x8e\x7c\xb9\x05\x52"
  8726. "\x24\x40\x99\xfe\x9b\x85\x0b\x6c"
  8727. "\x22\x3e\x8b\xae\x86\xa1\xd2\x79"
  8728. "\x05\x68\x6b\xab\xe3\x41\x49\xed"
  8729. "\x15\xa1\x8d\x40\x2d\x61\xdf\x1a"
  8730. "\x59\xc9\x26\x8b\xef\x30\x4c\x88"
  8731. "\x4b\x10\xf8\x8d\xa6\x92\x9f\x4b"
  8732. "\xf3\xc4\x53\x0b\x89\x5d\x28\x92"
  8733. "\xcf\x78\xb2\xc0\x5d\xed\x7e\xfc"
  8734. "\xc0\x12\x23\x5f\x5a\x78\x86\x43"
  8735. "\x6e\x27\xf7\x5a\xa7\x6a\xed\x19"
  8736. "\x04\xf0\xb3\x12\xd1\xbd\x0e\x89"
  8737. "\x6e\xbc\x96\xa8\xd8\x49\x39\x9f"
  8738. "\x7e\x67\xf0\x2e\x3e\x01\xa9\xba"
  8739. "\xec\x8b\x62\x8e\xcb\x4a\x70\x43"
  8740. "\xc7\xc2\xc4\xca\x82\x03\x73\xe9"
  8741. "\x11\xdf\xcf\x54\xea\xc9\xb0\x95"
  8742. "\x51\xc0\x13\x3d\x92\x05\xfa\xf4"
  8743. "\xa9\x34\xc8\xce\x6c\x3d\x54\xcc"
  8744. "\xc4\xaf\xf1\xdc\x11\x44\x26\xa2"
  8745. "\xaf\xf1\x85\x75\x7d\x03\x61\x68"
  8746. "\x4e\x78\xc6\x92\x7d\x86\x7d\x77"
  8747. "\xdc\x71\x72\xdb\xc6\xae\xa1\xcb"
  8748. "\x70\x9a\x0b\x19\xbe\x4a\x6c\x2a"
  8749. "\xe2\xba\x6c\x64\x9a\x13\x28\xdf"
  8750. "\x85\x75\xe6\x43\xf6\x87\x08\x68"
  8751. "\x6e\xba\x6e\x79\x9f\x04\xbc\x23"
  8752. "\x50\xf6\x33\x5c\x1f\x24\x25\xbe"
  8753. "\x33\x47\x80\x45\x56\xa3\xa7\xd7"
  8754. "\x7a\xb1\x34\x0b\x90\x3c\x9c\xad"
  8755. "\x44\x5f\x9e\x0e\x9d\xd4\xbd\x93"
  8756. "\x5e\xfa\x3c\xe0\xb0\xd9\xed\xf3"
  8757. "\xd6\x2e\xff\x24\xd8\x71\x6c\xed"
  8758. "\xaf\x55\xeb\x22\xac\x93\x68\x32"
  8759. "\x05\x5b\x47\xdd\xc6\x4a\xcb\xc7"
  8760. "\x10\xe1\x3c\x92\x1a\xf3\x23\x78"
  8761. "\x2b\xa1\xd2\x80\xf4\x12\xb1\x20"
  8762. "\x8f\xff\x26\x35\xdd\xfb\xc7\x4e"
  8763. "\x78\xf1\x2d\x50\x12\x77\xa8\x60"
  8764. "\x7c\x0f\xf5\x16\x2f\x63\x70\x2a"
  8765. "\xc0\x96\x80\x4e\x0a\xb4\x93\x35"
  8766. "\x5d\x1d\x3f\x56\xf7\x2f\xbb\x90"
  8767. "\x11\x16\x8f\xa2\xec\x47\xbe\xac"
  8768. "\x56\x01\x26\x56\xb1\x8c\xb2\x10"
  8769. "\xf9\x1a\xca\xf5\xd1\xb7\x39\x20"
  8770. "\x63\xf1\x69\x20\x4f\x13\x12\x1f"
  8771. "\x5b\x65\xfc\x98\xf7\xc4\x7a\xbe"
  8772. "\xf7\x26\x4d\x2b\x84\x7b\x42\xad"
  8773. "\xd8\x7a\x0a\xb4\xd8\x74\xbf\xc1"
  8774. "\xf0\x6e\xb4\x29\xa3\xbb\xca\x46"
  8775. "\x67\x70\x6a\x2d\xce\x0e\xa2\x8a"
  8776. "\xa9\x87\xbf\x05\xc4\xc1\x04\xa3"
  8777. "\xab\xd4\x45\x43\x8c\xb6\x02\xb0"
  8778. "\x41\xc8\xfc\x44\x3d\x59\xaa\x2e"
  8779. "\x44\x21\x2a\x8d\x88\x9d\x57\xf4"
  8780. "\xa0\x02\x77\xb8\xa6\xa0\xe6\x75"
  8781. "\x5c\x82\x65\x3e\x03\x5c\x29\x8f"
  8782. "\x38\x55\xab\x33\x26\xef\x9f\x43"
  8783. "\x52\xfd\x68\xaf\x36\xb4\xbb\x9a"
  8784. "\x58\x09\x09\x1b\xc3\x65\x46\x46"
  8785. "\x1d\xa7\x94\x18\x23\x50\x2c\xca"
  8786. "\x2c\x55\x19\x97\x01\x9d\x93\x3b"
  8787. "\x63\x86\xf2\x03\x67\x45\xd2\x72"
  8788. "\x28\x52\x6c\xf4\xe3\x1c\xb5\x11"
  8789. "\x13\xf1\xeb\x21\xc7\xd9\x56\x82"
  8790. "\x2b\x82\x39\xbd\x69\x54\xed\x62"
  8791. "\xc3\xe2\xde\x73\xd4\x6a\x12\xae"
  8792. "\x13\x21\x7f\x4b\x5b\xfc\xbf\xe8"
  8793. "\x2b\xbe\x56\xba\x68\x8b\x9a\xb1"
  8794. "\x6e\xfa\xbf\x7e\x5a\x4b\xf1\xac"
  8795. "\x98\x65\x85\xd1\x93\x53\xd3\x7b"
  8796. "\x09\xdd\x4b\x10\x6d\x84\xb0\x13"
  8797. "\x65\xbd\xcf\x52\x09\xc4\x85\xe2"
  8798. "\x84\x74\x15\x65\xb7\xf7\x51\xaf"
  8799. "\x55\xad\xa4\xd1\x22\x54\x70\x94"
  8800. "\xa0\x1c\x90\x41\xfd\x99\xd7\x5a"
  8801. "\x31\xef\xaa\x25\xd0\x7f\x4f\xea"
  8802. "\x1d\x55\x42\xe5\x49\xb0\xd0\x46"
  8803. "\x62\x36\x43\xb2\x82\x15\x75\x50"
  8804. "\xa4\x72\xeb\x54\x27\x1f\x8a\xe4"
  8805. "\x7d\xe9\x66\xc5\xf1\x53\xa4\xd1"
  8806. "\x0c\xeb\xb8\xf8\xbc\xd4\xe2\xe7"
  8807. "\xe1\xf8\x4b\xcb\xa9\xa1\xaf\x15"
  8808. "\x83\xcb\x72\xd0\x33\x79\x00\x2d"
  8809. "\x9f\xd7\xf1\x2e\x1e\x10\xe4\x45"
  8810. "\xc0\x75\x3a\x39\xea\x68\xf7\x5d"
  8811. "\x1b\x73\x8f\xe9\x8e\x0f\x72\x47"
  8812. "\xae\x35\x0a\x31\x7a\x14\x4d\x4a"
  8813. "\x6f\x47\xf7\x7e\x91\x6e\x74\x8b"
  8814. "\x26\x47\xf9\xc3\xf9\xde\x70\xf5"
  8815. "\x61\xab\xa9\x27\x9f\x82\xe4\x9c"
  8816. "\x89\x91\x3f\x2e\x6a\xfd\xb5\x49"
  8817. "\xe9\xfd\x59\x14\x36\x49\x40\x6d"
  8818. "\x32\xd8\x85\x42\xf3\xa5\xdf\x0c"
  8819. "\xa8\x27\xd7\x54\xe2\x63\x2f\xf2"
  8820. "\x7e\x8b\x8b\xe7\xf1\x9a\x95\x35"
  8821. "\x43\xdc\x3a\xe4\xb6\xf4\xd0\xdf"
  8822. "\x9c\xcb\x94\xf3\x21\xa0\x77\x50"
  8823. "\xe2\xc6\xc4\xc6\x5f\x09\x64\x5b"
  8824. "\x92\x90\xd8\xe1\xd1\xed\x4b\x42"
  8825. "\xd7\x37\xaf\x65\x3d\x11\x39\xb6"
  8826. "\x24\x8a\x60\xae\xd6\x1e\xbf\x0e"
  8827. "\x0d\xd7\xdc\x96\x0e\x65\x75\x4e"
  8828. "\x29\x06\x9d\xa4\x51\x3a\x10\x63"
  8829. "\x8f\x17\x07\xd5\x8e\x3c\xf4\x28"
  8830. "\x00\x5a\x5b\x05\x19\xd8\xc0\x6c"
  8831. "\xe5\x15\xe4\x9c\x9d\x71\x9d\x5e"
  8832. "\x94\x29\x1a\xa7\x80\xfa\x0e\x33"
  8833. "\x03\xdd\xb7\x3e\x9a\xa9\x26\x18"
  8834. "\x37\xa9\x64\x08\x4d\x94\x5a\x88"
  8835. "\xca\x35\xce\x81\x02\xe3\x1f\x1b"
  8836. "\x89\x1a\x77\x85\xe3\x41\x6d\x32"
  8837. "\x42\x19\x23\x7d\xc8\x73\xee\x25"
  8838. "\x85\x0d\xf8\x31\x25\x79\x1b\x6f"
  8839. "\x79\x25\xd2\xd8\xd4\x23\xfd\xf7"
  8840. "\x82\x36\x6a\x0c\x46\x22\x15\xe9"
  8841. "\xff\x72\x41\x91\x91\x7d\x3a\xb7"
  8842. "\xdd\x65\x99\x70\xf6\x8d\x84\xf8"
  8843. "\x67\x15\x20\x11\xd6\xb2\x55\x7b"
  8844. "\xdb\x87\xee\xef\x55\x89\x2a\x59"
  8845. "\x2b\x07\x8f\x43\x8a\x59\x3c\x01"
  8846. "\x8b\x65\x54\xa1\x66\xd5\x38\xbd"
  8847. "\xc6\x30\xa9\xcc\x49\xb6\xa8\x1b"
  8848. "\xb8\xc0\x0e\xe3\x45\x28\xe2\xff"
  8849. "\x41\x9f\x7e\x7c\xd1\xae\x9e\x25"
  8850. "\x3f\x4c\x7c\x7c\xf4\xa8\x26\x4d"
  8851. "\x5c\xfd\x4b\x27\x18\xf9\x61\x76"
  8852. "\x48\xba\x0c\x6b\xa9\x4d\xfc\xf5"
  8853. "\x3b\x35\x7e\x2f\x4a\xa9\xc2\x9a"
  8854. "\xae\xab\x86\x09\x89\xc9\xc2\x40"
  8855. "\x39\x2c\x81\xb3\xb8\x17\x67\xc2"
  8856. "\x0d\x32\x4a\x3a\x67\x81\xd7\x1a"
  8857. "\x34\x52\xc5\xdb\x0a\xf5\x63\x39"
  8858. "\xea\x1f\xe1\x7c\xa1\x9e\xc1\x35"
  8859. "\xe3\xb1\x18\x45\x67\xf9\x22\x38"
  8860. "\x95\xd9\x34\x34\x86\xc6\x41\x94"
  8861. "\x15\xf9\x5b\x41\xa6\x87\x8b\xf8"
  8862. "\xd5\xe1\x1b\xe2\x5b\xf3\x86\x10"
  8863. "\xff\xe6\xae\x69\x76\xbc\x0d\xb4"
  8864. "\x09\x90\x0c\xa2\x65\x0c\xad\x74"
  8865. "\xf5\xd7\xff\xda\xc1\xce\x85\xbe"
  8866. "\x00\xa7\xff\x4d\x2f\x65\xd3\x8c"
  8867. "\x86\x2d\x05\xe8\xed\x3e\x6b\x8b"
  8868. "\x0f\x3d\x83\x8c\xf1\x1d\x5b\x96"
  8869. "\x2e\xb1\x9c\xc2\x98\xe1\x70\xb9"
  8870. "\xba\x5c\x8a\x43\xd6\x34\xa7\x2d"
  8871. "\xc9\x92\xae\xf2\xa5\x7b\x05\x49"
  8872. "\xa7\x33\x34\x86\xca\xe4\x96\x23"
  8873. "\x76\x5b\xf2\xc6\xf1\x51\x28\x42"
  8874. "\x7b\xcc\x76\x8f\xfa\xa2\xad\x31"
  8875. "\xd4\xd6\x7a\x6d\x25\x25\x54\xe4"
  8876. "\x3f\x50\x59\xe1\x5c\x05\xb7\x27"
  8877. "\x48\xbf\x07\xec\x1b\x13\xbe\x2b"
  8878. "\xa1\x57\x2b\xd5\xab\xd7\xd0\x4c"
  8879. "\x1e\xcb\x71\x9b\xc5\x90\x85\xd3"
  8880. "\xde\x59\xec\x71\xeb\x89\xbb\xd0"
  8881. "\x09\x50\xe1\x16\x3f\xfd\x1c\x34"
  8882. "\xc3\x1c\xa1\x10\x77\x53\x98\xef"
  8883. "\xf2\xfd\xa5\x01\x59\xc2\x9b\x26"
  8884. "\xc7\x42\xd9\x49\xda\x58\x2b\x6e"
  8885. "\x9f\x53\x19\x76\x7e\xd9\xc9\x0e"
  8886. "\x68\xc8\x7f\x51\x22\x42\xef\x49"
  8887. "\xa4\x55\xb6\x36\xac\x09\xc7\x31"
  8888. "\x88\x15\x4b\x2e\x8f\x3a\x08\xf7"
  8889. "\xd8\xf7\xa8\xc5\xa9\x33\xa6\x45"
  8890. "\xe4\xc4\x94\x76\xf3\x0d\x8f\x7e"
  8891. "\xc8\xf6\xbc\x23\x0a\xb6\x4c\xd3"
  8892. "\x6a\xcd\x36\xc2\x90\x5c\x5c\x3c"
  8893. "\x65\x7b\xc2\xd6\xcc\xe6\x0d\x87"
  8894. "\x73\x2e\x71\x79\x16\x06\x63\x28"
  8895. "\x09\x15\xd8\x89\x38\x38\x3d\xb5"
  8896. "\x42\x1c\x08\x24\xf7\x2a\xd2\x9d"
  8897. "\xc8\xca\xef\xf9\x27\xd8\x07\x86"
  8898. "\xf7\x43\x0b\x55\x15\x3f\x9f\x83"
  8899. "\xef\xdc\x49\x9d\x2a\xc1\x54\x62"
  8900. "\xbd\x9b\x66\x55\x9f\xb7\x12\xf3"
  8901. "\x1b\x4d\x9d\x2a\x5c\xed\x87\x75"
  8902. "\x87\x26\xec\x61\x2c\xb4\x0f\x89"
  8903. "\xb0\xfb\x2e\x68\x5d\x15\xc7\x8d"
  8904. "\x2e\xc0\xd9\xec\xaf\x4f\xd2\x25"
  8905. "\x29\xe8\xd2\x26\x2b\x67\xe9\xfc"
  8906. "\x2b\xa8\x67\x96\x12\x1f\x5b\x96"
  8907. "\xc6\x14\x53\xaf\x44\xea\xd6\xe2"
  8908. "\x94\x98\xe4\x12\x93\x4c\x92\xe0"
  8909. "\x18\xa5\x8d\x2d\xe4\x71\x3c\x47"
  8910. "\x4c\xf7\xe6\x47\x9e\xc0\x68\xdf"
  8911. "\xd4\xf5\x5a\x74\xb1\x2b\x29\x03"
  8912. "\x19\x07\xaf\x90\x62\x5c\x68\x98"
  8913. "\x48\x16\x11\x02\x9d\xee\xb4\x9b"
  8914. "\xe5\x42\x7f\x08\xfd\x16\x32\x0b"
  8915. "\xd0\xb3\xfa\x2b\xb7\x99\xf9\x29"
  8916. "\xcd\x20\x45\x9f\xb3\x1a\x5d\xa2"
  8917. "\xaf\x4d\xe0\xbd\x42\x0d\xbc\x74"
  8918. "\x99\x9c\x8e\x53\x1a\xb4\x3e\xbd"
  8919. "\xa2\x9a\x2d\xf7\xf8\x39\x0f\x67"
  8920. "\x63\xfc\x6b\xc0\xaf\xb3\x4b\x4f"
  8921. "\x55\xc4\xcf\xa7\xc8\x04\x11\x3e"
  8922. "\x14\x32\xbb\x1b\x38\x77\xd6\x7f"
  8923. "\x54\x4c\xdf\x75\xf3\x07\x2d\x33"
  8924. "\x9b\xa8\x20\xe1\x7b\x12\xb5\xf3"
  8925. "\xef\x2f\xce\x72\xe5\x24\x60\xc1"
  8926. "\x30\xe2\xab\xa1\x8e\x11\x09\xa8"
  8927. "\x21\x33\x44\xfe\x7f\x35\x32\x93"
  8928. "\x39\xa7\xad\x8b\x79\x06\xb2\xcb"
  8929. "\x4e\xa9\x5f\xc7\xba\x74\x29\xec"
  8930. "\x93\xa0\x4e\x54\x93\xc0\xbc\x55"
  8931. "\x64\xf0\x48\xe5\x57\x99\xee\x75"
  8932. "\xd6\x79\x0f\x66\xb7\xc6\x57\x76"
  8933. "\xf7\xb7\xf3\x9c\xc5\x60\xe8\x7f"
  8934. "\x83\x76\xd6\x0e\xaa\xe6\x90\x39"
  8935. "\x1d\xa6\x32\x6a\x34\xe3\x55\xf8"
  8936. "\x58\xa0\x58\x7d\x33\xe0\x22\x39"
  8937. "\x44\x64\x87\x86\x5a\x2f\xa7\x7e"
  8938. "\x0f\x38\xea\xb0\x30\xcc\x61\xa5"
  8939. "\x6a\x32\xae\x1e\xf7\xe9\xd0\xa9"
  8940. "\x0c\x32\x4b\xb5\x49\x28\xab\x85"
  8941. "\x2f\x8e\x01\x36\x38\x52\xd0\xba"
  8942. "\xd6\x02\x78\xf8\x0e\x3e\x9c\x8b"
  8943. "\x6b\x45\x99\x3f\x5c\xfe\x58\xf1"
  8944. "\x5c\x94\x04\xe1\xf5\x18\x6d\x51"
  8945. "\xb2\x5d\x18\x20\xb6\xc2\x9a\x42"
  8946. "\x1d\xb3\xab\x3c\xb6\x3a\x13\x03"
  8947. "\xb2\x46\x82\x4f\xfc\x64\xbc\x4f"
  8948. "\xca\xfa\x9c\xc0\xd5\xa7\xbd\x11"
  8949. "\xb7\xe4\x5a\xf6\x6f\x4d\x4d\x54"
  8950. "\xea\xa4\x98\x66\xd4\x22\x3b\xd3"
  8951. "\x8f\x34\x47\xd9\x7c\xf4\x72\x3b"
  8952. "\x4d\x02\x77\xf6\xd6\xdd\x08\x0a"
  8953. "\x81\xe1\x86\x89\x3e\x56\x10\x3c"
  8954. "\xba\xd7\x81\x8c\x08\xbc\x8b\xe2"
  8955. "\x53\xec\xa7\x89\xee\xc8\x56\xb5"
  8956. "\x36\x2c\xb2\x03\xba\x99\xdd\x7c"
  8957. "\x48\xa0\xb0\xbc\x91\x33\xe9\xa8"
  8958. "\xcb\xcd\xcf\x59\x5f\x1f\x15\xe2"
  8959. "\x56\xf5\x4e\x01\x35\x27\x45\x77"
  8960. "\x47\xc8\xbc\xcb\x7e\x39\xc1\x97"
  8961. "\x28\xd3\x84\xfc\x2c\x3e\xc8\xad"
  8962. "\x9c\xf8\x8a\x61\x9c\x28\xaa\xc5"
  8963. "\x99\x20\x43\x85\x9d\xa5\xe2\x8b"
  8964. "\xb8\xae\xeb\xd0\x32\x0d\x52\x78"
  8965. "\x09\x56\x3f\xc7\xd8\x7e\x26\xfc"
  8966. "\x37\xfb\x6f\x04\xfc\xfa\x92\x10"
  8967. "\xac\xf8\x3e\x21\xdc\x8c\x21\x16"
  8968. "\x7d\x67\x6e\xf6\xcd\xda\xb6\x98"
  8969. "\x23\xab\x23\x3c\xb2\x10\xa0\x53"
  8970. "\x5a\x56\x9f\xc5\xd0\xff\xbb\xe4"
  8971. "\x98\x3c\x69\x1e\xdb\x38\x8f\x7e"
  8972. "\x0f\xd2\x98\x88\x81\x8b\x45\x67"
  8973. "\xea\x33\xf1\xeb\xe9\x97\x55\x2e"
  8974. "\xd9\xaa\xeb\x5a\xec\xda\xe1\x68"
  8975. "\xa8\x9d\x3c\x84\x7c\x05\x3d\x62"
  8976. "\x87\x8f\x03\x21\x28\x95\x0c\x89"
  8977. "\x25\x22\x4a\xb0\x93\xa9\x50\xa2"
  8978. "\x2f\x57\x6e\x18\x42\x19\x54\x0c"
  8979. "\x55\x67\xc6\x11\x49\xf4\x5c\xd2"
  8980. "\xe9\x3d\xdd\x8b\x48\x71\x21\x00"
  8981. "\xc3\x9a\x6c\x85\x74\x28\x83\x4a"
  8982. "\x1b\x31\x05\xe1\x06\x92\xe7\xda"
  8983. "\x85\x73\x78\x45\x20\x7f\xae\x13"
  8984. "\x7c\x33\x06\x22\xf4\x83\xf9\x35"
  8985. "\x3f\x6c\x71\xa8\x4e\x48\xbe\x9b"
  8986. "\xce\x8a\xba\xda\xbe\x28\x08\xf7"
  8987. "\xe2\x14\x8c\x71\xea\x72\xf9\x33"
  8988. "\xf2\x88\x3f\xd7\xbb\x69\x6c\x29"
  8989. "\x19\xdc\x84\xce\x1f\x12\x4f\xc8"
  8990. "\xaf\xa5\x04\xba\x5a\xab\xb0\xd9"
  8991. "\x14\x1f\x6c\x68\x98\x39\x89\x7a"
  8992. "\xd9\xd8\x2f\xdf\xa8\x47\x4a\x25"
  8993. "\xe2\xfb\x33\xf4\x59\x78\xe1\x68"
  8994. "\x85\xcf\xfe\x59\x20\xd4\x05\x1d"
  8995. "\x80\x99\xae\xbc\xca\xae\x0f\x2f"
  8996. "\x65\x43\x34\x8e\x7e\xac\xd3\x93"
  8997. "\x2f\xac\x6d\x14\x3d\x02\x07\x70"
  8998. "\x9d\xa4\xf3\x1b\x5c\x36\xfc\x01"
  8999. "\x73\x34\x85\x0c\x6c\xd6\xf1\xbd"
  9000. "\x3f\xdf\xee\xf5\xd9\xba\x56\xef"
  9001. "\xf4\x9b\x6b\xee\x9f\x5a\x78\x6d"
  9002. "\x32\x19\xf4\xf7\xf8\x4c\x69\x0b"
  9003. "\x4b\xbc\xbb\xb7\xf2\x85\xaf\x70"
  9004. "\x75\x24\x6c\x54\xa7\x0e\x4d\x1d"
  9005. "\x01\xbf\x08\xac\xcf\x7f\x2c\xe3"
  9006. "\x14\x89\x5e\x70\x5a\x99\x92\xcd"
  9007. "\x01\x84\xc8\xd2\xab\xe5\x4f\x58"
  9008. "\xe7\x0f\x2f\x0e\xff\x68\xea\xfd"
  9009. "\x15\xb3\x17\xe6\xb0\xe7\x85\xd8"
  9010. "\x23\x2e\x05\xc7\xc9\xc4\x46\x1f"
  9011. "\xe1\x9e\x49\x20\x23\x24\x4d\x7e"
  9012. "\x29\x65\xff\xf4\xb6\xfd\x1a\x85"
  9013. "\xc4\x16\xec\xfc\xea\x7b\xd6\x2c"
  9014. "\x43\xf8\xb7\xbf\x79\xc0\x85\xcd"
  9015. "\xef\xe1\x98\xd3\xa5\xf7\x90\x8c"
  9016. "\xe9\x7f\x80\x6b\xd2\xac\x4c\x30"
  9017. "\xa7\xc6\x61\x6c\xd2\xf9\x2c\xff"
  9018. "\x30\xbc\x22\x81\x7d\x93\x12\xe4"
  9019. "\x0a\xcd\xaf\xdd\xe8\xab\x0a\x1e"
  9020. "\x13\xa4\x27\xc3\x5f\xf7\x4b\xbb"
  9021. "\x37\x09\x4b\x91\x6f\x92\x4f\xaf"
  9022. "\x52\xee\xdf\xef\x09\x6f\xf7\x5c"
  9023. "\x6e\x12\x17\x72\x63\x57\xc7\xba"
  9024. "\x3b\x6b\x38\x32\x73\x1b\x9c\x80"
  9025. "\xc1\x7a\xc6\xcf\xcd\x35\xc0\x6b"
  9026. "\x31\x1a\x6b\xe9\xd8\x2c\x29\x3f"
  9027. "\x96\xfb\xb6\xcd\x13\x91\x3b\xc2"
  9028. "\xd2\xa3\x31\x8d\xa4\xcd\x57\xcd"
  9029. "\x13\x3d\x64\xfd\x06\xce\xe6\xdc"
  9030. "\x0c\x24\x43\x31\x40\x57\xf1\x72"
  9031. "\x17\xe3\x3a\x63\x6d\x35\xcf\x5d"
  9032. "\x97\x40\x59\xdd\xf7\x3c\x02\xf7"
  9033. "\x1c\x7e\x05\xbb\xa9\x0d\x01\xb1"
  9034. "\x8e\xc0\x30\xa9\x53\x24\xc9\x89"
  9035. "\x84\x6d\xaa\xd0\xcd\x91\xc2\x4d"
  9036. "\x91\xb0\x89\xe2\xbf\x83\x44\xaa"
  9037. "\x28\x72\x23\xa0\xc2\xad\xad\x1c"
  9038. "\xfc\x3f\x09\x7a\x0b\xdc\xc5\x1b"
  9039. "\x87\x13\xc6\x5b\x59\x8d\xf2\xc8"
  9040. "\xaf\xdf\x11\x95",
  9041. .rlen = 4100,
  9042. .np = 2,
  9043. .tap = { 4064, 36 },
  9044. },
  9045. };
  9046. /*
  9047. * CTS (Cipher Text Stealing) mode tests
  9048. */
  9049. #define CTS_MODE_ENC_TEST_VECTORS 6
  9050. #define CTS_MODE_DEC_TEST_VECTORS 6
  9051. static struct cipher_testvec cts_mode_enc_tv_template[] = {
  9052. { /* from rfc3962 */
  9053. .klen = 16,
  9054. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9055. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9056. .ilen = 17,
  9057. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9058. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9059. "\x20",
  9060. .rlen = 17,
  9061. .result = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
  9062. "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
  9063. "\x97",
  9064. }, {
  9065. .klen = 16,
  9066. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9067. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9068. .ilen = 31,
  9069. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9070. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9071. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9072. "\x20\x47\x61\x75\x27\x73\x20",
  9073. .rlen = 31,
  9074. .result = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
  9075. "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
  9076. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9077. "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
  9078. }, {
  9079. .klen = 16,
  9080. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9081. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9082. .ilen = 32,
  9083. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9084. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9085. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9086. "\x20\x47\x61\x75\x27\x73\x20\x43",
  9087. .rlen = 32,
  9088. .result = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  9089. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  9090. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9091. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
  9092. }, {
  9093. .klen = 16,
  9094. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9095. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9096. .ilen = 47,
  9097. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9098. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9099. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9100. "\x20\x47\x61\x75\x27\x73\x20\x43"
  9101. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  9102. "\x70\x6c\x65\x61\x73\x65\x2c",
  9103. .rlen = 47,
  9104. .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9105. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  9106. "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
  9107. "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
  9108. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  9109. "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
  9110. }, {
  9111. .klen = 16,
  9112. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9113. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9114. .ilen = 48,
  9115. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9116. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9117. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9118. "\x20\x47\x61\x75\x27\x73\x20\x43"
  9119. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  9120. "\x70\x6c\x65\x61\x73\x65\x2c\x20",
  9121. .rlen = 48,
  9122. .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9123. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  9124. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  9125. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
  9126. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  9127. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
  9128. }, {
  9129. .klen = 16,
  9130. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9131. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9132. .ilen = 64,
  9133. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9134. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9135. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9136. "\x20\x47\x61\x75\x27\x73\x20\x43"
  9137. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  9138. "\x70\x6c\x65\x61\x73\x65\x2c\x20"
  9139. "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
  9140. "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
  9141. .rlen = 64,
  9142. .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9143. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  9144. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  9145. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  9146. "\x48\x07\xef\xe8\x36\xee\x89\xa5"
  9147. "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
  9148. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  9149. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
  9150. }
  9151. };
  9152. static struct cipher_testvec cts_mode_dec_tv_template[] = {
  9153. { /* from rfc3962 */
  9154. .klen = 16,
  9155. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9156. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9157. .rlen = 17,
  9158. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9159. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9160. "\x20",
  9161. .ilen = 17,
  9162. .input = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
  9163. "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
  9164. "\x97",
  9165. }, {
  9166. .klen = 16,
  9167. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9168. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9169. .rlen = 31,
  9170. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9171. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9172. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9173. "\x20\x47\x61\x75\x27\x73\x20",
  9174. .ilen = 31,
  9175. .input = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
  9176. "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
  9177. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9178. "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
  9179. }, {
  9180. .klen = 16,
  9181. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9182. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9183. .rlen = 32,
  9184. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9185. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9186. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9187. "\x20\x47\x61\x75\x27\x73\x20\x43",
  9188. .ilen = 32,
  9189. .input = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  9190. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  9191. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9192. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
  9193. }, {
  9194. .klen = 16,
  9195. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9196. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9197. .rlen = 47,
  9198. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9199. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9200. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9201. "\x20\x47\x61\x75\x27\x73\x20\x43"
  9202. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  9203. "\x70\x6c\x65\x61\x73\x65\x2c",
  9204. .ilen = 47,
  9205. .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9206. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  9207. "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
  9208. "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
  9209. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  9210. "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
  9211. }, {
  9212. .klen = 16,
  9213. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9214. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9215. .rlen = 48,
  9216. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9217. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9218. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9219. "\x20\x47\x61\x75\x27\x73\x20\x43"
  9220. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  9221. "\x70\x6c\x65\x61\x73\x65\x2c\x20",
  9222. .ilen = 48,
  9223. .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9224. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  9225. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  9226. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
  9227. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  9228. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
  9229. }, {
  9230. .klen = 16,
  9231. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9232. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9233. .rlen = 64,
  9234. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9235. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9236. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9237. "\x20\x47\x61\x75\x27\x73\x20\x43"
  9238. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  9239. "\x70\x6c\x65\x61\x73\x65\x2c\x20"
  9240. "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
  9241. "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
  9242. .ilen = 64,
  9243. .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9244. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  9245. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  9246. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  9247. "\x48\x07\xef\xe8\x36\xee\x89\xa5"
  9248. "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
  9249. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  9250. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
  9251. }
  9252. };
  9253. /*
  9254. * Compression stuff.
  9255. */
  9256. #define COMP_BUF_SIZE 512
  9257. struct comp_testvec {
  9258. int inlen, outlen;
  9259. char input[COMP_BUF_SIZE];
  9260. char output[COMP_BUF_SIZE];
  9261. };
  9262. struct pcomp_testvec {
  9263. void *params;
  9264. unsigned int paramsize;
  9265. int inlen, outlen;
  9266. char input[COMP_BUF_SIZE];
  9267. char output[COMP_BUF_SIZE];
  9268. };
  9269. /*
  9270. * Deflate test vectors (null-terminated strings).
  9271. * Params: winbits=-11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL.
  9272. */
  9273. #define DEFLATE_COMP_TEST_VECTORS 2
  9274. #define DEFLATE_DECOMP_TEST_VECTORS 2
  9275. static struct comp_testvec deflate_comp_tv_template[] = {
  9276. {
  9277. .inlen = 70,
  9278. .outlen = 38,
  9279. .input = "Join us now and share the software "
  9280. "Join us now and share the software ",
  9281. .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  9282. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  9283. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  9284. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  9285. "\x71\xbc\x08\x2b\x01\x00",
  9286. }, {
  9287. .inlen = 191,
  9288. .outlen = 122,
  9289. .input = "This document describes a compression method based on the DEFLATE"
  9290. "compression algorithm. This document defines the application of "
  9291. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  9292. .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  9293. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  9294. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  9295. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  9296. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  9297. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  9298. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  9299. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  9300. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  9301. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  9302. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  9303. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  9304. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  9305. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  9306. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  9307. "\xfa\x02",
  9308. },
  9309. };
  9310. static struct comp_testvec deflate_decomp_tv_template[] = {
  9311. {
  9312. .inlen = 122,
  9313. .outlen = 191,
  9314. .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  9315. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  9316. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  9317. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  9318. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  9319. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  9320. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  9321. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  9322. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  9323. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  9324. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  9325. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  9326. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  9327. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  9328. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  9329. "\xfa\x02",
  9330. .output = "This document describes a compression method based on the DEFLATE"
  9331. "compression algorithm. This document defines the application of "
  9332. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  9333. }, {
  9334. .inlen = 38,
  9335. .outlen = 70,
  9336. .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  9337. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  9338. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  9339. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  9340. "\x71\xbc\x08\x2b\x01\x00",
  9341. .output = "Join us now and share the software "
  9342. "Join us now and share the software ",
  9343. },
  9344. };
  9345. #define ZLIB_COMP_TEST_VECTORS 2
  9346. #define ZLIB_DECOMP_TEST_VECTORS 2
  9347. static const struct {
  9348. struct nlattr nla;
  9349. int val;
  9350. } deflate_comp_params[] = {
  9351. {
  9352. .nla = {
  9353. .nla_len = NLA_HDRLEN + sizeof(int),
  9354. .nla_type = ZLIB_COMP_LEVEL,
  9355. },
  9356. .val = Z_DEFAULT_COMPRESSION,
  9357. }, {
  9358. .nla = {
  9359. .nla_len = NLA_HDRLEN + sizeof(int),
  9360. .nla_type = ZLIB_COMP_METHOD,
  9361. },
  9362. .val = Z_DEFLATED,
  9363. }, {
  9364. .nla = {
  9365. .nla_len = NLA_HDRLEN + sizeof(int),
  9366. .nla_type = ZLIB_COMP_WINDOWBITS,
  9367. },
  9368. .val = -11,
  9369. }, {
  9370. .nla = {
  9371. .nla_len = NLA_HDRLEN + sizeof(int),
  9372. .nla_type = ZLIB_COMP_MEMLEVEL,
  9373. },
  9374. .val = MAX_MEM_LEVEL,
  9375. }, {
  9376. .nla = {
  9377. .nla_len = NLA_HDRLEN + sizeof(int),
  9378. .nla_type = ZLIB_COMP_STRATEGY,
  9379. },
  9380. .val = Z_DEFAULT_STRATEGY,
  9381. }
  9382. };
  9383. static const struct {
  9384. struct nlattr nla;
  9385. int val;
  9386. } deflate_decomp_params[] = {
  9387. {
  9388. .nla = {
  9389. .nla_len = NLA_HDRLEN + sizeof(int),
  9390. .nla_type = ZLIB_DECOMP_WINDOWBITS,
  9391. },
  9392. .val = -11,
  9393. }
  9394. };
  9395. static struct pcomp_testvec zlib_comp_tv_template[] = {
  9396. {
  9397. .params = &deflate_comp_params,
  9398. .paramsize = sizeof(deflate_comp_params),
  9399. .inlen = 70,
  9400. .outlen = 38,
  9401. .input = "Join us now and share the software "
  9402. "Join us now and share the software ",
  9403. .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  9404. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  9405. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  9406. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  9407. "\x71\xbc\x08\x2b\x01\x00",
  9408. }, {
  9409. .params = &deflate_comp_params,
  9410. .paramsize = sizeof(deflate_comp_params),
  9411. .inlen = 191,
  9412. .outlen = 122,
  9413. .input = "This document describes a compression method based on the DEFLATE"
  9414. "compression algorithm. This document defines the application of "
  9415. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  9416. .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  9417. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  9418. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  9419. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  9420. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  9421. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  9422. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  9423. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  9424. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  9425. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  9426. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  9427. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  9428. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  9429. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  9430. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  9431. "\xfa\x02",
  9432. },
  9433. };
  9434. static struct pcomp_testvec zlib_decomp_tv_template[] = {
  9435. {
  9436. .params = &deflate_decomp_params,
  9437. .paramsize = sizeof(deflate_decomp_params),
  9438. .inlen = 122,
  9439. .outlen = 191,
  9440. .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  9441. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  9442. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  9443. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  9444. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  9445. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  9446. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  9447. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  9448. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  9449. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  9450. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  9451. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  9452. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  9453. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  9454. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  9455. "\xfa\x02",
  9456. .output = "This document describes a compression method based on the DEFLATE"
  9457. "compression algorithm. This document defines the application of "
  9458. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  9459. }, {
  9460. .params = &deflate_decomp_params,
  9461. .paramsize = sizeof(deflate_decomp_params),
  9462. .inlen = 38,
  9463. .outlen = 70,
  9464. .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  9465. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  9466. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  9467. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  9468. "\x71\xbc\x08\x2b\x01\x00",
  9469. .output = "Join us now and share the software "
  9470. "Join us now and share the software ",
  9471. },
  9472. };
  9473. /*
  9474. * LZO test vectors (null-terminated strings).
  9475. */
  9476. #define LZO_COMP_TEST_VECTORS 2
  9477. #define LZO_DECOMP_TEST_VECTORS 2
  9478. static struct comp_testvec lzo_comp_tv_template[] = {
  9479. {
  9480. .inlen = 70,
  9481. .outlen = 46,
  9482. .input = "Join us now and share the software "
  9483. "Join us now and share the software ",
  9484. .output = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
  9485. "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
  9486. "\x64\x20\x73\x68\x61\x72\x65\x20"
  9487. "\x74\x68\x65\x20\x73\x6f\x66\x74"
  9488. "\x77\x70\x01\x01\x4a\x6f\x69\x6e"
  9489. "\x3d\x88\x00\x11\x00\x00",
  9490. }, {
  9491. .inlen = 159,
  9492. .outlen = 133,
  9493. .input = "This document describes a compression method based on the LZO "
  9494. "compression algorithm. This document defines the application of "
  9495. "the LZO algorithm used in UBIFS.",
  9496. .output = "\x00\x2b\x54\x68\x69\x73\x20\x64"
  9497. "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
  9498. "\x64\x65\x73\x63\x72\x69\x62\x65"
  9499. "\x73\x20\x61\x20\x63\x6f\x6d\x70"
  9500. "\x72\x65\x73\x73\x69\x6f\x6e\x20"
  9501. "\x6d\x65\x74\x68\x6f\x64\x20\x62"
  9502. "\x61\x73\x65\x64\x20\x6f\x6e\x20"
  9503. "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
  9504. "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
  9505. "\x69\x74\x68\x6d\x2e\x20\x20\x54"
  9506. "\x68\x69\x73\x2a\x54\x01\x02\x66"
  9507. "\x69\x6e\x65\x73\x94\x06\x05\x61"
  9508. "\x70\x70\x6c\x69\x63\x61\x74\x76"
  9509. "\x0a\x6f\x66\x88\x02\x60\x09\x27"
  9510. "\xf0\x00\x0c\x20\x75\x73\x65\x64"
  9511. "\x20\x69\x6e\x20\x55\x42\x49\x46"
  9512. "\x53\x2e\x11\x00\x00",
  9513. },
  9514. };
  9515. static struct comp_testvec lzo_decomp_tv_template[] = {
  9516. {
  9517. .inlen = 133,
  9518. .outlen = 159,
  9519. .input = "\x00\x2b\x54\x68\x69\x73\x20\x64"
  9520. "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
  9521. "\x64\x65\x73\x63\x72\x69\x62\x65"
  9522. "\x73\x20\x61\x20\x63\x6f\x6d\x70"
  9523. "\x72\x65\x73\x73\x69\x6f\x6e\x20"
  9524. "\x6d\x65\x74\x68\x6f\x64\x20\x62"
  9525. "\x61\x73\x65\x64\x20\x6f\x6e\x20"
  9526. "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
  9527. "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
  9528. "\x69\x74\x68\x6d\x2e\x20\x20\x54"
  9529. "\x68\x69\x73\x2a\x54\x01\x02\x66"
  9530. "\x69\x6e\x65\x73\x94\x06\x05\x61"
  9531. "\x70\x70\x6c\x69\x63\x61\x74\x76"
  9532. "\x0a\x6f\x66\x88\x02\x60\x09\x27"
  9533. "\xf0\x00\x0c\x20\x75\x73\x65\x64"
  9534. "\x20\x69\x6e\x20\x55\x42\x49\x46"
  9535. "\x53\x2e\x11\x00\x00",
  9536. .output = "This document describes a compression method based on the LZO "
  9537. "compression algorithm. This document defines the application of "
  9538. "the LZO algorithm used in UBIFS.",
  9539. }, {
  9540. .inlen = 46,
  9541. .outlen = 70,
  9542. .input = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
  9543. "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
  9544. "\x64\x20\x73\x68\x61\x72\x65\x20"
  9545. "\x74\x68\x65\x20\x73\x6f\x66\x74"
  9546. "\x77\x70\x01\x01\x4a\x6f\x69\x6e"
  9547. "\x3d\x88\x00\x11\x00\x00",
  9548. .output = "Join us now and share the software "
  9549. "Join us now and share the software ",
  9550. },
  9551. };
  9552. /*
  9553. * Michael MIC test vectors from IEEE 802.11i
  9554. */
  9555. #define MICHAEL_MIC_TEST_VECTORS 6
  9556. static struct hash_testvec michael_mic_tv_template[] = {
  9557. {
  9558. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  9559. .ksize = 8,
  9560. .plaintext = zeroed_string,
  9561. .psize = 0,
  9562. .digest = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
  9563. },
  9564. {
  9565. .key = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
  9566. .ksize = 8,
  9567. .plaintext = "M",
  9568. .psize = 1,
  9569. .digest = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
  9570. },
  9571. {
  9572. .key = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
  9573. .ksize = 8,
  9574. .plaintext = "Mi",
  9575. .psize = 2,
  9576. .digest = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
  9577. },
  9578. {
  9579. .key = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
  9580. .ksize = 8,
  9581. .plaintext = "Mic",
  9582. .psize = 3,
  9583. .digest = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
  9584. },
  9585. {
  9586. .key = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
  9587. .ksize = 8,
  9588. .plaintext = "Mich",
  9589. .psize = 4,
  9590. .digest = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
  9591. },
  9592. {
  9593. .key = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
  9594. .ksize = 8,
  9595. .plaintext = "Michael",
  9596. .psize = 7,
  9597. .digest = "\x0a\x94\x2b\x12\x4e\xca\xa5\x46",
  9598. }
  9599. };
  9600. /*
  9601. * CRC32C test vectors
  9602. */
  9603. #define CRC32C_TEST_VECTORS 14
  9604. static struct hash_testvec crc32c_tv_template[] = {
  9605. {
  9606. .psize = 0,
  9607. .digest = "\x00\x00\x00\x00",
  9608. },
  9609. {
  9610. .key = "\x87\xa9\xcb\xed",
  9611. .ksize = 4,
  9612. .psize = 0,
  9613. .digest = "\x78\x56\x34\x12",
  9614. },
  9615. {
  9616. .key = "\xff\xff\xff\xff",
  9617. .ksize = 4,
  9618. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  9619. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  9620. "\x11\x12\x13\x14\x15\x16\x17\x18"
  9621. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  9622. "\x21\x22\x23\x24\x25\x26\x27\x28",
  9623. .psize = 40,
  9624. .digest = "\x7f\x15\x2c\x0e",
  9625. },
  9626. {
  9627. .key = "\xff\xff\xff\xff",
  9628. .ksize = 4,
  9629. .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  9630. "\x31\x32\x33\x34\x35\x36\x37\x38"
  9631. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  9632. "\x41\x42\x43\x44\x45\x46\x47\x48"
  9633. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
  9634. .psize = 40,
  9635. .digest = "\xf6\xeb\x80\xe9",
  9636. },
  9637. {
  9638. .key = "\xff\xff\xff\xff",
  9639. .ksize = 4,
  9640. .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
  9641. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  9642. "\x61\x62\x63\x64\x65\x66\x67\x68"
  9643. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  9644. "\x71\x72\x73\x74\x75\x76\x77\x78",
  9645. .psize = 40,
  9646. .digest = "\xed\xbd\x74\xde",
  9647. },
  9648. {
  9649. .key = "\xff\xff\xff\xff",
  9650. .ksize = 4,
  9651. .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  9652. "\x81\x82\x83\x84\x85\x86\x87\x88"
  9653. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  9654. "\x91\x92\x93\x94\x95\x96\x97\x98"
  9655. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
  9656. .psize = 40,
  9657. .digest = "\x62\xc8\x79\xd5",
  9658. },
  9659. {
  9660. .key = "\xff\xff\xff\xff",
  9661. .ksize = 4,
  9662. .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  9663. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  9664. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  9665. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  9666. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
  9667. .psize = 40,
  9668. .digest = "\xd0\x9a\x97\xba",
  9669. },
  9670. {
  9671. .key = "\xff\xff\xff\xff",
  9672. .ksize = 4,
  9673. .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  9674. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  9675. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  9676. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  9677. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  9678. .psize = 40,
  9679. .digest = "\x13\xd9\x29\x2b",
  9680. },
  9681. {
  9682. .key = "\x80\xea\xd3\xf1",
  9683. .ksize = 4,
  9684. .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  9685. "\x31\x32\x33\x34\x35\x36\x37\x38"
  9686. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  9687. "\x41\x42\x43\x44\x45\x46\x47\x48"
  9688. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
  9689. .psize = 40,
  9690. .digest = "\x0c\xb5\xe2\xa2",
  9691. },
  9692. {
  9693. .key = "\xf3\x4a\x1d\x5d",
  9694. .ksize = 4,
  9695. .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
  9696. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  9697. "\x61\x62\x63\x64\x65\x66\x67\x68"
  9698. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  9699. "\x71\x72\x73\x74\x75\x76\x77\x78",
  9700. .psize = 40,
  9701. .digest = "\xd1\x7f\xfb\xa6",
  9702. },
  9703. {
  9704. .key = "\x2e\x80\x04\x59",
  9705. .ksize = 4,
  9706. .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  9707. "\x81\x82\x83\x84\x85\x86\x87\x88"
  9708. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  9709. "\x91\x92\x93\x94\x95\x96\x97\x98"
  9710. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
  9711. .psize = 40,
  9712. .digest = "\x59\x33\xe6\x7a",
  9713. },
  9714. {
  9715. .key = "\xa6\xcc\x19\x85",
  9716. .ksize = 4,
  9717. .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  9718. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  9719. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  9720. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  9721. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
  9722. .psize = 40,
  9723. .digest = "\xbe\x03\x01\xd2",
  9724. },
  9725. {
  9726. .key = "\x41\xfc\xfe\x2d",
  9727. .ksize = 4,
  9728. .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  9729. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  9730. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  9731. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  9732. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  9733. .psize = 40,
  9734. .digest = "\x75\xd3\xc5\x24",
  9735. },
  9736. {
  9737. .key = "\xff\xff\xff\xff",
  9738. .ksize = 4,
  9739. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  9740. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  9741. "\x11\x12\x13\x14\x15\x16\x17\x18"
  9742. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  9743. "\x21\x22\x23\x24\x25\x26\x27\x28"
  9744. "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  9745. "\x31\x32\x33\x34\x35\x36\x37\x38"
  9746. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  9747. "\x41\x42\x43\x44\x45\x46\x47\x48"
  9748. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
  9749. "\x51\x52\x53\x54\x55\x56\x57\x58"
  9750. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  9751. "\x61\x62\x63\x64\x65\x66\x67\x68"
  9752. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  9753. "\x71\x72\x73\x74\x75\x76\x77\x78"
  9754. "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  9755. "\x81\x82\x83\x84\x85\x86\x87\x88"
  9756. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  9757. "\x91\x92\x93\x94\x95\x96\x97\x98"
  9758. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
  9759. "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  9760. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  9761. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  9762. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  9763. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
  9764. "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  9765. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  9766. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  9767. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  9768. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  9769. .psize = 240,
  9770. .digest = "\x75\xd3\xc5\x24",
  9771. .np = 2,
  9772. .tap = { 31, 209 }
  9773. },
  9774. };
  9775. #endif /* _CRYPTO_TESTMGR_H */