testmgr.h 311 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611
  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. * This program is free software; you can redistribute it and/or modify it
  10. * under the terms of the GNU General Public License as published by the Free
  11. * Software Foundation; either version 2 of the License, or (at your option)
  12. * any later version.
  13. *
  14. */
  15. #ifndef _CRYPTO_TESTMGR_H
  16. #define _CRYPTO_TESTMGR_H
  17. #include <linux/netlink.h>
  18. #include <linux/zlib.h>
  19. #include <crypto/compress.h>
  20. #define MAX_DIGEST_SIZE 64
  21. #define MAX_TAP 8
  22. #define MAX_KEYLEN 56
  23. #define MAX_IVLEN 32
  24. struct hash_testvec {
  25. /* only used with keyed hash algorithms */
  26. char *key;
  27. char *plaintext;
  28. char *digest;
  29. unsigned char tap[MAX_TAP];
  30. unsigned char psize;
  31. unsigned char np;
  32. unsigned char ksize;
  33. };
  34. struct cipher_testvec {
  35. char *key;
  36. char *iv;
  37. char *input;
  38. char *result;
  39. unsigned short tap[MAX_TAP];
  40. int np;
  41. unsigned char fail;
  42. unsigned char wk; /* weak key flag */
  43. unsigned char klen;
  44. unsigned short ilen;
  45. unsigned short rlen;
  46. };
  47. struct aead_testvec {
  48. char *key;
  49. char *iv;
  50. char *input;
  51. char *assoc;
  52. char *result;
  53. unsigned char tap[MAX_TAP];
  54. unsigned char atap[MAX_TAP];
  55. int np;
  56. int anp;
  57. unsigned char fail;
  58. unsigned char novrfy; /* ccm dec verification failure expected */
  59. unsigned char wk; /* weak key flag */
  60. unsigned char klen;
  61. unsigned short ilen;
  62. unsigned short alen;
  63. unsigned short rlen;
  64. };
  65. struct cprng_testvec {
  66. char *key;
  67. char *dt;
  68. char *v;
  69. char *result;
  70. unsigned char klen;
  71. unsigned short dtlen;
  72. unsigned short vlen;
  73. unsigned short rlen;
  74. unsigned short loops;
  75. };
  76. static char zeroed_string[48];
  77. /*
  78. * MD4 test vectors from RFC1320
  79. */
  80. #define MD4_TEST_VECTORS 7
  81. static struct hash_testvec md4_tv_template [] = {
  82. {
  83. .plaintext = "",
  84. .digest = "\x31\xd6\xcf\xe0\xd1\x6a\xe9\x31"
  85. "\xb7\x3c\x59\xd7\xe0\xc0\x89\xc0",
  86. }, {
  87. .plaintext = "a",
  88. .psize = 1,
  89. .digest = "\xbd\xe5\x2c\xb3\x1d\xe3\x3e\x46"
  90. "\x24\x5e\x05\xfb\xdb\xd6\xfb\x24",
  91. }, {
  92. .plaintext = "abc",
  93. .psize = 3,
  94. .digest = "\xa4\x48\x01\x7a\xaf\x21\xd8\x52"
  95. "\x5f\xc1\x0a\xe8\x7a\xa6\x72\x9d",
  96. }, {
  97. .plaintext = "message digest",
  98. .psize = 14,
  99. .digest = "\xd9\x13\x0a\x81\x64\x54\x9f\xe8"
  100. "\x18\x87\x48\x06\xe1\xc7\x01\x4b",
  101. }, {
  102. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  103. .psize = 26,
  104. .digest = "\xd7\x9e\x1c\x30\x8a\xa5\xbb\xcd"
  105. "\xee\xa8\xed\x63\xdf\x41\x2d\xa9",
  106. .np = 2,
  107. .tap = { 13, 13 },
  108. }, {
  109. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
  110. .psize = 62,
  111. .digest = "\x04\x3f\x85\x82\xf2\x41\xdb\x35"
  112. "\x1c\xe6\x27\xe1\x53\xe7\xf0\xe4",
  113. }, {
  114. .plaintext = "123456789012345678901234567890123456789012345678901234567890123"
  115. "45678901234567890",
  116. .psize = 80,
  117. .digest = "\xe3\x3b\x4d\xdc\x9c\x38\xf2\x19"
  118. "\x9c\x3e\x7b\x16\x4f\xcc\x05\x36",
  119. },
  120. };
  121. /*
  122. * MD5 test vectors from RFC1321
  123. */
  124. #define MD5_TEST_VECTORS 7
  125. static struct hash_testvec md5_tv_template[] = {
  126. {
  127. .digest = "\xd4\x1d\x8c\xd9\x8f\x00\xb2\x04"
  128. "\xe9\x80\x09\x98\xec\xf8\x42\x7e",
  129. }, {
  130. .plaintext = "a",
  131. .psize = 1,
  132. .digest = "\x0c\xc1\x75\xb9\xc0\xf1\xb6\xa8"
  133. "\x31\xc3\x99\xe2\x69\x77\x26\x61",
  134. }, {
  135. .plaintext = "abc",
  136. .psize = 3,
  137. .digest = "\x90\x01\x50\x98\x3c\xd2\x4f\xb0"
  138. "\xd6\x96\x3f\x7d\x28\xe1\x7f\x72",
  139. }, {
  140. .plaintext = "message digest",
  141. .psize = 14,
  142. .digest = "\xf9\x6b\x69\x7d\x7c\xb7\x93\x8d"
  143. "\x52\x5a\x2f\x31\xaa\xf1\x61\xd0",
  144. }, {
  145. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  146. .psize = 26,
  147. .digest = "\xc3\xfc\xd3\xd7\x61\x92\xe4\x00"
  148. "\x7d\xfb\x49\x6c\xca\x67\xe1\x3b",
  149. .np = 2,
  150. .tap = {13, 13}
  151. }, {
  152. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
  153. .psize = 62,
  154. .digest = "\xd1\x74\xab\x98\xd2\x77\xd9\xf5"
  155. "\xa5\x61\x1c\x2c\x9f\x41\x9d\x9f",
  156. }, {
  157. .plaintext = "12345678901234567890123456789012345678901234567890123456789012"
  158. "345678901234567890",
  159. .psize = 80,
  160. .digest = "\x57\xed\xf4\xa2\x2b\xe3\xc9\x55"
  161. "\xac\x49\xda\x2e\x21\x07\xb6\x7a",
  162. }
  163. };
  164. /*
  165. * RIPEMD-128 test vectors from ISO/IEC 10118-3:2004(E)
  166. */
  167. #define RMD128_TEST_VECTORS 10
  168. static struct hash_testvec rmd128_tv_template[] = {
  169. {
  170. .digest = "\xcd\xf2\x62\x13\xa1\x50\xdc\x3e"
  171. "\xcb\x61\x0f\x18\xf6\xb3\x8b\x46",
  172. }, {
  173. .plaintext = "a",
  174. .psize = 1,
  175. .digest = "\x86\xbe\x7a\xfa\x33\x9d\x0f\xc7"
  176. "\xcf\xc7\x85\xe7\x2f\x57\x8d\x33",
  177. }, {
  178. .plaintext = "abc",
  179. .psize = 3,
  180. .digest = "\xc1\x4a\x12\x19\x9c\x66\xe4\xba"
  181. "\x84\x63\x6b\x0f\x69\x14\x4c\x77",
  182. }, {
  183. .plaintext = "message digest",
  184. .psize = 14,
  185. .digest = "\x9e\x32\x7b\x3d\x6e\x52\x30\x62"
  186. "\xaf\xc1\x13\x2d\x7d\xf9\xd1\xb8",
  187. }, {
  188. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  189. .psize = 26,
  190. .digest = "\xfd\x2a\xa6\x07\xf7\x1d\xc8\xf5"
  191. "\x10\x71\x49\x22\xb3\x71\x83\x4e",
  192. }, {
  193. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
  194. "fghijklmnopqrstuvwxyz0123456789",
  195. .psize = 62,
  196. .digest = "\xd1\xe9\x59\xeb\x17\x9c\x91\x1f"
  197. "\xae\xa4\x62\x4c\x60\xc5\xc7\x02",
  198. }, {
  199. .plaintext = "1234567890123456789012345678901234567890"
  200. "1234567890123456789012345678901234567890",
  201. .psize = 80,
  202. .digest = "\x3f\x45\xef\x19\x47\x32\xc2\xdb"
  203. "\xb2\xc4\xa2\xc7\x69\x79\x5f\xa3",
  204. }, {
  205. .plaintext = "abcdbcdecdefdefgefghfghighij"
  206. "hijkijkljklmklmnlmnomnopnopq",
  207. .psize = 56,
  208. .digest = "\xa1\xaa\x06\x89\xd0\xfa\xfa\x2d"
  209. "\xdc\x22\xe8\x8b\x49\x13\x3a\x06",
  210. .np = 2,
  211. .tap = { 28, 28 },
  212. }, {
  213. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
  214. "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
  215. "lmnopqrsmnopqrstnopqrstu",
  216. .psize = 112,
  217. .digest = "\xd4\xec\xc9\x13\xe1\xdf\x77\x6b"
  218. "\xf4\x8d\xe9\xd5\x5b\x1f\x25\x46",
  219. }, {
  220. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  221. .psize = 32,
  222. .digest = "\x13\xfc\x13\xe8\xef\xff\x34\x7d"
  223. "\xe1\x93\xff\x46\xdb\xac\xcf\xd4",
  224. }
  225. };
  226. /*
  227. * RIPEMD-160 test vectors from ISO/IEC 10118-3:2004(E)
  228. */
  229. #define RMD160_TEST_VECTORS 10
  230. static struct hash_testvec rmd160_tv_template[] = {
  231. {
  232. .digest = "\x9c\x11\x85\xa5\xc5\xe9\xfc\x54\x61\x28"
  233. "\x08\x97\x7e\xe8\xf5\x48\xb2\x25\x8d\x31",
  234. }, {
  235. .plaintext = "a",
  236. .psize = 1,
  237. .digest = "\x0b\xdc\x9d\x2d\x25\x6b\x3e\xe9\xda\xae"
  238. "\x34\x7b\xe6\xf4\xdc\x83\x5a\x46\x7f\xfe",
  239. }, {
  240. .plaintext = "abc",
  241. .psize = 3,
  242. .digest = "\x8e\xb2\x08\xf7\xe0\x5d\x98\x7a\x9b\x04"
  243. "\x4a\x8e\x98\xc6\xb0\x87\xf1\x5a\x0b\xfc",
  244. }, {
  245. .plaintext = "message digest",
  246. .psize = 14,
  247. .digest = "\x5d\x06\x89\xef\x49\xd2\xfa\xe5\x72\xb8"
  248. "\x81\xb1\x23\xa8\x5f\xfa\x21\x59\x5f\x36",
  249. }, {
  250. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  251. .psize = 26,
  252. .digest = "\xf7\x1c\x27\x10\x9c\x69\x2c\x1b\x56\xbb"
  253. "\xdc\xeb\x5b\x9d\x28\x65\xb3\x70\x8d\xbc",
  254. }, {
  255. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
  256. "fghijklmnopqrstuvwxyz0123456789",
  257. .psize = 62,
  258. .digest = "\xb0\xe2\x0b\x6e\x31\x16\x64\x02\x86\xed"
  259. "\x3a\x87\xa5\x71\x30\x79\xb2\x1f\x51\x89",
  260. }, {
  261. .plaintext = "1234567890123456789012345678901234567890"
  262. "1234567890123456789012345678901234567890",
  263. .psize = 80,
  264. .digest = "\x9b\x75\x2e\x45\x57\x3d\x4b\x39\xf4\xdb"
  265. "\xd3\x32\x3c\xab\x82\xbf\x63\x32\x6b\xfb",
  266. }, {
  267. .plaintext = "abcdbcdecdefdefgefghfghighij"
  268. "hijkijkljklmklmnlmnomnopnopq",
  269. .psize = 56,
  270. .digest = "\x12\xa0\x53\x38\x4a\x9c\x0c\x88\xe4\x05"
  271. "\xa0\x6c\x27\xdc\xf4\x9a\xda\x62\xeb\x2b",
  272. .np = 2,
  273. .tap = { 28, 28 },
  274. }, {
  275. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
  276. "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
  277. "lmnopqrsmnopqrstnopqrstu",
  278. .psize = 112,
  279. .digest = "\x6f\x3f\xa3\x9b\x6b\x50\x3c\x38\x4f\x91"
  280. "\x9a\x49\xa7\xaa\x5c\x2c\x08\xbd\xfb\x45",
  281. }, {
  282. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  283. .psize = 32,
  284. .digest = "\x94\xc2\x64\x11\x54\x04\xe6\x33\x79\x0d"
  285. "\xfc\xc8\x7b\x58\x7d\x36\x77\x06\x7d\x9f",
  286. }
  287. };
  288. /*
  289. * RIPEMD-256 test vectors
  290. */
  291. #define RMD256_TEST_VECTORS 8
  292. static struct hash_testvec rmd256_tv_template[] = {
  293. {
  294. .digest = "\x02\xba\x4c\x4e\x5f\x8e\xcd\x18"
  295. "\x77\xfc\x52\xd6\x4d\x30\xe3\x7a"
  296. "\x2d\x97\x74\xfb\x1e\x5d\x02\x63"
  297. "\x80\xae\x01\x68\xe3\xc5\x52\x2d",
  298. }, {
  299. .plaintext = "a",
  300. .psize = 1,
  301. .digest = "\xf9\x33\x3e\x45\xd8\x57\xf5\xd9"
  302. "\x0a\x91\xba\xb7\x0a\x1e\xba\x0c"
  303. "\xfb\x1b\xe4\xb0\x78\x3c\x9a\xcf"
  304. "\xcd\x88\x3a\x91\x34\x69\x29\x25",
  305. }, {
  306. .plaintext = "abc",
  307. .psize = 3,
  308. .digest = "\xaf\xbd\x6e\x22\x8b\x9d\x8c\xbb"
  309. "\xce\xf5\xca\x2d\x03\xe6\xdb\xa1"
  310. "\x0a\xc0\xbc\x7d\xcb\xe4\x68\x0e"
  311. "\x1e\x42\xd2\xe9\x75\x45\x9b\x65",
  312. }, {
  313. .plaintext = "message digest",
  314. .psize = 14,
  315. .digest = "\x87\xe9\x71\x75\x9a\x1c\xe4\x7a"
  316. "\x51\x4d\x5c\x91\x4c\x39\x2c\x90"
  317. "\x18\xc7\xc4\x6b\xc1\x44\x65\x55"
  318. "\x4a\xfc\xdf\x54\xa5\x07\x0c\x0e",
  319. }, {
  320. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  321. .psize = 26,
  322. .digest = "\x64\x9d\x30\x34\x75\x1e\xa2\x16"
  323. "\x77\x6b\xf9\xa1\x8a\xcc\x81\xbc"
  324. "\x78\x96\x11\x8a\x51\x97\x96\x87"
  325. "\x82\xdd\x1f\xd9\x7d\x8d\x51\x33",
  326. }, {
  327. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
  328. "fghijklmnopqrstuvwxyz0123456789",
  329. .psize = 62,
  330. .digest = "\x57\x40\xa4\x08\xac\x16\xb7\x20"
  331. "\xb8\x44\x24\xae\x93\x1c\xbb\x1f"
  332. "\xe3\x63\xd1\xd0\xbf\x40\x17\xf1"
  333. "\xa8\x9f\x7e\xa6\xde\x77\xa0\xb8",
  334. }, {
  335. .plaintext = "1234567890123456789012345678901234567890"
  336. "1234567890123456789012345678901234567890",
  337. .psize = 80,
  338. .digest = "\x06\xfd\xcc\x7a\x40\x95\x48\xaa"
  339. "\xf9\x13\x68\xc0\x6a\x62\x75\xb5"
  340. "\x53\xe3\xf0\x99\xbf\x0e\xa4\xed"
  341. "\xfd\x67\x78\xdf\x89\xa8\x90\xdd",
  342. }, {
  343. .plaintext = "abcdbcdecdefdefgefghfghighij"
  344. "hijkijkljklmklmnlmnomnopnopq",
  345. .psize = 56,
  346. .digest = "\x38\x43\x04\x55\x83\xaa\xc6\xc8"
  347. "\xc8\xd9\x12\x85\x73\xe7\xa9\x80"
  348. "\x9a\xfb\x2a\x0f\x34\xcc\xc3\x6e"
  349. "\xa9\xe7\x2f\x16\xf6\x36\x8e\x3f",
  350. .np = 2,
  351. .tap = { 28, 28 },
  352. }
  353. };
  354. /*
  355. * RIPEMD-320 test vectors
  356. */
  357. #define RMD320_TEST_VECTORS 8
  358. static struct hash_testvec rmd320_tv_template[] = {
  359. {
  360. .digest = "\x22\xd6\x5d\x56\x61\x53\x6c\xdc\x75\xc1"
  361. "\xfd\xf5\xc6\xde\x7b\x41\xb9\xf2\x73\x25"
  362. "\xeb\xc6\x1e\x85\x57\x17\x7d\x70\x5a\x0e"
  363. "\xc8\x80\x15\x1c\x3a\x32\xa0\x08\x99\xb8",
  364. }, {
  365. .plaintext = "a",
  366. .psize = 1,
  367. .digest = "\xce\x78\x85\x06\x38\xf9\x26\x58\xa5\xa5"
  368. "\x85\x09\x75\x79\x92\x6d\xda\x66\x7a\x57"
  369. "\x16\x56\x2c\xfc\xf6\xfb\xe7\x7f\x63\x54"
  370. "\x2f\x99\xb0\x47\x05\xd6\x97\x0d\xff\x5d",
  371. }, {
  372. .plaintext = "abc",
  373. .psize = 3,
  374. .digest = "\xde\x4c\x01\xb3\x05\x4f\x89\x30\xa7\x9d"
  375. "\x09\xae\x73\x8e\x92\x30\x1e\x5a\x17\x08"
  376. "\x5b\xef\xfd\xc1\xb8\xd1\x16\x71\x3e\x74"
  377. "\xf8\x2f\xa9\x42\xd6\x4c\xdb\xc4\x68\x2d",
  378. }, {
  379. .plaintext = "message digest",
  380. .psize = 14,
  381. .digest = "\x3a\x8e\x28\x50\x2e\xd4\x5d\x42\x2f\x68"
  382. "\x84\x4f\x9d\xd3\x16\xe7\xb9\x85\x33\xfa"
  383. "\x3f\x2a\x91\xd2\x9f\x84\xd4\x25\xc8\x8d"
  384. "\x6b\x4e\xff\x72\x7d\xf6\x6a\x7c\x01\x97",
  385. }, {
  386. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  387. .psize = 26,
  388. .digest = "\xca\xbd\xb1\x81\x0b\x92\x47\x0a\x20\x93"
  389. "\xaa\x6b\xce\x05\x95\x2c\x28\x34\x8c\xf4"
  390. "\x3f\xf6\x08\x41\x97\x51\x66\xbb\x40\xed"
  391. "\x23\x40\x04\xb8\x82\x44\x63\xe6\xb0\x09",
  392. }, {
  393. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
  394. "fghijklmnopqrstuvwxyz0123456789",
  395. .psize = 62,
  396. .digest = "\xed\x54\x49\x40\xc8\x6d\x67\xf2\x50\xd2"
  397. "\x32\xc3\x0b\x7b\x3e\x57\x70\xe0\xc6\x0c"
  398. "\x8c\xb9\xa4\xca\xfe\x3b\x11\x38\x8a\xf9"
  399. "\x92\x0e\x1b\x99\x23\x0b\x84\x3c\x86\xa4",
  400. }, {
  401. .plaintext = "1234567890123456789012345678901234567890"
  402. "1234567890123456789012345678901234567890",
  403. .psize = 80,
  404. .digest = "\x55\x78\x88\xaf\x5f\x6d\x8e\xd6\x2a\xb6"
  405. "\x69\x45\xc6\xd2\xa0\xa4\x7e\xcd\x53\x41"
  406. "\xe9\x15\xeb\x8f\xea\x1d\x05\x24\x95\x5f"
  407. "\x82\x5d\xc7\x17\xe4\xa0\x08\xab\x2d\x42",
  408. }, {
  409. .plaintext = "abcdbcdecdefdefgefghfghighij"
  410. "hijkijkljklmklmnlmnomnopnopq",
  411. .psize = 56,
  412. .digest = "\xd0\x34\xa7\x95\x0c\xf7\x22\x02\x1b\xa4"
  413. "\xb8\x4d\xf7\x69\xa5\xde\x20\x60\xe2\x59"
  414. "\xdf\x4c\x9b\xb4\xa4\x26\x8c\x0e\x93\x5b"
  415. "\xbc\x74\x70\xa9\x69\xc9\xd0\x72\xa1\xac",
  416. .np = 2,
  417. .tap = { 28, 28 },
  418. }
  419. };
  420. /*
  421. * SHA1 test vectors from from FIPS PUB 180-1
  422. */
  423. #define SHA1_TEST_VECTORS 2
  424. static struct hash_testvec sha1_tv_template[] = {
  425. {
  426. .plaintext = "abc",
  427. .psize = 3,
  428. .digest = "\xa9\x99\x3e\x36\x47\x06\x81\x6a\xba\x3e"
  429. "\x25\x71\x78\x50\xc2\x6c\x9c\xd0\xd8\x9d",
  430. }, {
  431. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  432. .psize = 56,
  433. .digest = "\x84\x98\x3e\x44\x1c\x3b\xd2\x6e\xba\xae"
  434. "\x4a\xa1\xf9\x51\x29\xe5\xe5\x46\x70\xf1",
  435. .np = 2,
  436. .tap = { 28, 28 }
  437. }
  438. };
  439. /*
  440. * SHA224 test vectors from from FIPS PUB 180-2
  441. */
  442. #define SHA224_TEST_VECTORS 2
  443. static struct hash_testvec sha224_tv_template[] = {
  444. {
  445. .plaintext = "abc",
  446. .psize = 3,
  447. .digest = "\x23\x09\x7D\x22\x34\x05\xD8\x22"
  448. "\x86\x42\xA4\x77\xBD\xA2\x55\xB3"
  449. "\x2A\xAD\xBC\xE4\xBD\xA0\xB3\xF7"
  450. "\xE3\x6C\x9D\xA7",
  451. }, {
  452. .plaintext =
  453. "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  454. .psize = 56,
  455. .digest = "\x75\x38\x8B\x16\x51\x27\x76\xCC"
  456. "\x5D\xBA\x5D\xA1\xFD\x89\x01\x50"
  457. "\xB0\xC6\x45\x5C\xB4\xF5\x8B\x19"
  458. "\x52\x52\x25\x25",
  459. .np = 2,
  460. .tap = { 28, 28 }
  461. }
  462. };
  463. /*
  464. * SHA256 test vectors from from NIST
  465. */
  466. #define SHA256_TEST_VECTORS 2
  467. static struct hash_testvec sha256_tv_template[] = {
  468. {
  469. .plaintext = "abc",
  470. .psize = 3,
  471. .digest = "\xba\x78\x16\xbf\x8f\x01\xcf\xea"
  472. "\x41\x41\x40\xde\x5d\xae\x22\x23"
  473. "\xb0\x03\x61\xa3\x96\x17\x7a\x9c"
  474. "\xb4\x10\xff\x61\xf2\x00\x15\xad",
  475. }, {
  476. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  477. .psize = 56,
  478. .digest = "\x24\x8d\x6a\x61\xd2\x06\x38\xb8"
  479. "\xe5\xc0\x26\x93\x0c\x3e\x60\x39"
  480. "\xa3\x3c\xe4\x59\x64\xff\x21\x67"
  481. "\xf6\xec\xed\xd4\x19\xdb\x06\xc1",
  482. .np = 2,
  483. .tap = { 28, 28 }
  484. },
  485. };
  486. /*
  487. * SHA384 test vectors from from NIST and kerneli
  488. */
  489. #define SHA384_TEST_VECTORS 4
  490. static struct hash_testvec sha384_tv_template[] = {
  491. {
  492. .plaintext= "abc",
  493. .psize = 3,
  494. .digest = "\xcb\x00\x75\x3f\x45\xa3\x5e\x8b"
  495. "\xb5\xa0\x3d\x69\x9a\xc6\x50\x07"
  496. "\x27\x2c\x32\xab\x0e\xde\xd1\x63"
  497. "\x1a\x8b\x60\x5a\x43\xff\x5b\xed"
  498. "\x80\x86\x07\x2b\xa1\xe7\xcc\x23"
  499. "\x58\xba\xec\xa1\x34\xc8\x25\xa7",
  500. }, {
  501. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  502. .psize = 56,
  503. .digest = "\x33\x91\xfd\xdd\xfc\x8d\xc7\x39"
  504. "\x37\x07\xa6\x5b\x1b\x47\x09\x39"
  505. "\x7c\xf8\xb1\xd1\x62\xaf\x05\xab"
  506. "\xfe\x8f\x45\x0d\xe5\xf3\x6b\xc6"
  507. "\xb0\x45\x5a\x85\x20\xbc\x4e\x6f"
  508. "\x5f\xe9\x5b\x1f\xe3\xc8\x45\x2b",
  509. }, {
  510. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
  511. "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
  512. .psize = 112,
  513. .digest = "\x09\x33\x0c\x33\xf7\x11\x47\xe8"
  514. "\x3d\x19\x2f\xc7\x82\xcd\x1b\x47"
  515. "\x53\x11\x1b\x17\x3b\x3b\x05\xd2"
  516. "\x2f\xa0\x80\x86\xe3\xb0\xf7\x12"
  517. "\xfc\xc7\xc7\x1a\x55\x7e\x2d\xb9"
  518. "\x66\xc3\xe9\xfa\x91\x74\x60\x39",
  519. }, {
  520. .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
  521. "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
  522. .psize = 104,
  523. .digest = "\x3d\x20\x89\x73\xab\x35\x08\xdb"
  524. "\xbd\x7e\x2c\x28\x62\xba\x29\x0a"
  525. "\xd3\x01\x0e\x49\x78\xc1\x98\xdc"
  526. "\x4d\x8f\xd0\x14\xe5\x82\x82\x3a"
  527. "\x89\xe1\x6f\x9b\x2a\x7b\xbc\x1a"
  528. "\xc9\x38\xe2\xd1\x99\xe8\xbe\xa4",
  529. .np = 4,
  530. .tap = { 26, 26, 26, 26 }
  531. },
  532. };
  533. /*
  534. * SHA512 test vectors from from NIST and kerneli
  535. */
  536. #define SHA512_TEST_VECTORS 4
  537. static struct hash_testvec sha512_tv_template[] = {
  538. {
  539. .plaintext = "abc",
  540. .psize = 3,
  541. .digest = "\xdd\xaf\x35\xa1\x93\x61\x7a\xba"
  542. "\xcc\x41\x73\x49\xae\x20\x41\x31"
  543. "\x12\xe6\xfa\x4e\x89\xa9\x7e\xa2"
  544. "\x0a\x9e\xee\xe6\x4b\x55\xd3\x9a"
  545. "\x21\x92\x99\x2a\x27\x4f\xc1\xa8"
  546. "\x36\xba\x3c\x23\xa3\xfe\xeb\xbd"
  547. "\x45\x4d\x44\x23\x64\x3c\xe8\x0e"
  548. "\x2a\x9a\xc9\x4f\xa5\x4c\xa4\x9f",
  549. }, {
  550. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  551. .psize = 56,
  552. .digest = "\x20\x4a\x8f\xc6\xdd\xa8\x2f\x0a"
  553. "\x0c\xed\x7b\xeb\x8e\x08\xa4\x16"
  554. "\x57\xc1\x6e\xf4\x68\xb2\x28\xa8"
  555. "\x27\x9b\xe3\x31\xa7\x03\xc3\x35"
  556. "\x96\xfd\x15\xc1\x3b\x1b\x07\xf9"
  557. "\xaa\x1d\x3b\xea\x57\x78\x9c\xa0"
  558. "\x31\xad\x85\xc7\xa7\x1d\xd7\x03"
  559. "\x54\xec\x63\x12\x38\xca\x34\x45",
  560. }, {
  561. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
  562. "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
  563. .psize = 112,
  564. .digest = "\x8e\x95\x9b\x75\xda\xe3\x13\xda"
  565. "\x8c\xf4\xf7\x28\x14\xfc\x14\x3f"
  566. "\x8f\x77\x79\xc6\xeb\x9f\x7f\xa1"
  567. "\x72\x99\xae\xad\xb6\x88\x90\x18"
  568. "\x50\x1d\x28\x9e\x49\x00\xf7\xe4"
  569. "\x33\x1b\x99\xde\xc4\xb5\x43\x3a"
  570. "\xc7\xd3\x29\xee\xb6\xdd\x26\x54"
  571. "\x5e\x96\xe5\x5b\x87\x4b\xe9\x09",
  572. }, {
  573. .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
  574. "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
  575. .psize = 104,
  576. .digest = "\x93\x0d\x0c\xef\xcb\x30\xff\x11"
  577. "\x33\xb6\x89\x81\x21\xf1\xcf\x3d"
  578. "\x27\x57\x8a\xfc\xaf\xe8\x67\x7c"
  579. "\x52\x57\xcf\x06\x99\x11\xf7\x5d"
  580. "\x8f\x58\x31\xb5\x6e\xbf\xda\x67"
  581. "\xb2\x78\xe6\x6d\xff\x8b\x84\xfe"
  582. "\x2b\x28\x70\xf7\x42\xa5\x80\xd8"
  583. "\xed\xb4\x19\x87\x23\x28\x50\xc9",
  584. .np = 4,
  585. .tap = { 26, 26, 26, 26 }
  586. },
  587. };
  588. /*
  589. * WHIRLPOOL test vectors from Whirlpool package
  590. * by Vincent Rijmen and Paulo S. L. M. Barreto as part of the NESSIE
  591. * submission
  592. */
  593. #define WP512_TEST_VECTORS 8
  594. static struct hash_testvec wp512_tv_template[] = {
  595. {
  596. .plaintext = "",
  597. .psize = 0,
  598. .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
  599. "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
  600. "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
  601. "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
  602. "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
  603. "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57"
  604. "\xEA\x89\x64\xE5\x9B\x63\xD9\x37"
  605. "\x08\xB1\x38\xCC\x42\xA6\x6E\xB3",
  606. }, {
  607. .plaintext = "a",
  608. .psize = 1,
  609. .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
  610. "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
  611. "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
  612. "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
  613. "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
  614. "\x3A\x42\x39\x1A\x39\x14\x5A\x59"
  615. "\x1A\x92\x20\x0D\x56\x01\x95\xE5"
  616. "\x3B\x47\x85\x84\xFD\xAE\x23\x1A",
  617. }, {
  618. .plaintext = "abc",
  619. .psize = 3,
  620. .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
  621. "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
  622. "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
  623. "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
  624. "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
  625. "\x7D\x0E\x34\x95\x71\x14\xCB\xD6"
  626. "\xC7\x97\xFC\x9D\x95\xD8\xB5\x82"
  627. "\xD2\x25\x29\x20\x76\xD4\xEE\xF5",
  628. }, {
  629. .plaintext = "message digest",
  630. .psize = 14,
  631. .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
  632. "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
  633. "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
  634. "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
  635. "\x84\x21\x55\x76\x59\xEF\x55\xC1"
  636. "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6"
  637. "\x92\xED\x92\x00\x52\x83\x8F\x33"
  638. "\x62\xE8\x6D\xBD\x37\xA8\x90\x3E",
  639. }, {
  640. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  641. .psize = 26,
  642. .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
  643. "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
  644. "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
  645. "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
  646. "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
  647. "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6"
  648. "\xF6\x8F\x67\x3E\x72\x07\x86\x5D"
  649. "\x5D\x98\x19\xA3\xDB\xA4\xEB\x3B",
  650. }, {
  651. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  652. "abcdefghijklmnopqrstuvwxyz0123456789",
  653. .psize = 62,
  654. .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
  655. "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
  656. "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
  657. "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
  658. "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
  659. "\xB7\xCB\x57\x21\x1B\x92\x81\xA6"
  660. "\x55\x17\xCC\x87\x9D\x7B\x96\x21"
  661. "\x42\xC6\x5F\x5A\x7A\xF0\x14\x67",
  662. }, {
  663. .plaintext = "1234567890123456789012345678901234567890"
  664. "1234567890123456789012345678901234567890",
  665. .psize = 80,
  666. .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
  667. "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
  668. "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
  669. "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
  670. "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
  671. "\x38\xCD\x04\x7B\x26\x81\xA5\x1A"
  672. "\x2C\x60\x48\x1E\x88\xC5\xA2\x0B"
  673. "\x2C\x2A\x80\xCF\x3A\x9A\x08\x3B",
  674. }, {
  675. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  676. .psize = 32,
  677. .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
  678. "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
  679. "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
  680. "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
  681. "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
  682. "\x7B\x94\x76\x39\xFE\x05\x0B\x56"
  683. "\x93\x9B\xAA\xA0\xAD\xFF\x9A\xE6"
  684. "\x74\x5B\x7B\x18\x1C\x3B\xE3\xFD",
  685. },
  686. };
  687. #define WP384_TEST_VECTORS 8
  688. static struct hash_testvec wp384_tv_template[] = {
  689. {
  690. .plaintext = "",
  691. .psize = 0,
  692. .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
  693. "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
  694. "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
  695. "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
  696. "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
  697. "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57",
  698. }, {
  699. .plaintext = "a",
  700. .psize = 1,
  701. .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
  702. "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
  703. "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
  704. "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
  705. "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
  706. "\x3A\x42\x39\x1A\x39\x14\x5A\x59",
  707. }, {
  708. .plaintext = "abc",
  709. .psize = 3,
  710. .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
  711. "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
  712. "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
  713. "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
  714. "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
  715. "\x7D\x0E\x34\x95\x71\x14\xCB\xD6",
  716. }, {
  717. .plaintext = "message digest",
  718. .psize = 14,
  719. .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
  720. "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
  721. "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
  722. "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
  723. "\x84\x21\x55\x76\x59\xEF\x55\xC1"
  724. "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6",
  725. }, {
  726. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  727. .psize = 26,
  728. .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
  729. "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
  730. "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
  731. "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
  732. "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
  733. "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6",
  734. }, {
  735. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  736. "abcdefghijklmnopqrstuvwxyz0123456789",
  737. .psize = 62,
  738. .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
  739. "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
  740. "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
  741. "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
  742. "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
  743. "\xB7\xCB\x57\x21\x1B\x92\x81\xA6",
  744. }, {
  745. .plaintext = "1234567890123456789012345678901234567890"
  746. "1234567890123456789012345678901234567890",
  747. .psize = 80,
  748. .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
  749. "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
  750. "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
  751. "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
  752. "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
  753. "\x38\xCD\x04\x7B\x26\x81\xA5\x1A",
  754. }, {
  755. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  756. .psize = 32,
  757. .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
  758. "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
  759. "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
  760. "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
  761. "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
  762. "\x7B\x94\x76\x39\xFE\x05\x0B\x56",
  763. },
  764. };
  765. #define WP256_TEST_VECTORS 8
  766. static struct hash_testvec wp256_tv_template[] = {
  767. {
  768. .plaintext = "",
  769. .psize = 0,
  770. .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
  771. "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
  772. "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
  773. "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7",
  774. }, {
  775. .plaintext = "a",
  776. .psize = 1,
  777. .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
  778. "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
  779. "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
  780. "\x73\xC4\x50\x01\xD0\x08\x7B\x42",
  781. }, {
  782. .plaintext = "abc",
  783. .psize = 3,
  784. .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
  785. "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
  786. "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
  787. "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C",
  788. }, {
  789. .plaintext = "message digest",
  790. .psize = 14,
  791. .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
  792. "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
  793. "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
  794. "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B",
  795. }, {
  796. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  797. .psize = 26,
  798. .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
  799. "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
  800. "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
  801. "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B",
  802. }, {
  803. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  804. "abcdefghijklmnopqrstuvwxyz0123456789",
  805. .psize = 62,
  806. .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
  807. "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
  808. "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
  809. "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E",
  810. }, {
  811. .plaintext = "1234567890123456789012345678901234567890"
  812. "1234567890123456789012345678901234567890",
  813. .psize = 80,
  814. .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
  815. "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
  816. "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
  817. "\x54\x9C\x4A\xFA\xDB\x60\x14\x29",
  818. }, {
  819. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  820. .psize = 32,
  821. .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
  822. "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
  823. "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
  824. "\x07\xC5\x62\xF9\x88\xE9\x5C\x69",
  825. },
  826. };
  827. /*
  828. * TIGER test vectors from Tiger website
  829. */
  830. #define TGR192_TEST_VECTORS 6
  831. static struct hash_testvec tgr192_tv_template[] = {
  832. {
  833. .plaintext = "",
  834. .psize = 0,
  835. .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
  836. "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
  837. "\xf3\x73\xde\x2d\x49\x58\x4e\x7a",
  838. }, {
  839. .plaintext = "abc",
  840. .psize = 3,
  841. .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
  842. "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
  843. "\x93\x5f\x7b\x95\x1c\x13\x29\x51",
  844. }, {
  845. .plaintext = "Tiger",
  846. .psize = 5,
  847. .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
  848. "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
  849. "\x37\x79\x0c\x11\x6f\x9d\x2b\xdf",
  850. }, {
  851. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
  852. .psize = 64,
  853. .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
  854. "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
  855. "\xb5\x86\x44\x50\x34\xa5\xa3\x86",
  856. }, {
  857. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
  858. .psize = 64,
  859. .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
  860. "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
  861. "\x57\x89\x65\x65\x97\x5f\x91\x97",
  862. }, {
  863. .plaintext = "Tiger - A Fast New Hash Function, "
  864. "by Ross Anderson and Eli Biham, "
  865. "proceedings of Fast Software Encryption 3, "
  866. "Cambridge, 1996.",
  867. .psize = 125,
  868. .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
  869. "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
  870. "\xdd\x68\x15\x1d\x50\x39\x74\xfc",
  871. },
  872. };
  873. #define TGR160_TEST_VECTORS 6
  874. static struct hash_testvec tgr160_tv_template[] = {
  875. {
  876. .plaintext = "",
  877. .psize = 0,
  878. .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
  879. "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
  880. "\xf3\x73\xde\x2d",
  881. }, {
  882. .plaintext = "abc",
  883. .psize = 3,
  884. .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
  885. "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
  886. "\x93\x5f\x7b\x95",
  887. }, {
  888. .plaintext = "Tiger",
  889. .psize = 5,
  890. .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
  891. "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
  892. "\x37\x79\x0c\x11",
  893. }, {
  894. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
  895. .psize = 64,
  896. .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
  897. "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
  898. "\xb5\x86\x44\x50",
  899. }, {
  900. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
  901. .psize = 64,
  902. .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
  903. "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
  904. "\x57\x89\x65\x65",
  905. }, {
  906. .plaintext = "Tiger - A Fast New Hash Function, "
  907. "by Ross Anderson and Eli Biham, "
  908. "proceedings of Fast Software Encryption 3, "
  909. "Cambridge, 1996.",
  910. .psize = 125,
  911. .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
  912. "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
  913. "\xdd\x68\x15\x1d",
  914. },
  915. };
  916. #define TGR128_TEST_VECTORS 6
  917. static struct hash_testvec tgr128_tv_template[] = {
  918. {
  919. .plaintext = "",
  920. .psize = 0,
  921. .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
  922. "\x16\x16\x6e\x76\xb1\xbb\x92\x5f",
  923. }, {
  924. .plaintext = "abc",
  925. .psize = 3,
  926. .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
  927. "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf",
  928. }, {
  929. .plaintext = "Tiger",
  930. .psize = 5,
  931. .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
  932. "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec",
  933. }, {
  934. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
  935. .psize = 64,
  936. .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
  937. "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e",
  938. }, {
  939. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
  940. .psize = 64,
  941. .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
  942. "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9",
  943. }, {
  944. .plaintext = "Tiger - A Fast New Hash Function, "
  945. "by Ross Anderson and Eli Biham, "
  946. "proceedings of Fast Software Encryption 3, "
  947. "Cambridge, 1996.",
  948. .psize = 125,
  949. .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
  950. "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24",
  951. },
  952. };
  953. #define GHASH_TEST_VECTORS 1
  954. static struct hash_testvec ghash_tv_template[] =
  955. {
  956. {
  957. .key = "\xdf\xa6\xbf\x4d\xed\x81\xdb\x03\xff\xca\xff\x95\xf8\x30\xf0\x61",
  958. .ksize = 16,
  959. .plaintext = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0\xb3\x2b\x66\x56\xa0\x5b\x40\xb6",
  960. .psize = 16,
  961. .digest = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6"
  962. "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60",
  963. },
  964. };
  965. /*
  966. * HMAC-MD5 test vectors from RFC2202
  967. * (These need to be fixed to not use strlen).
  968. */
  969. #define HMAC_MD5_TEST_VECTORS 7
  970. static struct hash_testvec hmac_md5_tv_template[] =
  971. {
  972. {
  973. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  974. .ksize = 16,
  975. .plaintext = "Hi There",
  976. .psize = 8,
  977. .digest = "\x92\x94\x72\x7a\x36\x38\xbb\x1c"
  978. "\x13\xf4\x8e\xf8\x15\x8b\xfc\x9d",
  979. }, {
  980. .key = "Jefe",
  981. .ksize = 4,
  982. .plaintext = "what do ya want for nothing?",
  983. .psize = 28,
  984. .digest = "\x75\x0c\x78\x3e\x6a\xb0\xb5\x03"
  985. "\xea\xa8\x6e\x31\x0a\x5d\xb7\x38",
  986. .np = 2,
  987. .tap = {14, 14}
  988. }, {
  989. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  990. .ksize = 16,
  991. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  992. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  993. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  994. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  995. .psize = 50,
  996. .digest = "\x56\xbe\x34\x52\x1d\x14\x4c\x88"
  997. "\xdb\xb8\xc7\x33\xf0\xe8\xb3\xf6",
  998. }, {
  999. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1000. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1001. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  1002. .ksize = 25,
  1003. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1004. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1005. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1006. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1007. .psize = 50,
  1008. .digest = "\x69\x7e\xaf\x0a\xca\x3a\x3a\xea"
  1009. "\x3a\x75\x16\x47\x46\xff\xaa\x79",
  1010. }, {
  1011. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  1012. .ksize = 16,
  1013. .plaintext = "Test With Truncation",
  1014. .psize = 20,
  1015. .digest = "\x56\x46\x1e\xf2\x34\x2e\xdc\x00"
  1016. "\xf9\xba\xb9\x95\x69\x0e\xfd\x4c",
  1017. }, {
  1018. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1019. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1020. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1021. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1022. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1023. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1024. "\xaa\xaa",
  1025. .ksize = 80,
  1026. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1027. .psize = 54,
  1028. .digest = "\x6b\x1a\xb7\xfe\x4b\xd7\xbf\x8f"
  1029. "\x0b\x62\xe6\xce\x61\xb9\xd0\xcd",
  1030. }, {
  1031. .key = "\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\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1034. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1035. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1036. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1037. "\xaa\xaa",
  1038. .ksize = 80,
  1039. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  1040. "Block-Size Data",
  1041. .psize = 73,
  1042. .digest = "\x6f\x63\x0f\xad\x67\xcd\xa0\xee"
  1043. "\x1f\xb1\xf5\x62\xdb\x3a\xa5\x3e",
  1044. },
  1045. };
  1046. /*
  1047. * HMAC-RIPEMD128 test vectors from RFC2286
  1048. */
  1049. #define HMAC_RMD128_TEST_VECTORS 7
  1050. static struct hash_testvec hmac_rmd128_tv_template[] = {
  1051. {
  1052. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  1053. .ksize = 16,
  1054. .plaintext = "Hi There",
  1055. .psize = 8,
  1056. .digest = "\xfb\xf6\x1f\x94\x92\xaa\x4b\xbf"
  1057. "\x81\xc1\x72\xe8\x4e\x07\x34\xdb",
  1058. }, {
  1059. .key = "Jefe",
  1060. .ksize = 4,
  1061. .plaintext = "what do ya want for nothing?",
  1062. .psize = 28,
  1063. .digest = "\x87\x5f\x82\x88\x62\xb6\xb3\x34"
  1064. "\xb4\x27\xc5\x5f\x9f\x7f\xf0\x9b",
  1065. .np = 2,
  1066. .tap = { 14, 14 },
  1067. }, {
  1068. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  1069. .ksize = 16,
  1070. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1071. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1072. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1073. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  1074. .psize = 50,
  1075. .digest = "\x09\xf0\xb2\x84\x6d\x2f\x54\x3d"
  1076. "\xa3\x63\xcb\xec\x8d\x62\xa3\x8d",
  1077. }, {
  1078. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1079. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1080. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  1081. .ksize = 25,
  1082. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1083. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1084. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1085. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1086. .psize = 50,
  1087. .digest = "\xbd\xbb\xd7\xcf\x03\xe4\x4b\x5a"
  1088. "\xa6\x0a\xf8\x15\xbe\x4d\x22\x94",
  1089. }, {
  1090. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  1091. .ksize = 16,
  1092. .plaintext = "Test With Truncation",
  1093. .psize = 20,
  1094. .digest = "\xe7\x98\x08\xf2\x4b\x25\xfd\x03"
  1095. "\x1c\x15\x5f\x0d\x55\x1d\x9a\x3a",
  1096. }, {
  1097. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1098. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1099. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1100. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1101. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1102. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1103. "\xaa\xaa",
  1104. .ksize = 80,
  1105. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1106. .psize = 54,
  1107. .digest = "\xdc\x73\x29\x28\xde\x98\x10\x4a"
  1108. "\x1f\x59\xd3\x73\xc1\x50\xac\xbb",
  1109. }, {
  1110. .key = "\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\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1113. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1114. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1115. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1116. "\xaa\xaa",
  1117. .ksize = 80,
  1118. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  1119. "Block-Size Data",
  1120. .psize = 73,
  1121. .digest = "\x5c\x6b\xec\x96\x79\x3e\x16\xd4"
  1122. "\x06\x90\xc2\x37\x63\x5f\x30\xc5",
  1123. },
  1124. };
  1125. /*
  1126. * HMAC-RIPEMD160 test vectors from RFC2286
  1127. */
  1128. #define HMAC_RMD160_TEST_VECTORS 7
  1129. static struct hash_testvec hmac_rmd160_tv_template[] = {
  1130. {
  1131. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  1132. .ksize = 20,
  1133. .plaintext = "Hi There",
  1134. .psize = 8,
  1135. .digest = "\x24\xcb\x4b\xd6\x7d\x20\xfc\x1a\x5d\x2e"
  1136. "\xd7\x73\x2d\xcc\x39\x37\x7f\x0a\x56\x68",
  1137. }, {
  1138. .key = "Jefe",
  1139. .ksize = 4,
  1140. .plaintext = "what do ya want for nothing?",
  1141. .psize = 28,
  1142. .digest = "\xdd\xa6\xc0\x21\x3a\x48\x5a\x9e\x24\xf4"
  1143. "\x74\x20\x64\xa7\xf0\x33\xb4\x3c\x40\x69",
  1144. .np = 2,
  1145. .tap = { 14, 14 },
  1146. }, {
  1147. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  1148. .ksize = 20,
  1149. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1150. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1151. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1152. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  1153. .psize = 50,
  1154. .digest = "\xb0\xb1\x05\x36\x0d\xe7\x59\x96\x0a\xb4"
  1155. "\xf3\x52\x98\xe1\x16\xe2\x95\xd8\xe7\xc1",
  1156. }, {
  1157. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1158. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1159. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  1160. .ksize = 25,
  1161. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1162. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1163. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1164. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1165. .psize = 50,
  1166. .digest = "\xd5\xca\x86\x2f\x4d\x21\xd5\xe6\x10\xe1"
  1167. "\x8b\x4c\xf1\xbe\xb9\x7a\x43\x65\xec\xf4",
  1168. }, {
  1169. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  1170. .ksize = 20,
  1171. .plaintext = "Test With Truncation",
  1172. .psize = 20,
  1173. .digest = "\x76\x19\x69\x39\x78\xf9\x1d\x90\x53\x9a"
  1174. "\xe7\x86\x50\x0f\xf3\xd8\xe0\x51\x8e\x39",
  1175. }, {
  1176. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1177. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1178. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1179. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1180. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1181. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1182. "\xaa\xaa",
  1183. .ksize = 80,
  1184. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1185. .psize = 54,
  1186. .digest = "\x64\x66\xca\x07\xac\x5e\xac\x29\xe1\xbd"
  1187. "\x52\x3e\x5a\xda\x76\x05\xb7\x91\xfd\x8b",
  1188. }, {
  1189. .key = "\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\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1192. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1193. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1194. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1195. "\xaa\xaa",
  1196. .ksize = 80,
  1197. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  1198. "Block-Size Data",
  1199. .psize = 73,
  1200. .digest = "\x69\xea\x60\x79\x8d\x71\x61\x6c\xce\x5f"
  1201. "\xd0\x87\x1e\x23\x75\x4c\xd7\x5d\x5a\x0a",
  1202. },
  1203. };
  1204. /*
  1205. * HMAC-SHA1 test vectors from RFC2202
  1206. */
  1207. #define HMAC_SHA1_TEST_VECTORS 7
  1208. static struct hash_testvec hmac_sha1_tv_template[] = {
  1209. {
  1210. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  1211. .ksize = 20,
  1212. .plaintext = "Hi There",
  1213. .psize = 8,
  1214. .digest = "\xb6\x17\x31\x86\x55\x05\x72\x64"
  1215. "\xe2\x8b\xc0\xb6\xfb\x37\x8c\x8e\xf1"
  1216. "\x46\xbe",
  1217. }, {
  1218. .key = "Jefe",
  1219. .ksize = 4,
  1220. .plaintext = "what do ya want for nothing?",
  1221. .psize = 28,
  1222. .digest = "\xef\xfc\xdf\x6a\xe5\xeb\x2f\xa2\xd2\x74"
  1223. "\x16\xd5\xf1\x84\xdf\x9c\x25\x9a\x7c\x79",
  1224. .np = 2,
  1225. .tap = { 14, 14 }
  1226. }, {
  1227. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  1228. .ksize = 20,
  1229. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1230. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1231. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1232. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  1233. .psize = 50,
  1234. .digest = "\x12\x5d\x73\x42\xb9\xac\x11\xcd\x91\xa3"
  1235. "\x9a\xf4\x8a\xa1\x7b\x4f\x63\xf1\x75\xd3",
  1236. }, {
  1237. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1238. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1239. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  1240. .ksize = 25,
  1241. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1242. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1243. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1244. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1245. .psize = 50,
  1246. .digest = "\x4c\x90\x07\xf4\x02\x62\x50\xc6\xbc\x84"
  1247. "\x14\xf9\xbf\x50\xc8\x6c\x2d\x72\x35\xda",
  1248. }, {
  1249. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  1250. .ksize = 20,
  1251. .plaintext = "Test With Truncation",
  1252. .psize = 20,
  1253. .digest = "\x4c\x1a\x03\x42\x4b\x55\xe0\x7f\xe7\xf2"
  1254. "\x7b\xe1\xd5\x8b\xb9\x32\x4a\x9a\x5a\x04",
  1255. }, {
  1256. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1257. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1258. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1259. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1260. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1261. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1262. "\xaa\xaa",
  1263. .ksize = 80,
  1264. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1265. .psize = 54,
  1266. .digest = "\xaa\x4a\xe5\xe1\x52\x72\xd0\x0e\x95\x70"
  1267. "\x56\x37\xce\x8a\x3b\x55\xed\x40\x21\x12",
  1268. }, {
  1269. .key = "\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\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1272. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1273. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1274. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1275. "\xaa\xaa",
  1276. .ksize = 80,
  1277. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  1278. "Block-Size Data",
  1279. .psize = 73,
  1280. .digest = "\xe8\xe9\x9d\x0f\x45\x23\x7d\x78\x6d\x6b"
  1281. "\xba\xa7\x96\x5c\x78\x08\xbb\xff\x1a\x91",
  1282. },
  1283. };
  1284. /*
  1285. * SHA224 HMAC test vectors from RFC4231
  1286. */
  1287. #define HMAC_SHA224_TEST_VECTORS 4
  1288. static struct hash_testvec hmac_sha224_tv_template[] = {
  1289. {
  1290. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1291. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1292. "\x0b\x0b\x0b\x0b",
  1293. .ksize = 20,
  1294. /* ("Hi There") */
  1295. .plaintext = "\x48\x69\x20\x54\x68\x65\x72\x65",
  1296. .psize = 8,
  1297. .digest = "\x89\x6f\xb1\x12\x8a\xbb\xdf\x19"
  1298. "\x68\x32\x10\x7c\xd4\x9d\xf3\x3f"
  1299. "\x47\xb4\xb1\x16\x99\x12\xba\x4f"
  1300. "\x53\x68\x4b\x22",
  1301. }, {
  1302. .key = "Jefe",
  1303. .ksize = 4,
  1304. /* ("what do ya want for nothing?") */
  1305. .plaintext = "\x77\x68\x61\x74\x20\x64\x6f\x20"
  1306. "\x79\x61\x20\x77\x61\x6e\x74\x20"
  1307. "\x66\x6f\x72\x20\x6e\x6f\x74\x68"
  1308. "\x69\x6e\x67\x3f",
  1309. .psize = 28,
  1310. .digest = "\xa3\x0e\x01\x09\x8b\xc6\xdb\xbf"
  1311. "\x45\x69\x0f\x3a\x7e\x9e\x6d\x0f"
  1312. "\x8b\xbe\xa2\xa3\x9e\x61\x48\x00"
  1313. "\x8f\xd0\x5e\x44",
  1314. .np = 4,
  1315. .tap = { 7, 7, 7, 7 }
  1316. }, {
  1317. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1318. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1319. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1320. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1321. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1322. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1323. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1324. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1325. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1326. "\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",
  1334. .ksize = 131,
  1335. /* ("Test Using Larger Than Block-Size Key - Hash Key First") */
  1336. .plaintext = "\x54\x65\x73\x74\x20\x55\x73\x69"
  1337. "\x6e\x67\x20\x4c\x61\x72\x67\x65"
  1338. "\x72\x20\x54\x68\x61\x6e\x20\x42"
  1339. "\x6c\x6f\x63\x6b\x2d\x53\x69\x7a"
  1340. "\x65\x20\x4b\x65\x79\x20\x2d\x20"
  1341. "\x48\x61\x73\x68\x20\x4b\x65\x79"
  1342. "\x20\x46\x69\x72\x73\x74",
  1343. .psize = 54,
  1344. .digest = "\x95\xe9\xa0\xdb\x96\x20\x95\xad"
  1345. "\xae\xbe\x9b\x2d\x6f\x0d\xbc\xe2"
  1346. "\xd4\x99\xf1\x12\xf2\xd2\xb7\x27"
  1347. "\x3f\xa6\x87\x0e",
  1348. }, {
  1349. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1350. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1351. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1352. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1353. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1354. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1355. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1356. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1357. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1358. "\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",
  1366. .ksize = 131,
  1367. /* ("This is a test using a larger than block-size key and a")
  1368. (" larger than block-size data. The key needs to be")
  1369. (" hashed before being used by the HMAC algorithm.") */
  1370. .plaintext = "\x54\x68\x69\x73\x20\x69\x73\x20"
  1371. "\x61\x20\x74\x65\x73\x74\x20\x75"
  1372. "\x73\x69\x6e\x67\x20\x61\x20\x6c"
  1373. "\x61\x72\x67\x65\x72\x20\x74\x68"
  1374. "\x61\x6e\x20\x62\x6c\x6f\x63\x6b"
  1375. "\x2d\x73\x69\x7a\x65\x20\x6b\x65"
  1376. "\x79\x20\x61\x6e\x64\x20\x61\x20"
  1377. "\x6c\x61\x72\x67\x65\x72\x20\x74"
  1378. "\x68\x61\x6e\x20\x62\x6c\x6f\x63"
  1379. "\x6b\x2d\x73\x69\x7a\x65\x20\x64"
  1380. "\x61\x74\x61\x2e\x20\x54\x68\x65"
  1381. "\x20\x6b\x65\x79\x20\x6e\x65\x65"
  1382. "\x64\x73\x20\x74\x6f\x20\x62\x65"
  1383. "\x20\x68\x61\x73\x68\x65\x64\x20"
  1384. "\x62\x65\x66\x6f\x72\x65\x20\x62"
  1385. "\x65\x69\x6e\x67\x20\x75\x73\x65"
  1386. "\x64\x20\x62\x79\x20\x74\x68\x65"
  1387. "\x20\x48\x4d\x41\x43\x20\x61\x6c"
  1388. "\x67\x6f\x72\x69\x74\x68\x6d\x2e",
  1389. .psize = 152,
  1390. .digest = "\x3a\x85\x41\x66\xac\x5d\x9f\x02"
  1391. "\x3f\x54\xd5\x17\xd0\xb3\x9d\xbd"
  1392. "\x94\x67\x70\xdb\x9c\x2b\x95\xc9"
  1393. "\xf6\xf5\x65\xd1",
  1394. },
  1395. };
  1396. /*
  1397. * HMAC-SHA256 test vectors from
  1398. * draft-ietf-ipsec-ciph-sha-256-01.txt
  1399. */
  1400. #define HMAC_SHA256_TEST_VECTORS 10
  1401. static struct hash_testvec hmac_sha256_tv_template[] = {
  1402. {
  1403. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1404. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1405. "\x11\x12\x13\x14\x15\x16\x17\x18"
  1406. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
  1407. .ksize = 32,
  1408. .plaintext = "abc",
  1409. .psize = 3,
  1410. .digest = "\xa2\x1b\x1f\x5d\x4c\xf4\xf7\x3a"
  1411. "\x4d\xd9\x39\x75\x0f\x7a\x06\x6a"
  1412. "\x7f\x98\xcc\x13\x1c\xb1\x6a\x66"
  1413. "\x92\x75\x90\x21\xcf\xab\x81\x81",
  1414. }, {
  1415. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1416. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1417. "\x11\x12\x13\x14\x15\x16\x17\x18"
  1418. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
  1419. .ksize = 32,
  1420. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  1421. .psize = 56,
  1422. .digest = "\x10\x4f\xdc\x12\x57\x32\x8f\x08"
  1423. "\x18\x4b\xa7\x31\x31\xc5\x3c\xae"
  1424. "\xe6\x98\xe3\x61\x19\x42\x11\x49"
  1425. "\xea\x8c\x71\x24\x56\x69\x7d\x30",
  1426. }, {
  1427. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1428. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1429. "\x11\x12\x13\x14\x15\x16\x17\x18"
  1430. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
  1431. .ksize = 32,
  1432. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
  1433. "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  1434. .psize = 112,
  1435. .digest = "\x47\x03\x05\xfc\x7e\x40\xfe\x34"
  1436. "\xd3\xee\xb3\xe7\x73\xd9\x5a\xab"
  1437. "\x73\xac\xf0\xfd\x06\x04\x47\xa5"
  1438. "\xeb\x45\x95\xbf\x33\xa9\xd1\xa3",
  1439. }, {
  1440. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1441. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1442. "\x0b\x0b\x0b\x0b\x0b\x0b",
  1443. .ksize = 32,
  1444. .plaintext = "Hi There",
  1445. .psize = 8,
  1446. .digest = "\x19\x8a\x60\x7e\xb4\x4b\xfb\xc6"
  1447. "\x99\x03\xa0\xf1\xcf\x2b\xbd\xc5"
  1448. "\xba\x0a\xa3\xf3\xd9\xae\x3c\x1c"
  1449. "\x7a\x3b\x16\x96\xa0\xb6\x8c\xf7",
  1450. }, {
  1451. .key = "Jefe",
  1452. .ksize = 4,
  1453. .plaintext = "what do ya want for nothing?",
  1454. .psize = 28,
  1455. .digest = "\x5b\xdc\xc1\x46\xbf\x60\x75\x4e"
  1456. "\x6a\x04\x24\x26\x08\x95\x75\xc7"
  1457. "\x5a\x00\x3f\x08\x9d\x27\x39\x83"
  1458. "\x9d\xec\x58\xb9\x64\xec\x38\x43",
  1459. .np = 2,
  1460. .tap = { 14, 14 }
  1461. }, {
  1462. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1463. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1464. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  1465. .ksize = 32,
  1466. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1467. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1468. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1469. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  1470. .psize = 50,
  1471. .digest = "\xcd\xcb\x12\x20\xd1\xec\xcc\xea"
  1472. "\x91\xe5\x3a\xba\x30\x92\xf9\x62"
  1473. "\xe5\x49\xfe\x6c\xe9\xed\x7f\xdc"
  1474. "\x43\x19\x1f\xbd\xe4\x5c\x30\xb0",
  1475. }, {
  1476. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1477. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1478. "\x11\x12\x13\x14\x15\x16\x17\x18"
  1479. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  1480. "\x21\x22\x23\x24\x25",
  1481. .ksize = 37,
  1482. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1483. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1484. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1485. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1486. .psize = 50,
  1487. .digest = "\xd4\x63\x3c\x17\xf6\xfb\x8d\x74"
  1488. "\x4c\x66\xde\xe0\xf8\xf0\x74\x55"
  1489. "\x6e\xc4\xaf\x55\xef\x07\x99\x85"
  1490. "\x41\x46\x8e\xb4\x9b\xd2\xe9\x17",
  1491. }, {
  1492. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
  1493. "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
  1494. "\x0c\x0c\x0c\x0c\x0c\x0c",
  1495. .ksize = 32,
  1496. .plaintext = "Test With Truncation",
  1497. .psize = 20,
  1498. .digest = "\x75\x46\xaf\x01\x84\x1f\xc0\x9b"
  1499. "\x1a\xb9\xc3\x74\x9a\x5f\x1c\x17"
  1500. "\xd4\xf5\x89\x66\x8a\x58\x7b\x27"
  1501. "\x00\xa9\xc9\x7c\x11\x93\xcf\x42",
  1502. }, {
  1503. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1504. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1505. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1506. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1507. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1508. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1509. "\xaa\xaa",
  1510. .ksize = 80,
  1511. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1512. .psize = 54,
  1513. .digest = "\x69\x53\x02\x5e\xd9\x6f\x0c\x09"
  1514. "\xf8\x0a\x96\xf7\x8e\x65\x38\xdb"
  1515. "\xe2\xe7\xb8\x20\xe3\xdd\x97\x0e"
  1516. "\x7d\xdd\x39\x09\x1b\x32\x35\x2f",
  1517. }, {
  1518. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1519. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1520. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1521. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1522. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1523. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1524. "\xaa\xaa",
  1525. .ksize = 80,
  1526. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than "
  1527. "One Block-Size Data",
  1528. .psize = 73,
  1529. .digest = "\x63\x55\xac\x22\xe8\x90\xd0\xa3"
  1530. "\xc8\x48\x1a\x5c\xa4\x82\x5b\xc8"
  1531. "\x84\xd3\xe7\xa1\xff\x98\xa2\xfc"
  1532. "\x2a\xc7\xd8\xe0\x64\xc3\xb2\xe6",
  1533. },
  1534. };
  1535. #define XCBC_AES_TEST_VECTORS 6
  1536. static struct hash_testvec aes_xcbc128_tv_template[] = {
  1537. {
  1538. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1539. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1540. .plaintext = zeroed_string,
  1541. .digest = "\x75\xf0\x25\x1d\x52\x8a\xc0\x1c"
  1542. "\x45\x73\xdf\xd5\x84\xd7\x9f\x29",
  1543. .psize = 0,
  1544. .ksize = 16,
  1545. }, {
  1546. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1547. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1548. .plaintext = "\x00\x01\x02",
  1549. .digest = "\x5b\x37\x65\x80\xae\x2f\x19\xaf"
  1550. "\xe7\x21\x9c\xee\xf1\x72\x75\x6f",
  1551. .psize = 3,
  1552. .ksize = 16,
  1553. } , {
  1554. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1555. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1556. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1557. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1558. .digest = "\xd2\xa2\x46\xfa\x34\x9b\x68\xa7"
  1559. "\x99\x98\xa4\x39\x4f\xf7\xa2\x63",
  1560. .psize = 16,
  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. "\x10\x11\x12\x13",
  1568. .digest = "\x47\xf5\x1b\x45\x64\x96\x62\x15"
  1569. "\xb8\x98\x5c\x63\x05\x5e\xd3\x08",
  1570. .tap = { 10, 10 },
  1571. .psize = 20,
  1572. .np = 2,
  1573. .ksize = 16,
  1574. }, {
  1575. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1576. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1577. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1578. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  1579. "\x10\x11\x12\x13\x14\x15\x16\x17"
  1580. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  1581. .digest = "\xf5\x4f\x0e\xc8\xd2\xb9\xf3\xd3"
  1582. "\x68\x07\x73\x4b\xd5\x28\x3f\xd4",
  1583. .psize = 32,
  1584. .ksize = 16,
  1585. }, {
  1586. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1587. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1588. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1589. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  1590. "\x10\x11\x12\x13\x14\x15\x16\x17"
  1591. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  1592. "\x20\x21",
  1593. .digest = "\xbe\xcb\xb3\xbc\xcd\xb5\x18\xa3"
  1594. "\x06\x77\xd5\x48\x1f\xb6\xb4\xd8",
  1595. .tap = { 17, 17 },
  1596. .psize = 34,
  1597. .np = 2,
  1598. .ksize = 16,
  1599. }
  1600. };
  1601. #define VMAC_AES_TEST_VECTORS 8
  1602. static char vmac_string1[128] = {'\x01', '\x01', '\x01', '\x01',
  1603. '\x02', '\x03', '\x02', '\x02',
  1604. '\x02', '\x04', '\x01', '\x07',
  1605. '\x04', '\x01', '\x04', '\x03',};
  1606. static char vmac_string2[128] = {'a', 'b', 'c',};
  1607. static char vmac_string3[128] = {'a', 'b', 'c', 'a', 'b', 'c',
  1608. 'a', 'b', 'c', 'a', 'b', 'c',
  1609. 'a', 'b', 'c', 'a', 'b', 'c',
  1610. 'a', 'b', 'c', 'a', 'b', 'c',
  1611. 'a', 'b', 'c', 'a', 'b', 'c',
  1612. 'a', 'b', 'c', 'a', 'b', 'c',
  1613. 'a', 'b', 'c', 'a', 'b', 'c',
  1614. 'a', 'b', 'c', 'a', 'b', 'c',
  1615. };
  1616. static struct hash_testvec aes_vmac128_tv_template[] = {
  1617. {
  1618. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1619. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1620. .plaintext = NULL,
  1621. .digest = "\x07\x58\x80\x35\x77\xa4\x7b\x54",
  1622. .psize = 0,
  1623. .ksize = 16,
  1624. }, {
  1625. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1626. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1627. .plaintext = vmac_string1,
  1628. .digest = "\xce\xf5\x3c\xd3\xae\x68\x8c\xa1",
  1629. .psize = 128,
  1630. .ksize = 16,
  1631. }, {
  1632. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1633. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1634. .plaintext = vmac_string2,
  1635. .digest = "\xc9\x27\xb0\x73\x81\xbd\x14\x2d",
  1636. .psize = 128,
  1637. .ksize = 16,
  1638. }, {
  1639. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1640. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1641. .plaintext = vmac_string3,
  1642. .digest = "\x8d\x1a\x95\x8c\x98\x47\x0b\x19",
  1643. .psize = 128,
  1644. .ksize = 16,
  1645. }, {
  1646. .key = "abcdefghijklmnop",
  1647. .plaintext = NULL,
  1648. .digest = "\x3b\x89\xa1\x26\x9e\x55\x8f\x84",
  1649. .psize = 0,
  1650. .ksize = 16,
  1651. }, {
  1652. .key = "abcdefghijklmnop",
  1653. .plaintext = vmac_string1,
  1654. .digest = "\xab\x5e\xab\xb0\xf6\x8d\x74\xc2",
  1655. .psize = 128,
  1656. .ksize = 16,
  1657. }, {
  1658. .key = "abcdefghijklmnop",
  1659. .plaintext = vmac_string2,
  1660. .digest = "\x11\x15\x68\x42\x3d\x7b\x09\xdf",
  1661. .psize = 128,
  1662. .ksize = 16,
  1663. }, {
  1664. .key = "abcdefghijklmnop",
  1665. .plaintext = vmac_string3,
  1666. .digest = "\x8b\x32\x8f\xe1\xed\x8f\xfa\xd4",
  1667. .psize = 128,
  1668. .ksize = 16,
  1669. },
  1670. };
  1671. /*
  1672. * SHA384 HMAC test vectors from RFC4231
  1673. */
  1674. #define HMAC_SHA384_TEST_VECTORS 4
  1675. static struct hash_testvec hmac_sha384_tv_template[] = {
  1676. {
  1677. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1678. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1679. "\x0b\x0b\x0b\x0b",
  1680. .ksize = 20,
  1681. .plaintext = "Hi There",
  1682. .psize = 8,
  1683. .digest = "\xaf\xd0\x39\x44\xd8\x48\x95\x62"
  1684. "\x6b\x08\x25\xf4\xab\x46\x90\x7f"
  1685. "\x15\xf9\xda\xdb\xe4\x10\x1e\xc6"
  1686. "\x82\xaa\x03\x4c\x7c\xeb\xc5\x9c"
  1687. "\xfa\xea\x9e\xa9\x07\x6e\xde\x7f"
  1688. "\x4a\xf1\x52\xe8\xb2\xfa\x9c\xb6",
  1689. }, {
  1690. .key = "Jefe",
  1691. .ksize = 4,
  1692. .plaintext = "what do ya want for nothing?",
  1693. .psize = 28,
  1694. .digest = "\xaf\x45\xd2\xe3\x76\x48\x40\x31"
  1695. "\x61\x7f\x78\xd2\xb5\x8a\x6b\x1b"
  1696. "\x9c\x7e\xf4\x64\xf5\xa0\x1b\x47"
  1697. "\xe4\x2e\xc3\x73\x63\x22\x44\x5e"
  1698. "\x8e\x22\x40\xca\x5e\x69\xe2\xc7"
  1699. "\x8b\x32\x39\xec\xfa\xb2\x16\x49",
  1700. .np = 4,
  1701. .tap = { 7, 7, 7, 7 }
  1702. }, {
  1703. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1704. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1705. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1706. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1707. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1708. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1709. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1710. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1711. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1712. "\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",
  1720. .ksize = 131,
  1721. .plaintext = "Test Using Larger Than Block-Siz"
  1722. "e Key - Hash Key First",
  1723. .psize = 54,
  1724. .digest = "\x4e\xce\x08\x44\x85\x81\x3e\x90"
  1725. "\x88\xd2\xc6\x3a\x04\x1b\xc5\xb4"
  1726. "\x4f\x9e\xf1\x01\x2a\x2b\x58\x8f"
  1727. "\x3c\xd1\x1f\x05\x03\x3a\xc4\xc6"
  1728. "\x0c\x2e\xf6\xab\x40\x30\xfe\x82"
  1729. "\x96\x24\x8d\xf1\x63\xf4\x49\x52",
  1730. }, {
  1731. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1732. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1733. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1734. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1735. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1736. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1737. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1738. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1739. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1740. "\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",
  1748. .ksize = 131,
  1749. .plaintext = "This is a test u"
  1750. "sing a larger th"
  1751. "an block-size ke"
  1752. "y and a larger t"
  1753. "han block-size d"
  1754. "ata. The key nee"
  1755. "ds to be hashed "
  1756. "before being use"
  1757. "d by the HMAC al"
  1758. "gorithm.",
  1759. .psize = 152,
  1760. .digest = "\x66\x17\x17\x8e\x94\x1f\x02\x0d"
  1761. "\x35\x1e\x2f\x25\x4e\x8f\xd3\x2c"
  1762. "\x60\x24\x20\xfe\xb0\xb8\xfb\x9a"
  1763. "\xdc\xce\xbb\x82\x46\x1e\x99\xc5"
  1764. "\xa6\x78\xcc\x31\xe7\x99\x17\x6d"
  1765. "\x38\x60\xe6\x11\x0c\x46\x52\x3e",
  1766. },
  1767. };
  1768. /*
  1769. * SHA512 HMAC test vectors from RFC4231
  1770. */
  1771. #define HMAC_SHA512_TEST_VECTORS 4
  1772. static struct hash_testvec hmac_sha512_tv_template[] = {
  1773. {
  1774. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1775. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1776. "\x0b\x0b\x0b\x0b",
  1777. .ksize = 20,
  1778. .plaintext = "Hi There",
  1779. .psize = 8,
  1780. .digest = "\x87\xaa\x7c\xde\xa5\xef\x61\x9d"
  1781. "\x4f\xf0\xb4\x24\x1a\x1d\x6c\xb0"
  1782. "\x23\x79\xf4\xe2\xce\x4e\xc2\x78"
  1783. "\x7a\xd0\xb3\x05\x45\xe1\x7c\xde"
  1784. "\xda\xa8\x33\xb7\xd6\xb8\xa7\x02"
  1785. "\x03\x8b\x27\x4e\xae\xa3\xf4\xe4"
  1786. "\xbe\x9d\x91\x4e\xeb\x61\xf1\x70"
  1787. "\x2e\x69\x6c\x20\x3a\x12\x68\x54",
  1788. }, {
  1789. .key = "Jefe",
  1790. .ksize = 4,
  1791. .plaintext = "what do ya want for nothing?",
  1792. .psize = 28,
  1793. .digest = "\x16\x4b\x7a\x7b\xfc\xf8\x19\xe2"
  1794. "\xe3\x95\xfb\xe7\x3b\x56\xe0\xa3"
  1795. "\x87\xbd\x64\x22\x2e\x83\x1f\xd6"
  1796. "\x10\x27\x0c\xd7\xea\x25\x05\x54"
  1797. "\x97\x58\xbf\x75\xc0\x5a\x99\x4a"
  1798. "\x6d\x03\x4f\x65\xf8\xf0\xe6\xfd"
  1799. "\xca\xea\xb1\xa3\x4d\x4a\x6b\x4b"
  1800. "\x63\x6e\x07\x0a\x38\xbc\xe7\x37",
  1801. .np = 4,
  1802. .tap = { 7, 7, 7, 7 }
  1803. }, {
  1804. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1805. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1806. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1807. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1808. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1809. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1810. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1811. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1812. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1813. "\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",
  1821. .ksize = 131,
  1822. .plaintext = "Test Using Large"
  1823. "r Than Block-Siz"
  1824. "e Key - Hash Key"
  1825. " First",
  1826. .psize = 54,
  1827. .digest = "\x80\xb2\x42\x63\xc7\xc1\xa3\xeb"
  1828. "\xb7\x14\x93\xc1\xdd\x7b\xe8\xb4"
  1829. "\x9b\x46\xd1\xf4\x1b\x4a\xee\xc1"
  1830. "\x12\x1b\x01\x37\x83\xf8\xf3\x52"
  1831. "\x6b\x56\xd0\x37\xe0\x5f\x25\x98"
  1832. "\xbd\x0f\xd2\x21\x5d\x6a\x1e\x52"
  1833. "\x95\xe6\x4f\x73\xf6\x3f\x0a\xec"
  1834. "\x8b\x91\x5a\x98\x5d\x78\x65\x98",
  1835. }, {
  1836. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1837. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1838. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1839. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1840. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1841. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1842. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1843. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1844. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1845. "\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",
  1853. .ksize = 131,
  1854. .plaintext =
  1855. "This is a test u"
  1856. "sing a larger th"
  1857. "an block-size ke"
  1858. "y and a larger t"
  1859. "han block-size d"
  1860. "ata. The key nee"
  1861. "ds to be hashed "
  1862. "before being use"
  1863. "d by the HMAC al"
  1864. "gorithm.",
  1865. .psize = 152,
  1866. .digest = "\xe3\x7b\x6a\x77\x5d\xc8\x7d\xba"
  1867. "\xa4\xdf\xa9\xf9\x6e\x5e\x3f\xfd"
  1868. "\xde\xbd\x71\xf8\x86\x72\x89\x86"
  1869. "\x5d\xf5\xa3\x2d\x20\xcd\xc9\x44"
  1870. "\xb6\x02\x2c\xac\x3c\x49\x82\xb1"
  1871. "\x0d\x5e\xeb\x55\xc3\xe4\xde\x15"
  1872. "\x13\x46\x76\xfb\x6d\xe0\x44\x60"
  1873. "\x65\xc9\x74\x40\xfa\x8c\x6a\x58",
  1874. },
  1875. };
  1876. /*
  1877. * DES test vectors.
  1878. */
  1879. #define DES_ENC_TEST_VECTORS 10
  1880. #define DES_DEC_TEST_VECTORS 4
  1881. #define DES_CBC_ENC_TEST_VECTORS 5
  1882. #define DES_CBC_DEC_TEST_VECTORS 4
  1883. #define DES3_EDE_ENC_TEST_VECTORS 3
  1884. #define DES3_EDE_DEC_TEST_VECTORS 3
  1885. #define DES3_EDE_CBC_ENC_TEST_VECTORS 1
  1886. #define DES3_EDE_CBC_DEC_TEST_VECTORS 1
  1887. static struct cipher_testvec des_enc_tv_template[] = {
  1888. { /* From Applied Cryptography */
  1889. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1890. .klen = 8,
  1891. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  1892. .ilen = 8,
  1893. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  1894. .rlen = 8,
  1895. }, { /* Same key, different plaintext block */
  1896. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1897. .klen = 8,
  1898. .input = "\x22\x33\x44\x55\x66\x77\x88\x99",
  1899. .ilen = 8,
  1900. .result = "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  1901. .rlen = 8,
  1902. }, { /* Sbox test from NBS */
  1903. .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
  1904. .klen = 8,
  1905. .input = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
  1906. .ilen = 8,
  1907. .result = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  1908. .rlen = 8,
  1909. }, { /* Three blocks */
  1910. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1911. .klen = 8,
  1912. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1913. "\x22\x33\x44\x55\x66\x77\x88\x99"
  1914. "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
  1915. .ilen = 24,
  1916. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1917. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
  1918. "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
  1919. .rlen = 24,
  1920. }, { /* Weak key */
  1921. .fail = 1,
  1922. .wk = 1,
  1923. .key = "\x01\x01\x01\x01\x01\x01\x01\x01",
  1924. .klen = 8,
  1925. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  1926. .ilen = 8,
  1927. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  1928. .rlen = 8,
  1929. }, { /* Two blocks -- for testing encryption across pages */
  1930. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1931. .klen = 8,
  1932. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1933. "\x22\x33\x44\x55\x66\x77\x88\x99",
  1934. .ilen = 16,
  1935. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1936. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  1937. .rlen = 16,
  1938. .np = 2,
  1939. .tap = { 8, 8 }
  1940. }, { /* Four blocks -- for testing encryption with chunking */
  1941. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1942. .klen = 8,
  1943. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1944. "\x22\x33\x44\x55\x66\x77\x88\x99"
  1945. "\xca\xfe\xba\xbe\xfe\xed\xbe\xef"
  1946. "\x22\x33\x44\x55\x66\x77\x88\x99",
  1947. .ilen = 32,
  1948. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1949. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
  1950. "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90"
  1951. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  1952. .rlen = 32,
  1953. .np = 3,
  1954. .tap = { 14, 10, 8 }
  1955. }, {
  1956. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1957. .klen = 8,
  1958. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1959. "\x22\x33\x44\x55\x66\x77\x88\x99"
  1960. "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
  1961. .ilen = 24,
  1962. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1963. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
  1964. "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
  1965. .rlen = 24,
  1966. .np = 4,
  1967. .tap = { 2, 1, 3, 18 }
  1968. }, {
  1969. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1970. .klen = 8,
  1971. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1972. "\x22\x33\x44\x55\x66\x77\x88\x99",
  1973. .ilen = 16,
  1974. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1975. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  1976. .rlen = 16,
  1977. .np = 5,
  1978. .tap = { 2, 2, 2, 2, 8 }
  1979. }, {
  1980. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1981. .klen = 8,
  1982. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  1983. .ilen = 8,
  1984. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  1985. .rlen = 8,
  1986. .np = 8,
  1987. .tap = { 1, 1, 1, 1, 1, 1, 1, 1 }
  1988. },
  1989. };
  1990. static struct cipher_testvec des_dec_tv_template[] = {
  1991. { /* From Applied Cryptography */
  1992. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1993. .klen = 8,
  1994. .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  1995. .ilen = 8,
  1996. .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  1997. .rlen = 8,
  1998. }, { /* Sbox test from NBS */
  1999. .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
  2000. .klen = 8,
  2001. .input = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  2002. .ilen = 8,
  2003. .result = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
  2004. .rlen = 8,
  2005. }, { /* Two blocks, for chunking test */
  2006. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2007. .klen = 8,
  2008. .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  2009. "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  2010. .ilen = 16,
  2011. .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  2012. "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
  2013. .rlen = 16,
  2014. .np = 2,
  2015. .tap = { 8, 8 }
  2016. }, {
  2017. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2018. .klen = 8,
  2019. .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  2020. "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  2021. .ilen = 16,
  2022. .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  2023. "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
  2024. .rlen = 16,
  2025. .np = 3,
  2026. .tap = { 3, 12, 1 }
  2027. },
  2028. };
  2029. static struct cipher_testvec des_cbc_enc_tv_template[] = {
  2030. { /* From OpenSSL */
  2031. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2032. .klen = 8,
  2033. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2034. .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
  2035. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  2036. "\x68\x65\x20\x74\x69\x6d\x65\x20",
  2037. .ilen = 24,
  2038. .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
  2039. "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
  2040. "\x46\x8e\x91\x15\x78\x88\xba\x68",
  2041. .rlen = 24,
  2042. }, { /* FIPS Pub 81 */
  2043. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2044. .klen = 8,
  2045. .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
  2046. .input = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
  2047. .ilen = 8,
  2048. .result = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  2049. .rlen = 8,
  2050. }, {
  2051. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2052. .klen = 8,
  2053. .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  2054. .input = "\x68\x65\x20\x74\x69\x6d\x65\x20",
  2055. .ilen = 8,
  2056. .result = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  2057. .rlen = 8,
  2058. }, {
  2059. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2060. .klen = 8,
  2061. .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  2062. .input = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
  2063. .ilen = 8,
  2064. .result = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
  2065. .rlen = 8,
  2066. }, { /* Copy of openssl vector for chunk testing */
  2067. /* From OpenSSL */
  2068. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2069. .klen = 8,
  2070. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2071. .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
  2072. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  2073. "\x68\x65\x20\x74\x69\x6d\x65\x20",
  2074. .ilen = 24,
  2075. .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
  2076. "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
  2077. "\x46\x8e\x91\x15\x78\x88\xba\x68",
  2078. .rlen = 24,
  2079. .np = 2,
  2080. .tap = { 13, 11 }
  2081. },
  2082. };
  2083. static struct cipher_testvec des_cbc_dec_tv_template[] = {
  2084. { /* FIPS Pub 81 */
  2085. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2086. .klen = 8,
  2087. .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
  2088. .input = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  2089. .ilen = 8,
  2090. .result = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
  2091. .rlen = 8,
  2092. }, {
  2093. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2094. .klen = 8,
  2095. .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  2096. .input = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  2097. .ilen = 8,
  2098. .result = "\x68\x65\x20\x74\x69\x6d\x65\x20",
  2099. .rlen = 8,
  2100. }, {
  2101. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2102. .klen = 8,
  2103. .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  2104. .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
  2105. .ilen = 8,
  2106. .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
  2107. .rlen = 8,
  2108. }, { /* Copy of above, for chunk testing */
  2109. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2110. .klen = 8,
  2111. .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  2112. .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
  2113. .ilen = 8,
  2114. .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
  2115. .rlen = 8,
  2116. .np = 2,
  2117. .tap = { 4, 4 }
  2118. },
  2119. };
  2120. static struct cipher_testvec des3_ede_enc_tv_template[] = {
  2121. { /* These are from openssl */
  2122. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2123. "\x55\x55\x55\x55\x55\x55\x55\x55"
  2124. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2125. .klen = 24,
  2126. .input = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
  2127. .ilen = 8,
  2128. .result = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
  2129. .rlen = 8,
  2130. }, {
  2131. .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
  2132. "\x86\x02\x87\x66\x59\x08\x21\x98"
  2133. "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
  2134. .klen = 24,
  2135. .input = "\x73\x71\x75\x69\x67\x67\x6c\x65",
  2136. .ilen = 8,
  2137. .result = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
  2138. .rlen = 8,
  2139. }, {
  2140. .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
  2141. "\x91\x07\xd0\x15\x89\x19\x01\x01"
  2142. "\x19\x07\x92\x10\x98\x1a\x01\x01",
  2143. .klen = 24,
  2144. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2145. .ilen = 8,
  2146. .result = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
  2147. .rlen = 8,
  2148. },
  2149. };
  2150. static struct cipher_testvec des3_ede_dec_tv_template[] = {
  2151. { /* These are from openssl */
  2152. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2153. "\x55\x55\x55\x55\x55\x55\x55\x55"
  2154. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2155. .klen = 24,
  2156. .input = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
  2157. .ilen = 8,
  2158. .result = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
  2159. .rlen = 8,
  2160. }, {
  2161. .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
  2162. "\x86\x02\x87\x66\x59\x08\x21\x98"
  2163. "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
  2164. .klen = 24,
  2165. .input = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
  2166. .ilen = 8,
  2167. .result = "\x73\x71\x75\x69\x67\x67\x6c\x65",
  2168. .rlen = 8,
  2169. }, {
  2170. .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
  2171. "\x91\x07\xd0\x15\x89\x19\x01\x01"
  2172. "\x19\x07\x92\x10\x98\x1a\x01\x01",
  2173. .klen = 24,
  2174. .input = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
  2175. .ilen = 8,
  2176. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2177. .rlen = 8,
  2178. },
  2179. };
  2180. static struct cipher_testvec des3_ede_cbc_enc_tv_template[] = {
  2181. { /* Generated from openssl */
  2182. .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
  2183. "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
  2184. "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
  2185. .klen = 24,
  2186. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  2187. .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  2188. "\x53\x20\x63\x65\x65\x72\x73\x74"
  2189. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  2190. "\x20\x79\x65\x53\x72\x63\x74\x65"
  2191. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  2192. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  2193. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  2194. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  2195. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  2196. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  2197. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  2198. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  2199. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  2200. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  2201. "\x63\x65\x65\x72\x73\x74\x54\x20"
  2202. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  2203. .ilen = 128,
  2204. .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
  2205. "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
  2206. "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
  2207. "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
  2208. "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
  2209. "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
  2210. "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
  2211. "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
  2212. "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
  2213. "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
  2214. "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
  2215. "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
  2216. "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
  2217. "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
  2218. "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
  2219. "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
  2220. .rlen = 128,
  2221. },
  2222. };
  2223. static struct cipher_testvec des3_ede_cbc_dec_tv_template[] = {
  2224. { /* Generated from openssl */
  2225. .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
  2226. "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
  2227. "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
  2228. .klen = 24,
  2229. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  2230. .input = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
  2231. "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
  2232. "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
  2233. "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
  2234. "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
  2235. "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
  2236. "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
  2237. "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
  2238. "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
  2239. "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
  2240. "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
  2241. "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
  2242. "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
  2243. "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
  2244. "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
  2245. "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
  2246. .ilen = 128,
  2247. .result = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  2248. "\x53\x20\x63\x65\x65\x72\x73\x74"
  2249. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  2250. "\x20\x79\x65\x53\x72\x63\x74\x65"
  2251. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  2252. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  2253. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  2254. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  2255. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  2256. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  2257. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  2258. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  2259. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  2260. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  2261. "\x63\x65\x65\x72\x73\x74\x54\x20"
  2262. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  2263. .rlen = 128,
  2264. },
  2265. };
  2266. /*
  2267. * Blowfish test vectors.
  2268. */
  2269. #define BF_ENC_TEST_VECTORS 6
  2270. #define BF_DEC_TEST_VECTORS 6
  2271. #define BF_CBC_ENC_TEST_VECTORS 1
  2272. #define BF_CBC_DEC_TEST_VECTORS 1
  2273. static struct cipher_testvec bf_enc_tv_template[] = {
  2274. { /* DES test vectors from OpenSSL */
  2275. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2276. .klen = 8,
  2277. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2278. .ilen = 8,
  2279. .result = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
  2280. .rlen = 8,
  2281. }, {
  2282. .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
  2283. .klen = 8,
  2284. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2285. .ilen = 8,
  2286. .result = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
  2287. .rlen = 8,
  2288. }, {
  2289. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  2290. .klen = 8,
  2291. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2292. .ilen = 8,
  2293. .result = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
  2294. .rlen = 8,
  2295. }, { /* Vary the keylength... */
  2296. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2297. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
  2298. .klen = 16,
  2299. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2300. .ilen = 8,
  2301. .result = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
  2302. .rlen = 8,
  2303. }, {
  2304. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2305. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  2306. "\x00\x11\x22\x33\x44",
  2307. .klen = 21,
  2308. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2309. .ilen = 8,
  2310. .result = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
  2311. .rlen = 8,
  2312. }, { /* Generated with bf488 */
  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\x55\x66\x77"
  2316. "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
  2317. "\x58\x40\x23\x64\x1a\xba\x61\x76"
  2318. "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
  2319. "\xff\xff\xff\xff\xff\xff\xff\xff",
  2320. .klen = 56,
  2321. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2322. .ilen = 8,
  2323. .result = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
  2324. .rlen = 8,
  2325. },
  2326. };
  2327. static struct cipher_testvec bf_dec_tv_template[] = {
  2328. { /* DES test vectors from OpenSSL */
  2329. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2330. .klen = 8,
  2331. .input = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
  2332. .ilen = 8,
  2333. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2334. .rlen = 8,
  2335. }, {
  2336. .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
  2337. .klen = 8,
  2338. .input = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
  2339. .ilen = 8,
  2340. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2341. .rlen = 8,
  2342. }, {
  2343. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  2344. .klen = 8,
  2345. .input = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
  2346. .ilen = 8,
  2347. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2348. .rlen = 8,
  2349. }, { /* Vary the keylength... */
  2350. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2351. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
  2352. .klen = 16,
  2353. .input = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
  2354. .ilen = 8,
  2355. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2356. .rlen = 8,
  2357. }, {
  2358. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2359. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  2360. "\x00\x11\x22\x33\x44",
  2361. .klen = 21,
  2362. .input = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
  2363. .ilen = 8,
  2364. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2365. .rlen = 8,
  2366. }, { /* Generated with bf488, using OpenSSL, Libgcrypt and Nettle */
  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\x55\x66\x77"
  2370. "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
  2371. "\x58\x40\x23\x64\x1a\xba\x61\x76"
  2372. "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
  2373. "\xff\xff\xff\xff\xff\xff\xff\xff",
  2374. .klen = 56,
  2375. .input = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
  2376. .ilen = 8,
  2377. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2378. .rlen = 8,
  2379. },
  2380. };
  2381. static struct cipher_testvec bf_cbc_enc_tv_template[] = {
  2382. { /* From OpenSSL */
  2383. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2384. "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  2385. .klen = 16,
  2386. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2387. .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
  2388. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  2389. "\x68\x65\x20\x74\x69\x6d\x65\x20"
  2390. "\x66\x6f\x72\x20\x00\x00\x00\x00",
  2391. .ilen = 32,
  2392. .result = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
  2393. "\x05\xb1\x56\xe2\x74\x03\x97\x93"
  2394. "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
  2395. "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
  2396. .rlen = 32,
  2397. },
  2398. };
  2399. static struct cipher_testvec bf_cbc_dec_tv_template[] = {
  2400. { /* From OpenSSL */
  2401. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2402. "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  2403. .klen = 16,
  2404. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2405. .input = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
  2406. "\x05\xb1\x56\xe2\x74\x03\x97\x93"
  2407. "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
  2408. "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
  2409. .ilen = 32,
  2410. .result = "\x37\x36\x35\x34\x33\x32\x31\x20"
  2411. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  2412. "\x68\x65\x20\x74\x69\x6d\x65\x20"
  2413. "\x66\x6f\x72\x20\x00\x00\x00\x00",
  2414. .rlen = 32,
  2415. },
  2416. };
  2417. /*
  2418. * Twofish test vectors.
  2419. */
  2420. #define TF_ENC_TEST_VECTORS 3
  2421. #define TF_DEC_TEST_VECTORS 3
  2422. #define TF_CBC_ENC_TEST_VECTORS 4
  2423. #define TF_CBC_DEC_TEST_VECTORS 4
  2424. static struct cipher_testvec tf_enc_tv_template[] = {
  2425. {
  2426. .key = zeroed_string,
  2427. .klen = 16,
  2428. .input = zeroed_string,
  2429. .ilen = 16,
  2430. .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2431. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2432. .rlen = 16,
  2433. }, {
  2434. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2435. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  2436. "\x00\x11\x22\x33\x44\x55\x66\x77",
  2437. .klen = 24,
  2438. .input = zeroed_string,
  2439. .ilen = 16,
  2440. .result = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
  2441. "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
  2442. .rlen = 16,
  2443. }, {
  2444. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2445. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  2446. "\x00\x11\x22\x33\x44\x55\x66\x77"
  2447. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2448. .klen = 32,
  2449. .input = zeroed_string,
  2450. .ilen = 16,
  2451. .result = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
  2452. "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
  2453. .rlen = 16,
  2454. },
  2455. };
  2456. static struct cipher_testvec tf_dec_tv_template[] = {
  2457. {
  2458. .key = zeroed_string,
  2459. .klen = 16,
  2460. .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2461. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2462. .ilen = 16,
  2463. .result = zeroed_string,
  2464. .rlen = 16,
  2465. }, {
  2466. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2467. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  2468. "\x00\x11\x22\x33\x44\x55\x66\x77",
  2469. .klen = 24,
  2470. .input = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
  2471. "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
  2472. .ilen = 16,
  2473. .result = zeroed_string,
  2474. .rlen = 16,
  2475. }, {
  2476. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2477. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  2478. "\x00\x11\x22\x33\x44\x55\x66\x77"
  2479. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2480. .klen = 32,
  2481. .input = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
  2482. "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
  2483. .ilen = 16,
  2484. .result = zeroed_string,
  2485. .rlen = 16,
  2486. },
  2487. };
  2488. static struct cipher_testvec tf_cbc_enc_tv_template[] = {
  2489. { /* Generated with Nettle */
  2490. .key = zeroed_string,
  2491. .klen = 16,
  2492. .iv = zeroed_string,
  2493. .input = zeroed_string,
  2494. .ilen = 16,
  2495. .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2496. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2497. .rlen = 16,
  2498. }, {
  2499. .key = zeroed_string,
  2500. .klen = 16,
  2501. .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2502. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2503. .input = zeroed_string,
  2504. .ilen = 16,
  2505. .result = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2506. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  2507. .rlen = 16,
  2508. }, {
  2509. .key = zeroed_string,
  2510. .klen = 16,
  2511. .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2512. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  2513. .input = zeroed_string,
  2514. .ilen = 16,
  2515. .result = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  2516. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  2517. .rlen = 16,
  2518. }, {
  2519. .key = zeroed_string,
  2520. .klen = 16,
  2521. .iv = zeroed_string,
  2522. .input = zeroed_string,
  2523. .ilen = 48,
  2524. .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2525. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
  2526. "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2527. "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
  2528. "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  2529. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  2530. .rlen = 48,
  2531. },
  2532. };
  2533. static struct cipher_testvec tf_cbc_dec_tv_template[] = {
  2534. { /* Reverse of the first four above */
  2535. .key = zeroed_string,
  2536. .klen = 16,
  2537. .iv = zeroed_string,
  2538. .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2539. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2540. .ilen = 16,
  2541. .result = zeroed_string,
  2542. .rlen = 16,
  2543. }, {
  2544. .key = zeroed_string,
  2545. .klen = 16,
  2546. .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2547. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2548. .input = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2549. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  2550. .ilen = 16,
  2551. .result = zeroed_string,
  2552. .rlen = 16,
  2553. }, {
  2554. .key = zeroed_string,
  2555. .klen = 16,
  2556. .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2557. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  2558. .input = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  2559. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  2560. .ilen = 16,
  2561. .result = zeroed_string,
  2562. .rlen = 16,
  2563. }, {
  2564. .key = zeroed_string,
  2565. .klen = 16,
  2566. .iv = zeroed_string,
  2567. .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2568. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
  2569. "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2570. "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
  2571. "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  2572. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  2573. .ilen = 48,
  2574. .result = zeroed_string,
  2575. .rlen = 48,
  2576. },
  2577. };
  2578. /*
  2579. * Serpent test vectors. These are backwards because Serpent writes
  2580. * octet sequences in right-to-left mode.
  2581. */
  2582. #define SERPENT_ENC_TEST_VECTORS 4
  2583. #define SERPENT_DEC_TEST_VECTORS 4
  2584. #define TNEPRES_ENC_TEST_VECTORS 4
  2585. #define TNEPRES_DEC_TEST_VECTORS 4
  2586. static struct cipher_testvec serpent_enc_tv_template[] = {
  2587. {
  2588. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2589. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2590. .ilen = 16,
  2591. .result = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
  2592. "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
  2593. .rlen = 16,
  2594. }, {
  2595. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2596. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2597. .klen = 16,
  2598. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2599. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2600. .ilen = 16,
  2601. .result = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
  2602. "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
  2603. .rlen = 16,
  2604. }, {
  2605. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2606. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2607. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2608. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2609. .klen = 32,
  2610. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2611. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2612. .ilen = 16,
  2613. .result = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
  2614. "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
  2615. .rlen = 16,
  2616. }, {
  2617. .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
  2618. .klen = 16,
  2619. .input = zeroed_string,
  2620. .ilen = 16,
  2621. .result = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
  2622. "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
  2623. .rlen = 16,
  2624. },
  2625. };
  2626. static struct cipher_testvec tnepres_enc_tv_template[] = {
  2627. { /* KeySize=128, PT=0, I=1 */
  2628. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2629. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2630. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  2631. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2632. .klen = 16,
  2633. .ilen = 16,
  2634. .result = "\x49\xaf\xbf\xad\x9d\x5a\x34\x05"
  2635. "\x2c\xd8\xff\xa5\x98\x6b\xd2\xdd",
  2636. .rlen = 16,
  2637. }, { /* KeySize=192, PT=0, I=1 */
  2638. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  2639. "\x00\x00\x00\x00\x00\x00\x00\x00"
  2640. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2641. .klen = 24,
  2642. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2643. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2644. .ilen = 16,
  2645. .result = "\xe7\x8e\x54\x02\xc7\x19\x55\x68"
  2646. "\xac\x36\x78\xf7\xa3\xf6\x0c\x66",
  2647. .rlen = 16,
  2648. }, { /* KeySize=256, PT=0, I=1 */
  2649. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  2650. "\x00\x00\x00\x00\x00\x00\x00\x00"
  2651. "\x00\x00\x00\x00\x00\x00\x00\x00"
  2652. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2653. .klen = 32,
  2654. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2655. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2656. .ilen = 16,
  2657. .result = "\xab\xed\x96\xe7\x66\xbf\x28\xcb"
  2658. "\xc0\xeb\xd2\x1a\x82\xef\x08\x19",
  2659. .rlen = 16,
  2660. }, { /* KeySize=256, I=257 */
  2661. .key = "\x1f\x1e\x1d\x1c\x1b\x1a\x19\x18"
  2662. "\x17\x16\x15\x14\x13\x12\x11\x10"
  2663. "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
  2664. "\x07\x06\x05\x04\x03\x02\x01\x00",
  2665. .klen = 32,
  2666. .input = "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
  2667. "\x07\x06\x05\x04\x03\x02\x01\x00",
  2668. .ilen = 16,
  2669. .result = "\x5c\xe7\x1c\x70\xd2\x88\x2e\x5b"
  2670. "\xb8\x32\xe4\x33\xf8\x9f\x26\xde",
  2671. .rlen = 16,
  2672. },
  2673. };
  2674. static struct cipher_testvec serpent_dec_tv_template[] = {
  2675. {
  2676. .input = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
  2677. "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
  2678. .ilen = 16,
  2679. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2680. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2681. .rlen = 16,
  2682. }, {
  2683. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2684. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2685. .klen = 16,
  2686. .input = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
  2687. "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
  2688. .ilen = 16,
  2689. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2690. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2691. .rlen = 16,
  2692. }, {
  2693. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2694. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2695. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2696. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2697. .klen = 32,
  2698. .input = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
  2699. "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
  2700. .ilen = 16,
  2701. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2702. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2703. .rlen = 16,
  2704. }, {
  2705. .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
  2706. .klen = 16,
  2707. .input = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
  2708. "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
  2709. .ilen = 16,
  2710. .result = zeroed_string,
  2711. .rlen = 16,
  2712. },
  2713. };
  2714. static struct cipher_testvec tnepres_dec_tv_template[] = {
  2715. {
  2716. .input = "\x41\xcc\x6b\x31\x59\x31\x45\x97"
  2717. "\x6d\x6f\xbb\x38\x4b\x37\x21\x28",
  2718. .ilen = 16,
  2719. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2720. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2721. .rlen = 16,
  2722. }, {
  2723. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2724. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2725. .klen = 16,
  2726. .input = "\xea\xf4\xd7\xfc\xd8\x01\x34\x47"
  2727. "\x81\x45\x0b\xfa\x0c\xd6\xad\x6e",
  2728. .ilen = 16,
  2729. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2730. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2731. .rlen = 16,
  2732. }, {
  2733. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2734. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2735. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2736. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2737. .klen = 32,
  2738. .input = "\x64\xa9\x1a\x37\xed\x9f\xe7\x49"
  2739. "\xa8\x4e\x76\xd6\xf5\x0d\x78\xee",
  2740. .ilen = 16,
  2741. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2742. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2743. .rlen = 16,
  2744. }, { /* KeySize=128, I=121 */
  2745. .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
  2746. .klen = 16,
  2747. .input = "\x3d\xda\xbf\xc0\x06\xda\xab\x06"
  2748. "\x46\x2a\xf4\xef\x81\x54\x4e\x26",
  2749. .ilen = 16,
  2750. .result = zeroed_string,
  2751. .rlen = 16,
  2752. },
  2753. };
  2754. /* Cast6 test vectors from RFC 2612 */
  2755. #define CAST6_ENC_TEST_VECTORS 3
  2756. #define CAST6_DEC_TEST_VECTORS 3
  2757. static struct cipher_testvec cast6_enc_tv_template[] = {
  2758. {
  2759. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2760. "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
  2761. .klen = 16,
  2762. .input = zeroed_string,
  2763. .ilen = 16,
  2764. .result = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
  2765. "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
  2766. .rlen = 16,
  2767. }, {
  2768. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2769. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  2770. "\xba\xc7\x7a\x77\x17\x94\x28\x63",
  2771. .klen = 24,
  2772. .input = zeroed_string,
  2773. .ilen = 16,
  2774. .result = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
  2775. "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
  2776. .rlen = 16,
  2777. }, {
  2778. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2779. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  2780. "\x8d\x7c\x47\xce\x26\x49\x08\x46"
  2781. "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
  2782. .klen = 32,
  2783. .input = zeroed_string,
  2784. .ilen = 16,
  2785. .result = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
  2786. "\xc9\x87\x01\x36\x55\x33\x17\xfa",
  2787. .rlen = 16,
  2788. },
  2789. };
  2790. static struct cipher_testvec cast6_dec_tv_template[] = {
  2791. {
  2792. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2793. "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
  2794. .klen = 16,
  2795. .input = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
  2796. "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
  2797. .ilen = 16,
  2798. .result = zeroed_string,
  2799. .rlen = 16,
  2800. }, {
  2801. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2802. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  2803. "\xba\xc7\x7a\x77\x17\x94\x28\x63",
  2804. .klen = 24,
  2805. .input = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
  2806. "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
  2807. .ilen = 16,
  2808. .result = zeroed_string,
  2809. .rlen = 16,
  2810. }, {
  2811. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2812. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  2813. "\x8d\x7c\x47\xce\x26\x49\x08\x46"
  2814. "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
  2815. .klen = 32,
  2816. .input = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
  2817. "\xc9\x87\x01\x36\x55\x33\x17\xfa",
  2818. .ilen = 16,
  2819. .result = zeroed_string,
  2820. .rlen = 16,
  2821. },
  2822. };
  2823. /*
  2824. * AES test vectors.
  2825. */
  2826. #define AES_ENC_TEST_VECTORS 3
  2827. #define AES_DEC_TEST_VECTORS 3
  2828. #define AES_CBC_ENC_TEST_VECTORS 4
  2829. #define AES_CBC_DEC_TEST_VECTORS 4
  2830. #define AES_LRW_ENC_TEST_VECTORS 8
  2831. #define AES_LRW_DEC_TEST_VECTORS 8
  2832. #define AES_XTS_ENC_TEST_VECTORS 4
  2833. #define AES_XTS_DEC_TEST_VECTORS 4
  2834. #define AES_CTR_ENC_TEST_VECTORS 3
  2835. #define AES_CTR_DEC_TEST_VECTORS 3
  2836. #define AES_CTR_3686_ENC_TEST_VECTORS 7
  2837. #define AES_CTR_3686_DEC_TEST_VECTORS 6
  2838. #define AES_GCM_ENC_TEST_VECTORS 9
  2839. #define AES_GCM_DEC_TEST_VECTORS 8
  2840. #define AES_CCM_ENC_TEST_VECTORS 7
  2841. #define AES_CCM_DEC_TEST_VECTORS 7
  2842. #define AES_CCM_4309_ENC_TEST_VECTORS 7
  2843. #define AES_CCM_4309_DEC_TEST_VECTORS 10
  2844. static struct cipher_testvec aes_enc_tv_template[] = {
  2845. { /* From FIPS-197 */
  2846. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2847. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2848. .klen = 16,
  2849. .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2850. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2851. .ilen = 16,
  2852. .result = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
  2853. "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
  2854. .rlen = 16,
  2855. }, {
  2856. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2857. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2858. "\x10\x11\x12\x13\x14\x15\x16\x17",
  2859. .klen = 24,
  2860. .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2861. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2862. .ilen = 16,
  2863. .result = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
  2864. "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
  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. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2871. .klen = 32,
  2872. .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2873. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2874. .ilen = 16,
  2875. .result = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
  2876. "\xea\xfc\x49\x90\x4b\x49\x60\x89",
  2877. .rlen = 16,
  2878. },
  2879. };
  2880. static struct cipher_testvec aes_dec_tv_template[] = {
  2881. { /* From FIPS-197 */
  2882. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2883. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2884. .klen = 16,
  2885. .input = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
  2886. "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
  2887. .ilen = 16,
  2888. .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2889. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2890. .rlen = 16,
  2891. }, {
  2892. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2893. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2894. "\x10\x11\x12\x13\x14\x15\x16\x17",
  2895. .klen = 24,
  2896. .input = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
  2897. "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
  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. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2907. .klen = 32,
  2908. .input = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
  2909. "\xea\xfc\x49\x90\x4b\x49\x60\x89",
  2910. .ilen = 16,
  2911. .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2912. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2913. .rlen = 16,
  2914. },
  2915. };
  2916. static struct cipher_testvec aes_cbc_enc_tv_template[] = {
  2917. { /* From RFC 3602 */
  2918. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  2919. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  2920. .klen = 16,
  2921. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  2922. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  2923. .input = "Single block msg",
  2924. .ilen = 16,
  2925. .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
  2926. "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
  2927. .rlen = 16,
  2928. }, {
  2929. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  2930. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  2931. .klen = 16,
  2932. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  2933. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  2934. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2935. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2936. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2937. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2938. .ilen = 32,
  2939. .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
  2940. "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
  2941. "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
  2942. "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
  2943. .rlen = 32,
  2944. }, { /* From NIST SP800-38A */
  2945. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  2946. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  2947. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  2948. .klen = 24,
  2949. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2950. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2951. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  2952. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  2953. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  2954. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  2955. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  2956. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  2957. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  2958. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  2959. .ilen = 64,
  2960. .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
  2961. "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
  2962. "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
  2963. "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
  2964. "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
  2965. "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
  2966. "\x08\xb0\xe2\x79\x88\x59\x88\x81"
  2967. "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
  2968. .rlen = 64,
  2969. }, {
  2970. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  2971. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  2972. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  2973. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  2974. .klen = 32,
  2975. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2976. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2977. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  2978. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  2979. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  2980. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  2981. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  2982. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  2983. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  2984. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  2985. .ilen = 64,
  2986. .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
  2987. "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
  2988. "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
  2989. "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
  2990. "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
  2991. "\xa5\x30\xe2\x63\x04\x23\x14\x61"
  2992. "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
  2993. "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
  2994. .rlen = 64,
  2995. },
  2996. };
  2997. static struct cipher_testvec aes_cbc_dec_tv_template[] = {
  2998. { /* From RFC 3602 */
  2999. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  3000. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  3001. .klen = 16,
  3002. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  3003. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  3004. .input = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
  3005. "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
  3006. .ilen = 16,
  3007. .result = "Single block msg",
  3008. .rlen = 16,
  3009. }, {
  3010. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  3011. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  3012. .klen = 16,
  3013. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  3014. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  3015. .input = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
  3016. "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
  3017. "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
  3018. "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
  3019. .ilen = 32,
  3020. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3021. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3022. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3023. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  3024. .rlen = 32,
  3025. }, { /* From NIST SP800-38A */
  3026. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  3027. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  3028. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  3029. .klen = 24,
  3030. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3031. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  3032. .input = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
  3033. "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
  3034. "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
  3035. "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
  3036. "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
  3037. "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
  3038. "\x08\xb0\xe2\x79\x88\x59\x88\x81"
  3039. "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
  3040. .ilen = 64,
  3041. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  3042. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  3043. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  3044. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  3045. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  3046. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  3047. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  3048. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  3049. .rlen = 64,
  3050. }, {
  3051. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  3052. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  3053. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  3054. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  3055. .klen = 32,
  3056. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3057. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  3058. .input = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
  3059. "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
  3060. "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
  3061. "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
  3062. "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
  3063. "\xa5\x30\xe2\x63\x04\x23\x14\x61"
  3064. "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
  3065. "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
  3066. .ilen = 64,
  3067. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  3068. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  3069. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  3070. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  3071. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  3072. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  3073. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  3074. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  3075. .rlen = 64,
  3076. },
  3077. };
  3078. static struct cipher_testvec aes_lrw_enc_tv_template[] = {
  3079. /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
  3080. { /* LRW-32-AES 1 */
  3081. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  3082. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  3083. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  3084. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  3085. .klen = 32,
  3086. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3087. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3088. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3089. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3090. .ilen = 16,
  3091. .result = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
  3092. "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
  3093. .rlen = 16,
  3094. }, { /* LRW-32-AES 2 */
  3095. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  3096. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  3097. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  3098. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  3099. .klen = 32,
  3100. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3101. "\x00\x00\x00\x00\x00\x00\x00\x02",
  3102. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3103. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3104. .ilen = 16,
  3105. .result = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
  3106. "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
  3107. .rlen = 16,
  3108. }, { /* LRW-32-AES 3 */
  3109. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  3110. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  3111. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  3112. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  3113. .klen = 32,
  3114. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3115. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3116. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3117. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3118. .ilen = 16,
  3119. .result = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
  3120. "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
  3121. .rlen = 16,
  3122. }, { /* LRW-32-AES 4 */
  3123. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  3124. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  3125. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  3126. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  3127. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  3128. .klen = 40,
  3129. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3130. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3131. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3132. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3133. .ilen = 16,
  3134. .result = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
  3135. "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
  3136. .rlen = 16,
  3137. }, { /* LRW-32-AES 5 */
  3138. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  3139. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  3140. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  3141. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  3142. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  3143. .klen = 40,
  3144. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3145. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3146. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3147. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3148. .ilen = 16,
  3149. .result = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
  3150. "\xc8\x60\x48\x02\x87\xe3\x34\x06",
  3151. .rlen = 16,
  3152. }, { /* LRW-32-AES 6 */
  3153. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  3154. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  3155. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  3156. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  3157. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  3158. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  3159. .klen = 48,
  3160. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3161. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3162. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3163. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3164. .ilen = 16,
  3165. .result = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
  3166. "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
  3167. .rlen = 16,
  3168. }, { /* LRW-32-AES 7 */
  3169. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  3170. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  3171. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  3172. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  3173. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  3174. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  3175. .klen = 48,
  3176. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3177. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3178. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3179. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3180. .ilen = 16,
  3181. .result = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
  3182. "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
  3183. .rlen = 16,
  3184. }, {
  3185. /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
  3186. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  3187. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  3188. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  3189. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  3190. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  3191. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  3192. .klen = 48,
  3193. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3194. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3195. .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  3196. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  3197. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  3198. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  3199. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  3200. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  3201. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  3202. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  3203. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  3204. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  3205. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  3206. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  3207. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  3208. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  3209. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  3210. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  3211. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  3212. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  3213. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  3214. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  3215. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  3216. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  3217. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  3218. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  3219. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  3220. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  3221. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  3222. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  3223. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  3224. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  3225. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  3226. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  3227. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  3228. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  3229. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  3230. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  3231. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  3232. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  3233. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  3234. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  3235. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  3236. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  3237. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  3238. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  3239. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  3240. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  3241. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  3242. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  3243. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  3244. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  3245. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  3246. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  3247. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  3248. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  3249. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  3250. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  3251. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  3252. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  3253. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  3254. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  3255. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  3256. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  3257. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  3258. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  3259. .ilen = 512,
  3260. .result = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
  3261. "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
  3262. "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
  3263. "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
  3264. "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
  3265. "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
  3266. "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
  3267. "\xe8\x58\x46\x97\x39\x51\x07\xde"
  3268. "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
  3269. "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
  3270. "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
  3271. "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
  3272. "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
  3273. "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
  3274. "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
  3275. "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
  3276. "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
  3277. "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
  3278. "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
  3279. "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
  3280. "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
  3281. "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
  3282. "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
  3283. "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
  3284. "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
  3285. "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
  3286. "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
  3287. "\x41\x30\x58\xc5\x62\x74\x52\x1d"
  3288. "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
  3289. "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
  3290. "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
  3291. "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
  3292. "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
  3293. "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
  3294. "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
  3295. "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
  3296. "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
  3297. "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
  3298. "\xb8\x79\x78\x97\x94\xff\x72\x13"
  3299. "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
  3300. "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
  3301. "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
  3302. "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
  3303. "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
  3304. "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
  3305. "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
  3306. "\x1e\x86\x53\x11\x53\x94\x00\xee"
  3307. "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
  3308. "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
  3309. "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
  3310. "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
  3311. "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
  3312. "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
  3313. "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
  3314. "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
  3315. "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
  3316. "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
  3317. "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
  3318. "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
  3319. "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
  3320. "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
  3321. "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
  3322. "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
  3323. "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
  3324. .rlen = 512,
  3325. }
  3326. };
  3327. static struct cipher_testvec aes_lrw_dec_tv_template[] = {
  3328. /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
  3329. /* same as enc vectors with input and result reversed */
  3330. { /* LRW-32-AES 1 */
  3331. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  3332. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  3333. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  3334. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  3335. .klen = 32,
  3336. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3337. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3338. .input = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
  3339. "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
  3340. .ilen = 16,
  3341. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3342. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3343. .rlen = 16,
  3344. }, { /* LRW-32-AES 2 */
  3345. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  3346. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  3347. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  3348. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  3349. .klen = 32,
  3350. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3351. "\x00\x00\x00\x00\x00\x00\x00\x02",
  3352. .input = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
  3353. "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
  3354. .ilen = 16,
  3355. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3356. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3357. .rlen = 16,
  3358. }, { /* LRW-32-AES 3 */
  3359. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  3360. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  3361. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  3362. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  3363. .klen = 32,
  3364. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3365. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3366. .input = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
  3367. "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
  3368. .ilen = 16,
  3369. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3370. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3371. .rlen = 16,
  3372. }, { /* LRW-32-AES 4 */
  3373. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  3374. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  3375. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  3376. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  3377. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  3378. .klen = 40,
  3379. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3380. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3381. .input = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
  3382. "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
  3383. .ilen = 16,
  3384. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3385. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3386. .rlen = 16,
  3387. }, { /* LRW-32-AES 5 */
  3388. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  3389. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  3390. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  3391. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  3392. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  3393. .klen = 40,
  3394. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3395. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3396. .input = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
  3397. "\xc8\x60\x48\x02\x87\xe3\x34\x06",
  3398. .ilen = 16,
  3399. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3400. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3401. .rlen = 16,
  3402. }, { /* LRW-32-AES 6 */
  3403. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  3404. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  3405. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  3406. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  3407. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  3408. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  3409. .klen = 48,
  3410. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3411. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3412. .input = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
  3413. "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
  3414. .ilen = 16,
  3415. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3416. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3417. .rlen = 16,
  3418. }, { /* LRW-32-AES 7 */
  3419. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  3420. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  3421. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  3422. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  3423. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  3424. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  3425. .klen = 48,
  3426. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3427. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3428. .input = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
  3429. "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
  3430. .ilen = 16,
  3431. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3432. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3433. .rlen = 16,
  3434. }, {
  3435. /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
  3436. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  3437. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  3438. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  3439. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  3440. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  3441. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  3442. .klen = 48,
  3443. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3444. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3445. .input = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
  3446. "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
  3447. "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
  3448. "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
  3449. "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
  3450. "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
  3451. "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
  3452. "\xe8\x58\x46\x97\x39\x51\x07\xde"
  3453. "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
  3454. "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
  3455. "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
  3456. "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
  3457. "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
  3458. "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
  3459. "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
  3460. "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
  3461. "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
  3462. "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
  3463. "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
  3464. "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
  3465. "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
  3466. "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
  3467. "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
  3468. "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
  3469. "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
  3470. "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
  3471. "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
  3472. "\x41\x30\x58\xc5\x62\x74\x52\x1d"
  3473. "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
  3474. "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
  3475. "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
  3476. "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
  3477. "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
  3478. "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
  3479. "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
  3480. "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
  3481. "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
  3482. "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
  3483. "\xb8\x79\x78\x97\x94\xff\x72\x13"
  3484. "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
  3485. "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
  3486. "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
  3487. "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
  3488. "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
  3489. "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
  3490. "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
  3491. "\x1e\x86\x53\x11\x53\x94\x00\xee"
  3492. "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
  3493. "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
  3494. "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
  3495. "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
  3496. "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
  3497. "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
  3498. "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
  3499. "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
  3500. "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
  3501. "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
  3502. "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
  3503. "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
  3504. "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
  3505. "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
  3506. "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
  3507. "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
  3508. "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
  3509. .ilen = 512,
  3510. .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  3511. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  3512. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  3513. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  3514. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  3515. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  3516. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  3517. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  3518. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  3519. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  3520. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  3521. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  3522. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  3523. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  3524. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  3525. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  3526. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  3527. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  3528. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  3529. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  3530. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  3531. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  3532. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  3533. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  3534. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  3535. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  3536. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  3537. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  3538. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  3539. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  3540. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  3541. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  3542. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  3543. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  3544. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  3545. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  3546. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  3547. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  3548. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  3549. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  3550. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  3551. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  3552. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  3553. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  3554. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  3555. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  3556. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  3557. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  3558. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  3559. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  3560. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  3561. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  3562. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  3563. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  3564. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  3565. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  3566. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  3567. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  3568. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  3569. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  3570. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  3571. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  3572. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  3573. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  3574. .rlen = 512,
  3575. }
  3576. };
  3577. static struct cipher_testvec aes_xts_enc_tv_template[] = {
  3578. /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
  3579. { /* XTS-AES 1 */
  3580. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3581. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3582. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3583. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3584. .klen = 32,
  3585. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3586. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3587. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3588. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3589. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3590. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3591. .ilen = 32,
  3592. .result = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
  3593. "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
  3594. "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
  3595. "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
  3596. .rlen = 32,
  3597. }, { /* XTS-AES 2 */
  3598. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  3599. "\x11\x11\x11\x11\x11\x11\x11\x11"
  3600. "\x22\x22\x22\x22\x22\x22\x22\x22"
  3601. "\x22\x22\x22\x22\x22\x22\x22\x22",
  3602. .klen = 32,
  3603. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  3604. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3605. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  3606. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3607. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3608. "\x44\x44\x44\x44\x44\x44\x44\x44",
  3609. .ilen = 32,
  3610. .result = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
  3611. "\x39\x33\x40\x38\xac\xef\x83\x8b"
  3612. "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
  3613. "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
  3614. .rlen = 32,
  3615. }, { /* XTS-AES 3 */
  3616. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  3617. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  3618. "\x22\x22\x22\x22\x22\x22\x22\x22"
  3619. "\x22\x22\x22\x22\x22\x22\x22\x22",
  3620. .klen = 32,
  3621. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  3622. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3623. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  3624. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3625. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3626. "\x44\x44\x44\x44\x44\x44\x44\x44",
  3627. .ilen = 32,
  3628. .result = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
  3629. "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
  3630. "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
  3631. "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
  3632. .rlen = 32,
  3633. }, { /* XTS-AES 4 */
  3634. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  3635. "\x23\x53\x60\x28\x74\x71\x35\x26"
  3636. "\x31\x41\x59\x26\x53\x58\x97\x93"
  3637. "\x23\x84\x62\x64\x33\x83\x27\x95",
  3638. .klen = 32,
  3639. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3640. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3641. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3642. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3643. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3644. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  3645. "\x20\x21\x22\x23\x24\x25\x26\x27"
  3646. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  3647. "\x30\x31\x32\x33\x34\x35\x36\x37"
  3648. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  3649. "\x40\x41\x42\x43\x44\x45\x46\x47"
  3650. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  3651. "\x50\x51\x52\x53\x54\x55\x56\x57"
  3652. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  3653. "\x60\x61\x62\x63\x64\x65\x66\x67"
  3654. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  3655. "\x70\x71\x72\x73\x74\x75\x76\x77"
  3656. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  3657. "\x80\x81\x82\x83\x84\x85\x86\x87"
  3658. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  3659. "\x90\x91\x92\x93\x94\x95\x96\x97"
  3660. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  3661. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  3662. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  3663. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  3664. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  3665. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  3666. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  3667. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  3668. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  3669. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  3670. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  3671. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3672. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  3673. "\x00\x01\x02\x03\x04\x05\x06\x07"
  3674. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3675. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3676. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  3677. "\x20\x21\x22\x23\x24\x25\x26\x27"
  3678. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  3679. "\x30\x31\x32\x33\x34\x35\x36\x37"
  3680. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  3681. "\x40\x41\x42\x43\x44\x45\x46\x47"
  3682. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  3683. "\x50\x51\x52\x53\x54\x55\x56\x57"
  3684. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  3685. "\x60\x61\x62\x63\x64\x65\x66\x67"
  3686. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  3687. "\x70\x71\x72\x73\x74\x75\x76\x77"
  3688. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  3689. "\x80\x81\x82\x83\x84\x85\x86\x87"
  3690. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  3691. "\x90\x91\x92\x93\x94\x95\x96\x97"
  3692. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  3693. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  3694. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  3695. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  3696. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  3697. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  3698. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  3699. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  3700. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  3701. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  3702. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  3703. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3704. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  3705. .ilen = 512,
  3706. .result = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
  3707. "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
  3708. "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
  3709. "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
  3710. "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
  3711. "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
  3712. "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
  3713. "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
  3714. "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
  3715. "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
  3716. "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
  3717. "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
  3718. "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
  3719. "\x22\x97\x61\x46\xae\x20\xce\x84"
  3720. "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
  3721. "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
  3722. "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
  3723. "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
  3724. "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
  3725. "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
  3726. "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
  3727. "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
  3728. "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
  3729. "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
  3730. "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
  3731. "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
  3732. "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
  3733. "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
  3734. "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
  3735. "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
  3736. "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
  3737. "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
  3738. "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
  3739. "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
  3740. "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
  3741. "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
  3742. "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
  3743. "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
  3744. "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
  3745. "\x55\xef\x52\x97\xca\x67\xe9\xf3"
  3746. "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
  3747. "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
  3748. "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
  3749. "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
  3750. "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
  3751. "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
  3752. "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
  3753. "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
  3754. "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
  3755. "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
  3756. "\x18\x84\x69\x77\xae\x11\x9f\x7a"
  3757. "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
  3758. "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
  3759. "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
  3760. "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
  3761. "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
  3762. "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
  3763. "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
  3764. "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
  3765. "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
  3766. "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
  3767. "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
  3768. "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
  3769. "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
  3770. .rlen = 512,
  3771. }
  3772. };
  3773. static struct cipher_testvec aes_xts_dec_tv_template[] = {
  3774. /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
  3775. { /* XTS-AES 1 */
  3776. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3777. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3778. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3779. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3780. .klen = 32,
  3781. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3782. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3783. .input = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
  3784. "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
  3785. "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
  3786. "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
  3787. .ilen = 32,
  3788. .result = "\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. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3792. .rlen = 32,
  3793. }, { /* XTS-AES 2 */
  3794. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  3795. "\x11\x11\x11\x11\x11\x11\x11\x11"
  3796. "\x22\x22\x22\x22\x22\x22\x22\x22"
  3797. "\x22\x22\x22\x22\x22\x22\x22\x22",
  3798. .klen = 32,
  3799. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  3800. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3801. .input = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
  3802. "\x39\x33\x40\x38\xac\xef\x83\x8b"
  3803. "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
  3804. "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
  3805. .ilen = 32,
  3806. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  3807. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3808. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3809. "\x44\x44\x44\x44\x44\x44\x44\x44",
  3810. .rlen = 32,
  3811. }, { /* XTS-AES 3 */
  3812. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  3813. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  3814. "\x22\x22\x22\x22\x22\x22\x22\x22"
  3815. "\x22\x22\x22\x22\x22\x22\x22\x22",
  3816. .klen = 32,
  3817. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  3818. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3819. .input = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
  3820. "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
  3821. "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
  3822. "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
  3823. .ilen = 32,
  3824. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  3825. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3826. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3827. "\x44\x44\x44\x44\x44\x44\x44\x44",
  3828. .rlen = 32,
  3829. }, { /* XTS-AES 4 */
  3830. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  3831. "\x23\x53\x60\x28\x74\x71\x35\x26"
  3832. "\x31\x41\x59\x26\x53\x58\x97\x93"
  3833. "\x23\x84\x62\x64\x33\x83\x27\x95",
  3834. .klen = 32,
  3835. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3836. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3837. .input = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
  3838. "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
  3839. "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
  3840. "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
  3841. "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
  3842. "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
  3843. "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
  3844. "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
  3845. "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
  3846. "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
  3847. "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
  3848. "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
  3849. "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
  3850. "\x22\x97\x61\x46\xae\x20\xce\x84"
  3851. "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
  3852. "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
  3853. "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
  3854. "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
  3855. "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
  3856. "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
  3857. "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
  3858. "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
  3859. "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
  3860. "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
  3861. "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
  3862. "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
  3863. "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
  3864. "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
  3865. "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
  3866. "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
  3867. "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
  3868. "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
  3869. "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
  3870. "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
  3871. "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
  3872. "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
  3873. "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
  3874. "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
  3875. "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
  3876. "\x55\xef\x52\x97\xca\x67\xe9\xf3"
  3877. "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
  3878. "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
  3879. "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
  3880. "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
  3881. "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
  3882. "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
  3883. "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
  3884. "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
  3885. "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
  3886. "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
  3887. "\x18\x84\x69\x77\xae\x11\x9f\x7a"
  3888. "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
  3889. "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
  3890. "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
  3891. "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
  3892. "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
  3893. "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
  3894. "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
  3895. "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
  3896. "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
  3897. "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
  3898. "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
  3899. "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
  3900. "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
  3901. .ilen = 512,
  3902. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3903. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3904. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3905. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  3906. "\x20\x21\x22\x23\x24\x25\x26\x27"
  3907. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  3908. "\x30\x31\x32\x33\x34\x35\x36\x37"
  3909. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  3910. "\x40\x41\x42\x43\x44\x45\x46\x47"
  3911. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  3912. "\x50\x51\x52\x53\x54\x55\x56\x57"
  3913. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  3914. "\x60\x61\x62\x63\x64\x65\x66\x67"
  3915. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  3916. "\x70\x71\x72\x73\x74\x75\x76\x77"
  3917. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  3918. "\x80\x81\x82\x83\x84\x85\x86\x87"
  3919. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  3920. "\x90\x91\x92\x93\x94\x95\x96\x97"
  3921. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  3922. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  3923. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  3924. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  3925. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  3926. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  3927. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  3928. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  3929. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  3930. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  3931. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  3932. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3933. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  3934. "\x00\x01\x02\x03\x04\x05\x06\x07"
  3935. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3936. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3937. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  3938. "\x20\x21\x22\x23\x24\x25\x26\x27"
  3939. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  3940. "\x30\x31\x32\x33\x34\x35\x36\x37"
  3941. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  3942. "\x40\x41\x42\x43\x44\x45\x46\x47"
  3943. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  3944. "\x50\x51\x52\x53\x54\x55\x56\x57"
  3945. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  3946. "\x60\x61\x62\x63\x64\x65\x66\x67"
  3947. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  3948. "\x70\x71\x72\x73\x74\x75\x76\x77"
  3949. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  3950. "\x80\x81\x82\x83\x84\x85\x86\x87"
  3951. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  3952. "\x90\x91\x92\x93\x94\x95\x96\x97"
  3953. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  3954. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  3955. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  3956. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  3957. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  3958. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  3959. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  3960. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  3961. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  3962. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  3963. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  3964. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3965. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  3966. .rlen = 512,
  3967. }
  3968. };
  3969. static struct cipher_testvec aes_ctr_enc_tv_template[] = {
  3970. { /* From NIST Special Publication 800-38A, Appendix F.5 */
  3971. .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
  3972. "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
  3973. .klen = 16,
  3974. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3975. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  3976. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  3977. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  3978. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  3979. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  3980. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  3981. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  3982. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  3983. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  3984. .ilen = 64,
  3985. .result = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
  3986. "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
  3987. "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
  3988. "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
  3989. "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
  3990. "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
  3991. "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
  3992. "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
  3993. .rlen = 64,
  3994. }, {
  3995. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  3996. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  3997. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  3998. .klen = 24,
  3999. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4000. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  4001. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  4002. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  4003. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  4004. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  4005. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  4006. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  4007. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  4008. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  4009. .ilen = 64,
  4010. .result = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
  4011. "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
  4012. "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
  4013. "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
  4014. "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
  4015. "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
  4016. "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
  4017. "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
  4018. .rlen = 64,
  4019. }, {
  4020. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  4021. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  4022. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  4023. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  4024. .klen = 32,
  4025. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4026. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  4027. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  4028. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  4029. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  4030. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  4031. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  4032. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  4033. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  4034. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  4035. .ilen = 64,
  4036. .result = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
  4037. "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
  4038. "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
  4039. "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
  4040. "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
  4041. "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
  4042. "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
  4043. "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
  4044. .rlen = 64,
  4045. }
  4046. };
  4047. static struct cipher_testvec aes_ctr_dec_tv_template[] = {
  4048. { /* From NIST Special Publication 800-38A, Appendix F.5 */
  4049. .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
  4050. "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
  4051. .klen = 16,
  4052. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4053. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  4054. .input = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
  4055. "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
  4056. "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
  4057. "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
  4058. "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
  4059. "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
  4060. "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
  4061. "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
  4062. .ilen = 64,
  4063. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  4064. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  4065. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  4066. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  4067. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  4068. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  4069. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  4070. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  4071. .rlen = 64,
  4072. }, {
  4073. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  4074. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  4075. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  4076. .klen = 24,
  4077. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4078. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  4079. .input = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
  4080. "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
  4081. "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
  4082. "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
  4083. "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
  4084. "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
  4085. "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
  4086. "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
  4087. .ilen = 64,
  4088. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  4089. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  4090. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  4091. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  4092. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  4093. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  4094. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  4095. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  4096. .rlen = 64,
  4097. }, {
  4098. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  4099. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  4100. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  4101. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  4102. .klen = 32,
  4103. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4104. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  4105. .input = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
  4106. "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
  4107. "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
  4108. "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
  4109. "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
  4110. "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
  4111. "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
  4112. "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
  4113. .ilen = 64,
  4114. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  4115. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  4116. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  4117. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  4118. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  4119. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  4120. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  4121. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  4122. .rlen = 64,
  4123. }
  4124. };
  4125. static struct cipher_testvec aes_ctr_rfc3686_enc_tv_template[] = {
  4126. { /* From RFC 3686 */
  4127. .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
  4128. "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
  4129. "\x00\x00\x00\x30",
  4130. .klen = 20,
  4131. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  4132. .input = "Single block msg",
  4133. .ilen = 16,
  4134. .result = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
  4135. "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
  4136. .rlen = 16,
  4137. }, {
  4138. .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
  4139. "\x43\xd6\xce\x1f\x32\x53\x91\x63"
  4140. "\x00\x6c\xb6\xdb",
  4141. .klen = 20,
  4142. .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
  4143. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  4144. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4145. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4146. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  4147. .ilen = 32,
  4148. .result = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
  4149. "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
  4150. "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
  4151. "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
  4152. .rlen = 32,
  4153. }, {
  4154. .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
  4155. "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
  4156. "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
  4157. "\x00\x00\x00\x48",
  4158. .klen = 28,
  4159. .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
  4160. .input = "Single block msg",
  4161. .ilen = 16,
  4162. .result = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
  4163. "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
  4164. .rlen = 16,
  4165. }, {
  4166. .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
  4167. "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
  4168. "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
  4169. "\x00\x96\xb0\x3b",
  4170. .klen = 28,
  4171. .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
  4172. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  4173. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4174. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4175. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  4176. .ilen = 32,
  4177. .result = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
  4178. "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
  4179. "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
  4180. "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
  4181. .rlen = 32,
  4182. }, {
  4183. .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
  4184. "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
  4185. "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
  4186. "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
  4187. "\x00\x00\x00\x60",
  4188. .klen = 36,
  4189. .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
  4190. .input = "Single block msg",
  4191. .ilen = 16,
  4192. .result = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
  4193. "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
  4194. .rlen = 16,
  4195. }, {
  4196. .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
  4197. "\x07\x96\x36\x58\x79\xef\xf8\x86"
  4198. "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
  4199. "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
  4200. "\x00\xfa\xac\x24",
  4201. .klen = 36,
  4202. .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
  4203. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  4204. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4205. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4206. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  4207. .ilen = 32,
  4208. .result = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
  4209. "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
  4210. "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
  4211. "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
  4212. .rlen = 32,
  4213. }, {
  4214. // generated using Crypto++
  4215. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  4216. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4217. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4218. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  4219. "\x00\x00\x00\x00",
  4220. .klen = 32 + 4,
  4221. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  4222. .input =
  4223. "\x00\x01\x02\x03\x04\x05\x06\x07"
  4224. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4225. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4226. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  4227. "\x20\x21\x22\x23\x24\x25\x26\x27"
  4228. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  4229. "\x30\x31\x32\x33\x34\x35\x36\x37"
  4230. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  4231. "\x40\x41\x42\x43\x44\x45\x46\x47"
  4232. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  4233. "\x50\x51\x52\x53\x54\x55\x56\x57"
  4234. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  4235. "\x60\x61\x62\x63\x64\x65\x66\x67"
  4236. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  4237. "\x70\x71\x72\x73\x74\x75\x76\x77"
  4238. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  4239. "\x80\x81\x82\x83\x84\x85\x86\x87"
  4240. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  4241. "\x90\x91\x92\x93\x94\x95\x96\x97"
  4242. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  4243. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  4244. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  4245. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  4246. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  4247. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  4248. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  4249. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  4250. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  4251. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  4252. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  4253. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4254. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  4255. "\x00\x03\x06\x09\x0c\x0f\x12\x15"
  4256. "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
  4257. "\x30\x33\x36\x39\x3c\x3f\x42\x45"
  4258. "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
  4259. "\x60\x63\x66\x69\x6c\x6f\x72\x75"
  4260. "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
  4261. "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
  4262. "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
  4263. "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
  4264. "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
  4265. "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
  4266. "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
  4267. "\x20\x23\x26\x29\x2c\x2f\x32\x35"
  4268. "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
  4269. "\x50\x53\x56\x59\x5c\x5f\x62\x65"
  4270. "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
  4271. "\x80\x83\x86\x89\x8c\x8f\x92\x95"
  4272. "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
  4273. "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
  4274. "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
  4275. "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
  4276. "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
  4277. "\x10\x13\x16\x19\x1c\x1f\x22\x25"
  4278. "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
  4279. "\x40\x43\x46\x49\x4c\x4f\x52\x55"
  4280. "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
  4281. "\x70\x73\x76\x79\x7c\x7f\x82\x85"
  4282. "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
  4283. "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
  4284. "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
  4285. "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
  4286. "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
  4287. "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
  4288. "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
  4289. "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
  4290. "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
  4291. "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
  4292. "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
  4293. "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
  4294. "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
  4295. "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
  4296. "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
  4297. "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
  4298. "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
  4299. "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
  4300. "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
  4301. "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
  4302. "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
  4303. "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
  4304. "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
  4305. "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
  4306. "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
  4307. "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
  4308. "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
  4309. "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
  4310. "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
  4311. "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
  4312. "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
  4313. "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
  4314. "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
  4315. "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
  4316. "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
  4317. "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
  4318. "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
  4319. "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
  4320. "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
  4321. "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
  4322. "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
  4323. "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
  4324. "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
  4325. "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
  4326. "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
  4327. "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
  4328. "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
  4329. "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
  4330. "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
  4331. "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
  4332. "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
  4333. "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
  4334. "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
  4335. "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
  4336. "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
  4337. "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
  4338. "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
  4339. "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
  4340. "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
  4341. "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
  4342. "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
  4343. "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
  4344. "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
  4345. "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
  4346. "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
  4347. "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
  4348. "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
  4349. "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
  4350. "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
  4351. "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
  4352. "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
  4353. "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
  4354. "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
  4355. "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
  4356. "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
  4357. "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
  4358. "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
  4359. "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
  4360. "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
  4361. "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
  4362. "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
  4363. "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
  4364. "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
  4365. "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
  4366. "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
  4367. "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
  4368. "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
  4369. "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
  4370. "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
  4371. "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
  4372. "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
  4373. "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
  4374. "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
  4375. "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
  4376. "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
  4377. "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
  4378. "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
  4379. "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
  4380. "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
  4381. "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
  4382. "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
  4383. "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
  4384. "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
  4385. "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
  4386. "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
  4387. "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
  4388. "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
  4389. "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
  4390. "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
  4391. "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
  4392. "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
  4393. "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
  4394. "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
  4395. "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
  4396. "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
  4397. "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
  4398. "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
  4399. "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
  4400. "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
  4401. "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
  4402. "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
  4403. "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
  4404. "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
  4405. "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
  4406. "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
  4407. "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
  4408. "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
  4409. "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
  4410. "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
  4411. "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
  4412. "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
  4413. "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
  4414. "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
  4415. "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
  4416. "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
  4417. "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
  4418. "\x38\x45\x52\x5f\x6c\x79\x86\x93"
  4419. "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
  4420. "\x08\x15\x22\x2f\x3c\x49\x56\x63"
  4421. "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
  4422. "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
  4423. "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
  4424. "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
  4425. "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
  4426. "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
  4427. "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
  4428. "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
  4429. "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
  4430. "\x18\x25\x32\x3f\x4c\x59\x66\x73"
  4431. "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
  4432. "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
  4433. "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
  4434. "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
  4435. "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
  4436. "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
  4437. "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
  4438. "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
  4439. "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
  4440. "\x28\x35\x42\x4f\x5c\x69\x76\x83"
  4441. "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
  4442. "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
  4443. "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
  4444. "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
  4445. "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
  4446. "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
  4447. "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
  4448. "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
  4449. "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
  4450. "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
  4451. "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
  4452. "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
  4453. "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
  4454. "\x48\x57\x66\x75\x84\x93\xa2\xb1"
  4455. "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
  4456. "\x38\x47\x56\x65\x74\x83\x92\xa1"
  4457. "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
  4458. "\x28\x37\x46\x55\x64\x73\x82\x91"
  4459. "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
  4460. "\x18\x27\x36\x45\x54\x63\x72\x81"
  4461. "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
  4462. "\x08\x17\x26\x35\x44\x53\x62\x71"
  4463. "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
  4464. "\xf8\x07\x16\x25\x34\x43\x52\x61"
  4465. "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
  4466. "\xe8\xf7\x06\x15\x24\x33\x42\x51"
  4467. "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
  4468. "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
  4469. "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
  4470. "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
  4471. "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
  4472. "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
  4473. "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
  4474. "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
  4475. "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
  4476. "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
  4477. "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
  4478. "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
  4479. "\x00\x11\x22\x33\x44\x55\x66\x77"
  4480. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
  4481. "\x10\x21\x32\x43\x54\x65\x76\x87"
  4482. "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
  4483. "\x20\x31\x42\x53\x64\x75\x86\x97"
  4484. "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
  4485. "\x30\x41\x52\x63\x74\x85\x96\xa7"
  4486. "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
  4487. "\x40\x51\x62\x73\x84\x95\xa6\xb7"
  4488. "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
  4489. "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
  4490. "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
  4491. "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
  4492. "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
  4493. "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
  4494. "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
  4495. "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
  4496. "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
  4497. "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
  4498. "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
  4499. "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
  4500. "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
  4501. "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
  4502. "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
  4503. "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
  4504. "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
  4505. "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
  4506. "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
  4507. "\xe0\xf1\x02\x13\x24\x35\x46\x57"
  4508. "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
  4509. "\xf0\x01\x12\x23\x34\x45\x56\x67"
  4510. "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
  4511. "\x00\x13\x26\x39\x4c\x5f\x72\x85"
  4512. "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
  4513. "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
  4514. "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
  4515. "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
  4516. "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
  4517. "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
  4518. "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
  4519. "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
  4520. "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
  4521. "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
  4522. "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
  4523. "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
  4524. "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
  4525. "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
  4526. "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
  4527. "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
  4528. "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
  4529. "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
  4530. "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
  4531. "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
  4532. "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
  4533. "\x10\x23\x36\x49\x5c\x6f\x82\x95"
  4534. "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
  4535. "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
  4536. "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
  4537. "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
  4538. "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
  4539. "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
  4540. "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
  4541. "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
  4542. "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
  4543. "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
  4544. "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
  4545. "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
  4546. "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
  4547. "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
  4548. "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
  4549. "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
  4550. "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
  4551. "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
  4552. "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
  4553. "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
  4554. "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
  4555. "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
  4556. "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
  4557. "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
  4558. "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
  4559. "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
  4560. "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
  4561. "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
  4562. "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
  4563. "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
  4564. "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
  4565. "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
  4566. "\x18\x2d\x42\x57\x6c\x81\x96\xab"
  4567. "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
  4568. "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
  4569. "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
  4570. "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
  4571. "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
  4572. "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
  4573. "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
  4574. "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
  4575. "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
  4576. "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
  4577. "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
  4578. "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
  4579. "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
  4580. "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
  4581. "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
  4582. "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
  4583. "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
  4584. "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
  4585. "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
  4586. "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
  4587. "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
  4588. "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
  4589. "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
  4590. "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
  4591. "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
  4592. "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
  4593. "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
  4594. "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
  4595. "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
  4596. "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
  4597. "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
  4598. "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
  4599. "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
  4600. "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
  4601. "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
  4602. "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
  4603. "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
  4604. "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
  4605. "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
  4606. "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
  4607. "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
  4608. "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
  4609. "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
  4610. "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
  4611. "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
  4612. "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
  4613. "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
  4614. "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
  4615. "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
  4616. "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
  4617. "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
  4618. "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
  4619. "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
  4620. "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
  4621. "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
  4622. "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
  4623. "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
  4624. "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
  4625. "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
  4626. "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
  4627. "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
  4628. "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
  4629. "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
  4630. "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
  4631. "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
  4632. "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
  4633. "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
  4634. "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
  4635. "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
  4636. "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
  4637. "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
  4638. "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
  4639. "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
  4640. "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
  4641. "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
  4642. "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
  4643. "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
  4644. "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
  4645. "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
  4646. "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
  4647. "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
  4648. "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
  4649. "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
  4650. "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
  4651. "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
  4652. "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
  4653. "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
  4654. "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
  4655. "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
  4656. "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
  4657. "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
  4658. "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
  4659. "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
  4660. "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
  4661. "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
  4662. "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
  4663. "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
  4664. "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
  4665. "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
  4666. "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
  4667. "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
  4668. "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
  4669. "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
  4670. "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
  4671. "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
  4672. "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
  4673. "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
  4674. "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
  4675. "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
  4676. "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
  4677. "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
  4678. "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
  4679. "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
  4680. "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
  4681. "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
  4682. "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
  4683. "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
  4684. "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
  4685. "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
  4686. "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
  4687. "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
  4688. "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
  4689. "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
  4690. "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
  4691. "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
  4692. "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
  4693. "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
  4694. "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
  4695. "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
  4696. "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
  4697. "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
  4698. "\x78\x95\xb2\xcf\xec\x09\x26\x43"
  4699. "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
  4700. "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
  4701. "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
  4702. "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
  4703. "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
  4704. "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
  4705. "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
  4706. "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
  4707. "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
  4708. "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
  4709. "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
  4710. "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
  4711. "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
  4712. "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
  4713. "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
  4714. "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
  4715. "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
  4716. "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
  4717. "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
  4718. "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
  4719. "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
  4720. "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
  4721. "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
  4722. "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
  4723. "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
  4724. "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
  4725. "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
  4726. "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
  4727. "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
  4728. "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
  4729. "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
  4730. "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
  4731. "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
  4732. "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
  4733. "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
  4734. "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
  4735. "\x00\x21\x42\x63",
  4736. .ilen = 4100,
  4737. .result =
  4738. "\xf0\x5c\x74\xad\x4e\xbc\x99\xe2"
  4739. "\xae\xff\x91\x3a\x44\xcf\x38\x32"
  4740. "\x1e\xad\xa7\xcd\xa1\x39\x95\xaa"
  4741. "\x10\xb1\xb3\x2e\x04\x31\x8f\x86"
  4742. "\xf2\x62\x74\x70\x0c\xa4\x46\x08"
  4743. "\xa8\xb7\x99\xa8\xe9\xd2\x73\x79"
  4744. "\x7e\x6e\xd4\x8f\x1e\xc7\x8e\x31"
  4745. "\x0b\xfa\x4b\xce\xfd\xf3\x57\x71"
  4746. "\xe9\x46\x03\xa5\x3d\x34\x00\xe2"
  4747. "\x18\xff\x75\x6d\x06\x2d\x00\xab"
  4748. "\xb9\x3e\x6c\x59\xc5\x84\x06\xb5"
  4749. "\x8b\xd0\x89\x9c\x4a\x79\x16\xc6"
  4750. "\x3d\x74\x54\xfa\x44\xcd\x23\x26"
  4751. "\x5c\xcf\x7e\x28\x92\x32\xbf\xdf"
  4752. "\xa7\x20\x3c\x74\x58\x2a\x9a\xde"
  4753. "\x61\x00\x1c\x4f\xff\x59\xc4\x22"
  4754. "\xac\x3c\xd0\xe8\x6c\xf9\x97\x1b"
  4755. "\x58\x9b\xad\x71\xe8\xa9\xb5\x0d"
  4756. "\xee\x2f\x04\x1f\x7f\xbc\x99\xee"
  4757. "\x84\xff\x42\x60\xdc\x3a\x18\xa5"
  4758. "\x81\xf9\xef\xdc\x7a\x0f\x65\x41"
  4759. "\x2f\xa3\xd3\xf9\xc2\xcb\xc0\x4d"
  4760. "\x8f\xd3\x76\x96\xad\x49\x6d\x38"
  4761. "\x3d\x39\x0b\x6c\x80\xb7\x54\x69"
  4762. "\xf0\x2c\x90\x02\x29\x0d\x1c\x12"
  4763. "\xad\x55\xc3\x8b\x68\xd9\xcc\xb3"
  4764. "\xb2\x64\x33\x90\x5e\xca\x4b\xe2"
  4765. "\xfb\x75\xdc\x63\xf7\x9f\x82\x74"
  4766. "\xf0\xc9\xaa\x7f\xe9\x2a\x9b\x33"
  4767. "\xbc\x88\x00\x7f\xca\xb2\x1f\x14"
  4768. "\xdb\xc5\x8e\x7b\x11\x3c\x3e\x08"
  4769. "\xf3\x83\xe8\xe0\x94\x86\x2e\x92"
  4770. "\x78\x6b\x01\xc9\xc7\x83\xba\x21"
  4771. "\x6a\x25\x15\x33\x4e\x45\x08\xec"
  4772. "\x35\xdb\xe0\x6e\x31\x51\x79\xa9"
  4773. "\x42\x44\x65\xc1\xa0\xf1\xf9\x2a"
  4774. "\x70\xd5\xb6\xc6\xc1\x8c\x39\xfc"
  4775. "\x25\xa6\x55\xd9\xdd\x2d\x4c\xec"
  4776. "\x49\xc6\xeb\x0e\xa8\x25\x2a\x16"
  4777. "\x1b\x66\x84\xda\xe2\x92\xe5\xc0"
  4778. "\xc8\x53\x07\xaf\x80\x84\xec\xfd"
  4779. "\xcd\xd1\x6e\xcd\x6f\x6a\xf5\x36"
  4780. "\xc5\x15\xe5\x25\x7d\x77\xd1\x1a"
  4781. "\x93\x36\xa9\xcf\x7c\xa4\x54\x4a"
  4782. "\x06\x51\x48\x4e\xf6\x59\x87\xd2"
  4783. "\x04\x02\xef\xd3\x44\xde\x76\x31"
  4784. "\xb3\x34\x17\x1b\x9d\x66\x11\x9f"
  4785. "\x1e\xcc\x17\xe9\xc7\x3c\x1b\xe7"
  4786. "\xcb\x50\x08\xfc\xdc\x2b\x24\xdb"
  4787. "\x65\x83\xd0\x3b\xe3\x30\xea\x94"
  4788. "\x6c\xe7\xe8\x35\x32\xc7\xdb\x64"
  4789. "\xb4\x01\xab\x36\x2c\x77\x13\xaf"
  4790. "\xf8\x2b\x88\x3f\x54\x39\xc4\x44"
  4791. "\xfe\xef\x6f\x68\x34\xbe\x0f\x05"
  4792. "\x16\x6d\xf6\x0a\x30\xe7\xe3\xed"
  4793. "\xc4\xde\x3c\x1b\x13\xd8\xdb\xfe"
  4794. "\x41\x62\xe5\x28\xd4\x8d\xa3\xc7"
  4795. "\x93\x97\xc6\x48\x45\x1d\x9f\x83"
  4796. "\xdf\x4b\x40\x3e\x42\x25\x87\x80"
  4797. "\x4c\x7d\xa8\xd4\x98\x23\x95\x75"
  4798. "\x41\x8c\xda\x41\x9b\xd4\xa7\x06"
  4799. "\xb5\xf1\x71\x09\x53\xbe\xca\xbf"
  4800. "\x32\x03\xed\xf0\x50\x1c\x56\x39"
  4801. "\x5b\xa4\x75\x18\xf7\x9b\x58\xef"
  4802. "\x53\xfc\x2a\x38\x23\x15\x75\xcd"
  4803. "\x45\xe5\x5a\x82\x55\xba\x21\xfa"
  4804. "\xd4\xbd\xc6\x94\x7c\xc5\x80\x12"
  4805. "\xf7\x4b\x32\xc4\x9a\x82\xd8\x28"
  4806. "\x8f\xd9\xc2\x0f\x60\x03\xbe\x5e"
  4807. "\x21\xd6\x5f\x58\xbf\x5c\xb1\x32"
  4808. "\x82\x8d\xa9\xe5\xf2\x66\x1a\xc0"
  4809. "\xa0\xbc\x58\x2f\x71\xf5\x2f\xed"
  4810. "\xd1\x26\xb9\xd8\x49\x5a\x07\x19"
  4811. "\x01\x7c\x59\xb0\xf8\xa4\xb7\xd3"
  4812. "\x7b\x1a\x8c\x38\xf4\x50\xa4\x59"
  4813. "\xb0\xcc\x41\x0b\x88\x7f\xe5\x31"
  4814. "\xb3\x42\xba\xa2\x7e\xd4\x32\x71"
  4815. "\x45\x87\x48\xa9\xc2\xf2\x89\xb3"
  4816. "\xe4\xa7\x7e\x52\x15\x61\xfa\xfe"
  4817. "\xc9\xdd\x81\xeb\x13\xab\xab\xc3"
  4818. "\x98\x59\xd8\x16\x3d\x14\x7a\x1c"
  4819. "\x3c\x41\x9a\x16\x16\x9b\xd2\xd2"
  4820. "\x69\x3a\x29\x23\xac\x86\x32\xa5"
  4821. "\x48\x9c\x9e\xf3\x47\x77\x81\x70"
  4822. "\x24\xe8\x85\xd2\xf5\xb5\xfa\xff"
  4823. "\x59\x6a\xd3\x50\x59\x43\x59\xde"
  4824. "\xd9\xf1\x55\xa5\x0c\xc3\x1a\x1a"
  4825. "\x18\x34\x0d\x1a\x63\x33\xed\x10"
  4826. "\xe0\x1d\x2a\x18\xd2\xc0\x54\xa8"
  4827. "\xca\xb5\x9a\xd3\xdd\xca\x45\x84"
  4828. "\x50\xe7\x0f\xfe\xa4\x99\x5a\xbe"
  4829. "\x43\x2d\x9a\xcb\x92\x3f\x5a\x1d"
  4830. "\x85\xd8\xc9\xdf\x68\xc9\x12\x80"
  4831. "\x56\x0c\xdc\x00\xdc\x3a\x7d\x9d"
  4832. "\xa3\xa2\xe8\x4d\xbf\xf9\x70\xa0"
  4833. "\xa4\x13\x4f\x6b\xaf\x0a\x89\x7f"
  4834. "\xda\xf0\xbf\x9b\xc8\x1d\xe5\xf8"
  4835. "\x2e\x8b\x07\xb5\x73\x1b\xcc\xa2"
  4836. "\xa6\xad\x30\xbc\x78\x3c\x5b\x10"
  4837. "\xfa\x5e\x62\x2d\x9e\x64\xb3\x33"
  4838. "\xce\xf9\x1f\x86\xe7\x8b\xa2\xb8"
  4839. "\xe8\x99\x57\x8c\x11\xed\x66\xd9"
  4840. "\x3c\x72\xb9\xc3\xe6\x4e\x17\x3a"
  4841. "\x6a\xcb\x42\x24\x06\xed\x3e\x4e"
  4842. "\xa3\xe8\x6a\x94\xda\x0d\x4e\xd5"
  4843. "\x14\x19\xcf\xb6\x26\xd8\x2e\xcc"
  4844. "\x64\x76\x38\x49\x4d\xfe\x30\x6d"
  4845. "\xe4\xc8\x8c\x7b\xc4\xe0\x35\xba"
  4846. "\x22\x6e\x76\xe1\x1a\xf2\x53\xc3"
  4847. "\x28\xa2\x82\x1f\x61\x69\xad\xc1"
  4848. "\x7b\x28\x4b\x1e\x6c\x85\x95\x9b"
  4849. "\x51\xb5\x17\x7f\x12\x69\x8c\x24"
  4850. "\xd5\xc7\x5a\x5a\x11\x54\xff\x5a"
  4851. "\xf7\x16\xc3\x91\xa6\xf0\xdc\x0a"
  4852. "\xb6\xa7\x4a\x0d\x7a\x58\xfe\xa5"
  4853. "\xf5\xcb\x8f\x7b\x0e\xea\x57\xe7"
  4854. "\xbd\x79\xd6\x1c\x88\x23\x6c\xf2"
  4855. "\x4d\x29\x77\x53\x35\x6a\x00\x8d"
  4856. "\xcd\xa3\x58\xbe\x77\x99\x18\xf8"
  4857. "\xe6\xe1\x8f\xe9\x37\x8f\xe3\xe2"
  4858. "\x5a\x8a\x93\x25\xaf\xf3\x78\x80"
  4859. "\xbe\xa6\x1b\xc6\xac\x8b\x1c\x91"
  4860. "\x58\xe1\x9f\x89\x35\x9d\x1d\x21"
  4861. "\x29\x9f\xf4\x99\x02\x27\x0f\xa8"
  4862. "\x4f\x79\x94\x2b\x33\x2c\xda\xa2"
  4863. "\x26\x39\x83\x94\xef\x27\xd8\x53"
  4864. "\x8f\x66\x0d\xe4\x41\x7d\x34\xcd"
  4865. "\x43\x7c\x95\x0a\x53\xef\x66\xda"
  4866. "\x7e\x9b\xf3\x93\xaf\xd0\x73\x71"
  4867. "\xba\x40\x9b\x74\xf8\xd7\xd7\x41"
  4868. "\x6d\xaf\x72\x9c\x8d\x21\x87\x3c"
  4869. "\xfd\x0a\x90\xa9\x47\x96\x9e\xd3"
  4870. "\x88\xee\x73\xcf\x66\x2f\x52\x56"
  4871. "\x6d\xa9\x80\x4c\xe2\x6f\x62\x88"
  4872. "\x3f\x0e\x54\x17\x48\x80\x5d\xd3"
  4873. "\xc3\xda\x25\x3d\xa1\xc8\xcb\x9f"
  4874. "\x9b\x70\xb3\xa1\xeb\x04\x52\xa1"
  4875. "\xf2\x22\x0f\xfc\xc8\x18\xfa\xf9"
  4876. "\x85\x9c\xf1\xac\xeb\x0c\x02\x46"
  4877. "\x75\xd2\xf5\x2c\xe3\xd2\x59\x94"
  4878. "\x12\xf3\x3c\xfc\xd7\x92\xfa\x36"
  4879. "\xba\x61\x34\x38\x7c\xda\x48\x3e"
  4880. "\x08\xc9\x39\x23\x5e\x02\x2c\x1a"
  4881. "\x18\x7e\xb4\xd9\xfd\x9e\x40\x02"
  4882. "\xb1\x33\x37\x32\xe7\xde\xd6\xd0"
  4883. "\x7c\x58\x65\x4b\xf8\x34\x27\x9c"
  4884. "\x44\xb4\xbd\xe9\xe9\x4c\x78\x7d"
  4885. "\x4b\x9f\xce\xb1\xcd\x47\xa5\x37"
  4886. "\xe5\x6d\xbd\xb9\x43\x94\x0a\xd4"
  4887. "\xd6\xf9\x04\x5f\xb5\x66\x6c\x1a"
  4888. "\x35\x12\xe3\x36\x28\x27\x36\x58"
  4889. "\x01\x2b\x79\xe4\xba\x6d\x10\x7d"
  4890. "\x65\xdf\x84\x95\xf4\xd5\xb6\x8f"
  4891. "\x2b\x9f\x96\x00\x86\x60\xf0\x21"
  4892. "\x76\xa8\x6a\x8c\x28\x1c\xb3\x6b"
  4893. "\x97\xd7\xb6\x53\x2a\xcc\xab\x40"
  4894. "\x9d\x62\x79\x58\x52\xe6\x65\xb7"
  4895. "\xab\x55\x67\x9c\x89\x7c\x03\xb0"
  4896. "\x73\x59\xc5\x81\xf5\x18\x17\x5c"
  4897. "\x89\xf3\x78\x35\x44\x62\x78\x72"
  4898. "\xd0\x96\xeb\x31\xe7\x87\x77\x14"
  4899. "\x99\x51\xf2\x59\x26\x9e\xb5\xa6"
  4900. "\x45\xfe\x6e\xbd\x07\x4c\x94\x5a"
  4901. "\xa5\x7d\xfc\xf1\x2b\x77\xe2\xfe"
  4902. "\x17\xd4\x84\xa0\xac\xb5\xc7\xda"
  4903. "\xa9\x1a\xb6\xf3\x74\x11\xb4\x9d"
  4904. "\xfb\x79\x2e\x04\x2d\x50\x28\x83"
  4905. "\xbf\xc6\x52\xd3\x34\xd6\xe8\x7a"
  4906. "\xb6\xea\xe7\xa8\x6c\x15\x1e\x2c"
  4907. "\x57\xbc\x48\x4e\x5f\x5c\xb6\x92"
  4908. "\xd2\x49\x77\x81\x6d\x90\x70\xae"
  4909. "\x98\xa1\x03\x0d\x6b\xb9\x77\x14"
  4910. "\xf1\x4e\x23\xd3\xf8\x68\xbd\xc2"
  4911. "\xfe\x04\xb7\x5c\xc5\x17\x60\x8f"
  4912. "\x65\x54\xa4\x7a\x42\xdc\x18\x0d"
  4913. "\xb5\xcf\x0f\xd3\xc7\x91\x66\x1b"
  4914. "\x45\x42\x27\x75\x50\xe5\xee\xb8"
  4915. "\x7f\x33\x2c\xba\x4a\x92\x4d\x2c"
  4916. "\x3c\xe3\x0d\x80\x01\xba\x0d\x29"
  4917. "\xd8\x3c\xe9\x13\x16\x57\xe6\xea"
  4918. "\x94\x52\xe7\x00\x4d\x30\xb0\x0f"
  4919. "\x35\xb8\xb8\xa7\xb1\xb5\x3b\x44"
  4920. "\xe1\x2f\xfd\x88\xed\x43\xe7\x52"
  4921. "\x10\x93\xb3\x8a\x30\x6b\x0a\xf7"
  4922. "\x23\xc6\x50\x9d\x4a\xb0\xde\xc3"
  4923. "\xdc\x9b\x2f\x01\x56\x36\x09\xc5"
  4924. "\x2f\x6b\xfe\xf1\xd8\x27\x45\x03"
  4925. "\x30\x5e\x5c\x5b\xb4\x62\x0e\x1a"
  4926. "\xa9\x21\x2b\x92\x94\x87\x62\x57"
  4927. "\x4c\x10\x74\x1a\xf1\x0a\xc5\x84"
  4928. "\x3b\x9e\x72\x02\xd7\xcc\x09\x56"
  4929. "\xbd\x54\xc1\xf0\xc3\xe3\xb3\xf8"
  4930. "\xd2\x0d\x61\xcb\xef\xce\x0d\x05"
  4931. "\xb0\x98\xd9\x8e\x4f\xf9\xbc\x93"
  4932. "\xa6\xea\xc8\xcf\x10\x53\x4b\xf1"
  4933. "\xec\xfc\x89\xf9\x64\xb0\x22\xbf"
  4934. "\x9e\x55\x46\x9f\x7c\x50\x8e\x84"
  4935. "\x54\x20\x98\xd7\x6c\x40\x1e\xdb"
  4936. "\x69\x34\x78\x61\x24\x21\x9c\x8a"
  4937. "\xb3\x62\x31\x8b\x6e\xf5\x2a\x35"
  4938. "\x86\x13\xb1\x6c\x64\x2e\x41\xa5"
  4939. "\x05\xf2\x42\xba\xd2\x3a\x0d\x8e"
  4940. "\x8a\x59\x94\x3c\xcf\x36\x27\x82"
  4941. "\xc2\x45\xee\x58\xcd\x88\xb4\xec"
  4942. "\xde\xb2\x96\x0a\xaf\x38\x6f\x88"
  4943. "\xd7\xd8\xe1\xdf\xb9\x96\xa9\x0a"
  4944. "\xb1\x95\x28\x86\x20\xe9\x17\x49"
  4945. "\xa2\x29\x38\xaa\xa5\xe9\x6e\xf1"
  4946. "\x19\x27\xc0\xd5\x2a\x22\xc3\x0b"
  4947. "\xdb\x7c\x73\x10\xb9\xba\x89\x76"
  4948. "\x54\xae\x7d\x71\xb3\x93\xf6\x32"
  4949. "\xe6\x47\x43\x55\xac\xa0\x0d\xc2"
  4950. "\x93\x27\x4a\x8e\x0e\x74\x15\xc7"
  4951. "\x0b\x85\xd9\x0c\xa9\x30\x7a\x3e"
  4952. "\xea\x8f\x85\x6d\x3a\x12\x4f\x72"
  4953. "\x69\x58\x7a\x80\xbb\xb5\x97\xf3"
  4954. "\xcf\x70\xd2\x5d\xdd\x4d\x21\x79"
  4955. "\x54\x4d\xe4\x05\xe8\xbd\xc2\x62"
  4956. "\xb1\x3b\x77\x1c\xd6\x5c\xf3\xa0"
  4957. "\x79\x00\xa8\x6c\x29\xd9\x18\x24"
  4958. "\x36\xa2\x46\xc0\x96\x65\x7f\xbd"
  4959. "\x2a\xed\x36\x16\x0c\xaa\x9f\xf4"
  4960. "\xc5\xb4\xe2\x12\xed\x69\xed\x4f"
  4961. "\x26\x2c\x39\x52\x89\x98\xe7\x2c"
  4962. "\x99\xa4\x9e\xa3\x9b\x99\x46\x7a"
  4963. "\x3a\xdc\xa8\x59\xa3\xdb\xc3\x3b"
  4964. "\x95\x0d\x3b\x09\x6e\xee\x83\x5d"
  4965. "\x32\x4d\xed\xab\xfa\x98\x14\x4e"
  4966. "\xc3\x15\x45\x53\x61\xc4\x93\xbd"
  4967. "\x90\xf4\x99\x95\x4c\xe6\x76\x92"
  4968. "\x29\x90\x46\x30\x92\x69\x7d\x13"
  4969. "\xf2\xa5\xcd\x69\x49\x44\xb2\x0f"
  4970. "\x63\x40\x36\x5f\x09\xe2\x78\xf8"
  4971. "\x91\xe3\xe2\xfa\x10\xf7\xc8\x24"
  4972. "\xa8\x89\x32\x5c\x37\x25\x1d\xb2"
  4973. "\xea\x17\x8a\x0a\xa9\x64\xc3\x7c"
  4974. "\x3c\x7c\xbd\xc6\x79\x34\xe7\xe2"
  4975. "\x85\x8e\xbf\xf8\xde\x92\xa0\xae"
  4976. "\x20\xc4\xf6\xbb\x1f\x38\x19\x0e"
  4977. "\xe8\x79\x9c\xa1\x23\xe9\x54\x7e"
  4978. "\x37\x2f\xe2\x94\x32\xaf\xa0\x23"
  4979. "\x49\xe4\xc0\xb3\xac\x00\x8f\x36"
  4980. "\x05\xc4\xa6\x96\xec\x05\x98\x4f"
  4981. "\x96\x67\x57\x1f\x20\x86\x1b\x2d"
  4982. "\x69\xe4\x29\x93\x66\x5f\xaf\x6b"
  4983. "\x88\x26\x2c\x67\x02\x4b\x52\xd0"
  4984. "\x83\x7a\x43\x1f\xc0\x71\x15\x25"
  4985. "\x77\x65\x08\x60\x11\x76\x4c\x8d"
  4986. "\xed\xa9\x27\xc6\xb1\x2a\x2c\x6a"
  4987. "\x4a\x97\xf5\xc6\xb7\x70\x42\xd3"
  4988. "\x03\xd1\x24\x95\xec\x6d\xab\x38"
  4989. "\x72\xce\xe2\x8b\x33\xd7\x51\x09"
  4990. "\xdc\x45\xe0\x09\x96\x32\xf3\xc4"
  4991. "\x84\xdc\x73\x73\x2d\x1b\x11\x98"
  4992. "\xc5\x0e\x69\x28\x94\xc7\xb5\x4d"
  4993. "\xc8\x8a\xd0\xaa\x13\x2e\x18\x74"
  4994. "\xdd\xd1\x1e\xf3\x90\xe8\xfc\x9a"
  4995. "\x72\x4a\x0e\xd1\xe4\xfb\x0d\x96"
  4996. "\xd1\x0c\x79\x85\x1b\x1c\xfe\xe1"
  4997. "\x62\x8f\x7a\x73\x32\xab\xc8\x18"
  4998. "\x69\xe3\x34\x30\xdf\x13\xa6\xe5"
  4999. "\xe8\x0e\x67\x7f\x81\x11\xb4\x60"
  5000. "\xc7\xbd\x79\x65\x50\xdc\xc4\x5b"
  5001. "\xde\x39\xa4\x01\x72\x63\xf3\xd1"
  5002. "\x64\x4e\xdf\xfc\x27\x92\x37\x0d"
  5003. "\x57\xcd\x11\x4f\x11\x04\x8e\x1d"
  5004. "\x16\xf7\xcd\x92\x9a\x99\x30\x14"
  5005. "\xf1\x7c\x67\x1b\x1f\x41\x0b\xe8"
  5006. "\x32\xe8\xb8\xc1\x4f\x54\x86\x4f"
  5007. "\xe5\x79\x81\x73\xcd\x43\x59\x68"
  5008. "\x73\x02\x3b\x78\x21\x72\x43\x00"
  5009. "\x49\x17\xf7\x00\xaf\x68\x24\x53"
  5010. "\x05\x0a\xc3\x33\xe0\x33\x3f\x69"
  5011. "\xd2\x84\x2f\x0b\xed\xde\x04\xf4"
  5012. "\x11\x94\x13\x69\x51\x09\x28\xde"
  5013. "\x57\x5c\xef\xdc\x9a\x49\x1c\x17"
  5014. "\x97\xf3\x96\xc1\x7f\x5d\x2e\x7d"
  5015. "\x55\xb8\xb3\x02\x09\xb3\x1f\xe7"
  5016. "\xc9\x8d\xa3\x36\x34\x8a\x77\x13"
  5017. "\x30\x63\x4c\xa5\xcd\xc3\xe0\x7e"
  5018. "\x05\xa1\x7b\x0c\xcb\x74\x47\x31"
  5019. "\x62\x03\x43\xf1\x87\xb4\xb0\x85"
  5020. "\x87\x8e\x4b\x25\xc7\xcf\xae\x4b"
  5021. "\x36\x46\x3e\x62\xbc\x6f\xeb\x5f"
  5022. "\x73\xac\xe6\x07\xee\xc1\xa1\xd6"
  5023. "\xc4\xab\xc9\xd6\x89\x45\xe1\xf1"
  5024. "\x04\x4e\x1a\x6f\xbb\x4f\x3a\xa3"
  5025. "\xa0\xcb\xa3\x0a\xd8\x71\x35\x55"
  5026. "\xe4\xbc\x2e\x04\x06\xe6\xff\x5b"
  5027. "\x1c\xc0\x11\x7c\xc5\x17\xf3\x38"
  5028. "\xcf\xe9\xba\x0f\x0e\xef\x02\xc2"
  5029. "\x8d\xc6\xbc\x4b\x67\x20\x95\xd7"
  5030. "\x2c\x45\x5b\x86\x44\x8c\x6f\x2e"
  5031. "\x7e\x9f\x1c\x77\xba\x6b\x0e\xa3"
  5032. "\x69\xdc\xab\x24\x57\x60\x47\xc1"
  5033. "\xd1\xa5\x9d\x23\xe6\xb1\x37\xfe"
  5034. "\x93\xd2\x4c\x46\xf9\x0c\xc6\xfb"
  5035. "\xd6\x9d\x99\x69\xab\x7a\x07\x0c"
  5036. "\x65\xe7\xc4\x08\x96\xe2\xa5\x01"
  5037. "\x3f\x46\x07\x05\x7e\xe8\x9a\x90"
  5038. "\x50\xdc\xe9\x7a\xea\xa1\x39\x6e"
  5039. "\x66\xe4\x6f\xa5\x5f\xb2\xd9\x5b"
  5040. "\xf5\xdb\x2a\x32\xf0\x11\x6f\x7c"
  5041. "\x26\x10\x8f\x3d\x80\xe9\x58\xf7"
  5042. "\xe0\xa8\x57\xf8\xdb\x0e\xce\x99"
  5043. "\x63\x19\x3d\xd5\xec\x1b\x77\x69"
  5044. "\x98\xf6\xe4\x5f\x67\x17\x4b\x09"
  5045. "\x85\x62\x82\x70\x18\xe2\x9a\x78"
  5046. "\xe2\x62\xbd\xb4\xf1\x42\xc6\xfb"
  5047. "\x08\xd0\xbd\xeb\x4e\x09\xf2\xc8"
  5048. "\x1e\xdc\x3d\x32\x21\x56\x9c\x4f"
  5049. "\x35\xf3\x61\x06\x72\x84\xc4\x32"
  5050. "\xf2\xf1\xfa\x0b\x2f\xc3\xdb\x02"
  5051. "\x04\xc2\xde\x57\x64\x60\x8d\xcf"
  5052. "\xcb\x86\x5d\x97\x3e\xb1\x9c\x01"
  5053. "\xd6\x28\x8f\x99\xbc\x46\xeb\x05"
  5054. "\xaf\x7e\xb8\x21\x2a\x56\x85\x1c"
  5055. "\xb3\x71\xa0\xde\xca\x96\xf1\x78"
  5056. "\x49\xa2\x99\x81\x80\x5c\x01\xf5"
  5057. "\xa0\xa2\x56\x63\xe2\x70\x07\xa5"
  5058. "\x95\xd6\x85\xeb\x36\x9e\xa9\x51"
  5059. "\x66\x56\x5f\x1d\x02\x19\xe2\xf6"
  5060. "\x4f\x73\x38\x09\x75\x64\x48\xe0"
  5061. "\xf1\x7e\x0e\xe8\x9d\xf9\xed\x94"
  5062. "\xfe\x16\x26\x62\x49\x74\xf4\xb0"
  5063. "\xd4\xa9\x6c\xb0\xfd\x53\xe9\x81"
  5064. "\xe0\x7a\xbf\xcf\xb5\xc4\x01\x81"
  5065. "\x79\x99\x77\x01\x3b\xe9\xa2\xb6"
  5066. "\xe6\x6a\x8a\x9e\x56\x1c\x8d\x1e"
  5067. "\x8f\x06\x55\x2c\x6c\xdc\x92\x87"
  5068. "\x64\x3b\x4b\x19\xa1\x13\x64\x1d"
  5069. "\x4a\xe9\xc0\x00\xb8\x95\xef\x6b"
  5070. "\x1a\x86\x6d\x37\x52\x02\xc2\xe0"
  5071. "\xc8\xbb\x42\x0c\x02\x21\x4a\xc9"
  5072. "\xef\xa0\x54\xe4\x5e\x16\x53\x81"
  5073. "\x70\x62\x10\xaf\xde\xb8\xb5\xd3"
  5074. "\xe8\x5e\x6c\xc3\x8a\x3e\x18\x07"
  5075. "\xf2\x2f\x7d\xa7\xe1\x3d\x4e\xb4"
  5076. "\x26\xa7\xa3\x93\x86\xb2\x04\x1e"
  5077. "\x53\x5d\x86\xd6\xde\x65\xca\xe3"
  5078. "\x4e\xc1\xcf\xef\xc8\x70\x1b\x83"
  5079. "\x13\xdd\x18\x8b\x0d\x76\xd2\xf6"
  5080. "\x37\x7a\x93\x7a\x50\x11\x9f\x96"
  5081. "\x86\x25\xfd\xac\xdc\xbe\x18\x93"
  5082. "\x19\x6b\xec\x58\x4f\xb9\x75\xa7"
  5083. "\xdd\x3f\x2f\xec\xc8\x5a\x84\xab"
  5084. "\xd5\xe4\x8a\x07\xf6\x4d\x23\xd6"
  5085. "\x03\xfb\x03\x6a\xea\x66\xbf\xd4"
  5086. "\xb1\x34\xfb\x78\xe9\x55\xdc\x7c"
  5087. "\x3d\x9c\xe5\x9a\xac\xc3\x7a\x80"
  5088. "\x24\x6d\xa0\xef\x25\x7c\xb7\xea"
  5089. "\xce\x4d\x5f\x18\x60\xce\x87\x22"
  5090. "\x66\x2f\xd5\xdd\xdd\x02\x21\x75"
  5091. "\x82\xa0\x1f\x58\xc6\xd3\x62\xf7"
  5092. "\x32\xd8\xaf\x1e\x07\x77\x51\x96"
  5093. "\xd5\x6b\x1e\x7e\x80\x02\xe8\x67"
  5094. "\xea\x17\x0b\x10\xd2\x3f\x28\x25"
  5095. "\x4f\x05\x77\x02\x14\x69\xf0\x2c"
  5096. "\xbe\x0c\xf1\x74\x30\xd1\xb9\x9b"
  5097. "\xfc\x8c\xbb\x04\x16\xd9\xba\xc3"
  5098. "\xbc\x91\x8a\xc4\x30\xa4\xb0\x12"
  5099. "\x4c\x21\x87\xcb\xc9\x1d\x16\x96"
  5100. "\x07\x6f\x23\x54\xb9\x6f\x79\xe5"
  5101. "\x64\xc0\x64\xda\xb1\xae\xdd\x60"
  5102. "\x6c\x1a\x9d\xd3\x04\x8e\x45\xb0"
  5103. "\x92\x61\xd0\x48\x81\xed\x5e\x1d"
  5104. "\xa0\xc9\xa4\x33\xc7\x13\x51\x5d"
  5105. "\x7f\x83\x73\xb6\x70\x18\x65\x3e"
  5106. "\x2f\x0e\x7a\x12\x39\x98\xab\xd8"
  5107. "\x7e\x6f\xa3\xd1\xba\x56\xad\xbd"
  5108. "\xf0\x03\x01\x1c\x85\x35\x9f\xeb"
  5109. "\x19\x63\xa1\xaf\xfe\x2d\x35\x50"
  5110. "\x39\xa0\x65\x7c\x95\x7e\x6b\xfe"
  5111. "\xc1\xac\x07\x7c\x98\x4f\xbe\x57"
  5112. "\xa7\x22\xec\xe2\x7e\x29\x09\x53"
  5113. "\xe8\xbf\xb4\x7e\x3f\x8f\xfc\x14"
  5114. "\xce\x54\xf9\x18\x58\xb5\xff\x44"
  5115. "\x05\x9d\xce\x1b\xb6\x82\x23\xc8"
  5116. "\x2e\xbc\x69\xbb\x4a\x29\x0f\x65"
  5117. "\x94\xf0\x63\x06\x0e\xef\x8c\xbd"
  5118. "\xff\xfd\xb0\x21\x6e\x57\x05\x75"
  5119. "\xda\xd5\xc4\xeb\x8d\x32\xf7\x50"
  5120. "\xd3\x6f\x22\xed\x5f\x8e\xa2\x5b"
  5121. "\x80\x8c\xc8\x78\x40\x24\x4b\x89"
  5122. "\x30\xce\x7a\x97\x0e\xc4\xaf\xef"
  5123. "\x9b\xb4\xcd\x66\x74\x14\x04\x2b"
  5124. "\xf7\xce\x0b\x1c\x6e\xc2\x78\x8c"
  5125. "\xca\xc5\xd0\x1c\x95\x4a\x91\x2d"
  5126. "\xa7\x20\xeb\x86\x52\xb7\x67\xd8"
  5127. "\x0c\xd6\x04\x14\xde\x51\x74\x75"
  5128. "\xe7\x11\xb4\x87\xa3\x3d\x2d\xad"
  5129. "\x4f\xef\xa0\x0f\x70\x00\x6d\x13"
  5130. "\x19\x1d\x41\x50\xe9\xd8\xf0\x32"
  5131. "\x71\xbc\xd3\x11\xf2\xac\xbe\xaf"
  5132. "\x75\x46\x65\x4e\x07\x34\x37\xa3"
  5133. "\x89\xfe\x75\xd4\x70\x4c\xc6\x3f"
  5134. "\x69\x24\x0e\x38\x67\x43\x8c\xde"
  5135. "\x06\xb5\xb8\xe7\xc4\xf0\x41\x8f"
  5136. "\xf0\xbd\x2f\x0b\xb9\x18\xf8\xde"
  5137. "\x64\xb1\xdb\xee\x00\x50\x77\xe1"
  5138. "\xc7\xff\xa6\xfa\xdd\x70\xf4\xe3"
  5139. "\x93\xe9\x77\x35\x3d\x4b\x2f\x2b"
  5140. "\x6d\x55\xf0\xfc\x88\x54\x4e\x89"
  5141. "\xc1\x8a\x23\x31\x2d\x14\x2a\xb8"
  5142. "\x1b\x15\xdd\x9e\x6e\x7b\xda\x05"
  5143. "\x91\x7d\x62\x64\x96\x72\xde\xfc"
  5144. "\xc1\xec\xf0\x23\x51\x6f\xdb\x5b"
  5145. "\x1d\x08\x57\xce\x09\xb8\xf6\xcd"
  5146. "\x8d\x95\xf2\x20\xbf\x0f\x20\x57"
  5147. "\x98\x81\x84\x4f\x15\x5c\x76\xe7"
  5148. "\x3e\x0a\x3a\x6c\xc4\x8a\xbe\x78"
  5149. "\x74\x77\xc3\x09\x4b\x5d\x48\xe4"
  5150. "\xc8\xcb\x0b\xea\x17\x28\xcf\xcf"
  5151. "\x31\x32\x44\xa4\xe5\x0e\x1a\x98"
  5152. "\x94\xc4\xf0\xff\xae\x3e\x44\xe8"
  5153. "\xa5\xb3\xb5\x37\x2f\xe8\xaf\x6f"
  5154. "\x28\xc1\x37\x5f\x31\xd2\xb9\x33"
  5155. "\xb1\xb2\x52\x94\x75\x2c\x29\x59"
  5156. "\x06\xc2\x25\xe8\x71\x65\x4e\xed"
  5157. "\xc0\x9c\xb1\xbb\x25\xdc\x6c\xe7"
  5158. "\x4b\xa5\x7a\x54\x7a\x60\xff\x7a"
  5159. "\xe0\x50\x40\x96\x35\x63\xe4\x0b"
  5160. "\x76\xbd\xa4\x65\x00\x1b\x57\x88"
  5161. "\xae\xed\x39\x88\x42\x11\x3c\xed"
  5162. "\x85\x67\x7d\xb9\x68\x82\xe9\x43"
  5163. "\x3c\x47\x53\xfa\xe8\xf8\x9f\x1f"
  5164. "\x9f\xef\x0f\xf7\x30\xd9\x30\x0e"
  5165. "\xb9\x9f\x69\x18\x2f\x7e\xf8\xf8"
  5166. "\xf8\x8c\x0f\xd4\x02\x4d\xea\xcd"
  5167. "\x0a\x9c\x6f\x71\x6d\x5a\x4c\x60"
  5168. "\xce\x20\x56\x32\xc6\xc5\x99\x1f"
  5169. "\x09\xe6\x4e\x18\x1a\x15\x13\xa8"
  5170. "\x7d\xb1\x6b\xc0\xb2\x6d\xf8\x26"
  5171. "\x66\xf8\x3d\x18\x74\x70\x66\x7a"
  5172. "\x34\x17\xde\xba\x47\xf1\x06\x18"
  5173. "\xcb\xaf\xeb\x4a\x1e\x8f\xa7\x77"
  5174. "\xe0\x3b\x78\x62\x66\xc9\x10\xea"
  5175. "\x1f\xb7\x29\x0a\x45\xa1\x1d\x1e"
  5176. "\x1d\xe2\x65\x61\x50\x9c\xd7\x05"
  5177. "\xf2\x0b\x5b\x12\x61\x02\xc8\xe5"
  5178. "\x63\x4f\x20\x0c\x07\x17\x33\x5e"
  5179. "\x03\x9a\x53\x0f\x2e\x55\xfe\x50"
  5180. "\x43\x7d\xd0\xb6\x7e\x5a\xda\xae"
  5181. "\x58\xef\x15\xa9\x83\xd9\x46\xb1"
  5182. "\x42\xaa\xf5\x02\x6c\xce\x92\x06"
  5183. "\x1b\xdb\x66\x45\x91\x79\xc2\x2d"
  5184. "\xe6\x53\xd3\x14\xfd\xbb\x44\x63"
  5185. "\xc6\xd7\x3d\x7a\x0c\x75\x78\x9d"
  5186. "\x5c\xa6\x39\xb3\xe5\x63\xca\x8b"
  5187. "\xfe\xd3\xef\x60\x83\xf6\x8e\x70"
  5188. "\xb6\x67\xc7\x77\xed\x23\xef\x4c"
  5189. "\xf0\xed\x2d\x07\x59\x6f\xc1\x01"
  5190. "\x34\x37\x08\xab\xd9\x1f\x09\xb1"
  5191. "\xce\x5b\x17\xff\x74\xf8\x9c\xd5"
  5192. "\x2c\x56\x39\x79\x0f\x69\x44\x75"
  5193. "\x58\x27\x01\xc4\xbf\xa7\xa1\x1d"
  5194. "\x90\x17\x77\x86\x5a\x3f\xd9\xd1"
  5195. "\x0e\xa0\x10\xf8\xec\x1e\xa5\x7f"
  5196. "\x5e\x36\xd1\xe3\x04\x2c\x70\xf7"
  5197. "\x8e\xc0\x98\x2f\x6c\x94\x2b\x41"
  5198. "\xb7\x60\x00\xb7\x2e\xb8\x02\x8d"
  5199. "\xb8\xb0\xd3\x86\xba\x1d\xd7\x90"
  5200. "\xd6\xb6\xe1\xfc\xd7\xd8\x28\x06"
  5201. "\x63\x9b\xce\x61\x24\x79\xc0\x70"
  5202. "\x52\xd0\xb6\xd4\x28\x95\x24\x87"
  5203. "\x03\x1f\xb7\x9a\xda\xa3\xfb\x52"
  5204. "\x5b\x68\xe7\x4c\x8c\x24\xe1\x42"
  5205. "\xf7\xd5\xfd\xad\x06\x32\x9f\xba"
  5206. "\xc1\xfc\xdd\xc6\xfc\xfc\xb3\x38"
  5207. "\x74\x56\x58\x40\x02\x37\x52\x2c"
  5208. "\x55\xcc\xb3\x9e\x7a\xe9\xd4\x38"
  5209. "\x41\x5e\x0c\x35\xe2\x11\xd1\x13"
  5210. "\xf8\xb7\x8d\x72\x6b\x22\x2a\xb0"
  5211. "\xdb\x08\xba\x35\xb9\x3f\xc8\xd3"
  5212. "\x24\x90\xec\x58\xd2\x09\xc7\x2d"
  5213. "\xed\x38\x80\x36\x72\x43\x27\x49"
  5214. "\x4a\x80\x8a\xa2\xe8\xd3\xda\x30"
  5215. "\x7d\xb6\x82\x37\x86\x92\x86\x3e"
  5216. "\x08\xb2\x28\x5a\x55\x44\x24\x7d"
  5217. "\x40\x48\x8a\xb6\x89\x58\x08\xa0"
  5218. "\xd6\x6d\x3a\x17\xbf\xf6\x54\xa2"
  5219. "\xf5\xd3\x8c\x0f\x78\x12\x57\x8b"
  5220. "\xd5\xc2\xfd\x58\x5b\x7f\x38\xe3"
  5221. "\xcc\xb7\x7c\x48\xb3\x20\xe8\x81"
  5222. "\x14\x32\x45\x05\xe0\xdb\x9f\x75"
  5223. "\x85\xb4\x6a\xfc\x95\xe3\x54\x22"
  5224. "\x12\xee\x30\xfe\xd8\x30\xef\x34"
  5225. "\x50\xab\x46\x30\x98\x2f\xb7\xc0"
  5226. "\x15\xa2\x83\xb6\xf2\x06\x21\xa2"
  5227. "\xc3\x26\x37\x14\xd1\x4d\xb5\x10"
  5228. "\x52\x76\x4d\x6a\xee\xb5\x2b\x15"
  5229. "\xb7\xf9\x51\xe8\x2a\xaf\xc7\xfa"
  5230. "\x77\xaf\xb0\x05\x4d\xd1\x68\x8e"
  5231. "\x74\x05\x9f\x9d\x93\xa5\x3e\x7f"
  5232. "\x4e\x5f\x9d\xcb\x09\xc7\x83\xe3"
  5233. "\x02\x9d\x27\x1f\xef\x85\x05\x8d"
  5234. "\xec\x55\x88\x0f\x0d\x7c\x4c\xe8"
  5235. "\xa1\x75\xa0\xd8\x06\x47\x14\xef"
  5236. "\xaa\x61\xcf\x26\x15\xad\xd8\xa3"
  5237. "\xaa\x75\xf2\x78\x4a\x5a\x61\xdf"
  5238. "\x8b\xc7\x04\xbc\xb2\x32\xd2\x7e"
  5239. "\x42\xee\xb4\x2f\x51\xff\x7b\x2e"
  5240. "\xd3\x02\xe8\xdc\x5d\x0d\x50\xdc"
  5241. "\xae\xb7\x46\xf9\xa8\xe6\xd0\x16"
  5242. "\xcc\xe6\x2c\x81\xc7\xad\xe9\xf0"
  5243. "\x05\x72\x6d\x3d\x0a\x7a\xa9\x02"
  5244. "\xac\x82\x93\x6e\xb6\x1c\x28\xfc"
  5245. "\x44\x12\xfb\x73\x77\xd4\x13\x39"
  5246. "\x29\x88\x8a\xf3\x5c\xa6\x36\xa0"
  5247. "\x2a\xed\x7e\xb1\x1d\xd6\x4c\x6b"
  5248. "\x41\x01\x18\x5d\x5d\x07\x97\xa6"
  5249. "\x4b\xef\x31\x18\xea\xac\xb1\x84"
  5250. "\x21\xed\xda\x86",
  5251. .rlen = 4100,
  5252. .np = 2,
  5253. .tap = { 4064, 36 },
  5254. },
  5255. };
  5256. static struct cipher_testvec aes_ctr_rfc3686_dec_tv_template[] = {
  5257. { /* From RFC 3686 */
  5258. .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
  5259. "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
  5260. "\x00\x00\x00\x30",
  5261. .klen = 20,
  5262. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  5263. .input = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
  5264. "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
  5265. .ilen = 16,
  5266. .result = "Single block msg",
  5267. .rlen = 16,
  5268. }, {
  5269. .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
  5270. "\x43\xd6\xce\x1f\x32\x53\x91\x63"
  5271. "\x00\x6c\xb6\xdb",
  5272. .klen = 20,
  5273. .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
  5274. .input = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
  5275. "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
  5276. "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
  5277. "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
  5278. .ilen = 32,
  5279. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5280. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5281. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5282. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  5283. .rlen = 32,
  5284. }, {
  5285. .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
  5286. "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
  5287. "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
  5288. "\x00\x00\x00\x48",
  5289. .klen = 28,
  5290. .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
  5291. .input = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
  5292. "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
  5293. .ilen = 16,
  5294. .result = "Single block msg",
  5295. .rlen = 16,
  5296. }, {
  5297. .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
  5298. "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
  5299. "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
  5300. "\x00\x96\xb0\x3b",
  5301. .klen = 28,
  5302. .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
  5303. .input = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
  5304. "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
  5305. "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
  5306. "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
  5307. .ilen = 32,
  5308. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5309. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5310. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5311. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  5312. .rlen = 32,
  5313. }, {
  5314. .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
  5315. "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
  5316. "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
  5317. "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
  5318. "\x00\x00\x00\x60",
  5319. .klen = 36,
  5320. .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
  5321. .input = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
  5322. "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
  5323. .ilen = 16,
  5324. .result = "Single block msg",
  5325. .rlen = 16,
  5326. }, {
  5327. .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
  5328. "\x07\x96\x36\x58\x79\xef\xf8\x86"
  5329. "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
  5330. "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
  5331. "\x00\xfa\xac\x24",
  5332. .klen = 36,
  5333. .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
  5334. .input = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
  5335. "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
  5336. "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
  5337. "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
  5338. .ilen = 32,
  5339. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5340. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5341. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5342. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  5343. .rlen = 32,
  5344. },
  5345. };
  5346. static struct aead_testvec aes_gcm_enc_tv_template[] = {
  5347. { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
  5348. .key = zeroed_string,
  5349. .klen = 16,
  5350. .result = "\x58\xe2\xfc\xce\xfa\x7e\x30\x61"
  5351. "\x36\x7f\x1d\x57\xa4\xe7\x45\x5a",
  5352. .rlen = 16,
  5353. }, {
  5354. .key = zeroed_string,
  5355. .klen = 16,
  5356. .input = zeroed_string,
  5357. .ilen = 16,
  5358. .result = "\x03\x88\xda\xce\x60\xb6\xa3\x92"
  5359. "\xf3\x28\xc2\xb9\x71\xb2\xfe\x78"
  5360. "\xab\x6e\x47\xd4\x2c\xec\x13\xbd"
  5361. "\xf5\x3a\x67\xb2\x12\x57\xbd\xdf",
  5362. .rlen = 32,
  5363. }, {
  5364. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5365. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5366. .klen = 16,
  5367. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5368. "\xde\xca\xf8\x88",
  5369. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5370. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5371. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5372. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5373. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5374. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5375. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5376. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  5377. .ilen = 64,
  5378. .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  5379. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  5380. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  5381. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  5382. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  5383. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  5384. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  5385. "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
  5386. "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
  5387. "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
  5388. .rlen = 80,
  5389. }, {
  5390. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5391. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5392. .klen = 16,
  5393. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5394. "\xde\xca\xf8\x88",
  5395. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5396. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5397. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5398. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5399. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5400. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5401. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5402. "\xba\x63\x7b\x39",
  5403. .ilen = 60,
  5404. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5405. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5406. "\xab\xad\xda\xd2",
  5407. .alen = 20,
  5408. .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  5409. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  5410. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  5411. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  5412. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  5413. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  5414. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  5415. "\x3d\x58\xe0\x91"
  5416. "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
  5417. "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
  5418. .rlen = 76,
  5419. }, {
  5420. .key = zeroed_string,
  5421. .klen = 24,
  5422. .result = "\xcd\x33\xb2\x8a\xc7\x73\xf7\x4b"
  5423. "\xa0\x0e\xd1\xf3\x12\x57\x24\x35",
  5424. .rlen = 16,
  5425. }, {
  5426. .key = zeroed_string,
  5427. .klen = 24,
  5428. .input = zeroed_string,
  5429. .ilen = 16,
  5430. .result = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
  5431. "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
  5432. "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
  5433. "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
  5434. .rlen = 32,
  5435. }, {
  5436. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5437. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5438. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  5439. .klen = 24,
  5440. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5441. "\xde\xca\xf8\x88",
  5442. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5443. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5444. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5445. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5446. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5447. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5448. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5449. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  5450. .ilen = 64,
  5451. .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  5452. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  5453. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  5454. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  5455. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  5456. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  5457. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  5458. "\xcc\xda\x27\x10\xac\xad\xe2\x56"
  5459. "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
  5460. "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
  5461. .rlen = 80,
  5462. }, {
  5463. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5464. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5465. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  5466. .klen = 24,
  5467. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5468. "\xde\xca\xf8\x88",
  5469. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5470. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5471. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5472. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5473. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5474. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5475. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5476. "\xba\x63\x7b\x39",
  5477. .ilen = 60,
  5478. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5479. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5480. "\xab\xad\xda\xd2",
  5481. .alen = 20,
  5482. .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  5483. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  5484. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  5485. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  5486. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  5487. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  5488. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  5489. "\xcc\xda\x27\x10"
  5490. "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
  5491. "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
  5492. .rlen = 76,
  5493. .np = 2,
  5494. .tap = { 32, 28 },
  5495. .anp = 2,
  5496. .atap = { 8, 12 }
  5497. }, {
  5498. .key = zeroed_string,
  5499. .klen = 32,
  5500. .result = "\x53\x0f\x8a\xfb\xc7\x45\x36\xb9"
  5501. "\xa9\x63\xb4\xf1\xc4\xcb\x73\x8b",
  5502. .rlen = 16,
  5503. }
  5504. };
  5505. static struct aead_testvec aes_gcm_dec_tv_template[] = {
  5506. { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
  5507. .key = zeroed_string,
  5508. .klen = 32,
  5509. .input = "\xce\xa7\x40\x3d\x4d\x60\x6b\x6e"
  5510. "\x07\x4e\xc5\xd3\xba\xf3\x9d\x18"
  5511. "\xd0\xd1\xc8\xa7\x99\x99\x6b\xf0"
  5512. "\x26\x5b\x98\xb5\xd4\x8a\xb9\x19",
  5513. .ilen = 32,
  5514. .result = zeroed_string,
  5515. .rlen = 16,
  5516. }, {
  5517. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5518. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5519. "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5520. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5521. .klen = 32,
  5522. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5523. "\xde\xca\xf8\x88",
  5524. .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
  5525. "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
  5526. "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
  5527. "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
  5528. "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
  5529. "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
  5530. "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
  5531. "\xbc\xc9\xf6\x62\x89\x80\x15\xad"
  5532. "\xb0\x94\xda\xc5\xd9\x34\x71\xbd"
  5533. "\xec\x1a\x50\x22\x70\xe3\xcc\x6c",
  5534. .ilen = 80,
  5535. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5536. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5537. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5538. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5539. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5540. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5541. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5542. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  5543. .rlen = 64,
  5544. }, {
  5545. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5546. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5547. "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5548. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5549. .klen = 32,
  5550. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5551. "\xde\xca\xf8\x88",
  5552. .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
  5553. "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
  5554. "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
  5555. "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
  5556. "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
  5557. "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
  5558. "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
  5559. "\xbc\xc9\xf6\x62"
  5560. "\x76\xfc\x6e\xce\x0f\x4e\x17\x68"
  5561. "\xcd\xdf\x88\x53\xbb\x2d\x55\x1b",
  5562. .ilen = 76,
  5563. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5564. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5565. "\xab\xad\xda\xd2",
  5566. .alen = 20,
  5567. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5568. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5569. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5570. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5571. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5572. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5573. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5574. "\xba\x63\x7b\x39",
  5575. .rlen = 60,
  5576. .np = 2,
  5577. .tap = { 48, 28 },
  5578. .anp = 3,
  5579. .atap = { 8, 8, 4 }
  5580. }, {
  5581. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5582. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5583. .klen = 16,
  5584. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5585. "\xde\xca\xf8\x88",
  5586. .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  5587. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  5588. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  5589. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  5590. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  5591. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  5592. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  5593. "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
  5594. "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
  5595. "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
  5596. .ilen = 80,
  5597. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5598. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5599. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5600. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5601. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5602. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5603. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5604. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  5605. .rlen = 64,
  5606. }, {
  5607. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5608. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5609. .klen = 16,
  5610. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5611. "\xde\xca\xf8\x88",
  5612. .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  5613. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  5614. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  5615. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  5616. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  5617. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  5618. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  5619. "\x3d\x58\xe0\x91"
  5620. "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
  5621. "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
  5622. .ilen = 76,
  5623. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5624. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5625. "\xab\xad\xda\xd2",
  5626. .alen = 20,
  5627. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5628. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5629. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5630. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5631. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5632. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5633. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5634. "\xba\x63\x7b\x39",
  5635. .rlen = 60,
  5636. }, {
  5637. .key = zeroed_string,
  5638. .klen = 24,
  5639. .input = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
  5640. "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
  5641. "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
  5642. "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
  5643. .ilen = 32,
  5644. .result = zeroed_string,
  5645. .rlen = 16,
  5646. }, {
  5647. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5648. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5649. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  5650. .klen = 24,
  5651. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5652. "\xde\xca\xf8\x88",
  5653. .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  5654. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  5655. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  5656. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  5657. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  5658. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  5659. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  5660. "\xcc\xda\x27\x10\xac\xad\xe2\x56"
  5661. "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
  5662. "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
  5663. .ilen = 80,
  5664. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5665. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5666. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5667. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5668. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5669. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5670. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5671. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  5672. .rlen = 64,
  5673. }, {
  5674. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5675. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5676. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  5677. .klen = 24,
  5678. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5679. "\xde\xca\xf8\x88",
  5680. .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  5681. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  5682. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  5683. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  5684. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  5685. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  5686. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  5687. "\xcc\xda\x27\x10"
  5688. "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
  5689. "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
  5690. .ilen = 76,
  5691. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5692. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5693. "\xab\xad\xda\xd2",
  5694. .alen = 20,
  5695. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5696. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5697. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5698. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5699. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5700. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5701. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5702. "\xba\x63\x7b\x39",
  5703. .rlen = 60,
  5704. }
  5705. };
  5706. static struct aead_testvec aes_ccm_enc_tv_template[] = {
  5707. { /* From RFC 3610 */
  5708. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  5709. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  5710. .klen = 16,
  5711. .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
  5712. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  5713. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  5714. .alen = 8,
  5715. .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5716. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5717. "\x18\x19\x1a\x1b\x1c\x1d\x1e",
  5718. .ilen = 23,
  5719. .result = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
  5720. "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
  5721. "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
  5722. "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
  5723. .rlen = 31,
  5724. }, {
  5725. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  5726. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  5727. .klen = 16,
  5728. .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
  5729. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  5730. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5731. "\x08\x09\x0a\x0b",
  5732. .alen = 12,
  5733. .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  5734. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  5735. "\x1c\x1d\x1e\x1f",
  5736. .ilen = 20,
  5737. .result = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
  5738. "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
  5739. "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
  5740. "\x7d\x9c\x2d\x93",
  5741. .rlen = 28,
  5742. }, {
  5743. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  5744. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  5745. .klen = 16,
  5746. .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
  5747. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  5748. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  5749. .alen = 8,
  5750. .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5751. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5752. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  5753. "\x20",
  5754. .ilen = 25,
  5755. .result = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
  5756. "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
  5757. "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
  5758. "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
  5759. "\x7e\x5f\x4e",
  5760. .rlen = 35,
  5761. }, {
  5762. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  5763. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  5764. .klen = 16,
  5765. .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
  5766. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  5767. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5768. "\x08\x09\x0a\x0b",
  5769. .alen = 12,
  5770. .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  5771. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  5772. "\x1c\x1d\x1e",
  5773. .ilen = 19,
  5774. .result = "\x07\x34\x25\x94\x15\x77\x85\x15"
  5775. "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
  5776. "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
  5777. "\x4d\x99\x99\x88\xdd",
  5778. .rlen = 29,
  5779. }, {
  5780. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  5781. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  5782. .klen = 16,
  5783. .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
  5784. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  5785. .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
  5786. .alen = 8,
  5787. .input = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
  5788. "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
  5789. "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
  5790. .ilen = 24,
  5791. .result = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
  5792. "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
  5793. "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
  5794. "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
  5795. .rlen = 32,
  5796. }, {
  5797. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  5798. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  5799. .klen = 16,
  5800. .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
  5801. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  5802. .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
  5803. "\x20\xea\x60\xc0",
  5804. .alen = 12,
  5805. .input = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
  5806. "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
  5807. "\x3a\x80\x3b\xa8\x7f",
  5808. .ilen = 21,
  5809. .result = "\x00\x97\x69\xec\xab\xdf\x48\x62"
  5810. "\x55\x94\xc5\x92\x51\xe6\x03\x57"
  5811. "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
  5812. "\x5a\xe0\x70\x45\x51",
  5813. .rlen = 29,
  5814. }, {
  5815. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  5816. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  5817. .klen = 16,
  5818. .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
  5819. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  5820. .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
  5821. .alen = 8,
  5822. .input = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
  5823. "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
  5824. "\x98\x09\xd6\x7d\xbe\xdd\x18",
  5825. .ilen = 23,
  5826. .result = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
  5827. "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
  5828. "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
  5829. "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
  5830. "\xba",
  5831. .rlen = 33,
  5832. },
  5833. };
  5834. static struct aead_testvec aes_ccm_dec_tv_template[] = {
  5835. { /* From RFC 3610 */
  5836. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  5837. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  5838. .klen = 16,
  5839. .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
  5840. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  5841. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  5842. .alen = 8,
  5843. .input = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
  5844. "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
  5845. "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
  5846. "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
  5847. .ilen = 31,
  5848. .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5849. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5850. "\x18\x19\x1a\x1b\x1c\x1d\x1e",
  5851. .rlen = 23,
  5852. }, {
  5853. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  5854. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  5855. .klen = 16,
  5856. .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
  5857. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  5858. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5859. "\x08\x09\x0a\x0b",
  5860. .alen = 12,
  5861. .input = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
  5862. "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
  5863. "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
  5864. "\x7d\x9c\x2d\x93",
  5865. .ilen = 28,
  5866. .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  5867. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  5868. "\x1c\x1d\x1e\x1f",
  5869. .rlen = 20,
  5870. }, {
  5871. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  5872. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  5873. .klen = 16,
  5874. .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
  5875. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  5876. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  5877. .alen = 8,
  5878. .input = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
  5879. "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
  5880. "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
  5881. "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
  5882. "\x7e\x5f\x4e",
  5883. .ilen = 35,
  5884. .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5885. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5886. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  5887. "\x20",
  5888. .rlen = 25,
  5889. }, {
  5890. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  5891. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  5892. .klen = 16,
  5893. .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
  5894. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  5895. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5896. "\x08\x09\x0a\x0b",
  5897. .alen = 12,
  5898. .input = "\x07\x34\x25\x94\x15\x77\x85\x15"
  5899. "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
  5900. "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
  5901. "\x4d\x99\x99\x88\xdd",
  5902. .ilen = 29,
  5903. .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  5904. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  5905. "\x1c\x1d\x1e",
  5906. .rlen = 19,
  5907. }, {
  5908. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  5909. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  5910. .klen = 16,
  5911. .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
  5912. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  5913. .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
  5914. .alen = 8,
  5915. .input = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
  5916. "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
  5917. "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
  5918. "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
  5919. .ilen = 32,
  5920. .result = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
  5921. "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
  5922. "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
  5923. .rlen = 24,
  5924. }, {
  5925. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  5926. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  5927. .klen = 16,
  5928. .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
  5929. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  5930. .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
  5931. "\x20\xea\x60\xc0",
  5932. .alen = 12,
  5933. .input = "\x00\x97\x69\xec\xab\xdf\x48\x62"
  5934. "\x55\x94\xc5\x92\x51\xe6\x03\x57"
  5935. "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
  5936. "\x5a\xe0\x70\x45\x51",
  5937. .ilen = 29,
  5938. .result = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
  5939. "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
  5940. "\x3a\x80\x3b\xa8\x7f",
  5941. .rlen = 21,
  5942. }, {
  5943. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  5944. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  5945. .klen = 16,
  5946. .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
  5947. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  5948. .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
  5949. .alen = 8,
  5950. .input = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
  5951. "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
  5952. "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
  5953. "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
  5954. "\xba",
  5955. .ilen = 33,
  5956. .result = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
  5957. "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
  5958. "\x98\x09\xd6\x7d\xbe\xdd\x18",
  5959. .rlen = 23,
  5960. },
  5961. };
  5962. /*
  5963. * rfc4309 refers to section 8 of rfc3610 for test vectors, but they all
  5964. * use a 13-byte nonce, we only support an 11-byte nonce. Similarly, all of
  5965. * Special Publication 800-38C's test vectors also use nonce lengths our
  5966. * implementation doesn't support. The following are taken from fips cavs
  5967. * fax files on hand at Red Hat.
  5968. *
  5969. * nb: actual key lengths are (klen - 3), the last 3 bytes are actually
  5970. * part of the nonce which combine w/the iv, but need to be input this way.
  5971. */
  5972. static struct aead_testvec aes_ccm_rfc4309_enc_tv_template[] = {
  5973. {
  5974. .key = "\x83\xac\x54\x66\xc2\xeb\xe5\x05"
  5975. "\x2e\x01\xd1\xfc\x5d\x82\x66\x2e"
  5976. "\x96\xac\x59",
  5977. .klen = 19,
  5978. .iv = "\x30\x07\xa1\xe2\xa2\xc7\x55\x24",
  5979. .alen = 0,
  5980. .input = "\x19\xc8\x81\xf6\xe9\x86\xff\x93"
  5981. "\x0b\x78\x67\xe5\xbb\xb7\xfc\x6e"
  5982. "\x83\x77\xb3\xa6\x0c\x8c\x9f\x9c"
  5983. "\x35\x2e\xad\xe0\x62\xf9\x91\xa1",
  5984. .ilen = 32,
  5985. .result = "\xab\x6f\xe1\x69\x1d\x19\x99\xa8"
  5986. "\x92\xa0\xc4\x6f\x7e\xe2\x8b\xb1"
  5987. "\x70\xbb\x8c\xa6\x4c\x6e\x97\x8a"
  5988. "\x57\x2b\xbe\x5d\x98\xa6\xb1\x32"
  5989. "\xda\x24\xea\xd9\xa1\x39\x98\xfd"
  5990. "\xa4\xbe\xd9\xf2\x1a\x6d\x22\xa8",
  5991. .rlen = 48,
  5992. }, {
  5993. .key = "\x1e\x2c\x7e\x01\x41\x9a\xef\xc0"
  5994. "\x0d\x58\x96\x6e\x5c\xa2\x4b\xd3"
  5995. "\x4f\xa3\x19",
  5996. .klen = 19,
  5997. .iv = "\xd3\x01\x5a\xd8\x30\x60\x15\x56",
  5998. .assoc = "\xda\xe6\x28\x9c\x45\x2d\xfd\x63"
  5999. "\x5e\xda\x4c\xb6\xe6\xfc\xf9\xb7"
  6000. "\x0c\x56\xcb\xe4\xe0\x05\x7a\xe1"
  6001. "\x0a\x63\x09\x78\xbc\x2c\x55\xde",
  6002. .alen = 32,
  6003. .input = "\x87\xa3\x36\xfd\x96\xb3\x93\x78"
  6004. "\xa9\x28\x63\xba\x12\xa3\x14\x85"
  6005. "\x57\x1e\x06\xc9\x7b\x21\xef\x76"
  6006. "\x7f\x38\x7e\x8e\x29\xa4\x3e\x7e",
  6007. .ilen = 32,
  6008. .result = "\x8a\x1e\x11\xf0\x02\x6b\xe2\x19"
  6009. "\xfc\x70\xc4\x6d\x8e\xb7\x99\xab"
  6010. "\xc5\x4b\xa2\xac\xd3\xf3\x48\xff"
  6011. "\x3b\xb5\xce\x53\xef\xde\xbb\x02"
  6012. "\xa9\x86\x15\x6c\x13\xfe\xda\x0a"
  6013. "\x22\xb8\x29\x3d\xd8\x39\x9a\x23",
  6014. .rlen = 48,
  6015. }, {
  6016. .key = "\xf4\x6b\xc2\x75\x62\xfe\xb4\xe1"
  6017. "\xa3\xf0\xff\xdd\x4e\x4b\x12\x75"
  6018. "\x53\x14\x73\x66\x8d\x88\xf6\x80"
  6019. "\xa0\x20\x35",
  6020. .klen = 27,
  6021. .iv = "\x26\xf2\x21\x8d\x50\x20\xda\xe2",
  6022. .assoc = "\x5b\x9e\x13\x67\x02\x5e\xef\xc1"
  6023. "\x6c\xf9\xd7\x1e\x52\x8f\x7a\x47"
  6024. "\xe9\xd4\xcf\x20\x14\x6e\xf0\x2d"
  6025. "\xd8\x9e\x2b\x56\x10\x23\x56\xe7",
  6026. .alen = 32,
  6027. .ilen = 0,
  6028. .result = "\x36\xea\x7a\x70\x08\xdc\x6a\xbc"
  6029. "\xad\x0c\x7a\x63\xf6\x61\xfd\x9b",
  6030. .rlen = 16,
  6031. }, {
  6032. .key = "\x56\xdf\x5c\x8f\x26\x3f\x0e\x42"
  6033. "\xef\x7a\xd3\xce\xfc\x84\x60\x62"
  6034. "\xca\xb4\x40\xaf\x5f\xc9\xc9\x01"
  6035. "\xd6\x3c\x8c",
  6036. .klen = 27,
  6037. .iv = "\x86\x84\xb6\xcd\xef\x09\x2e\x94",
  6038. .assoc = "\x02\x65\x78\x3c\xe9\x21\x30\x91"
  6039. "\xb1\xb9\xda\x76\x9a\x78\x6d\x95"
  6040. "\xf2\x88\x32\xa3\xf2\x50\xcb\x4c"
  6041. "\xe3\x00\x73\x69\x84\x69\x87\x79",
  6042. .alen = 32,
  6043. .input = "\x9f\xd2\x02\x4b\x52\x49\x31\x3c"
  6044. "\x43\x69\x3a\x2d\x8e\x70\xad\x7e"
  6045. "\xe0\xe5\x46\x09\x80\x89\x13\xb2"
  6046. "\x8c\x8b\xd9\x3f\x86\xfb\xb5\x6b",
  6047. .ilen = 32,
  6048. .result = "\x39\xdf\x7c\x3c\x5a\x29\xb9\x62"
  6049. "\x5d\x51\xc2\x16\xd8\xbd\x06\x9f"
  6050. "\x9b\x6a\x09\x70\xc1\x51\x83\xc2"
  6051. "\x66\x88\x1d\x4f\x9a\xda\xe0\x1e"
  6052. "\xc7\x79\x11\x58\xe5\x6b\x20\x40"
  6053. "\x7a\xea\x46\x42\x8b\xe4\x6f\xe1",
  6054. .rlen = 48,
  6055. }, {
  6056. .key = "\xe0\x8d\x99\x71\x60\xd7\x97\x1a"
  6057. "\xbd\x01\x99\xd5\x8a\xdf\x71\x3a"
  6058. "\xd3\xdf\x24\x4b\x5e\x3d\x4b\x4e"
  6059. "\x30\x7a\xb9\xd8\x53\x0a\x5e\x2b"
  6060. "\x1e\x29\x91",
  6061. .klen = 35,
  6062. .iv = "\xad\x8e\xc1\x53\x0a\xcf\x2d\xbe",
  6063. .assoc = "\x19\xb6\x1f\x57\xc4\xf3\xf0\x8b"
  6064. "\x78\x2b\x94\x02\x29\x0f\x42\x27"
  6065. "\x6b\x75\xcb\x98\x34\x08\x7e\x79"
  6066. "\xe4\x3e\x49\x0d\x84\x8b\x22\x87",
  6067. .alen = 32,
  6068. .input = "\xe1\xd9\xd8\x13\xeb\x3a\x75\x3f"
  6069. "\x9d\xbd\x5f\x66\xbe\xdc\xbb\x66"
  6070. "\xbf\x17\x99\x62\x4a\x39\x27\x1f"
  6071. "\x1d\xdc\x24\xae\x19\x2f\x98\x4c",
  6072. .ilen = 32,
  6073. .result = "\x19\xb8\x61\x33\x45\x2b\x43\x96"
  6074. "\x6f\x51\xd0\x20\x30\x7d\x9b\xc6"
  6075. "\x26\x3d\xf8\xc9\x65\x16\xa8\x9f"
  6076. "\xf0\x62\x17\x34\xf2\x1e\x8d\x75"
  6077. "\x4e\x13\xcc\xc0\xc3\x2a\x54\x2d",
  6078. .rlen = 40,
  6079. }, {
  6080. .key = "\x7c\xc8\x18\x3b\x8d\x99\xe0\x7c"
  6081. "\x45\x41\xb8\xbd\x5c\xa7\xc2\x32"
  6082. "\x8a\xb8\x02\x59\xa4\xfe\xa9\x2c"
  6083. "\x09\x75\x9a\x9b\x3c\x9b\x27\x39"
  6084. "\xf9\xd9\x4e",
  6085. .klen = 35,
  6086. .iv = "\x63\xb5\x3d\x9d\x43\xf6\x1e\x50",
  6087. .assoc = "\x57\xf5\x6b\x8b\x57\x5c\x3d\x3b"
  6088. "\x13\x02\x01\x0c\x83\x4c\x96\x35"
  6089. "\x8e\xd6\x39\xcf\x7d\x14\x9b\x94"
  6090. "\xb0\x39\x36\xe6\x8f\x57\xe0\x13",
  6091. .alen = 32,
  6092. .input = "\x3b\x6c\x29\x36\xb6\xef\x07\xa6"
  6093. "\x83\x72\x07\x4f\xcf\xfa\x66\x89"
  6094. "\x5f\xca\xb1\xba\xd5\x8f\x2c\x27"
  6095. "\x30\xdb\x75\x09\x93\xd4\x65\xe4",
  6096. .ilen = 32,
  6097. .result = "\xb0\x88\x5a\x33\xaa\xe5\xc7\x1d"
  6098. "\x85\x23\xc7\xc6\x2f\xf4\x1e\x3d"
  6099. "\xcc\x63\x44\x25\x07\x78\x4f\x9e"
  6100. "\x96\xb8\x88\xeb\xbc\x48\x1f\x06"
  6101. "\x39\xaf\x39\xac\xd8\x4a\x80\x39"
  6102. "\x7b\x72\x8a\xf7",
  6103. .rlen = 44,
  6104. }, {
  6105. .key = "\xab\xd0\xe9\x33\x07\x26\xe5\x83"
  6106. "\x8c\x76\x95\xd4\xb6\xdc\xf3\x46"
  6107. "\xf9\x8f\xad\xe3\x02\x13\x83\x77"
  6108. "\x3f\xb0\xf1\xa1\xa1\x22\x0f\x2b"
  6109. "\x24\xa7\x8b",
  6110. .klen = 35,
  6111. .iv = "\x07\xcb\xcc\x0e\xe6\x33\xbf\xf5",
  6112. .assoc = "\xd4\xdb\x30\x1d\x03\xfe\xfd\x5f"
  6113. "\x87\xd4\x8c\xb6\xb6\xf1\x7a\x5d"
  6114. "\xab\x90\x65\x8d\x8e\xca\x4d\x4f"
  6115. "\x16\x0c\x40\x90\x4b\xc7\x36\x73",
  6116. .alen = 32,
  6117. .input = "\xf5\xc6\x7d\x48\xc1\xb7\xe6\x92"
  6118. "\x97\x5a\xca\xc4\xa9\x6d\xf9\x3d"
  6119. "\x6c\xde\xbc\xf1\x90\xea\x6a\xb2"
  6120. "\x35\x86\x36\xaf\x5c\xfe\x4b\x3a",
  6121. .ilen = 32,
  6122. .result = "\x83\x6f\x40\x87\x72\xcf\xc1\x13"
  6123. "\xef\xbb\x80\x21\x04\x6c\x58\x09"
  6124. "\x07\x1b\xfc\xdf\xc0\x3f\x5b\xc7"
  6125. "\xe0\x79\xa8\x6e\x71\x7c\x3f\xcf"
  6126. "\x5c\xda\xb2\x33\xe5\x13\xe2\x0d"
  6127. "\x74\xd1\xef\xb5\x0f\x3a\xb5\xf8",
  6128. .rlen = 48,
  6129. },
  6130. };
  6131. static struct aead_testvec aes_ccm_rfc4309_dec_tv_template[] = {
  6132. {
  6133. .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
  6134. "\xff\x80\x2e\x48\x7d\x82\xf8\xb9"
  6135. "\xc6\xfb\x7d",
  6136. .klen = 19,
  6137. .iv = "\x80\x0d\x13\xab\xd8\xa6\xb2\xd8",
  6138. .alen = 0,
  6139. .input = "\xd5\xe8\x93\x9f\xc7\x89\x2e\x2b",
  6140. .ilen = 8,
  6141. .result = "\x00",
  6142. .rlen = 0,
  6143. .novrfy = 1,
  6144. }, {
  6145. .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
  6146. "\xff\x80\x2e\x48\x7d\x82\xf8\xb9"
  6147. "\xaf\x94\x87",
  6148. .klen = 19,
  6149. .iv = "\x78\x35\x82\x81\x7f\x88\x94\x68",
  6150. .alen = 0,
  6151. .input = "\x41\x3c\xb8\x87\x73\xcb\xf3\xf3",
  6152. .ilen = 8,
  6153. .result = "\x00",
  6154. .rlen = 0,
  6155. }, {
  6156. .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
  6157. "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8"
  6158. "\xc6\xfb\x7d",
  6159. .klen = 19,
  6160. .iv = "\x80\x0d\x13\xab\xd8\xa6\xb2\xd8",
  6161. .assoc = "\xf3\x94\x87\x78\x35\x82\x81\x7f"
  6162. "\x88\x94\x68\xb1\x78\x6b\x2b\xd6"
  6163. "\x04\x1f\x4e\xed\x78\xd5\x33\x66"
  6164. "\xd8\x94\x99\x91\x81\x54\x62\x57",
  6165. .alen = 32,
  6166. .input = "\xf0\x7c\x29\x02\xae\x1c\x2f\x55"
  6167. "\xd0\xd1\x3d\x1a\xa3\x6d\xe4\x0a"
  6168. "\x86\xb0\x87\x6b\x62\x33\x8c\x34"
  6169. "\xce\xab\x57\xcc\x79\x0b\xe0\x6f"
  6170. "\x5c\x3e\x48\x1f\x6c\x46\xf7\x51"
  6171. "\x8b\x84\x83\x2a\xc1\x05\xb8\xc5",
  6172. .ilen = 48,
  6173. .result = "\x50\x82\x3e\x07\xe2\x1e\xb6\xfb"
  6174. "\x33\xe4\x73\xce\xd2\xfb\x95\x79"
  6175. "\xe8\xb4\xb5\x77\x11\x10\x62\x6f"
  6176. "\x6a\x82\xd1\x13\xec\xf5\xd0\x48",
  6177. .rlen = 32,
  6178. .novrfy = 1,
  6179. }, {
  6180. .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
  6181. "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8"
  6182. "\x05\xe0\xc9",
  6183. .klen = 19,
  6184. .iv = "\x0f\xed\x34\xea\x97\xd4\x3b\xdf",
  6185. .assoc = "\x49\x5c\x50\x1f\x1d\x94\xcc\x81"
  6186. "\xba\xb7\xb6\x03\xaf\xa5\xc1\xa1"
  6187. "\xd8\x5c\x42\x68\xe0\x6c\xda\x89"
  6188. "\x05\xac\x56\xac\x1b\x2a\xd3\x86",
  6189. .alen = 32,
  6190. .input = "\x39\xbe\x7d\x15\x62\x77\xf3\x3c"
  6191. "\xad\x83\x52\x6d\x71\x03\x25\x1c"
  6192. "\xed\x81\x3a\x9a\x16\x7d\x19\x80"
  6193. "\x72\x04\x72\xd0\xf6\xff\x05\x0f"
  6194. "\xb7\x14\x30\x00\x32\x9e\xa0\xa6"
  6195. "\x9e\x5a\x18\xa1\xb8\xfe\xdb\xd3",
  6196. .ilen = 48,
  6197. .result = "\x75\x05\xbe\xc2\xd9\x1e\xde\x60"
  6198. "\x47\x3d\x8c\x7d\xbd\xb5\xd9\xb7"
  6199. "\xf2\xae\x61\x05\x8f\x82\x24\x3f"
  6200. "\x9c\x67\x91\xe1\x38\x4f\xe4\x0c",
  6201. .rlen = 32,
  6202. }, {
  6203. .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
  6204. "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
  6205. "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
  6206. "\xee\x49\x83",
  6207. .klen = 27,
  6208. .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e",
  6209. .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
  6210. "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
  6211. "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
  6212. "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
  6213. .alen = 32,
  6214. .input = "\x71\x99\xfa\xf4\x44\x12\x68\x9b",
  6215. .ilen = 8,
  6216. .result = "\x00",
  6217. .rlen = 0,
  6218. }, {
  6219. .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
  6220. "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
  6221. "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
  6222. "\xee\x49\x83",
  6223. .klen = 27,
  6224. .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e",
  6225. .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
  6226. "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
  6227. "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
  6228. "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
  6229. .alen = 32,
  6230. .input = "\xfb\xe5\x5d\x34\xbe\xe5\xe8\xe7"
  6231. "\x5a\xef\x2f\xbf\x1f\x7f\xd4\xb2"
  6232. "\x66\xca\x61\x1e\x96\x7a\x61\xb3"
  6233. "\x1c\x16\x45\x52\xba\x04\x9c\x9f"
  6234. "\xb1\xd2\x40\xbc\x52\x7c\x6f\xb1",
  6235. .ilen = 40,
  6236. .result = "\x85\x34\x66\x42\xc8\x92\x0f\x36"
  6237. "\x58\xe0\x6b\x91\x3c\x98\x5c\xbb"
  6238. "\x0a\x85\xcc\x02\xad\x7a\x96\xe9"
  6239. "\x65\x43\xa4\xc3\x0f\xdc\x55\x81",
  6240. .rlen = 32,
  6241. }, {
  6242. .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
  6243. "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
  6244. "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
  6245. "\xd1\xfc\x57",
  6246. .klen = 27,
  6247. .iv = "\x9c\xfe\xb8\x9c\xad\x71\xaa\x1f",
  6248. .assoc = "\x86\x67\xa5\xa9\x14\x5f\x0d\xc6"
  6249. "\xff\x14\xc7\x44\xbf\x6c\x3a\xc3"
  6250. "\xff\xb6\x81\xbd\xe2\xd5\x06\xc7"
  6251. "\x3c\xa1\x52\x13\x03\x8a\x23\x3a",
  6252. .alen = 32,
  6253. .input = "\x3f\x66\xb0\x9d\xe5\x4b\x38\x00"
  6254. "\xc6\x0e\x6e\xe5\xd6\x98\xa6\x37"
  6255. "\x8c\x26\x33\xc6\xb2\xa2\x17\xfa"
  6256. "\x64\x19\xc0\x30\xd7\xfc\x14\x6b"
  6257. "\xe3\x33\xc2\x04\xb0\x37\xbe\x3f"
  6258. "\xa9\xb4\x2d\x68\x03\xa3\x44\xef",
  6259. .ilen = 48,
  6260. .result = "\x02\x87\x4d\x28\x80\x6e\xb2\xed"
  6261. "\x99\x2a\xa8\xca\x04\x25\x45\x90"
  6262. "\x1d\xdd\x5a\xd9\xe4\xdb\x9c\x9c"
  6263. "\x49\xe9\x01\xfe\xa7\x80\x6d\x6b",
  6264. .rlen = 32,
  6265. .novrfy = 1,
  6266. }, {
  6267. .key = "\xa4\x4b\x54\x29\x0a\xb8\x6d\x01"
  6268. "\x5b\x80\x2a\xcf\x25\xc4\xb7\x5c"
  6269. "\x20\x2c\xad\x30\xc2\x2b\x41\xfb"
  6270. "\x0e\x85\xbc\x33\xad\x0f\x2b\xff"
  6271. "\xee\x49\x83",
  6272. .klen = 35,
  6273. .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e",
  6274. .alen = 0,
  6275. .input = "\x1f\xb8\x8f\xa3\xdd\x54\x00\xf2",
  6276. .ilen = 8,
  6277. .result = "\x00",
  6278. .rlen = 0,
  6279. }, {
  6280. .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
  6281. "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
  6282. "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
  6283. "\xae\x8f\x11\x4c\xc2\x9c\x4a\xbb"
  6284. "\x85\x34\x66",
  6285. .klen = 35,
  6286. .iv = "\x42\xc8\x92\x0f\x36\x58\xe0\x6b",
  6287. .alen = 0,
  6288. .input = "\x48\x01\x5e\x02\x24\x04\x66\x47"
  6289. "\xa1\xea\x6f\xaf\xe8\xfc\xfb\xdd"
  6290. "\xa5\xa9\x87\x8d\x84\xee\x2e\x77"
  6291. "\xbb\x86\xb9\xf5\x5c\x6c\xff\xf6"
  6292. "\x72\xc3\x8e\xf7\x70\xb1\xb2\x07"
  6293. "\xbc\xa8\xa3\xbd\x83\x7c\x1d\x2a",
  6294. .ilen = 48,
  6295. .result = "\xdc\x56\xf2\x71\xb0\xb1\xa0\x6c"
  6296. "\xf0\x97\x3a\xfb\x6d\xe7\x32\x99"
  6297. "\x3e\xaf\x70\x5e\xb2\x4d\xea\x39"
  6298. "\x89\xd4\x75\x7a\x63\xb1\xda\x93",
  6299. .rlen = 32,
  6300. .novrfy = 1,
  6301. }, {
  6302. .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
  6303. "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
  6304. "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
  6305. "\x0d\x1a\x53\x3b\xb5\xe3\xf8\x8b"
  6306. "\xcf\x76\x3f",
  6307. .klen = 35,
  6308. .iv = "\xd9\x95\x75\x8f\x44\x89\x40\x7b",
  6309. .assoc = "\x8f\x86\x6c\x4d\x1d\xc5\x39\x88"
  6310. "\xc8\xf3\x5c\x52\x10\x63\x6f\x2b"
  6311. "\x8a\x2a\xc5\x6f\x30\x23\x58\x7b"
  6312. "\xfb\x36\x03\x11\xb4\xd9\xf2\xfe",
  6313. .alen = 32,
  6314. .input = "\x48\x58\xd6\xf3\xad\x63\x58\xbf"
  6315. "\xae\xc7\x5e\xae\x83\x8f\x7b\xe4"
  6316. "\x78\x5c\x4c\x67\x71\x89\x94\xbf"
  6317. "\x47\xf1\x63\x7e\x1c\x59\xbd\xc5"
  6318. "\x7f\x44\x0a\x0c\x01\x18\x07\x92"
  6319. "\xe1\xd3\x51\xce\x32\x6d\x0c\x5b",
  6320. .ilen = 48,
  6321. .result = "\xc2\x54\xc8\xde\x78\x87\x77\x40"
  6322. "\x49\x71\xe4\xb7\xe7\xcb\x76\x61"
  6323. "\x0a\x41\xb9\xe9\xc0\x76\x54\xab"
  6324. "\x04\x49\x3b\x19\x93\x57\x25\x5d",
  6325. .rlen = 32,
  6326. },
  6327. };
  6328. /*
  6329. * ANSI X9.31 Continuous Pseudo-Random Number Generator (AES mode)
  6330. * test vectors, taken from Appendix B.2.9 and B.2.10:
  6331. * http://csrc.nist.gov/groups/STM/cavp/documents/rng/RNGVS.pdf
  6332. * Only AES-128 is supported at this time.
  6333. */
  6334. #define ANSI_CPRNG_AES_TEST_VECTORS 6
  6335. static struct cprng_testvec ansi_cprng_aes_tv_template[] = {
  6336. {
  6337. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  6338. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  6339. .klen = 16,
  6340. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  6341. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xf9",
  6342. .dtlen = 16,
  6343. .v = "\x80\x00\x00\x00\x00\x00\x00\x00"
  6344. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6345. .vlen = 16,
  6346. .result = "\x59\x53\x1e\xd1\x3b\xb0\xc0\x55"
  6347. "\x84\x79\x66\x85\xc1\x2f\x76\x41",
  6348. .rlen = 16,
  6349. .loops = 1,
  6350. }, {
  6351. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  6352. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  6353. .klen = 16,
  6354. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  6355. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfa",
  6356. .dtlen = 16,
  6357. .v = "\xc0\x00\x00\x00\x00\x00\x00\x00"
  6358. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6359. .vlen = 16,
  6360. .result = "\x7c\x22\x2c\xf4\xca\x8f\xa2\x4c"
  6361. "\x1c\x9c\xb6\x41\xa9\xf3\x22\x0d",
  6362. .rlen = 16,
  6363. .loops = 1,
  6364. }, {
  6365. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  6366. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  6367. .klen = 16,
  6368. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  6369. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfb",
  6370. .dtlen = 16,
  6371. .v = "\xe0\x00\x00\x00\x00\x00\x00\x00"
  6372. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6373. .vlen = 16,
  6374. .result = "\x8a\xaa\x00\x39\x66\x67\x5b\xe5"
  6375. "\x29\x14\x28\x81\xa9\x4d\x4e\xc7",
  6376. .rlen = 16,
  6377. .loops = 1,
  6378. }, {
  6379. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  6380. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  6381. .klen = 16,
  6382. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  6383. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfc",
  6384. .dtlen = 16,
  6385. .v = "\xf0\x00\x00\x00\x00\x00\x00\x00"
  6386. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6387. .vlen = 16,
  6388. .result = "\x88\xdd\xa4\x56\x30\x24\x23\xe5"
  6389. "\xf6\x9d\xa5\x7e\x7b\x95\xc7\x3a",
  6390. .rlen = 16,
  6391. .loops = 1,
  6392. }, {
  6393. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  6394. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  6395. .klen = 16,
  6396. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  6397. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfd",
  6398. .dtlen = 16,
  6399. .v = "\xf8\x00\x00\x00\x00\x00\x00\x00"
  6400. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6401. .vlen = 16,
  6402. .result = "\x05\x25\x92\x46\x61\x79\xd2\xcb"
  6403. "\x78\xc4\x0b\x14\x0a\x5a\x9a\xc8",
  6404. .rlen = 16,
  6405. .loops = 1,
  6406. }, { /* Monte Carlo Test */
  6407. .key = "\x9f\x5b\x51\x20\x0b\xf3\x34\xb5"
  6408. "\xd8\x2b\xe8\xc3\x72\x55\xc8\x48",
  6409. .klen = 16,
  6410. .dt = "\x63\x76\xbb\xe5\x29\x02\xba\x3b"
  6411. "\x67\xc9\x25\xfa\x70\x1f\x11\xac",
  6412. .dtlen = 16,
  6413. .v = "\x57\x2c\x8e\x76\x87\x26\x47\x97"
  6414. "\x7e\x74\xfb\xdd\xc4\x95\x01\xd1",
  6415. .vlen = 16,
  6416. .result = "\x48\xe9\xbd\x0d\x06\xee\x18\xfb"
  6417. "\xe4\x57\x90\xd5\xc3\xfc\x9b\x73",
  6418. .rlen = 16,
  6419. .loops = 10000,
  6420. },
  6421. };
  6422. /* Cast5 test vectors from RFC 2144 */
  6423. #define CAST5_ENC_TEST_VECTORS 3
  6424. #define CAST5_DEC_TEST_VECTORS 3
  6425. static struct cipher_testvec cast5_enc_tv_template[] = {
  6426. {
  6427. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  6428. "\x23\x45\x67\x89\x34\x56\x78\x9a",
  6429. .klen = 16,
  6430. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6431. .ilen = 8,
  6432. .result = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
  6433. .rlen = 8,
  6434. }, {
  6435. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  6436. "\x23\x45",
  6437. .klen = 10,
  6438. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6439. .ilen = 8,
  6440. .result = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
  6441. .rlen = 8,
  6442. }, {
  6443. .key = "\x01\x23\x45\x67\x12",
  6444. .klen = 5,
  6445. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6446. .ilen = 8,
  6447. .result = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
  6448. .rlen = 8,
  6449. },
  6450. };
  6451. static struct cipher_testvec cast5_dec_tv_template[] = {
  6452. {
  6453. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  6454. "\x23\x45\x67\x89\x34\x56\x78\x9a",
  6455. .klen = 16,
  6456. .input = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
  6457. .ilen = 8,
  6458. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6459. .rlen = 8,
  6460. }, {
  6461. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  6462. "\x23\x45",
  6463. .klen = 10,
  6464. .input = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
  6465. .ilen = 8,
  6466. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6467. .rlen = 8,
  6468. }, {
  6469. .key = "\x01\x23\x45\x67\x12",
  6470. .klen = 5,
  6471. .input = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
  6472. .ilen = 8,
  6473. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6474. .rlen = 8,
  6475. },
  6476. };
  6477. /*
  6478. * ARC4 test vectors from OpenSSL
  6479. */
  6480. #define ARC4_ENC_TEST_VECTORS 7
  6481. #define ARC4_DEC_TEST_VECTORS 7
  6482. static struct cipher_testvec arc4_enc_tv_template[] = {
  6483. {
  6484. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6485. .klen = 8,
  6486. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6487. .ilen = 8,
  6488. .result = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
  6489. .rlen = 8,
  6490. }, {
  6491. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6492. .klen = 8,
  6493. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6494. .ilen = 8,
  6495. .result = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
  6496. .rlen = 8,
  6497. }, {
  6498. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6499. .klen = 8,
  6500. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6501. .ilen = 8,
  6502. .result = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
  6503. .rlen = 8,
  6504. }, {
  6505. .key = "\xef\x01\x23\x45",
  6506. .klen = 4,
  6507. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6508. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6509. "\x00\x00\x00\x00",
  6510. .ilen = 20,
  6511. .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  6512. "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
  6513. "\x36\xb6\x78\x58",
  6514. .rlen = 20,
  6515. }, {
  6516. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6517. .klen = 8,
  6518. .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  6519. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  6520. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  6521. "\x12\x34\x56\x78",
  6522. .ilen = 28,
  6523. .result = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
  6524. "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
  6525. "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
  6526. "\x40\x01\x1e\xcf",
  6527. .rlen = 28,
  6528. }, {
  6529. .key = "\xef\x01\x23\x45",
  6530. .klen = 4,
  6531. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6532. "\x00\x00",
  6533. .ilen = 10,
  6534. .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  6535. "\xbd\x61",
  6536. .rlen = 10,
  6537. }, {
  6538. .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
  6539. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6540. .klen = 16,
  6541. .input = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
  6542. .ilen = 8,
  6543. .result = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
  6544. .rlen = 8,
  6545. },
  6546. };
  6547. static struct cipher_testvec arc4_dec_tv_template[] = {
  6548. {
  6549. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6550. .klen = 8,
  6551. .input = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
  6552. .ilen = 8,
  6553. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6554. .rlen = 8,
  6555. }, {
  6556. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6557. .klen = 8,
  6558. .input = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
  6559. .ilen = 8,
  6560. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6561. .rlen = 8,
  6562. }, {
  6563. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6564. .klen = 8,
  6565. .input = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
  6566. .ilen = 8,
  6567. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6568. .rlen = 8,
  6569. }, {
  6570. .key = "\xef\x01\x23\x45",
  6571. .klen = 4,
  6572. .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  6573. "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
  6574. "\x36\xb6\x78\x58",
  6575. .ilen = 20,
  6576. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6577. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6578. "\x00\x00\x00\x00",
  6579. .rlen = 20,
  6580. }, {
  6581. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6582. .klen = 8,
  6583. .input = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
  6584. "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
  6585. "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
  6586. "\x40\x01\x1e\xcf",
  6587. .ilen = 28,
  6588. .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  6589. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  6590. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  6591. "\x12\x34\x56\x78",
  6592. .rlen = 28,
  6593. }, {
  6594. .key = "\xef\x01\x23\x45",
  6595. .klen = 4,
  6596. .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  6597. "\xbd\x61",
  6598. .ilen = 10,
  6599. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6600. "\x00\x00",
  6601. .rlen = 10,
  6602. }, {
  6603. .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
  6604. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6605. .klen = 16,
  6606. .input = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
  6607. .ilen = 8,
  6608. .result = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
  6609. .rlen = 8,
  6610. },
  6611. };
  6612. /*
  6613. * TEA test vectors
  6614. */
  6615. #define TEA_ENC_TEST_VECTORS 4
  6616. #define TEA_DEC_TEST_VECTORS 4
  6617. static struct cipher_testvec tea_enc_tv_template[] = {
  6618. {
  6619. .key = zeroed_string,
  6620. .klen = 16,
  6621. .input = zeroed_string,
  6622. .ilen = 8,
  6623. .result = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
  6624. .rlen = 8,
  6625. }, {
  6626. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  6627. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  6628. .klen = 16,
  6629. .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  6630. .ilen = 8,
  6631. .result = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
  6632. .rlen = 8,
  6633. }, {
  6634. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  6635. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  6636. .klen = 16,
  6637. .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  6638. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  6639. .ilen = 16,
  6640. .result = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
  6641. "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
  6642. .rlen = 16,
  6643. }, {
  6644. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  6645. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  6646. .klen = 16,
  6647. .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
  6648. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  6649. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  6650. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  6651. .ilen = 32,
  6652. .result = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
  6653. "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
  6654. "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
  6655. "\x07\x89\x73\xc2\x45\x92\xc6\x90",
  6656. .rlen = 32,
  6657. }
  6658. };
  6659. static struct cipher_testvec tea_dec_tv_template[] = {
  6660. {
  6661. .key = zeroed_string,
  6662. .klen = 16,
  6663. .input = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
  6664. .ilen = 8,
  6665. .result = zeroed_string,
  6666. .rlen = 8,
  6667. }, {
  6668. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  6669. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  6670. .klen = 16,
  6671. .input = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
  6672. .ilen = 8,
  6673. .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  6674. .rlen = 8,
  6675. }, {
  6676. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  6677. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  6678. .klen = 16,
  6679. .input = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
  6680. "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
  6681. .ilen = 16,
  6682. .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  6683. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  6684. .rlen = 16,
  6685. }, {
  6686. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  6687. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  6688. .klen = 16,
  6689. .input = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
  6690. "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
  6691. "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
  6692. "\x07\x89\x73\xc2\x45\x92\xc6\x90",
  6693. .ilen = 32,
  6694. .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
  6695. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  6696. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  6697. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  6698. .rlen = 32,
  6699. }
  6700. };
  6701. /*
  6702. * XTEA test vectors
  6703. */
  6704. #define XTEA_ENC_TEST_VECTORS 4
  6705. #define XTEA_DEC_TEST_VECTORS 4
  6706. static struct cipher_testvec xtea_enc_tv_template[] = {
  6707. {
  6708. .key = zeroed_string,
  6709. .klen = 16,
  6710. .input = zeroed_string,
  6711. .ilen = 8,
  6712. .result = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
  6713. .rlen = 8,
  6714. }, {
  6715. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  6716. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  6717. .klen = 16,
  6718. .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  6719. .ilen = 8,
  6720. .result = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
  6721. .rlen = 8,
  6722. }, {
  6723. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  6724. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  6725. .klen = 16,
  6726. .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  6727. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  6728. .ilen = 16,
  6729. .result = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
  6730. "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
  6731. .rlen = 16,
  6732. }, {
  6733. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  6734. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  6735. .klen = 16,
  6736. .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
  6737. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  6738. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  6739. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  6740. .ilen = 32,
  6741. .result = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
  6742. "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
  6743. "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
  6744. "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
  6745. .rlen = 32,
  6746. }
  6747. };
  6748. static struct cipher_testvec xtea_dec_tv_template[] = {
  6749. {
  6750. .key = zeroed_string,
  6751. .klen = 16,
  6752. .input = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
  6753. .ilen = 8,
  6754. .result = zeroed_string,
  6755. .rlen = 8,
  6756. }, {
  6757. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  6758. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  6759. .klen = 16,
  6760. .input = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
  6761. .ilen = 8,
  6762. .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  6763. .rlen = 8,
  6764. }, {
  6765. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  6766. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  6767. .klen = 16,
  6768. .input = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
  6769. "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
  6770. .ilen = 16,
  6771. .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  6772. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  6773. .rlen = 16,
  6774. }, {
  6775. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  6776. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  6777. .klen = 16,
  6778. .input = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
  6779. "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
  6780. "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
  6781. "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
  6782. .ilen = 32,
  6783. .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
  6784. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  6785. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  6786. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  6787. .rlen = 32,
  6788. }
  6789. };
  6790. /*
  6791. * KHAZAD test vectors.
  6792. */
  6793. #define KHAZAD_ENC_TEST_VECTORS 5
  6794. #define KHAZAD_DEC_TEST_VECTORS 5
  6795. static struct cipher_testvec khazad_enc_tv_template[] = {
  6796. {
  6797. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  6798. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6799. .klen = 16,
  6800. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6801. .ilen = 8,
  6802. .result = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
  6803. .rlen = 8,
  6804. }, {
  6805. .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
  6806. "\x38\x38\x38\x38\x38\x38\x38\x38",
  6807. .klen = 16,
  6808. .input = "\x38\x38\x38\x38\x38\x38\x38\x38",
  6809. .ilen = 8,
  6810. .result = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
  6811. .rlen = 8,
  6812. }, {
  6813. .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
  6814. "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  6815. .klen = 16,
  6816. .input = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  6817. .ilen = 8,
  6818. .result = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
  6819. .rlen = 8,
  6820. }, {
  6821. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  6822. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  6823. .klen = 16,
  6824. .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  6825. .ilen = 8,
  6826. .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  6827. .rlen = 8,
  6828. }, {
  6829. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  6830. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  6831. .klen = 16,
  6832. .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  6833. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  6834. .ilen = 16,
  6835. .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
  6836. "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  6837. .rlen = 16,
  6838. },
  6839. };
  6840. static struct cipher_testvec khazad_dec_tv_template[] = {
  6841. {
  6842. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  6843. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6844. .klen = 16,
  6845. .input = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
  6846. .ilen = 8,
  6847. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6848. .rlen = 8,
  6849. }, {
  6850. .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
  6851. "\x38\x38\x38\x38\x38\x38\x38\x38",
  6852. .klen = 16,
  6853. .input = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
  6854. .ilen = 8,
  6855. .result = "\x38\x38\x38\x38\x38\x38\x38\x38",
  6856. .rlen = 8,
  6857. }, {
  6858. .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
  6859. "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  6860. .klen = 16,
  6861. .input = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
  6862. .ilen = 8,
  6863. .result = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  6864. .rlen = 8,
  6865. }, {
  6866. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  6867. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  6868. .klen = 16,
  6869. .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  6870. .ilen = 8,
  6871. .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  6872. .rlen = 8,
  6873. }, {
  6874. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  6875. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  6876. .klen = 16,
  6877. .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
  6878. "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  6879. .ilen = 16,
  6880. .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  6881. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  6882. .rlen = 16,
  6883. },
  6884. };
  6885. /*
  6886. * Anubis test vectors.
  6887. */
  6888. #define ANUBIS_ENC_TEST_VECTORS 5
  6889. #define ANUBIS_DEC_TEST_VECTORS 5
  6890. #define ANUBIS_CBC_ENC_TEST_VECTORS 2
  6891. #define ANUBIS_CBC_DEC_TEST_VECTORS 2
  6892. static struct cipher_testvec anubis_enc_tv_template[] = {
  6893. {
  6894. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  6895. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  6896. .klen = 16,
  6897. .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  6898. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  6899. .ilen = 16,
  6900. .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  6901. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
  6902. .rlen = 16,
  6903. }, {
  6904. .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
  6905. "\x03\x03\x03\x03\x03\x03\x03\x03"
  6906. "\x03\x03\x03\x03",
  6907. .klen = 20,
  6908. .input = "\x03\x03\x03\x03\x03\x03\x03\x03"
  6909. "\x03\x03\x03\x03\x03\x03\x03\x03",
  6910. .ilen = 16,
  6911. .result = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
  6912. "\x87\x41\x6f\x82\x0a\x98\x64\xae",
  6913. .rlen = 16,
  6914. }, {
  6915. .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
  6916. "\x24\x24\x24\x24\x24\x24\x24\x24"
  6917. "\x24\x24\x24\x24\x24\x24\x24\x24"
  6918. "\x24\x24\x24\x24",
  6919. .klen = 28,
  6920. .input = "\x24\x24\x24\x24\x24\x24\x24\x24"
  6921. "\x24\x24\x24\x24\x24\x24\x24\x24",
  6922. .ilen = 16,
  6923. .result = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
  6924. "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
  6925. .rlen = 16,
  6926. }, {
  6927. .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
  6928. "\x25\x25\x25\x25\x25\x25\x25\x25"
  6929. "\x25\x25\x25\x25\x25\x25\x25\x25"
  6930. "\x25\x25\x25\x25\x25\x25\x25\x25",
  6931. .klen = 32,
  6932. .input = "\x25\x25\x25\x25\x25\x25\x25\x25"
  6933. "\x25\x25\x25\x25\x25\x25\x25\x25",
  6934. .ilen = 16,
  6935. .result = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
  6936. "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
  6937. .rlen = 16,
  6938. }, {
  6939. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  6940. "\x35\x35\x35\x35\x35\x35\x35\x35"
  6941. "\x35\x35\x35\x35\x35\x35\x35\x35"
  6942. "\x35\x35\x35\x35\x35\x35\x35\x35"
  6943. "\x35\x35\x35\x35\x35\x35\x35\x35",
  6944. .klen = 40,
  6945. .input = "\x35\x35\x35\x35\x35\x35\x35\x35"
  6946. "\x35\x35\x35\x35\x35\x35\x35\x35",
  6947. .ilen = 16,
  6948. .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  6949. "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
  6950. .rlen = 16,
  6951. },
  6952. };
  6953. static struct cipher_testvec anubis_dec_tv_template[] = {
  6954. {
  6955. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  6956. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  6957. .klen = 16,
  6958. .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  6959. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
  6960. .ilen = 16,
  6961. .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  6962. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  6963. .rlen = 16,
  6964. }, {
  6965. .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
  6966. "\x03\x03\x03\x03\x03\x03\x03\x03"
  6967. "\x03\x03\x03\x03",
  6968. .klen = 20,
  6969. .input = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
  6970. "\x87\x41\x6f\x82\x0a\x98\x64\xae",
  6971. .ilen = 16,
  6972. .result = "\x03\x03\x03\x03\x03\x03\x03\x03"
  6973. "\x03\x03\x03\x03\x03\x03\x03\x03",
  6974. .rlen = 16,
  6975. }, {
  6976. .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
  6977. "\x24\x24\x24\x24\x24\x24\x24\x24"
  6978. "\x24\x24\x24\x24\x24\x24\x24\x24"
  6979. "\x24\x24\x24\x24",
  6980. .klen = 28,
  6981. .input = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
  6982. "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
  6983. .ilen = 16,
  6984. .result = "\x24\x24\x24\x24\x24\x24\x24\x24"
  6985. "\x24\x24\x24\x24\x24\x24\x24\x24",
  6986. .rlen = 16,
  6987. }, {
  6988. .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
  6989. "\x25\x25\x25\x25\x25\x25\x25\x25"
  6990. "\x25\x25\x25\x25\x25\x25\x25\x25"
  6991. "\x25\x25\x25\x25\x25\x25\x25\x25",
  6992. .klen = 32,
  6993. .input = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
  6994. "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
  6995. .ilen = 16,
  6996. .result = "\x25\x25\x25\x25\x25\x25\x25\x25"
  6997. "\x25\x25\x25\x25\x25\x25\x25\x25",
  6998. .rlen = 16,
  6999. }, {
  7000. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7001. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7002. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7003. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7004. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7005. .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  7006. "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
  7007. .klen = 40,
  7008. .ilen = 16,
  7009. .result = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7010. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7011. .rlen = 16,
  7012. },
  7013. };
  7014. static struct cipher_testvec anubis_cbc_enc_tv_template[] = {
  7015. {
  7016. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7017. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  7018. .klen = 16,
  7019. .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7020. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7021. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7022. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  7023. .ilen = 32,
  7024. .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  7025. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
  7026. "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
  7027. "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
  7028. .rlen = 32,
  7029. }, {
  7030. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7031. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7032. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7033. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7034. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7035. .klen = 40,
  7036. .input = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7037. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7038. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7039. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7040. .ilen = 32,
  7041. .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  7042. "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
  7043. "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
  7044. "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
  7045. .rlen = 32,
  7046. },
  7047. };
  7048. static struct cipher_testvec anubis_cbc_dec_tv_template[] = {
  7049. {
  7050. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7051. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  7052. .klen = 16,
  7053. .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  7054. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
  7055. "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
  7056. "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
  7057. .ilen = 32,
  7058. .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7059. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7060. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7061. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  7062. .rlen = 32,
  7063. }, {
  7064. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7065. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7066. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7067. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7068. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7069. .klen = 40,
  7070. .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  7071. "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
  7072. "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
  7073. "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
  7074. .ilen = 32,
  7075. .result = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7076. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7077. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7078. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7079. .rlen = 32,
  7080. },
  7081. };
  7082. /*
  7083. * XETA test vectors
  7084. */
  7085. #define XETA_ENC_TEST_VECTORS 4
  7086. #define XETA_DEC_TEST_VECTORS 4
  7087. static struct cipher_testvec xeta_enc_tv_template[] = {
  7088. {
  7089. .key = zeroed_string,
  7090. .klen = 16,
  7091. .input = zeroed_string,
  7092. .ilen = 8,
  7093. .result = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
  7094. .rlen = 8,
  7095. }, {
  7096. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  7097. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  7098. .klen = 16,
  7099. .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  7100. .ilen = 8,
  7101. .result = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
  7102. .rlen = 8,
  7103. }, {
  7104. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  7105. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  7106. .klen = 16,
  7107. .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  7108. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  7109. .ilen = 16,
  7110. .result = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
  7111. "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
  7112. .rlen = 16,
  7113. }, {
  7114. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  7115. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  7116. .klen = 16,
  7117. .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
  7118. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  7119. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  7120. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  7121. .ilen = 32,
  7122. .result = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
  7123. "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
  7124. "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
  7125. "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
  7126. .rlen = 32,
  7127. }
  7128. };
  7129. static struct cipher_testvec xeta_dec_tv_template[] = {
  7130. {
  7131. .key = zeroed_string,
  7132. .klen = 16,
  7133. .input = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
  7134. .ilen = 8,
  7135. .result = zeroed_string,
  7136. .rlen = 8,
  7137. }, {
  7138. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  7139. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  7140. .klen = 16,
  7141. .input = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
  7142. .ilen = 8,
  7143. .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  7144. .rlen = 8,
  7145. }, {
  7146. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  7147. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  7148. .klen = 16,
  7149. .input = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
  7150. "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
  7151. .ilen = 16,
  7152. .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  7153. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  7154. .rlen = 16,
  7155. }, {
  7156. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  7157. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  7158. .klen = 16,
  7159. .input = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
  7160. "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
  7161. "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
  7162. "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
  7163. .ilen = 32,
  7164. .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
  7165. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  7166. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  7167. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  7168. .rlen = 32,
  7169. }
  7170. };
  7171. /*
  7172. * FCrypt test vectors
  7173. */
  7174. #define FCRYPT_ENC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_enc_tv_template)
  7175. #define FCRYPT_DEC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_dec_tv_template)
  7176. static struct cipher_testvec fcrypt_pcbc_enc_tv_template[] = {
  7177. { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
  7178. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7179. .klen = 8,
  7180. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7181. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7182. .ilen = 8,
  7183. .result = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
  7184. .rlen = 8,
  7185. }, {
  7186. .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
  7187. .klen = 8,
  7188. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7189. .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
  7190. .ilen = 8,
  7191. .result = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
  7192. .rlen = 8,
  7193. }, { /* From Arla */
  7194. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7195. .klen = 8,
  7196. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7197. .input = "The quick brown fox jumps over the lazy dogs.\0\0",
  7198. .ilen = 48,
  7199. .result = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
  7200. "\xee\xac\x98\x62\x44\x51\xe4\x84"
  7201. "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
  7202. "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
  7203. "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
  7204. "\xf8\x91\x3c\xac\x44\x22\x92\xef",
  7205. .rlen = 48,
  7206. }, {
  7207. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7208. .klen = 8,
  7209. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7210. .input = "The quick brown fox jumps over the lazy dogs.\0\0",
  7211. .ilen = 48,
  7212. .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  7213. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  7214. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  7215. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  7216. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  7217. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  7218. .rlen = 48,
  7219. }, { /* split-page version */
  7220. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7221. .klen = 8,
  7222. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7223. .input = "The quick brown fox jumps over the lazy dogs.\0\0",
  7224. .ilen = 48,
  7225. .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  7226. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  7227. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  7228. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  7229. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  7230. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  7231. .rlen = 48,
  7232. .np = 2,
  7233. .tap = { 20, 28 },
  7234. }
  7235. };
  7236. static struct cipher_testvec fcrypt_pcbc_dec_tv_template[] = {
  7237. { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
  7238. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7239. .klen = 8,
  7240. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7241. .input = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
  7242. .ilen = 8,
  7243. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7244. .rlen = 8,
  7245. }, {
  7246. .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
  7247. .klen = 8,
  7248. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7249. .input = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
  7250. .ilen = 8,
  7251. .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
  7252. .rlen = 8,
  7253. }, { /* From Arla */
  7254. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7255. .klen = 8,
  7256. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7257. .input = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
  7258. "\xee\xac\x98\x62\x44\x51\xe4\x84"
  7259. "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
  7260. "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
  7261. "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
  7262. "\xf8\x91\x3c\xac\x44\x22\x92\xef",
  7263. .ilen = 48,
  7264. .result = "The quick brown fox jumps over the lazy dogs.\0\0",
  7265. .rlen = 48,
  7266. }, {
  7267. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7268. .klen = 8,
  7269. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7270. .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  7271. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  7272. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  7273. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  7274. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  7275. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  7276. .ilen = 48,
  7277. .result = "The quick brown fox jumps over the lazy dogs.\0\0",
  7278. .rlen = 48,
  7279. }, { /* split-page version */
  7280. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7281. .klen = 8,
  7282. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7283. .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  7284. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  7285. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  7286. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  7287. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  7288. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  7289. .ilen = 48,
  7290. .result = "The quick brown fox jumps over the lazy dogs.\0\0",
  7291. .rlen = 48,
  7292. .np = 2,
  7293. .tap = { 20, 28 },
  7294. }
  7295. };
  7296. /*
  7297. * CAMELLIA test vectors.
  7298. */
  7299. #define CAMELLIA_ENC_TEST_VECTORS 3
  7300. #define CAMELLIA_DEC_TEST_VECTORS 3
  7301. #define CAMELLIA_CBC_ENC_TEST_VECTORS 2
  7302. #define CAMELLIA_CBC_DEC_TEST_VECTORS 2
  7303. static struct cipher_testvec camellia_enc_tv_template[] = {
  7304. {
  7305. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7306. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7307. .klen = 16,
  7308. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7309. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7310. .ilen = 16,
  7311. .result = "\x67\x67\x31\x38\x54\x96\x69\x73"
  7312. "\x08\x57\x06\x56\x48\xea\xbe\x43",
  7313. .rlen = 16,
  7314. }, {
  7315. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7316. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  7317. "\x00\x11\x22\x33\x44\x55\x66\x77",
  7318. .klen = 24,
  7319. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7320. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7321. .ilen = 16,
  7322. .result = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
  7323. "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
  7324. .rlen = 16,
  7325. }, {
  7326. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7327. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  7328. "\x00\x11\x22\x33\x44\x55\x66\x77"
  7329. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  7330. .klen = 32,
  7331. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7332. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7333. .ilen = 16,
  7334. .result = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
  7335. "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
  7336. .rlen = 16,
  7337. },
  7338. };
  7339. static struct cipher_testvec camellia_dec_tv_template[] = {
  7340. {
  7341. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7342. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7343. .klen = 16,
  7344. .input = "\x67\x67\x31\x38\x54\x96\x69\x73"
  7345. "\x08\x57\x06\x56\x48\xea\xbe\x43",
  7346. .ilen = 16,
  7347. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7348. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7349. .rlen = 16,
  7350. }, {
  7351. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7352. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  7353. "\x00\x11\x22\x33\x44\x55\x66\x77",
  7354. .klen = 24,
  7355. .input = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
  7356. "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
  7357. .ilen = 16,
  7358. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7359. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7360. .rlen = 16,
  7361. }, {
  7362. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7363. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  7364. "\x00\x11\x22\x33\x44\x55\x66\x77"
  7365. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  7366. .klen = 32,
  7367. .input = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
  7368. "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
  7369. .ilen = 16,
  7370. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7371. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7372. .rlen = 16,
  7373. },
  7374. };
  7375. static struct cipher_testvec camellia_cbc_enc_tv_template[] = {
  7376. {
  7377. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  7378. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  7379. .klen = 16,
  7380. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  7381. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  7382. .input = "Single block msg",
  7383. .ilen = 16,
  7384. .result = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
  7385. "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
  7386. .rlen = 16,
  7387. }, {
  7388. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  7389. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  7390. .klen = 16,
  7391. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  7392. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  7393. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7394. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  7395. "\x10\x11\x12\x13\x14\x15\x16\x17"
  7396. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  7397. .ilen = 32,
  7398. .result = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
  7399. "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
  7400. "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
  7401. "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
  7402. .rlen = 32,
  7403. },
  7404. };
  7405. static struct cipher_testvec camellia_cbc_dec_tv_template[] = {
  7406. {
  7407. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  7408. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  7409. .klen = 16,
  7410. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  7411. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  7412. .input = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
  7413. "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
  7414. .ilen = 16,
  7415. .result = "Single block msg",
  7416. .rlen = 16,
  7417. }, {
  7418. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  7419. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  7420. .klen = 16,
  7421. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  7422. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  7423. .input = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
  7424. "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
  7425. "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
  7426. "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
  7427. .ilen = 32,
  7428. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7429. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  7430. "\x10\x11\x12\x13\x14\x15\x16\x17"
  7431. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  7432. .rlen = 32,
  7433. },
  7434. };
  7435. /*
  7436. * SEED test vectors
  7437. */
  7438. #define SEED_ENC_TEST_VECTORS 4
  7439. #define SEED_DEC_TEST_VECTORS 4
  7440. static struct cipher_testvec seed_enc_tv_template[] = {
  7441. {
  7442. .key = zeroed_string,
  7443. .klen = 16,
  7444. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7445. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  7446. .ilen = 16,
  7447. .result = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
  7448. "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
  7449. .rlen = 16,
  7450. }, {
  7451. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7452. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  7453. .klen = 16,
  7454. .input = zeroed_string,
  7455. .ilen = 16,
  7456. .result = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
  7457. "\x84\x48\x35\x97\xe4\x37\x0f\x43",
  7458. .rlen = 16,
  7459. }, {
  7460. .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
  7461. "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
  7462. .klen = 16,
  7463. .input = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
  7464. "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
  7465. .ilen = 16,
  7466. .result = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
  7467. "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
  7468. .rlen = 16,
  7469. }, {
  7470. .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
  7471. "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
  7472. .klen = 16,
  7473. .input = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
  7474. "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
  7475. .ilen = 16,
  7476. .result = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
  7477. "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
  7478. .rlen = 16,
  7479. }
  7480. };
  7481. static struct cipher_testvec seed_dec_tv_template[] = {
  7482. {
  7483. .key = zeroed_string,
  7484. .klen = 16,
  7485. .input = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
  7486. "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
  7487. .ilen = 16,
  7488. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7489. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  7490. .rlen = 16,
  7491. }, {
  7492. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7493. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  7494. .klen = 16,
  7495. .input = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
  7496. "\x84\x48\x35\x97\xe4\x37\x0f\x43",
  7497. .ilen = 16,
  7498. .result = zeroed_string,
  7499. .rlen = 16,
  7500. }, {
  7501. .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
  7502. "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
  7503. .klen = 16,
  7504. .input = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
  7505. "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
  7506. .ilen = 16,
  7507. .result = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
  7508. "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
  7509. .rlen = 16,
  7510. }, {
  7511. .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
  7512. "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
  7513. .klen = 16,
  7514. .input = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
  7515. "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
  7516. .ilen = 16,
  7517. .result = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
  7518. "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
  7519. .rlen = 16,
  7520. }
  7521. };
  7522. #define SALSA20_STREAM_ENC_TEST_VECTORS 5
  7523. static struct cipher_testvec salsa20_stream_enc_tv_template[] = {
  7524. /*
  7525. * Testvectors from verified.test-vectors submitted to ECRYPT.
  7526. * They are truncated to size 39, 64, 111, 129 to test a variety
  7527. * of input length.
  7528. */
  7529. { /* Set 3, vector 0 */
  7530. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7531. "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
  7532. .klen = 16,
  7533. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7534. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7535. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7536. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7537. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7538. "\x00\x00\x00\x00\x00\x00\x00",
  7539. .ilen = 39,
  7540. .result = "\x2D\xD5\xC3\xF7\xBA\x2B\x20\xF7"
  7541. "\x68\x02\x41\x0C\x68\x86\x88\x89"
  7542. "\x5A\xD8\xC1\xBD\x4E\xA6\xC9\xB1"
  7543. "\x40\xFB\x9B\x90\xE2\x10\x49\xBF"
  7544. "\x58\x3F\x52\x79\x70\xEB\xC1",
  7545. .rlen = 39,
  7546. }, { /* Set 5, vector 0 */
  7547. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7548. "\x00\x00\x00\x00\x00\x00\x00\x00",
  7549. .klen = 16,
  7550. .iv = "\x80\x00\x00\x00\x00\x00\x00\x00",
  7551. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7552. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7553. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7554. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7555. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7556. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7557. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7558. "\x00\x00\x00\x00\x00\x00\x00\x00",
  7559. .ilen = 64,
  7560. .result = "\xB6\x6C\x1E\x44\x46\xDD\x95\x57"
  7561. "\xE5\x78\xE2\x23\xB0\xB7\x68\x01"
  7562. "\x7B\x23\xB2\x67\xBB\x02\x34\xAE"
  7563. "\x46\x26\xBF\x44\x3F\x21\x97\x76"
  7564. "\x43\x6F\xB1\x9F\xD0\xE8\x86\x6F"
  7565. "\xCD\x0D\xE9\xA9\x53\x8F\x4A\x09"
  7566. "\xCA\x9A\xC0\x73\x2E\x30\xBC\xF9"
  7567. "\x8E\x4F\x13\xE4\xB9\xE2\x01\xD9",
  7568. .rlen = 64,
  7569. }, { /* Set 3, vector 27 */
  7570. .key = "\x1B\x1C\x1D\x1E\x1F\x20\x21\x22"
  7571. "\x23\x24\x25\x26\x27\x28\x29\x2A"
  7572. "\x2B\x2C\x2D\x2E\x2F\x30\x31\x32"
  7573. "\x33\x34\x35\x36\x37\x38\x39\x3A",
  7574. .klen = 32,
  7575. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7576. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7577. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7578. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7579. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7580. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7581. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7582. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7583. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7584. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7585. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7586. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7587. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7588. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7589. "\x00\x00\x00\x00\x00\x00\x00",
  7590. .ilen = 111,
  7591. .result = "\xAE\x39\x50\x8E\xAC\x9A\xEC\xE7"
  7592. "\xBF\x97\xBB\x20\xB9\xDE\xE4\x1F"
  7593. "\x87\xD9\x47\xF8\x28\x91\x35\x98"
  7594. "\xDB\x72\xCC\x23\x29\x48\x56\x5E"
  7595. "\x83\x7E\x0B\xF3\x7D\x5D\x38\x7B"
  7596. "\x2D\x71\x02\xB4\x3B\xB5\xD8\x23"
  7597. "\xB0\x4A\xDF\x3C\xEC\xB6\xD9\x3B"
  7598. "\x9B\xA7\x52\xBE\xC5\xD4\x50\x59"
  7599. "\x15\x14\xB4\x0E\x40\xE6\x53\xD1"
  7600. "\x83\x9C\x5B\xA0\x92\x29\x6B\x5E"
  7601. "\x96\x5B\x1E\x2F\xD3\xAC\xC1\x92"
  7602. "\xB1\x41\x3F\x19\x2F\xC4\x3B\xC6"
  7603. "\x95\x46\x45\x54\xE9\x75\x03\x08"
  7604. "\x44\xAF\xE5\x8A\x81\x12\x09",
  7605. .rlen = 111,
  7606. }, { /* Set 5, vector 27 */
  7607. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7608. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7609. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7610. "\x00\x00\x00\x00\x00\x00\x00\x00",
  7611. .klen = 32,
  7612. .iv = "\x00\x00\x00\x10\x00\x00\x00\x00",
  7613. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7614. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7615. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7616. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7617. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7618. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7619. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7620. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7621. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7622. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7623. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7624. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7625. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7626. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7627. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7628. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7629. "\x00",
  7630. .ilen = 129,
  7631. .result = "\xD2\xDB\x1A\x5C\xF1\xC1\xAC\xDB"
  7632. "\xE8\x1A\x7A\x43\x40\xEF\x53\x43"
  7633. "\x5E\x7F\x4B\x1A\x50\x52\x3F\x8D"
  7634. "\x28\x3D\xCF\x85\x1D\x69\x6E\x60"
  7635. "\xF2\xDE\x74\x56\x18\x1B\x84\x10"
  7636. "\xD4\x62\xBA\x60\x50\xF0\x61\xF2"
  7637. "\x1C\x78\x7F\xC1\x24\x34\xAF\x58"
  7638. "\xBF\x2C\x59\xCA\x90\x77\xF3\xB0"
  7639. "\x5B\x4A\xDF\x89\xCE\x2C\x2F\xFC"
  7640. "\x67\xF0\xE3\x45\xE8\xB3\xB3\x75"
  7641. "\xA0\x95\x71\xA1\x29\x39\x94\xCA"
  7642. "\x45\x2F\xBD\xCB\x10\xB6\xBE\x9F"
  7643. "\x8E\xF9\xB2\x01\x0A\x5A\x0A\xB7"
  7644. "\x6B\x9D\x70\x8E\x4B\xD6\x2F\xCD"
  7645. "\x2E\x40\x48\x75\xE9\xE2\x21\x45"
  7646. "\x0B\xC9\xB6\xB5\x66\xBC\x9A\x59"
  7647. "\x5A",
  7648. .rlen = 129,
  7649. }, { /* large test vector generated using Crypto++ */
  7650. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7651. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  7652. "\x10\x11\x12\x13\x14\x15\x16\x17"
  7653. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  7654. .klen = 32,
  7655. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7656. "\x00\x00\x00\x00\x00\x00\x00\x00",
  7657. .input =
  7658. "\x00\x01\x02\x03\x04\x05\x06\x07"
  7659. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  7660. "\x10\x11\x12\x13\x14\x15\x16\x17"
  7661. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  7662. "\x20\x21\x22\x23\x24\x25\x26\x27"
  7663. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  7664. "\x30\x31\x32\x33\x34\x35\x36\x37"
  7665. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  7666. "\x40\x41\x42\x43\x44\x45\x46\x47"
  7667. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  7668. "\x50\x51\x52\x53\x54\x55\x56\x57"
  7669. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  7670. "\x60\x61\x62\x63\x64\x65\x66\x67"
  7671. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  7672. "\x70\x71\x72\x73\x74\x75\x76\x77"
  7673. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  7674. "\x80\x81\x82\x83\x84\x85\x86\x87"
  7675. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  7676. "\x90\x91\x92\x93\x94\x95\x96\x97"
  7677. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  7678. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  7679. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  7680. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  7681. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  7682. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  7683. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  7684. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  7685. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  7686. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  7687. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  7688. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  7689. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  7690. "\x00\x03\x06\x09\x0c\x0f\x12\x15"
  7691. "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
  7692. "\x30\x33\x36\x39\x3c\x3f\x42\x45"
  7693. "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
  7694. "\x60\x63\x66\x69\x6c\x6f\x72\x75"
  7695. "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
  7696. "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
  7697. "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
  7698. "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
  7699. "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
  7700. "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
  7701. "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
  7702. "\x20\x23\x26\x29\x2c\x2f\x32\x35"
  7703. "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
  7704. "\x50\x53\x56\x59\x5c\x5f\x62\x65"
  7705. "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
  7706. "\x80\x83\x86\x89\x8c\x8f\x92\x95"
  7707. "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
  7708. "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
  7709. "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
  7710. "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
  7711. "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
  7712. "\x10\x13\x16\x19\x1c\x1f\x22\x25"
  7713. "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
  7714. "\x40\x43\x46\x49\x4c\x4f\x52\x55"
  7715. "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
  7716. "\x70\x73\x76\x79\x7c\x7f\x82\x85"
  7717. "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
  7718. "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
  7719. "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
  7720. "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
  7721. "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
  7722. "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
  7723. "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
  7724. "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
  7725. "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
  7726. "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
  7727. "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
  7728. "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
  7729. "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
  7730. "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
  7731. "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
  7732. "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
  7733. "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
  7734. "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
  7735. "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
  7736. "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
  7737. "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
  7738. "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
  7739. "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
  7740. "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
  7741. "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
  7742. "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
  7743. "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
  7744. "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
  7745. "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
  7746. "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
  7747. "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
  7748. "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
  7749. "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
  7750. "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
  7751. "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
  7752. "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
  7753. "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
  7754. "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
  7755. "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
  7756. "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
  7757. "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
  7758. "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
  7759. "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
  7760. "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
  7761. "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
  7762. "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
  7763. "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
  7764. "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
  7765. "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
  7766. "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
  7767. "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
  7768. "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
  7769. "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
  7770. "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
  7771. "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
  7772. "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
  7773. "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
  7774. "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
  7775. "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
  7776. "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
  7777. "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
  7778. "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
  7779. "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
  7780. "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
  7781. "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
  7782. "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
  7783. "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
  7784. "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
  7785. "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
  7786. "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
  7787. "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
  7788. "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
  7789. "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
  7790. "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
  7791. "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
  7792. "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
  7793. "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
  7794. "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
  7795. "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
  7796. "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
  7797. "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
  7798. "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
  7799. "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
  7800. "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
  7801. "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
  7802. "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
  7803. "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
  7804. "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
  7805. "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
  7806. "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
  7807. "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
  7808. "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
  7809. "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
  7810. "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
  7811. "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
  7812. "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
  7813. "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
  7814. "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
  7815. "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
  7816. "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
  7817. "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
  7818. "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
  7819. "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
  7820. "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
  7821. "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
  7822. "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
  7823. "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
  7824. "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
  7825. "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
  7826. "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
  7827. "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
  7828. "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
  7829. "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
  7830. "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
  7831. "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
  7832. "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
  7833. "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
  7834. "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
  7835. "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
  7836. "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
  7837. "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
  7838. "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
  7839. "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
  7840. "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
  7841. "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
  7842. "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
  7843. "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
  7844. "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
  7845. "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
  7846. "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
  7847. "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
  7848. "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
  7849. "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
  7850. "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
  7851. "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
  7852. "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
  7853. "\x38\x45\x52\x5f\x6c\x79\x86\x93"
  7854. "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
  7855. "\x08\x15\x22\x2f\x3c\x49\x56\x63"
  7856. "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
  7857. "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
  7858. "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
  7859. "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
  7860. "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
  7861. "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
  7862. "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
  7863. "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
  7864. "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
  7865. "\x18\x25\x32\x3f\x4c\x59\x66\x73"
  7866. "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
  7867. "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
  7868. "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
  7869. "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
  7870. "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
  7871. "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
  7872. "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
  7873. "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
  7874. "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
  7875. "\x28\x35\x42\x4f\x5c\x69\x76\x83"
  7876. "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
  7877. "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
  7878. "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
  7879. "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
  7880. "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
  7881. "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
  7882. "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
  7883. "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
  7884. "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
  7885. "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
  7886. "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
  7887. "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
  7888. "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
  7889. "\x48\x57\x66\x75\x84\x93\xa2\xb1"
  7890. "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
  7891. "\x38\x47\x56\x65\x74\x83\x92\xa1"
  7892. "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
  7893. "\x28\x37\x46\x55\x64\x73\x82\x91"
  7894. "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
  7895. "\x18\x27\x36\x45\x54\x63\x72\x81"
  7896. "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
  7897. "\x08\x17\x26\x35\x44\x53\x62\x71"
  7898. "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
  7899. "\xf8\x07\x16\x25\x34\x43\x52\x61"
  7900. "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
  7901. "\xe8\xf7\x06\x15\x24\x33\x42\x51"
  7902. "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
  7903. "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
  7904. "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
  7905. "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
  7906. "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
  7907. "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
  7908. "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
  7909. "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
  7910. "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
  7911. "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
  7912. "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
  7913. "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
  7914. "\x00\x11\x22\x33\x44\x55\x66\x77"
  7915. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
  7916. "\x10\x21\x32\x43\x54\x65\x76\x87"
  7917. "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
  7918. "\x20\x31\x42\x53\x64\x75\x86\x97"
  7919. "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
  7920. "\x30\x41\x52\x63\x74\x85\x96\xa7"
  7921. "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
  7922. "\x40\x51\x62\x73\x84\x95\xa6\xb7"
  7923. "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
  7924. "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
  7925. "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
  7926. "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
  7927. "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
  7928. "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
  7929. "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
  7930. "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
  7931. "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
  7932. "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
  7933. "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
  7934. "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
  7935. "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
  7936. "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
  7937. "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
  7938. "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
  7939. "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
  7940. "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
  7941. "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
  7942. "\xe0\xf1\x02\x13\x24\x35\x46\x57"
  7943. "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
  7944. "\xf0\x01\x12\x23\x34\x45\x56\x67"
  7945. "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
  7946. "\x00\x13\x26\x39\x4c\x5f\x72\x85"
  7947. "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
  7948. "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
  7949. "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
  7950. "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
  7951. "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
  7952. "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
  7953. "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
  7954. "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
  7955. "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
  7956. "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
  7957. "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
  7958. "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
  7959. "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
  7960. "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
  7961. "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
  7962. "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
  7963. "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
  7964. "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
  7965. "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
  7966. "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
  7967. "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
  7968. "\x10\x23\x36\x49\x5c\x6f\x82\x95"
  7969. "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
  7970. "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
  7971. "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
  7972. "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
  7973. "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
  7974. "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
  7975. "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
  7976. "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
  7977. "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
  7978. "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
  7979. "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
  7980. "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
  7981. "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
  7982. "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
  7983. "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
  7984. "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
  7985. "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
  7986. "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
  7987. "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
  7988. "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
  7989. "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
  7990. "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
  7991. "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
  7992. "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
  7993. "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
  7994. "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
  7995. "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
  7996. "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
  7997. "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
  7998. "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
  7999. "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
  8000. "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
  8001. "\x18\x2d\x42\x57\x6c\x81\x96\xab"
  8002. "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
  8003. "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
  8004. "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
  8005. "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
  8006. "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
  8007. "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
  8008. "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
  8009. "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
  8010. "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
  8011. "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
  8012. "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
  8013. "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
  8014. "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
  8015. "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
  8016. "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
  8017. "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
  8018. "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
  8019. "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
  8020. "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
  8021. "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
  8022. "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
  8023. "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
  8024. "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
  8025. "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
  8026. "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
  8027. "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
  8028. "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
  8029. "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
  8030. "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
  8031. "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
  8032. "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
  8033. "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
  8034. "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
  8035. "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
  8036. "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
  8037. "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
  8038. "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
  8039. "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
  8040. "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
  8041. "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
  8042. "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
  8043. "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
  8044. "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
  8045. "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
  8046. "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
  8047. "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
  8048. "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
  8049. "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
  8050. "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
  8051. "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
  8052. "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
  8053. "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
  8054. "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
  8055. "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
  8056. "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
  8057. "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
  8058. "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
  8059. "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
  8060. "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
  8061. "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
  8062. "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
  8063. "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
  8064. "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
  8065. "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
  8066. "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
  8067. "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
  8068. "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
  8069. "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
  8070. "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
  8071. "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
  8072. "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
  8073. "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
  8074. "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
  8075. "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
  8076. "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
  8077. "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
  8078. "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
  8079. "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
  8080. "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
  8081. "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
  8082. "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
  8083. "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
  8084. "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
  8085. "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
  8086. "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
  8087. "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
  8088. "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
  8089. "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
  8090. "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
  8091. "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
  8092. "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
  8093. "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
  8094. "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
  8095. "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
  8096. "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
  8097. "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
  8098. "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
  8099. "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
  8100. "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
  8101. "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
  8102. "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
  8103. "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
  8104. "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
  8105. "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
  8106. "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
  8107. "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
  8108. "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
  8109. "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
  8110. "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
  8111. "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
  8112. "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
  8113. "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
  8114. "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
  8115. "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
  8116. "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
  8117. "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
  8118. "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
  8119. "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
  8120. "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
  8121. "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
  8122. "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
  8123. "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
  8124. "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
  8125. "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
  8126. "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
  8127. "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
  8128. "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
  8129. "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
  8130. "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
  8131. "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
  8132. "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
  8133. "\x78\x95\xb2\xcf\xec\x09\x26\x43"
  8134. "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
  8135. "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
  8136. "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
  8137. "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
  8138. "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
  8139. "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
  8140. "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
  8141. "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
  8142. "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
  8143. "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
  8144. "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
  8145. "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
  8146. "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
  8147. "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
  8148. "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
  8149. "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
  8150. "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
  8151. "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
  8152. "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
  8153. "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
  8154. "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
  8155. "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
  8156. "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
  8157. "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
  8158. "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
  8159. "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
  8160. "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
  8161. "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
  8162. "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
  8163. "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
  8164. "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
  8165. "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
  8166. "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
  8167. "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
  8168. "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
  8169. "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
  8170. "\x00\x21\x42\x63",
  8171. .ilen = 4100,
  8172. .result =
  8173. "\xb5\x81\xf5\x64\x18\x73\xe3\xf0"
  8174. "\x4c\x13\xf2\x77\x18\x60\x65\x5e"
  8175. "\x29\x01\xce\x98\x55\x53\xf9\x0c"
  8176. "\x2a\x08\xd5\x09\xb3\x57\x55\x56"
  8177. "\xc5\xe9\x56\x90\xcb\x6a\xa3\xc0"
  8178. "\xff\xc4\x79\xb4\xd2\x97\x5d\xc4"
  8179. "\x43\xd1\xfe\x94\x7b\x88\x06\x5a"
  8180. "\xb2\x9e\x2c\xfc\x44\x03\xb7\x90"
  8181. "\xa0\xc1\xba\x6a\x33\xb8\xc7\xb2"
  8182. "\x9d\xe1\x12\x4f\xc0\x64\xd4\x01"
  8183. "\xfe\x8c\x7a\x66\xf7\xe6\x5a\x91"
  8184. "\xbb\xde\x56\x86\xab\x65\x21\x30"
  8185. "\x00\x84\x65\x24\xa5\x7d\x85\xb4"
  8186. "\xe3\x17\xed\x3a\xb7\x6f\xb4\x0b"
  8187. "\x0b\xaf\x15\xae\x5a\x8f\xf2\x0c"
  8188. "\x2f\x27\xf4\x09\xd8\xd2\x96\xb7"
  8189. "\x71\xf2\xc5\x99\x4d\x7e\x7f\x75"
  8190. "\x77\x89\x30\x8b\x59\xdb\xa2\xb2"
  8191. "\xa0\xf3\x19\x39\x2b\xc5\x7e\x3f"
  8192. "\x4f\xd9\xd3\x56\x28\x97\x44\xdc"
  8193. "\xc0\x8b\x77\x24\xd9\x52\xe7\xc5"
  8194. "\xaf\xf6\x7d\x59\xb2\x44\x05\x1d"
  8195. "\xb1\xb0\x11\xa5\x0f\xec\x33\xe1"
  8196. "\x6d\x1b\x4e\x1f\xff\x57\x91\xb4"
  8197. "\x5b\x9a\x96\xc5\x53\xbc\xae\x20"
  8198. "\x3c\xbb\x14\xe2\xe8\x22\x33\xc1"
  8199. "\x5e\x76\x9e\x46\x99\xf6\x2a\x15"
  8200. "\xc6\x97\x02\xa0\x66\x43\xd1\xa6"
  8201. "\x31\xa6\x9f\xfb\xf4\xd3\x69\xe5"
  8202. "\xcd\x76\x95\xb8\x7a\x82\x7f\x21"
  8203. "\x45\xff\x3f\xce\x55\xf6\x95\x10"
  8204. "\x08\x77\x10\x43\xc6\xf3\x09\xe5"
  8205. "\x68\xe7\x3c\xad\x00\x52\x45\x0d"
  8206. "\xfe\x2d\xc6\xc2\x94\x8c\x12\x1d"
  8207. "\xe6\x25\xae\x98\x12\x8e\x19\x9c"
  8208. "\x81\x68\xb1\x11\xf6\x69\xda\xe3"
  8209. "\x62\x08\x18\x7a\x25\x49\x28\xac"
  8210. "\xba\x71\x12\x0b\xe4\xa2\xe5\xc7"
  8211. "\x5d\x8e\xec\x49\x40\x21\xbf\x5a"
  8212. "\x98\xf3\x02\x68\x55\x03\x7f\x8a"
  8213. "\xe5\x94\x0c\x32\x5c\x07\x82\x63"
  8214. "\xaf\x6f\x91\x40\x84\x8e\x52\x25"
  8215. "\xd0\xb0\x29\x53\x05\xe2\x50\x7a"
  8216. "\x34\xeb\xc9\x46\x20\xa8\x3d\xde"
  8217. "\x7f\x16\x5f\x36\xc5\x2e\xdc\xd1"
  8218. "\x15\x47\xc7\x50\x40\x6d\x91\xc5"
  8219. "\xe7\x93\x95\x1a\xd3\x57\xbc\x52"
  8220. "\x33\xee\x14\x19\x22\x52\x89\xa7"
  8221. "\x4a\x25\x56\x77\x4b\xca\xcf\x0a"
  8222. "\xe1\xf5\x35\x85\x30\x7e\x59\x4a"
  8223. "\xbd\x14\x5b\xdf\xe3\x46\xcb\xac"
  8224. "\x1f\x6c\x96\x0e\xf4\x81\xd1\x99"
  8225. "\xca\x88\x63\x3d\x02\x58\x6b\xa9"
  8226. "\xe5\x9f\xb3\x00\xb2\x54\xc6\x74"
  8227. "\x1c\xbf\x46\xab\x97\xcc\xf8\x54"
  8228. "\x04\x07\x08\x52\xe6\xc0\xda\x93"
  8229. "\x74\x7d\x93\x99\x5d\x78\x68\xa6"
  8230. "\x2e\x6b\xd3\x6a\x69\xcc\x12\x6b"
  8231. "\xd4\xc7\xa5\xc6\xe7\xf6\x03\x04"
  8232. "\x5d\xcd\x61\x5e\x17\x40\xdc\xd1"
  8233. "\x5c\xf5\x08\xdf\x5c\x90\x85\xa4"
  8234. "\xaf\xf6\x78\xbb\x0d\xf1\xf4\xa4"
  8235. "\x54\x26\x72\x9e\x61\xfa\x86\xcf"
  8236. "\xe8\x9e\xa1\xe0\xc7\x48\x23\xae"
  8237. "\x5a\x90\xae\x75\x0a\x74\x18\x89"
  8238. "\x05\xb1\x92\xb2\x7f\xd0\x1b\xa6"
  8239. "\x62\x07\x25\x01\xc7\xc2\x4f\xf9"
  8240. "\xe8\xfe\x63\x95\x80\x07\xb4\x26"
  8241. "\xcc\xd1\x26\xb6\xc4\x3f\x9e\xcb"
  8242. "\x8e\x3b\x2e\x44\x16\xd3\x10\x9a"
  8243. "\x95\x08\xeb\xc8\xcb\xeb\xbf\x6f"
  8244. "\x0b\xcd\x1f\xc8\xca\x86\xaa\xec"
  8245. "\x33\xe6\x69\xf4\x45\x25\x86\x3a"
  8246. "\x22\x94\x4f\x00\x23\x6a\x44\xc2"
  8247. "\x49\x97\x33\xab\x36\x14\x0a\x70"
  8248. "\x24\xc3\xbe\x04\x3b\x79\xa0\xf9"
  8249. "\xb8\xe7\x76\x29\x22\x83\xd7\xf2"
  8250. "\x94\xf4\x41\x49\xba\x5f\x7b\x07"
  8251. "\xb5\xfb\xdb\x03\x1a\x9f\xb6\x4c"
  8252. "\xc2\x2e\x37\x40\x49\xc3\x38\x16"
  8253. "\xe2\x4f\x77\x82\xb0\x68\x4c\x71"
  8254. "\x1d\x57\x61\x9c\xd9\x4e\x54\x99"
  8255. "\x47\x13\x28\x73\x3c\xbb\x00\x90"
  8256. "\xf3\x4d\xc9\x0e\xfd\xe7\xb1\x71"
  8257. "\xd3\x15\x79\xbf\xcc\x26\x2f\xbd"
  8258. "\xad\x6c\x50\x69\x6c\x3e\x6d\x80"
  8259. "\x9a\xea\x78\xaf\x19\xb2\x0d\x4d"
  8260. "\xad\x04\x07\xae\x22\x90\x4a\x93"
  8261. "\x32\x0e\x36\x9b\x1b\x46\xba\x3b"
  8262. "\xb4\xac\xc6\xd1\xa2\x31\x53\x3b"
  8263. "\x2a\x3d\x45\xfe\x03\x61\x10\x85"
  8264. "\x17\x69\xa6\x78\xcc\x6c\x87\x49"
  8265. "\x53\xf9\x80\x10\xde\x80\xa2\x41"
  8266. "\x6a\xc3\x32\x02\xad\x6d\x3c\x56"
  8267. "\x00\x71\x51\x06\xa7\xbd\xfb\xef"
  8268. "\x3c\xb5\x9f\xfc\x48\x7d\x53\x7c"
  8269. "\x66\xb0\x49\x23\xc4\x47\x10\x0e"
  8270. "\xe5\x6c\x74\x13\xe6\xc5\x3f\xaa"
  8271. "\xde\xff\x07\x44\xdd\x56\x1b\xad"
  8272. "\x09\x77\xfb\x5b\x12\xb8\x0d\x38"
  8273. "\x17\x37\x35\x7b\x9b\xbc\xfe\xd4"
  8274. "\x7e\x8b\xda\x7e\x5b\x04\xa7\x22"
  8275. "\xa7\x31\xa1\x20\x86\xc7\x1b\x99"
  8276. "\xdb\xd1\x89\xf4\x94\xa3\x53\x69"
  8277. "\x8d\xe7\xe8\x74\x11\x8d\x74\xd6"
  8278. "\x07\x37\x91\x9f\xfd\x67\x50\x3a"
  8279. "\xc9\xe1\xf4\x36\xd5\xa0\x47\xd1"
  8280. "\xf9\xe5\x39\xa3\x31\xac\x07\x36"
  8281. "\x23\xf8\x66\x18\x14\x28\x34\x0f"
  8282. "\xb8\xd0\xe7\x29\xb3\x04\x4b\x55"
  8283. "\x01\x41\xb2\x75\x8d\xcb\x96\x85"
  8284. "\x3a\xfb\xab\x2b\x9e\xfa\x58\x20"
  8285. "\x44\x1f\xc0\x14\x22\x75\x61\xe8"
  8286. "\xaa\x19\xcf\xf1\x82\x56\xf4\xd7"
  8287. "\x78\x7b\x3d\x5f\xb3\x9e\x0b\x8a"
  8288. "\x57\x50\xdb\x17\x41\x65\x4d\xa3"
  8289. "\x02\xc9\x9c\x9c\x53\xfb\x39\x39"
  8290. "\x9b\x1d\x72\x24\xda\xb7\x39\xbe"
  8291. "\x13\x3b\xfa\x29\xda\x9e\x54\x64"
  8292. "\x6e\xba\xd8\xa1\xcb\xb3\x36\xfa"
  8293. "\xcb\x47\x85\xe9\x61\x38\xbc\xbe"
  8294. "\xc5\x00\x38\x2a\x54\xf7\xc4\xb9"
  8295. "\xb3\xd3\x7b\xa0\xa0\xf8\x72\x7f"
  8296. "\x8c\x8e\x82\x0e\xc6\x1c\x75\x9d"
  8297. "\xca\x8e\x61\x87\xde\xad\x80\xd2"
  8298. "\xf5\xf9\x80\xef\x15\x75\xaf\xf5"
  8299. "\x80\xfb\xff\x6d\x1e\x25\xb7\x40"
  8300. "\x61\x6a\x39\x5a\x6a\xb5\x31\xab"
  8301. "\x97\x8a\x19\x89\x44\x40\xc0\xa6"
  8302. "\xb4\x4e\x30\x32\x7b\x13\xe7\x67"
  8303. "\xa9\x8b\x57\x04\xc2\x01\xa6\xf4"
  8304. "\x28\x99\xad\x2c\x76\xa3\x78\xc2"
  8305. "\x4a\xe6\xca\x5c\x50\x6a\xc1\xb0"
  8306. "\x62\x4b\x10\x8e\x7c\x17\x43\xb3"
  8307. "\x17\x66\x1c\x3e\x8d\x69\xf0\x5a"
  8308. "\x71\xf5\x97\xdc\xd1\x45\xdd\x28"
  8309. "\xf3\x5d\xdf\x53\x7b\x11\xe5\xbc"
  8310. "\x4c\xdb\x1b\x51\x6b\xe9\xfb\x3d"
  8311. "\xc1\xc3\x2c\xb9\x71\xf5\xb6\xb2"
  8312. "\x13\x36\x79\x80\x53\xe8\xd3\xa6"
  8313. "\x0a\xaf\xfd\x56\x97\xf7\x40\x8e"
  8314. "\x45\xce\xf8\xb0\x9e\x5c\x33\x82"
  8315. "\xb0\x44\x56\xfc\x05\x09\xe9\x2a"
  8316. "\xac\x26\x80\x14\x1d\xc8\x3a\x35"
  8317. "\x4c\x82\x97\xfd\x76\xb7\xa9\x0a"
  8318. "\x35\x58\x79\x8e\x0f\x66\xea\xaf"
  8319. "\x51\x6c\x09\xa9\x6e\x9b\xcb\x9a"
  8320. "\x31\x47\xa0\x2f\x7c\x71\xb4\x4a"
  8321. "\x11\xaa\x8c\x66\xc5\x64\xe6\x3a"
  8322. "\x54\xda\x24\x6a\xc4\x41\x65\x46"
  8323. "\x82\xa0\x0a\x0f\x5f\xfb\x25\xd0"
  8324. "\x2c\x91\xa7\xee\xc4\x81\x07\x86"
  8325. "\x75\x5e\x33\x69\x97\xe4\x2c\xa8"
  8326. "\x9d\x9f\x0b\x6a\xbe\xad\x98\xda"
  8327. "\x6d\x94\x41\xda\x2c\x1e\x89\xc4"
  8328. "\xc2\xaf\x1e\x00\x05\x0b\x83\x60"
  8329. "\xbd\x43\xea\x15\x23\x7f\xb9\xac"
  8330. "\xee\x4f\x2c\xaf\x2a\xf3\xdf\xd0"
  8331. "\xf3\x19\x31\xbb\x4a\x74\x84\x17"
  8332. "\x52\x32\x2c\x7d\x61\xe4\xcb\xeb"
  8333. "\x80\x38\x15\x52\xcb\x6f\xea\xe5"
  8334. "\x73\x9c\xd9\x24\x69\xc6\x95\x32"
  8335. "\x21\xc8\x11\xe4\xdc\x36\xd7\x93"
  8336. "\x38\x66\xfb\xb2\x7f\x3a\xb9\xaf"
  8337. "\x31\xdd\x93\x75\x78\x8a\x2c\x94"
  8338. "\x87\x1a\x58\xec\x9e\x7d\x4d\xba"
  8339. "\xe1\xe5\x4d\xfc\xbc\xa4\x2a\x14"
  8340. "\xef\xcc\xa7\xec\xab\x43\x09\x18"
  8341. "\xd3\xab\x68\xd1\x07\x99\x44\x47"
  8342. "\xd6\x83\x85\x3b\x30\xea\xa9\x6b"
  8343. "\x63\xea\xc4\x07\xfb\x43\x2f\xa4"
  8344. "\xaa\xb0\xab\x03\x89\xce\x3f\x8c"
  8345. "\x02\x7c\x86\x54\xbc\x88\xaf\x75"
  8346. "\xd2\xdc\x63\x17\xd3\x26\xf6\x96"
  8347. "\xa9\x3c\xf1\x61\x8c\x11\x18\xcc"
  8348. "\xd6\xea\x5b\xe2\xcd\xf0\xf1\xb2"
  8349. "\xe5\x35\x90\x1f\x85\x4c\x76\x5b"
  8350. "\x66\xce\x44\xa4\x32\x9f\xe6\x7b"
  8351. "\x71\x6e\x9f\x58\x15\x67\x72\x87"
  8352. "\x64\x8e\x3a\x44\x45\xd4\x76\xfa"
  8353. "\xc2\xf6\xef\x85\x05\x18\x7a\x9b"
  8354. "\xba\x41\x54\xac\xf0\xfc\x59\x12"
  8355. "\x3f\xdf\xa0\xe5\x8a\x65\xfd\x3a"
  8356. "\x62\x8d\x83\x2c\x03\xbe\x05\x76"
  8357. "\x2e\x53\x49\x97\x94\x33\xae\x40"
  8358. "\x81\x15\xdb\x6e\xad\xaa\xf5\x4b"
  8359. "\xe3\x98\x70\xdf\xe0\x7c\xcd\xdb"
  8360. "\x02\xd4\x7d\x2f\xc1\xe6\xb4\xf3"
  8361. "\xd7\x0d\x7a\xd9\x23\x9e\x87\x2d"
  8362. "\xce\x87\xad\xcc\x72\x05\x00\x29"
  8363. "\xdc\x73\x7f\x64\xc1\x15\x0e\xc2"
  8364. "\xdf\xa7\x5f\xeb\x41\xa1\xcd\xef"
  8365. "\x5c\x50\x79\x2a\x56\x56\x71\x8c"
  8366. "\xac\xc0\x79\x50\x69\xca\x59\x32"
  8367. "\x65\xf2\x54\xe4\x52\x38\x76\xd1"
  8368. "\x5e\xde\x26\x9e\xfb\x75\x2e\x11"
  8369. "\xb5\x10\xf4\x17\x73\xf5\x89\xc7"
  8370. "\x4f\x43\x5c\x8e\x7c\xb9\x05\x52"
  8371. "\x24\x40\x99\xfe\x9b\x85\x0b\x6c"
  8372. "\x22\x3e\x8b\xae\x86\xa1\xd2\x79"
  8373. "\x05\x68\x6b\xab\xe3\x41\x49\xed"
  8374. "\x15\xa1\x8d\x40\x2d\x61\xdf\x1a"
  8375. "\x59\xc9\x26\x8b\xef\x30\x4c\x88"
  8376. "\x4b\x10\xf8\x8d\xa6\x92\x9f\x4b"
  8377. "\xf3\xc4\x53\x0b\x89\x5d\x28\x92"
  8378. "\xcf\x78\xb2\xc0\x5d\xed\x7e\xfc"
  8379. "\xc0\x12\x23\x5f\x5a\x78\x86\x43"
  8380. "\x6e\x27\xf7\x5a\xa7\x6a\xed\x19"
  8381. "\x04\xf0\xb3\x12\xd1\xbd\x0e\x89"
  8382. "\x6e\xbc\x96\xa8\xd8\x49\x39\x9f"
  8383. "\x7e\x67\xf0\x2e\x3e\x01\xa9\xba"
  8384. "\xec\x8b\x62\x8e\xcb\x4a\x70\x43"
  8385. "\xc7\xc2\xc4\xca\x82\x03\x73\xe9"
  8386. "\x11\xdf\xcf\x54\xea\xc9\xb0\x95"
  8387. "\x51\xc0\x13\x3d\x92\x05\xfa\xf4"
  8388. "\xa9\x34\xc8\xce\x6c\x3d\x54\xcc"
  8389. "\xc4\xaf\xf1\xdc\x11\x44\x26\xa2"
  8390. "\xaf\xf1\x85\x75\x7d\x03\x61\x68"
  8391. "\x4e\x78\xc6\x92\x7d\x86\x7d\x77"
  8392. "\xdc\x71\x72\xdb\xc6\xae\xa1\xcb"
  8393. "\x70\x9a\x0b\x19\xbe\x4a\x6c\x2a"
  8394. "\xe2\xba\x6c\x64\x9a\x13\x28\xdf"
  8395. "\x85\x75\xe6\x43\xf6\x87\x08\x68"
  8396. "\x6e\xba\x6e\x79\x9f\x04\xbc\x23"
  8397. "\x50\xf6\x33\x5c\x1f\x24\x25\xbe"
  8398. "\x33\x47\x80\x45\x56\xa3\xa7\xd7"
  8399. "\x7a\xb1\x34\x0b\x90\x3c\x9c\xad"
  8400. "\x44\x5f\x9e\x0e\x9d\xd4\xbd\x93"
  8401. "\x5e\xfa\x3c\xe0\xb0\xd9\xed\xf3"
  8402. "\xd6\x2e\xff\x24\xd8\x71\x6c\xed"
  8403. "\xaf\x55\xeb\x22\xac\x93\x68\x32"
  8404. "\x05\x5b\x47\xdd\xc6\x4a\xcb\xc7"
  8405. "\x10\xe1\x3c\x92\x1a\xf3\x23\x78"
  8406. "\x2b\xa1\xd2\x80\xf4\x12\xb1\x20"
  8407. "\x8f\xff\x26\x35\xdd\xfb\xc7\x4e"
  8408. "\x78\xf1\x2d\x50\x12\x77\xa8\x60"
  8409. "\x7c\x0f\xf5\x16\x2f\x63\x70\x2a"
  8410. "\xc0\x96\x80\x4e\x0a\xb4\x93\x35"
  8411. "\x5d\x1d\x3f\x56\xf7\x2f\xbb\x90"
  8412. "\x11\x16\x8f\xa2\xec\x47\xbe\xac"
  8413. "\x56\x01\x26\x56\xb1\x8c\xb2\x10"
  8414. "\xf9\x1a\xca\xf5\xd1\xb7\x39\x20"
  8415. "\x63\xf1\x69\x20\x4f\x13\x12\x1f"
  8416. "\x5b\x65\xfc\x98\xf7\xc4\x7a\xbe"
  8417. "\xf7\x26\x4d\x2b\x84\x7b\x42\xad"
  8418. "\xd8\x7a\x0a\xb4\xd8\x74\xbf\xc1"
  8419. "\xf0\x6e\xb4\x29\xa3\xbb\xca\x46"
  8420. "\x67\x70\x6a\x2d\xce\x0e\xa2\x8a"
  8421. "\xa9\x87\xbf\x05\xc4\xc1\x04\xa3"
  8422. "\xab\xd4\x45\x43\x8c\xb6\x02\xb0"
  8423. "\x41\xc8\xfc\x44\x3d\x59\xaa\x2e"
  8424. "\x44\x21\x2a\x8d\x88\x9d\x57\xf4"
  8425. "\xa0\x02\x77\xb8\xa6\xa0\xe6\x75"
  8426. "\x5c\x82\x65\x3e\x03\x5c\x29\x8f"
  8427. "\x38\x55\xab\x33\x26\xef\x9f\x43"
  8428. "\x52\xfd\x68\xaf\x36\xb4\xbb\x9a"
  8429. "\x58\x09\x09\x1b\xc3\x65\x46\x46"
  8430. "\x1d\xa7\x94\x18\x23\x50\x2c\xca"
  8431. "\x2c\x55\x19\x97\x01\x9d\x93\x3b"
  8432. "\x63\x86\xf2\x03\x67\x45\xd2\x72"
  8433. "\x28\x52\x6c\xf4\xe3\x1c\xb5\x11"
  8434. "\x13\xf1\xeb\x21\xc7\xd9\x56\x82"
  8435. "\x2b\x82\x39\xbd\x69\x54\xed\x62"
  8436. "\xc3\xe2\xde\x73\xd4\x6a\x12\xae"
  8437. "\x13\x21\x7f\x4b\x5b\xfc\xbf\xe8"
  8438. "\x2b\xbe\x56\xba\x68\x8b\x9a\xb1"
  8439. "\x6e\xfa\xbf\x7e\x5a\x4b\xf1\xac"
  8440. "\x98\x65\x85\xd1\x93\x53\xd3\x7b"
  8441. "\x09\xdd\x4b\x10\x6d\x84\xb0\x13"
  8442. "\x65\xbd\xcf\x52\x09\xc4\x85\xe2"
  8443. "\x84\x74\x15\x65\xb7\xf7\x51\xaf"
  8444. "\x55\xad\xa4\xd1\x22\x54\x70\x94"
  8445. "\xa0\x1c\x90\x41\xfd\x99\xd7\x5a"
  8446. "\x31\xef\xaa\x25\xd0\x7f\x4f\xea"
  8447. "\x1d\x55\x42\xe5\x49\xb0\xd0\x46"
  8448. "\x62\x36\x43\xb2\x82\x15\x75\x50"
  8449. "\xa4\x72\xeb\x54\x27\x1f\x8a\xe4"
  8450. "\x7d\xe9\x66\xc5\xf1\x53\xa4\xd1"
  8451. "\x0c\xeb\xb8\xf8\xbc\xd4\xe2\xe7"
  8452. "\xe1\xf8\x4b\xcb\xa9\xa1\xaf\x15"
  8453. "\x83\xcb\x72\xd0\x33\x79\x00\x2d"
  8454. "\x9f\xd7\xf1\x2e\x1e\x10\xe4\x45"
  8455. "\xc0\x75\x3a\x39\xea\x68\xf7\x5d"
  8456. "\x1b\x73\x8f\xe9\x8e\x0f\x72\x47"
  8457. "\xae\x35\x0a\x31\x7a\x14\x4d\x4a"
  8458. "\x6f\x47\xf7\x7e\x91\x6e\x74\x8b"
  8459. "\x26\x47\xf9\xc3\xf9\xde\x70\xf5"
  8460. "\x61\xab\xa9\x27\x9f\x82\xe4\x9c"
  8461. "\x89\x91\x3f\x2e\x6a\xfd\xb5\x49"
  8462. "\xe9\xfd\x59\x14\x36\x49\x40\x6d"
  8463. "\x32\xd8\x85\x42\xf3\xa5\xdf\x0c"
  8464. "\xa8\x27\xd7\x54\xe2\x63\x2f\xf2"
  8465. "\x7e\x8b\x8b\xe7\xf1\x9a\x95\x35"
  8466. "\x43\xdc\x3a\xe4\xb6\xf4\xd0\xdf"
  8467. "\x9c\xcb\x94\xf3\x21\xa0\x77\x50"
  8468. "\xe2\xc6\xc4\xc6\x5f\x09\x64\x5b"
  8469. "\x92\x90\xd8\xe1\xd1\xed\x4b\x42"
  8470. "\xd7\x37\xaf\x65\x3d\x11\x39\xb6"
  8471. "\x24\x8a\x60\xae\xd6\x1e\xbf\x0e"
  8472. "\x0d\xd7\xdc\x96\x0e\x65\x75\x4e"
  8473. "\x29\x06\x9d\xa4\x51\x3a\x10\x63"
  8474. "\x8f\x17\x07\xd5\x8e\x3c\xf4\x28"
  8475. "\x00\x5a\x5b\x05\x19\xd8\xc0\x6c"
  8476. "\xe5\x15\xe4\x9c\x9d\x71\x9d\x5e"
  8477. "\x94\x29\x1a\xa7\x80\xfa\x0e\x33"
  8478. "\x03\xdd\xb7\x3e\x9a\xa9\x26\x18"
  8479. "\x37\xa9\x64\x08\x4d\x94\x5a\x88"
  8480. "\xca\x35\xce\x81\x02\xe3\x1f\x1b"
  8481. "\x89\x1a\x77\x85\xe3\x41\x6d\x32"
  8482. "\x42\x19\x23\x7d\xc8\x73\xee\x25"
  8483. "\x85\x0d\xf8\x31\x25\x79\x1b\x6f"
  8484. "\x79\x25\xd2\xd8\xd4\x23\xfd\xf7"
  8485. "\x82\x36\x6a\x0c\x46\x22\x15\xe9"
  8486. "\xff\x72\x41\x91\x91\x7d\x3a\xb7"
  8487. "\xdd\x65\x99\x70\xf6\x8d\x84\xf8"
  8488. "\x67\x15\x20\x11\xd6\xb2\x55\x7b"
  8489. "\xdb\x87\xee\xef\x55\x89\x2a\x59"
  8490. "\x2b\x07\x8f\x43\x8a\x59\x3c\x01"
  8491. "\x8b\x65\x54\xa1\x66\xd5\x38\xbd"
  8492. "\xc6\x30\xa9\xcc\x49\xb6\xa8\x1b"
  8493. "\xb8\xc0\x0e\xe3\x45\x28\xe2\xff"
  8494. "\x41\x9f\x7e\x7c\xd1\xae\x9e\x25"
  8495. "\x3f\x4c\x7c\x7c\xf4\xa8\x26\x4d"
  8496. "\x5c\xfd\x4b\x27\x18\xf9\x61\x76"
  8497. "\x48\xba\x0c\x6b\xa9\x4d\xfc\xf5"
  8498. "\x3b\x35\x7e\x2f\x4a\xa9\xc2\x9a"
  8499. "\xae\xab\x86\x09\x89\xc9\xc2\x40"
  8500. "\x39\x2c\x81\xb3\xb8\x17\x67\xc2"
  8501. "\x0d\x32\x4a\x3a\x67\x81\xd7\x1a"
  8502. "\x34\x52\xc5\xdb\x0a\xf5\x63\x39"
  8503. "\xea\x1f\xe1\x7c\xa1\x9e\xc1\x35"
  8504. "\xe3\xb1\x18\x45\x67\xf9\x22\x38"
  8505. "\x95\xd9\x34\x34\x86\xc6\x41\x94"
  8506. "\x15\xf9\x5b\x41\xa6\x87\x8b\xf8"
  8507. "\xd5\xe1\x1b\xe2\x5b\xf3\x86\x10"
  8508. "\xff\xe6\xae\x69\x76\xbc\x0d\xb4"
  8509. "\x09\x90\x0c\xa2\x65\x0c\xad\x74"
  8510. "\xf5\xd7\xff\xda\xc1\xce\x85\xbe"
  8511. "\x00\xa7\xff\x4d\x2f\x65\xd3\x8c"
  8512. "\x86\x2d\x05\xe8\xed\x3e\x6b\x8b"
  8513. "\x0f\x3d\x83\x8c\xf1\x1d\x5b\x96"
  8514. "\x2e\xb1\x9c\xc2\x98\xe1\x70\xb9"
  8515. "\xba\x5c\x8a\x43\xd6\x34\xa7\x2d"
  8516. "\xc9\x92\xae\xf2\xa5\x7b\x05\x49"
  8517. "\xa7\x33\x34\x86\xca\xe4\x96\x23"
  8518. "\x76\x5b\xf2\xc6\xf1\x51\x28\x42"
  8519. "\x7b\xcc\x76\x8f\xfa\xa2\xad\x31"
  8520. "\xd4\xd6\x7a\x6d\x25\x25\x54\xe4"
  8521. "\x3f\x50\x59\xe1\x5c\x05\xb7\x27"
  8522. "\x48\xbf\x07\xec\x1b\x13\xbe\x2b"
  8523. "\xa1\x57\x2b\xd5\xab\xd7\xd0\x4c"
  8524. "\x1e\xcb\x71\x9b\xc5\x90\x85\xd3"
  8525. "\xde\x59\xec\x71\xeb\x89\xbb\xd0"
  8526. "\x09\x50\xe1\x16\x3f\xfd\x1c\x34"
  8527. "\xc3\x1c\xa1\x10\x77\x53\x98\xef"
  8528. "\xf2\xfd\xa5\x01\x59\xc2\x9b\x26"
  8529. "\xc7\x42\xd9\x49\xda\x58\x2b\x6e"
  8530. "\x9f\x53\x19\x76\x7e\xd9\xc9\x0e"
  8531. "\x68\xc8\x7f\x51\x22\x42\xef\x49"
  8532. "\xa4\x55\xb6\x36\xac\x09\xc7\x31"
  8533. "\x88\x15\x4b\x2e\x8f\x3a\x08\xf7"
  8534. "\xd8\xf7\xa8\xc5\xa9\x33\xa6\x45"
  8535. "\xe4\xc4\x94\x76\xf3\x0d\x8f\x7e"
  8536. "\xc8\xf6\xbc\x23\x0a\xb6\x4c\xd3"
  8537. "\x6a\xcd\x36\xc2\x90\x5c\x5c\x3c"
  8538. "\x65\x7b\xc2\xd6\xcc\xe6\x0d\x87"
  8539. "\x73\x2e\x71\x79\x16\x06\x63\x28"
  8540. "\x09\x15\xd8\x89\x38\x38\x3d\xb5"
  8541. "\x42\x1c\x08\x24\xf7\x2a\xd2\x9d"
  8542. "\xc8\xca\xef\xf9\x27\xd8\x07\x86"
  8543. "\xf7\x43\x0b\x55\x15\x3f\x9f\x83"
  8544. "\xef\xdc\x49\x9d\x2a\xc1\x54\x62"
  8545. "\xbd\x9b\x66\x55\x9f\xb7\x12\xf3"
  8546. "\x1b\x4d\x9d\x2a\x5c\xed\x87\x75"
  8547. "\x87\x26\xec\x61\x2c\xb4\x0f\x89"
  8548. "\xb0\xfb\x2e\x68\x5d\x15\xc7\x8d"
  8549. "\x2e\xc0\xd9\xec\xaf\x4f\xd2\x25"
  8550. "\x29\xe8\xd2\x26\x2b\x67\xe9\xfc"
  8551. "\x2b\xa8\x67\x96\x12\x1f\x5b\x96"
  8552. "\xc6\x14\x53\xaf\x44\xea\xd6\xe2"
  8553. "\x94\x98\xe4\x12\x93\x4c\x92\xe0"
  8554. "\x18\xa5\x8d\x2d\xe4\x71\x3c\x47"
  8555. "\x4c\xf7\xe6\x47\x9e\xc0\x68\xdf"
  8556. "\xd4\xf5\x5a\x74\xb1\x2b\x29\x03"
  8557. "\x19\x07\xaf\x90\x62\x5c\x68\x98"
  8558. "\x48\x16\x11\x02\x9d\xee\xb4\x9b"
  8559. "\xe5\x42\x7f\x08\xfd\x16\x32\x0b"
  8560. "\xd0\xb3\xfa\x2b\xb7\x99\xf9\x29"
  8561. "\xcd\x20\x45\x9f\xb3\x1a\x5d\xa2"
  8562. "\xaf\x4d\xe0\xbd\x42\x0d\xbc\x74"
  8563. "\x99\x9c\x8e\x53\x1a\xb4\x3e\xbd"
  8564. "\xa2\x9a\x2d\xf7\xf8\x39\x0f\x67"
  8565. "\x63\xfc\x6b\xc0\xaf\xb3\x4b\x4f"
  8566. "\x55\xc4\xcf\xa7\xc8\x04\x11\x3e"
  8567. "\x14\x32\xbb\x1b\x38\x77\xd6\x7f"
  8568. "\x54\x4c\xdf\x75\xf3\x07\x2d\x33"
  8569. "\x9b\xa8\x20\xe1\x7b\x12\xb5\xf3"
  8570. "\xef\x2f\xce\x72\xe5\x24\x60\xc1"
  8571. "\x30\xe2\xab\xa1\x8e\x11\x09\xa8"
  8572. "\x21\x33\x44\xfe\x7f\x35\x32\x93"
  8573. "\x39\xa7\xad\x8b\x79\x06\xb2\xcb"
  8574. "\x4e\xa9\x5f\xc7\xba\x74\x29\xec"
  8575. "\x93\xa0\x4e\x54\x93\xc0\xbc\x55"
  8576. "\x64\xf0\x48\xe5\x57\x99\xee\x75"
  8577. "\xd6\x79\x0f\x66\xb7\xc6\x57\x76"
  8578. "\xf7\xb7\xf3\x9c\xc5\x60\xe8\x7f"
  8579. "\x83\x76\xd6\x0e\xaa\xe6\x90\x39"
  8580. "\x1d\xa6\x32\x6a\x34\xe3\x55\xf8"
  8581. "\x58\xa0\x58\x7d\x33\xe0\x22\x39"
  8582. "\x44\x64\x87\x86\x5a\x2f\xa7\x7e"
  8583. "\x0f\x38\xea\xb0\x30\xcc\x61\xa5"
  8584. "\x6a\x32\xae\x1e\xf7\xe9\xd0\xa9"
  8585. "\x0c\x32\x4b\xb5\x49\x28\xab\x85"
  8586. "\x2f\x8e\x01\x36\x38\x52\xd0\xba"
  8587. "\xd6\x02\x78\xf8\x0e\x3e\x9c\x8b"
  8588. "\x6b\x45\x99\x3f\x5c\xfe\x58\xf1"
  8589. "\x5c\x94\x04\xe1\xf5\x18\x6d\x51"
  8590. "\xb2\x5d\x18\x20\xb6\xc2\x9a\x42"
  8591. "\x1d\xb3\xab\x3c\xb6\x3a\x13\x03"
  8592. "\xb2\x46\x82\x4f\xfc\x64\xbc\x4f"
  8593. "\xca\xfa\x9c\xc0\xd5\xa7\xbd\x11"
  8594. "\xb7\xe4\x5a\xf6\x6f\x4d\x4d\x54"
  8595. "\xea\xa4\x98\x66\xd4\x22\x3b\xd3"
  8596. "\x8f\x34\x47\xd9\x7c\xf4\x72\x3b"
  8597. "\x4d\x02\x77\xf6\xd6\xdd\x08\x0a"
  8598. "\x81\xe1\x86\x89\x3e\x56\x10\x3c"
  8599. "\xba\xd7\x81\x8c\x08\xbc\x8b\xe2"
  8600. "\x53\xec\xa7\x89\xee\xc8\x56\xb5"
  8601. "\x36\x2c\xb2\x03\xba\x99\xdd\x7c"
  8602. "\x48\xa0\xb0\xbc\x91\x33\xe9\xa8"
  8603. "\xcb\xcd\xcf\x59\x5f\x1f\x15\xe2"
  8604. "\x56\xf5\x4e\x01\x35\x27\x45\x77"
  8605. "\x47\xc8\xbc\xcb\x7e\x39\xc1\x97"
  8606. "\x28\xd3\x84\xfc\x2c\x3e\xc8\xad"
  8607. "\x9c\xf8\x8a\x61\x9c\x28\xaa\xc5"
  8608. "\x99\x20\x43\x85\x9d\xa5\xe2\x8b"
  8609. "\xb8\xae\xeb\xd0\x32\x0d\x52\x78"
  8610. "\x09\x56\x3f\xc7\xd8\x7e\x26\xfc"
  8611. "\x37\xfb\x6f\x04\xfc\xfa\x92\x10"
  8612. "\xac\xf8\x3e\x21\xdc\x8c\x21\x16"
  8613. "\x7d\x67\x6e\xf6\xcd\xda\xb6\x98"
  8614. "\x23\xab\x23\x3c\xb2\x10\xa0\x53"
  8615. "\x5a\x56\x9f\xc5\xd0\xff\xbb\xe4"
  8616. "\x98\x3c\x69\x1e\xdb\x38\x8f\x7e"
  8617. "\x0f\xd2\x98\x88\x81\x8b\x45\x67"
  8618. "\xea\x33\xf1\xeb\xe9\x97\x55\x2e"
  8619. "\xd9\xaa\xeb\x5a\xec\xda\xe1\x68"
  8620. "\xa8\x9d\x3c\x84\x7c\x05\x3d\x62"
  8621. "\x87\x8f\x03\x21\x28\x95\x0c\x89"
  8622. "\x25\x22\x4a\xb0\x93\xa9\x50\xa2"
  8623. "\x2f\x57\x6e\x18\x42\x19\x54\x0c"
  8624. "\x55\x67\xc6\x11\x49\xf4\x5c\xd2"
  8625. "\xe9\x3d\xdd\x8b\x48\x71\x21\x00"
  8626. "\xc3\x9a\x6c\x85\x74\x28\x83\x4a"
  8627. "\x1b\x31\x05\xe1\x06\x92\xe7\xda"
  8628. "\x85\x73\x78\x45\x20\x7f\xae\x13"
  8629. "\x7c\x33\x06\x22\xf4\x83\xf9\x35"
  8630. "\x3f\x6c\x71\xa8\x4e\x48\xbe\x9b"
  8631. "\xce\x8a\xba\xda\xbe\x28\x08\xf7"
  8632. "\xe2\x14\x8c\x71\xea\x72\xf9\x33"
  8633. "\xf2\x88\x3f\xd7\xbb\x69\x6c\x29"
  8634. "\x19\xdc\x84\xce\x1f\x12\x4f\xc8"
  8635. "\xaf\xa5\x04\xba\x5a\xab\xb0\xd9"
  8636. "\x14\x1f\x6c\x68\x98\x39\x89\x7a"
  8637. "\xd9\xd8\x2f\xdf\xa8\x47\x4a\x25"
  8638. "\xe2\xfb\x33\xf4\x59\x78\xe1\x68"
  8639. "\x85\xcf\xfe\x59\x20\xd4\x05\x1d"
  8640. "\x80\x99\xae\xbc\xca\xae\x0f\x2f"
  8641. "\x65\x43\x34\x8e\x7e\xac\xd3\x93"
  8642. "\x2f\xac\x6d\x14\x3d\x02\x07\x70"
  8643. "\x9d\xa4\xf3\x1b\x5c\x36\xfc\x01"
  8644. "\x73\x34\x85\x0c\x6c\xd6\xf1\xbd"
  8645. "\x3f\xdf\xee\xf5\xd9\xba\x56\xef"
  8646. "\xf4\x9b\x6b\xee\x9f\x5a\x78\x6d"
  8647. "\x32\x19\xf4\xf7\xf8\x4c\x69\x0b"
  8648. "\x4b\xbc\xbb\xb7\xf2\x85\xaf\x70"
  8649. "\x75\x24\x6c\x54\xa7\x0e\x4d\x1d"
  8650. "\x01\xbf\x08\xac\xcf\x7f\x2c\xe3"
  8651. "\x14\x89\x5e\x70\x5a\x99\x92\xcd"
  8652. "\x01\x84\xc8\xd2\xab\xe5\x4f\x58"
  8653. "\xe7\x0f\x2f\x0e\xff\x68\xea\xfd"
  8654. "\x15\xb3\x17\xe6\xb0\xe7\x85\xd8"
  8655. "\x23\x2e\x05\xc7\xc9\xc4\x46\x1f"
  8656. "\xe1\x9e\x49\x20\x23\x24\x4d\x7e"
  8657. "\x29\x65\xff\xf4\xb6\xfd\x1a\x85"
  8658. "\xc4\x16\xec\xfc\xea\x7b\xd6\x2c"
  8659. "\x43\xf8\xb7\xbf\x79\xc0\x85\xcd"
  8660. "\xef\xe1\x98\xd3\xa5\xf7\x90\x8c"
  8661. "\xe9\x7f\x80\x6b\xd2\xac\x4c\x30"
  8662. "\xa7\xc6\x61\x6c\xd2\xf9\x2c\xff"
  8663. "\x30\xbc\x22\x81\x7d\x93\x12\xe4"
  8664. "\x0a\xcd\xaf\xdd\xe8\xab\x0a\x1e"
  8665. "\x13\xa4\x27\xc3\x5f\xf7\x4b\xbb"
  8666. "\x37\x09\x4b\x91\x6f\x92\x4f\xaf"
  8667. "\x52\xee\xdf\xef\x09\x6f\xf7\x5c"
  8668. "\x6e\x12\x17\x72\x63\x57\xc7\xba"
  8669. "\x3b\x6b\x38\x32\x73\x1b\x9c\x80"
  8670. "\xc1\x7a\xc6\xcf\xcd\x35\xc0\x6b"
  8671. "\x31\x1a\x6b\xe9\xd8\x2c\x29\x3f"
  8672. "\x96\xfb\xb6\xcd\x13\x91\x3b\xc2"
  8673. "\xd2\xa3\x31\x8d\xa4\xcd\x57\xcd"
  8674. "\x13\x3d\x64\xfd\x06\xce\xe6\xdc"
  8675. "\x0c\x24\x43\x31\x40\x57\xf1\x72"
  8676. "\x17\xe3\x3a\x63\x6d\x35\xcf\x5d"
  8677. "\x97\x40\x59\xdd\xf7\x3c\x02\xf7"
  8678. "\x1c\x7e\x05\xbb\xa9\x0d\x01\xb1"
  8679. "\x8e\xc0\x30\xa9\x53\x24\xc9\x89"
  8680. "\x84\x6d\xaa\xd0\xcd\x91\xc2\x4d"
  8681. "\x91\xb0\x89\xe2\xbf\x83\x44\xaa"
  8682. "\x28\x72\x23\xa0\xc2\xad\xad\x1c"
  8683. "\xfc\x3f\x09\x7a\x0b\xdc\xc5\x1b"
  8684. "\x87\x13\xc6\x5b\x59\x8d\xf2\xc8"
  8685. "\xaf\xdf\x11\x95",
  8686. .rlen = 4100,
  8687. .np = 2,
  8688. .tap = { 4064, 36 },
  8689. },
  8690. };
  8691. /*
  8692. * CTS (Cipher Text Stealing) mode tests
  8693. */
  8694. #define CTS_MODE_ENC_TEST_VECTORS 6
  8695. #define CTS_MODE_DEC_TEST_VECTORS 6
  8696. static struct cipher_testvec cts_mode_enc_tv_template[] = {
  8697. { /* from rfc3962 */
  8698. .klen = 16,
  8699. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  8700. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  8701. .ilen = 17,
  8702. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  8703. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  8704. "\x20",
  8705. .rlen = 17,
  8706. .result = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
  8707. "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
  8708. "\x97",
  8709. }, {
  8710. .klen = 16,
  8711. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  8712. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  8713. .ilen = 31,
  8714. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  8715. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  8716. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  8717. "\x20\x47\x61\x75\x27\x73\x20",
  8718. .rlen = 31,
  8719. .result = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
  8720. "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
  8721. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  8722. "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
  8723. }, {
  8724. .klen = 16,
  8725. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  8726. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  8727. .ilen = 32,
  8728. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  8729. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  8730. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  8731. "\x20\x47\x61\x75\x27\x73\x20\x43",
  8732. .rlen = 32,
  8733. .result = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  8734. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  8735. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  8736. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
  8737. }, {
  8738. .klen = 16,
  8739. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  8740. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  8741. .ilen = 47,
  8742. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  8743. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  8744. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  8745. "\x20\x47\x61\x75\x27\x73\x20\x43"
  8746. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  8747. "\x70\x6c\x65\x61\x73\x65\x2c",
  8748. .rlen = 47,
  8749. .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  8750. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  8751. "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
  8752. "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
  8753. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  8754. "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
  8755. }, {
  8756. .klen = 16,
  8757. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  8758. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  8759. .ilen = 48,
  8760. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  8761. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  8762. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  8763. "\x20\x47\x61\x75\x27\x73\x20\x43"
  8764. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  8765. "\x70\x6c\x65\x61\x73\x65\x2c\x20",
  8766. .rlen = 48,
  8767. .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  8768. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  8769. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  8770. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
  8771. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  8772. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
  8773. }, {
  8774. .klen = 16,
  8775. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  8776. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  8777. .ilen = 64,
  8778. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  8779. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  8780. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  8781. "\x20\x47\x61\x75\x27\x73\x20\x43"
  8782. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  8783. "\x70\x6c\x65\x61\x73\x65\x2c\x20"
  8784. "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
  8785. "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
  8786. .rlen = 64,
  8787. .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  8788. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  8789. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  8790. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  8791. "\x48\x07\xef\xe8\x36\xee\x89\xa5"
  8792. "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
  8793. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  8794. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
  8795. }
  8796. };
  8797. static struct cipher_testvec cts_mode_dec_tv_template[] = {
  8798. { /* from rfc3962 */
  8799. .klen = 16,
  8800. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  8801. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  8802. .rlen = 17,
  8803. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  8804. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  8805. "\x20",
  8806. .ilen = 17,
  8807. .input = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
  8808. "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
  8809. "\x97",
  8810. }, {
  8811. .klen = 16,
  8812. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  8813. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  8814. .rlen = 31,
  8815. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  8816. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  8817. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  8818. "\x20\x47\x61\x75\x27\x73\x20",
  8819. .ilen = 31,
  8820. .input = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
  8821. "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
  8822. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  8823. "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
  8824. }, {
  8825. .klen = 16,
  8826. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  8827. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  8828. .rlen = 32,
  8829. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  8830. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  8831. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  8832. "\x20\x47\x61\x75\x27\x73\x20\x43",
  8833. .ilen = 32,
  8834. .input = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  8835. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  8836. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  8837. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
  8838. }, {
  8839. .klen = 16,
  8840. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  8841. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  8842. .rlen = 47,
  8843. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  8844. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  8845. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  8846. "\x20\x47\x61\x75\x27\x73\x20\x43"
  8847. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  8848. "\x70\x6c\x65\x61\x73\x65\x2c",
  8849. .ilen = 47,
  8850. .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  8851. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  8852. "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
  8853. "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
  8854. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  8855. "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
  8856. }, {
  8857. .klen = 16,
  8858. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  8859. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  8860. .rlen = 48,
  8861. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  8862. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  8863. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  8864. "\x20\x47\x61\x75\x27\x73\x20\x43"
  8865. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  8866. "\x70\x6c\x65\x61\x73\x65\x2c\x20",
  8867. .ilen = 48,
  8868. .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  8869. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  8870. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  8871. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
  8872. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  8873. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
  8874. }, {
  8875. .klen = 16,
  8876. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  8877. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  8878. .rlen = 64,
  8879. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  8880. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  8881. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  8882. "\x20\x47\x61\x75\x27\x73\x20\x43"
  8883. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  8884. "\x70\x6c\x65\x61\x73\x65\x2c\x20"
  8885. "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
  8886. "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
  8887. .ilen = 64,
  8888. .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  8889. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  8890. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  8891. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  8892. "\x48\x07\xef\xe8\x36\xee\x89\xa5"
  8893. "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
  8894. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  8895. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
  8896. }
  8897. };
  8898. /*
  8899. * Compression stuff.
  8900. */
  8901. #define COMP_BUF_SIZE 512
  8902. struct comp_testvec {
  8903. int inlen, outlen;
  8904. char input[COMP_BUF_SIZE];
  8905. char output[COMP_BUF_SIZE];
  8906. };
  8907. struct pcomp_testvec {
  8908. void *params;
  8909. unsigned int paramsize;
  8910. int inlen, outlen;
  8911. char input[COMP_BUF_SIZE];
  8912. char output[COMP_BUF_SIZE];
  8913. };
  8914. /*
  8915. * Deflate test vectors (null-terminated strings).
  8916. * Params: winbits=-11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL.
  8917. */
  8918. #define DEFLATE_COMP_TEST_VECTORS 2
  8919. #define DEFLATE_DECOMP_TEST_VECTORS 2
  8920. static struct comp_testvec deflate_comp_tv_template[] = {
  8921. {
  8922. .inlen = 70,
  8923. .outlen = 38,
  8924. .input = "Join us now and share the software "
  8925. "Join us now and share the software ",
  8926. .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  8927. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  8928. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  8929. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  8930. "\x71\xbc\x08\x2b\x01\x00",
  8931. }, {
  8932. .inlen = 191,
  8933. .outlen = 122,
  8934. .input = "This document describes a compression method based on the DEFLATE"
  8935. "compression algorithm. This document defines the application of "
  8936. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  8937. .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  8938. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  8939. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  8940. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  8941. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  8942. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  8943. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  8944. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  8945. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  8946. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  8947. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  8948. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  8949. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  8950. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  8951. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  8952. "\xfa\x02",
  8953. },
  8954. };
  8955. static struct comp_testvec deflate_decomp_tv_template[] = {
  8956. {
  8957. .inlen = 122,
  8958. .outlen = 191,
  8959. .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  8960. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  8961. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  8962. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  8963. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  8964. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  8965. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  8966. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  8967. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  8968. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  8969. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  8970. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  8971. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  8972. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  8973. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  8974. "\xfa\x02",
  8975. .output = "This document describes a compression method based on the DEFLATE"
  8976. "compression algorithm. This document defines the application of "
  8977. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  8978. }, {
  8979. .inlen = 38,
  8980. .outlen = 70,
  8981. .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  8982. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  8983. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  8984. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  8985. "\x71\xbc\x08\x2b\x01\x00",
  8986. .output = "Join us now and share the software "
  8987. "Join us now and share the software ",
  8988. },
  8989. };
  8990. #define ZLIB_COMP_TEST_VECTORS 2
  8991. #define ZLIB_DECOMP_TEST_VECTORS 2
  8992. static const struct {
  8993. struct nlattr nla;
  8994. int val;
  8995. } deflate_comp_params[] = {
  8996. {
  8997. .nla = {
  8998. .nla_len = NLA_HDRLEN + sizeof(int),
  8999. .nla_type = ZLIB_COMP_LEVEL,
  9000. },
  9001. .val = Z_DEFAULT_COMPRESSION,
  9002. }, {
  9003. .nla = {
  9004. .nla_len = NLA_HDRLEN + sizeof(int),
  9005. .nla_type = ZLIB_COMP_METHOD,
  9006. },
  9007. .val = Z_DEFLATED,
  9008. }, {
  9009. .nla = {
  9010. .nla_len = NLA_HDRLEN + sizeof(int),
  9011. .nla_type = ZLIB_COMP_WINDOWBITS,
  9012. },
  9013. .val = -11,
  9014. }, {
  9015. .nla = {
  9016. .nla_len = NLA_HDRLEN + sizeof(int),
  9017. .nla_type = ZLIB_COMP_MEMLEVEL,
  9018. },
  9019. .val = MAX_MEM_LEVEL,
  9020. }, {
  9021. .nla = {
  9022. .nla_len = NLA_HDRLEN + sizeof(int),
  9023. .nla_type = ZLIB_COMP_STRATEGY,
  9024. },
  9025. .val = Z_DEFAULT_STRATEGY,
  9026. }
  9027. };
  9028. static const struct {
  9029. struct nlattr nla;
  9030. int val;
  9031. } deflate_decomp_params[] = {
  9032. {
  9033. .nla = {
  9034. .nla_len = NLA_HDRLEN + sizeof(int),
  9035. .nla_type = ZLIB_DECOMP_WINDOWBITS,
  9036. },
  9037. .val = -11,
  9038. }
  9039. };
  9040. static struct pcomp_testvec zlib_comp_tv_template[] = {
  9041. {
  9042. .params = &deflate_comp_params,
  9043. .paramsize = sizeof(deflate_comp_params),
  9044. .inlen = 70,
  9045. .outlen = 38,
  9046. .input = "Join us now and share the software "
  9047. "Join us now and share the software ",
  9048. .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  9049. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  9050. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  9051. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  9052. "\x71\xbc\x08\x2b\x01\x00",
  9053. }, {
  9054. .params = &deflate_comp_params,
  9055. .paramsize = sizeof(deflate_comp_params),
  9056. .inlen = 191,
  9057. .outlen = 122,
  9058. .input = "This document describes a compression method based on the DEFLATE"
  9059. "compression algorithm. This document defines the application of "
  9060. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  9061. .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  9062. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  9063. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  9064. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  9065. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  9066. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  9067. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  9068. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  9069. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  9070. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  9071. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  9072. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  9073. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  9074. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  9075. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  9076. "\xfa\x02",
  9077. },
  9078. };
  9079. static struct pcomp_testvec zlib_decomp_tv_template[] = {
  9080. {
  9081. .params = &deflate_decomp_params,
  9082. .paramsize = sizeof(deflate_decomp_params),
  9083. .inlen = 122,
  9084. .outlen = 191,
  9085. .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  9086. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  9087. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  9088. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  9089. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  9090. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  9091. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  9092. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  9093. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  9094. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  9095. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  9096. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  9097. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  9098. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  9099. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  9100. "\xfa\x02",
  9101. .output = "This document describes a compression method based on the DEFLATE"
  9102. "compression algorithm. This document defines the application of "
  9103. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  9104. }, {
  9105. .params = &deflate_decomp_params,
  9106. .paramsize = sizeof(deflate_decomp_params),
  9107. .inlen = 38,
  9108. .outlen = 70,
  9109. .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  9110. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  9111. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  9112. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  9113. "\x71\xbc\x08\x2b\x01\x00",
  9114. .output = "Join us now and share the software "
  9115. "Join us now and share the software ",
  9116. },
  9117. };
  9118. /*
  9119. * LZO test vectors (null-terminated strings).
  9120. */
  9121. #define LZO_COMP_TEST_VECTORS 2
  9122. #define LZO_DECOMP_TEST_VECTORS 2
  9123. static struct comp_testvec lzo_comp_tv_template[] = {
  9124. {
  9125. .inlen = 70,
  9126. .outlen = 46,
  9127. .input = "Join us now and share the software "
  9128. "Join us now and share the software ",
  9129. .output = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
  9130. "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
  9131. "\x64\x20\x73\x68\x61\x72\x65\x20"
  9132. "\x74\x68\x65\x20\x73\x6f\x66\x74"
  9133. "\x77\x70\x01\x01\x4a\x6f\x69\x6e"
  9134. "\x3d\x88\x00\x11\x00\x00",
  9135. }, {
  9136. .inlen = 159,
  9137. .outlen = 133,
  9138. .input = "This document describes a compression method based on the LZO "
  9139. "compression algorithm. This document defines the application of "
  9140. "the LZO algorithm used in UBIFS.",
  9141. .output = "\x00\x2b\x54\x68\x69\x73\x20\x64"
  9142. "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
  9143. "\x64\x65\x73\x63\x72\x69\x62\x65"
  9144. "\x73\x20\x61\x20\x63\x6f\x6d\x70"
  9145. "\x72\x65\x73\x73\x69\x6f\x6e\x20"
  9146. "\x6d\x65\x74\x68\x6f\x64\x20\x62"
  9147. "\x61\x73\x65\x64\x20\x6f\x6e\x20"
  9148. "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
  9149. "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
  9150. "\x69\x74\x68\x6d\x2e\x20\x20\x54"
  9151. "\x68\x69\x73\x2a\x54\x01\x02\x66"
  9152. "\x69\x6e\x65\x73\x94\x06\x05\x61"
  9153. "\x70\x70\x6c\x69\x63\x61\x74\x76"
  9154. "\x0a\x6f\x66\x88\x02\x60\x09\x27"
  9155. "\xf0\x00\x0c\x20\x75\x73\x65\x64"
  9156. "\x20\x69\x6e\x20\x55\x42\x49\x46"
  9157. "\x53\x2e\x11\x00\x00",
  9158. },
  9159. };
  9160. static struct comp_testvec lzo_decomp_tv_template[] = {
  9161. {
  9162. .inlen = 133,
  9163. .outlen = 159,
  9164. .input = "\x00\x2b\x54\x68\x69\x73\x20\x64"
  9165. "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
  9166. "\x64\x65\x73\x63\x72\x69\x62\x65"
  9167. "\x73\x20\x61\x20\x63\x6f\x6d\x70"
  9168. "\x72\x65\x73\x73\x69\x6f\x6e\x20"
  9169. "\x6d\x65\x74\x68\x6f\x64\x20\x62"
  9170. "\x61\x73\x65\x64\x20\x6f\x6e\x20"
  9171. "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
  9172. "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
  9173. "\x69\x74\x68\x6d\x2e\x20\x20\x54"
  9174. "\x68\x69\x73\x2a\x54\x01\x02\x66"
  9175. "\x69\x6e\x65\x73\x94\x06\x05\x61"
  9176. "\x70\x70\x6c\x69\x63\x61\x74\x76"
  9177. "\x0a\x6f\x66\x88\x02\x60\x09\x27"
  9178. "\xf0\x00\x0c\x20\x75\x73\x65\x64"
  9179. "\x20\x69\x6e\x20\x55\x42\x49\x46"
  9180. "\x53\x2e\x11\x00\x00",
  9181. .output = "This document describes a compression method based on the LZO "
  9182. "compression algorithm. This document defines the application of "
  9183. "the LZO algorithm used in UBIFS.",
  9184. }, {
  9185. .inlen = 46,
  9186. .outlen = 70,
  9187. .input = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
  9188. "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
  9189. "\x64\x20\x73\x68\x61\x72\x65\x20"
  9190. "\x74\x68\x65\x20\x73\x6f\x66\x74"
  9191. "\x77\x70\x01\x01\x4a\x6f\x69\x6e"
  9192. "\x3d\x88\x00\x11\x00\x00",
  9193. .output = "Join us now and share the software "
  9194. "Join us now and share the software ",
  9195. },
  9196. };
  9197. /*
  9198. * Michael MIC test vectors from IEEE 802.11i
  9199. */
  9200. #define MICHAEL_MIC_TEST_VECTORS 6
  9201. static struct hash_testvec michael_mic_tv_template[] = {
  9202. {
  9203. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  9204. .ksize = 8,
  9205. .plaintext = zeroed_string,
  9206. .psize = 0,
  9207. .digest = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
  9208. },
  9209. {
  9210. .key = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
  9211. .ksize = 8,
  9212. .plaintext = "M",
  9213. .psize = 1,
  9214. .digest = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
  9215. },
  9216. {
  9217. .key = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
  9218. .ksize = 8,
  9219. .plaintext = "Mi",
  9220. .psize = 2,
  9221. .digest = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
  9222. },
  9223. {
  9224. .key = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
  9225. .ksize = 8,
  9226. .plaintext = "Mic",
  9227. .psize = 3,
  9228. .digest = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
  9229. },
  9230. {
  9231. .key = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
  9232. .ksize = 8,
  9233. .plaintext = "Mich",
  9234. .psize = 4,
  9235. .digest = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
  9236. },
  9237. {
  9238. .key = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
  9239. .ksize = 8,
  9240. .plaintext = "Michael",
  9241. .psize = 7,
  9242. .digest = "\x0a\x94\x2b\x12\x4e\xca\xa5\x46",
  9243. }
  9244. };
  9245. /*
  9246. * CRC32C test vectors
  9247. */
  9248. #define CRC32C_TEST_VECTORS 14
  9249. static struct hash_testvec crc32c_tv_template[] = {
  9250. {
  9251. .psize = 0,
  9252. .digest = "\x00\x00\x00\x00",
  9253. },
  9254. {
  9255. .key = "\x87\xa9\xcb\xed",
  9256. .ksize = 4,
  9257. .psize = 0,
  9258. .digest = "\x78\x56\x34\x12",
  9259. },
  9260. {
  9261. .key = "\xff\xff\xff\xff",
  9262. .ksize = 4,
  9263. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  9264. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  9265. "\x11\x12\x13\x14\x15\x16\x17\x18"
  9266. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  9267. "\x21\x22\x23\x24\x25\x26\x27\x28",
  9268. .psize = 40,
  9269. .digest = "\x7f\x15\x2c\x0e",
  9270. },
  9271. {
  9272. .key = "\xff\xff\xff\xff",
  9273. .ksize = 4,
  9274. .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  9275. "\x31\x32\x33\x34\x35\x36\x37\x38"
  9276. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  9277. "\x41\x42\x43\x44\x45\x46\x47\x48"
  9278. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
  9279. .psize = 40,
  9280. .digest = "\xf6\xeb\x80\xe9",
  9281. },
  9282. {
  9283. .key = "\xff\xff\xff\xff",
  9284. .ksize = 4,
  9285. .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
  9286. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  9287. "\x61\x62\x63\x64\x65\x66\x67\x68"
  9288. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  9289. "\x71\x72\x73\x74\x75\x76\x77\x78",
  9290. .psize = 40,
  9291. .digest = "\xed\xbd\x74\xde",
  9292. },
  9293. {
  9294. .key = "\xff\xff\xff\xff",
  9295. .ksize = 4,
  9296. .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  9297. "\x81\x82\x83\x84\x85\x86\x87\x88"
  9298. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  9299. "\x91\x92\x93\x94\x95\x96\x97\x98"
  9300. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
  9301. .psize = 40,
  9302. .digest = "\x62\xc8\x79\xd5",
  9303. },
  9304. {
  9305. .key = "\xff\xff\xff\xff",
  9306. .ksize = 4,
  9307. .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  9308. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  9309. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  9310. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  9311. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
  9312. .psize = 40,
  9313. .digest = "\xd0\x9a\x97\xba",
  9314. },
  9315. {
  9316. .key = "\xff\xff\xff\xff",
  9317. .ksize = 4,
  9318. .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  9319. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  9320. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  9321. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  9322. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  9323. .psize = 40,
  9324. .digest = "\x13\xd9\x29\x2b",
  9325. },
  9326. {
  9327. .key = "\x80\xea\xd3\xf1",
  9328. .ksize = 4,
  9329. .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  9330. "\x31\x32\x33\x34\x35\x36\x37\x38"
  9331. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  9332. "\x41\x42\x43\x44\x45\x46\x47\x48"
  9333. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
  9334. .psize = 40,
  9335. .digest = "\x0c\xb5\xe2\xa2",
  9336. },
  9337. {
  9338. .key = "\xf3\x4a\x1d\x5d",
  9339. .ksize = 4,
  9340. .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
  9341. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  9342. "\x61\x62\x63\x64\x65\x66\x67\x68"
  9343. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  9344. "\x71\x72\x73\x74\x75\x76\x77\x78",
  9345. .psize = 40,
  9346. .digest = "\xd1\x7f\xfb\xa6",
  9347. },
  9348. {
  9349. .key = "\x2e\x80\x04\x59",
  9350. .ksize = 4,
  9351. .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  9352. "\x81\x82\x83\x84\x85\x86\x87\x88"
  9353. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  9354. "\x91\x92\x93\x94\x95\x96\x97\x98"
  9355. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
  9356. .psize = 40,
  9357. .digest = "\x59\x33\xe6\x7a",
  9358. },
  9359. {
  9360. .key = "\xa6\xcc\x19\x85",
  9361. .ksize = 4,
  9362. .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  9363. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  9364. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  9365. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  9366. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
  9367. .psize = 40,
  9368. .digest = "\xbe\x03\x01\xd2",
  9369. },
  9370. {
  9371. .key = "\x41\xfc\xfe\x2d",
  9372. .ksize = 4,
  9373. .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  9374. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  9375. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  9376. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  9377. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  9378. .psize = 40,
  9379. .digest = "\x75\xd3\xc5\x24",
  9380. },
  9381. {
  9382. .key = "\xff\xff\xff\xff",
  9383. .ksize = 4,
  9384. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  9385. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  9386. "\x11\x12\x13\x14\x15\x16\x17\x18"
  9387. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  9388. "\x21\x22\x23\x24\x25\x26\x27\x28"
  9389. "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  9390. "\x31\x32\x33\x34\x35\x36\x37\x38"
  9391. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  9392. "\x41\x42\x43\x44\x45\x46\x47\x48"
  9393. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
  9394. "\x51\x52\x53\x54\x55\x56\x57\x58"
  9395. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  9396. "\x61\x62\x63\x64\x65\x66\x67\x68"
  9397. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  9398. "\x71\x72\x73\x74\x75\x76\x77\x78"
  9399. "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  9400. "\x81\x82\x83\x84\x85\x86\x87\x88"
  9401. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  9402. "\x91\x92\x93\x94\x95\x96\x97\x98"
  9403. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
  9404. "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  9405. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  9406. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  9407. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  9408. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
  9409. "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  9410. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  9411. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  9412. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  9413. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  9414. .psize = 240,
  9415. .digest = "\x75\xd3\xc5\x24",
  9416. .np = 2,
  9417. .tap = { 31, 209 }
  9418. },
  9419. };
  9420. #endif /* _CRYPTO_TESTMGR_H */