testmgr.h 309 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524
  1. /*
  2. * Algorithm testing framework and tests.
  3. *
  4. * Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
  5. * Copyright (c) 2002 Jean-Francois Dive <jef@linuxbe.org>
  6. * Copyright (c) 2007 Nokia Siemens Networks
  7. * Copyright (c) 2008 Herbert Xu <herbert@gondor.apana.org.au>
  8. *
  9. * This program is free software; you can redistribute it and/or modify it
  10. * under the terms of the GNU General Public License as published by the Free
  11. * Software Foundation; either version 2 of the License, or (at your option)
  12. * any later version.
  13. *
  14. */
  15. #ifndef _CRYPTO_TESTMGR_H
  16. #define _CRYPTO_TESTMGR_H
  17. #include <linux/netlink.h>
  18. #include <linux/zlib.h>
  19. #include <crypto/compress.h>
  20. #define MAX_DIGEST_SIZE 64
  21. #define MAX_TAP 8
  22. #define MAX_KEYLEN 56
  23. #define MAX_IVLEN 32
  24. struct hash_testvec {
  25. /* only used with keyed hash algorithms */
  26. char *key;
  27. char *plaintext;
  28. char *digest;
  29. unsigned char tap[MAX_TAP];
  30. unsigned char psize;
  31. unsigned char np;
  32. unsigned char ksize;
  33. };
  34. struct cipher_testvec {
  35. char *key;
  36. char *iv;
  37. char *input;
  38. char *result;
  39. unsigned short tap[MAX_TAP];
  40. int np;
  41. unsigned char fail;
  42. unsigned char wk; /* weak key flag */
  43. unsigned char klen;
  44. unsigned short ilen;
  45. unsigned short rlen;
  46. };
  47. struct aead_testvec {
  48. char *key;
  49. char *iv;
  50. char *input;
  51. char *assoc;
  52. char *result;
  53. unsigned char tap[MAX_TAP];
  54. unsigned char atap[MAX_TAP];
  55. int np;
  56. int anp;
  57. unsigned char fail;
  58. unsigned char novrfy; /* ccm dec verification failure expected */
  59. unsigned char wk; /* weak key flag */
  60. unsigned char klen;
  61. unsigned short ilen;
  62. unsigned short alen;
  63. unsigned short rlen;
  64. };
  65. struct cprng_testvec {
  66. char *key;
  67. char *dt;
  68. char *v;
  69. char *result;
  70. unsigned char klen;
  71. unsigned short dtlen;
  72. unsigned short vlen;
  73. unsigned short rlen;
  74. unsigned short loops;
  75. };
  76. static char zeroed_string[48];
  77. /*
  78. * MD4 test vectors from RFC1320
  79. */
  80. #define MD4_TEST_VECTORS 7
  81. static struct hash_testvec md4_tv_template [] = {
  82. {
  83. .plaintext = "",
  84. .digest = "\x31\xd6\xcf\xe0\xd1\x6a\xe9\x31"
  85. "\xb7\x3c\x59\xd7\xe0\xc0\x89\xc0",
  86. }, {
  87. .plaintext = "a",
  88. .psize = 1,
  89. .digest = "\xbd\xe5\x2c\xb3\x1d\xe3\x3e\x46"
  90. "\x24\x5e\x05\xfb\xdb\xd6\xfb\x24",
  91. }, {
  92. .plaintext = "abc",
  93. .psize = 3,
  94. .digest = "\xa4\x48\x01\x7a\xaf\x21\xd8\x52"
  95. "\x5f\xc1\x0a\xe8\x7a\xa6\x72\x9d",
  96. }, {
  97. .plaintext = "message digest",
  98. .psize = 14,
  99. .digest = "\xd9\x13\x0a\x81\x64\x54\x9f\xe8"
  100. "\x18\x87\x48\x06\xe1\xc7\x01\x4b",
  101. }, {
  102. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  103. .psize = 26,
  104. .digest = "\xd7\x9e\x1c\x30\x8a\xa5\xbb\xcd"
  105. "\xee\xa8\xed\x63\xdf\x41\x2d\xa9",
  106. .np = 2,
  107. .tap = { 13, 13 },
  108. }, {
  109. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
  110. .psize = 62,
  111. .digest = "\x04\x3f\x85\x82\xf2\x41\xdb\x35"
  112. "\x1c\xe6\x27\xe1\x53\xe7\xf0\xe4",
  113. }, {
  114. .plaintext = "123456789012345678901234567890123456789012345678901234567890123"
  115. "45678901234567890",
  116. .psize = 80,
  117. .digest = "\xe3\x3b\x4d\xdc\x9c\x38\xf2\x19"
  118. "\x9c\x3e\x7b\x16\x4f\xcc\x05\x36",
  119. },
  120. };
  121. /*
  122. * MD5 test vectors from RFC1321
  123. */
  124. #define MD5_TEST_VECTORS 7
  125. static struct hash_testvec md5_tv_template[] = {
  126. {
  127. .digest = "\xd4\x1d\x8c\xd9\x8f\x00\xb2\x04"
  128. "\xe9\x80\x09\x98\xec\xf8\x42\x7e",
  129. }, {
  130. .plaintext = "a",
  131. .psize = 1,
  132. .digest = "\x0c\xc1\x75\xb9\xc0\xf1\xb6\xa8"
  133. "\x31\xc3\x99\xe2\x69\x77\x26\x61",
  134. }, {
  135. .plaintext = "abc",
  136. .psize = 3,
  137. .digest = "\x90\x01\x50\x98\x3c\xd2\x4f\xb0"
  138. "\xd6\x96\x3f\x7d\x28\xe1\x7f\x72",
  139. }, {
  140. .plaintext = "message digest",
  141. .psize = 14,
  142. .digest = "\xf9\x6b\x69\x7d\x7c\xb7\x93\x8d"
  143. "\x52\x5a\x2f\x31\xaa\xf1\x61\xd0",
  144. }, {
  145. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  146. .psize = 26,
  147. .digest = "\xc3\xfc\xd3\xd7\x61\x92\xe4\x00"
  148. "\x7d\xfb\x49\x6c\xca\x67\xe1\x3b",
  149. .np = 2,
  150. .tap = {13, 13}
  151. }, {
  152. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
  153. .psize = 62,
  154. .digest = "\xd1\x74\xab\x98\xd2\x77\xd9\xf5"
  155. "\xa5\x61\x1c\x2c\x9f\x41\x9d\x9f",
  156. }, {
  157. .plaintext = "12345678901234567890123456789012345678901234567890123456789012"
  158. "345678901234567890",
  159. .psize = 80,
  160. .digest = "\x57\xed\xf4\xa2\x2b\xe3\xc9\x55"
  161. "\xac\x49\xda\x2e\x21\x07\xb6\x7a",
  162. }
  163. };
  164. /*
  165. * RIPEMD-128 test vectors from ISO/IEC 10118-3:2004(E)
  166. */
  167. #define RMD128_TEST_VECTORS 10
  168. static struct hash_testvec rmd128_tv_template[] = {
  169. {
  170. .digest = "\xcd\xf2\x62\x13\xa1\x50\xdc\x3e"
  171. "\xcb\x61\x0f\x18\xf6\xb3\x8b\x46",
  172. }, {
  173. .plaintext = "a",
  174. .psize = 1,
  175. .digest = "\x86\xbe\x7a\xfa\x33\x9d\x0f\xc7"
  176. "\xcf\xc7\x85\xe7\x2f\x57\x8d\x33",
  177. }, {
  178. .plaintext = "abc",
  179. .psize = 3,
  180. .digest = "\xc1\x4a\x12\x19\x9c\x66\xe4\xba"
  181. "\x84\x63\x6b\x0f\x69\x14\x4c\x77",
  182. }, {
  183. .plaintext = "message digest",
  184. .psize = 14,
  185. .digest = "\x9e\x32\x7b\x3d\x6e\x52\x30\x62"
  186. "\xaf\xc1\x13\x2d\x7d\xf9\xd1\xb8",
  187. }, {
  188. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  189. .psize = 26,
  190. .digest = "\xfd\x2a\xa6\x07\xf7\x1d\xc8\xf5"
  191. "\x10\x71\x49\x22\xb3\x71\x83\x4e",
  192. }, {
  193. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
  194. "fghijklmnopqrstuvwxyz0123456789",
  195. .psize = 62,
  196. .digest = "\xd1\xe9\x59\xeb\x17\x9c\x91\x1f"
  197. "\xae\xa4\x62\x4c\x60\xc5\xc7\x02",
  198. }, {
  199. .plaintext = "1234567890123456789012345678901234567890"
  200. "1234567890123456789012345678901234567890",
  201. .psize = 80,
  202. .digest = "\x3f\x45\xef\x19\x47\x32\xc2\xdb"
  203. "\xb2\xc4\xa2\xc7\x69\x79\x5f\xa3",
  204. }, {
  205. .plaintext = "abcdbcdecdefdefgefghfghighij"
  206. "hijkijkljklmklmnlmnomnopnopq",
  207. .psize = 56,
  208. .digest = "\xa1\xaa\x06\x89\xd0\xfa\xfa\x2d"
  209. "\xdc\x22\xe8\x8b\x49\x13\x3a\x06",
  210. .np = 2,
  211. .tap = { 28, 28 },
  212. }, {
  213. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
  214. "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
  215. "lmnopqrsmnopqrstnopqrstu",
  216. .psize = 112,
  217. .digest = "\xd4\xec\xc9\x13\xe1\xdf\x77\x6b"
  218. "\xf4\x8d\xe9\xd5\x5b\x1f\x25\x46",
  219. }, {
  220. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  221. .psize = 32,
  222. .digest = "\x13\xfc\x13\xe8\xef\xff\x34\x7d"
  223. "\xe1\x93\xff\x46\xdb\xac\xcf\xd4",
  224. }
  225. };
  226. /*
  227. * RIPEMD-160 test vectors from ISO/IEC 10118-3:2004(E)
  228. */
  229. #define RMD160_TEST_VECTORS 10
  230. static struct hash_testvec rmd160_tv_template[] = {
  231. {
  232. .digest = "\x9c\x11\x85\xa5\xc5\xe9\xfc\x54\x61\x28"
  233. "\x08\x97\x7e\xe8\xf5\x48\xb2\x25\x8d\x31",
  234. }, {
  235. .plaintext = "a",
  236. .psize = 1,
  237. .digest = "\x0b\xdc\x9d\x2d\x25\x6b\x3e\xe9\xda\xae"
  238. "\x34\x7b\xe6\xf4\xdc\x83\x5a\x46\x7f\xfe",
  239. }, {
  240. .plaintext = "abc",
  241. .psize = 3,
  242. .digest = "\x8e\xb2\x08\xf7\xe0\x5d\x98\x7a\x9b\x04"
  243. "\x4a\x8e\x98\xc6\xb0\x87\xf1\x5a\x0b\xfc",
  244. }, {
  245. .plaintext = "message digest",
  246. .psize = 14,
  247. .digest = "\x5d\x06\x89\xef\x49\xd2\xfa\xe5\x72\xb8"
  248. "\x81\xb1\x23\xa8\x5f\xfa\x21\x59\x5f\x36",
  249. }, {
  250. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  251. .psize = 26,
  252. .digest = "\xf7\x1c\x27\x10\x9c\x69\x2c\x1b\x56\xbb"
  253. "\xdc\xeb\x5b\x9d\x28\x65\xb3\x70\x8d\xbc",
  254. }, {
  255. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
  256. "fghijklmnopqrstuvwxyz0123456789",
  257. .psize = 62,
  258. .digest = "\xb0\xe2\x0b\x6e\x31\x16\x64\x02\x86\xed"
  259. "\x3a\x87\xa5\x71\x30\x79\xb2\x1f\x51\x89",
  260. }, {
  261. .plaintext = "1234567890123456789012345678901234567890"
  262. "1234567890123456789012345678901234567890",
  263. .psize = 80,
  264. .digest = "\x9b\x75\x2e\x45\x57\x3d\x4b\x39\xf4\xdb"
  265. "\xd3\x32\x3c\xab\x82\xbf\x63\x32\x6b\xfb",
  266. }, {
  267. .plaintext = "abcdbcdecdefdefgefghfghighij"
  268. "hijkijkljklmklmnlmnomnopnopq",
  269. .psize = 56,
  270. .digest = "\x12\xa0\x53\x38\x4a\x9c\x0c\x88\xe4\x05"
  271. "\xa0\x6c\x27\xdc\xf4\x9a\xda\x62\xeb\x2b",
  272. .np = 2,
  273. .tap = { 28, 28 },
  274. }, {
  275. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
  276. "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
  277. "lmnopqrsmnopqrstnopqrstu",
  278. .psize = 112,
  279. .digest = "\x6f\x3f\xa3\x9b\x6b\x50\x3c\x38\x4f\x91"
  280. "\x9a\x49\xa7\xaa\x5c\x2c\x08\xbd\xfb\x45",
  281. }, {
  282. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  283. .psize = 32,
  284. .digest = "\x94\xc2\x64\x11\x54\x04\xe6\x33\x79\x0d"
  285. "\xfc\xc8\x7b\x58\x7d\x36\x77\x06\x7d\x9f",
  286. }
  287. };
  288. /*
  289. * RIPEMD-256 test vectors
  290. */
  291. #define RMD256_TEST_VECTORS 8
  292. static struct hash_testvec rmd256_tv_template[] = {
  293. {
  294. .digest = "\x02\xba\x4c\x4e\x5f\x8e\xcd\x18"
  295. "\x77\xfc\x52\xd6\x4d\x30\xe3\x7a"
  296. "\x2d\x97\x74\xfb\x1e\x5d\x02\x63"
  297. "\x80\xae\x01\x68\xe3\xc5\x52\x2d",
  298. }, {
  299. .plaintext = "a",
  300. .psize = 1,
  301. .digest = "\xf9\x33\x3e\x45\xd8\x57\xf5\xd9"
  302. "\x0a\x91\xba\xb7\x0a\x1e\xba\x0c"
  303. "\xfb\x1b\xe4\xb0\x78\x3c\x9a\xcf"
  304. "\xcd\x88\x3a\x91\x34\x69\x29\x25",
  305. }, {
  306. .plaintext = "abc",
  307. .psize = 3,
  308. .digest = "\xaf\xbd\x6e\x22\x8b\x9d\x8c\xbb"
  309. "\xce\xf5\xca\x2d\x03\xe6\xdb\xa1"
  310. "\x0a\xc0\xbc\x7d\xcb\xe4\x68\x0e"
  311. "\x1e\x42\xd2\xe9\x75\x45\x9b\x65",
  312. }, {
  313. .plaintext = "message digest",
  314. .psize = 14,
  315. .digest = "\x87\xe9\x71\x75\x9a\x1c\xe4\x7a"
  316. "\x51\x4d\x5c\x91\x4c\x39\x2c\x90"
  317. "\x18\xc7\xc4\x6b\xc1\x44\x65\x55"
  318. "\x4a\xfc\xdf\x54\xa5\x07\x0c\x0e",
  319. }, {
  320. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  321. .psize = 26,
  322. .digest = "\x64\x9d\x30\x34\x75\x1e\xa2\x16"
  323. "\x77\x6b\xf9\xa1\x8a\xcc\x81\xbc"
  324. "\x78\x96\x11\x8a\x51\x97\x96\x87"
  325. "\x82\xdd\x1f\xd9\x7d\x8d\x51\x33",
  326. }, {
  327. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
  328. "fghijklmnopqrstuvwxyz0123456789",
  329. .psize = 62,
  330. .digest = "\x57\x40\xa4\x08\xac\x16\xb7\x20"
  331. "\xb8\x44\x24\xae\x93\x1c\xbb\x1f"
  332. "\xe3\x63\xd1\xd0\xbf\x40\x17\xf1"
  333. "\xa8\x9f\x7e\xa6\xde\x77\xa0\xb8",
  334. }, {
  335. .plaintext = "1234567890123456789012345678901234567890"
  336. "1234567890123456789012345678901234567890",
  337. .psize = 80,
  338. .digest = "\x06\xfd\xcc\x7a\x40\x95\x48\xaa"
  339. "\xf9\x13\x68\xc0\x6a\x62\x75\xb5"
  340. "\x53\xe3\xf0\x99\xbf\x0e\xa4\xed"
  341. "\xfd\x67\x78\xdf\x89\xa8\x90\xdd",
  342. }, {
  343. .plaintext = "abcdbcdecdefdefgefghfghighij"
  344. "hijkijkljklmklmnlmnomnopnopq",
  345. .psize = 56,
  346. .digest = "\x38\x43\x04\x55\x83\xaa\xc6\xc8"
  347. "\xc8\xd9\x12\x85\x73\xe7\xa9\x80"
  348. "\x9a\xfb\x2a\x0f\x34\xcc\xc3\x6e"
  349. "\xa9\xe7\x2f\x16\xf6\x36\x8e\x3f",
  350. .np = 2,
  351. .tap = { 28, 28 },
  352. }
  353. };
  354. /*
  355. * RIPEMD-320 test vectors
  356. */
  357. #define RMD320_TEST_VECTORS 8
  358. static struct hash_testvec rmd320_tv_template[] = {
  359. {
  360. .digest = "\x22\xd6\x5d\x56\x61\x53\x6c\xdc\x75\xc1"
  361. "\xfd\xf5\xc6\xde\x7b\x41\xb9\xf2\x73\x25"
  362. "\xeb\xc6\x1e\x85\x57\x17\x7d\x70\x5a\x0e"
  363. "\xc8\x80\x15\x1c\x3a\x32\xa0\x08\x99\xb8",
  364. }, {
  365. .plaintext = "a",
  366. .psize = 1,
  367. .digest = "\xce\x78\x85\x06\x38\xf9\x26\x58\xa5\xa5"
  368. "\x85\x09\x75\x79\x92\x6d\xda\x66\x7a\x57"
  369. "\x16\x56\x2c\xfc\xf6\xfb\xe7\x7f\x63\x54"
  370. "\x2f\x99\xb0\x47\x05\xd6\x97\x0d\xff\x5d",
  371. }, {
  372. .plaintext = "abc",
  373. .psize = 3,
  374. .digest = "\xde\x4c\x01\xb3\x05\x4f\x89\x30\xa7\x9d"
  375. "\x09\xae\x73\x8e\x92\x30\x1e\x5a\x17\x08"
  376. "\x5b\xef\xfd\xc1\xb8\xd1\x16\x71\x3e\x74"
  377. "\xf8\x2f\xa9\x42\xd6\x4c\xdb\xc4\x68\x2d",
  378. }, {
  379. .plaintext = "message digest",
  380. .psize = 14,
  381. .digest = "\x3a\x8e\x28\x50\x2e\xd4\x5d\x42\x2f\x68"
  382. "\x84\x4f\x9d\xd3\x16\xe7\xb9\x85\x33\xfa"
  383. "\x3f\x2a\x91\xd2\x9f\x84\xd4\x25\xc8\x8d"
  384. "\x6b\x4e\xff\x72\x7d\xf6\x6a\x7c\x01\x97",
  385. }, {
  386. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  387. .psize = 26,
  388. .digest = "\xca\xbd\xb1\x81\x0b\x92\x47\x0a\x20\x93"
  389. "\xaa\x6b\xce\x05\x95\x2c\x28\x34\x8c\xf4"
  390. "\x3f\xf6\x08\x41\x97\x51\x66\xbb\x40\xed"
  391. "\x23\x40\x04\xb8\x82\x44\x63\xe6\xb0\x09",
  392. }, {
  393. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
  394. "fghijklmnopqrstuvwxyz0123456789",
  395. .psize = 62,
  396. .digest = "\xed\x54\x49\x40\xc8\x6d\x67\xf2\x50\xd2"
  397. "\x32\xc3\x0b\x7b\x3e\x57\x70\xe0\xc6\x0c"
  398. "\x8c\xb9\xa4\xca\xfe\x3b\x11\x38\x8a\xf9"
  399. "\x92\x0e\x1b\x99\x23\x0b\x84\x3c\x86\xa4",
  400. }, {
  401. .plaintext = "1234567890123456789012345678901234567890"
  402. "1234567890123456789012345678901234567890",
  403. .psize = 80,
  404. .digest = "\x55\x78\x88\xaf\x5f\x6d\x8e\xd6\x2a\xb6"
  405. "\x69\x45\xc6\xd2\xa0\xa4\x7e\xcd\x53\x41"
  406. "\xe9\x15\xeb\x8f\xea\x1d\x05\x24\x95\x5f"
  407. "\x82\x5d\xc7\x17\xe4\xa0\x08\xab\x2d\x42",
  408. }, {
  409. .plaintext = "abcdbcdecdefdefgefghfghighij"
  410. "hijkijkljklmklmnlmnomnopnopq",
  411. .psize = 56,
  412. .digest = "\xd0\x34\xa7\x95\x0c\xf7\x22\x02\x1b\xa4"
  413. "\xb8\x4d\xf7\x69\xa5\xde\x20\x60\xe2\x59"
  414. "\xdf\x4c\x9b\xb4\xa4\x26\x8c\x0e\x93\x5b"
  415. "\xbc\x74\x70\xa9\x69\xc9\xd0\x72\xa1\xac",
  416. .np = 2,
  417. .tap = { 28, 28 },
  418. }
  419. };
  420. /*
  421. * SHA1 test vectors from from FIPS PUB 180-1
  422. */
  423. #define SHA1_TEST_VECTORS 2
  424. static struct hash_testvec sha1_tv_template[] = {
  425. {
  426. .plaintext = "abc",
  427. .psize = 3,
  428. .digest = "\xa9\x99\x3e\x36\x47\x06\x81\x6a\xba\x3e"
  429. "\x25\x71\x78\x50\xc2\x6c\x9c\xd0\xd8\x9d",
  430. }, {
  431. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  432. .psize = 56,
  433. .digest = "\x84\x98\x3e\x44\x1c\x3b\xd2\x6e\xba\xae"
  434. "\x4a\xa1\xf9\x51\x29\xe5\xe5\x46\x70\xf1",
  435. .np = 2,
  436. .tap = { 28, 28 }
  437. }
  438. };
  439. /*
  440. * SHA224 test vectors from from FIPS PUB 180-2
  441. */
  442. #define SHA224_TEST_VECTORS 2
  443. static struct hash_testvec sha224_tv_template[] = {
  444. {
  445. .plaintext = "abc",
  446. .psize = 3,
  447. .digest = "\x23\x09\x7D\x22\x34\x05\xD8\x22"
  448. "\x86\x42\xA4\x77\xBD\xA2\x55\xB3"
  449. "\x2A\xAD\xBC\xE4\xBD\xA0\xB3\xF7"
  450. "\xE3\x6C\x9D\xA7",
  451. }, {
  452. .plaintext =
  453. "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  454. .psize = 56,
  455. .digest = "\x75\x38\x8B\x16\x51\x27\x76\xCC"
  456. "\x5D\xBA\x5D\xA1\xFD\x89\x01\x50"
  457. "\xB0\xC6\x45\x5C\xB4\xF5\x8B\x19"
  458. "\x52\x52\x25\x25",
  459. .np = 2,
  460. .tap = { 28, 28 }
  461. }
  462. };
  463. /*
  464. * SHA256 test vectors from from NIST
  465. */
  466. #define SHA256_TEST_VECTORS 2
  467. static struct hash_testvec sha256_tv_template[] = {
  468. {
  469. .plaintext = "abc",
  470. .psize = 3,
  471. .digest = "\xba\x78\x16\xbf\x8f\x01\xcf\xea"
  472. "\x41\x41\x40\xde\x5d\xae\x22\x23"
  473. "\xb0\x03\x61\xa3\x96\x17\x7a\x9c"
  474. "\xb4\x10\xff\x61\xf2\x00\x15\xad",
  475. }, {
  476. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  477. .psize = 56,
  478. .digest = "\x24\x8d\x6a\x61\xd2\x06\x38\xb8"
  479. "\xe5\xc0\x26\x93\x0c\x3e\x60\x39"
  480. "\xa3\x3c\xe4\x59\x64\xff\x21\x67"
  481. "\xf6\xec\xed\xd4\x19\xdb\x06\xc1",
  482. .np = 2,
  483. .tap = { 28, 28 }
  484. },
  485. };
  486. /*
  487. * SHA384 test vectors from from NIST and kerneli
  488. */
  489. #define SHA384_TEST_VECTORS 4
  490. static struct hash_testvec sha384_tv_template[] = {
  491. {
  492. .plaintext= "abc",
  493. .psize = 3,
  494. .digest = "\xcb\x00\x75\x3f\x45\xa3\x5e\x8b"
  495. "\xb5\xa0\x3d\x69\x9a\xc6\x50\x07"
  496. "\x27\x2c\x32\xab\x0e\xde\xd1\x63"
  497. "\x1a\x8b\x60\x5a\x43\xff\x5b\xed"
  498. "\x80\x86\x07\x2b\xa1\xe7\xcc\x23"
  499. "\x58\xba\xec\xa1\x34\xc8\x25\xa7",
  500. }, {
  501. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  502. .psize = 56,
  503. .digest = "\x33\x91\xfd\xdd\xfc\x8d\xc7\x39"
  504. "\x37\x07\xa6\x5b\x1b\x47\x09\x39"
  505. "\x7c\xf8\xb1\xd1\x62\xaf\x05\xab"
  506. "\xfe\x8f\x45\x0d\xe5\xf3\x6b\xc6"
  507. "\xb0\x45\x5a\x85\x20\xbc\x4e\x6f"
  508. "\x5f\xe9\x5b\x1f\xe3\xc8\x45\x2b",
  509. }, {
  510. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
  511. "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
  512. .psize = 112,
  513. .digest = "\x09\x33\x0c\x33\xf7\x11\x47\xe8"
  514. "\x3d\x19\x2f\xc7\x82\xcd\x1b\x47"
  515. "\x53\x11\x1b\x17\x3b\x3b\x05\xd2"
  516. "\x2f\xa0\x80\x86\xe3\xb0\xf7\x12"
  517. "\xfc\xc7\xc7\x1a\x55\x7e\x2d\xb9"
  518. "\x66\xc3\xe9\xfa\x91\x74\x60\x39",
  519. }, {
  520. .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
  521. "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
  522. .psize = 104,
  523. .digest = "\x3d\x20\x89\x73\xab\x35\x08\xdb"
  524. "\xbd\x7e\x2c\x28\x62\xba\x29\x0a"
  525. "\xd3\x01\x0e\x49\x78\xc1\x98\xdc"
  526. "\x4d\x8f\xd0\x14\xe5\x82\x82\x3a"
  527. "\x89\xe1\x6f\x9b\x2a\x7b\xbc\x1a"
  528. "\xc9\x38\xe2\xd1\x99\xe8\xbe\xa4",
  529. .np = 4,
  530. .tap = { 26, 26, 26, 26 }
  531. },
  532. };
  533. /*
  534. * SHA512 test vectors from from NIST and kerneli
  535. */
  536. #define SHA512_TEST_VECTORS 4
  537. static struct hash_testvec sha512_tv_template[] = {
  538. {
  539. .plaintext = "abc",
  540. .psize = 3,
  541. .digest = "\xdd\xaf\x35\xa1\x93\x61\x7a\xba"
  542. "\xcc\x41\x73\x49\xae\x20\x41\x31"
  543. "\x12\xe6\xfa\x4e\x89\xa9\x7e\xa2"
  544. "\x0a\x9e\xee\xe6\x4b\x55\xd3\x9a"
  545. "\x21\x92\x99\x2a\x27\x4f\xc1\xa8"
  546. "\x36\xba\x3c\x23\xa3\xfe\xeb\xbd"
  547. "\x45\x4d\x44\x23\x64\x3c\xe8\x0e"
  548. "\x2a\x9a\xc9\x4f\xa5\x4c\xa4\x9f",
  549. }, {
  550. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  551. .psize = 56,
  552. .digest = "\x20\x4a\x8f\xc6\xdd\xa8\x2f\x0a"
  553. "\x0c\xed\x7b\xeb\x8e\x08\xa4\x16"
  554. "\x57\xc1\x6e\xf4\x68\xb2\x28\xa8"
  555. "\x27\x9b\xe3\x31\xa7\x03\xc3\x35"
  556. "\x96\xfd\x15\xc1\x3b\x1b\x07\xf9"
  557. "\xaa\x1d\x3b\xea\x57\x78\x9c\xa0"
  558. "\x31\xad\x85\xc7\xa7\x1d\xd7\x03"
  559. "\x54\xec\x63\x12\x38\xca\x34\x45",
  560. }, {
  561. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
  562. "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
  563. .psize = 112,
  564. .digest = "\x8e\x95\x9b\x75\xda\xe3\x13\xda"
  565. "\x8c\xf4\xf7\x28\x14\xfc\x14\x3f"
  566. "\x8f\x77\x79\xc6\xeb\x9f\x7f\xa1"
  567. "\x72\x99\xae\xad\xb6\x88\x90\x18"
  568. "\x50\x1d\x28\x9e\x49\x00\xf7\xe4"
  569. "\x33\x1b\x99\xde\xc4\xb5\x43\x3a"
  570. "\xc7\xd3\x29\xee\xb6\xdd\x26\x54"
  571. "\x5e\x96\xe5\x5b\x87\x4b\xe9\x09",
  572. }, {
  573. .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
  574. "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
  575. .psize = 104,
  576. .digest = "\x93\x0d\x0c\xef\xcb\x30\xff\x11"
  577. "\x33\xb6\x89\x81\x21\xf1\xcf\x3d"
  578. "\x27\x57\x8a\xfc\xaf\xe8\x67\x7c"
  579. "\x52\x57\xcf\x06\x99\x11\xf7\x5d"
  580. "\x8f\x58\x31\xb5\x6e\xbf\xda\x67"
  581. "\xb2\x78\xe6\x6d\xff\x8b\x84\xfe"
  582. "\x2b\x28\x70\xf7\x42\xa5\x80\xd8"
  583. "\xed\xb4\x19\x87\x23\x28\x50\xc9",
  584. .np = 4,
  585. .tap = { 26, 26, 26, 26 }
  586. },
  587. };
  588. /*
  589. * WHIRLPOOL test vectors from Whirlpool package
  590. * by Vincent Rijmen and Paulo S. L. M. Barreto as part of the NESSIE
  591. * submission
  592. */
  593. #define WP512_TEST_VECTORS 8
  594. static struct hash_testvec wp512_tv_template[] = {
  595. {
  596. .plaintext = "",
  597. .psize = 0,
  598. .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
  599. "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
  600. "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
  601. "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
  602. "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
  603. "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57"
  604. "\xEA\x89\x64\xE5\x9B\x63\xD9\x37"
  605. "\x08\xB1\x38\xCC\x42\xA6\x6E\xB3",
  606. }, {
  607. .plaintext = "a",
  608. .psize = 1,
  609. .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
  610. "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
  611. "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
  612. "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
  613. "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
  614. "\x3A\x42\x39\x1A\x39\x14\x5A\x59"
  615. "\x1A\x92\x20\x0D\x56\x01\x95\xE5"
  616. "\x3B\x47\x85\x84\xFD\xAE\x23\x1A",
  617. }, {
  618. .plaintext = "abc",
  619. .psize = 3,
  620. .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
  621. "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
  622. "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
  623. "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
  624. "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
  625. "\x7D\x0E\x34\x95\x71\x14\xCB\xD6"
  626. "\xC7\x97\xFC\x9D\x95\xD8\xB5\x82"
  627. "\xD2\x25\x29\x20\x76\xD4\xEE\xF5",
  628. }, {
  629. .plaintext = "message digest",
  630. .psize = 14,
  631. .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
  632. "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
  633. "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
  634. "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
  635. "\x84\x21\x55\x76\x59\xEF\x55\xC1"
  636. "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6"
  637. "\x92\xED\x92\x00\x52\x83\x8F\x33"
  638. "\x62\xE8\x6D\xBD\x37\xA8\x90\x3E",
  639. }, {
  640. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  641. .psize = 26,
  642. .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
  643. "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
  644. "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
  645. "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
  646. "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
  647. "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6"
  648. "\xF6\x8F\x67\x3E\x72\x07\x86\x5D"
  649. "\x5D\x98\x19\xA3\xDB\xA4\xEB\x3B",
  650. }, {
  651. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  652. "abcdefghijklmnopqrstuvwxyz0123456789",
  653. .psize = 62,
  654. .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
  655. "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
  656. "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
  657. "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
  658. "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
  659. "\xB7\xCB\x57\x21\x1B\x92\x81\xA6"
  660. "\x55\x17\xCC\x87\x9D\x7B\x96\x21"
  661. "\x42\xC6\x5F\x5A\x7A\xF0\x14\x67",
  662. }, {
  663. .plaintext = "1234567890123456789012345678901234567890"
  664. "1234567890123456789012345678901234567890",
  665. .psize = 80,
  666. .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
  667. "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
  668. "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
  669. "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
  670. "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
  671. "\x38\xCD\x04\x7B\x26\x81\xA5\x1A"
  672. "\x2C\x60\x48\x1E\x88\xC5\xA2\x0B"
  673. "\x2C\x2A\x80\xCF\x3A\x9A\x08\x3B",
  674. }, {
  675. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  676. .psize = 32,
  677. .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
  678. "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
  679. "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
  680. "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
  681. "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
  682. "\x7B\x94\x76\x39\xFE\x05\x0B\x56"
  683. "\x93\x9B\xAA\xA0\xAD\xFF\x9A\xE6"
  684. "\x74\x5B\x7B\x18\x1C\x3B\xE3\xFD",
  685. },
  686. };
  687. #define WP384_TEST_VECTORS 8
  688. static struct hash_testvec wp384_tv_template[] = {
  689. {
  690. .plaintext = "",
  691. .psize = 0,
  692. .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
  693. "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
  694. "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
  695. "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
  696. "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
  697. "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57",
  698. }, {
  699. .plaintext = "a",
  700. .psize = 1,
  701. .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
  702. "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
  703. "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
  704. "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
  705. "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
  706. "\x3A\x42\x39\x1A\x39\x14\x5A\x59",
  707. }, {
  708. .plaintext = "abc",
  709. .psize = 3,
  710. .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
  711. "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
  712. "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
  713. "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
  714. "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
  715. "\x7D\x0E\x34\x95\x71\x14\xCB\xD6",
  716. }, {
  717. .plaintext = "message digest",
  718. .psize = 14,
  719. .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
  720. "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
  721. "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
  722. "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
  723. "\x84\x21\x55\x76\x59\xEF\x55\xC1"
  724. "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6",
  725. }, {
  726. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  727. .psize = 26,
  728. .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
  729. "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
  730. "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
  731. "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
  732. "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
  733. "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6",
  734. }, {
  735. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  736. "abcdefghijklmnopqrstuvwxyz0123456789",
  737. .psize = 62,
  738. .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
  739. "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
  740. "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
  741. "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
  742. "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
  743. "\xB7\xCB\x57\x21\x1B\x92\x81\xA6",
  744. }, {
  745. .plaintext = "1234567890123456789012345678901234567890"
  746. "1234567890123456789012345678901234567890",
  747. .psize = 80,
  748. .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
  749. "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
  750. "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
  751. "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
  752. "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
  753. "\x38\xCD\x04\x7B\x26\x81\xA5\x1A",
  754. }, {
  755. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  756. .psize = 32,
  757. .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
  758. "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
  759. "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
  760. "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
  761. "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
  762. "\x7B\x94\x76\x39\xFE\x05\x0B\x56",
  763. },
  764. };
  765. #define WP256_TEST_VECTORS 8
  766. static struct hash_testvec wp256_tv_template[] = {
  767. {
  768. .plaintext = "",
  769. .psize = 0,
  770. .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
  771. "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
  772. "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
  773. "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7",
  774. }, {
  775. .plaintext = "a",
  776. .psize = 1,
  777. .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
  778. "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
  779. "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
  780. "\x73\xC4\x50\x01\xD0\x08\x7B\x42",
  781. }, {
  782. .plaintext = "abc",
  783. .psize = 3,
  784. .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
  785. "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
  786. "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
  787. "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C",
  788. }, {
  789. .plaintext = "message digest",
  790. .psize = 14,
  791. .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
  792. "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
  793. "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
  794. "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B",
  795. }, {
  796. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  797. .psize = 26,
  798. .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
  799. "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
  800. "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
  801. "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B",
  802. }, {
  803. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  804. "abcdefghijklmnopqrstuvwxyz0123456789",
  805. .psize = 62,
  806. .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
  807. "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
  808. "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
  809. "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E",
  810. }, {
  811. .plaintext = "1234567890123456789012345678901234567890"
  812. "1234567890123456789012345678901234567890",
  813. .psize = 80,
  814. .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
  815. "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
  816. "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
  817. "\x54\x9C\x4A\xFA\xDB\x60\x14\x29",
  818. }, {
  819. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  820. .psize = 32,
  821. .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
  822. "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
  823. "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
  824. "\x07\xC5\x62\xF9\x88\xE9\x5C\x69",
  825. },
  826. };
  827. /*
  828. * TIGER test vectors from Tiger website
  829. */
  830. #define TGR192_TEST_VECTORS 6
  831. static struct hash_testvec tgr192_tv_template[] = {
  832. {
  833. .plaintext = "",
  834. .psize = 0,
  835. .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
  836. "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
  837. "\xf3\x73\xde\x2d\x49\x58\x4e\x7a",
  838. }, {
  839. .plaintext = "abc",
  840. .psize = 3,
  841. .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
  842. "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
  843. "\x93\x5f\x7b\x95\x1c\x13\x29\x51",
  844. }, {
  845. .plaintext = "Tiger",
  846. .psize = 5,
  847. .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
  848. "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
  849. "\x37\x79\x0c\x11\x6f\x9d\x2b\xdf",
  850. }, {
  851. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
  852. .psize = 64,
  853. .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
  854. "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
  855. "\xb5\x86\x44\x50\x34\xa5\xa3\x86",
  856. }, {
  857. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
  858. .psize = 64,
  859. .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
  860. "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
  861. "\x57\x89\x65\x65\x97\x5f\x91\x97",
  862. }, {
  863. .plaintext = "Tiger - A Fast New Hash Function, "
  864. "by Ross Anderson and Eli Biham, "
  865. "proceedings of Fast Software Encryption 3, "
  866. "Cambridge, 1996.",
  867. .psize = 125,
  868. .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
  869. "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
  870. "\xdd\x68\x15\x1d\x50\x39\x74\xfc",
  871. },
  872. };
  873. #define TGR160_TEST_VECTORS 6
  874. static struct hash_testvec tgr160_tv_template[] = {
  875. {
  876. .plaintext = "",
  877. .psize = 0,
  878. .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
  879. "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
  880. "\xf3\x73\xde\x2d",
  881. }, {
  882. .plaintext = "abc",
  883. .psize = 3,
  884. .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
  885. "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
  886. "\x93\x5f\x7b\x95",
  887. }, {
  888. .plaintext = "Tiger",
  889. .psize = 5,
  890. .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
  891. "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
  892. "\x37\x79\x0c\x11",
  893. }, {
  894. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
  895. .psize = 64,
  896. .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
  897. "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
  898. "\xb5\x86\x44\x50",
  899. }, {
  900. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
  901. .psize = 64,
  902. .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
  903. "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
  904. "\x57\x89\x65\x65",
  905. }, {
  906. .plaintext = "Tiger - A Fast New Hash Function, "
  907. "by Ross Anderson and Eli Biham, "
  908. "proceedings of Fast Software Encryption 3, "
  909. "Cambridge, 1996.",
  910. .psize = 125,
  911. .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
  912. "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
  913. "\xdd\x68\x15\x1d",
  914. },
  915. };
  916. #define TGR128_TEST_VECTORS 6
  917. static struct hash_testvec tgr128_tv_template[] = {
  918. {
  919. .plaintext = "",
  920. .psize = 0,
  921. .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
  922. "\x16\x16\x6e\x76\xb1\xbb\x92\x5f",
  923. }, {
  924. .plaintext = "abc",
  925. .psize = 3,
  926. .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
  927. "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf",
  928. }, {
  929. .plaintext = "Tiger",
  930. .psize = 5,
  931. .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
  932. "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec",
  933. }, {
  934. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
  935. .psize = 64,
  936. .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
  937. "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e",
  938. }, {
  939. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
  940. .psize = 64,
  941. .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
  942. "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9",
  943. }, {
  944. .plaintext = "Tiger - A Fast New Hash Function, "
  945. "by Ross Anderson and Eli Biham, "
  946. "proceedings of Fast Software Encryption 3, "
  947. "Cambridge, 1996.",
  948. .psize = 125,
  949. .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
  950. "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24",
  951. },
  952. };
  953. /*
  954. * HMAC-MD5 test vectors from RFC2202
  955. * (These need to be fixed to not use strlen).
  956. */
  957. #define HMAC_MD5_TEST_VECTORS 7
  958. static struct hash_testvec hmac_md5_tv_template[] =
  959. {
  960. {
  961. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  962. .ksize = 16,
  963. .plaintext = "Hi There",
  964. .psize = 8,
  965. .digest = "\x92\x94\x72\x7a\x36\x38\xbb\x1c"
  966. "\x13\xf4\x8e\xf8\x15\x8b\xfc\x9d",
  967. }, {
  968. .key = "Jefe",
  969. .ksize = 4,
  970. .plaintext = "what do ya want for nothing?",
  971. .psize = 28,
  972. .digest = "\x75\x0c\x78\x3e\x6a\xb0\xb5\x03"
  973. "\xea\xa8\x6e\x31\x0a\x5d\xb7\x38",
  974. .np = 2,
  975. .tap = {14, 14}
  976. }, {
  977. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  978. .ksize = 16,
  979. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  980. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  981. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  982. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  983. .psize = 50,
  984. .digest = "\x56\xbe\x34\x52\x1d\x14\x4c\x88"
  985. "\xdb\xb8\xc7\x33\xf0\xe8\xb3\xf6",
  986. }, {
  987. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  988. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  989. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  990. .ksize = 25,
  991. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  992. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  993. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  994. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  995. .psize = 50,
  996. .digest = "\x69\x7e\xaf\x0a\xca\x3a\x3a\xea"
  997. "\x3a\x75\x16\x47\x46\xff\xaa\x79",
  998. }, {
  999. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  1000. .ksize = 16,
  1001. .plaintext = "Test With Truncation",
  1002. .psize = 20,
  1003. .digest = "\x56\x46\x1e\xf2\x34\x2e\xdc\x00"
  1004. "\xf9\xba\xb9\x95\x69\x0e\xfd\x4c",
  1005. }, {
  1006. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1007. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1008. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1009. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1010. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1011. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1012. "\xaa\xaa",
  1013. .ksize = 80,
  1014. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1015. .psize = 54,
  1016. .digest = "\x6b\x1a\xb7\xfe\x4b\xd7\xbf\x8f"
  1017. "\x0b\x62\xe6\xce\x61\xb9\xd0\xcd",
  1018. }, {
  1019. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1020. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1021. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1022. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1023. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1024. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1025. "\xaa\xaa",
  1026. .ksize = 80,
  1027. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  1028. "Block-Size Data",
  1029. .psize = 73,
  1030. .digest = "\x6f\x63\x0f\xad\x67\xcd\xa0\xee"
  1031. "\x1f\xb1\xf5\x62\xdb\x3a\xa5\x3e",
  1032. },
  1033. };
  1034. /*
  1035. * HMAC-RIPEMD128 test vectors from RFC2286
  1036. */
  1037. #define HMAC_RMD128_TEST_VECTORS 7
  1038. static struct hash_testvec hmac_rmd128_tv_template[] = {
  1039. {
  1040. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  1041. .ksize = 16,
  1042. .plaintext = "Hi There",
  1043. .psize = 8,
  1044. .digest = "\xfb\xf6\x1f\x94\x92\xaa\x4b\xbf"
  1045. "\x81\xc1\x72\xe8\x4e\x07\x34\xdb",
  1046. }, {
  1047. .key = "Jefe",
  1048. .ksize = 4,
  1049. .plaintext = "what do ya want for nothing?",
  1050. .psize = 28,
  1051. .digest = "\x87\x5f\x82\x88\x62\xb6\xb3\x34"
  1052. "\xb4\x27\xc5\x5f\x9f\x7f\xf0\x9b",
  1053. .np = 2,
  1054. .tap = { 14, 14 },
  1055. }, {
  1056. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  1057. .ksize = 16,
  1058. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1059. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1060. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1061. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  1062. .psize = 50,
  1063. .digest = "\x09\xf0\xb2\x84\x6d\x2f\x54\x3d"
  1064. "\xa3\x63\xcb\xec\x8d\x62\xa3\x8d",
  1065. }, {
  1066. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1067. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1068. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  1069. .ksize = 25,
  1070. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1071. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1072. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1073. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1074. .psize = 50,
  1075. .digest = "\xbd\xbb\xd7\xcf\x03\xe4\x4b\x5a"
  1076. "\xa6\x0a\xf8\x15\xbe\x4d\x22\x94",
  1077. }, {
  1078. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  1079. .ksize = 16,
  1080. .plaintext = "Test With Truncation",
  1081. .psize = 20,
  1082. .digest = "\xe7\x98\x08\xf2\x4b\x25\xfd\x03"
  1083. "\x1c\x15\x5f\x0d\x55\x1d\x9a\x3a",
  1084. }, {
  1085. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1086. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1087. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1088. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1089. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1090. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1091. "\xaa\xaa",
  1092. .ksize = 80,
  1093. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1094. .psize = 54,
  1095. .digest = "\xdc\x73\x29\x28\xde\x98\x10\x4a"
  1096. "\x1f\x59\xd3\x73\xc1\x50\xac\xbb",
  1097. }, {
  1098. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1099. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1100. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1101. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1102. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1103. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1104. "\xaa\xaa",
  1105. .ksize = 80,
  1106. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  1107. "Block-Size Data",
  1108. .psize = 73,
  1109. .digest = "\x5c\x6b\xec\x96\x79\x3e\x16\xd4"
  1110. "\x06\x90\xc2\x37\x63\x5f\x30\xc5",
  1111. },
  1112. };
  1113. /*
  1114. * HMAC-RIPEMD160 test vectors from RFC2286
  1115. */
  1116. #define HMAC_RMD160_TEST_VECTORS 7
  1117. static struct hash_testvec hmac_rmd160_tv_template[] = {
  1118. {
  1119. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  1120. .ksize = 20,
  1121. .plaintext = "Hi There",
  1122. .psize = 8,
  1123. .digest = "\x24\xcb\x4b\xd6\x7d\x20\xfc\x1a\x5d\x2e"
  1124. "\xd7\x73\x2d\xcc\x39\x37\x7f\x0a\x56\x68",
  1125. }, {
  1126. .key = "Jefe",
  1127. .ksize = 4,
  1128. .plaintext = "what do ya want for nothing?",
  1129. .psize = 28,
  1130. .digest = "\xdd\xa6\xc0\x21\x3a\x48\x5a\x9e\x24\xf4"
  1131. "\x74\x20\x64\xa7\xf0\x33\xb4\x3c\x40\x69",
  1132. .np = 2,
  1133. .tap = { 14, 14 },
  1134. }, {
  1135. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  1136. .ksize = 20,
  1137. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1138. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1139. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1140. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  1141. .psize = 50,
  1142. .digest = "\xb0\xb1\x05\x36\x0d\xe7\x59\x96\x0a\xb4"
  1143. "\xf3\x52\x98\xe1\x16\xe2\x95\xd8\xe7\xc1",
  1144. }, {
  1145. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1146. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1147. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  1148. .ksize = 25,
  1149. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1150. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1151. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1152. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1153. .psize = 50,
  1154. .digest = "\xd5\xca\x86\x2f\x4d\x21\xd5\xe6\x10\xe1"
  1155. "\x8b\x4c\xf1\xbe\xb9\x7a\x43\x65\xec\xf4",
  1156. }, {
  1157. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  1158. .ksize = 20,
  1159. .plaintext = "Test With Truncation",
  1160. .psize = 20,
  1161. .digest = "\x76\x19\x69\x39\x78\xf9\x1d\x90\x53\x9a"
  1162. "\xe7\x86\x50\x0f\xf3\xd8\xe0\x51\x8e\x39",
  1163. }, {
  1164. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1165. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1166. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1167. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1168. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1169. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1170. "\xaa\xaa",
  1171. .ksize = 80,
  1172. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1173. .psize = 54,
  1174. .digest = "\x64\x66\xca\x07\xac\x5e\xac\x29\xe1\xbd"
  1175. "\x52\x3e\x5a\xda\x76\x05\xb7\x91\xfd\x8b",
  1176. }, {
  1177. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1178. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1179. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1180. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1181. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1182. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1183. "\xaa\xaa",
  1184. .ksize = 80,
  1185. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  1186. "Block-Size Data",
  1187. .psize = 73,
  1188. .digest = "\x69\xea\x60\x79\x8d\x71\x61\x6c\xce\x5f"
  1189. "\xd0\x87\x1e\x23\x75\x4c\xd7\x5d\x5a\x0a",
  1190. },
  1191. };
  1192. /*
  1193. * HMAC-SHA1 test vectors from RFC2202
  1194. */
  1195. #define HMAC_SHA1_TEST_VECTORS 7
  1196. static struct hash_testvec hmac_sha1_tv_template[] = {
  1197. {
  1198. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  1199. .ksize = 20,
  1200. .plaintext = "Hi There",
  1201. .psize = 8,
  1202. .digest = "\xb6\x17\x31\x86\x55\x05\x72\x64"
  1203. "\xe2\x8b\xc0\xb6\xfb\x37\x8c\x8e\xf1"
  1204. "\x46\xbe",
  1205. }, {
  1206. .key = "Jefe",
  1207. .ksize = 4,
  1208. .plaintext = "what do ya want for nothing?",
  1209. .psize = 28,
  1210. .digest = "\xef\xfc\xdf\x6a\xe5\xeb\x2f\xa2\xd2\x74"
  1211. "\x16\xd5\xf1\x84\xdf\x9c\x25\x9a\x7c\x79",
  1212. .np = 2,
  1213. .tap = { 14, 14 }
  1214. }, {
  1215. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  1216. .ksize = 20,
  1217. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1218. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1219. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1220. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  1221. .psize = 50,
  1222. .digest = "\x12\x5d\x73\x42\xb9\xac\x11\xcd\x91\xa3"
  1223. "\x9a\xf4\x8a\xa1\x7b\x4f\x63\xf1\x75\xd3",
  1224. }, {
  1225. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1226. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1227. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  1228. .ksize = 25,
  1229. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1230. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1231. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1232. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1233. .psize = 50,
  1234. .digest = "\x4c\x90\x07\xf4\x02\x62\x50\xc6\xbc\x84"
  1235. "\x14\xf9\xbf\x50\xc8\x6c\x2d\x72\x35\xda",
  1236. }, {
  1237. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  1238. .ksize = 20,
  1239. .plaintext = "Test With Truncation",
  1240. .psize = 20,
  1241. .digest = "\x4c\x1a\x03\x42\x4b\x55\xe0\x7f\xe7\xf2"
  1242. "\x7b\xe1\xd5\x8b\xb9\x32\x4a\x9a\x5a\x04",
  1243. }, {
  1244. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1245. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1246. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1247. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1248. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1249. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1250. "\xaa\xaa",
  1251. .ksize = 80,
  1252. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1253. .psize = 54,
  1254. .digest = "\xaa\x4a\xe5\xe1\x52\x72\xd0\x0e\x95\x70"
  1255. "\x56\x37\xce\x8a\x3b\x55\xed\x40\x21\x12",
  1256. }, {
  1257. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1258. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1259. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1260. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1261. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1262. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1263. "\xaa\xaa",
  1264. .ksize = 80,
  1265. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  1266. "Block-Size Data",
  1267. .psize = 73,
  1268. .digest = "\xe8\xe9\x9d\x0f\x45\x23\x7d\x78\x6d\x6b"
  1269. "\xba\xa7\x96\x5c\x78\x08\xbb\xff\x1a\x91",
  1270. },
  1271. };
  1272. /*
  1273. * SHA224 HMAC test vectors from RFC4231
  1274. */
  1275. #define HMAC_SHA224_TEST_VECTORS 4
  1276. static struct hash_testvec hmac_sha224_tv_template[] = {
  1277. {
  1278. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1279. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1280. "\x0b\x0b\x0b\x0b",
  1281. .ksize = 20,
  1282. /* ("Hi There") */
  1283. .plaintext = "\x48\x69\x20\x54\x68\x65\x72\x65",
  1284. .psize = 8,
  1285. .digest = "\x89\x6f\xb1\x12\x8a\xbb\xdf\x19"
  1286. "\x68\x32\x10\x7c\xd4\x9d\xf3\x3f"
  1287. "\x47\xb4\xb1\x16\x99\x12\xba\x4f"
  1288. "\x53\x68\x4b\x22",
  1289. }, {
  1290. .key = "Jefe",
  1291. .ksize = 4,
  1292. /* ("what do ya want for nothing?") */
  1293. .plaintext = "\x77\x68\x61\x74\x20\x64\x6f\x20"
  1294. "\x79\x61\x20\x77\x61\x6e\x74\x20"
  1295. "\x66\x6f\x72\x20\x6e\x6f\x74\x68"
  1296. "\x69\x6e\x67\x3f",
  1297. .psize = 28,
  1298. .digest = "\xa3\x0e\x01\x09\x8b\xc6\xdb\xbf"
  1299. "\x45\x69\x0f\x3a\x7e\x9e\x6d\x0f"
  1300. "\x8b\xbe\xa2\xa3\x9e\x61\x48\x00"
  1301. "\x8f\xd0\x5e\x44",
  1302. .np = 4,
  1303. .tap = { 7, 7, 7, 7 }
  1304. }, {
  1305. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1306. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1307. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1308. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1309. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1310. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1311. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1312. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1313. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1314. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1315. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1316. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1317. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1318. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1319. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1320. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1321. "\xaa\xaa\xaa",
  1322. .ksize = 131,
  1323. /* ("Test Using Larger Than Block-Size Key - Hash Key First") */
  1324. .plaintext = "\x54\x65\x73\x74\x20\x55\x73\x69"
  1325. "\x6e\x67\x20\x4c\x61\x72\x67\x65"
  1326. "\x72\x20\x54\x68\x61\x6e\x20\x42"
  1327. "\x6c\x6f\x63\x6b\x2d\x53\x69\x7a"
  1328. "\x65\x20\x4b\x65\x79\x20\x2d\x20"
  1329. "\x48\x61\x73\x68\x20\x4b\x65\x79"
  1330. "\x20\x46\x69\x72\x73\x74",
  1331. .psize = 54,
  1332. .digest = "\x95\xe9\xa0\xdb\x96\x20\x95\xad"
  1333. "\xae\xbe\x9b\x2d\x6f\x0d\xbc\xe2"
  1334. "\xd4\x99\xf1\x12\xf2\xd2\xb7\x27"
  1335. "\x3f\xa6\x87\x0e",
  1336. }, {
  1337. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1338. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1339. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1340. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1341. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1342. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1343. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1344. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1345. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1346. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1347. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1348. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1349. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1350. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1351. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1352. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1353. "\xaa\xaa\xaa",
  1354. .ksize = 131,
  1355. /* ("This is a test using a larger than block-size key and a")
  1356. (" larger than block-size data. The key needs to be")
  1357. (" hashed before being used by the HMAC algorithm.") */
  1358. .plaintext = "\x54\x68\x69\x73\x20\x69\x73\x20"
  1359. "\x61\x20\x74\x65\x73\x74\x20\x75"
  1360. "\x73\x69\x6e\x67\x20\x61\x20\x6c"
  1361. "\x61\x72\x67\x65\x72\x20\x74\x68"
  1362. "\x61\x6e\x20\x62\x6c\x6f\x63\x6b"
  1363. "\x2d\x73\x69\x7a\x65\x20\x6b\x65"
  1364. "\x79\x20\x61\x6e\x64\x20\x61\x20"
  1365. "\x6c\x61\x72\x67\x65\x72\x20\x74"
  1366. "\x68\x61\x6e\x20\x62\x6c\x6f\x63"
  1367. "\x6b\x2d\x73\x69\x7a\x65\x20\x64"
  1368. "\x61\x74\x61\x2e\x20\x54\x68\x65"
  1369. "\x20\x6b\x65\x79\x20\x6e\x65\x65"
  1370. "\x64\x73\x20\x74\x6f\x20\x62\x65"
  1371. "\x20\x68\x61\x73\x68\x65\x64\x20"
  1372. "\x62\x65\x66\x6f\x72\x65\x20\x62"
  1373. "\x65\x69\x6e\x67\x20\x75\x73\x65"
  1374. "\x64\x20\x62\x79\x20\x74\x68\x65"
  1375. "\x20\x48\x4d\x41\x43\x20\x61\x6c"
  1376. "\x67\x6f\x72\x69\x74\x68\x6d\x2e",
  1377. .psize = 152,
  1378. .digest = "\x3a\x85\x41\x66\xac\x5d\x9f\x02"
  1379. "\x3f\x54\xd5\x17\xd0\xb3\x9d\xbd"
  1380. "\x94\x67\x70\xdb\x9c\x2b\x95\xc9"
  1381. "\xf6\xf5\x65\xd1",
  1382. },
  1383. };
  1384. /*
  1385. * HMAC-SHA256 test vectors from
  1386. * draft-ietf-ipsec-ciph-sha-256-01.txt
  1387. */
  1388. #define HMAC_SHA256_TEST_VECTORS 10
  1389. static struct hash_testvec hmac_sha256_tv_template[] = {
  1390. {
  1391. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1392. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1393. "\x11\x12\x13\x14\x15\x16\x17\x18"
  1394. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
  1395. .ksize = 32,
  1396. .plaintext = "abc",
  1397. .psize = 3,
  1398. .digest = "\xa2\x1b\x1f\x5d\x4c\xf4\xf7\x3a"
  1399. "\x4d\xd9\x39\x75\x0f\x7a\x06\x6a"
  1400. "\x7f\x98\xcc\x13\x1c\xb1\x6a\x66"
  1401. "\x92\x75\x90\x21\xcf\xab\x81\x81",
  1402. }, {
  1403. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1404. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1405. "\x11\x12\x13\x14\x15\x16\x17\x18"
  1406. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
  1407. .ksize = 32,
  1408. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  1409. .psize = 56,
  1410. .digest = "\x10\x4f\xdc\x12\x57\x32\x8f\x08"
  1411. "\x18\x4b\xa7\x31\x31\xc5\x3c\xae"
  1412. "\xe6\x98\xe3\x61\x19\x42\x11\x49"
  1413. "\xea\x8c\x71\x24\x56\x69\x7d\x30",
  1414. }, {
  1415. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1416. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1417. "\x11\x12\x13\x14\x15\x16\x17\x18"
  1418. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
  1419. .ksize = 32,
  1420. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
  1421. "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  1422. .psize = 112,
  1423. .digest = "\x47\x03\x05\xfc\x7e\x40\xfe\x34"
  1424. "\xd3\xee\xb3\xe7\x73\xd9\x5a\xab"
  1425. "\x73\xac\xf0\xfd\x06\x04\x47\xa5"
  1426. "\xeb\x45\x95\xbf\x33\xa9\xd1\xa3",
  1427. }, {
  1428. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1429. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1430. "\x0b\x0b\x0b\x0b\x0b\x0b",
  1431. .ksize = 32,
  1432. .plaintext = "Hi There",
  1433. .psize = 8,
  1434. .digest = "\x19\x8a\x60\x7e\xb4\x4b\xfb\xc6"
  1435. "\x99\x03\xa0\xf1\xcf\x2b\xbd\xc5"
  1436. "\xba\x0a\xa3\xf3\xd9\xae\x3c\x1c"
  1437. "\x7a\x3b\x16\x96\xa0\xb6\x8c\xf7",
  1438. }, {
  1439. .key = "Jefe",
  1440. .ksize = 4,
  1441. .plaintext = "what do ya want for nothing?",
  1442. .psize = 28,
  1443. .digest = "\x5b\xdc\xc1\x46\xbf\x60\x75\x4e"
  1444. "\x6a\x04\x24\x26\x08\x95\x75\xc7"
  1445. "\x5a\x00\x3f\x08\x9d\x27\x39\x83"
  1446. "\x9d\xec\x58\xb9\x64\xec\x38\x43",
  1447. .np = 2,
  1448. .tap = { 14, 14 }
  1449. }, {
  1450. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1451. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1452. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  1453. .ksize = 32,
  1454. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1455. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1456. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1457. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  1458. .psize = 50,
  1459. .digest = "\xcd\xcb\x12\x20\xd1\xec\xcc\xea"
  1460. "\x91\xe5\x3a\xba\x30\x92\xf9\x62"
  1461. "\xe5\x49\xfe\x6c\xe9\xed\x7f\xdc"
  1462. "\x43\x19\x1f\xbd\xe4\x5c\x30\xb0",
  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. "\x21\x22\x23\x24\x25",
  1469. .ksize = 37,
  1470. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1471. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1472. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1473. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1474. .psize = 50,
  1475. .digest = "\xd4\x63\x3c\x17\xf6\xfb\x8d\x74"
  1476. "\x4c\x66\xde\xe0\xf8\xf0\x74\x55"
  1477. "\x6e\xc4\xaf\x55\xef\x07\x99\x85"
  1478. "\x41\x46\x8e\xb4\x9b\xd2\xe9\x17",
  1479. }, {
  1480. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
  1481. "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
  1482. "\x0c\x0c\x0c\x0c\x0c\x0c",
  1483. .ksize = 32,
  1484. .plaintext = "Test With Truncation",
  1485. .psize = 20,
  1486. .digest = "\x75\x46\xaf\x01\x84\x1f\xc0\x9b"
  1487. "\x1a\xb9\xc3\x74\x9a\x5f\x1c\x17"
  1488. "\xd4\xf5\x89\x66\x8a\x58\x7b\x27"
  1489. "\x00\xa9\xc9\x7c\x11\x93\xcf\x42",
  1490. }, {
  1491. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1492. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1493. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1494. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1495. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1496. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1497. "\xaa\xaa",
  1498. .ksize = 80,
  1499. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1500. .psize = 54,
  1501. .digest = "\x69\x53\x02\x5e\xd9\x6f\x0c\x09"
  1502. "\xf8\x0a\x96\xf7\x8e\x65\x38\xdb"
  1503. "\xe2\xe7\xb8\x20\xe3\xdd\x97\x0e"
  1504. "\x7d\xdd\x39\x09\x1b\x32\x35\x2f",
  1505. }, {
  1506. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1507. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1508. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1509. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1510. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1511. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1512. "\xaa\xaa",
  1513. .ksize = 80,
  1514. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than "
  1515. "One Block-Size Data",
  1516. .psize = 73,
  1517. .digest = "\x63\x55\xac\x22\xe8\x90\xd0\xa3"
  1518. "\xc8\x48\x1a\x5c\xa4\x82\x5b\xc8"
  1519. "\x84\xd3\xe7\xa1\xff\x98\xa2\xfc"
  1520. "\x2a\xc7\xd8\xe0\x64\xc3\xb2\xe6",
  1521. },
  1522. };
  1523. #define XCBC_AES_TEST_VECTORS 6
  1524. static struct hash_testvec aes_xcbc128_tv_template[] = {
  1525. {
  1526. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1527. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1528. .plaintext = zeroed_string,
  1529. .digest = "\x75\xf0\x25\x1d\x52\x8a\xc0\x1c"
  1530. "\x45\x73\xdf\xd5\x84\xd7\x9f\x29",
  1531. .psize = 0,
  1532. .ksize = 16,
  1533. }, {
  1534. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1535. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1536. .plaintext = "\x00\x01\x02",
  1537. .digest = "\x5b\x37\x65\x80\xae\x2f\x19\xaf"
  1538. "\xe7\x21\x9c\xee\xf1\x72\x75\x6f",
  1539. .psize = 3,
  1540. .ksize = 16,
  1541. } , {
  1542. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1543. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1544. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1545. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1546. .digest = "\xd2\xa2\x46\xfa\x34\x9b\x68\xa7"
  1547. "\x99\x98\xa4\x39\x4f\xf7\xa2\x63",
  1548. .psize = 16,
  1549. .ksize = 16,
  1550. }, {
  1551. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1552. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1553. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1554. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  1555. "\x10\x11\x12\x13",
  1556. .digest = "\x47\xf5\x1b\x45\x64\x96\x62\x15"
  1557. "\xb8\x98\x5c\x63\x05\x5e\xd3\x08",
  1558. .tap = { 10, 10 },
  1559. .psize = 20,
  1560. .np = 2,
  1561. .ksize = 16,
  1562. }, {
  1563. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1564. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1565. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1566. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  1567. "\x10\x11\x12\x13\x14\x15\x16\x17"
  1568. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  1569. .digest = "\xf5\x4f\x0e\xc8\xd2\xb9\xf3\xd3"
  1570. "\x68\x07\x73\x4b\xd5\x28\x3f\xd4",
  1571. .psize = 32,
  1572. .ksize = 16,
  1573. }, {
  1574. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1575. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1576. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1577. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  1578. "\x10\x11\x12\x13\x14\x15\x16\x17"
  1579. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  1580. "\x20\x21",
  1581. .digest = "\xbe\xcb\xb3\xbc\xcd\xb5\x18\xa3"
  1582. "\x06\x77\xd5\x48\x1f\xb6\xb4\xd8",
  1583. .tap = { 17, 17 },
  1584. .psize = 34,
  1585. .np = 2,
  1586. .ksize = 16,
  1587. }
  1588. };
  1589. /*
  1590. * SHA384 HMAC test vectors from RFC4231
  1591. */
  1592. #define HMAC_SHA384_TEST_VECTORS 4
  1593. static struct hash_testvec hmac_sha384_tv_template[] = {
  1594. {
  1595. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1596. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1597. "\x0b\x0b\x0b\x0b",
  1598. .ksize = 20,
  1599. .plaintext = "Hi There",
  1600. .psize = 8,
  1601. .digest = "\xaf\xd0\x39\x44\xd8\x48\x95\x62"
  1602. "\x6b\x08\x25\xf4\xab\x46\x90\x7f"
  1603. "\x15\xf9\xda\xdb\xe4\x10\x1e\xc6"
  1604. "\x82\xaa\x03\x4c\x7c\xeb\xc5\x9c"
  1605. "\xfa\xea\x9e\xa9\x07\x6e\xde\x7f"
  1606. "\x4a\xf1\x52\xe8\xb2\xfa\x9c\xb6",
  1607. }, {
  1608. .key = "Jefe",
  1609. .ksize = 4,
  1610. .plaintext = "what do ya want for nothing?",
  1611. .psize = 28,
  1612. .digest = "\xaf\x45\xd2\xe3\x76\x48\x40\x31"
  1613. "\x61\x7f\x78\xd2\xb5\x8a\x6b\x1b"
  1614. "\x9c\x7e\xf4\x64\xf5\xa0\x1b\x47"
  1615. "\xe4\x2e\xc3\x73\x63\x22\x44\x5e"
  1616. "\x8e\x22\x40\xca\x5e\x69\xe2\xc7"
  1617. "\x8b\x32\x39\xec\xfa\xb2\x16\x49",
  1618. .np = 4,
  1619. .tap = { 7, 7, 7, 7 }
  1620. }, {
  1621. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1622. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1623. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1624. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1625. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1626. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1627. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1628. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1629. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1630. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1631. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1632. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1633. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1634. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1635. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1636. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1637. "\xaa\xaa\xaa",
  1638. .ksize = 131,
  1639. .plaintext = "Test Using Larger Than Block-Siz"
  1640. "e Key - Hash Key First",
  1641. .psize = 54,
  1642. .digest = "\x4e\xce\x08\x44\x85\x81\x3e\x90"
  1643. "\x88\xd2\xc6\x3a\x04\x1b\xc5\xb4"
  1644. "\x4f\x9e\xf1\x01\x2a\x2b\x58\x8f"
  1645. "\x3c\xd1\x1f\x05\x03\x3a\xc4\xc6"
  1646. "\x0c\x2e\xf6\xab\x40\x30\xfe\x82"
  1647. "\x96\x24\x8d\xf1\x63\xf4\x49\x52",
  1648. }, {
  1649. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1650. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1651. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1652. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1653. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1654. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1655. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1656. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1657. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1658. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1659. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1660. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1661. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1662. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1663. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1664. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1665. "\xaa\xaa\xaa",
  1666. .ksize = 131,
  1667. .plaintext = "This is a test u"
  1668. "sing a larger th"
  1669. "an block-size ke"
  1670. "y and a larger t"
  1671. "han block-size d"
  1672. "ata. The key nee"
  1673. "ds to be hashed "
  1674. "before being use"
  1675. "d by the HMAC al"
  1676. "gorithm.",
  1677. .psize = 152,
  1678. .digest = "\x66\x17\x17\x8e\x94\x1f\x02\x0d"
  1679. "\x35\x1e\x2f\x25\x4e\x8f\xd3\x2c"
  1680. "\x60\x24\x20\xfe\xb0\xb8\xfb\x9a"
  1681. "\xdc\xce\xbb\x82\x46\x1e\x99\xc5"
  1682. "\xa6\x78\xcc\x31\xe7\x99\x17\x6d"
  1683. "\x38\x60\xe6\x11\x0c\x46\x52\x3e",
  1684. },
  1685. };
  1686. /*
  1687. * SHA512 HMAC test vectors from RFC4231
  1688. */
  1689. #define HMAC_SHA512_TEST_VECTORS 4
  1690. static struct hash_testvec hmac_sha512_tv_template[] = {
  1691. {
  1692. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1693. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1694. "\x0b\x0b\x0b\x0b",
  1695. .ksize = 20,
  1696. .plaintext = "Hi There",
  1697. .psize = 8,
  1698. .digest = "\x87\xaa\x7c\xde\xa5\xef\x61\x9d"
  1699. "\x4f\xf0\xb4\x24\x1a\x1d\x6c\xb0"
  1700. "\x23\x79\xf4\xe2\xce\x4e\xc2\x78"
  1701. "\x7a\xd0\xb3\x05\x45\xe1\x7c\xde"
  1702. "\xda\xa8\x33\xb7\xd6\xb8\xa7\x02"
  1703. "\x03\x8b\x27\x4e\xae\xa3\xf4\xe4"
  1704. "\xbe\x9d\x91\x4e\xeb\x61\xf1\x70"
  1705. "\x2e\x69\x6c\x20\x3a\x12\x68\x54",
  1706. }, {
  1707. .key = "Jefe",
  1708. .ksize = 4,
  1709. .plaintext = "what do ya want for nothing?",
  1710. .psize = 28,
  1711. .digest = "\x16\x4b\x7a\x7b\xfc\xf8\x19\xe2"
  1712. "\xe3\x95\xfb\xe7\x3b\x56\xe0\xa3"
  1713. "\x87\xbd\x64\x22\x2e\x83\x1f\xd6"
  1714. "\x10\x27\x0c\xd7\xea\x25\x05\x54"
  1715. "\x97\x58\xbf\x75\xc0\x5a\x99\x4a"
  1716. "\x6d\x03\x4f\x65\xf8\xf0\xe6\xfd"
  1717. "\xca\xea\xb1\xa3\x4d\x4a\x6b\x4b"
  1718. "\x63\x6e\x07\x0a\x38\xbc\xe7\x37",
  1719. .np = 4,
  1720. .tap = { 7, 7, 7, 7 }
  1721. }, {
  1722. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1723. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1724. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1725. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1726. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1727. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1728. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1729. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1730. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1731. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1732. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1733. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1734. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1735. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1736. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1737. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1738. "\xaa\xaa\xaa",
  1739. .ksize = 131,
  1740. .plaintext = "Test Using Large"
  1741. "r Than Block-Siz"
  1742. "e Key - Hash Key"
  1743. " First",
  1744. .psize = 54,
  1745. .digest = "\x80\xb2\x42\x63\xc7\xc1\xa3\xeb"
  1746. "\xb7\x14\x93\xc1\xdd\x7b\xe8\xb4"
  1747. "\x9b\x46\xd1\xf4\x1b\x4a\xee\xc1"
  1748. "\x12\x1b\x01\x37\x83\xf8\xf3\x52"
  1749. "\x6b\x56\xd0\x37\xe0\x5f\x25\x98"
  1750. "\xbd\x0f\xd2\x21\x5d\x6a\x1e\x52"
  1751. "\x95\xe6\x4f\x73\xf6\x3f\x0a\xec"
  1752. "\x8b\x91\x5a\x98\x5d\x78\x65\x98",
  1753. }, {
  1754. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1755. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1756. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1757. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1758. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1759. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1760. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1761. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1762. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1763. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1764. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1765. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1766. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1767. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1768. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1769. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1770. "\xaa\xaa\xaa",
  1771. .ksize = 131,
  1772. .plaintext =
  1773. "This is a test u"
  1774. "sing a larger th"
  1775. "an block-size ke"
  1776. "y and a larger t"
  1777. "han block-size d"
  1778. "ata. The key nee"
  1779. "ds to be hashed "
  1780. "before being use"
  1781. "d by the HMAC al"
  1782. "gorithm.",
  1783. .psize = 152,
  1784. .digest = "\xe3\x7b\x6a\x77\x5d\xc8\x7d\xba"
  1785. "\xa4\xdf\xa9\xf9\x6e\x5e\x3f\xfd"
  1786. "\xde\xbd\x71\xf8\x86\x72\x89\x86"
  1787. "\x5d\xf5\xa3\x2d\x20\xcd\xc9\x44"
  1788. "\xb6\x02\x2c\xac\x3c\x49\x82\xb1"
  1789. "\x0d\x5e\xeb\x55\xc3\xe4\xde\x15"
  1790. "\x13\x46\x76\xfb\x6d\xe0\x44\x60"
  1791. "\x65\xc9\x74\x40\xfa\x8c\x6a\x58",
  1792. },
  1793. };
  1794. /*
  1795. * DES test vectors.
  1796. */
  1797. #define DES_ENC_TEST_VECTORS 10
  1798. #define DES_DEC_TEST_VECTORS 4
  1799. #define DES_CBC_ENC_TEST_VECTORS 5
  1800. #define DES_CBC_DEC_TEST_VECTORS 4
  1801. #define DES3_EDE_ENC_TEST_VECTORS 3
  1802. #define DES3_EDE_DEC_TEST_VECTORS 3
  1803. #define DES3_EDE_CBC_ENC_TEST_VECTORS 1
  1804. #define DES3_EDE_CBC_DEC_TEST_VECTORS 1
  1805. static struct cipher_testvec des_enc_tv_template[] = {
  1806. { /* From Applied Cryptography */
  1807. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1808. .klen = 8,
  1809. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  1810. .ilen = 8,
  1811. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  1812. .rlen = 8,
  1813. }, { /* Same key, different plaintext block */
  1814. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1815. .klen = 8,
  1816. .input = "\x22\x33\x44\x55\x66\x77\x88\x99",
  1817. .ilen = 8,
  1818. .result = "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  1819. .rlen = 8,
  1820. }, { /* Sbox test from NBS */
  1821. .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
  1822. .klen = 8,
  1823. .input = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
  1824. .ilen = 8,
  1825. .result = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  1826. .rlen = 8,
  1827. }, { /* Three blocks */
  1828. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1829. .klen = 8,
  1830. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1831. "\x22\x33\x44\x55\x66\x77\x88\x99"
  1832. "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
  1833. .ilen = 24,
  1834. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1835. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
  1836. "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
  1837. .rlen = 24,
  1838. }, { /* Weak key */
  1839. .fail = 1,
  1840. .wk = 1,
  1841. .key = "\x01\x01\x01\x01\x01\x01\x01\x01",
  1842. .klen = 8,
  1843. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  1844. .ilen = 8,
  1845. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  1846. .rlen = 8,
  1847. }, { /* Two blocks -- for testing encryption across pages */
  1848. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1849. .klen = 8,
  1850. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1851. "\x22\x33\x44\x55\x66\x77\x88\x99",
  1852. .ilen = 16,
  1853. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1854. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  1855. .rlen = 16,
  1856. .np = 2,
  1857. .tap = { 8, 8 }
  1858. }, { /* Four blocks -- for testing encryption with chunking */
  1859. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1860. .klen = 8,
  1861. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1862. "\x22\x33\x44\x55\x66\x77\x88\x99"
  1863. "\xca\xfe\xba\xbe\xfe\xed\xbe\xef"
  1864. "\x22\x33\x44\x55\x66\x77\x88\x99",
  1865. .ilen = 32,
  1866. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1867. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
  1868. "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90"
  1869. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  1870. .rlen = 32,
  1871. .np = 3,
  1872. .tap = { 14, 10, 8 }
  1873. }, {
  1874. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1875. .klen = 8,
  1876. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1877. "\x22\x33\x44\x55\x66\x77\x88\x99"
  1878. "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
  1879. .ilen = 24,
  1880. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1881. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
  1882. "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
  1883. .rlen = 24,
  1884. .np = 4,
  1885. .tap = { 2, 1, 3, 18 }
  1886. }, {
  1887. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1888. .klen = 8,
  1889. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1890. "\x22\x33\x44\x55\x66\x77\x88\x99",
  1891. .ilen = 16,
  1892. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1893. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  1894. .rlen = 16,
  1895. .np = 5,
  1896. .tap = { 2, 2, 2, 2, 8 }
  1897. }, {
  1898. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1899. .klen = 8,
  1900. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  1901. .ilen = 8,
  1902. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  1903. .rlen = 8,
  1904. .np = 8,
  1905. .tap = { 1, 1, 1, 1, 1, 1, 1, 1 }
  1906. },
  1907. };
  1908. static struct cipher_testvec des_dec_tv_template[] = {
  1909. { /* From Applied Cryptography */
  1910. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1911. .klen = 8,
  1912. .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  1913. .ilen = 8,
  1914. .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  1915. .rlen = 8,
  1916. }, { /* Sbox test from NBS */
  1917. .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
  1918. .klen = 8,
  1919. .input = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  1920. .ilen = 8,
  1921. .result = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
  1922. .rlen = 8,
  1923. }, { /* Two blocks, for chunking test */
  1924. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1925. .klen = 8,
  1926. .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1927. "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  1928. .ilen = 16,
  1929. .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1930. "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
  1931. .rlen = 16,
  1932. .np = 2,
  1933. .tap = { 8, 8 }
  1934. }, {
  1935. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1936. .klen = 8,
  1937. .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1938. "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  1939. .ilen = 16,
  1940. .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1941. "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
  1942. .rlen = 16,
  1943. .np = 3,
  1944. .tap = { 3, 12, 1 }
  1945. },
  1946. };
  1947. static struct cipher_testvec des_cbc_enc_tv_template[] = {
  1948. { /* From OpenSSL */
  1949. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1950. .klen = 8,
  1951. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  1952. .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
  1953. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  1954. "\x68\x65\x20\x74\x69\x6d\x65\x20",
  1955. .ilen = 24,
  1956. .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
  1957. "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
  1958. "\x46\x8e\x91\x15\x78\x88\xba\x68",
  1959. .rlen = 24,
  1960. }, { /* FIPS Pub 81 */
  1961. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1962. .klen = 8,
  1963. .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
  1964. .input = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
  1965. .ilen = 8,
  1966. .result = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  1967. .rlen = 8,
  1968. }, {
  1969. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1970. .klen = 8,
  1971. .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  1972. .input = "\x68\x65\x20\x74\x69\x6d\x65\x20",
  1973. .ilen = 8,
  1974. .result = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  1975. .rlen = 8,
  1976. }, {
  1977. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1978. .klen = 8,
  1979. .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  1980. .input = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
  1981. .ilen = 8,
  1982. .result = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
  1983. .rlen = 8,
  1984. }, { /* Copy of openssl vector for chunk testing */
  1985. /* From OpenSSL */
  1986. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1987. .klen = 8,
  1988. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  1989. .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
  1990. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  1991. "\x68\x65\x20\x74\x69\x6d\x65\x20",
  1992. .ilen = 24,
  1993. .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
  1994. "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
  1995. "\x46\x8e\x91\x15\x78\x88\xba\x68",
  1996. .rlen = 24,
  1997. .np = 2,
  1998. .tap = { 13, 11 }
  1999. },
  2000. };
  2001. static struct cipher_testvec des_cbc_dec_tv_template[] = {
  2002. { /* FIPS Pub 81 */
  2003. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2004. .klen = 8,
  2005. .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
  2006. .input = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  2007. .ilen = 8,
  2008. .result = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
  2009. .rlen = 8,
  2010. }, {
  2011. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2012. .klen = 8,
  2013. .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  2014. .input = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  2015. .ilen = 8,
  2016. .result = "\x68\x65\x20\x74\x69\x6d\x65\x20",
  2017. .rlen = 8,
  2018. }, {
  2019. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2020. .klen = 8,
  2021. .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  2022. .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
  2023. .ilen = 8,
  2024. .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
  2025. .rlen = 8,
  2026. }, { /* Copy of above, for chunk testing */
  2027. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2028. .klen = 8,
  2029. .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  2030. .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
  2031. .ilen = 8,
  2032. .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
  2033. .rlen = 8,
  2034. .np = 2,
  2035. .tap = { 4, 4 }
  2036. },
  2037. };
  2038. static struct cipher_testvec des3_ede_enc_tv_template[] = {
  2039. { /* These are from openssl */
  2040. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2041. "\x55\x55\x55\x55\x55\x55\x55\x55"
  2042. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2043. .klen = 24,
  2044. .input = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
  2045. .ilen = 8,
  2046. .result = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
  2047. .rlen = 8,
  2048. }, {
  2049. .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
  2050. "\x86\x02\x87\x66\x59\x08\x21\x98"
  2051. "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
  2052. .klen = 24,
  2053. .input = "\x73\x71\x75\x69\x67\x67\x6c\x65",
  2054. .ilen = 8,
  2055. .result = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
  2056. .rlen = 8,
  2057. }, {
  2058. .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
  2059. "\x91\x07\xd0\x15\x89\x19\x01\x01"
  2060. "\x19\x07\x92\x10\x98\x1a\x01\x01",
  2061. .klen = 24,
  2062. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2063. .ilen = 8,
  2064. .result = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
  2065. .rlen = 8,
  2066. },
  2067. };
  2068. static struct cipher_testvec des3_ede_dec_tv_template[] = {
  2069. { /* These are from openssl */
  2070. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2071. "\x55\x55\x55\x55\x55\x55\x55\x55"
  2072. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2073. .klen = 24,
  2074. .input = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
  2075. .ilen = 8,
  2076. .result = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
  2077. .rlen = 8,
  2078. }, {
  2079. .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
  2080. "\x86\x02\x87\x66\x59\x08\x21\x98"
  2081. "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
  2082. .klen = 24,
  2083. .input = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
  2084. .ilen = 8,
  2085. .result = "\x73\x71\x75\x69\x67\x67\x6c\x65",
  2086. .rlen = 8,
  2087. }, {
  2088. .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
  2089. "\x91\x07\xd0\x15\x89\x19\x01\x01"
  2090. "\x19\x07\x92\x10\x98\x1a\x01\x01",
  2091. .klen = 24,
  2092. .input = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
  2093. .ilen = 8,
  2094. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2095. .rlen = 8,
  2096. },
  2097. };
  2098. static struct cipher_testvec des3_ede_cbc_enc_tv_template[] = {
  2099. { /* Generated from openssl */
  2100. .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
  2101. "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
  2102. "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
  2103. .klen = 24,
  2104. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  2105. .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  2106. "\x53\x20\x63\x65\x65\x72\x73\x74"
  2107. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  2108. "\x20\x79\x65\x53\x72\x63\x74\x65"
  2109. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  2110. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  2111. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  2112. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  2113. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  2114. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  2115. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  2116. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  2117. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  2118. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  2119. "\x63\x65\x65\x72\x73\x74\x54\x20"
  2120. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  2121. .ilen = 128,
  2122. .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
  2123. "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
  2124. "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
  2125. "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
  2126. "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
  2127. "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
  2128. "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
  2129. "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
  2130. "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
  2131. "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
  2132. "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
  2133. "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
  2134. "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
  2135. "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
  2136. "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
  2137. "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
  2138. .rlen = 128,
  2139. },
  2140. };
  2141. static struct cipher_testvec des3_ede_cbc_dec_tv_template[] = {
  2142. { /* Generated from openssl */
  2143. .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
  2144. "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
  2145. "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
  2146. .klen = 24,
  2147. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  2148. .input = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
  2149. "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
  2150. "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
  2151. "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
  2152. "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
  2153. "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
  2154. "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
  2155. "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
  2156. "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
  2157. "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
  2158. "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
  2159. "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
  2160. "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
  2161. "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
  2162. "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
  2163. "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
  2164. .ilen = 128,
  2165. .result = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  2166. "\x53\x20\x63\x65\x65\x72\x73\x74"
  2167. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  2168. "\x20\x79\x65\x53\x72\x63\x74\x65"
  2169. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  2170. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  2171. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  2172. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  2173. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  2174. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  2175. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  2176. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  2177. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  2178. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  2179. "\x63\x65\x65\x72\x73\x74\x54\x20"
  2180. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  2181. .rlen = 128,
  2182. },
  2183. };
  2184. /*
  2185. * Blowfish test vectors.
  2186. */
  2187. #define BF_ENC_TEST_VECTORS 6
  2188. #define BF_DEC_TEST_VECTORS 6
  2189. #define BF_CBC_ENC_TEST_VECTORS 1
  2190. #define BF_CBC_DEC_TEST_VECTORS 1
  2191. static struct cipher_testvec bf_enc_tv_template[] = {
  2192. { /* DES test vectors from OpenSSL */
  2193. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2194. .klen = 8,
  2195. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2196. .ilen = 8,
  2197. .result = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
  2198. .rlen = 8,
  2199. }, {
  2200. .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
  2201. .klen = 8,
  2202. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2203. .ilen = 8,
  2204. .result = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
  2205. .rlen = 8,
  2206. }, {
  2207. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  2208. .klen = 8,
  2209. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2210. .ilen = 8,
  2211. .result = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
  2212. .rlen = 8,
  2213. }, { /* Vary the keylength... */
  2214. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2215. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
  2216. .klen = 16,
  2217. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2218. .ilen = 8,
  2219. .result = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
  2220. .rlen = 8,
  2221. }, {
  2222. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2223. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  2224. "\x00\x11\x22\x33\x44",
  2225. .klen = 21,
  2226. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2227. .ilen = 8,
  2228. .result = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
  2229. .rlen = 8,
  2230. }, { /* Generated with bf488 */
  2231. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2232. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  2233. "\x00\x11\x22\x33\x44\x55\x66\x77"
  2234. "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
  2235. "\x58\x40\x23\x64\x1a\xba\x61\x76"
  2236. "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
  2237. "\xff\xff\xff\xff\xff\xff\xff\xff",
  2238. .klen = 56,
  2239. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2240. .ilen = 8,
  2241. .result = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
  2242. .rlen = 8,
  2243. },
  2244. };
  2245. static struct cipher_testvec bf_dec_tv_template[] = {
  2246. { /* DES test vectors from OpenSSL */
  2247. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2248. .klen = 8,
  2249. .input = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
  2250. .ilen = 8,
  2251. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2252. .rlen = 8,
  2253. }, {
  2254. .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
  2255. .klen = 8,
  2256. .input = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
  2257. .ilen = 8,
  2258. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2259. .rlen = 8,
  2260. }, {
  2261. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  2262. .klen = 8,
  2263. .input = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
  2264. .ilen = 8,
  2265. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2266. .rlen = 8,
  2267. }, { /* Vary the keylength... */
  2268. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2269. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
  2270. .klen = 16,
  2271. .input = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
  2272. .ilen = 8,
  2273. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2274. .rlen = 8,
  2275. }, {
  2276. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2277. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  2278. "\x00\x11\x22\x33\x44",
  2279. .klen = 21,
  2280. .input = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
  2281. .ilen = 8,
  2282. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2283. .rlen = 8,
  2284. }, { /* Generated with bf488, using OpenSSL, Libgcrypt and Nettle */
  2285. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2286. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  2287. "\x00\x11\x22\x33\x44\x55\x66\x77"
  2288. "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
  2289. "\x58\x40\x23\x64\x1a\xba\x61\x76"
  2290. "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
  2291. "\xff\xff\xff\xff\xff\xff\xff\xff",
  2292. .klen = 56,
  2293. .input = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
  2294. .ilen = 8,
  2295. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2296. .rlen = 8,
  2297. },
  2298. };
  2299. static struct cipher_testvec bf_cbc_enc_tv_template[] = {
  2300. { /* From OpenSSL */
  2301. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2302. "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  2303. .klen = 16,
  2304. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2305. .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
  2306. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  2307. "\x68\x65\x20\x74\x69\x6d\x65\x20"
  2308. "\x66\x6f\x72\x20\x00\x00\x00\x00",
  2309. .ilen = 32,
  2310. .result = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
  2311. "\x05\xb1\x56\xe2\x74\x03\x97\x93"
  2312. "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
  2313. "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
  2314. .rlen = 32,
  2315. },
  2316. };
  2317. static struct cipher_testvec bf_cbc_dec_tv_template[] = {
  2318. { /* From OpenSSL */
  2319. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2320. "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  2321. .klen = 16,
  2322. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2323. .input = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
  2324. "\x05\xb1\x56\xe2\x74\x03\x97\x93"
  2325. "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
  2326. "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
  2327. .ilen = 32,
  2328. .result = "\x37\x36\x35\x34\x33\x32\x31\x20"
  2329. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  2330. "\x68\x65\x20\x74\x69\x6d\x65\x20"
  2331. "\x66\x6f\x72\x20\x00\x00\x00\x00",
  2332. .rlen = 32,
  2333. },
  2334. };
  2335. /*
  2336. * Twofish test vectors.
  2337. */
  2338. #define TF_ENC_TEST_VECTORS 3
  2339. #define TF_DEC_TEST_VECTORS 3
  2340. #define TF_CBC_ENC_TEST_VECTORS 4
  2341. #define TF_CBC_DEC_TEST_VECTORS 4
  2342. static struct cipher_testvec tf_enc_tv_template[] = {
  2343. {
  2344. .key = zeroed_string,
  2345. .klen = 16,
  2346. .input = zeroed_string,
  2347. .ilen = 16,
  2348. .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2349. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2350. .rlen = 16,
  2351. }, {
  2352. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2353. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  2354. "\x00\x11\x22\x33\x44\x55\x66\x77",
  2355. .klen = 24,
  2356. .input = zeroed_string,
  2357. .ilen = 16,
  2358. .result = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
  2359. "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
  2360. .rlen = 16,
  2361. }, {
  2362. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2363. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  2364. "\x00\x11\x22\x33\x44\x55\x66\x77"
  2365. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2366. .klen = 32,
  2367. .input = zeroed_string,
  2368. .ilen = 16,
  2369. .result = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
  2370. "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
  2371. .rlen = 16,
  2372. },
  2373. };
  2374. static struct cipher_testvec tf_dec_tv_template[] = {
  2375. {
  2376. .key = zeroed_string,
  2377. .klen = 16,
  2378. .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2379. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2380. .ilen = 16,
  2381. .result = zeroed_string,
  2382. .rlen = 16,
  2383. }, {
  2384. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2385. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  2386. "\x00\x11\x22\x33\x44\x55\x66\x77",
  2387. .klen = 24,
  2388. .input = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
  2389. "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
  2390. .ilen = 16,
  2391. .result = zeroed_string,
  2392. .rlen = 16,
  2393. }, {
  2394. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2395. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  2396. "\x00\x11\x22\x33\x44\x55\x66\x77"
  2397. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2398. .klen = 32,
  2399. .input = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
  2400. "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
  2401. .ilen = 16,
  2402. .result = zeroed_string,
  2403. .rlen = 16,
  2404. },
  2405. };
  2406. static struct cipher_testvec tf_cbc_enc_tv_template[] = {
  2407. { /* Generated with Nettle */
  2408. .key = zeroed_string,
  2409. .klen = 16,
  2410. .iv = zeroed_string,
  2411. .input = zeroed_string,
  2412. .ilen = 16,
  2413. .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2414. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2415. .rlen = 16,
  2416. }, {
  2417. .key = zeroed_string,
  2418. .klen = 16,
  2419. .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2420. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2421. .input = zeroed_string,
  2422. .ilen = 16,
  2423. .result = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2424. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  2425. .rlen = 16,
  2426. }, {
  2427. .key = zeroed_string,
  2428. .klen = 16,
  2429. .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2430. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  2431. .input = zeroed_string,
  2432. .ilen = 16,
  2433. .result = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  2434. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  2435. .rlen = 16,
  2436. }, {
  2437. .key = zeroed_string,
  2438. .klen = 16,
  2439. .iv = zeroed_string,
  2440. .input = zeroed_string,
  2441. .ilen = 48,
  2442. .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2443. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
  2444. "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2445. "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
  2446. "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  2447. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  2448. .rlen = 48,
  2449. },
  2450. };
  2451. static struct cipher_testvec tf_cbc_dec_tv_template[] = {
  2452. { /* Reverse of the first four above */
  2453. .key = zeroed_string,
  2454. .klen = 16,
  2455. .iv = zeroed_string,
  2456. .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2457. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2458. .ilen = 16,
  2459. .result = zeroed_string,
  2460. .rlen = 16,
  2461. }, {
  2462. .key = zeroed_string,
  2463. .klen = 16,
  2464. .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2465. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2466. .input = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2467. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  2468. .ilen = 16,
  2469. .result = zeroed_string,
  2470. .rlen = 16,
  2471. }, {
  2472. .key = zeroed_string,
  2473. .klen = 16,
  2474. .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2475. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  2476. .input = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  2477. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  2478. .ilen = 16,
  2479. .result = zeroed_string,
  2480. .rlen = 16,
  2481. }, {
  2482. .key = zeroed_string,
  2483. .klen = 16,
  2484. .iv = zeroed_string,
  2485. .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2486. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
  2487. "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2488. "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
  2489. "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  2490. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  2491. .ilen = 48,
  2492. .result = zeroed_string,
  2493. .rlen = 48,
  2494. },
  2495. };
  2496. /*
  2497. * Serpent test vectors. These are backwards because Serpent writes
  2498. * octet sequences in right-to-left mode.
  2499. */
  2500. #define SERPENT_ENC_TEST_VECTORS 4
  2501. #define SERPENT_DEC_TEST_VECTORS 4
  2502. #define TNEPRES_ENC_TEST_VECTORS 4
  2503. #define TNEPRES_DEC_TEST_VECTORS 4
  2504. static struct cipher_testvec serpent_enc_tv_template[] = {
  2505. {
  2506. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2507. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2508. .ilen = 16,
  2509. .result = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
  2510. "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
  2511. .rlen = 16,
  2512. }, {
  2513. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2514. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2515. .klen = 16,
  2516. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2517. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2518. .ilen = 16,
  2519. .result = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
  2520. "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
  2521. .rlen = 16,
  2522. }, {
  2523. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2524. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2525. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2526. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2527. .klen = 32,
  2528. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2529. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2530. .ilen = 16,
  2531. .result = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
  2532. "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
  2533. .rlen = 16,
  2534. }, {
  2535. .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
  2536. .klen = 16,
  2537. .input = zeroed_string,
  2538. .ilen = 16,
  2539. .result = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
  2540. "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
  2541. .rlen = 16,
  2542. },
  2543. };
  2544. static struct cipher_testvec tnepres_enc_tv_template[] = {
  2545. { /* KeySize=128, PT=0, I=1 */
  2546. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2547. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2548. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  2549. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2550. .klen = 16,
  2551. .ilen = 16,
  2552. .result = "\x49\xaf\xbf\xad\x9d\x5a\x34\x05"
  2553. "\x2c\xd8\xff\xa5\x98\x6b\xd2\xdd",
  2554. .rlen = 16,
  2555. }, { /* KeySize=192, PT=0, I=1 */
  2556. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  2557. "\x00\x00\x00\x00\x00\x00\x00\x00"
  2558. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2559. .klen = 24,
  2560. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2561. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2562. .ilen = 16,
  2563. .result = "\xe7\x8e\x54\x02\xc7\x19\x55\x68"
  2564. "\xac\x36\x78\xf7\xa3\xf6\x0c\x66",
  2565. .rlen = 16,
  2566. }, { /* KeySize=256, PT=0, I=1 */
  2567. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  2568. "\x00\x00\x00\x00\x00\x00\x00\x00"
  2569. "\x00\x00\x00\x00\x00\x00\x00\x00"
  2570. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2571. .klen = 32,
  2572. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2573. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2574. .ilen = 16,
  2575. .result = "\xab\xed\x96\xe7\x66\xbf\x28\xcb"
  2576. "\xc0\xeb\xd2\x1a\x82\xef\x08\x19",
  2577. .rlen = 16,
  2578. }, { /* KeySize=256, I=257 */
  2579. .key = "\x1f\x1e\x1d\x1c\x1b\x1a\x19\x18"
  2580. "\x17\x16\x15\x14\x13\x12\x11\x10"
  2581. "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
  2582. "\x07\x06\x05\x04\x03\x02\x01\x00",
  2583. .klen = 32,
  2584. .input = "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
  2585. "\x07\x06\x05\x04\x03\x02\x01\x00",
  2586. .ilen = 16,
  2587. .result = "\x5c\xe7\x1c\x70\xd2\x88\x2e\x5b"
  2588. "\xb8\x32\xe4\x33\xf8\x9f\x26\xde",
  2589. .rlen = 16,
  2590. },
  2591. };
  2592. static struct cipher_testvec serpent_dec_tv_template[] = {
  2593. {
  2594. .input = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
  2595. "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
  2596. .ilen = 16,
  2597. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2598. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2599. .rlen = 16,
  2600. }, {
  2601. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2602. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2603. .klen = 16,
  2604. .input = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
  2605. "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
  2606. .ilen = 16,
  2607. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2608. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2609. .rlen = 16,
  2610. }, {
  2611. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2612. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2613. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2614. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2615. .klen = 32,
  2616. .input = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
  2617. "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
  2618. .ilen = 16,
  2619. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2620. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2621. .rlen = 16,
  2622. }, {
  2623. .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
  2624. .klen = 16,
  2625. .input = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
  2626. "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
  2627. .ilen = 16,
  2628. .result = zeroed_string,
  2629. .rlen = 16,
  2630. },
  2631. };
  2632. static struct cipher_testvec tnepres_dec_tv_template[] = {
  2633. {
  2634. .input = "\x41\xcc\x6b\x31\x59\x31\x45\x97"
  2635. "\x6d\x6f\xbb\x38\x4b\x37\x21\x28",
  2636. .ilen = 16,
  2637. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2638. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2639. .rlen = 16,
  2640. }, {
  2641. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2642. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2643. .klen = 16,
  2644. .input = "\xea\xf4\xd7\xfc\xd8\x01\x34\x47"
  2645. "\x81\x45\x0b\xfa\x0c\xd6\xad\x6e",
  2646. .ilen = 16,
  2647. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2648. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2649. .rlen = 16,
  2650. }, {
  2651. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2652. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2653. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2654. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2655. .klen = 32,
  2656. .input = "\x64\xa9\x1a\x37\xed\x9f\xe7\x49"
  2657. "\xa8\x4e\x76\xd6\xf5\x0d\x78\xee",
  2658. .ilen = 16,
  2659. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2660. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2661. .rlen = 16,
  2662. }, { /* KeySize=128, I=121 */
  2663. .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
  2664. .klen = 16,
  2665. .input = "\x3d\xda\xbf\xc0\x06\xda\xab\x06"
  2666. "\x46\x2a\xf4\xef\x81\x54\x4e\x26",
  2667. .ilen = 16,
  2668. .result = zeroed_string,
  2669. .rlen = 16,
  2670. },
  2671. };
  2672. /* Cast6 test vectors from RFC 2612 */
  2673. #define CAST6_ENC_TEST_VECTORS 3
  2674. #define CAST6_DEC_TEST_VECTORS 3
  2675. static struct cipher_testvec cast6_enc_tv_template[] = {
  2676. {
  2677. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2678. "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
  2679. .klen = 16,
  2680. .input = zeroed_string,
  2681. .ilen = 16,
  2682. .result = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
  2683. "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
  2684. .rlen = 16,
  2685. }, {
  2686. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2687. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  2688. "\xba\xc7\x7a\x77\x17\x94\x28\x63",
  2689. .klen = 24,
  2690. .input = zeroed_string,
  2691. .ilen = 16,
  2692. .result = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
  2693. "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
  2694. .rlen = 16,
  2695. }, {
  2696. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2697. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  2698. "\x8d\x7c\x47\xce\x26\x49\x08\x46"
  2699. "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
  2700. .klen = 32,
  2701. .input = zeroed_string,
  2702. .ilen = 16,
  2703. .result = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
  2704. "\xc9\x87\x01\x36\x55\x33\x17\xfa",
  2705. .rlen = 16,
  2706. },
  2707. };
  2708. static struct cipher_testvec cast6_dec_tv_template[] = {
  2709. {
  2710. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2711. "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
  2712. .klen = 16,
  2713. .input = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
  2714. "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
  2715. .ilen = 16,
  2716. .result = zeroed_string,
  2717. .rlen = 16,
  2718. }, {
  2719. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2720. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  2721. "\xba\xc7\x7a\x77\x17\x94\x28\x63",
  2722. .klen = 24,
  2723. .input = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
  2724. "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
  2725. .ilen = 16,
  2726. .result = zeroed_string,
  2727. .rlen = 16,
  2728. }, {
  2729. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2730. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  2731. "\x8d\x7c\x47\xce\x26\x49\x08\x46"
  2732. "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
  2733. .klen = 32,
  2734. .input = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
  2735. "\xc9\x87\x01\x36\x55\x33\x17\xfa",
  2736. .ilen = 16,
  2737. .result = zeroed_string,
  2738. .rlen = 16,
  2739. },
  2740. };
  2741. /*
  2742. * AES test vectors.
  2743. */
  2744. #define AES_ENC_TEST_VECTORS 3
  2745. #define AES_DEC_TEST_VECTORS 3
  2746. #define AES_CBC_ENC_TEST_VECTORS 4
  2747. #define AES_CBC_DEC_TEST_VECTORS 4
  2748. #define AES_LRW_ENC_TEST_VECTORS 8
  2749. #define AES_LRW_DEC_TEST_VECTORS 8
  2750. #define AES_XTS_ENC_TEST_VECTORS 4
  2751. #define AES_XTS_DEC_TEST_VECTORS 4
  2752. #define AES_CTR_ENC_TEST_VECTORS 3
  2753. #define AES_CTR_DEC_TEST_VECTORS 3
  2754. #define AES_CTR_3686_ENC_TEST_VECTORS 7
  2755. #define AES_CTR_3686_DEC_TEST_VECTORS 6
  2756. #define AES_GCM_ENC_TEST_VECTORS 9
  2757. #define AES_GCM_DEC_TEST_VECTORS 8
  2758. #define AES_CCM_ENC_TEST_VECTORS 7
  2759. #define AES_CCM_DEC_TEST_VECTORS 7
  2760. #define AES_CCM_4309_ENC_TEST_VECTORS 7
  2761. #define AES_CCM_4309_DEC_TEST_VECTORS 10
  2762. static struct cipher_testvec aes_enc_tv_template[] = {
  2763. { /* From FIPS-197 */
  2764. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2765. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2766. .klen = 16,
  2767. .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2768. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2769. .ilen = 16,
  2770. .result = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
  2771. "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
  2772. .rlen = 16,
  2773. }, {
  2774. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2775. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2776. "\x10\x11\x12\x13\x14\x15\x16\x17",
  2777. .klen = 24,
  2778. .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2779. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2780. .ilen = 16,
  2781. .result = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
  2782. "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
  2783. .rlen = 16,
  2784. }, {
  2785. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2786. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2787. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2788. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2789. .klen = 32,
  2790. .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2791. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2792. .ilen = 16,
  2793. .result = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
  2794. "\xea\xfc\x49\x90\x4b\x49\x60\x89",
  2795. .rlen = 16,
  2796. },
  2797. };
  2798. static struct cipher_testvec aes_dec_tv_template[] = {
  2799. { /* From FIPS-197 */
  2800. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2801. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2802. .klen = 16,
  2803. .input = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
  2804. "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
  2805. .ilen = 16,
  2806. .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2807. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2808. .rlen = 16,
  2809. }, {
  2810. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2811. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2812. "\x10\x11\x12\x13\x14\x15\x16\x17",
  2813. .klen = 24,
  2814. .input = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
  2815. "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
  2816. .ilen = 16,
  2817. .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2818. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2819. .rlen = 16,
  2820. }, {
  2821. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2822. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2823. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2824. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2825. .klen = 32,
  2826. .input = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
  2827. "\xea\xfc\x49\x90\x4b\x49\x60\x89",
  2828. .ilen = 16,
  2829. .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2830. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2831. .rlen = 16,
  2832. },
  2833. };
  2834. static struct cipher_testvec aes_cbc_enc_tv_template[] = {
  2835. { /* From RFC 3602 */
  2836. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  2837. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  2838. .klen = 16,
  2839. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  2840. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  2841. .input = "Single block msg",
  2842. .ilen = 16,
  2843. .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
  2844. "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
  2845. .rlen = 16,
  2846. }, {
  2847. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  2848. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  2849. .klen = 16,
  2850. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  2851. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  2852. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2853. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2854. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2855. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2856. .ilen = 32,
  2857. .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
  2858. "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
  2859. "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
  2860. "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
  2861. .rlen = 32,
  2862. }, { /* From NIST SP800-38A */
  2863. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  2864. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  2865. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  2866. .klen = 24,
  2867. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2868. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2869. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  2870. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  2871. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  2872. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  2873. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  2874. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  2875. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  2876. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  2877. .ilen = 64,
  2878. .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
  2879. "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
  2880. "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
  2881. "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
  2882. "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
  2883. "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
  2884. "\x08\xb0\xe2\x79\x88\x59\x88\x81"
  2885. "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
  2886. .rlen = 64,
  2887. }, {
  2888. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  2889. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  2890. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  2891. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  2892. .klen = 32,
  2893. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2894. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2895. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  2896. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  2897. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  2898. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  2899. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  2900. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  2901. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  2902. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  2903. .ilen = 64,
  2904. .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
  2905. "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
  2906. "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
  2907. "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
  2908. "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
  2909. "\xa5\x30\xe2\x63\x04\x23\x14\x61"
  2910. "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
  2911. "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
  2912. .rlen = 64,
  2913. },
  2914. };
  2915. static struct cipher_testvec aes_cbc_dec_tv_template[] = {
  2916. { /* From RFC 3602 */
  2917. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  2918. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  2919. .klen = 16,
  2920. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  2921. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  2922. .input = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
  2923. "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
  2924. .ilen = 16,
  2925. .result = "Single block msg",
  2926. .rlen = 16,
  2927. }, {
  2928. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  2929. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  2930. .klen = 16,
  2931. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  2932. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  2933. .input = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
  2934. "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
  2935. "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
  2936. "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
  2937. .ilen = 32,
  2938. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2939. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2940. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2941. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2942. .rlen = 32,
  2943. }, { /* From NIST SP800-38A */
  2944. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  2945. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  2946. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  2947. .klen = 24,
  2948. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2949. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2950. .input = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
  2951. "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
  2952. "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
  2953. "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
  2954. "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
  2955. "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
  2956. "\x08\xb0\xe2\x79\x88\x59\x88\x81"
  2957. "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
  2958. .ilen = 64,
  2959. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  2960. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  2961. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  2962. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  2963. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  2964. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  2965. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  2966. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  2967. .rlen = 64,
  2968. }, {
  2969. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  2970. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  2971. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  2972. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  2973. .klen = 32,
  2974. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2975. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2976. .input = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
  2977. "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
  2978. "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
  2979. "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
  2980. "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
  2981. "\xa5\x30\xe2\x63\x04\x23\x14\x61"
  2982. "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
  2983. "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
  2984. .ilen = 64,
  2985. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  2986. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  2987. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  2988. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  2989. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  2990. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  2991. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  2992. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  2993. .rlen = 64,
  2994. },
  2995. };
  2996. static struct cipher_testvec aes_lrw_enc_tv_template[] = {
  2997. /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
  2998. { /* LRW-32-AES 1 */
  2999. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  3000. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  3001. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  3002. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  3003. .klen = 32,
  3004. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3005. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3006. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3007. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3008. .ilen = 16,
  3009. .result = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
  3010. "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
  3011. .rlen = 16,
  3012. }, { /* LRW-32-AES 2 */
  3013. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  3014. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  3015. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  3016. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  3017. .klen = 32,
  3018. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3019. "\x00\x00\x00\x00\x00\x00\x00\x02",
  3020. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3021. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3022. .ilen = 16,
  3023. .result = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
  3024. "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
  3025. .rlen = 16,
  3026. }, { /* LRW-32-AES 3 */
  3027. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  3028. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  3029. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  3030. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  3031. .klen = 32,
  3032. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3033. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3034. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3035. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3036. .ilen = 16,
  3037. .result = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
  3038. "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
  3039. .rlen = 16,
  3040. }, { /* LRW-32-AES 4 */
  3041. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  3042. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  3043. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  3044. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  3045. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  3046. .klen = 40,
  3047. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3048. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3049. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3050. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3051. .ilen = 16,
  3052. .result = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
  3053. "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
  3054. .rlen = 16,
  3055. }, { /* LRW-32-AES 5 */
  3056. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  3057. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  3058. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  3059. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  3060. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  3061. .klen = 40,
  3062. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3063. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3064. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3065. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3066. .ilen = 16,
  3067. .result = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
  3068. "\xc8\x60\x48\x02\x87\xe3\x34\x06",
  3069. .rlen = 16,
  3070. }, { /* LRW-32-AES 6 */
  3071. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  3072. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  3073. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  3074. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  3075. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  3076. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  3077. .klen = 48,
  3078. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3079. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3080. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3081. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3082. .ilen = 16,
  3083. .result = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
  3084. "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
  3085. .rlen = 16,
  3086. }, { /* LRW-32-AES 7 */
  3087. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  3088. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  3089. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  3090. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  3091. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  3092. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  3093. .klen = 48,
  3094. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3095. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3096. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3097. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3098. .ilen = 16,
  3099. .result = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
  3100. "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
  3101. .rlen = 16,
  3102. }, {
  3103. /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
  3104. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  3105. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  3106. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  3107. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  3108. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  3109. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  3110. .klen = 48,
  3111. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3112. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3113. .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  3114. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  3115. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  3116. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  3117. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  3118. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  3119. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  3120. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  3121. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  3122. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  3123. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  3124. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  3125. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  3126. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  3127. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  3128. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  3129. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  3130. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  3131. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  3132. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  3133. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  3134. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  3135. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  3136. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  3137. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  3138. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  3139. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  3140. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  3141. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  3142. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  3143. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  3144. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  3145. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  3146. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  3147. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  3148. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  3149. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  3150. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  3151. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  3152. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  3153. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  3154. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  3155. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  3156. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  3157. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  3158. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  3159. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  3160. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  3161. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  3162. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  3163. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  3164. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  3165. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  3166. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  3167. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  3168. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  3169. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  3170. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  3171. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  3172. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  3173. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  3174. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  3175. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  3176. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  3177. .ilen = 512,
  3178. .result = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
  3179. "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
  3180. "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
  3181. "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
  3182. "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
  3183. "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
  3184. "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
  3185. "\xe8\x58\x46\x97\x39\x51\x07\xde"
  3186. "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
  3187. "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
  3188. "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
  3189. "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
  3190. "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
  3191. "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
  3192. "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
  3193. "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
  3194. "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
  3195. "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
  3196. "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
  3197. "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
  3198. "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
  3199. "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
  3200. "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
  3201. "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
  3202. "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
  3203. "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
  3204. "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
  3205. "\x41\x30\x58\xc5\x62\x74\x52\x1d"
  3206. "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
  3207. "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
  3208. "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
  3209. "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
  3210. "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
  3211. "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
  3212. "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
  3213. "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
  3214. "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
  3215. "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
  3216. "\xb8\x79\x78\x97\x94\xff\x72\x13"
  3217. "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
  3218. "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
  3219. "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
  3220. "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
  3221. "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
  3222. "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
  3223. "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
  3224. "\x1e\x86\x53\x11\x53\x94\x00\xee"
  3225. "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
  3226. "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
  3227. "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
  3228. "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
  3229. "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
  3230. "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
  3231. "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
  3232. "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
  3233. "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
  3234. "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
  3235. "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
  3236. "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
  3237. "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
  3238. "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
  3239. "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
  3240. "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
  3241. "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
  3242. .rlen = 512,
  3243. }
  3244. };
  3245. static struct cipher_testvec aes_lrw_dec_tv_template[] = {
  3246. /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
  3247. /* same as enc vectors with input and result reversed */
  3248. { /* LRW-32-AES 1 */
  3249. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  3250. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  3251. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  3252. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  3253. .klen = 32,
  3254. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3255. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3256. .input = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
  3257. "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
  3258. .ilen = 16,
  3259. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3260. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3261. .rlen = 16,
  3262. }, { /* LRW-32-AES 2 */
  3263. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  3264. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  3265. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  3266. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  3267. .klen = 32,
  3268. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3269. "\x00\x00\x00\x00\x00\x00\x00\x02",
  3270. .input = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
  3271. "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
  3272. .ilen = 16,
  3273. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3274. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3275. .rlen = 16,
  3276. }, { /* LRW-32-AES 3 */
  3277. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  3278. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  3279. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  3280. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  3281. .klen = 32,
  3282. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3283. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3284. .input = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
  3285. "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
  3286. .ilen = 16,
  3287. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3288. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3289. .rlen = 16,
  3290. }, { /* LRW-32-AES 4 */
  3291. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  3292. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  3293. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  3294. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  3295. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  3296. .klen = 40,
  3297. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3298. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3299. .input = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
  3300. "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
  3301. .ilen = 16,
  3302. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3303. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3304. .rlen = 16,
  3305. }, { /* LRW-32-AES 5 */
  3306. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  3307. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  3308. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  3309. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  3310. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  3311. .klen = 40,
  3312. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3313. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3314. .input = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
  3315. "\xc8\x60\x48\x02\x87\xe3\x34\x06",
  3316. .ilen = 16,
  3317. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3318. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3319. .rlen = 16,
  3320. }, { /* LRW-32-AES 6 */
  3321. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  3322. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  3323. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  3324. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  3325. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  3326. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  3327. .klen = 48,
  3328. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3329. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3330. .input = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
  3331. "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
  3332. .ilen = 16,
  3333. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3334. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3335. .rlen = 16,
  3336. }, { /* LRW-32-AES 7 */
  3337. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  3338. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  3339. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  3340. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  3341. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  3342. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  3343. .klen = 48,
  3344. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3345. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3346. .input = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
  3347. "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
  3348. .ilen = 16,
  3349. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3350. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3351. .rlen = 16,
  3352. }, {
  3353. /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
  3354. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  3355. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  3356. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  3357. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  3358. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  3359. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  3360. .klen = 48,
  3361. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3362. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3363. .input = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
  3364. "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
  3365. "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
  3366. "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
  3367. "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
  3368. "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
  3369. "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
  3370. "\xe8\x58\x46\x97\x39\x51\x07\xde"
  3371. "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
  3372. "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
  3373. "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
  3374. "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
  3375. "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
  3376. "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
  3377. "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
  3378. "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
  3379. "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
  3380. "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
  3381. "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
  3382. "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
  3383. "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
  3384. "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
  3385. "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
  3386. "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
  3387. "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
  3388. "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
  3389. "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
  3390. "\x41\x30\x58\xc5\x62\x74\x52\x1d"
  3391. "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
  3392. "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
  3393. "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
  3394. "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
  3395. "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
  3396. "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
  3397. "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
  3398. "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
  3399. "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
  3400. "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
  3401. "\xb8\x79\x78\x97\x94\xff\x72\x13"
  3402. "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
  3403. "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
  3404. "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
  3405. "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
  3406. "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
  3407. "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
  3408. "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
  3409. "\x1e\x86\x53\x11\x53\x94\x00\xee"
  3410. "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
  3411. "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
  3412. "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
  3413. "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
  3414. "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
  3415. "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
  3416. "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
  3417. "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
  3418. "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
  3419. "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
  3420. "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
  3421. "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
  3422. "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
  3423. "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
  3424. "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
  3425. "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
  3426. "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
  3427. .ilen = 512,
  3428. .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  3429. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  3430. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  3431. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  3432. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  3433. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  3434. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  3435. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  3436. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  3437. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  3438. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  3439. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  3440. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  3441. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  3442. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  3443. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  3444. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  3445. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  3446. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  3447. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  3448. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  3449. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  3450. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  3451. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  3452. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  3453. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  3454. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  3455. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  3456. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  3457. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  3458. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  3459. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  3460. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  3461. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  3462. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  3463. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  3464. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  3465. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  3466. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  3467. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  3468. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  3469. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  3470. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  3471. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  3472. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  3473. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  3474. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  3475. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  3476. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  3477. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  3478. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  3479. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  3480. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  3481. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  3482. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  3483. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  3484. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  3485. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  3486. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  3487. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  3488. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  3489. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  3490. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  3491. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  3492. .rlen = 512,
  3493. }
  3494. };
  3495. static struct cipher_testvec aes_xts_enc_tv_template[] = {
  3496. /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
  3497. { /* XTS-AES 1 */
  3498. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3499. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3500. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3501. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3502. .klen = 32,
  3503. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3504. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3505. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3506. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3507. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3508. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3509. .ilen = 32,
  3510. .result = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
  3511. "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
  3512. "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
  3513. "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
  3514. .rlen = 32,
  3515. }, { /* XTS-AES 2 */
  3516. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  3517. "\x11\x11\x11\x11\x11\x11\x11\x11"
  3518. "\x22\x22\x22\x22\x22\x22\x22\x22"
  3519. "\x22\x22\x22\x22\x22\x22\x22\x22",
  3520. .klen = 32,
  3521. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  3522. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3523. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  3524. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3525. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3526. "\x44\x44\x44\x44\x44\x44\x44\x44",
  3527. .ilen = 32,
  3528. .result = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
  3529. "\x39\x33\x40\x38\xac\xef\x83\x8b"
  3530. "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
  3531. "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
  3532. .rlen = 32,
  3533. }, { /* XTS-AES 3 */
  3534. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  3535. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  3536. "\x22\x22\x22\x22\x22\x22\x22\x22"
  3537. "\x22\x22\x22\x22\x22\x22\x22\x22",
  3538. .klen = 32,
  3539. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  3540. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3541. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  3542. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3543. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3544. "\x44\x44\x44\x44\x44\x44\x44\x44",
  3545. .ilen = 32,
  3546. .result = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
  3547. "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
  3548. "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
  3549. "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
  3550. .rlen = 32,
  3551. }, { /* XTS-AES 4 */
  3552. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  3553. "\x23\x53\x60\x28\x74\x71\x35\x26"
  3554. "\x31\x41\x59\x26\x53\x58\x97\x93"
  3555. "\x23\x84\x62\x64\x33\x83\x27\x95",
  3556. .klen = 32,
  3557. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3558. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3559. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3560. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3561. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3562. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  3563. "\x20\x21\x22\x23\x24\x25\x26\x27"
  3564. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  3565. "\x30\x31\x32\x33\x34\x35\x36\x37"
  3566. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  3567. "\x40\x41\x42\x43\x44\x45\x46\x47"
  3568. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  3569. "\x50\x51\x52\x53\x54\x55\x56\x57"
  3570. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  3571. "\x60\x61\x62\x63\x64\x65\x66\x67"
  3572. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  3573. "\x70\x71\x72\x73\x74\x75\x76\x77"
  3574. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  3575. "\x80\x81\x82\x83\x84\x85\x86\x87"
  3576. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  3577. "\x90\x91\x92\x93\x94\x95\x96\x97"
  3578. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  3579. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  3580. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  3581. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  3582. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  3583. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  3584. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  3585. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  3586. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  3587. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  3588. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  3589. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3590. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  3591. "\x00\x01\x02\x03\x04\x05\x06\x07"
  3592. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3593. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3594. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  3595. "\x20\x21\x22\x23\x24\x25\x26\x27"
  3596. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  3597. "\x30\x31\x32\x33\x34\x35\x36\x37"
  3598. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  3599. "\x40\x41\x42\x43\x44\x45\x46\x47"
  3600. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  3601. "\x50\x51\x52\x53\x54\x55\x56\x57"
  3602. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  3603. "\x60\x61\x62\x63\x64\x65\x66\x67"
  3604. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  3605. "\x70\x71\x72\x73\x74\x75\x76\x77"
  3606. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  3607. "\x80\x81\x82\x83\x84\x85\x86\x87"
  3608. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  3609. "\x90\x91\x92\x93\x94\x95\x96\x97"
  3610. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  3611. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  3612. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  3613. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  3614. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  3615. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  3616. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  3617. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  3618. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  3619. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  3620. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  3621. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3622. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  3623. .ilen = 512,
  3624. .result = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
  3625. "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
  3626. "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
  3627. "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
  3628. "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
  3629. "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
  3630. "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
  3631. "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
  3632. "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
  3633. "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
  3634. "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
  3635. "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
  3636. "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
  3637. "\x22\x97\x61\x46\xae\x20\xce\x84"
  3638. "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
  3639. "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
  3640. "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
  3641. "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
  3642. "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
  3643. "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
  3644. "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
  3645. "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
  3646. "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
  3647. "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
  3648. "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
  3649. "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
  3650. "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
  3651. "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
  3652. "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
  3653. "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
  3654. "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
  3655. "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
  3656. "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
  3657. "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
  3658. "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
  3659. "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
  3660. "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
  3661. "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
  3662. "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
  3663. "\x55\xef\x52\x97\xca\x67\xe9\xf3"
  3664. "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
  3665. "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
  3666. "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
  3667. "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
  3668. "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
  3669. "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
  3670. "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
  3671. "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
  3672. "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
  3673. "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
  3674. "\x18\x84\x69\x77\xae\x11\x9f\x7a"
  3675. "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
  3676. "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
  3677. "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
  3678. "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
  3679. "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
  3680. "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
  3681. "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
  3682. "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
  3683. "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
  3684. "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
  3685. "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
  3686. "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
  3687. "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
  3688. .rlen = 512,
  3689. }
  3690. };
  3691. static struct cipher_testvec aes_xts_dec_tv_template[] = {
  3692. /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
  3693. { /* XTS-AES 1 */
  3694. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3695. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3696. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3697. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3698. .klen = 32,
  3699. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3700. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3701. .input = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
  3702. "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
  3703. "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
  3704. "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
  3705. .ilen = 32,
  3706. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3707. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3708. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3709. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3710. .rlen = 32,
  3711. }, { /* XTS-AES 2 */
  3712. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  3713. "\x11\x11\x11\x11\x11\x11\x11\x11"
  3714. "\x22\x22\x22\x22\x22\x22\x22\x22"
  3715. "\x22\x22\x22\x22\x22\x22\x22\x22",
  3716. .klen = 32,
  3717. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  3718. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3719. .input = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
  3720. "\x39\x33\x40\x38\xac\xef\x83\x8b"
  3721. "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
  3722. "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
  3723. .ilen = 32,
  3724. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  3725. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3726. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3727. "\x44\x44\x44\x44\x44\x44\x44\x44",
  3728. .rlen = 32,
  3729. }, { /* XTS-AES 3 */
  3730. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  3731. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  3732. "\x22\x22\x22\x22\x22\x22\x22\x22"
  3733. "\x22\x22\x22\x22\x22\x22\x22\x22",
  3734. .klen = 32,
  3735. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  3736. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3737. .input = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
  3738. "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
  3739. "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
  3740. "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
  3741. .ilen = 32,
  3742. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  3743. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3744. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3745. "\x44\x44\x44\x44\x44\x44\x44\x44",
  3746. .rlen = 32,
  3747. }, { /* XTS-AES 4 */
  3748. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  3749. "\x23\x53\x60\x28\x74\x71\x35\x26"
  3750. "\x31\x41\x59\x26\x53\x58\x97\x93"
  3751. "\x23\x84\x62\x64\x33\x83\x27\x95",
  3752. .klen = 32,
  3753. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3754. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3755. .input = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
  3756. "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
  3757. "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
  3758. "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
  3759. "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
  3760. "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
  3761. "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
  3762. "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
  3763. "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
  3764. "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
  3765. "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
  3766. "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
  3767. "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
  3768. "\x22\x97\x61\x46\xae\x20\xce\x84"
  3769. "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
  3770. "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
  3771. "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
  3772. "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
  3773. "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
  3774. "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
  3775. "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
  3776. "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
  3777. "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
  3778. "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
  3779. "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
  3780. "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
  3781. "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
  3782. "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
  3783. "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
  3784. "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
  3785. "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
  3786. "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
  3787. "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
  3788. "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
  3789. "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
  3790. "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
  3791. "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
  3792. "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
  3793. "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
  3794. "\x55\xef\x52\x97\xca\x67\xe9\xf3"
  3795. "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
  3796. "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
  3797. "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
  3798. "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
  3799. "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
  3800. "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
  3801. "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
  3802. "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
  3803. "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
  3804. "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
  3805. "\x18\x84\x69\x77\xae\x11\x9f\x7a"
  3806. "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
  3807. "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
  3808. "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
  3809. "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
  3810. "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
  3811. "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
  3812. "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
  3813. "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
  3814. "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
  3815. "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
  3816. "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
  3817. "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
  3818. "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
  3819. .ilen = 512,
  3820. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3821. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3822. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3823. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  3824. "\x20\x21\x22\x23\x24\x25\x26\x27"
  3825. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  3826. "\x30\x31\x32\x33\x34\x35\x36\x37"
  3827. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  3828. "\x40\x41\x42\x43\x44\x45\x46\x47"
  3829. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  3830. "\x50\x51\x52\x53\x54\x55\x56\x57"
  3831. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  3832. "\x60\x61\x62\x63\x64\x65\x66\x67"
  3833. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  3834. "\x70\x71\x72\x73\x74\x75\x76\x77"
  3835. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  3836. "\x80\x81\x82\x83\x84\x85\x86\x87"
  3837. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  3838. "\x90\x91\x92\x93\x94\x95\x96\x97"
  3839. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  3840. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  3841. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  3842. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  3843. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  3844. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  3845. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  3846. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  3847. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  3848. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  3849. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  3850. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3851. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  3852. "\x00\x01\x02\x03\x04\x05\x06\x07"
  3853. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3854. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3855. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  3856. "\x20\x21\x22\x23\x24\x25\x26\x27"
  3857. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  3858. "\x30\x31\x32\x33\x34\x35\x36\x37"
  3859. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  3860. "\x40\x41\x42\x43\x44\x45\x46\x47"
  3861. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  3862. "\x50\x51\x52\x53\x54\x55\x56\x57"
  3863. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  3864. "\x60\x61\x62\x63\x64\x65\x66\x67"
  3865. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  3866. "\x70\x71\x72\x73\x74\x75\x76\x77"
  3867. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  3868. "\x80\x81\x82\x83\x84\x85\x86\x87"
  3869. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  3870. "\x90\x91\x92\x93\x94\x95\x96\x97"
  3871. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  3872. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  3873. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  3874. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  3875. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  3876. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  3877. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  3878. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  3879. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  3880. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  3881. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  3882. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3883. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  3884. .rlen = 512,
  3885. }
  3886. };
  3887. static struct cipher_testvec aes_ctr_enc_tv_template[] = {
  3888. { /* From NIST Special Publication 800-38A, Appendix F.5 */
  3889. .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
  3890. "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
  3891. .klen = 16,
  3892. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3893. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  3894. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  3895. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  3896. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  3897. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  3898. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  3899. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  3900. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  3901. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  3902. .ilen = 64,
  3903. .result = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
  3904. "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
  3905. "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
  3906. "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
  3907. "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
  3908. "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
  3909. "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
  3910. "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
  3911. .rlen = 64,
  3912. }, {
  3913. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  3914. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  3915. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  3916. .klen = 24,
  3917. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3918. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  3919. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  3920. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  3921. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  3922. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  3923. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  3924. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  3925. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  3926. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  3927. .ilen = 64,
  3928. .result = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
  3929. "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
  3930. "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
  3931. "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
  3932. "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
  3933. "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
  3934. "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
  3935. "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
  3936. .rlen = 64,
  3937. }, {
  3938. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  3939. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  3940. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  3941. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  3942. .klen = 32,
  3943. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3944. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  3945. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  3946. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  3947. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  3948. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  3949. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  3950. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  3951. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  3952. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  3953. .ilen = 64,
  3954. .result = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
  3955. "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
  3956. "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
  3957. "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
  3958. "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
  3959. "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
  3960. "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
  3961. "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
  3962. .rlen = 64,
  3963. }
  3964. };
  3965. static struct cipher_testvec aes_ctr_dec_tv_template[] = {
  3966. { /* From NIST Special Publication 800-38A, Appendix F.5 */
  3967. .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
  3968. "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
  3969. .klen = 16,
  3970. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3971. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  3972. .input = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
  3973. "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
  3974. "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
  3975. "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
  3976. "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
  3977. "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
  3978. "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
  3979. "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
  3980. .ilen = 64,
  3981. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  3982. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  3983. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  3984. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  3985. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  3986. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  3987. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  3988. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  3989. .rlen = 64,
  3990. }, {
  3991. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  3992. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  3993. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  3994. .klen = 24,
  3995. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3996. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  3997. .input = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
  3998. "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
  3999. "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
  4000. "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
  4001. "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
  4002. "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
  4003. "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
  4004. "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
  4005. .ilen = 64,
  4006. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  4007. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  4008. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  4009. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  4010. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  4011. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  4012. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  4013. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  4014. .rlen = 64,
  4015. }, {
  4016. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  4017. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  4018. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  4019. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  4020. .klen = 32,
  4021. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4022. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  4023. .input = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
  4024. "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
  4025. "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
  4026. "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
  4027. "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
  4028. "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
  4029. "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
  4030. "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
  4031. .ilen = 64,
  4032. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  4033. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  4034. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  4035. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  4036. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  4037. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  4038. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  4039. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  4040. .rlen = 64,
  4041. }
  4042. };
  4043. static struct cipher_testvec aes_ctr_rfc3686_enc_tv_template[] = {
  4044. { /* From RFC 3686 */
  4045. .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
  4046. "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
  4047. "\x00\x00\x00\x30",
  4048. .klen = 20,
  4049. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  4050. .input = "Single block msg",
  4051. .ilen = 16,
  4052. .result = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
  4053. "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
  4054. .rlen = 16,
  4055. }, {
  4056. .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
  4057. "\x43\xd6\xce\x1f\x32\x53\x91\x63"
  4058. "\x00\x6c\xb6\xdb",
  4059. .klen = 20,
  4060. .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
  4061. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  4062. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4063. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4064. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  4065. .ilen = 32,
  4066. .result = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
  4067. "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
  4068. "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
  4069. "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
  4070. .rlen = 32,
  4071. }, {
  4072. .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
  4073. "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
  4074. "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
  4075. "\x00\x00\x00\x48",
  4076. .klen = 28,
  4077. .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
  4078. .input = "Single block msg",
  4079. .ilen = 16,
  4080. .result = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
  4081. "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
  4082. .rlen = 16,
  4083. }, {
  4084. .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
  4085. "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
  4086. "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
  4087. "\x00\x96\xb0\x3b",
  4088. .klen = 28,
  4089. .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
  4090. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  4091. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4092. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4093. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  4094. .ilen = 32,
  4095. .result = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
  4096. "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
  4097. "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
  4098. "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
  4099. .rlen = 32,
  4100. }, {
  4101. .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
  4102. "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
  4103. "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
  4104. "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
  4105. "\x00\x00\x00\x60",
  4106. .klen = 36,
  4107. .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
  4108. .input = "Single block msg",
  4109. .ilen = 16,
  4110. .result = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
  4111. "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
  4112. .rlen = 16,
  4113. }, {
  4114. .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
  4115. "\x07\x96\x36\x58\x79\xef\xf8\x86"
  4116. "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
  4117. "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
  4118. "\x00\xfa\xac\x24",
  4119. .klen = 36,
  4120. .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
  4121. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  4122. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4123. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4124. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  4125. .ilen = 32,
  4126. .result = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
  4127. "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
  4128. "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
  4129. "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
  4130. .rlen = 32,
  4131. }, {
  4132. // generated using Crypto++
  4133. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  4134. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4135. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4136. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  4137. "\x00\x00\x00\x00",
  4138. .klen = 32 + 4,
  4139. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  4140. .input =
  4141. "\x00\x01\x02\x03\x04\x05\x06\x07"
  4142. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4143. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4144. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  4145. "\x20\x21\x22\x23\x24\x25\x26\x27"
  4146. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  4147. "\x30\x31\x32\x33\x34\x35\x36\x37"
  4148. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  4149. "\x40\x41\x42\x43\x44\x45\x46\x47"
  4150. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  4151. "\x50\x51\x52\x53\x54\x55\x56\x57"
  4152. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  4153. "\x60\x61\x62\x63\x64\x65\x66\x67"
  4154. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  4155. "\x70\x71\x72\x73\x74\x75\x76\x77"
  4156. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  4157. "\x80\x81\x82\x83\x84\x85\x86\x87"
  4158. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  4159. "\x90\x91\x92\x93\x94\x95\x96\x97"
  4160. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  4161. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  4162. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  4163. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  4164. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  4165. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  4166. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  4167. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  4168. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  4169. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  4170. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  4171. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4172. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  4173. "\x00\x03\x06\x09\x0c\x0f\x12\x15"
  4174. "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
  4175. "\x30\x33\x36\x39\x3c\x3f\x42\x45"
  4176. "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
  4177. "\x60\x63\x66\x69\x6c\x6f\x72\x75"
  4178. "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
  4179. "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
  4180. "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
  4181. "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
  4182. "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
  4183. "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
  4184. "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
  4185. "\x20\x23\x26\x29\x2c\x2f\x32\x35"
  4186. "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
  4187. "\x50\x53\x56\x59\x5c\x5f\x62\x65"
  4188. "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
  4189. "\x80\x83\x86\x89\x8c\x8f\x92\x95"
  4190. "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
  4191. "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
  4192. "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
  4193. "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
  4194. "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
  4195. "\x10\x13\x16\x19\x1c\x1f\x22\x25"
  4196. "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
  4197. "\x40\x43\x46\x49\x4c\x4f\x52\x55"
  4198. "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
  4199. "\x70\x73\x76\x79\x7c\x7f\x82\x85"
  4200. "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
  4201. "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
  4202. "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
  4203. "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
  4204. "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
  4205. "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
  4206. "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
  4207. "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
  4208. "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
  4209. "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
  4210. "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
  4211. "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
  4212. "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
  4213. "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
  4214. "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
  4215. "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
  4216. "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
  4217. "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
  4218. "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
  4219. "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
  4220. "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
  4221. "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
  4222. "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
  4223. "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
  4224. "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
  4225. "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
  4226. "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
  4227. "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
  4228. "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
  4229. "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
  4230. "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
  4231. "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
  4232. "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
  4233. "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
  4234. "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
  4235. "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
  4236. "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
  4237. "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
  4238. "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
  4239. "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
  4240. "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
  4241. "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
  4242. "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
  4243. "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
  4244. "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
  4245. "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
  4246. "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
  4247. "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
  4248. "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
  4249. "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
  4250. "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
  4251. "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
  4252. "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
  4253. "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
  4254. "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
  4255. "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
  4256. "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
  4257. "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
  4258. "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
  4259. "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
  4260. "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
  4261. "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
  4262. "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
  4263. "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
  4264. "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
  4265. "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
  4266. "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
  4267. "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
  4268. "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
  4269. "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
  4270. "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
  4271. "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
  4272. "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
  4273. "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
  4274. "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
  4275. "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
  4276. "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
  4277. "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
  4278. "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
  4279. "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
  4280. "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
  4281. "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
  4282. "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
  4283. "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
  4284. "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
  4285. "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
  4286. "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
  4287. "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
  4288. "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
  4289. "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
  4290. "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
  4291. "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
  4292. "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
  4293. "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
  4294. "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
  4295. "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
  4296. "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
  4297. "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
  4298. "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
  4299. "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
  4300. "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
  4301. "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
  4302. "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
  4303. "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
  4304. "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
  4305. "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
  4306. "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
  4307. "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
  4308. "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
  4309. "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
  4310. "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
  4311. "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
  4312. "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
  4313. "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
  4314. "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
  4315. "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
  4316. "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
  4317. "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
  4318. "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
  4319. "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
  4320. "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
  4321. "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
  4322. "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
  4323. "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
  4324. "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
  4325. "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
  4326. "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
  4327. "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
  4328. "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
  4329. "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
  4330. "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
  4331. "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
  4332. "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
  4333. "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
  4334. "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
  4335. "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
  4336. "\x38\x45\x52\x5f\x6c\x79\x86\x93"
  4337. "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
  4338. "\x08\x15\x22\x2f\x3c\x49\x56\x63"
  4339. "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
  4340. "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
  4341. "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
  4342. "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
  4343. "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
  4344. "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
  4345. "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
  4346. "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
  4347. "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
  4348. "\x18\x25\x32\x3f\x4c\x59\x66\x73"
  4349. "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
  4350. "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
  4351. "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
  4352. "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
  4353. "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
  4354. "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
  4355. "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
  4356. "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
  4357. "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
  4358. "\x28\x35\x42\x4f\x5c\x69\x76\x83"
  4359. "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
  4360. "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
  4361. "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
  4362. "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
  4363. "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
  4364. "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
  4365. "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
  4366. "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
  4367. "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
  4368. "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
  4369. "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
  4370. "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
  4371. "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
  4372. "\x48\x57\x66\x75\x84\x93\xa2\xb1"
  4373. "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
  4374. "\x38\x47\x56\x65\x74\x83\x92\xa1"
  4375. "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
  4376. "\x28\x37\x46\x55\x64\x73\x82\x91"
  4377. "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
  4378. "\x18\x27\x36\x45\x54\x63\x72\x81"
  4379. "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
  4380. "\x08\x17\x26\x35\x44\x53\x62\x71"
  4381. "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
  4382. "\xf8\x07\x16\x25\x34\x43\x52\x61"
  4383. "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
  4384. "\xe8\xf7\x06\x15\x24\x33\x42\x51"
  4385. "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
  4386. "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
  4387. "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
  4388. "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
  4389. "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
  4390. "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
  4391. "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
  4392. "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
  4393. "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
  4394. "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
  4395. "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
  4396. "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
  4397. "\x00\x11\x22\x33\x44\x55\x66\x77"
  4398. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
  4399. "\x10\x21\x32\x43\x54\x65\x76\x87"
  4400. "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
  4401. "\x20\x31\x42\x53\x64\x75\x86\x97"
  4402. "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
  4403. "\x30\x41\x52\x63\x74\x85\x96\xa7"
  4404. "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
  4405. "\x40\x51\x62\x73\x84\x95\xa6\xb7"
  4406. "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
  4407. "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
  4408. "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
  4409. "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
  4410. "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
  4411. "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
  4412. "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
  4413. "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
  4414. "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
  4415. "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
  4416. "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
  4417. "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
  4418. "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
  4419. "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
  4420. "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
  4421. "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
  4422. "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
  4423. "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
  4424. "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
  4425. "\xe0\xf1\x02\x13\x24\x35\x46\x57"
  4426. "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
  4427. "\xf0\x01\x12\x23\x34\x45\x56\x67"
  4428. "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
  4429. "\x00\x13\x26\x39\x4c\x5f\x72\x85"
  4430. "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
  4431. "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
  4432. "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
  4433. "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
  4434. "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
  4435. "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
  4436. "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
  4437. "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
  4438. "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
  4439. "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
  4440. "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
  4441. "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
  4442. "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
  4443. "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
  4444. "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
  4445. "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
  4446. "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
  4447. "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
  4448. "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
  4449. "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
  4450. "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
  4451. "\x10\x23\x36\x49\x5c\x6f\x82\x95"
  4452. "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
  4453. "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
  4454. "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
  4455. "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
  4456. "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
  4457. "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
  4458. "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
  4459. "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
  4460. "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
  4461. "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
  4462. "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
  4463. "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
  4464. "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
  4465. "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
  4466. "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
  4467. "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
  4468. "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
  4469. "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
  4470. "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
  4471. "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
  4472. "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
  4473. "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
  4474. "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
  4475. "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
  4476. "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
  4477. "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
  4478. "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
  4479. "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
  4480. "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
  4481. "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
  4482. "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
  4483. "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
  4484. "\x18\x2d\x42\x57\x6c\x81\x96\xab"
  4485. "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
  4486. "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
  4487. "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
  4488. "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
  4489. "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
  4490. "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
  4491. "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
  4492. "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
  4493. "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
  4494. "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
  4495. "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
  4496. "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
  4497. "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
  4498. "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
  4499. "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
  4500. "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
  4501. "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
  4502. "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
  4503. "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
  4504. "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
  4505. "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
  4506. "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
  4507. "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
  4508. "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
  4509. "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
  4510. "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
  4511. "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
  4512. "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
  4513. "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
  4514. "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
  4515. "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
  4516. "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
  4517. "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
  4518. "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
  4519. "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
  4520. "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
  4521. "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
  4522. "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
  4523. "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
  4524. "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
  4525. "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
  4526. "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
  4527. "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
  4528. "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
  4529. "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
  4530. "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
  4531. "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
  4532. "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
  4533. "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
  4534. "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
  4535. "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
  4536. "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
  4537. "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
  4538. "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
  4539. "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
  4540. "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
  4541. "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
  4542. "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
  4543. "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
  4544. "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
  4545. "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
  4546. "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
  4547. "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
  4548. "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
  4549. "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
  4550. "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
  4551. "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
  4552. "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
  4553. "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
  4554. "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
  4555. "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
  4556. "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
  4557. "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
  4558. "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
  4559. "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
  4560. "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
  4561. "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
  4562. "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
  4563. "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
  4564. "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
  4565. "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
  4566. "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
  4567. "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
  4568. "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
  4569. "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
  4570. "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
  4571. "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
  4572. "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
  4573. "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
  4574. "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
  4575. "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
  4576. "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
  4577. "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
  4578. "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
  4579. "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
  4580. "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
  4581. "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
  4582. "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
  4583. "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
  4584. "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
  4585. "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
  4586. "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
  4587. "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
  4588. "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
  4589. "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
  4590. "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
  4591. "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
  4592. "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
  4593. "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
  4594. "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
  4595. "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
  4596. "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
  4597. "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
  4598. "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
  4599. "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
  4600. "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
  4601. "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
  4602. "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
  4603. "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
  4604. "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
  4605. "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
  4606. "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
  4607. "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
  4608. "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
  4609. "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
  4610. "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
  4611. "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
  4612. "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
  4613. "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
  4614. "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
  4615. "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
  4616. "\x78\x95\xb2\xcf\xec\x09\x26\x43"
  4617. "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
  4618. "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
  4619. "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
  4620. "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
  4621. "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
  4622. "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
  4623. "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
  4624. "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
  4625. "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
  4626. "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
  4627. "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
  4628. "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
  4629. "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
  4630. "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
  4631. "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
  4632. "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
  4633. "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
  4634. "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
  4635. "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
  4636. "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
  4637. "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
  4638. "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
  4639. "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
  4640. "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
  4641. "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
  4642. "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
  4643. "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
  4644. "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
  4645. "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
  4646. "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
  4647. "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
  4648. "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
  4649. "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
  4650. "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
  4651. "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
  4652. "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
  4653. "\x00\x21\x42\x63",
  4654. .ilen = 4100,
  4655. .result =
  4656. "\xf0\x5c\x74\xad\x4e\xbc\x99\xe2"
  4657. "\xae\xff\x91\x3a\x44\xcf\x38\x32"
  4658. "\x1e\xad\xa7\xcd\xa1\x39\x95\xaa"
  4659. "\x10\xb1\xb3\x2e\x04\x31\x8f\x86"
  4660. "\xf2\x62\x74\x70\x0c\xa4\x46\x08"
  4661. "\xa8\xb7\x99\xa8\xe9\xd2\x73\x79"
  4662. "\x7e\x6e\xd4\x8f\x1e\xc7\x8e\x31"
  4663. "\x0b\xfa\x4b\xce\xfd\xf3\x57\x71"
  4664. "\xe9\x46\x03\xa5\x3d\x34\x00\xe2"
  4665. "\x18\xff\x75\x6d\x06\x2d\x00\xab"
  4666. "\xb9\x3e\x6c\x59\xc5\x84\x06\xb5"
  4667. "\x8b\xd0\x89\x9c\x4a\x79\x16\xc6"
  4668. "\x3d\x74\x54\xfa\x44\xcd\x23\x26"
  4669. "\x5c\xcf\x7e\x28\x92\x32\xbf\xdf"
  4670. "\xa7\x20\x3c\x74\x58\x2a\x9a\xde"
  4671. "\x61\x00\x1c\x4f\xff\x59\xc4\x22"
  4672. "\xac\x3c\xd0\xe8\x6c\xf9\x97\x1b"
  4673. "\x58\x9b\xad\x71\xe8\xa9\xb5\x0d"
  4674. "\xee\x2f\x04\x1f\x7f\xbc\x99\xee"
  4675. "\x84\xff\x42\x60\xdc\x3a\x18\xa5"
  4676. "\x81\xf9\xef\xdc\x7a\x0f\x65\x41"
  4677. "\x2f\xa3\xd3\xf9\xc2\xcb\xc0\x4d"
  4678. "\x8f\xd3\x76\x96\xad\x49\x6d\x38"
  4679. "\x3d\x39\x0b\x6c\x80\xb7\x54\x69"
  4680. "\xf0\x2c\x90\x02\x29\x0d\x1c\x12"
  4681. "\xad\x55\xc3\x8b\x68\xd9\xcc\xb3"
  4682. "\xb2\x64\x33\x90\x5e\xca\x4b\xe2"
  4683. "\xfb\x75\xdc\x63\xf7\x9f\x82\x74"
  4684. "\xf0\xc9\xaa\x7f\xe9\x2a\x9b\x33"
  4685. "\xbc\x88\x00\x7f\xca\xb2\x1f\x14"
  4686. "\xdb\xc5\x8e\x7b\x11\x3c\x3e\x08"
  4687. "\xf3\x83\xe8\xe0\x94\x86\x2e\x92"
  4688. "\x78\x6b\x01\xc9\xc7\x83\xba\x21"
  4689. "\x6a\x25\x15\x33\x4e\x45\x08\xec"
  4690. "\x35\xdb\xe0\x6e\x31\x51\x79\xa9"
  4691. "\x42\x44\x65\xc1\xa0\xf1\xf9\x2a"
  4692. "\x70\xd5\xb6\xc6\xc1\x8c\x39\xfc"
  4693. "\x25\xa6\x55\xd9\xdd\x2d\x4c\xec"
  4694. "\x49\xc6\xeb\x0e\xa8\x25\x2a\x16"
  4695. "\x1b\x66\x84\xda\xe2\x92\xe5\xc0"
  4696. "\xc8\x53\x07\xaf\x80\x84\xec\xfd"
  4697. "\xcd\xd1\x6e\xcd\x6f\x6a\xf5\x36"
  4698. "\xc5\x15\xe5\x25\x7d\x77\xd1\x1a"
  4699. "\x93\x36\xa9\xcf\x7c\xa4\x54\x4a"
  4700. "\x06\x51\x48\x4e\xf6\x59\x87\xd2"
  4701. "\x04\x02\xef\xd3\x44\xde\x76\x31"
  4702. "\xb3\x34\x17\x1b\x9d\x66\x11\x9f"
  4703. "\x1e\xcc\x17\xe9\xc7\x3c\x1b\xe7"
  4704. "\xcb\x50\x08\xfc\xdc\x2b\x24\xdb"
  4705. "\x65\x83\xd0\x3b\xe3\x30\xea\x94"
  4706. "\x6c\xe7\xe8\x35\x32\xc7\xdb\x64"
  4707. "\xb4\x01\xab\x36\x2c\x77\x13\xaf"
  4708. "\xf8\x2b\x88\x3f\x54\x39\xc4\x44"
  4709. "\xfe\xef\x6f\x68\x34\xbe\x0f\x05"
  4710. "\x16\x6d\xf6\x0a\x30\xe7\xe3\xed"
  4711. "\xc4\xde\x3c\x1b\x13\xd8\xdb\xfe"
  4712. "\x41\x62\xe5\x28\xd4\x8d\xa3\xc7"
  4713. "\x93\x97\xc6\x48\x45\x1d\x9f\x83"
  4714. "\xdf\x4b\x40\x3e\x42\x25\x87\x80"
  4715. "\x4c\x7d\xa8\xd4\x98\x23\x95\x75"
  4716. "\x41\x8c\xda\x41\x9b\xd4\xa7\x06"
  4717. "\xb5\xf1\x71\x09\x53\xbe\xca\xbf"
  4718. "\x32\x03\xed\xf0\x50\x1c\x56\x39"
  4719. "\x5b\xa4\x75\x18\xf7\x9b\x58\xef"
  4720. "\x53\xfc\x2a\x38\x23\x15\x75\xcd"
  4721. "\x45\xe5\x5a\x82\x55\xba\x21\xfa"
  4722. "\xd4\xbd\xc6\x94\x7c\xc5\x80\x12"
  4723. "\xf7\x4b\x32\xc4\x9a\x82\xd8\x28"
  4724. "\x8f\xd9\xc2\x0f\x60\x03\xbe\x5e"
  4725. "\x21\xd6\x5f\x58\xbf\x5c\xb1\x32"
  4726. "\x82\x8d\xa9\xe5\xf2\x66\x1a\xc0"
  4727. "\xa0\xbc\x58\x2f\x71\xf5\x2f\xed"
  4728. "\xd1\x26\xb9\xd8\x49\x5a\x07\x19"
  4729. "\x01\x7c\x59\xb0\xf8\xa4\xb7\xd3"
  4730. "\x7b\x1a\x8c\x38\xf4\x50\xa4\x59"
  4731. "\xb0\xcc\x41\x0b\x88\x7f\xe5\x31"
  4732. "\xb3\x42\xba\xa2\x7e\xd4\x32\x71"
  4733. "\x45\x87\x48\xa9\xc2\xf2\x89\xb3"
  4734. "\xe4\xa7\x7e\x52\x15\x61\xfa\xfe"
  4735. "\xc9\xdd\x81\xeb\x13\xab\xab\xc3"
  4736. "\x98\x59\xd8\x16\x3d\x14\x7a\x1c"
  4737. "\x3c\x41\x9a\x16\x16\x9b\xd2\xd2"
  4738. "\x69\x3a\x29\x23\xac\x86\x32\xa5"
  4739. "\x48\x9c\x9e\xf3\x47\x77\x81\x70"
  4740. "\x24\xe8\x85\xd2\xf5\xb5\xfa\xff"
  4741. "\x59\x6a\xd3\x50\x59\x43\x59\xde"
  4742. "\xd9\xf1\x55\xa5\x0c\xc3\x1a\x1a"
  4743. "\x18\x34\x0d\x1a\x63\x33\xed\x10"
  4744. "\xe0\x1d\x2a\x18\xd2\xc0\x54\xa8"
  4745. "\xca\xb5\x9a\xd3\xdd\xca\x45\x84"
  4746. "\x50\xe7\x0f\xfe\xa4\x99\x5a\xbe"
  4747. "\x43\x2d\x9a\xcb\x92\x3f\x5a\x1d"
  4748. "\x85\xd8\xc9\xdf\x68\xc9\x12\x80"
  4749. "\x56\x0c\xdc\x00\xdc\x3a\x7d\x9d"
  4750. "\xa3\xa2\xe8\x4d\xbf\xf9\x70\xa0"
  4751. "\xa4\x13\x4f\x6b\xaf\x0a\x89\x7f"
  4752. "\xda\xf0\xbf\x9b\xc8\x1d\xe5\xf8"
  4753. "\x2e\x8b\x07\xb5\x73\x1b\xcc\xa2"
  4754. "\xa6\xad\x30\xbc\x78\x3c\x5b\x10"
  4755. "\xfa\x5e\x62\x2d\x9e\x64\xb3\x33"
  4756. "\xce\xf9\x1f\x86\xe7\x8b\xa2\xb8"
  4757. "\xe8\x99\x57\x8c\x11\xed\x66\xd9"
  4758. "\x3c\x72\xb9\xc3\xe6\x4e\x17\x3a"
  4759. "\x6a\xcb\x42\x24\x06\xed\x3e\x4e"
  4760. "\xa3\xe8\x6a\x94\xda\x0d\x4e\xd5"
  4761. "\x14\x19\xcf\xb6\x26\xd8\x2e\xcc"
  4762. "\x64\x76\x38\x49\x4d\xfe\x30\x6d"
  4763. "\xe4\xc8\x8c\x7b\xc4\xe0\x35\xba"
  4764. "\x22\x6e\x76\xe1\x1a\xf2\x53\xc3"
  4765. "\x28\xa2\x82\x1f\x61\x69\xad\xc1"
  4766. "\x7b\x28\x4b\x1e\x6c\x85\x95\x9b"
  4767. "\x51\xb5\x17\x7f\x12\x69\x8c\x24"
  4768. "\xd5\xc7\x5a\x5a\x11\x54\xff\x5a"
  4769. "\xf7\x16\xc3\x91\xa6\xf0\xdc\x0a"
  4770. "\xb6\xa7\x4a\x0d\x7a\x58\xfe\xa5"
  4771. "\xf5\xcb\x8f\x7b\x0e\xea\x57\xe7"
  4772. "\xbd\x79\xd6\x1c\x88\x23\x6c\xf2"
  4773. "\x4d\x29\x77\x53\x35\x6a\x00\x8d"
  4774. "\xcd\xa3\x58\xbe\x77\x99\x18\xf8"
  4775. "\xe6\xe1\x8f\xe9\x37\x8f\xe3\xe2"
  4776. "\x5a\x8a\x93\x25\xaf\xf3\x78\x80"
  4777. "\xbe\xa6\x1b\xc6\xac\x8b\x1c\x91"
  4778. "\x58\xe1\x9f\x89\x35\x9d\x1d\x21"
  4779. "\x29\x9f\xf4\x99\x02\x27\x0f\xa8"
  4780. "\x4f\x79\x94\x2b\x33\x2c\xda\xa2"
  4781. "\x26\x39\x83\x94\xef\x27\xd8\x53"
  4782. "\x8f\x66\x0d\xe4\x41\x7d\x34\xcd"
  4783. "\x43\x7c\x95\x0a\x53\xef\x66\xda"
  4784. "\x7e\x9b\xf3\x93\xaf\xd0\x73\x71"
  4785. "\xba\x40\x9b\x74\xf8\xd7\xd7\x41"
  4786. "\x6d\xaf\x72\x9c\x8d\x21\x87\x3c"
  4787. "\xfd\x0a\x90\xa9\x47\x96\x9e\xd3"
  4788. "\x88\xee\x73\xcf\x66\x2f\x52\x56"
  4789. "\x6d\xa9\x80\x4c\xe2\x6f\x62\x88"
  4790. "\x3f\x0e\x54\x17\x48\x80\x5d\xd3"
  4791. "\xc3\xda\x25\x3d\xa1\xc8\xcb\x9f"
  4792. "\x9b\x70\xb3\xa1\xeb\x04\x52\xa1"
  4793. "\xf2\x22\x0f\xfc\xc8\x18\xfa\xf9"
  4794. "\x85\x9c\xf1\xac\xeb\x0c\x02\x46"
  4795. "\x75\xd2\xf5\x2c\xe3\xd2\x59\x94"
  4796. "\x12\xf3\x3c\xfc\xd7\x92\xfa\x36"
  4797. "\xba\x61\x34\x38\x7c\xda\x48\x3e"
  4798. "\x08\xc9\x39\x23\x5e\x02\x2c\x1a"
  4799. "\x18\x7e\xb4\xd9\xfd\x9e\x40\x02"
  4800. "\xb1\x33\x37\x32\xe7\xde\xd6\xd0"
  4801. "\x7c\x58\x65\x4b\xf8\x34\x27\x9c"
  4802. "\x44\xb4\xbd\xe9\xe9\x4c\x78\x7d"
  4803. "\x4b\x9f\xce\xb1\xcd\x47\xa5\x37"
  4804. "\xe5\x6d\xbd\xb9\x43\x94\x0a\xd4"
  4805. "\xd6\xf9\x04\x5f\xb5\x66\x6c\x1a"
  4806. "\x35\x12\xe3\x36\x28\x27\x36\x58"
  4807. "\x01\x2b\x79\xe4\xba\x6d\x10\x7d"
  4808. "\x65\xdf\x84\x95\xf4\xd5\xb6\x8f"
  4809. "\x2b\x9f\x96\x00\x86\x60\xf0\x21"
  4810. "\x76\xa8\x6a\x8c\x28\x1c\xb3\x6b"
  4811. "\x97\xd7\xb6\x53\x2a\xcc\xab\x40"
  4812. "\x9d\x62\x79\x58\x52\xe6\x65\xb7"
  4813. "\xab\x55\x67\x9c\x89\x7c\x03\xb0"
  4814. "\x73\x59\xc5\x81\xf5\x18\x17\x5c"
  4815. "\x89\xf3\x78\x35\x44\x62\x78\x72"
  4816. "\xd0\x96\xeb\x31\xe7\x87\x77\x14"
  4817. "\x99\x51\xf2\x59\x26\x9e\xb5\xa6"
  4818. "\x45\xfe\x6e\xbd\x07\x4c\x94\x5a"
  4819. "\xa5\x7d\xfc\xf1\x2b\x77\xe2\xfe"
  4820. "\x17\xd4\x84\xa0\xac\xb5\xc7\xda"
  4821. "\xa9\x1a\xb6\xf3\x74\x11\xb4\x9d"
  4822. "\xfb\x79\x2e\x04\x2d\x50\x28\x83"
  4823. "\xbf\xc6\x52\xd3\x34\xd6\xe8\x7a"
  4824. "\xb6\xea\xe7\xa8\x6c\x15\x1e\x2c"
  4825. "\x57\xbc\x48\x4e\x5f\x5c\xb6\x92"
  4826. "\xd2\x49\x77\x81\x6d\x90\x70\xae"
  4827. "\x98\xa1\x03\x0d\x6b\xb9\x77\x14"
  4828. "\xf1\x4e\x23\xd3\xf8\x68\xbd\xc2"
  4829. "\xfe\x04\xb7\x5c\xc5\x17\x60\x8f"
  4830. "\x65\x54\xa4\x7a\x42\xdc\x18\x0d"
  4831. "\xb5\xcf\x0f\xd3\xc7\x91\x66\x1b"
  4832. "\x45\x42\x27\x75\x50\xe5\xee\xb8"
  4833. "\x7f\x33\x2c\xba\x4a\x92\x4d\x2c"
  4834. "\x3c\xe3\x0d\x80\x01\xba\x0d\x29"
  4835. "\xd8\x3c\xe9\x13\x16\x57\xe6\xea"
  4836. "\x94\x52\xe7\x00\x4d\x30\xb0\x0f"
  4837. "\x35\xb8\xb8\xa7\xb1\xb5\x3b\x44"
  4838. "\xe1\x2f\xfd\x88\xed\x43\xe7\x52"
  4839. "\x10\x93\xb3\x8a\x30\x6b\x0a\xf7"
  4840. "\x23\xc6\x50\x9d\x4a\xb0\xde\xc3"
  4841. "\xdc\x9b\x2f\x01\x56\x36\x09\xc5"
  4842. "\x2f\x6b\xfe\xf1\xd8\x27\x45\x03"
  4843. "\x30\x5e\x5c\x5b\xb4\x62\x0e\x1a"
  4844. "\xa9\x21\x2b\x92\x94\x87\x62\x57"
  4845. "\x4c\x10\x74\x1a\xf1\x0a\xc5\x84"
  4846. "\x3b\x9e\x72\x02\xd7\xcc\x09\x56"
  4847. "\xbd\x54\xc1\xf0\xc3\xe3\xb3\xf8"
  4848. "\xd2\x0d\x61\xcb\xef\xce\x0d\x05"
  4849. "\xb0\x98\xd9\x8e\x4f\xf9\xbc\x93"
  4850. "\xa6\xea\xc8\xcf\x10\x53\x4b\xf1"
  4851. "\xec\xfc\x89\xf9\x64\xb0\x22\xbf"
  4852. "\x9e\x55\x46\x9f\x7c\x50\x8e\x84"
  4853. "\x54\x20\x98\xd7\x6c\x40\x1e\xdb"
  4854. "\x69\x34\x78\x61\x24\x21\x9c\x8a"
  4855. "\xb3\x62\x31\x8b\x6e\xf5\x2a\x35"
  4856. "\x86\x13\xb1\x6c\x64\x2e\x41\xa5"
  4857. "\x05\xf2\x42\xba\xd2\x3a\x0d\x8e"
  4858. "\x8a\x59\x94\x3c\xcf\x36\x27\x82"
  4859. "\xc2\x45\xee\x58\xcd\x88\xb4\xec"
  4860. "\xde\xb2\x96\x0a\xaf\x38\x6f\x88"
  4861. "\xd7\xd8\xe1\xdf\xb9\x96\xa9\x0a"
  4862. "\xb1\x95\x28\x86\x20\xe9\x17\x49"
  4863. "\xa2\x29\x38\xaa\xa5\xe9\x6e\xf1"
  4864. "\x19\x27\xc0\xd5\x2a\x22\xc3\x0b"
  4865. "\xdb\x7c\x73\x10\xb9\xba\x89\x76"
  4866. "\x54\xae\x7d\x71\xb3\x93\xf6\x32"
  4867. "\xe6\x47\x43\x55\xac\xa0\x0d\xc2"
  4868. "\x93\x27\x4a\x8e\x0e\x74\x15\xc7"
  4869. "\x0b\x85\xd9\x0c\xa9\x30\x7a\x3e"
  4870. "\xea\x8f\x85\x6d\x3a\x12\x4f\x72"
  4871. "\x69\x58\x7a\x80\xbb\xb5\x97\xf3"
  4872. "\xcf\x70\xd2\x5d\xdd\x4d\x21\x79"
  4873. "\x54\x4d\xe4\x05\xe8\xbd\xc2\x62"
  4874. "\xb1\x3b\x77\x1c\xd6\x5c\xf3\xa0"
  4875. "\x79\x00\xa8\x6c\x29\xd9\x18\x24"
  4876. "\x36\xa2\x46\xc0\x96\x65\x7f\xbd"
  4877. "\x2a\xed\x36\x16\x0c\xaa\x9f\xf4"
  4878. "\xc5\xb4\xe2\x12\xed\x69\xed\x4f"
  4879. "\x26\x2c\x39\x52\x89\x98\xe7\x2c"
  4880. "\x99\xa4\x9e\xa3\x9b\x99\x46\x7a"
  4881. "\x3a\xdc\xa8\x59\xa3\xdb\xc3\x3b"
  4882. "\x95\x0d\x3b\x09\x6e\xee\x83\x5d"
  4883. "\x32\x4d\xed\xab\xfa\x98\x14\x4e"
  4884. "\xc3\x15\x45\x53\x61\xc4\x93\xbd"
  4885. "\x90\xf4\x99\x95\x4c\xe6\x76\x92"
  4886. "\x29\x90\x46\x30\x92\x69\x7d\x13"
  4887. "\xf2\xa5\xcd\x69\x49\x44\xb2\x0f"
  4888. "\x63\x40\x36\x5f\x09\xe2\x78\xf8"
  4889. "\x91\xe3\xe2\xfa\x10\xf7\xc8\x24"
  4890. "\xa8\x89\x32\x5c\x37\x25\x1d\xb2"
  4891. "\xea\x17\x8a\x0a\xa9\x64\xc3\x7c"
  4892. "\x3c\x7c\xbd\xc6\x79\x34\xe7\xe2"
  4893. "\x85\x8e\xbf\xf8\xde\x92\xa0\xae"
  4894. "\x20\xc4\xf6\xbb\x1f\x38\x19\x0e"
  4895. "\xe8\x79\x9c\xa1\x23\xe9\x54\x7e"
  4896. "\x37\x2f\xe2\x94\x32\xaf\xa0\x23"
  4897. "\x49\xe4\xc0\xb3\xac\x00\x8f\x36"
  4898. "\x05\xc4\xa6\x96\xec\x05\x98\x4f"
  4899. "\x96\x67\x57\x1f\x20\x86\x1b\x2d"
  4900. "\x69\xe4\x29\x93\x66\x5f\xaf\x6b"
  4901. "\x88\x26\x2c\x67\x02\x4b\x52\xd0"
  4902. "\x83\x7a\x43\x1f\xc0\x71\x15\x25"
  4903. "\x77\x65\x08\x60\x11\x76\x4c\x8d"
  4904. "\xed\xa9\x27\xc6\xb1\x2a\x2c\x6a"
  4905. "\x4a\x97\xf5\xc6\xb7\x70\x42\xd3"
  4906. "\x03\xd1\x24\x95\xec\x6d\xab\x38"
  4907. "\x72\xce\xe2\x8b\x33\xd7\x51\x09"
  4908. "\xdc\x45\xe0\x09\x96\x32\xf3\xc4"
  4909. "\x84\xdc\x73\x73\x2d\x1b\x11\x98"
  4910. "\xc5\x0e\x69\x28\x94\xc7\xb5\x4d"
  4911. "\xc8\x8a\xd0\xaa\x13\x2e\x18\x74"
  4912. "\xdd\xd1\x1e\xf3\x90\xe8\xfc\x9a"
  4913. "\x72\x4a\x0e\xd1\xe4\xfb\x0d\x96"
  4914. "\xd1\x0c\x79\x85\x1b\x1c\xfe\xe1"
  4915. "\x62\x8f\x7a\x73\x32\xab\xc8\x18"
  4916. "\x69\xe3\x34\x30\xdf\x13\xa6\xe5"
  4917. "\xe8\x0e\x67\x7f\x81\x11\xb4\x60"
  4918. "\xc7\xbd\x79\x65\x50\xdc\xc4\x5b"
  4919. "\xde\x39\xa4\x01\x72\x63\xf3\xd1"
  4920. "\x64\x4e\xdf\xfc\x27\x92\x37\x0d"
  4921. "\x57\xcd\x11\x4f\x11\x04\x8e\x1d"
  4922. "\x16\xf7\xcd\x92\x9a\x99\x30\x14"
  4923. "\xf1\x7c\x67\x1b\x1f\x41\x0b\xe8"
  4924. "\x32\xe8\xb8\xc1\x4f\x54\x86\x4f"
  4925. "\xe5\x79\x81\x73\xcd\x43\x59\x68"
  4926. "\x73\x02\x3b\x78\x21\x72\x43\x00"
  4927. "\x49\x17\xf7\x00\xaf\x68\x24\x53"
  4928. "\x05\x0a\xc3\x33\xe0\x33\x3f\x69"
  4929. "\xd2\x84\x2f\x0b\xed\xde\x04\xf4"
  4930. "\x11\x94\x13\x69\x51\x09\x28\xde"
  4931. "\x57\x5c\xef\xdc\x9a\x49\x1c\x17"
  4932. "\x97\xf3\x96\xc1\x7f\x5d\x2e\x7d"
  4933. "\x55\xb8\xb3\x02\x09\xb3\x1f\xe7"
  4934. "\xc9\x8d\xa3\x36\x34\x8a\x77\x13"
  4935. "\x30\x63\x4c\xa5\xcd\xc3\xe0\x7e"
  4936. "\x05\xa1\x7b\x0c\xcb\x74\x47\x31"
  4937. "\x62\x03\x43\xf1\x87\xb4\xb0\x85"
  4938. "\x87\x8e\x4b\x25\xc7\xcf\xae\x4b"
  4939. "\x36\x46\x3e\x62\xbc\x6f\xeb\x5f"
  4940. "\x73\xac\xe6\x07\xee\xc1\xa1\xd6"
  4941. "\xc4\xab\xc9\xd6\x89\x45\xe1\xf1"
  4942. "\x04\x4e\x1a\x6f\xbb\x4f\x3a\xa3"
  4943. "\xa0\xcb\xa3\x0a\xd8\x71\x35\x55"
  4944. "\xe4\xbc\x2e\x04\x06\xe6\xff\x5b"
  4945. "\x1c\xc0\x11\x7c\xc5\x17\xf3\x38"
  4946. "\xcf\xe9\xba\x0f\x0e\xef\x02\xc2"
  4947. "\x8d\xc6\xbc\x4b\x67\x20\x95\xd7"
  4948. "\x2c\x45\x5b\x86\x44\x8c\x6f\x2e"
  4949. "\x7e\x9f\x1c\x77\xba\x6b\x0e\xa3"
  4950. "\x69\xdc\xab\x24\x57\x60\x47\xc1"
  4951. "\xd1\xa5\x9d\x23\xe6\xb1\x37\xfe"
  4952. "\x93\xd2\x4c\x46\xf9\x0c\xc6\xfb"
  4953. "\xd6\x9d\x99\x69\xab\x7a\x07\x0c"
  4954. "\x65\xe7\xc4\x08\x96\xe2\xa5\x01"
  4955. "\x3f\x46\x07\x05\x7e\xe8\x9a\x90"
  4956. "\x50\xdc\xe9\x7a\xea\xa1\x39\x6e"
  4957. "\x66\xe4\x6f\xa5\x5f\xb2\xd9\x5b"
  4958. "\xf5\xdb\x2a\x32\xf0\x11\x6f\x7c"
  4959. "\x26\x10\x8f\x3d\x80\xe9\x58\xf7"
  4960. "\xe0\xa8\x57\xf8\xdb\x0e\xce\x99"
  4961. "\x63\x19\x3d\xd5\xec\x1b\x77\x69"
  4962. "\x98\xf6\xe4\x5f\x67\x17\x4b\x09"
  4963. "\x85\x62\x82\x70\x18\xe2\x9a\x78"
  4964. "\xe2\x62\xbd\xb4\xf1\x42\xc6\xfb"
  4965. "\x08\xd0\xbd\xeb\x4e\x09\xf2\xc8"
  4966. "\x1e\xdc\x3d\x32\x21\x56\x9c\x4f"
  4967. "\x35\xf3\x61\x06\x72\x84\xc4\x32"
  4968. "\xf2\xf1\xfa\x0b\x2f\xc3\xdb\x02"
  4969. "\x04\xc2\xde\x57\x64\x60\x8d\xcf"
  4970. "\xcb\x86\x5d\x97\x3e\xb1\x9c\x01"
  4971. "\xd6\x28\x8f\x99\xbc\x46\xeb\x05"
  4972. "\xaf\x7e\xb8\x21\x2a\x56\x85\x1c"
  4973. "\xb3\x71\xa0\xde\xca\x96\xf1\x78"
  4974. "\x49\xa2\x99\x81\x80\x5c\x01\xf5"
  4975. "\xa0\xa2\x56\x63\xe2\x70\x07\xa5"
  4976. "\x95\xd6\x85\xeb\x36\x9e\xa9\x51"
  4977. "\x66\x56\x5f\x1d\x02\x19\xe2\xf6"
  4978. "\x4f\x73\x38\x09\x75\x64\x48\xe0"
  4979. "\xf1\x7e\x0e\xe8\x9d\xf9\xed\x94"
  4980. "\xfe\x16\x26\x62\x49\x74\xf4\xb0"
  4981. "\xd4\xa9\x6c\xb0\xfd\x53\xe9\x81"
  4982. "\xe0\x7a\xbf\xcf\xb5\xc4\x01\x81"
  4983. "\x79\x99\x77\x01\x3b\xe9\xa2\xb6"
  4984. "\xe6\x6a\x8a\x9e\x56\x1c\x8d\x1e"
  4985. "\x8f\x06\x55\x2c\x6c\xdc\x92\x87"
  4986. "\x64\x3b\x4b\x19\xa1\x13\x64\x1d"
  4987. "\x4a\xe9\xc0\x00\xb8\x95\xef\x6b"
  4988. "\x1a\x86\x6d\x37\x52\x02\xc2\xe0"
  4989. "\xc8\xbb\x42\x0c\x02\x21\x4a\xc9"
  4990. "\xef\xa0\x54\xe4\x5e\x16\x53\x81"
  4991. "\x70\x62\x10\xaf\xde\xb8\xb5\xd3"
  4992. "\xe8\x5e\x6c\xc3\x8a\x3e\x18\x07"
  4993. "\xf2\x2f\x7d\xa7\xe1\x3d\x4e\xb4"
  4994. "\x26\xa7\xa3\x93\x86\xb2\x04\x1e"
  4995. "\x53\x5d\x86\xd6\xde\x65\xca\xe3"
  4996. "\x4e\xc1\xcf\xef\xc8\x70\x1b\x83"
  4997. "\x13\xdd\x18\x8b\x0d\x76\xd2\xf6"
  4998. "\x37\x7a\x93\x7a\x50\x11\x9f\x96"
  4999. "\x86\x25\xfd\xac\xdc\xbe\x18\x93"
  5000. "\x19\x6b\xec\x58\x4f\xb9\x75\xa7"
  5001. "\xdd\x3f\x2f\xec\xc8\x5a\x84\xab"
  5002. "\xd5\xe4\x8a\x07\xf6\x4d\x23\xd6"
  5003. "\x03\xfb\x03\x6a\xea\x66\xbf\xd4"
  5004. "\xb1\x34\xfb\x78\xe9\x55\xdc\x7c"
  5005. "\x3d\x9c\xe5\x9a\xac\xc3\x7a\x80"
  5006. "\x24\x6d\xa0\xef\x25\x7c\xb7\xea"
  5007. "\xce\x4d\x5f\x18\x60\xce\x87\x22"
  5008. "\x66\x2f\xd5\xdd\xdd\x02\x21\x75"
  5009. "\x82\xa0\x1f\x58\xc6\xd3\x62\xf7"
  5010. "\x32\xd8\xaf\x1e\x07\x77\x51\x96"
  5011. "\xd5\x6b\x1e\x7e\x80\x02\xe8\x67"
  5012. "\xea\x17\x0b\x10\xd2\x3f\x28\x25"
  5013. "\x4f\x05\x77\x02\x14\x69\xf0\x2c"
  5014. "\xbe\x0c\xf1\x74\x30\xd1\xb9\x9b"
  5015. "\xfc\x8c\xbb\x04\x16\xd9\xba\xc3"
  5016. "\xbc\x91\x8a\xc4\x30\xa4\xb0\x12"
  5017. "\x4c\x21\x87\xcb\xc9\x1d\x16\x96"
  5018. "\x07\x6f\x23\x54\xb9\x6f\x79\xe5"
  5019. "\x64\xc0\x64\xda\xb1\xae\xdd\x60"
  5020. "\x6c\x1a\x9d\xd3\x04\x8e\x45\xb0"
  5021. "\x92\x61\xd0\x48\x81\xed\x5e\x1d"
  5022. "\xa0\xc9\xa4\x33\xc7\x13\x51\x5d"
  5023. "\x7f\x83\x73\xb6\x70\x18\x65\x3e"
  5024. "\x2f\x0e\x7a\x12\x39\x98\xab\xd8"
  5025. "\x7e\x6f\xa3\xd1\xba\x56\xad\xbd"
  5026. "\xf0\x03\x01\x1c\x85\x35\x9f\xeb"
  5027. "\x19\x63\xa1\xaf\xfe\x2d\x35\x50"
  5028. "\x39\xa0\x65\x7c\x95\x7e\x6b\xfe"
  5029. "\xc1\xac\x07\x7c\x98\x4f\xbe\x57"
  5030. "\xa7\x22\xec\xe2\x7e\x29\x09\x53"
  5031. "\xe8\xbf\xb4\x7e\x3f\x8f\xfc\x14"
  5032. "\xce\x54\xf9\x18\x58\xb5\xff\x44"
  5033. "\x05\x9d\xce\x1b\xb6\x82\x23\xc8"
  5034. "\x2e\xbc\x69\xbb\x4a\x29\x0f\x65"
  5035. "\x94\xf0\x63\x06\x0e\xef\x8c\xbd"
  5036. "\xff\xfd\xb0\x21\x6e\x57\x05\x75"
  5037. "\xda\xd5\xc4\xeb\x8d\x32\xf7\x50"
  5038. "\xd3\x6f\x22\xed\x5f\x8e\xa2\x5b"
  5039. "\x80\x8c\xc8\x78\x40\x24\x4b\x89"
  5040. "\x30\xce\x7a\x97\x0e\xc4\xaf\xef"
  5041. "\x9b\xb4\xcd\x66\x74\x14\x04\x2b"
  5042. "\xf7\xce\x0b\x1c\x6e\xc2\x78\x8c"
  5043. "\xca\xc5\xd0\x1c\x95\x4a\x91\x2d"
  5044. "\xa7\x20\xeb\x86\x52\xb7\x67\xd8"
  5045. "\x0c\xd6\x04\x14\xde\x51\x74\x75"
  5046. "\xe7\x11\xb4\x87\xa3\x3d\x2d\xad"
  5047. "\x4f\xef\xa0\x0f\x70\x00\x6d\x13"
  5048. "\x19\x1d\x41\x50\xe9\xd8\xf0\x32"
  5049. "\x71\xbc\xd3\x11\xf2\xac\xbe\xaf"
  5050. "\x75\x46\x65\x4e\x07\x34\x37\xa3"
  5051. "\x89\xfe\x75\xd4\x70\x4c\xc6\x3f"
  5052. "\x69\x24\x0e\x38\x67\x43\x8c\xde"
  5053. "\x06\xb5\xb8\xe7\xc4\xf0\x41\x8f"
  5054. "\xf0\xbd\x2f\x0b\xb9\x18\xf8\xde"
  5055. "\x64\xb1\xdb\xee\x00\x50\x77\xe1"
  5056. "\xc7\xff\xa6\xfa\xdd\x70\xf4\xe3"
  5057. "\x93\xe9\x77\x35\x3d\x4b\x2f\x2b"
  5058. "\x6d\x55\xf0\xfc\x88\x54\x4e\x89"
  5059. "\xc1\x8a\x23\x31\x2d\x14\x2a\xb8"
  5060. "\x1b\x15\xdd\x9e\x6e\x7b\xda\x05"
  5061. "\x91\x7d\x62\x64\x96\x72\xde\xfc"
  5062. "\xc1\xec\xf0\x23\x51\x6f\xdb\x5b"
  5063. "\x1d\x08\x57\xce\x09\xb8\xf6\xcd"
  5064. "\x8d\x95\xf2\x20\xbf\x0f\x20\x57"
  5065. "\x98\x81\x84\x4f\x15\x5c\x76\xe7"
  5066. "\x3e\x0a\x3a\x6c\xc4\x8a\xbe\x78"
  5067. "\x74\x77\xc3\x09\x4b\x5d\x48\xe4"
  5068. "\xc8\xcb\x0b\xea\x17\x28\xcf\xcf"
  5069. "\x31\x32\x44\xa4\xe5\x0e\x1a\x98"
  5070. "\x94\xc4\xf0\xff\xae\x3e\x44\xe8"
  5071. "\xa5\xb3\xb5\x37\x2f\xe8\xaf\x6f"
  5072. "\x28\xc1\x37\x5f\x31\xd2\xb9\x33"
  5073. "\xb1\xb2\x52\x94\x75\x2c\x29\x59"
  5074. "\x06\xc2\x25\xe8\x71\x65\x4e\xed"
  5075. "\xc0\x9c\xb1\xbb\x25\xdc\x6c\xe7"
  5076. "\x4b\xa5\x7a\x54\x7a\x60\xff\x7a"
  5077. "\xe0\x50\x40\x96\x35\x63\xe4\x0b"
  5078. "\x76\xbd\xa4\x65\x00\x1b\x57\x88"
  5079. "\xae\xed\x39\x88\x42\x11\x3c\xed"
  5080. "\x85\x67\x7d\xb9\x68\x82\xe9\x43"
  5081. "\x3c\x47\x53\xfa\xe8\xf8\x9f\x1f"
  5082. "\x9f\xef\x0f\xf7\x30\xd9\x30\x0e"
  5083. "\xb9\x9f\x69\x18\x2f\x7e\xf8\xf8"
  5084. "\xf8\x8c\x0f\xd4\x02\x4d\xea\xcd"
  5085. "\x0a\x9c\x6f\x71\x6d\x5a\x4c\x60"
  5086. "\xce\x20\x56\x32\xc6\xc5\x99\x1f"
  5087. "\x09\xe6\x4e\x18\x1a\x15\x13\xa8"
  5088. "\x7d\xb1\x6b\xc0\xb2\x6d\xf8\x26"
  5089. "\x66\xf8\x3d\x18\x74\x70\x66\x7a"
  5090. "\x34\x17\xde\xba\x47\xf1\x06\x18"
  5091. "\xcb\xaf\xeb\x4a\x1e\x8f\xa7\x77"
  5092. "\xe0\x3b\x78\x62\x66\xc9\x10\xea"
  5093. "\x1f\xb7\x29\x0a\x45\xa1\x1d\x1e"
  5094. "\x1d\xe2\x65\x61\x50\x9c\xd7\x05"
  5095. "\xf2\x0b\x5b\x12\x61\x02\xc8\xe5"
  5096. "\x63\x4f\x20\x0c\x07\x17\x33\x5e"
  5097. "\x03\x9a\x53\x0f\x2e\x55\xfe\x50"
  5098. "\x43\x7d\xd0\xb6\x7e\x5a\xda\xae"
  5099. "\x58\xef\x15\xa9\x83\xd9\x46\xb1"
  5100. "\x42\xaa\xf5\x02\x6c\xce\x92\x06"
  5101. "\x1b\xdb\x66\x45\x91\x79\xc2\x2d"
  5102. "\xe6\x53\xd3\x14\xfd\xbb\x44\x63"
  5103. "\xc6\xd7\x3d\x7a\x0c\x75\x78\x9d"
  5104. "\x5c\xa6\x39\xb3\xe5\x63\xca\x8b"
  5105. "\xfe\xd3\xef\x60\x83\xf6\x8e\x70"
  5106. "\xb6\x67\xc7\x77\xed\x23\xef\x4c"
  5107. "\xf0\xed\x2d\x07\x59\x6f\xc1\x01"
  5108. "\x34\x37\x08\xab\xd9\x1f\x09\xb1"
  5109. "\xce\x5b\x17\xff\x74\xf8\x9c\xd5"
  5110. "\x2c\x56\x39\x79\x0f\x69\x44\x75"
  5111. "\x58\x27\x01\xc4\xbf\xa7\xa1\x1d"
  5112. "\x90\x17\x77\x86\x5a\x3f\xd9\xd1"
  5113. "\x0e\xa0\x10\xf8\xec\x1e\xa5\x7f"
  5114. "\x5e\x36\xd1\xe3\x04\x2c\x70\xf7"
  5115. "\x8e\xc0\x98\x2f\x6c\x94\x2b\x41"
  5116. "\xb7\x60\x00\xb7\x2e\xb8\x02\x8d"
  5117. "\xb8\xb0\xd3\x86\xba\x1d\xd7\x90"
  5118. "\xd6\xb6\xe1\xfc\xd7\xd8\x28\x06"
  5119. "\x63\x9b\xce\x61\x24\x79\xc0\x70"
  5120. "\x52\xd0\xb6\xd4\x28\x95\x24\x87"
  5121. "\x03\x1f\xb7\x9a\xda\xa3\xfb\x52"
  5122. "\x5b\x68\xe7\x4c\x8c\x24\xe1\x42"
  5123. "\xf7\xd5\xfd\xad\x06\x32\x9f\xba"
  5124. "\xc1\xfc\xdd\xc6\xfc\xfc\xb3\x38"
  5125. "\x74\x56\x58\x40\x02\x37\x52\x2c"
  5126. "\x55\xcc\xb3\x9e\x7a\xe9\xd4\x38"
  5127. "\x41\x5e\x0c\x35\xe2\x11\xd1\x13"
  5128. "\xf8\xb7\x8d\x72\x6b\x22\x2a\xb0"
  5129. "\xdb\x08\xba\x35\xb9\x3f\xc8\xd3"
  5130. "\x24\x90\xec\x58\xd2\x09\xc7\x2d"
  5131. "\xed\x38\x80\x36\x72\x43\x27\x49"
  5132. "\x4a\x80\x8a\xa2\xe8\xd3\xda\x30"
  5133. "\x7d\xb6\x82\x37\x86\x92\x86\x3e"
  5134. "\x08\xb2\x28\x5a\x55\x44\x24\x7d"
  5135. "\x40\x48\x8a\xb6\x89\x58\x08\xa0"
  5136. "\xd6\x6d\x3a\x17\xbf\xf6\x54\xa2"
  5137. "\xf5\xd3\x8c\x0f\x78\x12\x57\x8b"
  5138. "\xd5\xc2\xfd\x58\x5b\x7f\x38\xe3"
  5139. "\xcc\xb7\x7c\x48\xb3\x20\xe8\x81"
  5140. "\x14\x32\x45\x05\xe0\xdb\x9f\x75"
  5141. "\x85\xb4\x6a\xfc\x95\xe3\x54\x22"
  5142. "\x12\xee\x30\xfe\xd8\x30\xef\x34"
  5143. "\x50\xab\x46\x30\x98\x2f\xb7\xc0"
  5144. "\x15\xa2\x83\xb6\xf2\x06\x21\xa2"
  5145. "\xc3\x26\x37\x14\xd1\x4d\xb5\x10"
  5146. "\x52\x76\x4d\x6a\xee\xb5\x2b\x15"
  5147. "\xb7\xf9\x51\xe8\x2a\xaf\xc7\xfa"
  5148. "\x77\xaf\xb0\x05\x4d\xd1\x68\x8e"
  5149. "\x74\x05\x9f\x9d\x93\xa5\x3e\x7f"
  5150. "\x4e\x5f\x9d\xcb\x09\xc7\x83\xe3"
  5151. "\x02\x9d\x27\x1f\xef\x85\x05\x8d"
  5152. "\xec\x55\x88\x0f\x0d\x7c\x4c\xe8"
  5153. "\xa1\x75\xa0\xd8\x06\x47\x14\xef"
  5154. "\xaa\x61\xcf\x26\x15\xad\xd8\xa3"
  5155. "\xaa\x75\xf2\x78\x4a\x5a\x61\xdf"
  5156. "\x8b\xc7\x04\xbc\xb2\x32\xd2\x7e"
  5157. "\x42\xee\xb4\x2f\x51\xff\x7b\x2e"
  5158. "\xd3\x02\xe8\xdc\x5d\x0d\x50\xdc"
  5159. "\xae\xb7\x46\xf9\xa8\xe6\xd0\x16"
  5160. "\xcc\xe6\x2c\x81\xc7\xad\xe9\xf0"
  5161. "\x05\x72\x6d\x3d\x0a\x7a\xa9\x02"
  5162. "\xac\x82\x93\x6e\xb6\x1c\x28\xfc"
  5163. "\x44\x12\xfb\x73\x77\xd4\x13\x39"
  5164. "\x29\x88\x8a\xf3\x5c\xa6\x36\xa0"
  5165. "\x2a\xed\x7e\xb1\x1d\xd6\x4c\x6b"
  5166. "\x41\x01\x18\x5d\x5d\x07\x97\xa6"
  5167. "\x4b\xef\x31\x18\xea\xac\xb1\x84"
  5168. "\x21\xed\xda\x86",
  5169. .rlen = 4100,
  5170. .np = 2,
  5171. .tap = { 4064, 36 },
  5172. },
  5173. };
  5174. static struct cipher_testvec aes_ctr_rfc3686_dec_tv_template[] = {
  5175. { /* From RFC 3686 */
  5176. .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
  5177. "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
  5178. "\x00\x00\x00\x30",
  5179. .klen = 20,
  5180. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  5181. .input = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
  5182. "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
  5183. .ilen = 16,
  5184. .result = "Single block msg",
  5185. .rlen = 16,
  5186. }, {
  5187. .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
  5188. "\x43\xd6\xce\x1f\x32\x53\x91\x63"
  5189. "\x00\x6c\xb6\xdb",
  5190. .klen = 20,
  5191. .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
  5192. .input = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
  5193. "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
  5194. "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
  5195. "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
  5196. .ilen = 32,
  5197. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5198. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5199. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5200. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  5201. .rlen = 32,
  5202. }, {
  5203. .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
  5204. "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
  5205. "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
  5206. "\x00\x00\x00\x48",
  5207. .klen = 28,
  5208. .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
  5209. .input = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
  5210. "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
  5211. .ilen = 16,
  5212. .result = "Single block msg",
  5213. .rlen = 16,
  5214. }, {
  5215. .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
  5216. "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
  5217. "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
  5218. "\x00\x96\xb0\x3b",
  5219. .klen = 28,
  5220. .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
  5221. .input = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
  5222. "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
  5223. "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
  5224. "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
  5225. .ilen = 32,
  5226. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5227. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5228. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5229. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  5230. .rlen = 32,
  5231. }, {
  5232. .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
  5233. "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
  5234. "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
  5235. "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
  5236. "\x00\x00\x00\x60",
  5237. .klen = 36,
  5238. .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
  5239. .input = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
  5240. "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
  5241. .ilen = 16,
  5242. .result = "Single block msg",
  5243. .rlen = 16,
  5244. }, {
  5245. .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
  5246. "\x07\x96\x36\x58\x79\xef\xf8\x86"
  5247. "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
  5248. "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
  5249. "\x00\xfa\xac\x24",
  5250. .klen = 36,
  5251. .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
  5252. .input = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
  5253. "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
  5254. "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
  5255. "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
  5256. .ilen = 32,
  5257. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5258. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5259. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5260. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  5261. .rlen = 32,
  5262. },
  5263. };
  5264. static struct aead_testvec aes_gcm_enc_tv_template[] = {
  5265. { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
  5266. .key = zeroed_string,
  5267. .klen = 16,
  5268. .result = "\x58\xe2\xfc\xce\xfa\x7e\x30\x61"
  5269. "\x36\x7f\x1d\x57\xa4\xe7\x45\x5a",
  5270. .rlen = 16,
  5271. }, {
  5272. .key = zeroed_string,
  5273. .klen = 16,
  5274. .input = zeroed_string,
  5275. .ilen = 16,
  5276. .result = "\x03\x88\xda\xce\x60\xb6\xa3\x92"
  5277. "\xf3\x28\xc2\xb9\x71\xb2\xfe\x78"
  5278. "\xab\x6e\x47\xd4\x2c\xec\x13\xbd"
  5279. "\xf5\x3a\x67\xb2\x12\x57\xbd\xdf",
  5280. .rlen = 32,
  5281. }, {
  5282. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5283. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5284. .klen = 16,
  5285. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5286. "\xde\xca\xf8\x88",
  5287. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5288. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5289. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5290. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5291. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5292. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5293. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5294. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  5295. .ilen = 64,
  5296. .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  5297. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  5298. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  5299. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  5300. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  5301. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  5302. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  5303. "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
  5304. "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
  5305. "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
  5306. .rlen = 80,
  5307. }, {
  5308. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5309. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5310. .klen = 16,
  5311. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5312. "\xde\xca\xf8\x88",
  5313. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5314. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5315. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5316. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5317. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5318. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5319. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5320. "\xba\x63\x7b\x39",
  5321. .ilen = 60,
  5322. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5323. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5324. "\xab\xad\xda\xd2",
  5325. .alen = 20,
  5326. .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  5327. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  5328. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  5329. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  5330. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  5331. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  5332. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  5333. "\x3d\x58\xe0\x91"
  5334. "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
  5335. "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
  5336. .rlen = 76,
  5337. }, {
  5338. .key = zeroed_string,
  5339. .klen = 24,
  5340. .result = "\xcd\x33\xb2\x8a\xc7\x73\xf7\x4b"
  5341. "\xa0\x0e\xd1\xf3\x12\x57\x24\x35",
  5342. .rlen = 16,
  5343. }, {
  5344. .key = zeroed_string,
  5345. .klen = 24,
  5346. .input = zeroed_string,
  5347. .ilen = 16,
  5348. .result = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
  5349. "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
  5350. "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
  5351. "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
  5352. .rlen = 32,
  5353. }, {
  5354. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5355. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5356. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  5357. .klen = 24,
  5358. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5359. "\xde\xca\xf8\x88",
  5360. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5361. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5362. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5363. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5364. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5365. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5366. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5367. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  5368. .ilen = 64,
  5369. .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  5370. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  5371. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  5372. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  5373. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  5374. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  5375. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  5376. "\xcc\xda\x27\x10\xac\xad\xe2\x56"
  5377. "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
  5378. "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
  5379. .rlen = 80,
  5380. }, {
  5381. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5382. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5383. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  5384. .klen = 24,
  5385. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5386. "\xde\xca\xf8\x88",
  5387. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5388. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5389. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5390. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5391. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5392. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5393. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5394. "\xba\x63\x7b\x39",
  5395. .ilen = 60,
  5396. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5397. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5398. "\xab\xad\xda\xd2",
  5399. .alen = 20,
  5400. .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  5401. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  5402. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  5403. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  5404. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  5405. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  5406. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  5407. "\xcc\xda\x27\x10"
  5408. "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
  5409. "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
  5410. .rlen = 76,
  5411. .np = 2,
  5412. .tap = { 32, 28 },
  5413. .anp = 2,
  5414. .atap = { 8, 12 }
  5415. }, {
  5416. .key = zeroed_string,
  5417. .klen = 32,
  5418. .result = "\x53\x0f\x8a\xfb\xc7\x45\x36\xb9"
  5419. "\xa9\x63\xb4\xf1\xc4\xcb\x73\x8b",
  5420. .rlen = 16,
  5421. }
  5422. };
  5423. static struct aead_testvec aes_gcm_dec_tv_template[] = {
  5424. { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
  5425. .key = zeroed_string,
  5426. .klen = 32,
  5427. .input = "\xce\xa7\x40\x3d\x4d\x60\x6b\x6e"
  5428. "\x07\x4e\xc5\xd3\xba\xf3\x9d\x18"
  5429. "\xd0\xd1\xc8\xa7\x99\x99\x6b\xf0"
  5430. "\x26\x5b\x98\xb5\xd4\x8a\xb9\x19",
  5431. .ilen = 32,
  5432. .result = zeroed_string,
  5433. .rlen = 16,
  5434. }, {
  5435. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5436. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5437. "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5438. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5439. .klen = 32,
  5440. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5441. "\xde\xca\xf8\x88",
  5442. .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
  5443. "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
  5444. "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
  5445. "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
  5446. "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
  5447. "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
  5448. "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
  5449. "\xbc\xc9\xf6\x62\x89\x80\x15\xad"
  5450. "\xb0\x94\xda\xc5\xd9\x34\x71\xbd"
  5451. "\xec\x1a\x50\x22\x70\xe3\xcc\x6c",
  5452. .ilen = 80,
  5453. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5454. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5455. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5456. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5457. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5458. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5459. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5460. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  5461. .rlen = 64,
  5462. }, {
  5463. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5464. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5465. "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5466. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5467. .klen = 32,
  5468. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5469. "\xde\xca\xf8\x88",
  5470. .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
  5471. "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
  5472. "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
  5473. "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
  5474. "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
  5475. "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
  5476. "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
  5477. "\xbc\xc9\xf6\x62"
  5478. "\x76\xfc\x6e\xce\x0f\x4e\x17\x68"
  5479. "\xcd\xdf\x88\x53\xbb\x2d\x55\x1b",
  5480. .ilen = 76,
  5481. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5482. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5483. "\xab\xad\xda\xd2",
  5484. .alen = 20,
  5485. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5486. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5487. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5488. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5489. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5490. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5491. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5492. "\xba\x63\x7b\x39",
  5493. .rlen = 60,
  5494. .np = 2,
  5495. .tap = { 48, 28 },
  5496. .anp = 3,
  5497. .atap = { 8, 8, 4 }
  5498. }, {
  5499. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5500. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5501. .klen = 16,
  5502. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5503. "\xde\xca\xf8\x88",
  5504. .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  5505. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  5506. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  5507. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  5508. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  5509. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  5510. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  5511. "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
  5512. "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
  5513. "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
  5514. .ilen = 80,
  5515. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5516. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5517. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5518. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5519. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5520. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5521. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5522. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  5523. .rlen = 64,
  5524. }, {
  5525. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5526. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5527. .klen = 16,
  5528. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5529. "\xde\xca\xf8\x88",
  5530. .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  5531. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  5532. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  5533. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  5534. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  5535. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  5536. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  5537. "\x3d\x58\xe0\x91"
  5538. "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
  5539. "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
  5540. .ilen = 76,
  5541. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5542. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5543. "\xab\xad\xda\xd2",
  5544. .alen = 20,
  5545. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5546. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5547. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5548. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5549. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5550. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5551. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5552. "\xba\x63\x7b\x39",
  5553. .rlen = 60,
  5554. }, {
  5555. .key = zeroed_string,
  5556. .klen = 24,
  5557. .input = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
  5558. "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
  5559. "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
  5560. "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
  5561. .ilen = 32,
  5562. .result = zeroed_string,
  5563. .rlen = 16,
  5564. }, {
  5565. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5566. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5567. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  5568. .klen = 24,
  5569. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5570. "\xde\xca\xf8\x88",
  5571. .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  5572. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  5573. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  5574. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  5575. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  5576. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  5577. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  5578. "\xcc\xda\x27\x10\xac\xad\xe2\x56"
  5579. "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
  5580. "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
  5581. .ilen = 80,
  5582. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5583. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5584. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5585. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5586. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5587. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5588. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5589. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  5590. .rlen = 64,
  5591. }, {
  5592. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5593. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5594. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  5595. .klen = 24,
  5596. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5597. "\xde\xca\xf8\x88",
  5598. .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  5599. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  5600. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  5601. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  5602. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  5603. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  5604. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  5605. "\xcc\xda\x27\x10"
  5606. "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
  5607. "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
  5608. .ilen = 76,
  5609. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5610. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5611. "\xab\xad\xda\xd2",
  5612. .alen = 20,
  5613. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5614. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5615. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5616. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5617. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5618. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5619. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5620. "\xba\x63\x7b\x39",
  5621. .rlen = 60,
  5622. }
  5623. };
  5624. static struct aead_testvec aes_ccm_enc_tv_template[] = {
  5625. { /* From RFC 3610 */
  5626. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  5627. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  5628. .klen = 16,
  5629. .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
  5630. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  5631. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  5632. .alen = 8,
  5633. .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5634. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5635. "\x18\x19\x1a\x1b\x1c\x1d\x1e",
  5636. .ilen = 23,
  5637. .result = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
  5638. "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
  5639. "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
  5640. "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
  5641. .rlen = 31,
  5642. }, {
  5643. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  5644. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  5645. .klen = 16,
  5646. .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
  5647. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  5648. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5649. "\x08\x09\x0a\x0b",
  5650. .alen = 12,
  5651. .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  5652. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  5653. "\x1c\x1d\x1e\x1f",
  5654. .ilen = 20,
  5655. .result = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
  5656. "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
  5657. "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
  5658. "\x7d\x9c\x2d\x93",
  5659. .rlen = 28,
  5660. }, {
  5661. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  5662. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  5663. .klen = 16,
  5664. .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
  5665. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  5666. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  5667. .alen = 8,
  5668. .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5669. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5670. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  5671. "\x20",
  5672. .ilen = 25,
  5673. .result = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
  5674. "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
  5675. "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
  5676. "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
  5677. "\x7e\x5f\x4e",
  5678. .rlen = 35,
  5679. }, {
  5680. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  5681. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  5682. .klen = 16,
  5683. .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
  5684. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  5685. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5686. "\x08\x09\x0a\x0b",
  5687. .alen = 12,
  5688. .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  5689. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  5690. "\x1c\x1d\x1e",
  5691. .ilen = 19,
  5692. .result = "\x07\x34\x25\x94\x15\x77\x85\x15"
  5693. "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
  5694. "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
  5695. "\x4d\x99\x99\x88\xdd",
  5696. .rlen = 29,
  5697. }, {
  5698. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  5699. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  5700. .klen = 16,
  5701. .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
  5702. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  5703. .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
  5704. .alen = 8,
  5705. .input = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
  5706. "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
  5707. "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
  5708. .ilen = 24,
  5709. .result = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
  5710. "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
  5711. "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
  5712. "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
  5713. .rlen = 32,
  5714. }, {
  5715. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  5716. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  5717. .klen = 16,
  5718. .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
  5719. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  5720. .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
  5721. "\x20\xea\x60\xc0",
  5722. .alen = 12,
  5723. .input = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
  5724. "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
  5725. "\x3a\x80\x3b\xa8\x7f",
  5726. .ilen = 21,
  5727. .result = "\x00\x97\x69\xec\xab\xdf\x48\x62"
  5728. "\x55\x94\xc5\x92\x51\xe6\x03\x57"
  5729. "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
  5730. "\x5a\xe0\x70\x45\x51",
  5731. .rlen = 29,
  5732. }, {
  5733. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  5734. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  5735. .klen = 16,
  5736. .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
  5737. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  5738. .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
  5739. .alen = 8,
  5740. .input = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
  5741. "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
  5742. "\x98\x09\xd6\x7d\xbe\xdd\x18",
  5743. .ilen = 23,
  5744. .result = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
  5745. "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
  5746. "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
  5747. "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
  5748. "\xba",
  5749. .rlen = 33,
  5750. },
  5751. };
  5752. static struct aead_testvec aes_ccm_dec_tv_template[] = {
  5753. { /* From RFC 3610 */
  5754. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  5755. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  5756. .klen = 16,
  5757. .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
  5758. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  5759. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  5760. .alen = 8,
  5761. .input = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
  5762. "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
  5763. "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
  5764. "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
  5765. .ilen = 31,
  5766. .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5767. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5768. "\x18\x19\x1a\x1b\x1c\x1d\x1e",
  5769. .rlen = 23,
  5770. }, {
  5771. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  5772. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  5773. .klen = 16,
  5774. .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
  5775. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  5776. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5777. "\x08\x09\x0a\x0b",
  5778. .alen = 12,
  5779. .input = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
  5780. "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
  5781. "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
  5782. "\x7d\x9c\x2d\x93",
  5783. .ilen = 28,
  5784. .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  5785. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  5786. "\x1c\x1d\x1e\x1f",
  5787. .rlen = 20,
  5788. }, {
  5789. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  5790. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  5791. .klen = 16,
  5792. .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
  5793. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  5794. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  5795. .alen = 8,
  5796. .input = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
  5797. "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
  5798. "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
  5799. "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
  5800. "\x7e\x5f\x4e",
  5801. .ilen = 35,
  5802. .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5803. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5804. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  5805. "\x20",
  5806. .rlen = 25,
  5807. }, {
  5808. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  5809. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  5810. .klen = 16,
  5811. .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
  5812. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  5813. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5814. "\x08\x09\x0a\x0b",
  5815. .alen = 12,
  5816. .input = "\x07\x34\x25\x94\x15\x77\x85\x15"
  5817. "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
  5818. "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
  5819. "\x4d\x99\x99\x88\xdd",
  5820. .ilen = 29,
  5821. .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  5822. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  5823. "\x1c\x1d\x1e",
  5824. .rlen = 19,
  5825. }, {
  5826. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  5827. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  5828. .klen = 16,
  5829. .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
  5830. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  5831. .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
  5832. .alen = 8,
  5833. .input = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
  5834. "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
  5835. "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
  5836. "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
  5837. .ilen = 32,
  5838. .result = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
  5839. "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
  5840. "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
  5841. .rlen = 24,
  5842. }, {
  5843. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  5844. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  5845. .klen = 16,
  5846. .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
  5847. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  5848. .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
  5849. "\x20\xea\x60\xc0",
  5850. .alen = 12,
  5851. .input = "\x00\x97\x69\xec\xab\xdf\x48\x62"
  5852. "\x55\x94\xc5\x92\x51\xe6\x03\x57"
  5853. "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
  5854. "\x5a\xe0\x70\x45\x51",
  5855. .ilen = 29,
  5856. .result = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
  5857. "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
  5858. "\x3a\x80\x3b\xa8\x7f",
  5859. .rlen = 21,
  5860. }, {
  5861. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  5862. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  5863. .klen = 16,
  5864. .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
  5865. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  5866. .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
  5867. .alen = 8,
  5868. .input = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
  5869. "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
  5870. "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
  5871. "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
  5872. "\xba",
  5873. .ilen = 33,
  5874. .result = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
  5875. "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
  5876. "\x98\x09\xd6\x7d\xbe\xdd\x18",
  5877. .rlen = 23,
  5878. },
  5879. };
  5880. /*
  5881. * rfc4309 refers to section 8 of rfc3610 for test vectors, but they all
  5882. * use a 13-byte nonce, we only support an 11-byte nonce. Similarly, all of
  5883. * Special Publication 800-38C's test vectors also use nonce lengths our
  5884. * implementation doesn't support. The following are taken from fips cavs
  5885. * fax files on hand at Red Hat.
  5886. *
  5887. * nb: actual key lengths are (klen - 3), the last 3 bytes are actually
  5888. * part of the nonce which combine w/the iv, but need to be input this way.
  5889. */
  5890. static struct aead_testvec aes_ccm_rfc4309_enc_tv_template[] = {
  5891. {
  5892. .key = "\x83\xac\x54\x66\xc2\xeb\xe5\x05"
  5893. "\x2e\x01\xd1\xfc\x5d\x82\x66\x2e"
  5894. "\x96\xac\x59",
  5895. .klen = 19,
  5896. .iv = "\x30\x07\xa1\xe2\xa2\xc7\x55\x24",
  5897. .alen = 0,
  5898. .input = "\x19\xc8\x81\xf6\xe9\x86\xff\x93"
  5899. "\x0b\x78\x67\xe5\xbb\xb7\xfc\x6e"
  5900. "\x83\x77\xb3\xa6\x0c\x8c\x9f\x9c"
  5901. "\x35\x2e\xad\xe0\x62\xf9\x91\xa1",
  5902. .ilen = 32,
  5903. .result = "\xab\x6f\xe1\x69\x1d\x19\x99\xa8"
  5904. "\x92\xa0\xc4\x6f\x7e\xe2\x8b\xb1"
  5905. "\x70\xbb\x8c\xa6\x4c\x6e\x97\x8a"
  5906. "\x57\x2b\xbe\x5d\x98\xa6\xb1\x32"
  5907. "\xda\x24\xea\xd9\xa1\x39\x98\xfd"
  5908. "\xa4\xbe\xd9\xf2\x1a\x6d\x22\xa8",
  5909. .rlen = 48,
  5910. }, {
  5911. .key = "\x1e\x2c\x7e\x01\x41\x9a\xef\xc0"
  5912. "\x0d\x58\x96\x6e\x5c\xa2\x4b\xd3"
  5913. "\x4f\xa3\x19",
  5914. .klen = 19,
  5915. .iv = "\xd3\x01\x5a\xd8\x30\x60\x15\x56",
  5916. .assoc = "\xda\xe6\x28\x9c\x45\x2d\xfd\x63"
  5917. "\x5e\xda\x4c\xb6\xe6\xfc\xf9\xb7"
  5918. "\x0c\x56\xcb\xe4\xe0\x05\x7a\xe1"
  5919. "\x0a\x63\x09\x78\xbc\x2c\x55\xde",
  5920. .alen = 32,
  5921. .input = "\x87\xa3\x36\xfd\x96\xb3\x93\x78"
  5922. "\xa9\x28\x63\xba\x12\xa3\x14\x85"
  5923. "\x57\x1e\x06\xc9\x7b\x21\xef\x76"
  5924. "\x7f\x38\x7e\x8e\x29\xa4\x3e\x7e",
  5925. .ilen = 32,
  5926. .result = "\x8a\x1e\x11\xf0\x02\x6b\xe2\x19"
  5927. "\xfc\x70\xc4\x6d\x8e\xb7\x99\xab"
  5928. "\xc5\x4b\xa2\xac\xd3\xf3\x48\xff"
  5929. "\x3b\xb5\xce\x53\xef\xde\xbb\x02"
  5930. "\xa9\x86\x15\x6c\x13\xfe\xda\x0a"
  5931. "\x22\xb8\x29\x3d\xd8\x39\x9a\x23",
  5932. .rlen = 48,
  5933. }, {
  5934. .key = "\xf4\x6b\xc2\x75\x62\xfe\xb4\xe1"
  5935. "\xa3\xf0\xff\xdd\x4e\x4b\x12\x75"
  5936. "\x53\x14\x73\x66\x8d\x88\xf6\x80"
  5937. "\xa0\x20\x35",
  5938. .klen = 27,
  5939. .iv = "\x26\xf2\x21\x8d\x50\x20\xda\xe2",
  5940. .assoc = "\x5b\x9e\x13\x67\x02\x5e\xef\xc1"
  5941. "\x6c\xf9\xd7\x1e\x52\x8f\x7a\x47"
  5942. "\xe9\xd4\xcf\x20\x14\x6e\xf0\x2d"
  5943. "\xd8\x9e\x2b\x56\x10\x23\x56\xe7",
  5944. .alen = 32,
  5945. .ilen = 0,
  5946. .result = "\x36\xea\x7a\x70\x08\xdc\x6a\xbc"
  5947. "\xad\x0c\x7a\x63\xf6\x61\xfd\x9b",
  5948. .rlen = 16,
  5949. }, {
  5950. .key = "\x56\xdf\x5c\x8f\x26\x3f\x0e\x42"
  5951. "\xef\x7a\xd3\xce\xfc\x84\x60\x62"
  5952. "\xca\xb4\x40\xaf\x5f\xc9\xc9\x01"
  5953. "\xd6\x3c\x8c",
  5954. .klen = 27,
  5955. .iv = "\x86\x84\xb6\xcd\xef\x09\x2e\x94",
  5956. .assoc = "\x02\x65\x78\x3c\xe9\x21\x30\x91"
  5957. "\xb1\xb9\xda\x76\x9a\x78\x6d\x95"
  5958. "\xf2\x88\x32\xa3\xf2\x50\xcb\x4c"
  5959. "\xe3\x00\x73\x69\x84\x69\x87\x79",
  5960. .alen = 32,
  5961. .input = "\x9f\xd2\x02\x4b\x52\x49\x31\x3c"
  5962. "\x43\x69\x3a\x2d\x8e\x70\xad\x7e"
  5963. "\xe0\xe5\x46\x09\x80\x89\x13\xb2"
  5964. "\x8c\x8b\xd9\x3f\x86\xfb\xb5\x6b",
  5965. .ilen = 32,
  5966. .result = "\x39\xdf\x7c\x3c\x5a\x29\xb9\x62"
  5967. "\x5d\x51\xc2\x16\xd8\xbd\x06\x9f"
  5968. "\x9b\x6a\x09\x70\xc1\x51\x83\xc2"
  5969. "\x66\x88\x1d\x4f\x9a\xda\xe0\x1e"
  5970. "\xc7\x79\x11\x58\xe5\x6b\x20\x40"
  5971. "\x7a\xea\x46\x42\x8b\xe4\x6f\xe1",
  5972. .rlen = 48,
  5973. }, {
  5974. .key = "\xe0\x8d\x99\x71\x60\xd7\x97\x1a"
  5975. "\xbd\x01\x99\xd5\x8a\xdf\x71\x3a"
  5976. "\xd3\xdf\x24\x4b\x5e\x3d\x4b\x4e"
  5977. "\x30\x7a\xb9\xd8\x53\x0a\x5e\x2b"
  5978. "\x1e\x29\x91",
  5979. .klen = 35,
  5980. .iv = "\xad\x8e\xc1\x53\x0a\xcf\x2d\xbe",
  5981. .assoc = "\x19\xb6\x1f\x57\xc4\xf3\xf0\x8b"
  5982. "\x78\x2b\x94\x02\x29\x0f\x42\x27"
  5983. "\x6b\x75\xcb\x98\x34\x08\x7e\x79"
  5984. "\xe4\x3e\x49\x0d\x84\x8b\x22\x87",
  5985. .alen = 32,
  5986. .input = "\xe1\xd9\xd8\x13\xeb\x3a\x75\x3f"
  5987. "\x9d\xbd\x5f\x66\xbe\xdc\xbb\x66"
  5988. "\xbf\x17\x99\x62\x4a\x39\x27\x1f"
  5989. "\x1d\xdc\x24\xae\x19\x2f\x98\x4c",
  5990. .ilen = 32,
  5991. .result = "\x19\xb8\x61\x33\x45\x2b\x43\x96"
  5992. "\x6f\x51\xd0\x20\x30\x7d\x9b\xc6"
  5993. "\x26\x3d\xf8\xc9\x65\x16\xa8\x9f"
  5994. "\xf0\x62\x17\x34\xf2\x1e\x8d\x75"
  5995. "\x4e\x13\xcc\xc0\xc3\x2a\x54\x2d",
  5996. .rlen = 40,
  5997. }, {
  5998. .key = "\x7c\xc8\x18\x3b\x8d\x99\xe0\x7c"
  5999. "\x45\x41\xb8\xbd\x5c\xa7\xc2\x32"
  6000. "\x8a\xb8\x02\x59\xa4\xfe\xa9\x2c"
  6001. "\x09\x75\x9a\x9b\x3c\x9b\x27\x39"
  6002. "\xf9\xd9\x4e",
  6003. .klen = 35,
  6004. .iv = "\x63\xb5\x3d\x9d\x43\xf6\x1e\x50",
  6005. .assoc = "\x57\xf5\x6b\x8b\x57\x5c\x3d\x3b"
  6006. "\x13\x02\x01\x0c\x83\x4c\x96\x35"
  6007. "\x8e\xd6\x39\xcf\x7d\x14\x9b\x94"
  6008. "\xb0\x39\x36\xe6\x8f\x57\xe0\x13",
  6009. .alen = 32,
  6010. .input = "\x3b\x6c\x29\x36\xb6\xef\x07\xa6"
  6011. "\x83\x72\x07\x4f\xcf\xfa\x66\x89"
  6012. "\x5f\xca\xb1\xba\xd5\x8f\x2c\x27"
  6013. "\x30\xdb\x75\x09\x93\xd4\x65\xe4",
  6014. .ilen = 32,
  6015. .result = "\xb0\x88\x5a\x33\xaa\xe5\xc7\x1d"
  6016. "\x85\x23\xc7\xc6\x2f\xf4\x1e\x3d"
  6017. "\xcc\x63\x44\x25\x07\x78\x4f\x9e"
  6018. "\x96\xb8\x88\xeb\xbc\x48\x1f\x06"
  6019. "\x39\xaf\x39\xac\xd8\x4a\x80\x39"
  6020. "\x7b\x72\x8a\xf7",
  6021. .rlen = 44,
  6022. }, {
  6023. .key = "\xab\xd0\xe9\x33\x07\x26\xe5\x83"
  6024. "\x8c\x76\x95\xd4\xb6\xdc\xf3\x46"
  6025. "\xf9\x8f\xad\xe3\x02\x13\x83\x77"
  6026. "\x3f\xb0\xf1\xa1\xa1\x22\x0f\x2b"
  6027. "\x24\xa7\x8b",
  6028. .klen = 35,
  6029. .iv = "\x07\xcb\xcc\x0e\xe6\x33\xbf\xf5",
  6030. .assoc = "\xd4\xdb\x30\x1d\x03\xfe\xfd\x5f"
  6031. "\x87\xd4\x8c\xb6\xb6\xf1\x7a\x5d"
  6032. "\xab\x90\x65\x8d\x8e\xca\x4d\x4f"
  6033. "\x16\x0c\x40\x90\x4b\xc7\x36\x73",
  6034. .alen = 32,
  6035. .input = "\xf5\xc6\x7d\x48\xc1\xb7\xe6\x92"
  6036. "\x97\x5a\xca\xc4\xa9\x6d\xf9\x3d"
  6037. "\x6c\xde\xbc\xf1\x90\xea\x6a\xb2"
  6038. "\x35\x86\x36\xaf\x5c\xfe\x4b\x3a",
  6039. .ilen = 32,
  6040. .result = "\x83\x6f\x40\x87\x72\xcf\xc1\x13"
  6041. "\xef\xbb\x80\x21\x04\x6c\x58\x09"
  6042. "\x07\x1b\xfc\xdf\xc0\x3f\x5b\xc7"
  6043. "\xe0\x79\xa8\x6e\x71\x7c\x3f\xcf"
  6044. "\x5c\xda\xb2\x33\xe5\x13\xe2\x0d"
  6045. "\x74\xd1\xef\xb5\x0f\x3a\xb5\xf8",
  6046. .rlen = 48,
  6047. },
  6048. };
  6049. static struct aead_testvec aes_ccm_rfc4309_dec_tv_template[] = {
  6050. {
  6051. .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
  6052. "\xff\x80\x2e\x48\x7d\x82\xf8\xb9"
  6053. "\xc6\xfb\x7d",
  6054. .klen = 19,
  6055. .iv = "\x80\x0d\x13\xab\xd8\xa6\xb2\xd8",
  6056. .alen = 0,
  6057. .input = "\xd5\xe8\x93\x9f\xc7\x89\x2e\x2b",
  6058. .ilen = 8,
  6059. .result = "\x00",
  6060. .rlen = 0,
  6061. .novrfy = 1,
  6062. }, {
  6063. .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
  6064. "\xff\x80\x2e\x48\x7d\x82\xf8\xb9"
  6065. "\xaf\x94\x87",
  6066. .klen = 19,
  6067. .iv = "\x78\x35\x82\x81\x7f\x88\x94\x68",
  6068. .alen = 0,
  6069. .input = "\x41\x3c\xb8\x87\x73\xcb\xf3\xf3",
  6070. .ilen = 8,
  6071. .result = "\x00",
  6072. .rlen = 0,
  6073. }, {
  6074. .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
  6075. "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8"
  6076. "\xc6\xfb\x7d",
  6077. .klen = 19,
  6078. .iv = "\x80\x0d\x13\xab\xd8\xa6\xb2\xd8",
  6079. .assoc = "\xf3\x94\x87\x78\x35\x82\x81\x7f"
  6080. "\x88\x94\x68\xb1\x78\x6b\x2b\xd6"
  6081. "\x04\x1f\x4e\xed\x78\xd5\x33\x66"
  6082. "\xd8\x94\x99\x91\x81\x54\x62\x57",
  6083. .alen = 32,
  6084. .input = "\xf0\x7c\x29\x02\xae\x1c\x2f\x55"
  6085. "\xd0\xd1\x3d\x1a\xa3\x6d\xe4\x0a"
  6086. "\x86\xb0\x87\x6b\x62\x33\x8c\x34"
  6087. "\xce\xab\x57\xcc\x79\x0b\xe0\x6f"
  6088. "\x5c\x3e\x48\x1f\x6c\x46\xf7\x51"
  6089. "\x8b\x84\x83\x2a\xc1\x05\xb8\xc5",
  6090. .ilen = 48,
  6091. .result = "\x50\x82\x3e\x07\xe2\x1e\xb6\xfb"
  6092. "\x33\xe4\x73\xce\xd2\xfb\x95\x79"
  6093. "\xe8\xb4\xb5\x77\x11\x10\x62\x6f"
  6094. "\x6a\x82\xd1\x13\xec\xf5\xd0\x48",
  6095. .rlen = 32,
  6096. .novrfy = 1,
  6097. }, {
  6098. .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
  6099. "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8"
  6100. "\x05\xe0\xc9",
  6101. .klen = 19,
  6102. .iv = "\x0f\xed\x34\xea\x97\xd4\x3b\xdf",
  6103. .assoc = "\x49\x5c\x50\x1f\x1d\x94\xcc\x81"
  6104. "\xba\xb7\xb6\x03\xaf\xa5\xc1\xa1"
  6105. "\xd8\x5c\x42\x68\xe0\x6c\xda\x89"
  6106. "\x05\xac\x56\xac\x1b\x2a\xd3\x86",
  6107. .alen = 32,
  6108. .input = "\x39\xbe\x7d\x15\x62\x77\xf3\x3c"
  6109. "\xad\x83\x52\x6d\x71\x03\x25\x1c"
  6110. "\xed\x81\x3a\x9a\x16\x7d\x19\x80"
  6111. "\x72\x04\x72\xd0\xf6\xff\x05\x0f"
  6112. "\xb7\x14\x30\x00\x32\x9e\xa0\xa6"
  6113. "\x9e\x5a\x18\xa1\xb8\xfe\xdb\xd3",
  6114. .ilen = 48,
  6115. .result = "\x75\x05\xbe\xc2\xd9\x1e\xde\x60"
  6116. "\x47\x3d\x8c\x7d\xbd\xb5\xd9\xb7"
  6117. "\xf2\xae\x61\x05\x8f\x82\x24\x3f"
  6118. "\x9c\x67\x91\xe1\x38\x4f\xe4\x0c",
  6119. .rlen = 32,
  6120. }, {
  6121. .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
  6122. "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
  6123. "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
  6124. "\xee\x49\x83",
  6125. .klen = 27,
  6126. .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e",
  6127. .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
  6128. "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
  6129. "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
  6130. "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
  6131. .alen = 32,
  6132. .input = "\x71\x99\xfa\xf4\x44\x12\x68\x9b",
  6133. .ilen = 8,
  6134. .result = "\x00",
  6135. .rlen = 0,
  6136. }, {
  6137. .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
  6138. "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
  6139. "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
  6140. "\xee\x49\x83",
  6141. .klen = 27,
  6142. .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e",
  6143. .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
  6144. "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
  6145. "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
  6146. "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
  6147. .alen = 32,
  6148. .input = "\xfb\xe5\x5d\x34\xbe\xe5\xe8\xe7"
  6149. "\x5a\xef\x2f\xbf\x1f\x7f\xd4\xb2"
  6150. "\x66\xca\x61\x1e\x96\x7a\x61\xb3"
  6151. "\x1c\x16\x45\x52\xba\x04\x9c\x9f"
  6152. "\xb1\xd2\x40\xbc\x52\x7c\x6f\xb1",
  6153. .ilen = 40,
  6154. .result = "\x85\x34\x66\x42\xc8\x92\x0f\x36"
  6155. "\x58\xe0\x6b\x91\x3c\x98\x5c\xbb"
  6156. "\x0a\x85\xcc\x02\xad\x7a\x96\xe9"
  6157. "\x65\x43\xa4\xc3\x0f\xdc\x55\x81",
  6158. .rlen = 32,
  6159. }, {
  6160. .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
  6161. "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
  6162. "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
  6163. "\xd1\xfc\x57",
  6164. .klen = 27,
  6165. .iv = "\x9c\xfe\xb8\x9c\xad\x71\xaa\x1f",
  6166. .assoc = "\x86\x67\xa5\xa9\x14\x5f\x0d\xc6"
  6167. "\xff\x14\xc7\x44\xbf\x6c\x3a\xc3"
  6168. "\xff\xb6\x81\xbd\xe2\xd5\x06\xc7"
  6169. "\x3c\xa1\x52\x13\x03\x8a\x23\x3a",
  6170. .alen = 32,
  6171. .input = "\x3f\x66\xb0\x9d\xe5\x4b\x38\x00"
  6172. "\xc6\x0e\x6e\xe5\xd6\x98\xa6\x37"
  6173. "\x8c\x26\x33\xc6\xb2\xa2\x17\xfa"
  6174. "\x64\x19\xc0\x30\xd7\xfc\x14\x6b"
  6175. "\xe3\x33\xc2\x04\xb0\x37\xbe\x3f"
  6176. "\xa9\xb4\x2d\x68\x03\xa3\x44\xef",
  6177. .ilen = 48,
  6178. .result = "\x02\x87\x4d\x28\x80\x6e\xb2\xed"
  6179. "\x99\x2a\xa8\xca\x04\x25\x45\x90"
  6180. "\x1d\xdd\x5a\xd9\xe4\xdb\x9c\x9c"
  6181. "\x49\xe9\x01\xfe\xa7\x80\x6d\x6b",
  6182. .rlen = 32,
  6183. .novrfy = 1,
  6184. }, {
  6185. .key = "\xa4\x4b\x54\x29\x0a\xb8\x6d\x01"
  6186. "\x5b\x80\x2a\xcf\x25\xc4\xb7\x5c"
  6187. "\x20\x2c\xad\x30\xc2\x2b\x41\xfb"
  6188. "\x0e\x85\xbc\x33\xad\x0f\x2b\xff"
  6189. "\xee\x49\x83",
  6190. .klen = 35,
  6191. .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e",
  6192. .alen = 0,
  6193. .input = "\x1f\xb8\x8f\xa3\xdd\x54\x00\xf2",
  6194. .ilen = 8,
  6195. .result = "\x00",
  6196. .rlen = 0,
  6197. }, {
  6198. .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
  6199. "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
  6200. "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
  6201. "\xae\x8f\x11\x4c\xc2\x9c\x4a\xbb"
  6202. "\x85\x34\x66",
  6203. .klen = 35,
  6204. .iv = "\x42\xc8\x92\x0f\x36\x58\xe0\x6b",
  6205. .alen = 0,
  6206. .input = "\x48\x01\x5e\x02\x24\x04\x66\x47"
  6207. "\xa1\xea\x6f\xaf\xe8\xfc\xfb\xdd"
  6208. "\xa5\xa9\x87\x8d\x84\xee\x2e\x77"
  6209. "\xbb\x86\xb9\xf5\x5c\x6c\xff\xf6"
  6210. "\x72\xc3\x8e\xf7\x70\xb1\xb2\x07"
  6211. "\xbc\xa8\xa3\xbd\x83\x7c\x1d\x2a",
  6212. .ilen = 48,
  6213. .result = "\xdc\x56\xf2\x71\xb0\xb1\xa0\x6c"
  6214. "\xf0\x97\x3a\xfb\x6d\xe7\x32\x99"
  6215. "\x3e\xaf\x70\x5e\xb2\x4d\xea\x39"
  6216. "\x89\xd4\x75\x7a\x63\xb1\xda\x93",
  6217. .rlen = 32,
  6218. .novrfy = 1,
  6219. }, {
  6220. .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
  6221. "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
  6222. "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
  6223. "\x0d\x1a\x53\x3b\xb5\xe3\xf8\x8b"
  6224. "\xcf\x76\x3f",
  6225. .klen = 35,
  6226. .iv = "\xd9\x95\x75\x8f\x44\x89\x40\x7b",
  6227. .assoc = "\x8f\x86\x6c\x4d\x1d\xc5\x39\x88"
  6228. "\xc8\xf3\x5c\x52\x10\x63\x6f\x2b"
  6229. "\x8a\x2a\xc5\x6f\x30\x23\x58\x7b"
  6230. "\xfb\x36\x03\x11\xb4\xd9\xf2\xfe",
  6231. .alen = 32,
  6232. .input = "\x48\x58\xd6\xf3\xad\x63\x58\xbf"
  6233. "\xae\xc7\x5e\xae\x83\x8f\x7b\xe4"
  6234. "\x78\x5c\x4c\x67\x71\x89\x94\xbf"
  6235. "\x47\xf1\x63\x7e\x1c\x59\xbd\xc5"
  6236. "\x7f\x44\x0a\x0c\x01\x18\x07\x92"
  6237. "\xe1\xd3\x51\xce\x32\x6d\x0c\x5b",
  6238. .ilen = 48,
  6239. .result = "\xc2\x54\xc8\xde\x78\x87\x77\x40"
  6240. "\x49\x71\xe4\xb7\xe7\xcb\x76\x61"
  6241. "\x0a\x41\xb9\xe9\xc0\x76\x54\xab"
  6242. "\x04\x49\x3b\x19\x93\x57\x25\x5d",
  6243. .rlen = 32,
  6244. },
  6245. };
  6246. /*
  6247. * ANSI X9.31 Continuous Pseudo-Random Number Generator (AES mode)
  6248. * test vectors, taken from Appendix B.2.9 and B.2.10:
  6249. * http://csrc.nist.gov/groups/STM/cavp/documents/rng/RNGVS.pdf
  6250. * Only AES-128 is supported at this time.
  6251. */
  6252. #define ANSI_CPRNG_AES_TEST_VECTORS 6
  6253. static struct cprng_testvec ansi_cprng_aes_tv_template[] = {
  6254. {
  6255. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  6256. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  6257. .klen = 16,
  6258. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  6259. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xf9",
  6260. .dtlen = 16,
  6261. .v = "\x80\x00\x00\x00\x00\x00\x00\x00"
  6262. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6263. .vlen = 16,
  6264. .result = "\x59\x53\x1e\xd1\x3b\xb0\xc0\x55"
  6265. "\x84\x79\x66\x85\xc1\x2f\x76\x41",
  6266. .rlen = 16,
  6267. .loops = 1,
  6268. }, {
  6269. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  6270. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  6271. .klen = 16,
  6272. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  6273. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfa",
  6274. .dtlen = 16,
  6275. .v = "\xc0\x00\x00\x00\x00\x00\x00\x00"
  6276. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6277. .vlen = 16,
  6278. .result = "\x7c\x22\x2c\xf4\xca\x8f\xa2\x4c"
  6279. "\x1c\x9c\xb6\x41\xa9\xf3\x22\x0d",
  6280. .rlen = 16,
  6281. .loops = 1,
  6282. }, {
  6283. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  6284. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  6285. .klen = 16,
  6286. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  6287. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfb",
  6288. .dtlen = 16,
  6289. .v = "\xe0\x00\x00\x00\x00\x00\x00\x00"
  6290. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6291. .vlen = 16,
  6292. .result = "\x8a\xaa\x00\x39\x66\x67\x5b\xe5"
  6293. "\x29\x14\x28\x81\xa9\x4d\x4e\xc7",
  6294. .rlen = 16,
  6295. .loops = 1,
  6296. }, {
  6297. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  6298. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  6299. .klen = 16,
  6300. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  6301. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfc",
  6302. .dtlen = 16,
  6303. .v = "\xf0\x00\x00\x00\x00\x00\x00\x00"
  6304. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6305. .vlen = 16,
  6306. .result = "\x88\xdd\xa4\x56\x30\x24\x23\xe5"
  6307. "\xf6\x9d\xa5\x7e\x7b\x95\xc7\x3a",
  6308. .rlen = 16,
  6309. .loops = 1,
  6310. }, {
  6311. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  6312. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  6313. .klen = 16,
  6314. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  6315. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfd",
  6316. .dtlen = 16,
  6317. .v = "\xf8\x00\x00\x00\x00\x00\x00\x00"
  6318. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6319. .vlen = 16,
  6320. .result = "\x05\x25\x92\x46\x61\x79\xd2\xcb"
  6321. "\x78\xc4\x0b\x14\x0a\x5a\x9a\xc8",
  6322. .rlen = 16,
  6323. .loops = 1,
  6324. }, { /* Monte Carlo Test */
  6325. .key = "\x9f\x5b\x51\x20\x0b\xf3\x34\xb5"
  6326. "\xd8\x2b\xe8\xc3\x72\x55\xc8\x48",
  6327. .klen = 16,
  6328. .dt = "\x63\x76\xbb\xe5\x29\x02\xba\x3b"
  6329. "\x67\xc9\x25\xfa\x70\x1f\x11\xac",
  6330. .dtlen = 16,
  6331. .v = "\x57\x2c\x8e\x76\x87\x26\x47\x97"
  6332. "\x7e\x74\xfb\xdd\xc4\x95\x01\xd1",
  6333. .vlen = 16,
  6334. .result = "\x48\xe9\xbd\x0d\x06\xee\x18\xfb"
  6335. "\xe4\x57\x90\xd5\xc3\xfc\x9b\x73",
  6336. .rlen = 16,
  6337. .loops = 10000,
  6338. },
  6339. };
  6340. /* Cast5 test vectors from RFC 2144 */
  6341. #define CAST5_ENC_TEST_VECTORS 3
  6342. #define CAST5_DEC_TEST_VECTORS 3
  6343. static struct cipher_testvec cast5_enc_tv_template[] = {
  6344. {
  6345. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  6346. "\x23\x45\x67\x89\x34\x56\x78\x9a",
  6347. .klen = 16,
  6348. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6349. .ilen = 8,
  6350. .result = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
  6351. .rlen = 8,
  6352. }, {
  6353. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  6354. "\x23\x45",
  6355. .klen = 10,
  6356. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6357. .ilen = 8,
  6358. .result = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
  6359. .rlen = 8,
  6360. }, {
  6361. .key = "\x01\x23\x45\x67\x12",
  6362. .klen = 5,
  6363. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6364. .ilen = 8,
  6365. .result = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
  6366. .rlen = 8,
  6367. },
  6368. };
  6369. static struct cipher_testvec cast5_dec_tv_template[] = {
  6370. {
  6371. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  6372. "\x23\x45\x67\x89\x34\x56\x78\x9a",
  6373. .klen = 16,
  6374. .input = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
  6375. .ilen = 8,
  6376. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6377. .rlen = 8,
  6378. }, {
  6379. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  6380. "\x23\x45",
  6381. .klen = 10,
  6382. .input = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
  6383. .ilen = 8,
  6384. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6385. .rlen = 8,
  6386. }, {
  6387. .key = "\x01\x23\x45\x67\x12",
  6388. .klen = 5,
  6389. .input = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
  6390. .ilen = 8,
  6391. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6392. .rlen = 8,
  6393. },
  6394. };
  6395. /*
  6396. * ARC4 test vectors from OpenSSL
  6397. */
  6398. #define ARC4_ENC_TEST_VECTORS 7
  6399. #define ARC4_DEC_TEST_VECTORS 7
  6400. static struct cipher_testvec arc4_enc_tv_template[] = {
  6401. {
  6402. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6403. .klen = 8,
  6404. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6405. .ilen = 8,
  6406. .result = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
  6407. .rlen = 8,
  6408. }, {
  6409. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6410. .klen = 8,
  6411. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6412. .ilen = 8,
  6413. .result = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
  6414. .rlen = 8,
  6415. }, {
  6416. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6417. .klen = 8,
  6418. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6419. .ilen = 8,
  6420. .result = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
  6421. .rlen = 8,
  6422. }, {
  6423. .key = "\xef\x01\x23\x45",
  6424. .klen = 4,
  6425. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6426. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6427. "\x00\x00\x00\x00",
  6428. .ilen = 20,
  6429. .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  6430. "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
  6431. "\x36\xb6\x78\x58",
  6432. .rlen = 20,
  6433. }, {
  6434. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6435. .klen = 8,
  6436. .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  6437. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  6438. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  6439. "\x12\x34\x56\x78",
  6440. .ilen = 28,
  6441. .result = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
  6442. "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
  6443. "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
  6444. "\x40\x01\x1e\xcf",
  6445. .rlen = 28,
  6446. }, {
  6447. .key = "\xef\x01\x23\x45",
  6448. .klen = 4,
  6449. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6450. "\x00\x00",
  6451. .ilen = 10,
  6452. .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  6453. "\xbd\x61",
  6454. .rlen = 10,
  6455. }, {
  6456. .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
  6457. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6458. .klen = 16,
  6459. .input = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
  6460. .ilen = 8,
  6461. .result = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
  6462. .rlen = 8,
  6463. },
  6464. };
  6465. static struct cipher_testvec arc4_dec_tv_template[] = {
  6466. {
  6467. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6468. .klen = 8,
  6469. .input = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
  6470. .ilen = 8,
  6471. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6472. .rlen = 8,
  6473. }, {
  6474. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6475. .klen = 8,
  6476. .input = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
  6477. .ilen = 8,
  6478. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6479. .rlen = 8,
  6480. }, {
  6481. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6482. .klen = 8,
  6483. .input = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
  6484. .ilen = 8,
  6485. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6486. .rlen = 8,
  6487. }, {
  6488. .key = "\xef\x01\x23\x45",
  6489. .klen = 4,
  6490. .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  6491. "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
  6492. "\x36\xb6\x78\x58",
  6493. .ilen = 20,
  6494. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6495. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6496. "\x00\x00\x00\x00",
  6497. .rlen = 20,
  6498. }, {
  6499. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6500. .klen = 8,
  6501. .input = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
  6502. "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
  6503. "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
  6504. "\x40\x01\x1e\xcf",
  6505. .ilen = 28,
  6506. .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  6507. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  6508. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  6509. "\x12\x34\x56\x78",
  6510. .rlen = 28,
  6511. }, {
  6512. .key = "\xef\x01\x23\x45",
  6513. .klen = 4,
  6514. .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  6515. "\xbd\x61",
  6516. .ilen = 10,
  6517. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6518. "\x00\x00",
  6519. .rlen = 10,
  6520. }, {
  6521. .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
  6522. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6523. .klen = 16,
  6524. .input = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
  6525. .ilen = 8,
  6526. .result = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
  6527. .rlen = 8,
  6528. },
  6529. };
  6530. /*
  6531. * TEA test vectors
  6532. */
  6533. #define TEA_ENC_TEST_VECTORS 4
  6534. #define TEA_DEC_TEST_VECTORS 4
  6535. static struct cipher_testvec tea_enc_tv_template[] = {
  6536. {
  6537. .key = zeroed_string,
  6538. .klen = 16,
  6539. .input = zeroed_string,
  6540. .ilen = 8,
  6541. .result = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
  6542. .rlen = 8,
  6543. }, {
  6544. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  6545. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  6546. .klen = 16,
  6547. .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  6548. .ilen = 8,
  6549. .result = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
  6550. .rlen = 8,
  6551. }, {
  6552. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  6553. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  6554. .klen = 16,
  6555. .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  6556. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  6557. .ilen = 16,
  6558. .result = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
  6559. "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
  6560. .rlen = 16,
  6561. }, {
  6562. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  6563. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  6564. .klen = 16,
  6565. .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
  6566. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  6567. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  6568. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  6569. .ilen = 32,
  6570. .result = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
  6571. "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
  6572. "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
  6573. "\x07\x89\x73\xc2\x45\x92\xc6\x90",
  6574. .rlen = 32,
  6575. }
  6576. };
  6577. static struct cipher_testvec tea_dec_tv_template[] = {
  6578. {
  6579. .key = zeroed_string,
  6580. .klen = 16,
  6581. .input = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
  6582. .ilen = 8,
  6583. .result = zeroed_string,
  6584. .rlen = 8,
  6585. }, {
  6586. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  6587. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  6588. .klen = 16,
  6589. .input = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
  6590. .ilen = 8,
  6591. .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  6592. .rlen = 8,
  6593. }, {
  6594. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  6595. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  6596. .klen = 16,
  6597. .input = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
  6598. "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
  6599. .ilen = 16,
  6600. .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  6601. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  6602. .rlen = 16,
  6603. }, {
  6604. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  6605. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  6606. .klen = 16,
  6607. .input = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
  6608. "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
  6609. "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
  6610. "\x07\x89\x73\xc2\x45\x92\xc6\x90",
  6611. .ilen = 32,
  6612. .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
  6613. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  6614. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  6615. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  6616. .rlen = 32,
  6617. }
  6618. };
  6619. /*
  6620. * XTEA test vectors
  6621. */
  6622. #define XTEA_ENC_TEST_VECTORS 4
  6623. #define XTEA_DEC_TEST_VECTORS 4
  6624. static struct cipher_testvec xtea_enc_tv_template[] = {
  6625. {
  6626. .key = zeroed_string,
  6627. .klen = 16,
  6628. .input = zeroed_string,
  6629. .ilen = 8,
  6630. .result = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
  6631. .rlen = 8,
  6632. }, {
  6633. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  6634. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  6635. .klen = 16,
  6636. .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  6637. .ilen = 8,
  6638. .result = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
  6639. .rlen = 8,
  6640. }, {
  6641. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  6642. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  6643. .klen = 16,
  6644. .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  6645. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  6646. .ilen = 16,
  6647. .result = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
  6648. "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
  6649. .rlen = 16,
  6650. }, {
  6651. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  6652. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  6653. .klen = 16,
  6654. .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
  6655. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  6656. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  6657. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  6658. .ilen = 32,
  6659. .result = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
  6660. "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
  6661. "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
  6662. "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
  6663. .rlen = 32,
  6664. }
  6665. };
  6666. static struct cipher_testvec xtea_dec_tv_template[] = {
  6667. {
  6668. .key = zeroed_string,
  6669. .klen = 16,
  6670. .input = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
  6671. .ilen = 8,
  6672. .result = zeroed_string,
  6673. .rlen = 8,
  6674. }, {
  6675. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  6676. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  6677. .klen = 16,
  6678. .input = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
  6679. .ilen = 8,
  6680. .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  6681. .rlen = 8,
  6682. }, {
  6683. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  6684. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  6685. .klen = 16,
  6686. .input = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
  6687. "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
  6688. .ilen = 16,
  6689. .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  6690. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  6691. .rlen = 16,
  6692. }, {
  6693. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  6694. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  6695. .klen = 16,
  6696. .input = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
  6697. "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
  6698. "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
  6699. "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
  6700. .ilen = 32,
  6701. .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
  6702. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  6703. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  6704. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  6705. .rlen = 32,
  6706. }
  6707. };
  6708. /*
  6709. * KHAZAD test vectors.
  6710. */
  6711. #define KHAZAD_ENC_TEST_VECTORS 5
  6712. #define KHAZAD_DEC_TEST_VECTORS 5
  6713. static struct cipher_testvec khazad_enc_tv_template[] = {
  6714. {
  6715. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  6716. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6717. .klen = 16,
  6718. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6719. .ilen = 8,
  6720. .result = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
  6721. .rlen = 8,
  6722. }, {
  6723. .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
  6724. "\x38\x38\x38\x38\x38\x38\x38\x38",
  6725. .klen = 16,
  6726. .input = "\x38\x38\x38\x38\x38\x38\x38\x38",
  6727. .ilen = 8,
  6728. .result = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
  6729. .rlen = 8,
  6730. }, {
  6731. .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
  6732. "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  6733. .klen = 16,
  6734. .input = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  6735. .ilen = 8,
  6736. .result = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
  6737. .rlen = 8,
  6738. }, {
  6739. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  6740. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  6741. .klen = 16,
  6742. .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  6743. .ilen = 8,
  6744. .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  6745. .rlen = 8,
  6746. }, {
  6747. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  6748. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  6749. .klen = 16,
  6750. .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  6751. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  6752. .ilen = 16,
  6753. .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
  6754. "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  6755. .rlen = 16,
  6756. },
  6757. };
  6758. static struct cipher_testvec khazad_dec_tv_template[] = {
  6759. {
  6760. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  6761. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6762. .klen = 16,
  6763. .input = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
  6764. .ilen = 8,
  6765. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6766. .rlen = 8,
  6767. }, {
  6768. .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
  6769. "\x38\x38\x38\x38\x38\x38\x38\x38",
  6770. .klen = 16,
  6771. .input = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
  6772. .ilen = 8,
  6773. .result = "\x38\x38\x38\x38\x38\x38\x38\x38",
  6774. .rlen = 8,
  6775. }, {
  6776. .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
  6777. "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  6778. .klen = 16,
  6779. .input = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
  6780. .ilen = 8,
  6781. .result = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  6782. .rlen = 8,
  6783. }, {
  6784. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  6785. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  6786. .klen = 16,
  6787. .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  6788. .ilen = 8,
  6789. .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  6790. .rlen = 8,
  6791. }, {
  6792. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  6793. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  6794. .klen = 16,
  6795. .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
  6796. "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  6797. .ilen = 16,
  6798. .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  6799. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  6800. .rlen = 16,
  6801. },
  6802. };
  6803. /*
  6804. * Anubis test vectors.
  6805. */
  6806. #define ANUBIS_ENC_TEST_VECTORS 5
  6807. #define ANUBIS_DEC_TEST_VECTORS 5
  6808. #define ANUBIS_CBC_ENC_TEST_VECTORS 2
  6809. #define ANUBIS_CBC_DEC_TEST_VECTORS 2
  6810. static struct cipher_testvec anubis_enc_tv_template[] = {
  6811. {
  6812. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  6813. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  6814. .klen = 16,
  6815. .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  6816. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  6817. .ilen = 16,
  6818. .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  6819. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
  6820. .rlen = 16,
  6821. }, {
  6822. .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
  6823. "\x03\x03\x03\x03\x03\x03\x03\x03"
  6824. "\x03\x03\x03\x03",
  6825. .klen = 20,
  6826. .input = "\x03\x03\x03\x03\x03\x03\x03\x03"
  6827. "\x03\x03\x03\x03\x03\x03\x03\x03",
  6828. .ilen = 16,
  6829. .result = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
  6830. "\x87\x41\x6f\x82\x0a\x98\x64\xae",
  6831. .rlen = 16,
  6832. }, {
  6833. .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
  6834. "\x24\x24\x24\x24\x24\x24\x24\x24"
  6835. "\x24\x24\x24\x24\x24\x24\x24\x24"
  6836. "\x24\x24\x24\x24",
  6837. .klen = 28,
  6838. .input = "\x24\x24\x24\x24\x24\x24\x24\x24"
  6839. "\x24\x24\x24\x24\x24\x24\x24\x24",
  6840. .ilen = 16,
  6841. .result = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
  6842. "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
  6843. .rlen = 16,
  6844. }, {
  6845. .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
  6846. "\x25\x25\x25\x25\x25\x25\x25\x25"
  6847. "\x25\x25\x25\x25\x25\x25\x25\x25"
  6848. "\x25\x25\x25\x25\x25\x25\x25\x25",
  6849. .klen = 32,
  6850. .input = "\x25\x25\x25\x25\x25\x25\x25\x25"
  6851. "\x25\x25\x25\x25\x25\x25\x25\x25",
  6852. .ilen = 16,
  6853. .result = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
  6854. "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
  6855. .rlen = 16,
  6856. }, {
  6857. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  6858. "\x35\x35\x35\x35\x35\x35\x35\x35"
  6859. "\x35\x35\x35\x35\x35\x35\x35\x35"
  6860. "\x35\x35\x35\x35\x35\x35\x35\x35"
  6861. "\x35\x35\x35\x35\x35\x35\x35\x35",
  6862. .klen = 40,
  6863. .input = "\x35\x35\x35\x35\x35\x35\x35\x35"
  6864. "\x35\x35\x35\x35\x35\x35\x35\x35",
  6865. .ilen = 16,
  6866. .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  6867. "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
  6868. .rlen = 16,
  6869. },
  6870. };
  6871. static struct cipher_testvec anubis_dec_tv_template[] = {
  6872. {
  6873. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  6874. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  6875. .klen = 16,
  6876. .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  6877. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
  6878. .ilen = 16,
  6879. .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  6880. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  6881. .rlen = 16,
  6882. }, {
  6883. .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
  6884. "\x03\x03\x03\x03\x03\x03\x03\x03"
  6885. "\x03\x03\x03\x03",
  6886. .klen = 20,
  6887. .input = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
  6888. "\x87\x41\x6f\x82\x0a\x98\x64\xae",
  6889. .ilen = 16,
  6890. .result = "\x03\x03\x03\x03\x03\x03\x03\x03"
  6891. "\x03\x03\x03\x03\x03\x03\x03\x03",
  6892. .rlen = 16,
  6893. }, {
  6894. .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
  6895. "\x24\x24\x24\x24\x24\x24\x24\x24"
  6896. "\x24\x24\x24\x24\x24\x24\x24\x24"
  6897. "\x24\x24\x24\x24",
  6898. .klen = 28,
  6899. .input = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
  6900. "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
  6901. .ilen = 16,
  6902. .result = "\x24\x24\x24\x24\x24\x24\x24\x24"
  6903. "\x24\x24\x24\x24\x24\x24\x24\x24",
  6904. .rlen = 16,
  6905. }, {
  6906. .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
  6907. "\x25\x25\x25\x25\x25\x25\x25\x25"
  6908. "\x25\x25\x25\x25\x25\x25\x25\x25"
  6909. "\x25\x25\x25\x25\x25\x25\x25\x25",
  6910. .klen = 32,
  6911. .input = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
  6912. "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
  6913. .ilen = 16,
  6914. .result = "\x25\x25\x25\x25\x25\x25\x25\x25"
  6915. "\x25\x25\x25\x25\x25\x25\x25\x25",
  6916. .rlen = 16,
  6917. }, {
  6918. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  6919. "\x35\x35\x35\x35\x35\x35\x35\x35"
  6920. "\x35\x35\x35\x35\x35\x35\x35\x35"
  6921. "\x35\x35\x35\x35\x35\x35\x35\x35"
  6922. "\x35\x35\x35\x35\x35\x35\x35\x35",
  6923. .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  6924. "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
  6925. .klen = 40,
  6926. .ilen = 16,
  6927. .result = "\x35\x35\x35\x35\x35\x35\x35\x35"
  6928. "\x35\x35\x35\x35\x35\x35\x35\x35",
  6929. .rlen = 16,
  6930. },
  6931. };
  6932. static struct cipher_testvec anubis_cbc_enc_tv_template[] = {
  6933. {
  6934. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  6935. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  6936. .klen = 16,
  6937. .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  6938. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  6939. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  6940. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  6941. .ilen = 32,
  6942. .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  6943. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
  6944. "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
  6945. "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
  6946. .rlen = 32,
  6947. }, {
  6948. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  6949. "\x35\x35\x35\x35\x35\x35\x35\x35"
  6950. "\x35\x35\x35\x35\x35\x35\x35\x35"
  6951. "\x35\x35\x35\x35\x35\x35\x35\x35"
  6952. "\x35\x35\x35\x35\x35\x35\x35\x35",
  6953. .klen = 40,
  6954. .input = "\x35\x35\x35\x35\x35\x35\x35\x35"
  6955. "\x35\x35\x35\x35\x35\x35\x35\x35"
  6956. "\x35\x35\x35\x35\x35\x35\x35\x35"
  6957. "\x35\x35\x35\x35\x35\x35\x35\x35",
  6958. .ilen = 32,
  6959. .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  6960. "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
  6961. "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
  6962. "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
  6963. .rlen = 32,
  6964. },
  6965. };
  6966. static struct cipher_testvec anubis_cbc_dec_tv_template[] = {
  6967. {
  6968. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  6969. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  6970. .klen = 16,
  6971. .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  6972. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
  6973. "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
  6974. "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
  6975. .ilen = 32,
  6976. .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  6977. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  6978. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  6979. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  6980. .rlen = 32,
  6981. }, {
  6982. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  6983. "\x35\x35\x35\x35\x35\x35\x35\x35"
  6984. "\x35\x35\x35\x35\x35\x35\x35\x35"
  6985. "\x35\x35\x35\x35\x35\x35\x35\x35"
  6986. "\x35\x35\x35\x35\x35\x35\x35\x35",
  6987. .klen = 40,
  6988. .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  6989. "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
  6990. "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
  6991. "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
  6992. .ilen = 32,
  6993. .result = "\x35\x35\x35\x35\x35\x35\x35\x35"
  6994. "\x35\x35\x35\x35\x35\x35\x35\x35"
  6995. "\x35\x35\x35\x35\x35\x35\x35\x35"
  6996. "\x35\x35\x35\x35\x35\x35\x35\x35",
  6997. .rlen = 32,
  6998. },
  6999. };
  7000. /*
  7001. * XETA test vectors
  7002. */
  7003. #define XETA_ENC_TEST_VECTORS 4
  7004. #define XETA_DEC_TEST_VECTORS 4
  7005. static struct cipher_testvec xeta_enc_tv_template[] = {
  7006. {
  7007. .key = zeroed_string,
  7008. .klen = 16,
  7009. .input = zeroed_string,
  7010. .ilen = 8,
  7011. .result = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
  7012. .rlen = 8,
  7013. }, {
  7014. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  7015. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  7016. .klen = 16,
  7017. .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  7018. .ilen = 8,
  7019. .result = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
  7020. .rlen = 8,
  7021. }, {
  7022. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  7023. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  7024. .klen = 16,
  7025. .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  7026. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  7027. .ilen = 16,
  7028. .result = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
  7029. "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
  7030. .rlen = 16,
  7031. }, {
  7032. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  7033. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  7034. .klen = 16,
  7035. .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
  7036. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  7037. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  7038. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  7039. .ilen = 32,
  7040. .result = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
  7041. "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
  7042. "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
  7043. "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
  7044. .rlen = 32,
  7045. }
  7046. };
  7047. static struct cipher_testvec xeta_dec_tv_template[] = {
  7048. {
  7049. .key = zeroed_string,
  7050. .klen = 16,
  7051. .input = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
  7052. .ilen = 8,
  7053. .result = zeroed_string,
  7054. .rlen = 8,
  7055. }, {
  7056. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  7057. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  7058. .klen = 16,
  7059. .input = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
  7060. .ilen = 8,
  7061. .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  7062. .rlen = 8,
  7063. }, {
  7064. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  7065. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  7066. .klen = 16,
  7067. .input = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
  7068. "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
  7069. .ilen = 16,
  7070. .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  7071. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  7072. .rlen = 16,
  7073. }, {
  7074. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  7075. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  7076. .klen = 16,
  7077. .input = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
  7078. "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
  7079. "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
  7080. "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
  7081. .ilen = 32,
  7082. .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
  7083. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  7084. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  7085. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  7086. .rlen = 32,
  7087. }
  7088. };
  7089. /*
  7090. * FCrypt test vectors
  7091. */
  7092. #define FCRYPT_ENC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_enc_tv_template)
  7093. #define FCRYPT_DEC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_dec_tv_template)
  7094. static struct cipher_testvec fcrypt_pcbc_enc_tv_template[] = {
  7095. { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
  7096. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7097. .klen = 8,
  7098. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7099. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7100. .ilen = 8,
  7101. .result = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
  7102. .rlen = 8,
  7103. }, {
  7104. .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
  7105. .klen = 8,
  7106. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7107. .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
  7108. .ilen = 8,
  7109. .result = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
  7110. .rlen = 8,
  7111. }, { /* From Arla */
  7112. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7113. .klen = 8,
  7114. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7115. .input = "The quick brown fox jumps over the lazy dogs.\0\0",
  7116. .ilen = 48,
  7117. .result = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
  7118. "\xee\xac\x98\x62\x44\x51\xe4\x84"
  7119. "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
  7120. "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
  7121. "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
  7122. "\xf8\x91\x3c\xac\x44\x22\x92\xef",
  7123. .rlen = 48,
  7124. }, {
  7125. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7126. .klen = 8,
  7127. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7128. .input = "The quick brown fox jumps over the lazy dogs.\0\0",
  7129. .ilen = 48,
  7130. .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  7131. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  7132. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  7133. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  7134. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  7135. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  7136. .rlen = 48,
  7137. }, { /* split-page version */
  7138. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7139. .klen = 8,
  7140. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7141. .input = "The quick brown fox jumps over the lazy dogs.\0\0",
  7142. .ilen = 48,
  7143. .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  7144. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  7145. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  7146. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  7147. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  7148. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  7149. .rlen = 48,
  7150. .np = 2,
  7151. .tap = { 20, 28 },
  7152. }
  7153. };
  7154. static struct cipher_testvec fcrypt_pcbc_dec_tv_template[] = {
  7155. { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
  7156. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7157. .klen = 8,
  7158. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7159. .input = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
  7160. .ilen = 8,
  7161. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7162. .rlen = 8,
  7163. }, {
  7164. .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
  7165. .klen = 8,
  7166. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7167. .input = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
  7168. .ilen = 8,
  7169. .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
  7170. .rlen = 8,
  7171. }, { /* From Arla */
  7172. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7173. .klen = 8,
  7174. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7175. .input = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
  7176. "\xee\xac\x98\x62\x44\x51\xe4\x84"
  7177. "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
  7178. "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
  7179. "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
  7180. "\xf8\x91\x3c\xac\x44\x22\x92\xef",
  7181. .ilen = 48,
  7182. .result = "The quick brown fox jumps over the lazy dogs.\0\0",
  7183. .rlen = 48,
  7184. }, {
  7185. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7186. .klen = 8,
  7187. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7188. .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  7189. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  7190. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  7191. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  7192. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  7193. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  7194. .ilen = 48,
  7195. .result = "The quick brown fox jumps over the lazy dogs.\0\0",
  7196. .rlen = 48,
  7197. }, { /* split-page version */
  7198. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7199. .klen = 8,
  7200. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7201. .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  7202. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  7203. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  7204. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  7205. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  7206. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  7207. .ilen = 48,
  7208. .result = "The quick brown fox jumps over the lazy dogs.\0\0",
  7209. .rlen = 48,
  7210. .np = 2,
  7211. .tap = { 20, 28 },
  7212. }
  7213. };
  7214. /*
  7215. * CAMELLIA test vectors.
  7216. */
  7217. #define CAMELLIA_ENC_TEST_VECTORS 3
  7218. #define CAMELLIA_DEC_TEST_VECTORS 3
  7219. #define CAMELLIA_CBC_ENC_TEST_VECTORS 2
  7220. #define CAMELLIA_CBC_DEC_TEST_VECTORS 2
  7221. static struct cipher_testvec camellia_enc_tv_template[] = {
  7222. {
  7223. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7224. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7225. .klen = 16,
  7226. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7227. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7228. .ilen = 16,
  7229. .result = "\x67\x67\x31\x38\x54\x96\x69\x73"
  7230. "\x08\x57\x06\x56\x48\xea\xbe\x43",
  7231. .rlen = 16,
  7232. }, {
  7233. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7234. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  7235. "\x00\x11\x22\x33\x44\x55\x66\x77",
  7236. .klen = 24,
  7237. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7238. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7239. .ilen = 16,
  7240. .result = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
  7241. "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
  7242. .rlen = 16,
  7243. }, {
  7244. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7245. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  7246. "\x00\x11\x22\x33\x44\x55\x66\x77"
  7247. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  7248. .klen = 32,
  7249. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7250. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7251. .ilen = 16,
  7252. .result = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
  7253. "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
  7254. .rlen = 16,
  7255. },
  7256. };
  7257. static struct cipher_testvec camellia_dec_tv_template[] = {
  7258. {
  7259. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7260. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7261. .klen = 16,
  7262. .input = "\x67\x67\x31\x38\x54\x96\x69\x73"
  7263. "\x08\x57\x06\x56\x48\xea\xbe\x43",
  7264. .ilen = 16,
  7265. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7266. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7267. .rlen = 16,
  7268. }, {
  7269. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7270. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  7271. "\x00\x11\x22\x33\x44\x55\x66\x77",
  7272. .klen = 24,
  7273. .input = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
  7274. "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
  7275. .ilen = 16,
  7276. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7277. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7278. .rlen = 16,
  7279. }, {
  7280. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7281. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  7282. "\x00\x11\x22\x33\x44\x55\x66\x77"
  7283. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  7284. .klen = 32,
  7285. .input = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
  7286. "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
  7287. .ilen = 16,
  7288. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7289. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7290. .rlen = 16,
  7291. },
  7292. };
  7293. static struct cipher_testvec camellia_cbc_enc_tv_template[] = {
  7294. {
  7295. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  7296. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  7297. .klen = 16,
  7298. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  7299. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  7300. .input = "Single block msg",
  7301. .ilen = 16,
  7302. .result = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
  7303. "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
  7304. .rlen = 16,
  7305. }, {
  7306. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  7307. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  7308. .klen = 16,
  7309. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  7310. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  7311. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7312. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  7313. "\x10\x11\x12\x13\x14\x15\x16\x17"
  7314. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  7315. .ilen = 32,
  7316. .result = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
  7317. "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
  7318. "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
  7319. "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
  7320. .rlen = 32,
  7321. },
  7322. };
  7323. static struct cipher_testvec camellia_cbc_dec_tv_template[] = {
  7324. {
  7325. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  7326. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  7327. .klen = 16,
  7328. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  7329. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  7330. .input = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
  7331. "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
  7332. .ilen = 16,
  7333. .result = "Single block msg",
  7334. .rlen = 16,
  7335. }, {
  7336. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  7337. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  7338. .klen = 16,
  7339. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  7340. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  7341. .input = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
  7342. "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
  7343. "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
  7344. "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
  7345. .ilen = 32,
  7346. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7347. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  7348. "\x10\x11\x12\x13\x14\x15\x16\x17"
  7349. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  7350. .rlen = 32,
  7351. },
  7352. };
  7353. /*
  7354. * SEED test vectors
  7355. */
  7356. #define SEED_ENC_TEST_VECTORS 4
  7357. #define SEED_DEC_TEST_VECTORS 4
  7358. static struct cipher_testvec seed_enc_tv_template[] = {
  7359. {
  7360. .key = zeroed_string,
  7361. .klen = 16,
  7362. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7363. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  7364. .ilen = 16,
  7365. .result = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
  7366. "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
  7367. .rlen = 16,
  7368. }, {
  7369. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7370. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  7371. .klen = 16,
  7372. .input = zeroed_string,
  7373. .ilen = 16,
  7374. .result = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
  7375. "\x84\x48\x35\x97\xe4\x37\x0f\x43",
  7376. .rlen = 16,
  7377. }, {
  7378. .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
  7379. "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
  7380. .klen = 16,
  7381. .input = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
  7382. "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
  7383. .ilen = 16,
  7384. .result = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
  7385. "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
  7386. .rlen = 16,
  7387. }, {
  7388. .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
  7389. "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
  7390. .klen = 16,
  7391. .input = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
  7392. "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
  7393. .ilen = 16,
  7394. .result = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
  7395. "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
  7396. .rlen = 16,
  7397. }
  7398. };
  7399. static struct cipher_testvec seed_dec_tv_template[] = {
  7400. {
  7401. .key = zeroed_string,
  7402. .klen = 16,
  7403. .input = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
  7404. "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
  7405. .ilen = 16,
  7406. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7407. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  7408. .rlen = 16,
  7409. }, {
  7410. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7411. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  7412. .klen = 16,
  7413. .input = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
  7414. "\x84\x48\x35\x97\xe4\x37\x0f\x43",
  7415. .ilen = 16,
  7416. .result = zeroed_string,
  7417. .rlen = 16,
  7418. }, {
  7419. .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
  7420. "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
  7421. .klen = 16,
  7422. .input = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
  7423. "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
  7424. .ilen = 16,
  7425. .result = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
  7426. "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
  7427. .rlen = 16,
  7428. }, {
  7429. .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
  7430. "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
  7431. .klen = 16,
  7432. .input = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
  7433. "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
  7434. .ilen = 16,
  7435. .result = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
  7436. "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
  7437. .rlen = 16,
  7438. }
  7439. };
  7440. #define SALSA20_STREAM_ENC_TEST_VECTORS 5
  7441. static struct cipher_testvec salsa20_stream_enc_tv_template[] = {
  7442. /*
  7443. * Testvectors from verified.test-vectors submitted to ECRYPT.
  7444. * They are truncated to size 39, 64, 111, 129 to test a variety
  7445. * of input length.
  7446. */
  7447. { /* Set 3, vector 0 */
  7448. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7449. "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
  7450. .klen = 16,
  7451. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7452. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7453. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7454. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7455. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7456. "\x00\x00\x00\x00\x00\x00\x00",
  7457. .ilen = 39,
  7458. .result = "\x2D\xD5\xC3\xF7\xBA\x2B\x20\xF7"
  7459. "\x68\x02\x41\x0C\x68\x86\x88\x89"
  7460. "\x5A\xD8\xC1\xBD\x4E\xA6\xC9\xB1"
  7461. "\x40\xFB\x9B\x90\xE2\x10\x49\xBF"
  7462. "\x58\x3F\x52\x79\x70\xEB\xC1",
  7463. .rlen = 39,
  7464. }, { /* Set 5, vector 0 */
  7465. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7466. "\x00\x00\x00\x00\x00\x00\x00\x00",
  7467. .klen = 16,
  7468. .iv = "\x80\x00\x00\x00\x00\x00\x00\x00",
  7469. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7470. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7471. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7472. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7473. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7474. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7475. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7476. "\x00\x00\x00\x00\x00\x00\x00\x00",
  7477. .ilen = 64,
  7478. .result = "\xB6\x6C\x1E\x44\x46\xDD\x95\x57"
  7479. "\xE5\x78\xE2\x23\xB0\xB7\x68\x01"
  7480. "\x7B\x23\xB2\x67\xBB\x02\x34\xAE"
  7481. "\x46\x26\xBF\x44\x3F\x21\x97\x76"
  7482. "\x43\x6F\xB1\x9F\xD0\xE8\x86\x6F"
  7483. "\xCD\x0D\xE9\xA9\x53\x8F\x4A\x09"
  7484. "\xCA\x9A\xC0\x73\x2E\x30\xBC\xF9"
  7485. "\x8E\x4F\x13\xE4\xB9\xE2\x01\xD9",
  7486. .rlen = 64,
  7487. }, { /* Set 3, vector 27 */
  7488. .key = "\x1B\x1C\x1D\x1E\x1F\x20\x21\x22"
  7489. "\x23\x24\x25\x26\x27\x28\x29\x2A"
  7490. "\x2B\x2C\x2D\x2E\x2F\x30\x31\x32"
  7491. "\x33\x34\x35\x36\x37\x38\x39\x3A",
  7492. .klen = 32,
  7493. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7494. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7495. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7496. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7497. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7498. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7499. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7500. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7501. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7502. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7503. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7504. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7505. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7506. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7507. "\x00\x00\x00\x00\x00\x00\x00",
  7508. .ilen = 111,
  7509. .result = "\xAE\x39\x50\x8E\xAC\x9A\xEC\xE7"
  7510. "\xBF\x97\xBB\x20\xB9\xDE\xE4\x1F"
  7511. "\x87\xD9\x47\xF8\x28\x91\x35\x98"
  7512. "\xDB\x72\xCC\x23\x29\x48\x56\x5E"
  7513. "\x83\x7E\x0B\xF3\x7D\x5D\x38\x7B"
  7514. "\x2D\x71\x02\xB4\x3B\xB5\xD8\x23"
  7515. "\xB0\x4A\xDF\x3C\xEC\xB6\xD9\x3B"
  7516. "\x9B\xA7\x52\xBE\xC5\xD4\x50\x59"
  7517. "\x15\x14\xB4\x0E\x40\xE6\x53\xD1"
  7518. "\x83\x9C\x5B\xA0\x92\x29\x6B\x5E"
  7519. "\x96\x5B\x1E\x2F\xD3\xAC\xC1\x92"
  7520. "\xB1\x41\x3F\x19\x2F\xC4\x3B\xC6"
  7521. "\x95\x46\x45\x54\xE9\x75\x03\x08"
  7522. "\x44\xAF\xE5\x8A\x81\x12\x09",
  7523. .rlen = 111,
  7524. }, { /* Set 5, vector 27 */
  7525. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7526. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7527. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7528. "\x00\x00\x00\x00\x00\x00\x00\x00",
  7529. .klen = 32,
  7530. .iv = "\x00\x00\x00\x10\x00\x00\x00\x00",
  7531. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7532. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7533. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7534. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7535. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7536. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7537. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7538. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7539. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7540. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7541. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7542. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7543. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7544. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7545. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7546. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7547. "\x00",
  7548. .ilen = 129,
  7549. .result = "\xD2\xDB\x1A\x5C\xF1\xC1\xAC\xDB"
  7550. "\xE8\x1A\x7A\x43\x40\xEF\x53\x43"
  7551. "\x5E\x7F\x4B\x1A\x50\x52\x3F\x8D"
  7552. "\x28\x3D\xCF\x85\x1D\x69\x6E\x60"
  7553. "\xF2\xDE\x74\x56\x18\x1B\x84\x10"
  7554. "\xD4\x62\xBA\x60\x50\xF0\x61\xF2"
  7555. "\x1C\x78\x7F\xC1\x24\x34\xAF\x58"
  7556. "\xBF\x2C\x59\xCA\x90\x77\xF3\xB0"
  7557. "\x5B\x4A\xDF\x89\xCE\x2C\x2F\xFC"
  7558. "\x67\xF0\xE3\x45\xE8\xB3\xB3\x75"
  7559. "\xA0\x95\x71\xA1\x29\x39\x94\xCA"
  7560. "\x45\x2F\xBD\xCB\x10\xB6\xBE\x9F"
  7561. "\x8E\xF9\xB2\x01\x0A\x5A\x0A\xB7"
  7562. "\x6B\x9D\x70\x8E\x4B\xD6\x2F\xCD"
  7563. "\x2E\x40\x48\x75\xE9\xE2\x21\x45"
  7564. "\x0B\xC9\xB6\xB5\x66\xBC\x9A\x59"
  7565. "\x5A",
  7566. .rlen = 129,
  7567. }, { /* large test vector generated using Crypto++ */
  7568. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7569. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  7570. "\x10\x11\x12\x13\x14\x15\x16\x17"
  7571. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  7572. .klen = 32,
  7573. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7574. "\x00\x00\x00\x00\x00\x00\x00\x00",
  7575. .input =
  7576. "\x00\x01\x02\x03\x04\x05\x06\x07"
  7577. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  7578. "\x10\x11\x12\x13\x14\x15\x16\x17"
  7579. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  7580. "\x20\x21\x22\x23\x24\x25\x26\x27"
  7581. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  7582. "\x30\x31\x32\x33\x34\x35\x36\x37"
  7583. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  7584. "\x40\x41\x42\x43\x44\x45\x46\x47"
  7585. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  7586. "\x50\x51\x52\x53\x54\x55\x56\x57"
  7587. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  7588. "\x60\x61\x62\x63\x64\x65\x66\x67"
  7589. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  7590. "\x70\x71\x72\x73\x74\x75\x76\x77"
  7591. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  7592. "\x80\x81\x82\x83\x84\x85\x86\x87"
  7593. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  7594. "\x90\x91\x92\x93\x94\x95\x96\x97"
  7595. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  7596. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  7597. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  7598. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  7599. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  7600. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  7601. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  7602. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  7603. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  7604. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  7605. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  7606. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  7607. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  7608. "\x00\x03\x06\x09\x0c\x0f\x12\x15"
  7609. "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
  7610. "\x30\x33\x36\x39\x3c\x3f\x42\x45"
  7611. "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
  7612. "\x60\x63\x66\x69\x6c\x6f\x72\x75"
  7613. "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
  7614. "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
  7615. "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
  7616. "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
  7617. "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
  7618. "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
  7619. "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
  7620. "\x20\x23\x26\x29\x2c\x2f\x32\x35"
  7621. "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
  7622. "\x50\x53\x56\x59\x5c\x5f\x62\x65"
  7623. "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
  7624. "\x80\x83\x86\x89\x8c\x8f\x92\x95"
  7625. "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
  7626. "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
  7627. "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
  7628. "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
  7629. "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
  7630. "\x10\x13\x16\x19\x1c\x1f\x22\x25"
  7631. "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
  7632. "\x40\x43\x46\x49\x4c\x4f\x52\x55"
  7633. "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
  7634. "\x70\x73\x76\x79\x7c\x7f\x82\x85"
  7635. "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
  7636. "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
  7637. "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
  7638. "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
  7639. "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
  7640. "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
  7641. "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
  7642. "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
  7643. "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
  7644. "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
  7645. "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
  7646. "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
  7647. "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
  7648. "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
  7649. "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
  7650. "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
  7651. "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
  7652. "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
  7653. "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
  7654. "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
  7655. "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
  7656. "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
  7657. "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
  7658. "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
  7659. "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
  7660. "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
  7661. "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
  7662. "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
  7663. "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
  7664. "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
  7665. "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
  7666. "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
  7667. "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
  7668. "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
  7669. "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
  7670. "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
  7671. "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
  7672. "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
  7673. "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
  7674. "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
  7675. "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
  7676. "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
  7677. "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
  7678. "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
  7679. "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
  7680. "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
  7681. "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
  7682. "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
  7683. "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
  7684. "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
  7685. "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
  7686. "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
  7687. "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
  7688. "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
  7689. "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
  7690. "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
  7691. "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
  7692. "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
  7693. "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
  7694. "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
  7695. "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
  7696. "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
  7697. "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
  7698. "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
  7699. "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
  7700. "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
  7701. "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
  7702. "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
  7703. "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
  7704. "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
  7705. "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
  7706. "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
  7707. "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
  7708. "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
  7709. "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
  7710. "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
  7711. "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
  7712. "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
  7713. "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
  7714. "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
  7715. "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
  7716. "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
  7717. "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
  7718. "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
  7719. "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
  7720. "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
  7721. "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
  7722. "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
  7723. "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
  7724. "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
  7725. "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
  7726. "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
  7727. "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
  7728. "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
  7729. "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
  7730. "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
  7731. "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
  7732. "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
  7733. "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
  7734. "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
  7735. "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
  7736. "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
  7737. "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
  7738. "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
  7739. "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
  7740. "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
  7741. "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
  7742. "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
  7743. "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
  7744. "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
  7745. "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
  7746. "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
  7747. "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
  7748. "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
  7749. "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
  7750. "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
  7751. "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
  7752. "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
  7753. "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
  7754. "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
  7755. "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
  7756. "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
  7757. "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
  7758. "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
  7759. "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
  7760. "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
  7761. "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
  7762. "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
  7763. "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
  7764. "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
  7765. "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
  7766. "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
  7767. "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
  7768. "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
  7769. "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
  7770. "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
  7771. "\x38\x45\x52\x5f\x6c\x79\x86\x93"
  7772. "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
  7773. "\x08\x15\x22\x2f\x3c\x49\x56\x63"
  7774. "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
  7775. "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
  7776. "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
  7777. "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
  7778. "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
  7779. "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
  7780. "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
  7781. "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
  7782. "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
  7783. "\x18\x25\x32\x3f\x4c\x59\x66\x73"
  7784. "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
  7785. "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
  7786. "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
  7787. "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
  7788. "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
  7789. "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
  7790. "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
  7791. "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
  7792. "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
  7793. "\x28\x35\x42\x4f\x5c\x69\x76\x83"
  7794. "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
  7795. "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
  7796. "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
  7797. "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
  7798. "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
  7799. "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
  7800. "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
  7801. "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
  7802. "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
  7803. "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
  7804. "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
  7805. "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
  7806. "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
  7807. "\x48\x57\x66\x75\x84\x93\xa2\xb1"
  7808. "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
  7809. "\x38\x47\x56\x65\x74\x83\x92\xa1"
  7810. "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
  7811. "\x28\x37\x46\x55\x64\x73\x82\x91"
  7812. "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
  7813. "\x18\x27\x36\x45\x54\x63\x72\x81"
  7814. "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
  7815. "\x08\x17\x26\x35\x44\x53\x62\x71"
  7816. "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
  7817. "\xf8\x07\x16\x25\x34\x43\x52\x61"
  7818. "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
  7819. "\xe8\xf7\x06\x15\x24\x33\x42\x51"
  7820. "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
  7821. "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
  7822. "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
  7823. "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
  7824. "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
  7825. "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
  7826. "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
  7827. "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
  7828. "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
  7829. "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
  7830. "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
  7831. "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
  7832. "\x00\x11\x22\x33\x44\x55\x66\x77"
  7833. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
  7834. "\x10\x21\x32\x43\x54\x65\x76\x87"
  7835. "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
  7836. "\x20\x31\x42\x53\x64\x75\x86\x97"
  7837. "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
  7838. "\x30\x41\x52\x63\x74\x85\x96\xa7"
  7839. "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
  7840. "\x40\x51\x62\x73\x84\x95\xa6\xb7"
  7841. "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
  7842. "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
  7843. "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
  7844. "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
  7845. "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
  7846. "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
  7847. "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
  7848. "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
  7849. "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
  7850. "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
  7851. "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
  7852. "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
  7853. "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
  7854. "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
  7855. "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
  7856. "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
  7857. "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
  7858. "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
  7859. "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
  7860. "\xe0\xf1\x02\x13\x24\x35\x46\x57"
  7861. "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
  7862. "\xf0\x01\x12\x23\x34\x45\x56\x67"
  7863. "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
  7864. "\x00\x13\x26\x39\x4c\x5f\x72\x85"
  7865. "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
  7866. "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
  7867. "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
  7868. "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
  7869. "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
  7870. "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
  7871. "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
  7872. "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
  7873. "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
  7874. "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
  7875. "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
  7876. "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
  7877. "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
  7878. "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
  7879. "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
  7880. "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
  7881. "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
  7882. "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
  7883. "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
  7884. "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
  7885. "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
  7886. "\x10\x23\x36\x49\x5c\x6f\x82\x95"
  7887. "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
  7888. "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
  7889. "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
  7890. "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
  7891. "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
  7892. "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
  7893. "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
  7894. "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
  7895. "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
  7896. "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
  7897. "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
  7898. "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
  7899. "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
  7900. "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
  7901. "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
  7902. "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
  7903. "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
  7904. "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
  7905. "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
  7906. "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
  7907. "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
  7908. "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
  7909. "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
  7910. "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
  7911. "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
  7912. "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
  7913. "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
  7914. "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
  7915. "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
  7916. "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
  7917. "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
  7918. "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
  7919. "\x18\x2d\x42\x57\x6c\x81\x96\xab"
  7920. "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
  7921. "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
  7922. "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
  7923. "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
  7924. "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
  7925. "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
  7926. "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
  7927. "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
  7928. "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
  7929. "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
  7930. "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
  7931. "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
  7932. "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
  7933. "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
  7934. "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
  7935. "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
  7936. "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
  7937. "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
  7938. "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
  7939. "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
  7940. "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
  7941. "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
  7942. "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
  7943. "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
  7944. "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
  7945. "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
  7946. "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
  7947. "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
  7948. "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
  7949. "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
  7950. "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
  7951. "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
  7952. "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
  7953. "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
  7954. "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
  7955. "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
  7956. "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
  7957. "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
  7958. "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
  7959. "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
  7960. "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
  7961. "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
  7962. "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
  7963. "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
  7964. "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
  7965. "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
  7966. "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
  7967. "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
  7968. "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
  7969. "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
  7970. "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
  7971. "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
  7972. "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
  7973. "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
  7974. "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
  7975. "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
  7976. "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
  7977. "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
  7978. "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
  7979. "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
  7980. "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
  7981. "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
  7982. "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
  7983. "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
  7984. "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
  7985. "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
  7986. "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
  7987. "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
  7988. "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
  7989. "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
  7990. "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
  7991. "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
  7992. "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
  7993. "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
  7994. "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
  7995. "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
  7996. "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
  7997. "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
  7998. "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
  7999. "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
  8000. "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
  8001. "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
  8002. "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
  8003. "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
  8004. "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
  8005. "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
  8006. "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
  8007. "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
  8008. "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
  8009. "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
  8010. "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
  8011. "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
  8012. "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
  8013. "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
  8014. "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
  8015. "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
  8016. "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
  8017. "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
  8018. "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
  8019. "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
  8020. "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
  8021. "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
  8022. "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
  8023. "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
  8024. "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
  8025. "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
  8026. "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
  8027. "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
  8028. "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
  8029. "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
  8030. "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
  8031. "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
  8032. "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
  8033. "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
  8034. "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
  8035. "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
  8036. "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
  8037. "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
  8038. "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
  8039. "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
  8040. "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
  8041. "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
  8042. "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
  8043. "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
  8044. "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
  8045. "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
  8046. "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
  8047. "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
  8048. "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
  8049. "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
  8050. "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
  8051. "\x78\x95\xb2\xcf\xec\x09\x26\x43"
  8052. "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
  8053. "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
  8054. "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
  8055. "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
  8056. "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
  8057. "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
  8058. "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
  8059. "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
  8060. "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
  8061. "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
  8062. "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
  8063. "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
  8064. "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
  8065. "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
  8066. "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
  8067. "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
  8068. "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
  8069. "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
  8070. "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
  8071. "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
  8072. "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
  8073. "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
  8074. "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
  8075. "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
  8076. "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
  8077. "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
  8078. "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
  8079. "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
  8080. "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
  8081. "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
  8082. "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
  8083. "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
  8084. "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
  8085. "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
  8086. "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
  8087. "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
  8088. "\x00\x21\x42\x63",
  8089. .ilen = 4100,
  8090. .result =
  8091. "\xb5\x81\xf5\x64\x18\x73\xe3\xf0"
  8092. "\x4c\x13\xf2\x77\x18\x60\x65\x5e"
  8093. "\x29\x01\xce\x98\x55\x53\xf9\x0c"
  8094. "\x2a\x08\xd5\x09\xb3\x57\x55\x56"
  8095. "\xc5\xe9\x56\x90\xcb\x6a\xa3\xc0"
  8096. "\xff\xc4\x79\xb4\xd2\x97\x5d\xc4"
  8097. "\x43\xd1\xfe\x94\x7b\x88\x06\x5a"
  8098. "\xb2\x9e\x2c\xfc\x44\x03\xb7\x90"
  8099. "\xa0\xc1\xba\x6a\x33\xb8\xc7\xb2"
  8100. "\x9d\xe1\x12\x4f\xc0\x64\xd4\x01"
  8101. "\xfe\x8c\x7a\x66\xf7\xe6\x5a\x91"
  8102. "\xbb\xde\x56\x86\xab\x65\x21\x30"
  8103. "\x00\x84\x65\x24\xa5\x7d\x85\xb4"
  8104. "\xe3\x17\xed\x3a\xb7\x6f\xb4\x0b"
  8105. "\x0b\xaf\x15\xae\x5a\x8f\xf2\x0c"
  8106. "\x2f\x27\xf4\x09\xd8\xd2\x96\xb7"
  8107. "\x71\xf2\xc5\x99\x4d\x7e\x7f\x75"
  8108. "\x77\x89\x30\x8b\x59\xdb\xa2\xb2"
  8109. "\xa0\xf3\x19\x39\x2b\xc5\x7e\x3f"
  8110. "\x4f\xd9\xd3\x56\x28\x97\x44\xdc"
  8111. "\xc0\x8b\x77\x24\xd9\x52\xe7\xc5"
  8112. "\xaf\xf6\x7d\x59\xb2\x44\x05\x1d"
  8113. "\xb1\xb0\x11\xa5\x0f\xec\x33\xe1"
  8114. "\x6d\x1b\x4e\x1f\xff\x57\x91\xb4"
  8115. "\x5b\x9a\x96\xc5\x53\xbc\xae\x20"
  8116. "\x3c\xbb\x14\xe2\xe8\x22\x33\xc1"
  8117. "\x5e\x76\x9e\x46\x99\xf6\x2a\x15"
  8118. "\xc6\x97\x02\xa0\x66\x43\xd1\xa6"
  8119. "\x31\xa6\x9f\xfb\xf4\xd3\x69\xe5"
  8120. "\xcd\x76\x95\xb8\x7a\x82\x7f\x21"
  8121. "\x45\xff\x3f\xce\x55\xf6\x95\x10"
  8122. "\x08\x77\x10\x43\xc6\xf3\x09\xe5"
  8123. "\x68\xe7\x3c\xad\x00\x52\x45\x0d"
  8124. "\xfe\x2d\xc6\xc2\x94\x8c\x12\x1d"
  8125. "\xe6\x25\xae\x98\x12\x8e\x19\x9c"
  8126. "\x81\x68\xb1\x11\xf6\x69\xda\xe3"
  8127. "\x62\x08\x18\x7a\x25\x49\x28\xac"
  8128. "\xba\x71\x12\x0b\xe4\xa2\xe5\xc7"
  8129. "\x5d\x8e\xec\x49\x40\x21\xbf\x5a"
  8130. "\x98\xf3\x02\x68\x55\x03\x7f\x8a"
  8131. "\xe5\x94\x0c\x32\x5c\x07\x82\x63"
  8132. "\xaf\x6f\x91\x40\x84\x8e\x52\x25"
  8133. "\xd0\xb0\x29\x53\x05\xe2\x50\x7a"
  8134. "\x34\xeb\xc9\x46\x20\xa8\x3d\xde"
  8135. "\x7f\x16\x5f\x36\xc5\x2e\xdc\xd1"
  8136. "\x15\x47\xc7\x50\x40\x6d\x91\xc5"
  8137. "\xe7\x93\x95\x1a\xd3\x57\xbc\x52"
  8138. "\x33\xee\x14\x19\x22\x52\x89\xa7"
  8139. "\x4a\x25\x56\x77\x4b\xca\xcf\x0a"
  8140. "\xe1\xf5\x35\x85\x30\x7e\x59\x4a"
  8141. "\xbd\x14\x5b\xdf\xe3\x46\xcb\xac"
  8142. "\x1f\x6c\x96\x0e\xf4\x81\xd1\x99"
  8143. "\xca\x88\x63\x3d\x02\x58\x6b\xa9"
  8144. "\xe5\x9f\xb3\x00\xb2\x54\xc6\x74"
  8145. "\x1c\xbf\x46\xab\x97\xcc\xf8\x54"
  8146. "\x04\x07\x08\x52\xe6\xc0\xda\x93"
  8147. "\x74\x7d\x93\x99\x5d\x78\x68\xa6"
  8148. "\x2e\x6b\xd3\x6a\x69\xcc\x12\x6b"
  8149. "\xd4\xc7\xa5\xc6\xe7\xf6\x03\x04"
  8150. "\x5d\xcd\x61\x5e\x17\x40\xdc\xd1"
  8151. "\x5c\xf5\x08\xdf\x5c\x90\x85\xa4"
  8152. "\xaf\xf6\x78\xbb\x0d\xf1\xf4\xa4"
  8153. "\x54\x26\x72\x9e\x61\xfa\x86\xcf"
  8154. "\xe8\x9e\xa1\xe0\xc7\x48\x23\xae"
  8155. "\x5a\x90\xae\x75\x0a\x74\x18\x89"
  8156. "\x05\xb1\x92\xb2\x7f\xd0\x1b\xa6"
  8157. "\x62\x07\x25\x01\xc7\xc2\x4f\xf9"
  8158. "\xe8\xfe\x63\x95\x80\x07\xb4\x26"
  8159. "\xcc\xd1\x26\xb6\xc4\x3f\x9e\xcb"
  8160. "\x8e\x3b\x2e\x44\x16\xd3\x10\x9a"
  8161. "\x95\x08\xeb\xc8\xcb\xeb\xbf\x6f"
  8162. "\x0b\xcd\x1f\xc8\xca\x86\xaa\xec"
  8163. "\x33\xe6\x69\xf4\x45\x25\x86\x3a"
  8164. "\x22\x94\x4f\x00\x23\x6a\x44\xc2"
  8165. "\x49\x97\x33\xab\x36\x14\x0a\x70"
  8166. "\x24\xc3\xbe\x04\x3b\x79\xa0\xf9"
  8167. "\xb8\xe7\x76\x29\x22\x83\xd7\xf2"
  8168. "\x94\xf4\x41\x49\xba\x5f\x7b\x07"
  8169. "\xb5\xfb\xdb\x03\x1a\x9f\xb6\x4c"
  8170. "\xc2\x2e\x37\x40\x49\xc3\x38\x16"
  8171. "\xe2\x4f\x77\x82\xb0\x68\x4c\x71"
  8172. "\x1d\x57\x61\x9c\xd9\x4e\x54\x99"
  8173. "\x47\x13\x28\x73\x3c\xbb\x00\x90"
  8174. "\xf3\x4d\xc9\x0e\xfd\xe7\xb1\x71"
  8175. "\xd3\x15\x79\xbf\xcc\x26\x2f\xbd"
  8176. "\xad\x6c\x50\x69\x6c\x3e\x6d\x80"
  8177. "\x9a\xea\x78\xaf\x19\xb2\x0d\x4d"
  8178. "\xad\x04\x07\xae\x22\x90\x4a\x93"
  8179. "\x32\x0e\x36\x9b\x1b\x46\xba\x3b"
  8180. "\xb4\xac\xc6\xd1\xa2\x31\x53\x3b"
  8181. "\x2a\x3d\x45\xfe\x03\x61\x10\x85"
  8182. "\x17\x69\xa6\x78\xcc\x6c\x87\x49"
  8183. "\x53\xf9\x80\x10\xde\x80\xa2\x41"
  8184. "\x6a\xc3\x32\x02\xad\x6d\x3c\x56"
  8185. "\x00\x71\x51\x06\xa7\xbd\xfb\xef"
  8186. "\x3c\xb5\x9f\xfc\x48\x7d\x53\x7c"
  8187. "\x66\xb0\x49\x23\xc4\x47\x10\x0e"
  8188. "\xe5\x6c\x74\x13\xe6\xc5\x3f\xaa"
  8189. "\xde\xff\x07\x44\xdd\x56\x1b\xad"
  8190. "\x09\x77\xfb\x5b\x12\xb8\x0d\x38"
  8191. "\x17\x37\x35\x7b\x9b\xbc\xfe\xd4"
  8192. "\x7e\x8b\xda\x7e\x5b\x04\xa7\x22"
  8193. "\xa7\x31\xa1\x20\x86\xc7\x1b\x99"
  8194. "\xdb\xd1\x89\xf4\x94\xa3\x53\x69"
  8195. "\x8d\xe7\xe8\x74\x11\x8d\x74\xd6"
  8196. "\x07\x37\x91\x9f\xfd\x67\x50\x3a"
  8197. "\xc9\xe1\xf4\x36\xd5\xa0\x47\xd1"
  8198. "\xf9\xe5\x39\xa3\x31\xac\x07\x36"
  8199. "\x23\xf8\x66\x18\x14\x28\x34\x0f"
  8200. "\xb8\xd0\xe7\x29\xb3\x04\x4b\x55"
  8201. "\x01\x41\xb2\x75\x8d\xcb\x96\x85"
  8202. "\x3a\xfb\xab\x2b\x9e\xfa\x58\x20"
  8203. "\x44\x1f\xc0\x14\x22\x75\x61\xe8"
  8204. "\xaa\x19\xcf\xf1\x82\x56\xf4\xd7"
  8205. "\x78\x7b\x3d\x5f\xb3\x9e\x0b\x8a"
  8206. "\x57\x50\xdb\x17\x41\x65\x4d\xa3"
  8207. "\x02\xc9\x9c\x9c\x53\xfb\x39\x39"
  8208. "\x9b\x1d\x72\x24\xda\xb7\x39\xbe"
  8209. "\x13\x3b\xfa\x29\xda\x9e\x54\x64"
  8210. "\x6e\xba\xd8\xa1\xcb\xb3\x36\xfa"
  8211. "\xcb\x47\x85\xe9\x61\x38\xbc\xbe"
  8212. "\xc5\x00\x38\x2a\x54\xf7\xc4\xb9"
  8213. "\xb3\xd3\x7b\xa0\xa0\xf8\x72\x7f"
  8214. "\x8c\x8e\x82\x0e\xc6\x1c\x75\x9d"
  8215. "\xca\x8e\x61\x87\xde\xad\x80\xd2"
  8216. "\xf5\xf9\x80\xef\x15\x75\xaf\xf5"
  8217. "\x80\xfb\xff\x6d\x1e\x25\xb7\x40"
  8218. "\x61\x6a\x39\x5a\x6a\xb5\x31\xab"
  8219. "\x97\x8a\x19\x89\x44\x40\xc0\xa6"
  8220. "\xb4\x4e\x30\x32\x7b\x13\xe7\x67"
  8221. "\xa9\x8b\x57\x04\xc2\x01\xa6\xf4"
  8222. "\x28\x99\xad\x2c\x76\xa3\x78\xc2"
  8223. "\x4a\xe6\xca\x5c\x50\x6a\xc1\xb0"
  8224. "\x62\x4b\x10\x8e\x7c\x17\x43\xb3"
  8225. "\x17\x66\x1c\x3e\x8d\x69\xf0\x5a"
  8226. "\x71\xf5\x97\xdc\xd1\x45\xdd\x28"
  8227. "\xf3\x5d\xdf\x53\x7b\x11\xe5\xbc"
  8228. "\x4c\xdb\x1b\x51\x6b\xe9\xfb\x3d"
  8229. "\xc1\xc3\x2c\xb9\x71\xf5\xb6\xb2"
  8230. "\x13\x36\x79\x80\x53\xe8\xd3\xa6"
  8231. "\x0a\xaf\xfd\x56\x97\xf7\x40\x8e"
  8232. "\x45\xce\xf8\xb0\x9e\x5c\x33\x82"
  8233. "\xb0\x44\x56\xfc\x05\x09\xe9\x2a"
  8234. "\xac\x26\x80\x14\x1d\xc8\x3a\x35"
  8235. "\x4c\x82\x97\xfd\x76\xb7\xa9\x0a"
  8236. "\x35\x58\x79\x8e\x0f\x66\xea\xaf"
  8237. "\x51\x6c\x09\xa9\x6e\x9b\xcb\x9a"
  8238. "\x31\x47\xa0\x2f\x7c\x71\xb4\x4a"
  8239. "\x11\xaa\x8c\x66\xc5\x64\xe6\x3a"
  8240. "\x54\xda\x24\x6a\xc4\x41\x65\x46"
  8241. "\x82\xa0\x0a\x0f\x5f\xfb\x25\xd0"
  8242. "\x2c\x91\xa7\xee\xc4\x81\x07\x86"
  8243. "\x75\x5e\x33\x69\x97\xe4\x2c\xa8"
  8244. "\x9d\x9f\x0b\x6a\xbe\xad\x98\xda"
  8245. "\x6d\x94\x41\xda\x2c\x1e\x89\xc4"
  8246. "\xc2\xaf\x1e\x00\x05\x0b\x83\x60"
  8247. "\xbd\x43\xea\x15\x23\x7f\xb9\xac"
  8248. "\xee\x4f\x2c\xaf\x2a\xf3\xdf\xd0"
  8249. "\xf3\x19\x31\xbb\x4a\x74\x84\x17"
  8250. "\x52\x32\x2c\x7d\x61\xe4\xcb\xeb"
  8251. "\x80\x38\x15\x52\xcb\x6f\xea\xe5"
  8252. "\x73\x9c\xd9\x24\x69\xc6\x95\x32"
  8253. "\x21\xc8\x11\xe4\xdc\x36\xd7\x93"
  8254. "\x38\x66\xfb\xb2\x7f\x3a\xb9\xaf"
  8255. "\x31\xdd\x93\x75\x78\x8a\x2c\x94"
  8256. "\x87\x1a\x58\xec\x9e\x7d\x4d\xba"
  8257. "\xe1\xe5\x4d\xfc\xbc\xa4\x2a\x14"
  8258. "\xef\xcc\xa7\xec\xab\x43\x09\x18"
  8259. "\xd3\xab\x68\xd1\x07\x99\x44\x47"
  8260. "\xd6\x83\x85\x3b\x30\xea\xa9\x6b"
  8261. "\x63\xea\xc4\x07\xfb\x43\x2f\xa4"
  8262. "\xaa\xb0\xab\x03\x89\xce\x3f\x8c"
  8263. "\x02\x7c\x86\x54\xbc\x88\xaf\x75"
  8264. "\xd2\xdc\x63\x17\xd3\x26\xf6\x96"
  8265. "\xa9\x3c\xf1\x61\x8c\x11\x18\xcc"
  8266. "\xd6\xea\x5b\xe2\xcd\xf0\xf1\xb2"
  8267. "\xe5\x35\x90\x1f\x85\x4c\x76\x5b"
  8268. "\x66\xce\x44\xa4\x32\x9f\xe6\x7b"
  8269. "\x71\x6e\x9f\x58\x15\x67\x72\x87"
  8270. "\x64\x8e\x3a\x44\x45\xd4\x76\xfa"
  8271. "\xc2\xf6\xef\x85\x05\x18\x7a\x9b"
  8272. "\xba\x41\x54\xac\xf0\xfc\x59\x12"
  8273. "\x3f\xdf\xa0\xe5\x8a\x65\xfd\x3a"
  8274. "\x62\x8d\x83\x2c\x03\xbe\x05\x76"
  8275. "\x2e\x53\x49\x97\x94\x33\xae\x40"
  8276. "\x81\x15\xdb\x6e\xad\xaa\xf5\x4b"
  8277. "\xe3\x98\x70\xdf\xe0\x7c\xcd\xdb"
  8278. "\x02\xd4\x7d\x2f\xc1\xe6\xb4\xf3"
  8279. "\xd7\x0d\x7a\xd9\x23\x9e\x87\x2d"
  8280. "\xce\x87\xad\xcc\x72\x05\x00\x29"
  8281. "\xdc\x73\x7f\x64\xc1\x15\x0e\xc2"
  8282. "\xdf\xa7\x5f\xeb\x41\xa1\xcd\xef"
  8283. "\x5c\x50\x79\x2a\x56\x56\x71\x8c"
  8284. "\xac\xc0\x79\x50\x69\xca\x59\x32"
  8285. "\x65\xf2\x54\xe4\x52\x38\x76\xd1"
  8286. "\x5e\xde\x26\x9e\xfb\x75\x2e\x11"
  8287. "\xb5\x10\xf4\x17\x73\xf5\x89\xc7"
  8288. "\x4f\x43\x5c\x8e\x7c\xb9\x05\x52"
  8289. "\x24\x40\x99\xfe\x9b\x85\x0b\x6c"
  8290. "\x22\x3e\x8b\xae\x86\xa1\xd2\x79"
  8291. "\x05\x68\x6b\xab\xe3\x41\x49\xed"
  8292. "\x15\xa1\x8d\x40\x2d\x61\xdf\x1a"
  8293. "\x59\xc9\x26\x8b\xef\x30\x4c\x88"
  8294. "\x4b\x10\xf8\x8d\xa6\x92\x9f\x4b"
  8295. "\xf3\xc4\x53\x0b\x89\x5d\x28\x92"
  8296. "\xcf\x78\xb2\xc0\x5d\xed\x7e\xfc"
  8297. "\xc0\x12\x23\x5f\x5a\x78\x86\x43"
  8298. "\x6e\x27\xf7\x5a\xa7\x6a\xed\x19"
  8299. "\x04\xf0\xb3\x12\xd1\xbd\x0e\x89"
  8300. "\x6e\xbc\x96\xa8\xd8\x49\x39\x9f"
  8301. "\x7e\x67\xf0\x2e\x3e\x01\xa9\xba"
  8302. "\xec\x8b\x62\x8e\xcb\x4a\x70\x43"
  8303. "\xc7\xc2\xc4\xca\x82\x03\x73\xe9"
  8304. "\x11\xdf\xcf\x54\xea\xc9\xb0\x95"
  8305. "\x51\xc0\x13\x3d\x92\x05\xfa\xf4"
  8306. "\xa9\x34\xc8\xce\x6c\x3d\x54\xcc"
  8307. "\xc4\xaf\xf1\xdc\x11\x44\x26\xa2"
  8308. "\xaf\xf1\x85\x75\x7d\x03\x61\x68"
  8309. "\x4e\x78\xc6\x92\x7d\x86\x7d\x77"
  8310. "\xdc\x71\x72\xdb\xc6\xae\xa1\xcb"
  8311. "\x70\x9a\x0b\x19\xbe\x4a\x6c\x2a"
  8312. "\xe2\xba\x6c\x64\x9a\x13\x28\xdf"
  8313. "\x85\x75\xe6\x43\xf6\x87\x08\x68"
  8314. "\x6e\xba\x6e\x79\x9f\x04\xbc\x23"
  8315. "\x50\xf6\x33\x5c\x1f\x24\x25\xbe"
  8316. "\x33\x47\x80\x45\x56\xa3\xa7\xd7"
  8317. "\x7a\xb1\x34\x0b\x90\x3c\x9c\xad"
  8318. "\x44\x5f\x9e\x0e\x9d\xd4\xbd\x93"
  8319. "\x5e\xfa\x3c\xe0\xb0\xd9\xed\xf3"
  8320. "\xd6\x2e\xff\x24\xd8\x71\x6c\xed"
  8321. "\xaf\x55\xeb\x22\xac\x93\x68\x32"
  8322. "\x05\x5b\x47\xdd\xc6\x4a\xcb\xc7"
  8323. "\x10\xe1\x3c\x92\x1a\xf3\x23\x78"
  8324. "\x2b\xa1\xd2\x80\xf4\x12\xb1\x20"
  8325. "\x8f\xff\x26\x35\xdd\xfb\xc7\x4e"
  8326. "\x78\xf1\x2d\x50\x12\x77\xa8\x60"
  8327. "\x7c\x0f\xf5\x16\x2f\x63\x70\x2a"
  8328. "\xc0\x96\x80\x4e\x0a\xb4\x93\x35"
  8329. "\x5d\x1d\x3f\x56\xf7\x2f\xbb\x90"
  8330. "\x11\x16\x8f\xa2\xec\x47\xbe\xac"
  8331. "\x56\x01\x26\x56\xb1\x8c\xb2\x10"
  8332. "\xf9\x1a\xca\xf5\xd1\xb7\x39\x20"
  8333. "\x63\xf1\x69\x20\x4f\x13\x12\x1f"
  8334. "\x5b\x65\xfc\x98\xf7\xc4\x7a\xbe"
  8335. "\xf7\x26\x4d\x2b\x84\x7b\x42\xad"
  8336. "\xd8\x7a\x0a\xb4\xd8\x74\xbf\xc1"
  8337. "\xf0\x6e\xb4\x29\xa3\xbb\xca\x46"
  8338. "\x67\x70\x6a\x2d\xce\x0e\xa2\x8a"
  8339. "\xa9\x87\xbf\x05\xc4\xc1\x04\xa3"
  8340. "\xab\xd4\x45\x43\x8c\xb6\x02\xb0"
  8341. "\x41\xc8\xfc\x44\x3d\x59\xaa\x2e"
  8342. "\x44\x21\x2a\x8d\x88\x9d\x57\xf4"
  8343. "\xa0\x02\x77\xb8\xa6\xa0\xe6\x75"
  8344. "\x5c\x82\x65\x3e\x03\x5c\x29\x8f"
  8345. "\x38\x55\xab\x33\x26\xef\x9f\x43"
  8346. "\x52\xfd\x68\xaf\x36\xb4\xbb\x9a"
  8347. "\x58\x09\x09\x1b\xc3\x65\x46\x46"
  8348. "\x1d\xa7\x94\x18\x23\x50\x2c\xca"
  8349. "\x2c\x55\x19\x97\x01\x9d\x93\x3b"
  8350. "\x63\x86\xf2\x03\x67\x45\xd2\x72"
  8351. "\x28\x52\x6c\xf4\xe3\x1c\xb5\x11"
  8352. "\x13\xf1\xeb\x21\xc7\xd9\x56\x82"
  8353. "\x2b\x82\x39\xbd\x69\x54\xed\x62"
  8354. "\xc3\xe2\xde\x73\xd4\x6a\x12\xae"
  8355. "\x13\x21\x7f\x4b\x5b\xfc\xbf\xe8"
  8356. "\x2b\xbe\x56\xba\x68\x8b\x9a\xb1"
  8357. "\x6e\xfa\xbf\x7e\x5a\x4b\xf1\xac"
  8358. "\x98\x65\x85\xd1\x93\x53\xd3\x7b"
  8359. "\x09\xdd\x4b\x10\x6d\x84\xb0\x13"
  8360. "\x65\xbd\xcf\x52\x09\xc4\x85\xe2"
  8361. "\x84\x74\x15\x65\xb7\xf7\x51\xaf"
  8362. "\x55\xad\xa4\xd1\x22\x54\x70\x94"
  8363. "\xa0\x1c\x90\x41\xfd\x99\xd7\x5a"
  8364. "\x31\xef\xaa\x25\xd0\x7f\x4f\xea"
  8365. "\x1d\x55\x42\xe5\x49\xb0\xd0\x46"
  8366. "\x62\x36\x43\xb2\x82\x15\x75\x50"
  8367. "\xa4\x72\xeb\x54\x27\x1f\x8a\xe4"
  8368. "\x7d\xe9\x66\xc5\xf1\x53\xa4\xd1"
  8369. "\x0c\xeb\xb8\xf8\xbc\xd4\xe2\xe7"
  8370. "\xe1\xf8\x4b\xcb\xa9\xa1\xaf\x15"
  8371. "\x83\xcb\x72\xd0\x33\x79\x00\x2d"
  8372. "\x9f\xd7\xf1\x2e\x1e\x10\xe4\x45"
  8373. "\xc0\x75\x3a\x39\xea\x68\xf7\x5d"
  8374. "\x1b\x73\x8f\xe9\x8e\x0f\x72\x47"
  8375. "\xae\x35\x0a\x31\x7a\x14\x4d\x4a"
  8376. "\x6f\x47\xf7\x7e\x91\x6e\x74\x8b"
  8377. "\x26\x47\xf9\xc3\xf9\xde\x70\xf5"
  8378. "\x61\xab\xa9\x27\x9f\x82\xe4\x9c"
  8379. "\x89\x91\x3f\x2e\x6a\xfd\xb5\x49"
  8380. "\xe9\xfd\x59\x14\x36\x49\x40\x6d"
  8381. "\x32\xd8\x85\x42\xf3\xa5\xdf\x0c"
  8382. "\xa8\x27\xd7\x54\xe2\x63\x2f\xf2"
  8383. "\x7e\x8b\x8b\xe7\xf1\x9a\x95\x35"
  8384. "\x43\xdc\x3a\xe4\xb6\xf4\xd0\xdf"
  8385. "\x9c\xcb\x94\xf3\x21\xa0\x77\x50"
  8386. "\xe2\xc6\xc4\xc6\x5f\x09\x64\x5b"
  8387. "\x92\x90\xd8\xe1\xd1\xed\x4b\x42"
  8388. "\xd7\x37\xaf\x65\x3d\x11\x39\xb6"
  8389. "\x24\x8a\x60\xae\xd6\x1e\xbf\x0e"
  8390. "\x0d\xd7\xdc\x96\x0e\x65\x75\x4e"
  8391. "\x29\x06\x9d\xa4\x51\x3a\x10\x63"
  8392. "\x8f\x17\x07\xd5\x8e\x3c\xf4\x28"
  8393. "\x00\x5a\x5b\x05\x19\xd8\xc0\x6c"
  8394. "\xe5\x15\xe4\x9c\x9d\x71\x9d\x5e"
  8395. "\x94\x29\x1a\xa7\x80\xfa\x0e\x33"
  8396. "\x03\xdd\xb7\x3e\x9a\xa9\x26\x18"
  8397. "\x37\xa9\x64\x08\x4d\x94\x5a\x88"
  8398. "\xca\x35\xce\x81\x02\xe3\x1f\x1b"
  8399. "\x89\x1a\x77\x85\xe3\x41\x6d\x32"
  8400. "\x42\x19\x23\x7d\xc8\x73\xee\x25"
  8401. "\x85\x0d\xf8\x31\x25\x79\x1b\x6f"
  8402. "\x79\x25\xd2\xd8\xd4\x23\xfd\xf7"
  8403. "\x82\x36\x6a\x0c\x46\x22\x15\xe9"
  8404. "\xff\x72\x41\x91\x91\x7d\x3a\xb7"
  8405. "\xdd\x65\x99\x70\xf6\x8d\x84\xf8"
  8406. "\x67\x15\x20\x11\xd6\xb2\x55\x7b"
  8407. "\xdb\x87\xee\xef\x55\x89\x2a\x59"
  8408. "\x2b\x07\x8f\x43\x8a\x59\x3c\x01"
  8409. "\x8b\x65\x54\xa1\x66\xd5\x38\xbd"
  8410. "\xc6\x30\xa9\xcc\x49\xb6\xa8\x1b"
  8411. "\xb8\xc0\x0e\xe3\x45\x28\xe2\xff"
  8412. "\x41\x9f\x7e\x7c\xd1\xae\x9e\x25"
  8413. "\x3f\x4c\x7c\x7c\xf4\xa8\x26\x4d"
  8414. "\x5c\xfd\x4b\x27\x18\xf9\x61\x76"
  8415. "\x48\xba\x0c\x6b\xa9\x4d\xfc\xf5"
  8416. "\x3b\x35\x7e\x2f\x4a\xa9\xc2\x9a"
  8417. "\xae\xab\x86\x09\x89\xc9\xc2\x40"
  8418. "\x39\x2c\x81\xb3\xb8\x17\x67\xc2"
  8419. "\x0d\x32\x4a\x3a\x67\x81\xd7\x1a"
  8420. "\x34\x52\xc5\xdb\x0a\xf5\x63\x39"
  8421. "\xea\x1f\xe1\x7c\xa1\x9e\xc1\x35"
  8422. "\xe3\xb1\x18\x45\x67\xf9\x22\x38"
  8423. "\x95\xd9\x34\x34\x86\xc6\x41\x94"
  8424. "\x15\xf9\x5b\x41\xa6\x87\x8b\xf8"
  8425. "\xd5\xe1\x1b\xe2\x5b\xf3\x86\x10"
  8426. "\xff\xe6\xae\x69\x76\xbc\x0d\xb4"
  8427. "\x09\x90\x0c\xa2\x65\x0c\xad\x74"
  8428. "\xf5\xd7\xff\xda\xc1\xce\x85\xbe"
  8429. "\x00\xa7\xff\x4d\x2f\x65\xd3\x8c"
  8430. "\x86\x2d\x05\xe8\xed\x3e\x6b\x8b"
  8431. "\x0f\x3d\x83\x8c\xf1\x1d\x5b\x96"
  8432. "\x2e\xb1\x9c\xc2\x98\xe1\x70\xb9"
  8433. "\xba\x5c\x8a\x43\xd6\x34\xa7\x2d"
  8434. "\xc9\x92\xae\xf2\xa5\x7b\x05\x49"
  8435. "\xa7\x33\x34\x86\xca\xe4\x96\x23"
  8436. "\x76\x5b\xf2\xc6\xf1\x51\x28\x42"
  8437. "\x7b\xcc\x76\x8f\xfa\xa2\xad\x31"
  8438. "\xd4\xd6\x7a\x6d\x25\x25\x54\xe4"
  8439. "\x3f\x50\x59\xe1\x5c\x05\xb7\x27"
  8440. "\x48\xbf\x07\xec\x1b\x13\xbe\x2b"
  8441. "\xa1\x57\x2b\xd5\xab\xd7\xd0\x4c"
  8442. "\x1e\xcb\x71\x9b\xc5\x90\x85\xd3"
  8443. "\xde\x59\xec\x71\xeb\x89\xbb\xd0"
  8444. "\x09\x50\xe1\x16\x3f\xfd\x1c\x34"
  8445. "\xc3\x1c\xa1\x10\x77\x53\x98\xef"
  8446. "\xf2\xfd\xa5\x01\x59\xc2\x9b\x26"
  8447. "\xc7\x42\xd9\x49\xda\x58\x2b\x6e"
  8448. "\x9f\x53\x19\x76\x7e\xd9\xc9\x0e"
  8449. "\x68\xc8\x7f\x51\x22\x42\xef\x49"
  8450. "\xa4\x55\xb6\x36\xac\x09\xc7\x31"
  8451. "\x88\x15\x4b\x2e\x8f\x3a\x08\xf7"
  8452. "\xd8\xf7\xa8\xc5\xa9\x33\xa6\x45"
  8453. "\xe4\xc4\x94\x76\xf3\x0d\x8f\x7e"
  8454. "\xc8\xf6\xbc\x23\x0a\xb6\x4c\xd3"
  8455. "\x6a\xcd\x36\xc2\x90\x5c\x5c\x3c"
  8456. "\x65\x7b\xc2\xd6\xcc\xe6\x0d\x87"
  8457. "\x73\x2e\x71\x79\x16\x06\x63\x28"
  8458. "\x09\x15\xd8\x89\x38\x38\x3d\xb5"
  8459. "\x42\x1c\x08\x24\xf7\x2a\xd2\x9d"
  8460. "\xc8\xca\xef\xf9\x27\xd8\x07\x86"
  8461. "\xf7\x43\x0b\x55\x15\x3f\x9f\x83"
  8462. "\xef\xdc\x49\x9d\x2a\xc1\x54\x62"
  8463. "\xbd\x9b\x66\x55\x9f\xb7\x12\xf3"
  8464. "\x1b\x4d\x9d\x2a\x5c\xed\x87\x75"
  8465. "\x87\x26\xec\x61\x2c\xb4\x0f\x89"
  8466. "\xb0\xfb\x2e\x68\x5d\x15\xc7\x8d"
  8467. "\x2e\xc0\xd9\xec\xaf\x4f\xd2\x25"
  8468. "\x29\xe8\xd2\x26\x2b\x67\xe9\xfc"
  8469. "\x2b\xa8\x67\x96\x12\x1f\x5b\x96"
  8470. "\xc6\x14\x53\xaf\x44\xea\xd6\xe2"
  8471. "\x94\x98\xe4\x12\x93\x4c\x92\xe0"
  8472. "\x18\xa5\x8d\x2d\xe4\x71\x3c\x47"
  8473. "\x4c\xf7\xe6\x47\x9e\xc0\x68\xdf"
  8474. "\xd4\xf5\x5a\x74\xb1\x2b\x29\x03"
  8475. "\x19\x07\xaf\x90\x62\x5c\x68\x98"
  8476. "\x48\x16\x11\x02\x9d\xee\xb4\x9b"
  8477. "\xe5\x42\x7f\x08\xfd\x16\x32\x0b"
  8478. "\xd0\xb3\xfa\x2b\xb7\x99\xf9\x29"
  8479. "\xcd\x20\x45\x9f\xb3\x1a\x5d\xa2"
  8480. "\xaf\x4d\xe0\xbd\x42\x0d\xbc\x74"
  8481. "\x99\x9c\x8e\x53\x1a\xb4\x3e\xbd"
  8482. "\xa2\x9a\x2d\xf7\xf8\x39\x0f\x67"
  8483. "\x63\xfc\x6b\xc0\xaf\xb3\x4b\x4f"
  8484. "\x55\xc4\xcf\xa7\xc8\x04\x11\x3e"
  8485. "\x14\x32\xbb\x1b\x38\x77\xd6\x7f"
  8486. "\x54\x4c\xdf\x75\xf3\x07\x2d\x33"
  8487. "\x9b\xa8\x20\xe1\x7b\x12\xb5\xf3"
  8488. "\xef\x2f\xce\x72\xe5\x24\x60\xc1"
  8489. "\x30\xe2\xab\xa1\x8e\x11\x09\xa8"
  8490. "\x21\x33\x44\xfe\x7f\x35\x32\x93"
  8491. "\x39\xa7\xad\x8b\x79\x06\xb2\xcb"
  8492. "\x4e\xa9\x5f\xc7\xba\x74\x29\xec"
  8493. "\x93\xa0\x4e\x54\x93\xc0\xbc\x55"
  8494. "\x64\xf0\x48\xe5\x57\x99\xee\x75"
  8495. "\xd6\x79\x0f\x66\xb7\xc6\x57\x76"
  8496. "\xf7\xb7\xf3\x9c\xc5\x60\xe8\x7f"
  8497. "\x83\x76\xd6\x0e\xaa\xe6\x90\x39"
  8498. "\x1d\xa6\x32\x6a\x34\xe3\x55\xf8"
  8499. "\x58\xa0\x58\x7d\x33\xe0\x22\x39"
  8500. "\x44\x64\x87\x86\x5a\x2f\xa7\x7e"
  8501. "\x0f\x38\xea\xb0\x30\xcc\x61\xa5"
  8502. "\x6a\x32\xae\x1e\xf7\xe9\xd0\xa9"
  8503. "\x0c\x32\x4b\xb5\x49\x28\xab\x85"
  8504. "\x2f\x8e\x01\x36\x38\x52\xd0\xba"
  8505. "\xd6\x02\x78\xf8\x0e\x3e\x9c\x8b"
  8506. "\x6b\x45\x99\x3f\x5c\xfe\x58\xf1"
  8507. "\x5c\x94\x04\xe1\xf5\x18\x6d\x51"
  8508. "\xb2\x5d\x18\x20\xb6\xc2\x9a\x42"
  8509. "\x1d\xb3\xab\x3c\xb6\x3a\x13\x03"
  8510. "\xb2\x46\x82\x4f\xfc\x64\xbc\x4f"
  8511. "\xca\xfa\x9c\xc0\xd5\xa7\xbd\x11"
  8512. "\xb7\xe4\x5a\xf6\x6f\x4d\x4d\x54"
  8513. "\xea\xa4\x98\x66\xd4\x22\x3b\xd3"
  8514. "\x8f\x34\x47\xd9\x7c\xf4\x72\x3b"
  8515. "\x4d\x02\x77\xf6\xd6\xdd\x08\x0a"
  8516. "\x81\xe1\x86\x89\x3e\x56\x10\x3c"
  8517. "\xba\xd7\x81\x8c\x08\xbc\x8b\xe2"
  8518. "\x53\xec\xa7\x89\xee\xc8\x56\xb5"
  8519. "\x36\x2c\xb2\x03\xba\x99\xdd\x7c"
  8520. "\x48\xa0\xb0\xbc\x91\x33\xe9\xa8"
  8521. "\xcb\xcd\xcf\x59\x5f\x1f\x15\xe2"
  8522. "\x56\xf5\x4e\x01\x35\x27\x45\x77"
  8523. "\x47\xc8\xbc\xcb\x7e\x39\xc1\x97"
  8524. "\x28\xd3\x84\xfc\x2c\x3e\xc8\xad"
  8525. "\x9c\xf8\x8a\x61\x9c\x28\xaa\xc5"
  8526. "\x99\x20\x43\x85\x9d\xa5\xe2\x8b"
  8527. "\xb8\xae\xeb\xd0\x32\x0d\x52\x78"
  8528. "\x09\x56\x3f\xc7\xd8\x7e\x26\xfc"
  8529. "\x37\xfb\x6f\x04\xfc\xfa\x92\x10"
  8530. "\xac\xf8\x3e\x21\xdc\x8c\x21\x16"
  8531. "\x7d\x67\x6e\xf6\xcd\xda\xb6\x98"
  8532. "\x23\xab\x23\x3c\xb2\x10\xa0\x53"
  8533. "\x5a\x56\x9f\xc5\xd0\xff\xbb\xe4"
  8534. "\x98\x3c\x69\x1e\xdb\x38\x8f\x7e"
  8535. "\x0f\xd2\x98\x88\x81\x8b\x45\x67"
  8536. "\xea\x33\xf1\xeb\xe9\x97\x55\x2e"
  8537. "\xd9\xaa\xeb\x5a\xec\xda\xe1\x68"
  8538. "\xa8\x9d\x3c\x84\x7c\x05\x3d\x62"
  8539. "\x87\x8f\x03\x21\x28\x95\x0c\x89"
  8540. "\x25\x22\x4a\xb0\x93\xa9\x50\xa2"
  8541. "\x2f\x57\x6e\x18\x42\x19\x54\x0c"
  8542. "\x55\x67\xc6\x11\x49\xf4\x5c\xd2"
  8543. "\xe9\x3d\xdd\x8b\x48\x71\x21\x00"
  8544. "\xc3\x9a\x6c\x85\x74\x28\x83\x4a"
  8545. "\x1b\x31\x05\xe1\x06\x92\xe7\xda"
  8546. "\x85\x73\x78\x45\x20\x7f\xae\x13"
  8547. "\x7c\x33\x06\x22\xf4\x83\xf9\x35"
  8548. "\x3f\x6c\x71\xa8\x4e\x48\xbe\x9b"
  8549. "\xce\x8a\xba\xda\xbe\x28\x08\xf7"
  8550. "\xe2\x14\x8c\x71\xea\x72\xf9\x33"
  8551. "\xf2\x88\x3f\xd7\xbb\x69\x6c\x29"
  8552. "\x19\xdc\x84\xce\x1f\x12\x4f\xc8"
  8553. "\xaf\xa5\x04\xba\x5a\xab\xb0\xd9"
  8554. "\x14\x1f\x6c\x68\x98\x39\x89\x7a"
  8555. "\xd9\xd8\x2f\xdf\xa8\x47\x4a\x25"
  8556. "\xe2\xfb\x33\xf4\x59\x78\xe1\x68"
  8557. "\x85\xcf\xfe\x59\x20\xd4\x05\x1d"
  8558. "\x80\x99\xae\xbc\xca\xae\x0f\x2f"
  8559. "\x65\x43\x34\x8e\x7e\xac\xd3\x93"
  8560. "\x2f\xac\x6d\x14\x3d\x02\x07\x70"
  8561. "\x9d\xa4\xf3\x1b\x5c\x36\xfc\x01"
  8562. "\x73\x34\x85\x0c\x6c\xd6\xf1\xbd"
  8563. "\x3f\xdf\xee\xf5\xd9\xba\x56\xef"
  8564. "\xf4\x9b\x6b\xee\x9f\x5a\x78\x6d"
  8565. "\x32\x19\xf4\xf7\xf8\x4c\x69\x0b"
  8566. "\x4b\xbc\xbb\xb7\xf2\x85\xaf\x70"
  8567. "\x75\x24\x6c\x54\xa7\x0e\x4d\x1d"
  8568. "\x01\xbf\x08\xac\xcf\x7f\x2c\xe3"
  8569. "\x14\x89\x5e\x70\x5a\x99\x92\xcd"
  8570. "\x01\x84\xc8\xd2\xab\xe5\x4f\x58"
  8571. "\xe7\x0f\x2f\x0e\xff\x68\xea\xfd"
  8572. "\x15\xb3\x17\xe6\xb0\xe7\x85\xd8"
  8573. "\x23\x2e\x05\xc7\xc9\xc4\x46\x1f"
  8574. "\xe1\x9e\x49\x20\x23\x24\x4d\x7e"
  8575. "\x29\x65\xff\xf4\xb6\xfd\x1a\x85"
  8576. "\xc4\x16\xec\xfc\xea\x7b\xd6\x2c"
  8577. "\x43\xf8\xb7\xbf\x79\xc0\x85\xcd"
  8578. "\xef\xe1\x98\xd3\xa5\xf7\x90\x8c"
  8579. "\xe9\x7f\x80\x6b\xd2\xac\x4c\x30"
  8580. "\xa7\xc6\x61\x6c\xd2\xf9\x2c\xff"
  8581. "\x30\xbc\x22\x81\x7d\x93\x12\xe4"
  8582. "\x0a\xcd\xaf\xdd\xe8\xab\x0a\x1e"
  8583. "\x13\xa4\x27\xc3\x5f\xf7\x4b\xbb"
  8584. "\x37\x09\x4b\x91\x6f\x92\x4f\xaf"
  8585. "\x52\xee\xdf\xef\x09\x6f\xf7\x5c"
  8586. "\x6e\x12\x17\x72\x63\x57\xc7\xba"
  8587. "\x3b\x6b\x38\x32\x73\x1b\x9c\x80"
  8588. "\xc1\x7a\xc6\xcf\xcd\x35\xc0\x6b"
  8589. "\x31\x1a\x6b\xe9\xd8\x2c\x29\x3f"
  8590. "\x96\xfb\xb6\xcd\x13\x91\x3b\xc2"
  8591. "\xd2\xa3\x31\x8d\xa4\xcd\x57\xcd"
  8592. "\x13\x3d\x64\xfd\x06\xce\xe6\xdc"
  8593. "\x0c\x24\x43\x31\x40\x57\xf1\x72"
  8594. "\x17\xe3\x3a\x63\x6d\x35\xcf\x5d"
  8595. "\x97\x40\x59\xdd\xf7\x3c\x02\xf7"
  8596. "\x1c\x7e\x05\xbb\xa9\x0d\x01\xb1"
  8597. "\x8e\xc0\x30\xa9\x53\x24\xc9\x89"
  8598. "\x84\x6d\xaa\xd0\xcd\x91\xc2\x4d"
  8599. "\x91\xb0\x89\xe2\xbf\x83\x44\xaa"
  8600. "\x28\x72\x23\xa0\xc2\xad\xad\x1c"
  8601. "\xfc\x3f\x09\x7a\x0b\xdc\xc5\x1b"
  8602. "\x87\x13\xc6\x5b\x59\x8d\xf2\xc8"
  8603. "\xaf\xdf\x11\x95",
  8604. .rlen = 4100,
  8605. .np = 2,
  8606. .tap = { 4064, 36 },
  8607. },
  8608. };
  8609. /*
  8610. * CTS (Cipher Text Stealing) mode tests
  8611. */
  8612. #define CTS_MODE_ENC_TEST_VECTORS 6
  8613. #define CTS_MODE_DEC_TEST_VECTORS 6
  8614. static struct cipher_testvec cts_mode_enc_tv_template[] = {
  8615. { /* from rfc3962 */
  8616. .klen = 16,
  8617. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  8618. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  8619. .ilen = 17,
  8620. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  8621. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  8622. "\x20",
  8623. .rlen = 17,
  8624. .result = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
  8625. "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
  8626. "\x97",
  8627. }, {
  8628. .klen = 16,
  8629. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  8630. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  8631. .ilen = 31,
  8632. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  8633. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  8634. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  8635. "\x20\x47\x61\x75\x27\x73\x20",
  8636. .rlen = 31,
  8637. .result = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
  8638. "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
  8639. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  8640. "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
  8641. }, {
  8642. .klen = 16,
  8643. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  8644. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  8645. .ilen = 32,
  8646. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  8647. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  8648. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  8649. "\x20\x47\x61\x75\x27\x73\x20\x43",
  8650. .rlen = 32,
  8651. .result = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  8652. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  8653. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  8654. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
  8655. }, {
  8656. .klen = 16,
  8657. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  8658. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  8659. .ilen = 47,
  8660. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  8661. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  8662. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  8663. "\x20\x47\x61\x75\x27\x73\x20\x43"
  8664. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  8665. "\x70\x6c\x65\x61\x73\x65\x2c",
  8666. .rlen = 47,
  8667. .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  8668. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  8669. "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
  8670. "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
  8671. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  8672. "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
  8673. }, {
  8674. .klen = 16,
  8675. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  8676. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  8677. .ilen = 48,
  8678. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  8679. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  8680. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  8681. "\x20\x47\x61\x75\x27\x73\x20\x43"
  8682. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  8683. "\x70\x6c\x65\x61\x73\x65\x2c\x20",
  8684. .rlen = 48,
  8685. .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  8686. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  8687. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  8688. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
  8689. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  8690. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
  8691. }, {
  8692. .klen = 16,
  8693. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  8694. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  8695. .ilen = 64,
  8696. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  8697. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  8698. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  8699. "\x20\x47\x61\x75\x27\x73\x20\x43"
  8700. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  8701. "\x70\x6c\x65\x61\x73\x65\x2c\x20"
  8702. "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
  8703. "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
  8704. .rlen = 64,
  8705. .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  8706. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  8707. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  8708. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  8709. "\x48\x07\xef\xe8\x36\xee\x89\xa5"
  8710. "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
  8711. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  8712. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
  8713. }
  8714. };
  8715. static struct cipher_testvec cts_mode_dec_tv_template[] = {
  8716. { /* from rfc3962 */
  8717. .klen = 16,
  8718. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  8719. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  8720. .rlen = 17,
  8721. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  8722. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  8723. "\x20",
  8724. .ilen = 17,
  8725. .input = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
  8726. "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
  8727. "\x97",
  8728. }, {
  8729. .klen = 16,
  8730. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  8731. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  8732. .rlen = 31,
  8733. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  8734. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  8735. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  8736. "\x20\x47\x61\x75\x27\x73\x20",
  8737. .ilen = 31,
  8738. .input = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
  8739. "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
  8740. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  8741. "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
  8742. }, {
  8743. .klen = 16,
  8744. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  8745. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  8746. .rlen = 32,
  8747. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  8748. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  8749. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  8750. "\x20\x47\x61\x75\x27\x73\x20\x43",
  8751. .ilen = 32,
  8752. .input = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  8753. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  8754. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  8755. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
  8756. }, {
  8757. .klen = 16,
  8758. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  8759. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  8760. .rlen = 47,
  8761. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  8762. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  8763. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  8764. "\x20\x47\x61\x75\x27\x73\x20\x43"
  8765. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  8766. "\x70\x6c\x65\x61\x73\x65\x2c",
  8767. .ilen = 47,
  8768. .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  8769. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  8770. "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
  8771. "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
  8772. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  8773. "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
  8774. }, {
  8775. .klen = 16,
  8776. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  8777. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  8778. .rlen = 48,
  8779. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  8780. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  8781. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  8782. "\x20\x47\x61\x75\x27\x73\x20\x43"
  8783. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  8784. "\x70\x6c\x65\x61\x73\x65\x2c\x20",
  8785. .ilen = 48,
  8786. .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  8787. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  8788. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  8789. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
  8790. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  8791. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
  8792. }, {
  8793. .klen = 16,
  8794. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  8795. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  8796. .rlen = 64,
  8797. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  8798. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  8799. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  8800. "\x20\x47\x61\x75\x27\x73\x20\x43"
  8801. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  8802. "\x70\x6c\x65\x61\x73\x65\x2c\x20"
  8803. "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
  8804. "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
  8805. .ilen = 64,
  8806. .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  8807. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  8808. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  8809. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  8810. "\x48\x07\xef\xe8\x36\xee\x89\xa5"
  8811. "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
  8812. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  8813. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
  8814. }
  8815. };
  8816. /*
  8817. * Compression stuff.
  8818. */
  8819. #define COMP_BUF_SIZE 512
  8820. struct comp_testvec {
  8821. int inlen, outlen;
  8822. char input[COMP_BUF_SIZE];
  8823. char output[COMP_BUF_SIZE];
  8824. };
  8825. struct pcomp_testvec {
  8826. void *params;
  8827. unsigned int paramsize;
  8828. int inlen, outlen;
  8829. char input[COMP_BUF_SIZE];
  8830. char output[COMP_BUF_SIZE];
  8831. };
  8832. /*
  8833. * Deflate test vectors (null-terminated strings).
  8834. * Params: winbits=-11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL.
  8835. */
  8836. #define DEFLATE_COMP_TEST_VECTORS 2
  8837. #define DEFLATE_DECOMP_TEST_VECTORS 2
  8838. static struct comp_testvec deflate_comp_tv_template[] = {
  8839. {
  8840. .inlen = 70,
  8841. .outlen = 38,
  8842. .input = "Join us now and share the software "
  8843. "Join us now and share the software ",
  8844. .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  8845. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  8846. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  8847. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  8848. "\x71\xbc\x08\x2b\x01\x00",
  8849. }, {
  8850. .inlen = 191,
  8851. .outlen = 122,
  8852. .input = "This document describes a compression method based on the DEFLATE"
  8853. "compression algorithm. This document defines the application of "
  8854. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  8855. .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  8856. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  8857. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  8858. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  8859. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  8860. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  8861. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  8862. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  8863. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  8864. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  8865. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  8866. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  8867. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  8868. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  8869. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  8870. "\xfa\x02",
  8871. },
  8872. };
  8873. static struct comp_testvec deflate_decomp_tv_template[] = {
  8874. {
  8875. .inlen = 122,
  8876. .outlen = 191,
  8877. .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  8878. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  8879. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  8880. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  8881. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  8882. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  8883. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  8884. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  8885. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  8886. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  8887. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  8888. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  8889. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  8890. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  8891. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  8892. "\xfa\x02",
  8893. .output = "This document describes a compression method based on the DEFLATE"
  8894. "compression algorithm. This document defines the application of "
  8895. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  8896. }, {
  8897. .inlen = 38,
  8898. .outlen = 70,
  8899. .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  8900. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  8901. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  8902. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  8903. "\x71\xbc\x08\x2b\x01\x00",
  8904. .output = "Join us now and share the software "
  8905. "Join us now and share the software ",
  8906. },
  8907. };
  8908. #define ZLIB_COMP_TEST_VECTORS 2
  8909. #define ZLIB_DECOMP_TEST_VECTORS 2
  8910. static const struct {
  8911. struct nlattr nla;
  8912. int val;
  8913. } deflate_comp_params[] = {
  8914. {
  8915. .nla = {
  8916. .nla_len = NLA_HDRLEN + sizeof(int),
  8917. .nla_type = ZLIB_COMP_LEVEL,
  8918. },
  8919. .val = Z_DEFAULT_COMPRESSION,
  8920. }, {
  8921. .nla = {
  8922. .nla_len = NLA_HDRLEN + sizeof(int),
  8923. .nla_type = ZLIB_COMP_METHOD,
  8924. },
  8925. .val = Z_DEFLATED,
  8926. }, {
  8927. .nla = {
  8928. .nla_len = NLA_HDRLEN + sizeof(int),
  8929. .nla_type = ZLIB_COMP_WINDOWBITS,
  8930. },
  8931. .val = -11,
  8932. }, {
  8933. .nla = {
  8934. .nla_len = NLA_HDRLEN + sizeof(int),
  8935. .nla_type = ZLIB_COMP_MEMLEVEL,
  8936. },
  8937. .val = MAX_MEM_LEVEL,
  8938. }, {
  8939. .nla = {
  8940. .nla_len = NLA_HDRLEN + sizeof(int),
  8941. .nla_type = ZLIB_COMP_STRATEGY,
  8942. },
  8943. .val = Z_DEFAULT_STRATEGY,
  8944. }
  8945. };
  8946. static const struct {
  8947. struct nlattr nla;
  8948. int val;
  8949. } deflate_decomp_params[] = {
  8950. {
  8951. .nla = {
  8952. .nla_len = NLA_HDRLEN + sizeof(int),
  8953. .nla_type = ZLIB_DECOMP_WINDOWBITS,
  8954. },
  8955. .val = -11,
  8956. }
  8957. };
  8958. static struct pcomp_testvec zlib_comp_tv_template[] = {
  8959. {
  8960. .params = &deflate_comp_params,
  8961. .paramsize = sizeof(deflate_comp_params),
  8962. .inlen = 70,
  8963. .outlen = 38,
  8964. .input = "Join us now and share the software "
  8965. "Join us now and share the software ",
  8966. .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  8967. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  8968. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  8969. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  8970. "\x71\xbc\x08\x2b\x01\x00",
  8971. }, {
  8972. .params = &deflate_comp_params,
  8973. .paramsize = sizeof(deflate_comp_params),
  8974. .inlen = 191,
  8975. .outlen = 122,
  8976. .input = "This document describes a compression method based on the DEFLATE"
  8977. "compression algorithm. This document defines the application of "
  8978. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  8979. .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  8980. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  8981. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  8982. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  8983. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  8984. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  8985. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  8986. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  8987. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  8988. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  8989. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  8990. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  8991. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  8992. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  8993. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  8994. "\xfa\x02",
  8995. },
  8996. };
  8997. static struct pcomp_testvec zlib_decomp_tv_template[] = {
  8998. {
  8999. .params = &deflate_decomp_params,
  9000. .paramsize = sizeof(deflate_decomp_params),
  9001. .inlen = 122,
  9002. .outlen = 191,
  9003. .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  9004. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  9005. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  9006. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  9007. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  9008. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  9009. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  9010. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  9011. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  9012. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  9013. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  9014. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  9015. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  9016. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  9017. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  9018. "\xfa\x02",
  9019. .output = "This document describes a compression method based on the DEFLATE"
  9020. "compression algorithm. This document defines the application of "
  9021. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  9022. }, {
  9023. .params = &deflate_decomp_params,
  9024. .paramsize = sizeof(deflate_decomp_params),
  9025. .inlen = 38,
  9026. .outlen = 70,
  9027. .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  9028. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  9029. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  9030. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  9031. "\x71\xbc\x08\x2b\x01\x00",
  9032. .output = "Join us now and share the software "
  9033. "Join us now and share the software ",
  9034. },
  9035. };
  9036. /*
  9037. * LZO test vectors (null-terminated strings).
  9038. */
  9039. #define LZO_COMP_TEST_VECTORS 2
  9040. #define LZO_DECOMP_TEST_VECTORS 2
  9041. static struct comp_testvec lzo_comp_tv_template[] = {
  9042. {
  9043. .inlen = 70,
  9044. .outlen = 46,
  9045. .input = "Join us now and share the software "
  9046. "Join us now and share the software ",
  9047. .output = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
  9048. "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
  9049. "\x64\x20\x73\x68\x61\x72\x65\x20"
  9050. "\x74\x68\x65\x20\x73\x6f\x66\x74"
  9051. "\x77\x70\x01\x01\x4a\x6f\x69\x6e"
  9052. "\x3d\x88\x00\x11\x00\x00",
  9053. }, {
  9054. .inlen = 159,
  9055. .outlen = 133,
  9056. .input = "This document describes a compression method based on the LZO "
  9057. "compression algorithm. This document defines the application of "
  9058. "the LZO algorithm used in UBIFS.",
  9059. .output = "\x00\x2b\x54\x68\x69\x73\x20\x64"
  9060. "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
  9061. "\x64\x65\x73\x63\x72\x69\x62\x65"
  9062. "\x73\x20\x61\x20\x63\x6f\x6d\x70"
  9063. "\x72\x65\x73\x73\x69\x6f\x6e\x20"
  9064. "\x6d\x65\x74\x68\x6f\x64\x20\x62"
  9065. "\x61\x73\x65\x64\x20\x6f\x6e\x20"
  9066. "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
  9067. "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
  9068. "\x69\x74\x68\x6d\x2e\x20\x20\x54"
  9069. "\x68\x69\x73\x2a\x54\x01\x02\x66"
  9070. "\x69\x6e\x65\x73\x94\x06\x05\x61"
  9071. "\x70\x70\x6c\x69\x63\x61\x74\x76"
  9072. "\x0a\x6f\x66\x88\x02\x60\x09\x27"
  9073. "\xf0\x00\x0c\x20\x75\x73\x65\x64"
  9074. "\x20\x69\x6e\x20\x55\x42\x49\x46"
  9075. "\x53\x2e\x11\x00\x00",
  9076. },
  9077. };
  9078. static struct comp_testvec lzo_decomp_tv_template[] = {
  9079. {
  9080. .inlen = 133,
  9081. .outlen = 159,
  9082. .input = "\x00\x2b\x54\x68\x69\x73\x20\x64"
  9083. "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
  9084. "\x64\x65\x73\x63\x72\x69\x62\x65"
  9085. "\x73\x20\x61\x20\x63\x6f\x6d\x70"
  9086. "\x72\x65\x73\x73\x69\x6f\x6e\x20"
  9087. "\x6d\x65\x74\x68\x6f\x64\x20\x62"
  9088. "\x61\x73\x65\x64\x20\x6f\x6e\x20"
  9089. "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
  9090. "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
  9091. "\x69\x74\x68\x6d\x2e\x20\x20\x54"
  9092. "\x68\x69\x73\x2a\x54\x01\x02\x66"
  9093. "\x69\x6e\x65\x73\x94\x06\x05\x61"
  9094. "\x70\x70\x6c\x69\x63\x61\x74\x76"
  9095. "\x0a\x6f\x66\x88\x02\x60\x09\x27"
  9096. "\xf0\x00\x0c\x20\x75\x73\x65\x64"
  9097. "\x20\x69\x6e\x20\x55\x42\x49\x46"
  9098. "\x53\x2e\x11\x00\x00",
  9099. .output = "This document describes a compression method based on the LZO "
  9100. "compression algorithm. This document defines the application of "
  9101. "the LZO algorithm used in UBIFS.",
  9102. }, {
  9103. .inlen = 46,
  9104. .outlen = 70,
  9105. .input = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
  9106. "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
  9107. "\x64\x20\x73\x68\x61\x72\x65\x20"
  9108. "\x74\x68\x65\x20\x73\x6f\x66\x74"
  9109. "\x77\x70\x01\x01\x4a\x6f\x69\x6e"
  9110. "\x3d\x88\x00\x11\x00\x00",
  9111. .output = "Join us now and share the software "
  9112. "Join us now and share the software ",
  9113. },
  9114. };
  9115. /*
  9116. * Michael MIC test vectors from IEEE 802.11i
  9117. */
  9118. #define MICHAEL_MIC_TEST_VECTORS 6
  9119. static struct hash_testvec michael_mic_tv_template[] = {
  9120. {
  9121. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  9122. .ksize = 8,
  9123. .plaintext = zeroed_string,
  9124. .psize = 0,
  9125. .digest = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
  9126. },
  9127. {
  9128. .key = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
  9129. .ksize = 8,
  9130. .plaintext = "M",
  9131. .psize = 1,
  9132. .digest = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
  9133. },
  9134. {
  9135. .key = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
  9136. .ksize = 8,
  9137. .plaintext = "Mi",
  9138. .psize = 2,
  9139. .digest = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
  9140. },
  9141. {
  9142. .key = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
  9143. .ksize = 8,
  9144. .plaintext = "Mic",
  9145. .psize = 3,
  9146. .digest = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
  9147. },
  9148. {
  9149. .key = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
  9150. .ksize = 8,
  9151. .plaintext = "Mich",
  9152. .psize = 4,
  9153. .digest = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
  9154. },
  9155. {
  9156. .key = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
  9157. .ksize = 8,
  9158. .plaintext = "Michael",
  9159. .psize = 7,
  9160. .digest = "\x0a\x94\x2b\x12\x4e\xca\xa5\x46",
  9161. }
  9162. };
  9163. /*
  9164. * CRC32C test vectors
  9165. */
  9166. #define CRC32C_TEST_VECTORS 14
  9167. static struct hash_testvec crc32c_tv_template[] = {
  9168. {
  9169. .psize = 0,
  9170. .digest = "\x00\x00\x00\x00",
  9171. },
  9172. {
  9173. .key = "\x87\xa9\xcb\xed",
  9174. .ksize = 4,
  9175. .psize = 0,
  9176. .digest = "\x78\x56\x34\x12",
  9177. },
  9178. {
  9179. .key = "\xff\xff\xff\xff",
  9180. .ksize = 4,
  9181. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  9182. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  9183. "\x11\x12\x13\x14\x15\x16\x17\x18"
  9184. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  9185. "\x21\x22\x23\x24\x25\x26\x27\x28",
  9186. .psize = 40,
  9187. .digest = "\x7f\x15\x2c\x0e",
  9188. },
  9189. {
  9190. .key = "\xff\xff\xff\xff",
  9191. .ksize = 4,
  9192. .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  9193. "\x31\x32\x33\x34\x35\x36\x37\x38"
  9194. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  9195. "\x41\x42\x43\x44\x45\x46\x47\x48"
  9196. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
  9197. .psize = 40,
  9198. .digest = "\xf6\xeb\x80\xe9",
  9199. },
  9200. {
  9201. .key = "\xff\xff\xff\xff",
  9202. .ksize = 4,
  9203. .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
  9204. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  9205. "\x61\x62\x63\x64\x65\x66\x67\x68"
  9206. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  9207. "\x71\x72\x73\x74\x75\x76\x77\x78",
  9208. .psize = 40,
  9209. .digest = "\xed\xbd\x74\xde",
  9210. },
  9211. {
  9212. .key = "\xff\xff\xff\xff",
  9213. .ksize = 4,
  9214. .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  9215. "\x81\x82\x83\x84\x85\x86\x87\x88"
  9216. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  9217. "\x91\x92\x93\x94\x95\x96\x97\x98"
  9218. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
  9219. .psize = 40,
  9220. .digest = "\x62\xc8\x79\xd5",
  9221. },
  9222. {
  9223. .key = "\xff\xff\xff\xff",
  9224. .ksize = 4,
  9225. .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  9226. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  9227. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  9228. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  9229. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
  9230. .psize = 40,
  9231. .digest = "\xd0\x9a\x97\xba",
  9232. },
  9233. {
  9234. .key = "\xff\xff\xff\xff",
  9235. .ksize = 4,
  9236. .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  9237. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  9238. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  9239. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  9240. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  9241. .psize = 40,
  9242. .digest = "\x13\xd9\x29\x2b",
  9243. },
  9244. {
  9245. .key = "\x80\xea\xd3\xf1",
  9246. .ksize = 4,
  9247. .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  9248. "\x31\x32\x33\x34\x35\x36\x37\x38"
  9249. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  9250. "\x41\x42\x43\x44\x45\x46\x47\x48"
  9251. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
  9252. .psize = 40,
  9253. .digest = "\x0c\xb5\xe2\xa2",
  9254. },
  9255. {
  9256. .key = "\xf3\x4a\x1d\x5d",
  9257. .ksize = 4,
  9258. .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
  9259. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  9260. "\x61\x62\x63\x64\x65\x66\x67\x68"
  9261. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  9262. "\x71\x72\x73\x74\x75\x76\x77\x78",
  9263. .psize = 40,
  9264. .digest = "\xd1\x7f\xfb\xa6",
  9265. },
  9266. {
  9267. .key = "\x2e\x80\x04\x59",
  9268. .ksize = 4,
  9269. .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  9270. "\x81\x82\x83\x84\x85\x86\x87\x88"
  9271. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  9272. "\x91\x92\x93\x94\x95\x96\x97\x98"
  9273. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
  9274. .psize = 40,
  9275. .digest = "\x59\x33\xe6\x7a",
  9276. },
  9277. {
  9278. .key = "\xa6\xcc\x19\x85",
  9279. .ksize = 4,
  9280. .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  9281. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  9282. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  9283. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  9284. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
  9285. .psize = 40,
  9286. .digest = "\xbe\x03\x01\xd2",
  9287. },
  9288. {
  9289. .key = "\x41\xfc\xfe\x2d",
  9290. .ksize = 4,
  9291. .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  9292. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  9293. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  9294. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  9295. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  9296. .psize = 40,
  9297. .digest = "\x75\xd3\xc5\x24",
  9298. },
  9299. {
  9300. .key = "\xff\xff\xff\xff",
  9301. .ksize = 4,
  9302. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  9303. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  9304. "\x11\x12\x13\x14\x15\x16\x17\x18"
  9305. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  9306. "\x21\x22\x23\x24\x25\x26\x27\x28"
  9307. "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  9308. "\x31\x32\x33\x34\x35\x36\x37\x38"
  9309. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  9310. "\x41\x42\x43\x44\x45\x46\x47\x48"
  9311. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
  9312. "\x51\x52\x53\x54\x55\x56\x57\x58"
  9313. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  9314. "\x61\x62\x63\x64\x65\x66\x67\x68"
  9315. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  9316. "\x71\x72\x73\x74\x75\x76\x77\x78"
  9317. "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  9318. "\x81\x82\x83\x84\x85\x86\x87\x88"
  9319. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  9320. "\x91\x92\x93\x94\x95\x96\x97\x98"
  9321. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
  9322. "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  9323. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  9324. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  9325. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  9326. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
  9327. "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  9328. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  9329. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  9330. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  9331. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  9332. .psize = 240,
  9333. .digest = "\x75\xd3\xc5\x24",
  9334. .np = 2,
  9335. .tap = { 31, 209 }
  9336. },
  9337. };
  9338. #endif /* _CRYPTO_TESTMGR_H */