testmgr.h 328 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000
  1. /*
  2. * Algorithm testing framework and tests.
  3. *
  4. * Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
  5. * Copyright (c) 2002 Jean-Francois Dive <jef@linuxbe.org>
  6. * Copyright (c) 2007 Nokia Siemens Networks
  7. * Copyright (c) 2008 Herbert Xu <herbert@gondor.apana.org.au>
  8. *
  9. * Updated RFC4106 AES-GCM testing. Some test vectors were taken from
  10. * http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/proposedmodes/
  11. * gcm/gcm-test-vectors.tar.gz
  12. * Authors: Aidan O'Mahony (aidan.o.mahony@intel.com)
  13. * Adrian Hoban <adrian.hoban@intel.com>
  14. * Gabriele Paoloni <gabriele.paoloni@intel.com>
  15. * Tadeusz Struk (tadeusz.struk@intel.com)
  16. * Copyright (c) 2010, Intel Corporation.
  17. *
  18. * This program is free software; you can redistribute it and/or modify it
  19. * under the terms of the GNU General Public License as published by the Free
  20. * Software Foundation; either version 2 of the License, or (at your option)
  21. * any later version.
  22. *
  23. */
  24. #ifndef _CRYPTO_TESTMGR_H
  25. #define _CRYPTO_TESTMGR_H
  26. #include <linux/netlink.h>
  27. #include <linux/zlib.h>
  28. #include <crypto/compress.h>
  29. #define MAX_DIGEST_SIZE 64
  30. #define MAX_TAP 8
  31. #define MAX_KEYLEN 56
  32. #define MAX_IVLEN 32
  33. struct hash_testvec {
  34. /* only used with keyed hash algorithms */
  35. char *key;
  36. char *plaintext;
  37. char *digest;
  38. unsigned char tap[MAX_TAP];
  39. unsigned char psize;
  40. unsigned char np;
  41. unsigned char ksize;
  42. };
  43. struct cipher_testvec {
  44. char *key;
  45. char *iv;
  46. char *input;
  47. char *result;
  48. unsigned short tap[MAX_TAP];
  49. int np;
  50. unsigned char fail;
  51. unsigned char wk; /* weak key flag */
  52. unsigned char klen;
  53. unsigned short ilen;
  54. unsigned short rlen;
  55. };
  56. struct aead_testvec {
  57. char *key;
  58. char *iv;
  59. char *input;
  60. char *assoc;
  61. char *result;
  62. unsigned char tap[MAX_TAP];
  63. unsigned char atap[MAX_TAP];
  64. int np;
  65. int anp;
  66. unsigned char fail;
  67. unsigned char novrfy; /* ccm dec verification failure expected */
  68. unsigned char wk; /* weak key flag */
  69. unsigned char klen;
  70. unsigned short ilen;
  71. unsigned short alen;
  72. unsigned short rlen;
  73. };
  74. struct cprng_testvec {
  75. char *key;
  76. char *dt;
  77. char *v;
  78. char *result;
  79. unsigned char klen;
  80. unsigned short dtlen;
  81. unsigned short vlen;
  82. unsigned short rlen;
  83. unsigned short loops;
  84. };
  85. static char zeroed_string[48];
  86. /*
  87. * MD4 test vectors from RFC1320
  88. */
  89. #define MD4_TEST_VECTORS 7
  90. static struct hash_testvec md4_tv_template [] = {
  91. {
  92. .plaintext = "",
  93. .digest = "\x31\xd6\xcf\xe0\xd1\x6a\xe9\x31"
  94. "\xb7\x3c\x59\xd7\xe0\xc0\x89\xc0",
  95. }, {
  96. .plaintext = "a",
  97. .psize = 1,
  98. .digest = "\xbd\xe5\x2c\xb3\x1d\xe3\x3e\x46"
  99. "\x24\x5e\x05\xfb\xdb\xd6\xfb\x24",
  100. }, {
  101. .plaintext = "abc",
  102. .psize = 3,
  103. .digest = "\xa4\x48\x01\x7a\xaf\x21\xd8\x52"
  104. "\x5f\xc1\x0a\xe8\x7a\xa6\x72\x9d",
  105. }, {
  106. .plaintext = "message digest",
  107. .psize = 14,
  108. .digest = "\xd9\x13\x0a\x81\x64\x54\x9f\xe8"
  109. "\x18\x87\x48\x06\xe1\xc7\x01\x4b",
  110. }, {
  111. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  112. .psize = 26,
  113. .digest = "\xd7\x9e\x1c\x30\x8a\xa5\xbb\xcd"
  114. "\xee\xa8\xed\x63\xdf\x41\x2d\xa9",
  115. .np = 2,
  116. .tap = { 13, 13 },
  117. }, {
  118. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
  119. .psize = 62,
  120. .digest = "\x04\x3f\x85\x82\xf2\x41\xdb\x35"
  121. "\x1c\xe6\x27\xe1\x53\xe7\xf0\xe4",
  122. }, {
  123. .plaintext = "123456789012345678901234567890123456789012345678901234567890123"
  124. "45678901234567890",
  125. .psize = 80,
  126. .digest = "\xe3\x3b\x4d\xdc\x9c\x38\xf2\x19"
  127. "\x9c\x3e\x7b\x16\x4f\xcc\x05\x36",
  128. },
  129. };
  130. /*
  131. * MD5 test vectors from RFC1321
  132. */
  133. #define MD5_TEST_VECTORS 7
  134. static struct hash_testvec md5_tv_template[] = {
  135. {
  136. .digest = "\xd4\x1d\x8c\xd9\x8f\x00\xb2\x04"
  137. "\xe9\x80\x09\x98\xec\xf8\x42\x7e",
  138. }, {
  139. .plaintext = "a",
  140. .psize = 1,
  141. .digest = "\x0c\xc1\x75\xb9\xc0\xf1\xb6\xa8"
  142. "\x31\xc3\x99\xe2\x69\x77\x26\x61",
  143. }, {
  144. .plaintext = "abc",
  145. .psize = 3,
  146. .digest = "\x90\x01\x50\x98\x3c\xd2\x4f\xb0"
  147. "\xd6\x96\x3f\x7d\x28\xe1\x7f\x72",
  148. }, {
  149. .plaintext = "message digest",
  150. .psize = 14,
  151. .digest = "\xf9\x6b\x69\x7d\x7c\xb7\x93\x8d"
  152. "\x52\x5a\x2f\x31\xaa\xf1\x61\xd0",
  153. }, {
  154. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  155. .psize = 26,
  156. .digest = "\xc3\xfc\xd3\xd7\x61\x92\xe4\x00"
  157. "\x7d\xfb\x49\x6c\xca\x67\xe1\x3b",
  158. .np = 2,
  159. .tap = {13, 13}
  160. }, {
  161. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
  162. .psize = 62,
  163. .digest = "\xd1\x74\xab\x98\xd2\x77\xd9\xf5"
  164. "\xa5\x61\x1c\x2c\x9f\x41\x9d\x9f",
  165. }, {
  166. .plaintext = "12345678901234567890123456789012345678901234567890123456789012"
  167. "345678901234567890",
  168. .psize = 80,
  169. .digest = "\x57\xed\xf4\xa2\x2b\xe3\xc9\x55"
  170. "\xac\x49\xda\x2e\x21\x07\xb6\x7a",
  171. }
  172. };
  173. /*
  174. * RIPEMD-128 test vectors from ISO/IEC 10118-3:2004(E)
  175. */
  176. #define RMD128_TEST_VECTORS 10
  177. static struct hash_testvec rmd128_tv_template[] = {
  178. {
  179. .digest = "\xcd\xf2\x62\x13\xa1\x50\xdc\x3e"
  180. "\xcb\x61\x0f\x18\xf6\xb3\x8b\x46",
  181. }, {
  182. .plaintext = "a",
  183. .psize = 1,
  184. .digest = "\x86\xbe\x7a\xfa\x33\x9d\x0f\xc7"
  185. "\xcf\xc7\x85\xe7\x2f\x57\x8d\x33",
  186. }, {
  187. .plaintext = "abc",
  188. .psize = 3,
  189. .digest = "\xc1\x4a\x12\x19\x9c\x66\xe4\xba"
  190. "\x84\x63\x6b\x0f\x69\x14\x4c\x77",
  191. }, {
  192. .plaintext = "message digest",
  193. .psize = 14,
  194. .digest = "\x9e\x32\x7b\x3d\x6e\x52\x30\x62"
  195. "\xaf\xc1\x13\x2d\x7d\xf9\xd1\xb8",
  196. }, {
  197. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  198. .psize = 26,
  199. .digest = "\xfd\x2a\xa6\x07\xf7\x1d\xc8\xf5"
  200. "\x10\x71\x49\x22\xb3\x71\x83\x4e",
  201. }, {
  202. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
  203. "fghijklmnopqrstuvwxyz0123456789",
  204. .psize = 62,
  205. .digest = "\xd1\xe9\x59\xeb\x17\x9c\x91\x1f"
  206. "\xae\xa4\x62\x4c\x60\xc5\xc7\x02",
  207. }, {
  208. .plaintext = "1234567890123456789012345678901234567890"
  209. "1234567890123456789012345678901234567890",
  210. .psize = 80,
  211. .digest = "\x3f\x45\xef\x19\x47\x32\xc2\xdb"
  212. "\xb2\xc4\xa2\xc7\x69\x79\x5f\xa3",
  213. }, {
  214. .plaintext = "abcdbcdecdefdefgefghfghighij"
  215. "hijkijkljklmklmnlmnomnopnopq",
  216. .psize = 56,
  217. .digest = "\xa1\xaa\x06\x89\xd0\xfa\xfa\x2d"
  218. "\xdc\x22\xe8\x8b\x49\x13\x3a\x06",
  219. .np = 2,
  220. .tap = { 28, 28 },
  221. }, {
  222. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
  223. "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
  224. "lmnopqrsmnopqrstnopqrstu",
  225. .psize = 112,
  226. .digest = "\xd4\xec\xc9\x13\xe1\xdf\x77\x6b"
  227. "\xf4\x8d\xe9\xd5\x5b\x1f\x25\x46",
  228. }, {
  229. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  230. .psize = 32,
  231. .digest = "\x13\xfc\x13\xe8\xef\xff\x34\x7d"
  232. "\xe1\x93\xff\x46\xdb\xac\xcf\xd4",
  233. }
  234. };
  235. /*
  236. * RIPEMD-160 test vectors from ISO/IEC 10118-3:2004(E)
  237. */
  238. #define RMD160_TEST_VECTORS 10
  239. static struct hash_testvec rmd160_tv_template[] = {
  240. {
  241. .digest = "\x9c\x11\x85\xa5\xc5\xe9\xfc\x54\x61\x28"
  242. "\x08\x97\x7e\xe8\xf5\x48\xb2\x25\x8d\x31",
  243. }, {
  244. .plaintext = "a",
  245. .psize = 1,
  246. .digest = "\x0b\xdc\x9d\x2d\x25\x6b\x3e\xe9\xda\xae"
  247. "\x34\x7b\xe6\xf4\xdc\x83\x5a\x46\x7f\xfe",
  248. }, {
  249. .plaintext = "abc",
  250. .psize = 3,
  251. .digest = "\x8e\xb2\x08\xf7\xe0\x5d\x98\x7a\x9b\x04"
  252. "\x4a\x8e\x98\xc6\xb0\x87\xf1\x5a\x0b\xfc",
  253. }, {
  254. .plaintext = "message digest",
  255. .psize = 14,
  256. .digest = "\x5d\x06\x89\xef\x49\xd2\xfa\xe5\x72\xb8"
  257. "\x81\xb1\x23\xa8\x5f\xfa\x21\x59\x5f\x36",
  258. }, {
  259. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  260. .psize = 26,
  261. .digest = "\xf7\x1c\x27\x10\x9c\x69\x2c\x1b\x56\xbb"
  262. "\xdc\xeb\x5b\x9d\x28\x65\xb3\x70\x8d\xbc",
  263. }, {
  264. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
  265. "fghijklmnopqrstuvwxyz0123456789",
  266. .psize = 62,
  267. .digest = "\xb0\xe2\x0b\x6e\x31\x16\x64\x02\x86\xed"
  268. "\x3a\x87\xa5\x71\x30\x79\xb2\x1f\x51\x89",
  269. }, {
  270. .plaintext = "1234567890123456789012345678901234567890"
  271. "1234567890123456789012345678901234567890",
  272. .psize = 80,
  273. .digest = "\x9b\x75\x2e\x45\x57\x3d\x4b\x39\xf4\xdb"
  274. "\xd3\x32\x3c\xab\x82\xbf\x63\x32\x6b\xfb",
  275. }, {
  276. .plaintext = "abcdbcdecdefdefgefghfghighij"
  277. "hijkijkljklmklmnlmnomnopnopq",
  278. .psize = 56,
  279. .digest = "\x12\xa0\x53\x38\x4a\x9c\x0c\x88\xe4\x05"
  280. "\xa0\x6c\x27\xdc\xf4\x9a\xda\x62\xeb\x2b",
  281. .np = 2,
  282. .tap = { 28, 28 },
  283. }, {
  284. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
  285. "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
  286. "lmnopqrsmnopqrstnopqrstu",
  287. .psize = 112,
  288. .digest = "\x6f\x3f\xa3\x9b\x6b\x50\x3c\x38\x4f\x91"
  289. "\x9a\x49\xa7\xaa\x5c\x2c\x08\xbd\xfb\x45",
  290. }, {
  291. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  292. .psize = 32,
  293. .digest = "\x94\xc2\x64\x11\x54\x04\xe6\x33\x79\x0d"
  294. "\xfc\xc8\x7b\x58\x7d\x36\x77\x06\x7d\x9f",
  295. }
  296. };
  297. /*
  298. * RIPEMD-256 test vectors
  299. */
  300. #define RMD256_TEST_VECTORS 8
  301. static struct hash_testvec rmd256_tv_template[] = {
  302. {
  303. .digest = "\x02\xba\x4c\x4e\x5f\x8e\xcd\x18"
  304. "\x77\xfc\x52\xd6\x4d\x30\xe3\x7a"
  305. "\x2d\x97\x74\xfb\x1e\x5d\x02\x63"
  306. "\x80\xae\x01\x68\xe3\xc5\x52\x2d",
  307. }, {
  308. .plaintext = "a",
  309. .psize = 1,
  310. .digest = "\xf9\x33\x3e\x45\xd8\x57\xf5\xd9"
  311. "\x0a\x91\xba\xb7\x0a\x1e\xba\x0c"
  312. "\xfb\x1b\xe4\xb0\x78\x3c\x9a\xcf"
  313. "\xcd\x88\x3a\x91\x34\x69\x29\x25",
  314. }, {
  315. .plaintext = "abc",
  316. .psize = 3,
  317. .digest = "\xaf\xbd\x6e\x22\x8b\x9d\x8c\xbb"
  318. "\xce\xf5\xca\x2d\x03\xe6\xdb\xa1"
  319. "\x0a\xc0\xbc\x7d\xcb\xe4\x68\x0e"
  320. "\x1e\x42\xd2\xe9\x75\x45\x9b\x65",
  321. }, {
  322. .plaintext = "message digest",
  323. .psize = 14,
  324. .digest = "\x87\xe9\x71\x75\x9a\x1c\xe4\x7a"
  325. "\x51\x4d\x5c\x91\x4c\x39\x2c\x90"
  326. "\x18\xc7\xc4\x6b\xc1\x44\x65\x55"
  327. "\x4a\xfc\xdf\x54\xa5\x07\x0c\x0e",
  328. }, {
  329. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  330. .psize = 26,
  331. .digest = "\x64\x9d\x30\x34\x75\x1e\xa2\x16"
  332. "\x77\x6b\xf9\xa1\x8a\xcc\x81\xbc"
  333. "\x78\x96\x11\x8a\x51\x97\x96\x87"
  334. "\x82\xdd\x1f\xd9\x7d\x8d\x51\x33",
  335. }, {
  336. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
  337. "fghijklmnopqrstuvwxyz0123456789",
  338. .psize = 62,
  339. .digest = "\x57\x40\xa4\x08\xac\x16\xb7\x20"
  340. "\xb8\x44\x24\xae\x93\x1c\xbb\x1f"
  341. "\xe3\x63\xd1\xd0\xbf\x40\x17\xf1"
  342. "\xa8\x9f\x7e\xa6\xde\x77\xa0\xb8",
  343. }, {
  344. .plaintext = "1234567890123456789012345678901234567890"
  345. "1234567890123456789012345678901234567890",
  346. .psize = 80,
  347. .digest = "\x06\xfd\xcc\x7a\x40\x95\x48\xaa"
  348. "\xf9\x13\x68\xc0\x6a\x62\x75\xb5"
  349. "\x53\xe3\xf0\x99\xbf\x0e\xa4\xed"
  350. "\xfd\x67\x78\xdf\x89\xa8\x90\xdd",
  351. }, {
  352. .plaintext = "abcdbcdecdefdefgefghfghighij"
  353. "hijkijkljklmklmnlmnomnopnopq",
  354. .psize = 56,
  355. .digest = "\x38\x43\x04\x55\x83\xaa\xc6\xc8"
  356. "\xc8\xd9\x12\x85\x73\xe7\xa9\x80"
  357. "\x9a\xfb\x2a\x0f\x34\xcc\xc3\x6e"
  358. "\xa9\xe7\x2f\x16\xf6\x36\x8e\x3f",
  359. .np = 2,
  360. .tap = { 28, 28 },
  361. }
  362. };
  363. /*
  364. * RIPEMD-320 test vectors
  365. */
  366. #define RMD320_TEST_VECTORS 8
  367. static struct hash_testvec rmd320_tv_template[] = {
  368. {
  369. .digest = "\x22\xd6\x5d\x56\x61\x53\x6c\xdc\x75\xc1"
  370. "\xfd\xf5\xc6\xde\x7b\x41\xb9\xf2\x73\x25"
  371. "\xeb\xc6\x1e\x85\x57\x17\x7d\x70\x5a\x0e"
  372. "\xc8\x80\x15\x1c\x3a\x32\xa0\x08\x99\xb8",
  373. }, {
  374. .plaintext = "a",
  375. .psize = 1,
  376. .digest = "\xce\x78\x85\x06\x38\xf9\x26\x58\xa5\xa5"
  377. "\x85\x09\x75\x79\x92\x6d\xda\x66\x7a\x57"
  378. "\x16\x56\x2c\xfc\xf6\xfb\xe7\x7f\x63\x54"
  379. "\x2f\x99\xb0\x47\x05\xd6\x97\x0d\xff\x5d",
  380. }, {
  381. .plaintext = "abc",
  382. .psize = 3,
  383. .digest = "\xde\x4c\x01\xb3\x05\x4f\x89\x30\xa7\x9d"
  384. "\x09\xae\x73\x8e\x92\x30\x1e\x5a\x17\x08"
  385. "\x5b\xef\xfd\xc1\xb8\xd1\x16\x71\x3e\x74"
  386. "\xf8\x2f\xa9\x42\xd6\x4c\xdb\xc4\x68\x2d",
  387. }, {
  388. .plaintext = "message digest",
  389. .psize = 14,
  390. .digest = "\x3a\x8e\x28\x50\x2e\xd4\x5d\x42\x2f\x68"
  391. "\x84\x4f\x9d\xd3\x16\xe7\xb9\x85\x33\xfa"
  392. "\x3f\x2a\x91\xd2\x9f\x84\xd4\x25\xc8\x8d"
  393. "\x6b\x4e\xff\x72\x7d\xf6\x6a\x7c\x01\x97",
  394. }, {
  395. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  396. .psize = 26,
  397. .digest = "\xca\xbd\xb1\x81\x0b\x92\x47\x0a\x20\x93"
  398. "\xaa\x6b\xce\x05\x95\x2c\x28\x34\x8c\xf4"
  399. "\x3f\xf6\x08\x41\x97\x51\x66\xbb\x40\xed"
  400. "\x23\x40\x04\xb8\x82\x44\x63\xe6\xb0\x09",
  401. }, {
  402. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
  403. "fghijklmnopqrstuvwxyz0123456789",
  404. .psize = 62,
  405. .digest = "\xed\x54\x49\x40\xc8\x6d\x67\xf2\x50\xd2"
  406. "\x32\xc3\x0b\x7b\x3e\x57\x70\xe0\xc6\x0c"
  407. "\x8c\xb9\xa4\xca\xfe\x3b\x11\x38\x8a\xf9"
  408. "\x92\x0e\x1b\x99\x23\x0b\x84\x3c\x86\xa4",
  409. }, {
  410. .plaintext = "1234567890123456789012345678901234567890"
  411. "1234567890123456789012345678901234567890",
  412. .psize = 80,
  413. .digest = "\x55\x78\x88\xaf\x5f\x6d\x8e\xd6\x2a\xb6"
  414. "\x69\x45\xc6\xd2\xa0\xa4\x7e\xcd\x53\x41"
  415. "\xe9\x15\xeb\x8f\xea\x1d\x05\x24\x95\x5f"
  416. "\x82\x5d\xc7\x17\xe4\xa0\x08\xab\x2d\x42",
  417. }, {
  418. .plaintext = "abcdbcdecdefdefgefghfghighij"
  419. "hijkijkljklmklmnlmnomnopnopq",
  420. .psize = 56,
  421. .digest = "\xd0\x34\xa7\x95\x0c\xf7\x22\x02\x1b\xa4"
  422. "\xb8\x4d\xf7\x69\xa5\xde\x20\x60\xe2\x59"
  423. "\xdf\x4c\x9b\xb4\xa4\x26\x8c\x0e\x93\x5b"
  424. "\xbc\x74\x70\xa9\x69\xc9\xd0\x72\xa1\xac",
  425. .np = 2,
  426. .tap = { 28, 28 },
  427. }
  428. };
  429. /*
  430. * SHA1 test vectors from from FIPS PUB 180-1
  431. * Long vector from CAVS 5.0
  432. */
  433. #define SHA1_TEST_VECTORS 3
  434. static struct hash_testvec sha1_tv_template[] = {
  435. {
  436. .plaintext = "abc",
  437. .psize = 3,
  438. .digest = "\xa9\x99\x3e\x36\x47\x06\x81\x6a\xba\x3e"
  439. "\x25\x71\x78\x50\xc2\x6c\x9c\xd0\xd8\x9d",
  440. }, {
  441. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  442. .psize = 56,
  443. .digest = "\x84\x98\x3e\x44\x1c\x3b\xd2\x6e\xba\xae"
  444. "\x4a\xa1\xf9\x51\x29\xe5\xe5\x46\x70\xf1",
  445. .np = 2,
  446. .tap = { 28, 28 }
  447. }, {
  448. .plaintext = "\xec\x29\x56\x12\x44\xed\xe7\x06"
  449. "\xb6\xeb\x30\xa1\xc3\x71\xd7\x44"
  450. "\x50\xa1\x05\xc3\xf9\x73\x5f\x7f"
  451. "\xa9\xfe\x38\xcf\x67\xf3\x04\xa5"
  452. "\x73\x6a\x10\x6e\x92\xe1\x71\x39"
  453. "\xa6\x81\x3b\x1c\x81\xa4\xf3\xd3"
  454. "\xfb\x95\x46\xab\x42\x96\xfa\x9f"
  455. "\x72\x28\x26\xc0\x66\x86\x9e\xda"
  456. "\xcd\x73\xb2\x54\x80\x35\x18\x58"
  457. "\x13\xe2\x26\x34\xa9\xda\x44\x00"
  458. "\x0d\x95\xa2\x81\xff\x9f\x26\x4e"
  459. "\xcc\xe0\xa9\x31\x22\x21\x62\xd0"
  460. "\x21\xcc\xa2\x8d\xb5\xf3\xc2\xaa"
  461. "\x24\x94\x5a\xb1\xe3\x1c\xb4\x13"
  462. "\xae\x29\x81\x0f\xd7\x94\xca\xd5"
  463. "\xdf\xaf\x29\xec\x43\xcb\x38\xd1"
  464. "\x98\xfe\x4a\xe1\xda\x23\x59\x78"
  465. "\x02\x21\x40\x5b\xd6\x71\x2a\x53"
  466. "\x05\xda\x4b\x1b\x73\x7f\xce\x7c"
  467. "\xd2\x1c\x0e\xb7\x72\x8d\x08\x23"
  468. "\x5a\x90\x11",
  469. .psize = 163,
  470. .digest = "\x97\x01\x11\xc4\xe7\x7b\xcc\x88\xcc\x20"
  471. "\x45\x9c\x02\xb6\x9b\x4a\xa8\xf5\x82\x17",
  472. .np = 4,
  473. .tap = { 63, 64, 31, 5 }
  474. }
  475. };
  476. /*
  477. * SHA224 test vectors from from FIPS PUB 180-2
  478. */
  479. #define SHA224_TEST_VECTORS 2
  480. static struct hash_testvec sha224_tv_template[] = {
  481. {
  482. .plaintext = "abc",
  483. .psize = 3,
  484. .digest = "\x23\x09\x7D\x22\x34\x05\xD8\x22"
  485. "\x86\x42\xA4\x77\xBD\xA2\x55\xB3"
  486. "\x2A\xAD\xBC\xE4\xBD\xA0\xB3\xF7"
  487. "\xE3\x6C\x9D\xA7",
  488. }, {
  489. .plaintext =
  490. "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  491. .psize = 56,
  492. .digest = "\x75\x38\x8B\x16\x51\x27\x76\xCC"
  493. "\x5D\xBA\x5D\xA1\xFD\x89\x01\x50"
  494. "\xB0\xC6\x45\x5C\xB4\xF5\x8B\x19"
  495. "\x52\x52\x25\x25",
  496. .np = 2,
  497. .tap = { 28, 28 }
  498. }
  499. };
  500. /*
  501. * SHA256 test vectors from from NIST
  502. */
  503. #define SHA256_TEST_VECTORS 2
  504. static struct hash_testvec sha256_tv_template[] = {
  505. {
  506. .plaintext = "abc",
  507. .psize = 3,
  508. .digest = "\xba\x78\x16\xbf\x8f\x01\xcf\xea"
  509. "\x41\x41\x40\xde\x5d\xae\x22\x23"
  510. "\xb0\x03\x61\xa3\x96\x17\x7a\x9c"
  511. "\xb4\x10\xff\x61\xf2\x00\x15\xad",
  512. }, {
  513. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  514. .psize = 56,
  515. .digest = "\x24\x8d\x6a\x61\xd2\x06\x38\xb8"
  516. "\xe5\xc0\x26\x93\x0c\x3e\x60\x39"
  517. "\xa3\x3c\xe4\x59\x64\xff\x21\x67"
  518. "\xf6\xec\xed\xd4\x19\xdb\x06\xc1",
  519. .np = 2,
  520. .tap = { 28, 28 }
  521. },
  522. };
  523. /*
  524. * SHA384 test vectors from from NIST and kerneli
  525. */
  526. #define SHA384_TEST_VECTORS 4
  527. static struct hash_testvec sha384_tv_template[] = {
  528. {
  529. .plaintext= "abc",
  530. .psize = 3,
  531. .digest = "\xcb\x00\x75\x3f\x45\xa3\x5e\x8b"
  532. "\xb5\xa0\x3d\x69\x9a\xc6\x50\x07"
  533. "\x27\x2c\x32\xab\x0e\xde\xd1\x63"
  534. "\x1a\x8b\x60\x5a\x43\xff\x5b\xed"
  535. "\x80\x86\x07\x2b\xa1\xe7\xcc\x23"
  536. "\x58\xba\xec\xa1\x34\xc8\x25\xa7",
  537. }, {
  538. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  539. .psize = 56,
  540. .digest = "\x33\x91\xfd\xdd\xfc\x8d\xc7\x39"
  541. "\x37\x07\xa6\x5b\x1b\x47\x09\x39"
  542. "\x7c\xf8\xb1\xd1\x62\xaf\x05\xab"
  543. "\xfe\x8f\x45\x0d\xe5\xf3\x6b\xc6"
  544. "\xb0\x45\x5a\x85\x20\xbc\x4e\x6f"
  545. "\x5f\xe9\x5b\x1f\xe3\xc8\x45\x2b",
  546. }, {
  547. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
  548. "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
  549. .psize = 112,
  550. .digest = "\x09\x33\x0c\x33\xf7\x11\x47\xe8"
  551. "\x3d\x19\x2f\xc7\x82\xcd\x1b\x47"
  552. "\x53\x11\x1b\x17\x3b\x3b\x05\xd2"
  553. "\x2f\xa0\x80\x86\xe3\xb0\xf7\x12"
  554. "\xfc\xc7\xc7\x1a\x55\x7e\x2d\xb9"
  555. "\x66\xc3\xe9\xfa\x91\x74\x60\x39",
  556. }, {
  557. .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
  558. "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
  559. .psize = 104,
  560. .digest = "\x3d\x20\x89\x73\xab\x35\x08\xdb"
  561. "\xbd\x7e\x2c\x28\x62\xba\x29\x0a"
  562. "\xd3\x01\x0e\x49\x78\xc1\x98\xdc"
  563. "\x4d\x8f\xd0\x14\xe5\x82\x82\x3a"
  564. "\x89\xe1\x6f\x9b\x2a\x7b\xbc\x1a"
  565. "\xc9\x38\xe2\xd1\x99\xe8\xbe\xa4",
  566. .np = 4,
  567. .tap = { 26, 26, 26, 26 }
  568. },
  569. };
  570. /*
  571. * SHA512 test vectors from from NIST and kerneli
  572. */
  573. #define SHA512_TEST_VECTORS 4
  574. static struct hash_testvec sha512_tv_template[] = {
  575. {
  576. .plaintext = "abc",
  577. .psize = 3,
  578. .digest = "\xdd\xaf\x35\xa1\x93\x61\x7a\xba"
  579. "\xcc\x41\x73\x49\xae\x20\x41\x31"
  580. "\x12\xe6\xfa\x4e\x89\xa9\x7e\xa2"
  581. "\x0a\x9e\xee\xe6\x4b\x55\xd3\x9a"
  582. "\x21\x92\x99\x2a\x27\x4f\xc1\xa8"
  583. "\x36\xba\x3c\x23\xa3\xfe\xeb\xbd"
  584. "\x45\x4d\x44\x23\x64\x3c\xe8\x0e"
  585. "\x2a\x9a\xc9\x4f\xa5\x4c\xa4\x9f",
  586. }, {
  587. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  588. .psize = 56,
  589. .digest = "\x20\x4a\x8f\xc6\xdd\xa8\x2f\x0a"
  590. "\x0c\xed\x7b\xeb\x8e\x08\xa4\x16"
  591. "\x57\xc1\x6e\xf4\x68\xb2\x28\xa8"
  592. "\x27\x9b\xe3\x31\xa7\x03\xc3\x35"
  593. "\x96\xfd\x15\xc1\x3b\x1b\x07\xf9"
  594. "\xaa\x1d\x3b\xea\x57\x78\x9c\xa0"
  595. "\x31\xad\x85\xc7\xa7\x1d\xd7\x03"
  596. "\x54\xec\x63\x12\x38\xca\x34\x45",
  597. }, {
  598. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
  599. "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
  600. .psize = 112,
  601. .digest = "\x8e\x95\x9b\x75\xda\xe3\x13\xda"
  602. "\x8c\xf4\xf7\x28\x14\xfc\x14\x3f"
  603. "\x8f\x77\x79\xc6\xeb\x9f\x7f\xa1"
  604. "\x72\x99\xae\xad\xb6\x88\x90\x18"
  605. "\x50\x1d\x28\x9e\x49\x00\xf7\xe4"
  606. "\x33\x1b\x99\xde\xc4\xb5\x43\x3a"
  607. "\xc7\xd3\x29\xee\xb6\xdd\x26\x54"
  608. "\x5e\x96\xe5\x5b\x87\x4b\xe9\x09",
  609. }, {
  610. .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
  611. "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
  612. .psize = 104,
  613. .digest = "\x93\x0d\x0c\xef\xcb\x30\xff\x11"
  614. "\x33\xb6\x89\x81\x21\xf1\xcf\x3d"
  615. "\x27\x57\x8a\xfc\xaf\xe8\x67\x7c"
  616. "\x52\x57\xcf\x06\x99\x11\xf7\x5d"
  617. "\x8f\x58\x31\xb5\x6e\xbf\xda\x67"
  618. "\xb2\x78\xe6\x6d\xff\x8b\x84\xfe"
  619. "\x2b\x28\x70\xf7\x42\xa5\x80\xd8"
  620. "\xed\xb4\x19\x87\x23\x28\x50\xc9",
  621. .np = 4,
  622. .tap = { 26, 26, 26, 26 }
  623. },
  624. };
  625. /*
  626. * WHIRLPOOL test vectors from Whirlpool package
  627. * by Vincent Rijmen and Paulo S. L. M. Barreto as part of the NESSIE
  628. * submission
  629. */
  630. #define WP512_TEST_VECTORS 8
  631. static struct hash_testvec wp512_tv_template[] = {
  632. {
  633. .plaintext = "",
  634. .psize = 0,
  635. .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
  636. "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
  637. "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
  638. "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
  639. "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
  640. "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57"
  641. "\xEA\x89\x64\xE5\x9B\x63\xD9\x37"
  642. "\x08\xB1\x38\xCC\x42\xA6\x6E\xB3",
  643. }, {
  644. .plaintext = "a",
  645. .psize = 1,
  646. .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
  647. "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
  648. "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
  649. "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
  650. "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
  651. "\x3A\x42\x39\x1A\x39\x14\x5A\x59"
  652. "\x1A\x92\x20\x0D\x56\x01\x95\xE5"
  653. "\x3B\x47\x85\x84\xFD\xAE\x23\x1A",
  654. }, {
  655. .plaintext = "abc",
  656. .psize = 3,
  657. .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
  658. "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
  659. "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
  660. "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
  661. "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
  662. "\x7D\x0E\x34\x95\x71\x14\xCB\xD6"
  663. "\xC7\x97\xFC\x9D\x95\xD8\xB5\x82"
  664. "\xD2\x25\x29\x20\x76\xD4\xEE\xF5",
  665. }, {
  666. .plaintext = "message digest",
  667. .psize = 14,
  668. .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
  669. "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
  670. "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
  671. "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
  672. "\x84\x21\x55\x76\x59\xEF\x55\xC1"
  673. "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6"
  674. "\x92\xED\x92\x00\x52\x83\x8F\x33"
  675. "\x62\xE8\x6D\xBD\x37\xA8\x90\x3E",
  676. }, {
  677. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  678. .psize = 26,
  679. .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
  680. "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
  681. "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
  682. "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
  683. "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
  684. "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6"
  685. "\xF6\x8F\x67\x3E\x72\x07\x86\x5D"
  686. "\x5D\x98\x19\xA3\xDB\xA4\xEB\x3B",
  687. }, {
  688. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  689. "abcdefghijklmnopqrstuvwxyz0123456789",
  690. .psize = 62,
  691. .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
  692. "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
  693. "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
  694. "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
  695. "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
  696. "\xB7\xCB\x57\x21\x1B\x92\x81\xA6"
  697. "\x55\x17\xCC\x87\x9D\x7B\x96\x21"
  698. "\x42\xC6\x5F\x5A\x7A\xF0\x14\x67",
  699. }, {
  700. .plaintext = "1234567890123456789012345678901234567890"
  701. "1234567890123456789012345678901234567890",
  702. .psize = 80,
  703. .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
  704. "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
  705. "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
  706. "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
  707. "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
  708. "\x38\xCD\x04\x7B\x26\x81\xA5\x1A"
  709. "\x2C\x60\x48\x1E\x88\xC5\xA2\x0B"
  710. "\x2C\x2A\x80\xCF\x3A\x9A\x08\x3B",
  711. }, {
  712. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  713. .psize = 32,
  714. .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
  715. "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
  716. "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
  717. "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
  718. "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
  719. "\x7B\x94\x76\x39\xFE\x05\x0B\x56"
  720. "\x93\x9B\xAA\xA0\xAD\xFF\x9A\xE6"
  721. "\x74\x5B\x7B\x18\x1C\x3B\xE3\xFD",
  722. },
  723. };
  724. #define WP384_TEST_VECTORS 8
  725. static struct hash_testvec wp384_tv_template[] = {
  726. {
  727. .plaintext = "",
  728. .psize = 0,
  729. .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
  730. "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
  731. "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
  732. "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
  733. "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
  734. "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57",
  735. }, {
  736. .plaintext = "a",
  737. .psize = 1,
  738. .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
  739. "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
  740. "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
  741. "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
  742. "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
  743. "\x3A\x42\x39\x1A\x39\x14\x5A\x59",
  744. }, {
  745. .plaintext = "abc",
  746. .psize = 3,
  747. .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
  748. "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
  749. "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
  750. "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
  751. "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
  752. "\x7D\x0E\x34\x95\x71\x14\xCB\xD6",
  753. }, {
  754. .plaintext = "message digest",
  755. .psize = 14,
  756. .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
  757. "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
  758. "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
  759. "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
  760. "\x84\x21\x55\x76\x59\xEF\x55\xC1"
  761. "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6",
  762. }, {
  763. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  764. .psize = 26,
  765. .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
  766. "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
  767. "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
  768. "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
  769. "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
  770. "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6",
  771. }, {
  772. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  773. "abcdefghijklmnopqrstuvwxyz0123456789",
  774. .psize = 62,
  775. .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
  776. "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
  777. "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
  778. "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
  779. "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
  780. "\xB7\xCB\x57\x21\x1B\x92\x81\xA6",
  781. }, {
  782. .plaintext = "1234567890123456789012345678901234567890"
  783. "1234567890123456789012345678901234567890",
  784. .psize = 80,
  785. .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
  786. "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
  787. "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
  788. "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
  789. "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
  790. "\x38\xCD\x04\x7B\x26\x81\xA5\x1A",
  791. }, {
  792. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  793. .psize = 32,
  794. .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
  795. "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
  796. "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
  797. "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
  798. "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
  799. "\x7B\x94\x76\x39\xFE\x05\x0B\x56",
  800. },
  801. };
  802. #define WP256_TEST_VECTORS 8
  803. static struct hash_testvec wp256_tv_template[] = {
  804. {
  805. .plaintext = "",
  806. .psize = 0,
  807. .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
  808. "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
  809. "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
  810. "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7",
  811. }, {
  812. .plaintext = "a",
  813. .psize = 1,
  814. .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
  815. "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
  816. "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
  817. "\x73\xC4\x50\x01\xD0\x08\x7B\x42",
  818. }, {
  819. .plaintext = "abc",
  820. .psize = 3,
  821. .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
  822. "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
  823. "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
  824. "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C",
  825. }, {
  826. .plaintext = "message digest",
  827. .psize = 14,
  828. .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
  829. "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
  830. "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
  831. "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B",
  832. }, {
  833. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  834. .psize = 26,
  835. .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
  836. "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
  837. "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
  838. "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B",
  839. }, {
  840. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  841. "abcdefghijklmnopqrstuvwxyz0123456789",
  842. .psize = 62,
  843. .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
  844. "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
  845. "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
  846. "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E",
  847. }, {
  848. .plaintext = "1234567890123456789012345678901234567890"
  849. "1234567890123456789012345678901234567890",
  850. .psize = 80,
  851. .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
  852. "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
  853. "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
  854. "\x54\x9C\x4A\xFA\xDB\x60\x14\x29",
  855. }, {
  856. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  857. .psize = 32,
  858. .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
  859. "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
  860. "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
  861. "\x07\xC5\x62\xF9\x88\xE9\x5C\x69",
  862. },
  863. };
  864. /*
  865. * TIGER test vectors from Tiger website
  866. */
  867. #define TGR192_TEST_VECTORS 6
  868. static struct hash_testvec tgr192_tv_template[] = {
  869. {
  870. .plaintext = "",
  871. .psize = 0,
  872. .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
  873. "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
  874. "\xf3\x73\xde\x2d\x49\x58\x4e\x7a",
  875. }, {
  876. .plaintext = "abc",
  877. .psize = 3,
  878. .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
  879. "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
  880. "\x93\x5f\x7b\x95\x1c\x13\x29\x51",
  881. }, {
  882. .plaintext = "Tiger",
  883. .psize = 5,
  884. .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
  885. "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
  886. "\x37\x79\x0c\x11\x6f\x9d\x2b\xdf",
  887. }, {
  888. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
  889. .psize = 64,
  890. .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
  891. "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
  892. "\xb5\x86\x44\x50\x34\xa5\xa3\x86",
  893. }, {
  894. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
  895. .psize = 64,
  896. .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
  897. "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
  898. "\x57\x89\x65\x65\x97\x5f\x91\x97",
  899. }, {
  900. .plaintext = "Tiger - A Fast New Hash Function, "
  901. "by Ross Anderson and Eli Biham, "
  902. "proceedings of Fast Software Encryption 3, "
  903. "Cambridge, 1996.",
  904. .psize = 125,
  905. .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
  906. "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
  907. "\xdd\x68\x15\x1d\x50\x39\x74\xfc",
  908. },
  909. };
  910. #define TGR160_TEST_VECTORS 6
  911. static struct hash_testvec tgr160_tv_template[] = {
  912. {
  913. .plaintext = "",
  914. .psize = 0,
  915. .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
  916. "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
  917. "\xf3\x73\xde\x2d",
  918. }, {
  919. .plaintext = "abc",
  920. .psize = 3,
  921. .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
  922. "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
  923. "\x93\x5f\x7b\x95",
  924. }, {
  925. .plaintext = "Tiger",
  926. .psize = 5,
  927. .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
  928. "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
  929. "\x37\x79\x0c\x11",
  930. }, {
  931. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
  932. .psize = 64,
  933. .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
  934. "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
  935. "\xb5\x86\x44\x50",
  936. }, {
  937. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
  938. .psize = 64,
  939. .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
  940. "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
  941. "\x57\x89\x65\x65",
  942. }, {
  943. .plaintext = "Tiger - A Fast New Hash Function, "
  944. "by Ross Anderson and Eli Biham, "
  945. "proceedings of Fast Software Encryption 3, "
  946. "Cambridge, 1996.",
  947. .psize = 125,
  948. .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
  949. "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
  950. "\xdd\x68\x15\x1d",
  951. },
  952. };
  953. #define TGR128_TEST_VECTORS 6
  954. static struct hash_testvec tgr128_tv_template[] = {
  955. {
  956. .plaintext = "",
  957. .psize = 0,
  958. .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
  959. "\x16\x16\x6e\x76\xb1\xbb\x92\x5f",
  960. }, {
  961. .plaintext = "abc",
  962. .psize = 3,
  963. .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
  964. "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf",
  965. }, {
  966. .plaintext = "Tiger",
  967. .psize = 5,
  968. .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
  969. "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec",
  970. }, {
  971. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
  972. .psize = 64,
  973. .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
  974. "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e",
  975. }, {
  976. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
  977. .psize = 64,
  978. .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
  979. "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9",
  980. }, {
  981. .plaintext = "Tiger - A Fast New Hash Function, "
  982. "by Ross Anderson and Eli Biham, "
  983. "proceedings of Fast Software Encryption 3, "
  984. "Cambridge, 1996.",
  985. .psize = 125,
  986. .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
  987. "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24",
  988. },
  989. };
  990. #define GHASH_TEST_VECTORS 1
  991. static struct hash_testvec ghash_tv_template[] =
  992. {
  993. {
  994. .key = "\xdf\xa6\xbf\x4d\xed\x81\xdb\x03\xff\xca\xff\x95\xf8\x30\xf0\x61",
  995. .ksize = 16,
  996. .plaintext = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0\xb3\x2b\x66\x56\xa0\x5b\x40\xb6",
  997. .psize = 16,
  998. .digest = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6"
  999. "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60",
  1000. },
  1001. };
  1002. /*
  1003. * HMAC-MD5 test vectors from RFC2202
  1004. * (These need to be fixed to not use strlen).
  1005. */
  1006. #define HMAC_MD5_TEST_VECTORS 7
  1007. static struct hash_testvec hmac_md5_tv_template[] =
  1008. {
  1009. {
  1010. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  1011. .ksize = 16,
  1012. .plaintext = "Hi There",
  1013. .psize = 8,
  1014. .digest = "\x92\x94\x72\x7a\x36\x38\xbb\x1c"
  1015. "\x13\xf4\x8e\xf8\x15\x8b\xfc\x9d",
  1016. }, {
  1017. .key = "Jefe",
  1018. .ksize = 4,
  1019. .plaintext = "what do ya want for nothing?",
  1020. .psize = 28,
  1021. .digest = "\x75\x0c\x78\x3e\x6a\xb0\xb5\x03"
  1022. "\xea\xa8\x6e\x31\x0a\x5d\xb7\x38",
  1023. .np = 2,
  1024. .tap = {14, 14}
  1025. }, {
  1026. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  1027. .ksize = 16,
  1028. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1029. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1030. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1031. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  1032. .psize = 50,
  1033. .digest = "\x56\xbe\x34\x52\x1d\x14\x4c\x88"
  1034. "\xdb\xb8\xc7\x33\xf0\xe8\xb3\xf6",
  1035. }, {
  1036. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1037. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1038. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  1039. .ksize = 25,
  1040. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1041. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1042. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1043. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1044. .psize = 50,
  1045. .digest = "\x69\x7e\xaf\x0a\xca\x3a\x3a\xea"
  1046. "\x3a\x75\x16\x47\x46\xff\xaa\x79",
  1047. }, {
  1048. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  1049. .ksize = 16,
  1050. .plaintext = "Test With Truncation",
  1051. .psize = 20,
  1052. .digest = "\x56\x46\x1e\xf2\x34\x2e\xdc\x00"
  1053. "\xf9\xba\xb9\x95\x69\x0e\xfd\x4c",
  1054. }, {
  1055. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1056. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1057. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1058. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1059. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1060. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1061. "\xaa\xaa",
  1062. .ksize = 80,
  1063. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1064. .psize = 54,
  1065. .digest = "\x6b\x1a\xb7\xfe\x4b\xd7\xbf\x8f"
  1066. "\x0b\x62\xe6\xce\x61\xb9\xd0\xcd",
  1067. }, {
  1068. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1069. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1070. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1071. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1072. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1073. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1074. "\xaa\xaa",
  1075. .ksize = 80,
  1076. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  1077. "Block-Size Data",
  1078. .psize = 73,
  1079. .digest = "\x6f\x63\x0f\xad\x67\xcd\xa0\xee"
  1080. "\x1f\xb1\xf5\x62\xdb\x3a\xa5\x3e",
  1081. },
  1082. };
  1083. /*
  1084. * HMAC-RIPEMD128 test vectors from RFC2286
  1085. */
  1086. #define HMAC_RMD128_TEST_VECTORS 7
  1087. static struct hash_testvec hmac_rmd128_tv_template[] = {
  1088. {
  1089. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  1090. .ksize = 16,
  1091. .plaintext = "Hi There",
  1092. .psize = 8,
  1093. .digest = "\xfb\xf6\x1f\x94\x92\xaa\x4b\xbf"
  1094. "\x81\xc1\x72\xe8\x4e\x07\x34\xdb",
  1095. }, {
  1096. .key = "Jefe",
  1097. .ksize = 4,
  1098. .plaintext = "what do ya want for nothing?",
  1099. .psize = 28,
  1100. .digest = "\x87\x5f\x82\x88\x62\xb6\xb3\x34"
  1101. "\xb4\x27\xc5\x5f\x9f\x7f\xf0\x9b",
  1102. .np = 2,
  1103. .tap = { 14, 14 },
  1104. }, {
  1105. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  1106. .ksize = 16,
  1107. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1108. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1109. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1110. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  1111. .psize = 50,
  1112. .digest = "\x09\xf0\xb2\x84\x6d\x2f\x54\x3d"
  1113. "\xa3\x63\xcb\xec\x8d\x62\xa3\x8d",
  1114. }, {
  1115. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1116. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1117. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  1118. .ksize = 25,
  1119. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1120. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1121. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1122. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1123. .psize = 50,
  1124. .digest = "\xbd\xbb\xd7\xcf\x03\xe4\x4b\x5a"
  1125. "\xa6\x0a\xf8\x15\xbe\x4d\x22\x94",
  1126. }, {
  1127. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  1128. .ksize = 16,
  1129. .plaintext = "Test With Truncation",
  1130. .psize = 20,
  1131. .digest = "\xe7\x98\x08\xf2\x4b\x25\xfd\x03"
  1132. "\x1c\x15\x5f\x0d\x55\x1d\x9a\x3a",
  1133. }, {
  1134. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1135. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1136. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1137. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1138. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1139. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1140. "\xaa\xaa",
  1141. .ksize = 80,
  1142. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1143. .psize = 54,
  1144. .digest = "\xdc\x73\x29\x28\xde\x98\x10\x4a"
  1145. "\x1f\x59\xd3\x73\xc1\x50\xac\xbb",
  1146. }, {
  1147. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1148. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1149. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1150. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1151. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1152. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1153. "\xaa\xaa",
  1154. .ksize = 80,
  1155. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  1156. "Block-Size Data",
  1157. .psize = 73,
  1158. .digest = "\x5c\x6b\xec\x96\x79\x3e\x16\xd4"
  1159. "\x06\x90\xc2\x37\x63\x5f\x30\xc5",
  1160. },
  1161. };
  1162. /*
  1163. * HMAC-RIPEMD160 test vectors from RFC2286
  1164. */
  1165. #define HMAC_RMD160_TEST_VECTORS 7
  1166. static struct hash_testvec hmac_rmd160_tv_template[] = {
  1167. {
  1168. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  1169. .ksize = 20,
  1170. .plaintext = "Hi There",
  1171. .psize = 8,
  1172. .digest = "\x24\xcb\x4b\xd6\x7d\x20\xfc\x1a\x5d\x2e"
  1173. "\xd7\x73\x2d\xcc\x39\x37\x7f\x0a\x56\x68",
  1174. }, {
  1175. .key = "Jefe",
  1176. .ksize = 4,
  1177. .plaintext = "what do ya want for nothing?",
  1178. .psize = 28,
  1179. .digest = "\xdd\xa6\xc0\x21\x3a\x48\x5a\x9e\x24\xf4"
  1180. "\x74\x20\x64\xa7\xf0\x33\xb4\x3c\x40\x69",
  1181. .np = 2,
  1182. .tap = { 14, 14 },
  1183. }, {
  1184. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  1185. .ksize = 20,
  1186. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1187. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1188. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1189. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  1190. .psize = 50,
  1191. .digest = "\xb0\xb1\x05\x36\x0d\xe7\x59\x96\x0a\xb4"
  1192. "\xf3\x52\x98\xe1\x16\xe2\x95\xd8\xe7\xc1",
  1193. }, {
  1194. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1195. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1196. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  1197. .ksize = 25,
  1198. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1199. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1200. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1201. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1202. .psize = 50,
  1203. .digest = "\xd5\xca\x86\x2f\x4d\x21\xd5\xe6\x10\xe1"
  1204. "\x8b\x4c\xf1\xbe\xb9\x7a\x43\x65\xec\xf4",
  1205. }, {
  1206. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  1207. .ksize = 20,
  1208. .plaintext = "Test With Truncation",
  1209. .psize = 20,
  1210. .digest = "\x76\x19\x69\x39\x78\xf9\x1d\x90\x53\x9a"
  1211. "\xe7\x86\x50\x0f\xf3\xd8\xe0\x51\x8e\x39",
  1212. }, {
  1213. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1214. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1215. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1216. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1217. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1218. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1219. "\xaa\xaa",
  1220. .ksize = 80,
  1221. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1222. .psize = 54,
  1223. .digest = "\x64\x66\xca\x07\xac\x5e\xac\x29\xe1\xbd"
  1224. "\x52\x3e\x5a\xda\x76\x05\xb7\x91\xfd\x8b",
  1225. }, {
  1226. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1227. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1228. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1229. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1230. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1231. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1232. "\xaa\xaa",
  1233. .ksize = 80,
  1234. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  1235. "Block-Size Data",
  1236. .psize = 73,
  1237. .digest = "\x69\xea\x60\x79\x8d\x71\x61\x6c\xce\x5f"
  1238. "\xd0\x87\x1e\x23\x75\x4c\xd7\x5d\x5a\x0a",
  1239. },
  1240. };
  1241. /*
  1242. * HMAC-SHA1 test vectors from RFC2202
  1243. */
  1244. #define HMAC_SHA1_TEST_VECTORS 7
  1245. static struct hash_testvec hmac_sha1_tv_template[] = {
  1246. {
  1247. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  1248. .ksize = 20,
  1249. .plaintext = "Hi There",
  1250. .psize = 8,
  1251. .digest = "\xb6\x17\x31\x86\x55\x05\x72\x64"
  1252. "\xe2\x8b\xc0\xb6\xfb\x37\x8c\x8e\xf1"
  1253. "\x46\xbe",
  1254. }, {
  1255. .key = "Jefe",
  1256. .ksize = 4,
  1257. .plaintext = "what do ya want for nothing?",
  1258. .psize = 28,
  1259. .digest = "\xef\xfc\xdf\x6a\xe5\xeb\x2f\xa2\xd2\x74"
  1260. "\x16\xd5\xf1\x84\xdf\x9c\x25\x9a\x7c\x79",
  1261. .np = 2,
  1262. .tap = { 14, 14 }
  1263. }, {
  1264. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  1265. .ksize = 20,
  1266. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1267. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1268. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1269. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  1270. .psize = 50,
  1271. .digest = "\x12\x5d\x73\x42\xb9\xac\x11\xcd\x91\xa3"
  1272. "\x9a\xf4\x8a\xa1\x7b\x4f\x63\xf1\x75\xd3",
  1273. }, {
  1274. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1275. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1276. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  1277. .ksize = 25,
  1278. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1279. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1280. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1281. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1282. .psize = 50,
  1283. .digest = "\x4c\x90\x07\xf4\x02\x62\x50\xc6\xbc\x84"
  1284. "\x14\xf9\xbf\x50\xc8\x6c\x2d\x72\x35\xda",
  1285. }, {
  1286. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  1287. .ksize = 20,
  1288. .plaintext = "Test With Truncation",
  1289. .psize = 20,
  1290. .digest = "\x4c\x1a\x03\x42\x4b\x55\xe0\x7f\xe7\xf2"
  1291. "\x7b\xe1\xd5\x8b\xb9\x32\x4a\x9a\x5a\x04",
  1292. }, {
  1293. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1294. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1295. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1296. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1297. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1298. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1299. "\xaa\xaa",
  1300. .ksize = 80,
  1301. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1302. .psize = 54,
  1303. .digest = "\xaa\x4a\xe5\xe1\x52\x72\xd0\x0e\x95\x70"
  1304. "\x56\x37\xce\x8a\x3b\x55\xed\x40\x21\x12",
  1305. }, {
  1306. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1307. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1308. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1309. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1310. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1311. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1312. "\xaa\xaa",
  1313. .ksize = 80,
  1314. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  1315. "Block-Size Data",
  1316. .psize = 73,
  1317. .digest = "\xe8\xe9\x9d\x0f\x45\x23\x7d\x78\x6d\x6b"
  1318. "\xba\xa7\x96\x5c\x78\x08\xbb\xff\x1a\x91",
  1319. },
  1320. };
  1321. /*
  1322. * SHA224 HMAC test vectors from RFC4231
  1323. */
  1324. #define HMAC_SHA224_TEST_VECTORS 4
  1325. static struct hash_testvec hmac_sha224_tv_template[] = {
  1326. {
  1327. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1328. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1329. "\x0b\x0b\x0b\x0b",
  1330. .ksize = 20,
  1331. /* ("Hi There") */
  1332. .plaintext = "\x48\x69\x20\x54\x68\x65\x72\x65",
  1333. .psize = 8,
  1334. .digest = "\x89\x6f\xb1\x12\x8a\xbb\xdf\x19"
  1335. "\x68\x32\x10\x7c\xd4\x9d\xf3\x3f"
  1336. "\x47\xb4\xb1\x16\x99\x12\xba\x4f"
  1337. "\x53\x68\x4b\x22",
  1338. }, {
  1339. .key = "Jefe",
  1340. .ksize = 4,
  1341. /* ("what do ya want for nothing?") */
  1342. .plaintext = "\x77\x68\x61\x74\x20\x64\x6f\x20"
  1343. "\x79\x61\x20\x77\x61\x6e\x74\x20"
  1344. "\x66\x6f\x72\x20\x6e\x6f\x74\x68"
  1345. "\x69\x6e\x67\x3f",
  1346. .psize = 28,
  1347. .digest = "\xa3\x0e\x01\x09\x8b\xc6\xdb\xbf"
  1348. "\x45\x69\x0f\x3a\x7e\x9e\x6d\x0f"
  1349. "\x8b\xbe\xa2\xa3\x9e\x61\x48\x00"
  1350. "\x8f\xd0\x5e\x44",
  1351. .np = 4,
  1352. .tap = { 7, 7, 7, 7 }
  1353. }, {
  1354. .key = "\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\xaa\xaa\xaa\xaa\xaa"
  1366. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1367. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1368. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1369. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1370. "\xaa\xaa\xaa",
  1371. .ksize = 131,
  1372. /* ("Test Using Larger Than Block-Size Key - Hash Key First") */
  1373. .plaintext = "\x54\x65\x73\x74\x20\x55\x73\x69"
  1374. "\x6e\x67\x20\x4c\x61\x72\x67\x65"
  1375. "\x72\x20\x54\x68\x61\x6e\x20\x42"
  1376. "\x6c\x6f\x63\x6b\x2d\x53\x69\x7a"
  1377. "\x65\x20\x4b\x65\x79\x20\x2d\x20"
  1378. "\x48\x61\x73\x68\x20\x4b\x65\x79"
  1379. "\x20\x46\x69\x72\x73\x74",
  1380. .psize = 54,
  1381. .digest = "\x95\xe9\xa0\xdb\x96\x20\x95\xad"
  1382. "\xae\xbe\x9b\x2d\x6f\x0d\xbc\xe2"
  1383. "\xd4\x99\xf1\x12\xf2\xd2\xb7\x27"
  1384. "\x3f\xa6\x87\x0e",
  1385. }, {
  1386. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1387. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1388. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1389. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1390. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1391. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1392. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1393. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1394. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1395. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1396. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1397. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1398. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1399. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1400. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1401. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1402. "\xaa\xaa\xaa",
  1403. .ksize = 131,
  1404. /* ("This is a test using a larger than block-size key and a")
  1405. (" larger than block-size data. The key needs to be")
  1406. (" hashed before being used by the HMAC algorithm.") */
  1407. .plaintext = "\x54\x68\x69\x73\x20\x69\x73\x20"
  1408. "\x61\x20\x74\x65\x73\x74\x20\x75"
  1409. "\x73\x69\x6e\x67\x20\x61\x20\x6c"
  1410. "\x61\x72\x67\x65\x72\x20\x74\x68"
  1411. "\x61\x6e\x20\x62\x6c\x6f\x63\x6b"
  1412. "\x2d\x73\x69\x7a\x65\x20\x6b\x65"
  1413. "\x79\x20\x61\x6e\x64\x20\x61\x20"
  1414. "\x6c\x61\x72\x67\x65\x72\x20\x74"
  1415. "\x68\x61\x6e\x20\x62\x6c\x6f\x63"
  1416. "\x6b\x2d\x73\x69\x7a\x65\x20\x64"
  1417. "\x61\x74\x61\x2e\x20\x54\x68\x65"
  1418. "\x20\x6b\x65\x79\x20\x6e\x65\x65"
  1419. "\x64\x73\x20\x74\x6f\x20\x62\x65"
  1420. "\x20\x68\x61\x73\x68\x65\x64\x20"
  1421. "\x62\x65\x66\x6f\x72\x65\x20\x62"
  1422. "\x65\x69\x6e\x67\x20\x75\x73\x65"
  1423. "\x64\x20\x62\x79\x20\x74\x68\x65"
  1424. "\x20\x48\x4d\x41\x43\x20\x61\x6c"
  1425. "\x67\x6f\x72\x69\x74\x68\x6d\x2e",
  1426. .psize = 152,
  1427. .digest = "\x3a\x85\x41\x66\xac\x5d\x9f\x02"
  1428. "\x3f\x54\xd5\x17\xd0\xb3\x9d\xbd"
  1429. "\x94\x67\x70\xdb\x9c\x2b\x95\xc9"
  1430. "\xf6\xf5\x65\xd1",
  1431. },
  1432. };
  1433. /*
  1434. * HMAC-SHA256 test vectors from
  1435. * draft-ietf-ipsec-ciph-sha-256-01.txt
  1436. */
  1437. #define HMAC_SHA256_TEST_VECTORS 10
  1438. static struct hash_testvec hmac_sha256_tv_template[] = {
  1439. {
  1440. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1441. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1442. "\x11\x12\x13\x14\x15\x16\x17\x18"
  1443. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
  1444. .ksize = 32,
  1445. .plaintext = "abc",
  1446. .psize = 3,
  1447. .digest = "\xa2\x1b\x1f\x5d\x4c\xf4\xf7\x3a"
  1448. "\x4d\xd9\x39\x75\x0f\x7a\x06\x6a"
  1449. "\x7f\x98\xcc\x13\x1c\xb1\x6a\x66"
  1450. "\x92\x75\x90\x21\xcf\xab\x81\x81",
  1451. }, {
  1452. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1453. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1454. "\x11\x12\x13\x14\x15\x16\x17\x18"
  1455. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
  1456. .ksize = 32,
  1457. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  1458. .psize = 56,
  1459. .digest = "\x10\x4f\xdc\x12\x57\x32\x8f\x08"
  1460. "\x18\x4b\xa7\x31\x31\xc5\x3c\xae"
  1461. "\xe6\x98\xe3\x61\x19\x42\x11\x49"
  1462. "\xea\x8c\x71\x24\x56\x69\x7d\x30",
  1463. }, {
  1464. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1465. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1466. "\x11\x12\x13\x14\x15\x16\x17\x18"
  1467. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
  1468. .ksize = 32,
  1469. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
  1470. "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  1471. .psize = 112,
  1472. .digest = "\x47\x03\x05\xfc\x7e\x40\xfe\x34"
  1473. "\xd3\xee\xb3\xe7\x73\xd9\x5a\xab"
  1474. "\x73\xac\xf0\xfd\x06\x04\x47\xa5"
  1475. "\xeb\x45\x95\xbf\x33\xa9\xd1\xa3",
  1476. }, {
  1477. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1478. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1479. "\x0b\x0b\x0b\x0b\x0b\x0b",
  1480. .ksize = 32,
  1481. .plaintext = "Hi There",
  1482. .psize = 8,
  1483. .digest = "\x19\x8a\x60\x7e\xb4\x4b\xfb\xc6"
  1484. "\x99\x03\xa0\xf1\xcf\x2b\xbd\xc5"
  1485. "\xba\x0a\xa3\xf3\xd9\xae\x3c\x1c"
  1486. "\x7a\x3b\x16\x96\xa0\xb6\x8c\xf7",
  1487. }, {
  1488. .key = "Jefe",
  1489. .ksize = 4,
  1490. .plaintext = "what do ya want for nothing?",
  1491. .psize = 28,
  1492. .digest = "\x5b\xdc\xc1\x46\xbf\x60\x75\x4e"
  1493. "\x6a\x04\x24\x26\x08\x95\x75\xc7"
  1494. "\x5a\x00\x3f\x08\x9d\x27\x39\x83"
  1495. "\x9d\xec\x58\xb9\x64\xec\x38\x43",
  1496. .np = 2,
  1497. .tap = { 14, 14 }
  1498. }, {
  1499. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1500. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1501. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  1502. .ksize = 32,
  1503. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1504. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1505. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1506. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  1507. .psize = 50,
  1508. .digest = "\xcd\xcb\x12\x20\xd1\xec\xcc\xea"
  1509. "\x91\xe5\x3a\xba\x30\x92\xf9\x62"
  1510. "\xe5\x49\xfe\x6c\xe9\xed\x7f\xdc"
  1511. "\x43\x19\x1f\xbd\xe4\x5c\x30\xb0",
  1512. }, {
  1513. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1514. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1515. "\x11\x12\x13\x14\x15\x16\x17\x18"
  1516. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  1517. "\x21\x22\x23\x24\x25",
  1518. .ksize = 37,
  1519. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1520. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1521. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1522. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1523. .psize = 50,
  1524. .digest = "\xd4\x63\x3c\x17\xf6\xfb\x8d\x74"
  1525. "\x4c\x66\xde\xe0\xf8\xf0\x74\x55"
  1526. "\x6e\xc4\xaf\x55\xef\x07\x99\x85"
  1527. "\x41\x46\x8e\xb4\x9b\xd2\xe9\x17",
  1528. }, {
  1529. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
  1530. "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
  1531. "\x0c\x0c\x0c\x0c\x0c\x0c",
  1532. .ksize = 32,
  1533. .plaintext = "Test With Truncation",
  1534. .psize = 20,
  1535. .digest = "\x75\x46\xaf\x01\x84\x1f\xc0\x9b"
  1536. "\x1a\xb9\xc3\x74\x9a\x5f\x1c\x17"
  1537. "\xd4\xf5\x89\x66\x8a\x58\x7b\x27"
  1538. "\x00\xa9\xc9\x7c\x11\x93\xcf\x42",
  1539. }, {
  1540. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1541. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1542. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1543. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1544. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1545. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1546. "\xaa\xaa",
  1547. .ksize = 80,
  1548. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1549. .psize = 54,
  1550. .digest = "\x69\x53\x02\x5e\xd9\x6f\x0c\x09"
  1551. "\xf8\x0a\x96\xf7\x8e\x65\x38\xdb"
  1552. "\xe2\xe7\xb8\x20\xe3\xdd\x97\x0e"
  1553. "\x7d\xdd\x39\x09\x1b\x32\x35\x2f",
  1554. }, {
  1555. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1556. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1557. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1558. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1559. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1560. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1561. "\xaa\xaa",
  1562. .ksize = 80,
  1563. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than "
  1564. "One Block-Size Data",
  1565. .psize = 73,
  1566. .digest = "\x63\x55\xac\x22\xe8\x90\xd0\xa3"
  1567. "\xc8\x48\x1a\x5c\xa4\x82\x5b\xc8"
  1568. "\x84\xd3\xe7\xa1\xff\x98\xa2\xfc"
  1569. "\x2a\xc7\xd8\xe0\x64\xc3\xb2\xe6",
  1570. },
  1571. };
  1572. #define XCBC_AES_TEST_VECTORS 6
  1573. static struct hash_testvec aes_xcbc128_tv_template[] = {
  1574. {
  1575. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1576. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1577. .plaintext = zeroed_string,
  1578. .digest = "\x75\xf0\x25\x1d\x52\x8a\xc0\x1c"
  1579. "\x45\x73\xdf\xd5\x84\xd7\x9f\x29",
  1580. .psize = 0,
  1581. .ksize = 16,
  1582. }, {
  1583. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1584. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1585. .plaintext = "\x00\x01\x02",
  1586. .digest = "\x5b\x37\x65\x80\xae\x2f\x19\xaf"
  1587. "\xe7\x21\x9c\xee\xf1\x72\x75\x6f",
  1588. .psize = 3,
  1589. .ksize = 16,
  1590. } , {
  1591. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1592. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1593. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1594. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1595. .digest = "\xd2\xa2\x46\xfa\x34\x9b\x68\xa7"
  1596. "\x99\x98\xa4\x39\x4f\xf7\xa2\x63",
  1597. .psize = 16,
  1598. .ksize = 16,
  1599. }, {
  1600. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1601. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1602. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1603. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  1604. "\x10\x11\x12\x13",
  1605. .digest = "\x47\xf5\x1b\x45\x64\x96\x62\x15"
  1606. "\xb8\x98\x5c\x63\x05\x5e\xd3\x08",
  1607. .tap = { 10, 10 },
  1608. .psize = 20,
  1609. .np = 2,
  1610. .ksize = 16,
  1611. }, {
  1612. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1613. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1614. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1615. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  1616. "\x10\x11\x12\x13\x14\x15\x16\x17"
  1617. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  1618. .digest = "\xf5\x4f\x0e\xc8\xd2\xb9\xf3\xd3"
  1619. "\x68\x07\x73\x4b\xd5\x28\x3f\xd4",
  1620. .psize = 32,
  1621. .ksize = 16,
  1622. }, {
  1623. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1624. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1625. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1626. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  1627. "\x10\x11\x12\x13\x14\x15\x16\x17"
  1628. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  1629. "\x20\x21",
  1630. .digest = "\xbe\xcb\xb3\xbc\xcd\xb5\x18\xa3"
  1631. "\x06\x77\xd5\x48\x1f\xb6\xb4\xd8",
  1632. .tap = { 17, 17 },
  1633. .psize = 34,
  1634. .np = 2,
  1635. .ksize = 16,
  1636. }
  1637. };
  1638. #define VMAC_AES_TEST_VECTORS 8
  1639. static char vmac_string1[128] = {'\x01', '\x01', '\x01', '\x01',
  1640. '\x02', '\x03', '\x02', '\x02',
  1641. '\x02', '\x04', '\x01', '\x07',
  1642. '\x04', '\x01', '\x04', '\x03',};
  1643. static char vmac_string2[128] = {'a', 'b', 'c',};
  1644. static char vmac_string3[128] = {'a', 'b', 'c', 'a', 'b', 'c',
  1645. 'a', 'b', 'c', 'a', 'b', 'c',
  1646. 'a', 'b', 'c', 'a', 'b', 'c',
  1647. 'a', 'b', 'c', 'a', 'b', 'c',
  1648. 'a', 'b', 'c', 'a', 'b', 'c',
  1649. 'a', 'b', 'c', 'a', 'b', 'c',
  1650. 'a', 'b', 'c', 'a', 'b', 'c',
  1651. 'a', 'b', 'c', 'a', 'b', 'c',
  1652. };
  1653. static struct hash_testvec aes_vmac128_tv_template[] = {
  1654. {
  1655. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1656. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1657. .plaintext = NULL,
  1658. .digest = "\x07\x58\x80\x35\x77\xa4\x7b\x54",
  1659. .psize = 0,
  1660. .ksize = 16,
  1661. }, {
  1662. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1663. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1664. .plaintext = vmac_string1,
  1665. .digest = "\xce\xf5\x3c\xd3\xae\x68\x8c\xa1",
  1666. .psize = 128,
  1667. .ksize = 16,
  1668. }, {
  1669. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1670. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1671. .plaintext = vmac_string2,
  1672. .digest = "\xc9\x27\xb0\x73\x81\xbd\x14\x2d",
  1673. .psize = 128,
  1674. .ksize = 16,
  1675. }, {
  1676. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1677. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1678. .plaintext = vmac_string3,
  1679. .digest = "\x8d\x1a\x95\x8c\x98\x47\x0b\x19",
  1680. .psize = 128,
  1681. .ksize = 16,
  1682. }, {
  1683. .key = "abcdefghijklmnop",
  1684. .plaintext = NULL,
  1685. .digest = "\x3b\x89\xa1\x26\x9e\x55\x8f\x84",
  1686. .psize = 0,
  1687. .ksize = 16,
  1688. }, {
  1689. .key = "abcdefghijklmnop",
  1690. .plaintext = vmac_string1,
  1691. .digest = "\xab\x5e\xab\xb0\xf6\x8d\x74\xc2",
  1692. .psize = 128,
  1693. .ksize = 16,
  1694. }, {
  1695. .key = "abcdefghijklmnop",
  1696. .plaintext = vmac_string2,
  1697. .digest = "\x11\x15\x68\x42\x3d\x7b\x09\xdf",
  1698. .psize = 128,
  1699. .ksize = 16,
  1700. }, {
  1701. .key = "abcdefghijklmnop",
  1702. .plaintext = vmac_string3,
  1703. .digest = "\x8b\x32\x8f\xe1\xed\x8f\xfa\xd4",
  1704. .psize = 128,
  1705. .ksize = 16,
  1706. },
  1707. };
  1708. /*
  1709. * SHA384 HMAC test vectors from RFC4231
  1710. */
  1711. #define HMAC_SHA384_TEST_VECTORS 4
  1712. static struct hash_testvec hmac_sha384_tv_template[] = {
  1713. {
  1714. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1715. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1716. "\x0b\x0b\x0b\x0b",
  1717. .ksize = 20,
  1718. .plaintext = "Hi There",
  1719. .psize = 8,
  1720. .digest = "\xaf\xd0\x39\x44\xd8\x48\x95\x62"
  1721. "\x6b\x08\x25\xf4\xab\x46\x90\x7f"
  1722. "\x15\xf9\xda\xdb\xe4\x10\x1e\xc6"
  1723. "\x82\xaa\x03\x4c\x7c\xeb\xc5\x9c"
  1724. "\xfa\xea\x9e\xa9\x07\x6e\xde\x7f"
  1725. "\x4a\xf1\x52\xe8\xb2\xfa\x9c\xb6",
  1726. }, {
  1727. .key = "Jefe",
  1728. .ksize = 4,
  1729. .plaintext = "what do ya want for nothing?",
  1730. .psize = 28,
  1731. .digest = "\xaf\x45\xd2\xe3\x76\x48\x40\x31"
  1732. "\x61\x7f\x78\xd2\xb5\x8a\x6b\x1b"
  1733. "\x9c\x7e\xf4\x64\xf5\xa0\x1b\x47"
  1734. "\xe4\x2e\xc3\x73\x63\x22\x44\x5e"
  1735. "\x8e\x22\x40\xca\x5e\x69\xe2\xc7"
  1736. "\x8b\x32\x39\xec\xfa\xb2\x16\x49",
  1737. .np = 4,
  1738. .tap = { 7, 7, 7, 7 }
  1739. }, {
  1740. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1741. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1742. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1743. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1744. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1745. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1746. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1747. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1748. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1749. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1750. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1751. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1752. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1753. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1754. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1755. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1756. "\xaa\xaa\xaa",
  1757. .ksize = 131,
  1758. .plaintext = "Test Using Larger Than Block-Siz"
  1759. "e Key - Hash Key First",
  1760. .psize = 54,
  1761. .digest = "\x4e\xce\x08\x44\x85\x81\x3e\x90"
  1762. "\x88\xd2\xc6\x3a\x04\x1b\xc5\xb4"
  1763. "\x4f\x9e\xf1\x01\x2a\x2b\x58\x8f"
  1764. "\x3c\xd1\x1f\x05\x03\x3a\xc4\xc6"
  1765. "\x0c\x2e\xf6\xab\x40\x30\xfe\x82"
  1766. "\x96\x24\x8d\xf1\x63\xf4\x49\x52",
  1767. }, {
  1768. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1769. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1770. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1771. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1772. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1773. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1774. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1775. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1776. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1777. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1778. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1779. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1780. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1781. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1782. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1783. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1784. "\xaa\xaa\xaa",
  1785. .ksize = 131,
  1786. .plaintext = "This is a test u"
  1787. "sing a larger th"
  1788. "an block-size ke"
  1789. "y and a larger t"
  1790. "han block-size d"
  1791. "ata. The key nee"
  1792. "ds to be hashed "
  1793. "before being use"
  1794. "d by the HMAC al"
  1795. "gorithm.",
  1796. .psize = 152,
  1797. .digest = "\x66\x17\x17\x8e\x94\x1f\x02\x0d"
  1798. "\x35\x1e\x2f\x25\x4e\x8f\xd3\x2c"
  1799. "\x60\x24\x20\xfe\xb0\xb8\xfb\x9a"
  1800. "\xdc\xce\xbb\x82\x46\x1e\x99\xc5"
  1801. "\xa6\x78\xcc\x31\xe7\x99\x17\x6d"
  1802. "\x38\x60\xe6\x11\x0c\x46\x52\x3e",
  1803. },
  1804. };
  1805. /*
  1806. * SHA512 HMAC test vectors from RFC4231
  1807. */
  1808. #define HMAC_SHA512_TEST_VECTORS 4
  1809. static struct hash_testvec hmac_sha512_tv_template[] = {
  1810. {
  1811. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1812. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1813. "\x0b\x0b\x0b\x0b",
  1814. .ksize = 20,
  1815. .plaintext = "Hi There",
  1816. .psize = 8,
  1817. .digest = "\x87\xaa\x7c\xde\xa5\xef\x61\x9d"
  1818. "\x4f\xf0\xb4\x24\x1a\x1d\x6c\xb0"
  1819. "\x23\x79\xf4\xe2\xce\x4e\xc2\x78"
  1820. "\x7a\xd0\xb3\x05\x45\xe1\x7c\xde"
  1821. "\xda\xa8\x33\xb7\xd6\xb8\xa7\x02"
  1822. "\x03\x8b\x27\x4e\xae\xa3\xf4\xe4"
  1823. "\xbe\x9d\x91\x4e\xeb\x61\xf1\x70"
  1824. "\x2e\x69\x6c\x20\x3a\x12\x68\x54",
  1825. }, {
  1826. .key = "Jefe",
  1827. .ksize = 4,
  1828. .plaintext = "what do ya want for nothing?",
  1829. .psize = 28,
  1830. .digest = "\x16\x4b\x7a\x7b\xfc\xf8\x19\xe2"
  1831. "\xe3\x95\xfb\xe7\x3b\x56\xe0\xa3"
  1832. "\x87\xbd\x64\x22\x2e\x83\x1f\xd6"
  1833. "\x10\x27\x0c\xd7\xea\x25\x05\x54"
  1834. "\x97\x58\xbf\x75\xc0\x5a\x99\x4a"
  1835. "\x6d\x03\x4f\x65\xf8\xf0\xe6\xfd"
  1836. "\xca\xea\xb1\xa3\x4d\x4a\x6b\x4b"
  1837. "\x63\x6e\x07\x0a\x38\xbc\xe7\x37",
  1838. .np = 4,
  1839. .tap = { 7, 7, 7, 7 }
  1840. }, {
  1841. .key = "\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\xaa\xaa\xaa\xaa\xaa"
  1853. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1854. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1855. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1856. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1857. "\xaa\xaa\xaa",
  1858. .ksize = 131,
  1859. .plaintext = "Test Using Large"
  1860. "r Than Block-Siz"
  1861. "e Key - Hash Key"
  1862. " First",
  1863. .psize = 54,
  1864. .digest = "\x80\xb2\x42\x63\xc7\xc1\xa3\xeb"
  1865. "\xb7\x14\x93\xc1\xdd\x7b\xe8\xb4"
  1866. "\x9b\x46\xd1\xf4\x1b\x4a\xee\xc1"
  1867. "\x12\x1b\x01\x37\x83\xf8\xf3\x52"
  1868. "\x6b\x56\xd0\x37\xe0\x5f\x25\x98"
  1869. "\xbd\x0f\xd2\x21\x5d\x6a\x1e\x52"
  1870. "\x95\xe6\x4f\x73\xf6\x3f\x0a\xec"
  1871. "\x8b\x91\x5a\x98\x5d\x78\x65\x98",
  1872. }, {
  1873. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1874. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1875. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1876. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1877. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1878. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1879. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1880. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1881. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1882. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1883. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1884. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1885. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1886. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1887. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1888. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1889. "\xaa\xaa\xaa",
  1890. .ksize = 131,
  1891. .plaintext =
  1892. "This is a test u"
  1893. "sing a larger th"
  1894. "an block-size ke"
  1895. "y and a larger t"
  1896. "han block-size d"
  1897. "ata. The key nee"
  1898. "ds to be hashed "
  1899. "before being use"
  1900. "d by the HMAC al"
  1901. "gorithm.",
  1902. .psize = 152,
  1903. .digest = "\xe3\x7b\x6a\x77\x5d\xc8\x7d\xba"
  1904. "\xa4\xdf\xa9\xf9\x6e\x5e\x3f\xfd"
  1905. "\xde\xbd\x71\xf8\x86\x72\x89\x86"
  1906. "\x5d\xf5\xa3\x2d\x20\xcd\xc9\x44"
  1907. "\xb6\x02\x2c\xac\x3c\x49\x82\xb1"
  1908. "\x0d\x5e\xeb\x55\xc3\xe4\xde\x15"
  1909. "\x13\x46\x76\xfb\x6d\xe0\x44\x60"
  1910. "\x65\xc9\x74\x40\xfa\x8c\x6a\x58",
  1911. },
  1912. };
  1913. /*
  1914. * DES test vectors.
  1915. */
  1916. #define DES_ENC_TEST_VECTORS 10
  1917. #define DES_DEC_TEST_VECTORS 4
  1918. #define DES_CBC_ENC_TEST_VECTORS 5
  1919. #define DES_CBC_DEC_TEST_VECTORS 4
  1920. #define DES3_EDE_ENC_TEST_VECTORS 3
  1921. #define DES3_EDE_DEC_TEST_VECTORS 3
  1922. #define DES3_EDE_CBC_ENC_TEST_VECTORS 1
  1923. #define DES3_EDE_CBC_DEC_TEST_VECTORS 1
  1924. static struct cipher_testvec des_enc_tv_template[] = {
  1925. { /* From Applied Cryptography */
  1926. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1927. .klen = 8,
  1928. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  1929. .ilen = 8,
  1930. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  1931. .rlen = 8,
  1932. }, { /* Same key, different plaintext block */
  1933. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1934. .klen = 8,
  1935. .input = "\x22\x33\x44\x55\x66\x77\x88\x99",
  1936. .ilen = 8,
  1937. .result = "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  1938. .rlen = 8,
  1939. }, { /* Sbox test from NBS */
  1940. .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
  1941. .klen = 8,
  1942. .input = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
  1943. .ilen = 8,
  1944. .result = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  1945. .rlen = 8,
  1946. }, { /* Three blocks */
  1947. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1948. .klen = 8,
  1949. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1950. "\x22\x33\x44\x55\x66\x77\x88\x99"
  1951. "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
  1952. .ilen = 24,
  1953. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1954. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
  1955. "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
  1956. .rlen = 24,
  1957. }, { /* Weak key */
  1958. .fail = 1,
  1959. .wk = 1,
  1960. .key = "\x01\x01\x01\x01\x01\x01\x01\x01",
  1961. .klen = 8,
  1962. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  1963. .ilen = 8,
  1964. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  1965. .rlen = 8,
  1966. }, { /* Two blocks -- for testing encryption across pages */
  1967. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1968. .klen = 8,
  1969. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1970. "\x22\x33\x44\x55\x66\x77\x88\x99",
  1971. .ilen = 16,
  1972. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1973. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  1974. .rlen = 16,
  1975. .np = 2,
  1976. .tap = { 8, 8 }
  1977. }, { /* Four blocks -- for testing encryption with chunking */
  1978. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1979. .klen = 8,
  1980. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1981. "\x22\x33\x44\x55\x66\x77\x88\x99"
  1982. "\xca\xfe\xba\xbe\xfe\xed\xbe\xef"
  1983. "\x22\x33\x44\x55\x66\x77\x88\x99",
  1984. .ilen = 32,
  1985. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1986. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
  1987. "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90"
  1988. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  1989. .rlen = 32,
  1990. .np = 3,
  1991. .tap = { 14, 10, 8 }
  1992. }, {
  1993. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1994. .klen = 8,
  1995. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1996. "\x22\x33\x44\x55\x66\x77\x88\x99"
  1997. "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
  1998. .ilen = 24,
  1999. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  2000. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
  2001. "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
  2002. .rlen = 24,
  2003. .np = 4,
  2004. .tap = { 2, 1, 3, 18 }
  2005. }, {
  2006. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2007. .klen = 8,
  2008. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  2009. "\x22\x33\x44\x55\x66\x77\x88\x99",
  2010. .ilen = 16,
  2011. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  2012. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  2013. .rlen = 16,
  2014. .np = 5,
  2015. .tap = { 2, 2, 2, 2, 8 }
  2016. }, {
  2017. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2018. .klen = 8,
  2019. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  2020. .ilen = 8,
  2021. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  2022. .rlen = 8,
  2023. .np = 8,
  2024. .tap = { 1, 1, 1, 1, 1, 1, 1, 1 }
  2025. },
  2026. };
  2027. static struct cipher_testvec des_dec_tv_template[] = {
  2028. { /* From Applied Cryptography */
  2029. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2030. .klen = 8,
  2031. .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  2032. .ilen = 8,
  2033. .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  2034. .rlen = 8,
  2035. }, { /* Sbox test from NBS */
  2036. .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
  2037. .klen = 8,
  2038. .input = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  2039. .ilen = 8,
  2040. .result = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
  2041. .rlen = 8,
  2042. }, { /* Two blocks, for chunking test */
  2043. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2044. .klen = 8,
  2045. .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  2046. "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  2047. .ilen = 16,
  2048. .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  2049. "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
  2050. .rlen = 16,
  2051. .np = 2,
  2052. .tap = { 8, 8 }
  2053. }, {
  2054. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2055. .klen = 8,
  2056. .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  2057. "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  2058. .ilen = 16,
  2059. .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  2060. "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
  2061. .rlen = 16,
  2062. .np = 3,
  2063. .tap = { 3, 12, 1 }
  2064. },
  2065. };
  2066. static struct cipher_testvec des_cbc_enc_tv_template[] = {
  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. }, { /* FIPS Pub 81 */
  2080. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2081. .klen = 8,
  2082. .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
  2083. .input = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
  2084. .ilen = 8,
  2085. .result = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  2086. .rlen = 8,
  2087. }, {
  2088. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2089. .klen = 8,
  2090. .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  2091. .input = "\x68\x65\x20\x74\x69\x6d\x65\x20",
  2092. .ilen = 8,
  2093. .result = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  2094. .rlen = 8,
  2095. }, {
  2096. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2097. .klen = 8,
  2098. .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  2099. .input = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
  2100. .ilen = 8,
  2101. .result = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
  2102. .rlen = 8,
  2103. }, { /* Copy of openssl vector for chunk testing */
  2104. /* From OpenSSL */
  2105. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2106. .klen = 8,
  2107. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2108. .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
  2109. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  2110. "\x68\x65\x20\x74\x69\x6d\x65\x20",
  2111. .ilen = 24,
  2112. .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
  2113. "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
  2114. "\x46\x8e\x91\x15\x78\x88\xba\x68",
  2115. .rlen = 24,
  2116. .np = 2,
  2117. .tap = { 13, 11 }
  2118. },
  2119. };
  2120. static struct cipher_testvec des_cbc_dec_tv_template[] = {
  2121. { /* FIPS Pub 81 */
  2122. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2123. .klen = 8,
  2124. .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
  2125. .input = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  2126. .ilen = 8,
  2127. .result = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
  2128. .rlen = 8,
  2129. }, {
  2130. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2131. .klen = 8,
  2132. .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  2133. .input = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  2134. .ilen = 8,
  2135. .result = "\x68\x65\x20\x74\x69\x6d\x65\x20",
  2136. .rlen = 8,
  2137. }, {
  2138. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2139. .klen = 8,
  2140. .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  2141. .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
  2142. .ilen = 8,
  2143. .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
  2144. .rlen = 8,
  2145. }, { /* Copy of above, for chunk testing */
  2146. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2147. .klen = 8,
  2148. .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  2149. .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
  2150. .ilen = 8,
  2151. .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
  2152. .rlen = 8,
  2153. .np = 2,
  2154. .tap = { 4, 4 }
  2155. },
  2156. };
  2157. static struct cipher_testvec des3_ede_enc_tv_template[] = {
  2158. { /* These are from openssl */
  2159. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2160. "\x55\x55\x55\x55\x55\x55\x55\x55"
  2161. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2162. .klen = 24,
  2163. .input = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
  2164. .ilen = 8,
  2165. .result = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
  2166. .rlen = 8,
  2167. }, {
  2168. .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
  2169. "\x86\x02\x87\x66\x59\x08\x21\x98"
  2170. "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
  2171. .klen = 24,
  2172. .input = "\x73\x71\x75\x69\x67\x67\x6c\x65",
  2173. .ilen = 8,
  2174. .result = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
  2175. .rlen = 8,
  2176. }, {
  2177. .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
  2178. "\x91\x07\xd0\x15\x89\x19\x01\x01"
  2179. "\x19\x07\x92\x10\x98\x1a\x01\x01",
  2180. .klen = 24,
  2181. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2182. .ilen = 8,
  2183. .result = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
  2184. .rlen = 8,
  2185. },
  2186. };
  2187. static struct cipher_testvec des3_ede_dec_tv_template[] = {
  2188. { /* These are from openssl */
  2189. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2190. "\x55\x55\x55\x55\x55\x55\x55\x55"
  2191. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2192. .klen = 24,
  2193. .input = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
  2194. .ilen = 8,
  2195. .result = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
  2196. .rlen = 8,
  2197. }, {
  2198. .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
  2199. "\x86\x02\x87\x66\x59\x08\x21\x98"
  2200. "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
  2201. .klen = 24,
  2202. .input = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
  2203. .ilen = 8,
  2204. .result = "\x73\x71\x75\x69\x67\x67\x6c\x65",
  2205. .rlen = 8,
  2206. }, {
  2207. .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
  2208. "\x91\x07\xd0\x15\x89\x19\x01\x01"
  2209. "\x19\x07\x92\x10\x98\x1a\x01\x01",
  2210. .klen = 24,
  2211. .input = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
  2212. .ilen = 8,
  2213. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2214. .rlen = 8,
  2215. },
  2216. };
  2217. static struct cipher_testvec des3_ede_cbc_enc_tv_template[] = {
  2218. { /* Generated from openssl */
  2219. .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
  2220. "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
  2221. "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
  2222. .klen = 24,
  2223. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  2224. .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  2225. "\x53\x20\x63\x65\x65\x72\x73\x74"
  2226. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  2227. "\x20\x79\x65\x53\x72\x63\x74\x65"
  2228. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  2229. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  2230. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  2231. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  2232. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  2233. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  2234. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  2235. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  2236. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  2237. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  2238. "\x63\x65\x65\x72\x73\x74\x54\x20"
  2239. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  2240. .ilen = 128,
  2241. .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
  2242. "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
  2243. "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
  2244. "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
  2245. "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
  2246. "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
  2247. "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
  2248. "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
  2249. "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
  2250. "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
  2251. "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
  2252. "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
  2253. "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
  2254. "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
  2255. "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
  2256. "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
  2257. .rlen = 128,
  2258. },
  2259. };
  2260. static struct cipher_testvec des3_ede_cbc_dec_tv_template[] = {
  2261. { /* Generated from openssl */
  2262. .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
  2263. "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
  2264. "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
  2265. .klen = 24,
  2266. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  2267. .input = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
  2268. "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
  2269. "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
  2270. "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
  2271. "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
  2272. "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
  2273. "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
  2274. "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
  2275. "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
  2276. "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
  2277. "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
  2278. "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
  2279. "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
  2280. "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
  2281. "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
  2282. "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
  2283. .ilen = 128,
  2284. .result = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  2285. "\x53\x20\x63\x65\x65\x72\x73\x74"
  2286. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  2287. "\x20\x79\x65\x53\x72\x63\x74\x65"
  2288. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  2289. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  2290. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  2291. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  2292. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  2293. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  2294. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  2295. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  2296. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  2297. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  2298. "\x63\x65\x65\x72\x73\x74\x54\x20"
  2299. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  2300. .rlen = 128,
  2301. },
  2302. };
  2303. /*
  2304. * Blowfish test vectors.
  2305. */
  2306. #define BF_ENC_TEST_VECTORS 6
  2307. #define BF_DEC_TEST_VECTORS 6
  2308. #define BF_CBC_ENC_TEST_VECTORS 1
  2309. #define BF_CBC_DEC_TEST_VECTORS 1
  2310. static struct cipher_testvec bf_enc_tv_template[] = {
  2311. { /* DES test vectors from OpenSSL */
  2312. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2313. .klen = 8,
  2314. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2315. .ilen = 8,
  2316. .result = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
  2317. .rlen = 8,
  2318. }, {
  2319. .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
  2320. .klen = 8,
  2321. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2322. .ilen = 8,
  2323. .result = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
  2324. .rlen = 8,
  2325. }, {
  2326. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  2327. .klen = 8,
  2328. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2329. .ilen = 8,
  2330. .result = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
  2331. .rlen = 8,
  2332. }, { /* Vary the keylength... */
  2333. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2334. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
  2335. .klen = 16,
  2336. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2337. .ilen = 8,
  2338. .result = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
  2339. .rlen = 8,
  2340. }, {
  2341. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2342. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  2343. "\x00\x11\x22\x33\x44",
  2344. .klen = 21,
  2345. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2346. .ilen = 8,
  2347. .result = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
  2348. .rlen = 8,
  2349. }, { /* Generated with bf488 */
  2350. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2351. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  2352. "\x00\x11\x22\x33\x44\x55\x66\x77"
  2353. "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
  2354. "\x58\x40\x23\x64\x1a\xba\x61\x76"
  2355. "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
  2356. "\xff\xff\xff\xff\xff\xff\xff\xff",
  2357. .klen = 56,
  2358. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2359. .ilen = 8,
  2360. .result = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
  2361. .rlen = 8,
  2362. },
  2363. };
  2364. static struct cipher_testvec bf_dec_tv_template[] = {
  2365. { /* DES test vectors from OpenSSL */
  2366. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2367. .klen = 8,
  2368. .input = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
  2369. .ilen = 8,
  2370. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2371. .rlen = 8,
  2372. }, {
  2373. .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
  2374. .klen = 8,
  2375. .input = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
  2376. .ilen = 8,
  2377. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2378. .rlen = 8,
  2379. }, {
  2380. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  2381. .klen = 8,
  2382. .input = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
  2383. .ilen = 8,
  2384. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2385. .rlen = 8,
  2386. }, { /* Vary the keylength... */
  2387. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2388. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
  2389. .klen = 16,
  2390. .input = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
  2391. .ilen = 8,
  2392. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2393. .rlen = 8,
  2394. }, {
  2395. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2396. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  2397. "\x00\x11\x22\x33\x44",
  2398. .klen = 21,
  2399. .input = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
  2400. .ilen = 8,
  2401. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2402. .rlen = 8,
  2403. }, { /* Generated with bf488, using OpenSSL, Libgcrypt and Nettle */
  2404. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2405. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  2406. "\x00\x11\x22\x33\x44\x55\x66\x77"
  2407. "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
  2408. "\x58\x40\x23\x64\x1a\xba\x61\x76"
  2409. "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
  2410. "\xff\xff\xff\xff\xff\xff\xff\xff",
  2411. .klen = 56,
  2412. .input = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
  2413. .ilen = 8,
  2414. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2415. .rlen = 8,
  2416. },
  2417. };
  2418. static struct cipher_testvec bf_cbc_enc_tv_template[] = {
  2419. { /* From OpenSSL */
  2420. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2421. "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  2422. .klen = 16,
  2423. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2424. .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
  2425. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  2426. "\x68\x65\x20\x74\x69\x6d\x65\x20"
  2427. "\x66\x6f\x72\x20\x00\x00\x00\x00",
  2428. .ilen = 32,
  2429. .result = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
  2430. "\x05\xb1\x56\xe2\x74\x03\x97\x93"
  2431. "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
  2432. "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
  2433. .rlen = 32,
  2434. },
  2435. };
  2436. static struct cipher_testvec bf_cbc_dec_tv_template[] = {
  2437. { /* From OpenSSL */
  2438. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2439. "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  2440. .klen = 16,
  2441. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2442. .input = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
  2443. "\x05\xb1\x56\xe2\x74\x03\x97\x93"
  2444. "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
  2445. "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
  2446. .ilen = 32,
  2447. .result = "\x37\x36\x35\x34\x33\x32\x31\x20"
  2448. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  2449. "\x68\x65\x20\x74\x69\x6d\x65\x20"
  2450. "\x66\x6f\x72\x20\x00\x00\x00\x00",
  2451. .rlen = 32,
  2452. },
  2453. };
  2454. /*
  2455. * Twofish test vectors.
  2456. */
  2457. #define TF_ENC_TEST_VECTORS 3
  2458. #define TF_DEC_TEST_VECTORS 3
  2459. #define TF_CBC_ENC_TEST_VECTORS 4
  2460. #define TF_CBC_DEC_TEST_VECTORS 4
  2461. static struct cipher_testvec tf_enc_tv_template[] = {
  2462. {
  2463. .key = zeroed_string,
  2464. .klen = 16,
  2465. .input = zeroed_string,
  2466. .ilen = 16,
  2467. .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2468. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2469. .rlen = 16,
  2470. }, {
  2471. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2472. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  2473. "\x00\x11\x22\x33\x44\x55\x66\x77",
  2474. .klen = 24,
  2475. .input = zeroed_string,
  2476. .ilen = 16,
  2477. .result = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
  2478. "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
  2479. .rlen = 16,
  2480. }, {
  2481. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2482. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  2483. "\x00\x11\x22\x33\x44\x55\x66\x77"
  2484. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2485. .klen = 32,
  2486. .input = zeroed_string,
  2487. .ilen = 16,
  2488. .result = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
  2489. "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
  2490. .rlen = 16,
  2491. },
  2492. };
  2493. static struct cipher_testvec tf_dec_tv_template[] = {
  2494. {
  2495. .key = zeroed_string,
  2496. .klen = 16,
  2497. .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2498. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2499. .ilen = 16,
  2500. .result = zeroed_string,
  2501. .rlen = 16,
  2502. }, {
  2503. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2504. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  2505. "\x00\x11\x22\x33\x44\x55\x66\x77",
  2506. .klen = 24,
  2507. .input = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
  2508. "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
  2509. .ilen = 16,
  2510. .result = zeroed_string,
  2511. .rlen = 16,
  2512. }, {
  2513. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2514. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  2515. "\x00\x11\x22\x33\x44\x55\x66\x77"
  2516. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2517. .klen = 32,
  2518. .input = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
  2519. "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
  2520. .ilen = 16,
  2521. .result = zeroed_string,
  2522. .rlen = 16,
  2523. },
  2524. };
  2525. static struct cipher_testvec tf_cbc_enc_tv_template[] = {
  2526. { /* Generated with Nettle */
  2527. .key = zeroed_string,
  2528. .klen = 16,
  2529. .iv = zeroed_string,
  2530. .input = zeroed_string,
  2531. .ilen = 16,
  2532. .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2533. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2534. .rlen = 16,
  2535. }, {
  2536. .key = zeroed_string,
  2537. .klen = 16,
  2538. .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2539. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2540. .input = zeroed_string,
  2541. .ilen = 16,
  2542. .result = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2543. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  2544. .rlen = 16,
  2545. }, {
  2546. .key = zeroed_string,
  2547. .klen = 16,
  2548. .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2549. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  2550. .input = zeroed_string,
  2551. .ilen = 16,
  2552. .result = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  2553. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  2554. .rlen = 16,
  2555. }, {
  2556. .key = zeroed_string,
  2557. .klen = 16,
  2558. .iv = zeroed_string,
  2559. .input = zeroed_string,
  2560. .ilen = 48,
  2561. .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2562. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
  2563. "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2564. "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
  2565. "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  2566. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  2567. .rlen = 48,
  2568. },
  2569. };
  2570. static struct cipher_testvec tf_cbc_dec_tv_template[] = {
  2571. { /* Reverse of the first four above */
  2572. .key = zeroed_string,
  2573. .klen = 16,
  2574. .iv = zeroed_string,
  2575. .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2576. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2577. .ilen = 16,
  2578. .result = zeroed_string,
  2579. .rlen = 16,
  2580. }, {
  2581. .key = zeroed_string,
  2582. .klen = 16,
  2583. .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2584. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2585. .input = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2586. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  2587. .ilen = 16,
  2588. .result = zeroed_string,
  2589. .rlen = 16,
  2590. }, {
  2591. .key = zeroed_string,
  2592. .klen = 16,
  2593. .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2594. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  2595. .input = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  2596. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  2597. .ilen = 16,
  2598. .result = zeroed_string,
  2599. .rlen = 16,
  2600. }, {
  2601. .key = zeroed_string,
  2602. .klen = 16,
  2603. .iv = zeroed_string,
  2604. .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2605. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
  2606. "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2607. "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
  2608. "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  2609. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  2610. .ilen = 48,
  2611. .result = zeroed_string,
  2612. .rlen = 48,
  2613. },
  2614. };
  2615. /*
  2616. * Serpent test vectors. These are backwards because Serpent writes
  2617. * octet sequences in right-to-left mode.
  2618. */
  2619. #define SERPENT_ENC_TEST_VECTORS 4
  2620. #define SERPENT_DEC_TEST_VECTORS 4
  2621. #define TNEPRES_ENC_TEST_VECTORS 4
  2622. #define TNEPRES_DEC_TEST_VECTORS 4
  2623. static struct cipher_testvec serpent_enc_tv_template[] = {
  2624. {
  2625. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2626. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2627. .ilen = 16,
  2628. .result = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
  2629. "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
  2630. .rlen = 16,
  2631. }, {
  2632. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2633. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2634. .klen = 16,
  2635. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2636. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2637. .ilen = 16,
  2638. .result = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
  2639. "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
  2640. .rlen = 16,
  2641. }, {
  2642. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2643. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2644. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2645. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2646. .klen = 32,
  2647. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2648. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2649. .ilen = 16,
  2650. .result = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
  2651. "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
  2652. .rlen = 16,
  2653. }, {
  2654. .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
  2655. .klen = 16,
  2656. .input = zeroed_string,
  2657. .ilen = 16,
  2658. .result = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
  2659. "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
  2660. .rlen = 16,
  2661. },
  2662. };
  2663. static struct cipher_testvec tnepres_enc_tv_template[] = {
  2664. { /* KeySize=128, PT=0, I=1 */
  2665. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2666. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2667. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  2668. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2669. .klen = 16,
  2670. .ilen = 16,
  2671. .result = "\x49\xaf\xbf\xad\x9d\x5a\x34\x05"
  2672. "\x2c\xd8\xff\xa5\x98\x6b\xd2\xdd",
  2673. .rlen = 16,
  2674. }, { /* KeySize=192, PT=0, I=1 */
  2675. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  2676. "\x00\x00\x00\x00\x00\x00\x00\x00"
  2677. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2678. .klen = 24,
  2679. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2680. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2681. .ilen = 16,
  2682. .result = "\xe7\x8e\x54\x02\xc7\x19\x55\x68"
  2683. "\xac\x36\x78\xf7\xa3\xf6\x0c\x66",
  2684. .rlen = 16,
  2685. }, { /* KeySize=256, PT=0, I=1 */
  2686. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  2687. "\x00\x00\x00\x00\x00\x00\x00\x00"
  2688. "\x00\x00\x00\x00\x00\x00\x00\x00"
  2689. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2690. .klen = 32,
  2691. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2692. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2693. .ilen = 16,
  2694. .result = "\xab\xed\x96\xe7\x66\xbf\x28\xcb"
  2695. "\xc0\xeb\xd2\x1a\x82\xef\x08\x19",
  2696. .rlen = 16,
  2697. }, { /* KeySize=256, I=257 */
  2698. .key = "\x1f\x1e\x1d\x1c\x1b\x1a\x19\x18"
  2699. "\x17\x16\x15\x14\x13\x12\x11\x10"
  2700. "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
  2701. "\x07\x06\x05\x04\x03\x02\x01\x00",
  2702. .klen = 32,
  2703. .input = "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
  2704. "\x07\x06\x05\x04\x03\x02\x01\x00",
  2705. .ilen = 16,
  2706. .result = "\x5c\xe7\x1c\x70\xd2\x88\x2e\x5b"
  2707. "\xb8\x32\xe4\x33\xf8\x9f\x26\xde",
  2708. .rlen = 16,
  2709. },
  2710. };
  2711. static struct cipher_testvec serpent_dec_tv_template[] = {
  2712. {
  2713. .input = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
  2714. "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
  2715. .ilen = 16,
  2716. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2717. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2718. .rlen = 16,
  2719. }, {
  2720. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2721. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2722. .klen = 16,
  2723. .input = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
  2724. "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
  2725. .ilen = 16,
  2726. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2727. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2728. .rlen = 16,
  2729. }, {
  2730. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2731. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2732. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2733. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2734. .klen = 32,
  2735. .input = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
  2736. "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
  2737. .ilen = 16,
  2738. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2739. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2740. .rlen = 16,
  2741. }, {
  2742. .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
  2743. .klen = 16,
  2744. .input = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
  2745. "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
  2746. .ilen = 16,
  2747. .result = zeroed_string,
  2748. .rlen = 16,
  2749. },
  2750. };
  2751. static struct cipher_testvec tnepres_dec_tv_template[] = {
  2752. {
  2753. .input = "\x41\xcc\x6b\x31\x59\x31\x45\x97"
  2754. "\x6d\x6f\xbb\x38\x4b\x37\x21\x28",
  2755. .ilen = 16,
  2756. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2757. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2758. .rlen = 16,
  2759. }, {
  2760. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2761. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2762. .klen = 16,
  2763. .input = "\xea\xf4\xd7\xfc\xd8\x01\x34\x47"
  2764. "\x81\x45\x0b\xfa\x0c\xd6\xad\x6e",
  2765. .ilen = 16,
  2766. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2767. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2768. .rlen = 16,
  2769. }, {
  2770. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2771. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2772. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2773. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2774. .klen = 32,
  2775. .input = "\x64\xa9\x1a\x37\xed\x9f\xe7\x49"
  2776. "\xa8\x4e\x76\xd6\xf5\x0d\x78\xee",
  2777. .ilen = 16,
  2778. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2779. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2780. .rlen = 16,
  2781. }, { /* KeySize=128, I=121 */
  2782. .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
  2783. .klen = 16,
  2784. .input = "\x3d\xda\xbf\xc0\x06\xda\xab\x06"
  2785. "\x46\x2a\xf4\xef\x81\x54\x4e\x26",
  2786. .ilen = 16,
  2787. .result = zeroed_string,
  2788. .rlen = 16,
  2789. },
  2790. };
  2791. /* Cast6 test vectors from RFC 2612 */
  2792. #define CAST6_ENC_TEST_VECTORS 3
  2793. #define CAST6_DEC_TEST_VECTORS 3
  2794. static struct cipher_testvec cast6_enc_tv_template[] = {
  2795. {
  2796. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2797. "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
  2798. .klen = 16,
  2799. .input = zeroed_string,
  2800. .ilen = 16,
  2801. .result = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
  2802. "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
  2803. .rlen = 16,
  2804. }, {
  2805. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2806. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  2807. "\xba\xc7\x7a\x77\x17\x94\x28\x63",
  2808. .klen = 24,
  2809. .input = zeroed_string,
  2810. .ilen = 16,
  2811. .result = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
  2812. "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
  2813. .rlen = 16,
  2814. }, {
  2815. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2816. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  2817. "\x8d\x7c\x47\xce\x26\x49\x08\x46"
  2818. "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
  2819. .klen = 32,
  2820. .input = zeroed_string,
  2821. .ilen = 16,
  2822. .result = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
  2823. "\xc9\x87\x01\x36\x55\x33\x17\xfa",
  2824. .rlen = 16,
  2825. },
  2826. };
  2827. static struct cipher_testvec cast6_dec_tv_template[] = {
  2828. {
  2829. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2830. "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
  2831. .klen = 16,
  2832. .input = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
  2833. "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
  2834. .ilen = 16,
  2835. .result = zeroed_string,
  2836. .rlen = 16,
  2837. }, {
  2838. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2839. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  2840. "\xba\xc7\x7a\x77\x17\x94\x28\x63",
  2841. .klen = 24,
  2842. .input = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
  2843. "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
  2844. .ilen = 16,
  2845. .result = zeroed_string,
  2846. .rlen = 16,
  2847. }, {
  2848. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2849. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  2850. "\x8d\x7c\x47\xce\x26\x49\x08\x46"
  2851. "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
  2852. .klen = 32,
  2853. .input = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
  2854. "\xc9\x87\x01\x36\x55\x33\x17\xfa",
  2855. .ilen = 16,
  2856. .result = zeroed_string,
  2857. .rlen = 16,
  2858. },
  2859. };
  2860. /*
  2861. * AES test vectors.
  2862. */
  2863. #define AES_ENC_TEST_VECTORS 3
  2864. #define AES_DEC_TEST_VECTORS 3
  2865. #define AES_CBC_ENC_TEST_VECTORS 4
  2866. #define AES_CBC_DEC_TEST_VECTORS 4
  2867. #define AES_LRW_ENC_TEST_VECTORS 8
  2868. #define AES_LRW_DEC_TEST_VECTORS 8
  2869. #define AES_XTS_ENC_TEST_VECTORS 4
  2870. #define AES_XTS_DEC_TEST_VECTORS 4
  2871. #define AES_CTR_ENC_TEST_VECTORS 3
  2872. #define AES_CTR_DEC_TEST_VECTORS 3
  2873. #define AES_CTR_3686_ENC_TEST_VECTORS 7
  2874. #define AES_CTR_3686_DEC_TEST_VECTORS 6
  2875. #define AES_GCM_ENC_TEST_VECTORS 9
  2876. #define AES_GCM_DEC_TEST_VECTORS 8
  2877. #define AES_GCM_4106_ENC_TEST_VECTORS 7
  2878. #define AES_GCM_4106_DEC_TEST_VECTORS 7
  2879. #define AES_CCM_ENC_TEST_VECTORS 7
  2880. #define AES_CCM_DEC_TEST_VECTORS 7
  2881. #define AES_CCM_4309_ENC_TEST_VECTORS 7
  2882. #define AES_CCM_4309_DEC_TEST_VECTORS 10
  2883. static struct cipher_testvec aes_enc_tv_template[] = {
  2884. { /* From FIPS-197 */
  2885. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2886. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2887. .klen = 16,
  2888. .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2889. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2890. .ilen = 16,
  2891. .result = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
  2892. "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
  2893. .rlen = 16,
  2894. }, {
  2895. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2896. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2897. "\x10\x11\x12\x13\x14\x15\x16\x17",
  2898. .klen = 24,
  2899. .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2900. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2901. .ilen = 16,
  2902. .result = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
  2903. "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
  2904. .rlen = 16,
  2905. }, {
  2906. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2907. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2908. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2909. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2910. .klen = 32,
  2911. .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2912. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2913. .ilen = 16,
  2914. .result = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
  2915. "\xea\xfc\x49\x90\x4b\x49\x60\x89",
  2916. .rlen = 16,
  2917. },
  2918. };
  2919. static struct cipher_testvec aes_dec_tv_template[] = {
  2920. { /* From FIPS-197 */
  2921. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2922. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2923. .klen = 16,
  2924. .input = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
  2925. "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
  2926. .ilen = 16,
  2927. .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2928. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2929. .rlen = 16,
  2930. }, {
  2931. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2932. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2933. "\x10\x11\x12\x13\x14\x15\x16\x17",
  2934. .klen = 24,
  2935. .input = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
  2936. "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
  2937. .ilen = 16,
  2938. .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2939. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2940. .rlen = 16,
  2941. }, {
  2942. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2943. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2944. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2945. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2946. .klen = 32,
  2947. .input = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
  2948. "\xea\xfc\x49\x90\x4b\x49\x60\x89",
  2949. .ilen = 16,
  2950. .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2951. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2952. .rlen = 16,
  2953. },
  2954. };
  2955. static struct cipher_testvec aes_cbc_enc_tv_template[] = {
  2956. { /* From RFC 3602 */
  2957. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  2958. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  2959. .klen = 16,
  2960. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  2961. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  2962. .input = "Single block msg",
  2963. .ilen = 16,
  2964. .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
  2965. "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
  2966. .rlen = 16,
  2967. }, {
  2968. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  2969. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  2970. .klen = 16,
  2971. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  2972. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  2973. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2974. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2975. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2976. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2977. .ilen = 32,
  2978. .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
  2979. "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
  2980. "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
  2981. "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
  2982. .rlen = 32,
  2983. }, { /* From NIST SP800-38A */
  2984. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  2985. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  2986. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  2987. .klen = 24,
  2988. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2989. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2990. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  2991. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  2992. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  2993. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  2994. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  2995. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  2996. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  2997. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  2998. .ilen = 64,
  2999. .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
  3000. "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
  3001. "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
  3002. "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
  3003. "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
  3004. "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
  3005. "\x08\xb0\xe2\x79\x88\x59\x88\x81"
  3006. "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
  3007. .rlen = 64,
  3008. }, {
  3009. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  3010. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  3011. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  3012. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  3013. .klen = 32,
  3014. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3015. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  3016. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  3017. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  3018. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  3019. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  3020. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  3021. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  3022. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  3023. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  3024. .ilen = 64,
  3025. .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
  3026. "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
  3027. "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
  3028. "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
  3029. "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
  3030. "\xa5\x30\xe2\x63\x04\x23\x14\x61"
  3031. "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
  3032. "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
  3033. .rlen = 64,
  3034. },
  3035. };
  3036. static struct cipher_testvec aes_cbc_dec_tv_template[] = {
  3037. { /* From RFC 3602 */
  3038. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  3039. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  3040. .klen = 16,
  3041. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  3042. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  3043. .input = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
  3044. "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
  3045. .ilen = 16,
  3046. .result = "Single block msg",
  3047. .rlen = 16,
  3048. }, {
  3049. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  3050. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  3051. .klen = 16,
  3052. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  3053. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  3054. .input = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
  3055. "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
  3056. "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
  3057. "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
  3058. .ilen = 32,
  3059. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3060. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3061. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3062. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  3063. .rlen = 32,
  3064. }, { /* From NIST SP800-38A */
  3065. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  3066. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  3067. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  3068. .klen = 24,
  3069. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3070. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  3071. .input = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
  3072. "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
  3073. "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
  3074. "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
  3075. "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
  3076. "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
  3077. "\x08\xb0\xe2\x79\x88\x59\x88\x81"
  3078. "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
  3079. .ilen = 64,
  3080. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  3081. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  3082. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  3083. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  3084. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  3085. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  3086. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  3087. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  3088. .rlen = 64,
  3089. }, {
  3090. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  3091. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  3092. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  3093. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  3094. .klen = 32,
  3095. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3096. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  3097. .input = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
  3098. "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
  3099. "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
  3100. "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
  3101. "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
  3102. "\xa5\x30\xe2\x63\x04\x23\x14\x61"
  3103. "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
  3104. "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
  3105. .ilen = 64,
  3106. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  3107. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  3108. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  3109. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  3110. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  3111. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  3112. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  3113. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  3114. .rlen = 64,
  3115. },
  3116. };
  3117. static struct cipher_testvec aes_lrw_enc_tv_template[] = {
  3118. /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
  3119. { /* LRW-32-AES 1 */
  3120. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  3121. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  3122. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  3123. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  3124. .klen = 32,
  3125. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3126. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3127. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3128. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3129. .ilen = 16,
  3130. .result = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
  3131. "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
  3132. .rlen = 16,
  3133. }, { /* LRW-32-AES 2 */
  3134. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  3135. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  3136. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  3137. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  3138. .klen = 32,
  3139. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3140. "\x00\x00\x00\x00\x00\x00\x00\x02",
  3141. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3142. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3143. .ilen = 16,
  3144. .result = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
  3145. "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
  3146. .rlen = 16,
  3147. }, { /* LRW-32-AES 3 */
  3148. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  3149. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  3150. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  3151. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  3152. .klen = 32,
  3153. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3154. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3155. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3156. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3157. .ilen = 16,
  3158. .result = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
  3159. "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
  3160. .rlen = 16,
  3161. }, { /* LRW-32-AES 4 */
  3162. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  3163. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  3164. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  3165. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  3166. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  3167. .klen = 40,
  3168. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3169. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3170. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3171. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3172. .ilen = 16,
  3173. .result = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
  3174. "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
  3175. .rlen = 16,
  3176. }, { /* LRW-32-AES 5 */
  3177. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  3178. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  3179. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  3180. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  3181. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  3182. .klen = 40,
  3183. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3184. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3185. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3186. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3187. .ilen = 16,
  3188. .result = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
  3189. "\xc8\x60\x48\x02\x87\xe3\x34\x06",
  3190. .rlen = 16,
  3191. }, { /* LRW-32-AES 6 */
  3192. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  3193. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  3194. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  3195. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  3196. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  3197. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  3198. .klen = 48,
  3199. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3200. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3201. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3202. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3203. .ilen = 16,
  3204. .result = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
  3205. "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
  3206. .rlen = 16,
  3207. }, { /* LRW-32-AES 7 */
  3208. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  3209. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  3210. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  3211. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  3212. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  3213. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  3214. .klen = 48,
  3215. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3216. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3217. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3218. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3219. .ilen = 16,
  3220. .result = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
  3221. "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
  3222. .rlen = 16,
  3223. }, {
  3224. /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
  3225. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  3226. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  3227. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  3228. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  3229. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  3230. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  3231. .klen = 48,
  3232. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3233. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3234. .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  3235. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  3236. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  3237. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  3238. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  3239. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  3240. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  3241. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  3242. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  3243. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  3244. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  3245. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  3246. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  3247. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  3248. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  3249. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  3250. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  3251. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  3252. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  3253. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  3254. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  3255. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  3256. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  3257. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  3258. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  3259. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  3260. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  3261. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  3262. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  3263. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  3264. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  3265. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  3266. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  3267. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  3268. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  3269. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  3270. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  3271. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  3272. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  3273. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  3274. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  3275. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  3276. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  3277. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  3278. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  3279. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  3280. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  3281. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  3282. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  3283. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  3284. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  3285. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  3286. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  3287. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  3288. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  3289. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  3290. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  3291. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  3292. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  3293. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  3294. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  3295. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  3296. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  3297. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  3298. .ilen = 512,
  3299. .result = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
  3300. "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
  3301. "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
  3302. "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
  3303. "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
  3304. "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
  3305. "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
  3306. "\xe8\x58\x46\x97\x39\x51\x07\xde"
  3307. "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
  3308. "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
  3309. "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
  3310. "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
  3311. "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
  3312. "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
  3313. "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
  3314. "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
  3315. "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
  3316. "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
  3317. "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
  3318. "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
  3319. "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
  3320. "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
  3321. "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
  3322. "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
  3323. "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
  3324. "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
  3325. "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
  3326. "\x41\x30\x58\xc5\x62\x74\x52\x1d"
  3327. "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
  3328. "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
  3329. "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
  3330. "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
  3331. "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
  3332. "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
  3333. "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
  3334. "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
  3335. "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
  3336. "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
  3337. "\xb8\x79\x78\x97\x94\xff\x72\x13"
  3338. "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
  3339. "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
  3340. "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
  3341. "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
  3342. "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
  3343. "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
  3344. "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
  3345. "\x1e\x86\x53\x11\x53\x94\x00\xee"
  3346. "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
  3347. "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
  3348. "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
  3349. "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
  3350. "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
  3351. "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
  3352. "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
  3353. "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
  3354. "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
  3355. "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
  3356. "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
  3357. "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
  3358. "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
  3359. "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
  3360. "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
  3361. "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
  3362. "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
  3363. .rlen = 512,
  3364. }
  3365. };
  3366. static struct cipher_testvec aes_lrw_dec_tv_template[] = {
  3367. /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
  3368. /* same as enc vectors with input and result reversed */
  3369. { /* LRW-32-AES 1 */
  3370. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  3371. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  3372. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  3373. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  3374. .klen = 32,
  3375. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3376. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3377. .input = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
  3378. "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
  3379. .ilen = 16,
  3380. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3381. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3382. .rlen = 16,
  3383. }, { /* LRW-32-AES 2 */
  3384. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  3385. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  3386. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  3387. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  3388. .klen = 32,
  3389. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3390. "\x00\x00\x00\x00\x00\x00\x00\x02",
  3391. .input = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
  3392. "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
  3393. .ilen = 16,
  3394. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3395. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3396. .rlen = 16,
  3397. }, { /* LRW-32-AES 3 */
  3398. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  3399. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  3400. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  3401. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  3402. .klen = 32,
  3403. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3404. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3405. .input = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
  3406. "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
  3407. .ilen = 16,
  3408. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3409. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3410. .rlen = 16,
  3411. }, { /* LRW-32-AES 4 */
  3412. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  3413. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  3414. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  3415. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  3416. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  3417. .klen = 40,
  3418. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3419. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3420. .input = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
  3421. "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
  3422. .ilen = 16,
  3423. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3424. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3425. .rlen = 16,
  3426. }, { /* LRW-32-AES 5 */
  3427. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  3428. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  3429. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  3430. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  3431. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  3432. .klen = 40,
  3433. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3434. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3435. .input = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
  3436. "\xc8\x60\x48\x02\x87\xe3\x34\x06",
  3437. .ilen = 16,
  3438. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3439. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3440. .rlen = 16,
  3441. }, { /* LRW-32-AES 6 */
  3442. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  3443. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  3444. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  3445. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  3446. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  3447. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  3448. .klen = 48,
  3449. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3450. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3451. .input = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
  3452. "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
  3453. .ilen = 16,
  3454. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3455. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3456. .rlen = 16,
  3457. }, { /* LRW-32-AES 7 */
  3458. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  3459. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  3460. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  3461. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  3462. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  3463. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  3464. .klen = 48,
  3465. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3466. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3467. .input = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
  3468. "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
  3469. .ilen = 16,
  3470. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3471. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3472. .rlen = 16,
  3473. }, {
  3474. /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
  3475. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  3476. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  3477. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  3478. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  3479. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  3480. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  3481. .klen = 48,
  3482. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3483. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3484. .input = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
  3485. "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
  3486. "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
  3487. "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
  3488. "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
  3489. "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
  3490. "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
  3491. "\xe8\x58\x46\x97\x39\x51\x07\xde"
  3492. "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
  3493. "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
  3494. "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
  3495. "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
  3496. "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
  3497. "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
  3498. "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
  3499. "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
  3500. "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
  3501. "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
  3502. "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
  3503. "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
  3504. "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
  3505. "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
  3506. "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
  3507. "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
  3508. "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
  3509. "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
  3510. "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
  3511. "\x41\x30\x58\xc5\x62\x74\x52\x1d"
  3512. "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
  3513. "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
  3514. "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
  3515. "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
  3516. "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
  3517. "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
  3518. "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
  3519. "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
  3520. "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
  3521. "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
  3522. "\xb8\x79\x78\x97\x94\xff\x72\x13"
  3523. "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
  3524. "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
  3525. "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
  3526. "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
  3527. "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
  3528. "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
  3529. "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
  3530. "\x1e\x86\x53\x11\x53\x94\x00\xee"
  3531. "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
  3532. "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
  3533. "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
  3534. "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
  3535. "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
  3536. "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
  3537. "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
  3538. "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
  3539. "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
  3540. "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
  3541. "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
  3542. "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
  3543. "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
  3544. "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
  3545. "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
  3546. "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
  3547. "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
  3548. .ilen = 512,
  3549. .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  3550. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  3551. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  3552. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  3553. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  3554. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  3555. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  3556. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  3557. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  3558. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  3559. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  3560. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  3561. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  3562. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  3563. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  3564. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  3565. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  3566. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  3567. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  3568. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  3569. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  3570. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  3571. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  3572. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  3573. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  3574. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  3575. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  3576. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  3577. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  3578. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  3579. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  3580. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  3581. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  3582. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  3583. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  3584. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  3585. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  3586. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  3587. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  3588. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  3589. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  3590. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  3591. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  3592. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  3593. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  3594. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  3595. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  3596. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  3597. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  3598. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  3599. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  3600. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  3601. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  3602. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  3603. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  3604. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  3605. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  3606. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  3607. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  3608. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  3609. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  3610. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  3611. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  3612. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  3613. .rlen = 512,
  3614. }
  3615. };
  3616. static struct cipher_testvec aes_xts_enc_tv_template[] = {
  3617. /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
  3618. { /* XTS-AES 1 */
  3619. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3620. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3621. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3622. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3623. .klen = 32,
  3624. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3625. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3626. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3627. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3628. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3629. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3630. .ilen = 32,
  3631. .result = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
  3632. "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
  3633. "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
  3634. "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
  3635. .rlen = 32,
  3636. }, { /* XTS-AES 2 */
  3637. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  3638. "\x11\x11\x11\x11\x11\x11\x11\x11"
  3639. "\x22\x22\x22\x22\x22\x22\x22\x22"
  3640. "\x22\x22\x22\x22\x22\x22\x22\x22",
  3641. .klen = 32,
  3642. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  3643. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3644. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  3645. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3646. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3647. "\x44\x44\x44\x44\x44\x44\x44\x44",
  3648. .ilen = 32,
  3649. .result = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
  3650. "\x39\x33\x40\x38\xac\xef\x83\x8b"
  3651. "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
  3652. "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
  3653. .rlen = 32,
  3654. }, { /* XTS-AES 3 */
  3655. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  3656. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  3657. "\x22\x22\x22\x22\x22\x22\x22\x22"
  3658. "\x22\x22\x22\x22\x22\x22\x22\x22",
  3659. .klen = 32,
  3660. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  3661. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3662. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  3663. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3664. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3665. "\x44\x44\x44\x44\x44\x44\x44\x44",
  3666. .ilen = 32,
  3667. .result = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
  3668. "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
  3669. "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
  3670. "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
  3671. .rlen = 32,
  3672. }, { /* XTS-AES 4 */
  3673. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  3674. "\x23\x53\x60\x28\x74\x71\x35\x26"
  3675. "\x31\x41\x59\x26\x53\x58\x97\x93"
  3676. "\x23\x84\x62\x64\x33\x83\x27\x95",
  3677. .klen = 32,
  3678. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3679. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3680. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3681. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3682. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3683. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  3684. "\x20\x21\x22\x23\x24\x25\x26\x27"
  3685. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  3686. "\x30\x31\x32\x33\x34\x35\x36\x37"
  3687. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  3688. "\x40\x41\x42\x43\x44\x45\x46\x47"
  3689. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  3690. "\x50\x51\x52\x53\x54\x55\x56\x57"
  3691. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  3692. "\x60\x61\x62\x63\x64\x65\x66\x67"
  3693. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  3694. "\x70\x71\x72\x73\x74\x75\x76\x77"
  3695. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  3696. "\x80\x81\x82\x83\x84\x85\x86\x87"
  3697. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  3698. "\x90\x91\x92\x93\x94\x95\x96\x97"
  3699. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  3700. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  3701. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  3702. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  3703. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  3704. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  3705. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  3706. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  3707. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  3708. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  3709. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  3710. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3711. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  3712. "\x00\x01\x02\x03\x04\x05\x06\x07"
  3713. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3714. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3715. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  3716. "\x20\x21\x22\x23\x24\x25\x26\x27"
  3717. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  3718. "\x30\x31\x32\x33\x34\x35\x36\x37"
  3719. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  3720. "\x40\x41\x42\x43\x44\x45\x46\x47"
  3721. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  3722. "\x50\x51\x52\x53\x54\x55\x56\x57"
  3723. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  3724. "\x60\x61\x62\x63\x64\x65\x66\x67"
  3725. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  3726. "\x70\x71\x72\x73\x74\x75\x76\x77"
  3727. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  3728. "\x80\x81\x82\x83\x84\x85\x86\x87"
  3729. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  3730. "\x90\x91\x92\x93\x94\x95\x96\x97"
  3731. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  3732. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  3733. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  3734. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  3735. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  3736. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  3737. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  3738. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  3739. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  3740. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  3741. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  3742. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3743. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  3744. .ilen = 512,
  3745. .result = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
  3746. "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
  3747. "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
  3748. "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
  3749. "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
  3750. "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
  3751. "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
  3752. "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
  3753. "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
  3754. "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
  3755. "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
  3756. "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
  3757. "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
  3758. "\x22\x97\x61\x46\xae\x20\xce\x84"
  3759. "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
  3760. "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
  3761. "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
  3762. "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
  3763. "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
  3764. "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
  3765. "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
  3766. "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
  3767. "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
  3768. "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
  3769. "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
  3770. "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
  3771. "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
  3772. "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
  3773. "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
  3774. "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
  3775. "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
  3776. "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
  3777. "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
  3778. "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
  3779. "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
  3780. "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
  3781. "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
  3782. "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
  3783. "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
  3784. "\x55\xef\x52\x97\xca\x67\xe9\xf3"
  3785. "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
  3786. "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
  3787. "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
  3788. "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
  3789. "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
  3790. "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
  3791. "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
  3792. "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
  3793. "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
  3794. "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
  3795. "\x18\x84\x69\x77\xae\x11\x9f\x7a"
  3796. "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
  3797. "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
  3798. "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
  3799. "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
  3800. "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
  3801. "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
  3802. "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
  3803. "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
  3804. "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
  3805. "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
  3806. "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
  3807. "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
  3808. "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
  3809. .rlen = 512,
  3810. }
  3811. };
  3812. static struct cipher_testvec aes_xts_dec_tv_template[] = {
  3813. /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
  3814. { /* XTS-AES 1 */
  3815. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3816. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3817. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3818. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3819. .klen = 32,
  3820. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3821. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3822. .input = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
  3823. "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
  3824. "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
  3825. "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
  3826. .ilen = 32,
  3827. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3828. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3829. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3830. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3831. .rlen = 32,
  3832. }, { /* XTS-AES 2 */
  3833. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  3834. "\x11\x11\x11\x11\x11\x11\x11\x11"
  3835. "\x22\x22\x22\x22\x22\x22\x22\x22"
  3836. "\x22\x22\x22\x22\x22\x22\x22\x22",
  3837. .klen = 32,
  3838. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  3839. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3840. .input = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
  3841. "\x39\x33\x40\x38\xac\xef\x83\x8b"
  3842. "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
  3843. "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
  3844. .ilen = 32,
  3845. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  3846. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3847. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3848. "\x44\x44\x44\x44\x44\x44\x44\x44",
  3849. .rlen = 32,
  3850. }, { /* XTS-AES 3 */
  3851. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  3852. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  3853. "\x22\x22\x22\x22\x22\x22\x22\x22"
  3854. "\x22\x22\x22\x22\x22\x22\x22\x22",
  3855. .klen = 32,
  3856. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  3857. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3858. .input = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
  3859. "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
  3860. "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
  3861. "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
  3862. .ilen = 32,
  3863. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  3864. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3865. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3866. "\x44\x44\x44\x44\x44\x44\x44\x44",
  3867. .rlen = 32,
  3868. }, { /* XTS-AES 4 */
  3869. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  3870. "\x23\x53\x60\x28\x74\x71\x35\x26"
  3871. "\x31\x41\x59\x26\x53\x58\x97\x93"
  3872. "\x23\x84\x62\x64\x33\x83\x27\x95",
  3873. .klen = 32,
  3874. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3875. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3876. .input = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
  3877. "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
  3878. "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
  3879. "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
  3880. "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
  3881. "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
  3882. "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
  3883. "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
  3884. "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
  3885. "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
  3886. "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
  3887. "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
  3888. "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
  3889. "\x22\x97\x61\x46\xae\x20\xce\x84"
  3890. "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
  3891. "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
  3892. "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
  3893. "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
  3894. "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
  3895. "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
  3896. "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
  3897. "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
  3898. "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
  3899. "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
  3900. "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
  3901. "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
  3902. "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
  3903. "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
  3904. "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
  3905. "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
  3906. "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
  3907. "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
  3908. "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
  3909. "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
  3910. "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
  3911. "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
  3912. "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
  3913. "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
  3914. "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
  3915. "\x55\xef\x52\x97\xca\x67\xe9\xf3"
  3916. "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
  3917. "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
  3918. "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
  3919. "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
  3920. "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
  3921. "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
  3922. "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
  3923. "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
  3924. "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
  3925. "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
  3926. "\x18\x84\x69\x77\xae\x11\x9f\x7a"
  3927. "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
  3928. "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
  3929. "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
  3930. "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
  3931. "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
  3932. "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
  3933. "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
  3934. "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
  3935. "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
  3936. "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
  3937. "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
  3938. "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
  3939. "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
  3940. .ilen = 512,
  3941. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3942. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3943. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3944. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  3945. "\x20\x21\x22\x23\x24\x25\x26\x27"
  3946. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  3947. "\x30\x31\x32\x33\x34\x35\x36\x37"
  3948. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  3949. "\x40\x41\x42\x43\x44\x45\x46\x47"
  3950. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  3951. "\x50\x51\x52\x53\x54\x55\x56\x57"
  3952. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  3953. "\x60\x61\x62\x63\x64\x65\x66\x67"
  3954. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  3955. "\x70\x71\x72\x73\x74\x75\x76\x77"
  3956. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  3957. "\x80\x81\x82\x83\x84\x85\x86\x87"
  3958. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  3959. "\x90\x91\x92\x93\x94\x95\x96\x97"
  3960. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  3961. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  3962. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  3963. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  3964. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  3965. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  3966. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  3967. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  3968. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  3969. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  3970. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  3971. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3972. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  3973. "\x00\x01\x02\x03\x04\x05\x06\x07"
  3974. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3975. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3976. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  3977. "\x20\x21\x22\x23\x24\x25\x26\x27"
  3978. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  3979. "\x30\x31\x32\x33\x34\x35\x36\x37"
  3980. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  3981. "\x40\x41\x42\x43\x44\x45\x46\x47"
  3982. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  3983. "\x50\x51\x52\x53\x54\x55\x56\x57"
  3984. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  3985. "\x60\x61\x62\x63\x64\x65\x66\x67"
  3986. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  3987. "\x70\x71\x72\x73\x74\x75\x76\x77"
  3988. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  3989. "\x80\x81\x82\x83\x84\x85\x86\x87"
  3990. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  3991. "\x90\x91\x92\x93\x94\x95\x96\x97"
  3992. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  3993. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  3994. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  3995. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  3996. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  3997. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  3998. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  3999. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  4000. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  4001. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  4002. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  4003. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4004. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  4005. .rlen = 512,
  4006. }
  4007. };
  4008. static struct cipher_testvec aes_ctr_enc_tv_template[] = {
  4009. { /* From NIST Special Publication 800-38A, Appendix F.5 */
  4010. .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
  4011. "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
  4012. .klen = 16,
  4013. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4014. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  4015. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  4016. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  4017. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  4018. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  4019. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  4020. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  4021. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  4022. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  4023. .ilen = 64,
  4024. .result = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
  4025. "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
  4026. "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
  4027. "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
  4028. "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
  4029. "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
  4030. "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
  4031. "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
  4032. .rlen = 64,
  4033. }, {
  4034. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  4035. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  4036. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  4037. .klen = 24,
  4038. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4039. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  4040. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  4041. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  4042. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  4043. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  4044. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  4045. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  4046. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  4047. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  4048. .ilen = 64,
  4049. .result = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
  4050. "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
  4051. "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
  4052. "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
  4053. "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
  4054. "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
  4055. "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
  4056. "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
  4057. .rlen = 64,
  4058. }, {
  4059. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  4060. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  4061. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  4062. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  4063. .klen = 32,
  4064. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4065. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  4066. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  4067. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  4068. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  4069. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  4070. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  4071. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  4072. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  4073. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  4074. .ilen = 64,
  4075. .result = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
  4076. "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
  4077. "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
  4078. "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
  4079. "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
  4080. "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
  4081. "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
  4082. "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
  4083. .rlen = 64,
  4084. }
  4085. };
  4086. static struct cipher_testvec aes_ctr_dec_tv_template[] = {
  4087. { /* From NIST Special Publication 800-38A, Appendix F.5 */
  4088. .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
  4089. "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
  4090. .klen = 16,
  4091. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4092. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  4093. .input = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
  4094. "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
  4095. "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
  4096. "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
  4097. "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
  4098. "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
  4099. "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
  4100. "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
  4101. .ilen = 64,
  4102. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  4103. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  4104. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  4105. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  4106. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  4107. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  4108. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  4109. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  4110. .rlen = 64,
  4111. }, {
  4112. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  4113. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  4114. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  4115. .klen = 24,
  4116. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4117. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  4118. .input = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
  4119. "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
  4120. "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
  4121. "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
  4122. "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
  4123. "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
  4124. "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
  4125. "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
  4126. .ilen = 64,
  4127. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  4128. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  4129. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  4130. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  4131. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  4132. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  4133. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  4134. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  4135. .rlen = 64,
  4136. }, {
  4137. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  4138. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  4139. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  4140. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  4141. .klen = 32,
  4142. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4143. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  4144. .input = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
  4145. "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
  4146. "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
  4147. "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
  4148. "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
  4149. "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
  4150. "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
  4151. "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
  4152. .ilen = 64,
  4153. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  4154. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  4155. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  4156. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  4157. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  4158. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  4159. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  4160. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  4161. .rlen = 64,
  4162. }
  4163. };
  4164. static struct cipher_testvec aes_ctr_rfc3686_enc_tv_template[] = {
  4165. { /* From RFC 3686 */
  4166. .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
  4167. "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
  4168. "\x00\x00\x00\x30",
  4169. .klen = 20,
  4170. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  4171. .input = "Single block msg",
  4172. .ilen = 16,
  4173. .result = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
  4174. "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
  4175. .rlen = 16,
  4176. }, {
  4177. .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
  4178. "\x43\xd6\xce\x1f\x32\x53\x91\x63"
  4179. "\x00\x6c\xb6\xdb",
  4180. .klen = 20,
  4181. .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
  4182. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  4183. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4184. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4185. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  4186. .ilen = 32,
  4187. .result = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
  4188. "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
  4189. "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
  4190. "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
  4191. .rlen = 32,
  4192. }, {
  4193. .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
  4194. "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
  4195. "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
  4196. "\x00\x00\x00\x48",
  4197. .klen = 28,
  4198. .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
  4199. .input = "Single block msg",
  4200. .ilen = 16,
  4201. .result = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
  4202. "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
  4203. .rlen = 16,
  4204. }, {
  4205. .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
  4206. "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
  4207. "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
  4208. "\x00\x96\xb0\x3b",
  4209. .klen = 28,
  4210. .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
  4211. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  4212. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4213. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4214. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  4215. .ilen = 32,
  4216. .result = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
  4217. "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
  4218. "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
  4219. "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
  4220. .rlen = 32,
  4221. }, {
  4222. .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
  4223. "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
  4224. "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
  4225. "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
  4226. "\x00\x00\x00\x60",
  4227. .klen = 36,
  4228. .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
  4229. .input = "Single block msg",
  4230. .ilen = 16,
  4231. .result = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
  4232. "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
  4233. .rlen = 16,
  4234. }, {
  4235. .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
  4236. "\x07\x96\x36\x58\x79\xef\xf8\x86"
  4237. "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
  4238. "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
  4239. "\x00\xfa\xac\x24",
  4240. .klen = 36,
  4241. .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
  4242. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  4243. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4244. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4245. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  4246. .ilen = 32,
  4247. .result = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
  4248. "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
  4249. "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
  4250. "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
  4251. .rlen = 32,
  4252. }, {
  4253. // generated using Crypto++
  4254. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  4255. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4256. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4257. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  4258. "\x00\x00\x00\x00",
  4259. .klen = 32 + 4,
  4260. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  4261. .input =
  4262. "\x00\x01\x02\x03\x04\x05\x06\x07"
  4263. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4264. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4265. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  4266. "\x20\x21\x22\x23\x24\x25\x26\x27"
  4267. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  4268. "\x30\x31\x32\x33\x34\x35\x36\x37"
  4269. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  4270. "\x40\x41\x42\x43\x44\x45\x46\x47"
  4271. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  4272. "\x50\x51\x52\x53\x54\x55\x56\x57"
  4273. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  4274. "\x60\x61\x62\x63\x64\x65\x66\x67"
  4275. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  4276. "\x70\x71\x72\x73\x74\x75\x76\x77"
  4277. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  4278. "\x80\x81\x82\x83\x84\x85\x86\x87"
  4279. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  4280. "\x90\x91\x92\x93\x94\x95\x96\x97"
  4281. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  4282. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  4283. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  4284. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  4285. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  4286. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  4287. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  4288. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  4289. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  4290. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  4291. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  4292. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4293. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  4294. "\x00\x03\x06\x09\x0c\x0f\x12\x15"
  4295. "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
  4296. "\x30\x33\x36\x39\x3c\x3f\x42\x45"
  4297. "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
  4298. "\x60\x63\x66\x69\x6c\x6f\x72\x75"
  4299. "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
  4300. "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
  4301. "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
  4302. "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
  4303. "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
  4304. "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
  4305. "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
  4306. "\x20\x23\x26\x29\x2c\x2f\x32\x35"
  4307. "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
  4308. "\x50\x53\x56\x59\x5c\x5f\x62\x65"
  4309. "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
  4310. "\x80\x83\x86\x89\x8c\x8f\x92\x95"
  4311. "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
  4312. "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
  4313. "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
  4314. "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
  4315. "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
  4316. "\x10\x13\x16\x19\x1c\x1f\x22\x25"
  4317. "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
  4318. "\x40\x43\x46\x49\x4c\x4f\x52\x55"
  4319. "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
  4320. "\x70\x73\x76\x79\x7c\x7f\x82\x85"
  4321. "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
  4322. "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
  4323. "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
  4324. "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
  4325. "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
  4326. "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
  4327. "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
  4328. "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
  4329. "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
  4330. "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
  4331. "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
  4332. "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
  4333. "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
  4334. "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
  4335. "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
  4336. "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
  4337. "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
  4338. "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
  4339. "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
  4340. "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
  4341. "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
  4342. "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
  4343. "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
  4344. "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
  4345. "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
  4346. "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
  4347. "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
  4348. "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
  4349. "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
  4350. "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
  4351. "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
  4352. "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
  4353. "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
  4354. "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
  4355. "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
  4356. "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
  4357. "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
  4358. "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
  4359. "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
  4360. "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
  4361. "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
  4362. "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
  4363. "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
  4364. "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
  4365. "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
  4366. "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
  4367. "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
  4368. "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
  4369. "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
  4370. "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
  4371. "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
  4372. "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
  4373. "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
  4374. "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
  4375. "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
  4376. "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
  4377. "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
  4378. "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
  4379. "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
  4380. "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
  4381. "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
  4382. "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
  4383. "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
  4384. "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
  4385. "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
  4386. "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
  4387. "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
  4388. "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
  4389. "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
  4390. "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
  4391. "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
  4392. "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
  4393. "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
  4394. "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
  4395. "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
  4396. "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
  4397. "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
  4398. "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
  4399. "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
  4400. "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
  4401. "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
  4402. "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
  4403. "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
  4404. "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
  4405. "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
  4406. "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
  4407. "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
  4408. "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
  4409. "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
  4410. "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
  4411. "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
  4412. "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
  4413. "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
  4414. "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
  4415. "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
  4416. "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
  4417. "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
  4418. "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
  4419. "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
  4420. "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
  4421. "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
  4422. "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
  4423. "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
  4424. "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
  4425. "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
  4426. "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
  4427. "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
  4428. "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
  4429. "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
  4430. "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
  4431. "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
  4432. "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
  4433. "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
  4434. "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
  4435. "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
  4436. "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
  4437. "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
  4438. "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
  4439. "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
  4440. "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
  4441. "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
  4442. "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
  4443. "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
  4444. "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
  4445. "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
  4446. "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
  4447. "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
  4448. "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
  4449. "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
  4450. "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
  4451. "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
  4452. "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
  4453. "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
  4454. "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
  4455. "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
  4456. "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
  4457. "\x38\x45\x52\x5f\x6c\x79\x86\x93"
  4458. "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
  4459. "\x08\x15\x22\x2f\x3c\x49\x56\x63"
  4460. "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
  4461. "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
  4462. "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
  4463. "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
  4464. "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
  4465. "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
  4466. "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
  4467. "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
  4468. "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
  4469. "\x18\x25\x32\x3f\x4c\x59\x66\x73"
  4470. "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
  4471. "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
  4472. "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
  4473. "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
  4474. "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
  4475. "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
  4476. "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
  4477. "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
  4478. "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
  4479. "\x28\x35\x42\x4f\x5c\x69\x76\x83"
  4480. "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
  4481. "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
  4482. "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
  4483. "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
  4484. "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
  4485. "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
  4486. "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
  4487. "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
  4488. "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
  4489. "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
  4490. "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
  4491. "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
  4492. "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
  4493. "\x48\x57\x66\x75\x84\x93\xa2\xb1"
  4494. "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
  4495. "\x38\x47\x56\x65\x74\x83\x92\xa1"
  4496. "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
  4497. "\x28\x37\x46\x55\x64\x73\x82\x91"
  4498. "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
  4499. "\x18\x27\x36\x45\x54\x63\x72\x81"
  4500. "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
  4501. "\x08\x17\x26\x35\x44\x53\x62\x71"
  4502. "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
  4503. "\xf8\x07\x16\x25\x34\x43\x52\x61"
  4504. "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
  4505. "\xe8\xf7\x06\x15\x24\x33\x42\x51"
  4506. "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
  4507. "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
  4508. "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
  4509. "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
  4510. "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
  4511. "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
  4512. "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
  4513. "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
  4514. "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
  4515. "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
  4516. "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
  4517. "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
  4518. "\x00\x11\x22\x33\x44\x55\x66\x77"
  4519. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
  4520. "\x10\x21\x32\x43\x54\x65\x76\x87"
  4521. "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
  4522. "\x20\x31\x42\x53\x64\x75\x86\x97"
  4523. "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
  4524. "\x30\x41\x52\x63\x74\x85\x96\xa7"
  4525. "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
  4526. "\x40\x51\x62\x73\x84\x95\xa6\xb7"
  4527. "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
  4528. "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
  4529. "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
  4530. "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
  4531. "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
  4532. "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
  4533. "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
  4534. "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
  4535. "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
  4536. "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
  4537. "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
  4538. "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
  4539. "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
  4540. "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
  4541. "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
  4542. "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
  4543. "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
  4544. "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
  4545. "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
  4546. "\xe0\xf1\x02\x13\x24\x35\x46\x57"
  4547. "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
  4548. "\xf0\x01\x12\x23\x34\x45\x56\x67"
  4549. "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
  4550. "\x00\x13\x26\x39\x4c\x5f\x72\x85"
  4551. "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
  4552. "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
  4553. "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
  4554. "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
  4555. "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
  4556. "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
  4557. "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
  4558. "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
  4559. "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
  4560. "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
  4561. "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
  4562. "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
  4563. "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
  4564. "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
  4565. "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
  4566. "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
  4567. "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
  4568. "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
  4569. "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
  4570. "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
  4571. "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
  4572. "\x10\x23\x36\x49\x5c\x6f\x82\x95"
  4573. "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
  4574. "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
  4575. "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
  4576. "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
  4577. "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
  4578. "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
  4579. "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
  4580. "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
  4581. "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
  4582. "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
  4583. "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
  4584. "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
  4585. "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
  4586. "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
  4587. "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
  4588. "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
  4589. "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
  4590. "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
  4591. "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
  4592. "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
  4593. "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
  4594. "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
  4595. "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
  4596. "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
  4597. "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
  4598. "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
  4599. "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
  4600. "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
  4601. "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
  4602. "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
  4603. "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
  4604. "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
  4605. "\x18\x2d\x42\x57\x6c\x81\x96\xab"
  4606. "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
  4607. "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
  4608. "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
  4609. "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
  4610. "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
  4611. "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
  4612. "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
  4613. "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
  4614. "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
  4615. "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
  4616. "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
  4617. "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
  4618. "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
  4619. "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
  4620. "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
  4621. "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
  4622. "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
  4623. "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
  4624. "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
  4625. "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
  4626. "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
  4627. "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
  4628. "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
  4629. "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
  4630. "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
  4631. "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
  4632. "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
  4633. "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
  4634. "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
  4635. "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
  4636. "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
  4637. "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
  4638. "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
  4639. "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
  4640. "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
  4641. "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
  4642. "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
  4643. "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
  4644. "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
  4645. "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
  4646. "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
  4647. "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
  4648. "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
  4649. "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
  4650. "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
  4651. "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
  4652. "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
  4653. "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
  4654. "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
  4655. "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
  4656. "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
  4657. "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
  4658. "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
  4659. "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
  4660. "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
  4661. "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
  4662. "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
  4663. "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
  4664. "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
  4665. "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
  4666. "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
  4667. "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
  4668. "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
  4669. "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
  4670. "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
  4671. "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
  4672. "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
  4673. "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
  4674. "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
  4675. "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
  4676. "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
  4677. "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
  4678. "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
  4679. "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
  4680. "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
  4681. "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
  4682. "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
  4683. "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
  4684. "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
  4685. "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
  4686. "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
  4687. "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
  4688. "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
  4689. "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
  4690. "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
  4691. "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
  4692. "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
  4693. "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
  4694. "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
  4695. "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
  4696. "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
  4697. "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
  4698. "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
  4699. "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
  4700. "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
  4701. "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
  4702. "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
  4703. "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
  4704. "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
  4705. "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
  4706. "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
  4707. "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
  4708. "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
  4709. "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
  4710. "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
  4711. "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
  4712. "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
  4713. "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
  4714. "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
  4715. "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
  4716. "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
  4717. "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
  4718. "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
  4719. "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
  4720. "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
  4721. "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
  4722. "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
  4723. "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
  4724. "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
  4725. "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
  4726. "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
  4727. "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
  4728. "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
  4729. "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
  4730. "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
  4731. "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
  4732. "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
  4733. "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
  4734. "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
  4735. "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
  4736. "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
  4737. "\x78\x95\xb2\xcf\xec\x09\x26\x43"
  4738. "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
  4739. "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
  4740. "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
  4741. "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
  4742. "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
  4743. "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
  4744. "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
  4745. "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
  4746. "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
  4747. "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
  4748. "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
  4749. "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
  4750. "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
  4751. "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
  4752. "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
  4753. "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
  4754. "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
  4755. "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
  4756. "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
  4757. "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
  4758. "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
  4759. "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
  4760. "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
  4761. "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
  4762. "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
  4763. "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
  4764. "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
  4765. "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
  4766. "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
  4767. "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
  4768. "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
  4769. "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
  4770. "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
  4771. "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
  4772. "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
  4773. "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
  4774. "\x00\x21\x42\x63",
  4775. .ilen = 4100,
  4776. .result =
  4777. "\xf0\x5c\x74\xad\x4e\xbc\x99\xe2"
  4778. "\xae\xff\x91\x3a\x44\xcf\x38\x32"
  4779. "\x1e\xad\xa7\xcd\xa1\x39\x95\xaa"
  4780. "\x10\xb1\xb3\x2e\x04\x31\x8f\x86"
  4781. "\xf2\x62\x74\x70\x0c\xa4\x46\x08"
  4782. "\xa8\xb7\x99\xa8\xe9\xd2\x73\x79"
  4783. "\x7e\x6e\xd4\x8f\x1e\xc7\x8e\x31"
  4784. "\x0b\xfa\x4b\xce\xfd\xf3\x57\x71"
  4785. "\xe9\x46\x03\xa5\x3d\x34\x00\xe2"
  4786. "\x18\xff\x75\x6d\x06\x2d\x00\xab"
  4787. "\xb9\x3e\x6c\x59\xc5\x84\x06\xb5"
  4788. "\x8b\xd0\x89\x9c\x4a\x79\x16\xc6"
  4789. "\x3d\x74\x54\xfa\x44\xcd\x23\x26"
  4790. "\x5c\xcf\x7e\x28\x92\x32\xbf\xdf"
  4791. "\xa7\x20\x3c\x74\x58\x2a\x9a\xde"
  4792. "\x61\x00\x1c\x4f\xff\x59\xc4\x22"
  4793. "\xac\x3c\xd0\xe8\x6c\xf9\x97\x1b"
  4794. "\x58\x9b\xad\x71\xe8\xa9\xb5\x0d"
  4795. "\xee\x2f\x04\x1f\x7f\xbc\x99\xee"
  4796. "\x84\xff\x42\x60\xdc\x3a\x18\xa5"
  4797. "\x81\xf9\xef\xdc\x7a\x0f\x65\x41"
  4798. "\x2f\xa3\xd3\xf9\xc2\xcb\xc0\x4d"
  4799. "\x8f\xd3\x76\x96\xad\x49\x6d\x38"
  4800. "\x3d\x39\x0b\x6c\x80\xb7\x54\x69"
  4801. "\xf0\x2c\x90\x02\x29\x0d\x1c\x12"
  4802. "\xad\x55\xc3\x8b\x68\xd9\xcc\xb3"
  4803. "\xb2\x64\x33\x90\x5e\xca\x4b\xe2"
  4804. "\xfb\x75\xdc\x63\xf7\x9f\x82\x74"
  4805. "\xf0\xc9\xaa\x7f\xe9\x2a\x9b\x33"
  4806. "\xbc\x88\x00\x7f\xca\xb2\x1f\x14"
  4807. "\xdb\xc5\x8e\x7b\x11\x3c\x3e\x08"
  4808. "\xf3\x83\xe8\xe0\x94\x86\x2e\x92"
  4809. "\x78\x6b\x01\xc9\xc7\x83\xba\x21"
  4810. "\x6a\x25\x15\x33\x4e\x45\x08\xec"
  4811. "\x35\xdb\xe0\x6e\x31\x51\x79\xa9"
  4812. "\x42\x44\x65\xc1\xa0\xf1\xf9\x2a"
  4813. "\x70\xd5\xb6\xc6\xc1\x8c\x39\xfc"
  4814. "\x25\xa6\x55\xd9\xdd\x2d\x4c\xec"
  4815. "\x49\xc6\xeb\x0e\xa8\x25\x2a\x16"
  4816. "\x1b\x66\x84\xda\xe2\x92\xe5\xc0"
  4817. "\xc8\x53\x07\xaf\x80\x84\xec\xfd"
  4818. "\xcd\xd1\x6e\xcd\x6f\x6a\xf5\x36"
  4819. "\xc5\x15\xe5\x25\x7d\x77\xd1\x1a"
  4820. "\x93\x36\xa9\xcf\x7c\xa4\x54\x4a"
  4821. "\x06\x51\x48\x4e\xf6\x59\x87\xd2"
  4822. "\x04\x02\xef\xd3\x44\xde\x76\x31"
  4823. "\xb3\x34\x17\x1b\x9d\x66\x11\x9f"
  4824. "\x1e\xcc\x17\xe9\xc7\x3c\x1b\xe7"
  4825. "\xcb\x50\x08\xfc\xdc\x2b\x24\xdb"
  4826. "\x65\x83\xd0\x3b\xe3\x30\xea\x94"
  4827. "\x6c\xe7\xe8\x35\x32\xc7\xdb\x64"
  4828. "\xb4\x01\xab\x36\x2c\x77\x13\xaf"
  4829. "\xf8\x2b\x88\x3f\x54\x39\xc4\x44"
  4830. "\xfe\xef\x6f\x68\x34\xbe\x0f\x05"
  4831. "\x16\x6d\xf6\x0a\x30\xe7\xe3\xed"
  4832. "\xc4\xde\x3c\x1b\x13\xd8\xdb\xfe"
  4833. "\x41\x62\xe5\x28\xd4\x8d\xa3\xc7"
  4834. "\x93\x97\xc6\x48\x45\x1d\x9f\x83"
  4835. "\xdf\x4b\x40\x3e\x42\x25\x87\x80"
  4836. "\x4c\x7d\xa8\xd4\x98\x23\x95\x75"
  4837. "\x41\x8c\xda\x41\x9b\xd4\xa7\x06"
  4838. "\xb5\xf1\x71\x09\x53\xbe\xca\xbf"
  4839. "\x32\x03\xed\xf0\x50\x1c\x56\x39"
  4840. "\x5b\xa4\x75\x18\xf7\x9b\x58\xef"
  4841. "\x53\xfc\x2a\x38\x23\x15\x75\xcd"
  4842. "\x45\xe5\x5a\x82\x55\xba\x21\xfa"
  4843. "\xd4\xbd\xc6\x94\x7c\xc5\x80\x12"
  4844. "\xf7\x4b\x32\xc4\x9a\x82\xd8\x28"
  4845. "\x8f\xd9\xc2\x0f\x60\x03\xbe\x5e"
  4846. "\x21\xd6\x5f\x58\xbf\x5c\xb1\x32"
  4847. "\x82\x8d\xa9\xe5\xf2\x66\x1a\xc0"
  4848. "\xa0\xbc\x58\x2f\x71\xf5\x2f\xed"
  4849. "\xd1\x26\xb9\xd8\x49\x5a\x07\x19"
  4850. "\x01\x7c\x59\xb0\xf8\xa4\xb7\xd3"
  4851. "\x7b\x1a\x8c\x38\xf4\x50\xa4\x59"
  4852. "\xb0\xcc\x41\x0b\x88\x7f\xe5\x31"
  4853. "\xb3\x42\xba\xa2\x7e\xd4\x32\x71"
  4854. "\x45\x87\x48\xa9\xc2\xf2\x89\xb3"
  4855. "\xe4\xa7\x7e\x52\x15\x61\xfa\xfe"
  4856. "\xc9\xdd\x81\xeb\x13\xab\xab\xc3"
  4857. "\x98\x59\xd8\x16\x3d\x14\x7a\x1c"
  4858. "\x3c\x41\x9a\x16\x16\x9b\xd2\xd2"
  4859. "\x69\x3a\x29\x23\xac\x86\x32\xa5"
  4860. "\x48\x9c\x9e\xf3\x47\x77\x81\x70"
  4861. "\x24\xe8\x85\xd2\xf5\xb5\xfa\xff"
  4862. "\x59\x6a\xd3\x50\x59\x43\x59\xde"
  4863. "\xd9\xf1\x55\xa5\x0c\xc3\x1a\x1a"
  4864. "\x18\x34\x0d\x1a\x63\x33\xed\x10"
  4865. "\xe0\x1d\x2a\x18\xd2\xc0\x54\xa8"
  4866. "\xca\xb5\x9a\xd3\xdd\xca\x45\x84"
  4867. "\x50\xe7\x0f\xfe\xa4\x99\x5a\xbe"
  4868. "\x43\x2d\x9a\xcb\x92\x3f\x5a\x1d"
  4869. "\x85\xd8\xc9\xdf\x68\xc9\x12\x80"
  4870. "\x56\x0c\xdc\x00\xdc\x3a\x7d\x9d"
  4871. "\xa3\xa2\xe8\x4d\xbf\xf9\x70\xa0"
  4872. "\xa4\x13\x4f\x6b\xaf\x0a\x89\x7f"
  4873. "\xda\xf0\xbf\x9b\xc8\x1d\xe5\xf8"
  4874. "\x2e\x8b\x07\xb5\x73\x1b\xcc\xa2"
  4875. "\xa6\xad\x30\xbc\x78\x3c\x5b\x10"
  4876. "\xfa\x5e\x62\x2d\x9e\x64\xb3\x33"
  4877. "\xce\xf9\x1f\x86\xe7\x8b\xa2\xb8"
  4878. "\xe8\x99\x57\x8c\x11\xed\x66\xd9"
  4879. "\x3c\x72\xb9\xc3\xe6\x4e\x17\x3a"
  4880. "\x6a\xcb\x42\x24\x06\xed\x3e\x4e"
  4881. "\xa3\xe8\x6a\x94\xda\x0d\x4e\xd5"
  4882. "\x14\x19\xcf\xb6\x26\xd8\x2e\xcc"
  4883. "\x64\x76\x38\x49\x4d\xfe\x30\x6d"
  4884. "\xe4\xc8\x8c\x7b\xc4\xe0\x35\xba"
  4885. "\x22\x6e\x76\xe1\x1a\xf2\x53\xc3"
  4886. "\x28\xa2\x82\x1f\x61\x69\xad\xc1"
  4887. "\x7b\x28\x4b\x1e\x6c\x85\x95\x9b"
  4888. "\x51\xb5\x17\x7f\x12\x69\x8c\x24"
  4889. "\xd5\xc7\x5a\x5a\x11\x54\xff\x5a"
  4890. "\xf7\x16\xc3\x91\xa6\xf0\xdc\x0a"
  4891. "\xb6\xa7\x4a\x0d\x7a\x58\xfe\xa5"
  4892. "\xf5\xcb\x8f\x7b\x0e\xea\x57\xe7"
  4893. "\xbd\x79\xd6\x1c\x88\x23\x6c\xf2"
  4894. "\x4d\x29\x77\x53\x35\x6a\x00\x8d"
  4895. "\xcd\xa3\x58\xbe\x77\x99\x18\xf8"
  4896. "\xe6\xe1\x8f\xe9\x37\x8f\xe3\xe2"
  4897. "\x5a\x8a\x93\x25\xaf\xf3\x78\x80"
  4898. "\xbe\xa6\x1b\xc6\xac\x8b\x1c\x91"
  4899. "\x58\xe1\x9f\x89\x35\x9d\x1d\x21"
  4900. "\x29\x9f\xf4\x99\x02\x27\x0f\xa8"
  4901. "\x4f\x79\x94\x2b\x33\x2c\xda\xa2"
  4902. "\x26\x39\x83\x94\xef\x27\xd8\x53"
  4903. "\x8f\x66\x0d\xe4\x41\x7d\x34\xcd"
  4904. "\x43\x7c\x95\x0a\x53\xef\x66\xda"
  4905. "\x7e\x9b\xf3\x93\xaf\xd0\x73\x71"
  4906. "\xba\x40\x9b\x74\xf8\xd7\xd7\x41"
  4907. "\x6d\xaf\x72\x9c\x8d\x21\x87\x3c"
  4908. "\xfd\x0a\x90\xa9\x47\x96\x9e\xd3"
  4909. "\x88\xee\x73\xcf\x66\x2f\x52\x56"
  4910. "\x6d\xa9\x80\x4c\xe2\x6f\x62\x88"
  4911. "\x3f\x0e\x54\x17\x48\x80\x5d\xd3"
  4912. "\xc3\xda\x25\x3d\xa1\xc8\xcb\x9f"
  4913. "\x9b\x70\xb3\xa1\xeb\x04\x52\xa1"
  4914. "\xf2\x22\x0f\xfc\xc8\x18\xfa\xf9"
  4915. "\x85\x9c\xf1\xac\xeb\x0c\x02\x46"
  4916. "\x75\xd2\xf5\x2c\xe3\xd2\x59\x94"
  4917. "\x12\xf3\x3c\xfc\xd7\x92\xfa\x36"
  4918. "\xba\x61\x34\x38\x7c\xda\x48\x3e"
  4919. "\x08\xc9\x39\x23\x5e\x02\x2c\x1a"
  4920. "\x18\x7e\xb4\xd9\xfd\x9e\x40\x02"
  4921. "\xb1\x33\x37\x32\xe7\xde\xd6\xd0"
  4922. "\x7c\x58\x65\x4b\xf8\x34\x27\x9c"
  4923. "\x44\xb4\xbd\xe9\xe9\x4c\x78\x7d"
  4924. "\x4b\x9f\xce\xb1\xcd\x47\xa5\x37"
  4925. "\xe5\x6d\xbd\xb9\x43\x94\x0a\xd4"
  4926. "\xd6\xf9\x04\x5f\xb5\x66\x6c\x1a"
  4927. "\x35\x12\xe3\x36\x28\x27\x36\x58"
  4928. "\x01\x2b\x79\xe4\xba\x6d\x10\x7d"
  4929. "\x65\xdf\x84\x95\xf4\xd5\xb6\x8f"
  4930. "\x2b\x9f\x96\x00\x86\x60\xf0\x21"
  4931. "\x76\xa8\x6a\x8c\x28\x1c\xb3\x6b"
  4932. "\x97\xd7\xb6\x53\x2a\xcc\xab\x40"
  4933. "\x9d\x62\x79\x58\x52\xe6\x65\xb7"
  4934. "\xab\x55\x67\x9c\x89\x7c\x03\xb0"
  4935. "\x73\x59\xc5\x81\xf5\x18\x17\x5c"
  4936. "\x89\xf3\x78\x35\x44\x62\x78\x72"
  4937. "\xd0\x96\xeb\x31\xe7\x87\x77\x14"
  4938. "\x99\x51\xf2\x59\x26\x9e\xb5\xa6"
  4939. "\x45\xfe\x6e\xbd\x07\x4c\x94\x5a"
  4940. "\xa5\x7d\xfc\xf1\x2b\x77\xe2\xfe"
  4941. "\x17\xd4\x84\xa0\xac\xb5\xc7\xda"
  4942. "\xa9\x1a\xb6\xf3\x74\x11\xb4\x9d"
  4943. "\xfb\x79\x2e\x04\x2d\x50\x28\x83"
  4944. "\xbf\xc6\x52\xd3\x34\xd6\xe8\x7a"
  4945. "\xb6\xea\xe7\xa8\x6c\x15\x1e\x2c"
  4946. "\x57\xbc\x48\x4e\x5f\x5c\xb6\x92"
  4947. "\xd2\x49\x77\x81\x6d\x90\x70\xae"
  4948. "\x98\xa1\x03\x0d\x6b\xb9\x77\x14"
  4949. "\xf1\x4e\x23\xd3\xf8\x68\xbd\xc2"
  4950. "\xfe\x04\xb7\x5c\xc5\x17\x60\x8f"
  4951. "\x65\x54\xa4\x7a\x42\xdc\x18\x0d"
  4952. "\xb5\xcf\x0f\xd3\xc7\x91\x66\x1b"
  4953. "\x45\x42\x27\x75\x50\xe5\xee\xb8"
  4954. "\x7f\x33\x2c\xba\x4a\x92\x4d\x2c"
  4955. "\x3c\xe3\x0d\x80\x01\xba\x0d\x29"
  4956. "\xd8\x3c\xe9\x13\x16\x57\xe6\xea"
  4957. "\x94\x52\xe7\x00\x4d\x30\xb0\x0f"
  4958. "\x35\xb8\xb8\xa7\xb1\xb5\x3b\x44"
  4959. "\xe1\x2f\xfd\x88\xed\x43\xe7\x52"
  4960. "\x10\x93\xb3\x8a\x30\x6b\x0a\xf7"
  4961. "\x23\xc6\x50\x9d\x4a\xb0\xde\xc3"
  4962. "\xdc\x9b\x2f\x01\x56\x36\x09\xc5"
  4963. "\x2f\x6b\xfe\xf1\xd8\x27\x45\x03"
  4964. "\x30\x5e\x5c\x5b\xb4\x62\x0e\x1a"
  4965. "\xa9\x21\x2b\x92\x94\x87\x62\x57"
  4966. "\x4c\x10\x74\x1a\xf1\x0a\xc5\x84"
  4967. "\x3b\x9e\x72\x02\xd7\xcc\x09\x56"
  4968. "\xbd\x54\xc1\xf0\xc3\xe3\xb3\xf8"
  4969. "\xd2\x0d\x61\xcb\xef\xce\x0d\x05"
  4970. "\xb0\x98\xd9\x8e\x4f\xf9\xbc\x93"
  4971. "\xa6\xea\xc8\xcf\x10\x53\x4b\xf1"
  4972. "\xec\xfc\x89\xf9\x64\xb0\x22\xbf"
  4973. "\x9e\x55\x46\x9f\x7c\x50\x8e\x84"
  4974. "\x54\x20\x98\xd7\x6c\x40\x1e\xdb"
  4975. "\x69\x34\x78\x61\x24\x21\x9c\x8a"
  4976. "\xb3\x62\x31\x8b\x6e\xf5\x2a\x35"
  4977. "\x86\x13\xb1\x6c\x64\x2e\x41\xa5"
  4978. "\x05\xf2\x42\xba\xd2\x3a\x0d\x8e"
  4979. "\x8a\x59\x94\x3c\xcf\x36\x27\x82"
  4980. "\xc2\x45\xee\x58\xcd\x88\xb4\xec"
  4981. "\xde\xb2\x96\x0a\xaf\x38\x6f\x88"
  4982. "\xd7\xd8\xe1\xdf\xb9\x96\xa9\x0a"
  4983. "\xb1\x95\x28\x86\x20\xe9\x17\x49"
  4984. "\xa2\x29\x38\xaa\xa5\xe9\x6e\xf1"
  4985. "\x19\x27\xc0\xd5\x2a\x22\xc3\x0b"
  4986. "\xdb\x7c\x73\x10\xb9\xba\x89\x76"
  4987. "\x54\xae\x7d\x71\xb3\x93\xf6\x32"
  4988. "\xe6\x47\x43\x55\xac\xa0\x0d\xc2"
  4989. "\x93\x27\x4a\x8e\x0e\x74\x15\xc7"
  4990. "\x0b\x85\xd9\x0c\xa9\x30\x7a\x3e"
  4991. "\xea\x8f\x85\x6d\x3a\x12\x4f\x72"
  4992. "\x69\x58\x7a\x80\xbb\xb5\x97\xf3"
  4993. "\xcf\x70\xd2\x5d\xdd\x4d\x21\x79"
  4994. "\x54\x4d\xe4\x05\xe8\xbd\xc2\x62"
  4995. "\xb1\x3b\x77\x1c\xd6\x5c\xf3\xa0"
  4996. "\x79\x00\xa8\x6c\x29\xd9\x18\x24"
  4997. "\x36\xa2\x46\xc0\x96\x65\x7f\xbd"
  4998. "\x2a\xed\x36\x16\x0c\xaa\x9f\xf4"
  4999. "\xc5\xb4\xe2\x12\xed\x69\xed\x4f"
  5000. "\x26\x2c\x39\x52\x89\x98\xe7\x2c"
  5001. "\x99\xa4\x9e\xa3\x9b\x99\x46\x7a"
  5002. "\x3a\xdc\xa8\x59\xa3\xdb\xc3\x3b"
  5003. "\x95\x0d\x3b\x09\x6e\xee\x83\x5d"
  5004. "\x32\x4d\xed\xab\xfa\x98\x14\x4e"
  5005. "\xc3\x15\x45\x53\x61\xc4\x93\xbd"
  5006. "\x90\xf4\x99\x95\x4c\xe6\x76\x92"
  5007. "\x29\x90\x46\x30\x92\x69\x7d\x13"
  5008. "\xf2\xa5\xcd\x69\x49\x44\xb2\x0f"
  5009. "\x63\x40\x36\x5f\x09\xe2\x78\xf8"
  5010. "\x91\xe3\xe2\xfa\x10\xf7\xc8\x24"
  5011. "\xa8\x89\x32\x5c\x37\x25\x1d\xb2"
  5012. "\xea\x17\x8a\x0a\xa9\x64\xc3\x7c"
  5013. "\x3c\x7c\xbd\xc6\x79\x34\xe7\xe2"
  5014. "\x85\x8e\xbf\xf8\xde\x92\xa0\xae"
  5015. "\x20\xc4\xf6\xbb\x1f\x38\x19\x0e"
  5016. "\xe8\x79\x9c\xa1\x23\xe9\x54\x7e"
  5017. "\x37\x2f\xe2\x94\x32\xaf\xa0\x23"
  5018. "\x49\xe4\xc0\xb3\xac\x00\x8f\x36"
  5019. "\x05\xc4\xa6\x96\xec\x05\x98\x4f"
  5020. "\x96\x67\x57\x1f\x20\x86\x1b\x2d"
  5021. "\x69\xe4\x29\x93\x66\x5f\xaf\x6b"
  5022. "\x88\x26\x2c\x67\x02\x4b\x52\xd0"
  5023. "\x83\x7a\x43\x1f\xc0\x71\x15\x25"
  5024. "\x77\x65\x08\x60\x11\x76\x4c\x8d"
  5025. "\xed\xa9\x27\xc6\xb1\x2a\x2c\x6a"
  5026. "\x4a\x97\xf5\xc6\xb7\x70\x42\xd3"
  5027. "\x03\xd1\x24\x95\xec\x6d\xab\x38"
  5028. "\x72\xce\xe2\x8b\x33\xd7\x51\x09"
  5029. "\xdc\x45\xe0\x09\x96\x32\xf3\xc4"
  5030. "\x84\xdc\x73\x73\x2d\x1b\x11\x98"
  5031. "\xc5\x0e\x69\x28\x94\xc7\xb5\x4d"
  5032. "\xc8\x8a\xd0\xaa\x13\x2e\x18\x74"
  5033. "\xdd\xd1\x1e\xf3\x90\xe8\xfc\x9a"
  5034. "\x72\x4a\x0e\xd1\xe4\xfb\x0d\x96"
  5035. "\xd1\x0c\x79\x85\x1b\x1c\xfe\xe1"
  5036. "\x62\x8f\x7a\x73\x32\xab\xc8\x18"
  5037. "\x69\xe3\x34\x30\xdf\x13\xa6\xe5"
  5038. "\xe8\x0e\x67\x7f\x81\x11\xb4\x60"
  5039. "\xc7\xbd\x79\x65\x50\xdc\xc4\x5b"
  5040. "\xde\x39\xa4\x01\x72\x63\xf3\xd1"
  5041. "\x64\x4e\xdf\xfc\x27\x92\x37\x0d"
  5042. "\x57\xcd\x11\x4f\x11\x04\x8e\x1d"
  5043. "\x16\xf7\xcd\x92\x9a\x99\x30\x14"
  5044. "\xf1\x7c\x67\x1b\x1f\x41\x0b\xe8"
  5045. "\x32\xe8\xb8\xc1\x4f\x54\x86\x4f"
  5046. "\xe5\x79\x81\x73\xcd\x43\x59\x68"
  5047. "\x73\x02\x3b\x78\x21\x72\x43\x00"
  5048. "\x49\x17\xf7\x00\xaf\x68\x24\x53"
  5049. "\x05\x0a\xc3\x33\xe0\x33\x3f\x69"
  5050. "\xd2\x84\x2f\x0b\xed\xde\x04\xf4"
  5051. "\x11\x94\x13\x69\x51\x09\x28\xde"
  5052. "\x57\x5c\xef\xdc\x9a\x49\x1c\x17"
  5053. "\x97\xf3\x96\xc1\x7f\x5d\x2e\x7d"
  5054. "\x55\xb8\xb3\x02\x09\xb3\x1f\xe7"
  5055. "\xc9\x8d\xa3\x36\x34\x8a\x77\x13"
  5056. "\x30\x63\x4c\xa5\xcd\xc3\xe0\x7e"
  5057. "\x05\xa1\x7b\x0c\xcb\x74\x47\x31"
  5058. "\x62\x03\x43\xf1\x87\xb4\xb0\x85"
  5059. "\x87\x8e\x4b\x25\xc7\xcf\xae\x4b"
  5060. "\x36\x46\x3e\x62\xbc\x6f\xeb\x5f"
  5061. "\x73\xac\xe6\x07\xee\xc1\xa1\xd6"
  5062. "\xc4\xab\xc9\xd6\x89\x45\xe1\xf1"
  5063. "\x04\x4e\x1a\x6f\xbb\x4f\x3a\xa3"
  5064. "\xa0\xcb\xa3\x0a\xd8\x71\x35\x55"
  5065. "\xe4\xbc\x2e\x04\x06\xe6\xff\x5b"
  5066. "\x1c\xc0\x11\x7c\xc5\x17\xf3\x38"
  5067. "\xcf\xe9\xba\x0f\x0e\xef\x02\xc2"
  5068. "\x8d\xc6\xbc\x4b\x67\x20\x95\xd7"
  5069. "\x2c\x45\x5b\x86\x44\x8c\x6f\x2e"
  5070. "\x7e\x9f\x1c\x77\xba\x6b\x0e\xa3"
  5071. "\x69\xdc\xab\x24\x57\x60\x47\xc1"
  5072. "\xd1\xa5\x9d\x23\xe6\xb1\x37\xfe"
  5073. "\x93\xd2\x4c\x46\xf9\x0c\xc6\xfb"
  5074. "\xd6\x9d\x99\x69\xab\x7a\x07\x0c"
  5075. "\x65\xe7\xc4\x08\x96\xe2\xa5\x01"
  5076. "\x3f\x46\x07\x05\x7e\xe8\x9a\x90"
  5077. "\x50\xdc\xe9\x7a\xea\xa1\x39\x6e"
  5078. "\x66\xe4\x6f\xa5\x5f\xb2\xd9\x5b"
  5079. "\xf5\xdb\x2a\x32\xf0\x11\x6f\x7c"
  5080. "\x26\x10\x8f\x3d\x80\xe9\x58\xf7"
  5081. "\xe0\xa8\x57\xf8\xdb\x0e\xce\x99"
  5082. "\x63\x19\x3d\xd5\xec\x1b\x77\x69"
  5083. "\x98\xf6\xe4\x5f\x67\x17\x4b\x09"
  5084. "\x85\x62\x82\x70\x18\xe2\x9a\x78"
  5085. "\xe2\x62\xbd\xb4\xf1\x42\xc6\xfb"
  5086. "\x08\xd0\xbd\xeb\x4e\x09\xf2\xc8"
  5087. "\x1e\xdc\x3d\x32\x21\x56\x9c\x4f"
  5088. "\x35\xf3\x61\x06\x72\x84\xc4\x32"
  5089. "\xf2\xf1\xfa\x0b\x2f\xc3\xdb\x02"
  5090. "\x04\xc2\xde\x57\x64\x60\x8d\xcf"
  5091. "\xcb\x86\x5d\x97\x3e\xb1\x9c\x01"
  5092. "\xd6\x28\x8f\x99\xbc\x46\xeb\x05"
  5093. "\xaf\x7e\xb8\x21\x2a\x56\x85\x1c"
  5094. "\xb3\x71\xa0\xde\xca\x96\xf1\x78"
  5095. "\x49\xa2\x99\x81\x80\x5c\x01\xf5"
  5096. "\xa0\xa2\x56\x63\xe2\x70\x07\xa5"
  5097. "\x95\xd6\x85\xeb\x36\x9e\xa9\x51"
  5098. "\x66\x56\x5f\x1d\x02\x19\xe2\xf6"
  5099. "\x4f\x73\x38\x09\x75\x64\x48\xe0"
  5100. "\xf1\x7e\x0e\xe8\x9d\xf9\xed\x94"
  5101. "\xfe\x16\x26\x62\x49\x74\xf4\xb0"
  5102. "\xd4\xa9\x6c\xb0\xfd\x53\xe9\x81"
  5103. "\xe0\x7a\xbf\xcf\xb5\xc4\x01\x81"
  5104. "\x79\x99\x77\x01\x3b\xe9\xa2\xb6"
  5105. "\xe6\x6a\x8a\x9e\x56\x1c\x8d\x1e"
  5106. "\x8f\x06\x55\x2c\x6c\xdc\x92\x87"
  5107. "\x64\x3b\x4b\x19\xa1\x13\x64\x1d"
  5108. "\x4a\xe9\xc0\x00\xb8\x95\xef\x6b"
  5109. "\x1a\x86\x6d\x37\x52\x02\xc2\xe0"
  5110. "\xc8\xbb\x42\x0c\x02\x21\x4a\xc9"
  5111. "\xef\xa0\x54\xe4\x5e\x16\x53\x81"
  5112. "\x70\x62\x10\xaf\xde\xb8\xb5\xd3"
  5113. "\xe8\x5e\x6c\xc3\x8a\x3e\x18\x07"
  5114. "\xf2\x2f\x7d\xa7\xe1\x3d\x4e\xb4"
  5115. "\x26\xa7\xa3\x93\x86\xb2\x04\x1e"
  5116. "\x53\x5d\x86\xd6\xde\x65\xca\xe3"
  5117. "\x4e\xc1\xcf\xef\xc8\x70\x1b\x83"
  5118. "\x13\xdd\x18\x8b\x0d\x76\xd2\xf6"
  5119. "\x37\x7a\x93\x7a\x50\x11\x9f\x96"
  5120. "\x86\x25\xfd\xac\xdc\xbe\x18\x93"
  5121. "\x19\x6b\xec\x58\x4f\xb9\x75\xa7"
  5122. "\xdd\x3f\x2f\xec\xc8\x5a\x84\xab"
  5123. "\xd5\xe4\x8a\x07\xf6\x4d\x23\xd6"
  5124. "\x03\xfb\x03\x6a\xea\x66\xbf\xd4"
  5125. "\xb1\x34\xfb\x78\xe9\x55\xdc\x7c"
  5126. "\x3d\x9c\xe5\x9a\xac\xc3\x7a\x80"
  5127. "\x24\x6d\xa0\xef\x25\x7c\xb7\xea"
  5128. "\xce\x4d\x5f\x18\x60\xce\x87\x22"
  5129. "\x66\x2f\xd5\xdd\xdd\x02\x21\x75"
  5130. "\x82\xa0\x1f\x58\xc6\xd3\x62\xf7"
  5131. "\x32\xd8\xaf\x1e\x07\x77\x51\x96"
  5132. "\xd5\x6b\x1e\x7e\x80\x02\xe8\x67"
  5133. "\xea\x17\x0b\x10\xd2\x3f\x28\x25"
  5134. "\x4f\x05\x77\x02\x14\x69\xf0\x2c"
  5135. "\xbe\x0c\xf1\x74\x30\xd1\xb9\x9b"
  5136. "\xfc\x8c\xbb\x04\x16\xd9\xba\xc3"
  5137. "\xbc\x91\x8a\xc4\x30\xa4\xb0\x12"
  5138. "\x4c\x21\x87\xcb\xc9\x1d\x16\x96"
  5139. "\x07\x6f\x23\x54\xb9\x6f\x79\xe5"
  5140. "\x64\xc0\x64\xda\xb1\xae\xdd\x60"
  5141. "\x6c\x1a\x9d\xd3\x04\x8e\x45\xb0"
  5142. "\x92\x61\xd0\x48\x81\xed\x5e\x1d"
  5143. "\xa0\xc9\xa4\x33\xc7\x13\x51\x5d"
  5144. "\x7f\x83\x73\xb6\x70\x18\x65\x3e"
  5145. "\x2f\x0e\x7a\x12\x39\x98\xab\xd8"
  5146. "\x7e\x6f\xa3\xd1\xba\x56\xad\xbd"
  5147. "\xf0\x03\x01\x1c\x85\x35\x9f\xeb"
  5148. "\x19\x63\xa1\xaf\xfe\x2d\x35\x50"
  5149. "\x39\xa0\x65\x7c\x95\x7e\x6b\xfe"
  5150. "\xc1\xac\x07\x7c\x98\x4f\xbe\x57"
  5151. "\xa7\x22\xec\xe2\x7e\x29\x09\x53"
  5152. "\xe8\xbf\xb4\x7e\x3f\x8f\xfc\x14"
  5153. "\xce\x54\xf9\x18\x58\xb5\xff\x44"
  5154. "\x05\x9d\xce\x1b\xb6\x82\x23\xc8"
  5155. "\x2e\xbc\x69\xbb\x4a\x29\x0f\x65"
  5156. "\x94\xf0\x63\x06\x0e\xef\x8c\xbd"
  5157. "\xff\xfd\xb0\x21\x6e\x57\x05\x75"
  5158. "\xda\xd5\xc4\xeb\x8d\x32\xf7\x50"
  5159. "\xd3\x6f\x22\xed\x5f\x8e\xa2\x5b"
  5160. "\x80\x8c\xc8\x78\x40\x24\x4b\x89"
  5161. "\x30\xce\x7a\x97\x0e\xc4\xaf\xef"
  5162. "\x9b\xb4\xcd\x66\x74\x14\x04\x2b"
  5163. "\xf7\xce\x0b\x1c\x6e\xc2\x78\x8c"
  5164. "\xca\xc5\xd0\x1c\x95\x4a\x91\x2d"
  5165. "\xa7\x20\xeb\x86\x52\xb7\x67\xd8"
  5166. "\x0c\xd6\x04\x14\xde\x51\x74\x75"
  5167. "\xe7\x11\xb4\x87\xa3\x3d\x2d\xad"
  5168. "\x4f\xef\xa0\x0f\x70\x00\x6d\x13"
  5169. "\x19\x1d\x41\x50\xe9\xd8\xf0\x32"
  5170. "\x71\xbc\xd3\x11\xf2\xac\xbe\xaf"
  5171. "\x75\x46\x65\x4e\x07\x34\x37\xa3"
  5172. "\x89\xfe\x75\xd4\x70\x4c\xc6\x3f"
  5173. "\x69\x24\x0e\x38\x67\x43\x8c\xde"
  5174. "\x06\xb5\xb8\xe7\xc4\xf0\x41\x8f"
  5175. "\xf0\xbd\x2f\x0b\xb9\x18\xf8\xde"
  5176. "\x64\xb1\xdb\xee\x00\x50\x77\xe1"
  5177. "\xc7\xff\xa6\xfa\xdd\x70\xf4\xe3"
  5178. "\x93\xe9\x77\x35\x3d\x4b\x2f\x2b"
  5179. "\x6d\x55\xf0\xfc\x88\x54\x4e\x89"
  5180. "\xc1\x8a\x23\x31\x2d\x14\x2a\xb8"
  5181. "\x1b\x15\xdd\x9e\x6e\x7b\xda\x05"
  5182. "\x91\x7d\x62\x64\x96\x72\xde\xfc"
  5183. "\xc1\xec\xf0\x23\x51\x6f\xdb\x5b"
  5184. "\x1d\x08\x57\xce\x09\xb8\xf6\xcd"
  5185. "\x8d\x95\xf2\x20\xbf\x0f\x20\x57"
  5186. "\x98\x81\x84\x4f\x15\x5c\x76\xe7"
  5187. "\x3e\x0a\x3a\x6c\xc4\x8a\xbe\x78"
  5188. "\x74\x77\xc3\x09\x4b\x5d\x48\xe4"
  5189. "\xc8\xcb\x0b\xea\x17\x28\xcf\xcf"
  5190. "\x31\x32\x44\xa4\xe5\x0e\x1a\x98"
  5191. "\x94\xc4\xf0\xff\xae\x3e\x44\xe8"
  5192. "\xa5\xb3\xb5\x37\x2f\xe8\xaf\x6f"
  5193. "\x28\xc1\x37\x5f\x31\xd2\xb9\x33"
  5194. "\xb1\xb2\x52\x94\x75\x2c\x29\x59"
  5195. "\x06\xc2\x25\xe8\x71\x65\x4e\xed"
  5196. "\xc0\x9c\xb1\xbb\x25\xdc\x6c\xe7"
  5197. "\x4b\xa5\x7a\x54\x7a\x60\xff\x7a"
  5198. "\xe0\x50\x40\x96\x35\x63\xe4\x0b"
  5199. "\x76\xbd\xa4\x65\x00\x1b\x57\x88"
  5200. "\xae\xed\x39\x88\x42\x11\x3c\xed"
  5201. "\x85\x67\x7d\xb9\x68\x82\xe9\x43"
  5202. "\x3c\x47\x53\xfa\xe8\xf8\x9f\x1f"
  5203. "\x9f\xef\x0f\xf7\x30\xd9\x30\x0e"
  5204. "\xb9\x9f\x69\x18\x2f\x7e\xf8\xf8"
  5205. "\xf8\x8c\x0f\xd4\x02\x4d\xea\xcd"
  5206. "\x0a\x9c\x6f\x71\x6d\x5a\x4c\x60"
  5207. "\xce\x20\x56\x32\xc6\xc5\x99\x1f"
  5208. "\x09\xe6\x4e\x18\x1a\x15\x13\xa8"
  5209. "\x7d\xb1\x6b\xc0\xb2\x6d\xf8\x26"
  5210. "\x66\xf8\x3d\x18\x74\x70\x66\x7a"
  5211. "\x34\x17\xde\xba\x47\xf1\x06\x18"
  5212. "\xcb\xaf\xeb\x4a\x1e\x8f\xa7\x77"
  5213. "\xe0\x3b\x78\x62\x66\xc9\x10\xea"
  5214. "\x1f\xb7\x29\x0a\x45\xa1\x1d\x1e"
  5215. "\x1d\xe2\x65\x61\x50\x9c\xd7\x05"
  5216. "\xf2\x0b\x5b\x12\x61\x02\xc8\xe5"
  5217. "\x63\x4f\x20\x0c\x07\x17\x33\x5e"
  5218. "\x03\x9a\x53\x0f\x2e\x55\xfe\x50"
  5219. "\x43\x7d\xd0\xb6\x7e\x5a\xda\xae"
  5220. "\x58\xef\x15\xa9\x83\xd9\x46\xb1"
  5221. "\x42\xaa\xf5\x02\x6c\xce\x92\x06"
  5222. "\x1b\xdb\x66\x45\x91\x79\xc2\x2d"
  5223. "\xe6\x53\xd3\x14\xfd\xbb\x44\x63"
  5224. "\xc6\xd7\x3d\x7a\x0c\x75\x78\x9d"
  5225. "\x5c\xa6\x39\xb3\xe5\x63\xca\x8b"
  5226. "\xfe\xd3\xef\x60\x83\xf6\x8e\x70"
  5227. "\xb6\x67\xc7\x77\xed\x23\xef\x4c"
  5228. "\xf0\xed\x2d\x07\x59\x6f\xc1\x01"
  5229. "\x34\x37\x08\xab\xd9\x1f\x09\xb1"
  5230. "\xce\x5b\x17\xff\x74\xf8\x9c\xd5"
  5231. "\x2c\x56\x39\x79\x0f\x69\x44\x75"
  5232. "\x58\x27\x01\xc4\xbf\xa7\xa1\x1d"
  5233. "\x90\x17\x77\x86\x5a\x3f\xd9\xd1"
  5234. "\x0e\xa0\x10\xf8\xec\x1e\xa5\x7f"
  5235. "\x5e\x36\xd1\xe3\x04\x2c\x70\xf7"
  5236. "\x8e\xc0\x98\x2f\x6c\x94\x2b\x41"
  5237. "\xb7\x60\x00\xb7\x2e\xb8\x02\x8d"
  5238. "\xb8\xb0\xd3\x86\xba\x1d\xd7\x90"
  5239. "\xd6\xb6\xe1\xfc\xd7\xd8\x28\x06"
  5240. "\x63\x9b\xce\x61\x24\x79\xc0\x70"
  5241. "\x52\xd0\xb6\xd4\x28\x95\x24\x87"
  5242. "\x03\x1f\xb7\x9a\xda\xa3\xfb\x52"
  5243. "\x5b\x68\xe7\x4c\x8c\x24\xe1\x42"
  5244. "\xf7\xd5\xfd\xad\x06\x32\x9f\xba"
  5245. "\xc1\xfc\xdd\xc6\xfc\xfc\xb3\x38"
  5246. "\x74\x56\x58\x40\x02\x37\x52\x2c"
  5247. "\x55\xcc\xb3\x9e\x7a\xe9\xd4\x38"
  5248. "\x41\x5e\x0c\x35\xe2\x11\xd1\x13"
  5249. "\xf8\xb7\x8d\x72\x6b\x22\x2a\xb0"
  5250. "\xdb\x08\xba\x35\xb9\x3f\xc8\xd3"
  5251. "\x24\x90\xec\x58\xd2\x09\xc7\x2d"
  5252. "\xed\x38\x80\x36\x72\x43\x27\x49"
  5253. "\x4a\x80\x8a\xa2\xe8\xd3\xda\x30"
  5254. "\x7d\xb6\x82\x37\x86\x92\x86\x3e"
  5255. "\x08\xb2\x28\x5a\x55\x44\x24\x7d"
  5256. "\x40\x48\x8a\xb6\x89\x58\x08\xa0"
  5257. "\xd6\x6d\x3a\x17\xbf\xf6\x54\xa2"
  5258. "\xf5\xd3\x8c\x0f\x78\x12\x57\x8b"
  5259. "\xd5\xc2\xfd\x58\x5b\x7f\x38\xe3"
  5260. "\xcc\xb7\x7c\x48\xb3\x20\xe8\x81"
  5261. "\x14\x32\x45\x05\xe0\xdb\x9f\x75"
  5262. "\x85\xb4\x6a\xfc\x95\xe3\x54\x22"
  5263. "\x12\xee\x30\xfe\xd8\x30\xef\x34"
  5264. "\x50\xab\x46\x30\x98\x2f\xb7\xc0"
  5265. "\x15\xa2\x83\xb6\xf2\x06\x21\xa2"
  5266. "\xc3\x26\x37\x14\xd1\x4d\xb5\x10"
  5267. "\x52\x76\x4d\x6a\xee\xb5\x2b\x15"
  5268. "\xb7\xf9\x51\xe8\x2a\xaf\xc7\xfa"
  5269. "\x77\xaf\xb0\x05\x4d\xd1\x68\x8e"
  5270. "\x74\x05\x9f\x9d\x93\xa5\x3e\x7f"
  5271. "\x4e\x5f\x9d\xcb\x09\xc7\x83\xe3"
  5272. "\x02\x9d\x27\x1f\xef\x85\x05\x8d"
  5273. "\xec\x55\x88\x0f\x0d\x7c\x4c\xe8"
  5274. "\xa1\x75\xa0\xd8\x06\x47\x14\xef"
  5275. "\xaa\x61\xcf\x26\x15\xad\xd8\xa3"
  5276. "\xaa\x75\xf2\x78\x4a\x5a\x61\xdf"
  5277. "\x8b\xc7\x04\xbc\xb2\x32\xd2\x7e"
  5278. "\x42\xee\xb4\x2f\x51\xff\x7b\x2e"
  5279. "\xd3\x02\xe8\xdc\x5d\x0d\x50\xdc"
  5280. "\xae\xb7\x46\xf9\xa8\xe6\xd0\x16"
  5281. "\xcc\xe6\x2c\x81\xc7\xad\xe9\xf0"
  5282. "\x05\x72\x6d\x3d\x0a\x7a\xa9\x02"
  5283. "\xac\x82\x93\x6e\xb6\x1c\x28\xfc"
  5284. "\x44\x12\xfb\x73\x77\xd4\x13\x39"
  5285. "\x29\x88\x8a\xf3\x5c\xa6\x36\xa0"
  5286. "\x2a\xed\x7e\xb1\x1d\xd6\x4c\x6b"
  5287. "\x41\x01\x18\x5d\x5d\x07\x97\xa6"
  5288. "\x4b\xef\x31\x18\xea\xac\xb1\x84"
  5289. "\x21\xed\xda\x86",
  5290. .rlen = 4100,
  5291. .np = 2,
  5292. .tap = { 4064, 36 },
  5293. },
  5294. };
  5295. static struct cipher_testvec aes_ctr_rfc3686_dec_tv_template[] = {
  5296. { /* From RFC 3686 */
  5297. .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
  5298. "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
  5299. "\x00\x00\x00\x30",
  5300. .klen = 20,
  5301. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  5302. .input = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
  5303. "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
  5304. .ilen = 16,
  5305. .result = "Single block msg",
  5306. .rlen = 16,
  5307. }, {
  5308. .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
  5309. "\x43\xd6\xce\x1f\x32\x53\x91\x63"
  5310. "\x00\x6c\xb6\xdb",
  5311. .klen = 20,
  5312. .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
  5313. .input = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
  5314. "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
  5315. "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
  5316. "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
  5317. .ilen = 32,
  5318. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5319. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5320. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5321. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  5322. .rlen = 32,
  5323. }, {
  5324. .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
  5325. "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
  5326. "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
  5327. "\x00\x00\x00\x48",
  5328. .klen = 28,
  5329. .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
  5330. .input = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
  5331. "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
  5332. .ilen = 16,
  5333. .result = "Single block msg",
  5334. .rlen = 16,
  5335. }, {
  5336. .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
  5337. "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
  5338. "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
  5339. "\x00\x96\xb0\x3b",
  5340. .klen = 28,
  5341. .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
  5342. .input = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
  5343. "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
  5344. "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
  5345. "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
  5346. .ilen = 32,
  5347. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5348. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5349. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5350. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  5351. .rlen = 32,
  5352. }, {
  5353. .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
  5354. "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
  5355. "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
  5356. "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
  5357. "\x00\x00\x00\x60",
  5358. .klen = 36,
  5359. .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
  5360. .input = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
  5361. "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
  5362. .ilen = 16,
  5363. .result = "Single block msg",
  5364. .rlen = 16,
  5365. }, {
  5366. .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
  5367. "\x07\x96\x36\x58\x79\xef\xf8\x86"
  5368. "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
  5369. "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
  5370. "\x00\xfa\xac\x24",
  5371. .klen = 36,
  5372. .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
  5373. .input = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
  5374. "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
  5375. "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
  5376. "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
  5377. .ilen = 32,
  5378. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5379. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5380. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5381. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  5382. .rlen = 32,
  5383. },
  5384. };
  5385. static struct aead_testvec aes_gcm_enc_tv_template[] = {
  5386. { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
  5387. .key = zeroed_string,
  5388. .klen = 16,
  5389. .result = "\x58\xe2\xfc\xce\xfa\x7e\x30\x61"
  5390. "\x36\x7f\x1d\x57\xa4\xe7\x45\x5a",
  5391. .rlen = 16,
  5392. }, {
  5393. .key = zeroed_string,
  5394. .klen = 16,
  5395. .input = zeroed_string,
  5396. .ilen = 16,
  5397. .result = "\x03\x88\xda\xce\x60\xb6\xa3\x92"
  5398. "\xf3\x28\xc2\xb9\x71\xb2\xfe\x78"
  5399. "\xab\x6e\x47\xd4\x2c\xec\x13\xbd"
  5400. "\xf5\x3a\x67\xb2\x12\x57\xbd\xdf",
  5401. .rlen = 32,
  5402. }, {
  5403. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5404. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5405. .klen = 16,
  5406. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5407. "\xde\xca\xf8\x88",
  5408. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5409. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5410. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5411. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5412. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5413. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5414. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5415. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  5416. .ilen = 64,
  5417. .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  5418. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  5419. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  5420. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  5421. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  5422. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  5423. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  5424. "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
  5425. "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
  5426. "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
  5427. .rlen = 80,
  5428. }, {
  5429. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5430. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5431. .klen = 16,
  5432. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5433. "\xde\xca\xf8\x88",
  5434. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5435. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5436. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5437. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5438. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5439. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5440. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5441. "\xba\x63\x7b\x39",
  5442. .ilen = 60,
  5443. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5444. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5445. "\xab\xad\xda\xd2",
  5446. .alen = 20,
  5447. .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  5448. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  5449. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  5450. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  5451. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  5452. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  5453. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  5454. "\x3d\x58\xe0\x91"
  5455. "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
  5456. "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
  5457. .rlen = 76,
  5458. }, {
  5459. .key = zeroed_string,
  5460. .klen = 24,
  5461. .result = "\xcd\x33\xb2\x8a\xc7\x73\xf7\x4b"
  5462. "\xa0\x0e\xd1\xf3\x12\x57\x24\x35",
  5463. .rlen = 16,
  5464. }, {
  5465. .key = zeroed_string,
  5466. .klen = 24,
  5467. .input = zeroed_string,
  5468. .ilen = 16,
  5469. .result = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
  5470. "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
  5471. "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
  5472. "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
  5473. .rlen = 32,
  5474. }, {
  5475. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5476. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5477. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  5478. .klen = 24,
  5479. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5480. "\xde\xca\xf8\x88",
  5481. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5482. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5483. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5484. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5485. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5486. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5487. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5488. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  5489. .ilen = 64,
  5490. .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  5491. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  5492. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  5493. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  5494. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  5495. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  5496. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  5497. "\xcc\xda\x27\x10\xac\xad\xe2\x56"
  5498. "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
  5499. "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
  5500. .rlen = 80,
  5501. }, {
  5502. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5503. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5504. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  5505. .klen = 24,
  5506. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5507. "\xde\xca\xf8\x88",
  5508. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5509. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5510. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5511. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5512. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5513. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5514. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5515. "\xba\x63\x7b\x39",
  5516. .ilen = 60,
  5517. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5518. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5519. "\xab\xad\xda\xd2",
  5520. .alen = 20,
  5521. .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  5522. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  5523. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  5524. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  5525. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  5526. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  5527. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  5528. "\xcc\xda\x27\x10"
  5529. "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
  5530. "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
  5531. .rlen = 76,
  5532. .np = 2,
  5533. .tap = { 32, 28 },
  5534. .anp = 2,
  5535. .atap = { 8, 12 }
  5536. }, {
  5537. .key = zeroed_string,
  5538. .klen = 32,
  5539. .result = "\x53\x0f\x8a\xfb\xc7\x45\x36\xb9"
  5540. "\xa9\x63\xb4\xf1\xc4\xcb\x73\x8b",
  5541. .rlen = 16,
  5542. }
  5543. };
  5544. static struct aead_testvec aes_gcm_dec_tv_template[] = {
  5545. { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
  5546. .key = zeroed_string,
  5547. .klen = 32,
  5548. .input = "\xce\xa7\x40\x3d\x4d\x60\x6b\x6e"
  5549. "\x07\x4e\xc5\xd3\xba\xf3\x9d\x18"
  5550. "\xd0\xd1\xc8\xa7\x99\x99\x6b\xf0"
  5551. "\x26\x5b\x98\xb5\xd4\x8a\xb9\x19",
  5552. .ilen = 32,
  5553. .result = zeroed_string,
  5554. .rlen = 16,
  5555. }, {
  5556. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5557. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5558. "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5559. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5560. .klen = 32,
  5561. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5562. "\xde\xca\xf8\x88",
  5563. .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
  5564. "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
  5565. "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
  5566. "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
  5567. "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
  5568. "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
  5569. "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
  5570. "\xbc\xc9\xf6\x62\x89\x80\x15\xad"
  5571. "\xb0\x94\xda\xc5\xd9\x34\x71\xbd"
  5572. "\xec\x1a\x50\x22\x70\xe3\xcc\x6c",
  5573. .ilen = 80,
  5574. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5575. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5576. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5577. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5578. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5579. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5580. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5581. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  5582. .rlen = 64,
  5583. }, {
  5584. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5585. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5586. "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5587. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5588. .klen = 32,
  5589. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5590. "\xde\xca\xf8\x88",
  5591. .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
  5592. "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
  5593. "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
  5594. "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
  5595. "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
  5596. "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
  5597. "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
  5598. "\xbc\xc9\xf6\x62"
  5599. "\x76\xfc\x6e\xce\x0f\x4e\x17\x68"
  5600. "\xcd\xdf\x88\x53\xbb\x2d\x55\x1b",
  5601. .ilen = 76,
  5602. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5603. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5604. "\xab\xad\xda\xd2",
  5605. .alen = 20,
  5606. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5607. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5608. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5609. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5610. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5611. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5612. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5613. "\xba\x63\x7b\x39",
  5614. .rlen = 60,
  5615. .np = 2,
  5616. .tap = { 48, 28 },
  5617. .anp = 3,
  5618. .atap = { 8, 8, 4 }
  5619. }, {
  5620. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5621. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5622. .klen = 16,
  5623. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5624. "\xde\xca\xf8\x88",
  5625. .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  5626. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  5627. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  5628. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  5629. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  5630. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  5631. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  5632. "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
  5633. "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
  5634. "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
  5635. .ilen = 80,
  5636. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5637. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5638. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5639. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5640. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5641. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5642. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5643. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  5644. .rlen = 64,
  5645. }, {
  5646. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5647. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5648. .klen = 16,
  5649. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5650. "\xde\xca\xf8\x88",
  5651. .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  5652. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  5653. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  5654. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  5655. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  5656. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  5657. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  5658. "\x3d\x58\xe0\x91"
  5659. "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
  5660. "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
  5661. .ilen = 76,
  5662. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5663. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5664. "\xab\xad\xda\xd2",
  5665. .alen = 20,
  5666. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5667. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5668. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5669. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5670. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5671. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5672. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5673. "\xba\x63\x7b\x39",
  5674. .rlen = 60,
  5675. }, {
  5676. .key = zeroed_string,
  5677. .klen = 24,
  5678. .input = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
  5679. "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
  5680. "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
  5681. "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
  5682. .ilen = 32,
  5683. .result = zeroed_string,
  5684. .rlen = 16,
  5685. }, {
  5686. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5687. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5688. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  5689. .klen = 24,
  5690. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5691. "\xde\xca\xf8\x88",
  5692. .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  5693. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  5694. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  5695. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  5696. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  5697. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  5698. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  5699. "\xcc\xda\x27\x10\xac\xad\xe2\x56"
  5700. "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
  5701. "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
  5702. .ilen = 80,
  5703. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5704. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5705. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5706. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5707. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5708. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5709. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5710. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  5711. .rlen = 64,
  5712. }, {
  5713. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5714. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5715. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  5716. .klen = 24,
  5717. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5718. "\xde\xca\xf8\x88",
  5719. .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  5720. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  5721. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  5722. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  5723. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  5724. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  5725. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  5726. "\xcc\xda\x27\x10"
  5727. "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
  5728. "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
  5729. .ilen = 76,
  5730. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5731. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5732. "\xab\xad\xda\xd2",
  5733. .alen = 20,
  5734. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5735. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5736. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5737. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5738. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5739. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5740. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5741. "\xba\x63\x7b\x39",
  5742. .rlen = 60,
  5743. }
  5744. };
  5745. static struct aead_testvec aes_gcm_rfc4106_enc_tv_template[] = {
  5746. { /* Generated using Crypto++ */
  5747. .key = zeroed_string,
  5748. .klen = 20,
  5749. .iv = zeroed_string,
  5750. .input = zeroed_string,
  5751. .ilen = 16,
  5752. .assoc = zeroed_string,
  5753. .alen = 8,
  5754. .result = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
  5755. "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
  5756. "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
  5757. "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
  5758. .rlen = 32,
  5759. },{
  5760. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5761. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5762. "\x00\x00\x00\x00",
  5763. .klen = 20,
  5764. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
  5765. "\x00\x00\x00\x00",
  5766. .input = zeroed_string,
  5767. .ilen = 16,
  5768. .assoc = zeroed_string,
  5769. .alen = 8,
  5770. .result = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
  5771. "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
  5772. "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
  5773. "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
  5774. .rlen = 32,
  5775. }, {
  5776. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5777. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5778. "\x00\x00\x00\x00",
  5779. .klen = 20,
  5780. .iv = zeroed_string,
  5781. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  5782. "\x01\x01\x01\x01\x01\x01\x01\x01",
  5783. .ilen = 16,
  5784. .assoc = zeroed_string,
  5785. .alen = 8,
  5786. .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
  5787. "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
  5788. "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
  5789. "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
  5790. .rlen = 32,
  5791. }, {
  5792. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5793. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5794. "\x00\x00\x00\x00",
  5795. .klen = 20,
  5796. .iv = zeroed_string,
  5797. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  5798. "\x01\x01\x01\x01\x01\x01\x01\x01",
  5799. .ilen = 16,
  5800. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
  5801. .alen = 8,
  5802. .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
  5803. "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
  5804. "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
  5805. "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
  5806. .rlen = 32,
  5807. }, {
  5808. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5809. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5810. "\x00\x00\x00\x00",
  5811. .klen = 20,
  5812. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
  5813. "\x00\x00\x00\x00",
  5814. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  5815. "\x01\x01\x01\x01\x01\x01\x01\x01",
  5816. .ilen = 16,
  5817. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
  5818. .alen = 8,
  5819. .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
  5820. "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
  5821. "\x64\x50\xF9\x32\x13\xFB\x74\x61"
  5822. "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
  5823. .rlen = 32,
  5824. }, {
  5825. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5826. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5827. "\x00\x00\x00\x00",
  5828. .klen = 20,
  5829. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
  5830. "\x00\x00\x00\x00",
  5831. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  5832. "\x01\x01\x01\x01\x01\x01\x01\x01"
  5833. "\x01\x01\x01\x01\x01\x01\x01\x01"
  5834. "\x01\x01\x01\x01\x01\x01\x01\x01"
  5835. "\x01\x01\x01\x01\x01\x01\x01\x01"
  5836. "\x01\x01\x01\x01\x01\x01\x01\x01"
  5837. "\x01\x01\x01\x01\x01\x01\x01\x01"
  5838. "\x01\x01\x01\x01\x01\x01\x01\x01",
  5839. .ilen = 64,
  5840. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
  5841. .alen = 8,
  5842. .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
  5843. "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
  5844. "\x98\x14\xA1\x42\x37\x80\xFD\x90"
  5845. "\x68\x12\x01\xA8\x91\x89\xB9\x83"
  5846. "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
  5847. "\x94\x5F\x18\x12\xBA\x27\x09\x39"
  5848. "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
  5849. "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
  5850. "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
  5851. "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
  5852. .rlen = 80,
  5853. }, {
  5854. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5855. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5856. "\x00\x00\x00\x00",
  5857. .klen = 20,
  5858. .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef"
  5859. "\x00\x00\x00\x00",
  5860. .input = "\xff\xff\xff\xff\xff\xff\xff\xff"
  5861. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5862. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5863. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5864. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5865. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5866. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5867. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5868. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5869. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5870. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5871. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5872. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5873. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5874. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5875. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5876. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5877. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5878. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5879. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5880. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5881. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5882. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5883. "\xff\xff\xff\xff\xff\xff\xff\xff",
  5884. .ilen = 192,
  5885. .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  5886. "\xaa\xaa\xaa\xaa",
  5887. .alen = 12,
  5888. .result = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
  5889. "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
  5890. "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
  5891. "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
  5892. "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
  5893. "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
  5894. "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
  5895. "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
  5896. "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
  5897. "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
  5898. "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
  5899. "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
  5900. "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
  5901. "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
  5902. "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
  5903. "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
  5904. "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
  5905. "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
  5906. "\x7E\x13\x06\x82\x08\x17\xA4\x35"
  5907. "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
  5908. "\xA3\x05\x38\x95\x20\x1A\x47\x04"
  5909. "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
  5910. "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
  5911. "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
  5912. "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
  5913. "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
  5914. .rlen = 208,
  5915. }
  5916. };
  5917. static struct aead_testvec aes_gcm_rfc4106_dec_tv_template[] = {
  5918. { /* Generated using Crypto++ */
  5919. .key = zeroed_string,
  5920. .klen = 20,
  5921. .iv = zeroed_string,
  5922. .input = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
  5923. "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
  5924. "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
  5925. "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
  5926. .ilen = 32,
  5927. .assoc = zeroed_string,
  5928. .alen = 8,
  5929. .result = zeroed_string,
  5930. .rlen = 16,
  5931. },{
  5932. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5933. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5934. "\x00\x00\x00\x00",
  5935. .klen = 20,
  5936. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
  5937. "\x00\x00\x00\x00",
  5938. .input = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
  5939. "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
  5940. "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
  5941. "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
  5942. .ilen = 32,
  5943. .assoc = zeroed_string,
  5944. .alen = 8,
  5945. .result = zeroed_string,
  5946. .rlen = 16,
  5947. }, {
  5948. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5949. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5950. "\x00\x00\x00\x00",
  5951. .klen = 20,
  5952. .iv = zeroed_string,
  5953. .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
  5954. "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
  5955. "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
  5956. "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
  5957. .ilen = 32,
  5958. .assoc = zeroed_string,
  5959. .alen = 8,
  5960. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  5961. "\x01\x01\x01\x01\x01\x01\x01\x01",
  5962. .rlen = 16,
  5963. }, {
  5964. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5965. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5966. "\x00\x00\x00\x00",
  5967. .klen = 20,
  5968. .iv = zeroed_string,
  5969. .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
  5970. "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
  5971. "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
  5972. "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
  5973. .ilen = 32,
  5974. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
  5975. .alen = 8,
  5976. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  5977. "\x01\x01\x01\x01\x01\x01\x01\x01",
  5978. .rlen = 16,
  5979. }, {
  5980. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5981. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5982. "\x00\x00\x00\x00",
  5983. .klen = 20,
  5984. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
  5985. "\x00\x00\x00\x00",
  5986. .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
  5987. "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
  5988. "\x64\x50\xF9\x32\x13\xFB\x74\x61"
  5989. "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
  5990. .ilen = 32,
  5991. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
  5992. .alen = 8,
  5993. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  5994. "\x01\x01\x01\x01\x01\x01\x01\x01",
  5995. .rlen = 16,
  5996. }, {
  5997. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5998. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5999. "\x00\x00\x00\x00",
  6000. .klen = 20,
  6001. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
  6002. "\x00\x00\x00\x00",
  6003. .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
  6004. "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
  6005. "\x98\x14\xA1\x42\x37\x80\xFD\x90"
  6006. "\x68\x12\x01\xA8\x91\x89\xB9\x83"
  6007. "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
  6008. "\x94\x5F\x18\x12\xBA\x27\x09\x39"
  6009. "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
  6010. "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
  6011. "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
  6012. "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
  6013. .ilen = 80,
  6014. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
  6015. .alen = 8,
  6016. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  6017. "\x01\x01\x01\x01\x01\x01\x01\x01"
  6018. "\x01\x01\x01\x01\x01\x01\x01\x01"
  6019. "\x01\x01\x01\x01\x01\x01\x01\x01"
  6020. "\x01\x01\x01\x01\x01\x01\x01\x01"
  6021. "\x01\x01\x01\x01\x01\x01\x01\x01"
  6022. "\x01\x01\x01\x01\x01\x01\x01\x01"
  6023. "\x01\x01\x01\x01\x01\x01\x01\x01",
  6024. .rlen = 64,
  6025. }, {
  6026. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6027. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6028. "\x00\x00\x00\x00",
  6029. .klen = 20,
  6030. .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef"
  6031. "\x00\x00\x00\x00",
  6032. .input = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
  6033. "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
  6034. "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
  6035. "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
  6036. "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
  6037. "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
  6038. "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
  6039. "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
  6040. "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
  6041. "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
  6042. "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
  6043. "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
  6044. "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
  6045. "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
  6046. "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
  6047. "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
  6048. "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
  6049. "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
  6050. "\x7E\x13\x06\x82\x08\x17\xA4\x35"
  6051. "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
  6052. "\xA3\x05\x38\x95\x20\x1A\x47\x04"
  6053. "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
  6054. "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
  6055. "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
  6056. "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
  6057. "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
  6058. .ilen = 208,
  6059. .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  6060. "\xaa\xaa\xaa\xaa",
  6061. .alen = 12,
  6062. .result = "\xff\xff\xff\xff\xff\xff\xff\xff"
  6063. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6064. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6065. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6066. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6067. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6068. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6069. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6070. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6071. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6072. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6073. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6074. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6075. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6076. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6077. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6078. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6079. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6080. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6081. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6082. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6083. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6084. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6085. "\xff\xff\xff\xff\xff\xff\xff\xff",
  6086. .rlen = 192,
  6087. }
  6088. };
  6089. static struct aead_testvec aes_ccm_enc_tv_template[] = {
  6090. { /* From RFC 3610 */
  6091. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6092. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  6093. .klen = 16,
  6094. .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
  6095. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  6096. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  6097. .alen = 8,
  6098. .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6099. "\x10\x11\x12\x13\x14\x15\x16\x17"
  6100. "\x18\x19\x1a\x1b\x1c\x1d\x1e",
  6101. .ilen = 23,
  6102. .result = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
  6103. "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
  6104. "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
  6105. "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
  6106. .rlen = 31,
  6107. }, {
  6108. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6109. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  6110. .klen = 16,
  6111. .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
  6112. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  6113. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6114. "\x08\x09\x0a\x0b",
  6115. .alen = 12,
  6116. .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  6117. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  6118. "\x1c\x1d\x1e\x1f",
  6119. .ilen = 20,
  6120. .result = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
  6121. "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
  6122. "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
  6123. "\x7d\x9c\x2d\x93",
  6124. .rlen = 28,
  6125. }, {
  6126. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6127. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  6128. .klen = 16,
  6129. .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
  6130. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  6131. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  6132. .alen = 8,
  6133. .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6134. "\x10\x11\x12\x13\x14\x15\x16\x17"
  6135. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  6136. "\x20",
  6137. .ilen = 25,
  6138. .result = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
  6139. "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
  6140. "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
  6141. "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
  6142. "\x7e\x5f\x4e",
  6143. .rlen = 35,
  6144. }, {
  6145. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6146. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  6147. .klen = 16,
  6148. .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
  6149. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  6150. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6151. "\x08\x09\x0a\x0b",
  6152. .alen = 12,
  6153. .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  6154. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  6155. "\x1c\x1d\x1e",
  6156. .ilen = 19,
  6157. .result = "\x07\x34\x25\x94\x15\x77\x85\x15"
  6158. "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
  6159. "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
  6160. "\x4d\x99\x99\x88\xdd",
  6161. .rlen = 29,
  6162. }, {
  6163. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  6164. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  6165. .klen = 16,
  6166. .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
  6167. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  6168. .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
  6169. .alen = 8,
  6170. .input = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
  6171. "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
  6172. "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
  6173. .ilen = 24,
  6174. .result = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
  6175. "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
  6176. "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
  6177. "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
  6178. .rlen = 32,
  6179. }, {
  6180. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  6181. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  6182. .klen = 16,
  6183. .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
  6184. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  6185. .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
  6186. "\x20\xea\x60\xc0",
  6187. .alen = 12,
  6188. .input = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
  6189. "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
  6190. "\x3a\x80\x3b\xa8\x7f",
  6191. .ilen = 21,
  6192. .result = "\x00\x97\x69\xec\xab\xdf\x48\x62"
  6193. "\x55\x94\xc5\x92\x51\xe6\x03\x57"
  6194. "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
  6195. "\x5a\xe0\x70\x45\x51",
  6196. .rlen = 29,
  6197. }, {
  6198. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  6199. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  6200. .klen = 16,
  6201. .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
  6202. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  6203. .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
  6204. .alen = 8,
  6205. .input = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
  6206. "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
  6207. "\x98\x09\xd6\x7d\xbe\xdd\x18",
  6208. .ilen = 23,
  6209. .result = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
  6210. "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
  6211. "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
  6212. "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
  6213. "\xba",
  6214. .rlen = 33,
  6215. },
  6216. };
  6217. static struct aead_testvec aes_ccm_dec_tv_template[] = {
  6218. { /* From RFC 3610 */
  6219. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6220. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  6221. .klen = 16,
  6222. .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
  6223. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  6224. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  6225. .alen = 8,
  6226. .input = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
  6227. "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
  6228. "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
  6229. "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
  6230. .ilen = 31,
  6231. .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6232. "\x10\x11\x12\x13\x14\x15\x16\x17"
  6233. "\x18\x19\x1a\x1b\x1c\x1d\x1e",
  6234. .rlen = 23,
  6235. }, {
  6236. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6237. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  6238. .klen = 16,
  6239. .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
  6240. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  6241. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6242. "\x08\x09\x0a\x0b",
  6243. .alen = 12,
  6244. .input = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
  6245. "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
  6246. "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
  6247. "\x7d\x9c\x2d\x93",
  6248. .ilen = 28,
  6249. .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  6250. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  6251. "\x1c\x1d\x1e\x1f",
  6252. .rlen = 20,
  6253. }, {
  6254. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6255. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  6256. .klen = 16,
  6257. .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
  6258. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  6259. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  6260. .alen = 8,
  6261. .input = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
  6262. "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
  6263. "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
  6264. "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
  6265. "\x7e\x5f\x4e",
  6266. .ilen = 35,
  6267. .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6268. "\x10\x11\x12\x13\x14\x15\x16\x17"
  6269. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  6270. "\x20",
  6271. .rlen = 25,
  6272. }, {
  6273. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6274. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  6275. .klen = 16,
  6276. .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
  6277. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  6278. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6279. "\x08\x09\x0a\x0b",
  6280. .alen = 12,
  6281. .input = "\x07\x34\x25\x94\x15\x77\x85\x15"
  6282. "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
  6283. "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
  6284. "\x4d\x99\x99\x88\xdd",
  6285. .ilen = 29,
  6286. .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  6287. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  6288. "\x1c\x1d\x1e",
  6289. .rlen = 19,
  6290. }, {
  6291. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  6292. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  6293. .klen = 16,
  6294. .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
  6295. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  6296. .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
  6297. .alen = 8,
  6298. .input = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
  6299. "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
  6300. "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
  6301. "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
  6302. .ilen = 32,
  6303. .result = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
  6304. "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
  6305. "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
  6306. .rlen = 24,
  6307. }, {
  6308. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  6309. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  6310. .klen = 16,
  6311. .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
  6312. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  6313. .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
  6314. "\x20\xea\x60\xc0",
  6315. .alen = 12,
  6316. .input = "\x00\x97\x69\xec\xab\xdf\x48\x62"
  6317. "\x55\x94\xc5\x92\x51\xe6\x03\x57"
  6318. "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
  6319. "\x5a\xe0\x70\x45\x51",
  6320. .ilen = 29,
  6321. .result = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
  6322. "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
  6323. "\x3a\x80\x3b\xa8\x7f",
  6324. .rlen = 21,
  6325. }, {
  6326. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  6327. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  6328. .klen = 16,
  6329. .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
  6330. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  6331. .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
  6332. .alen = 8,
  6333. .input = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
  6334. "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
  6335. "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
  6336. "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
  6337. "\xba",
  6338. .ilen = 33,
  6339. .result = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
  6340. "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
  6341. "\x98\x09\xd6\x7d\xbe\xdd\x18",
  6342. .rlen = 23,
  6343. },
  6344. };
  6345. /*
  6346. * rfc4309 refers to section 8 of rfc3610 for test vectors, but they all
  6347. * use a 13-byte nonce, we only support an 11-byte nonce. Similarly, all of
  6348. * Special Publication 800-38C's test vectors also use nonce lengths our
  6349. * implementation doesn't support. The following are taken from fips cavs
  6350. * fax files on hand at Red Hat.
  6351. *
  6352. * nb: actual key lengths are (klen - 3), the last 3 bytes are actually
  6353. * part of the nonce which combine w/the iv, but need to be input this way.
  6354. */
  6355. static struct aead_testvec aes_ccm_rfc4309_enc_tv_template[] = {
  6356. {
  6357. .key = "\x83\xac\x54\x66\xc2\xeb\xe5\x05"
  6358. "\x2e\x01\xd1\xfc\x5d\x82\x66\x2e"
  6359. "\x96\xac\x59",
  6360. .klen = 19,
  6361. .iv = "\x30\x07\xa1\xe2\xa2\xc7\x55\x24",
  6362. .alen = 0,
  6363. .input = "\x19\xc8\x81\xf6\xe9\x86\xff\x93"
  6364. "\x0b\x78\x67\xe5\xbb\xb7\xfc\x6e"
  6365. "\x83\x77\xb3\xa6\x0c\x8c\x9f\x9c"
  6366. "\x35\x2e\xad\xe0\x62\xf9\x91\xa1",
  6367. .ilen = 32,
  6368. .result = "\xab\x6f\xe1\x69\x1d\x19\x99\xa8"
  6369. "\x92\xa0\xc4\x6f\x7e\xe2\x8b\xb1"
  6370. "\x70\xbb\x8c\xa6\x4c\x6e\x97\x8a"
  6371. "\x57\x2b\xbe\x5d\x98\xa6\xb1\x32"
  6372. "\xda\x24\xea\xd9\xa1\x39\x98\xfd"
  6373. "\xa4\xbe\xd9\xf2\x1a\x6d\x22\xa8",
  6374. .rlen = 48,
  6375. }, {
  6376. .key = "\x1e\x2c\x7e\x01\x41\x9a\xef\xc0"
  6377. "\x0d\x58\x96\x6e\x5c\xa2\x4b\xd3"
  6378. "\x4f\xa3\x19",
  6379. .klen = 19,
  6380. .iv = "\xd3\x01\x5a\xd8\x30\x60\x15\x56",
  6381. .assoc = "\xda\xe6\x28\x9c\x45\x2d\xfd\x63"
  6382. "\x5e\xda\x4c\xb6\xe6\xfc\xf9\xb7"
  6383. "\x0c\x56\xcb\xe4\xe0\x05\x7a\xe1"
  6384. "\x0a\x63\x09\x78\xbc\x2c\x55\xde",
  6385. .alen = 32,
  6386. .input = "\x87\xa3\x36\xfd\x96\xb3\x93\x78"
  6387. "\xa9\x28\x63\xba\x12\xa3\x14\x85"
  6388. "\x57\x1e\x06\xc9\x7b\x21\xef\x76"
  6389. "\x7f\x38\x7e\x8e\x29\xa4\x3e\x7e",
  6390. .ilen = 32,
  6391. .result = "\x8a\x1e\x11\xf0\x02\x6b\xe2\x19"
  6392. "\xfc\x70\xc4\x6d\x8e\xb7\x99\xab"
  6393. "\xc5\x4b\xa2\xac\xd3\xf3\x48\xff"
  6394. "\x3b\xb5\xce\x53\xef\xde\xbb\x02"
  6395. "\xa9\x86\x15\x6c\x13\xfe\xda\x0a"
  6396. "\x22\xb8\x29\x3d\xd8\x39\x9a\x23",
  6397. .rlen = 48,
  6398. }, {
  6399. .key = "\xf4\x6b\xc2\x75\x62\xfe\xb4\xe1"
  6400. "\xa3\xf0\xff\xdd\x4e\x4b\x12\x75"
  6401. "\x53\x14\x73\x66\x8d\x88\xf6\x80"
  6402. "\xa0\x20\x35",
  6403. .klen = 27,
  6404. .iv = "\x26\xf2\x21\x8d\x50\x20\xda\xe2",
  6405. .assoc = "\x5b\x9e\x13\x67\x02\x5e\xef\xc1"
  6406. "\x6c\xf9\xd7\x1e\x52\x8f\x7a\x47"
  6407. "\xe9\xd4\xcf\x20\x14\x6e\xf0\x2d"
  6408. "\xd8\x9e\x2b\x56\x10\x23\x56\xe7",
  6409. .alen = 32,
  6410. .ilen = 0,
  6411. .result = "\x36\xea\x7a\x70\x08\xdc\x6a\xbc"
  6412. "\xad\x0c\x7a\x63\xf6\x61\xfd\x9b",
  6413. .rlen = 16,
  6414. }, {
  6415. .key = "\x56\xdf\x5c\x8f\x26\x3f\x0e\x42"
  6416. "\xef\x7a\xd3\xce\xfc\x84\x60\x62"
  6417. "\xca\xb4\x40\xaf\x5f\xc9\xc9\x01"
  6418. "\xd6\x3c\x8c",
  6419. .klen = 27,
  6420. .iv = "\x86\x84\xb6\xcd\xef\x09\x2e\x94",
  6421. .assoc = "\x02\x65\x78\x3c\xe9\x21\x30\x91"
  6422. "\xb1\xb9\xda\x76\x9a\x78\x6d\x95"
  6423. "\xf2\x88\x32\xa3\xf2\x50\xcb\x4c"
  6424. "\xe3\x00\x73\x69\x84\x69\x87\x79",
  6425. .alen = 32,
  6426. .input = "\x9f\xd2\x02\x4b\x52\x49\x31\x3c"
  6427. "\x43\x69\x3a\x2d\x8e\x70\xad\x7e"
  6428. "\xe0\xe5\x46\x09\x80\x89\x13\xb2"
  6429. "\x8c\x8b\xd9\x3f\x86\xfb\xb5\x6b",
  6430. .ilen = 32,
  6431. .result = "\x39\xdf\x7c\x3c\x5a\x29\xb9\x62"
  6432. "\x5d\x51\xc2\x16\xd8\xbd\x06\x9f"
  6433. "\x9b\x6a\x09\x70\xc1\x51\x83\xc2"
  6434. "\x66\x88\x1d\x4f\x9a\xda\xe0\x1e"
  6435. "\xc7\x79\x11\x58\xe5\x6b\x20\x40"
  6436. "\x7a\xea\x46\x42\x8b\xe4\x6f\xe1",
  6437. .rlen = 48,
  6438. }, {
  6439. .key = "\xe0\x8d\x99\x71\x60\xd7\x97\x1a"
  6440. "\xbd\x01\x99\xd5\x8a\xdf\x71\x3a"
  6441. "\xd3\xdf\x24\x4b\x5e\x3d\x4b\x4e"
  6442. "\x30\x7a\xb9\xd8\x53\x0a\x5e\x2b"
  6443. "\x1e\x29\x91",
  6444. .klen = 35,
  6445. .iv = "\xad\x8e\xc1\x53\x0a\xcf\x2d\xbe",
  6446. .assoc = "\x19\xb6\x1f\x57\xc4\xf3\xf0\x8b"
  6447. "\x78\x2b\x94\x02\x29\x0f\x42\x27"
  6448. "\x6b\x75\xcb\x98\x34\x08\x7e\x79"
  6449. "\xe4\x3e\x49\x0d\x84\x8b\x22\x87",
  6450. .alen = 32,
  6451. .input = "\xe1\xd9\xd8\x13\xeb\x3a\x75\x3f"
  6452. "\x9d\xbd\x5f\x66\xbe\xdc\xbb\x66"
  6453. "\xbf\x17\x99\x62\x4a\x39\x27\x1f"
  6454. "\x1d\xdc\x24\xae\x19\x2f\x98\x4c",
  6455. .ilen = 32,
  6456. .result = "\x19\xb8\x61\x33\x45\x2b\x43\x96"
  6457. "\x6f\x51\xd0\x20\x30\x7d\x9b\xc6"
  6458. "\x26\x3d\xf8\xc9\x65\x16\xa8\x9f"
  6459. "\xf0\x62\x17\x34\xf2\x1e\x8d\x75"
  6460. "\x4e\x13\xcc\xc0\xc3\x2a\x54\x2d",
  6461. .rlen = 40,
  6462. }, {
  6463. .key = "\x7c\xc8\x18\x3b\x8d\x99\xe0\x7c"
  6464. "\x45\x41\xb8\xbd\x5c\xa7\xc2\x32"
  6465. "\x8a\xb8\x02\x59\xa4\xfe\xa9\x2c"
  6466. "\x09\x75\x9a\x9b\x3c\x9b\x27\x39"
  6467. "\xf9\xd9\x4e",
  6468. .klen = 35,
  6469. .iv = "\x63\xb5\x3d\x9d\x43\xf6\x1e\x50",
  6470. .assoc = "\x57\xf5\x6b\x8b\x57\x5c\x3d\x3b"
  6471. "\x13\x02\x01\x0c\x83\x4c\x96\x35"
  6472. "\x8e\xd6\x39\xcf\x7d\x14\x9b\x94"
  6473. "\xb0\x39\x36\xe6\x8f\x57\xe0\x13",
  6474. .alen = 32,
  6475. .input = "\x3b\x6c\x29\x36\xb6\xef\x07\xa6"
  6476. "\x83\x72\x07\x4f\xcf\xfa\x66\x89"
  6477. "\x5f\xca\xb1\xba\xd5\x8f\x2c\x27"
  6478. "\x30\xdb\x75\x09\x93\xd4\x65\xe4",
  6479. .ilen = 32,
  6480. .result = "\xb0\x88\x5a\x33\xaa\xe5\xc7\x1d"
  6481. "\x85\x23\xc7\xc6\x2f\xf4\x1e\x3d"
  6482. "\xcc\x63\x44\x25\x07\x78\x4f\x9e"
  6483. "\x96\xb8\x88\xeb\xbc\x48\x1f\x06"
  6484. "\x39\xaf\x39\xac\xd8\x4a\x80\x39"
  6485. "\x7b\x72\x8a\xf7",
  6486. .rlen = 44,
  6487. }, {
  6488. .key = "\xab\xd0\xe9\x33\x07\x26\xe5\x83"
  6489. "\x8c\x76\x95\xd4\xb6\xdc\xf3\x46"
  6490. "\xf9\x8f\xad\xe3\x02\x13\x83\x77"
  6491. "\x3f\xb0\xf1\xa1\xa1\x22\x0f\x2b"
  6492. "\x24\xa7\x8b",
  6493. .klen = 35,
  6494. .iv = "\x07\xcb\xcc\x0e\xe6\x33\xbf\xf5",
  6495. .assoc = "\xd4\xdb\x30\x1d\x03\xfe\xfd\x5f"
  6496. "\x87\xd4\x8c\xb6\xb6\xf1\x7a\x5d"
  6497. "\xab\x90\x65\x8d\x8e\xca\x4d\x4f"
  6498. "\x16\x0c\x40\x90\x4b\xc7\x36\x73",
  6499. .alen = 32,
  6500. .input = "\xf5\xc6\x7d\x48\xc1\xb7\xe6\x92"
  6501. "\x97\x5a\xca\xc4\xa9\x6d\xf9\x3d"
  6502. "\x6c\xde\xbc\xf1\x90\xea\x6a\xb2"
  6503. "\x35\x86\x36\xaf\x5c\xfe\x4b\x3a",
  6504. .ilen = 32,
  6505. .result = "\x83\x6f\x40\x87\x72\xcf\xc1\x13"
  6506. "\xef\xbb\x80\x21\x04\x6c\x58\x09"
  6507. "\x07\x1b\xfc\xdf\xc0\x3f\x5b\xc7"
  6508. "\xe0\x79\xa8\x6e\x71\x7c\x3f\xcf"
  6509. "\x5c\xda\xb2\x33\xe5\x13\xe2\x0d"
  6510. "\x74\xd1\xef\xb5\x0f\x3a\xb5\xf8",
  6511. .rlen = 48,
  6512. },
  6513. };
  6514. static struct aead_testvec aes_ccm_rfc4309_dec_tv_template[] = {
  6515. {
  6516. .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
  6517. "\xff\x80\x2e\x48\x7d\x82\xf8\xb9"
  6518. "\xc6\xfb\x7d",
  6519. .klen = 19,
  6520. .iv = "\x80\x0d\x13\xab\xd8\xa6\xb2\xd8",
  6521. .alen = 0,
  6522. .input = "\xd5\xe8\x93\x9f\xc7\x89\x2e\x2b",
  6523. .ilen = 8,
  6524. .result = "\x00",
  6525. .rlen = 0,
  6526. .novrfy = 1,
  6527. }, {
  6528. .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
  6529. "\xff\x80\x2e\x48\x7d\x82\xf8\xb9"
  6530. "\xaf\x94\x87",
  6531. .klen = 19,
  6532. .iv = "\x78\x35\x82\x81\x7f\x88\x94\x68",
  6533. .alen = 0,
  6534. .input = "\x41\x3c\xb8\x87\x73\xcb\xf3\xf3",
  6535. .ilen = 8,
  6536. .result = "\x00",
  6537. .rlen = 0,
  6538. }, {
  6539. .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
  6540. "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8"
  6541. "\xc6\xfb\x7d",
  6542. .klen = 19,
  6543. .iv = "\x80\x0d\x13\xab\xd8\xa6\xb2\xd8",
  6544. .assoc = "\xf3\x94\x87\x78\x35\x82\x81\x7f"
  6545. "\x88\x94\x68\xb1\x78\x6b\x2b\xd6"
  6546. "\x04\x1f\x4e\xed\x78\xd5\x33\x66"
  6547. "\xd8\x94\x99\x91\x81\x54\x62\x57",
  6548. .alen = 32,
  6549. .input = "\xf0\x7c\x29\x02\xae\x1c\x2f\x55"
  6550. "\xd0\xd1\x3d\x1a\xa3\x6d\xe4\x0a"
  6551. "\x86\xb0\x87\x6b\x62\x33\x8c\x34"
  6552. "\xce\xab\x57\xcc\x79\x0b\xe0\x6f"
  6553. "\x5c\x3e\x48\x1f\x6c\x46\xf7\x51"
  6554. "\x8b\x84\x83\x2a\xc1\x05\xb8\xc5",
  6555. .ilen = 48,
  6556. .result = "\x50\x82\x3e\x07\xe2\x1e\xb6\xfb"
  6557. "\x33\xe4\x73\xce\xd2\xfb\x95\x79"
  6558. "\xe8\xb4\xb5\x77\x11\x10\x62\x6f"
  6559. "\x6a\x82\xd1\x13\xec\xf5\xd0\x48",
  6560. .rlen = 32,
  6561. .novrfy = 1,
  6562. }, {
  6563. .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
  6564. "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8"
  6565. "\x05\xe0\xc9",
  6566. .klen = 19,
  6567. .iv = "\x0f\xed\x34\xea\x97\xd4\x3b\xdf",
  6568. .assoc = "\x49\x5c\x50\x1f\x1d\x94\xcc\x81"
  6569. "\xba\xb7\xb6\x03\xaf\xa5\xc1\xa1"
  6570. "\xd8\x5c\x42\x68\xe0\x6c\xda\x89"
  6571. "\x05\xac\x56\xac\x1b\x2a\xd3\x86",
  6572. .alen = 32,
  6573. .input = "\x39\xbe\x7d\x15\x62\x77\xf3\x3c"
  6574. "\xad\x83\x52\x6d\x71\x03\x25\x1c"
  6575. "\xed\x81\x3a\x9a\x16\x7d\x19\x80"
  6576. "\x72\x04\x72\xd0\xf6\xff\x05\x0f"
  6577. "\xb7\x14\x30\x00\x32\x9e\xa0\xa6"
  6578. "\x9e\x5a\x18\xa1\xb8\xfe\xdb\xd3",
  6579. .ilen = 48,
  6580. .result = "\x75\x05\xbe\xc2\xd9\x1e\xde\x60"
  6581. "\x47\x3d\x8c\x7d\xbd\xb5\xd9\xb7"
  6582. "\xf2\xae\x61\x05\x8f\x82\x24\x3f"
  6583. "\x9c\x67\x91\xe1\x38\x4f\xe4\x0c",
  6584. .rlen = 32,
  6585. }, {
  6586. .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
  6587. "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
  6588. "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
  6589. "\xee\x49\x83",
  6590. .klen = 27,
  6591. .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e",
  6592. .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
  6593. "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
  6594. "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
  6595. "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
  6596. .alen = 32,
  6597. .input = "\x71\x99\xfa\xf4\x44\x12\x68\x9b",
  6598. .ilen = 8,
  6599. .result = "\x00",
  6600. .rlen = 0,
  6601. }, {
  6602. .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
  6603. "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
  6604. "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
  6605. "\xee\x49\x83",
  6606. .klen = 27,
  6607. .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e",
  6608. .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
  6609. "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
  6610. "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
  6611. "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
  6612. .alen = 32,
  6613. .input = "\xfb\xe5\x5d\x34\xbe\xe5\xe8\xe7"
  6614. "\x5a\xef\x2f\xbf\x1f\x7f\xd4\xb2"
  6615. "\x66\xca\x61\x1e\x96\x7a\x61\xb3"
  6616. "\x1c\x16\x45\x52\xba\x04\x9c\x9f"
  6617. "\xb1\xd2\x40\xbc\x52\x7c\x6f\xb1",
  6618. .ilen = 40,
  6619. .result = "\x85\x34\x66\x42\xc8\x92\x0f\x36"
  6620. "\x58\xe0\x6b\x91\x3c\x98\x5c\xbb"
  6621. "\x0a\x85\xcc\x02\xad\x7a\x96\xe9"
  6622. "\x65\x43\xa4\xc3\x0f\xdc\x55\x81",
  6623. .rlen = 32,
  6624. }, {
  6625. .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
  6626. "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
  6627. "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
  6628. "\xd1\xfc\x57",
  6629. .klen = 27,
  6630. .iv = "\x9c\xfe\xb8\x9c\xad\x71\xaa\x1f",
  6631. .assoc = "\x86\x67\xa5\xa9\x14\x5f\x0d\xc6"
  6632. "\xff\x14\xc7\x44\xbf\x6c\x3a\xc3"
  6633. "\xff\xb6\x81\xbd\xe2\xd5\x06\xc7"
  6634. "\x3c\xa1\x52\x13\x03\x8a\x23\x3a",
  6635. .alen = 32,
  6636. .input = "\x3f\x66\xb0\x9d\xe5\x4b\x38\x00"
  6637. "\xc6\x0e\x6e\xe5\xd6\x98\xa6\x37"
  6638. "\x8c\x26\x33\xc6\xb2\xa2\x17\xfa"
  6639. "\x64\x19\xc0\x30\xd7\xfc\x14\x6b"
  6640. "\xe3\x33\xc2\x04\xb0\x37\xbe\x3f"
  6641. "\xa9\xb4\x2d\x68\x03\xa3\x44\xef",
  6642. .ilen = 48,
  6643. .result = "\x02\x87\x4d\x28\x80\x6e\xb2\xed"
  6644. "\x99\x2a\xa8\xca\x04\x25\x45\x90"
  6645. "\x1d\xdd\x5a\xd9\xe4\xdb\x9c\x9c"
  6646. "\x49\xe9\x01\xfe\xa7\x80\x6d\x6b",
  6647. .rlen = 32,
  6648. .novrfy = 1,
  6649. }, {
  6650. .key = "\xa4\x4b\x54\x29\x0a\xb8\x6d\x01"
  6651. "\x5b\x80\x2a\xcf\x25\xc4\xb7\x5c"
  6652. "\x20\x2c\xad\x30\xc2\x2b\x41\xfb"
  6653. "\x0e\x85\xbc\x33\xad\x0f\x2b\xff"
  6654. "\xee\x49\x83",
  6655. .klen = 35,
  6656. .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e",
  6657. .alen = 0,
  6658. .input = "\x1f\xb8\x8f\xa3\xdd\x54\x00\xf2",
  6659. .ilen = 8,
  6660. .result = "\x00",
  6661. .rlen = 0,
  6662. }, {
  6663. .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
  6664. "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
  6665. "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
  6666. "\xae\x8f\x11\x4c\xc2\x9c\x4a\xbb"
  6667. "\x85\x34\x66",
  6668. .klen = 35,
  6669. .iv = "\x42\xc8\x92\x0f\x36\x58\xe0\x6b",
  6670. .alen = 0,
  6671. .input = "\x48\x01\x5e\x02\x24\x04\x66\x47"
  6672. "\xa1\xea\x6f\xaf\xe8\xfc\xfb\xdd"
  6673. "\xa5\xa9\x87\x8d\x84\xee\x2e\x77"
  6674. "\xbb\x86\xb9\xf5\x5c\x6c\xff\xf6"
  6675. "\x72\xc3\x8e\xf7\x70\xb1\xb2\x07"
  6676. "\xbc\xa8\xa3\xbd\x83\x7c\x1d\x2a",
  6677. .ilen = 48,
  6678. .result = "\xdc\x56\xf2\x71\xb0\xb1\xa0\x6c"
  6679. "\xf0\x97\x3a\xfb\x6d\xe7\x32\x99"
  6680. "\x3e\xaf\x70\x5e\xb2\x4d\xea\x39"
  6681. "\x89\xd4\x75\x7a\x63\xb1\xda\x93",
  6682. .rlen = 32,
  6683. .novrfy = 1,
  6684. }, {
  6685. .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
  6686. "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
  6687. "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
  6688. "\x0d\x1a\x53\x3b\xb5\xe3\xf8\x8b"
  6689. "\xcf\x76\x3f",
  6690. .klen = 35,
  6691. .iv = "\xd9\x95\x75\x8f\x44\x89\x40\x7b",
  6692. .assoc = "\x8f\x86\x6c\x4d\x1d\xc5\x39\x88"
  6693. "\xc8\xf3\x5c\x52\x10\x63\x6f\x2b"
  6694. "\x8a\x2a\xc5\x6f\x30\x23\x58\x7b"
  6695. "\xfb\x36\x03\x11\xb4\xd9\xf2\xfe",
  6696. .alen = 32,
  6697. .input = "\x48\x58\xd6\xf3\xad\x63\x58\xbf"
  6698. "\xae\xc7\x5e\xae\x83\x8f\x7b\xe4"
  6699. "\x78\x5c\x4c\x67\x71\x89\x94\xbf"
  6700. "\x47\xf1\x63\x7e\x1c\x59\xbd\xc5"
  6701. "\x7f\x44\x0a\x0c\x01\x18\x07\x92"
  6702. "\xe1\xd3\x51\xce\x32\x6d\x0c\x5b",
  6703. .ilen = 48,
  6704. .result = "\xc2\x54\xc8\xde\x78\x87\x77\x40"
  6705. "\x49\x71\xe4\xb7\xe7\xcb\x76\x61"
  6706. "\x0a\x41\xb9\xe9\xc0\x76\x54\xab"
  6707. "\x04\x49\x3b\x19\x93\x57\x25\x5d",
  6708. .rlen = 32,
  6709. },
  6710. };
  6711. /*
  6712. * ANSI X9.31 Continuous Pseudo-Random Number Generator (AES mode)
  6713. * test vectors, taken from Appendix B.2.9 and B.2.10:
  6714. * http://csrc.nist.gov/groups/STM/cavp/documents/rng/RNGVS.pdf
  6715. * Only AES-128 is supported at this time.
  6716. */
  6717. #define ANSI_CPRNG_AES_TEST_VECTORS 6
  6718. static struct cprng_testvec ansi_cprng_aes_tv_template[] = {
  6719. {
  6720. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  6721. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  6722. .klen = 16,
  6723. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  6724. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xf9",
  6725. .dtlen = 16,
  6726. .v = "\x80\x00\x00\x00\x00\x00\x00\x00"
  6727. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6728. .vlen = 16,
  6729. .result = "\x59\x53\x1e\xd1\x3b\xb0\xc0\x55"
  6730. "\x84\x79\x66\x85\xc1\x2f\x76\x41",
  6731. .rlen = 16,
  6732. .loops = 1,
  6733. }, {
  6734. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  6735. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  6736. .klen = 16,
  6737. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  6738. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfa",
  6739. .dtlen = 16,
  6740. .v = "\xc0\x00\x00\x00\x00\x00\x00\x00"
  6741. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6742. .vlen = 16,
  6743. .result = "\x7c\x22\x2c\xf4\xca\x8f\xa2\x4c"
  6744. "\x1c\x9c\xb6\x41\xa9\xf3\x22\x0d",
  6745. .rlen = 16,
  6746. .loops = 1,
  6747. }, {
  6748. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  6749. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  6750. .klen = 16,
  6751. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  6752. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfb",
  6753. .dtlen = 16,
  6754. .v = "\xe0\x00\x00\x00\x00\x00\x00\x00"
  6755. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6756. .vlen = 16,
  6757. .result = "\x8a\xaa\x00\x39\x66\x67\x5b\xe5"
  6758. "\x29\x14\x28\x81\xa9\x4d\x4e\xc7",
  6759. .rlen = 16,
  6760. .loops = 1,
  6761. }, {
  6762. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  6763. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  6764. .klen = 16,
  6765. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  6766. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfc",
  6767. .dtlen = 16,
  6768. .v = "\xf0\x00\x00\x00\x00\x00\x00\x00"
  6769. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6770. .vlen = 16,
  6771. .result = "\x88\xdd\xa4\x56\x30\x24\x23\xe5"
  6772. "\xf6\x9d\xa5\x7e\x7b\x95\xc7\x3a",
  6773. .rlen = 16,
  6774. .loops = 1,
  6775. }, {
  6776. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  6777. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  6778. .klen = 16,
  6779. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  6780. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfd",
  6781. .dtlen = 16,
  6782. .v = "\xf8\x00\x00\x00\x00\x00\x00\x00"
  6783. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6784. .vlen = 16,
  6785. .result = "\x05\x25\x92\x46\x61\x79\xd2\xcb"
  6786. "\x78\xc4\x0b\x14\x0a\x5a\x9a\xc8",
  6787. .rlen = 16,
  6788. .loops = 1,
  6789. }, { /* Monte Carlo Test */
  6790. .key = "\x9f\x5b\x51\x20\x0b\xf3\x34\xb5"
  6791. "\xd8\x2b\xe8\xc3\x72\x55\xc8\x48",
  6792. .klen = 16,
  6793. .dt = "\x63\x76\xbb\xe5\x29\x02\xba\x3b"
  6794. "\x67\xc9\x25\xfa\x70\x1f\x11\xac",
  6795. .dtlen = 16,
  6796. .v = "\x57\x2c\x8e\x76\x87\x26\x47\x97"
  6797. "\x7e\x74\xfb\xdd\xc4\x95\x01\xd1",
  6798. .vlen = 16,
  6799. .result = "\x48\xe9\xbd\x0d\x06\xee\x18\xfb"
  6800. "\xe4\x57\x90\xd5\xc3\xfc\x9b\x73",
  6801. .rlen = 16,
  6802. .loops = 10000,
  6803. },
  6804. };
  6805. /* Cast5 test vectors from RFC 2144 */
  6806. #define CAST5_ENC_TEST_VECTORS 3
  6807. #define CAST5_DEC_TEST_VECTORS 3
  6808. static struct cipher_testvec cast5_enc_tv_template[] = {
  6809. {
  6810. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  6811. "\x23\x45\x67\x89\x34\x56\x78\x9a",
  6812. .klen = 16,
  6813. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6814. .ilen = 8,
  6815. .result = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
  6816. .rlen = 8,
  6817. }, {
  6818. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  6819. "\x23\x45",
  6820. .klen = 10,
  6821. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6822. .ilen = 8,
  6823. .result = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
  6824. .rlen = 8,
  6825. }, {
  6826. .key = "\x01\x23\x45\x67\x12",
  6827. .klen = 5,
  6828. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6829. .ilen = 8,
  6830. .result = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
  6831. .rlen = 8,
  6832. },
  6833. };
  6834. static struct cipher_testvec cast5_dec_tv_template[] = {
  6835. {
  6836. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  6837. "\x23\x45\x67\x89\x34\x56\x78\x9a",
  6838. .klen = 16,
  6839. .input = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
  6840. .ilen = 8,
  6841. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6842. .rlen = 8,
  6843. }, {
  6844. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  6845. "\x23\x45",
  6846. .klen = 10,
  6847. .input = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
  6848. .ilen = 8,
  6849. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6850. .rlen = 8,
  6851. }, {
  6852. .key = "\x01\x23\x45\x67\x12",
  6853. .klen = 5,
  6854. .input = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
  6855. .ilen = 8,
  6856. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6857. .rlen = 8,
  6858. },
  6859. };
  6860. /*
  6861. * ARC4 test vectors from OpenSSL
  6862. */
  6863. #define ARC4_ENC_TEST_VECTORS 7
  6864. #define ARC4_DEC_TEST_VECTORS 7
  6865. static struct cipher_testvec arc4_enc_tv_template[] = {
  6866. {
  6867. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6868. .klen = 8,
  6869. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6870. .ilen = 8,
  6871. .result = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
  6872. .rlen = 8,
  6873. }, {
  6874. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6875. .klen = 8,
  6876. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6877. .ilen = 8,
  6878. .result = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
  6879. .rlen = 8,
  6880. }, {
  6881. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6882. .klen = 8,
  6883. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6884. .ilen = 8,
  6885. .result = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
  6886. .rlen = 8,
  6887. }, {
  6888. .key = "\xef\x01\x23\x45",
  6889. .klen = 4,
  6890. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6891. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6892. "\x00\x00\x00\x00",
  6893. .ilen = 20,
  6894. .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  6895. "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
  6896. "\x36\xb6\x78\x58",
  6897. .rlen = 20,
  6898. }, {
  6899. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6900. .klen = 8,
  6901. .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  6902. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  6903. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  6904. "\x12\x34\x56\x78",
  6905. .ilen = 28,
  6906. .result = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
  6907. "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
  6908. "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
  6909. "\x40\x01\x1e\xcf",
  6910. .rlen = 28,
  6911. }, {
  6912. .key = "\xef\x01\x23\x45",
  6913. .klen = 4,
  6914. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6915. "\x00\x00",
  6916. .ilen = 10,
  6917. .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  6918. "\xbd\x61",
  6919. .rlen = 10,
  6920. }, {
  6921. .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
  6922. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6923. .klen = 16,
  6924. .input = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
  6925. .ilen = 8,
  6926. .result = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
  6927. .rlen = 8,
  6928. },
  6929. };
  6930. static struct cipher_testvec arc4_dec_tv_template[] = {
  6931. {
  6932. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6933. .klen = 8,
  6934. .input = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
  6935. .ilen = 8,
  6936. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6937. .rlen = 8,
  6938. }, {
  6939. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6940. .klen = 8,
  6941. .input = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
  6942. .ilen = 8,
  6943. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6944. .rlen = 8,
  6945. }, {
  6946. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6947. .klen = 8,
  6948. .input = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
  6949. .ilen = 8,
  6950. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6951. .rlen = 8,
  6952. }, {
  6953. .key = "\xef\x01\x23\x45",
  6954. .klen = 4,
  6955. .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  6956. "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
  6957. "\x36\xb6\x78\x58",
  6958. .ilen = 20,
  6959. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6960. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6961. "\x00\x00\x00\x00",
  6962. .rlen = 20,
  6963. }, {
  6964. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6965. .klen = 8,
  6966. .input = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
  6967. "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
  6968. "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
  6969. "\x40\x01\x1e\xcf",
  6970. .ilen = 28,
  6971. .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  6972. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  6973. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  6974. "\x12\x34\x56\x78",
  6975. .rlen = 28,
  6976. }, {
  6977. .key = "\xef\x01\x23\x45",
  6978. .klen = 4,
  6979. .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  6980. "\xbd\x61",
  6981. .ilen = 10,
  6982. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6983. "\x00\x00",
  6984. .rlen = 10,
  6985. }, {
  6986. .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
  6987. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6988. .klen = 16,
  6989. .input = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
  6990. .ilen = 8,
  6991. .result = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
  6992. .rlen = 8,
  6993. },
  6994. };
  6995. /*
  6996. * TEA test vectors
  6997. */
  6998. #define TEA_ENC_TEST_VECTORS 4
  6999. #define TEA_DEC_TEST_VECTORS 4
  7000. static struct cipher_testvec tea_enc_tv_template[] = {
  7001. {
  7002. .key = zeroed_string,
  7003. .klen = 16,
  7004. .input = zeroed_string,
  7005. .ilen = 8,
  7006. .result = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
  7007. .rlen = 8,
  7008. }, {
  7009. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  7010. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  7011. .klen = 16,
  7012. .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  7013. .ilen = 8,
  7014. .result = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
  7015. .rlen = 8,
  7016. }, {
  7017. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  7018. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  7019. .klen = 16,
  7020. .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  7021. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  7022. .ilen = 16,
  7023. .result = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
  7024. "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
  7025. .rlen = 16,
  7026. }, {
  7027. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  7028. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  7029. .klen = 16,
  7030. .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
  7031. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  7032. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  7033. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  7034. .ilen = 32,
  7035. .result = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
  7036. "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
  7037. "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
  7038. "\x07\x89\x73\xc2\x45\x92\xc6\x90",
  7039. .rlen = 32,
  7040. }
  7041. };
  7042. static struct cipher_testvec tea_dec_tv_template[] = {
  7043. {
  7044. .key = zeroed_string,
  7045. .klen = 16,
  7046. .input = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
  7047. .ilen = 8,
  7048. .result = zeroed_string,
  7049. .rlen = 8,
  7050. }, {
  7051. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  7052. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  7053. .klen = 16,
  7054. .input = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
  7055. .ilen = 8,
  7056. .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  7057. .rlen = 8,
  7058. }, {
  7059. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  7060. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  7061. .klen = 16,
  7062. .input = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
  7063. "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
  7064. .ilen = 16,
  7065. .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  7066. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  7067. .rlen = 16,
  7068. }, {
  7069. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  7070. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  7071. .klen = 16,
  7072. .input = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
  7073. "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
  7074. "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
  7075. "\x07\x89\x73\xc2\x45\x92\xc6\x90",
  7076. .ilen = 32,
  7077. .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
  7078. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  7079. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  7080. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  7081. .rlen = 32,
  7082. }
  7083. };
  7084. /*
  7085. * XTEA test vectors
  7086. */
  7087. #define XTEA_ENC_TEST_VECTORS 4
  7088. #define XTEA_DEC_TEST_VECTORS 4
  7089. static struct cipher_testvec xtea_enc_tv_template[] = {
  7090. {
  7091. .key = zeroed_string,
  7092. .klen = 16,
  7093. .input = zeroed_string,
  7094. .ilen = 8,
  7095. .result = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
  7096. .rlen = 8,
  7097. }, {
  7098. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  7099. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  7100. .klen = 16,
  7101. .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  7102. .ilen = 8,
  7103. .result = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
  7104. .rlen = 8,
  7105. }, {
  7106. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  7107. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  7108. .klen = 16,
  7109. .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  7110. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  7111. .ilen = 16,
  7112. .result = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
  7113. "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
  7114. .rlen = 16,
  7115. }, {
  7116. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  7117. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  7118. .klen = 16,
  7119. .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
  7120. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  7121. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  7122. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  7123. .ilen = 32,
  7124. .result = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
  7125. "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
  7126. "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
  7127. "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
  7128. .rlen = 32,
  7129. }
  7130. };
  7131. static struct cipher_testvec xtea_dec_tv_template[] = {
  7132. {
  7133. .key = zeroed_string,
  7134. .klen = 16,
  7135. .input = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
  7136. .ilen = 8,
  7137. .result = zeroed_string,
  7138. .rlen = 8,
  7139. }, {
  7140. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  7141. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  7142. .klen = 16,
  7143. .input = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
  7144. .ilen = 8,
  7145. .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  7146. .rlen = 8,
  7147. }, {
  7148. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  7149. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  7150. .klen = 16,
  7151. .input = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
  7152. "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
  7153. .ilen = 16,
  7154. .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  7155. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  7156. .rlen = 16,
  7157. }, {
  7158. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  7159. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  7160. .klen = 16,
  7161. .input = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
  7162. "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
  7163. "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
  7164. "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
  7165. .ilen = 32,
  7166. .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
  7167. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  7168. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  7169. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  7170. .rlen = 32,
  7171. }
  7172. };
  7173. /*
  7174. * KHAZAD test vectors.
  7175. */
  7176. #define KHAZAD_ENC_TEST_VECTORS 5
  7177. #define KHAZAD_DEC_TEST_VECTORS 5
  7178. static struct cipher_testvec khazad_enc_tv_template[] = {
  7179. {
  7180. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  7181. "\x00\x00\x00\x00\x00\x00\x00\x00",
  7182. .klen = 16,
  7183. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7184. .ilen = 8,
  7185. .result = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
  7186. .rlen = 8,
  7187. }, {
  7188. .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
  7189. "\x38\x38\x38\x38\x38\x38\x38\x38",
  7190. .klen = 16,
  7191. .input = "\x38\x38\x38\x38\x38\x38\x38\x38",
  7192. .ilen = 8,
  7193. .result = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
  7194. .rlen = 8,
  7195. }, {
  7196. .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
  7197. "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  7198. .klen = 16,
  7199. .input = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  7200. .ilen = 8,
  7201. .result = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
  7202. .rlen = 8,
  7203. }, {
  7204. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  7205. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  7206. .klen = 16,
  7207. .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  7208. .ilen = 8,
  7209. .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  7210. .rlen = 8,
  7211. }, {
  7212. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  7213. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  7214. .klen = 16,
  7215. .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  7216. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  7217. .ilen = 16,
  7218. .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
  7219. "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  7220. .rlen = 16,
  7221. },
  7222. };
  7223. static struct cipher_testvec khazad_dec_tv_template[] = {
  7224. {
  7225. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  7226. "\x00\x00\x00\x00\x00\x00\x00\x00",
  7227. .klen = 16,
  7228. .input = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
  7229. .ilen = 8,
  7230. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7231. .rlen = 8,
  7232. }, {
  7233. .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
  7234. "\x38\x38\x38\x38\x38\x38\x38\x38",
  7235. .klen = 16,
  7236. .input = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
  7237. .ilen = 8,
  7238. .result = "\x38\x38\x38\x38\x38\x38\x38\x38",
  7239. .rlen = 8,
  7240. }, {
  7241. .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
  7242. "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  7243. .klen = 16,
  7244. .input = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
  7245. .ilen = 8,
  7246. .result = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  7247. .rlen = 8,
  7248. }, {
  7249. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  7250. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  7251. .klen = 16,
  7252. .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  7253. .ilen = 8,
  7254. .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  7255. .rlen = 8,
  7256. }, {
  7257. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  7258. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  7259. .klen = 16,
  7260. .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
  7261. "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  7262. .ilen = 16,
  7263. .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  7264. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  7265. .rlen = 16,
  7266. },
  7267. };
  7268. /*
  7269. * Anubis test vectors.
  7270. */
  7271. #define ANUBIS_ENC_TEST_VECTORS 5
  7272. #define ANUBIS_DEC_TEST_VECTORS 5
  7273. #define ANUBIS_CBC_ENC_TEST_VECTORS 2
  7274. #define ANUBIS_CBC_DEC_TEST_VECTORS 2
  7275. static struct cipher_testvec anubis_enc_tv_template[] = {
  7276. {
  7277. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7278. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  7279. .klen = 16,
  7280. .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7281. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  7282. .ilen = 16,
  7283. .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  7284. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
  7285. .rlen = 16,
  7286. }, {
  7287. .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
  7288. "\x03\x03\x03\x03\x03\x03\x03\x03"
  7289. "\x03\x03\x03\x03",
  7290. .klen = 20,
  7291. .input = "\x03\x03\x03\x03\x03\x03\x03\x03"
  7292. "\x03\x03\x03\x03\x03\x03\x03\x03",
  7293. .ilen = 16,
  7294. .result = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
  7295. "\x87\x41\x6f\x82\x0a\x98\x64\xae",
  7296. .rlen = 16,
  7297. }, {
  7298. .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
  7299. "\x24\x24\x24\x24\x24\x24\x24\x24"
  7300. "\x24\x24\x24\x24\x24\x24\x24\x24"
  7301. "\x24\x24\x24\x24",
  7302. .klen = 28,
  7303. .input = "\x24\x24\x24\x24\x24\x24\x24\x24"
  7304. "\x24\x24\x24\x24\x24\x24\x24\x24",
  7305. .ilen = 16,
  7306. .result = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
  7307. "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
  7308. .rlen = 16,
  7309. }, {
  7310. .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
  7311. "\x25\x25\x25\x25\x25\x25\x25\x25"
  7312. "\x25\x25\x25\x25\x25\x25\x25\x25"
  7313. "\x25\x25\x25\x25\x25\x25\x25\x25",
  7314. .klen = 32,
  7315. .input = "\x25\x25\x25\x25\x25\x25\x25\x25"
  7316. "\x25\x25\x25\x25\x25\x25\x25\x25",
  7317. .ilen = 16,
  7318. .result = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
  7319. "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
  7320. .rlen = 16,
  7321. }, {
  7322. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7323. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7324. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7325. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7326. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7327. .klen = 40,
  7328. .input = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7329. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7330. .ilen = 16,
  7331. .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  7332. "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
  7333. .rlen = 16,
  7334. },
  7335. };
  7336. static struct cipher_testvec anubis_dec_tv_template[] = {
  7337. {
  7338. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7339. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  7340. .klen = 16,
  7341. .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  7342. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
  7343. .ilen = 16,
  7344. .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7345. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  7346. .rlen = 16,
  7347. }, {
  7348. .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
  7349. "\x03\x03\x03\x03\x03\x03\x03\x03"
  7350. "\x03\x03\x03\x03",
  7351. .klen = 20,
  7352. .input = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
  7353. "\x87\x41\x6f\x82\x0a\x98\x64\xae",
  7354. .ilen = 16,
  7355. .result = "\x03\x03\x03\x03\x03\x03\x03\x03"
  7356. "\x03\x03\x03\x03\x03\x03\x03\x03",
  7357. .rlen = 16,
  7358. }, {
  7359. .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
  7360. "\x24\x24\x24\x24\x24\x24\x24\x24"
  7361. "\x24\x24\x24\x24\x24\x24\x24\x24"
  7362. "\x24\x24\x24\x24",
  7363. .klen = 28,
  7364. .input = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
  7365. "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
  7366. .ilen = 16,
  7367. .result = "\x24\x24\x24\x24\x24\x24\x24\x24"
  7368. "\x24\x24\x24\x24\x24\x24\x24\x24",
  7369. .rlen = 16,
  7370. }, {
  7371. .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
  7372. "\x25\x25\x25\x25\x25\x25\x25\x25"
  7373. "\x25\x25\x25\x25\x25\x25\x25\x25"
  7374. "\x25\x25\x25\x25\x25\x25\x25\x25",
  7375. .klen = 32,
  7376. .input = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
  7377. "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
  7378. .ilen = 16,
  7379. .result = "\x25\x25\x25\x25\x25\x25\x25\x25"
  7380. "\x25\x25\x25\x25\x25\x25\x25\x25",
  7381. .rlen = 16,
  7382. }, {
  7383. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7384. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7385. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7386. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7387. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7388. .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  7389. "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
  7390. .klen = 40,
  7391. .ilen = 16,
  7392. .result = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7393. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7394. .rlen = 16,
  7395. },
  7396. };
  7397. static struct cipher_testvec anubis_cbc_enc_tv_template[] = {
  7398. {
  7399. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7400. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  7401. .klen = 16,
  7402. .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7403. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7404. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7405. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  7406. .ilen = 32,
  7407. .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  7408. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
  7409. "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
  7410. "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
  7411. .rlen = 32,
  7412. }, {
  7413. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7414. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7415. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7416. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7417. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7418. .klen = 40,
  7419. .input = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7420. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7421. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7422. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7423. .ilen = 32,
  7424. .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  7425. "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
  7426. "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
  7427. "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
  7428. .rlen = 32,
  7429. },
  7430. };
  7431. static struct cipher_testvec anubis_cbc_dec_tv_template[] = {
  7432. {
  7433. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7434. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  7435. .klen = 16,
  7436. .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  7437. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
  7438. "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
  7439. "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
  7440. .ilen = 32,
  7441. .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7442. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7443. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7444. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  7445. .rlen = 32,
  7446. }, {
  7447. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7448. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7449. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7450. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7451. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7452. .klen = 40,
  7453. .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  7454. "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
  7455. "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
  7456. "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
  7457. .ilen = 32,
  7458. .result = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7459. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7460. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7461. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7462. .rlen = 32,
  7463. },
  7464. };
  7465. /*
  7466. * XETA test vectors
  7467. */
  7468. #define XETA_ENC_TEST_VECTORS 4
  7469. #define XETA_DEC_TEST_VECTORS 4
  7470. static struct cipher_testvec xeta_enc_tv_template[] = {
  7471. {
  7472. .key = zeroed_string,
  7473. .klen = 16,
  7474. .input = zeroed_string,
  7475. .ilen = 8,
  7476. .result = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
  7477. .rlen = 8,
  7478. }, {
  7479. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  7480. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  7481. .klen = 16,
  7482. .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  7483. .ilen = 8,
  7484. .result = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
  7485. .rlen = 8,
  7486. }, {
  7487. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  7488. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  7489. .klen = 16,
  7490. .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  7491. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  7492. .ilen = 16,
  7493. .result = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
  7494. "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
  7495. .rlen = 16,
  7496. }, {
  7497. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  7498. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  7499. .klen = 16,
  7500. .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
  7501. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  7502. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  7503. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  7504. .ilen = 32,
  7505. .result = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
  7506. "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
  7507. "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
  7508. "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
  7509. .rlen = 32,
  7510. }
  7511. };
  7512. static struct cipher_testvec xeta_dec_tv_template[] = {
  7513. {
  7514. .key = zeroed_string,
  7515. .klen = 16,
  7516. .input = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
  7517. .ilen = 8,
  7518. .result = zeroed_string,
  7519. .rlen = 8,
  7520. }, {
  7521. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  7522. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  7523. .klen = 16,
  7524. .input = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
  7525. .ilen = 8,
  7526. .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  7527. .rlen = 8,
  7528. }, {
  7529. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  7530. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  7531. .klen = 16,
  7532. .input = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
  7533. "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
  7534. .ilen = 16,
  7535. .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  7536. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  7537. .rlen = 16,
  7538. }, {
  7539. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  7540. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  7541. .klen = 16,
  7542. .input = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
  7543. "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
  7544. "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
  7545. "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
  7546. .ilen = 32,
  7547. .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
  7548. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  7549. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  7550. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  7551. .rlen = 32,
  7552. }
  7553. };
  7554. /*
  7555. * FCrypt test vectors
  7556. */
  7557. #define FCRYPT_ENC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_enc_tv_template)
  7558. #define FCRYPT_DEC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_dec_tv_template)
  7559. static struct cipher_testvec fcrypt_pcbc_enc_tv_template[] = {
  7560. { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
  7561. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7562. .klen = 8,
  7563. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7564. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7565. .ilen = 8,
  7566. .result = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
  7567. .rlen = 8,
  7568. }, {
  7569. .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
  7570. .klen = 8,
  7571. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7572. .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
  7573. .ilen = 8,
  7574. .result = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
  7575. .rlen = 8,
  7576. }, { /* From Arla */
  7577. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7578. .klen = 8,
  7579. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7580. .input = "The quick brown fox jumps over the lazy dogs.\0\0",
  7581. .ilen = 48,
  7582. .result = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
  7583. "\xee\xac\x98\x62\x44\x51\xe4\x84"
  7584. "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
  7585. "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
  7586. "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
  7587. "\xf8\x91\x3c\xac\x44\x22\x92\xef",
  7588. .rlen = 48,
  7589. }, {
  7590. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7591. .klen = 8,
  7592. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7593. .input = "The quick brown fox jumps over the lazy dogs.\0\0",
  7594. .ilen = 48,
  7595. .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  7596. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  7597. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  7598. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  7599. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  7600. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  7601. .rlen = 48,
  7602. }, { /* split-page version */
  7603. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7604. .klen = 8,
  7605. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7606. .input = "The quick brown fox jumps over the lazy dogs.\0\0",
  7607. .ilen = 48,
  7608. .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  7609. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  7610. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  7611. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  7612. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  7613. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  7614. .rlen = 48,
  7615. .np = 2,
  7616. .tap = { 20, 28 },
  7617. }
  7618. };
  7619. static struct cipher_testvec fcrypt_pcbc_dec_tv_template[] = {
  7620. { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
  7621. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7622. .klen = 8,
  7623. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7624. .input = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
  7625. .ilen = 8,
  7626. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7627. .rlen = 8,
  7628. }, {
  7629. .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
  7630. .klen = 8,
  7631. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7632. .input = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
  7633. .ilen = 8,
  7634. .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
  7635. .rlen = 8,
  7636. }, { /* From Arla */
  7637. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7638. .klen = 8,
  7639. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7640. .input = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
  7641. "\xee\xac\x98\x62\x44\x51\xe4\x84"
  7642. "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
  7643. "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
  7644. "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
  7645. "\xf8\x91\x3c\xac\x44\x22\x92\xef",
  7646. .ilen = 48,
  7647. .result = "The quick brown fox jumps over the lazy dogs.\0\0",
  7648. .rlen = 48,
  7649. }, {
  7650. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7651. .klen = 8,
  7652. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7653. .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  7654. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  7655. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  7656. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  7657. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  7658. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  7659. .ilen = 48,
  7660. .result = "The quick brown fox jumps over the lazy dogs.\0\0",
  7661. .rlen = 48,
  7662. }, { /* split-page version */
  7663. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7664. .klen = 8,
  7665. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7666. .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  7667. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  7668. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  7669. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  7670. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  7671. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  7672. .ilen = 48,
  7673. .result = "The quick brown fox jumps over the lazy dogs.\0\0",
  7674. .rlen = 48,
  7675. .np = 2,
  7676. .tap = { 20, 28 },
  7677. }
  7678. };
  7679. /*
  7680. * CAMELLIA test vectors.
  7681. */
  7682. #define CAMELLIA_ENC_TEST_VECTORS 3
  7683. #define CAMELLIA_DEC_TEST_VECTORS 3
  7684. #define CAMELLIA_CBC_ENC_TEST_VECTORS 2
  7685. #define CAMELLIA_CBC_DEC_TEST_VECTORS 2
  7686. static struct cipher_testvec camellia_enc_tv_template[] = {
  7687. {
  7688. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7689. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7690. .klen = 16,
  7691. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7692. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7693. .ilen = 16,
  7694. .result = "\x67\x67\x31\x38\x54\x96\x69\x73"
  7695. "\x08\x57\x06\x56\x48\xea\xbe\x43",
  7696. .rlen = 16,
  7697. }, {
  7698. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7699. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  7700. "\x00\x11\x22\x33\x44\x55\x66\x77",
  7701. .klen = 24,
  7702. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7703. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7704. .ilen = 16,
  7705. .result = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
  7706. "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
  7707. .rlen = 16,
  7708. }, {
  7709. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7710. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  7711. "\x00\x11\x22\x33\x44\x55\x66\x77"
  7712. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  7713. .klen = 32,
  7714. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7715. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7716. .ilen = 16,
  7717. .result = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
  7718. "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
  7719. .rlen = 16,
  7720. },
  7721. };
  7722. static struct cipher_testvec camellia_dec_tv_template[] = {
  7723. {
  7724. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7725. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7726. .klen = 16,
  7727. .input = "\x67\x67\x31\x38\x54\x96\x69\x73"
  7728. "\x08\x57\x06\x56\x48\xea\xbe\x43",
  7729. .ilen = 16,
  7730. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7731. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7732. .rlen = 16,
  7733. }, {
  7734. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7735. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  7736. "\x00\x11\x22\x33\x44\x55\x66\x77",
  7737. .klen = 24,
  7738. .input = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
  7739. "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
  7740. .ilen = 16,
  7741. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7742. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7743. .rlen = 16,
  7744. }, {
  7745. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7746. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  7747. "\x00\x11\x22\x33\x44\x55\x66\x77"
  7748. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  7749. .klen = 32,
  7750. .input = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
  7751. "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
  7752. .ilen = 16,
  7753. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7754. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7755. .rlen = 16,
  7756. },
  7757. };
  7758. static struct cipher_testvec camellia_cbc_enc_tv_template[] = {
  7759. {
  7760. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  7761. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  7762. .klen = 16,
  7763. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  7764. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  7765. .input = "Single block msg",
  7766. .ilen = 16,
  7767. .result = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
  7768. "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
  7769. .rlen = 16,
  7770. }, {
  7771. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  7772. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  7773. .klen = 16,
  7774. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  7775. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  7776. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7777. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  7778. "\x10\x11\x12\x13\x14\x15\x16\x17"
  7779. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  7780. .ilen = 32,
  7781. .result = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
  7782. "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
  7783. "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
  7784. "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
  7785. .rlen = 32,
  7786. },
  7787. };
  7788. static struct cipher_testvec camellia_cbc_dec_tv_template[] = {
  7789. {
  7790. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  7791. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  7792. .klen = 16,
  7793. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  7794. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  7795. .input = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
  7796. "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
  7797. .ilen = 16,
  7798. .result = "Single block msg",
  7799. .rlen = 16,
  7800. }, {
  7801. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  7802. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  7803. .klen = 16,
  7804. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  7805. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  7806. .input = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
  7807. "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
  7808. "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
  7809. "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
  7810. .ilen = 32,
  7811. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7812. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  7813. "\x10\x11\x12\x13\x14\x15\x16\x17"
  7814. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  7815. .rlen = 32,
  7816. },
  7817. };
  7818. /*
  7819. * SEED test vectors
  7820. */
  7821. #define SEED_ENC_TEST_VECTORS 4
  7822. #define SEED_DEC_TEST_VECTORS 4
  7823. static struct cipher_testvec seed_enc_tv_template[] = {
  7824. {
  7825. .key = zeroed_string,
  7826. .klen = 16,
  7827. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7828. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  7829. .ilen = 16,
  7830. .result = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
  7831. "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
  7832. .rlen = 16,
  7833. }, {
  7834. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7835. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  7836. .klen = 16,
  7837. .input = zeroed_string,
  7838. .ilen = 16,
  7839. .result = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
  7840. "\x84\x48\x35\x97\xe4\x37\x0f\x43",
  7841. .rlen = 16,
  7842. }, {
  7843. .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
  7844. "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
  7845. .klen = 16,
  7846. .input = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
  7847. "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
  7848. .ilen = 16,
  7849. .result = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
  7850. "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
  7851. .rlen = 16,
  7852. }, {
  7853. .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
  7854. "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
  7855. .klen = 16,
  7856. .input = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
  7857. "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
  7858. .ilen = 16,
  7859. .result = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
  7860. "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
  7861. .rlen = 16,
  7862. }
  7863. };
  7864. static struct cipher_testvec seed_dec_tv_template[] = {
  7865. {
  7866. .key = zeroed_string,
  7867. .klen = 16,
  7868. .input = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
  7869. "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
  7870. .ilen = 16,
  7871. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7872. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  7873. .rlen = 16,
  7874. }, {
  7875. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7876. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  7877. .klen = 16,
  7878. .input = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
  7879. "\x84\x48\x35\x97\xe4\x37\x0f\x43",
  7880. .ilen = 16,
  7881. .result = zeroed_string,
  7882. .rlen = 16,
  7883. }, {
  7884. .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
  7885. "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
  7886. .klen = 16,
  7887. .input = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
  7888. "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
  7889. .ilen = 16,
  7890. .result = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
  7891. "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
  7892. .rlen = 16,
  7893. }, {
  7894. .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
  7895. "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
  7896. .klen = 16,
  7897. .input = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
  7898. "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
  7899. .ilen = 16,
  7900. .result = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
  7901. "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
  7902. .rlen = 16,
  7903. }
  7904. };
  7905. #define SALSA20_STREAM_ENC_TEST_VECTORS 5
  7906. static struct cipher_testvec salsa20_stream_enc_tv_template[] = {
  7907. /*
  7908. * Testvectors from verified.test-vectors submitted to ECRYPT.
  7909. * They are truncated to size 39, 64, 111, 129 to test a variety
  7910. * of input length.
  7911. */
  7912. { /* Set 3, vector 0 */
  7913. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7914. "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
  7915. .klen = 16,
  7916. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7917. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7918. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7919. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7920. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7921. "\x00\x00\x00\x00\x00\x00\x00",
  7922. .ilen = 39,
  7923. .result = "\x2D\xD5\xC3\xF7\xBA\x2B\x20\xF7"
  7924. "\x68\x02\x41\x0C\x68\x86\x88\x89"
  7925. "\x5A\xD8\xC1\xBD\x4E\xA6\xC9\xB1"
  7926. "\x40\xFB\x9B\x90\xE2\x10\x49\xBF"
  7927. "\x58\x3F\x52\x79\x70\xEB\xC1",
  7928. .rlen = 39,
  7929. }, { /* Set 5, vector 0 */
  7930. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7931. "\x00\x00\x00\x00\x00\x00\x00\x00",
  7932. .klen = 16,
  7933. .iv = "\x80\x00\x00\x00\x00\x00\x00\x00",
  7934. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7935. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7936. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7937. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7938. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7939. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7940. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7941. "\x00\x00\x00\x00\x00\x00\x00\x00",
  7942. .ilen = 64,
  7943. .result = "\xB6\x6C\x1E\x44\x46\xDD\x95\x57"
  7944. "\xE5\x78\xE2\x23\xB0\xB7\x68\x01"
  7945. "\x7B\x23\xB2\x67\xBB\x02\x34\xAE"
  7946. "\x46\x26\xBF\x44\x3F\x21\x97\x76"
  7947. "\x43\x6F\xB1\x9F\xD0\xE8\x86\x6F"
  7948. "\xCD\x0D\xE9\xA9\x53\x8F\x4A\x09"
  7949. "\xCA\x9A\xC0\x73\x2E\x30\xBC\xF9"
  7950. "\x8E\x4F\x13\xE4\xB9\xE2\x01\xD9",
  7951. .rlen = 64,
  7952. }, { /* Set 3, vector 27 */
  7953. .key = "\x1B\x1C\x1D\x1E\x1F\x20\x21\x22"
  7954. "\x23\x24\x25\x26\x27\x28\x29\x2A"
  7955. "\x2B\x2C\x2D\x2E\x2F\x30\x31\x32"
  7956. "\x33\x34\x35\x36\x37\x38\x39\x3A",
  7957. .klen = 32,
  7958. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7959. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7960. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7961. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7962. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7963. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7964. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7965. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7966. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7967. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7968. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7969. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7970. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7971. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7972. "\x00\x00\x00\x00\x00\x00\x00",
  7973. .ilen = 111,
  7974. .result = "\xAE\x39\x50\x8E\xAC\x9A\xEC\xE7"
  7975. "\xBF\x97\xBB\x20\xB9\xDE\xE4\x1F"
  7976. "\x87\xD9\x47\xF8\x28\x91\x35\x98"
  7977. "\xDB\x72\xCC\x23\x29\x48\x56\x5E"
  7978. "\x83\x7E\x0B\xF3\x7D\x5D\x38\x7B"
  7979. "\x2D\x71\x02\xB4\x3B\xB5\xD8\x23"
  7980. "\xB0\x4A\xDF\x3C\xEC\xB6\xD9\x3B"
  7981. "\x9B\xA7\x52\xBE\xC5\xD4\x50\x59"
  7982. "\x15\x14\xB4\x0E\x40\xE6\x53\xD1"
  7983. "\x83\x9C\x5B\xA0\x92\x29\x6B\x5E"
  7984. "\x96\x5B\x1E\x2F\xD3\xAC\xC1\x92"
  7985. "\xB1\x41\x3F\x19\x2F\xC4\x3B\xC6"
  7986. "\x95\x46\x45\x54\xE9\x75\x03\x08"
  7987. "\x44\xAF\xE5\x8A\x81\x12\x09",
  7988. .rlen = 111,
  7989. }, { /* Set 5, vector 27 */
  7990. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7991. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7992. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7993. "\x00\x00\x00\x00\x00\x00\x00\x00",
  7994. .klen = 32,
  7995. .iv = "\x00\x00\x00\x10\x00\x00\x00\x00",
  7996. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7997. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7998. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7999. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8000. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8001. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8002. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8003. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8004. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8005. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8006. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8007. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8008. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8009. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8010. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8011. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8012. "\x00",
  8013. .ilen = 129,
  8014. .result = "\xD2\xDB\x1A\x5C\xF1\xC1\xAC\xDB"
  8015. "\xE8\x1A\x7A\x43\x40\xEF\x53\x43"
  8016. "\x5E\x7F\x4B\x1A\x50\x52\x3F\x8D"
  8017. "\x28\x3D\xCF\x85\x1D\x69\x6E\x60"
  8018. "\xF2\xDE\x74\x56\x18\x1B\x84\x10"
  8019. "\xD4\x62\xBA\x60\x50\xF0\x61\xF2"
  8020. "\x1C\x78\x7F\xC1\x24\x34\xAF\x58"
  8021. "\xBF\x2C\x59\xCA\x90\x77\xF3\xB0"
  8022. "\x5B\x4A\xDF\x89\xCE\x2C\x2F\xFC"
  8023. "\x67\xF0\xE3\x45\xE8\xB3\xB3\x75"
  8024. "\xA0\x95\x71\xA1\x29\x39\x94\xCA"
  8025. "\x45\x2F\xBD\xCB\x10\xB6\xBE\x9F"
  8026. "\x8E\xF9\xB2\x01\x0A\x5A\x0A\xB7"
  8027. "\x6B\x9D\x70\x8E\x4B\xD6\x2F\xCD"
  8028. "\x2E\x40\x48\x75\xE9\xE2\x21\x45"
  8029. "\x0B\xC9\xB6\xB5\x66\xBC\x9A\x59"
  8030. "\x5A",
  8031. .rlen = 129,
  8032. }, { /* large test vector generated using Crypto++ */
  8033. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  8034. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  8035. "\x10\x11\x12\x13\x14\x15\x16\x17"
  8036. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  8037. .klen = 32,
  8038. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  8039. "\x00\x00\x00\x00\x00\x00\x00\x00",
  8040. .input =
  8041. "\x00\x01\x02\x03\x04\x05\x06\x07"
  8042. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  8043. "\x10\x11\x12\x13\x14\x15\x16\x17"
  8044. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  8045. "\x20\x21\x22\x23\x24\x25\x26\x27"
  8046. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  8047. "\x30\x31\x32\x33\x34\x35\x36\x37"
  8048. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  8049. "\x40\x41\x42\x43\x44\x45\x46\x47"
  8050. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  8051. "\x50\x51\x52\x53\x54\x55\x56\x57"
  8052. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  8053. "\x60\x61\x62\x63\x64\x65\x66\x67"
  8054. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  8055. "\x70\x71\x72\x73\x74\x75\x76\x77"
  8056. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  8057. "\x80\x81\x82\x83\x84\x85\x86\x87"
  8058. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  8059. "\x90\x91\x92\x93\x94\x95\x96\x97"
  8060. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  8061. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  8062. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  8063. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  8064. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  8065. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  8066. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  8067. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  8068. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  8069. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  8070. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  8071. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  8072. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  8073. "\x00\x03\x06\x09\x0c\x0f\x12\x15"
  8074. "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
  8075. "\x30\x33\x36\x39\x3c\x3f\x42\x45"
  8076. "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
  8077. "\x60\x63\x66\x69\x6c\x6f\x72\x75"
  8078. "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
  8079. "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
  8080. "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
  8081. "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
  8082. "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
  8083. "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
  8084. "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
  8085. "\x20\x23\x26\x29\x2c\x2f\x32\x35"
  8086. "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
  8087. "\x50\x53\x56\x59\x5c\x5f\x62\x65"
  8088. "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
  8089. "\x80\x83\x86\x89\x8c\x8f\x92\x95"
  8090. "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
  8091. "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
  8092. "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
  8093. "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
  8094. "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
  8095. "\x10\x13\x16\x19\x1c\x1f\x22\x25"
  8096. "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
  8097. "\x40\x43\x46\x49\x4c\x4f\x52\x55"
  8098. "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
  8099. "\x70\x73\x76\x79\x7c\x7f\x82\x85"
  8100. "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
  8101. "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
  8102. "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
  8103. "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
  8104. "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
  8105. "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
  8106. "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
  8107. "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
  8108. "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
  8109. "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
  8110. "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
  8111. "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
  8112. "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
  8113. "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
  8114. "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
  8115. "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
  8116. "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
  8117. "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
  8118. "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
  8119. "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
  8120. "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
  8121. "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
  8122. "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
  8123. "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
  8124. "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
  8125. "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
  8126. "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
  8127. "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
  8128. "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
  8129. "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
  8130. "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
  8131. "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
  8132. "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
  8133. "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
  8134. "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
  8135. "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
  8136. "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
  8137. "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
  8138. "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
  8139. "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
  8140. "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
  8141. "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
  8142. "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
  8143. "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
  8144. "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
  8145. "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
  8146. "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
  8147. "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
  8148. "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
  8149. "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
  8150. "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
  8151. "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
  8152. "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
  8153. "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
  8154. "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
  8155. "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
  8156. "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
  8157. "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
  8158. "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
  8159. "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
  8160. "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
  8161. "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
  8162. "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
  8163. "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
  8164. "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
  8165. "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
  8166. "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
  8167. "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
  8168. "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
  8169. "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
  8170. "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
  8171. "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
  8172. "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
  8173. "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
  8174. "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
  8175. "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
  8176. "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
  8177. "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
  8178. "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
  8179. "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
  8180. "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
  8181. "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
  8182. "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
  8183. "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
  8184. "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
  8185. "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
  8186. "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
  8187. "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
  8188. "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
  8189. "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
  8190. "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
  8191. "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
  8192. "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
  8193. "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
  8194. "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
  8195. "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
  8196. "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
  8197. "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
  8198. "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
  8199. "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
  8200. "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
  8201. "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
  8202. "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
  8203. "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
  8204. "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
  8205. "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
  8206. "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
  8207. "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
  8208. "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
  8209. "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
  8210. "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
  8211. "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
  8212. "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
  8213. "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
  8214. "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
  8215. "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
  8216. "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
  8217. "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
  8218. "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
  8219. "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
  8220. "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
  8221. "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
  8222. "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
  8223. "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
  8224. "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
  8225. "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
  8226. "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
  8227. "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
  8228. "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
  8229. "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
  8230. "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
  8231. "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
  8232. "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
  8233. "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
  8234. "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
  8235. "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
  8236. "\x38\x45\x52\x5f\x6c\x79\x86\x93"
  8237. "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
  8238. "\x08\x15\x22\x2f\x3c\x49\x56\x63"
  8239. "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
  8240. "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
  8241. "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
  8242. "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
  8243. "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
  8244. "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
  8245. "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
  8246. "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
  8247. "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
  8248. "\x18\x25\x32\x3f\x4c\x59\x66\x73"
  8249. "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
  8250. "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
  8251. "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
  8252. "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
  8253. "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
  8254. "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
  8255. "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
  8256. "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
  8257. "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
  8258. "\x28\x35\x42\x4f\x5c\x69\x76\x83"
  8259. "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
  8260. "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
  8261. "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
  8262. "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
  8263. "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
  8264. "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
  8265. "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
  8266. "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
  8267. "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
  8268. "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
  8269. "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
  8270. "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
  8271. "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
  8272. "\x48\x57\x66\x75\x84\x93\xa2\xb1"
  8273. "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
  8274. "\x38\x47\x56\x65\x74\x83\x92\xa1"
  8275. "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
  8276. "\x28\x37\x46\x55\x64\x73\x82\x91"
  8277. "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
  8278. "\x18\x27\x36\x45\x54\x63\x72\x81"
  8279. "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
  8280. "\x08\x17\x26\x35\x44\x53\x62\x71"
  8281. "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
  8282. "\xf8\x07\x16\x25\x34\x43\x52\x61"
  8283. "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
  8284. "\xe8\xf7\x06\x15\x24\x33\x42\x51"
  8285. "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
  8286. "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
  8287. "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
  8288. "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
  8289. "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
  8290. "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
  8291. "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
  8292. "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
  8293. "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
  8294. "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
  8295. "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
  8296. "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
  8297. "\x00\x11\x22\x33\x44\x55\x66\x77"
  8298. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
  8299. "\x10\x21\x32\x43\x54\x65\x76\x87"
  8300. "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
  8301. "\x20\x31\x42\x53\x64\x75\x86\x97"
  8302. "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
  8303. "\x30\x41\x52\x63\x74\x85\x96\xa7"
  8304. "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
  8305. "\x40\x51\x62\x73\x84\x95\xa6\xb7"
  8306. "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
  8307. "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
  8308. "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
  8309. "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
  8310. "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
  8311. "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
  8312. "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
  8313. "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
  8314. "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
  8315. "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
  8316. "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
  8317. "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
  8318. "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
  8319. "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
  8320. "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
  8321. "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
  8322. "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
  8323. "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
  8324. "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
  8325. "\xe0\xf1\x02\x13\x24\x35\x46\x57"
  8326. "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
  8327. "\xf0\x01\x12\x23\x34\x45\x56\x67"
  8328. "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
  8329. "\x00\x13\x26\x39\x4c\x5f\x72\x85"
  8330. "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
  8331. "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
  8332. "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
  8333. "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
  8334. "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
  8335. "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
  8336. "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
  8337. "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
  8338. "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
  8339. "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
  8340. "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
  8341. "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
  8342. "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
  8343. "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
  8344. "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
  8345. "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
  8346. "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
  8347. "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
  8348. "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
  8349. "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
  8350. "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
  8351. "\x10\x23\x36\x49\x5c\x6f\x82\x95"
  8352. "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
  8353. "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
  8354. "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
  8355. "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
  8356. "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
  8357. "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
  8358. "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
  8359. "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
  8360. "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
  8361. "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
  8362. "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
  8363. "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
  8364. "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
  8365. "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
  8366. "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
  8367. "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
  8368. "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
  8369. "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
  8370. "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
  8371. "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
  8372. "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
  8373. "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
  8374. "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
  8375. "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
  8376. "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
  8377. "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
  8378. "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
  8379. "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
  8380. "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
  8381. "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
  8382. "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
  8383. "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
  8384. "\x18\x2d\x42\x57\x6c\x81\x96\xab"
  8385. "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
  8386. "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
  8387. "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
  8388. "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
  8389. "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
  8390. "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
  8391. "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
  8392. "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
  8393. "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
  8394. "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
  8395. "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
  8396. "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
  8397. "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
  8398. "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
  8399. "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
  8400. "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
  8401. "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
  8402. "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
  8403. "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
  8404. "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
  8405. "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
  8406. "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
  8407. "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
  8408. "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
  8409. "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
  8410. "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
  8411. "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
  8412. "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
  8413. "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
  8414. "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
  8415. "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
  8416. "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
  8417. "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
  8418. "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
  8419. "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
  8420. "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
  8421. "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
  8422. "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
  8423. "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
  8424. "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
  8425. "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
  8426. "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
  8427. "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
  8428. "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
  8429. "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
  8430. "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
  8431. "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
  8432. "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
  8433. "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
  8434. "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
  8435. "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
  8436. "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
  8437. "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
  8438. "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
  8439. "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
  8440. "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
  8441. "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
  8442. "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
  8443. "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
  8444. "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
  8445. "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
  8446. "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
  8447. "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
  8448. "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
  8449. "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
  8450. "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
  8451. "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
  8452. "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
  8453. "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
  8454. "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
  8455. "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
  8456. "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
  8457. "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
  8458. "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
  8459. "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
  8460. "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
  8461. "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
  8462. "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
  8463. "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
  8464. "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
  8465. "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
  8466. "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
  8467. "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
  8468. "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
  8469. "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
  8470. "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
  8471. "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
  8472. "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
  8473. "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
  8474. "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
  8475. "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
  8476. "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
  8477. "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
  8478. "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
  8479. "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
  8480. "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
  8481. "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
  8482. "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
  8483. "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
  8484. "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
  8485. "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
  8486. "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
  8487. "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
  8488. "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
  8489. "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
  8490. "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
  8491. "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
  8492. "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
  8493. "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
  8494. "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
  8495. "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
  8496. "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
  8497. "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
  8498. "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
  8499. "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
  8500. "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
  8501. "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
  8502. "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
  8503. "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
  8504. "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
  8505. "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
  8506. "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
  8507. "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
  8508. "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
  8509. "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
  8510. "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
  8511. "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
  8512. "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
  8513. "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
  8514. "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
  8515. "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
  8516. "\x78\x95\xb2\xcf\xec\x09\x26\x43"
  8517. "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
  8518. "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
  8519. "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
  8520. "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
  8521. "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
  8522. "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
  8523. "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
  8524. "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
  8525. "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
  8526. "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
  8527. "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
  8528. "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
  8529. "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
  8530. "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
  8531. "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
  8532. "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
  8533. "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
  8534. "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
  8535. "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
  8536. "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
  8537. "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
  8538. "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
  8539. "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
  8540. "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
  8541. "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
  8542. "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
  8543. "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
  8544. "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
  8545. "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
  8546. "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
  8547. "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
  8548. "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
  8549. "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
  8550. "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
  8551. "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
  8552. "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
  8553. "\x00\x21\x42\x63",
  8554. .ilen = 4100,
  8555. .result =
  8556. "\xb5\x81\xf5\x64\x18\x73\xe3\xf0"
  8557. "\x4c\x13\xf2\x77\x18\x60\x65\x5e"
  8558. "\x29\x01\xce\x98\x55\x53\xf9\x0c"
  8559. "\x2a\x08\xd5\x09\xb3\x57\x55\x56"
  8560. "\xc5\xe9\x56\x90\xcb\x6a\xa3\xc0"
  8561. "\xff\xc4\x79\xb4\xd2\x97\x5d\xc4"
  8562. "\x43\xd1\xfe\x94\x7b\x88\x06\x5a"
  8563. "\xb2\x9e\x2c\xfc\x44\x03\xb7\x90"
  8564. "\xa0\xc1\xba\x6a\x33\xb8\xc7\xb2"
  8565. "\x9d\xe1\x12\x4f\xc0\x64\xd4\x01"
  8566. "\xfe\x8c\x7a\x66\xf7\xe6\x5a\x91"
  8567. "\xbb\xde\x56\x86\xab\x65\x21\x30"
  8568. "\x00\x84\x65\x24\xa5\x7d\x85\xb4"
  8569. "\xe3\x17\xed\x3a\xb7\x6f\xb4\x0b"
  8570. "\x0b\xaf\x15\xae\x5a\x8f\xf2\x0c"
  8571. "\x2f\x27\xf4\x09\xd8\xd2\x96\xb7"
  8572. "\x71\xf2\xc5\x99\x4d\x7e\x7f\x75"
  8573. "\x77\x89\x30\x8b\x59\xdb\xa2\xb2"
  8574. "\xa0\xf3\x19\x39\x2b\xc5\x7e\x3f"
  8575. "\x4f\xd9\xd3\x56\x28\x97\x44\xdc"
  8576. "\xc0\x8b\x77\x24\xd9\x52\xe7\xc5"
  8577. "\xaf\xf6\x7d\x59\xb2\x44\x05\x1d"
  8578. "\xb1\xb0\x11\xa5\x0f\xec\x33\xe1"
  8579. "\x6d\x1b\x4e\x1f\xff\x57\x91\xb4"
  8580. "\x5b\x9a\x96\xc5\x53\xbc\xae\x20"
  8581. "\x3c\xbb\x14\xe2\xe8\x22\x33\xc1"
  8582. "\x5e\x76\x9e\x46\x99\xf6\x2a\x15"
  8583. "\xc6\x97\x02\xa0\x66\x43\xd1\xa6"
  8584. "\x31\xa6\x9f\xfb\xf4\xd3\x69\xe5"
  8585. "\xcd\x76\x95\xb8\x7a\x82\x7f\x21"
  8586. "\x45\xff\x3f\xce\x55\xf6\x95\x10"
  8587. "\x08\x77\x10\x43\xc6\xf3\x09\xe5"
  8588. "\x68\xe7\x3c\xad\x00\x52\x45\x0d"
  8589. "\xfe\x2d\xc6\xc2\x94\x8c\x12\x1d"
  8590. "\xe6\x25\xae\x98\x12\x8e\x19\x9c"
  8591. "\x81\x68\xb1\x11\xf6\x69\xda\xe3"
  8592. "\x62\x08\x18\x7a\x25\x49\x28\xac"
  8593. "\xba\x71\x12\x0b\xe4\xa2\xe5\xc7"
  8594. "\x5d\x8e\xec\x49\x40\x21\xbf\x5a"
  8595. "\x98\xf3\x02\x68\x55\x03\x7f\x8a"
  8596. "\xe5\x94\x0c\x32\x5c\x07\x82\x63"
  8597. "\xaf\x6f\x91\x40\x84\x8e\x52\x25"
  8598. "\xd0\xb0\x29\x53\x05\xe2\x50\x7a"
  8599. "\x34\xeb\xc9\x46\x20\xa8\x3d\xde"
  8600. "\x7f\x16\x5f\x36\xc5\x2e\xdc\xd1"
  8601. "\x15\x47\xc7\x50\x40\x6d\x91\xc5"
  8602. "\xe7\x93\x95\x1a\xd3\x57\xbc\x52"
  8603. "\x33\xee\x14\x19\x22\x52\x89\xa7"
  8604. "\x4a\x25\x56\x77\x4b\xca\xcf\x0a"
  8605. "\xe1\xf5\x35\x85\x30\x7e\x59\x4a"
  8606. "\xbd\x14\x5b\xdf\xe3\x46\xcb\xac"
  8607. "\x1f\x6c\x96\x0e\xf4\x81\xd1\x99"
  8608. "\xca\x88\x63\x3d\x02\x58\x6b\xa9"
  8609. "\xe5\x9f\xb3\x00\xb2\x54\xc6\x74"
  8610. "\x1c\xbf\x46\xab\x97\xcc\xf8\x54"
  8611. "\x04\x07\x08\x52\xe6\xc0\xda\x93"
  8612. "\x74\x7d\x93\x99\x5d\x78\x68\xa6"
  8613. "\x2e\x6b\xd3\x6a\x69\xcc\x12\x6b"
  8614. "\xd4\xc7\xa5\xc6\xe7\xf6\x03\x04"
  8615. "\x5d\xcd\x61\x5e\x17\x40\xdc\xd1"
  8616. "\x5c\xf5\x08\xdf\x5c\x90\x85\xa4"
  8617. "\xaf\xf6\x78\xbb\x0d\xf1\xf4\xa4"
  8618. "\x54\x26\x72\x9e\x61\xfa\x86\xcf"
  8619. "\xe8\x9e\xa1\xe0\xc7\x48\x23\xae"
  8620. "\x5a\x90\xae\x75\x0a\x74\x18\x89"
  8621. "\x05\xb1\x92\xb2\x7f\xd0\x1b\xa6"
  8622. "\x62\x07\x25\x01\xc7\xc2\x4f\xf9"
  8623. "\xe8\xfe\x63\x95\x80\x07\xb4\x26"
  8624. "\xcc\xd1\x26\xb6\xc4\x3f\x9e\xcb"
  8625. "\x8e\x3b\x2e\x44\x16\xd3\x10\x9a"
  8626. "\x95\x08\xeb\xc8\xcb\xeb\xbf\x6f"
  8627. "\x0b\xcd\x1f\xc8\xca\x86\xaa\xec"
  8628. "\x33\xe6\x69\xf4\x45\x25\x86\x3a"
  8629. "\x22\x94\x4f\x00\x23\x6a\x44\xc2"
  8630. "\x49\x97\x33\xab\x36\x14\x0a\x70"
  8631. "\x24\xc3\xbe\x04\x3b\x79\xa0\xf9"
  8632. "\xb8\xe7\x76\x29\x22\x83\xd7\xf2"
  8633. "\x94\xf4\x41\x49\xba\x5f\x7b\x07"
  8634. "\xb5\xfb\xdb\x03\x1a\x9f\xb6\x4c"
  8635. "\xc2\x2e\x37\x40\x49\xc3\x38\x16"
  8636. "\xe2\x4f\x77\x82\xb0\x68\x4c\x71"
  8637. "\x1d\x57\x61\x9c\xd9\x4e\x54\x99"
  8638. "\x47\x13\x28\x73\x3c\xbb\x00\x90"
  8639. "\xf3\x4d\xc9\x0e\xfd\xe7\xb1\x71"
  8640. "\xd3\x15\x79\xbf\xcc\x26\x2f\xbd"
  8641. "\xad\x6c\x50\x69\x6c\x3e\x6d\x80"
  8642. "\x9a\xea\x78\xaf\x19\xb2\x0d\x4d"
  8643. "\xad\x04\x07\xae\x22\x90\x4a\x93"
  8644. "\x32\x0e\x36\x9b\x1b\x46\xba\x3b"
  8645. "\xb4\xac\xc6\xd1\xa2\x31\x53\x3b"
  8646. "\x2a\x3d\x45\xfe\x03\x61\x10\x85"
  8647. "\x17\x69\xa6\x78\xcc\x6c\x87\x49"
  8648. "\x53\xf9\x80\x10\xde\x80\xa2\x41"
  8649. "\x6a\xc3\x32\x02\xad\x6d\x3c\x56"
  8650. "\x00\x71\x51\x06\xa7\xbd\xfb\xef"
  8651. "\x3c\xb5\x9f\xfc\x48\x7d\x53\x7c"
  8652. "\x66\xb0\x49\x23\xc4\x47\x10\x0e"
  8653. "\xe5\x6c\x74\x13\xe6\xc5\x3f\xaa"
  8654. "\xde\xff\x07\x44\xdd\x56\x1b\xad"
  8655. "\x09\x77\xfb\x5b\x12\xb8\x0d\x38"
  8656. "\x17\x37\x35\x7b\x9b\xbc\xfe\xd4"
  8657. "\x7e\x8b\xda\x7e\x5b\x04\xa7\x22"
  8658. "\xa7\x31\xa1\x20\x86\xc7\x1b\x99"
  8659. "\xdb\xd1\x89\xf4\x94\xa3\x53\x69"
  8660. "\x8d\xe7\xe8\x74\x11\x8d\x74\xd6"
  8661. "\x07\x37\x91\x9f\xfd\x67\x50\x3a"
  8662. "\xc9\xe1\xf4\x36\xd5\xa0\x47\xd1"
  8663. "\xf9\xe5\x39\xa3\x31\xac\x07\x36"
  8664. "\x23\xf8\x66\x18\x14\x28\x34\x0f"
  8665. "\xb8\xd0\xe7\x29\xb3\x04\x4b\x55"
  8666. "\x01\x41\xb2\x75\x8d\xcb\x96\x85"
  8667. "\x3a\xfb\xab\x2b\x9e\xfa\x58\x20"
  8668. "\x44\x1f\xc0\x14\x22\x75\x61\xe8"
  8669. "\xaa\x19\xcf\xf1\x82\x56\xf4\xd7"
  8670. "\x78\x7b\x3d\x5f\xb3\x9e\x0b\x8a"
  8671. "\x57\x50\xdb\x17\x41\x65\x4d\xa3"
  8672. "\x02\xc9\x9c\x9c\x53\xfb\x39\x39"
  8673. "\x9b\x1d\x72\x24\xda\xb7\x39\xbe"
  8674. "\x13\x3b\xfa\x29\xda\x9e\x54\x64"
  8675. "\x6e\xba\xd8\xa1\xcb\xb3\x36\xfa"
  8676. "\xcb\x47\x85\xe9\x61\x38\xbc\xbe"
  8677. "\xc5\x00\x38\x2a\x54\xf7\xc4\xb9"
  8678. "\xb3\xd3\x7b\xa0\xa0\xf8\x72\x7f"
  8679. "\x8c\x8e\x82\x0e\xc6\x1c\x75\x9d"
  8680. "\xca\x8e\x61\x87\xde\xad\x80\xd2"
  8681. "\xf5\xf9\x80\xef\x15\x75\xaf\xf5"
  8682. "\x80\xfb\xff\x6d\x1e\x25\xb7\x40"
  8683. "\x61\x6a\x39\x5a\x6a\xb5\x31\xab"
  8684. "\x97\x8a\x19\x89\x44\x40\xc0\xa6"
  8685. "\xb4\x4e\x30\x32\x7b\x13\xe7\x67"
  8686. "\xa9\x8b\x57\x04\xc2\x01\xa6\xf4"
  8687. "\x28\x99\xad\x2c\x76\xa3\x78\xc2"
  8688. "\x4a\xe6\xca\x5c\x50\x6a\xc1\xb0"
  8689. "\x62\x4b\x10\x8e\x7c\x17\x43\xb3"
  8690. "\x17\x66\x1c\x3e\x8d\x69\xf0\x5a"
  8691. "\x71\xf5\x97\xdc\xd1\x45\xdd\x28"
  8692. "\xf3\x5d\xdf\x53\x7b\x11\xe5\xbc"
  8693. "\x4c\xdb\x1b\x51\x6b\xe9\xfb\x3d"
  8694. "\xc1\xc3\x2c\xb9\x71\xf5\xb6\xb2"
  8695. "\x13\x36\x79\x80\x53\xe8\xd3\xa6"
  8696. "\x0a\xaf\xfd\x56\x97\xf7\x40\x8e"
  8697. "\x45\xce\xf8\xb0\x9e\x5c\x33\x82"
  8698. "\xb0\x44\x56\xfc\x05\x09\xe9\x2a"
  8699. "\xac\x26\x80\x14\x1d\xc8\x3a\x35"
  8700. "\x4c\x82\x97\xfd\x76\xb7\xa9\x0a"
  8701. "\x35\x58\x79\x8e\x0f\x66\xea\xaf"
  8702. "\x51\x6c\x09\xa9\x6e\x9b\xcb\x9a"
  8703. "\x31\x47\xa0\x2f\x7c\x71\xb4\x4a"
  8704. "\x11\xaa\x8c\x66\xc5\x64\xe6\x3a"
  8705. "\x54\xda\x24\x6a\xc4\x41\x65\x46"
  8706. "\x82\xa0\x0a\x0f\x5f\xfb\x25\xd0"
  8707. "\x2c\x91\xa7\xee\xc4\x81\x07\x86"
  8708. "\x75\x5e\x33\x69\x97\xe4\x2c\xa8"
  8709. "\x9d\x9f\x0b\x6a\xbe\xad\x98\xda"
  8710. "\x6d\x94\x41\xda\x2c\x1e\x89\xc4"
  8711. "\xc2\xaf\x1e\x00\x05\x0b\x83\x60"
  8712. "\xbd\x43\xea\x15\x23\x7f\xb9\xac"
  8713. "\xee\x4f\x2c\xaf\x2a\xf3\xdf\xd0"
  8714. "\xf3\x19\x31\xbb\x4a\x74\x84\x17"
  8715. "\x52\x32\x2c\x7d\x61\xe4\xcb\xeb"
  8716. "\x80\x38\x15\x52\xcb\x6f\xea\xe5"
  8717. "\x73\x9c\xd9\x24\x69\xc6\x95\x32"
  8718. "\x21\xc8\x11\xe4\xdc\x36\xd7\x93"
  8719. "\x38\x66\xfb\xb2\x7f\x3a\xb9\xaf"
  8720. "\x31\xdd\x93\x75\x78\x8a\x2c\x94"
  8721. "\x87\x1a\x58\xec\x9e\x7d\x4d\xba"
  8722. "\xe1\xe5\x4d\xfc\xbc\xa4\x2a\x14"
  8723. "\xef\xcc\xa7\xec\xab\x43\x09\x18"
  8724. "\xd3\xab\x68\xd1\x07\x99\x44\x47"
  8725. "\xd6\x83\x85\x3b\x30\xea\xa9\x6b"
  8726. "\x63\xea\xc4\x07\xfb\x43\x2f\xa4"
  8727. "\xaa\xb0\xab\x03\x89\xce\x3f\x8c"
  8728. "\x02\x7c\x86\x54\xbc\x88\xaf\x75"
  8729. "\xd2\xdc\x63\x17\xd3\x26\xf6\x96"
  8730. "\xa9\x3c\xf1\x61\x8c\x11\x18\xcc"
  8731. "\xd6\xea\x5b\xe2\xcd\xf0\xf1\xb2"
  8732. "\xe5\x35\x90\x1f\x85\x4c\x76\x5b"
  8733. "\x66\xce\x44\xa4\x32\x9f\xe6\x7b"
  8734. "\x71\x6e\x9f\x58\x15\x67\x72\x87"
  8735. "\x64\x8e\x3a\x44\x45\xd4\x76\xfa"
  8736. "\xc2\xf6\xef\x85\x05\x18\x7a\x9b"
  8737. "\xba\x41\x54\xac\xf0\xfc\x59\x12"
  8738. "\x3f\xdf\xa0\xe5\x8a\x65\xfd\x3a"
  8739. "\x62\x8d\x83\x2c\x03\xbe\x05\x76"
  8740. "\x2e\x53\x49\x97\x94\x33\xae\x40"
  8741. "\x81\x15\xdb\x6e\xad\xaa\xf5\x4b"
  8742. "\xe3\x98\x70\xdf\xe0\x7c\xcd\xdb"
  8743. "\x02\xd4\x7d\x2f\xc1\xe6\xb4\xf3"
  8744. "\xd7\x0d\x7a\xd9\x23\x9e\x87\x2d"
  8745. "\xce\x87\xad\xcc\x72\x05\x00\x29"
  8746. "\xdc\x73\x7f\x64\xc1\x15\x0e\xc2"
  8747. "\xdf\xa7\x5f\xeb\x41\xa1\xcd\xef"
  8748. "\x5c\x50\x79\x2a\x56\x56\x71\x8c"
  8749. "\xac\xc0\x79\x50\x69\xca\x59\x32"
  8750. "\x65\xf2\x54\xe4\x52\x38\x76\xd1"
  8751. "\x5e\xde\x26\x9e\xfb\x75\x2e\x11"
  8752. "\xb5\x10\xf4\x17\x73\xf5\x89\xc7"
  8753. "\x4f\x43\x5c\x8e\x7c\xb9\x05\x52"
  8754. "\x24\x40\x99\xfe\x9b\x85\x0b\x6c"
  8755. "\x22\x3e\x8b\xae\x86\xa1\xd2\x79"
  8756. "\x05\x68\x6b\xab\xe3\x41\x49\xed"
  8757. "\x15\xa1\x8d\x40\x2d\x61\xdf\x1a"
  8758. "\x59\xc9\x26\x8b\xef\x30\x4c\x88"
  8759. "\x4b\x10\xf8\x8d\xa6\x92\x9f\x4b"
  8760. "\xf3\xc4\x53\x0b\x89\x5d\x28\x92"
  8761. "\xcf\x78\xb2\xc0\x5d\xed\x7e\xfc"
  8762. "\xc0\x12\x23\x5f\x5a\x78\x86\x43"
  8763. "\x6e\x27\xf7\x5a\xa7\x6a\xed\x19"
  8764. "\x04\xf0\xb3\x12\xd1\xbd\x0e\x89"
  8765. "\x6e\xbc\x96\xa8\xd8\x49\x39\x9f"
  8766. "\x7e\x67\xf0\x2e\x3e\x01\xa9\xba"
  8767. "\xec\x8b\x62\x8e\xcb\x4a\x70\x43"
  8768. "\xc7\xc2\xc4\xca\x82\x03\x73\xe9"
  8769. "\x11\xdf\xcf\x54\xea\xc9\xb0\x95"
  8770. "\x51\xc0\x13\x3d\x92\x05\xfa\xf4"
  8771. "\xa9\x34\xc8\xce\x6c\x3d\x54\xcc"
  8772. "\xc4\xaf\xf1\xdc\x11\x44\x26\xa2"
  8773. "\xaf\xf1\x85\x75\x7d\x03\x61\x68"
  8774. "\x4e\x78\xc6\x92\x7d\x86\x7d\x77"
  8775. "\xdc\x71\x72\xdb\xc6\xae\xa1\xcb"
  8776. "\x70\x9a\x0b\x19\xbe\x4a\x6c\x2a"
  8777. "\xe2\xba\x6c\x64\x9a\x13\x28\xdf"
  8778. "\x85\x75\xe6\x43\xf6\x87\x08\x68"
  8779. "\x6e\xba\x6e\x79\x9f\x04\xbc\x23"
  8780. "\x50\xf6\x33\x5c\x1f\x24\x25\xbe"
  8781. "\x33\x47\x80\x45\x56\xa3\xa7\xd7"
  8782. "\x7a\xb1\x34\x0b\x90\x3c\x9c\xad"
  8783. "\x44\x5f\x9e\x0e\x9d\xd4\xbd\x93"
  8784. "\x5e\xfa\x3c\xe0\xb0\xd9\xed\xf3"
  8785. "\xd6\x2e\xff\x24\xd8\x71\x6c\xed"
  8786. "\xaf\x55\xeb\x22\xac\x93\x68\x32"
  8787. "\x05\x5b\x47\xdd\xc6\x4a\xcb\xc7"
  8788. "\x10\xe1\x3c\x92\x1a\xf3\x23\x78"
  8789. "\x2b\xa1\xd2\x80\xf4\x12\xb1\x20"
  8790. "\x8f\xff\x26\x35\xdd\xfb\xc7\x4e"
  8791. "\x78\xf1\x2d\x50\x12\x77\xa8\x60"
  8792. "\x7c\x0f\xf5\x16\x2f\x63\x70\x2a"
  8793. "\xc0\x96\x80\x4e\x0a\xb4\x93\x35"
  8794. "\x5d\x1d\x3f\x56\xf7\x2f\xbb\x90"
  8795. "\x11\x16\x8f\xa2\xec\x47\xbe\xac"
  8796. "\x56\x01\x26\x56\xb1\x8c\xb2\x10"
  8797. "\xf9\x1a\xca\xf5\xd1\xb7\x39\x20"
  8798. "\x63\xf1\x69\x20\x4f\x13\x12\x1f"
  8799. "\x5b\x65\xfc\x98\xf7\xc4\x7a\xbe"
  8800. "\xf7\x26\x4d\x2b\x84\x7b\x42\xad"
  8801. "\xd8\x7a\x0a\xb4\xd8\x74\xbf\xc1"
  8802. "\xf0\x6e\xb4\x29\xa3\xbb\xca\x46"
  8803. "\x67\x70\x6a\x2d\xce\x0e\xa2\x8a"
  8804. "\xa9\x87\xbf\x05\xc4\xc1\x04\xa3"
  8805. "\xab\xd4\x45\x43\x8c\xb6\x02\xb0"
  8806. "\x41\xc8\xfc\x44\x3d\x59\xaa\x2e"
  8807. "\x44\x21\x2a\x8d\x88\x9d\x57\xf4"
  8808. "\xa0\x02\x77\xb8\xa6\xa0\xe6\x75"
  8809. "\x5c\x82\x65\x3e\x03\x5c\x29\x8f"
  8810. "\x38\x55\xab\x33\x26\xef\x9f\x43"
  8811. "\x52\xfd\x68\xaf\x36\xb4\xbb\x9a"
  8812. "\x58\x09\x09\x1b\xc3\x65\x46\x46"
  8813. "\x1d\xa7\x94\x18\x23\x50\x2c\xca"
  8814. "\x2c\x55\x19\x97\x01\x9d\x93\x3b"
  8815. "\x63\x86\xf2\x03\x67\x45\xd2\x72"
  8816. "\x28\x52\x6c\xf4\xe3\x1c\xb5\x11"
  8817. "\x13\xf1\xeb\x21\xc7\xd9\x56\x82"
  8818. "\x2b\x82\x39\xbd\x69\x54\xed\x62"
  8819. "\xc3\xe2\xde\x73\xd4\x6a\x12\xae"
  8820. "\x13\x21\x7f\x4b\x5b\xfc\xbf\xe8"
  8821. "\x2b\xbe\x56\xba\x68\x8b\x9a\xb1"
  8822. "\x6e\xfa\xbf\x7e\x5a\x4b\xf1\xac"
  8823. "\x98\x65\x85\xd1\x93\x53\xd3\x7b"
  8824. "\x09\xdd\x4b\x10\x6d\x84\xb0\x13"
  8825. "\x65\xbd\xcf\x52\x09\xc4\x85\xe2"
  8826. "\x84\x74\x15\x65\xb7\xf7\x51\xaf"
  8827. "\x55\xad\xa4\xd1\x22\x54\x70\x94"
  8828. "\xa0\x1c\x90\x41\xfd\x99\xd7\x5a"
  8829. "\x31\xef\xaa\x25\xd0\x7f\x4f\xea"
  8830. "\x1d\x55\x42\xe5\x49\xb0\xd0\x46"
  8831. "\x62\x36\x43\xb2\x82\x15\x75\x50"
  8832. "\xa4\x72\xeb\x54\x27\x1f\x8a\xe4"
  8833. "\x7d\xe9\x66\xc5\xf1\x53\xa4\xd1"
  8834. "\x0c\xeb\xb8\xf8\xbc\xd4\xe2\xe7"
  8835. "\xe1\xf8\x4b\xcb\xa9\xa1\xaf\x15"
  8836. "\x83\xcb\x72\xd0\x33\x79\x00\x2d"
  8837. "\x9f\xd7\xf1\x2e\x1e\x10\xe4\x45"
  8838. "\xc0\x75\x3a\x39\xea\x68\xf7\x5d"
  8839. "\x1b\x73\x8f\xe9\x8e\x0f\x72\x47"
  8840. "\xae\x35\x0a\x31\x7a\x14\x4d\x4a"
  8841. "\x6f\x47\xf7\x7e\x91\x6e\x74\x8b"
  8842. "\x26\x47\xf9\xc3\xf9\xde\x70\xf5"
  8843. "\x61\xab\xa9\x27\x9f\x82\xe4\x9c"
  8844. "\x89\x91\x3f\x2e\x6a\xfd\xb5\x49"
  8845. "\xe9\xfd\x59\x14\x36\x49\x40\x6d"
  8846. "\x32\xd8\x85\x42\xf3\xa5\xdf\x0c"
  8847. "\xa8\x27\xd7\x54\xe2\x63\x2f\xf2"
  8848. "\x7e\x8b\x8b\xe7\xf1\x9a\x95\x35"
  8849. "\x43\xdc\x3a\xe4\xb6\xf4\xd0\xdf"
  8850. "\x9c\xcb\x94\xf3\x21\xa0\x77\x50"
  8851. "\xe2\xc6\xc4\xc6\x5f\x09\x64\x5b"
  8852. "\x92\x90\xd8\xe1\xd1\xed\x4b\x42"
  8853. "\xd7\x37\xaf\x65\x3d\x11\x39\xb6"
  8854. "\x24\x8a\x60\xae\xd6\x1e\xbf\x0e"
  8855. "\x0d\xd7\xdc\x96\x0e\x65\x75\x4e"
  8856. "\x29\x06\x9d\xa4\x51\x3a\x10\x63"
  8857. "\x8f\x17\x07\xd5\x8e\x3c\xf4\x28"
  8858. "\x00\x5a\x5b\x05\x19\xd8\xc0\x6c"
  8859. "\xe5\x15\xe4\x9c\x9d\x71\x9d\x5e"
  8860. "\x94\x29\x1a\xa7\x80\xfa\x0e\x33"
  8861. "\x03\xdd\xb7\x3e\x9a\xa9\x26\x18"
  8862. "\x37\xa9\x64\x08\x4d\x94\x5a\x88"
  8863. "\xca\x35\xce\x81\x02\xe3\x1f\x1b"
  8864. "\x89\x1a\x77\x85\xe3\x41\x6d\x32"
  8865. "\x42\x19\x23\x7d\xc8\x73\xee\x25"
  8866. "\x85\x0d\xf8\x31\x25\x79\x1b\x6f"
  8867. "\x79\x25\xd2\xd8\xd4\x23\xfd\xf7"
  8868. "\x82\x36\x6a\x0c\x46\x22\x15\xe9"
  8869. "\xff\x72\x41\x91\x91\x7d\x3a\xb7"
  8870. "\xdd\x65\x99\x70\xf6\x8d\x84\xf8"
  8871. "\x67\x15\x20\x11\xd6\xb2\x55\x7b"
  8872. "\xdb\x87\xee\xef\x55\x89\x2a\x59"
  8873. "\x2b\x07\x8f\x43\x8a\x59\x3c\x01"
  8874. "\x8b\x65\x54\xa1\x66\xd5\x38\xbd"
  8875. "\xc6\x30\xa9\xcc\x49\xb6\xa8\x1b"
  8876. "\xb8\xc0\x0e\xe3\x45\x28\xe2\xff"
  8877. "\x41\x9f\x7e\x7c\xd1\xae\x9e\x25"
  8878. "\x3f\x4c\x7c\x7c\xf4\xa8\x26\x4d"
  8879. "\x5c\xfd\x4b\x27\x18\xf9\x61\x76"
  8880. "\x48\xba\x0c\x6b\xa9\x4d\xfc\xf5"
  8881. "\x3b\x35\x7e\x2f\x4a\xa9\xc2\x9a"
  8882. "\xae\xab\x86\x09\x89\xc9\xc2\x40"
  8883. "\x39\x2c\x81\xb3\xb8\x17\x67\xc2"
  8884. "\x0d\x32\x4a\x3a\x67\x81\xd7\x1a"
  8885. "\x34\x52\xc5\xdb\x0a\xf5\x63\x39"
  8886. "\xea\x1f\xe1\x7c\xa1\x9e\xc1\x35"
  8887. "\xe3\xb1\x18\x45\x67\xf9\x22\x38"
  8888. "\x95\xd9\x34\x34\x86\xc6\x41\x94"
  8889. "\x15\xf9\x5b\x41\xa6\x87\x8b\xf8"
  8890. "\xd5\xe1\x1b\xe2\x5b\xf3\x86\x10"
  8891. "\xff\xe6\xae\x69\x76\xbc\x0d\xb4"
  8892. "\x09\x90\x0c\xa2\x65\x0c\xad\x74"
  8893. "\xf5\xd7\xff\xda\xc1\xce\x85\xbe"
  8894. "\x00\xa7\xff\x4d\x2f\x65\xd3\x8c"
  8895. "\x86\x2d\x05\xe8\xed\x3e\x6b\x8b"
  8896. "\x0f\x3d\x83\x8c\xf1\x1d\x5b\x96"
  8897. "\x2e\xb1\x9c\xc2\x98\xe1\x70\xb9"
  8898. "\xba\x5c\x8a\x43\xd6\x34\xa7\x2d"
  8899. "\xc9\x92\xae\xf2\xa5\x7b\x05\x49"
  8900. "\xa7\x33\x34\x86\xca\xe4\x96\x23"
  8901. "\x76\x5b\xf2\xc6\xf1\x51\x28\x42"
  8902. "\x7b\xcc\x76\x8f\xfa\xa2\xad\x31"
  8903. "\xd4\xd6\x7a\x6d\x25\x25\x54\xe4"
  8904. "\x3f\x50\x59\xe1\x5c\x05\xb7\x27"
  8905. "\x48\xbf\x07\xec\x1b\x13\xbe\x2b"
  8906. "\xa1\x57\x2b\xd5\xab\xd7\xd0\x4c"
  8907. "\x1e\xcb\x71\x9b\xc5\x90\x85\xd3"
  8908. "\xde\x59\xec\x71\xeb\x89\xbb\xd0"
  8909. "\x09\x50\xe1\x16\x3f\xfd\x1c\x34"
  8910. "\xc3\x1c\xa1\x10\x77\x53\x98\xef"
  8911. "\xf2\xfd\xa5\x01\x59\xc2\x9b\x26"
  8912. "\xc7\x42\xd9\x49\xda\x58\x2b\x6e"
  8913. "\x9f\x53\x19\x76\x7e\xd9\xc9\x0e"
  8914. "\x68\xc8\x7f\x51\x22\x42\xef\x49"
  8915. "\xa4\x55\xb6\x36\xac\x09\xc7\x31"
  8916. "\x88\x15\x4b\x2e\x8f\x3a\x08\xf7"
  8917. "\xd8\xf7\xa8\xc5\xa9\x33\xa6\x45"
  8918. "\xe4\xc4\x94\x76\xf3\x0d\x8f\x7e"
  8919. "\xc8\xf6\xbc\x23\x0a\xb6\x4c\xd3"
  8920. "\x6a\xcd\x36\xc2\x90\x5c\x5c\x3c"
  8921. "\x65\x7b\xc2\xd6\xcc\xe6\x0d\x87"
  8922. "\x73\x2e\x71\x79\x16\x06\x63\x28"
  8923. "\x09\x15\xd8\x89\x38\x38\x3d\xb5"
  8924. "\x42\x1c\x08\x24\xf7\x2a\xd2\x9d"
  8925. "\xc8\xca\xef\xf9\x27\xd8\x07\x86"
  8926. "\xf7\x43\x0b\x55\x15\x3f\x9f\x83"
  8927. "\xef\xdc\x49\x9d\x2a\xc1\x54\x62"
  8928. "\xbd\x9b\x66\x55\x9f\xb7\x12\xf3"
  8929. "\x1b\x4d\x9d\x2a\x5c\xed\x87\x75"
  8930. "\x87\x26\xec\x61\x2c\xb4\x0f\x89"
  8931. "\xb0\xfb\x2e\x68\x5d\x15\xc7\x8d"
  8932. "\x2e\xc0\xd9\xec\xaf\x4f\xd2\x25"
  8933. "\x29\xe8\xd2\x26\x2b\x67\xe9\xfc"
  8934. "\x2b\xa8\x67\x96\x12\x1f\x5b\x96"
  8935. "\xc6\x14\x53\xaf\x44\xea\xd6\xe2"
  8936. "\x94\x98\xe4\x12\x93\x4c\x92\xe0"
  8937. "\x18\xa5\x8d\x2d\xe4\x71\x3c\x47"
  8938. "\x4c\xf7\xe6\x47\x9e\xc0\x68\xdf"
  8939. "\xd4\xf5\x5a\x74\xb1\x2b\x29\x03"
  8940. "\x19\x07\xaf\x90\x62\x5c\x68\x98"
  8941. "\x48\x16\x11\x02\x9d\xee\xb4\x9b"
  8942. "\xe5\x42\x7f\x08\xfd\x16\x32\x0b"
  8943. "\xd0\xb3\xfa\x2b\xb7\x99\xf9\x29"
  8944. "\xcd\x20\x45\x9f\xb3\x1a\x5d\xa2"
  8945. "\xaf\x4d\xe0\xbd\x42\x0d\xbc\x74"
  8946. "\x99\x9c\x8e\x53\x1a\xb4\x3e\xbd"
  8947. "\xa2\x9a\x2d\xf7\xf8\x39\x0f\x67"
  8948. "\x63\xfc\x6b\xc0\xaf\xb3\x4b\x4f"
  8949. "\x55\xc4\xcf\xa7\xc8\x04\x11\x3e"
  8950. "\x14\x32\xbb\x1b\x38\x77\xd6\x7f"
  8951. "\x54\x4c\xdf\x75\xf3\x07\x2d\x33"
  8952. "\x9b\xa8\x20\xe1\x7b\x12\xb5\xf3"
  8953. "\xef\x2f\xce\x72\xe5\x24\x60\xc1"
  8954. "\x30\xe2\xab\xa1\x8e\x11\x09\xa8"
  8955. "\x21\x33\x44\xfe\x7f\x35\x32\x93"
  8956. "\x39\xa7\xad\x8b\x79\x06\xb2\xcb"
  8957. "\x4e\xa9\x5f\xc7\xba\x74\x29\xec"
  8958. "\x93\xa0\x4e\x54\x93\xc0\xbc\x55"
  8959. "\x64\xf0\x48\xe5\x57\x99\xee\x75"
  8960. "\xd6\x79\x0f\x66\xb7\xc6\x57\x76"
  8961. "\xf7\xb7\xf3\x9c\xc5\x60\xe8\x7f"
  8962. "\x83\x76\xd6\x0e\xaa\xe6\x90\x39"
  8963. "\x1d\xa6\x32\x6a\x34\xe3\x55\xf8"
  8964. "\x58\xa0\x58\x7d\x33\xe0\x22\x39"
  8965. "\x44\x64\x87\x86\x5a\x2f\xa7\x7e"
  8966. "\x0f\x38\xea\xb0\x30\xcc\x61\xa5"
  8967. "\x6a\x32\xae\x1e\xf7\xe9\xd0\xa9"
  8968. "\x0c\x32\x4b\xb5\x49\x28\xab\x85"
  8969. "\x2f\x8e\x01\x36\x38\x52\xd0\xba"
  8970. "\xd6\x02\x78\xf8\x0e\x3e\x9c\x8b"
  8971. "\x6b\x45\x99\x3f\x5c\xfe\x58\xf1"
  8972. "\x5c\x94\x04\xe1\xf5\x18\x6d\x51"
  8973. "\xb2\x5d\x18\x20\xb6\xc2\x9a\x42"
  8974. "\x1d\xb3\xab\x3c\xb6\x3a\x13\x03"
  8975. "\xb2\x46\x82\x4f\xfc\x64\xbc\x4f"
  8976. "\xca\xfa\x9c\xc0\xd5\xa7\xbd\x11"
  8977. "\xb7\xe4\x5a\xf6\x6f\x4d\x4d\x54"
  8978. "\xea\xa4\x98\x66\xd4\x22\x3b\xd3"
  8979. "\x8f\x34\x47\xd9\x7c\xf4\x72\x3b"
  8980. "\x4d\x02\x77\xf6\xd6\xdd\x08\x0a"
  8981. "\x81\xe1\x86\x89\x3e\x56\x10\x3c"
  8982. "\xba\xd7\x81\x8c\x08\xbc\x8b\xe2"
  8983. "\x53\xec\xa7\x89\xee\xc8\x56\xb5"
  8984. "\x36\x2c\xb2\x03\xba\x99\xdd\x7c"
  8985. "\x48\xa0\xb0\xbc\x91\x33\xe9\xa8"
  8986. "\xcb\xcd\xcf\x59\x5f\x1f\x15\xe2"
  8987. "\x56\xf5\x4e\x01\x35\x27\x45\x77"
  8988. "\x47\xc8\xbc\xcb\x7e\x39\xc1\x97"
  8989. "\x28\xd3\x84\xfc\x2c\x3e\xc8\xad"
  8990. "\x9c\xf8\x8a\x61\x9c\x28\xaa\xc5"
  8991. "\x99\x20\x43\x85\x9d\xa5\xe2\x8b"
  8992. "\xb8\xae\xeb\xd0\x32\x0d\x52\x78"
  8993. "\x09\x56\x3f\xc7\xd8\x7e\x26\xfc"
  8994. "\x37\xfb\x6f\x04\xfc\xfa\x92\x10"
  8995. "\xac\xf8\x3e\x21\xdc\x8c\x21\x16"
  8996. "\x7d\x67\x6e\xf6\xcd\xda\xb6\x98"
  8997. "\x23\xab\x23\x3c\xb2\x10\xa0\x53"
  8998. "\x5a\x56\x9f\xc5\xd0\xff\xbb\xe4"
  8999. "\x98\x3c\x69\x1e\xdb\x38\x8f\x7e"
  9000. "\x0f\xd2\x98\x88\x81\x8b\x45\x67"
  9001. "\xea\x33\xf1\xeb\xe9\x97\x55\x2e"
  9002. "\xd9\xaa\xeb\x5a\xec\xda\xe1\x68"
  9003. "\xa8\x9d\x3c\x84\x7c\x05\x3d\x62"
  9004. "\x87\x8f\x03\x21\x28\x95\x0c\x89"
  9005. "\x25\x22\x4a\xb0\x93\xa9\x50\xa2"
  9006. "\x2f\x57\x6e\x18\x42\x19\x54\x0c"
  9007. "\x55\x67\xc6\x11\x49\xf4\x5c\xd2"
  9008. "\xe9\x3d\xdd\x8b\x48\x71\x21\x00"
  9009. "\xc3\x9a\x6c\x85\x74\x28\x83\x4a"
  9010. "\x1b\x31\x05\xe1\x06\x92\xe7\xda"
  9011. "\x85\x73\x78\x45\x20\x7f\xae\x13"
  9012. "\x7c\x33\x06\x22\xf4\x83\xf9\x35"
  9013. "\x3f\x6c\x71\xa8\x4e\x48\xbe\x9b"
  9014. "\xce\x8a\xba\xda\xbe\x28\x08\xf7"
  9015. "\xe2\x14\x8c\x71\xea\x72\xf9\x33"
  9016. "\xf2\x88\x3f\xd7\xbb\x69\x6c\x29"
  9017. "\x19\xdc\x84\xce\x1f\x12\x4f\xc8"
  9018. "\xaf\xa5\x04\xba\x5a\xab\xb0\xd9"
  9019. "\x14\x1f\x6c\x68\x98\x39\x89\x7a"
  9020. "\xd9\xd8\x2f\xdf\xa8\x47\x4a\x25"
  9021. "\xe2\xfb\x33\xf4\x59\x78\xe1\x68"
  9022. "\x85\xcf\xfe\x59\x20\xd4\x05\x1d"
  9023. "\x80\x99\xae\xbc\xca\xae\x0f\x2f"
  9024. "\x65\x43\x34\x8e\x7e\xac\xd3\x93"
  9025. "\x2f\xac\x6d\x14\x3d\x02\x07\x70"
  9026. "\x9d\xa4\xf3\x1b\x5c\x36\xfc\x01"
  9027. "\x73\x34\x85\x0c\x6c\xd6\xf1\xbd"
  9028. "\x3f\xdf\xee\xf5\xd9\xba\x56\xef"
  9029. "\xf4\x9b\x6b\xee\x9f\x5a\x78\x6d"
  9030. "\x32\x19\xf4\xf7\xf8\x4c\x69\x0b"
  9031. "\x4b\xbc\xbb\xb7\xf2\x85\xaf\x70"
  9032. "\x75\x24\x6c\x54\xa7\x0e\x4d\x1d"
  9033. "\x01\xbf\x08\xac\xcf\x7f\x2c\xe3"
  9034. "\x14\x89\x5e\x70\x5a\x99\x92\xcd"
  9035. "\x01\x84\xc8\xd2\xab\xe5\x4f\x58"
  9036. "\xe7\x0f\x2f\x0e\xff\x68\xea\xfd"
  9037. "\x15\xb3\x17\xe6\xb0\xe7\x85\xd8"
  9038. "\x23\x2e\x05\xc7\xc9\xc4\x46\x1f"
  9039. "\xe1\x9e\x49\x20\x23\x24\x4d\x7e"
  9040. "\x29\x65\xff\xf4\xb6\xfd\x1a\x85"
  9041. "\xc4\x16\xec\xfc\xea\x7b\xd6\x2c"
  9042. "\x43\xf8\xb7\xbf\x79\xc0\x85\xcd"
  9043. "\xef\xe1\x98\xd3\xa5\xf7\x90\x8c"
  9044. "\xe9\x7f\x80\x6b\xd2\xac\x4c\x30"
  9045. "\xa7\xc6\x61\x6c\xd2\xf9\x2c\xff"
  9046. "\x30\xbc\x22\x81\x7d\x93\x12\xe4"
  9047. "\x0a\xcd\xaf\xdd\xe8\xab\x0a\x1e"
  9048. "\x13\xa4\x27\xc3\x5f\xf7\x4b\xbb"
  9049. "\x37\x09\x4b\x91\x6f\x92\x4f\xaf"
  9050. "\x52\xee\xdf\xef\x09\x6f\xf7\x5c"
  9051. "\x6e\x12\x17\x72\x63\x57\xc7\xba"
  9052. "\x3b\x6b\x38\x32\x73\x1b\x9c\x80"
  9053. "\xc1\x7a\xc6\xcf\xcd\x35\xc0\x6b"
  9054. "\x31\x1a\x6b\xe9\xd8\x2c\x29\x3f"
  9055. "\x96\xfb\xb6\xcd\x13\x91\x3b\xc2"
  9056. "\xd2\xa3\x31\x8d\xa4\xcd\x57\xcd"
  9057. "\x13\x3d\x64\xfd\x06\xce\xe6\xdc"
  9058. "\x0c\x24\x43\x31\x40\x57\xf1\x72"
  9059. "\x17\xe3\x3a\x63\x6d\x35\xcf\x5d"
  9060. "\x97\x40\x59\xdd\xf7\x3c\x02\xf7"
  9061. "\x1c\x7e\x05\xbb\xa9\x0d\x01\xb1"
  9062. "\x8e\xc0\x30\xa9\x53\x24\xc9\x89"
  9063. "\x84\x6d\xaa\xd0\xcd\x91\xc2\x4d"
  9064. "\x91\xb0\x89\xe2\xbf\x83\x44\xaa"
  9065. "\x28\x72\x23\xa0\xc2\xad\xad\x1c"
  9066. "\xfc\x3f\x09\x7a\x0b\xdc\xc5\x1b"
  9067. "\x87\x13\xc6\x5b\x59\x8d\xf2\xc8"
  9068. "\xaf\xdf\x11\x95",
  9069. .rlen = 4100,
  9070. .np = 2,
  9071. .tap = { 4064, 36 },
  9072. },
  9073. };
  9074. /*
  9075. * CTS (Cipher Text Stealing) mode tests
  9076. */
  9077. #define CTS_MODE_ENC_TEST_VECTORS 6
  9078. #define CTS_MODE_DEC_TEST_VECTORS 6
  9079. static struct cipher_testvec cts_mode_enc_tv_template[] = {
  9080. { /* from rfc3962 */
  9081. .klen = 16,
  9082. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9083. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9084. .ilen = 17,
  9085. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9086. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9087. "\x20",
  9088. .rlen = 17,
  9089. .result = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
  9090. "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
  9091. "\x97",
  9092. }, {
  9093. .klen = 16,
  9094. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9095. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9096. .ilen = 31,
  9097. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9098. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9099. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9100. "\x20\x47\x61\x75\x27\x73\x20",
  9101. .rlen = 31,
  9102. .result = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
  9103. "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
  9104. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9105. "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
  9106. }, {
  9107. .klen = 16,
  9108. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9109. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9110. .ilen = 32,
  9111. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9112. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9113. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9114. "\x20\x47\x61\x75\x27\x73\x20\x43",
  9115. .rlen = 32,
  9116. .result = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  9117. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  9118. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9119. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
  9120. }, {
  9121. .klen = 16,
  9122. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9123. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9124. .ilen = 47,
  9125. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9126. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9127. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9128. "\x20\x47\x61\x75\x27\x73\x20\x43"
  9129. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  9130. "\x70\x6c\x65\x61\x73\x65\x2c",
  9131. .rlen = 47,
  9132. .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9133. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  9134. "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
  9135. "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
  9136. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  9137. "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
  9138. }, {
  9139. .klen = 16,
  9140. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9141. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9142. .ilen = 48,
  9143. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9144. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9145. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9146. "\x20\x47\x61\x75\x27\x73\x20\x43"
  9147. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  9148. "\x70\x6c\x65\x61\x73\x65\x2c\x20",
  9149. .rlen = 48,
  9150. .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9151. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  9152. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  9153. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
  9154. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  9155. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
  9156. }, {
  9157. .klen = 16,
  9158. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9159. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9160. .ilen = 64,
  9161. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9162. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9163. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9164. "\x20\x47\x61\x75\x27\x73\x20\x43"
  9165. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  9166. "\x70\x6c\x65\x61\x73\x65\x2c\x20"
  9167. "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
  9168. "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
  9169. .rlen = 64,
  9170. .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9171. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  9172. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  9173. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  9174. "\x48\x07\xef\xe8\x36\xee\x89\xa5"
  9175. "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
  9176. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  9177. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
  9178. }
  9179. };
  9180. static struct cipher_testvec cts_mode_dec_tv_template[] = {
  9181. { /* from rfc3962 */
  9182. .klen = 16,
  9183. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9184. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9185. .rlen = 17,
  9186. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9187. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9188. "\x20",
  9189. .ilen = 17,
  9190. .input = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
  9191. "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
  9192. "\x97",
  9193. }, {
  9194. .klen = 16,
  9195. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9196. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9197. .rlen = 31,
  9198. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9199. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9200. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9201. "\x20\x47\x61\x75\x27\x73\x20",
  9202. .ilen = 31,
  9203. .input = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
  9204. "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
  9205. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9206. "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
  9207. }, {
  9208. .klen = 16,
  9209. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9210. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9211. .rlen = 32,
  9212. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9213. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9214. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9215. "\x20\x47\x61\x75\x27\x73\x20\x43",
  9216. .ilen = 32,
  9217. .input = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  9218. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  9219. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9220. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
  9221. }, {
  9222. .klen = 16,
  9223. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9224. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9225. .rlen = 47,
  9226. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9227. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9228. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9229. "\x20\x47\x61\x75\x27\x73\x20\x43"
  9230. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  9231. "\x70\x6c\x65\x61\x73\x65\x2c",
  9232. .ilen = 47,
  9233. .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9234. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  9235. "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
  9236. "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
  9237. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  9238. "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
  9239. }, {
  9240. .klen = 16,
  9241. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9242. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9243. .rlen = 48,
  9244. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9245. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9246. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9247. "\x20\x47\x61\x75\x27\x73\x20\x43"
  9248. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  9249. "\x70\x6c\x65\x61\x73\x65\x2c\x20",
  9250. .ilen = 48,
  9251. .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9252. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  9253. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  9254. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
  9255. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  9256. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
  9257. }, {
  9258. .klen = 16,
  9259. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9260. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9261. .rlen = 64,
  9262. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9263. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9264. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9265. "\x20\x47\x61\x75\x27\x73\x20\x43"
  9266. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  9267. "\x70\x6c\x65\x61\x73\x65\x2c\x20"
  9268. "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
  9269. "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
  9270. .ilen = 64,
  9271. .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9272. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  9273. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  9274. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  9275. "\x48\x07\xef\xe8\x36\xee\x89\xa5"
  9276. "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
  9277. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  9278. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
  9279. }
  9280. };
  9281. /*
  9282. * Compression stuff.
  9283. */
  9284. #define COMP_BUF_SIZE 512
  9285. struct comp_testvec {
  9286. int inlen, outlen;
  9287. char input[COMP_BUF_SIZE];
  9288. char output[COMP_BUF_SIZE];
  9289. };
  9290. struct pcomp_testvec {
  9291. void *params;
  9292. unsigned int paramsize;
  9293. int inlen, outlen;
  9294. char input[COMP_BUF_SIZE];
  9295. char output[COMP_BUF_SIZE];
  9296. };
  9297. /*
  9298. * Deflate test vectors (null-terminated strings).
  9299. * Params: winbits=-11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL.
  9300. */
  9301. #define DEFLATE_COMP_TEST_VECTORS 2
  9302. #define DEFLATE_DECOMP_TEST_VECTORS 2
  9303. static struct comp_testvec deflate_comp_tv_template[] = {
  9304. {
  9305. .inlen = 70,
  9306. .outlen = 38,
  9307. .input = "Join us now and share the software "
  9308. "Join us now and share the software ",
  9309. .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  9310. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  9311. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  9312. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  9313. "\x71\xbc\x08\x2b\x01\x00",
  9314. }, {
  9315. .inlen = 191,
  9316. .outlen = 122,
  9317. .input = "This document describes a compression method based on the DEFLATE"
  9318. "compression algorithm. This document defines the application of "
  9319. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  9320. .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  9321. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  9322. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  9323. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  9324. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  9325. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  9326. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  9327. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  9328. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  9329. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  9330. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  9331. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  9332. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  9333. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  9334. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  9335. "\xfa\x02",
  9336. },
  9337. };
  9338. static struct comp_testvec deflate_decomp_tv_template[] = {
  9339. {
  9340. .inlen = 122,
  9341. .outlen = 191,
  9342. .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  9343. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  9344. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  9345. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  9346. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  9347. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  9348. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  9349. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  9350. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  9351. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  9352. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  9353. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  9354. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  9355. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  9356. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  9357. "\xfa\x02",
  9358. .output = "This document describes a compression method based on the DEFLATE"
  9359. "compression algorithm. This document defines the application of "
  9360. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  9361. }, {
  9362. .inlen = 38,
  9363. .outlen = 70,
  9364. .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  9365. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  9366. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  9367. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  9368. "\x71\xbc\x08\x2b\x01\x00",
  9369. .output = "Join us now and share the software "
  9370. "Join us now and share the software ",
  9371. },
  9372. };
  9373. #define ZLIB_COMP_TEST_VECTORS 2
  9374. #define ZLIB_DECOMP_TEST_VECTORS 2
  9375. static const struct {
  9376. struct nlattr nla;
  9377. int val;
  9378. } deflate_comp_params[] = {
  9379. {
  9380. .nla = {
  9381. .nla_len = NLA_HDRLEN + sizeof(int),
  9382. .nla_type = ZLIB_COMP_LEVEL,
  9383. },
  9384. .val = Z_DEFAULT_COMPRESSION,
  9385. }, {
  9386. .nla = {
  9387. .nla_len = NLA_HDRLEN + sizeof(int),
  9388. .nla_type = ZLIB_COMP_METHOD,
  9389. },
  9390. .val = Z_DEFLATED,
  9391. }, {
  9392. .nla = {
  9393. .nla_len = NLA_HDRLEN + sizeof(int),
  9394. .nla_type = ZLIB_COMP_WINDOWBITS,
  9395. },
  9396. .val = -11,
  9397. }, {
  9398. .nla = {
  9399. .nla_len = NLA_HDRLEN + sizeof(int),
  9400. .nla_type = ZLIB_COMP_MEMLEVEL,
  9401. },
  9402. .val = MAX_MEM_LEVEL,
  9403. }, {
  9404. .nla = {
  9405. .nla_len = NLA_HDRLEN + sizeof(int),
  9406. .nla_type = ZLIB_COMP_STRATEGY,
  9407. },
  9408. .val = Z_DEFAULT_STRATEGY,
  9409. }
  9410. };
  9411. static const struct {
  9412. struct nlattr nla;
  9413. int val;
  9414. } deflate_decomp_params[] = {
  9415. {
  9416. .nla = {
  9417. .nla_len = NLA_HDRLEN + sizeof(int),
  9418. .nla_type = ZLIB_DECOMP_WINDOWBITS,
  9419. },
  9420. .val = -11,
  9421. }
  9422. };
  9423. static struct pcomp_testvec zlib_comp_tv_template[] = {
  9424. {
  9425. .params = &deflate_comp_params,
  9426. .paramsize = sizeof(deflate_comp_params),
  9427. .inlen = 70,
  9428. .outlen = 38,
  9429. .input = "Join us now and share the software "
  9430. "Join us now and share the software ",
  9431. .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  9432. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  9433. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  9434. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  9435. "\x71\xbc\x08\x2b\x01\x00",
  9436. }, {
  9437. .params = &deflate_comp_params,
  9438. .paramsize = sizeof(deflate_comp_params),
  9439. .inlen = 191,
  9440. .outlen = 122,
  9441. .input = "This document describes a compression method based on the DEFLATE"
  9442. "compression algorithm. This document defines the application of "
  9443. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  9444. .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  9445. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  9446. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  9447. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  9448. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  9449. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  9450. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  9451. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  9452. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  9453. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  9454. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  9455. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  9456. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  9457. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  9458. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  9459. "\xfa\x02",
  9460. },
  9461. };
  9462. static struct pcomp_testvec zlib_decomp_tv_template[] = {
  9463. {
  9464. .params = &deflate_decomp_params,
  9465. .paramsize = sizeof(deflate_decomp_params),
  9466. .inlen = 122,
  9467. .outlen = 191,
  9468. .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  9469. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  9470. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  9471. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  9472. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  9473. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  9474. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  9475. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  9476. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  9477. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  9478. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  9479. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  9480. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  9481. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  9482. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  9483. "\xfa\x02",
  9484. .output = "This document describes a compression method based on the DEFLATE"
  9485. "compression algorithm. This document defines the application of "
  9486. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  9487. }, {
  9488. .params = &deflate_decomp_params,
  9489. .paramsize = sizeof(deflate_decomp_params),
  9490. .inlen = 38,
  9491. .outlen = 70,
  9492. .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  9493. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  9494. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  9495. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  9496. "\x71\xbc\x08\x2b\x01\x00",
  9497. .output = "Join us now and share the software "
  9498. "Join us now and share the software ",
  9499. },
  9500. };
  9501. /*
  9502. * LZO test vectors (null-terminated strings).
  9503. */
  9504. #define LZO_COMP_TEST_VECTORS 2
  9505. #define LZO_DECOMP_TEST_VECTORS 2
  9506. static struct comp_testvec lzo_comp_tv_template[] = {
  9507. {
  9508. .inlen = 70,
  9509. .outlen = 46,
  9510. .input = "Join us now and share the software "
  9511. "Join us now and share the software ",
  9512. .output = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
  9513. "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
  9514. "\x64\x20\x73\x68\x61\x72\x65\x20"
  9515. "\x74\x68\x65\x20\x73\x6f\x66\x74"
  9516. "\x77\x70\x01\x01\x4a\x6f\x69\x6e"
  9517. "\x3d\x88\x00\x11\x00\x00",
  9518. }, {
  9519. .inlen = 159,
  9520. .outlen = 133,
  9521. .input = "This document describes a compression method based on the LZO "
  9522. "compression algorithm. This document defines the application of "
  9523. "the LZO algorithm used in UBIFS.",
  9524. .output = "\x00\x2b\x54\x68\x69\x73\x20\x64"
  9525. "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
  9526. "\x64\x65\x73\x63\x72\x69\x62\x65"
  9527. "\x73\x20\x61\x20\x63\x6f\x6d\x70"
  9528. "\x72\x65\x73\x73\x69\x6f\x6e\x20"
  9529. "\x6d\x65\x74\x68\x6f\x64\x20\x62"
  9530. "\x61\x73\x65\x64\x20\x6f\x6e\x20"
  9531. "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
  9532. "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
  9533. "\x69\x74\x68\x6d\x2e\x20\x20\x54"
  9534. "\x68\x69\x73\x2a\x54\x01\x02\x66"
  9535. "\x69\x6e\x65\x73\x94\x06\x05\x61"
  9536. "\x70\x70\x6c\x69\x63\x61\x74\x76"
  9537. "\x0a\x6f\x66\x88\x02\x60\x09\x27"
  9538. "\xf0\x00\x0c\x20\x75\x73\x65\x64"
  9539. "\x20\x69\x6e\x20\x55\x42\x49\x46"
  9540. "\x53\x2e\x11\x00\x00",
  9541. },
  9542. };
  9543. static struct comp_testvec lzo_decomp_tv_template[] = {
  9544. {
  9545. .inlen = 133,
  9546. .outlen = 159,
  9547. .input = "\x00\x2b\x54\x68\x69\x73\x20\x64"
  9548. "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
  9549. "\x64\x65\x73\x63\x72\x69\x62\x65"
  9550. "\x73\x20\x61\x20\x63\x6f\x6d\x70"
  9551. "\x72\x65\x73\x73\x69\x6f\x6e\x20"
  9552. "\x6d\x65\x74\x68\x6f\x64\x20\x62"
  9553. "\x61\x73\x65\x64\x20\x6f\x6e\x20"
  9554. "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
  9555. "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
  9556. "\x69\x74\x68\x6d\x2e\x20\x20\x54"
  9557. "\x68\x69\x73\x2a\x54\x01\x02\x66"
  9558. "\x69\x6e\x65\x73\x94\x06\x05\x61"
  9559. "\x70\x70\x6c\x69\x63\x61\x74\x76"
  9560. "\x0a\x6f\x66\x88\x02\x60\x09\x27"
  9561. "\xf0\x00\x0c\x20\x75\x73\x65\x64"
  9562. "\x20\x69\x6e\x20\x55\x42\x49\x46"
  9563. "\x53\x2e\x11\x00\x00",
  9564. .output = "This document describes a compression method based on the LZO "
  9565. "compression algorithm. This document defines the application of "
  9566. "the LZO algorithm used in UBIFS.",
  9567. }, {
  9568. .inlen = 46,
  9569. .outlen = 70,
  9570. .input = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
  9571. "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
  9572. "\x64\x20\x73\x68\x61\x72\x65\x20"
  9573. "\x74\x68\x65\x20\x73\x6f\x66\x74"
  9574. "\x77\x70\x01\x01\x4a\x6f\x69\x6e"
  9575. "\x3d\x88\x00\x11\x00\x00",
  9576. .output = "Join us now and share the software "
  9577. "Join us now and share the software ",
  9578. },
  9579. };
  9580. /*
  9581. * Michael MIC test vectors from IEEE 802.11i
  9582. */
  9583. #define MICHAEL_MIC_TEST_VECTORS 6
  9584. static struct hash_testvec michael_mic_tv_template[] = {
  9585. {
  9586. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  9587. .ksize = 8,
  9588. .plaintext = zeroed_string,
  9589. .psize = 0,
  9590. .digest = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
  9591. },
  9592. {
  9593. .key = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
  9594. .ksize = 8,
  9595. .plaintext = "M",
  9596. .psize = 1,
  9597. .digest = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
  9598. },
  9599. {
  9600. .key = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
  9601. .ksize = 8,
  9602. .plaintext = "Mi",
  9603. .psize = 2,
  9604. .digest = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
  9605. },
  9606. {
  9607. .key = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
  9608. .ksize = 8,
  9609. .plaintext = "Mic",
  9610. .psize = 3,
  9611. .digest = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
  9612. },
  9613. {
  9614. .key = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
  9615. .ksize = 8,
  9616. .plaintext = "Mich",
  9617. .psize = 4,
  9618. .digest = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
  9619. },
  9620. {
  9621. .key = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
  9622. .ksize = 8,
  9623. .plaintext = "Michael",
  9624. .psize = 7,
  9625. .digest = "\x0a\x94\x2b\x12\x4e\xca\xa5\x46",
  9626. }
  9627. };
  9628. /*
  9629. * CRC32C test vectors
  9630. */
  9631. #define CRC32C_TEST_VECTORS 14
  9632. static struct hash_testvec crc32c_tv_template[] = {
  9633. {
  9634. .psize = 0,
  9635. .digest = "\x00\x00\x00\x00",
  9636. },
  9637. {
  9638. .key = "\x87\xa9\xcb\xed",
  9639. .ksize = 4,
  9640. .psize = 0,
  9641. .digest = "\x78\x56\x34\x12",
  9642. },
  9643. {
  9644. .key = "\xff\xff\xff\xff",
  9645. .ksize = 4,
  9646. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  9647. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  9648. "\x11\x12\x13\x14\x15\x16\x17\x18"
  9649. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  9650. "\x21\x22\x23\x24\x25\x26\x27\x28",
  9651. .psize = 40,
  9652. .digest = "\x7f\x15\x2c\x0e",
  9653. },
  9654. {
  9655. .key = "\xff\xff\xff\xff",
  9656. .ksize = 4,
  9657. .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  9658. "\x31\x32\x33\x34\x35\x36\x37\x38"
  9659. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  9660. "\x41\x42\x43\x44\x45\x46\x47\x48"
  9661. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
  9662. .psize = 40,
  9663. .digest = "\xf6\xeb\x80\xe9",
  9664. },
  9665. {
  9666. .key = "\xff\xff\xff\xff",
  9667. .ksize = 4,
  9668. .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
  9669. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  9670. "\x61\x62\x63\x64\x65\x66\x67\x68"
  9671. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  9672. "\x71\x72\x73\x74\x75\x76\x77\x78",
  9673. .psize = 40,
  9674. .digest = "\xed\xbd\x74\xde",
  9675. },
  9676. {
  9677. .key = "\xff\xff\xff\xff",
  9678. .ksize = 4,
  9679. .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  9680. "\x81\x82\x83\x84\x85\x86\x87\x88"
  9681. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  9682. "\x91\x92\x93\x94\x95\x96\x97\x98"
  9683. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
  9684. .psize = 40,
  9685. .digest = "\x62\xc8\x79\xd5",
  9686. },
  9687. {
  9688. .key = "\xff\xff\xff\xff",
  9689. .ksize = 4,
  9690. .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  9691. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  9692. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  9693. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  9694. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
  9695. .psize = 40,
  9696. .digest = "\xd0\x9a\x97\xba",
  9697. },
  9698. {
  9699. .key = "\xff\xff\xff\xff",
  9700. .ksize = 4,
  9701. .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  9702. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  9703. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  9704. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  9705. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  9706. .psize = 40,
  9707. .digest = "\x13\xd9\x29\x2b",
  9708. },
  9709. {
  9710. .key = "\x80\xea\xd3\xf1",
  9711. .ksize = 4,
  9712. .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  9713. "\x31\x32\x33\x34\x35\x36\x37\x38"
  9714. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  9715. "\x41\x42\x43\x44\x45\x46\x47\x48"
  9716. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
  9717. .psize = 40,
  9718. .digest = "\x0c\xb5\xe2\xa2",
  9719. },
  9720. {
  9721. .key = "\xf3\x4a\x1d\x5d",
  9722. .ksize = 4,
  9723. .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
  9724. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  9725. "\x61\x62\x63\x64\x65\x66\x67\x68"
  9726. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  9727. "\x71\x72\x73\x74\x75\x76\x77\x78",
  9728. .psize = 40,
  9729. .digest = "\xd1\x7f\xfb\xa6",
  9730. },
  9731. {
  9732. .key = "\x2e\x80\x04\x59",
  9733. .ksize = 4,
  9734. .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  9735. "\x81\x82\x83\x84\x85\x86\x87\x88"
  9736. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  9737. "\x91\x92\x93\x94\x95\x96\x97\x98"
  9738. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
  9739. .psize = 40,
  9740. .digest = "\x59\x33\xe6\x7a",
  9741. },
  9742. {
  9743. .key = "\xa6\xcc\x19\x85",
  9744. .ksize = 4,
  9745. .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  9746. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  9747. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  9748. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  9749. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
  9750. .psize = 40,
  9751. .digest = "\xbe\x03\x01\xd2",
  9752. },
  9753. {
  9754. .key = "\x41\xfc\xfe\x2d",
  9755. .ksize = 4,
  9756. .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  9757. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  9758. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  9759. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  9760. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  9761. .psize = 40,
  9762. .digest = "\x75\xd3\xc5\x24",
  9763. },
  9764. {
  9765. .key = "\xff\xff\xff\xff",
  9766. .ksize = 4,
  9767. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  9768. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  9769. "\x11\x12\x13\x14\x15\x16\x17\x18"
  9770. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  9771. "\x21\x22\x23\x24\x25\x26\x27\x28"
  9772. "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  9773. "\x31\x32\x33\x34\x35\x36\x37\x38"
  9774. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  9775. "\x41\x42\x43\x44\x45\x46\x47\x48"
  9776. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
  9777. "\x51\x52\x53\x54\x55\x56\x57\x58"
  9778. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  9779. "\x61\x62\x63\x64\x65\x66\x67\x68"
  9780. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  9781. "\x71\x72\x73\x74\x75\x76\x77\x78"
  9782. "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  9783. "\x81\x82\x83\x84\x85\x86\x87\x88"
  9784. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  9785. "\x91\x92\x93\x94\x95\x96\x97\x98"
  9786. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
  9787. "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  9788. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  9789. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  9790. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  9791. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
  9792. "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  9793. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  9794. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  9795. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  9796. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  9797. .psize = 240,
  9798. .digest = "\x75\xd3\xc5\x24",
  9799. .np = 2,
  9800. .tap = { 31, 209 }
  9801. },
  9802. };
  9803. #endif /* _CRYPTO_TESTMGR_H */