testmgr.h 573 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649
  1. /*
  2. * Algorithm testing framework and tests.
  3. *
  4. * Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
  5. * Copyright (c) 2002 Jean-Francois Dive <jef@linuxbe.org>
  6. * Copyright (c) 2007 Nokia Siemens Networks
  7. * Copyright (c) 2008 Herbert Xu <herbert@gondor.apana.org.au>
  8. *
  9. * Updated RFC4106 AES-GCM testing. Some test vectors were taken from
  10. * http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/proposedmodes/
  11. * gcm/gcm-test-vectors.tar.gz
  12. * Authors: Aidan O'Mahony (aidan.o.mahony@intel.com)
  13. * Adrian Hoban <adrian.hoban@intel.com>
  14. * Gabriele Paoloni <gabriele.paoloni@intel.com>
  15. * Tadeusz Struk (tadeusz.struk@intel.com)
  16. * Copyright (c) 2010, Intel Corporation.
  17. *
  18. * This program is free software; you can redistribute it and/or modify it
  19. * under the terms of the GNU General Public License as published by the Free
  20. * Software Foundation; either version 2 of the License, or (at your option)
  21. * any later version.
  22. *
  23. */
  24. #ifndef _CRYPTO_TESTMGR_H
  25. #define _CRYPTO_TESTMGR_H
  26. #include <linux/netlink.h>
  27. #include <linux/zlib.h>
  28. #include <crypto/compress.h>
  29. #define MAX_DIGEST_SIZE 64
  30. #define MAX_TAP 8
  31. #define MAX_KEYLEN 56
  32. #define MAX_IVLEN 32
  33. struct hash_testvec {
  34. /* only used with keyed hash algorithms */
  35. char *key;
  36. char *plaintext;
  37. char *digest;
  38. unsigned char tap[MAX_TAP];
  39. unsigned char psize;
  40. unsigned char np;
  41. unsigned char ksize;
  42. };
  43. struct cipher_testvec {
  44. char *key;
  45. char *iv;
  46. char *input;
  47. char *result;
  48. unsigned short tap[MAX_TAP];
  49. int np;
  50. unsigned char fail;
  51. unsigned char wk; /* weak key flag */
  52. unsigned char klen;
  53. unsigned short ilen;
  54. unsigned short rlen;
  55. };
  56. struct aead_testvec {
  57. char *key;
  58. char *iv;
  59. char *input;
  60. char *assoc;
  61. char *result;
  62. unsigned char tap[MAX_TAP];
  63. unsigned char atap[MAX_TAP];
  64. int np;
  65. int anp;
  66. unsigned char fail;
  67. unsigned char novrfy; /* ccm dec verification failure expected */
  68. unsigned char wk; /* weak key flag */
  69. unsigned char klen;
  70. unsigned short ilen;
  71. unsigned short alen;
  72. unsigned short rlen;
  73. };
  74. struct cprng_testvec {
  75. char *key;
  76. char *dt;
  77. char *v;
  78. char *result;
  79. unsigned char klen;
  80. unsigned short dtlen;
  81. unsigned short vlen;
  82. unsigned short rlen;
  83. unsigned short loops;
  84. };
  85. static char zeroed_string[48];
  86. /*
  87. * MD4 test vectors from RFC1320
  88. */
  89. #define MD4_TEST_VECTORS 7
  90. static struct hash_testvec md4_tv_template [] = {
  91. {
  92. .plaintext = "",
  93. .digest = "\x31\xd6\xcf\xe0\xd1\x6a\xe9\x31"
  94. "\xb7\x3c\x59\xd7\xe0\xc0\x89\xc0",
  95. }, {
  96. .plaintext = "a",
  97. .psize = 1,
  98. .digest = "\xbd\xe5\x2c\xb3\x1d\xe3\x3e\x46"
  99. "\x24\x5e\x05\xfb\xdb\xd6\xfb\x24",
  100. }, {
  101. .plaintext = "abc",
  102. .psize = 3,
  103. .digest = "\xa4\x48\x01\x7a\xaf\x21\xd8\x52"
  104. "\x5f\xc1\x0a\xe8\x7a\xa6\x72\x9d",
  105. }, {
  106. .plaintext = "message digest",
  107. .psize = 14,
  108. .digest = "\xd9\x13\x0a\x81\x64\x54\x9f\xe8"
  109. "\x18\x87\x48\x06\xe1\xc7\x01\x4b",
  110. }, {
  111. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  112. .psize = 26,
  113. .digest = "\xd7\x9e\x1c\x30\x8a\xa5\xbb\xcd"
  114. "\xee\xa8\xed\x63\xdf\x41\x2d\xa9",
  115. .np = 2,
  116. .tap = { 13, 13 },
  117. }, {
  118. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
  119. .psize = 62,
  120. .digest = "\x04\x3f\x85\x82\xf2\x41\xdb\x35"
  121. "\x1c\xe6\x27\xe1\x53\xe7\xf0\xe4",
  122. }, {
  123. .plaintext = "123456789012345678901234567890123456789012345678901234567890123"
  124. "45678901234567890",
  125. .psize = 80,
  126. .digest = "\xe3\x3b\x4d\xdc\x9c\x38\xf2\x19"
  127. "\x9c\x3e\x7b\x16\x4f\xcc\x05\x36",
  128. },
  129. };
  130. /*
  131. * MD5 test vectors from RFC1321
  132. */
  133. #define MD5_TEST_VECTORS 7
  134. static struct hash_testvec md5_tv_template[] = {
  135. {
  136. .digest = "\xd4\x1d\x8c\xd9\x8f\x00\xb2\x04"
  137. "\xe9\x80\x09\x98\xec\xf8\x42\x7e",
  138. }, {
  139. .plaintext = "a",
  140. .psize = 1,
  141. .digest = "\x0c\xc1\x75\xb9\xc0\xf1\xb6\xa8"
  142. "\x31\xc3\x99\xe2\x69\x77\x26\x61",
  143. }, {
  144. .plaintext = "abc",
  145. .psize = 3,
  146. .digest = "\x90\x01\x50\x98\x3c\xd2\x4f\xb0"
  147. "\xd6\x96\x3f\x7d\x28\xe1\x7f\x72",
  148. }, {
  149. .plaintext = "message digest",
  150. .psize = 14,
  151. .digest = "\xf9\x6b\x69\x7d\x7c\xb7\x93\x8d"
  152. "\x52\x5a\x2f\x31\xaa\xf1\x61\xd0",
  153. }, {
  154. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  155. .psize = 26,
  156. .digest = "\xc3\xfc\xd3\xd7\x61\x92\xe4\x00"
  157. "\x7d\xfb\x49\x6c\xca\x67\xe1\x3b",
  158. .np = 2,
  159. .tap = {13, 13}
  160. }, {
  161. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
  162. .psize = 62,
  163. .digest = "\xd1\x74\xab\x98\xd2\x77\xd9\xf5"
  164. "\xa5\x61\x1c\x2c\x9f\x41\x9d\x9f",
  165. }, {
  166. .plaintext = "12345678901234567890123456789012345678901234567890123456789012"
  167. "345678901234567890",
  168. .psize = 80,
  169. .digest = "\x57\xed\xf4\xa2\x2b\xe3\xc9\x55"
  170. "\xac\x49\xda\x2e\x21\x07\xb6\x7a",
  171. }
  172. };
  173. /*
  174. * RIPEMD-128 test vectors from ISO/IEC 10118-3:2004(E)
  175. */
  176. #define RMD128_TEST_VECTORS 10
  177. static struct hash_testvec rmd128_tv_template[] = {
  178. {
  179. .digest = "\xcd\xf2\x62\x13\xa1\x50\xdc\x3e"
  180. "\xcb\x61\x0f\x18\xf6\xb3\x8b\x46",
  181. }, {
  182. .plaintext = "a",
  183. .psize = 1,
  184. .digest = "\x86\xbe\x7a\xfa\x33\x9d\x0f\xc7"
  185. "\xcf\xc7\x85\xe7\x2f\x57\x8d\x33",
  186. }, {
  187. .plaintext = "abc",
  188. .psize = 3,
  189. .digest = "\xc1\x4a\x12\x19\x9c\x66\xe4\xba"
  190. "\x84\x63\x6b\x0f\x69\x14\x4c\x77",
  191. }, {
  192. .plaintext = "message digest",
  193. .psize = 14,
  194. .digest = "\x9e\x32\x7b\x3d\x6e\x52\x30\x62"
  195. "\xaf\xc1\x13\x2d\x7d\xf9\xd1\xb8",
  196. }, {
  197. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  198. .psize = 26,
  199. .digest = "\xfd\x2a\xa6\x07\xf7\x1d\xc8\xf5"
  200. "\x10\x71\x49\x22\xb3\x71\x83\x4e",
  201. }, {
  202. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
  203. "fghijklmnopqrstuvwxyz0123456789",
  204. .psize = 62,
  205. .digest = "\xd1\xe9\x59\xeb\x17\x9c\x91\x1f"
  206. "\xae\xa4\x62\x4c\x60\xc5\xc7\x02",
  207. }, {
  208. .plaintext = "1234567890123456789012345678901234567890"
  209. "1234567890123456789012345678901234567890",
  210. .psize = 80,
  211. .digest = "\x3f\x45\xef\x19\x47\x32\xc2\xdb"
  212. "\xb2\xc4\xa2\xc7\x69\x79\x5f\xa3",
  213. }, {
  214. .plaintext = "abcdbcdecdefdefgefghfghighij"
  215. "hijkijkljklmklmnlmnomnopnopq",
  216. .psize = 56,
  217. .digest = "\xa1\xaa\x06\x89\xd0\xfa\xfa\x2d"
  218. "\xdc\x22\xe8\x8b\x49\x13\x3a\x06",
  219. .np = 2,
  220. .tap = { 28, 28 },
  221. }, {
  222. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
  223. "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
  224. "lmnopqrsmnopqrstnopqrstu",
  225. .psize = 112,
  226. .digest = "\xd4\xec\xc9\x13\xe1\xdf\x77\x6b"
  227. "\xf4\x8d\xe9\xd5\x5b\x1f\x25\x46",
  228. }, {
  229. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  230. .psize = 32,
  231. .digest = "\x13\xfc\x13\xe8\xef\xff\x34\x7d"
  232. "\xe1\x93\xff\x46\xdb\xac\xcf\xd4",
  233. }
  234. };
  235. /*
  236. * RIPEMD-160 test vectors from ISO/IEC 10118-3:2004(E)
  237. */
  238. #define RMD160_TEST_VECTORS 10
  239. static struct hash_testvec rmd160_tv_template[] = {
  240. {
  241. .digest = "\x9c\x11\x85\xa5\xc5\xe9\xfc\x54\x61\x28"
  242. "\x08\x97\x7e\xe8\xf5\x48\xb2\x25\x8d\x31",
  243. }, {
  244. .plaintext = "a",
  245. .psize = 1,
  246. .digest = "\x0b\xdc\x9d\x2d\x25\x6b\x3e\xe9\xda\xae"
  247. "\x34\x7b\xe6\xf4\xdc\x83\x5a\x46\x7f\xfe",
  248. }, {
  249. .plaintext = "abc",
  250. .psize = 3,
  251. .digest = "\x8e\xb2\x08\xf7\xe0\x5d\x98\x7a\x9b\x04"
  252. "\x4a\x8e\x98\xc6\xb0\x87\xf1\x5a\x0b\xfc",
  253. }, {
  254. .plaintext = "message digest",
  255. .psize = 14,
  256. .digest = "\x5d\x06\x89\xef\x49\xd2\xfa\xe5\x72\xb8"
  257. "\x81\xb1\x23\xa8\x5f\xfa\x21\x59\x5f\x36",
  258. }, {
  259. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  260. .psize = 26,
  261. .digest = "\xf7\x1c\x27\x10\x9c\x69\x2c\x1b\x56\xbb"
  262. "\xdc\xeb\x5b\x9d\x28\x65\xb3\x70\x8d\xbc",
  263. }, {
  264. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
  265. "fghijklmnopqrstuvwxyz0123456789",
  266. .psize = 62,
  267. .digest = "\xb0\xe2\x0b\x6e\x31\x16\x64\x02\x86\xed"
  268. "\x3a\x87\xa5\x71\x30\x79\xb2\x1f\x51\x89",
  269. }, {
  270. .plaintext = "1234567890123456789012345678901234567890"
  271. "1234567890123456789012345678901234567890",
  272. .psize = 80,
  273. .digest = "\x9b\x75\x2e\x45\x57\x3d\x4b\x39\xf4\xdb"
  274. "\xd3\x32\x3c\xab\x82\xbf\x63\x32\x6b\xfb",
  275. }, {
  276. .plaintext = "abcdbcdecdefdefgefghfghighij"
  277. "hijkijkljklmklmnlmnomnopnopq",
  278. .psize = 56,
  279. .digest = "\x12\xa0\x53\x38\x4a\x9c\x0c\x88\xe4\x05"
  280. "\xa0\x6c\x27\xdc\xf4\x9a\xda\x62\xeb\x2b",
  281. .np = 2,
  282. .tap = { 28, 28 },
  283. }, {
  284. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
  285. "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
  286. "lmnopqrsmnopqrstnopqrstu",
  287. .psize = 112,
  288. .digest = "\x6f\x3f\xa3\x9b\x6b\x50\x3c\x38\x4f\x91"
  289. "\x9a\x49\xa7\xaa\x5c\x2c\x08\xbd\xfb\x45",
  290. }, {
  291. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  292. .psize = 32,
  293. .digest = "\x94\xc2\x64\x11\x54\x04\xe6\x33\x79\x0d"
  294. "\xfc\xc8\x7b\x58\x7d\x36\x77\x06\x7d\x9f",
  295. }
  296. };
  297. /*
  298. * RIPEMD-256 test vectors
  299. */
  300. #define RMD256_TEST_VECTORS 8
  301. static struct hash_testvec rmd256_tv_template[] = {
  302. {
  303. .digest = "\x02\xba\x4c\x4e\x5f\x8e\xcd\x18"
  304. "\x77\xfc\x52\xd6\x4d\x30\xe3\x7a"
  305. "\x2d\x97\x74\xfb\x1e\x5d\x02\x63"
  306. "\x80\xae\x01\x68\xe3\xc5\x52\x2d",
  307. }, {
  308. .plaintext = "a",
  309. .psize = 1,
  310. .digest = "\xf9\x33\x3e\x45\xd8\x57\xf5\xd9"
  311. "\x0a\x91\xba\xb7\x0a\x1e\xba\x0c"
  312. "\xfb\x1b\xe4\xb0\x78\x3c\x9a\xcf"
  313. "\xcd\x88\x3a\x91\x34\x69\x29\x25",
  314. }, {
  315. .plaintext = "abc",
  316. .psize = 3,
  317. .digest = "\xaf\xbd\x6e\x22\x8b\x9d\x8c\xbb"
  318. "\xce\xf5\xca\x2d\x03\xe6\xdb\xa1"
  319. "\x0a\xc0\xbc\x7d\xcb\xe4\x68\x0e"
  320. "\x1e\x42\xd2\xe9\x75\x45\x9b\x65",
  321. }, {
  322. .plaintext = "message digest",
  323. .psize = 14,
  324. .digest = "\x87\xe9\x71\x75\x9a\x1c\xe4\x7a"
  325. "\x51\x4d\x5c\x91\x4c\x39\x2c\x90"
  326. "\x18\xc7\xc4\x6b\xc1\x44\x65\x55"
  327. "\x4a\xfc\xdf\x54\xa5\x07\x0c\x0e",
  328. }, {
  329. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  330. .psize = 26,
  331. .digest = "\x64\x9d\x30\x34\x75\x1e\xa2\x16"
  332. "\x77\x6b\xf9\xa1\x8a\xcc\x81\xbc"
  333. "\x78\x96\x11\x8a\x51\x97\x96\x87"
  334. "\x82\xdd\x1f\xd9\x7d\x8d\x51\x33",
  335. }, {
  336. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
  337. "fghijklmnopqrstuvwxyz0123456789",
  338. .psize = 62,
  339. .digest = "\x57\x40\xa4\x08\xac\x16\xb7\x20"
  340. "\xb8\x44\x24\xae\x93\x1c\xbb\x1f"
  341. "\xe3\x63\xd1\xd0\xbf\x40\x17\xf1"
  342. "\xa8\x9f\x7e\xa6\xde\x77\xa0\xb8",
  343. }, {
  344. .plaintext = "1234567890123456789012345678901234567890"
  345. "1234567890123456789012345678901234567890",
  346. .psize = 80,
  347. .digest = "\x06\xfd\xcc\x7a\x40\x95\x48\xaa"
  348. "\xf9\x13\x68\xc0\x6a\x62\x75\xb5"
  349. "\x53\xe3\xf0\x99\xbf\x0e\xa4\xed"
  350. "\xfd\x67\x78\xdf\x89\xa8\x90\xdd",
  351. }, {
  352. .plaintext = "abcdbcdecdefdefgefghfghighij"
  353. "hijkijkljklmklmnlmnomnopnopq",
  354. .psize = 56,
  355. .digest = "\x38\x43\x04\x55\x83\xaa\xc6\xc8"
  356. "\xc8\xd9\x12\x85\x73\xe7\xa9\x80"
  357. "\x9a\xfb\x2a\x0f\x34\xcc\xc3\x6e"
  358. "\xa9\xe7\x2f\x16\xf6\x36\x8e\x3f",
  359. .np = 2,
  360. .tap = { 28, 28 },
  361. }
  362. };
  363. /*
  364. * RIPEMD-320 test vectors
  365. */
  366. #define RMD320_TEST_VECTORS 8
  367. static struct hash_testvec rmd320_tv_template[] = {
  368. {
  369. .digest = "\x22\xd6\x5d\x56\x61\x53\x6c\xdc\x75\xc1"
  370. "\xfd\xf5\xc6\xde\x7b\x41\xb9\xf2\x73\x25"
  371. "\xeb\xc6\x1e\x85\x57\x17\x7d\x70\x5a\x0e"
  372. "\xc8\x80\x15\x1c\x3a\x32\xa0\x08\x99\xb8",
  373. }, {
  374. .plaintext = "a",
  375. .psize = 1,
  376. .digest = "\xce\x78\x85\x06\x38\xf9\x26\x58\xa5\xa5"
  377. "\x85\x09\x75\x79\x92\x6d\xda\x66\x7a\x57"
  378. "\x16\x56\x2c\xfc\xf6\xfb\xe7\x7f\x63\x54"
  379. "\x2f\x99\xb0\x47\x05\xd6\x97\x0d\xff\x5d",
  380. }, {
  381. .plaintext = "abc",
  382. .psize = 3,
  383. .digest = "\xde\x4c\x01\xb3\x05\x4f\x89\x30\xa7\x9d"
  384. "\x09\xae\x73\x8e\x92\x30\x1e\x5a\x17\x08"
  385. "\x5b\xef\xfd\xc1\xb8\xd1\x16\x71\x3e\x74"
  386. "\xf8\x2f\xa9\x42\xd6\x4c\xdb\xc4\x68\x2d",
  387. }, {
  388. .plaintext = "message digest",
  389. .psize = 14,
  390. .digest = "\x3a\x8e\x28\x50\x2e\xd4\x5d\x42\x2f\x68"
  391. "\x84\x4f\x9d\xd3\x16\xe7\xb9\x85\x33\xfa"
  392. "\x3f\x2a\x91\xd2\x9f\x84\xd4\x25\xc8\x8d"
  393. "\x6b\x4e\xff\x72\x7d\xf6\x6a\x7c\x01\x97",
  394. }, {
  395. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  396. .psize = 26,
  397. .digest = "\xca\xbd\xb1\x81\x0b\x92\x47\x0a\x20\x93"
  398. "\xaa\x6b\xce\x05\x95\x2c\x28\x34\x8c\xf4"
  399. "\x3f\xf6\x08\x41\x97\x51\x66\xbb\x40\xed"
  400. "\x23\x40\x04\xb8\x82\x44\x63\xe6\xb0\x09",
  401. }, {
  402. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
  403. "fghijklmnopqrstuvwxyz0123456789",
  404. .psize = 62,
  405. .digest = "\xed\x54\x49\x40\xc8\x6d\x67\xf2\x50\xd2"
  406. "\x32\xc3\x0b\x7b\x3e\x57\x70\xe0\xc6\x0c"
  407. "\x8c\xb9\xa4\xca\xfe\x3b\x11\x38\x8a\xf9"
  408. "\x92\x0e\x1b\x99\x23\x0b\x84\x3c\x86\xa4",
  409. }, {
  410. .plaintext = "1234567890123456789012345678901234567890"
  411. "1234567890123456789012345678901234567890",
  412. .psize = 80,
  413. .digest = "\x55\x78\x88\xaf\x5f\x6d\x8e\xd6\x2a\xb6"
  414. "\x69\x45\xc6\xd2\xa0\xa4\x7e\xcd\x53\x41"
  415. "\xe9\x15\xeb\x8f\xea\x1d\x05\x24\x95\x5f"
  416. "\x82\x5d\xc7\x17\xe4\xa0\x08\xab\x2d\x42",
  417. }, {
  418. .plaintext = "abcdbcdecdefdefgefghfghighij"
  419. "hijkijkljklmklmnlmnomnopnopq",
  420. .psize = 56,
  421. .digest = "\xd0\x34\xa7\x95\x0c\xf7\x22\x02\x1b\xa4"
  422. "\xb8\x4d\xf7\x69\xa5\xde\x20\x60\xe2\x59"
  423. "\xdf\x4c\x9b\xb4\xa4\x26\x8c\x0e\x93\x5b"
  424. "\xbc\x74\x70\xa9\x69\xc9\xd0\x72\xa1\xac",
  425. .np = 2,
  426. .tap = { 28, 28 },
  427. }
  428. };
  429. /*
  430. * SHA1 test vectors from from FIPS PUB 180-1
  431. * Long vector from CAVS 5.0
  432. */
  433. #define SHA1_TEST_VECTORS 3
  434. static struct hash_testvec sha1_tv_template[] = {
  435. {
  436. .plaintext = "abc",
  437. .psize = 3,
  438. .digest = "\xa9\x99\x3e\x36\x47\x06\x81\x6a\xba\x3e"
  439. "\x25\x71\x78\x50\xc2\x6c\x9c\xd0\xd8\x9d",
  440. }, {
  441. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  442. .psize = 56,
  443. .digest = "\x84\x98\x3e\x44\x1c\x3b\xd2\x6e\xba\xae"
  444. "\x4a\xa1\xf9\x51\x29\xe5\xe5\x46\x70\xf1",
  445. .np = 2,
  446. .tap = { 28, 28 }
  447. }, {
  448. .plaintext = "\xec\x29\x56\x12\x44\xed\xe7\x06"
  449. "\xb6\xeb\x30\xa1\xc3\x71\xd7\x44"
  450. "\x50\xa1\x05\xc3\xf9\x73\x5f\x7f"
  451. "\xa9\xfe\x38\xcf\x67\xf3\x04\xa5"
  452. "\x73\x6a\x10\x6e\x92\xe1\x71\x39"
  453. "\xa6\x81\x3b\x1c\x81\xa4\xf3\xd3"
  454. "\xfb\x95\x46\xab\x42\x96\xfa\x9f"
  455. "\x72\x28\x26\xc0\x66\x86\x9e\xda"
  456. "\xcd\x73\xb2\x54\x80\x35\x18\x58"
  457. "\x13\xe2\x26\x34\xa9\xda\x44\x00"
  458. "\x0d\x95\xa2\x81\xff\x9f\x26\x4e"
  459. "\xcc\xe0\xa9\x31\x22\x21\x62\xd0"
  460. "\x21\xcc\xa2\x8d\xb5\xf3\xc2\xaa"
  461. "\x24\x94\x5a\xb1\xe3\x1c\xb4\x13"
  462. "\xae\x29\x81\x0f\xd7\x94\xca\xd5"
  463. "\xdf\xaf\x29\xec\x43\xcb\x38\xd1"
  464. "\x98\xfe\x4a\xe1\xda\x23\x59\x78"
  465. "\x02\x21\x40\x5b\xd6\x71\x2a\x53"
  466. "\x05\xda\x4b\x1b\x73\x7f\xce\x7c"
  467. "\xd2\x1c\x0e\xb7\x72\x8d\x08\x23"
  468. "\x5a\x90\x11",
  469. .psize = 163,
  470. .digest = "\x97\x01\x11\xc4\xe7\x7b\xcc\x88\xcc\x20"
  471. "\x45\x9c\x02\xb6\x9b\x4a\xa8\xf5\x82\x17",
  472. .np = 4,
  473. .tap = { 63, 64, 31, 5 }
  474. }
  475. };
  476. /*
  477. * SHA224 test vectors from from FIPS PUB 180-2
  478. */
  479. #define SHA224_TEST_VECTORS 2
  480. static struct hash_testvec sha224_tv_template[] = {
  481. {
  482. .plaintext = "abc",
  483. .psize = 3,
  484. .digest = "\x23\x09\x7D\x22\x34\x05\xD8\x22"
  485. "\x86\x42\xA4\x77\xBD\xA2\x55\xB3"
  486. "\x2A\xAD\xBC\xE4\xBD\xA0\xB3\xF7"
  487. "\xE3\x6C\x9D\xA7",
  488. }, {
  489. .plaintext =
  490. "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  491. .psize = 56,
  492. .digest = "\x75\x38\x8B\x16\x51\x27\x76\xCC"
  493. "\x5D\xBA\x5D\xA1\xFD\x89\x01\x50"
  494. "\xB0\xC6\x45\x5C\xB4\xF5\x8B\x19"
  495. "\x52\x52\x25\x25",
  496. .np = 2,
  497. .tap = { 28, 28 }
  498. }
  499. };
  500. /*
  501. * SHA256 test vectors from from NIST
  502. */
  503. #define SHA256_TEST_VECTORS 2
  504. static struct hash_testvec sha256_tv_template[] = {
  505. {
  506. .plaintext = "abc",
  507. .psize = 3,
  508. .digest = "\xba\x78\x16\xbf\x8f\x01\xcf\xea"
  509. "\x41\x41\x40\xde\x5d\xae\x22\x23"
  510. "\xb0\x03\x61\xa3\x96\x17\x7a\x9c"
  511. "\xb4\x10\xff\x61\xf2\x00\x15\xad",
  512. }, {
  513. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  514. .psize = 56,
  515. .digest = "\x24\x8d\x6a\x61\xd2\x06\x38\xb8"
  516. "\xe5\xc0\x26\x93\x0c\x3e\x60\x39"
  517. "\xa3\x3c\xe4\x59\x64\xff\x21\x67"
  518. "\xf6\xec\xed\xd4\x19\xdb\x06\xc1",
  519. .np = 2,
  520. .tap = { 28, 28 }
  521. },
  522. };
  523. /*
  524. * SHA384 test vectors from from NIST and kerneli
  525. */
  526. #define SHA384_TEST_VECTORS 4
  527. static struct hash_testvec sha384_tv_template[] = {
  528. {
  529. .plaintext= "abc",
  530. .psize = 3,
  531. .digest = "\xcb\x00\x75\x3f\x45\xa3\x5e\x8b"
  532. "\xb5\xa0\x3d\x69\x9a\xc6\x50\x07"
  533. "\x27\x2c\x32\xab\x0e\xde\xd1\x63"
  534. "\x1a\x8b\x60\x5a\x43\xff\x5b\xed"
  535. "\x80\x86\x07\x2b\xa1\xe7\xcc\x23"
  536. "\x58\xba\xec\xa1\x34\xc8\x25\xa7",
  537. }, {
  538. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  539. .psize = 56,
  540. .digest = "\x33\x91\xfd\xdd\xfc\x8d\xc7\x39"
  541. "\x37\x07\xa6\x5b\x1b\x47\x09\x39"
  542. "\x7c\xf8\xb1\xd1\x62\xaf\x05\xab"
  543. "\xfe\x8f\x45\x0d\xe5\xf3\x6b\xc6"
  544. "\xb0\x45\x5a\x85\x20\xbc\x4e\x6f"
  545. "\x5f\xe9\x5b\x1f\xe3\xc8\x45\x2b",
  546. }, {
  547. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
  548. "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
  549. .psize = 112,
  550. .digest = "\x09\x33\x0c\x33\xf7\x11\x47\xe8"
  551. "\x3d\x19\x2f\xc7\x82\xcd\x1b\x47"
  552. "\x53\x11\x1b\x17\x3b\x3b\x05\xd2"
  553. "\x2f\xa0\x80\x86\xe3\xb0\xf7\x12"
  554. "\xfc\xc7\xc7\x1a\x55\x7e\x2d\xb9"
  555. "\x66\xc3\xe9\xfa\x91\x74\x60\x39",
  556. }, {
  557. .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
  558. "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
  559. .psize = 104,
  560. .digest = "\x3d\x20\x89\x73\xab\x35\x08\xdb"
  561. "\xbd\x7e\x2c\x28\x62\xba\x29\x0a"
  562. "\xd3\x01\x0e\x49\x78\xc1\x98\xdc"
  563. "\x4d\x8f\xd0\x14\xe5\x82\x82\x3a"
  564. "\x89\xe1\x6f\x9b\x2a\x7b\xbc\x1a"
  565. "\xc9\x38\xe2\xd1\x99\xe8\xbe\xa4",
  566. .np = 4,
  567. .tap = { 26, 26, 26, 26 }
  568. },
  569. };
  570. /*
  571. * SHA512 test vectors from from NIST and kerneli
  572. */
  573. #define SHA512_TEST_VECTORS 4
  574. static struct hash_testvec sha512_tv_template[] = {
  575. {
  576. .plaintext = "abc",
  577. .psize = 3,
  578. .digest = "\xdd\xaf\x35\xa1\x93\x61\x7a\xba"
  579. "\xcc\x41\x73\x49\xae\x20\x41\x31"
  580. "\x12\xe6\xfa\x4e\x89\xa9\x7e\xa2"
  581. "\x0a\x9e\xee\xe6\x4b\x55\xd3\x9a"
  582. "\x21\x92\x99\x2a\x27\x4f\xc1\xa8"
  583. "\x36\xba\x3c\x23\xa3\xfe\xeb\xbd"
  584. "\x45\x4d\x44\x23\x64\x3c\xe8\x0e"
  585. "\x2a\x9a\xc9\x4f\xa5\x4c\xa4\x9f",
  586. }, {
  587. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  588. .psize = 56,
  589. .digest = "\x20\x4a\x8f\xc6\xdd\xa8\x2f\x0a"
  590. "\x0c\xed\x7b\xeb\x8e\x08\xa4\x16"
  591. "\x57\xc1\x6e\xf4\x68\xb2\x28\xa8"
  592. "\x27\x9b\xe3\x31\xa7\x03\xc3\x35"
  593. "\x96\xfd\x15\xc1\x3b\x1b\x07\xf9"
  594. "\xaa\x1d\x3b\xea\x57\x78\x9c\xa0"
  595. "\x31\xad\x85\xc7\xa7\x1d\xd7\x03"
  596. "\x54\xec\x63\x12\x38\xca\x34\x45",
  597. }, {
  598. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
  599. "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
  600. .psize = 112,
  601. .digest = "\x8e\x95\x9b\x75\xda\xe3\x13\xda"
  602. "\x8c\xf4\xf7\x28\x14\xfc\x14\x3f"
  603. "\x8f\x77\x79\xc6\xeb\x9f\x7f\xa1"
  604. "\x72\x99\xae\xad\xb6\x88\x90\x18"
  605. "\x50\x1d\x28\x9e\x49\x00\xf7\xe4"
  606. "\x33\x1b\x99\xde\xc4\xb5\x43\x3a"
  607. "\xc7\xd3\x29\xee\xb6\xdd\x26\x54"
  608. "\x5e\x96\xe5\x5b\x87\x4b\xe9\x09",
  609. }, {
  610. .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
  611. "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
  612. .psize = 104,
  613. .digest = "\x93\x0d\x0c\xef\xcb\x30\xff\x11"
  614. "\x33\xb6\x89\x81\x21\xf1\xcf\x3d"
  615. "\x27\x57\x8a\xfc\xaf\xe8\x67\x7c"
  616. "\x52\x57\xcf\x06\x99\x11\xf7\x5d"
  617. "\x8f\x58\x31\xb5\x6e\xbf\xda\x67"
  618. "\xb2\x78\xe6\x6d\xff\x8b\x84\xfe"
  619. "\x2b\x28\x70\xf7\x42\xa5\x80\xd8"
  620. "\xed\xb4\x19\x87\x23\x28\x50\xc9",
  621. .np = 4,
  622. .tap = { 26, 26, 26, 26 }
  623. },
  624. };
  625. /*
  626. * WHIRLPOOL test vectors from Whirlpool package
  627. * by Vincent Rijmen and Paulo S. L. M. Barreto as part of the NESSIE
  628. * submission
  629. */
  630. #define WP512_TEST_VECTORS 8
  631. static struct hash_testvec wp512_tv_template[] = {
  632. {
  633. .plaintext = "",
  634. .psize = 0,
  635. .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
  636. "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
  637. "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
  638. "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
  639. "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
  640. "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57"
  641. "\xEA\x89\x64\xE5\x9B\x63\xD9\x37"
  642. "\x08\xB1\x38\xCC\x42\xA6\x6E\xB3",
  643. }, {
  644. .plaintext = "a",
  645. .psize = 1,
  646. .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
  647. "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
  648. "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
  649. "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
  650. "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
  651. "\x3A\x42\x39\x1A\x39\x14\x5A\x59"
  652. "\x1A\x92\x20\x0D\x56\x01\x95\xE5"
  653. "\x3B\x47\x85\x84\xFD\xAE\x23\x1A",
  654. }, {
  655. .plaintext = "abc",
  656. .psize = 3,
  657. .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
  658. "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
  659. "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
  660. "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
  661. "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
  662. "\x7D\x0E\x34\x95\x71\x14\xCB\xD6"
  663. "\xC7\x97\xFC\x9D\x95\xD8\xB5\x82"
  664. "\xD2\x25\x29\x20\x76\xD4\xEE\xF5",
  665. }, {
  666. .plaintext = "message digest",
  667. .psize = 14,
  668. .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
  669. "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
  670. "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
  671. "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
  672. "\x84\x21\x55\x76\x59\xEF\x55\xC1"
  673. "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6"
  674. "\x92\xED\x92\x00\x52\x83\x8F\x33"
  675. "\x62\xE8\x6D\xBD\x37\xA8\x90\x3E",
  676. }, {
  677. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  678. .psize = 26,
  679. .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
  680. "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
  681. "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
  682. "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
  683. "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
  684. "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6"
  685. "\xF6\x8F\x67\x3E\x72\x07\x86\x5D"
  686. "\x5D\x98\x19\xA3\xDB\xA4\xEB\x3B",
  687. }, {
  688. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  689. "abcdefghijklmnopqrstuvwxyz0123456789",
  690. .psize = 62,
  691. .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
  692. "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
  693. "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
  694. "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
  695. "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
  696. "\xB7\xCB\x57\x21\x1B\x92\x81\xA6"
  697. "\x55\x17\xCC\x87\x9D\x7B\x96\x21"
  698. "\x42\xC6\x5F\x5A\x7A\xF0\x14\x67",
  699. }, {
  700. .plaintext = "1234567890123456789012345678901234567890"
  701. "1234567890123456789012345678901234567890",
  702. .psize = 80,
  703. .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
  704. "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
  705. "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
  706. "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
  707. "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
  708. "\x38\xCD\x04\x7B\x26\x81\xA5\x1A"
  709. "\x2C\x60\x48\x1E\x88\xC5\xA2\x0B"
  710. "\x2C\x2A\x80\xCF\x3A\x9A\x08\x3B",
  711. }, {
  712. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  713. .psize = 32,
  714. .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
  715. "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
  716. "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
  717. "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
  718. "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
  719. "\x7B\x94\x76\x39\xFE\x05\x0B\x56"
  720. "\x93\x9B\xAA\xA0\xAD\xFF\x9A\xE6"
  721. "\x74\x5B\x7B\x18\x1C\x3B\xE3\xFD",
  722. },
  723. };
  724. #define WP384_TEST_VECTORS 8
  725. static struct hash_testvec wp384_tv_template[] = {
  726. {
  727. .plaintext = "",
  728. .psize = 0,
  729. .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
  730. "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
  731. "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
  732. "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
  733. "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
  734. "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57",
  735. }, {
  736. .plaintext = "a",
  737. .psize = 1,
  738. .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
  739. "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
  740. "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
  741. "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
  742. "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
  743. "\x3A\x42\x39\x1A\x39\x14\x5A\x59",
  744. }, {
  745. .plaintext = "abc",
  746. .psize = 3,
  747. .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
  748. "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
  749. "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
  750. "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
  751. "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
  752. "\x7D\x0E\x34\x95\x71\x14\xCB\xD6",
  753. }, {
  754. .plaintext = "message digest",
  755. .psize = 14,
  756. .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
  757. "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
  758. "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
  759. "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
  760. "\x84\x21\x55\x76\x59\xEF\x55\xC1"
  761. "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6",
  762. }, {
  763. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  764. .psize = 26,
  765. .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
  766. "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
  767. "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
  768. "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
  769. "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
  770. "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6",
  771. }, {
  772. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  773. "abcdefghijklmnopqrstuvwxyz0123456789",
  774. .psize = 62,
  775. .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
  776. "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
  777. "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
  778. "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
  779. "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
  780. "\xB7\xCB\x57\x21\x1B\x92\x81\xA6",
  781. }, {
  782. .plaintext = "1234567890123456789012345678901234567890"
  783. "1234567890123456789012345678901234567890",
  784. .psize = 80,
  785. .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
  786. "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
  787. "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
  788. "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
  789. "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
  790. "\x38\xCD\x04\x7B\x26\x81\xA5\x1A",
  791. }, {
  792. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  793. .psize = 32,
  794. .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
  795. "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
  796. "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
  797. "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
  798. "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
  799. "\x7B\x94\x76\x39\xFE\x05\x0B\x56",
  800. },
  801. };
  802. #define WP256_TEST_VECTORS 8
  803. static struct hash_testvec wp256_tv_template[] = {
  804. {
  805. .plaintext = "",
  806. .psize = 0,
  807. .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
  808. "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
  809. "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
  810. "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7",
  811. }, {
  812. .plaintext = "a",
  813. .psize = 1,
  814. .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
  815. "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
  816. "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
  817. "\x73\xC4\x50\x01\xD0\x08\x7B\x42",
  818. }, {
  819. .plaintext = "abc",
  820. .psize = 3,
  821. .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
  822. "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
  823. "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
  824. "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C",
  825. }, {
  826. .plaintext = "message digest",
  827. .psize = 14,
  828. .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
  829. "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
  830. "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
  831. "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B",
  832. }, {
  833. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  834. .psize = 26,
  835. .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
  836. "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
  837. "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
  838. "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B",
  839. }, {
  840. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  841. "abcdefghijklmnopqrstuvwxyz0123456789",
  842. .psize = 62,
  843. .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
  844. "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
  845. "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
  846. "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E",
  847. }, {
  848. .plaintext = "1234567890123456789012345678901234567890"
  849. "1234567890123456789012345678901234567890",
  850. .psize = 80,
  851. .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
  852. "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
  853. "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
  854. "\x54\x9C\x4A\xFA\xDB\x60\x14\x29",
  855. }, {
  856. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  857. .psize = 32,
  858. .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
  859. "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
  860. "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
  861. "\x07\xC5\x62\xF9\x88\xE9\x5C\x69",
  862. },
  863. };
  864. /*
  865. * TIGER test vectors from Tiger website
  866. */
  867. #define TGR192_TEST_VECTORS 6
  868. static struct hash_testvec tgr192_tv_template[] = {
  869. {
  870. .plaintext = "",
  871. .psize = 0,
  872. .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
  873. "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
  874. "\xf3\x73\xde\x2d\x49\x58\x4e\x7a",
  875. }, {
  876. .plaintext = "abc",
  877. .psize = 3,
  878. .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
  879. "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
  880. "\x93\x5f\x7b\x95\x1c\x13\x29\x51",
  881. }, {
  882. .plaintext = "Tiger",
  883. .psize = 5,
  884. .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
  885. "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
  886. "\x37\x79\x0c\x11\x6f\x9d\x2b\xdf",
  887. }, {
  888. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
  889. .psize = 64,
  890. .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
  891. "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
  892. "\xb5\x86\x44\x50\x34\xa5\xa3\x86",
  893. }, {
  894. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
  895. .psize = 64,
  896. .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
  897. "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
  898. "\x57\x89\x65\x65\x97\x5f\x91\x97",
  899. }, {
  900. .plaintext = "Tiger - A Fast New Hash Function, "
  901. "by Ross Anderson and Eli Biham, "
  902. "proceedings of Fast Software Encryption 3, "
  903. "Cambridge, 1996.",
  904. .psize = 125,
  905. .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
  906. "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
  907. "\xdd\x68\x15\x1d\x50\x39\x74\xfc",
  908. },
  909. };
  910. #define TGR160_TEST_VECTORS 6
  911. static struct hash_testvec tgr160_tv_template[] = {
  912. {
  913. .plaintext = "",
  914. .psize = 0,
  915. .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
  916. "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
  917. "\xf3\x73\xde\x2d",
  918. }, {
  919. .plaintext = "abc",
  920. .psize = 3,
  921. .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
  922. "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
  923. "\x93\x5f\x7b\x95",
  924. }, {
  925. .plaintext = "Tiger",
  926. .psize = 5,
  927. .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
  928. "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
  929. "\x37\x79\x0c\x11",
  930. }, {
  931. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
  932. .psize = 64,
  933. .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
  934. "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
  935. "\xb5\x86\x44\x50",
  936. }, {
  937. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
  938. .psize = 64,
  939. .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
  940. "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
  941. "\x57\x89\x65\x65",
  942. }, {
  943. .plaintext = "Tiger - A Fast New Hash Function, "
  944. "by Ross Anderson and Eli Biham, "
  945. "proceedings of Fast Software Encryption 3, "
  946. "Cambridge, 1996.",
  947. .psize = 125,
  948. .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
  949. "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
  950. "\xdd\x68\x15\x1d",
  951. },
  952. };
  953. #define TGR128_TEST_VECTORS 6
  954. static struct hash_testvec tgr128_tv_template[] = {
  955. {
  956. .plaintext = "",
  957. .psize = 0,
  958. .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
  959. "\x16\x16\x6e\x76\xb1\xbb\x92\x5f",
  960. }, {
  961. .plaintext = "abc",
  962. .psize = 3,
  963. .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
  964. "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf",
  965. }, {
  966. .plaintext = "Tiger",
  967. .psize = 5,
  968. .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
  969. "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec",
  970. }, {
  971. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
  972. .psize = 64,
  973. .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
  974. "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e",
  975. }, {
  976. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
  977. .psize = 64,
  978. .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
  979. "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9",
  980. }, {
  981. .plaintext = "Tiger - A Fast New Hash Function, "
  982. "by Ross Anderson and Eli Biham, "
  983. "proceedings of Fast Software Encryption 3, "
  984. "Cambridge, 1996.",
  985. .psize = 125,
  986. .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
  987. "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24",
  988. },
  989. };
  990. #define GHASH_TEST_VECTORS 1
  991. static struct hash_testvec ghash_tv_template[] =
  992. {
  993. {
  994. .key = "\xdf\xa6\xbf\x4d\xed\x81\xdb\x03\xff\xca\xff\x95\xf8\x30\xf0\x61",
  995. .ksize = 16,
  996. .plaintext = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0\xb3\x2b\x66\x56\xa0\x5b\x40\xb6",
  997. .psize = 16,
  998. .digest = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6"
  999. "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60",
  1000. },
  1001. };
  1002. /*
  1003. * HMAC-MD5 test vectors from RFC2202
  1004. * (These need to be fixed to not use strlen).
  1005. */
  1006. #define HMAC_MD5_TEST_VECTORS 7
  1007. static struct hash_testvec hmac_md5_tv_template[] =
  1008. {
  1009. {
  1010. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  1011. .ksize = 16,
  1012. .plaintext = "Hi There",
  1013. .psize = 8,
  1014. .digest = "\x92\x94\x72\x7a\x36\x38\xbb\x1c"
  1015. "\x13\xf4\x8e\xf8\x15\x8b\xfc\x9d",
  1016. }, {
  1017. .key = "Jefe",
  1018. .ksize = 4,
  1019. .plaintext = "what do ya want for nothing?",
  1020. .psize = 28,
  1021. .digest = "\x75\x0c\x78\x3e\x6a\xb0\xb5\x03"
  1022. "\xea\xa8\x6e\x31\x0a\x5d\xb7\x38",
  1023. .np = 2,
  1024. .tap = {14, 14}
  1025. }, {
  1026. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  1027. .ksize = 16,
  1028. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1029. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1030. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1031. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  1032. .psize = 50,
  1033. .digest = "\x56\xbe\x34\x52\x1d\x14\x4c\x88"
  1034. "\xdb\xb8\xc7\x33\xf0\xe8\xb3\xf6",
  1035. }, {
  1036. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1037. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1038. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  1039. .ksize = 25,
  1040. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1041. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1042. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1043. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1044. .psize = 50,
  1045. .digest = "\x69\x7e\xaf\x0a\xca\x3a\x3a\xea"
  1046. "\x3a\x75\x16\x47\x46\xff\xaa\x79",
  1047. }, {
  1048. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  1049. .ksize = 16,
  1050. .plaintext = "Test With Truncation",
  1051. .psize = 20,
  1052. .digest = "\x56\x46\x1e\xf2\x34\x2e\xdc\x00"
  1053. "\xf9\xba\xb9\x95\x69\x0e\xfd\x4c",
  1054. }, {
  1055. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1056. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1057. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1058. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1059. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1060. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1061. "\xaa\xaa",
  1062. .ksize = 80,
  1063. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1064. .psize = 54,
  1065. .digest = "\x6b\x1a\xb7\xfe\x4b\xd7\xbf\x8f"
  1066. "\x0b\x62\xe6\xce\x61\xb9\xd0\xcd",
  1067. }, {
  1068. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1069. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1070. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1071. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1072. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1073. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1074. "\xaa\xaa",
  1075. .ksize = 80,
  1076. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  1077. "Block-Size Data",
  1078. .psize = 73,
  1079. .digest = "\x6f\x63\x0f\xad\x67\xcd\xa0\xee"
  1080. "\x1f\xb1\xf5\x62\xdb\x3a\xa5\x3e",
  1081. },
  1082. };
  1083. /*
  1084. * HMAC-RIPEMD128 test vectors from RFC2286
  1085. */
  1086. #define HMAC_RMD128_TEST_VECTORS 7
  1087. static struct hash_testvec hmac_rmd128_tv_template[] = {
  1088. {
  1089. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  1090. .ksize = 16,
  1091. .plaintext = "Hi There",
  1092. .psize = 8,
  1093. .digest = "\xfb\xf6\x1f\x94\x92\xaa\x4b\xbf"
  1094. "\x81\xc1\x72\xe8\x4e\x07\x34\xdb",
  1095. }, {
  1096. .key = "Jefe",
  1097. .ksize = 4,
  1098. .plaintext = "what do ya want for nothing?",
  1099. .psize = 28,
  1100. .digest = "\x87\x5f\x82\x88\x62\xb6\xb3\x34"
  1101. "\xb4\x27\xc5\x5f\x9f\x7f\xf0\x9b",
  1102. .np = 2,
  1103. .tap = { 14, 14 },
  1104. }, {
  1105. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  1106. .ksize = 16,
  1107. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1108. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1109. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1110. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  1111. .psize = 50,
  1112. .digest = "\x09\xf0\xb2\x84\x6d\x2f\x54\x3d"
  1113. "\xa3\x63\xcb\xec\x8d\x62\xa3\x8d",
  1114. }, {
  1115. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1116. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1117. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  1118. .ksize = 25,
  1119. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1120. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1121. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1122. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1123. .psize = 50,
  1124. .digest = "\xbd\xbb\xd7\xcf\x03\xe4\x4b\x5a"
  1125. "\xa6\x0a\xf8\x15\xbe\x4d\x22\x94",
  1126. }, {
  1127. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  1128. .ksize = 16,
  1129. .plaintext = "Test With Truncation",
  1130. .psize = 20,
  1131. .digest = "\xe7\x98\x08\xf2\x4b\x25\xfd\x03"
  1132. "\x1c\x15\x5f\x0d\x55\x1d\x9a\x3a",
  1133. }, {
  1134. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1135. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1136. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1137. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1138. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1139. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1140. "\xaa\xaa",
  1141. .ksize = 80,
  1142. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1143. .psize = 54,
  1144. .digest = "\xdc\x73\x29\x28\xde\x98\x10\x4a"
  1145. "\x1f\x59\xd3\x73\xc1\x50\xac\xbb",
  1146. }, {
  1147. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1148. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1149. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1150. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1151. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1152. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1153. "\xaa\xaa",
  1154. .ksize = 80,
  1155. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  1156. "Block-Size Data",
  1157. .psize = 73,
  1158. .digest = "\x5c\x6b\xec\x96\x79\x3e\x16\xd4"
  1159. "\x06\x90\xc2\x37\x63\x5f\x30\xc5",
  1160. },
  1161. };
  1162. /*
  1163. * HMAC-RIPEMD160 test vectors from RFC2286
  1164. */
  1165. #define HMAC_RMD160_TEST_VECTORS 7
  1166. static struct hash_testvec hmac_rmd160_tv_template[] = {
  1167. {
  1168. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  1169. .ksize = 20,
  1170. .plaintext = "Hi There",
  1171. .psize = 8,
  1172. .digest = "\x24\xcb\x4b\xd6\x7d\x20\xfc\x1a\x5d\x2e"
  1173. "\xd7\x73\x2d\xcc\x39\x37\x7f\x0a\x56\x68",
  1174. }, {
  1175. .key = "Jefe",
  1176. .ksize = 4,
  1177. .plaintext = "what do ya want for nothing?",
  1178. .psize = 28,
  1179. .digest = "\xdd\xa6\xc0\x21\x3a\x48\x5a\x9e\x24\xf4"
  1180. "\x74\x20\x64\xa7\xf0\x33\xb4\x3c\x40\x69",
  1181. .np = 2,
  1182. .tap = { 14, 14 },
  1183. }, {
  1184. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  1185. .ksize = 20,
  1186. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1187. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1188. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1189. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  1190. .psize = 50,
  1191. .digest = "\xb0\xb1\x05\x36\x0d\xe7\x59\x96\x0a\xb4"
  1192. "\xf3\x52\x98\xe1\x16\xe2\x95\xd8\xe7\xc1",
  1193. }, {
  1194. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1195. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1196. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  1197. .ksize = 25,
  1198. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1199. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1200. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1201. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1202. .psize = 50,
  1203. .digest = "\xd5\xca\x86\x2f\x4d\x21\xd5\xe6\x10\xe1"
  1204. "\x8b\x4c\xf1\xbe\xb9\x7a\x43\x65\xec\xf4",
  1205. }, {
  1206. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  1207. .ksize = 20,
  1208. .plaintext = "Test With Truncation",
  1209. .psize = 20,
  1210. .digest = "\x76\x19\x69\x39\x78\xf9\x1d\x90\x53\x9a"
  1211. "\xe7\x86\x50\x0f\xf3\xd8\xe0\x51\x8e\x39",
  1212. }, {
  1213. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1214. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1215. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1216. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1217. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1218. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1219. "\xaa\xaa",
  1220. .ksize = 80,
  1221. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1222. .psize = 54,
  1223. .digest = "\x64\x66\xca\x07\xac\x5e\xac\x29\xe1\xbd"
  1224. "\x52\x3e\x5a\xda\x76\x05\xb7\x91\xfd\x8b",
  1225. }, {
  1226. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1227. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1228. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1229. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1230. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1231. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1232. "\xaa\xaa",
  1233. .ksize = 80,
  1234. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  1235. "Block-Size Data",
  1236. .psize = 73,
  1237. .digest = "\x69\xea\x60\x79\x8d\x71\x61\x6c\xce\x5f"
  1238. "\xd0\x87\x1e\x23\x75\x4c\xd7\x5d\x5a\x0a",
  1239. },
  1240. };
  1241. /*
  1242. * HMAC-SHA1 test vectors from RFC2202
  1243. */
  1244. #define HMAC_SHA1_TEST_VECTORS 7
  1245. static struct hash_testvec hmac_sha1_tv_template[] = {
  1246. {
  1247. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  1248. .ksize = 20,
  1249. .plaintext = "Hi There",
  1250. .psize = 8,
  1251. .digest = "\xb6\x17\x31\x86\x55\x05\x72\x64"
  1252. "\xe2\x8b\xc0\xb6\xfb\x37\x8c\x8e\xf1"
  1253. "\x46\xbe",
  1254. }, {
  1255. .key = "Jefe",
  1256. .ksize = 4,
  1257. .plaintext = "what do ya want for nothing?",
  1258. .psize = 28,
  1259. .digest = "\xef\xfc\xdf\x6a\xe5\xeb\x2f\xa2\xd2\x74"
  1260. "\x16\xd5\xf1\x84\xdf\x9c\x25\x9a\x7c\x79",
  1261. .np = 2,
  1262. .tap = { 14, 14 }
  1263. }, {
  1264. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  1265. .ksize = 20,
  1266. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1267. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1268. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1269. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  1270. .psize = 50,
  1271. .digest = "\x12\x5d\x73\x42\xb9\xac\x11\xcd\x91\xa3"
  1272. "\x9a\xf4\x8a\xa1\x7b\x4f\x63\xf1\x75\xd3",
  1273. }, {
  1274. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1275. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1276. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  1277. .ksize = 25,
  1278. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1279. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1280. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1281. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1282. .psize = 50,
  1283. .digest = "\x4c\x90\x07\xf4\x02\x62\x50\xc6\xbc\x84"
  1284. "\x14\xf9\xbf\x50\xc8\x6c\x2d\x72\x35\xda",
  1285. }, {
  1286. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  1287. .ksize = 20,
  1288. .plaintext = "Test With Truncation",
  1289. .psize = 20,
  1290. .digest = "\x4c\x1a\x03\x42\x4b\x55\xe0\x7f\xe7\xf2"
  1291. "\x7b\xe1\xd5\x8b\xb9\x32\x4a\x9a\x5a\x04",
  1292. }, {
  1293. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1294. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1295. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1296. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1297. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1298. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1299. "\xaa\xaa",
  1300. .ksize = 80,
  1301. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1302. .psize = 54,
  1303. .digest = "\xaa\x4a\xe5\xe1\x52\x72\xd0\x0e\x95\x70"
  1304. "\x56\x37\xce\x8a\x3b\x55\xed\x40\x21\x12",
  1305. }, {
  1306. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1307. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1308. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1309. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1310. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1311. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1312. "\xaa\xaa",
  1313. .ksize = 80,
  1314. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  1315. "Block-Size Data",
  1316. .psize = 73,
  1317. .digest = "\xe8\xe9\x9d\x0f\x45\x23\x7d\x78\x6d\x6b"
  1318. "\xba\xa7\x96\x5c\x78\x08\xbb\xff\x1a\x91",
  1319. },
  1320. };
  1321. /*
  1322. * SHA224 HMAC test vectors from RFC4231
  1323. */
  1324. #define HMAC_SHA224_TEST_VECTORS 4
  1325. static struct hash_testvec hmac_sha224_tv_template[] = {
  1326. {
  1327. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1328. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1329. "\x0b\x0b\x0b\x0b",
  1330. .ksize = 20,
  1331. /* ("Hi There") */
  1332. .plaintext = "\x48\x69\x20\x54\x68\x65\x72\x65",
  1333. .psize = 8,
  1334. .digest = "\x89\x6f\xb1\x12\x8a\xbb\xdf\x19"
  1335. "\x68\x32\x10\x7c\xd4\x9d\xf3\x3f"
  1336. "\x47\xb4\xb1\x16\x99\x12\xba\x4f"
  1337. "\x53\x68\x4b\x22",
  1338. }, {
  1339. .key = "Jefe",
  1340. .ksize = 4,
  1341. /* ("what do ya want for nothing?") */
  1342. .plaintext = "\x77\x68\x61\x74\x20\x64\x6f\x20"
  1343. "\x79\x61\x20\x77\x61\x6e\x74\x20"
  1344. "\x66\x6f\x72\x20\x6e\x6f\x74\x68"
  1345. "\x69\x6e\x67\x3f",
  1346. .psize = 28,
  1347. .digest = "\xa3\x0e\x01\x09\x8b\xc6\xdb\xbf"
  1348. "\x45\x69\x0f\x3a\x7e\x9e\x6d\x0f"
  1349. "\x8b\xbe\xa2\xa3\x9e\x61\x48\x00"
  1350. "\x8f\xd0\x5e\x44",
  1351. .np = 4,
  1352. .tap = { 7, 7, 7, 7 }
  1353. }, {
  1354. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1355. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1356. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1357. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1358. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1359. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1360. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1361. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1362. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1363. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1364. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1365. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1366. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1367. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1368. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1369. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1370. "\xaa\xaa\xaa",
  1371. .ksize = 131,
  1372. /* ("Test Using Larger Than Block-Size Key - Hash Key First") */
  1373. .plaintext = "\x54\x65\x73\x74\x20\x55\x73\x69"
  1374. "\x6e\x67\x20\x4c\x61\x72\x67\x65"
  1375. "\x72\x20\x54\x68\x61\x6e\x20\x42"
  1376. "\x6c\x6f\x63\x6b\x2d\x53\x69\x7a"
  1377. "\x65\x20\x4b\x65\x79\x20\x2d\x20"
  1378. "\x48\x61\x73\x68\x20\x4b\x65\x79"
  1379. "\x20\x46\x69\x72\x73\x74",
  1380. .psize = 54,
  1381. .digest = "\x95\xe9\xa0\xdb\x96\x20\x95\xad"
  1382. "\xae\xbe\x9b\x2d\x6f\x0d\xbc\xe2"
  1383. "\xd4\x99\xf1\x12\xf2\xd2\xb7\x27"
  1384. "\x3f\xa6\x87\x0e",
  1385. }, {
  1386. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1387. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1388. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1389. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1390. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1391. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1392. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1393. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1394. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1395. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1396. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1397. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1398. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1399. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1400. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1401. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1402. "\xaa\xaa\xaa",
  1403. .ksize = 131,
  1404. /* ("This is a test using a larger than block-size key and a")
  1405. (" larger than block-size data. The key needs to be")
  1406. (" hashed before being used by the HMAC algorithm.") */
  1407. .plaintext = "\x54\x68\x69\x73\x20\x69\x73\x20"
  1408. "\x61\x20\x74\x65\x73\x74\x20\x75"
  1409. "\x73\x69\x6e\x67\x20\x61\x20\x6c"
  1410. "\x61\x72\x67\x65\x72\x20\x74\x68"
  1411. "\x61\x6e\x20\x62\x6c\x6f\x63\x6b"
  1412. "\x2d\x73\x69\x7a\x65\x20\x6b\x65"
  1413. "\x79\x20\x61\x6e\x64\x20\x61\x20"
  1414. "\x6c\x61\x72\x67\x65\x72\x20\x74"
  1415. "\x68\x61\x6e\x20\x62\x6c\x6f\x63"
  1416. "\x6b\x2d\x73\x69\x7a\x65\x20\x64"
  1417. "\x61\x74\x61\x2e\x20\x54\x68\x65"
  1418. "\x20\x6b\x65\x79\x20\x6e\x65\x65"
  1419. "\x64\x73\x20\x74\x6f\x20\x62\x65"
  1420. "\x20\x68\x61\x73\x68\x65\x64\x20"
  1421. "\x62\x65\x66\x6f\x72\x65\x20\x62"
  1422. "\x65\x69\x6e\x67\x20\x75\x73\x65"
  1423. "\x64\x20\x62\x79\x20\x74\x68\x65"
  1424. "\x20\x48\x4d\x41\x43\x20\x61\x6c"
  1425. "\x67\x6f\x72\x69\x74\x68\x6d\x2e",
  1426. .psize = 152,
  1427. .digest = "\x3a\x85\x41\x66\xac\x5d\x9f\x02"
  1428. "\x3f\x54\xd5\x17\xd0\xb3\x9d\xbd"
  1429. "\x94\x67\x70\xdb\x9c\x2b\x95\xc9"
  1430. "\xf6\xf5\x65\xd1",
  1431. },
  1432. };
  1433. /*
  1434. * HMAC-SHA256 test vectors from
  1435. * draft-ietf-ipsec-ciph-sha-256-01.txt
  1436. */
  1437. #define HMAC_SHA256_TEST_VECTORS 10
  1438. static struct hash_testvec hmac_sha256_tv_template[] = {
  1439. {
  1440. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1441. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1442. "\x11\x12\x13\x14\x15\x16\x17\x18"
  1443. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
  1444. .ksize = 32,
  1445. .plaintext = "abc",
  1446. .psize = 3,
  1447. .digest = "\xa2\x1b\x1f\x5d\x4c\xf4\xf7\x3a"
  1448. "\x4d\xd9\x39\x75\x0f\x7a\x06\x6a"
  1449. "\x7f\x98\xcc\x13\x1c\xb1\x6a\x66"
  1450. "\x92\x75\x90\x21\xcf\xab\x81\x81",
  1451. }, {
  1452. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1453. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1454. "\x11\x12\x13\x14\x15\x16\x17\x18"
  1455. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
  1456. .ksize = 32,
  1457. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  1458. .psize = 56,
  1459. .digest = "\x10\x4f\xdc\x12\x57\x32\x8f\x08"
  1460. "\x18\x4b\xa7\x31\x31\xc5\x3c\xae"
  1461. "\xe6\x98\xe3\x61\x19\x42\x11\x49"
  1462. "\xea\x8c\x71\x24\x56\x69\x7d\x30",
  1463. }, {
  1464. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1465. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1466. "\x11\x12\x13\x14\x15\x16\x17\x18"
  1467. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
  1468. .ksize = 32,
  1469. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
  1470. "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  1471. .psize = 112,
  1472. .digest = "\x47\x03\x05\xfc\x7e\x40\xfe\x34"
  1473. "\xd3\xee\xb3\xe7\x73\xd9\x5a\xab"
  1474. "\x73\xac\xf0\xfd\x06\x04\x47\xa5"
  1475. "\xeb\x45\x95\xbf\x33\xa9\xd1\xa3",
  1476. }, {
  1477. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1478. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1479. "\x0b\x0b\x0b\x0b\x0b\x0b",
  1480. .ksize = 32,
  1481. .plaintext = "Hi There",
  1482. .psize = 8,
  1483. .digest = "\x19\x8a\x60\x7e\xb4\x4b\xfb\xc6"
  1484. "\x99\x03\xa0\xf1\xcf\x2b\xbd\xc5"
  1485. "\xba\x0a\xa3\xf3\xd9\xae\x3c\x1c"
  1486. "\x7a\x3b\x16\x96\xa0\xb6\x8c\xf7",
  1487. }, {
  1488. .key = "Jefe",
  1489. .ksize = 4,
  1490. .plaintext = "what do ya want for nothing?",
  1491. .psize = 28,
  1492. .digest = "\x5b\xdc\xc1\x46\xbf\x60\x75\x4e"
  1493. "\x6a\x04\x24\x26\x08\x95\x75\xc7"
  1494. "\x5a\x00\x3f\x08\x9d\x27\x39\x83"
  1495. "\x9d\xec\x58\xb9\x64\xec\x38\x43",
  1496. .np = 2,
  1497. .tap = { 14, 14 }
  1498. }, {
  1499. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1500. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1501. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  1502. .ksize = 32,
  1503. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1504. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1505. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1506. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  1507. .psize = 50,
  1508. .digest = "\xcd\xcb\x12\x20\xd1\xec\xcc\xea"
  1509. "\x91\xe5\x3a\xba\x30\x92\xf9\x62"
  1510. "\xe5\x49\xfe\x6c\xe9\xed\x7f\xdc"
  1511. "\x43\x19\x1f\xbd\xe4\x5c\x30\xb0",
  1512. }, {
  1513. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1514. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1515. "\x11\x12\x13\x14\x15\x16\x17\x18"
  1516. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  1517. "\x21\x22\x23\x24\x25",
  1518. .ksize = 37,
  1519. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1520. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1521. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1522. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1523. .psize = 50,
  1524. .digest = "\xd4\x63\x3c\x17\xf6\xfb\x8d\x74"
  1525. "\x4c\x66\xde\xe0\xf8\xf0\x74\x55"
  1526. "\x6e\xc4\xaf\x55\xef\x07\x99\x85"
  1527. "\x41\x46\x8e\xb4\x9b\xd2\xe9\x17",
  1528. }, {
  1529. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
  1530. "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
  1531. "\x0c\x0c\x0c\x0c\x0c\x0c",
  1532. .ksize = 32,
  1533. .plaintext = "Test With Truncation",
  1534. .psize = 20,
  1535. .digest = "\x75\x46\xaf\x01\x84\x1f\xc0\x9b"
  1536. "\x1a\xb9\xc3\x74\x9a\x5f\x1c\x17"
  1537. "\xd4\xf5\x89\x66\x8a\x58\x7b\x27"
  1538. "\x00\xa9\xc9\x7c\x11\x93\xcf\x42",
  1539. }, {
  1540. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1541. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1542. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1543. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1544. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1545. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1546. "\xaa\xaa",
  1547. .ksize = 80,
  1548. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1549. .psize = 54,
  1550. .digest = "\x69\x53\x02\x5e\xd9\x6f\x0c\x09"
  1551. "\xf8\x0a\x96\xf7\x8e\x65\x38\xdb"
  1552. "\xe2\xe7\xb8\x20\xe3\xdd\x97\x0e"
  1553. "\x7d\xdd\x39\x09\x1b\x32\x35\x2f",
  1554. }, {
  1555. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1556. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1557. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1558. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1559. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1560. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1561. "\xaa\xaa",
  1562. .ksize = 80,
  1563. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than "
  1564. "One Block-Size Data",
  1565. .psize = 73,
  1566. .digest = "\x63\x55\xac\x22\xe8\x90\xd0\xa3"
  1567. "\xc8\x48\x1a\x5c\xa4\x82\x5b\xc8"
  1568. "\x84\xd3\xe7\xa1\xff\x98\xa2\xfc"
  1569. "\x2a\xc7\xd8\xe0\x64\xc3\xb2\xe6",
  1570. },
  1571. };
  1572. #define XCBC_AES_TEST_VECTORS 6
  1573. static struct hash_testvec aes_xcbc128_tv_template[] = {
  1574. {
  1575. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1576. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1577. .plaintext = zeroed_string,
  1578. .digest = "\x75\xf0\x25\x1d\x52\x8a\xc0\x1c"
  1579. "\x45\x73\xdf\xd5\x84\xd7\x9f\x29",
  1580. .psize = 0,
  1581. .ksize = 16,
  1582. }, {
  1583. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1584. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1585. .plaintext = "\x00\x01\x02",
  1586. .digest = "\x5b\x37\x65\x80\xae\x2f\x19\xaf"
  1587. "\xe7\x21\x9c\xee\xf1\x72\x75\x6f",
  1588. .psize = 3,
  1589. .ksize = 16,
  1590. } , {
  1591. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1592. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1593. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1594. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1595. .digest = "\xd2\xa2\x46\xfa\x34\x9b\x68\xa7"
  1596. "\x99\x98\xa4\x39\x4f\xf7\xa2\x63",
  1597. .psize = 16,
  1598. .ksize = 16,
  1599. }, {
  1600. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1601. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1602. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1603. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  1604. "\x10\x11\x12\x13",
  1605. .digest = "\x47\xf5\x1b\x45\x64\x96\x62\x15"
  1606. "\xb8\x98\x5c\x63\x05\x5e\xd3\x08",
  1607. .tap = { 10, 10 },
  1608. .psize = 20,
  1609. .np = 2,
  1610. .ksize = 16,
  1611. }, {
  1612. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1613. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1614. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1615. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  1616. "\x10\x11\x12\x13\x14\x15\x16\x17"
  1617. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  1618. .digest = "\xf5\x4f\x0e\xc8\xd2\xb9\xf3\xd3"
  1619. "\x68\x07\x73\x4b\xd5\x28\x3f\xd4",
  1620. .psize = 32,
  1621. .ksize = 16,
  1622. }, {
  1623. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1624. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1625. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1626. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  1627. "\x10\x11\x12\x13\x14\x15\x16\x17"
  1628. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  1629. "\x20\x21",
  1630. .digest = "\xbe\xcb\xb3\xbc\xcd\xb5\x18\xa3"
  1631. "\x06\x77\xd5\x48\x1f\xb6\xb4\xd8",
  1632. .tap = { 17, 17 },
  1633. .psize = 34,
  1634. .np = 2,
  1635. .ksize = 16,
  1636. }
  1637. };
  1638. #define VMAC_AES_TEST_VECTORS 8
  1639. static char vmac_string1[128] = {'\x01', '\x01', '\x01', '\x01',
  1640. '\x02', '\x03', '\x02', '\x02',
  1641. '\x02', '\x04', '\x01', '\x07',
  1642. '\x04', '\x01', '\x04', '\x03',};
  1643. static char vmac_string2[128] = {'a', 'b', 'c',};
  1644. static char vmac_string3[128] = {'a', 'b', 'c', 'a', 'b', 'c',
  1645. 'a', 'b', 'c', 'a', 'b', 'c',
  1646. 'a', 'b', 'c', 'a', 'b', 'c',
  1647. 'a', 'b', 'c', 'a', 'b', 'c',
  1648. 'a', 'b', 'c', 'a', 'b', 'c',
  1649. 'a', 'b', 'c', 'a', 'b', 'c',
  1650. 'a', 'b', 'c', 'a', 'b', 'c',
  1651. 'a', 'b', 'c', 'a', 'b', 'c',
  1652. };
  1653. static struct hash_testvec aes_vmac128_tv_template[] = {
  1654. {
  1655. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1656. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1657. .plaintext = NULL,
  1658. .digest = "\x07\x58\x80\x35\x77\xa4\x7b\x54",
  1659. .psize = 0,
  1660. .ksize = 16,
  1661. }, {
  1662. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1663. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1664. .plaintext = vmac_string1,
  1665. .digest = "\xce\xf5\x3c\xd3\xae\x68\x8c\xa1",
  1666. .psize = 128,
  1667. .ksize = 16,
  1668. }, {
  1669. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1670. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1671. .plaintext = vmac_string2,
  1672. .digest = "\xc9\x27\xb0\x73\x81\xbd\x14\x2d",
  1673. .psize = 128,
  1674. .ksize = 16,
  1675. }, {
  1676. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1677. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1678. .plaintext = vmac_string3,
  1679. .digest = "\x8d\x1a\x95\x8c\x98\x47\x0b\x19",
  1680. .psize = 128,
  1681. .ksize = 16,
  1682. }, {
  1683. .key = "abcdefghijklmnop",
  1684. .plaintext = NULL,
  1685. .digest = "\x3b\x89\xa1\x26\x9e\x55\x8f\x84",
  1686. .psize = 0,
  1687. .ksize = 16,
  1688. }, {
  1689. .key = "abcdefghijklmnop",
  1690. .plaintext = vmac_string1,
  1691. .digest = "\xab\x5e\xab\xb0\xf6\x8d\x74\xc2",
  1692. .psize = 128,
  1693. .ksize = 16,
  1694. }, {
  1695. .key = "abcdefghijklmnop",
  1696. .plaintext = vmac_string2,
  1697. .digest = "\x11\x15\x68\x42\x3d\x7b\x09\xdf",
  1698. .psize = 128,
  1699. .ksize = 16,
  1700. }, {
  1701. .key = "abcdefghijklmnop",
  1702. .plaintext = vmac_string3,
  1703. .digest = "\x8b\x32\x8f\xe1\xed\x8f\xfa\xd4",
  1704. .psize = 128,
  1705. .ksize = 16,
  1706. },
  1707. };
  1708. /*
  1709. * SHA384 HMAC test vectors from RFC4231
  1710. */
  1711. #define HMAC_SHA384_TEST_VECTORS 4
  1712. static struct hash_testvec hmac_sha384_tv_template[] = {
  1713. {
  1714. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1715. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1716. "\x0b\x0b\x0b\x0b",
  1717. .ksize = 20,
  1718. .plaintext = "Hi There",
  1719. .psize = 8,
  1720. .digest = "\xaf\xd0\x39\x44\xd8\x48\x95\x62"
  1721. "\x6b\x08\x25\xf4\xab\x46\x90\x7f"
  1722. "\x15\xf9\xda\xdb\xe4\x10\x1e\xc6"
  1723. "\x82\xaa\x03\x4c\x7c\xeb\xc5\x9c"
  1724. "\xfa\xea\x9e\xa9\x07\x6e\xde\x7f"
  1725. "\x4a\xf1\x52\xe8\xb2\xfa\x9c\xb6",
  1726. }, {
  1727. .key = "Jefe",
  1728. .ksize = 4,
  1729. .plaintext = "what do ya want for nothing?",
  1730. .psize = 28,
  1731. .digest = "\xaf\x45\xd2\xe3\x76\x48\x40\x31"
  1732. "\x61\x7f\x78\xd2\xb5\x8a\x6b\x1b"
  1733. "\x9c\x7e\xf4\x64\xf5\xa0\x1b\x47"
  1734. "\xe4\x2e\xc3\x73\x63\x22\x44\x5e"
  1735. "\x8e\x22\x40\xca\x5e\x69\xe2\xc7"
  1736. "\x8b\x32\x39\xec\xfa\xb2\x16\x49",
  1737. .np = 4,
  1738. .tap = { 7, 7, 7, 7 }
  1739. }, {
  1740. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1741. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1742. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1743. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1744. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1745. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1746. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1747. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1748. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1749. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1750. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1751. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1752. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1753. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1754. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1755. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1756. "\xaa\xaa\xaa",
  1757. .ksize = 131,
  1758. .plaintext = "Test Using Larger Than Block-Siz"
  1759. "e Key - Hash Key First",
  1760. .psize = 54,
  1761. .digest = "\x4e\xce\x08\x44\x85\x81\x3e\x90"
  1762. "\x88\xd2\xc6\x3a\x04\x1b\xc5\xb4"
  1763. "\x4f\x9e\xf1\x01\x2a\x2b\x58\x8f"
  1764. "\x3c\xd1\x1f\x05\x03\x3a\xc4\xc6"
  1765. "\x0c\x2e\xf6\xab\x40\x30\xfe\x82"
  1766. "\x96\x24\x8d\xf1\x63\xf4\x49\x52",
  1767. }, {
  1768. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1769. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1770. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1771. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1772. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1773. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1774. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1775. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1776. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1777. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1778. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1779. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1780. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1781. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1782. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1783. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1784. "\xaa\xaa\xaa",
  1785. .ksize = 131,
  1786. .plaintext = "This is a test u"
  1787. "sing a larger th"
  1788. "an block-size ke"
  1789. "y and a larger t"
  1790. "han block-size d"
  1791. "ata. The key nee"
  1792. "ds to be hashed "
  1793. "before being use"
  1794. "d by the HMAC al"
  1795. "gorithm.",
  1796. .psize = 152,
  1797. .digest = "\x66\x17\x17\x8e\x94\x1f\x02\x0d"
  1798. "\x35\x1e\x2f\x25\x4e\x8f\xd3\x2c"
  1799. "\x60\x24\x20\xfe\xb0\xb8\xfb\x9a"
  1800. "\xdc\xce\xbb\x82\x46\x1e\x99\xc5"
  1801. "\xa6\x78\xcc\x31\xe7\x99\x17\x6d"
  1802. "\x38\x60\xe6\x11\x0c\x46\x52\x3e",
  1803. },
  1804. };
  1805. /*
  1806. * SHA512 HMAC test vectors from RFC4231
  1807. */
  1808. #define HMAC_SHA512_TEST_VECTORS 4
  1809. static struct hash_testvec hmac_sha512_tv_template[] = {
  1810. {
  1811. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1812. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1813. "\x0b\x0b\x0b\x0b",
  1814. .ksize = 20,
  1815. .plaintext = "Hi There",
  1816. .psize = 8,
  1817. .digest = "\x87\xaa\x7c\xde\xa5\xef\x61\x9d"
  1818. "\x4f\xf0\xb4\x24\x1a\x1d\x6c\xb0"
  1819. "\x23\x79\xf4\xe2\xce\x4e\xc2\x78"
  1820. "\x7a\xd0\xb3\x05\x45\xe1\x7c\xde"
  1821. "\xda\xa8\x33\xb7\xd6\xb8\xa7\x02"
  1822. "\x03\x8b\x27\x4e\xae\xa3\xf4\xe4"
  1823. "\xbe\x9d\x91\x4e\xeb\x61\xf1\x70"
  1824. "\x2e\x69\x6c\x20\x3a\x12\x68\x54",
  1825. }, {
  1826. .key = "Jefe",
  1827. .ksize = 4,
  1828. .plaintext = "what do ya want for nothing?",
  1829. .psize = 28,
  1830. .digest = "\x16\x4b\x7a\x7b\xfc\xf8\x19\xe2"
  1831. "\xe3\x95\xfb\xe7\x3b\x56\xe0\xa3"
  1832. "\x87\xbd\x64\x22\x2e\x83\x1f\xd6"
  1833. "\x10\x27\x0c\xd7\xea\x25\x05\x54"
  1834. "\x97\x58\xbf\x75\xc0\x5a\x99\x4a"
  1835. "\x6d\x03\x4f\x65\xf8\xf0\xe6\xfd"
  1836. "\xca\xea\xb1\xa3\x4d\x4a\x6b\x4b"
  1837. "\x63\x6e\x07\x0a\x38\xbc\xe7\x37",
  1838. .np = 4,
  1839. .tap = { 7, 7, 7, 7 }
  1840. }, {
  1841. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1842. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1843. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1844. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1845. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1846. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1847. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1848. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1849. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1850. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1851. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1852. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1853. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1854. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1855. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1856. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1857. "\xaa\xaa\xaa",
  1858. .ksize = 131,
  1859. .plaintext = "Test Using Large"
  1860. "r Than Block-Siz"
  1861. "e Key - Hash Key"
  1862. " First",
  1863. .psize = 54,
  1864. .digest = "\x80\xb2\x42\x63\xc7\xc1\xa3\xeb"
  1865. "\xb7\x14\x93\xc1\xdd\x7b\xe8\xb4"
  1866. "\x9b\x46\xd1\xf4\x1b\x4a\xee\xc1"
  1867. "\x12\x1b\x01\x37\x83\xf8\xf3\x52"
  1868. "\x6b\x56\xd0\x37\xe0\x5f\x25\x98"
  1869. "\xbd\x0f\xd2\x21\x5d\x6a\x1e\x52"
  1870. "\x95\xe6\x4f\x73\xf6\x3f\x0a\xec"
  1871. "\x8b\x91\x5a\x98\x5d\x78\x65\x98",
  1872. }, {
  1873. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1874. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1875. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1876. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1877. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1878. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1879. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1880. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1881. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1882. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1883. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1884. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1885. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1886. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1887. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1888. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1889. "\xaa\xaa\xaa",
  1890. .ksize = 131,
  1891. .plaintext =
  1892. "This is a test u"
  1893. "sing a larger th"
  1894. "an block-size ke"
  1895. "y and a larger t"
  1896. "han block-size d"
  1897. "ata. The key nee"
  1898. "ds to be hashed "
  1899. "before being use"
  1900. "d by the HMAC al"
  1901. "gorithm.",
  1902. .psize = 152,
  1903. .digest = "\xe3\x7b\x6a\x77\x5d\xc8\x7d\xba"
  1904. "\xa4\xdf\xa9\xf9\x6e\x5e\x3f\xfd"
  1905. "\xde\xbd\x71\xf8\x86\x72\x89\x86"
  1906. "\x5d\xf5\xa3\x2d\x20\xcd\xc9\x44"
  1907. "\xb6\x02\x2c\xac\x3c\x49\x82\xb1"
  1908. "\x0d\x5e\xeb\x55\xc3\xe4\xde\x15"
  1909. "\x13\x46\x76\xfb\x6d\xe0\x44\x60"
  1910. "\x65\xc9\x74\x40\xfa\x8c\x6a\x58",
  1911. },
  1912. };
  1913. /*
  1914. * DES test vectors.
  1915. */
  1916. #define DES_ENC_TEST_VECTORS 10
  1917. #define DES_DEC_TEST_VECTORS 4
  1918. #define DES_CBC_ENC_TEST_VECTORS 5
  1919. #define DES_CBC_DEC_TEST_VECTORS 4
  1920. #define DES3_EDE_ENC_TEST_VECTORS 3
  1921. #define DES3_EDE_DEC_TEST_VECTORS 3
  1922. #define DES3_EDE_CBC_ENC_TEST_VECTORS 1
  1923. #define DES3_EDE_CBC_DEC_TEST_VECTORS 1
  1924. static struct cipher_testvec des_enc_tv_template[] = {
  1925. { /* From Applied Cryptography */
  1926. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1927. .klen = 8,
  1928. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  1929. .ilen = 8,
  1930. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  1931. .rlen = 8,
  1932. }, { /* Same key, different plaintext block */
  1933. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1934. .klen = 8,
  1935. .input = "\x22\x33\x44\x55\x66\x77\x88\x99",
  1936. .ilen = 8,
  1937. .result = "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  1938. .rlen = 8,
  1939. }, { /* Sbox test from NBS */
  1940. .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
  1941. .klen = 8,
  1942. .input = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
  1943. .ilen = 8,
  1944. .result = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  1945. .rlen = 8,
  1946. }, { /* Three blocks */
  1947. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1948. .klen = 8,
  1949. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1950. "\x22\x33\x44\x55\x66\x77\x88\x99"
  1951. "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
  1952. .ilen = 24,
  1953. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1954. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
  1955. "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
  1956. .rlen = 24,
  1957. }, { /* Weak key */
  1958. .fail = 1,
  1959. .wk = 1,
  1960. .key = "\x01\x01\x01\x01\x01\x01\x01\x01",
  1961. .klen = 8,
  1962. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  1963. .ilen = 8,
  1964. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  1965. .rlen = 8,
  1966. }, { /* Two blocks -- for testing encryption across pages */
  1967. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1968. .klen = 8,
  1969. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1970. "\x22\x33\x44\x55\x66\x77\x88\x99",
  1971. .ilen = 16,
  1972. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1973. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  1974. .rlen = 16,
  1975. .np = 2,
  1976. .tap = { 8, 8 }
  1977. }, { /* Four blocks -- for testing encryption with chunking */
  1978. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1979. .klen = 8,
  1980. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1981. "\x22\x33\x44\x55\x66\x77\x88\x99"
  1982. "\xca\xfe\xba\xbe\xfe\xed\xbe\xef"
  1983. "\x22\x33\x44\x55\x66\x77\x88\x99",
  1984. .ilen = 32,
  1985. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1986. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
  1987. "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90"
  1988. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  1989. .rlen = 32,
  1990. .np = 3,
  1991. .tap = { 14, 10, 8 }
  1992. }, {
  1993. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1994. .klen = 8,
  1995. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1996. "\x22\x33\x44\x55\x66\x77\x88\x99"
  1997. "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
  1998. .ilen = 24,
  1999. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  2000. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
  2001. "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
  2002. .rlen = 24,
  2003. .np = 4,
  2004. .tap = { 2, 1, 3, 18 }
  2005. }, {
  2006. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2007. .klen = 8,
  2008. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  2009. "\x22\x33\x44\x55\x66\x77\x88\x99",
  2010. .ilen = 16,
  2011. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  2012. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  2013. .rlen = 16,
  2014. .np = 5,
  2015. .tap = { 2, 2, 2, 2, 8 }
  2016. }, {
  2017. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2018. .klen = 8,
  2019. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  2020. .ilen = 8,
  2021. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  2022. .rlen = 8,
  2023. .np = 8,
  2024. .tap = { 1, 1, 1, 1, 1, 1, 1, 1 }
  2025. },
  2026. };
  2027. static struct cipher_testvec des_dec_tv_template[] = {
  2028. { /* From Applied Cryptography */
  2029. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2030. .klen = 8,
  2031. .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  2032. .ilen = 8,
  2033. .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  2034. .rlen = 8,
  2035. }, { /* Sbox test from NBS */
  2036. .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
  2037. .klen = 8,
  2038. .input = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  2039. .ilen = 8,
  2040. .result = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
  2041. .rlen = 8,
  2042. }, { /* Two blocks, for chunking test */
  2043. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2044. .klen = 8,
  2045. .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  2046. "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  2047. .ilen = 16,
  2048. .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  2049. "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
  2050. .rlen = 16,
  2051. .np = 2,
  2052. .tap = { 8, 8 }
  2053. }, {
  2054. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2055. .klen = 8,
  2056. .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  2057. "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  2058. .ilen = 16,
  2059. .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  2060. "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
  2061. .rlen = 16,
  2062. .np = 3,
  2063. .tap = { 3, 12, 1 }
  2064. },
  2065. };
  2066. static struct cipher_testvec des_cbc_enc_tv_template[] = {
  2067. { /* From OpenSSL */
  2068. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2069. .klen = 8,
  2070. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2071. .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
  2072. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  2073. "\x68\x65\x20\x74\x69\x6d\x65\x20",
  2074. .ilen = 24,
  2075. .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
  2076. "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
  2077. "\x46\x8e\x91\x15\x78\x88\xba\x68",
  2078. .rlen = 24,
  2079. }, { /* FIPS Pub 81 */
  2080. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2081. .klen = 8,
  2082. .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
  2083. .input = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
  2084. .ilen = 8,
  2085. .result = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  2086. .rlen = 8,
  2087. }, {
  2088. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2089. .klen = 8,
  2090. .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  2091. .input = "\x68\x65\x20\x74\x69\x6d\x65\x20",
  2092. .ilen = 8,
  2093. .result = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  2094. .rlen = 8,
  2095. }, {
  2096. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2097. .klen = 8,
  2098. .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  2099. .input = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
  2100. .ilen = 8,
  2101. .result = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
  2102. .rlen = 8,
  2103. }, { /* Copy of openssl vector for chunk testing */
  2104. /* From OpenSSL */
  2105. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2106. .klen = 8,
  2107. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2108. .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
  2109. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  2110. "\x68\x65\x20\x74\x69\x6d\x65\x20",
  2111. .ilen = 24,
  2112. .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
  2113. "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
  2114. "\x46\x8e\x91\x15\x78\x88\xba\x68",
  2115. .rlen = 24,
  2116. .np = 2,
  2117. .tap = { 13, 11 }
  2118. },
  2119. };
  2120. static struct cipher_testvec des_cbc_dec_tv_template[] = {
  2121. { /* FIPS Pub 81 */
  2122. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2123. .klen = 8,
  2124. .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
  2125. .input = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  2126. .ilen = 8,
  2127. .result = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
  2128. .rlen = 8,
  2129. }, {
  2130. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2131. .klen = 8,
  2132. .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  2133. .input = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  2134. .ilen = 8,
  2135. .result = "\x68\x65\x20\x74\x69\x6d\x65\x20",
  2136. .rlen = 8,
  2137. }, {
  2138. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2139. .klen = 8,
  2140. .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  2141. .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
  2142. .ilen = 8,
  2143. .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
  2144. .rlen = 8,
  2145. }, { /* Copy of above, for chunk testing */
  2146. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2147. .klen = 8,
  2148. .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  2149. .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
  2150. .ilen = 8,
  2151. .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
  2152. .rlen = 8,
  2153. .np = 2,
  2154. .tap = { 4, 4 }
  2155. },
  2156. };
  2157. static struct cipher_testvec des3_ede_enc_tv_template[] = {
  2158. { /* These are from openssl */
  2159. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2160. "\x55\x55\x55\x55\x55\x55\x55\x55"
  2161. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2162. .klen = 24,
  2163. .input = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
  2164. .ilen = 8,
  2165. .result = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
  2166. .rlen = 8,
  2167. }, {
  2168. .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
  2169. "\x86\x02\x87\x66\x59\x08\x21\x98"
  2170. "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
  2171. .klen = 24,
  2172. .input = "\x73\x71\x75\x69\x67\x67\x6c\x65",
  2173. .ilen = 8,
  2174. .result = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
  2175. .rlen = 8,
  2176. }, {
  2177. .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
  2178. "\x91\x07\xd0\x15\x89\x19\x01\x01"
  2179. "\x19\x07\x92\x10\x98\x1a\x01\x01",
  2180. .klen = 24,
  2181. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2182. .ilen = 8,
  2183. .result = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
  2184. .rlen = 8,
  2185. },
  2186. };
  2187. static struct cipher_testvec des3_ede_dec_tv_template[] = {
  2188. { /* These are from openssl */
  2189. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2190. "\x55\x55\x55\x55\x55\x55\x55\x55"
  2191. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2192. .klen = 24,
  2193. .input = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
  2194. .ilen = 8,
  2195. .result = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
  2196. .rlen = 8,
  2197. }, {
  2198. .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
  2199. "\x86\x02\x87\x66\x59\x08\x21\x98"
  2200. "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
  2201. .klen = 24,
  2202. .input = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
  2203. .ilen = 8,
  2204. .result = "\x73\x71\x75\x69\x67\x67\x6c\x65",
  2205. .rlen = 8,
  2206. }, {
  2207. .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
  2208. "\x91\x07\xd0\x15\x89\x19\x01\x01"
  2209. "\x19\x07\x92\x10\x98\x1a\x01\x01",
  2210. .klen = 24,
  2211. .input = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
  2212. .ilen = 8,
  2213. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2214. .rlen = 8,
  2215. },
  2216. };
  2217. static struct cipher_testvec des3_ede_cbc_enc_tv_template[] = {
  2218. { /* Generated from openssl */
  2219. .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
  2220. "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
  2221. "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
  2222. .klen = 24,
  2223. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  2224. .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  2225. "\x53\x20\x63\x65\x65\x72\x73\x74"
  2226. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  2227. "\x20\x79\x65\x53\x72\x63\x74\x65"
  2228. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  2229. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  2230. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  2231. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  2232. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  2233. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  2234. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  2235. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  2236. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  2237. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  2238. "\x63\x65\x65\x72\x73\x74\x54\x20"
  2239. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  2240. .ilen = 128,
  2241. .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
  2242. "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
  2243. "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
  2244. "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
  2245. "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
  2246. "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
  2247. "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
  2248. "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
  2249. "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
  2250. "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
  2251. "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
  2252. "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
  2253. "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
  2254. "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
  2255. "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
  2256. "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
  2257. .rlen = 128,
  2258. },
  2259. };
  2260. static struct cipher_testvec des3_ede_cbc_dec_tv_template[] = {
  2261. { /* Generated from openssl */
  2262. .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
  2263. "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
  2264. "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
  2265. .klen = 24,
  2266. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  2267. .input = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
  2268. "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
  2269. "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
  2270. "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
  2271. "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
  2272. "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
  2273. "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
  2274. "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
  2275. "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
  2276. "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
  2277. "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
  2278. "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
  2279. "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
  2280. "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
  2281. "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
  2282. "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
  2283. .ilen = 128,
  2284. .result = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  2285. "\x53\x20\x63\x65\x65\x72\x73\x74"
  2286. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  2287. "\x20\x79\x65\x53\x72\x63\x74\x65"
  2288. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  2289. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  2290. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  2291. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  2292. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  2293. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  2294. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  2295. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  2296. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  2297. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  2298. "\x63\x65\x65\x72\x73\x74\x54\x20"
  2299. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  2300. .rlen = 128,
  2301. },
  2302. };
  2303. /*
  2304. * Blowfish test vectors.
  2305. */
  2306. #define BF_ENC_TEST_VECTORS 7
  2307. #define BF_DEC_TEST_VECTORS 7
  2308. #define BF_CBC_ENC_TEST_VECTORS 2
  2309. #define BF_CBC_DEC_TEST_VECTORS 2
  2310. #define BF_CTR_ENC_TEST_VECTORS 2
  2311. #define BF_CTR_DEC_TEST_VECTORS 2
  2312. static struct cipher_testvec bf_enc_tv_template[] = {
  2313. { /* DES test vectors from OpenSSL */
  2314. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2315. .klen = 8,
  2316. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2317. .ilen = 8,
  2318. .result = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
  2319. .rlen = 8,
  2320. }, {
  2321. .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
  2322. .klen = 8,
  2323. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2324. .ilen = 8,
  2325. .result = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
  2326. .rlen = 8,
  2327. }, {
  2328. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  2329. .klen = 8,
  2330. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2331. .ilen = 8,
  2332. .result = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
  2333. .rlen = 8,
  2334. }, { /* Vary the keylength... */
  2335. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2336. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
  2337. .klen = 16,
  2338. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2339. .ilen = 8,
  2340. .result = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
  2341. .rlen = 8,
  2342. }, {
  2343. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2344. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  2345. "\x00\x11\x22\x33\x44",
  2346. .klen = 21,
  2347. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2348. .ilen = 8,
  2349. .result = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
  2350. .rlen = 8,
  2351. }, { /* Generated with bf488 */
  2352. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2353. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  2354. "\x00\x11\x22\x33\x44\x55\x66\x77"
  2355. "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
  2356. "\x58\x40\x23\x64\x1a\xba\x61\x76"
  2357. "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
  2358. "\xff\xff\xff\xff\xff\xff\xff\xff",
  2359. .klen = 56,
  2360. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2361. .ilen = 8,
  2362. .result = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
  2363. .rlen = 8,
  2364. }, { /* Generated with Crypto++ */
  2365. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  2366. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  2367. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  2368. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  2369. .klen = 32,
  2370. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  2371. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  2372. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  2373. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  2374. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9",
  2375. .ilen = 40,
  2376. .result = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F"
  2377. "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D"
  2378. "\xD7\x87\xA1\xF2\xDF\x51\x71\x26"
  2379. "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40"
  2380. "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B",
  2381. .rlen = 40,
  2382. },
  2383. };
  2384. static struct cipher_testvec bf_dec_tv_template[] = {
  2385. { /* DES test vectors from OpenSSL */
  2386. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2387. .klen = 8,
  2388. .input = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
  2389. .ilen = 8,
  2390. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2391. .rlen = 8,
  2392. }, {
  2393. .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
  2394. .klen = 8,
  2395. .input = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
  2396. .ilen = 8,
  2397. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2398. .rlen = 8,
  2399. }, {
  2400. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  2401. .klen = 8,
  2402. .input = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
  2403. .ilen = 8,
  2404. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2405. .rlen = 8,
  2406. }, { /* Vary the keylength... */
  2407. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2408. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
  2409. .klen = 16,
  2410. .input = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
  2411. .ilen = 8,
  2412. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2413. .rlen = 8,
  2414. }, {
  2415. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2416. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  2417. "\x00\x11\x22\x33\x44",
  2418. .klen = 21,
  2419. .input = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
  2420. .ilen = 8,
  2421. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2422. .rlen = 8,
  2423. }, { /* Generated with bf488, using OpenSSL, Libgcrypt and Nettle */
  2424. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2425. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  2426. "\x00\x11\x22\x33\x44\x55\x66\x77"
  2427. "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
  2428. "\x58\x40\x23\x64\x1a\xba\x61\x76"
  2429. "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
  2430. "\xff\xff\xff\xff\xff\xff\xff\xff",
  2431. .klen = 56,
  2432. .input = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
  2433. .ilen = 8,
  2434. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2435. .rlen = 8,
  2436. }, { /* Generated with Crypto++ */
  2437. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  2438. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  2439. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  2440. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  2441. .klen = 32,
  2442. .input = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F"
  2443. "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D"
  2444. "\xD7\x87\xA1\xF2\xDF\x51\x71\x26"
  2445. "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40"
  2446. "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B",
  2447. .ilen = 40,
  2448. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  2449. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  2450. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  2451. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  2452. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9",
  2453. .rlen = 40,
  2454. },
  2455. };
  2456. static struct cipher_testvec bf_cbc_enc_tv_template[] = {
  2457. { /* From OpenSSL */
  2458. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2459. "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  2460. .klen = 16,
  2461. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2462. .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
  2463. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  2464. "\x68\x65\x20\x74\x69\x6d\x65\x20"
  2465. "\x66\x6f\x72\x20\x00\x00\x00\x00",
  2466. .ilen = 32,
  2467. .result = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
  2468. "\x05\xb1\x56\xe2\x74\x03\x97\x93"
  2469. "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
  2470. "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
  2471. .rlen = 32,
  2472. }, { /* Generated with Crypto++ */
  2473. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  2474. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  2475. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  2476. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  2477. .klen = 32,
  2478. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  2479. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  2480. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  2481. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  2482. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  2483. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9",
  2484. .ilen = 40,
  2485. .result = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06"
  2486. "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62"
  2487. "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E"
  2488. "\x1B\xD9\x02\xB6\x48\xB0\x87\x25"
  2489. "\x01\x9C\x93\x63\x51\x60\x82\xD2",
  2490. .rlen = 40,
  2491. },
  2492. };
  2493. static struct cipher_testvec bf_cbc_dec_tv_template[] = {
  2494. { /* From OpenSSL */
  2495. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2496. "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  2497. .klen = 16,
  2498. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2499. .input = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
  2500. "\x05\xb1\x56\xe2\x74\x03\x97\x93"
  2501. "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
  2502. "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
  2503. .ilen = 32,
  2504. .result = "\x37\x36\x35\x34\x33\x32\x31\x20"
  2505. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  2506. "\x68\x65\x20\x74\x69\x6d\x65\x20"
  2507. "\x66\x6f\x72\x20\x00\x00\x00\x00",
  2508. .rlen = 32,
  2509. }, { /* Generated with Crypto++ */
  2510. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  2511. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  2512. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  2513. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  2514. .klen = 32,
  2515. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  2516. .input = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06"
  2517. "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62"
  2518. "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E"
  2519. "\x1B\xD9\x02\xB6\x48\xB0\x87\x25"
  2520. "\x01\x9C\x93\x63\x51\x60\x82\xD2",
  2521. .ilen = 40,
  2522. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  2523. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  2524. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  2525. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  2526. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9",
  2527. .rlen = 40,
  2528. },
  2529. };
  2530. static struct cipher_testvec bf_ctr_enc_tv_template[] = {
  2531. { /* Generated with Crypto++ */
  2532. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  2533. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  2534. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  2535. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  2536. .klen = 32,
  2537. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  2538. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  2539. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  2540. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  2541. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  2542. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9",
  2543. .ilen = 40,
  2544. .result = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
  2545. "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
  2546. "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
  2547. "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
  2548. "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC",
  2549. .rlen = 40,
  2550. }, { /* Generated with Crypto++ */
  2551. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  2552. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  2553. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  2554. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  2555. .klen = 32,
  2556. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  2557. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  2558. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  2559. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  2560. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  2561. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  2562. "\x6D\x04\x9B",
  2563. .ilen = 43,
  2564. .result = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
  2565. "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
  2566. "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
  2567. "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
  2568. "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
  2569. "\x3D\xA7\xE9",
  2570. .rlen = 43,
  2571. },
  2572. };
  2573. static struct cipher_testvec bf_ctr_dec_tv_template[] = {
  2574. { /* Generated with Crypto++ */
  2575. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  2576. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  2577. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  2578. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  2579. .klen = 32,
  2580. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  2581. .input = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
  2582. "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
  2583. "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
  2584. "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
  2585. "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC",
  2586. .ilen = 40,
  2587. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  2588. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  2589. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  2590. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  2591. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9",
  2592. .rlen = 40,
  2593. }, { /* Generated with Crypto++ */
  2594. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  2595. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  2596. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  2597. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  2598. .klen = 32,
  2599. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  2600. .input = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
  2601. "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
  2602. "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
  2603. "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
  2604. "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
  2605. "\x3D\xA7\xE9",
  2606. .ilen = 43,
  2607. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  2608. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  2609. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  2610. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  2611. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  2612. "\x6D\x04\x9B",
  2613. .rlen = 43,
  2614. },
  2615. };
  2616. /*
  2617. * Twofish test vectors.
  2618. */
  2619. #define TF_ENC_TEST_VECTORS 4
  2620. #define TF_DEC_TEST_VECTORS 4
  2621. #define TF_CBC_ENC_TEST_VECTORS 5
  2622. #define TF_CBC_DEC_TEST_VECTORS 5
  2623. #define TF_CTR_ENC_TEST_VECTORS 2
  2624. #define TF_CTR_DEC_TEST_VECTORS 2
  2625. #define TF_LRW_ENC_TEST_VECTORS 8
  2626. #define TF_LRW_DEC_TEST_VECTORS 8
  2627. #define TF_XTS_ENC_TEST_VECTORS 5
  2628. #define TF_XTS_DEC_TEST_VECTORS 5
  2629. static struct cipher_testvec tf_enc_tv_template[] = {
  2630. {
  2631. .key = zeroed_string,
  2632. .klen = 16,
  2633. .input = zeroed_string,
  2634. .ilen = 16,
  2635. .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2636. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2637. .rlen = 16,
  2638. }, {
  2639. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2640. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  2641. "\x00\x11\x22\x33\x44\x55\x66\x77",
  2642. .klen = 24,
  2643. .input = zeroed_string,
  2644. .ilen = 16,
  2645. .result = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
  2646. "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
  2647. .rlen = 16,
  2648. }, {
  2649. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2650. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  2651. "\x00\x11\x22\x33\x44\x55\x66\x77"
  2652. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2653. .klen = 32,
  2654. .input = zeroed_string,
  2655. .ilen = 16,
  2656. .result = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
  2657. "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
  2658. .rlen = 16,
  2659. }, { /* Generated with Crypto++ */
  2660. .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
  2661. "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
  2662. "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
  2663. "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
  2664. .klen = 32,
  2665. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  2666. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  2667. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  2668. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  2669. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  2670. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  2671. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  2672. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  2673. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  2674. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  2675. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  2676. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  2677. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  2678. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  2679. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  2680. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  2681. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  2682. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  2683. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  2684. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  2685. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  2686. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  2687. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  2688. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  2689. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  2690. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  2691. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  2692. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  2693. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  2694. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  2695. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  2696. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  2697. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  2698. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  2699. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  2700. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  2701. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  2702. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  2703. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  2704. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  2705. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  2706. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  2707. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  2708. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  2709. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  2710. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  2711. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  2712. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  2713. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  2714. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  2715. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  2716. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  2717. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  2718. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  2719. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  2720. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  2721. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  2722. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  2723. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  2724. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  2725. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  2726. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  2727. .ilen = 496,
  2728. .result = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF"
  2729. "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC"
  2730. "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D"
  2731. "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14"
  2732. "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5"
  2733. "\xDF\xFA\xC7\xE8\x09\x50\x76\x08"
  2734. "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05"
  2735. "\x89\xF6\x82\xF0\xD3\xDB\x06\x02"
  2736. "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43"
  2737. "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40"
  2738. "\x80\x27\x88\xBA\x2C\x74\x42\xE0"
  2739. "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A"
  2740. "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A"
  2741. "\x91\x75\x47\xBC\x67\x21\x4E\xF9"
  2742. "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C"
  2743. "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22"
  2744. "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C"
  2745. "\xC6\x24\x42\xB8\x23\x66\x80\xA9"
  2746. "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63"
  2747. "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3"
  2748. "\x33\x62\x70\xE2\x1B\x86\x7A\xA1"
  2749. "\x51\x4A\x16\xFE\x29\x63\x7E\xD0"
  2750. "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8"
  2751. "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66"
  2752. "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B"
  2753. "\xB6\x41\x42\x64\x43\xEE\x6E\x7C"
  2754. "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F"
  2755. "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97"
  2756. "\x66\xA3\x96\x0F\x1C\x25\x60\xF5"
  2757. "\x3C\x2E\x32\x69\x0E\x82\xFF\x27"
  2758. "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C"
  2759. "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A"
  2760. "\x1B\x42\x1F\x5B\x29\x19\x96\x13"
  2761. "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B"
  2762. "\x81\x77\x6D\xF4\xA0\x01\x42\xEC"
  2763. "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB"
  2764. "\x83\x54\xDF\x0F\x86\xB7\xEA\x40"
  2765. "\x46\x39\xF7\x2A\x89\x8D\x4E\x96"
  2766. "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D"
  2767. "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16"
  2768. "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D"
  2769. "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41"
  2770. "\xC6\xBD\x36\xEF\xED\x29\x50\x6D"
  2771. "\x10\xEF\x26\xE8\xA8\x93\x11\x3F"
  2772. "\x2D\x1F\x88\x20\x77\x45\xF5\x66"
  2773. "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81"
  2774. "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C"
  2775. "\xB2\x10\x7A\xCA\x05\x25\x59\xDB"
  2776. "\xC7\x28\xF5\x20\x35\x52\x9E\x62"
  2777. "\xF8\x88\x24\x1C\x4D\x84\x12\x39"
  2778. "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC"
  2779. "\x87\x66\xE6\xC0\x6B\x31\x9A\x66"
  2780. "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F"
  2781. "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD"
  2782. "\xA3\x63\xE2\x71\x4F\x03\x94\x87"
  2783. "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F"
  2784. "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D"
  2785. "\x84\x9B\x2A\xE9\x55\xDD\x46\x91"
  2786. "\x15\x33\xF3\x2B\x9B\x46\x97\x00"
  2787. "\xF0\x29\xD8\x59\x5D\x33\x37\xF9"
  2788. "\x58\x33\x9B\x78\xC7\x58\x48\x6B"
  2789. "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5",
  2790. .rlen = 496,
  2791. },
  2792. };
  2793. static struct cipher_testvec tf_dec_tv_template[] = {
  2794. {
  2795. .key = zeroed_string,
  2796. .klen = 16,
  2797. .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2798. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2799. .ilen = 16,
  2800. .result = zeroed_string,
  2801. .rlen = 16,
  2802. }, {
  2803. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2804. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  2805. "\x00\x11\x22\x33\x44\x55\x66\x77",
  2806. .klen = 24,
  2807. .input = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
  2808. "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
  2809. .ilen = 16,
  2810. .result = zeroed_string,
  2811. .rlen = 16,
  2812. }, {
  2813. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2814. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  2815. "\x00\x11\x22\x33\x44\x55\x66\x77"
  2816. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2817. .klen = 32,
  2818. .input = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
  2819. "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
  2820. .ilen = 16,
  2821. .result = zeroed_string,
  2822. .rlen = 16,
  2823. }, { /* Generated with Crypto++ */
  2824. .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
  2825. "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
  2826. "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
  2827. "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
  2828. .klen = 32,
  2829. .input = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF"
  2830. "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC"
  2831. "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D"
  2832. "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14"
  2833. "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5"
  2834. "\xDF\xFA\xC7\xE8\x09\x50\x76\x08"
  2835. "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05"
  2836. "\x89\xF6\x82\xF0\xD3\xDB\x06\x02"
  2837. "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43"
  2838. "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40"
  2839. "\x80\x27\x88\xBA\x2C\x74\x42\xE0"
  2840. "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A"
  2841. "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A"
  2842. "\x91\x75\x47\xBC\x67\x21\x4E\xF9"
  2843. "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C"
  2844. "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22"
  2845. "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C"
  2846. "\xC6\x24\x42\xB8\x23\x66\x80\xA9"
  2847. "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63"
  2848. "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3"
  2849. "\x33\x62\x70\xE2\x1B\x86\x7A\xA1"
  2850. "\x51\x4A\x16\xFE\x29\x63\x7E\xD0"
  2851. "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8"
  2852. "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66"
  2853. "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B"
  2854. "\xB6\x41\x42\x64\x43\xEE\x6E\x7C"
  2855. "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F"
  2856. "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97"
  2857. "\x66\xA3\x96\x0F\x1C\x25\x60\xF5"
  2858. "\x3C\x2E\x32\x69\x0E\x82\xFF\x27"
  2859. "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C"
  2860. "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A"
  2861. "\x1B\x42\x1F\x5B\x29\x19\x96\x13"
  2862. "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B"
  2863. "\x81\x77\x6D\xF4\xA0\x01\x42\xEC"
  2864. "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB"
  2865. "\x83\x54\xDF\x0F\x86\xB7\xEA\x40"
  2866. "\x46\x39\xF7\x2A\x89\x8D\x4E\x96"
  2867. "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D"
  2868. "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16"
  2869. "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D"
  2870. "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41"
  2871. "\xC6\xBD\x36\xEF\xED\x29\x50\x6D"
  2872. "\x10\xEF\x26\xE8\xA8\x93\x11\x3F"
  2873. "\x2D\x1F\x88\x20\x77\x45\xF5\x66"
  2874. "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81"
  2875. "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C"
  2876. "\xB2\x10\x7A\xCA\x05\x25\x59\xDB"
  2877. "\xC7\x28\xF5\x20\x35\x52\x9E\x62"
  2878. "\xF8\x88\x24\x1C\x4D\x84\x12\x39"
  2879. "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC"
  2880. "\x87\x66\xE6\xC0\x6B\x31\x9A\x66"
  2881. "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F"
  2882. "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD"
  2883. "\xA3\x63\xE2\x71\x4F\x03\x94\x87"
  2884. "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F"
  2885. "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D"
  2886. "\x84\x9B\x2A\xE9\x55\xDD\x46\x91"
  2887. "\x15\x33\xF3\x2B\x9B\x46\x97\x00"
  2888. "\xF0\x29\xD8\x59\x5D\x33\x37\xF9"
  2889. "\x58\x33\x9B\x78\xC7\x58\x48\x6B"
  2890. "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5",
  2891. .ilen = 496,
  2892. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  2893. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  2894. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  2895. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  2896. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  2897. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  2898. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  2899. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  2900. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  2901. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  2902. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  2903. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  2904. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  2905. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  2906. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  2907. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  2908. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  2909. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  2910. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  2911. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  2912. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  2913. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  2914. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  2915. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  2916. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  2917. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  2918. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  2919. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  2920. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  2921. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  2922. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  2923. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  2924. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  2925. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  2926. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  2927. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  2928. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  2929. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  2930. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  2931. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  2932. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  2933. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  2934. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  2935. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  2936. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  2937. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  2938. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  2939. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  2940. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  2941. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  2942. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  2943. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  2944. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  2945. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  2946. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  2947. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  2948. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  2949. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  2950. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  2951. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  2952. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  2953. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  2954. .rlen = 496,
  2955. },
  2956. };
  2957. static struct cipher_testvec tf_cbc_enc_tv_template[] = {
  2958. { /* Generated with Nettle */
  2959. .key = zeroed_string,
  2960. .klen = 16,
  2961. .iv = zeroed_string,
  2962. .input = zeroed_string,
  2963. .ilen = 16,
  2964. .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2965. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2966. .rlen = 16,
  2967. }, {
  2968. .key = zeroed_string,
  2969. .klen = 16,
  2970. .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2971. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2972. .input = zeroed_string,
  2973. .ilen = 16,
  2974. .result = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2975. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  2976. .rlen = 16,
  2977. }, {
  2978. .key = zeroed_string,
  2979. .klen = 16,
  2980. .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2981. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  2982. .input = zeroed_string,
  2983. .ilen = 16,
  2984. .result = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  2985. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  2986. .rlen = 16,
  2987. }, {
  2988. .key = zeroed_string,
  2989. .klen = 16,
  2990. .iv = zeroed_string,
  2991. .input = zeroed_string,
  2992. .ilen = 48,
  2993. .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2994. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
  2995. "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2996. "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
  2997. "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  2998. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  2999. .rlen = 48,
  3000. }, { /* Generated with Crypto++ */
  3001. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  3002. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  3003. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  3004. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  3005. .klen = 32,
  3006. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  3007. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  3008. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  3009. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  3010. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  3011. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  3012. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  3013. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  3014. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  3015. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  3016. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  3017. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  3018. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  3019. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  3020. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  3021. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  3022. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  3023. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  3024. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  3025. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  3026. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  3027. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  3028. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  3029. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  3030. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  3031. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  3032. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  3033. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  3034. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  3035. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  3036. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  3037. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  3038. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  3039. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  3040. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  3041. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  3042. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  3043. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  3044. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  3045. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  3046. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  3047. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  3048. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  3049. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  3050. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  3051. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  3052. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  3053. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  3054. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  3055. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  3056. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  3057. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  3058. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  3059. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  3060. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  3061. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  3062. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  3063. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  3064. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  3065. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  3066. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  3067. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  3068. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  3069. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  3070. .ilen = 496,
  3071. .result = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1"
  3072. "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5"
  3073. "\x26\x1B\x05\x0C\x05\x12\x3F\xC0"
  3074. "\xF9\x1C\x02\x28\x40\x96\x6F\xD0"
  3075. "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE"
  3076. "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC"
  3077. "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3"
  3078. "\xB1\xD3\x44\x65\xDF\xE7\x63\x38"
  3079. "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8"
  3080. "\x43\xFC\xFE\x18\xB5\x11\x6D\x31"
  3081. "\x81\x8B\x0D\x75\xF6\x80\xEC\x84"
  3082. "\x04\xB9\xE6\x09\x63\xED\x39\xDB"
  3083. "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD"
  3084. "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63"
  3085. "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80"
  3086. "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68"
  3087. "\x45\xDD\xC8\x83\x1D\x41\x96\x0D"
  3088. "\x91\x2E\x05\xD3\x59\x82\xE0\x43"
  3089. "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF"
  3090. "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C"
  3091. "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3"
  3092. "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC"
  3093. "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF"
  3094. "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38"
  3095. "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34"
  3096. "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60"
  3097. "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7"
  3098. "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8"
  3099. "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25"
  3100. "\x94\x70\x74\x0E\x1D\xC5\xBC\x12"
  3101. "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55"
  3102. "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3"
  3103. "\x75\x42\x62\x04\x31\x1F\x95\x7C"
  3104. "\x66\x1A\x97\xDC\x2F\x40\x5C\x39"
  3105. "\x78\xE6\x02\xDB\x49\xE1\xC6\x47"
  3106. "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93"
  3107. "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7"
  3108. "\xC2\x89\xF3\x91\x88\x83\x3D\xF0"
  3109. "\x29\xA2\xCD\xB5\x79\x16\xC2\x40"
  3110. "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4"
  3111. "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B"
  3112. "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF"
  3113. "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA"
  3114. "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C"
  3115. "\x78\xB6\xC9\xBF\xF9\x78\x57\x88"
  3116. "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8"
  3117. "\xEE\xC4\xBE\x7B\x55\x59\x00\x48"
  3118. "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C"
  3119. "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE"
  3120. "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D"
  3121. "\xBC\x68\x9C\x91\x2A\x59\x57\x04"
  3122. "\xED\x1A\x1E\x00\xB1\x85\x92\x04"
  3123. "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7"
  3124. "\x4C\x3E\xB0\xE7\x86\x62\x68\x91"
  3125. "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93"
  3126. "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64"
  3127. "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD"
  3128. "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1"
  3129. "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39"
  3130. "\x69\xA1\x62\xBD\x49\x3A\x9D\x91"
  3131. "\x30\x70\x56\xA4\x37\xDD\x7C\xC0"
  3132. "\x0A\xA3\x30\x10\x26\x25\x41\x2C",
  3133. .rlen = 496,
  3134. },
  3135. };
  3136. static struct cipher_testvec tf_cbc_dec_tv_template[] = {
  3137. { /* Reverse of the first four above */
  3138. .key = zeroed_string,
  3139. .klen = 16,
  3140. .iv = zeroed_string,
  3141. .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  3142. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  3143. .ilen = 16,
  3144. .result = zeroed_string,
  3145. .rlen = 16,
  3146. }, {
  3147. .key = zeroed_string,
  3148. .klen = 16,
  3149. .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  3150. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  3151. .input = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  3152. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  3153. .ilen = 16,
  3154. .result = zeroed_string,
  3155. .rlen = 16,
  3156. }, {
  3157. .key = zeroed_string,
  3158. .klen = 16,
  3159. .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  3160. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  3161. .input = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  3162. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  3163. .ilen = 16,
  3164. .result = zeroed_string,
  3165. .rlen = 16,
  3166. }, {
  3167. .key = zeroed_string,
  3168. .klen = 16,
  3169. .iv = zeroed_string,
  3170. .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  3171. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
  3172. "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  3173. "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
  3174. "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  3175. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  3176. .ilen = 48,
  3177. .result = zeroed_string,
  3178. .rlen = 48,
  3179. }, { /* Generated with Crypto++ */
  3180. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  3181. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  3182. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  3183. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  3184. .klen = 32,
  3185. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  3186. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  3187. .input = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1"
  3188. "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5"
  3189. "\x26\x1B\x05\x0C\x05\x12\x3F\xC0"
  3190. "\xF9\x1C\x02\x28\x40\x96\x6F\xD0"
  3191. "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE"
  3192. "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC"
  3193. "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3"
  3194. "\xB1\xD3\x44\x65\xDF\xE7\x63\x38"
  3195. "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8"
  3196. "\x43\xFC\xFE\x18\xB5\x11\x6D\x31"
  3197. "\x81\x8B\x0D\x75\xF6\x80\xEC\x84"
  3198. "\x04\xB9\xE6\x09\x63\xED\x39\xDB"
  3199. "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD"
  3200. "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63"
  3201. "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80"
  3202. "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68"
  3203. "\x45\xDD\xC8\x83\x1D\x41\x96\x0D"
  3204. "\x91\x2E\x05\xD3\x59\x82\xE0\x43"
  3205. "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF"
  3206. "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C"
  3207. "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3"
  3208. "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC"
  3209. "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF"
  3210. "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38"
  3211. "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34"
  3212. "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60"
  3213. "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7"
  3214. "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8"
  3215. "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25"
  3216. "\x94\x70\x74\x0E\x1D\xC5\xBC\x12"
  3217. "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55"
  3218. "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3"
  3219. "\x75\x42\x62\x04\x31\x1F\x95\x7C"
  3220. "\x66\x1A\x97\xDC\x2F\x40\x5C\x39"
  3221. "\x78\xE6\x02\xDB\x49\xE1\xC6\x47"
  3222. "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93"
  3223. "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7"
  3224. "\xC2\x89\xF3\x91\x88\x83\x3D\xF0"
  3225. "\x29\xA2\xCD\xB5\x79\x16\xC2\x40"
  3226. "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4"
  3227. "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B"
  3228. "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF"
  3229. "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA"
  3230. "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C"
  3231. "\x78\xB6\xC9\xBF\xF9\x78\x57\x88"
  3232. "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8"
  3233. "\xEE\xC4\xBE\x7B\x55\x59\x00\x48"
  3234. "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C"
  3235. "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE"
  3236. "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D"
  3237. "\xBC\x68\x9C\x91\x2A\x59\x57\x04"
  3238. "\xED\x1A\x1E\x00\xB1\x85\x92\x04"
  3239. "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7"
  3240. "\x4C\x3E\xB0\xE7\x86\x62\x68\x91"
  3241. "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93"
  3242. "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64"
  3243. "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD"
  3244. "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1"
  3245. "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39"
  3246. "\x69\xA1\x62\xBD\x49\x3A\x9D\x91"
  3247. "\x30\x70\x56\xA4\x37\xDD\x7C\xC0"
  3248. "\x0A\xA3\x30\x10\x26\x25\x41\x2C",
  3249. .ilen = 496,
  3250. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  3251. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  3252. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  3253. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  3254. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  3255. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  3256. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  3257. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  3258. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  3259. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  3260. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  3261. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  3262. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  3263. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  3264. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  3265. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  3266. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  3267. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  3268. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  3269. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  3270. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  3271. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  3272. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  3273. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  3274. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  3275. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  3276. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  3277. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  3278. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  3279. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  3280. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  3281. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  3282. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  3283. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  3284. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  3285. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  3286. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  3287. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  3288. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  3289. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  3290. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  3291. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  3292. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  3293. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  3294. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  3295. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  3296. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  3297. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  3298. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  3299. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  3300. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  3301. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  3302. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  3303. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  3304. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  3305. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  3306. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  3307. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  3308. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  3309. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  3310. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  3311. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  3312. .rlen = 496,
  3313. },
  3314. };
  3315. static struct cipher_testvec tf_ctr_enc_tv_template[] = {
  3316. { /* Generated with Crypto++ */
  3317. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  3318. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  3319. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  3320. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  3321. .klen = 32,
  3322. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  3323. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  3324. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  3325. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  3326. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  3327. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  3328. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  3329. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  3330. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  3331. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  3332. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  3333. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  3334. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  3335. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  3336. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  3337. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  3338. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  3339. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  3340. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  3341. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  3342. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  3343. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  3344. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  3345. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  3346. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  3347. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  3348. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  3349. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  3350. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  3351. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  3352. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  3353. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  3354. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  3355. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  3356. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  3357. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  3358. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  3359. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  3360. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  3361. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  3362. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  3363. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  3364. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  3365. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  3366. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  3367. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  3368. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  3369. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  3370. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  3371. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  3372. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  3373. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  3374. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  3375. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  3376. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  3377. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  3378. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  3379. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  3380. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  3381. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  3382. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  3383. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  3384. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  3385. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  3386. .ilen = 496,
  3387. .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
  3388. "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
  3389. "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
  3390. "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
  3391. "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
  3392. "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
  3393. "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
  3394. "\x01\x41\x21\x12\x38\xAB\x52\x4F"
  3395. "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
  3396. "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
  3397. "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
  3398. "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
  3399. "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
  3400. "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
  3401. "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
  3402. "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
  3403. "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
  3404. "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
  3405. "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
  3406. "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
  3407. "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
  3408. "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
  3409. "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
  3410. "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
  3411. "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
  3412. "\x23\x61\x48\xEA\x80\x04\x27\xAA"
  3413. "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
  3414. "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
  3415. "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
  3416. "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
  3417. "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
  3418. "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
  3419. "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
  3420. "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
  3421. "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
  3422. "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
  3423. "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
  3424. "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
  3425. "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
  3426. "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
  3427. "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
  3428. "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
  3429. "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
  3430. "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
  3431. "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
  3432. "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
  3433. "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
  3434. "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
  3435. "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
  3436. "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
  3437. "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
  3438. "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
  3439. "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
  3440. "\x11\xE9\x43\x83\x76\xAA\x53\x37"
  3441. "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
  3442. "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
  3443. "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
  3444. "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
  3445. "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
  3446. "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
  3447. "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
  3448. "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF",
  3449. .rlen = 496,
  3450. }, { /* Generated with Crypto++ */
  3451. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  3452. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  3453. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  3454. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  3455. .klen = 32,
  3456. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  3457. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  3458. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  3459. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  3460. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  3461. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  3462. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  3463. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  3464. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  3465. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  3466. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  3467. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  3468. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  3469. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  3470. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  3471. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  3472. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  3473. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  3474. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  3475. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  3476. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  3477. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  3478. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  3479. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  3480. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  3481. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  3482. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  3483. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  3484. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  3485. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  3486. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  3487. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  3488. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  3489. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  3490. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  3491. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  3492. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  3493. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  3494. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  3495. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  3496. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  3497. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  3498. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  3499. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  3500. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  3501. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  3502. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  3503. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  3504. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  3505. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  3506. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  3507. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  3508. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  3509. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  3510. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  3511. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  3512. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  3513. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  3514. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  3515. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  3516. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  3517. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  3518. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  3519. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  3520. "\x2B\xC2\x59",
  3521. .ilen = 499,
  3522. .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
  3523. "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
  3524. "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
  3525. "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
  3526. "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
  3527. "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
  3528. "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
  3529. "\x01\x41\x21\x12\x38\xAB\x52\x4F"
  3530. "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
  3531. "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
  3532. "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
  3533. "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
  3534. "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
  3535. "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
  3536. "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
  3537. "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
  3538. "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
  3539. "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
  3540. "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
  3541. "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
  3542. "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
  3543. "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
  3544. "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
  3545. "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
  3546. "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
  3547. "\x23\x61\x48\xEA\x80\x04\x27\xAA"
  3548. "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
  3549. "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
  3550. "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
  3551. "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
  3552. "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
  3553. "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
  3554. "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
  3555. "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
  3556. "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
  3557. "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
  3558. "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
  3559. "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
  3560. "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
  3561. "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
  3562. "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
  3563. "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
  3564. "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
  3565. "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
  3566. "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
  3567. "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
  3568. "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
  3569. "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
  3570. "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
  3571. "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
  3572. "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
  3573. "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
  3574. "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
  3575. "\x11\xE9\x43\x83\x76\xAA\x53\x37"
  3576. "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
  3577. "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
  3578. "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
  3579. "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
  3580. "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
  3581. "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
  3582. "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
  3583. "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF"
  3584. "\x6C\x82\x9D",
  3585. .rlen = 499,
  3586. },
  3587. };
  3588. static struct cipher_testvec tf_ctr_dec_tv_template[] = {
  3589. { /* Generated with Crypto++ */
  3590. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  3591. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  3592. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  3593. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  3594. .klen = 32,
  3595. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  3596. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  3597. .input = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
  3598. "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
  3599. "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
  3600. "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
  3601. "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
  3602. "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
  3603. "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
  3604. "\x01\x41\x21\x12\x38\xAB\x52\x4F"
  3605. "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
  3606. "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
  3607. "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
  3608. "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
  3609. "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
  3610. "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
  3611. "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
  3612. "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
  3613. "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
  3614. "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
  3615. "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
  3616. "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
  3617. "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
  3618. "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
  3619. "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
  3620. "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
  3621. "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
  3622. "\x23\x61\x48\xEA\x80\x04\x27\xAA"
  3623. "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
  3624. "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
  3625. "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
  3626. "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
  3627. "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
  3628. "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
  3629. "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
  3630. "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
  3631. "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
  3632. "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
  3633. "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
  3634. "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
  3635. "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
  3636. "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
  3637. "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
  3638. "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
  3639. "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
  3640. "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
  3641. "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
  3642. "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
  3643. "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
  3644. "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
  3645. "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
  3646. "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
  3647. "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
  3648. "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
  3649. "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
  3650. "\x11\xE9\x43\x83\x76\xAA\x53\x37"
  3651. "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
  3652. "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
  3653. "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
  3654. "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
  3655. "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
  3656. "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
  3657. "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
  3658. "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF",
  3659. .ilen = 496,
  3660. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  3661. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  3662. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  3663. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  3664. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  3665. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  3666. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  3667. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  3668. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  3669. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  3670. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  3671. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  3672. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  3673. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  3674. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  3675. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  3676. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  3677. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  3678. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  3679. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  3680. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  3681. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  3682. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  3683. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  3684. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  3685. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  3686. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  3687. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  3688. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  3689. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  3690. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  3691. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  3692. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  3693. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  3694. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  3695. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  3696. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  3697. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  3698. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  3699. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  3700. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  3701. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  3702. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  3703. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  3704. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  3705. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  3706. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  3707. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  3708. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  3709. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  3710. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  3711. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  3712. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  3713. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  3714. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  3715. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  3716. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  3717. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  3718. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  3719. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  3720. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  3721. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  3722. .rlen = 496,
  3723. }, { /* Generated with Crypto++ */
  3724. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  3725. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  3726. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  3727. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  3728. .klen = 32,
  3729. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  3730. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  3731. .input = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
  3732. "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
  3733. "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
  3734. "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
  3735. "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
  3736. "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
  3737. "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
  3738. "\x01\x41\x21\x12\x38\xAB\x52\x4F"
  3739. "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
  3740. "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
  3741. "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
  3742. "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
  3743. "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
  3744. "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
  3745. "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
  3746. "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
  3747. "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
  3748. "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
  3749. "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
  3750. "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
  3751. "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
  3752. "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
  3753. "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
  3754. "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
  3755. "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
  3756. "\x23\x61\x48\xEA\x80\x04\x27\xAA"
  3757. "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
  3758. "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
  3759. "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
  3760. "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
  3761. "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
  3762. "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
  3763. "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
  3764. "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
  3765. "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
  3766. "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
  3767. "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
  3768. "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
  3769. "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
  3770. "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
  3771. "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
  3772. "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
  3773. "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
  3774. "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
  3775. "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
  3776. "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
  3777. "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
  3778. "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
  3779. "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
  3780. "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
  3781. "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
  3782. "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
  3783. "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
  3784. "\x11\xE9\x43\x83\x76\xAA\x53\x37"
  3785. "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
  3786. "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
  3787. "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
  3788. "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
  3789. "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
  3790. "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
  3791. "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
  3792. "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF"
  3793. "\x6C\x82\x9D",
  3794. .ilen = 499,
  3795. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  3796. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  3797. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  3798. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  3799. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  3800. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  3801. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  3802. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  3803. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  3804. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  3805. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  3806. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  3807. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  3808. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  3809. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  3810. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  3811. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  3812. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  3813. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  3814. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  3815. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  3816. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  3817. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  3818. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  3819. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  3820. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  3821. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  3822. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  3823. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  3824. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  3825. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  3826. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  3827. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  3828. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  3829. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  3830. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  3831. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  3832. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  3833. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  3834. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  3835. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  3836. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  3837. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  3838. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  3839. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  3840. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  3841. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  3842. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  3843. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  3844. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  3845. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  3846. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  3847. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  3848. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  3849. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  3850. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  3851. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  3852. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  3853. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  3854. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  3855. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  3856. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  3857. "\x2B\xC2\x59",
  3858. .rlen = 499,
  3859. },
  3860. };
  3861. static struct cipher_testvec tf_lrw_enc_tv_template[] = {
  3862. /* Generated from AES-LRW test vectors */
  3863. {
  3864. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  3865. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  3866. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  3867. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  3868. .klen = 32,
  3869. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3870. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3871. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3872. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3873. .ilen = 16,
  3874. .result = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b"
  3875. "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee",
  3876. .rlen = 16,
  3877. }, {
  3878. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  3879. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  3880. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  3881. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  3882. .klen = 32,
  3883. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3884. "\x00\x00\x00\x00\x00\x00\x00\x02",
  3885. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3886. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3887. .ilen = 16,
  3888. .result = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9"
  3889. "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd",
  3890. .rlen = 16,
  3891. }, {
  3892. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  3893. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  3894. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  3895. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  3896. .klen = 32,
  3897. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3898. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3899. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3900. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3901. .ilen = 16,
  3902. .result = "\x85\xa7\x56\x67\x08\xfa\x42\xe1"
  3903. "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4",
  3904. .rlen = 16,
  3905. }, {
  3906. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  3907. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  3908. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  3909. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  3910. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  3911. .klen = 40,
  3912. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3913. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3914. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3915. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3916. .ilen = 16,
  3917. .result = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c"
  3918. "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5",
  3919. .rlen = 16,
  3920. }, {
  3921. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  3922. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  3923. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  3924. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  3925. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  3926. .klen = 40,
  3927. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3928. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3929. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3930. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3931. .ilen = 16,
  3932. .result = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a"
  3933. "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4",
  3934. .rlen = 16,
  3935. }, {
  3936. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  3937. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  3938. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  3939. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  3940. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  3941. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  3942. .klen = 48,
  3943. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3944. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3945. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3946. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3947. .ilen = 16,
  3948. .result = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58"
  3949. "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76",
  3950. .rlen = 16,
  3951. }, {
  3952. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  3953. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  3954. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  3955. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  3956. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  3957. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  3958. .klen = 48,
  3959. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3960. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3961. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3962. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3963. .ilen = 16,
  3964. .result = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75"
  3965. "\x17\x66\x5e\x0c\x14\xa1\x3d\x40",
  3966. .rlen = 16,
  3967. }, {
  3968. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  3969. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  3970. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  3971. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  3972. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  3973. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  3974. .klen = 48,
  3975. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3976. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3977. .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  3978. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  3979. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  3980. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  3981. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  3982. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  3983. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  3984. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  3985. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  3986. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  3987. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  3988. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  3989. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  3990. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  3991. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  3992. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  3993. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  3994. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  3995. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  3996. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  3997. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  3998. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  3999. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  4000. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  4001. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  4002. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  4003. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  4004. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  4005. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  4006. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  4007. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  4008. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  4009. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  4010. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  4011. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  4012. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  4013. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  4014. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  4015. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  4016. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  4017. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  4018. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  4019. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  4020. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  4021. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  4022. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  4023. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  4024. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  4025. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  4026. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  4027. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  4028. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  4029. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  4030. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  4031. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  4032. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  4033. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  4034. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  4035. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  4036. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  4037. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  4038. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  4039. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  4040. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  4041. .ilen = 512,
  4042. .result = "\x30\x38\xeb\xaf\x12\x43\x1a\x89"
  4043. "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9"
  4044. "\x08\xc3\x0d\xdd\x95\xab\x19\x96"
  4045. "\x27\x52\x41\xc3\xca\xfb\xf6\xee"
  4046. "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a"
  4047. "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45"
  4048. "\x42\xe9\x29\xc0\xb4\x07\xb4\x31"
  4049. "\x66\x77\x72\xb5\xb6\xb3\x57\x46"
  4050. "\x34\x9a\xfe\x03\xaf\x6b\x36\x07"
  4051. "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d"
  4052. "\xfb\x6d\x82\x51\xb6\x98\xd0\x71"
  4053. "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d"
  4054. "\x72\x2b\x54\x13\xe3\x6d\x79\x37"
  4055. "\xa9\x39\x2c\xdf\x21\xab\x87\xd5"
  4056. "\xee\xef\x9a\x12\x50\x39\x2e\x1b"
  4057. "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac"
  4058. "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08"
  4059. "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25"
  4060. "\x31\x9d\xef\xb1\x1d\x27\x55\x04"
  4061. "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a"
  4062. "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb"
  4063. "\x26\xbe\x4f\x27\x04\x42\xd1\x44"
  4064. "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf"
  4065. "\x1d\x28\x14\xfd\xb1\x1a\x34\x18"
  4066. "\xf5\x1e\x28\x69\x95\x6a\x5a\xba"
  4067. "\x8e\xb2\x58\x1d\x28\x17\x13\x3d"
  4068. "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8"
  4069. "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b"
  4070. "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a"
  4071. "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a"
  4072. "\x63\xa5\x99\x82\x09\x72\x8f\xc6"
  4073. "\xa4\x62\x24\x69\x8c\x2d\x26\x00"
  4074. "\x99\x83\x91\xd6\xc6\xcf\x57\x67"
  4075. "\x38\xea\xf2\xfc\x29\xe0\x73\x39"
  4076. "\xf9\x13\x94\x6d\xe2\x58\x28\x75"
  4077. "\x3e\xae\x71\x90\x07\x70\x1c\x38"
  4078. "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef"
  4079. "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22"
  4080. "\x82\x09\xe3\x18\x3f\x4f\x48\xfc"
  4081. "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b"
  4082. "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e"
  4083. "\xc3\xac\x4a\xed\xe7\x82\xef\x31"
  4084. "\x1f\x1a\x51\x1e\x29\x60\xc8\x98"
  4085. "\x93\x51\x1d\x3d\x62\x59\x83\x82"
  4086. "\x0c\xf1\xd7\x8d\xac\x33\x44\x81"
  4087. "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4"
  4088. "\xec\xdc\x24\xfd\x0e\x1a\x79\x94"
  4089. "\x34\xb0\x62\xfa\x98\x49\x26\x1f"
  4090. "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe"
  4091. "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc"
  4092. "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c"
  4093. "\xdb\xf6\x21\x80\xf7\x5a\x37\x15"
  4094. "\x0c\xe3\x36\xc8\x74\x75\x20\x91"
  4095. "\xdf\x52\x2d\x0c\xe7\x45\xff\x46"
  4096. "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6"
  4097. "\x26\xa2\x5d\x7d\x61\xbf\x10\x46"
  4098. "\x57\x8d\x05\x96\x70\x0b\xd6\x41"
  4099. "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd"
  4100. "\x5f\x92\x81\x6e\x35\x03\xd4\x72"
  4101. "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23"
  4102. "\x45\x5d\xec\x72\xc1\x52\xef\x2e"
  4103. "\x81\x00\xd3\xfe\x4c\x3c\x05\x61"
  4104. "\x80\x18\xc4\x6c\x03\xd3\xb7\xba"
  4105. "\x11\xd7\xb8\x6e\xea\xe1\x80\x30",
  4106. .rlen = 512,
  4107. },
  4108. };
  4109. static struct cipher_testvec tf_lrw_dec_tv_template[] = {
  4110. /* Generated from AES-LRW test vectors */
  4111. /* same as enc vectors with input and result reversed */
  4112. {
  4113. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  4114. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  4115. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  4116. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  4117. .klen = 32,
  4118. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  4119. "\x00\x00\x00\x00\x00\x00\x00\x01",
  4120. .input = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b"
  4121. "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee",
  4122. .ilen = 16,
  4123. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  4124. "\x38\x39\x41\x42\x43\x44\x45\x46",
  4125. .rlen = 16,
  4126. }, {
  4127. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  4128. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  4129. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  4130. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  4131. .klen = 32,
  4132. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  4133. "\x00\x00\x00\x00\x00\x00\x00\x02",
  4134. .input = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9"
  4135. "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd",
  4136. .ilen = 16,
  4137. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  4138. "\x38\x39\x41\x42\x43\x44\x45\x46",
  4139. .rlen = 16,
  4140. }, {
  4141. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  4142. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  4143. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  4144. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  4145. .klen = 32,
  4146. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  4147. "\x00\x00\x00\x02\x00\x00\x00\x00",
  4148. .input = "\x85\xa7\x56\x67\x08\xfa\x42\xe1"
  4149. "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4",
  4150. .ilen = 16,
  4151. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  4152. "\x38\x39\x41\x42\x43\x44\x45\x46",
  4153. .rlen = 16,
  4154. }, {
  4155. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  4156. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  4157. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  4158. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  4159. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  4160. .klen = 40,
  4161. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  4162. "\x00\x00\x00\x00\x00\x00\x00\x01",
  4163. .input = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c"
  4164. "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5",
  4165. .ilen = 16,
  4166. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  4167. "\x38\x39\x41\x42\x43\x44\x45\x46",
  4168. .rlen = 16,
  4169. }, {
  4170. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  4171. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  4172. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  4173. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  4174. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  4175. .klen = 40,
  4176. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  4177. "\x00\x00\x00\x02\x00\x00\x00\x00",
  4178. .input = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a"
  4179. "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4",
  4180. .ilen = 16,
  4181. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  4182. "\x38\x39\x41\x42\x43\x44\x45\x46",
  4183. .rlen = 16,
  4184. }, {
  4185. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  4186. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  4187. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  4188. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  4189. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  4190. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  4191. .klen = 48,
  4192. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  4193. "\x00\x00\x00\x00\x00\x00\x00\x01",
  4194. .input = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58"
  4195. "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76",
  4196. .ilen = 16,
  4197. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  4198. "\x38\x39\x41\x42\x43\x44\x45\x46",
  4199. .rlen = 16,
  4200. }, {
  4201. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  4202. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  4203. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  4204. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  4205. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  4206. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  4207. .klen = 48,
  4208. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  4209. "\x00\x00\x00\x02\x00\x00\x00\x00",
  4210. .input = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75"
  4211. "\x17\x66\x5e\x0c\x14\xa1\x3d\x40",
  4212. .ilen = 16,
  4213. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  4214. "\x38\x39\x41\x42\x43\x44\x45\x46",
  4215. .rlen = 16,
  4216. }, {
  4217. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  4218. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  4219. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  4220. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  4221. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  4222. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  4223. .klen = 48,
  4224. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  4225. "\x00\x00\x00\x00\x00\x00\x00\x01",
  4226. .input = "\x30\x38\xeb\xaf\x12\x43\x1a\x89"
  4227. "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9"
  4228. "\x08\xc3\x0d\xdd\x95\xab\x19\x96"
  4229. "\x27\x52\x41\xc3\xca\xfb\xf6\xee"
  4230. "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a"
  4231. "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45"
  4232. "\x42\xe9\x29\xc0\xb4\x07\xb4\x31"
  4233. "\x66\x77\x72\xb5\xb6\xb3\x57\x46"
  4234. "\x34\x9a\xfe\x03\xaf\x6b\x36\x07"
  4235. "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d"
  4236. "\xfb\x6d\x82\x51\xb6\x98\xd0\x71"
  4237. "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d"
  4238. "\x72\x2b\x54\x13\xe3\x6d\x79\x37"
  4239. "\xa9\x39\x2c\xdf\x21\xab\x87\xd5"
  4240. "\xee\xef\x9a\x12\x50\x39\x2e\x1b"
  4241. "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac"
  4242. "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08"
  4243. "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25"
  4244. "\x31\x9d\xef\xb1\x1d\x27\x55\x04"
  4245. "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a"
  4246. "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb"
  4247. "\x26\xbe\x4f\x27\x04\x42\xd1\x44"
  4248. "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf"
  4249. "\x1d\x28\x14\xfd\xb1\x1a\x34\x18"
  4250. "\xf5\x1e\x28\x69\x95\x6a\x5a\xba"
  4251. "\x8e\xb2\x58\x1d\x28\x17\x13\x3d"
  4252. "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8"
  4253. "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b"
  4254. "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a"
  4255. "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a"
  4256. "\x63\xa5\x99\x82\x09\x72\x8f\xc6"
  4257. "\xa4\x62\x24\x69\x8c\x2d\x26\x00"
  4258. "\x99\x83\x91\xd6\xc6\xcf\x57\x67"
  4259. "\x38\xea\xf2\xfc\x29\xe0\x73\x39"
  4260. "\xf9\x13\x94\x6d\xe2\x58\x28\x75"
  4261. "\x3e\xae\x71\x90\x07\x70\x1c\x38"
  4262. "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef"
  4263. "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22"
  4264. "\x82\x09\xe3\x18\x3f\x4f\x48\xfc"
  4265. "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b"
  4266. "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e"
  4267. "\xc3\xac\x4a\xed\xe7\x82\xef\x31"
  4268. "\x1f\x1a\x51\x1e\x29\x60\xc8\x98"
  4269. "\x93\x51\x1d\x3d\x62\x59\x83\x82"
  4270. "\x0c\xf1\xd7\x8d\xac\x33\x44\x81"
  4271. "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4"
  4272. "\xec\xdc\x24\xfd\x0e\x1a\x79\x94"
  4273. "\x34\xb0\x62\xfa\x98\x49\x26\x1f"
  4274. "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe"
  4275. "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc"
  4276. "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c"
  4277. "\xdb\xf6\x21\x80\xf7\x5a\x37\x15"
  4278. "\x0c\xe3\x36\xc8\x74\x75\x20\x91"
  4279. "\xdf\x52\x2d\x0c\xe7\x45\xff\x46"
  4280. "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6"
  4281. "\x26\xa2\x5d\x7d\x61\xbf\x10\x46"
  4282. "\x57\x8d\x05\x96\x70\x0b\xd6\x41"
  4283. "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd"
  4284. "\x5f\x92\x81\x6e\x35\x03\xd4\x72"
  4285. "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23"
  4286. "\x45\x5d\xec\x72\xc1\x52\xef\x2e"
  4287. "\x81\x00\xd3\xfe\x4c\x3c\x05\x61"
  4288. "\x80\x18\xc4\x6c\x03\xd3\xb7\xba"
  4289. "\x11\xd7\xb8\x6e\xea\xe1\x80\x30",
  4290. .ilen = 512,
  4291. .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  4292. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  4293. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  4294. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  4295. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  4296. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  4297. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  4298. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  4299. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  4300. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  4301. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  4302. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  4303. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  4304. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  4305. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  4306. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  4307. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  4308. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  4309. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  4310. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  4311. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  4312. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  4313. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  4314. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  4315. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  4316. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  4317. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  4318. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  4319. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  4320. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  4321. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  4322. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  4323. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  4324. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  4325. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  4326. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  4327. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  4328. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  4329. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  4330. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  4331. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  4332. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  4333. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  4334. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  4335. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  4336. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  4337. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  4338. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  4339. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  4340. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  4341. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  4342. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  4343. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  4344. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  4345. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  4346. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  4347. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  4348. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  4349. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  4350. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  4351. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  4352. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  4353. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  4354. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  4355. .rlen = 512,
  4356. },
  4357. };
  4358. static struct cipher_testvec tf_xts_enc_tv_template[] = {
  4359. /* Generated from AES-XTS test vectors */
  4360. {
  4361. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  4362. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4363. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4364. "\x00\x00\x00\x00\x00\x00\x00\x00",
  4365. .klen = 32,
  4366. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  4367. "\x00\x00\x00\x00\x00\x00\x00\x00",
  4368. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  4369. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4370. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4371. "\x00\x00\x00\x00\x00\x00\x00\x00",
  4372. .ilen = 32,
  4373. .result = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac"
  4374. "\x30\x74\xe4\x44\x52\x77\x97\x43"
  4375. "\xa7\x60\xb2\x45\x2e\xf9\x00\x90"
  4376. "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0",
  4377. .rlen = 32,
  4378. }, {
  4379. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  4380. "\x11\x11\x11\x11\x11\x11\x11\x11"
  4381. "\x22\x22\x22\x22\x22\x22\x22\x22"
  4382. "\x22\x22\x22\x22\x22\x22\x22\x22",
  4383. .klen = 32,
  4384. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  4385. "\x00\x00\x00\x00\x00\x00\x00\x00",
  4386. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  4387. "\x44\x44\x44\x44\x44\x44\x44\x44"
  4388. "\x44\x44\x44\x44\x44\x44\x44\x44"
  4389. "\x44\x44\x44\x44\x44\x44\x44\x44",
  4390. .ilen = 32,
  4391. .result = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f"
  4392. "\x32\xd3\xbd\x36\x05\x15\x44\x2c"
  4393. "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5"
  4394. "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9",
  4395. .rlen = 32,
  4396. }, {
  4397. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  4398. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  4399. "\x22\x22\x22\x22\x22\x22\x22\x22"
  4400. "\x22\x22\x22\x22\x22\x22\x22\x22",
  4401. .klen = 32,
  4402. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  4403. "\x00\x00\x00\x00\x00\x00\x00\x00",
  4404. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  4405. "\x44\x44\x44\x44\x44\x44\x44\x44"
  4406. "\x44\x44\x44\x44\x44\x44\x44\x44"
  4407. "\x44\x44\x44\x44\x44\x44\x44\x44",
  4408. .ilen = 32,
  4409. .result = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde"
  4410. "\x40\x0c\x89\x56\xf6\x4d\xa7\x07"
  4411. "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2"
  4412. "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea",
  4413. .rlen = 32,
  4414. }, {
  4415. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  4416. "\x23\x53\x60\x28\x74\x71\x35\x26"
  4417. "\x31\x41\x59\x26\x53\x58\x97\x93"
  4418. "\x23\x84\x62\x64\x33\x83\x27\x95",
  4419. .klen = 32,
  4420. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  4421. "\x00\x00\x00\x00\x00\x00\x00\x00",
  4422. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  4423. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4424. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4425. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  4426. "\x20\x21\x22\x23\x24\x25\x26\x27"
  4427. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  4428. "\x30\x31\x32\x33\x34\x35\x36\x37"
  4429. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  4430. "\x40\x41\x42\x43\x44\x45\x46\x47"
  4431. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  4432. "\x50\x51\x52\x53\x54\x55\x56\x57"
  4433. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  4434. "\x60\x61\x62\x63\x64\x65\x66\x67"
  4435. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  4436. "\x70\x71\x72\x73\x74\x75\x76\x77"
  4437. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  4438. "\x80\x81\x82\x83\x84\x85\x86\x87"
  4439. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  4440. "\x90\x91\x92\x93\x94\x95\x96\x97"
  4441. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  4442. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  4443. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  4444. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  4445. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  4446. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  4447. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  4448. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  4449. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  4450. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  4451. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  4452. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4453. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  4454. "\x00\x01\x02\x03\x04\x05\x06\x07"
  4455. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4456. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4457. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  4458. "\x20\x21\x22\x23\x24\x25\x26\x27"
  4459. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  4460. "\x30\x31\x32\x33\x34\x35\x36\x37"
  4461. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  4462. "\x40\x41\x42\x43\x44\x45\x46\x47"
  4463. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  4464. "\x50\x51\x52\x53\x54\x55\x56\x57"
  4465. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  4466. "\x60\x61\x62\x63\x64\x65\x66\x67"
  4467. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  4468. "\x70\x71\x72\x73\x74\x75\x76\x77"
  4469. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  4470. "\x80\x81\x82\x83\x84\x85\x86\x87"
  4471. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  4472. "\x90\x91\x92\x93\x94\x95\x96\x97"
  4473. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  4474. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  4475. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  4476. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  4477. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  4478. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  4479. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  4480. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  4481. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  4482. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  4483. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  4484. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4485. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  4486. .ilen = 512,
  4487. .result = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c"
  4488. "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0"
  4489. "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58"
  4490. "\xb8\x2d\xb9\x5d\x58\x07\x66\x50"
  4491. "\xea\x35\x35\x8c\xb2\x46\x61\x06"
  4492. "\x5d\x65\xfc\x57\x8f\x69\x74\xab"
  4493. "\x8a\x06\x69\xb5\x6c\xda\x66\xc7"
  4494. "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2"
  4495. "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3"
  4496. "\x32\x36\x7c\x97\x6b\x4e\x8a\x50"
  4497. "\xe4\x91\x83\x96\x8f\xf4\x94\x1a"
  4498. "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f"
  4499. "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e"
  4500. "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53"
  4501. "\x01\x73\x68\x32\x25\x19\xfa\xfb"
  4502. "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31"
  4503. "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6"
  4504. "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11"
  4505. "\x39\x80\x39\x09\x97\x65\xf2\x83"
  4506. "\xae\xe6\xa1\x6f\x47\xb8\x49\xde"
  4507. "\x99\x36\x20\x7d\x97\x3b\xec\xfa"
  4508. "\xb4\x33\x6e\x7a\xc7\x46\x84\x49"
  4509. "\x91\xcd\xe1\x57\x0d\xed\x40\x08"
  4510. "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6"
  4511. "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47"
  4512. "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a"
  4513. "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12"
  4514. "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3"
  4515. "\xca\x1c\xa3\x8e\xed\x39\x28\xb5"
  4516. "\x10\x1b\x4b\x08\x42\x00\x4a\xd3"
  4517. "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4"
  4518. "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d"
  4519. "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20"
  4520. "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24"
  4521. "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47"
  4522. "\x24\x65\x63\x7e\xbd\x8c\xe6\x52"
  4523. "\x7d\xef\x33\x53\x63\xec\xaa\x0b"
  4524. "\x64\x15\xa9\xa6\x1f\x10\x00\x38"
  4525. "\x35\xa8\xe7\xbe\x23\x70\x22\xe0"
  4526. "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50"
  4527. "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c"
  4528. "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71"
  4529. "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e"
  4530. "\x7a\x74\x85\xa9\x6a\x90\xab\x2c"
  4531. "\x38\x51\xbc\x1f\x43\x4a\x56\x1c"
  4532. "\xf8\x47\x03\x4e\x67\xa8\x1f\x99"
  4533. "\x04\x39\x73\x32\xb2\x86\x79\xe7"
  4534. "\x14\x28\x70\xb8\xe2\x7d\x69\x85"
  4535. "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6"
  4536. "\x09\x0f\x75\xf7\xb6\x81\xd2\x11"
  4537. "\x20\x9c\xa1\xee\x11\x44\x79\xd0"
  4538. "\xb2\x34\x77\xda\x10\x9a\x6f\x6f"
  4539. "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd"
  4540. "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac"
  4541. "\xfe\x2f\x85\x00\x44\xdf\x33\x16"
  4542. "\x35\xb6\xa3\xd3\x70\xdf\x69\x35"
  4543. "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e"
  4544. "\x5a\x14\x30\xd0\x55\x3e\x4f\x64"
  4545. "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26"
  4546. "\x75\xae\xf6\xb5\x23\x0b\x17\x31"
  4547. "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f"
  4548. "\x43\xc4\x46\x24\x22\x4f\x8f\x7e"
  4549. "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb"
  4550. "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a",
  4551. .rlen = 512,
  4552. }, {
  4553. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  4554. "\x23\x53\x60\x28\x74\x71\x35\x26"
  4555. "\x62\x49\x77\x57\x24\x70\x93\x69"
  4556. "\x99\x59\x57\x49\x66\x96\x76\x27"
  4557. "\x31\x41\x59\x26\x53\x58\x97\x93"
  4558. "\x23\x84\x62\x64\x33\x83\x27\x95"
  4559. "\x02\x88\x41\x97\x16\x93\x99\x37"
  4560. "\x51\x05\x82\x09\x74\x94\x45\x92",
  4561. .klen = 64,
  4562. .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
  4563. "\x00\x00\x00\x00\x00\x00\x00\x00",
  4564. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  4565. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4566. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4567. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  4568. "\x20\x21\x22\x23\x24\x25\x26\x27"
  4569. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  4570. "\x30\x31\x32\x33\x34\x35\x36\x37"
  4571. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  4572. "\x40\x41\x42\x43\x44\x45\x46\x47"
  4573. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  4574. "\x50\x51\x52\x53\x54\x55\x56\x57"
  4575. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  4576. "\x60\x61\x62\x63\x64\x65\x66\x67"
  4577. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  4578. "\x70\x71\x72\x73\x74\x75\x76\x77"
  4579. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  4580. "\x80\x81\x82\x83\x84\x85\x86\x87"
  4581. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  4582. "\x90\x91\x92\x93\x94\x95\x96\x97"
  4583. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  4584. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  4585. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  4586. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  4587. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  4588. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  4589. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  4590. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  4591. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  4592. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  4593. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  4594. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4595. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  4596. "\x00\x01\x02\x03\x04\x05\x06\x07"
  4597. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4598. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4599. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  4600. "\x20\x21\x22\x23\x24\x25\x26\x27"
  4601. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  4602. "\x30\x31\x32\x33\x34\x35\x36\x37"
  4603. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  4604. "\x40\x41\x42\x43\x44\x45\x46\x47"
  4605. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  4606. "\x50\x51\x52\x53\x54\x55\x56\x57"
  4607. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  4608. "\x60\x61\x62\x63\x64\x65\x66\x67"
  4609. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  4610. "\x70\x71\x72\x73\x74\x75\x76\x77"
  4611. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  4612. "\x80\x81\x82\x83\x84\x85\x86\x87"
  4613. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  4614. "\x90\x91\x92\x93\x94\x95\x96\x97"
  4615. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  4616. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  4617. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  4618. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  4619. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  4620. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  4621. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  4622. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  4623. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  4624. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  4625. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  4626. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4627. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  4628. .ilen = 512,
  4629. .result = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1"
  4630. "\x35\x39\x71\x88\x76\x1e\xc9\xea"
  4631. "\x86\xad\xf3\x14\x48\x3d\x5e\xe9"
  4632. "\xe9\x2d\xb2\x56\x59\x35\x9d\xec"
  4633. "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f"
  4634. "\xce\xf4\xa9\x21\x0b\x5f\x96\xec"
  4635. "\xcb\xf9\x57\x68\x33\x88\x39\xbf"
  4636. "\x2f\xbb\x59\x03\xbd\x66\x8b\x11"
  4637. "\x11\x65\x51\x2e\xb8\x67\x05\xd1"
  4638. "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3"
  4639. "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5"
  4640. "\x85\xdc\x46\xe6\xf0\x24\xeb\x93"
  4641. "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03"
  4642. "\x22\xc8\x3a\x4f\xb4\x19\x91\x09"
  4643. "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53"
  4644. "\x72\x60\x79\xcb\x0e\x32\x8a\x77"
  4645. "\xd5\xed\xdb\x33\xd7\x62\x16\x69"
  4646. "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d"
  4647. "\x69\x35\x61\x86\xf8\x86\xb9\x89"
  4648. "\x6e\x59\x35\xac\xf6\x6b\x33\xa0"
  4649. "\xea\xef\x96\x62\xd8\xa9\xcf\x56"
  4650. "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73"
  4651. "\x3d\x94\x4a\x49\x42\x6d\x08\x60"
  4652. "\xa1\xea\xab\xb6\x88\x13\x94\xb8"
  4653. "\x51\x98\xdb\x35\x85\xdf\xf6\xb9"
  4654. "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72"
  4655. "\xb8\xb2\x6c\x02\x43\x35\x22\x2a"
  4656. "\x31\xed\xcd\x16\x19\xdf\x62\x0f"
  4657. "\x29\xcf\x87\x04\xec\x02\x4f\xe4"
  4658. "\xa2\xed\x73\xc6\x69\xd3\x7e\x89"
  4659. "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25"
  4660. "\xed\xcc\x60\x5d\x61\x20\xc1\x97"
  4661. "\x56\x91\x57\x28\xbe\x71\x0d\xcd"
  4662. "\xde\xc4\x9e\x55\x91\xbe\xd1\x28"
  4663. "\x9b\x90\xeb\x73\xf3\x68\x51\xc6"
  4664. "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27"
  4665. "\xc0\x60\x5e\x33\xd6\xa7\x20\xea"
  4666. "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47"
  4667. "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42"
  4668. "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0"
  4669. "\xad\x12\x32\x31\x03\xf7\x21\xbe"
  4670. "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd"
  4671. "\xd8\x81\x77\xa9\x49\x98\x6c\x09"
  4672. "\xc5\xa3\x61\x12\x62\x85\x6b\xcd"
  4673. "\xb3\xf4\x20\x0c\x41\xc4\x05\x37"
  4674. "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e"
  4675. "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb"
  4676. "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8"
  4677. "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0"
  4678. "\x93\x4a\x2f\xda\x7b\xe0\x20\x54"
  4679. "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75"
  4680. "\xb9\x07\x67\xcc\xc8\xe7\x21\x15"
  4681. "\xa7\xc8\x98\xff\x4b\x80\x1c\x12"
  4682. "\xa8\x54\xe1\x38\x52\xe6\x74\x81"
  4683. "\x97\x47\xa1\x41\x0e\xc0\x50\xe3"
  4684. "\x55\x0e\xc3\xa7\x70\x77\xce\x07"
  4685. "\xed\x8c\x88\xe6\xa1\x5b\x14\xec"
  4686. "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa"
  4687. "\xe5\x2f\x5a\xff\xc8\x05\xee\x27"
  4688. "\x35\x61\xbf\x0b\x19\x78\x9b\xd2"
  4689. "\x04\xc7\x05\xb1\x79\xb4\xff\x5f"
  4690. "\xf3\xea\x67\x52\x78\xc2\xce\x70"
  4691. "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97"
  4692. "\x37\x30\xe1\x91\x8d\xb3\x2a\xff",
  4693. .rlen = 512,
  4694. },
  4695. };
  4696. static struct cipher_testvec tf_xts_dec_tv_template[] = {
  4697. /* Generated from AES-XTS test vectors */
  4698. /* same as enc vectors with input and result reversed */
  4699. {
  4700. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  4701. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4702. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4703. "\x00\x00\x00\x00\x00\x00\x00\x00",
  4704. .klen = 32,
  4705. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  4706. "\x00\x00\x00\x00\x00\x00\x00\x00",
  4707. .input = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac"
  4708. "\x30\x74\xe4\x44\x52\x77\x97\x43"
  4709. "\xa7\x60\xb2\x45\x2e\xf9\x00\x90"
  4710. "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0",
  4711. .ilen = 32,
  4712. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  4713. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4714. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4715. "\x00\x00\x00\x00\x00\x00\x00\x00",
  4716. .rlen = 32,
  4717. }, {
  4718. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  4719. "\x11\x11\x11\x11\x11\x11\x11\x11"
  4720. "\x22\x22\x22\x22\x22\x22\x22\x22"
  4721. "\x22\x22\x22\x22\x22\x22\x22\x22",
  4722. .klen = 32,
  4723. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  4724. "\x00\x00\x00\x00\x00\x00\x00\x00",
  4725. .input = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f"
  4726. "\x32\xd3\xbd\x36\x05\x15\x44\x2c"
  4727. "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5"
  4728. "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9",
  4729. .ilen = 32,
  4730. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  4731. "\x44\x44\x44\x44\x44\x44\x44\x44"
  4732. "\x44\x44\x44\x44\x44\x44\x44\x44"
  4733. "\x44\x44\x44\x44\x44\x44\x44\x44",
  4734. .rlen = 32,
  4735. }, {
  4736. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  4737. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  4738. "\x22\x22\x22\x22\x22\x22\x22\x22"
  4739. "\x22\x22\x22\x22\x22\x22\x22\x22",
  4740. .klen = 32,
  4741. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  4742. "\x00\x00\x00\x00\x00\x00\x00\x00",
  4743. .input = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde"
  4744. "\x40\x0c\x89\x56\xf6\x4d\xa7\x07"
  4745. "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2"
  4746. "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea",
  4747. .ilen = 32,
  4748. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  4749. "\x44\x44\x44\x44\x44\x44\x44\x44"
  4750. "\x44\x44\x44\x44\x44\x44\x44\x44"
  4751. "\x44\x44\x44\x44\x44\x44\x44\x44",
  4752. .rlen = 32,
  4753. }, {
  4754. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  4755. "\x23\x53\x60\x28\x74\x71\x35\x26"
  4756. "\x31\x41\x59\x26\x53\x58\x97\x93"
  4757. "\x23\x84\x62\x64\x33\x83\x27\x95",
  4758. .klen = 32,
  4759. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  4760. "\x00\x00\x00\x00\x00\x00\x00\x00",
  4761. .input = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c"
  4762. "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0"
  4763. "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58"
  4764. "\xb8\x2d\xb9\x5d\x58\x07\x66\x50"
  4765. "\xea\x35\x35\x8c\xb2\x46\x61\x06"
  4766. "\x5d\x65\xfc\x57\x8f\x69\x74\xab"
  4767. "\x8a\x06\x69\xb5\x6c\xda\x66\xc7"
  4768. "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2"
  4769. "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3"
  4770. "\x32\x36\x7c\x97\x6b\x4e\x8a\x50"
  4771. "\xe4\x91\x83\x96\x8f\xf4\x94\x1a"
  4772. "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f"
  4773. "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e"
  4774. "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53"
  4775. "\x01\x73\x68\x32\x25\x19\xfa\xfb"
  4776. "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31"
  4777. "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6"
  4778. "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11"
  4779. "\x39\x80\x39\x09\x97\x65\xf2\x83"
  4780. "\xae\xe6\xa1\x6f\x47\xb8\x49\xde"
  4781. "\x99\x36\x20\x7d\x97\x3b\xec\xfa"
  4782. "\xb4\x33\x6e\x7a\xc7\x46\x84\x49"
  4783. "\x91\xcd\xe1\x57\x0d\xed\x40\x08"
  4784. "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6"
  4785. "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47"
  4786. "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a"
  4787. "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12"
  4788. "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3"
  4789. "\xca\x1c\xa3\x8e\xed\x39\x28\xb5"
  4790. "\x10\x1b\x4b\x08\x42\x00\x4a\xd3"
  4791. "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4"
  4792. "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d"
  4793. "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20"
  4794. "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24"
  4795. "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47"
  4796. "\x24\x65\x63\x7e\xbd\x8c\xe6\x52"
  4797. "\x7d\xef\x33\x53\x63\xec\xaa\x0b"
  4798. "\x64\x15\xa9\xa6\x1f\x10\x00\x38"
  4799. "\x35\xa8\xe7\xbe\x23\x70\x22\xe0"
  4800. "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50"
  4801. "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c"
  4802. "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71"
  4803. "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e"
  4804. "\x7a\x74\x85\xa9\x6a\x90\xab\x2c"
  4805. "\x38\x51\xbc\x1f\x43\x4a\x56\x1c"
  4806. "\xf8\x47\x03\x4e\x67\xa8\x1f\x99"
  4807. "\x04\x39\x73\x32\xb2\x86\x79\xe7"
  4808. "\x14\x28\x70\xb8\xe2\x7d\x69\x85"
  4809. "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6"
  4810. "\x09\x0f\x75\xf7\xb6\x81\xd2\x11"
  4811. "\x20\x9c\xa1\xee\x11\x44\x79\xd0"
  4812. "\xb2\x34\x77\xda\x10\x9a\x6f\x6f"
  4813. "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd"
  4814. "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac"
  4815. "\xfe\x2f\x85\x00\x44\xdf\x33\x16"
  4816. "\x35\xb6\xa3\xd3\x70\xdf\x69\x35"
  4817. "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e"
  4818. "\x5a\x14\x30\xd0\x55\x3e\x4f\x64"
  4819. "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26"
  4820. "\x75\xae\xf6\xb5\x23\x0b\x17\x31"
  4821. "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f"
  4822. "\x43\xc4\x46\x24\x22\x4f\x8f\x7e"
  4823. "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb"
  4824. "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a",
  4825. .ilen = 512,
  4826. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  4827. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4828. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4829. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  4830. "\x20\x21\x22\x23\x24\x25\x26\x27"
  4831. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  4832. "\x30\x31\x32\x33\x34\x35\x36\x37"
  4833. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  4834. "\x40\x41\x42\x43\x44\x45\x46\x47"
  4835. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  4836. "\x50\x51\x52\x53\x54\x55\x56\x57"
  4837. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  4838. "\x60\x61\x62\x63\x64\x65\x66\x67"
  4839. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  4840. "\x70\x71\x72\x73\x74\x75\x76\x77"
  4841. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  4842. "\x80\x81\x82\x83\x84\x85\x86\x87"
  4843. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  4844. "\x90\x91\x92\x93\x94\x95\x96\x97"
  4845. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  4846. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  4847. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  4848. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  4849. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  4850. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  4851. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  4852. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  4853. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  4854. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  4855. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  4856. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4857. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  4858. "\x00\x01\x02\x03\x04\x05\x06\x07"
  4859. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4860. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4861. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  4862. "\x20\x21\x22\x23\x24\x25\x26\x27"
  4863. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  4864. "\x30\x31\x32\x33\x34\x35\x36\x37"
  4865. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  4866. "\x40\x41\x42\x43\x44\x45\x46\x47"
  4867. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  4868. "\x50\x51\x52\x53\x54\x55\x56\x57"
  4869. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  4870. "\x60\x61\x62\x63\x64\x65\x66\x67"
  4871. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  4872. "\x70\x71\x72\x73\x74\x75\x76\x77"
  4873. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  4874. "\x80\x81\x82\x83\x84\x85\x86\x87"
  4875. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  4876. "\x90\x91\x92\x93\x94\x95\x96\x97"
  4877. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  4878. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  4879. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  4880. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  4881. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  4882. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  4883. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  4884. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  4885. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  4886. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  4887. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  4888. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4889. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  4890. .rlen = 512,
  4891. }, {
  4892. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  4893. "\x23\x53\x60\x28\x74\x71\x35\x26"
  4894. "\x62\x49\x77\x57\x24\x70\x93\x69"
  4895. "\x99\x59\x57\x49\x66\x96\x76\x27"
  4896. "\x31\x41\x59\x26\x53\x58\x97\x93"
  4897. "\x23\x84\x62\x64\x33\x83\x27\x95"
  4898. "\x02\x88\x41\x97\x16\x93\x99\x37"
  4899. "\x51\x05\x82\x09\x74\x94\x45\x92",
  4900. .klen = 64,
  4901. .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
  4902. "\x00\x00\x00\x00\x00\x00\x00\x00",
  4903. .input = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1"
  4904. "\x35\x39\x71\x88\x76\x1e\xc9\xea"
  4905. "\x86\xad\xf3\x14\x48\x3d\x5e\xe9"
  4906. "\xe9\x2d\xb2\x56\x59\x35\x9d\xec"
  4907. "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f"
  4908. "\xce\xf4\xa9\x21\x0b\x5f\x96\xec"
  4909. "\xcb\xf9\x57\x68\x33\x88\x39\xbf"
  4910. "\x2f\xbb\x59\x03\xbd\x66\x8b\x11"
  4911. "\x11\x65\x51\x2e\xb8\x67\x05\xd1"
  4912. "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3"
  4913. "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5"
  4914. "\x85\xdc\x46\xe6\xf0\x24\xeb\x93"
  4915. "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03"
  4916. "\x22\xc8\x3a\x4f\xb4\x19\x91\x09"
  4917. "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53"
  4918. "\x72\x60\x79\xcb\x0e\x32\x8a\x77"
  4919. "\xd5\xed\xdb\x33\xd7\x62\x16\x69"
  4920. "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d"
  4921. "\x69\x35\x61\x86\xf8\x86\xb9\x89"
  4922. "\x6e\x59\x35\xac\xf6\x6b\x33\xa0"
  4923. "\xea\xef\x96\x62\xd8\xa9\xcf\x56"
  4924. "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73"
  4925. "\x3d\x94\x4a\x49\x42\x6d\x08\x60"
  4926. "\xa1\xea\xab\xb6\x88\x13\x94\xb8"
  4927. "\x51\x98\xdb\x35\x85\xdf\xf6\xb9"
  4928. "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72"
  4929. "\xb8\xb2\x6c\x02\x43\x35\x22\x2a"
  4930. "\x31\xed\xcd\x16\x19\xdf\x62\x0f"
  4931. "\x29\xcf\x87\x04\xec\x02\x4f\xe4"
  4932. "\xa2\xed\x73\xc6\x69\xd3\x7e\x89"
  4933. "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25"
  4934. "\xed\xcc\x60\x5d\x61\x20\xc1\x97"
  4935. "\x56\x91\x57\x28\xbe\x71\x0d\xcd"
  4936. "\xde\xc4\x9e\x55\x91\xbe\xd1\x28"
  4937. "\x9b\x90\xeb\x73\xf3\x68\x51\xc6"
  4938. "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27"
  4939. "\xc0\x60\x5e\x33\xd6\xa7\x20\xea"
  4940. "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47"
  4941. "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42"
  4942. "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0"
  4943. "\xad\x12\x32\x31\x03\xf7\x21\xbe"
  4944. "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd"
  4945. "\xd8\x81\x77\xa9\x49\x98\x6c\x09"
  4946. "\xc5\xa3\x61\x12\x62\x85\x6b\xcd"
  4947. "\xb3\xf4\x20\x0c\x41\xc4\x05\x37"
  4948. "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e"
  4949. "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb"
  4950. "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8"
  4951. "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0"
  4952. "\x93\x4a\x2f\xda\x7b\xe0\x20\x54"
  4953. "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75"
  4954. "\xb9\x07\x67\xcc\xc8\xe7\x21\x15"
  4955. "\xa7\xc8\x98\xff\x4b\x80\x1c\x12"
  4956. "\xa8\x54\xe1\x38\x52\xe6\x74\x81"
  4957. "\x97\x47\xa1\x41\x0e\xc0\x50\xe3"
  4958. "\x55\x0e\xc3\xa7\x70\x77\xce\x07"
  4959. "\xed\x8c\x88\xe6\xa1\x5b\x14\xec"
  4960. "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa"
  4961. "\xe5\x2f\x5a\xff\xc8\x05\xee\x27"
  4962. "\x35\x61\xbf\x0b\x19\x78\x9b\xd2"
  4963. "\x04\xc7\x05\xb1\x79\xb4\xff\x5f"
  4964. "\xf3\xea\x67\x52\x78\xc2\xce\x70"
  4965. "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97"
  4966. "\x37\x30\xe1\x91\x8d\xb3\x2a\xff",
  4967. .ilen = 512,
  4968. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  4969. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4970. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4971. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  4972. "\x20\x21\x22\x23\x24\x25\x26\x27"
  4973. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  4974. "\x30\x31\x32\x33\x34\x35\x36\x37"
  4975. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  4976. "\x40\x41\x42\x43\x44\x45\x46\x47"
  4977. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  4978. "\x50\x51\x52\x53\x54\x55\x56\x57"
  4979. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  4980. "\x60\x61\x62\x63\x64\x65\x66\x67"
  4981. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  4982. "\x70\x71\x72\x73\x74\x75\x76\x77"
  4983. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  4984. "\x80\x81\x82\x83\x84\x85\x86\x87"
  4985. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  4986. "\x90\x91\x92\x93\x94\x95\x96\x97"
  4987. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  4988. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  4989. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  4990. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  4991. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  4992. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  4993. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  4994. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  4995. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  4996. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  4997. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  4998. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4999. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  5000. "\x00\x01\x02\x03\x04\x05\x06\x07"
  5001. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5002. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5003. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  5004. "\x20\x21\x22\x23\x24\x25\x26\x27"
  5005. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  5006. "\x30\x31\x32\x33\x34\x35\x36\x37"
  5007. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  5008. "\x40\x41\x42\x43\x44\x45\x46\x47"
  5009. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  5010. "\x50\x51\x52\x53\x54\x55\x56\x57"
  5011. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  5012. "\x60\x61\x62\x63\x64\x65\x66\x67"
  5013. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  5014. "\x70\x71\x72\x73\x74\x75\x76\x77"
  5015. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  5016. "\x80\x81\x82\x83\x84\x85\x86\x87"
  5017. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  5018. "\x90\x91\x92\x93\x94\x95\x96\x97"
  5019. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  5020. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  5021. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  5022. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  5023. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  5024. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  5025. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  5026. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  5027. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  5028. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  5029. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  5030. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  5031. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  5032. .rlen = 512,
  5033. },
  5034. };
  5035. /*
  5036. * Serpent test vectors. These are backwards because Serpent writes
  5037. * octet sequences in right-to-left mode.
  5038. */
  5039. #define SERPENT_ENC_TEST_VECTORS 5
  5040. #define SERPENT_DEC_TEST_VECTORS 5
  5041. #define TNEPRES_ENC_TEST_VECTORS 4
  5042. #define TNEPRES_DEC_TEST_VECTORS 4
  5043. #define SERPENT_CBC_ENC_TEST_VECTORS 1
  5044. #define SERPENT_CBC_DEC_TEST_VECTORS 1
  5045. #define SERPENT_CTR_ENC_TEST_VECTORS 2
  5046. #define SERPENT_CTR_DEC_TEST_VECTORS 2
  5047. #define SERPENT_LRW_ENC_TEST_VECTORS 8
  5048. #define SERPENT_LRW_DEC_TEST_VECTORS 8
  5049. #define SERPENT_XTS_ENC_TEST_VECTORS 5
  5050. #define SERPENT_XTS_DEC_TEST_VECTORS 5
  5051. static struct cipher_testvec serpent_enc_tv_template[] = {
  5052. {
  5053. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5054. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  5055. .ilen = 16,
  5056. .result = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
  5057. "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
  5058. .rlen = 16,
  5059. }, {
  5060. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5061. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  5062. .klen = 16,
  5063. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5064. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  5065. .ilen = 16,
  5066. .result = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
  5067. "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
  5068. .rlen = 16,
  5069. }, {
  5070. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5071. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5072. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5073. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  5074. .klen = 32,
  5075. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5076. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  5077. .ilen = 16,
  5078. .result = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
  5079. "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
  5080. .rlen = 16,
  5081. }, {
  5082. .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
  5083. .klen = 16,
  5084. .input = zeroed_string,
  5085. .ilen = 16,
  5086. .result = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
  5087. "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
  5088. .rlen = 16,
  5089. }, { /* Generated with Crypto++ */
  5090. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  5091. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  5092. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  5093. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  5094. .klen = 32,
  5095. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  5096. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  5097. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  5098. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  5099. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  5100. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  5101. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  5102. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  5103. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  5104. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  5105. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  5106. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  5107. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  5108. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  5109. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  5110. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  5111. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  5112. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A",
  5113. .ilen = 144,
  5114. .result = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB"
  5115. "\xB1\x80\x10\x43\xDE\x62\x70\xBD"
  5116. "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7"
  5117. "\x0C\xD1\xBB\x29\x25\x14\x4C\x22"
  5118. "\x77\xA6\x38\x00\xDB\xB9\xE2\x07"
  5119. "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39"
  5120. "\x99\x34\x89\x5B\x54\xE9\x12\x13"
  5121. "\x3B\x04\xE5\x12\x42\xC5\x79\xAB"
  5122. "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6"
  5123. "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA"
  5124. "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A"
  5125. "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87"
  5126. "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5"
  5127. "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73"
  5128. "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD"
  5129. "\x69\xDA\x7A\x01\xF5\x6A\x70\x39"
  5130. "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39"
  5131. "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6",
  5132. .rlen = 144,
  5133. },
  5134. };
  5135. static struct cipher_testvec tnepres_enc_tv_template[] = {
  5136. { /* KeySize=128, PT=0, I=1 */
  5137. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  5138. "\x00\x00\x00\x00\x00\x00\x00\x00",
  5139. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  5140. "\x00\x00\x00\x00\x00\x00\x00\x00",
  5141. .klen = 16,
  5142. .ilen = 16,
  5143. .result = "\x49\xaf\xbf\xad\x9d\x5a\x34\x05"
  5144. "\x2c\xd8\xff\xa5\x98\x6b\xd2\xdd",
  5145. .rlen = 16,
  5146. }, { /* KeySize=192, PT=0, I=1 */
  5147. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  5148. "\x00\x00\x00\x00\x00\x00\x00\x00"
  5149. "\x00\x00\x00\x00\x00\x00\x00\x00",
  5150. .klen = 24,
  5151. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  5152. "\x00\x00\x00\x00\x00\x00\x00\x00",
  5153. .ilen = 16,
  5154. .result = "\xe7\x8e\x54\x02\xc7\x19\x55\x68"
  5155. "\xac\x36\x78\xf7\xa3\xf6\x0c\x66",
  5156. .rlen = 16,
  5157. }, { /* KeySize=256, PT=0, I=1 */
  5158. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  5159. "\x00\x00\x00\x00\x00\x00\x00\x00"
  5160. "\x00\x00\x00\x00\x00\x00\x00\x00"
  5161. "\x00\x00\x00\x00\x00\x00\x00\x00",
  5162. .klen = 32,
  5163. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  5164. "\x00\x00\x00\x00\x00\x00\x00\x00",
  5165. .ilen = 16,
  5166. .result = "\xab\xed\x96\xe7\x66\xbf\x28\xcb"
  5167. "\xc0\xeb\xd2\x1a\x82\xef\x08\x19",
  5168. .rlen = 16,
  5169. }, { /* KeySize=256, I=257 */
  5170. .key = "\x1f\x1e\x1d\x1c\x1b\x1a\x19\x18"
  5171. "\x17\x16\x15\x14\x13\x12\x11\x10"
  5172. "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
  5173. "\x07\x06\x05\x04\x03\x02\x01\x00",
  5174. .klen = 32,
  5175. .input = "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
  5176. "\x07\x06\x05\x04\x03\x02\x01\x00",
  5177. .ilen = 16,
  5178. .result = "\x5c\xe7\x1c\x70\xd2\x88\x2e\x5b"
  5179. "\xb8\x32\xe4\x33\xf8\x9f\x26\xde",
  5180. .rlen = 16,
  5181. },
  5182. };
  5183. static struct cipher_testvec serpent_dec_tv_template[] = {
  5184. {
  5185. .input = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
  5186. "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
  5187. .ilen = 16,
  5188. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5189. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  5190. .rlen = 16,
  5191. }, {
  5192. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5193. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  5194. .klen = 16,
  5195. .input = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
  5196. "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
  5197. .ilen = 16,
  5198. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5199. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  5200. .rlen = 16,
  5201. }, {
  5202. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5203. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5204. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5205. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  5206. .klen = 32,
  5207. .input = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
  5208. "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
  5209. .ilen = 16,
  5210. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5211. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  5212. .rlen = 16,
  5213. }, {
  5214. .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
  5215. .klen = 16,
  5216. .input = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
  5217. "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
  5218. .ilen = 16,
  5219. .result = zeroed_string,
  5220. .rlen = 16,
  5221. }, { /* Generated with Crypto++ */
  5222. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  5223. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  5224. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  5225. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  5226. .klen = 32,
  5227. .input = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB"
  5228. "\xB1\x80\x10\x43\xDE\x62\x70\xBD"
  5229. "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7"
  5230. "\x0C\xD1\xBB\x29\x25\x14\x4C\x22"
  5231. "\x77\xA6\x38\x00\xDB\xB9\xE2\x07"
  5232. "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39"
  5233. "\x99\x34\x89\x5B\x54\xE9\x12\x13"
  5234. "\x3B\x04\xE5\x12\x42\xC5\x79\xAB"
  5235. "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6"
  5236. "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA"
  5237. "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A"
  5238. "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87"
  5239. "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5"
  5240. "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73"
  5241. "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD"
  5242. "\x69\xDA\x7A\x01\xF5\x6A\x70\x39"
  5243. "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39"
  5244. "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6",
  5245. .ilen = 144,
  5246. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  5247. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  5248. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  5249. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  5250. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  5251. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  5252. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  5253. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  5254. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  5255. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  5256. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  5257. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  5258. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  5259. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  5260. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  5261. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  5262. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  5263. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A",
  5264. .rlen = 144,
  5265. },
  5266. };
  5267. static struct cipher_testvec tnepres_dec_tv_template[] = {
  5268. {
  5269. .input = "\x41\xcc\x6b\x31\x59\x31\x45\x97"
  5270. "\x6d\x6f\xbb\x38\x4b\x37\x21\x28",
  5271. .ilen = 16,
  5272. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5273. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  5274. .rlen = 16,
  5275. }, {
  5276. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5277. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  5278. .klen = 16,
  5279. .input = "\xea\xf4\xd7\xfc\xd8\x01\x34\x47"
  5280. "\x81\x45\x0b\xfa\x0c\xd6\xad\x6e",
  5281. .ilen = 16,
  5282. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5283. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  5284. .rlen = 16,
  5285. }, {
  5286. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5287. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5288. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5289. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  5290. .klen = 32,
  5291. .input = "\x64\xa9\x1a\x37\xed\x9f\xe7\x49"
  5292. "\xa8\x4e\x76\xd6\xf5\x0d\x78\xee",
  5293. .ilen = 16,
  5294. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5295. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  5296. .rlen = 16,
  5297. }, { /* KeySize=128, I=121 */
  5298. .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
  5299. .klen = 16,
  5300. .input = "\x3d\xda\xbf\xc0\x06\xda\xab\x06"
  5301. "\x46\x2a\xf4\xef\x81\x54\x4e\x26",
  5302. .ilen = 16,
  5303. .result = zeroed_string,
  5304. .rlen = 16,
  5305. },
  5306. };
  5307. static struct cipher_testvec serpent_cbc_enc_tv_template[] = {
  5308. { /* Generated with Crypto++ */
  5309. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  5310. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  5311. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  5312. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  5313. .klen = 32,
  5314. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  5315. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  5316. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  5317. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  5318. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  5319. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  5320. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  5321. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  5322. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  5323. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  5324. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  5325. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  5326. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  5327. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  5328. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  5329. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  5330. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  5331. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  5332. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  5333. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A",
  5334. .ilen = 144,
  5335. .result = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C"
  5336. "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E"
  5337. "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD"
  5338. "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C"
  5339. "\x38\x63\x35\x7E\x79\x18\x0A\xE8"
  5340. "\x67\x06\x76\xD5\xFF\x22\x2F\xDA"
  5341. "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97"
  5342. "\xFE\x53\x75\x35\x97\x7F\x51\xEA"
  5343. "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7"
  5344. "\x62\x67\xFF\x04\xC2\x18\x22\x5F"
  5345. "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E"
  5346. "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41"
  5347. "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB"
  5348. "\x72\x84\xF8\x0A\x3F\x38\x5E\x91"
  5349. "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2"
  5350. "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB"
  5351. "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A"
  5352. "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C",
  5353. .rlen = 144,
  5354. },
  5355. };
  5356. static struct cipher_testvec serpent_cbc_dec_tv_template[] = {
  5357. { /* Generated with Crypto++ */
  5358. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  5359. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  5360. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  5361. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  5362. .klen = 32,
  5363. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  5364. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  5365. .input = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C"
  5366. "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E"
  5367. "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD"
  5368. "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C"
  5369. "\x38\x63\x35\x7E\x79\x18\x0A\xE8"
  5370. "\x67\x06\x76\xD5\xFF\x22\x2F\xDA"
  5371. "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97"
  5372. "\xFE\x53\x75\x35\x97\x7F\x51\xEA"
  5373. "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7"
  5374. "\x62\x67\xFF\x04\xC2\x18\x22\x5F"
  5375. "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E"
  5376. "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41"
  5377. "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB"
  5378. "\x72\x84\xF8\x0A\x3F\x38\x5E\x91"
  5379. "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2"
  5380. "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB"
  5381. "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A"
  5382. "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C",
  5383. .ilen = 144,
  5384. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  5385. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  5386. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  5387. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  5388. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  5389. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  5390. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  5391. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  5392. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  5393. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  5394. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  5395. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  5396. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  5397. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  5398. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  5399. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  5400. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  5401. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A",
  5402. .rlen = 144,
  5403. },
  5404. };
  5405. static struct cipher_testvec serpent_ctr_enc_tv_template[] = {
  5406. { /* Generated with Crypto++ */
  5407. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  5408. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  5409. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  5410. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  5411. .klen = 32,
  5412. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  5413. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  5414. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  5415. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  5416. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  5417. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  5418. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  5419. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  5420. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  5421. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  5422. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  5423. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  5424. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  5425. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  5426. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  5427. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  5428. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  5429. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  5430. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  5431. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A",
  5432. .ilen = 144,
  5433. .result = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
  5434. "\x37\x69\xE3\x3A\x22\x85\x48\x46"
  5435. "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
  5436. "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
  5437. "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
  5438. "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
  5439. "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
  5440. "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
  5441. "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
  5442. "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
  5443. "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
  5444. "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
  5445. "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
  5446. "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
  5447. "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
  5448. "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
  5449. "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
  5450. "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9",
  5451. .rlen = 144,
  5452. }, { /* Generated with Crypto++ */
  5453. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  5454. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  5455. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  5456. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  5457. .klen = 32,
  5458. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  5459. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  5460. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  5461. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  5462. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  5463. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  5464. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  5465. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  5466. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  5467. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  5468. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  5469. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  5470. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  5471. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  5472. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  5473. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  5474. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  5475. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  5476. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  5477. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  5478. "\xF1\x65\xFC",
  5479. .ilen = 147,
  5480. .result = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
  5481. "\x37\x69\xE3\x3A\x22\x85\x48\x46"
  5482. "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
  5483. "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
  5484. "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
  5485. "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
  5486. "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
  5487. "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
  5488. "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
  5489. "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
  5490. "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
  5491. "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
  5492. "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
  5493. "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
  5494. "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
  5495. "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
  5496. "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
  5497. "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
  5498. "\xE6\xD0\x97",
  5499. .rlen = 147,
  5500. },
  5501. };
  5502. static struct cipher_testvec serpent_ctr_dec_tv_template[] = {
  5503. { /* Generated with Crypto++ */
  5504. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  5505. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  5506. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  5507. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  5508. .klen = 32,
  5509. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  5510. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  5511. .input = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
  5512. "\x37\x69\xE3\x3A\x22\x85\x48\x46"
  5513. "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
  5514. "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
  5515. "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
  5516. "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
  5517. "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
  5518. "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
  5519. "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
  5520. "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
  5521. "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
  5522. "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
  5523. "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
  5524. "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
  5525. "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
  5526. "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
  5527. "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
  5528. "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9",
  5529. .ilen = 144,
  5530. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  5531. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  5532. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  5533. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  5534. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  5535. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  5536. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  5537. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  5538. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  5539. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  5540. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  5541. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  5542. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  5543. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  5544. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  5545. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  5546. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  5547. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A",
  5548. .rlen = 144,
  5549. }, { /* Generated with Crypto++ */
  5550. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  5551. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  5552. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  5553. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  5554. .klen = 32,
  5555. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  5556. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  5557. .input = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
  5558. "\x37\x69\xE3\x3A\x22\x85\x48\x46"
  5559. "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
  5560. "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
  5561. "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
  5562. "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
  5563. "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
  5564. "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
  5565. "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
  5566. "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
  5567. "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
  5568. "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
  5569. "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
  5570. "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
  5571. "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
  5572. "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
  5573. "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
  5574. "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
  5575. "\xE6\xD0\x97",
  5576. .ilen = 147,
  5577. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  5578. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  5579. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  5580. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  5581. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  5582. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  5583. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  5584. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  5585. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  5586. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  5587. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  5588. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  5589. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  5590. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  5591. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  5592. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  5593. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  5594. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  5595. "\xF1\x65\xFC",
  5596. .rlen = 147,
  5597. },
  5598. };
  5599. static struct cipher_testvec serpent_lrw_enc_tv_template[] = {
  5600. /* Generated from AES-LRW test vectors */
  5601. {
  5602. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  5603. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  5604. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  5605. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  5606. .klen = 32,
  5607. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  5608. "\x00\x00\x00\x00\x00\x00\x00\x01",
  5609. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  5610. "\x38\x39\x41\x42\x43\x44\x45\x46",
  5611. .ilen = 16,
  5612. .result = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79"
  5613. "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a",
  5614. .rlen = 16,
  5615. }, {
  5616. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  5617. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  5618. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  5619. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  5620. .klen = 32,
  5621. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  5622. "\x00\x00\x00\x00\x00\x00\x00\x02",
  5623. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  5624. "\x38\x39\x41\x42\x43\x44\x45\x46",
  5625. .ilen = 16,
  5626. .result = "\xfd\xb2\x66\x98\x80\x96\x55\xad"
  5627. "\x08\x94\x54\x9c\x21\x7c\x69\xe3",
  5628. .rlen = 16,
  5629. }, {
  5630. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  5631. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  5632. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  5633. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  5634. .klen = 32,
  5635. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  5636. "\x00\x00\x00\x02\x00\x00\x00\x00",
  5637. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  5638. "\x38\x39\x41\x42\x43\x44\x45\x46",
  5639. .ilen = 16,
  5640. .result = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34"
  5641. "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c",
  5642. .rlen = 16,
  5643. }, {
  5644. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  5645. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  5646. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  5647. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  5648. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  5649. .klen = 40,
  5650. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  5651. "\x00\x00\x00\x00\x00\x00\x00\x01",
  5652. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  5653. "\x38\x39\x41\x42\x43\x44\x45\x46",
  5654. .ilen = 16,
  5655. .result = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc"
  5656. "\x5d\x45\x95\x30\x8f\xff\x2f\x1b",
  5657. .rlen = 16,
  5658. }, {
  5659. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  5660. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  5661. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  5662. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  5663. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  5664. .klen = 40,
  5665. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  5666. "\x00\x00\x00\x02\x00\x00\x00\x00",
  5667. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  5668. "\x38\x39\x41\x42\x43\x44\x45\x46",
  5669. .ilen = 16,
  5670. .result = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f"
  5671. "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26",
  5672. .rlen = 16,
  5673. }, {
  5674. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  5675. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  5676. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  5677. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  5678. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  5679. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  5680. .klen = 48,
  5681. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  5682. "\x00\x00\x00\x00\x00\x00\x00\x01",
  5683. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  5684. "\x38\x39\x41\x42\x43\x44\x45\x46",
  5685. .ilen = 16,
  5686. .result = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c"
  5687. "\x2e\x18\xe6\x99\xcd\xd3\x15\x68",
  5688. .rlen = 16,
  5689. }, {
  5690. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  5691. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  5692. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  5693. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  5694. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  5695. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  5696. .klen = 48,
  5697. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  5698. "\x00\x00\x00\x02\x00\x00\x00\x00",
  5699. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  5700. "\x38\x39\x41\x42\x43\x44\x45\x46",
  5701. .ilen = 16,
  5702. .result = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6"
  5703. "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf",
  5704. .rlen = 16,
  5705. }, {
  5706. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  5707. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  5708. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  5709. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  5710. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  5711. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  5712. .klen = 48,
  5713. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  5714. "\x00\x00\x00\x00\x00\x00\x00\x01",
  5715. .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  5716. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  5717. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  5718. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  5719. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  5720. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  5721. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  5722. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  5723. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  5724. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  5725. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  5726. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  5727. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  5728. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  5729. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  5730. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  5731. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  5732. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  5733. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  5734. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  5735. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  5736. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  5737. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  5738. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  5739. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  5740. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  5741. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  5742. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  5743. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  5744. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  5745. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  5746. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  5747. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  5748. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  5749. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  5750. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  5751. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  5752. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  5753. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  5754. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  5755. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  5756. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  5757. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  5758. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  5759. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  5760. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  5761. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  5762. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  5763. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  5764. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  5765. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  5766. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  5767. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  5768. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  5769. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  5770. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  5771. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  5772. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  5773. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  5774. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  5775. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  5776. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  5777. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  5778. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  5779. .ilen = 512,
  5780. .result = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74"
  5781. "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d"
  5782. "\x82\xec\xf1\x5f\x03\x6d\x02\x58"
  5783. "\x90\x67\xfc\xdd\x8d\xe1\x38\x08"
  5784. "\x7b\xc9\x9b\x4b\x04\x09\x50\x15"
  5785. "\xce\xab\xda\x33\x30\x20\x12\xfa"
  5786. "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9"
  5787. "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c"
  5788. "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22"
  5789. "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b"
  5790. "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5"
  5791. "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5"
  5792. "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b"
  5793. "\x89\x58\x7c\x9a\xae\x26\xe8\xb7"
  5794. "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d"
  5795. "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47"
  5796. "\x5f\x03\x8b\xdd\x94\xd1\xee\x12"
  5797. "\xa7\x83\x80\xf2\xc1\x15\x74\x4f"
  5798. "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f"
  5799. "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52"
  5800. "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98"
  5801. "\x04\xd6\xdd\x4c\x00\x64\xd9\x54"
  5802. "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8"
  5803. "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b"
  5804. "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9"
  5805. "\x04\xc3\x6f\x17\x66\xa9\x1f\x59"
  5806. "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b"
  5807. "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43"
  5808. "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb"
  5809. "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49"
  5810. "\xb3\xac\x5d\xcf\x31\xa0\x27\x26"
  5811. "\x21\xbe\x94\x2e\x19\xea\xf4\xee"
  5812. "\xb5\x13\x89\xf7\x94\x0b\xef\x59"
  5813. "\x44\xc5\x78\x8b\x3c\x3b\x71\x20"
  5814. "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2"
  5815. "\xb4\x11\x0e\x2c\x61\xa1\x52\x46"
  5816. "\x18\x11\x16\xc6\x86\x44\xa7\xaf"
  5817. "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b"
  5818. "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea"
  5819. "\x3f\x0e\x90\xd6\x8f\x83\x30\x64"
  5820. "\xb5\x51\x2d\x08\x3c\xcd\x99\x36"
  5821. "\x96\xd4\xb1\xb5\x48\x30\xca\x48"
  5822. "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d"
  5823. "\x12\x33\x2f\xc0\xe8\xda\xec\x8a"
  5824. "\xe1\x88\x72\x63\xde\x20\xa3\xe1"
  5825. "\x8e\xac\x84\x37\x35\xf5\xf7\x3f"
  5826. "\x00\x02\x0e\xe4\xc1\x53\x68\x3f"
  5827. "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d"
  5828. "\x7c\x83\xd0\xbd\xaa\x97\x35\x36"
  5829. "\x98\x88\x59\x5d\xe7\x24\xe3\x90"
  5830. "\x9d\x30\x47\xa7\xc3\x60\x35\xf4"
  5831. "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b"
  5832. "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d"
  5833. "\x49\x5a\x3c\x8a\xa3\x01\xae\x25"
  5834. "\x42\xab\xd2\x87\x1b\x35\xd6\xd2"
  5835. "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39"
  5836. "\x1c\x58\xa2\xb4\xd0\x78\x55\x72"
  5837. "\x76\x59\xea\xd9\xd7\x6e\x63\x8b"
  5838. "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68"
  5839. "\x86\x28\xd1\xbb\x54\x8d\x66\xad"
  5840. "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd"
  5841. "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a"
  5842. "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd"
  5843. "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7",
  5844. .rlen = 512,
  5845. },
  5846. };
  5847. static struct cipher_testvec serpent_lrw_dec_tv_template[] = {
  5848. /* Generated from AES-LRW test vectors */
  5849. /* same as enc vectors with input and result reversed */
  5850. {
  5851. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  5852. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  5853. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  5854. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  5855. .klen = 32,
  5856. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  5857. "\x00\x00\x00\x00\x00\x00\x00\x01",
  5858. .input = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79"
  5859. "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a",
  5860. .ilen = 16,
  5861. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  5862. "\x38\x39\x41\x42\x43\x44\x45\x46",
  5863. .rlen = 16,
  5864. }, {
  5865. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  5866. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  5867. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  5868. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  5869. .klen = 32,
  5870. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  5871. "\x00\x00\x00\x00\x00\x00\x00\x02",
  5872. .input = "\xfd\xb2\x66\x98\x80\x96\x55\xad"
  5873. "\x08\x94\x54\x9c\x21\x7c\x69\xe3",
  5874. .ilen = 16,
  5875. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  5876. "\x38\x39\x41\x42\x43\x44\x45\x46",
  5877. .rlen = 16,
  5878. }, {
  5879. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  5880. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  5881. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  5882. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  5883. .klen = 32,
  5884. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  5885. "\x00\x00\x00\x02\x00\x00\x00\x00",
  5886. .input = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34"
  5887. "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c",
  5888. .ilen = 16,
  5889. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  5890. "\x38\x39\x41\x42\x43\x44\x45\x46",
  5891. .rlen = 16,
  5892. }, {
  5893. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  5894. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  5895. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  5896. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  5897. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  5898. .klen = 40,
  5899. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  5900. "\x00\x00\x00\x00\x00\x00\x00\x01",
  5901. .input = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc"
  5902. "\x5d\x45\x95\x30\x8f\xff\x2f\x1b",
  5903. .ilen = 16,
  5904. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  5905. "\x38\x39\x41\x42\x43\x44\x45\x46",
  5906. .rlen = 16,
  5907. }, {
  5908. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  5909. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  5910. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  5911. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  5912. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  5913. .klen = 40,
  5914. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  5915. "\x00\x00\x00\x02\x00\x00\x00\x00",
  5916. .input = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f"
  5917. "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26",
  5918. .ilen = 16,
  5919. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  5920. "\x38\x39\x41\x42\x43\x44\x45\x46",
  5921. .rlen = 16,
  5922. }, {
  5923. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  5924. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  5925. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  5926. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  5927. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  5928. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  5929. .klen = 48,
  5930. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  5931. "\x00\x00\x00\x00\x00\x00\x00\x01",
  5932. .input = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c"
  5933. "\x2e\x18\xe6\x99\xcd\xd3\x15\x68",
  5934. .ilen = 16,
  5935. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  5936. "\x38\x39\x41\x42\x43\x44\x45\x46",
  5937. .rlen = 16,
  5938. }, {
  5939. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  5940. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  5941. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  5942. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  5943. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  5944. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  5945. .klen = 48,
  5946. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  5947. "\x00\x00\x00\x02\x00\x00\x00\x00",
  5948. .input = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6"
  5949. "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf",
  5950. .ilen = 16,
  5951. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  5952. "\x38\x39\x41\x42\x43\x44\x45\x46",
  5953. .rlen = 16,
  5954. }, {
  5955. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  5956. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  5957. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  5958. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  5959. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  5960. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  5961. .klen = 48,
  5962. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  5963. "\x00\x00\x00\x00\x00\x00\x00\x01",
  5964. .input = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74"
  5965. "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d"
  5966. "\x82\xec\xf1\x5f\x03\x6d\x02\x58"
  5967. "\x90\x67\xfc\xdd\x8d\xe1\x38\x08"
  5968. "\x7b\xc9\x9b\x4b\x04\x09\x50\x15"
  5969. "\xce\xab\xda\x33\x30\x20\x12\xfa"
  5970. "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9"
  5971. "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c"
  5972. "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22"
  5973. "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b"
  5974. "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5"
  5975. "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5"
  5976. "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b"
  5977. "\x89\x58\x7c\x9a\xae\x26\xe8\xb7"
  5978. "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d"
  5979. "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47"
  5980. "\x5f\x03\x8b\xdd\x94\xd1\xee\x12"
  5981. "\xa7\x83\x80\xf2\xc1\x15\x74\x4f"
  5982. "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f"
  5983. "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52"
  5984. "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98"
  5985. "\x04\xd6\xdd\x4c\x00\x64\xd9\x54"
  5986. "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8"
  5987. "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b"
  5988. "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9"
  5989. "\x04\xc3\x6f\x17\x66\xa9\x1f\x59"
  5990. "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b"
  5991. "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43"
  5992. "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb"
  5993. "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49"
  5994. "\xb3\xac\x5d\xcf\x31\xa0\x27\x26"
  5995. "\x21\xbe\x94\x2e\x19\xea\xf4\xee"
  5996. "\xb5\x13\x89\xf7\x94\x0b\xef\x59"
  5997. "\x44\xc5\x78\x8b\x3c\x3b\x71\x20"
  5998. "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2"
  5999. "\xb4\x11\x0e\x2c\x61\xa1\x52\x46"
  6000. "\x18\x11\x16\xc6\x86\x44\xa7\xaf"
  6001. "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b"
  6002. "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea"
  6003. "\x3f\x0e\x90\xd6\x8f\x83\x30\x64"
  6004. "\xb5\x51\x2d\x08\x3c\xcd\x99\x36"
  6005. "\x96\xd4\xb1\xb5\x48\x30\xca\x48"
  6006. "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d"
  6007. "\x12\x33\x2f\xc0\xe8\xda\xec\x8a"
  6008. "\xe1\x88\x72\x63\xde\x20\xa3\xe1"
  6009. "\x8e\xac\x84\x37\x35\xf5\xf7\x3f"
  6010. "\x00\x02\x0e\xe4\xc1\x53\x68\x3f"
  6011. "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d"
  6012. "\x7c\x83\xd0\xbd\xaa\x97\x35\x36"
  6013. "\x98\x88\x59\x5d\xe7\x24\xe3\x90"
  6014. "\x9d\x30\x47\xa7\xc3\x60\x35\xf4"
  6015. "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b"
  6016. "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d"
  6017. "\x49\x5a\x3c\x8a\xa3\x01\xae\x25"
  6018. "\x42\xab\xd2\x87\x1b\x35\xd6\xd2"
  6019. "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39"
  6020. "\x1c\x58\xa2\xb4\xd0\x78\x55\x72"
  6021. "\x76\x59\xea\xd9\xd7\x6e\x63\x8b"
  6022. "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68"
  6023. "\x86\x28\xd1\xbb\x54\x8d\x66\xad"
  6024. "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd"
  6025. "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a"
  6026. "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd"
  6027. "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7",
  6028. .ilen = 512,
  6029. .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  6030. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  6031. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  6032. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  6033. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  6034. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  6035. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  6036. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  6037. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  6038. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  6039. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  6040. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  6041. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  6042. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  6043. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  6044. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  6045. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  6046. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  6047. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  6048. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  6049. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  6050. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  6051. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  6052. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  6053. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  6054. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  6055. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  6056. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  6057. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  6058. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  6059. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  6060. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  6061. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  6062. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  6063. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  6064. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  6065. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  6066. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  6067. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  6068. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  6069. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  6070. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  6071. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  6072. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  6073. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  6074. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  6075. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  6076. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  6077. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  6078. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  6079. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  6080. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  6081. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  6082. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  6083. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  6084. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  6085. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  6086. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  6087. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  6088. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  6089. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  6090. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  6091. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  6092. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  6093. .rlen = 512,
  6094. },
  6095. };
  6096. static struct cipher_testvec serpent_xts_enc_tv_template[] = {
  6097. /* Generated from AES-XTS test vectors */
  6098. {
  6099. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6100. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6101. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6102. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6103. .klen = 32,
  6104. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6105. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6106. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6107. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6108. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6109. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6110. .ilen = 32,
  6111. .result = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64"
  6112. "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4"
  6113. "\x6a\x31\xc5\xf3\x00\xca\xb9\x16"
  6114. "\xde\xe2\x77\x66\xf7\xfe\x62\x08",
  6115. .rlen = 32,
  6116. }, {
  6117. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  6118. "\x11\x11\x11\x11\x11\x11\x11\x11"
  6119. "\x22\x22\x22\x22\x22\x22\x22\x22"
  6120. "\x22\x22\x22\x22\x22\x22\x22\x22",
  6121. .klen = 32,
  6122. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  6123. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6124. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  6125. "\x44\x44\x44\x44\x44\x44\x44\x44"
  6126. "\x44\x44\x44\x44\x44\x44\x44\x44"
  6127. "\x44\x44\x44\x44\x44\x44\x44\x44",
  6128. .ilen = 32,
  6129. .result = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98"
  6130. "\x41\x86\x12\xaf\xb3\xd7\x68\x13"
  6131. "\xed\x81\xcd\x06\x87\x43\x1a\xbb"
  6132. "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe",
  6133. .rlen = 32,
  6134. }, {
  6135. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  6136. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  6137. "\x22\x22\x22\x22\x22\x22\x22\x22"
  6138. "\x22\x22\x22\x22\x22\x22\x22\x22",
  6139. .klen = 32,
  6140. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  6141. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6142. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  6143. "\x44\x44\x44\x44\x44\x44\x44\x44"
  6144. "\x44\x44\x44\x44\x44\x44\x44\x44"
  6145. "\x44\x44\x44\x44\x44\x44\x44\x44",
  6146. .ilen = 32,
  6147. .result = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61"
  6148. "\xb6\x1c\x81\x8f\x2c\x87\x60\x89"
  6149. "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86"
  6150. "\xc1\x68\x45\xaa\x00\xe9\x24\xc5",
  6151. .rlen = 32,
  6152. }, {
  6153. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  6154. "\x23\x53\x60\x28\x74\x71\x35\x26"
  6155. "\x31\x41\x59\x26\x53\x58\x97\x93"
  6156. "\x23\x84\x62\x64\x33\x83\x27\x95",
  6157. .klen = 32,
  6158. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6159. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6160. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6161. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6162. "\x10\x11\x12\x13\x14\x15\x16\x17"
  6163. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  6164. "\x20\x21\x22\x23\x24\x25\x26\x27"
  6165. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  6166. "\x30\x31\x32\x33\x34\x35\x36\x37"
  6167. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  6168. "\x40\x41\x42\x43\x44\x45\x46\x47"
  6169. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  6170. "\x50\x51\x52\x53\x54\x55\x56\x57"
  6171. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  6172. "\x60\x61\x62\x63\x64\x65\x66\x67"
  6173. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  6174. "\x70\x71\x72\x73\x74\x75\x76\x77"
  6175. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  6176. "\x80\x81\x82\x83\x84\x85\x86\x87"
  6177. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  6178. "\x90\x91\x92\x93\x94\x95\x96\x97"
  6179. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  6180. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  6181. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  6182. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  6183. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  6184. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6185. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  6186. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  6187. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  6188. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  6189. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  6190. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  6191. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  6192. "\x00\x01\x02\x03\x04\x05\x06\x07"
  6193. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6194. "\x10\x11\x12\x13\x14\x15\x16\x17"
  6195. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  6196. "\x20\x21\x22\x23\x24\x25\x26\x27"
  6197. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  6198. "\x30\x31\x32\x33\x34\x35\x36\x37"
  6199. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  6200. "\x40\x41\x42\x43\x44\x45\x46\x47"
  6201. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  6202. "\x50\x51\x52\x53\x54\x55\x56\x57"
  6203. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  6204. "\x60\x61\x62\x63\x64\x65\x66\x67"
  6205. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  6206. "\x70\x71\x72\x73\x74\x75\x76\x77"
  6207. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  6208. "\x80\x81\x82\x83\x84\x85\x86\x87"
  6209. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  6210. "\x90\x91\x92\x93\x94\x95\x96\x97"
  6211. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  6212. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  6213. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  6214. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  6215. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  6216. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6217. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  6218. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  6219. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  6220. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  6221. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  6222. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  6223. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  6224. .ilen = 512,
  6225. .result = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b"
  6226. "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53"
  6227. "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e"
  6228. "\x28\xca\xb0\x22\xb3\x85\x75\xf4"
  6229. "\x00\x5c\x75\x14\x06\xd6\x25\x82"
  6230. "\xe6\xcb\x08\xf7\x29\x90\x23\x8e"
  6231. "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3"
  6232. "\x80\x51\x67\xb5\x0b\x85\x69\xe8"
  6233. "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3"
  6234. "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0"
  6235. "\x63\x5a\x16\x0f\xf0\xce\x66\x1f"
  6236. "\x2c\x21\x07\xf1\xa4\x03\xa3\x44"
  6237. "\x41\x61\x87\x5d\x6b\xb3\xef\xd4"
  6238. "\xfc\xaa\x32\x7e\x55\x58\x04\x41"
  6239. "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a"
  6240. "\x55\x79\x4b\x6f\xcf\x89\xb9\x19"
  6241. "\xe5\x54\x13\x15\xb2\x1a\xfa\x15"
  6242. "\xc2\xf0\x06\x59\xfa\xa0\x25\x05"
  6243. "\x58\xfa\x43\x91\x16\x85\x40\xbb"
  6244. "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08"
  6245. "\xcd\x22\x22\x41\x11\x9f\x6c\x7c"
  6246. "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7"
  6247. "\xa0\x42\xa8\xde\xfc\xa3\xca\x98"
  6248. "\x4b\x43\xb1\xce\x4b\xbf\x01\x67"
  6249. "\x6e\x29\x60\xbd\x10\x14\x84\x82"
  6250. "\x83\x82\x0c\x63\x73\x92\x02\x7c"
  6251. "\x55\x37\x20\x80\x17\x51\xc8\xbc"
  6252. "\x46\x02\xcb\x38\x07\x6d\xe2\x85"
  6253. "\xaa\x29\xaf\x24\x58\x0d\xf0\x75"
  6254. "\x08\x0a\xa5\x34\x25\x16\xf3\x74"
  6255. "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29"
  6256. "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c"
  6257. "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e"
  6258. "\x8c\x2b\x4f\x54\x76\x47\x53\x8e"
  6259. "\xe8\x00\xec\x92\xb9\x55\xe6\xa2"
  6260. "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87"
  6261. "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21"
  6262. "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19"
  6263. "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9"
  6264. "\x94\x4e\x63\xc7\xae\xfc\xed\x47"
  6265. "\xe2\xfe\x7a\x63\x77\xfe\x97\x82"
  6266. "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80"
  6267. "\xec\x69\x41\xec\xa7\x8a\xe0\x2f"
  6268. "\xe3\x49\x26\xa2\x41\xb2\x08\x0f"
  6269. "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e"
  6270. "\x43\x42\x35\xd0\xcf\xec\x77\x67"
  6271. "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e"
  6272. "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50"
  6273. "\xab\x6c\x6b\xff\xea\x00\x67\xaa"
  6274. "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76"
  6275. "\x2b\x77\x3f\xbe\x12\x75\xfb\x92"
  6276. "\xc6\x89\x67\x4d\xca\xf7\xd4\x50"
  6277. "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6"
  6278. "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5"
  6279. "\x86\xad\x51\xcc\xd5\x96\xb8\xdc"
  6280. "\x03\x57\xe6\x98\x52\x2f\x61\x62"
  6281. "\xc4\x5c\x9c\x36\x71\x07\xfb\x94"
  6282. "\xe3\x02\xc4\x2b\x08\x75\xc7\x35"
  6283. "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1"
  6284. "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e"
  6285. "\x76\x87\x19\x04\x1a\x2f\x38\x3e"
  6286. "\xef\x91\x64\x1d\x18\x07\x4e\x31"
  6287. "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c"
  6288. "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd",
  6289. .rlen = 512,
  6290. }, {
  6291. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  6292. "\x23\x53\x60\x28\x74\x71\x35\x26"
  6293. "\x62\x49\x77\x57\x24\x70\x93\x69"
  6294. "\x99\x59\x57\x49\x66\x96\x76\x27"
  6295. "\x31\x41\x59\x26\x53\x58\x97\x93"
  6296. "\x23\x84\x62\x64\x33\x83\x27\x95"
  6297. "\x02\x88\x41\x97\x16\x93\x99\x37"
  6298. "\x51\x05\x82\x09\x74\x94\x45\x92",
  6299. .klen = 64,
  6300. .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
  6301. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6302. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6303. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6304. "\x10\x11\x12\x13\x14\x15\x16\x17"
  6305. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  6306. "\x20\x21\x22\x23\x24\x25\x26\x27"
  6307. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  6308. "\x30\x31\x32\x33\x34\x35\x36\x37"
  6309. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  6310. "\x40\x41\x42\x43\x44\x45\x46\x47"
  6311. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  6312. "\x50\x51\x52\x53\x54\x55\x56\x57"
  6313. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  6314. "\x60\x61\x62\x63\x64\x65\x66\x67"
  6315. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  6316. "\x70\x71\x72\x73\x74\x75\x76\x77"
  6317. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  6318. "\x80\x81\x82\x83\x84\x85\x86\x87"
  6319. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  6320. "\x90\x91\x92\x93\x94\x95\x96\x97"
  6321. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  6322. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  6323. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  6324. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  6325. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  6326. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6327. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  6328. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  6329. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  6330. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  6331. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  6332. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  6333. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  6334. "\x00\x01\x02\x03\x04\x05\x06\x07"
  6335. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6336. "\x10\x11\x12\x13\x14\x15\x16\x17"
  6337. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  6338. "\x20\x21\x22\x23\x24\x25\x26\x27"
  6339. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  6340. "\x30\x31\x32\x33\x34\x35\x36\x37"
  6341. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  6342. "\x40\x41\x42\x43\x44\x45\x46\x47"
  6343. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  6344. "\x50\x51\x52\x53\x54\x55\x56\x57"
  6345. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  6346. "\x60\x61\x62\x63\x64\x65\x66\x67"
  6347. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  6348. "\x70\x71\x72\x73\x74\x75\x76\x77"
  6349. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  6350. "\x80\x81\x82\x83\x84\x85\x86\x87"
  6351. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  6352. "\x90\x91\x92\x93\x94\x95\x96\x97"
  6353. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  6354. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  6355. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  6356. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  6357. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  6358. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6359. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  6360. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  6361. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  6362. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  6363. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  6364. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  6365. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  6366. .ilen = 512,
  6367. .result = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32"
  6368. "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f"
  6369. "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b"
  6370. "\x80\x1b\x82\xcb\x01\x59\x91\x7f"
  6371. "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3"
  6372. "\x34\xfd\xe6\x11\xf9\x33\x45\x12"
  6373. "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23"
  6374. "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7"
  6375. "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0"
  6376. "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78"
  6377. "\xcd\xec\x7d\xdc\x19\x9c\x72\x64"
  6378. "\x63\x0b\x38\x2e\x76\xdd\x2d\x36"
  6379. "\x49\xb0\x1d\xea\x78\x9e\x00\xca"
  6380. "\x20\xcc\x1b\x1e\x98\x74\xab\xed"
  6381. "\x79\xf7\xd0\x6c\xd8\x93\x80\x29"
  6382. "\xac\xa5\x5e\x34\xa9\xab\xa0\x55"
  6383. "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46"
  6384. "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae"
  6385. "\x25\x42\x17\xbf\x76\x8f\x1c\x3d"
  6386. "\xec\x9a\xda\x64\x96\xb5\x61\xff"
  6387. "\x99\xeb\x12\x96\x85\x82\x9d\xd5"
  6388. "\x81\x85\x14\xa8\x59\xac\x8c\x94"
  6389. "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba"
  6390. "\x82\xc6\x4d\xca\x86\xea\x53\x28"
  6391. "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79"
  6392. "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff"
  6393. "\x05\xca\x81\x7b\xda\xa2\xde\x63"
  6394. "\x3a\x10\xbe\xc2\xac\x32\xc4\x05"
  6395. "\x47\x7e\xef\x67\xe2\x5f\x5b\xae"
  6396. "\xed\xf1\x70\x34\x16\x9a\x07\x7b"
  6397. "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a"
  6398. "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd"
  6399. "\x93\x1f\x06\xba\xd4\x9a\x22\x69"
  6400. "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c"
  6401. "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6"
  6402. "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32"
  6403. "\xfd\x43\x7d\xda\x42\x51\x87\x43"
  6404. "\x9d\xf9\xef\xf4\x30\x97\xf8\x09"
  6405. "\x88\xfc\x3f\x93\x70\xc1\x4a\xec"
  6406. "\x27\x5f\x11\xac\x71\xc7\x48\x46"
  6407. "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56"
  6408. "\x0d\x4e\xb0\x32\x76\xce\x86\x81"
  6409. "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24"
  6410. "\xaf\xf7\x9a\xde\xff\x18\xac\x14"
  6411. "\x90\xc5\x01\x39\x34\x0f\x24\xf3"
  6412. "\x13\x2f\x5e\x4f\x30\x9a\x36\x40"
  6413. "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23"
  6414. "\x50\x88\x97\x40\x69\xb1\x37\xf5"
  6415. "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8"
  6416. "\x7b\x10\x20\xb9\x2b\x46\x83\x5b"
  6417. "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2"
  6418. "\x72\xb0\x97\x4e\x89\xb3\x48\x00"
  6419. "\xc1\x16\x73\x50\x77\xba\xa6\x65"
  6420. "\x20\x2d\xb0\x02\x27\x89\xda\x99"
  6421. "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6"
  6422. "\x2a\xda\x09\x12\x11\xaf\xe6\x57"
  6423. "\x01\x04\x8a\xff\x86\x8b\xac\xf8"
  6424. "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76"
  6425. "\xa3\x0e\x33\x74\x40\x18\x39\x72"
  6426. "\x66\x50\x31\xfd\x70\xdf\xe8\x51"
  6427. "\x96\x21\x36\xb2\x9b\xfa\x85\xd1"
  6428. "\x30\x05\xc8\x92\x98\x80\xff\x7a"
  6429. "\xaf\x43\x0b\xc5\x20\x41\x92\x20"
  6430. "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1",
  6431. .rlen = 512,
  6432. },
  6433. };
  6434. static struct cipher_testvec serpent_xts_dec_tv_template[] = {
  6435. /* Generated from AES-XTS test vectors */
  6436. /* same as enc vectors with input and result reversed */
  6437. {
  6438. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6439. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6440. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6441. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6442. .klen = 32,
  6443. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6444. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6445. .input = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64"
  6446. "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4"
  6447. "\x6a\x31\xc5\xf3\x00\xca\xb9\x16"
  6448. "\xde\xe2\x77\x66\xf7\xfe\x62\x08",
  6449. .ilen = 32,
  6450. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6451. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6452. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6453. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6454. .rlen = 32,
  6455. }, {
  6456. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  6457. "\x11\x11\x11\x11\x11\x11\x11\x11"
  6458. "\x22\x22\x22\x22\x22\x22\x22\x22"
  6459. "\x22\x22\x22\x22\x22\x22\x22\x22",
  6460. .klen = 32,
  6461. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  6462. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6463. .input = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98"
  6464. "\x41\x86\x12\xaf\xb3\xd7\x68\x13"
  6465. "\xed\x81\xcd\x06\x87\x43\x1a\xbb"
  6466. "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe",
  6467. .ilen = 32,
  6468. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  6469. "\x44\x44\x44\x44\x44\x44\x44\x44"
  6470. "\x44\x44\x44\x44\x44\x44\x44\x44"
  6471. "\x44\x44\x44\x44\x44\x44\x44\x44",
  6472. .rlen = 32,
  6473. }, {
  6474. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  6475. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  6476. "\x22\x22\x22\x22\x22\x22\x22\x22"
  6477. "\x22\x22\x22\x22\x22\x22\x22\x22",
  6478. .klen = 32,
  6479. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  6480. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6481. .input = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61"
  6482. "\xb6\x1c\x81\x8f\x2c\x87\x60\x89"
  6483. "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86"
  6484. "\xc1\x68\x45\xaa\x00\xe9\x24\xc5",
  6485. .ilen = 32,
  6486. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  6487. "\x44\x44\x44\x44\x44\x44\x44\x44"
  6488. "\x44\x44\x44\x44\x44\x44\x44\x44"
  6489. "\x44\x44\x44\x44\x44\x44\x44\x44",
  6490. .rlen = 32,
  6491. }, {
  6492. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  6493. "\x23\x53\x60\x28\x74\x71\x35\x26"
  6494. "\x31\x41\x59\x26\x53\x58\x97\x93"
  6495. "\x23\x84\x62\x64\x33\x83\x27\x95",
  6496. .klen = 32,
  6497. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6498. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6499. .input = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b"
  6500. "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53"
  6501. "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e"
  6502. "\x28\xca\xb0\x22\xb3\x85\x75\xf4"
  6503. "\x00\x5c\x75\x14\x06\xd6\x25\x82"
  6504. "\xe6\xcb\x08\xf7\x29\x90\x23\x8e"
  6505. "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3"
  6506. "\x80\x51\x67\xb5\x0b\x85\x69\xe8"
  6507. "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3"
  6508. "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0"
  6509. "\x63\x5a\x16\x0f\xf0\xce\x66\x1f"
  6510. "\x2c\x21\x07\xf1\xa4\x03\xa3\x44"
  6511. "\x41\x61\x87\x5d\x6b\xb3\xef\xd4"
  6512. "\xfc\xaa\x32\x7e\x55\x58\x04\x41"
  6513. "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a"
  6514. "\x55\x79\x4b\x6f\xcf\x89\xb9\x19"
  6515. "\xe5\x54\x13\x15\xb2\x1a\xfa\x15"
  6516. "\xc2\xf0\x06\x59\xfa\xa0\x25\x05"
  6517. "\x58\xfa\x43\x91\x16\x85\x40\xbb"
  6518. "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08"
  6519. "\xcd\x22\x22\x41\x11\x9f\x6c\x7c"
  6520. "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7"
  6521. "\xa0\x42\xa8\xde\xfc\xa3\xca\x98"
  6522. "\x4b\x43\xb1\xce\x4b\xbf\x01\x67"
  6523. "\x6e\x29\x60\xbd\x10\x14\x84\x82"
  6524. "\x83\x82\x0c\x63\x73\x92\x02\x7c"
  6525. "\x55\x37\x20\x80\x17\x51\xc8\xbc"
  6526. "\x46\x02\xcb\x38\x07\x6d\xe2\x85"
  6527. "\xaa\x29\xaf\x24\x58\x0d\xf0\x75"
  6528. "\x08\x0a\xa5\x34\x25\x16\xf3\x74"
  6529. "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29"
  6530. "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c"
  6531. "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e"
  6532. "\x8c\x2b\x4f\x54\x76\x47\x53\x8e"
  6533. "\xe8\x00\xec\x92\xb9\x55\xe6\xa2"
  6534. "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87"
  6535. "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21"
  6536. "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19"
  6537. "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9"
  6538. "\x94\x4e\x63\xc7\xae\xfc\xed\x47"
  6539. "\xe2\xfe\x7a\x63\x77\xfe\x97\x82"
  6540. "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80"
  6541. "\xec\x69\x41\xec\xa7\x8a\xe0\x2f"
  6542. "\xe3\x49\x26\xa2\x41\xb2\x08\x0f"
  6543. "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e"
  6544. "\x43\x42\x35\xd0\xcf\xec\x77\x67"
  6545. "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e"
  6546. "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50"
  6547. "\xab\x6c\x6b\xff\xea\x00\x67\xaa"
  6548. "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76"
  6549. "\x2b\x77\x3f\xbe\x12\x75\xfb\x92"
  6550. "\xc6\x89\x67\x4d\xca\xf7\xd4\x50"
  6551. "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6"
  6552. "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5"
  6553. "\x86\xad\x51\xcc\xd5\x96\xb8\xdc"
  6554. "\x03\x57\xe6\x98\x52\x2f\x61\x62"
  6555. "\xc4\x5c\x9c\x36\x71\x07\xfb\x94"
  6556. "\xe3\x02\xc4\x2b\x08\x75\xc7\x35"
  6557. "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1"
  6558. "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e"
  6559. "\x76\x87\x19\x04\x1a\x2f\x38\x3e"
  6560. "\xef\x91\x64\x1d\x18\x07\x4e\x31"
  6561. "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c"
  6562. "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd",
  6563. .ilen = 512,
  6564. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6565. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6566. "\x10\x11\x12\x13\x14\x15\x16\x17"
  6567. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  6568. "\x20\x21\x22\x23\x24\x25\x26\x27"
  6569. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  6570. "\x30\x31\x32\x33\x34\x35\x36\x37"
  6571. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  6572. "\x40\x41\x42\x43\x44\x45\x46\x47"
  6573. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  6574. "\x50\x51\x52\x53\x54\x55\x56\x57"
  6575. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  6576. "\x60\x61\x62\x63\x64\x65\x66\x67"
  6577. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  6578. "\x70\x71\x72\x73\x74\x75\x76\x77"
  6579. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  6580. "\x80\x81\x82\x83\x84\x85\x86\x87"
  6581. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  6582. "\x90\x91\x92\x93\x94\x95\x96\x97"
  6583. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  6584. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  6585. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  6586. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  6587. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  6588. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6589. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  6590. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  6591. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  6592. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  6593. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  6594. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  6595. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  6596. "\x00\x01\x02\x03\x04\x05\x06\x07"
  6597. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6598. "\x10\x11\x12\x13\x14\x15\x16\x17"
  6599. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  6600. "\x20\x21\x22\x23\x24\x25\x26\x27"
  6601. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  6602. "\x30\x31\x32\x33\x34\x35\x36\x37"
  6603. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  6604. "\x40\x41\x42\x43\x44\x45\x46\x47"
  6605. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  6606. "\x50\x51\x52\x53\x54\x55\x56\x57"
  6607. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  6608. "\x60\x61\x62\x63\x64\x65\x66\x67"
  6609. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  6610. "\x70\x71\x72\x73\x74\x75\x76\x77"
  6611. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  6612. "\x80\x81\x82\x83\x84\x85\x86\x87"
  6613. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  6614. "\x90\x91\x92\x93\x94\x95\x96\x97"
  6615. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  6616. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  6617. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  6618. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  6619. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  6620. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6621. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  6622. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  6623. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  6624. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  6625. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  6626. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  6627. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  6628. .rlen = 512,
  6629. }, {
  6630. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  6631. "\x23\x53\x60\x28\x74\x71\x35\x26"
  6632. "\x62\x49\x77\x57\x24\x70\x93\x69"
  6633. "\x99\x59\x57\x49\x66\x96\x76\x27"
  6634. "\x31\x41\x59\x26\x53\x58\x97\x93"
  6635. "\x23\x84\x62\x64\x33\x83\x27\x95"
  6636. "\x02\x88\x41\x97\x16\x93\x99\x37"
  6637. "\x51\x05\x82\x09\x74\x94\x45\x92",
  6638. .klen = 64,
  6639. .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
  6640. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6641. .input = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32"
  6642. "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f"
  6643. "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b"
  6644. "\x80\x1b\x82\xcb\x01\x59\x91\x7f"
  6645. "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3"
  6646. "\x34\xfd\xe6\x11\xf9\x33\x45\x12"
  6647. "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23"
  6648. "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7"
  6649. "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0"
  6650. "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78"
  6651. "\xcd\xec\x7d\xdc\x19\x9c\x72\x64"
  6652. "\x63\x0b\x38\x2e\x76\xdd\x2d\x36"
  6653. "\x49\xb0\x1d\xea\x78\x9e\x00\xca"
  6654. "\x20\xcc\x1b\x1e\x98\x74\xab\xed"
  6655. "\x79\xf7\xd0\x6c\xd8\x93\x80\x29"
  6656. "\xac\xa5\x5e\x34\xa9\xab\xa0\x55"
  6657. "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46"
  6658. "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae"
  6659. "\x25\x42\x17\xbf\x76\x8f\x1c\x3d"
  6660. "\xec\x9a\xda\x64\x96\xb5\x61\xff"
  6661. "\x99\xeb\x12\x96\x85\x82\x9d\xd5"
  6662. "\x81\x85\x14\xa8\x59\xac\x8c\x94"
  6663. "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba"
  6664. "\x82\xc6\x4d\xca\x86\xea\x53\x28"
  6665. "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79"
  6666. "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff"
  6667. "\x05\xca\x81\x7b\xda\xa2\xde\x63"
  6668. "\x3a\x10\xbe\xc2\xac\x32\xc4\x05"
  6669. "\x47\x7e\xef\x67\xe2\x5f\x5b\xae"
  6670. "\xed\xf1\x70\x34\x16\x9a\x07\x7b"
  6671. "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a"
  6672. "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd"
  6673. "\x93\x1f\x06\xba\xd4\x9a\x22\x69"
  6674. "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c"
  6675. "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6"
  6676. "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32"
  6677. "\xfd\x43\x7d\xda\x42\x51\x87\x43"
  6678. "\x9d\xf9\xef\xf4\x30\x97\xf8\x09"
  6679. "\x88\xfc\x3f\x93\x70\xc1\x4a\xec"
  6680. "\x27\x5f\x11\xac\x71\xc7\x48\x46"
  6681. "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56"
  6682. "\x0d\x4e\xb0\x32\x76\xce\x86\x81"
  6683. "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24"
  6684. "\xaf\xf7\x9a\xde\xff\x18\xac\x14"
  6685. "\x90\xc5\x01\x39\x34\x0f\x24\xf3"
  6686. "\x13\x2f\x5e\x4f\x30\x9a\x36\x40"
  6687. "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23"
  6688. "\x50\x88\x97\x40\x69\xb1\x37\xf5"
  6689. "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8"
  6690. "\x7b\x10\x20\xb9\x2b\x46\x83\x5b"
  6691. "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2"
  6692. "\x72\xb0\x97\x4e\x89\xb3\x48\x00"
  6693. "\xc1\x16\x73\x50\x77\xba\xa6\x65"
  6694. "\x20\x2d\xb0\x02\x27\x89\xda\x99"
  6695. "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6"
  6696. "\x2a\xda\x09\x12\x11\xaf\xe6\x57"
  6697. "\x01\x04\x8a\xff\x86\x8b\xac\xf8"
  6698. "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76"
  6699. "\xa3\x0e\x33\x74\x40\x18\x39\x72"
  6700. "\x66\x50\x31\xfd\x70\xdf\xe8\x51"
  6701. "\x96\x21\x36\xb2\x9b\xfa\x85\xd1"
  6702. "\x30\x05\xc8\x92\x98\x80\xff\x7a"
  6703. "\xaf\x43\x0b\xc5\x20\x41\x92\x20"
  6704. "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1",
  6705. .ilen = 512,
  6706. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6707. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6708. "\x10\x11\x12\x13\x14\x15\x16\x17"
  6709. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  6710. "\x20\x21\x22\x23\x24\x25\x26\x27"
  6711. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  6712. "\x30\x31\x32\x33\x34\x35\x36\x37"
  6713. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  6714. "\x40\x41\x42\x43\x44\x45\x46\x47"
  6715. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  6716. "\x50\x51\x52\x53\x54\x55\x56\x57"
  6717. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  6718. "\x60\x61\x62\x63\x64\x65\x66\x67"
  6719. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  6720. "\x70\x71\x72\x73\x74\x75\x76\x77"
  6721. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  6722. "\x80\x81\x82\x83\x84\x85\x86\x87"
  6723. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  6724. "\x90\x91\x92\x93\x94\x95\x96\x97"
  6725. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  6726. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  6727. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  6728. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  6729. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  6730. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6731. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  6732. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  6733. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  6734. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  6735. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  6736. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  6737. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  6738. "\x00\x01\x02\x03\x04\x05\x06\x07"
  6739. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6740. "\x10\x11\x12\x13\x14\x15\x16\x17"
  6741. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  6742. "\x20\x21\x22\x23\x24\x25\x26\x27"
  6743. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  6744. "\x30\x31\x32\x33\x34\x35\x36\x37"
  6745. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  6746. "\x40\x41\x42\x43\x44\x45\x46\x47"
  6747. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  6748. "\x50\x51\x52\x53\x54\x55\x56\x57"
  6749. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  6750. "\x60\x61\x62\x63\x64\x65\x66\x67"
  6751. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  6752. "\x70\x71\x72\x73\x74\x75\x76\x77"
  6753. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  6754. "\x80\x81\x82\x83\x84\x85\x86\x87"
  6755. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  6756. "\x90\x91\x92\x93\x94\x95\x96\x97"
  6757. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  6758. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  6759. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  6760. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  6761. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  6762. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6763. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  6764. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  6765. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  6766. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  6767. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  6768. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  6769. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  6770. .rlen = 512,
  6771. },
  6772. };
  6773. /* Cast6 test vectors from RFC 2612 */
  6774. #define CAST6_ENC_TEST_VECTORS 3
  6775. #define CAST6_DEC_TEST_VECTORS 3
  6776. static struct cipher_testvec cast6_enc_tv_template[] = {
  6777. {
  6778. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  6779. "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
  6780. .klen = 16,
  6781. .input = zeroed_string,
  6782. .ilen = 16,
  6783. .result = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
  6784. "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
  6785. .rlen = 16,
  6786. }, {
  6787. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  6788. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  6789. "\xba\xc7\x7a\x77\x17\x94\x28\x63",
  6790. .klen = 24,
  6791. .input = zeroed_string,
  6792. .ilen = 16,
  6793. .result = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
  6794. "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
  6795. .rlen = 16,
  6796. }, {
  6797. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  6798. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  6799. "\x8d\x7c\x47\xce\x26\x49\x08\x46"
  6800. "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
  6801. .klen = 32,
  6802. .input = zeroed_string,
  6803. .ilen = 16,
  6804. .result = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
  6805. "\xc9\x87\x01\x36\x55\x33\x17\xfa",
  6806. .rlen = 16,
  6807. },
  6808. };
  6809. static struct cipher_testvec cast6_dec_tv_template[] = {
  6810. {
  6811. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  6812. "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
  6813. .klen = 16,
  6814. .input = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
  6815. "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
  6816. .ilen = 16,
  6817. .result = zeroed_string,
  6818. .rlen = 16,
  6819. }, {
  6820. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  6821. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  6822. "\xba\xc7\x7a\x77\x17\x94\x28\x63",
  6823. .klen = 24,
  6824. .input = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
  6825. "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
  6826. .ilen = 16,
  6827. .result = zeroed_string,
  6828. .rlen = 16,
  6829. }, {
  6830. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  6831. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  6832. "\x8d\x7c\x47\xce\x26\x49\x08\x46"
  6833. "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
  6834. .klen = 32,
  6835. .input = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
  6836. "\xc9\x87\x01\x36\x55\x33\x17\xfa",
  6837. .ilen = 16,
  6838. .result = zeroed_string,
  6839. .rlen = 16,
  6840. },
  6841. };
  6842. /*
  6843. * AES test vectors.
  6844. */
  6845. #define AES_ENC_TEST_VECTORS 3
  6846. #define AES_DEC_TEST_VECTORS 3
  6847. #define AES_CBC_ENC_TEST_VECTORS 4
  6848. #define AES_CBC_DEC_TEST_VECTORS 4
  6849. #define HMAC_SHA1_AES_CBC_ENC_TEST_VECTORS 7
  6850. #define HMAC_SHA256_AES_CBC_ENC_TEST_VECTORS 7
  6851. #define HMAC_SHA512_AES_CBC_ENC_TEST_VECTORS 7
  6852. #define AES_LRW_ENC_TEST_VECTORS 8
  6853. #define AES_LRW_DEC_TEST_VECTORS 8
  6854. #define AES_XTS_ENC_TEST_VECTORS 5
  6855. #define AES_XTS_DEC_TEST_VECTORS 5
  6856. #define AES_CTR_ENC_TEST_VECTORS 3
  6857. #define AES_CTR_DEC_TEST_VECTORS 3
  6858. #define AES_OFB_ENC_TEST_VECTORS 1
  6859. #define AES_OFB_DEC_TEST_VECTORS 1
  6860. #define AES_CTR_3686_ENC_TEST_VECTORS 7
  6861. #define AES_CTR_3686_DEC_TEST_VECTORS 6
  6862. #define AES_GCM_ENC_TEST_VECTORS 9
  6863. #define AES_GCM_DEC_TEST_VECTORS 8
  6864. #define AES_GCM_4106_ENC_TEST_VECTORS 7
  6865. #define AES_GCM_4106_DEC_TEST_VECTORS 7
  6866. #define AES_CCM_ENC_TEST_VECTORS 7
  6867. #define AES_CCM_DEC_TEST_VECTORS 7
  6868. #define AES_CCM_4309_ENC_TEST_VECTORS 7
  6869. #define AES_CCM_4309_DEC_TEST_VECTORS 10
  6870. static struct cipher_testvec aes_enc_tv_template[] = {
  6871. { /* From FIPS-197 */
  6872. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6873. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  6874. .klen = 16,
  6875. .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
  6876. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  6877. .ilen = 16,
  6878. .result = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
  6879. "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
  6880. .rlen = 16,
  6881. }, {
  6882. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6883. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6884. "\x10\x11\x12\x13\x14\x15\x16\x17",
  6885. .klen = 24,
  6886. .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
  6887. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  6888. .ilen = 16,
  6889. .result = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
  6890. "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
  6891. .rlen = 16,
  6892. }, {
  6893. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6894. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6895. "\x10\x11\x12\x13\x14\x15\x16\x17"
  6896. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  6897. .klen = 32,
  6898. .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
  6899. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  6900. .ilen = 16,
  6901. .result = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
  6902. "\xea\xfc\x49\x90\x4b\x49\x60\x89",
  6903. .rlen = 16,
  6904. },
  6905. };
  6906. static struct cipher_testvec aes_dec_tv_template[] = {
  6907. { /* From FIPS-197 */
  6908. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6909. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  6910. .klen = 16,
  6911. .input = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
  6912. "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
  6913. .ilen = 16,
  6914. .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
  6915. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  6916. .rlen = 16,
  6917. }, {
  6918. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6919. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6920. "\x10\x11\x12\x13\x14\x15\x16\x17",
  6921. .klen = 24,
  6922. .input = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
  6923. "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
  6924. .ilen = 16,
  6925. .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
  6926. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  6927. .rlen = 16,
  6928. }, {
  6929. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6930. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6931. "\x10\x11\x12\x13\x14\x15\x16\x17"
  6932. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  6933. .klen = 32,
  6934. .input = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
  6935. "\xea\xfc\x49\x90\x4b\x49\x60\x89",
  6936. .ilen = 16,
  6937. .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
  6938. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  6939. .rlen = 16,
  6940. },
  6941. };
  6942. static struct cipher_testvec aes_cbc_enc_tv_template[] = {
  6943. { /* From RFC 3602 */
  6944. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  6945. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  6946. .klen = 16,
  6947. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  6948. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  6949. .input = "Single block msg",
  6950. .ilen = 16,
  6951. .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
  6952. "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
  6953. .rlen = 16,
  6954. }, {
  6955. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  6956. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  6957. .klen = 16,
  6958. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  6959. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  6960. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6961. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6962. "\x10\x11\x12\x13\x14\x15\x16\x17"
  6963. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  6964. .ilen = 32,
  6965. .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
  6966. "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
  6967. "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
  6968. "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
  6969. .rlen = 32,
  6970. }, { /* From NIST SP800-38A */
  6971. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  6972. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  6973. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  6974. .klen = 24,
  6975. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6976. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  6977. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  6978. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  6979. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  6980. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  6981. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  6982. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  6983. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  6984. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  6985. .ilen = 64,
  6986. .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
  6987. "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
  6988. "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
  6989. "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
  6990. "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
  6991. "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
  6992. "\x08\xb0\xe2\x79\x88\x59\x88\x81"
  6993. "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
  6994. .rlen = 64,
  6995. }, {
  6996. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  6997. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  6998. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  6999. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  7000. .klen = 32,
  7001. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7002. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  7003. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  7004. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  7005. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  7006. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  7007. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  7008. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  7009. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  7010. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  7011. .ilen = 64,
  7012. .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
  7013. "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
  7014. "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
  7015. "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
  7016. "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
  7017. "\xa5\x30\xe2\x63\x04\x23\x14\x61"
  7018. "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
  7019. "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
  7020. .rlen = 64,
  7021. },
  7022. };
  7023. static struct cipher_testvec aes_cbc_dec_tv_template[] = {
  7024. { /* From RFC 3602 */
  7025. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  7026. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  7027. .klen = 16,
  7028. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  7029. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  7030. .input = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
  7031. "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
  7032. .ilen = 16,
  7033. .result = "Single block msg",
  7034. .rlen = 16,
  7035. }, {
  7036. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  7037. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  7038. .klen = 16,
  7039. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  7040. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  7041. .input = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
  7042. "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
  7043. "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
  7044. "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
  7045. .ilen = 32,
  7046. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7047. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  7048. "\x10\x11\x12\x13\x14\x15\x16\x17"
  7049. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  7050. .rlen = 32,
  7051. }, { /* From NIST SP800-38A */
  7052. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  7053. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  7054. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  7055. .klen = 24,
  7056. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7057. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  7058. .input = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
  7059. "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
  7060. "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
  7061. "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
  7062. "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
  7063. "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
  7064. "\x08\xb0\xe2\x79\x88\x59\x88\x81"
  7065. "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
  7066. .ilen = 64,
  7067. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  7068. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  7069. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  7070. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  7071. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  7072. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  7073. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  7074. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  7075. .rlen = 64,
  7076. }, {
  7077. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  7078. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  7079. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  7080. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  7081. .klen = 32,
  7082. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7083. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  7084. .input = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
  7085. "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
  7086. "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
  7087. "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
  7088. "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
  7089. "\xa5\x30\xe2\x63\x04\x23\x14\x61"
  7090. "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
  7091. "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
  7092. .ilen = 64,
  7093. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  7094. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  7095. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  7096. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  7097. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  7098. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  7099. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  7100. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  7101. .rlen = 64,
  7102. },
  7103. };
  7104. static struct aead_testvec hmac_sha1_aes_cbc_enc_tv_template[] = {
  7105. { /* RFC 3602 Case 1 */
  7106. #ifdef __LITTLE_ENDIAN
  7107. .key = "\x08\x00" /* rta length */
  7108. "\x01\x00" /* rta type */
  7109. #else
  7110. .key = "\x00\x08" /* rta length */
  7111. "\x00\x01" /* rta type */
  7112. #endif
  7113. "\x00\x00\x00\x10" /* enc key length */
  7114. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7115. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7116. "\x00\x00\x00\x00"
  7117. "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  7118. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  7119. .klen = 8 + 20 + 16,
  7120. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  7121. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  7122. .input = "Single block msg",
  7123. .ilen = 16,
  7124. .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
  7125. "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
  7126. "\x1b\x13\xcb\xaf\x89\x5e\xe1\x2c"
  7127. "\x13\xc5\x2e\xa3\xcc\xed\xdc\xb5"
  7128. "\x03\x71\xa2\x06",
  7129. .rlen = 16 + 20,
  7130. }, { /* RFC 3602 Case 2 */
  7131. #ifdef __LITTLE_ENDIAN
  7132. .key = "\x08\x00" /* rta length */
  7133. "\x01\x00" /* rta type */
  7134. #else
  7135. .key = "\x00\x08" /* rta length */
  7136. "\x00\x01" /* rta type */
  7137. #endif
  7138. "\x00\x00\x00\x10" /* enc key length */
  7139. "\x20\x21\x22\x23\x24\x25\x26\x27"
  7140. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  7141. "\x30\x31\x32\x33"
  7142. "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  7143. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  7144. .klen = 8 + 20 + 16,
  7145. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  7146. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  7147. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7148. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  7149. "\x10\x11\x12\x13\x14\x15\x16\x17"
  7150. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  7151. .ilen = 32,
  7152. .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
  7153. "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
  7154. "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
  7155. "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
  7156. "\xad\x9b\x4c\x5c\x85\xe1\xda\xae"
  7157. "\xee\x81\x4e\xd7\xdb\x74\xcf\x58"
  7158. "\x65\x39\xf8\xde",
  7159. .rlen = 32 + 20,
  7160. }, { /* RFC 3602 Case 3 */
  7161. #ifdef __LITTLE_ENDIAN
  7162. .key = "\x08\x00" /* rta length */
  7163. "\x01\x00" /* rta type */
  7164. #else
  7165. .key = "\x00\x08" /* rta length */
  7166. "\x00\x01" /* rta type */
  7167. #endif
  7168. "\x00\x00\x00\x10" /* enc key length */
  7169. "\x11\x22\x33\x44\x55\x66\x77\x88"
  7170. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  7171. "\x22\x33\x44\x55"
  7172. "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
  7173. "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
  7174. .klen = 8 + 20 + 16,
  7175. .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
  7176. "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
  7177. .input = "This is a 48-byte message (exactly 3 AES blocks)",
  7178. .ilen = 48,
  7179. .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
  7180. "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
  7181. "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
  7182. "\x50\x69\x39\x27\x67\x72\xf8\xd5"
  7183. "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
  7184. "\x85\x79\x69\x5d\x83\xba\x26\x84"
  7185. "\xc2\xec\x0c\xf8\x7f\x05\xba\xca"
  7186. "\xff\xee\x4c\xd0\x93\xe6\x36\x7f"
  7187. "\x8d\x62\xf2\x1e",
  7188. .rlen = 48 + 20,
  7189. }, { /* RFC 3602 Case 4 */
  7190. #ifdef __LITTLE_ENDIAN
  7191. .key = "\x08\x00" /* rta length */
  7192. "\x01\x00" /* rta type */
  7193. #else
  7194. .key = "\x00\x08" /* rta length */
  7195. "\x00\x01" /* rta type */
  7196. #endif
  7197. "\x00\x00\x00\x10" /* enc key length */
  7198. "\x11\x22\x33\x44\x55\x66\x77\x88"
  7199. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  7200. "\x22\x33\x44\x55"
  7201. "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
  7202. "\xbc\x46\x90\x3d\xba\x29\x03\x49",
  7203. .klen = 8 + 20 + 16,
  7204. .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
  7205. "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
  7206. .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  7207. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  7208. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  7209. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  7210. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  7211. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  7212. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  7213. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
  7214. .ilen = 64,
  7215. .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
  7216. "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
  7217. "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
  7218. "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
  7219. "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
  7220. "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
  7221. "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
  7222. "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
  7223. "\x1c\x45\x57\xa9\x56\xcb\xa9\x2d"
  7224. "\x18\xac\xf1\xc7\x5d\xd1\xcd\x0d"
  7225. "\x1d\xbe\xc6\xe9",
  7226. .rlen = 64 + 20,
  7227. }, { /* RFC 3602 Case 5 */
  7228. #ifdef __LITTLE_ENDIAN
  7229. .key = "\x08\x00" /* rta length */
  7230. "\x01\x00" /* rta type */
  7231. #else
  7232. .key = "\x00\x08" /* rta length */
  7233. "\x00\x01" /* rta type */
  7234. #endif
  7235. "\x00\x00\x00\x10" /* enc key length */
  7236. "\x11\x22\x33\x44\x55\x66\x77\x88"
  7237. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  7238. "\x22\x33\x44\x55"
  7239. "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
  7240. "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
  7241. .klen = 8 + 20 + 16,
  7242. .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
  7243. "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
  7244. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01",
  7245. .alen = 8,
  7246. .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
  7247. "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
  7248. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  7249. "\x10\x11\x12\x13\x14\x15\x16\x17"
  7250. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  7251. "\x20\x21\x22\x23\x24\x25\x26\x27"
  7252. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  7253. "\x30\x31\x32\x33\x34\x35\x36\x37"
  7254. "\x01\x02\x03\x04\x05\x06\x07\x08"
  7255. "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
  7256. .ilen = 80,
  7257. .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
  7258. "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
  7259. "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
  7260. "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
  7261. "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
  7262. "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
  7263. "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
  7264. "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
  7265. "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
  7266. "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
  7267. "\x58\xc6\x84\x75\xe4\xe9\x6b\x0c"
  7268. "\xe1\xc5\x0b\x73\x4d\x82\x55\xa8"
  7269. "\x85\xe1\x59\xf7",
  7270. .rlen = 80 + 20,
  7271. }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
  7272. #ifdef __LITTLE_ENDIAN
  7273. .key = "\x08\x00" /* rta length */
  7274. "\x01\x00" /* rta type */
  7275. #else
  7276. .key = "\x00\x08" /* rta length */
  7277. "\x00\x01" /* rta type */
  7278. #endif
  7279. "\x00\x00\x00\x18" /* enc key length */
  7280. "\x11\x22\x33\x44\x55\x66\x77\x88"
  7281. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  7282. "\x22\x33\x44\x55"
  7283. "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  7284. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  7285. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  7286. .klen = 8 + 20 + 24,
  7287. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7288. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  7289. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  7290. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  7291. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  7292. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  7293. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  7294. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  7295. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  7296. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  7297. .ilen = 64,
  7298. .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
  7299. "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
  7300. "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
  7301. "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
  7302. "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
  7303. "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
  7304. "\x08\xb0\xe2\x79\x88\x59\x88\x81"
  7305. "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
  7306. "\x73\xe3\x19\x3f\x8b\xc9\xc6\xf4"
  7307. "\x5a\xf1\x5b\xa8\x98\x07\xc5\x36"
  7308. "\x47\x4c\xfc\x36",
  7309. .rlen = 64 + 20,
  7310. }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
  7311. #ifdef __LITTLE_ENDIAN
  7312. .key = "\x08\x00" /* rta length */
  7313. "\x01\x00" /* rta type */
  7314. #else
  7315. .key = "\x00\x08" /* rta length */
  7316. "\x00\x01" /* rta type */
  7317. #endif
  7318. "\x00\x00\x00\x20" /* enc key length */
  7319. "\x11\x22\x33\x44\x55\x66\x77\x88"
  7320. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  7321. "\x22\x33\x44\x55"
  7322. "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  7323. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  7324. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  7325. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  7326. .klen = 8 + 20 + 32,
  7327. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7328. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  7329. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  7330. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  7331. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  7332. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  7333. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  7334. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  7335. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  7336. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  7337. .ilen = 64,
  7338. .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
  7339. "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
  7340. "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
  7341. "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
  7342. "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
  7343. "\xa5\x30\xe2\x63\x04\x23\x14\x61"
  7344. "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
  7345. "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
  7346. "\xa3\xe8\x9b\x17\xe3\xf4\x7f\xde"
  7347. "\x1b\x9f\xc6\x81\x26\x43\x4a\x87"
  7348. "\x51\xee\xd6\x4e",
  7349. .rlen = 64 + 20,
  7350. },
  7351. };
  7352. static struct aead_testvec hmac_sha256_aes_cbc_enc_tv_template[] = {
  7353. { /* RFC 3602 Case 1 */
  7354. #ifdef __LITTLE_ENDIAN
  7355. .key = "\x08\x00" /* rta length */
  7356. "\x01\x00" /* rta type */
  7357. #else
  7358. .key = "\x00\x08" /* rta length */
  7359. "\x00\x01" /* rta type */
  7360. #endif
  7361. "\x00\x00\x00\x10" /* enc key length */
  7362. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7363. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7364. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7365. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7366. "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  7367. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  7368. .klen = 8 + 32 + 16,
  7369. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  7370. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  7371. .input = "Single block msg",
  7372. .ilen = 16,
  7373. .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
  7374. "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
  7375. "\xcc\xde\x2d\x6a\xae\xf1\x0b\xcc"
  7376. "\x38\x06\x38\x51\xb4\xb8\xf3\x5b"
  7377. "\x5c\x34\xa6\xa3\x6e\x0b\x05\xe5"
  7378. "\x6a\x6d\x44\xaa\x26\xa8\x44\xa5",
  7379. .rlen = 16 + 32,
  7380. }, { /* RFC 3602 Case 2 */
  7381. #ifdef __LITTLE_ENDIAN
  7382. .key = "\x08\x00" /* rta length */
  7383. "\x01\x00" /* rta type */
  7384. #else
  7385. .key = "\x00\x08" /* rta length */
  7386. "\x00\x01" /* rta type */
  7387. #endif
  7388. "\x00\x00\x00\x10" /* enc key length */
  7389. "\x20\x21\x22\x23\x24\x25\x26\x27"
  7390. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  7391. "\x30\x31\x32\x33\x34\x35\x36\x37"
  7392. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  7393. "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  7394. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  7395. .klen = 8 + 32 + 16,
  7396. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  7397. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  7398. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7399. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  7400. "\x10\x11\x12\x13\x14\x15\x16\x17"
  7401. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  7402. .ilen = 32,
  7403. .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
  7404. "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
  7405. "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
  7406. "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
  7407. "\xf5\x33\x53\xf3\x68\x85\x2a\x99"
  7408. "\x0e\x06\x58\x8f\xba\xf6\x06\xda"
  7409. "\x49\x69\x0d\x5b\xd4\x36\x06\x62"
  7410. "\x35\x5e\x54\x58\x53\x4d\xdf\xbf",
  7411. .rlen = 32 + 32,
  7412. }, { /* RFC 3602 Case 3 */
  7413. #ifdef __LITTLE_ENDIAN
  7414. .key = "\x08\x00" /* rta length */
  7415. "\x01\x00" /* rta type */
  7416. #else
  7417. .key = "\x00\x08" /* rta length */
  7418. "\x00\x01" /* rta type */
  7419. #endif
  7420. "\x00\x00\x00\x10" /* enc key length */
  7421. "\x11\x22\x33\x44\x55\x66\x77\x88"
  7422. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  7423. "\x22\x33\x44\x55\x66\x77\x88\x99"
  7424. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  7425. "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
  7426. "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
  7427. .klen = 8 + 32 + 16,
  7428. .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
  7429. "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
  7430. .input = "This is a 48-byte message (exactly 3 AES blocks)",
  7431. .ilen = 48,
  7432. .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
  7433. "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
  7434. "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
  7435. "\x50\x69\x39\x27\x67\x72\xf8\xd5"
  7436. "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
  7437. "\x85\x79\x69\x5d\x83\xba\x26\x84"
  7438. "\x68\xb9\x3e\x90\x38\xa0\x88\x01"
  7439. "\xe7\xc6\xce\x10\x31\x2f\x9b\x1d"
  7440. "\x24\x78\xfb\xbe\x02\xe0\x4f\x40"
  7441. "\x10\xbd\xaa\xc6\xa7\x79\xe0\x1a",
  7442. .rlen = 48 + 32,
  7443. }, { /* RFC 3602 Case 4 */
  7444. #ifdef __LITTLE_ENDIAN
  7445. .key = "\x08\x00" /* rta length */
  7446. "\x01\x00" /* rta type */
  7447. #else
  7448. .key = "\x00\x08" /* rta length */
  7449. "\x00\x01" /* rta type */
  7450. #endif
  7451. "\x00\x00\x00\x10" /* enc key length */
  7452. "\x11\x22\x33\x44\x55\x66\x77\x88"
  7453. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  7454. "\x22\x33\x44\x55\x66\x77\x88\x99"
  7455. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  7456. "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
  7457. "\xbc\x46\x90\x3d\xba\x29\x03\x49",
  7458. .klen = 8 + 32 + 16,
  7459. .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
  7460. "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
  7461. .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  7462. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  7463. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  7464. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  7465. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  7466. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  7467. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  7468. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
  7469. .ilen = 64,
  7470. .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
  7471. "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
  7472. "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
  7473. "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
  7474. "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
  7475. "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
  7476. "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
  7477. "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
  7478. "\x7a\x1b\xd4\x3c\xdb\x17\x95\xe2"
  7479. "\xe0\x93\xec\xc9\x9f\xf7\xce\xd8"
  7480. "\x3f\x54\xe2\x49\x39\xe3\x71\x25"
  7481. "\x2b\x6c\xe9\x5d\xec\xec\x2b\x64",
  7482. .rlen = 64 + 32,
  7483. }, { /* RFC 3602 Case 5 */
  7484. #ifdef __LITTLE_ENDIAN
  7485. .key = "\x08\x00" /* rta length */
  7486. "\x01\x00" /* rta type */
  7487. #else
  7488. .key = "\x00\x08" /* rta length */
  7489. "\x00\x01" /* rta type */
  7490. #endif
  7491. "\x00\x00\x00\x10" /* enc key length */
  7492. "\x11\x22\x33\x44\x55\x66\x77\x88"
  7493. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  7494. "\x22\x33\x44\x55\x66\x77\x88\x99"
  7495. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  7496. "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
  7497. "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
  7498. .klen = 8 + 32 + 16,
  7499. .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
  7500. "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
  7501. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01",
  7502. .alen = 8,
  7503. .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
  7504. "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
  7505. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  7506. "\x10\x11\x12\x13\x14\x15\x16\x17"
  7507. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  7508. "\x20\x21\x22\x23\x24\x25\x26\x27"
  7509. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  7510. "\x30\x31\x32\x33\x34\x35\x36\x37"
  7511. "\x01\x02\x03\x04\x05\x06\x07\x08"
  7512. "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
  7513. .ilen = 80,
  7514. .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
  7515. "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
  7516. "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
  7517. "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
  7518. "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
  7519. "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
  7520. "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
  7521. "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
  7522. "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
  7523. "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
  7524. "\xbb\xd4\x0f\xbe\xa3\x3b\x4c\xb8"
  7525. "\x3a\xd2\xe1\x03\x86\xa5\x59\xb7"
  7526. "\x73\xc3\x46\x20\x2c\xb1\xef\x68"
  7527. "\xbb\x8a\x32\x7e\x12\x8c\x69\xcf",
  7528. .rlen = 80 + 32,
  7529. }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
  7530. #ifdef __LITTLE_ENDIAN
  7531. .key = "\x08\x00" /* rta length */
  7532. "\x01\x00" /* rta type */
  7533. #else
  7534. .key = "\x00\x08" /* rta length */
  7535. "\x00\x01" /* rta type */
  7536. #endif
  7537. "\x00\x00\x00\x18" /* enc key length */
  7538. "\x11\x22\x33\x44\x55\x66\x77\x88"
  7539. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  7540. "\x22\x33\x44\x55\x66\x77\x88\x99"
  7541. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  7542. "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  7543. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  7544. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  7545. .klen = 8 + 32 + 24,
  7546. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7547. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  7548. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  7549. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  7550. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  7551. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  7552. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  7553. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  7554. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  7555. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  7556. .ilen = 64,
  7557. .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
  7558. "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
  7559. "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
  7560. "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
  7561. "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
  7562. "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
  7563. "\x08\xb0\xe2\x79\x88\x59\x88\x81"
  7564. "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
  7565. "\x2f\xee\x5f\xdb\x66\xfe\x79\x09"
  7566. "\x61\x81\x31\xea\x5b\x3d\x8e\xfb"
  7567. "\xca\x71\x85\x93\xf7\x85\x55\x8b"
  7568. "\x7a\xe4\x94\xca\x8b\xba\x19\x33",
  7569. .rlen = 64 + 32,
  7570. }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
  7571. #ifdef __LITTLE_ENDIAN
  7572. .key = "\x08\x00" /* rta length */
  7573. "\x01\x00" /* rta type */
  7574. #else
  7575. .key = "\x00\x08" /* rta length */
  7576. "\x00\x01" /* rta type */
  7577. #endif
  7578. "\x00\x00\x00\x20" /* enc key length */
  7579. "\x11\x22\x33\x44\x55\x66\x77\x88"
  7580. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  7581. "\x22\x33\x44\x55\x66\x77\x88\x99"
  7582. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  7583. "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  7584. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  7585. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  7586. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  7587. .klen = 8 + 32 + 32,
  7588. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7589. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  7590. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  7591. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  7592. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  7593. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  7594. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  7595. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  7596. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  7597. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  7598. .ilen = 64,
  7599. .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
  7600. "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
  7601. "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
  7602. "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
  7603. "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
  7604. "\xa5\x30\xe2\x63\x04\x23\x14\x61"
  7605. "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
  7606. "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
  7607. "\x24\x29\xed\xc2\x31\x49\xdb\xb1"
  7608. "\x8f\x74\xbd\x17\x92\x03\xbe\x8f"
  7609. "\xf3\x61\xde\x1c\xe9\xdb\xcd\xd0"
  7610. "\xcc\xce\xe9\x85\x57\xcf\x6f\x5f",
  7611. .rlen = 64 + 32,
  7612. },
  7613. };
  7614. static struct aead_testvec hmac_sha512_aes_cbc_enc_tv_template[] = {
  7615. { /* RFC 3602 Case 1 */
  7616. #ifdef __LITTLE_ENDIAN
  7617. .key = "\x08\x00" /* rta length */
  7618. "\x01\x00" /* rta type */
  7619. #else
  7620. .key = "\x00\x08" /* rta length */
  7621. "\x00\x01" /* rta type */
  7622. #endif
  7623. "\x00\x00\x00\x10" /* enc key length */
  7624. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7625. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7626. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7627. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7628. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7629. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7630. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7631. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7632. "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  7633. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  7634. .klen = 8 + 64 + 16,
  7635. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  7636. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  7637. .input = "Single block msg",
  7638. .ilen = 16,
  7639. .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
  7640. "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
  7641. "\x3f\xdc\xad\x90\x03\x63\x5e\x68"
  7642. "\xc3\x13\xdd\xa4\x5c\x4d\x54\xa7"
  7643. "\x19\x6e\x03\x75\x2b\xa1\x62\xce"
  7644. "\xe0\xc6\x96\x75\xb2\x14\xca\x96"
  7645. "\xec\xbd\x50\x08\x07\x64\x1a\x49"
  7646. "\xe8\x9a\x7c\x06\x3d\xcb\xff\xb2"
  7647. "\xfa\x20\x89\xdd\x9c\xac\x9e\x16"
  7648. "\x18\x8a\xa0\x6d\x01\x6c\xa3\x3a",
  7649. .rlen = 16 + 64,
  7650. }, { /* RFC 3602 Case 2 */
  7651. #ifdef __LITTLE_ENDIAN
  7652. .key = "\x08\x00" /* rta length */
  7653. "\x01\x00" /* rta type */
  7654. #else
  7655. .key = "\x00\x08" /* rta length */
  7656. "\x00\x01" /* rta type */
  7657. #endif
  7658. "\x00\x00\x00\x10" /* enc key length */
  7659. "\x20\x21\x22\x23\x24\x25\x26\x27"
  7660. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  7661. "\x30\x31\x32\x33\x34\x35\x36\x37"
  7662. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  7663. "\x40\x41\x42\x43\x44\x45\x46\x47"
  7664. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  7665. "\x50\x51\x52\x53\x54\x55\x56\x57"
  7666. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  7667. "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  7668. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  7669. .klen = 8 + 64 + 16,
  7670. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  7671. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  7672. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7673. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  7674. "\x10\x11\x12\x13\x14\x15\x16\x17"
  7675. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  7676. .ilen = 32,
  7677. .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
  7678. "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
  7679. "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
  7680. "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
  7681. "\xda\xb2\x0c\xb2\x26\xc4\xd5\xef"
  7682. "\x60\x38\xa4\x5e\x9a\x8c\x1b\x41"
  7683. "\x03\x9f\xc4\x64\x7f\x01\x42\x9b"
  7684. "\x0e\x1b\xea\xef\xbc\x88\x19\x5e"
  7685. "\x31\x7e\xc2\x95\xfc\x09\x32\x0a"
  7686. "\x46\x32\x7c\x41\x9c\x59\x3e\xe9"
  7687. "\x8f\x9f\xd4\x31\xd6\x22\xbd\xf8"
  7688. "\xf7\x0a\x94\xe5\xa9\xc3\xf6\x9d",
  7689. .rlen = 32 + 64,
  7690. }, { /* RFC 3602 Case 3 */
  7691. #ifdef __LITTLE_ENDIAN
  7692. .key = "\x08\x00" /* rta length */
  7693. "\x01\x00" /* rta type */
  7694. #else
  7695. .key = "\x00\x08" /* rta length */
  7696. "\x00\x01" /* rta type */
  7697. #endif
  7698. "\x00\x00\x00\x10" /* enc key length */
  7699. "\x11\x22\x33\x44\x55\x66\x77\x88"
  7700. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  7701. "\x22\x33\x44\x55\x66\x77\x88\x99"
  7702. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  7703. "\x33\x44\x55\x66\x77\x88\x99\xaa"
  7704. "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
  7705. "\x44\x55\x66\x77\x88\x99\xaa\xbb"
  7706. "\xcc\xdd\xee\xff\x11\x22\x33\x44"
  7707. "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
  7708. "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
  7709. .klen = 8 + 64 + 16,
  7710. .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
  7711. "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
  7712. .input = "This is a 48-byte message (exactly 3 AES blocks)",
  7713. .ilen = 48,
  7714. .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
  7715. "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
  7716. "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
  7717. "\x50\x69\x39\x27\x67\x72\xf8\xd5"
  7718. "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
  7719. "\x85\x79\x69\x5d\x83\xba\x26\x84"
  7720. "\x64\x19\x17\x5b\x57\xe0\x21\x0f"
  7721. "\xca\xdb\xa1\x26\x38\x14\xa2\x69"
  7722. "\xdb\x54\x67\x80\xc0\x54\xe0\xfd"
  7723. "\x3e\x91\xe7\x91\x7f\x13\x38\x44"
  7724. "\xb7\xb1\xd6\xc8\x7d\x48\x8d\x41"
  7725. "\x08\xea\x29\x6c\x74\x67\x3f\xb0"
  7726. "\xac\x7f\x5c\x1d\xf5\xee\x22\x66"
  7727. "\x27\xa6\xb6\x13\xba\xba\xf0\xc2",
  7728. .rlen = 48 + 64,
  7729. }, { /* RFC 3602 Case 4 */
  7730. #ifdef __LITTLE_ENDIAN
  7731. .key = "\x08\x00" /* rta length */
  7732. "\x01\x00" /* rta type */
  7733. #else
  7734. .key = "\x00\x08" /* rta length */
  7735. "\x00\x01" /* rta type */
  7736. #endif
  7737. "\x00\x00\x00\x10" /* enc key length */
  7738. "\x11\x22\x33\x44\x55\x66\x77\x88"
  7739. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  7740. "\x22\x33\x44\x55\x66\x77\x88\x99"
  7741. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  7742. "\x33\x44\x55\x66\x77\x88\x99\xaa"
  7743. "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
  7744. "\x44\x55\x66\x77\x88\x99\xaa\xbb"
  7745. "\xcc\xdd\xee\xff\x11\x22\x33\x44"
  7746. "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
  7747. "\xbc\x46\x90\x3d\xba\x29\x03\x49",
  7748. .klen = 8 + 64 + 16,
  7749. .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
  7750. "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
  7751. .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  7752. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  7753. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  7754. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  7755. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  7756. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  7757. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  7758. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
  7759. .ilen = 64,
  7760. .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
  7761. "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
  7762. "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
  7763. "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
  7764. "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
  7765. "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
  7766. "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
  7767. "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
  7768. "\x82\xcd\x42\x28\x21\x20\x15\xcc"
  7769. "\xb7\xb2\x48\x40\xc7\x64\x41\x3a"
  7770. "\x61\x32\x82\x85\xcf\x27\xed\xb4"
  7771. "\xe4\x68\xa2\xf5\x79\x26\x27\xb2"
  7772. "\x51\x67\x6a\xc4\xf0\x66\x55\x50"
  7773. "\xbc\x6f\xed\xd5\x8d\xde\x23\x7c"
  7774. "\x62\x98\x14\xd7\x2f\x37\x8d\xdf"
  7775. "\xf4\x33\x80\xeb\x8e\xb4\xa4\xda",
  7776. .rlen = 64 + 64,
  7777. }, { /* RFC 3602 Case 5 */
  7778. #ifdef __LITTLE_ENDIAN
  7779. .key = "\x08\x00" /* rta length */
  7780. "\x01\x00" /* rta type */
  7781. #else
  7782. .key = "\x00\x08" /* rta length */
  7783. "\x00\x01" /* rta type */
  7784. #endif
  7785. "\x00\x00\x00\x10" /* enc key length */
  7786. "\x11\x22\x33\x44\x55\x66\x77\x88"
  7787. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  7788. "\x22\x33\x44\x55\x66\x77\x88\x99"
  7789. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  7790. "\x33\x44\x55\x66\x77\x88\x99\xaa"
  7791. "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
  7792. "\x44\x55\x66\x77\x88\x99\xaa\xbb"
  7793. "\xcc\xdd\xee\xff\x11\x22\x33\x44"
  7794. "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
  7795. "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
  7796. .klen = 8 + 64 + 16,
  7797. .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
  7798. "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
  7799. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01",
  7800. .alen = 8,
  7801. .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
  7802. "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
  7803. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  7804. "\x10\x11\x12\x13\x14\x15\x16\x17"
  7805. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  7806. "\x20\x21\x22\x23\x24\x25\x26\x27"
  7807. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  7808. "\x30\x31\x32\x33\x34\x35\x36\x37"
  7809. "\x01\x02\x03\x04\x05\x06\x07\x08"
  7810. "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
  7811. .ilen = 80,
  7812. .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
  7813. "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
  7814. "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
  7815. "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
  7816. "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
  7817. "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
  7818. "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
  7819. "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
  7820. "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
  7821. "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
  7822. "\x74\x84\x94\xe2\xd7\x7a\xf9\xbf"
  7823. "\x00\x8a\xa2\xd5\xb7\xf3\x60\xcf"
  7824. "\xa0\x47\xdf\x4e\x09\xf4\xb1\x7f"
  7825. "\x14\xd9\x3d\x53\x8e\x12\xb3\x00"
  7826. "\x4c\x0a\x4e\x32\x40\x43\x88\xce"
  7827. "\x92\x26\xc1\x76\x20\x11\xeb\xba"
  7828. "\x62\x4f\x9a\x62\x25\xc3\x75\x80"
  7829. "\xb7\x0a\x17\xf5\xd7\x94\xb4\x14",
  7830. .rlen = 80 + 64,
  7831. }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
  7832. #ifdef __LITTLE_ENDIAN
  7833. .key = "\x08\x00" /* rta length */
  7834. "\x01\x00" /* rta type */
  7835. #else
  7836. .key = "\x00\x08" /* rta length */
  7837. "\x00\x01" /* rta type */
  7838. #endif
  7839. "\x00\x00\x00\x18" /* enc key length */
  7840. "\x11\x22\x33\x44\x55\x66\x77\x88"
  7841. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  7842. "\x22\x33\x44\x55\x66\x77\x88\x99"
  7843. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  7844. "\x33\x44\x55\x66\x77\x88\x99\xaa"
  7845. "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
  7846. "\x44\x55\x66\x77\x88\x99\xaa\xbb"
  7847. "\xcc\xdd\xee\xff\x11\x22\x33\x44"
  7848. "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  7849. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  7850. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  7851. .klen = 8 + 64 + 24,
  7852. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7853. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  7854. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  7855. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  7856. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  7857. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  7858. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  7859. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  7860. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  7861. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  7862. .ilen = 64,
  7863. .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
  7864. "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
  7865. "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
  7866. "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
  7867. "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
  7868. "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
  7869. "\x08\xb0\xe2\x79\x88\x59\x88\x81"
  7870. "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
  7871. "\x77\x4b\x69\x9d\x3a\x0d\xb4\x99"
  7872. "\x8f\xc6\x8e\x0e\x72\x58\xe3\x56"
  7873. "\xbb\x21\xd2\x7d\x93\x11\x17\x91"
  7874. "\xc4\x83\xfd\x0a\xea\x71\xfe\x77"
  7875. "\xae\x6f\x0a\xa5\xf0\xcf\xe1\x35"
  7876. "\xba\x03\xd5\x32\xfa\x5f\x41\x58"
  7877. "\x8d\x43\x98\xa7\x94\x16\x07\x02"
  7878. "\x0f\xb6\x81\x50\x28\x95\x2e\x75",
  7879. .rlen = 64 + 64,
  7880. }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
  7881. #ifdef __LITTLE_ENDIAN
  7882. .key = "\x08\x00" /* rta length */
  7883. "\x01\x00" /* rta type */
  7884. #else
  7885. .key = "\x00\x08" /* rta length */
  7886. "\x00\x01" /* rta type */
  7887. #endif
  7888. "\x00\x00\x00\x20" /* enc key length */
  7889. "\x11\x22\x33\x44\x55\x66\x77\x88"
  7890. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  7891. "\x22\x33\x44\x55\x66\x77\x88\x99"
  7892. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  7893. "\x33\x44\x55\x66\x77\x88\x99\xaa"
  7894. "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
  7895. "\x44\x55\x66\x77\x88\x99\xaa\xbb"
  7896. "\xcc\xdd\xee\xff\x11\x22\x33\x44"
  7897. "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  7898. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  7899. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  7900. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  7901. .klen = 8 + 64 + 32,
  7902. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7903. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  7904. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  7905. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  7906. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  7907. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  7908. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  7909. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  7910. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  7911. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  7912. .ilen = 64,
  7913. .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
  7914. "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
  7915. "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
  7916. "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
  7917. "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
  7918. "\xa5\x30\xe2\x63\x04\x23\x14\x61"
  7919. "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
  7920. "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
  7921. "\xb2\x27\x69\x7f\x45\x64\x79\x2b"
  7922. "\xb7\xb8\x4c\xd4\x75\x94\x68\x40"
  7923. "\x2a\xea\x91\xc7\x3f\x7c\xed\x7b"
  7924. "\x95\x2c\x9b\xa8\xf5\xe5\x52\x8d"
  7925. "\x6b\xe1\xae\xf1\x74\xfa\x0d\x0c"
  7926. "\xe3\x8d\x64\xc3\x8d\xff\x7c\x8c"
  7927. "\xdb\xbf\xa0\xb4\x01\xa2\xa8\xa2"
  7928. "\x2c\xb1\x62\x2c\x10\xca\xf1\x21",
  7929. .rlen = 64 + 64,
  7930. },
  7931. };
  7932. static struct cipher_testvec aes_lrw_enc_tv_template[] = {
  7933. /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
  7934. { /* LRW-32-AES 1 */
  7935. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  7936. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  7937. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  7938. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  7939. .klen = 32,
  7940. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7941. "\x00\x00\x00\x00\x00\x00\x00\x01",
  7942. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  7943. "\x38\x39\x41\x42\x43\x44\x45\x46",
  7944. .ilen = 16,
  7945. .result = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
  7946. "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
  7947. .rlen = 16,
  7948. }, { /* LRW-32-AES 2 */
  7949. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  7950. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  7951. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  7952. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  7953. .klen = 32,
  7954. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7955. "\x00\x00\x00\x00\x00\x00\x00\x02",
  7956. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  7957. "\x38\x39\x41\x42\x43\x44\x45\x46",
  7958. .ilen = 16,
  7959. .result = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
  7960. "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
  7961. .rlen = 16,
  7962. }, { /* LRW-32-AES 3 */
  7963. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  7964. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  7965. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  7966. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  7967. .klen = 32,
  7968. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7969. "\x00\x00\x00\x02\x00\x00\x00\x00",
  7970. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  7971. "\x38\x39\x41\x42\x43\x44\x45\x46",
  7972. .ilen = 16,
  7973. .result = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
  7974. "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
  7975. .rlen = 16,
  7976. }, { /* LRW-32-AES 4 */
  7977. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  7978. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  7979. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  7980. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  7981. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  7982. .klen = 40,
  7983. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7984. "\x00\x00\x00\x00\x00\x00\x00\x01",
  7985. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  7986. "\x38\x39\x41\x42\x43\x44\x45\x46",
  7987. .ilen = 16,
  7988. .result = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
  7989. "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
  7990. .rlen = 16,
  7991. }, { /* LRW-32-AES 5 */
  7992. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  7993. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  7994. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  7995. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  7996. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  7997. .klen = 40,
  7998. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7999. "\x00\x00\x00\x02\x00\x00\x00\x00",
  8000. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  8001. "\x38\x39\x41\x42\x43\x44\x45\x46",
  8002. .ilen = 16,
  8003. .result = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
  8004. "\xc8\x60\x48\x02\x87\xe3\x34\x06",
  8005. .rlen = 16,
  8006. }, { /* LRW-32-AES 6 */
  8007. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  8008. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  8009. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  8010. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  8011. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  8012. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  8013. .klen = 48,
  8014. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  8015. "\x00\x00\x00\x00\x00\x00\x00\x01",
  8016. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  8017. "\x38\x39\x41\x42\x43\x44\x45\x46",
  8018. .ilen = 16,
  8019. .result = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
  8020. "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
  8021. .rlen = 16,
  8022. }, { /* LRW-32-AES 7 */
  8023. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  8024. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  8025. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  8026. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  8027. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  8028. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  8029. .klen = 48,
  8030. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  8031. "\x00\x00\x00\x02\x00\x00\x00\x00",
  8032. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  8033. "\x38\x39\x41\x42\x43\x44\x45\x46",
  8034. .ilen = 16,
  8035. .result = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
  8036. "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
  8037. .rlen = 16,
  8038. }, {
  8039. /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
  8040. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  8041. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  8042. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  8043. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  8044. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  8045. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  8046. .klen = 48,
  8047. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  8048. "\x00\x00\x00\x00\x00\x00\x00\x01",
  8049. .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  8050. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  8051. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  8052. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  8053. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  8054. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  8055. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  8056. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  8057. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  8058. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  8059. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  8060. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  8061. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  8062. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  8063. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  8064. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  8065. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  8066. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  8067. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  8068. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  8069. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  8070. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  8071. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  8072. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  8073. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  8074. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  8075. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  8076. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  8077. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  8078. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  8079. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  8080. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  8081. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  8082. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  8083. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  8084. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  8085. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  8086. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  8087. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  8088. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  8089. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  8090. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  8091. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  8092. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  8093. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  8094. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  8095. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  8096. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  8097. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  8098. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  8099. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  8100. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  8101. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  8102. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  8103. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  8104. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  8105. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  8106. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  8107. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  8108. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  8109. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  8110. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  8111. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  8112. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  8113. .ilen = 512,
  8114. .result = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
  8115. "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
  8116. "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
  8117. "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
  8118. "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
  8119. "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
  8120. "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
  8121. "\xe8\x58\x46\x97\x39\x51\x07\xde"
  8122. "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
  8123. "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
  8124. "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
  8125. "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
  8126. "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
  8127. "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
  8128. "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
  8129. "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
  8130. "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
  8131. "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
  8132. "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
  8133. "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
  8134. "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
  8135. "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
  8136. "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
  8137. "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
  8138. "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
  8139. "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
  8140. "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
  8141. "\x41\x30\x58\xc5\x62\x74\x52\x1d"
  8142. "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
  8143. "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
  8144. "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
  8145. "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
  8146. "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
  8147. "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
  8148. "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
  8149. "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
  8150. "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
  8151. "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
  8152. "\xb8\x79\x78\x97\x94\xff\x72\x13"
  8153. "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
  8154. "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
  8155. "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
  8156. "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
  8157. "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
  8158. "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
  8159. "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
  8160. "\x1e\x86\x53\x11\x53\x94\x00\xee"
  8161. "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
  8162. "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
  8163. "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
  8164. "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
  8165. "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
  8166. "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
  8167. "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
  8168. "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
  8169. "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
  8170. "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
  8171. "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
  8172. "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
  8173. "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
  8174. "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
  8175. "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
  8176. "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
  8177. "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
  8178. .rlen = 512,
  8179. }
  8180. };
  8181. static struct cipher_testvec aes_lrw_dec_tv_template[] = {
  8182. /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
  8183. /* same as enc vectors with input and result reversed */
  8184. { /* LRW-32-AES 1 */
  8185. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  8186. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  8187. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  8188. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  8189. .klen = 32,
  8190. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  8191. "\x00\x00\x00\x00\x00\x00\x00\x01",
  8192. .input = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
  8193. "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
  8194. .ilen = 16,
  8195. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  8196. "\x38\x39\x41\x42\x43\x44\x45\x46",
  8197. .rlen = 16,
  8198. }, { /* LRW-32-AES 2 */
  8199. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  8200. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  8201. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  8202. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  8203. .klen = 32,
  8204. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  8205. "\x00\x00\x00\x00\x00\x00\x00\x02",
  8206. .input = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
  8207. "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
  8208. .ilen = 16,
  8209. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  8210. "\x38\x39\x41\x42\x43\x44\x45\x46",
  8211. .rlen = 16,
  8212. }, { /* LRW-32-AES 3 */
  8213. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  8214. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  8215. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  8216. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  8217. .klen = 32,
  8218. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  8219. "\x00\x00\x00\x02\x00\x00\x00\x00",
  8220. .input = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
  8221. "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
  8222. .ilen = 16,
  8223. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  8224. "\x38\x39\x41\x42\x43\x44\x45\x46",
  8225. .rlen = 16,
  8226. }, { /* LRW-32-AES 4 */
  8227. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  8228. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  8229. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  8230. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  8231. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  8232. .klen = 40,
  8233. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  8234. "\x00\x00\x00\x00\x00\x00\x00\x01",
  8235. .input = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
  8236. "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
  8237. .ilen = 16,
  8238. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  8239. "\x38\x39\x41\x42\x43\x44\x45\x46",
  8240. .rlen = 16,
  8241. }, { /* LRW-32-AES 5 */
  8242. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  8243. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  8244. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  8245. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  8246. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  8247. .klen = 40,
  8248. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  8249. "\x00\x00\x00\x02\x00\x00\x00\x00",
  8250. .input = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
  8251. "\xc8\x60\x48\x02\x87\xe3\x34\x06",
  8252. .ilen = 16,
  8253. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  8254. "\x38\x39\x41\x42\x43\x44\x45\x46",
  8255. .rlen = 16,
  8256. }, { /* LRW-32-AES 6 */
  8257. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  8258. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  8259. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  8260. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  8261. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  8262. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  8263. .klen = 48,
  8264. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  8265. "\x00\x00\x00\x00\x00\x00\x00\x01",
  8266. .input = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
  8267. "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
  8268. .ilen = 16,
  8269. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  8270. "\x38\x39\x41\x42\x43\x44\x45\x46",
  8271. .rlen = 16,
  8272. }, { /* LRW-32-AES 7 */
  8273. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  8274. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  8275. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  8276. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  8277. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  8278. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  8279. .klen = 48,
  8280. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  8281. "\x00\x00\x00\x02\x00\x00\x00\x00",
  8282. .input = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
  8283. "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
  8284. .ilen = 16,
  8285. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  8286. "\x38\x39\x41\x42\x43\x44\x45\x46",
  8287. .rlen = 16,
  8288. }, {
  8289. /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
  8290. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  8291. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  8292. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  8293. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  8294. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  8295. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  8296. .klen = 48,
  8297. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  8298. "\x00\x00\x00\x00\x00\x00\x00\x01",
  8299. .input = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
  8300. "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
  8301. "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
  8302. "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
  8303. "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
  8304. "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
  8305. "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
  8306. "\xe8\x58\x46\x97\x39\x51\x07\xde"
  8307. "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
  8308. "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
  8309. "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
  8310. "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
  8311. "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
  8312. "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
  8313. "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
  8314. "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
  8315. "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
  8316. "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
  8317. "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
  8318. "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
  8319. "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
  8320. "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
  8321. "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
  8322. "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
  8323. "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
  8324. "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
  8325. "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
  8326. "\x41\x30\x58\xc5\x62\x74\x52\x1d"
  8327. "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
  8328. "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
  8329. "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
  8330. "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
  8331. "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
  8332. "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
  8333. "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
  8334. "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
  8335. "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
  8336. "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
  8337. "\xb8\x79\x78\x97\x94\xff\x72\x13"
  8338. "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
  8339. "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
  8340. "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
  8341. "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
  8342. "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
  8343. "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
  8344. "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
  8345. "\x1e\x86\x53\x11\x53\x94\x00\xee"
  8346. "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
  8347. "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
  8348. "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
  8349. "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
  8350. "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
  8351. "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
  8352. "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
  8353. "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
  8354. "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
  8355. "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
  8356. "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
  8357. "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
  8358. "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
  8359. "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
  8360. "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
  8361. "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
  8362. "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
  8363. .ilen = 512,
  8364. .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  8365. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  8366. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  8367. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  8368. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  8369. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  8370. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  8371. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  8372. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  8373. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  8374. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  8375. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  8376. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  8377. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  8378. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  8379. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  8380. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  8381. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  8382. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  8383. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  8384. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  8385. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  8386. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  8387. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  8388. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  8389. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  8390. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  8391. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  8392. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  8393. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  8394. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  8395. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  8396. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  8397. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  8398. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  8399. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  8400. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  8401. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  8402. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  8403. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  8404. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  8405. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  8406. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  8407. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  8408. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  8409. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  8410. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  8411. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  8412. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  8413. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  8414. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  8415. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  8416. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  8417. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  8418. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  8419. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  8420. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  8421. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  8422. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  8423. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  8424. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  8425. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  8426. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  8427. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  8428. .rlen = 512,
  8429. }
  8430. };
  8431. static struct cipher_testvec aes_xts_enc_tv_template[] = {
  8432. /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
  8433. { /* XTS-AES 1 */
  8434. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  8435. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8436. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8437. "\x00\x00\x00\x00\x00\x00\x00\x00",
  8438. .klen = 32,
  8439. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  8440. "\x00\x00\x00\x00\x00\x00\x00\x00",
  8441. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  8442. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8443. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8444. "\x00\x00\x00\x00\x00\x00\x00\x00",
  8445. .ilen = 32,
  8446. .result = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
  8447. "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
  8448. "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
  8449. "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
  8450. .rlen = 32,
  8451. }, { /* XTS-AES 2 */
  8452. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  8453. "\x11\x11\x11\x11\x11\x11\x11\x11"
  8454. "\x22\x22\x22\x22\x22\x22\x22\x22"
  8455. "\x22\x22\x22\x22\x22\x22\x22\x22",
  8456. .klen = 32,
  8457. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  8458. "\x00\x00\x00\x00\x00\x00\x00\x00",
  8459. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  8460. "\x44\x44\x44\x44\x44\x44\x44\x44"
  8461. "\x44\x44\x44\x44\x44\x44\x44\x44"
  8462. "\x44\x44\x44\x44\x44\x44\x44\x44",
  8463. .ilen = 32,
  8464. .result = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
  8465. "\x39\x33\x40\x38\xac\xef\x83\x8b"
  8466. "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
  8467. "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
  8468. .rlen = 32,
  8469. }, { /* XTS-AES 3 */
  8470. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  8471. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  8472. "\x22\x22\x22\x22\x22\x22\x22\x22"
  8473. "\x22\x22\x22\x22\x22\x22\x22\x22",
  8474. .klen = 32,
  8475. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  8476. "\x00\x00\x00\x00\x00\x00\x00\x00",
  8477. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  8478. "\x44\x44\x44\x44\x44\x44\x44\x44"
  8479. "\x44\x44\x44\x44\x44\x44\x44\x44"
  8480. "\x44\x44\x44\x44\x44\x44\x44\x44",
  8481. .ilen = 32,
  8482. .result = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
  8483. "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
  8484. "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
  8485. "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
  8486. .rlen = 32,
  8487. }, { /* XTS-AES 4 */
  8488. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  8489. "\x23\x53\x60\x28\x74\x71\x35\x26"
  8490. "\x31\x41\x59\x26\x53\x58\x97\x93"
  8491. "\x23\x84\x62\x64\x33\x83\x27\x95",
  8492. .klen = 32,
  8493. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  8494. "\x00\x00\x00\x00\x00\x00\x00\x00",
  8495. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  8496. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  8497. "\x10\x11\x12\x13\x14\x15\x16\x17"
  8498. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  8499. "\x20\x21\x22\x23\x24\x25\x26\x27"
  8500. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  8501. "\x30\x31\x32\x33\x34\x35\x36\x37"
  8502. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  8503. "\x40\x41\x42\x43\x44\x45\x46\x47"
  8504. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  8505. "\x50\x51\x52\x53\x54\x55\x56\x57"
  8506. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  8507. "\x60\x61\x62\x63\x64\x65\x66\x67"
  8508. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  8509. "\x70\x71\x72\x73\x74\x75\x76\x77"
  8510. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  8511. "\x80\x81\x82\x83\x84\x85\x86\x87"
  8512. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  8513. "\x90\x91\x92\x93\x94\x95\x96\x97"
  8514. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  8515. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  8516. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  8517. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  8518. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  8519. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  8520. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  8521. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  8522. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  8523. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  8524. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  8525. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  8526. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  8527. "\x00\x01\x02\x03\x04\x05\x06\x07"
  8528. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  8529. "\x10\x11\x12\x13\x14\x15\x16\x17"
  8530. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  8531. "\x20\x21\x22\x23\x24\x25\x26\x27"
  8532. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  8533. "\x30\x31\x32\x33\x34\x35\x36\x37"
  8534. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  8535. "\x40\x41\x42\x43\x44\x45\x46\x47"
  8536. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  8537. "\x50\x51\x52\x53\x54\x55\x56\x57"
  8538. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  8539. "\x60\x61\x62\x63\x64\x65\x66\x67"
  8540. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  8541. "\x70\x71\x72\x73\x74\x75\x76\x77"
  8542. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  8543. "\x80\x81\x82\x83\x84\x85\x86\x87"
  8544. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  8545. "\x90\x91\x92\x93\x94\x95\x96\x97"
  8546. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  8547. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  8548. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  8549. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  8550. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  8551. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  8552. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  8553. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  8554. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  8555. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  8556. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  8557. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  8558. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  8559. .ilen = 512,
  8560. .result = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
  8561. "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
  8562. "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
  8563. "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
  8564. "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
  8565. "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
  8566. "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
  8567. "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
  8568. "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
  8569. "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
  8570. "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
  8571. "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
  8572. "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
  8573. "\x22\x97\x61\x46\xae\x20\xce\x84"
  8574. "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
  8575. "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
  8576. "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
  8577. "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
  8578. "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
  8579. "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
  8580. "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
  8581. "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
  8582. "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
  8583. "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
  8584. "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
  8585. "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
  8586. "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
  8587. "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
  8588. "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
  8589. "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
  8590. "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
  8591. "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
  8592. "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
  8593. "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
  8594. "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
  8595. "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
  8596. "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
  8597. "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
  8598. "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
  8599. "\x55\xef\x52\x97\xca\x67\xe9\xf3"
  8600. "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
  8601. "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
  8602. "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
  8603. "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
  8604. "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
  8605. "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
  8606. "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
  8607. "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
  8608. "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
  8609. "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
  8610. "\x18\x84\x69\x77\xae\x11\x9f\x7a"
  8611. "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
  8612. "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
  8613. "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
  8614. "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
  8615. "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
  8616. "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
  8617. "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
  8618. "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
  8619. "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
  8620. "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
  8621. "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
  8622. "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
  8623. "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
  8624. .rlen = 512,
  8625. }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */
  8626. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  8627. "\x23\x53\x60\x28\x74\x71\x35\x26"
  8628. "\x62\x49\x77\x57\x24\x70\x93\x69"
  8629. "\x99\x59\x57\x49\x66\x96\x76\x27"
  8630. "\x31\x41\x59\x26\x53\x58\x97\x93"
  8631. "\x23\x84\x62\x64\x33\x83\x27\x95"
  8632. "\x02\x88\x41\x97\x16\x93\x99\x37"
  8633. "\x51\x05\x82\x09\x74\x94\x45\x92",
  8634. .klen = 64,
  8635. .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
  8636. "\x00\x00\x00\x00\x00\x00\x00\x00",
  8637. "\x00\x00\x00\x00\x00\x00\x00\x00",
  8638. "\x00\x00\x00\x00\x00\x00\x00\x00",
  8639. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  8640. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  8641. "\x10\x11\x12\x13\x14\x15\x16\x17"
  8642. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  8643. "\x20\x21\x22\x23\x24\x25\x26\x27"
  8644. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  8645. "\x30\x31\x32\x33\x34\x35\x36\x37"
  8646. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  8647. "\x40\x41\x42\x43\x44\x45\x46\x47"
  8648. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  8649. "\x50\x51\x52\x53\x54\x55\x56\x57"
  8650. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  8651. "\x60\x61\x62\x63\x64\x65\x66\x67"
  8652. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  8653. "\x70\x71\x72\x73\x74\x75\x76\x77"
  8654. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  8655. "\x80\x81\x82\x83\x84\x85\x86\x87"
  8656. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  8657. "\x90\x91\x92\x93\x94\x95\x96\x97"
  8658. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  8659. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  8660. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  8661. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  8662. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  8663. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  8664. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  8665. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  8666. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  8667. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  8668. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  8669. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  8670. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  8671. "\x00\x01\x02\x03\x04\x05\x06\x07"
  8672. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  8673. "\x10\x11\x12\x13\x14\x15\x16\x17"
  8674. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  8675. "\x20\x21\x22\x23\x24\x25\x26\x27"
  8676. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  8677. "\x30\x31\x32\x33\x34\x35\x36\x37"
  8678. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  8679. "\x40\x41\x42\x43\x44\x45\x46\x47"
  8680. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  8681. "\x50\x51\x52\x53\x54\x55\x56\x57"
  8682. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  8683. "\x60\x61\x62\x63\x64\x65\x66\x67"
  8684. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  8685. "\x70\x71\x72\x73\x74\x75\x76\x77"
  8686. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  8687. "\x80\x81\x82\x83\x84\x85\x86\x87"
  8688. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  8689. "\x90\x91\x92\x93\x94\x95\x96\x97"
  8690. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  8691. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  8692. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  8693. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  8694. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  8695. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  8696. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  8697. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  8698. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  8699. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  8700. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  8701. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  8702. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  8703. .ilen = 512,
  8704. .result = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86"
  8705. "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b"
  8706. "\xea\x00\x80\x3f\x5e\x48\x23\x57"
  8707. "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b"
  8708. "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d"
  8709. "\x66\xb3\x17\xf9\xac\x68\x3f\x44"
  8710. "\x68\x0a\x86\xac\x35\xad\xfc\x33"
  8711. "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd"
  8712. "\x57\x76\x92\x6c\x49\xa3\x09\x5e"
  8713. "\xb1\x08\xfd\x10\x98\xba\xec\x70"
  8714. "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2"
  8715. "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0"
  8716. "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89"
  8717. "\xae\xba\x12\x29\x61\xd0\x3a\x75"
  8718. "\x71\x23\xe9\x87\x0f\x8a\xcf\x10"
  8719. "\x00\x02\x08\x87\x89\x14\x29\xca"
  8720. "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03"
  8721. "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d"
  8722. "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd"
  8723. "\x12\x0c\x0f\x74\x18\xda\xe3\xd0"
  8724. "\xb5\x78\x1c\x34\x80\x3f\xa7\x54"
  8725. "\x21\xc7\x90\xdf\xe1\xde\x18\x34"
  8726. "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c"
  8727. "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f"
  8728. "\x93\xec\x05\xc5\x2e\x04\x93\xef"
  8729. "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a"
  8730. "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50"
  8731. "\x84\x14\x73\xd1\xa8\xcc\x81\xec"
  8732. "\x58\x3e\x96\x45\xe0\x7b\x8d\x96"
  8733. "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6"
  8734. "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb"
  8735. "\x17\xb6\xba\x02\x46\x9a\x02\x0a"
  8736. "\x84\xe1\x8e\x8f\x84\x25\x20\x70"
  8737. "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f"
  8738. "\xbc\x48\x14\x57\x77\x8f\x61\x60"
  8739. "\x15\xe1\x32\x7a\x02\xb1\x40\xf1"
  8740. "\x50\x5e\xb3\x09\x32\x6d\x68\x37"
  8741. "\x8f\x83\x74\x59\x5c\x84\x9d\x84"
  8742. "\xf4\xc3\x33\xec\x44\x23\x88\x51"
  8743. "\x43\xcb\x47\xbd\x71\xc5\xed\xae"
  8744. "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe"
  8745. "\xc9\xde\x24\x4f\xbe\x15\x99\x2b"
  8746. "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f"
  8747. "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29"
  8748. "\xa9\xab\xc3\xd4\xd8\x93\x92\x72"
  8749. "\x84\xc5\x87\x54\xcc\xe2\x94\x52"
  8750. "\x9f\x86\x14\xdc\xd2\xab\xa9\x91"
  8751. "\x92\x5f\xed\xc4\xae\x74\xff\xac"
  8752. "\x6e\x33\x3b\x93\xeb\x4a\xff\x04"
  8753. "\x79\xda\x9a\x41\x0e\x44\x50\xe0"
  8754. "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00"
  8755. "\x57\x5d\xa4\x01\xfc\x07\x05\x9f"
  8756. "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33"
  8757. "\x94\x30\x54\xff\x84\x01\x14\x93"
  8758. "\xc2\x7b\x34\x29\xea\xed\xb4\xed"
  8759. "\x53\x76\x44\x1a\x77\xed\x43\x85"
  8760. "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2"
  8761. "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a"
  8762. "\xab\x1c\xbb\x4c\x15\x50\xbe\x97"
  8763. "\xf7\xab\x40\x66\x19\x3c\x4c\xaa"
  8764. "\x77\x3d\xad\x38\x01\x4b\xd2\x09"
  8765. "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54"
  8766. "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70"
  8767. "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51",
  8768. .rlen = 512,
  8769. }
  8770. };
  8771. static struct cipher_testvec aes_xts_dec_tv_template[] = {
  8772. /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
  8773. { /* XTS-AES 1 */
  8774. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  8775. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8776. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8777. "\x00\x00\x00\x00\x00\x00\x00\x00",
  8778. .klen = 32,
  8779. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  8780. "\x00\x00\x00\x00\x00\x00\x00\x00",
  8781. .input = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
  8782. "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
  8783. "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
  8784. "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
  8785. .ilen = 32,
  8786. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  8787. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8788. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8789. "\x00\x00\x00\x00\x00\x00\x00\x00",
  8790. .rlen = 32,
  8791. }, { /* XTS-AES 2 */
  8792. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  8793. "\x11\x11\x11\x11\x11\x11\x11\x11"
  8794. "\x22\x22\x22\x22\x22\x22\x22\x22"
  8795. "\x22\x22\x22\x22\x22\x22\x22\x22",
  8796. .klen = 32,
  8797. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  8798. "\x00\x00\x00\x00\x00\x00\x00\x00",
  8799. .input = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
  8800. "\x39\x33\x40\x38\xac\xef\x83\x8b"
  8801. "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
  8802. "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
  8803. .ilen = 32,
  8804. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  8805. "\x44\x44\x44\x44\x44\x44\x44\x44"
  8806. "\x44\x44\x44\x44\x44\x44\x44\x44"
  8807. "\x44\x44\x44\x44\x44\x44\x44\x44",
  8808. .rlen = 32,
  8809. }, { /* XTS-AES 3 */
  8810. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  8811. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  8812. "\x22\x22\x22\x22\x22\x22\x22\x22"
  8813. "\x22\x22\x22\x22\x22\x22\x22\x22",
  8814. .klen = 32,
  8815. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  8816. "\x00\x00\x00\x00\x00\x00\x00\x00",
  8817. .input = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
  8818. "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
  8819. "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
  8820. "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
  8821. .ilen = 32,
  8822. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  8823. "\x44\x44\x44\x44\x44\x44\x44\x44"
  8824. "\x44\x44\x44\x44\x44\x44\x44\x44"
  8825. "\x44\x44\x44\x44\x44\x44\x44\x44",
  8826. .rlen = 32,
  8827. }, { /* XTS-AES 4 */
  8828. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  8829. "\x23\x53\x60\x28\x74\x71\x35\x26"
  8830. "\x31\x41\x59\x26\x53\x58\x97\x93"
  8831. "\x23\x84\x62\x64\x33\x83\x27\x95",
  8832. .klen = 32,
  8833. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  8834. "\x00\x00\x00\x00\x00\x00\x00\x00",
  8835. .input = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
  8836. "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
  8837. "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
  8838. "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
  8839. "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
  8840. "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
  8841. "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
  8842. "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
  8843. "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
  8844. "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
  8845. "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
  8846. "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
  8847. "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
  8848. "\x22\x97\x61\x46\xae\x20\xce\x84"
  8849. "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
  8850. "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
  8851. "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
  8852. "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
  8853. "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
  8854. "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
  8855. "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
  8856. "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
  8857. "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
  8858. "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
  8859. "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
  8860. "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
  8861. "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
  8862. "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
  8863. "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
  8864. "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
  8865. "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
  8866. "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
  8867. "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
  8868. "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
  8869. "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
  8870. "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
  8871. "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
  8872. "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
  8873. "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
  8874. "\x55\xef\x52\x97\xca\x67\xe9\xf3"
  8875. "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
  8876. "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
  8877. "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
  8878. "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
  8879. "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
  8880. "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
  8881. "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
  8882. "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
  8883. "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
  8884. "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
  8885. "\x18\x84\x69\x77\xae\x11\x9f\x7a"
  8886. "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
  8887. "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
  8888. "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
  8889. "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
  8890. "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
  8891. "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
  8892. "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
  8893. "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
  8894. "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
  8895. "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
  8896. "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
  8897. "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
  8898. "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
  8899. .ilen = 512,
  8900. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  8901. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  8902. "\x10\x11\x12\x13\x14\x15\x16\x17"
  8903. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  8904. "\x20\x21\x22\x23\x24\x25\x26\x27"
  8905. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  8906. "\x30\x31\x32\x33\x34\x35\x36\x37"
  8907. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  8908. "\x40\x41\x42\x43\x44\x45\x46\x47"
  8909. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  8910. "\x50\x51\x52\x53\x54\x55\x56\x57"
  8911. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  8912. "\x60\x61\x62\x63\x64\x65\x66\x67"
  8913. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  8914. "\x70\x71\x72\x73\x74\x75\x76\x77"
  8915. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  8916. "\x80\x81\x82\x83\x84\x85\x86\x87"
  8917. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  8918. "\x90\x91\x92\x93\x94\x95\x96\x97"
  8919. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  8920. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  8921. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  8922. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  8923. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  8924. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  8925. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  8926. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  8927. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  8928. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  8929. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  8930. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  8931. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  8932. "\x00\x01\x02\x03\x04\x05\x06\x07"
  8933. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  8934. "\x10\x11\x12\x13\x14\x15\x16\x17"
  8935. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  8936. "\x20\x21\x22\x23\x24\x25\x26\x27"
  8937. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  8938. "\x30\x31\x32\x33\x34\x35\x36\x37"
  8939. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  8940. "\x40\x41\x42\x43\x44\x45\x46\x47"
  8941. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  8942. "\x50\x51\x52\x53\x54\x55\x56\x57"
  8943. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  8944. "\x60\x61\x62\x63\x64\x65\x66\x67"
  8945. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  8946. "\x70\x71\x72\x73\x74\x75\x76\x77"
  8947. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  8948. "\x80\x81\x82\x83\x84\x85\x86\x87"
  8949. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  8950. "\x90\x91\x92\x93\x94\x95\x96\x97"
  8951. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  8952. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  8953. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  8954. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  8955. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  8956. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  8957. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  8958. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  8959. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  8960. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  8961. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  8962. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  8963. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  8964. .rlen = 512,
  8965. }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */
  8966. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  8967. "\x23\x53\x60\x28\x74\x71\x35\x26"
  8968. "\x62\x49\x77\x57\x24\x70\x93\x69"
  8969. "\x99\x59\x57\x49\x66\x96\x76\x27"
  8970. "\x31\x41\x59\x26\x53\x58\x97\x93"
  8971. "\x23\x84\x62\x64\x33\x83\x27\x95"
  8972. "\x02\x88\x41\x97\x16\x93\x99\x37"
  8973. "\x51\x05\x82\x09\x74\x94\x45\x92",
  8974. .klen = 64,
  8975. .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
  8976. "\x00\x00\x00\x00\x00\x00\x00\x00",
  8977. "\x00\x00\x00\x00\x00\x00\x00\x00",
  8978. "\x00\x00\x00\x00\x00\x00\x00\x00",
  8979. .input = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86"
  8980. "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b"
  8981. "\xea\x00\x80\x3f\x5e\x48\x23\x57"
  8982. "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b"
  8983. "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d"
  8984. "\x66\xb3\x17\xf9\xac\x68\x3f\x44"
  8985. "\x68\x0a\x86\xac\x35\xad\xfc\x33"
  8986. "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd"
  8987. "\x57\x76\x92\x6c\x49\xa3\x09\x5e"
  8988. "\xb1\x08\xfd\x10\x98\xba\xec\x70"
  8989. "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2"
  8990. "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0"
  8991. "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89"
  8992. "\xae\xba\x12\x29\x61\xd0\x3a\x75"
  8993. "\x71\x23\xe9\x87\x0f\x8a\xcf\x10"
  8994. "\x00\x02\x08\x87\x89\x14\x29\xca"
  8995. "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03"
  8996. "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d"
  8997. "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd"
  8998. "\x12\x0c\x0f\x74\x18\xda\xe3\xd0"
  8999. "\xb5\x78\x1c\x34\x80\x3f\xa7\x54"
  9000. "\x21\xc7\x90\xdf\xe1\xde\x18\x34"
  9001. "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c"
  9002. "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f"
  9003. "\x93\xec\x05\xc5\x2e\x04\x93\xef"
  9004. "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a"
  9005. "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50"
  9006. "\x84\x14\x73\xd1\xa8\xcc\x81\xec"
  9007. "\x58\x3e\x96\x45\xe0\x7b\x8d\x96"
  9008. "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6"
  9009. "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb"
  9010. "\x17\xb6\xba\x02\x46\x9a\x02\x0a"
  9011. "\x84\xe1\x8e\x8f\x84\x25\x20\x70"
  9012. "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f"
  9013. "\xbc\x48\x14\x57\x77\x8f\x61\x60"
  9014. "\x15\xe1\x32\x7a\x02\xb1\x40\xf1"
  9015. "\x50\x5e\xb3\x09\x32\x6d\x68\x37"
  9016. "\x8f\x83\x74\x59\x5c\x84\x9d\x84"
  9017. "\xf4\xc3\x33\xec\x44\x23\x88\x51"
  9018. "\x43\xcb\x47\xbd\x71\xc5\xed\xae"
  9019. "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe"
  9020. "\xc9\xde\x24\x4f\xbe\x15\x99\x2b"
  9021. "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f"
  9022. "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29"
  9023. "\xa9\xab\xc3\xd4\xd8\x93\x92\x72"
  9024. "\x84\xc5\x87\x54\xcc\xe2\x94\x52"
  9025. "\x9f\x86\x14\xdc\xd2\xab\xa9\x91"
  9026. "\x92\x5f\xed\xc4\xae\x74\xff\xac"
  9027. "\x6e\x33\x3b\x93\xeb\x4a\xff\x04"
  9028. "\x79\xda\x9a\x41\x0e\x44\x50\xe0"
  9029. "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00"
  9030. "\x57\x5d\xa4\x01\xfc\x07\x05\x9f"
  9031. "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33"
  9032. "\x94\x30\x54\xff\x84\x01\x14\x93"
  9033. "\xc2\x7b\x34\x29\xea\xed\xb4\xed"
  9034. "\x53\x76\x44\x1a\x77\xed\x43\x85"
  9035. "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2"
  9036. "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a"
  9037. "\xab\x1c\xbb\x4c\x15\x50\xbe\x97"
  9038. "\xf7\xab\x40\x66\x19\x3c\x4c\xaa"
  9039. "\x77\x3d\xad\x38\x01\x4b\xd2\x09"
  9040. "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54"
  9041. "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70"
  9042. "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51",
  9043. .ilen = 512,
  9044. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  9045. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  9046. "\x10\x11\x12\x13\x14\x15\x16\x17"
  9047. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  9048. "\x20\x21\x22\x23\x24\x25\x26\x27"
  9049. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  9050. "\x30\x31\x32\x33\x34\x35\x36\x37"
  9051. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  9052. "\x40\x41\x42\x43\x44\x45\x46\x47"
  9053. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  9054. "\x50\x51\x52\x53\x54\x55\x56\x57"
  9055. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  9056. "\x60\x61\x62\x63\x64\x65\x66\x67"
  9057. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  9058. "\x70\x71\x72\x73\x74\x75\x76\x77"
  9059. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  9060. "\x80\x81\x82\x83\x84\x85\x86\x87"
  9061. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  9062. "\x90\x91\x92\x93\x94\x95\x96\x97"
  9063. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  9064. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  9065. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  9066. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  9067. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  9068. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  9069. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  9070. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  9071. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  9072. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  9073. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  9074. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  9075. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  9076. "\x00\x01\x02\x03\x04\x05\x06\x07"
  9077. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  9078. "\x10\x11\x12\x13\x14\x15\x16\x17"
  9079. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  9080. "\x20\x21\x22\x23\x24\x25\x26\x27"
  9081. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  9082. "\x30\x31\x32\x33\x34\x35\x36\x37"
  9083. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  9084. "\x40\x41\x42\x43\x44\x45\x46\x47"
  9085. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  9086. "\x50\x51\x52\x53\x54\x55\x56\x57"
  9087. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  9088. "\x60\x61\x62\x63\x64\x65\x66\x67"
  9089. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  9090. "\x70\x71\x72\x73\x74\x75\x76\x77"
  9091. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  9092. "\x80\x81\x82\x83\x84\x85\x86\x87"
  9093. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  9094. "\x90\x91\x92\x93\x94\x95\x96\x97"
  9095. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  9096. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  9097. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  9098. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  9099. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  9100. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  9101. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  9102. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  9103. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  9104. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  9105. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  9106. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  9107. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  9108. .rlen = 512,
  9109. }
  9110. };
  9111. static struct cipher_testvec aes_ctr_enc_tv_template[] = {
  9112. { /* From NIST Special Publication 800-38A, Appendix F.5 */
  9113. .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
  9114. "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
  9115. .klen = 16,
  9116. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  9117. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  9118. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  9119. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  9120. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  9121. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  9122. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  9123. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  9124. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  9125. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  9126. .ilen = 64,
  9127. .result = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
  9128. "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
  9129. "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
  9130. "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
  9131. "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
  9132. "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
  9133. "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
  9134. "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
  9135. .rlen = 64,
  9136. }, {
  9137. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  9138. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  9139. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  9140. .klen = 24,
  9141. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  9142. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  9143. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  9144. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  9145. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  9146. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  9147. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  9148. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  9149. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  9150. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  9151. .ilen = 64,
  9152. .result = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
  9153. "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
  9154. "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
  9155. "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
  9156. "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
  9157. "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
  9158. "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
  9159. "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
  9160. .rlen = 64,
  9161. }, {
  9162. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  9163. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  9164. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  9165. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  9166. .klen = 32,
  9167. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  9168. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  9169. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  9170. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  9171. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  9172. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  9173. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  9174. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  9175. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  9176. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  9177. .ilen = 64,
  9178. .result = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
  9179. "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
  9180. "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
  9181. "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
  9182. "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
  9183. "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
  9184. "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
  9185. "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
  9186. .rlen = 64,
  9187. }
  9188. };
  9189. static struct cipher_testvec aes_ctr_dec_tv_template[] = {
  9190. { /* From NIST Special Publication 800-38A, Appendix F.5 */
  9191. .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
  9192. "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
  9193. .klen = 16,
  9194. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  9195. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  9196. .input = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
  9197. "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
  9198. "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
  9199. "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
  9200. "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
  9201. "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
  9202. "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
  9203. "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
  9204. .ilen = 64,
  9205. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  9206. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  9207. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  9208. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  9209. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  9210. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  9211. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  9212. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  9213. .rlen = 64,
  9214. }, {
  9215. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  9216. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  9217. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  9218. .klen = 24,
  9219. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  9220. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  9221. .input = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
  9222. "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
  9223. "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
  9224. "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
  9225. "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
  9226. "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
  9227. "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
  9228. "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
  9229. .ilen = 64,
  9230. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  9231. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  9232. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  9233. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  9234. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  9235. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  9236. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  9237. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  9238. .rlen = 64,
  9239. }, {
  9240. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  9241. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  9242. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  9243. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  9244. .klen = 32,
  9245. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  9246. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  9247. .input = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
  9248. "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
  9249. "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
  9250. "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
  9251. "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
  9252. "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
  9253. "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
  9254. "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
  9255. .ilen = 64,
  9256. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  9257. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  9258. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  9259. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  9260. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  9261. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  9262. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  9263. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  9264. .rlen = 64,
  9265. }
  9266. };
  9267. static struct cipher_testvec aes_ctr_rfc3686_enc_tv_template[] = {
  9268. { /* From RFC 3686 */
  9269. .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
  9270. "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
  9271. "\x00\x00\x00\x30",
  9272. .klen = 20,
  9273. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  9274. .input = "Single block msg",
  9275. .ilen = 16,
  9276. .result = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
  9277. "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
  9278. .rlen = 16,
  9279. }, {
  9280. .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
  9281. "\x43\xd6\xce\x1f\x32\x53\x91\x63"
  9282. "\x00\x6c\xb6\xdb",
  9283. .klen = 20,
  9284. .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
  9285. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  9286. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  9287. "\x10\x11\x12\x13\x14\x15\x16\x17"
  9288. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  9289. .ilen = 32,
  9290. .result = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
  9291. "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
  9292. "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
  9293. "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
  9294. .rlen = 32,
  9295. }, {
  9296. .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
  9297. "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
  9298. "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
  9299. "\x00\x00\x00\x48",
  9300. .klen = 28,
  9301. .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
  9302. .input = "Single block msg",
  9303. .ilen = 16,
  9304. .result = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
  9305. "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
  9306. .rlen = 16,
  9307. }, {
  9308. .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
  9309. "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
  9310. "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
  9311. "\x00\x96\xb0\x3b",
  9312. .klen = 28,
  9313. .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
  9314. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  9315. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  9316. "\x10\x11\x12\x13\x14\x15\x16\x17"
  9317. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  9318. .ilen = 32,
  9319. .result = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
  9320. "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
  9321. "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
  9322. "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
  9323. .rlen = 32,
  9324. }, {
  9325. .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
  9326. "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
  9327. "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
  9328. "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
  9329. "\x00\x00\x00\x60",
  9330. .klen = 36,
  9331. .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
  9332. .input = "Single block msg",
  9333. .ilen = 16,
  9334. .result = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
  9335. "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
  9336. .rlen = 16,
  9337. }, {
  9338. .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
  9339. "\x07\x96\x36\x58\x79\xef\xf8\x86"
  9340. "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
  9341. "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
  9342. "\x00\xfa\xac\x24",
  9343. .klen = 36,
  9344. .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
  9345. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  9346. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  9347. "\x10\x11\x12\x13\x14\x15\x16\x17"
  9348. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  9349. .ilen = 32,
  9350. .result = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
  9351. "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
  9352. "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
  9353. "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
  9354. .rlen = 32,
  9355. }, {
  9356. // generated using Crypto++
  9357. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  9358. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  9359. "\x10\x11\x12\x13\x14\x15\x16\x17"
  9360. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  9361. "\x00\x00\x00\x00",
  9362. .klen = 32 + 4,
  9363. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  9364. .input =
  9365. "\x00\x01\x02\x03\x04\x05\x06\x07"
  9366. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  9367. "\x10\x11\x12\x13\x14\x15\x16\x17"
  9368. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  9369. "\x20\x21\x22\x23\x24\x25\x26\x27"
  9370. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  9371. "\x30\x31\x32\x33\x34\x35\x36\x37"
  9372. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  9373. "\x40\x41\x42\x43\x44\x45\x46\x47"
  9374. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  9375. "\x50\x51\x52\x53\x54\x55\x56\x57"
  9376. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  9377. "\x60\x61\x62\x63\x64\x65\x66\x67"
  9378. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  9379. "\x70\x71\x72\x73\x74\x75\x76\x77"
  9380. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  9381. "\x80\x81\x82\x83\x84\x85\x86\x87"
  9382. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  9383. "\x90\x91\x92\x93\x94\x95\x96\x97"
  9384. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  9385. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  9386. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  9387. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  9388. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  9389. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  9390. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  9391. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  9392. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  9393. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  9394. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  9395. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  9396. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  9397. "\x00\x03\x06\x09\x0c\x0f\x12\x15"
  9398. "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
  9399. "\x30\x33\x36\x39\x3c\x3f\x42\x45"
  9400. "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
  9401. "\x60\x63\x66\x69\x6c\x6f\x72\x75"
  9402. "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
  9403. "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
  9404. "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
  9405. "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
  9406. "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
  9407. "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
  9408. "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
  9409. "\x20\x23\x26\x29\x2c\x2f\x32\x35"
  9410. "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
  9411. "\x50\x53\x56\x59\x5c\x5f\x62\x65"
  9412. "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
  9413. "\x80\x83\x86\x89\x8c\x8f\x92\x95"
  9414. "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
  9415. "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
  9416. "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
  9417. "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
  9418. "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
  9419. "\x10\x13\x16\x19\x1c\x1f\x22\x25"
  9420. "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
  9421. "\x40\x43\x46\x49\x4c\x4f\x52\x55"
  9422. "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
  9423. "\x70\x73\x76\x79\x7c\x7f\x82\x85"
  9424. "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
  9425. "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
  9426. "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
  9427. "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
  9428. "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
  9429. "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
  9430. "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
  9431. "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
  9432. "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
  9433. "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
  9434. "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
  9435. "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
  9436. "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
  9437. "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
  9438. "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
  9439. "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
  9440. "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
  9441. "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
  9442. "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
  9443. "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
  9444. "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
  9445. "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
  9446. "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
  9447. "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
  9448. "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
  9449. "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
  9450. "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
  9451. "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
  9452. "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
  9453. "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
  9454. "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
  9455. "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
  9456. "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
  9457. "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
  9458. "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
  9459. "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
  9460. "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
  9461. "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
  9462. "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
  9463. "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
  9464. "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
  9465. "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
  9466. "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
  9467. "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
  9468. "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
  9469. "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
  9470. "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
  9471. "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
  9472. "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
  9473. "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
  9474. "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
  9475. "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
  9476. "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
  9477. "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
  9478. "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
  9479. "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
  9480. "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
  9481. "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
  9482. "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
  9483. "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
  9484. "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
  9485. "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
  9486. "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
  9487. "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
  9488. "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
  9489. "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
  9490. "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
  9491. "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
  9492. "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
  9493. "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
  9494. "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
  9495. "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
  9496. "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
  9497. "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
  9498. "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
  9499. "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
  9500. "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
  9501. "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
  9502. "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
  9503. "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
  9504. "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
  9505. "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
  9506. "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
  9507. "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
  9508. "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
  9509. "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
  9510. "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
  9511. "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
  9512. "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
  9513. "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
  9514. "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
  9515. "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
  9516. "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
  9517. "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
  9518. "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
  9519. "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
  9520. "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
  9521. "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
  9522. "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
  9523. "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
  9524. "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
  9525. "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
  9526. "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
  9527. "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
  9528. "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
  9529. "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
  9530. "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
  9531. "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
  9532. "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
  9533. "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
  9534. "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
  9535. "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
  9536. "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
  9537. "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
  9538. "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
  9539. "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
  9540. "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
  9541. "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
  9542. "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
  9543. "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
  9544. "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
  9545. "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
  9546. "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
  9547. "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
  9548. "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
  9549. "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
  9550. "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
  9551. "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
  9552. "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
  9553. "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
  9554. "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
  9555. "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
  9556. "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
  9557. "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
  9558. "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
  9559. "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
  9560. "\x38\x45\x52\x5f\x6c\x79\x86\x93"
  9561. "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
  9562. "\x08\x15\x22\x2f\x3c\x49\x56\x63"
  9563. "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
  9564. "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
  9565. "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
  9566. "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
  9567. "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
  9568. "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
  9569. "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
  9570. "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
  9571. "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
  9572. "\x18\x25\x32\x3f\x4c\x59\x66\x73"
  9573. "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
  9574. "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
  9575. "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
  9576. "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
  9577. "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
  9578. "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
  9579. "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
  9580. "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
  9581. "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
  9582. "\x28\x35\x42\x4f\x5c\x69\x76\x83"
  9583. "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
  9584. "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
  9585. "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
  9586. "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
  9587. "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
  9588. "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
  9589. "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
  9590. "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
  9591. "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
  9592. "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
  9593. "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
  9594. "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
  9595. "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
  9596. "\x48\x57\x66\x75\x84\x93\xa2\xb1"
  9597. "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
  9598. "\x38\x47\x56\x65\x74\x83\x92\xa1"
  9599. "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
  9600. "\x28\x37\x46\x55\x64\x73\x82\x91"
  9601. "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
  9602. "\x18\x27\x36\x45\x54\x63\x72\x81"
  9603. "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
  9604. "\x08\x17\x26\x35\x44\x53\x62\x71"
  9605. "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
  9606. "\xf8\x07\x16\x25\x34\x43\x52\x61"
  9607. "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
  9608. "\xe8\xf7\x06\x15\x24\x33\x42\x51"
  9609. "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
  9610. "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
  9611. "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
  9612. "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
  9613. "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
  9614. "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
  9615. "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
  9616. "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
  9617. "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
  9618. "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
  9619. "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
  9620. "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
  9621. "\x00\x11\x22\x33\x44\x55\x66\x77"
  9622. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
  9623. "\x10\x21\x32\x43\x54\x65\x76\x87"
  9624. "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
  9625. "\x20\x31\x42\x53\x64\x75\x86\x97"
  9626. "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
  9627. "\x30\x41\x52\x63\x74\x85\x96\xa7"
  9628. "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
  9629. "\x40\x51\x62\x73\x84\x95\xa6\xb7"
  9630. "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
  9631. "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
  9632. "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
  9633. "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
  9634. "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
  9635. "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
  9636. "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
  9637. "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
  9638. "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
  9639. "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
  9640. "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
  9641. "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
  9642. "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
  9643. "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
  9644. "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
  9645. "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
  9646. "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
  9647. "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
  9648. "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
  9649. "\xe0\xf1\x02\x13\x24\x35\x46\x57"
  9650. "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
  9651. "\xf0\x01\x12\x23\x34\x45\x56\x67"
  9652. "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
  9653. "\x00\x13\x26\x39\x4c\x5f\x72\x85"
  9654. "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
  9655. "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
  9656. "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
  9657. "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
  9658. "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
  9659. "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
  9660. "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
  9661. "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
  9662. "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
  9663. "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
  9664. "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
  9665. "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
  9666. "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
  9667. "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
  9668. "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
  9669. "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
  9670. "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
  9671. "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
  9672. "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
  9673. "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
  9674. "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
  9675. "\x10\x23\x36\x49\x5c\x6f\x82\x95"
  9676. "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
  9677. "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
  9678. "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
  9679. "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
  9680. "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
  9681. "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
  9682. "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
  9683. "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
  9684. "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
  9685. "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
  9686. "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
  9687. "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
  9688. "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
  9689. "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
  9690. "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
  9691. "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
  9692. "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
  9693. "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
  9694. "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
  9695. "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
  9696. "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
  9697. "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
  9698. "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
  9699. "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
  9700. "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
  9701. "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
  9702. "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
  9703. "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
  9704. "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
  9705. "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
  9706. "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
  9707. "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
  9708. "\x18\x2d\x42\x57\x6c\x81\x96\xab"
  9709. "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
  9710. "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
  9711. "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
  9712. "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
  9713. "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
  9714. "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
  9715. "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
  9716. "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
  9717. "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
  9718. "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
  9719. "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
  9720. "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
  9721. "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
  9722. "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
  9723. "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
  9724. "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
  9725. "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
  9726. "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
  9727. "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
  9728. "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
  9729. "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
  9730. "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
  9731. "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
  9732. "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
  9733. "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
  9734. "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
  9735. "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
  9736. "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
  9737. "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
  9738. "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
  9739. "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
  9740. "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
  9741. "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
  9742. "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
  9743. "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
  9744. "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
  9745. "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
  9746. "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
  9747. "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
  9748. "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
  9749. "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
  9750. "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
  9751. "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
  9752. "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
  9753. "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
  9754. "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
  9755. "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
  9756. "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
  9757. "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
  9758. "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
  9759. "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
  9760. "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
  9761. "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
  9762. "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
  9763. "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
  9764. "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
  9765. "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
  9766. "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
  9767. "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
  9768. "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
  9769. "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
  9770. "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
  9771. "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
  9772. "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
  9773. "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
  9774. "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
  9775. "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
  9776. "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
  9777. "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
  9778. "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
  9779. "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
  9780. "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
  9781. "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
  9782. "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
  9783. "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
  9784. "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
  9785. "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
  9786. "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
  9787. "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
  9788. "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
  9789. "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
  9790. "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
  9791. "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
  9792. "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
  9793. "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
  9794. "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
  9795. "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
  9796. "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
  9797. "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
  9798. "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
  9799. "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
  9800. "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
  9801. "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
  9802. "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
  9803. "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
  9804. "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
  9805. "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
  9806. "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
  9807. "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
  9808. "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
  9809. "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
  9810. "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
  9811. "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
  9812. "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
  9813. "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
  9814. "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
  9815. "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
  9816. "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
  9817. "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
  9818. "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
  9819. "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
  9820. "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
  9821. "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
  9822. "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
  9823. "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
  9824. "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
  9825. "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
  9826. "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
  9827. "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
  9828. "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
  9829. "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
  9830. "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
  9831. "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
  9832. "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
  9833. "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
  9834. "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
  9835. "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
  9836. "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
  9837. "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
  9838. "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
  9839. "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
  9840. "\x78\x95\xb2\xcf\xec\x09\x26\x43"
  9841. "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
  9842. "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
  9843. "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
  9844. "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
  9845. "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
  9846. "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
  9847. "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
  9848. "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
  9849. "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
  9850. "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
  9851. "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
  9852. "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
  9853. "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
  9854. "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
  9855. "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
  9856. "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
  9857. "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
  9858. "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
  9859. "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
  9860. "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
  9861. "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
  9862. "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
  9863. "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
  9864. "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
  9865. "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
  9866. "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
  9867. "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
  9868. "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
  9869. "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
  9870. "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
  9871. "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
  9872. "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
  9873. "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
  9874. "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
  9875. "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
  9876. "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
  9877. "\x00\x21\x42\x63",
  9878. .ilen = 4100,
  9879. .result =
  9880. "\xf0\x5c\x74\xad\x4e\xbc\x99\xe2"
  9881. "\xae\xff\x91\x3a\x44\xcf\x38\x32"
  9882. "\x1e\xad\xa7\xcd\xa1\x39\x95\xaa"
  9883. "\x10\xb1\xb3\x2e\x04\x31\x8f\x86"
  9884. "\xf2\x62\x74\x70\x0c\xa4\x46\x08"
  9885. "\xa8\xb7\x99\xa8\xe9\xd2\x73\x79"
  9886. "\x7e\x6e\xd4\x8f\x1e\xc7\x8e\x31"
  9887. "\x0b\xfa\x4b\xce\xfd\xf3\x57\x71"
  9888. "\xe9\x46\x03\xa5\x3d\x34\x00\xe2"
  9889. "\x18\xff\x75\x6d\x06\x2d\x00\xab"
  9890. "\xb9\x3e\x6c\x59\xc5\x84\x06\xb5"
  9891. "\x8b\xd0\x89\x9c\x4a\x79\x16\xc6"
  9892. "\x3d\x74\x54\xfa\x44\xcd\x23\x26"
  9893. "\x5c\xcf\x7e\x28\x92\x32\xbf\xdf"
  9894. "\xa7\x20\x3c\x74\x58\x2a\x9a\xde"
  9895. "\x61\x00\x1c\x4f\xff\x59\xc4\x22"
  9896. "\xac\x3c\xd0\xe8\x6c\xf9\x97\x1b"
  9897. "\x58\x9b\xad\x71\xe8\xa9\xb5\x0d"
  9898. "\xee\x2f\x04\x1f\x7f\xbc\x99\xee"
  9899. "\x84\xff\x42\x60\xdc\x3a\x18\xa5"
  9900. "\x81\xf9\xef\xdc\x7a\x0f\x65\x41"
  9901. "\x2f\xa3\xd3\xf9\xc2\xcb\xc0\x4d"
  9902. "\x8f\xd3\x76\x96\xad\x49\x6d\x38"
  9903. "\x3d\x39\x0b\x6c\x80\xb7\x54\x69"
  9904. "\xf0\x2c\x90\x02\x29\x0d\x1c\x12"
  9905. "\xad\x55\xc3\x8b\x68\xd9\xcc\xb3"
  9906. "\xb2\x64\x33\x90\x5e\xca\x4b\xe2"
  9907. "\xfb\x75\xdc\x63\xf7\x9f\x82\x74"
  9908. "\xf0\xc9\xaa\x7f\xe9\x2a\x9b\x33"
  9909. "\xbc\x88\x00\x7f\xca\xb2\x1f\x14"
  9910. "\xdb\xc5\x8e\x7b\x11\x3c\x3e\x08"
  9911. "\xf3\x83\xe8\xe0\x94\x86\x2e\x92"
  9912. "\x78\x6b\x01\xc9\xc7\x83\xba\x21"
  9913. "\x6a\x25\x15\x33\x4e\x45\x08\xec"
  9914. "\x35\xdb\xe0\x6e\x31\x51\x79\xa9"
  9915. "\x42\x44\x65\xc1\xa0\xf1\xf9\x2a"
  9916. "\x70\xd5\xb6\xc6\xc1\x8c\x39\xfc"
  9917. "\x25\xa6\x55\xd9\xdd\x2d\x4c\xec"
  9918. "\x49\xc6\xeb\x0e\xa8\x25\x2a\x16"
  9919. "\x1b\x66\x84\xda\xe2\x92\xe5\xc0"
  9920. "\xc8\x53\x07\xaf\x80\x84\xec\xfd"
  9921. "\xcd\xd1\x6e\xcd\x6f\x6a\xf5\x36"
  9922. "\xc5\x15\xe5\x25\x7d\x77\xd1\x1a"
  9923. "\x93\x36\xa9\xcf\x7c\xa4\x54\x4a"
  9924. "\x06\x51\x48\x4e\xf6\x59\x87\xd2"
  9925. "\x04\x02\xef\xd3\x44\xde\x76\x31"
  9926. "\xb3\x34\x17\x1b\x9d\x66\x11\x9f"
  9927. "\x1e\xcc\x17\xe9\xc7\x3c\x1b\xe7"
  9928. "\xcb\x50\x08\xfc\xdc\x2b\x24\xdb"
  9929. "\x65\x83\xd0\x3b\xe3\x30\xea\x94"
  9930. "\x6c\xe7\xe8\x35\x32\xc7\xdb\x64"
  9931. "\xb4\x01\xab\x36\x2c\x77\x13\xaf"
  9932. "\xf8\x2b\x88\x3f\x54\x39\xc4\x44"
  9933. "\xfe\xef\x6f\x68\x34\xbe\x0f\x05"
  9934. "\x16\x6d\xf6\x0a\x30\xe7\xe3\xed"
  9935. "\xc4\xde\x3c\x1b\x13\xd8\xdb\xfe"
  9936. "\x41\x62\xe5\x28\xd4\x8d\xa3\xc7"
  9937. "\x93\x97\xc6\x48\x45\x1d\x9f\x83"
  9938. "\xdf\x4b\x40\x3e\x42\x25\x87\x80"
  9939. "\x4c\x7d\xa8\xd4\x98\x23\x95\x75"
  9940. "\x41\x8c\xda\x41\x9b\xd4\xa7\x06"
  9941. "\xb5\xf1\x71\x09\x53\xbe\xca\xbf"
  9942. "\x32\x03\xed\xf0\x50\x1c\x56\x39"
  9943. "\x5b\xa4\x75\x18\xf7\x9b\x58\xef"
  9944. "\x53\xfc\x2a\x38\x23\x15\x75\xcd"
  9945. "\x45\xe5\x5a\x82\x55\xba\x21\xfa"
  9946. "\xd4\xbd\xc6\x94\x7c\xc5\x80\x12"
  9947. "\xf7\x4b\x32\xc4\x9a\x82\xd8\x28"
  9948. "\x8f\xd9\xc2\x0f\x60\x03\xbe\x5e"
  9949. "\x21\xd6\x5f\x58\xbf\x5c\xb1\x32"
  9950. "\x82\x8d\xa9\xe5\xf2\x66\x1a\xc0"
  9951. "\xa0\xbc\x58\x2f\x71\xf5\x2f\xed"
  9952. "\xd1\x26\xb9\xd8\x49\x5a\x07\x19"
  9953. "\x01\x7c\x59\xb0\xf8\xa4\xb7\xd3"
  9954. "\x7b\x1a\x8c\x38\xf4\x50\xa4\x59"
  9955. "\xb0\xcc\x41\x0b\x88\x7f\xe5\x31"
  9956. "\xb3\x42\xba\xa2\x7e\xd4\x32\x71"
  9957. "\x45\x87\x48\xa9\xc2\xf2\x89\xb3"
  9958. "\xe4\xa7\x7e\x52\x15\x61\xfa\xfe"
  9959. "\xc9\xdd\x81\xeb\x13\xab\xab\xc3"
  9960. "\x98\x59\xd8\x16\x3d\x14\x7a\x1c"
  9961. "\x3c\x41\x9a\x16\x16\x9b\xd2\xd2"
  9962. "\x69\x3a\x29\x23\xac\x86\x32\xa5"
  9963. "\x48\x9c\x9e\xf3\x47\x77\x81\x70"
  9964. "\x24\xe8\x85\xd2\xf5\xb5\xfa\xff"
  9965. "\x59\x6a\xd3\x50\x59\x43\x59\xde"
  9966. "\xd9\xf1\x55\xa5\x0c\xc3\x1a\x1a"
  9967. "\x18\x34\x0d\x1a\x63\x33\xed\x10"
  9968. "\xe0\x1d\x2a\x18\xd2\xc0\x54\xa8"
  9969. "\xca\xb5\x9a\xd3\xdd\xca\x45\x84"
  9970. "\x50\xe7\x0f\xfe\xa4\x99\x5a\xbe"
  9971. "\x43\x2d\x9a\xcb\x92\x3f\x5a\x1d"
  9972. "\x85\xd8\xc9\xdf\x68\xc9\x12\x80"
  9973. "\x56\x0c\xdc\x00\xdc\x3a\x7d\x9d"
  9974. "\xa3\xa2\xe8\x4d\xbf\xf9\x70\xa0"
  9975. "\xa4\x13\x4f\x6b\xaf\x0a\x89\x7f"
  9976. "\xda\xf0\xbf\x9b\xc8\x1d\xe5\xf8"
  9977. "\x2e\x8b\x07\xb5\x73\x1b\xcc\xa2"
  9978. "\xa6\xad\x30\xbc\x78\x3c\x5b\x10"
  9979. "\xfa\x5e\x62\x2d\x9e\x64\xb3\x33"
  9980. "\xce\xf9\x1f\x86\xe7\x8b\xa2\xb8"
  9981. "\xe8\x99\x57\x8c\x11\xed\x66\xd9"
  9982. "\x3c\x72\xb9\xc3\xe6\x4e\x17\x3a"
  9983. "\x6a\xcb\x42\x24\x06\xed\x3e\x4e"
  9984. "\xa3\xe8\x6a\x94\xda\x0d\x4e\xd5"
  9985. "\x14\x19\xcf\xb6\x26\xd8\x2e\xcc"
  9986. "\x64\x76\x38\x49\x4d\xfe\x30\x6d"
  9987. "\xe4\xc8\x8c\x7b\xc4\xe0\x35\xba"
  9988. "\x22\x6e\x76\xe1\x1a\xf2\x53\xc3"
  9989. "\x28\xa2\x82\x1f\x61\x69\xad\xc1"
  9990. "\x7b\x28\x4b\x1e\x6c\x85\x95\x9b"
  9991. "\x51\xb5\x17\x7f\x12\x69\x8c\x24"
  9992. "\xd5\xc7\x5a\x5a\x11\x54\xff\x5a"
  9993. "\xf7\x16\xc3\x91\xa6\xf0\xdc\x0a"
  9994. "\xb6\xa7\x4a\x0d\x7a\x58\xfe\xa5"
  9995. "\xf5\xcb\x8f\x7b\x0e\xea\x57\xe7"
  9996. "\xbd\x79\xd6\x1c\x88\x23\x6c\xf2"
  9997. "\x4d\x29\x77\x53\x35\x6a\x00\x8d"
  9998. "\xcd\xa3\x58\xbe\x77\x99\x18\xf8"
  9999. "\xe6\xe1\x8f\xe9\x37\x8f\xe3\xe2"
  10000. "\x5a\x8a\x93\x25\xaf\xf3\x78\x80"
  10001. "\xbe\xa6\x1b\xc6\xac\x8b\x1c\x91"
  10002. "\x58\xe1\x9f\x89\x35\x9d\x1d\x21"
  10003. "\x29\x9f\xf4\x99\x02\x27\x0f\xa8"
  10004. "\x4f\x79\x94\x2b\x33\x2c\xda\xa2"
  10005. "\x26\x39\x83\x94\xef\x27\xd8\x53"
  10006. "\x8f\x66\x0d\xe4\x41\x7d\x34\xcd"
  10007. "\x43\x7c\x95\x0a\x53\xef\x66\xda"
  10008. "\x7e\x9b\xf3\x93\xaf\xd0\x73\x71"
  10009. "\xba\x40\x9b\x74\xf8\xd7\xd7\x41"
  10010. "\x6d\xaf\x72\x9c\x8d\x21\x87\x3c"
  10011. "\xfd\x0a\x90\xa9\x47\x96\x9e\xd3"
  10012. "\x88\xee\x73\xcf\x66\x2f\x52\x56"
  10013. "\x6d\xa9\x80\x4c\xe2\x6f\x62\x88"
  10014. "\x3f\x0e\x54\x17\x48\x80\x5d\xd3"
  10015. "\xc3\xda\x25\x3d\xa1\xc8\xcb\x9f"
  10016. "\x9b\x70\xb3\xa1\xeb\x04\x52\xa1"
  10017. "\xf2\x22\x0f\xfc\xc8\x18\xfa\xf9"
  10018. "\x85\x9c\xf1\xac\xeb\x0c\x02\x46"
  10019. "\x75\xd2\xf5\x2c\xe3\xd2\x59\x94"
  10020. "\x12\xf3\x3c\xfc\xd7\x92\xfa\x36"
  10021. "\xba\x61\x34\x38\x7c\xda\x48\x3e"
  10022. "\x08\xc9\x39\x23\x5e\x02\x2c\x1a"
  10023. "\x18\x7e\xb4\xd9\xfd\x9e\x40\x02"
  10024. "\xb1\x33\x37\x32\xe7\xde\xd6\xd0"
  10025. "\x7c\x58\x65\x4b\xf8\x34\x27\x9c"
  10026. "\x44\xb4\xbd\xe9\xe9\x4c\x78\x7d"
  10027. "\x4b\x9f\xce\xb1\xcd\x47\xa5\x37"
  10028. "\xe5\x6d\xbd\xb9\x43\x94\x0a\xd4"
  10029. "\xd6\xf9\x04\x5f\xb5\x66\x6c\x1a"
  10030. "\x35\x12\xe3\x36\x28\x27\x36\x58"
  10031. "\x01\x2b\x79\xe4\xba\x6d\x10\x7d"
  10032. "\x65\xdf\x84\x95\xf4\xd5\xb6\x8f"
  10033. "\x2b\x9f\x96\x00\x86\x60\xf0\x21"
  10034. "\x76\xa8\x6a\x8c\x28\x1c\xb3\x6b"
  10035. "\x97\xd7\xb6\x53\x2a\xcc\xab\x40"
  10036. "\x9d\x62\x79\x58\x52\xe6\x65\xb7"
  10037. "\xab\x55\x67\x9c\x89\x7c\x03\xb0"
  10038. "\x73\x59\xc5\x81\xf5\x18\x17\x5c"
  10039. "\x89\xf3\x78\x35\x44\x62\x78\x72"
  10040. "\xd0\x96\xeb\x31\xe7\x87\x77\x14"
  10041. "\x99\x51\xf2\x59\x26\x9e\xb5\xa6"
  10042. "\x45\xfe\x6e\xbd\x07\x4c\x94\x5a"
  10043. "\xa5\x7d\xfc\xf1\x2b\x77\xe2\xfe"
  10044. "\x17\xd4\x84\xa0\xac\xb5\xc7\xda"
  10045. "\xa9\x1a\xb6\xf3\x74\x11\xb4\x9d"
  10046. "\xfb\x79\x2e\x04\x2d\x50\x28\x83"
  10047. "\xbf\xc6\x52\xd3\x34\xd6\xe8\x7a"
  10048. "\xb6\xea\xe7\xa8\x6c\x15\x1e\x2c"
  10049. "\x57\xbc\x48\x4e\x5f\x5c\xb6\x92"
  10050. "\xd2\x49\x77\x81\x6d\x90\x70\xae"
  10051. "\x98\xa1\x03\x0d\x6b\xb9\x77\x14"
  10052. "\xf1\x4e\x23\xd3\xf8\x68\xbd\xc2"
  10053. "\xfe\x04\xb7\x5c\xc5\x17\x60\x8f"
  10054. "\x65\x54\xa4\x7a\x42\xdc\x18\x0d"
  10055. "\xb5\xcf\x0f\xd3\xc7\x91\x66\x1b"
  10056. "\x45\x42\x27\x75\x50\xe5\xee\xb8"
  10057. "\x7f\x33\x2c\xba\x4a\x92\x4d\x2c"
  10058. "\x3c\xe3\x0d\x80\x01\xba\x0d\x29"
  10059. "\xd8\x3c\xe9\x13\x16\x57\xe6\xea"
  10060. "\x94\x52\xe7\x00\x4d\x30\xb0\x0f"
  10061. "\x35\xb8\xb8\xa7\xb1\xb5\x3b\x44"
  10062. "\xe1\x2f\xfd\x88\xed\x43\xe7\x52"
  10063. "\x10\x93\xb3\x8a\x30\x6b\x0a\xf7"
  10064. "\x23\xc6\x50\x9d\x4a\xb0\xde\xc3"
  10065. "\xdc\x9b\x2f\x01\x56\x36\x09\xc5"
  10066. "\x2f\x6b\xfe\xf1\xd8\x27\x45\x03"
  10067. "\x30\x5e\x5c\x5b\xb4\x62\x0e\x1a"
  10068. "\xa9\x21\x2b\x92\x94\x87\x62\x57"
  10069. "\x4c\x10\x74\x1a\xf1\x0a\xc5\x84"
  10070. "\x3b\x9e\x72\x02\xd7\xcc\x09\x56"
  10071. "\xbd\x54\xc1\xf0\xc3\xe3\xb3\xf8"
  10072. "\xd2\x0d\x61\xcb\xef\xce\x0d\x05"
  10073. "\xb0\x98\xd9\x8e\x4f\xf9\xbc\x93"
  10074. "\xa6\xea\xc8\xcf\x10\x53\x4b\xf1"
  10075. "\xec\xfc\x89\xf9\x64\xb0\x22\xbf"
  10076. "\x9e\x55\x46\x9f\x7c\x50\x8e\x84"
  10077. "\x54\x20\x98\xd7\x6c\x40\x1e\xdb"
  10078. "\x69\x34\x78\x61\x24\x21\x9c\x8a"
  10079. "\xb3\x62\x31\x8b\x6e\xf5\x2a\x35"
  10080. "\x86\x13\xb1\x6c\x64\x2e\x41\xa5"
  10081. "\x05\xf2\x42\xba\xd2\x3a\x0d\x8e"
  10082. "\x8a\x59\x94\x3c\xcf\x36\x27\x82"
  10083. "\xc2\x45\xee\x58\xcd\x88\xb4\xec"
  10084. "\xde\xb2\x96\x0a\xaf\x38\x6f\x88"
  10085. "\xd7\xd8\xe1\xdf\xb9\x96\xa9\x0a"
  10086. "\xb1\x95\x28\x86\x20\xe9\x17\x49"
  10087. "\xa2\x29\x38\xaa\xa5\xe9\x6e\xf1"
  10088. "\x19\x27\xc0\xd5\x2a\x22\xc3\x0b"
  10089. "\xdb\x7c\x73\x10\xb9\xba\x89\x76"
  10090. "\x54\xae\x7d\x71\xb3\x93\xf6\x32"
  10091. "\xe6\x47\x43\x55\xac\xa0\x0d\xc2"
  10092. "\x93\x27\x4a\x8e\x0e\x74\x15\xc7"
  10093. "\x0b\x85\xd9\x0c\xa9\x30\x7a\x3e"
  10094. "\xea\x8f\x85\x6d\x3a\x12\x4f\x72"
  10095. "\x69\x58\x7a\x80\xbb\xb5\x97\xf3"
  10096. "\xcf\x70\xd2\x5d\xdd\x4d\x21\x79"
  10097. "\x54\x4d\xe4\x05\xe8\xbd\xc2\x62"
  10098. "\xb1\x3b\x77\x1c\xd6\x5c\xf3\xa0"
  10099. "\x79\x00\xa8\x6c\x29\xd9\x18\x24"
  10100. "\x36\xa2\x46\xc0\x96\x65\x7f\xbd"
  10101. "\x2a\xed\x36\x16\x0c\xaa\x9f\xf4"
  10102. "\xc5\xb4\xe2\x12\xed\x69\xed\x4f"
  10103. "\x26\x2c\x39\x52\x89\x98\xe7\x2c"
  10104. "\x99\xa4\x9e\xa3\x9b\x99\x46\x7a"
  10105. "\x3a\xdc\xa8\x59\xa3\xdb\xc3\x3b"
  10106. "\x95\x0d\x3b\x09\x6e\xee\x83\x5d"
  10107. "\x32\x4d\xed\xab\xfa\x98\x14\x4e"
  10108. "\xc3\x15\x45\x53\x61\xc4\x93\xbd"
  10109. "\x90\xf4\x99\x95\x4c\xe6\x76\x92"
  10110. "\x29\x90\x46\x30\x92\x69\x7d\x13"
  10111. "\xf2\xa5\xcd\x69\x49\x44\xb2\x0f"
  10112. "\x63\x40\x36\x5f\x09\xe2\x78\xf8"
  10113. "\x91\xe3\xe2\xfa\x10\xf7\xc8\x24"
  10114. "\xa8\x89\x32\x5c\x37\x25\x1d\xb2"
  10115. "\xea\x17\x8a\x0a\xa9\x64\xc3\x7c"
  10116. "\x3c\x7c\xbd\xc6\x79\x34\xe7\xe2"
  10117. "\x85\x8e\xbf\xf8\xde\x92\xa0\xae"
  10118. "\x20\xc4\xf6\xbb\x1f\x38\x19\x0e"
  10119. "\xe8\x79\x9c\xa1\x23\xe9\x54\x7e"
  10120. "\x37\x2f\xe2\x94\x32\xaf\xa0\x23"
  10121. "\x49\xe4\xc0\xb3\xac\x00\x8f\x36"
  10122. "\x05\xc4\xa6\x96\xec\x05\x98\x4f"
  10123. "\x96\x67\x57\x1f\x20\x86\x1b\x2d"
  10124. "\x69\xe4\x29\x93\x66\x5f\xaf\x6b"
  10125. "\x88\x26\x2c\x67\x02\x4b\x52\xd0"
  10126. "\x83\x7a\x43\x1f\xc0\x71\x15\x25"
  10127. "\x77\x65\x08\x60\x11\x76\x4c\x8d"
  10128. "\xed\xa9\x27\xc6\xb1\x2a\x2c\x6a"
  10129. "\x4a\x97\xf5\xc6\xb7\x70\x42\xd3"
  10130. "\x03\xd1\x24\x95\xec\x6d\xab\x38"
  10131. "\x72\xce\xe2\x8b\x33\xd7\x51\x09"
  10132. "\xdc\x45\xe0\x09\x96\x32\xf3\xc4"
  10133. "\x84\xdc\x73\x73\x2d\x1b\x11\x98"
  10134. "\xc5\x0e\x69\x28\x94\xc7\xb5\x4d"
  10135. "\xc8\x8a\xd0\xaa\x13\x2e\x18\x74"
  10136. "\xdd\xd1\x1e\xf3\x90\xe8\xfc\x9a"
  10137. "\x72\x4a\x0e\xd1\xe4\xfb\x0d\x96"
  10138. "\xd1\x0c\x79\x85\x1b\x1c\xfe\xe1"
  10139. "\x62\x8f\x7a\x73\x32\xab\xc8\x18"
  10140. "\x69\xe3\x34\x30\xdf\x13\xa6\xe5"
  10141. "\xe8\x0e\x67\x7f\x81\x11\xb4\x60"
  10142. "\xc7\xbd\x79\x65\x50\xdc\xc4\x5b"
  10143. "\xde\x39\xa4\x01\x72\x63\xf3\xd1"
  10144. "\x64\x4e\xdf\xfc\x27\x92\x37\x0d"
  10145. "\x57\xcd\x11\x4f\x11\x04\x8e\x1d"
  10146. "\x16\xf7\xcd\x92\x9a\x99\x30\x14"
  10147. "\xf1\x7c\x67\x1b\x1f\x41\x0b\xe8"
  10148. "\x32\xe8\xb8\xc1\x4f\x54\x86\x4f"
  10149. "\xe5\x79\x81\x73\xcd\x43\x59\x68"
  10150. "\x73\x02\x3b\x78\x21\x72\x43\x00"
  10151. "\x49\x17\xf7\x00\xaf\x68\x24\x53"
  10152. "\x05\x0a\xc3\x33\xe0\x33\x3f\x69"
  10153. "\xd2\x84\x2f\x0b\xed\xde\x04\xf4"
  10154. "\x11\x94\x13\x69\x51\x09\x28\xde"
  10155. "\x57\x5c\xef\xdc\x9a\x49\x1c\x17"
  10156. "\x97\xf3\x96\xc1\x7f\x5d\x2e\x7d"
  10157. "\x55\xb8\xb3\x02\x09\xb3\x1f\xe7"
  10158. "\xc9\x8d\xa3\x36\x34\x8a\x77\x13"
  10159. "\x30\x63\x4c\xa5\xcd\xc3\xe0\x7e"
  10160. "\x05\xa1\x7b\x0c\xcb\x74\x47\x31"
  10161. "\x62\x03\x43\xf1\x87\xb4\xb0\x85"
  10162. "\x87\x8e\x4b\x25\xc7\xcf\xae\x4b"
  10163. "\x36\x46\x3e\x62\xbc\x6f\xeb\x5f"
  10164. "\x73\xac\xe6\x07\xee\xc1\xa1\xd6"
  10165. "\xc4\xab\xc9\xd6\x89\x45\xe1\xf1"
  10166. "\x04\x4e\x1a\x6f\xbb\x4f\x3a\xa3"
  10167. "\xa0\xcb\xa3\x0a\xd8\x71\x35\x55"
  10168. "\xe4\xbc\x2e\x04\x06\xe6\xff\x5b"
  10169. "\x1c\xc0\x11\x7c\xc5\x17\xf3\x38"
  10170. "\xcf\xe9\xba\x0f\x0e\xef\x02\xc2"
  10171. "\x8d\xc6\xbc\x4b\x67\x20\x95\xd7"
  10172. "\x2c\x45\x5b\x86\x44\x8c\x6f\x2e"
  10173. "\x7e\x9f\x1c\x77\xba\x6b\x0e\xa3"
  10174. "\x69\xdc\xab\x24\x57\x60\x47\xc1"
  10175. "\xd1\xa5\x9d\x23\xe6\xb1\x37\xfe"
  10176. "\x93\xd2\x4c\x46\xf9\x0c\xc6\xfb"
  10177. "\xd6\x9d\x99\x69\xab\x7a\x07\x0c"
  10178. "\x65\xe7\xc4\x08\x96\xe2\xa5\x01"
  10179. "\x3f\x46\x07\x05\x7e\xe8\x9a\x90"
  10180. "\x50\xdc\xe9\x7a\xea\xa1\x39\x6e"
  10181. "\x66\xe4\x6f\xa5\x5f\xb2\xd9\x5b"
  10182. "\xf5\xdb\x2a\x32\xf0\x11\x6f\x7c"
  10183. "\x26\x10\x8f\x3d\x80\xe9\x58\xf7"
  10184. "\xe0\xa8\x57\xf8\xdb\x0e\xce\x99"
  10185. "\x63\x19\x3d\xd5\xec\x1b\x77\x69"
  10186. "\x98\xf6\xe4\x5f\x67\x17\x4b\x09"
  10187. "\x85\x62\x82\x70\x18\xe2\x9a\x78"
  10188. "\xe2\x62\xbd\xb4\xf1\x42\xc6\xfb"
  10189. "\x08\xd0\xbd\xeb\x4e\x09\xf2\xc8"
  10190. "\x1e\xdc\x3d\x32\x21\x56\x9c\x4f"
  10191. "\x35\xf3\x61\x06\x72\x84\xc4\x32"
  10192. "\xf2\xf1\xfa\x0b\x2f\xc3\xdb\x02"
  10193. "\x04\xc2\xde\x57\x64\x60\x8d\xcf"
  10194. "\xcb\x86\x5d\x97\x3e\xb1\x9c\x01"
  10195. "\xd6\x28\x8f\x99\xbc\x46\xeb\x05"
  10196. "\xaf\x7e\xb8\x21\x2a\x56\x85\x1c"
  10197. "\xb3\x71\xa0\xde\xca\x96\xf1\x78"
  10198. "\x49\xa2\x99\x81\x80\x5c\x01\xf5"
  10199. "\xa0\xa2\x56\x63\xe2\x70\x07\xa5"
  10200. "\x95\xd6\x85\xeb\x36\x9e\xa9\x51"
  10201. "\x66\x56\x5f\x1d\x02\x19\xe2\xf6"
  10202. "\x4f\x73\x38\x09\x75\x64\x48\xe0"
  10203. "\xf1\x7e\x0e\xe8\x9d\xf9\xed\x94"
  10204. "\xfe\x16\x26\x62\x49\x74\xf4\xb0"
  10205. "\xd4\xa9\x6c\xb0\xfd\x53\xe9\x81"
  10206. "\xe0\x7a\xbf\xcf\xb5\xc4\x01\x81"
  10207. "\x79\x99\x77\x01\x3b\xe9\xa2\xb6"
  10208. "\xe6\x6a\x8a\x9e\x56\x1c\x8d\x1e"
  10209. "\x8f\x06\x55\x2c\x6c\xdc\x92\x87"
  10210. "\x64\x3b\x4b\x19\xa1\x13\x64\x1d"
  10211. "\x4a\xe9\xc0\x00\xb8\x95\xef\x6b"
  10212. "\x1a\x86\x6d\x37\x52\x02\xc2\xe0"
  10213. "\xc8\xbb\x42\x0c\x02\x21\x4a\xc9"
  10214. "\xef\xa0\x54\xe4\x5e\x16\x53\x81"
  10215. "\x70\x62\x10\xaf\xde\xb8\xb5\xd3"
  10216. "\xe8\x5e\x6c\xc3\x8a\x3e\x18\x07"
  10217. "\xf2\x2f\x7d\xa7\xe1\x3d\x4e\xb4"
  10218. "\x26\xa7\xa3\x93\x86\xb2\x04\x1e"
  10219. "\x53\x5d\x86\xd6\xde\x65\xca\xe3"
  10220. "\x4e\xc1\xcf\xef\xc8\x70\x1b\x83"
  10221. "\x13\xdd\x18\x8b\x0d\x76\xd2\xf6"
  10222. "\x37\x7a\x93\x7a\x50\x11\x9f\x96"
  10223. "\x86\x25\xfd\xac\xdc\xbe\x18\x93"
  10224. "\x19\x6b\xec\x58\x4f\xb9\x75\xa7"
  10225. "\xdd\x3f\x2f\xec\xc8\x5a\x84\xab"
  10226. "\xd5\xe4\x8a\x07\xf6\x4d\x23\xd6"
  10227. "\x03\xfb\x03\x6a\xea\x66\xbf\xd4"
  10228. "\xb1\x34\xfb\x78\xe9\x55\xdc\x7c"
  10229. "\x3d\x9c\xe5\x9a\xac\xc3\x7a\x80"
  10230. "\x24\x6d\xa0\xef\x25\x7c\xb7\xea"
  10231. "\xce\x4d\x5f\x18\x60\xce\x87\x22"
  10232. "\x66\x2f\xd5\xdd\xdd\x02\x21\x75"
  10233. "\x82\xa0\x1f\x58\xc6\xd3\x62\xf7"
  10234. "\x32\xd8\xaf\x1e\x07\x77\x51\x96"
  10235. "\xd5\x6b\x1e\x7e\x80\x02\xe8\x67"
  10236. "\xea\x17\x0b\x10\xd2\x3f\x28\x25"
  10237. "\x4f\x05\x77\x02\x14\x69\xf0\x2c"
  10238. "\xbe\x0c\xf1\x74\x30\xd1\xb9\x9b"
  10239. "\xfc\x8c\xbb\x04\x16\xd9\xba\xc3"
  10240. "\xbc\x91\x8a\xc4\x30\xa4\xb0\x12"
  10241. "\x4c\x21\x87\xcb\xc9\x1d\x16\x96"
  10242. "\x07\x6f\x23\x54\xb9\x6f\x79\xe5"
  10243. "\x64\xc0\x64\xda\xb1\xae\xdd\x60"
  10244. "\x6c\x1a\x9d\xd3\x04\x8e\x45\xb0"
  10245. "\x92\x61\xd0\x48\x81\xed\x5e\x1d"
  10246. "\xa0\xc9\xa4\x33\xc7\x13\x51\x5d"
  10247. "\x7f\x83\x73\xb6\x70\x18\x65\x3e"
  10248. "\x2f\x0e\x7a\x12\x39\x98\xab\xd8"
  10249. "\x7e\x6f\xa3\xd1\xba\x56\xad\xbd"
  10250. "\xf0\x03\x01\x1c\x85\x35\x9f\xeb"
  10251. "\x19\x63\xa1\xaf\xfe\x2d\x35\x50"
  10252. "\x39\xa0\x65\x7c\x95\x7e\x6b\xfe"
  10253. "\xc1\xac\x07\x7c\x98\x4f\xbe\x57"
  10254. "\xa7\x22\xec\xe2\x7e\x29\x09\x53"
  10255. "\xe8\xbf\xb4\x7e\x3f\x8f\xfc\x14"
  10256. "\xce\x54\xf9\x18\x58\xb5\xff\x44"
  10257. "\x05\x9d\xce\x1b\xb6\x82\x23\xc8"
  10258. "\x2e\xbc\x69\xbb\x4a\x29\x0f\x65"
  10259. "\x94\xf0\x63\x06\x0e\xef\x8c\xbd"
  10260. "\xff\xfd\xb0\x21\x6e\x57\x05\x75"
  10261. "\xda\xd5\xc4\xeb\x8d\x32\xf7\x50"
  10262. "\xd3\x6f\x22\xed\x5f\x8e\xa2\x5b"
  10263. "\x80\x8c\xc8\x78\x40\x24\x4b\x89"
  10264. "\x30\xce\x7a\x97\x0e\xc4\xaf\xef"
  10265. "\x9b\xb4\xcd\x66\x74\x14\x04\x2b"
  10266. "\xf7\xce\x0b\x1c\x6e\xc2\x78\x8c"
  10267. "\xca\xc5\xd0\x1c\x95\x4a\x91\x2d"
  10268. "\xa7\x20\xeb\x86\x52\xb7\x67\xd8"
  10269. "\x0c\xd6\x04\x14\xde\x51\x74\x75"
  10270. "\xe7\x11\xb4\x87\xa3\x3d\x2d\xad"
  10271. "\x4f\xef\xa0\x0f\x70\x00\x6d\x13"
  10272. "\x19\x1d\x41\x50\xe9\xd8\xf0\x32"
  10273. "\x71\xbc\xd3\x11\xf2\xac\xbe\xaf"
  10274. "\x75\x46\x65\x4e\x07\x34\x37\xa3"
  10275. "\x89\xfe\x75\xd4\x70\x4c\xc6\x3f"
  10276. "\x69\x24\x0e\x38\x67\x43\x8c\xde"
  10277. "\x06\xb5\xb8\xe7\xc4\xf0\x41\x8f"
  10278. "\xf0\xbd\x2f\x0b\xb9\x18\xf8\xde"
  10279. "\x64\xb1\xdb\xee\x00\x50\x77\xe1"
  10280. "\xc7\xff\xa6\xfa\xdd\x70\xf4\xe3"
  10281. "\x93\xe9\x77\x35\x3d\x4b\x2f\x2b"
  10282. "\x6d\x55\xf0\xfc\x88\x54\x4e\x89"
  10283. "\xc1\x8a\x23\x31\x2d\x14\x2a\xb8"
  10284. "\x1b\x15\xdd\x9e\x6e\x7b\xda\x05"
  10285. "\x91\x7d\x62\x64\x96\x72\xde\xfc"
  10286. "\xc1\xec\xf0\x23\x51\x6f\xdb\x5b"
  10287. "\x1d\x08\x57\xce\x09\xb8\xf6\xcd"
  10288. "\x8d\x95\xf2\x20\xbf\x0f\x20\x57"
  10289. "\x98\x81\x84\x4f\x15\x5c\x76\xe7"
  10290. "\x3e\x0a\x3a\x6c\xc4\x8a\xbe\x78"
  10291. "\x74\x77\xc3\x09\x4b\x5d\x48\xe4"
  10292. "\xc8\xcb\x0b\xea\x17\x28\xcf\xcf"
  10293. "\x31\x32\x44\xa4\xe5\x0e\x1a\x98"
  10294. "\x94\xc4\xf0\xff\xae\x3e\x44\xe8"
  10295. "\xa5\xb3\xb5\x37\x2f\xe8\xaf\x6f"
  10296. "\x28\xc1\x37\x5f\x31\xd2\xb9\x33"
  10297. "\xb1\xb2\x52\x94\x75\x2c\x29\x59"
  10298. "\x06\xc2\x25\xe8\x71\x65\x4e\xed"
  10299. "\xc0\x9c\xb1\xbb\x25\xdc\x6c\xe7"
  10300. "\x4b\xa5\x7a\x54\x7a\x60\xff\x7a"
  10301. "\xe0\x50\x40\x96\x35\x63\xe4\x0b"
  10302. "\x76\xbd\xa4\x65\x00\x1b\x57\x88"
  10303. "\xae\xed\x39\x88\x42\x11\x3c\xed"
  10304. "\x85\x67\x7d\xb9\x68\x82\xe9\x43"
  10305. "\x3c\x47\x53\xfa\xe8\xf8\x9f\x1f"
  10306. "\x9f\xef\x0f\xf7\x30\xd9\x30\x0e"
  10307. "\xb9\x9f\x69\x18\x2f\x7e\xf8\xf8"
  10308. "\xf8\x8c\x0f\xd4\x02\x4d\xea\xcd"
  10309. "\x0a\x9c\x6f\x71\x6d\x5a\x4c\x60"
  10310. "\xce\x20\x56\x32\xc6\xc5\x99\x1f"
  10311. "\x09\xe6\x4e\x18\x1a\x15\x13\xa8"
  10312. "\x7d\xb1\x6b\xc0\xb2\x6d\xf8\x26"
  10313. "\x66\xf8\x3d\x18\x74\x70\x66\x7a"
  10314. "\x34\x17\xde\xba\x47\xf1\x06\x18"
  10315. "\xcb\xaf\xeb\x4a\x1e\x8f\xa7\x77"
  10316. "\xe0\x3b\x78\x62\x66\xc9\x10\xea"
  10317. "\x1f\xb7\x29\x0a\x45\xa1\x1d\x1e"
  10318. "\x1d\xe2\x65\x61\x50\x9c\xd7\x05"
  10319. "\xf2\x0b\x5b\x12\x61\x02\xc8\xe5"
  10320. "\x63\x4f\x20\x0c\x07\x17\x33\x5e"
  10321. "\x03\x9a\x53\x0f\x2e\x55\xfe\x50"
  10322. "\x43\x7d\xd0\xb6\x7e\x5a\xda\xae"
  10323. "\x58\xef\x15\xa9\x83\xd9\x46\xb1"
  10324. "\x42\xaa\xf5\x02\x6c\xce\x92\x06"
  10325. "\x1b\xdb\x66\x45\x91\x79\xc2\x2d"
  10326. "\xe6\x53\xd3\x14\xfd\xbb\x44\x63"
  10327. "\xc6\xd7\x3d\x7a\x0c\x75\x78\x9d"
  10328. "\x5c\xa6\x39\xb3\xe5\x63\xca\x8b"
  10329. "\xfe\xd3\xef\x60\x83\xf6\x8e\x70"
  10330. "\xb6\x67\xc7\x77\xed\x23\xef\x4c"
  10331. "\xf0\xed\x2d\x07\x59\x6f\xc1\x01"
  10332. "\x34\x37\x08\xab\xd9\x1f\x09\xb1"
  10333. "\xce\x5b\x17\xff\x74\xf8\x9c\xd5"
  10334. "\x2c\x56\x39\x79\x0f\x69\x44\x75"
  10335. "\x58\x27\x01\xc4\xbf\xa7\xa1\x1d"
  10336. "\x90\x17\x77\x86\x5a\x3f\xd9\xd1"
  10337. "\x0e\xa0\x10\xf8\xec\x1e\xa5\x7f"
  10338. "\x5e\x36\xd1\xe3\x04\x2c\x70\xf7"
  10339. "\x8e\xc0\x98\x2f\x6c\x94\x2b\x41"
  10340. "\xb7\x60\x00\xb7\x2e\xb8\x02\x8d"
  10341. "\xb8\xb0\xd3\x86\xba\x1d\xd7\x90"
  10342. "\xd6\xb6\xe1\xfc\xd7\xd8\x28\x06"
  10343. "\x63\x9b\xce\x61\x24\x79\xc0\x70"
  10344. "\x52\xd0\xb6\xd4\x28\x95\x24\x87"
  10345. "\x03\x1f\xb7\x9a\xda\xa3\xfb\x52"
  10346. "\x5b\x68\xe7\x4c\x8c\x24\xe1\x42"
  10347. "\xf7\xd5\xfd\xad\x06\x32\x9f\xba"
  10348. "\xc1\xfc\xdd\xc6\xfc\xfc\xb3\x38"
  10349. "\x74\x56\x58\x40\x02\x37\x52\x2c"
  10350. "\x55\xcc\xb3\x9e\x7a\xe9\xd4\x38"
  10351. "\x41\x5e\x0c\x35\xe2\x11\xd1\x13"
  10352. "\xf8\xb7\x8d\x72\x6b\x22\x2a\xb0"
  10353. "\xdb\x08\xba\x35\xb9\x3f\xc8\xd3"
  10354. "\x24\x90\xec\x58\xd2\x09\xc7\x2d"
  10355. "\xed\x38\x80\x36\x72\x43\x27\x49"
  10356. "\x4a\x80\x8a\xa2\xe8\xd3\xda\x30"
  10357. "\x7d\xb6\x82\x37\x86\x92\x86\x3e"
  10358. "\x08\xb2\x28\x5a\x55\x44\x24\x7d"
  10359. "\x40\x48\x8a\xb6\x89\x58\x08\xa0"
  10360. "\xd6\x6d\x3a\x17\xbf\xf6\x54\xa2"
  10361. "\xf5\xd3\x8c\x0f\x78\x12\x57\x8b"
  10362. "\xd5\xc2\xfd\x58\x5b\x7f\x38\xe3"
  10363. "\xcc\xb7\x7c\x48\xb3\x20\xe8\x81"
  10364. "\x14\x32\x45\x05\xe0\xdb\x9f\x75"
  10365. "\x85\xb4\x6a\xfc\x95\xe3\x54\x22"
  10366. "\x12\xee\x30\xfe\xd8\x30\xef\x34"
  10367. "\x50\xab\x46\x30\x98\x2f\xb7\xc0"
  10368. "\x15\xa2\x83\xb6\xf2\x06\x21\xa2"
  10369. "\xc3\x26\x37\x14\xd1\x4d\xb5\x10"
  10370. "\x52\x76\x4d\x6a\xee\xb5\x2b\x15"
  10371. "\xb7\xf9\x51\xe8\x2a\xaf\xc7\xfa"
  10372. "\x77\xaf\xb0\x05\x4d\xd1\x68\x8e"
  10373. "\x74\x05\x9f\x9d\x93\xa5\x3e\x7f"
  10374. "\x4e\x5f\x9d\xcb\x09\xc7\x83\xe3"
  10375. "\x02\x9d\x27\x1f\xef\x85\x05\x8d"
  10376. "\xec\x55\x88\x0f\x0d\x7c\x4c\xe8"
  10377. "\xa1\x75\xa0\xd8\x06\x47\x14\xef"
  10378. "\xaa\x61\xcf\x26\x15\xad\xd8\xa3"
  10379. "\xaa\x75\xf2\x78\x4a\x5a\x61\xdf"
  10380. "\x8b\xc7\x04\xbc\xb2\x32\xd2\x7e"
  10381. "\x42\xee\xb4\x2f\x51\xff\x7b\x2e"
  10382. "\xd3\x02\xe8\xdc\x5d\x0d\x50\xdc"
  10383. "\xae\xb7\x46\xf9\xa8\xe6\xd0\x16"
  10384. "\xcc\xe6\x2c\x81\xc7\xad\xe9\xf0"
  10385. "\x05\x72\x6d\x3d\x0a\x7a\xa9\x02"
  10386. "\xac\x82\x93\x6e\xb6\x1c\x28\xfc"
  10387. "\x44\x12\xfb\x73\x77\xd4\x13\x39"
  10388. "\x29\x88\x8a\xf3\x5c\xa6\x36\xa0"
  10389. "\x2a\xed\x7e\xb1\x1d\xd6\x4c\x6b"
  10390. "\x41\x01\x18\x5d\x5d\x07\x97\xa6"
  10391. "\x4b\xef\x31\x18\xea\xac\xb1\x84"
  10392. "\x21\xed\xda\x86",
  10393. .rlen = 4100,
  10394. .np = 2,
  10395. .tap = { 4064, 36 },
  10396. },
  10397. };
  10398. static struct cipher_testvec aes_ctr_rfc3686_dec_tv_template[] = {
  10399. { /* From RFC 3686 */
  10400. .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
  10401. "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
  10402. "\x00\x00\x00\x30",
  10403. .klen = 20,
  10404. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  10405. .input = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
  10406. "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
  10407. .ilen = 16,
  10408. .result = "Single block msg",
  10409. .rlen = 16,
  10410. }, {
  10411. .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
  10412. "\x43\xd6\xce\x1f\x32\x53\x91\x63"
  10413. "\x00\x6c\xb6\xdb",
  10414. .klen = 20,
  10415. .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
  10416. .input = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
  10417. "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
  10418. "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
  10419. "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
  10420. .ilen = 32,
  10421. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  10422. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  10423. "\x10\x11\x12\x13\x14\x15\x16\x17"
  10424. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  10425. .rlen = 32,
  10426. }, {
  10427. .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
  10428. "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
  10429. "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
  10430. "\x00\x00\x00\x48",
  10431. .klen = 28,
  10432. .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
  10433. .input = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
  10434. "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
  10435. .ilen = 16,
  10436. .result = "Single block msg",
  10437. .rlen = 16,
  10438. }, {
  10439. .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
  10440. "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
  10441. "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
  10442. "\x00\x96\xb0\x3b",
  10443. .klen = 28,
  10444. .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
  10445. .input = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
  10446. "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
  10447. "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
  10448. "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
  10449. .ilen = 32,
  10450. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  10451. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  10452. "\x10\x11\x12\x13\x14\x15\x16\x17"
  10453. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  10454. .rlen = 32,
  10455. }, {
  10456. .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
  10457. "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
  10458. "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
  10459. "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
  10460. "\x00\x00\x00\x60",
  10461. .klen = 36,
  10462. .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
  10463. .input = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
  10464. "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
  10465. .ilen = 16,
  10466. .result = "Single block msg",
  10467. .rlen = 16,
  10468. }, {
  10469. .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
  10470. "\x07\x96\x36\x58\x79\xef\xf8\x86"
  10471. "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
  10472. "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
  10473. "\x00\xfa\xac\x24",
  10474. .klen = 36,
  10475. .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
  10476. .input = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
  10477. "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
  10478. "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
  10479. "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
  10480. .ilen = 32,
  10481. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  10482. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  10483. "\x10\x11\x12\x13\x14\x15\x16\x17"
  10484. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  10485. .rlen = 32,
  10486. },
  10487. };
  10488. static struct cipher_testvec aes_ofb_enc_tv_template[] = {
  10489. /* From NIST Special Publication 800-38A, Appendix F.5 */
  10490. {
  10491. .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
  10492. "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
  10493. .klen = 16,
  10494. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08"
  10495. "\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  10496. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  10497. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  10498. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  10499. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  10500. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  10501. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  10502. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  10503. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  10504. .ilen = 64,
  10505. .result = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
  10506. "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
  10507. "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5"
  10508. "\x3c\x52\xda\xc5\x4e\xd8\x25"
  10509. "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43"
  10510. "\x44\xf7\xa8\x22\x60\xed\xcc"
  10511. "\x30\x4c\x65\x28\xf6\x59\xc7\x78"
  10512. "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e",
  10513. .rlen = 64,
  10514. }
  10515. };
  10516. static struct cipher_testvec aes_ofb_dec_tv_template[] = {
  10517. /* From NIST Special Publication 800-38A, Appendix F.5 */
  10518. {
  10519. .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
  10520. "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
  10521. .klen = 16,
  10522. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08"
  10523. "\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  10524. .input = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
  10525. "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
  10526. "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5"
  10527. "\x3c\x52\xda\xc5\x4e\xd8\x25"
  10528. "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43"
  10529. "\x44\xf7\xa8\x22\x60\xed\xcc"
  10530. "\x30\x4c\x65\x28\xf6\x59\xc7\x78"
  10531. "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e",
  10532. .ilen = 64,
  10533. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  10534. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  10535. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  10536. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  10537. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  10538. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  10539. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  10540. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  10541. .rlen = 64,
  10542. }
  10543. };
  10544. static struct aead_testvec aes_gcm_enc_tv_template[] = {
  10545. { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
  10546. .key = zeroed_string,
  10547. .klen = 16,
  10548. .result = "\x58\xe2\xfc\xce\xfa\x7e\x30\x61"
  10549. "\x36\x7f\x1d\x57\xa4\xe7\x45\x5a",
  10550. .rlen = 16,
  10551. }, {
  10552. .key = zeroed_string,
  10553. .klen = 16,
  10554. .input = zeroed_string,
  10555. .ilen = 16,
  10556. .result = "\x03\x88\xda\xce\x60\xb6\xa3\x92"
  10557. "\xf3\x28\xc2\xb9\x71\xb2\xfe\x78"
  10558. "\xab\x6e\x47\xd4\x2c\xec\x13\xbd"
  10559. "\xf5\x3a\x67\xb2\x12\x57\xbd\xdf",
  10560. .rlen = 32,
  10561. }, {
  10562. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  10563. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  10564. .klen = 16,
  10565. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  10566. "\xde\xca\xf8\x88",
  10567. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  10568. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  10569. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  10570. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  10571. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  10572. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  10573. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  10574. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  10575. .ilen = 64,
  10576. .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  10577. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  10578. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  10579. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  10580. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  10581. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  10582. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  10583. "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
  10584. "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
  10585. "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
  10586. .rlen = 80,
  10587. }, {
  10588. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  10589. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  10590. .klen = 16,
  10591. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  10592. "\xde\xca\xf8\x88",
  10593. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  10594. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  10595. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  10596. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  10597. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  10598. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  10599. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  10600. "\xba\x63\x7b\x39",
  10601. .ilen = 60,
  10602. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  10603. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  10604. "\xab\xad\xda\xd2",
  10605. .alen = 20,
  10606. .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  10607. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  10608. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  10609. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  10610. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  10611. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  10612. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  10613. "\x3d\x58\xe0\x91"
  10614. "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
  10615. "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
  10616. .rlen = 76,
  10617. }, {
  10618. .key = zeroed_string,
  10619. .klen = 24,
  10620. .result = "\xcd\x33\xb2\x8a\xc7\x73\xf7\x4b"
  10621. "\xa0\x0e\xd1\xf3\x12\x57\x24\x35",
  10622. .rlen = 16,
  10623. }, {
  10624. .key = zeroed_string,
  10625. .klen = 24,
  10626. .input = zeroed_string,
  10627. .ilen = 16,
  10628. .result = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
  10629. "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
  10630. "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
  10631. "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
  10632. .rlen = 32,
  10633. }, {
  10634. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  10635. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  10636. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  10637. .klen = 24,
  10638. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  10639. "\xde\xca\xf8\x88",
  10640. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  10641. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  10642. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  10643. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  10644. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  10645. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  10646. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  10647. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  10648. .ilen = 64,
  10649. .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  10650. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  10651. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  10652. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  10653. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  10654. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  10655. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  10656. "\xcc\xda\x27\x10\xac\xad\xe2\x56"
  10657. "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
  10658. "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
  10659. .rlen = 80,
  10660. }, {
  10661. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  10662. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  10663. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  10664. .klen = 24,
  10665. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  10666. "\xde\xca\xf8\x88",
  10667. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  10668. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  10669. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  10670. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  10671. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  10672. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  10673. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  10674. "\xba\x63\x7b\x39",
  10675. .ilen = 60,
  10676. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  10677. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  10678. "\xab\xad\xda\xd2",
  10679. .alen = 20,
  10680. .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  10681. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  10682. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  10683. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  10684. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  10685. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  10686. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  10687. "\xcc\xda\x27\x10"
  10688. "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
  10689. "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
  10690. .rlen = 76,
  10691. .np = 2,
  10692. .tap = { 32, 28 },
  10693. .anp = 2,
  10694. .atap = { 8, 12 }
  10695. }, {
  10696. .key = zeroed_string,
  10697. .klen = 32,
  10698. .result = "\x53\x0f\x8a\xfb\xc7\x45\x36\xb9"
  10699. "\xa9\x63\xb4\xf1\xc4\xcb\x73\x8b",
  10700. .rlen = 16,
  10701. }
  10702. };
  10703. static struct aead_testvec aes_gcm_dec_tv_template[] = {
  10704. { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
  10705. .key = zeroed_string,
  10706. .klen = 32,
  10707. .input = "\xce\xa7\x40\x3d\x4d\x60\x6b\x6e"
  10708. "\x07\x4e\xc5\xd3\xba\xf3\x9d\x18"
  10709. "\xd0\xd1\xc8\xa7\x99\x99\x6b\xf0"
  10710. "\x26\x5b\x98\xb5\xd4\x8a\xb9\x19",
  10711. .ilen = 32,
  10712. .result = zeroed_string,
  10713. .rlen = 16,
  10714. }, {
  10715. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  10716. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  10717. "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  10718. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  10719. .klen = 32,
  10720. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  10721. "\xde\xca\xf8\x88",
  10722. .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
  10723. "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
  10724. "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
  10725. "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
  10726. "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
  10727. "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
  10728. "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
  10729. "\xbc\xc9\xf6\x62\x89\x80\x15\xad"
  10730. "\xb0\x94\xda\xc5\xd9\x34\x71\xbd"
  10731. "\xec\x1a\x50\x22\x70\xe3\xcc\x6c",
  10732. .ilen = 80,
  10733. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  10734. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  10735. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  10736. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  10737. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  10738. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  10739. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  10740. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  10741. .rlen = 64,
  10742. }, {
  10743. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  10744. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  10745. "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  10746. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  10747. .klen = 32,
  10748. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  10749. "\xde\xca\xf8\x88",
  10750. .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
  10751. "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
  10752. "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
  10753. "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
  10754. "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
  10755. "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
  10756. "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
  10757. "\xbc\xc9\xf6\x62"
  10758. "\x76\xfc\x6e\xce\x0f\x4e\x17\x68"
  10759. "\xcd\xdf\x88\x53\xbb\x2d\x55\x1b",
  10760. .ilen = 76,
  10761. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  10762. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  10763. "\xab\xad\xda\xd2",
  10764. .alen = 20,
  10765. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  10766. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  10767. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  10768. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  10769. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  10770. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  10771. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  10772. "\xba\x63\x7b\x39",
  10773. .rlen = 60,
  10774. .np = 2,
  10775. .tap = { 48, 28 },
  10776. .anp = 3,
  10777. .atap = { 8, 8, 4 }
  10778. }, {
  10779. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  10780. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  10781. .klen = 16,
  10782. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  10783. "\xde\xca\xf8\x88",
  10784. .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  10785. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  10786. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  10787. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  10788. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  10789. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  10790. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  10791. "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
  10792. "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
  10793. "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
  10794. .ilen = 80,
  10795. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  10796. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  10797. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  10798. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  10799. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  10800. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  10801. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  10802. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  10803. .rlen = 64,
  10804. }, {
  10805. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  10806. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  10807. .klen = 16,
  10808. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  10809. "\xde\xca\xf8\x88",
  10810. .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  10811. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  10812. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  10813. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  10814. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  10815. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  10816. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  10817. "\x3d\x58\xe0\x91"
  10818. "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
  10819. "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
  10820. .ilen = 76,
  10821. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  10822. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  10823. "\xab\xad\xda\xd2",
  10824. .alen = 20,
  10825. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  10826. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  10827. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  10828. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  10829. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  10830. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  10831. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  10832. "\xba\x63\x7b\x39",
  10833. .rlen = 60,
  10834. }, {
  10835. .key = zeroed_string,
  10836. .klen = 24,
  10837. .input = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
  10838. "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
  10839. "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
  10840. "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
  10841. .ilen = 32,
  10842. .result = zeroed_string,
  10843. .rlen = 16,
  10844. }, {
  10845. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  10846. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  10847. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  10848. .klen = 24,
  10849. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  10850. "\xde\xca\xf8\x88",
  10851. .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  10852. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  10853. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  10854. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  10855. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  10856. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  10857. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  10858. "\xcc\xda\x27\x10\xac\xad\xe2\x56"
  10859. "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
  10860. "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
  10861. .ilen = 80,
  10862. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  10863. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  10864. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  10865. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  10866. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  10867. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  10868. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  10869. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  10870. .rlen = 64,
  10871. }, {
  10872. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  10873. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  10874. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  10875. .klen = 24,
  10876. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  10877. "\xde\xca\xf8\x88",
  10878. .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  10879. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  10880. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  10881. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  10882. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  10883. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  10884. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  10885. "\xcc\xda\x27\x10"
  10886. "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
  10887. "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
  10888. .ilen = 76,
  10889. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  10890. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  10891. "\xab\xad\xda\xd2",
  10892. .alen = 20,
  10893. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  10894. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  10895. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  10896. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  10897. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  10898. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  10899. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  10900. "\xba\x63\x7b\x39",
  10901. .rlen = 60,
  10902. }
  10903. };
  10904. static struct aead_testvec aes_gcm_rfc4106_enc_tv_template[] = {
  10905. { /* Generated using Crypto++ */
  10906. .key = zeroed_string,
  10907. .klen = 20,
  10908. .iv = zeroed_string,
  10909. .input = zeroed_string,
  10910. .ilen = 16,
  10911. .assoc = zeroed_string,
  10912. .alen = 8,
  10913. .result = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
  10914. "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
  10915. "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
  10916. "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
  10917. .rlen = 32,
  10918. },{
  10919. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  10920. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  10921. "\x00\x00\x00\x00",
  10922. .klen = 20,
  10923. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
  10924. "\x00\x00\x00\x00",
  10925. .input = zeroed_string,
  10926. .ilen = 16,
  10927. .assoc = zeroed_string,
  10928. .alen = 8,
  10929. .result = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
  10930. "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
  10931. "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
  10932. "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
  10933. .rlen = 32,
  10934. }, {
  10935. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  10936. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  10937. "\x00\x00\x00\x00",
  10938. .klen = 20,
  10939. .iv = zeroed_string,
  10940. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  10941. "\x01\x01\x01\x01\x01\x01\x01\x01",
  10942. .ilen = 16,
  10943. .assoc = zeroed_string,
  10944. .alen = 8,
  10945. .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
  10946. "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
  10947. "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
  10948. "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
  10949. .rlen = 32,
  10950. }, {
  10951. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  10952. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  10953. "\x00\x00\x00\x00",
  10954. .klen = 20,
  10955. .iv = zeroed_string,
  10956. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  10957. "\x01\x01\x01\x01\x01\x01\x01\x01",
  10958. .ilen = 16,
  10959. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
  10960. .alen = 8,
  10961. .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
  10962. "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
  10963. "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
  10964. "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
  10965. .rlen = 32,
  10966. }, {
  10967. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  10968. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  10969. "\x00\x00\x00\x00",
  10970. .klen = 20,
  10971. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
  10972. "\x00\x00\x00\x00",
  10973. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  10974. "\x01\x01\x01\x01\x01\x01\x01\x01",
  10975. .ilen = 16,
  10976. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
  10977. .alen = 8,
  10978. .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
  10979. "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
  10980. "\x64\x50\xF9\x32\x13\xFB\x74\x61"
  10981. "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
  10982. .rlen = 32,
  10983. }, {
  10984. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  10985. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  10986. "\x00\x00\x00\x00",
  10987. .klen = 20,
  10988. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
  10989. "\x00\x00\x00\x00",
  10990. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  10991. "\x01\x01\x01\x01\x01\x01\x01\x01"
  10992. "\x01\x01\x01\x01\x01\x01\x01\x01"
  10993. "\x01\x01\x01\x01\x01\x01\x01\x01"
  10994. "\x01\x01\x01\x01\x01\x01\x01\x01"
  10995. "\x01\x01\x01\x01\x01\x01\x01\x01"
  10996. "\x01\x01\x01\x01\x01\x01\x01\x01"
  10997. "\x01\x01\x01\x01\x01\x01\x01\x01",
  10998. .ilen = 64,
  10999. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
  11000. .alen = 8,
  11001. .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
  11002. "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
  11003. "\x98\x14\xA1\x42\x37\x80\xFD\x90"
  11004. "\x68\x12\x01\xA8\x91\x89\xB9\x83"
  11005. "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
  11006. "\x94\x5F\x18\x12\xBA\x27\x09\x39"
  11007. "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
  11008. "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
  11009. "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
  11010. "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
  11011. .rlen = 80,
  11012. }, {
  11013. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  11014. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  11015. "\x00\x00\x00\x00",
  11016. .klen = 20,
  11017. .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef"
  11018. "\x00\x00\x00\x00",
  11019. .input = "\xff\xff\xff\xff\xff\xff\xff\xff"
  11020. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11021. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11022. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11023. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11024. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11025. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11026. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11027. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11028. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11029. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11030. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11031. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11032. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11033. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11034. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11035. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11036. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11037. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11038. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11039. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11040. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11041. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11042. "\xff\xff\xff\xff\xff\xff\xff\xff",
  11043. .ilen = 192,
  11044. .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  11045. "\xaa\xaa\xaa\xaa",
  11046. .alen = 12,
  11047. .result = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
  11048. "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
  11049. "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
  11050. "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
  11051. "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
  11052. "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
  11053. "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
  11054. "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
  11055. "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
  11056. "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
  11057. "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
  11058. "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
  11059. "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
  11060. "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
  11061. "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
  11062. "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
  11063. "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
  11064. "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
  11065. "\x7E\x13\x06\x82\x08\x17\xA4\x35"
  11066. "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
  11067. "\xA3\x05\x38\x95\x20\x1A\x47\x04"
  11068. "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
  11069. "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
  11070. "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
  11071. "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
  11072. "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
  11073. .rlen = 208,
  11074. }
  11075. };
  11076. static struct aead_testvec aes_gcm_rfc4106_dec_tv_template[] = {
  11077. { /* Generated using Crypto++ */
  11078. .key = zeroed_string,
  11079. .klen = 20,
  11080. .iv = zeroed_string,
  11081. .input = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
  11082. "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
  11083. "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
  11084. "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
  11085. .ilen = 32,
  11086. .assoc = zeroed_string,
  11087. .alen = 8,
  11088. .result = zeroed_string,
  11089. .rlen = 16,
  11090. },{
  11091. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  11092. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  11093. "\x00\x00\x00\x00",
  11094. .klen = 20,
  11095. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
  11096. "\x00\x00\x00\x00",
  11097. .input = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
  11098. "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
  11099. "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
  11100. "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
  11101. .ilen = 32,
  11102. .assoc = zeroed_string,
  11103. .alen = 8,
  11104. .result = zeroed_string,
  11105. .rlen = 16,
  11106. }, {
  11107. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  11108. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  11109. "\x00\x00\x00\x00",
  11110. .klen = 20,
  11111. .iv = zeroed_string,
  11112. .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
  11113. "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
  11114. "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
  11115. "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
  11116. .ilen = 32,
  11117. .assoc = zeroed_string,
  11118. .alen = 8,
  11119. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  11120. "\x01\x01\x01\x01\x01\x01\x01\x01",
  11121. .rlen = 16,
  11122. }, {
  11123. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  11124. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  11125. "\x00\x00\x00\x00",
  11126. .klen = 20,
  11127. .iv = zeroed_string,
  11128. .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
  11129. "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
  11130. "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
  11131. "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
  11132. .ilen = 32,
  11133. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
  11134. .alen = 8,
  11135. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  11136. "\x01\x01\x01\x01\x01\x01\x01\x01",
  11137. .rlen = 16,
  11138. }, {
  11139. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  11140. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  11141. "\x00\x00\x00\x00",
  11142. .klen = 20,
  11143. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
  11144. "\x00\x00\x00\x00",
  11145. .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
  11146. "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
  11147. "\x64\x50\xF9\x32\x13\xFB\x74\x61"
  11148. "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
  11149. .ilen = 32,
  11150. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
  11151. .alen = 8,
  11152. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  11153. "\x01\x01\x01\x01\x01\x01\x01\x01",
  11154. .rlen = 16,
  11155. }, {
  11156. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  11157. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  11158. "\x00\x00\x00\x00",
  11159. .klen = 20,
  11160. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
  11161. "\x00\x00\x00\x00",
  11162. .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
  11163. "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
  11164. "\x98\x14\xA1\x42\x37\x80\xFD\x90"
  11165. "\x68\x12\x01\xA8\x91\x89\xB9\x83"
  11166. "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
  11167. "\x94\x5F\x18\x12\xBA\x27\x09\x39"
  11168. "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
  11169. "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
  11170. "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
  11171. "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
  11172. .ilen = 80,
  11173. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
  11174. .alen = 8,
  11175. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  11176. "\x01\x01\x01\x01\x01\x01\x01\x01"
  11177. "\x01\x01\x01\x01\x01\x01\x01\x01"
  11178. "\x01\x01\x01\x01\x01\x01\x01\x01"
  11179. "\x01\x01\x01\x01\x01\x01\x01\x01"
  11180. "\x01\x01\x01\x01\x01\x01\x01\x01"
  11181. "\x01\x01\x01\x01\x01\x01\x01\x01"
  11182. "\x01\x01\x01\x01\x01\x01\x01\x01",
  11183. .rlen = 64,
  11184. }, {
  11185. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  11186. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  11187. "\x00\x00\x00\x00",
  11188. .klen = 20,
  11189. .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef"
  11190. "\x00\x00\x00\x00",
  11191. .input = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
  11192. "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
  11193. "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
  11194. "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
  11195. "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
  11196. "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
  11197. "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
  11198. "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
  11199. "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
  11200. "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
  11201. "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
  11202. "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
  11203. "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
  11204. "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
  11205. "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
  11206. "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
  11207. "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
  11208. "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
  11209. "\x7E\x13\x06\x82\x08\x17\xA4\x35"
  11210. "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
  11211. "\xA3\x05\x38\x95\x20\x1A\x47\x04"
  11212. "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
  11213. "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
  11214. "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
  11215. "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
  11216. "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
  11217. .ilen = 208,
  11218. .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  11219. "\xaa\xaa\xaa\xaa",
  11220. .alen = 12,
  11221. .result = "\xff\xff\xff\xff\xff\xff\xff\xff"
  11222. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11223. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11224. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11225. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11226. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11227. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11228. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11229. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11230. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11231. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11232. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11233. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11234. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11235. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11236. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11237. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11238. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11239. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11240. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11241. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11242. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11243. "\xff\xff\xff\xff\xff\xff\xff\xff"
  11244. "\xff\xff\xff\xff\xff\xff\xff\xff",
  11245. .rlen = 192,
  11246. }
  11247. };
  11248. static struct aead_testvec aes_ccm_enc_tv_template[] = {
  11249. { /* From RFC 3610 */
  11250. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  11251. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  11252. .klen = 16,
  11253. .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
  11254. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  11255. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  11256. .alen = 8,
  11257. .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  11258. "\x10\x11\x12\x13\x14\x15\x16\x17"
  11259. "\x18\x19\x1a\x1b\x1c\x1d\x1e",
  11260. .ilen = 23,
  11261. .result = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
  11262. "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
  11263. "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
  11264. "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
  11265. .rlen = 31,
  11266. }, {
  11267. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  11268. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  11269. .klen = 16,
  11270. .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
  11271. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  11272. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  11273. "\x08\x09\x0a\x0b",
  11274. .alen = 12,
  11275. .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  11276. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  11277. "\x1c\x1d\x1e\x1f",
  11278. .ilen = 20,
  11279. .result = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
  11280. "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
  11281. "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
  11282. "\x7d\x9c\x2d\x93",
  11283. .rlen = 28,
  11284. }, {
  11285. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  11286. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  11287. .klen = 16,
  11288. .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
  11289. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  11290. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  11291. .alen = 8,
  11292. .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  11293. "\x10\x11\x12\x13\x14\x15\x16\x17"
  11294. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  11295. "\x20",
  11296. .ilen = 25,
  11297. .result = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
  11298. "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
  11299. "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
  11300. "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
  11301. "\x7e\x5f\x4e",
  11302. .rlen = 35,
  11303. }, {
  11304. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  11305. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  11306. .klen = 16,
  11307. .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
  11308. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  11309. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  11310. "\x08\x09\x0a\x0b",
  11311. .alen = 12,
  11312. .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  11313. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  11314. "\x1c\x1d\x1e",
  11315. .ilen = 19,
  11316. .result = "\x07\x34\x25\x94\x15\x77\x85\x15"
  11317. "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
  11318. "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
  11319. "\x4d\x99\x99\x88\xdd",
  11320. .rlen = 29,
  11321. }, {
  11322. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  11323. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  11324. .klen = 16,
  11325. .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
  11326. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  11327. .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
  11328. .alen = 8,
  11329. .input = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
  11330. "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
  11331. "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
  11332. .ilen = 24,
  11333. .result = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
  11334. "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
  11335. "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
  11336. "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
  11337. .rlen = 32,
  11338. }, {
  11339. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  11340. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  11341. .klen = 16,
  11342. .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
  11343. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  11344. .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
  11345. "\x20\xea\x60\xc0",
  11346. .alen = 12,
  11347. .input = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
  11348. "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
  11349. "\x3a\x80\x3b\xa8\x7f",
  11350. .ilen = 21,
  11351. .result = "\x00\x97\x69\xec\xab\xdf\x48\x62"
  11352. "\x55\x94\xc5\x92\x51\xe6\x03\x57"
  11353. "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
  11354. "\x5a\xe0\x70\x45\x51",
  11355. .rlen = 29,
  11356. }, {
  11357. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  11358. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  11359. .klen = 16,
  11360. .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
  11361. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  11362. .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
  11363. .alen = 8,
  11364. .input = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
  11365. "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
  11366. "\x98\x09\xd6\x7d\xbe\xdd\x18",
  11367. .ilen = 23,
  11368. .result = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
  11369. "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
  11370. "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
  11371. "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
  11372. "\xba",
  11373. .rlen = 33,
  11374. },
  11375. };
  11376. static struct aead_testvec aes_ccm_dec_tv_template[] = {
  11377. { /* From RFC 3610 */
  11378. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  11379. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  11380. .klen = 16,
  11381. .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
  11382. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  11383. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  11384. .alen = 8,
  11385. .input = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
  11386. "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
  11387. "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
  11388. "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
  11389. .ilen = 31,
  11390. .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  11391. "\x10\x11\x12\x13\x14\x15\x16\x17"
  11392. "\x18\x19\x1a\x1b\x1c\x1d\x1e",
  11393. .rlen = 23,
  11394. }, {
  11395. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  11396. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  11397. .klen = 16,
  11398. .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
  11399. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  11400. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  11401. "\x08\x09\x0a\x0b",
  11402. .alen = 12,
  11403. .input = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
  11404. "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
  11405. "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
  11406. "\x7d\x9c\x2d\x93",
  11407. .ilen = 28,
  11408. .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  11409. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  11410. "\x1c\x1d\x1e\x1f",
  11411. .rlen = 20,
  11412. }, {
  11413. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  11414. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  11415. .klen = 16,
  11416. .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
  11417. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  11418. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  11419. .alen = 8,
  11420. .input = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
  11421. "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
  11422. "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
  11423. "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
  11424. "\x7e\x5f\x4e",
  11425. .ilen = 35,
  11426. .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  11427. "\x10\x11\x12\x13\x14\x15\x16\x17"
  11428. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  11429. "\x20",
  11430. .rlen = 25,
  11431. }, {
  11432. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  11433. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  11434. .klen = 16,
  11435. .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
  11436. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  11437. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  11438. "\x08\x09\x0a\x0b",
  11439. .alen = 12,
  11440. .input = "\x07\x34\x25\x94\x15\x77\x85\x15"
  11441. "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
  11442. "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
  11443. "\x4d\x99\x99\x88\xdd",
  11444. .ilen = 29,
  11445. .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  11446. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  11447. "\x1c\x1d\x1e",
  11448. .rlen = 19,
  11449. }, {
  11450. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  11451. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  11452. .klen = 16,
  11453. .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
  11454. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  11455. .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
  11456. .alen = 8,
  11457. .input = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
  11458. "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
  11459. "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
  11460. "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
  11461. .ilen = 32,
  11462. .result = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
  11463. "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
  11464. "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
  11465. .rlen = 24,
  11466. }, {
  11467. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  11468. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  11469. .klen = 16,
  11470. .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
  11471. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  11472. .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
  11473. "\x20\xea\x60\xc0",
  11474. .alen = 12,
  11475. .input = "\x00\x97\x69\xec\xab\xdf\x48\x62"
  11476. "\x55\x94\xc5\x92\x51\xe6\x03\x57"
  11477. "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
  11478. "\x5a\xe0\x70\x45\x51",
  11479. .ilen = 29,
  11480. .result = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
  11481. "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
  11482. "\x3a\x80\x3b\xa8\x7f",
  11483. .rlen = 21,
  11484. }, {
  11485. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  11486. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  11487. .klen = 16,
  11488. .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
  11489. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  11490. .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
  11491. .alen = 8,
  11492. .input = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
  11493. "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
  11494. "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
  11495. "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
  11496. "\xba",
  11497. .ilen = 33,
  11498. .result = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
  11499. "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
  11500. "\x98\x09\xd6\x7d\xbe\xdd\x18",
  11501. .rlen = 23,
  11502. },
  11503. };
  11504. /*
  11505. * rfc4309 refers to section 8 of rfc3610 for test vectors, but they all
  11506. * use a 13-byte nonce, we only support an 11-byte nonce. Similarly, all of
  11507. * Special Publication 800-38C's test vectors also use nonce lengths our
  11508. * implementation doesn't support. The following are taken from fips cavs
  11509. * fax files on hand at Red Hat.
  11510. *
  11511. * nb: actual key lengths are (klen - 3), the last 3 bytes are actually
  11512. * part of the nonce which combine w/the iv, but need to be input this way.
  11513. */
  11514. static struct aead_testvec aes_ccm_rfc4309_enc_tv_template[] = {
  11515. {
  11516. .key = "\x83\xac\x54\x66\xc2\xeb\xe5\x05"
  11517. "\x2e\x01\xd1\xfc\x5d\x82\x66\x2e"
  11518. "\x96\xac\x59",
  11519. .klen = 19,
  11520. .iv = "\x30\x07\xa1\xe2\xa2\xc7\x55\x24",
  11521. .alen = 0,
  11522. .input = "\x19\xc8\x81\xf6\xe9\x86\xff\x93"
  11523. "\x0b\x78\x67\xe5\xbb\xb7\xfc\x6e"
  11524. "\x83\x77\xb3\xa6\x0c\x8c\x9f\x9c"
  11525. "\x35\x2e\xad\xe0\x62\xf9\x91\xa1",
  11526. .ilen = 32,
  11527. .result = "\xab\x6f\xe1\x69\x1d\x19\x99\xa8"
  11528. "\x92\xa0\xc4\x6f\x7e\xe2\x8b\xb1"
  11529. "\x70\xbb\x8c\xa6\x4c\x6e\x97\x8a"
  11530. "\x57\x2b\xbe\x5d\x98\xa6\xb1\x32"
  11531. "\xda\x24\xea\xd9\xa1\x39\x98\xfd"
  11532. "\xa4\xbe\xd9\xf2\x1a\x6d\x22\xa8",
  11533. .rlen = 48,
  11534. }, {
  11535. .key = "\x1e\x2c\x7e\x01\x41\x9a\xef\xc0"
  11536. "\x0d\x58\x96\x6e\x5c\xa2\x4b\xd3"
  11537. "\x4f\xa3\x19",
  11538. .klen = 19,
  11539. .iv = "\xd3\x01\x5a\xd8\x30\x60\x15\x56",
  11540. .assoc = "\xda\xe6\x28\x9c\x45\x2d\xfd\x63"
  11541. "\x5e\xda\x4c\xb6\xe6\xfc\xf9\xb7"
  11542. "\x0c\x56\xcb\xe4\xe0\x05\x7a\xe1"
  11543. "\x0a\x63\x09\x78\xbc\x2c\x55\xde",
  11544. .alen = 32,
  11545. .input = "\x87\xa3\x36\xfd\x96\xb3\x93\x78"
  11546. "\xa9\x28\x63\xba\x12\xa3\x14\x85"
  11547. "\x57\x1e\x06\xc9\x7b\x21\xef\x76"
  11548. "\x7f\x38\x7e\x8e\x29\xa4\x3e\x7e",
  11549. .ilen = 32,
  11550. .result = "\x8a\x1e\x11\xf0\x02\x6b\xe2\x19"
  11551. "\xfc\x70\xc4\x6d\x8e\xb7\x99\xab"
  11552. "\xc5\x4b\xa2\xac\xd3\xf3\x48\xff"
  11553. "\x3b\xb5\xce\x53\xef\xde\xbb\x02"
  11554. "\xa9\x86\x15\x6c\x13\xfe\xda\x0a"
  11555. "\x22\xb8\x29\x3d\xd8\x39\x9a\x23",
  11556. .rlen = 48,
  11557. }, {
  11558. .key = "\xf4\x6b\xc2\x75\x62\xfe\xb4\xe1"
  11559. "\xa3\xf0\xff\xdd\x4e\x4b\x12\x75"
  11560. "\x53\x14\x73\x66\x8d\x88\xf6\x80"
  11561. "\xa0\x20\x35",
  11562. .klen = 27,
  11563. .iv = "\x26\xf2\x21\x8d\x50\x20\xda\xe2",
  11564. .assoc = "\x5b\x9e\x13\x67\x02\x5e\xef\xc1"
  11565. "\x6c\xf9\xd7\x1e\x52\x8f\x7a\x47"
  11566. "\xe9\xd4\xcf\x20\x14\x6e\xf0\x2d"
  11567. "\xd8\x9e\x2b\x56\x10\x23\x56\xe7",
  11568. .alen = 32,
  11569. .ilen = 0,
  11570. .result = "\x36\xea\x7a\x70\x08\xdc\x6a\xbc"
  11571. "\xad\x0c\x7a\x63\xf6\x61\xfd\x9b",
  11572. .rlen = 16,
  11573. }, {
  11574. .key = "\x56\xdf\x5c\x8f\x26\x3f\x0e\x42"
  11575. "\xef\x7a\xd3\xce\xfc\x84\x60\x62"
  11576. "\xca\xb4\x40\xaf\x5f\xc9\xc9\x01"
  11577. "\xd6\x3c\x8c",
  11578. .klen = 27,
  11579. .iv = "\x86\x84\xb6\xcd\xef\x09\x2e\x94",
  11580. .assoc = "\x02\x65\x78\x3c\xe9\x21\x30\x91"
  11581. "\xb1\xb9\xda\x76\x9a\x78\x6d\x95"
  11582. "\xf2\x88\x32\xa3\xf2\x50\xcb\x4c"
  11583. "\xe3\x00\x73\x69\x84\x69\x87\x79",
  11584. .alen = 32,
  11585. .input = "\x9f\xd2\x02\x4b\x52\x49\x31\x3c"
  11586. "\x43\x69\x3a\x2d\x8e\x70\xad\x7e"
  11587. "\xe0\xe5\x46\x09\x80\x89\x13\xb2"
  11588. "\x8c\x8b\xd9\x3f\x86\xfb\xb5\x6b",
  11589. .ilen = 32,
  11590. .result = "\x39\xdf\x7c\x3c\x5a\x29\xb9\x62"
  11591. "\x5d\x51\xc2\x16\xd8\xbd\x06\x9f"
  11592. "\x9b\x6a\x09\x70\xc1\x51\x83\xc2"
  11593. "\x66\x88\x1d\x4f\x9a\xda\xe0\x1e"
  11594. "\xc7\x79\x11\x58\xe5\x6b\x20\x40"
  11595. "\x7a\xea\x46\x42\x8b\xe4\x6f\xe1",
  11596. .rlen = 48,
  11597. }, {
  11598. .key = "\xe0\x8d\x99\x71\x60\xd7\x97\x1a"
  11599. "\xbd\x01\x99\xd5\x8a\xdf\x71\x3a"
  11600. "\xd3\xdf\x24\x4b\x5e\x3d\x4b\x4e"
  11601. "\x30\x7a\xb9\xd8\x53\x0a\x5e\x2b"
  11602. "\x1e\x29\x91",
  11603. .klen = 35,
  11604. .iv = "\xad\x8e\xc1\x53\x0a\xcf\x2d\xbe",
  11605. .assoc = "\x19\xb6\x1f\x57\xc4\xf3\xf0\x8b"
  11606. "\x78\x2b\x94\x02\x29\x0f\x42\x27"
  11607. "\x6b\x75\xcb\x98\x34\x08\x7e\x79"
  11608. "\xe4\x3e\x49\x0d\x84\x8b\x22\x87",
  11609. .alen = 32,
  11610. .input = "\xe1\xd9\xd8\x13\xeb\x3a\x75\x3f"
  11611. "\x9d\xbd\x5f\x66\xbe\xdc\xbb\x66"
  11612. "\xbf\x17\x99\x62\x4a\x39\x27\x1f"
  11613. "\x1d\xdc\x24\xae\x19\x2f\x98\x4c",
  11614. .ilen = 32,
  11615. .result = "\x19\xb8\x61\x33\x45\x2b\x43\x96"
  11616. "\x6f\x51\xd0\x20\x30\x7d\x9b\xc6"
  11617. "\x26\x3d\xf8\xc9\x65\x16\xa8\x9f"
  11618. "\xf0\x62\x17\x34\xf2\x1e\x8d\x75"
  11619. "\x4e\x13\xcc\xc0\xc3\x2a\x54\x2d",
  11620. .rlen = 40,
  11621. }, {
  11622. .key = "\x7c\xc8\x18\x3b\x8d\x99\xe0\x7c"
  11623. "\x45\x41\xb8\xbd\x5c\xa7\xc2\x32"
  11624. "\x8a\xb8\x02\x59\xa4\xfe\xa9\x2c"
  11625. "\x09\x75\x9a\x9b\x3c\x9b\x27\x39"
  11626. "\xf9\xd9\x4e",
  11627. .klen = 35,
  11628. .iv = "\x63\xb5\x3d\x9d\x43\xf6\x1e\x50",
  11629. .assoc = "\x57\xf5\x6b\x8b\x57\x5c\x3d\x3b"
  11630. "\x13\x02\x01\x0c\x83\x4c\x96\x35"
  11631. "\x8e\xd6\x39\xcf\x7d\x14\x9b\x94"
  11632. "\xb0\x39\x36\xe6\x8f\x57\xe0\x13",
  11633. .alen = 32,
  11634. .input = "\x3b\x6c\x29\x36\xb6\xef\x07\xa6"
  11635. "\x83\x72\x07\x4f\xcf\xfa\x66\x89"
  11636. "\x5f\xca\xb1\xba\xd5\x8f\x2c\x27"
  11637. "\x30\xdb\x75\x09\x93\xd4\x65\xe4",
  11638. .ilen = 32,
  11639. .result = "\xb0\x88\x5a\x33\xaa\xe5\xc7\x1d"
  11640. "\x85\x23\xc7\xc6\x2f\xf4\x1e\x3d"
  11641. "\xcc\x63\x44\x25\x07\x78\x4f\x9e"
  11642. "\x96\xb8\x88\xeb\xbc\x48\x1f\x06"
  11643. "\x39\xaf\x39\xac\xd8\x4a\x80\x39"
  11644. "\x7b\x72\x8a\xf7",
  11645. .rlen = 44,
  11646. }, {
  11647. .key = "\xab\xd0\xe9\x33\x07\x26\xe5\x83"
  11648. "\x8c\x76\x95\xd4\xb6\xdc\xf3\x46"
  11649. "\xf9\x8f\xad\xe3\x02\x13\x83\x77"
  11650. "\x3f\xb0\xf1\xa1\xa1\x22\x0f\x2b"
  11651. "\x24\xa7\x8b",
  11652. .klen = 35,
  11653. .iv = "\x07\xcb\xcc\x0e\xe6\x33\xbf\xf5",
  11654. .assoc = "\xd4\xdb\x30\x1d\x03\xfe\xfd\x5f"
  11655. "\x87\xd4\x8c\xb6\xb6\xf1\x7a\x5d"
  11656. "\xab\x90\x65\x8d\x8e\xca\x4d\x4f"
  11657. "\x16\x0c\x40\x90\x4b\xc7\x36\x73",
  11658. .alen = 32,
  11659. .input = "\xf5\xc6\x7d\x48\xc1\xb7\xe6\x92"
  11660. "\x97\x5a\xca\xc4\xa9\x6d\xf9\x3d"
  11661. "\x6c\xde\xbc\xf1\x90\xea\x6a\xb2"
  11662. "\x35\x86\x36\xaf\x5c\xfe\x4b\x3a",
  11663. .ilen = 32,
  11664. .result = "\x83\x6f\x40\x87\x72\xcf\xc1\x13"
  11665. "\xef\xbb\x80\x21\x04\x6c\x58\x09"
  11666. "\x07\x1b\xfc\xdf\xc0\x3f\x5b\xc7"
  11667. "\xe0\x79\xa8\x6e\x71\x7c\x3f\xcf"
  11668. "\x5c\xda\xb2\x33\xe5\x13\xe2\x0d"
  11669. "\x74\xd1\xef\xb5\x0f\x3a\xb5\xf8",
  11670. .rlen = 48,
  11671. },
  11672. };
  11673. static struct aead_testvec aes_ccm_rfc4309_dec_tv_template[] = {
  11674. {
  11675. .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
  11676. "\xff\x80\x2e\x48\x7d\x82\xf8\xb9"
  11677. "\xc6\xfb\x7d",
  11678. .klen = 19,
  11679. .iv = "\x80\x0d\x13\xab\xd8\xa6\xb2\xd8",
  11680. .alen = 0,
  11681. .input = "\xd5\xe8\x93\x9f\xc7\x89\x2e\x2b",
  11682. .ilen = 8,
  11683. .result = "\x00",
  11684. .rlen = 0,
  11685. .novrfy = 1,
  11686. }, {
  11687. .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
  11688. "\xff\x80\x2e\x48\x7d\x82\xf8\xb9"
  11689. "\xaf\x94\x87",
  11690. .klen = 19,
  11691. .iv = "\x78\x35\x82\x81\x7f\x88\x94\x68",
  11692. .alen = 0,
  11693. .input = "\x41\x3c\xb8\x87\x73\xcb\xf3\xf3",
  11694. .ilen = 8,
  11695. .result = "\x00",
  11696. .rlen = 0,
  11697. }, {
  11698. .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
  11699. "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8"
  11700. "\xc6\xfb\x7d",
  11701. .klen = 19,
  11702. .iv = "\x80\x0d\x13\xab\xd8\xa6\xb2\xd8",
  11703. .assoc = "\xf3\x94\x87\x78\x35\x82\x81\x7f"
  11704. "\x88\x94\x68\xb1\x78\x6b\x2b\xd6"
  11705. "\x04\x1f\x4e\xed\x78\xd5\x33\x66"
  11706. "\xd8\x94\x99\x91\x81\x54\x62\x57",
  11707. .alen = 32,
  11708. .input = "\xf0\x7c\x29\x02\xae\x1c\x2f\x55"
  11709. "\xd0\xd1\x3d\x1a\xa3\x6d\xe4\x0a"
  11710. "\x86\xb0\x87\x6b\x62\x33\x8c\x34"
  11711. "\xce\xab\x57\xcc\x79\x0b\xe0\x6f"
  11712. "\x5c\x3e\x48\x1f\x6c\x46\xf7\x51"
  11713. "\x8b\x84\x83\x2a\xc1\x05\xb8\xc5",
  11714. .ilen = 48,
  11715. .result = "\x50\x82\x3e\x07\xe2\x1e\xb6\xfb"
  11716. "\x33\xe4\x73\xce\xd2\xfb\x95\x79"
  11717. "\xe8\xb4\xb5\x77\x11\x10\x62\x6f"
  11718. "\x6a\x82\xd1\x13\xec\xf5\xd0\x48",
  11719. .rlen = 32,
  11720. .novrfy = 1,
  11721. }, {
  11722. .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
  11723. "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8"
  11724. "\x05\xe0\xc9",
  11725. .klen = 19,
  11726. .iv = "\x0f\xed\x34\xea\x97\xd4\x3b\xdf",
  11727. .assoc = "\x49\x5c\x50\x1f\x1d\x94\xcc\x81"
  11728. "\xba\xb7\xb6\x03\xaf\xa5\xc1\xa1"
  11729. "\xd8\x5c\x42\x68\xe0\x6c\xda\x89"
  11730. "\x05\xac\x56\xac\x1b\x2a\xd3\x86",
  11731. .alen = 32,
  11732. .input = "\x39\xbe\x7d\x15\x62\x77\xf3\x3c"
  11733. "\xad\x83\x52\x6d\x71\x03\x25\x1c"
  11734. "\xed\x81\x3a\x9a\x16\x7d\x19\x80"
  11735. "\x72\x04\x72\xd0\xf6\xff\x05\x0f"
  11736. "\xb7\x14\x30\x00\x32\x9e\xa0\xa6"
  11737. "\x9e\x5a\x18\xa1\xb8\xfe\xdb\xd3",
  11738. .ilen = 48,
  11739. .result = "\x75\x05\xbe\xc2\xd9\x1e\xde\x60"
  11740. "\x47\x3d\x8c\x7d\xbd\xb5\xd9\xb7"
  11741. "\xf2\xae\x61\x05\x8f\x82\x24\x3f"
  11742. "\x9c\x67\x91\xe1\x38\x4f\xe4\x0c",
  11743. .rlen = 32,
  11744. }, {
  11745. .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
  11746. "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
  11747. "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
  11748. "\xee\x49\x83",
  11749. .klen = 27,
  11750. .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e",
  11751. .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
  11752. "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
  11753. "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
  11754. "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
  11755. .alen = 32,
  11756. .input = "\x71\x99\xfa\xf4\x44\x12\x68\x9b",
  11757. .ilen = 8,
  11758. .result = "\x00",
  11759. .rlen = 0,
  11760. }, {
  11761. .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
  11762. "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
  11763. "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
  11764. "\xee\x49\x83",
  11765. .klen = 27,
  11766. .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e",
  11767. .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
  11768. "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
  11769. "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
  11770. "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
  11771. .alen = 32,
  11772. .input = "\xfb\xe5\x5d\x34\xbe\xe5\xe8\xe7"
  11773. "\x5a\xef\x2f\xbf\x1f\x7f\xd4\xb2"
  11774. "\x66\xca\x61\x1e\x96\x7a\x61\xb3"
  11775. "\x1c\x16\x45\x52\xba\x04\x9c\x9f"
  11776. "\xb1\xd2\x40\xbc\x52\x7c\x6f\xb1",
  11777. .ilen = 40,
  11778. .result = "\x85\x34\x66\x42\xc8\x92\x0f\x36"
  11779. "\x58\xe0\x6b\x91\x3c\x98\x5c\xbb"
  11780. "\x0a\x85\xcc\x02\xad\x7a\x96\xe9"
  11781. "\x65\x43\xa4\xc3\x0f\xdc\x55\x81",
  11782. .rlen = 32,
  11783. }, {
  11784. .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
  11785. "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
  11786. "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
  11787. "\xd1\xfc\x57",
  11788. .klen = 27,
  11789. .iv = "\x9c\xfe\xb8\x9c\xad\x71\xaa\x1f",
  11790. .assoc = "\x86\x67\xa5\xa9\x14\x5f\x0d\xc6"
  11791. "\xff\x14\xc7\x44\xbf\x6c\x3a\xc3"
  11792. "\xff\xb6\x81\xbd\xe2\xd5\x06\xc7"
  11793. "\x3c\xa1\x52\x13\x03\x8a\x23\x3a",
  11794. .alen = 32,
  11795. .input = "\x3f\x66\xb0\x9d\xe5\x4b\x38\x00"
  11796. "\xc6\x0e\x6e\xe5\xd6\x98\xa6\x37"
  11797. "\x8c\x26\x33\xc6\xb2\xa2\x17\xfa"
  11798. "\x64\x19\xc0\x30\xd7\xfc\x14\x6b"
  11799. "\xe3\x33\xc2\x04\xb0\x37\xbe\x3f"
  11800. "\xa9\xb4\x2d\x68\x03\xa3\x44\xef",
  11801. .ilen = 48,
  11802. .result = "\x02\x87\x4d\x28\x80\x6e\xb2\xed"
  11803. "\x99\x2a\xa8\xca\x04\x25\x45\x90"
  11804. "\x1d\xdd\x5a\xd9\xe4\xdb\x9c\x9c"
  11805. "\x49\xe9\x01\xfe\xa7\x80\x6d\x6b",
  11806. .rlen = 32,
  11807. .novrfy = 1,
  11808. }, {
  11809. .key = "\xa4\x4b\x54\x29\x0a\xb8\x6d\x01"
  11810. "\x5b\x80\x2a\xcf\x25\xc4\xb7\x5c"
  11811. "\x20\x2c\xad\x30\xc2\x2b\x41\xfb"
  11812. "\x0e\x85\xbc\x33\xad\x0f\x2b\xff"
  11813. "\xee\x49\x83",
  11814. .klen = 35,
  11815. .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e",
  11816. .alen = 0,
  11817. .input = "\x1f\xb8\x8f\xa3\xdd\x54\x00\xf2",
  11818. .ilen = 8,
  11819. .result = "\x00",
  11820. .rlen = 0,
  11821. }, {
  11822. .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
  11823. "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
  11824. "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
  11825. "\xae\x8f\x11\x4c\xc2\x9c\x4a\xbb"
  11826. "\x85\x34\x66",
  11827. .klen = 35,
  11828. .iv = "\x42\xc8\x92\x0f\x36\x58\xe0\x6b",
  11829. .alen = 0,
  11830. .input = "\x48\x01\x5e\x02\x24\x04\x66\x47"
  11831. "\xa1\xea\x6f\xaf\xe8\xfc\xfb\xdd"
  11832. "\xa5\xa9\x87\x8d\x84\xee\x2e\x77"
  11833. "\xbb\x86\xb9\xf5\x5c\x6c\xff\xf6"
  11834. "\x72\xc3\x8e\xf7\x70\xb1\xb2\x07"
  11835. "\xbc\xa8\xa3\xbd\x83\x7c\x1d\x2a",
  11836. .ilen = 48,
  11837. .result = "\xdc\x56\xf2\x71\xb0\xb1\xa0\x6c"
  11838. "\xf0\x97\x3a\xfb\x6d\xe7\x32\x99"
  11839. "\x3e\xaf\x70\x5e\xb2\x4d\xea\x39"
  11840. "\x89\xd4\x75\x7a\x63\xb1\xda\x93",
  11841. .rlen = 32,
  11842. .novrfy = 1,
  11843. }, {
  11844. .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
  11845. "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
  11846. "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
  11847. "\x0d\x1a\x53\x3b\xb5\xe3\xf8\x8b"
  11848. "\xcf\x76\x3f",
  11849. .klen = 35,
  11850. .iv = "\xd9\x95\x75\x8f\x44\x89\x40\x7b",
  11851. .assoc = "\x8f\x86\x6c\x4d\x1d\xc5\x39\x88"
  11852. "\xc8\xf3\x5c\x52\x10\x63\x6f\x2b"
  11853. "\x8a\x2a\xc5\x6f\x30\x23\x58\x7b"
  11854. "\xfb\x36\x03\x11\xb4\xd9\xf2\xfe",
  11855. .alen = 32,
  11856. .input = "\x48\x58\xd6\xf3\xad\x63\x58\xbf"
  11857. "\xae\xc7\x5e\xae\x83\x8f\x7b\xe4"
  11858. "\x78\x5c\x4c\x67\x71\x89\x94\xbf"
  11859. "\x47\xf1\x63\x7e\x1c\x59\xbd\xc5"
  11860. "\x7f\x44\x0a\x0c\x01\x18\x07\x92"
  11861. "\xe1\xd3\x51\xce\x32\x6d\x0c\x5b",
  11862. .ilen = 48,
  11863. .result = "\xc2\x54\xc8\xde\x78\x87\x77\x40"
  11864. "\x49\x71\xe4\xb7\xe7\xcb\x76\x61"
  11865. "\x0a\x41\xb9\xe9\xc0\x76\x54\xab"
  11866. "\x04\x49\x3b\x19\x93\x57\x25\x5d",
  11867. .rlen = 32,
  11868. },
  11869. };
  11870. /*
  11871. * ANSI X9.31 Continuous Pseudo-Random Number Generator (AES mode)
  11872. * test vectors, taken from Appendix B.2.9 and B.2.10:
  11873. * http://csrc.nist.gov/groups/STM/cavp/documents/rng/RNGVS.pdf
  11874. * Only AES-128 is supported at this time.
  11875. */
  11876. #define ANSI_CPRNG_AES_TEST_VECTORS 6
  11877. static struct cprng_testvec ansi_cprng_aes_tv_template[] = {
  11878. {
  11879. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  11880. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  11881. .klen = 16,
  11882. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  11883. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xf9",
  11884. .dtlen = 16,
  11885. .v = "\x80\x00\x00\x00\x00\x00\x00\x00"
  11886. "\x00\x00\x00\x00\x00\x00\x00\x00",
  11887. .vlen = 16,
  11888. .result = "\x59\x53\x1e\xd1\x3b\xb0\xc0\x55"
  11889. "\x84\x79\x66\x85\xc1\x2f\x76\x41",
  11890. .rlen = 16,
  11891. .loops = 1,
  11892. }, {
  11893. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  11894. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  11895. .klen = 16,
  11896. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  11897. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfa",
  11898. .dtlen = 16,
  11899. .v = "\xc0\x00\x00\x00\x00\x00\x00\x00"
  11900. "\x00\x00\x00\x00\x00\x00\x00\x00",
  11901. .vlen = 16,
  11902. .result = "\x7c\x22\x2c\xf4\xca\x8f\xa2\x4c"
  11903. "\x1c\x9c\xb6\x41\xa9\xf3\x22\x0d",
  11904. .rlen = 16,
  11905. .loops = 1,
  11906. }, {
  11907. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  11908. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  11909. .klen = 16,
  11910. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  11911. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfb",
  11912. .dtlen = 16,
  11913. .v = "\xe0\x00\x00\x00\x00\x00\x00\x00"
  11914. "\x00\x00\x00\x00\x00\x00\x00\x00",
  11915. .vlen = 16,
  11916. .result = "\x8a\xaa\x00\x39\x66\x67\x5b\xe5"
  11917. "\x29\x14\x28\x81\xa9\x4d\x4e\xc7",
  11918. .rlen = 16,
  11919. .loops = 1,
  11920. }, {
  11921. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  11922. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  11923. .klen = 16,
  11924. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  11925. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfc",
  11926. .dtlen = 16,
  11927. .v = "\xf0\x00\x00\x00\x00\x00\x00\x00"
  11928. "\x00\x00\x00\x00\x00\x00\x00\x00",
  11929. .vlen = 16,
  11930. .result = "\x88\xdd\xa4\x56\x30\x24\x23\xe5"
  11931. "\xf6\x9d\xa5\x7e\x7b\x95\xc7\x3a",
  11932. .rlen = 16,
  11933. .loops = 1,
  11934. }, {
  11935. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  11936. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  11937. .klen = 16,
  11938. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  11939. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfd",
  11940. .dtlen = 16,
  11941. .v = "\xf8\x00\x00\x00\x00\x00\x00\x00"
  11942. "\x00\x00\x00\x00\x00\x00\x00\x00",
  11943. .vlen = 16,
  11944. .result = "\x05\x25\x92\x46\x61\x79\xd2\xcb"
  11945. "\x78\xc4\x0b\x14\x0a\x5a\x9a\xc8",
  11946. .rlen = 16,
  11947. .loops = 1,
  11948. }, { /* Monte Carlo Test */
  11949. .key = "\x9f\x5b\x51\x20\x0b\xf3\x34\xb5"
  11950. "\xd8\x2b\xe8\xc3\x72\x55\xc8\x48",
  11951. .klen = 16,
  11952. .dt = "\x63\x76\xbb\xe5\x29\x02\xba\x3b"
  11953. "\x67\xc9\x25\xfa\x70\x1f\x11\xac",
  11954. .dtlen = 16,
  11955. .v = "\x57\x2c\x8e\x76\x87\x26\x47\x97"
  11956. "\x7e\x74\xfb\xdd\xc4\x95\x01\xd1",
  11957. .vlen = 16,
  11958. .result = "\x48\xe9\xbd\x0d\x06\xee\x18\xfb"
  11959. "\xe4\x57\x90\xd5\xc3\xfc\x9b\x73",
  11960. .rlen = 16,
  11961. .loops = 10000,
  11962. },
  11963. };
  11964. /* Cast5 test vectors from RFC 2144 */
  11965. #define CAST5_ENC_TEST_VECTORS 3
  11966. #define CAST5_DEC_TEST_VECTORS 3
  11967. static struct cipher_testvec cast5_enc_tv_template[] = {
  11968. {
  11969. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  11970. "\x23\x45\x67\x89\x34\x56\x78\x9a",
  11971. .klen = 16,
  11972. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  11973. .ilen = 8,
  11974. .result = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
  11975. .rlen = 8,
  11976. }, {
  11977. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  11978. "\x23\x45",
  11979. .klen = 10,
  11980. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  11981. .ilen = 8,
  11982. .result = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
  11983. .rlen = 8,
  11984. }, {
  11985. .key = "\x01\x23\x45\x67\x12",
  11986. .klen = 5,
  11987. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  11988. .ilen = 8,
  11989. .result = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
  11990. .rlen = 8,
  11991. },
  11992. };
  11993. static struct cipher_testvec cast5_dec_tv_template[] = {
  11994. {
  11995. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  11996. "\x23\x45\x67\x89\x34\x56\x78\x9a",
  11997. .klen = 16,
  11998. .input = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
  11999. .ilen = 8,
  12000. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  12001. .rlen = 8,
  12002. }, {
  12003. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  12004. "\x23\x45",
  12005. .klen = 10,
  12006. .input = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
  12007. .ilen = 8,
  12008. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  12009. .rlen = 8,
  12010. }, {
  12011. .key = "\x01\x23\x45\x67\x12",
  12012. .klen = 5,
  12013. .input = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
  12014. .ilen = 8,
  12015. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  12016. .rlen = 8,
  12017. },
  12018. };
  12019. /*
  12020. * ARC4 test vectors from OpenSSL
  12021. */
  12022. #define ARC4_ENC_TEST_VECTORS 7
  12023. #define ARC4_DEC_TEST_VECTORS 7
  12024. static struct cipher_testvec arc4_enc_tv_template[] = {
  12025. {
  12026. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  12027. .klen = 8,
  12028. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  12029. .ilen = 8,
  12030. .result = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
  12031. .rlen = 8,
  12032. }, {
  12033. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  12034. .klen = 8,
  12035. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  12036. .ilen = 8,
  12037. .result = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
  12038. .rlen = 8,
  12039. }, {
  12040. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  12041. .klen = 8,
  12042. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  12043. .ilen = 8,
  12044. .result = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
  12045. .rlen = 8,
  12046. }, {
  12047. .key = "\xef\x01\x23\x45",
  12048. .klen = 4,
  12049. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  12050. "\x00\x00\x00\x00\x00\x00\x00\x00"
  12051. "\x00\x00\x00\x00",
  12052. .ilen = 20,
  12053. .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  12054. "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
  12055. "\x36\xb6\x78\x58",
  12056. .rlen = 20,
  12057. }, {
  12058. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  12059. .klen = 8,
  12060. .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  12061. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  12062. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  12063. "\x12\x34\x56\x78",
  12064. .ilen = 28,
  12065. .result = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
  12066. "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
  12067. "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
  12068. "\x40\x01\x1e\xcf",
  12069. .rlen = 28,
  12070. }, {
  12071. .key = "\xef\x01\x23\x45",
  12072. .klen = 4,
  12073. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  12074. "\x00\x00",
  12075. .ilen = 10,
  12076. .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  12077. "\xbd\x61",
  12078. .rlen = 10,
  12079. }, {
  12080. .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
  12081. "\x00\x00\x00\x00\x00\x00\x00\x00",
  12082. .klen = 16,
  12083. .input = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
  12084. .ilen = 8,
  12085. .result = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
  12086. .rlen = 8,
  12087. },
  12088. };
  12089. static struct cipher_testvec arc4_dec_tv_template[] = {
  12090. {
  12091. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  12092. .klen = 8,
  12093. .input = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
  12094. .ilen = 8,
  12095. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  12096. .rlen = 8,
  12097. }, {
  12098. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  12099. .klen = 8,
  12100. .input = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
  12101. .ilen = 8,
  12102. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  12103. .rlen = 8,
  12104. }, {
  12105. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  12106. .klen = 8,
  12107. .input = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
  12108. .ilen = 8,
  12109. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  12110. .rlen = 8,
  12111. }, {
  12112. .key = "\xef\x01\x23\x45",
  12113. .klen = 4,
  12114. .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  12115. "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
  12116. "\x36\xb6\x78\x58",
  12117. .ilen = 20,
  12118. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  12119. "\x00\x00\x00\x00\x00\x00\x00\x00"
  12120. "\x00\x00\x00\x00",
  12121. .rlen = 20,
  12122. }, {
  12123. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  12124. .klen = 8,
  12125. .input = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
  12126. "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
  12127. "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
  12128. "\x40\x01\x1e\xcf",
  12129. .ilen = 28,
  12130. .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  12131. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  12132. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  12133. "\x12\x34\x56\x78",
  12134. .rlen = 28,
  12135. }, {
  12136. .key = "\xef\x01\x23\x45",
  12137. .klen = 4,
  12138. .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  12139. "\xbd\x61",
  12140. .ilen = 10,
  12141. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  12142. "\x00\x00",
  12143. .rlen = 10,
  12144. }, {
  12145. .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
  12146. "\x00\x00\x00\x00\x00\x00\x00\x00",
  12147. .klen = 16,
  12148. .input = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
  12149. .ilen = 8,
  12150. .result = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
  12151. .rlen = 8,
  12152. },
  12153. };
  12154. /*
  12155. * TEA test vectors
  12156. */
  12157. #define TEA_ENC_TEST_VECTORS 4
  12158. #define TEA_DEC_TEST_VECTORS 4
  12159. static struct cipher_testvec tea_enc_tv_template[] = {
  12160. {
  12161. .key = zeroed_string,
  12162. .klen = 16,
  12163. .input = zeroed_string,
  12164. .ilen = 8,
  12165. .result = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
  12166. .rlen = 8,
  12167. }, {
  12168. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  12169. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  12170. .klen = 16,
  12171. .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  12172. .ilen = 8,
  12173. .result = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
  12174. .rlen = 8,
  12175. }, {
  12176. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  12177. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  12178. .klen = 16,
  12179. .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  12180. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  12181. .ilen = 16,
  12182. .result = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
  12183. "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
  12184. .rlen = 16,
  12185. }, {
  12186. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  12187. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  12188. .klen = 16,
  12189. .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
  12190. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  12191. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  12192. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  12193. .ilen = 32,
  12194. .result = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
  12195. "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
  12196. "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
  12197. "\x07\x89\x73\xc2\x45\x92\xc6\x90",
  12198. .rlen = 32,
  12199. }
  12200. };
  12201. static struct cipher_testvec tea_dec_tv_template[] = {
  12202. {
  12203. .key = zeroed_string,
  12204. .klen = 16,
  12205. .input = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
  12206. .ilen = 8,
  12207. .result = zeroed_string,
  12208. .rlen = 8,
  12209. }, {
  12210. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  12211. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  12212. .klen = 16,
  12213. .input = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
  12214. .ilen = 8,
  12215. .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  12216. .rlen = 8,
  12217. }, {
  12218. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  12219. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  12220. .klen = 16,
  12221. .input = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
  12222. "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
  12223. .ilen = 16,
  12224. .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  12225. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  12226. .rlen = 16,
  12227. }, {
  12228. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  12229. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  12230. .klen = 16,
  12231. .input = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
  12232. "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
  12233. "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
  12234. "\x07\x89\x73\xc2\x45\x92\xc6\x90",
  12235. .ilen = 32,
  12236. .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
  12237. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  12238. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  12239. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  12240. .rlen = 32,
  12241. }
  12242. };
  12243. /*
  12244. * XTEA test vectors
  12245. */
  12246. #define XTEA_ENC_TEST_VECTORS 4
  12247. #define XTEA_DEC_TEST_VECTORS 4
  12248. static struct cipher_testvec xtea_enc_tv_template[] = {
  12249. {
  12250. .key = zeroed_string,
  12251. .klen = 16,
  12252. .input = zeroed_string,
  12253. .ilen = 8,
  12254. .result = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
  12255. .rlen = 8,
  12256. }, {
  12257. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  12258. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  12259. .klen = 16,
  12260. .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  12261. .ilen = 8,
  12262. .result = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
  12263. .rlen = 8,
  12264. }, {
  12265. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  12266. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  12267. .klen = 16,
  12268. .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  12269. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  12270. .ilen = 16,
  12271. .result = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
  12272. "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
  12273. .rlen = 16,
  12274. }, {
  12275. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  12276. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  12277. .klen = 16,
  12278. .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
  12279. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  12280. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  12281. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  12282. .ilen = 32,
  12283. .result = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
  12284. "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
  12285. "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
  12286. "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
  12287. .rlen = 32,
  12288. }
  12289. };
  12290. static struct cipher_testvec xtea_dec_tv_template[] = {
  12291. {
  12292. .key = zeroed_string,
  12293. .klen = 16,
  12294. .input = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
  12295. .ilen = 8,
  12296. .result = zeroed_string,
  12297. .rlen = 8,
  12298. }, {
  12299. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  12300. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  12301. .klen = 16,
  12302. .input = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
  12303. .ilen = 8,
  12304. .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  12305. .rlen = 8,
  12306. }, {
  12307. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  12308. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  12309. .klen = 16,
  12310. .input = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
  12311. "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
  12312. .ilen = 16,
  12313. .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  12314. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  12315. .rlen = 16,
  12316. }, {
  12317. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  12318. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  12319. .klen = 16,
  12320. .input = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
  12321. "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
  12322. "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
  12323. "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
  12324. .ilen = 32,
  12325. .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
  12326. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  12327. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  12328. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  12329. .rlen = 32,
  12330. }
  12331. };
  12332. /*
  12333. * KHAZAD test vectors.
  12334. */
  12335. #define KHAZAD_ENC_TEST_VECTORS 5
  12336. #define KHAZAD_DEC_TEST_VECTORS 5
  12337. static struct cipher_testvec khazad_enc_tv_template[] = {
  12338. {
  12339. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  12340. "\x00\x00\x00\x00\x00\x00\x00\x00",
  12341. .klen = 16,
  12342. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  12343. .ilen = 8,
  12344. .result = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
  12345. .rlen = 8,
  12346. }, {
  12347. .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
  12348. "\x38\x38\x38\x38\x38\x38\x38\x38",
  12349. .klen = 16,
  12350. .input = "\x38\x38\x38\x38\x38\x38\x38\x38",
  12351. .ilen = 8,
  12352. .result = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
  12353. .rlen = 8,
  12354. }, {
  12355. .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
  12356. "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  12357. .klen = 16,
  12358. .input = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  12359. .ilen = 8,
  12360. .result = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
  12361. .rlen = 8,
  12362. }, {
  12363. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  12364. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  12365. .klen = 16,
  12366. .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  12367. .ilen = 8,
  12368. .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  12369. .rlen = 8,
  12370. }, {
  12371. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  12372. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  12373. .klen = 16,
  12374. .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  12375. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  12376. .ilen = 16,
  12377. .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
  12378. "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  12379. .rlen = 16,
  12380. },
  12381. };
  12382. static struct cipher_testvec khazad_dec_tv_template[] = {
  12383. {
  12384. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  12385. "\x00\x00\x00\x00\x00\x00\x00\x00",
  12386. .klen = 16,
  12387. .input = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
  12388. .ilen = 8,
  12389. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  12390. .rlen = 8,
  12391. }, {
  12392. .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
  12393. "\x38\x38\x38\x38\x38\x38\x38\x38",
  12394. .klen = 16,
  12395. .input = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
  12396. .ilen = 8,
  12397. .result = "\x38\x38\x38\x38\x38\x38\x38\x38",
  12398. .rlen = 8,
  12399. }, {
  12400. .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
  12401. "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  12402. .klen = 16,
  12403. .input = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
  12404. .ilen = 8,
  12405. .result = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  12406. .rlen = 8,
  12407. }, {
  12408. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  12409. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  12410. .klen = 16,
  12411. .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  12412. .ilen = 8,
  12413. .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  12414. .rlen = 8,
  12415. }, {
  12416. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  12417. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  12418. .klen = 16,
  12419. .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
  12420. "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  12421. .ilen = 16,
  12422. .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  12423. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  12424. .rlen = 16,
  12425. },
  12426. };
  12427. /*
  12428. * Anubis test vectors.
  12429. */
  12430. #define ANUBIS_ENC_TEST_VECTORS 5
  12431. #define ANUBIS_DEC_TEST_VECTORS 5
  12432. #define ANUBIS_CBC_ENC_TEST_VECTORS 2
  12433. #define ANUBIS_CBC_DEC_TEST_VECTORS 2
  12434. static struct cipher_testvec anubis_enc_tv_template[] = {
  12435. {
  12436. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  12437. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  12438. .klen = 16,
  12439. .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  12440. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  12441. .ilen = 16,
  12442. .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  12443. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
  12444. .rlen = 16,
  12445. }, {
  12446. .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
  12447. "\x03\x03\x03\x03\x03\x03\x03\x03"
  12448. "\x03\x03\x03\x03",
  12449. .klen = 20,
  12450. .input = "\x03\x03\x03\x03\x03\x03\x03\x03"
  12451. "\x03\x03\x03\x03\x03\x03\x03\x03",
  12452. .ilen = 16,
  12453. .result = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
  12454. "\x87\x41\x6f\x82\x0a\x98\x64\xae",
  12455. .rlen = 16,
  12456. }, {
  12457. .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
  12458. "\x24\x24\x24\x24\x24\x24\x24\x24"
  12459. "\x24\x24\x24\x24\x24\x24\x24\x24"
  12460. "\x24\x24\x24\x24",
  12461. .klen = 28,
  12462. .input = "\x24\x24\x24\x24\x24\x24\x24\x24"
  12463. "\x24\x24\x24\x24\x24\x24\x24\x24",
  12464. .ilen = 16,
  12465. .result = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
  12466. "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
  12467. .rlen = 16,
  12468. }, {
  12469. .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
  12470. "\x25\x25\x25\x25\x25\x25\x25\x25"
  12471. "\x25\x25\x25\x25\x25\x25\x25\x25"
  12472. "\x25\x25\x25\x25\x25\x25\x25\x25",
  12473. .klen = 32,
  12474. .input = "\x25\x25\x25\x25\x25\x25\x25\x25"
  12475. "\x25\x25\x25\x25\x25\x25\x25\x25",
  12476. .ilen = 16,
  12477. .result = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
  12478. "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
  12479. .rlen = 16,
  12480. }, {
  12481. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  12482. "\x35\x35\x35\x35\x35\x35\x35\x35"
  12483. "\x35\x35\x35\x35\x35\x35\x35\x35"
  12484. "\x35\x35\x35\x35\x35\x35\x35\x35"
  12485. "\x35\x35\x35\x35\x35\x35\x35\x35",
  12486. .klen = 40,
  12487. .input = "\x35\x35\x35\x35\x35\x35\x35\x35"
  12488. "\x35\x35\x35\x35\x35\x35\x35\x35",
  12489. .ilen = 16,
  12490. .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  12491. "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
  12492. .rlen = 16,
  12493. },
  12494. };
  12495. static struct cipher_testvec anubis_dec_tv_template[] = {
  12496. {
  12497. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  12498. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  12499. .klen = 16,
  12500. .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  12501. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
  12502. .ilen = 16,
  12503. .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  12504. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  12505. .rlen = 16,
  12506. }, {
  12507. .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
  12508. "\x03\x03\x03\x03\x03\x03\x03\x03"
  12509. "\x03\x03\x03\x03",
  12510. .klen = 20,
  12511. .input = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
  12512. "\x87\x41\x6f\x82\x0a\x98\x64\xae",
  12513. .ilen = 16,
  12514. .result = "\x03\x03\x03\x03\x03\x03\x03\x03"
  12515. "\x03\x03\x03\x03\x03\x03\x03\x03",
  12516. .rlen = 16,
  12517. }, {
  12518. .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
  12519. "\x24\x24\x24\x24\x24\x24\x24\x24"
  12520. "\x24\x24\x24\x24\x24\x24\x24\x24"
  12521. "\x24\x24\x24\x24",
  12522. .klen = 28,
  12523. .input = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
  12524. "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
  12525. .ilen = 16,
  12526. .result = "\x24\x24\x24\x24\x24\x24\x24\x24"
  12527. "\x24\x24\x24\x24\x24\x24\x24\x24",
  12528. .rlen = 16,
  12529. }, {
  12530. .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
  12531. "\x25\x25\x25\x25\x25\x25\x25\x25"
  12532. "\x25\x25\x25\x25\x25\x25\x25\x25"
  12533. "\x25\x25\x25\x25\x25\x25\x25\x25",
  12534. .klen = 32,
  12535. .input = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
  12536. "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
  12537. .ilen = 16,
  12538. .result = "\x25\x25\x25\x25\x25\x25\x25\x25"
  12539. "\x25\x25\x25\x25\x25\x25\x25\x25",
  12540. .rlen = 16,
  12541. }, {
  12542. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  12543. "\x35\x35\x35\x35\x35\x35\x35\x35"
  12544. "\x35\x35\x35\x35\x35\x35\x35\x35"
  12545. "\x35\x35\x35\x35\x35\x35\x35\x35"
  12546. "\x35\x35\x35\x35\x35\x35\x35\x35",
  12547. .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  12548. "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
  12549. .klen = 40,
  12550. .ilen = 16,
  12551. .result = "\x35\x35\x35\x35\x35\x35\x35\x35"
  12552. "\x35\x35\x35\x35\x35\x35\x35\x35",
  12553. .rlen = 16,
  12554. },
  12555. };
  12556. static struct cipher_testvec anubis_cbc_enc_tv_template[] = {
  12557. {
  12558. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  12559. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  12560. .klen = 16,
  12561. .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  12562. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  12563. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  12564. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  12565. .ilen = 32,
  12566. .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  12567. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
  12568. "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
  12569. "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
  12570. .rlen = 32,
  12571. }, {
  12572. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  12573. "\x35\x35\x35\x35\x35\x35\x35\x35"
  12574. "\x35\x35\x35\x35\x35\x35\x35\x35"
  12575. "\x35\x35\x35\x35\x35\x35\x35\x35"
  12576. "\x35\x35\x35\x35\x35\x35\x35\x35",
  12577. .klen = 40,
  12578. .input = "\x35\x35\x35\x35\x35\x35\x35\x35"
  12579. "\x35\x35\x35\x35\x35\x35\x35\x35"
  12580. "\x35\x35\x35\x35\x35\x35\x35\x35"
  12581. "\x35\x35\x35\x35\x35\x35\x35\x35",
  12582. .ilen = 32,
  12583. .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  12584. "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
  12585. "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
  12586. "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
  12587. .rlen = 32,
  12588. },
  12589. };
  12590. static struct cipher_testvec anubis_cbc_dec_tv_template[] = {
  12591. {
  12592. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  12593. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  12594. .klen = 16,
  12595. .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  12596. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
  12597. "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
  12598. "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
  12599. .ilen = 32,
  12600. .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  12601. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  12602. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  12603. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  12604. .rlen = 32,
  12605. }, {
  12606. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  12607. "\x35\x35\x35\x35\x35\x35\x35\x35"
  12608. "\x35\x35\x35\x35\x35\x35\x35\x35"
  12609. "\x35\x35\x35\x35\x35\x35\x35\x35"
  12610. "\x35\x35\x35\x35\x35\x35\x35\x35",
  12611. .klen = 40,
  12612. .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  12613. "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
  12614. "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
  12615. "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
  12616. .ilen = 32,
  12617. .result = "\x35\x35\x35\x35\x35\x35\x35\x35"
  12618. "\x35\x35\x35\x35\x35\x35\x35\x35"
  12619. "\x35\x35\x35\x35\x35\x35\x35\x35"
  12620. "\x35\x35\x35\x35\x35\x35\x35\x35",
  12621. .rlen = 32,
  12622. },
  12623. };
  12624. /*
  12625. * XETA test vectors
  12626. */
  12627. #define XETA_ENC_TEST_VECTORS 4
  12628. #define XETA_DEC_TEST_VECTORS 4
  12629. static struct cipher_testvec xeta_enc_tv_template[] = {
  12630. {
  12631. .key = zeroed_string,
  12632. .klen = 16,
  12633. .input = zeroed_string,
  12634. .ilen = 8,
  12635. .result = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
  12636. .rlen = 8,
  12637. }, {
  12638. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  12639. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  12640. .klen = 16,
  12641. .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  12642. .ilen = 8,
  12643. .result = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
  12644. .rlen = 8,
  12645. }, {
  12646. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  12647. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  12648. .klen = 16,
  12649. .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  12650. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  12651. .ilen = 16,
  12652. .result = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
  12653. "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
  12654. .rlen = 16,
  12655. }, {
  12656. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  12657. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  12658. .klen = 16,
  12659. .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
  12660. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  12661. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  12662. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  12663. .ilen = 32,
  12664. .result = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
  12665. "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
  12666. "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
  12667. "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
  12668. .rlen = 32,
  12669. }
  12670. };
  12671. static struct cipher_testvec xeta_dec_tv_template[] = {
  12672. {
  12673. .key = zeroed_string,
  12674. .klen = 16,
  12675. .input = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
  12676. .ilen = 8,
  12677. .result = zeroed_string,
  12678. .rlen = 8,
  12679. }, {
  12680. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  12681. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  12682. .klen = 16,
  12683. .input = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
  12684. .ilen = 8,
  12685. .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  12686. .rlen = 8,
  12687. }, {
  12688. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  12689. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  12690. .klen = 16,
  12691. .input = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
  12692. "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
  12693. .ilen = 16,
  12694. .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  12695. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  12696. .rlen = 16,
  12697. }, {
  12698. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  12699. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  12700. .klen = 16,
  12701. .input = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
  12702. "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
  12703. "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
  12704. "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
  12705. .ilen = 32,
  12706. .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
  12707. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  12708. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  12709. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  12710. .rlen = 32,
  12711. }
  12712. };
  12713. /*
  12714. * FCrypt test vectors
  12715. */
  12716. #define FCRYPT_ENC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_enc_tv_template)
  12717. #define FCRYPT_DEC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_dec_tv_template)
  12718. static struct cipher_testvec fcrypt_pcbc_enc_tv_template[] = {
  12719. { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
  12720. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  12721. .klen = 8,
  12722. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  12723. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  12724. .ilen = 8,
  12725. .result = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
  12726. .rlen = 8,
  12727. }, {
  12728. .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
  12729. .klen = 8,
  12730. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  12731. .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
  12732. .ilen = 8,
  12733. .result = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
  12734. .rlen = 8,
  12735. }, { /* From Arla */
  12736. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  12737. .klen = 8,
  12738. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  12739. .input = "The quick brown fox jumps over the lazy dogs.\0\0",
  12740. .ilen = 48,
  12741. .result = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
  12742. "\xee\xac\x98\x62\x44\x51\xe4\x84"
  12743. "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
  12744. "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
  12745. "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
  12746. "\xf8\x91\x3c\xac\x44\x22\x92\xef",
  12747. .rlen = 48,
  12748. }, {
  12749. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  12750. .klen = 8,
  12751. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  12752. .input = "The quick brown fox jumps over the lazy dogs.\0\0",
  12753. .ilen = 48,
  12754. .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  12755. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  12756. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  12757. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  12758. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  12759. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  12760. .rlen = 48,
  12761. }, { /* split-page version */
  12762. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  12763. .klen = 8,
  12764. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  12765. .input = "The quick brown fox jumps over the lazy dogs.\0\0",
  12766. .ilen = 48,
  12767. .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  12768. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  12769. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  12770. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  12771. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  12772. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  12773. .rlen = 48,
  12774. .np = 2,
  12775. .tap = { 20, 28 },
  12776. }
  12777. };
  12778. static struct cipher_testvec fcrypt_pcbc_dec_tv_template[] = {
  12779. { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
  12780. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  12781. .klen = 8,
  12782. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  12783. .input = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
  12784. .ilen = 8,
  12785. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  12786. .rlen = 8,
  12787. }, {
  12788. .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
  12789. .klen = 8,
  12790. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  12791. .input = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
  12792. .ilen = 8,
  12793. .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
  12794. .rlen = 8,
  12795. }, { /* From Arla */
  12796. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  12797. .klen = 8,
  12798. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  12799. .input = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
  12800. "\xee\xac\x98\x62\x44\x51\xe4\x84"
  12801. "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
  12802. "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
  12803. "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
  12804. "\xf8\x91\x3c\xac\x44\x22\x92\xef",
  12805. .ilen = 48,
  12806. .result = "The quick brown fox jumps over the lazy dogs.\0\0",
  12807. .rlen = 48,
  12808. }, {
  12809. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  12810. .klen = 8,
  12811. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  12812. .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  12813. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  12814. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  12815. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  12816. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  12817. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  12818. .ilen = 48,
  12819. .result = "The quick brown fox jumps over the lazy dogs.\0\0",
  12820. .rlen = 48,
  12821. }, { /* split-page version */
  12822. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  12823. .klen = 8,
  12824. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  12825. .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  12826. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  12827. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  12828. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  12829. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  12830. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  12831. .ilen = 48,
  12832. .result = "The quick brown fox jumps over the lazy dogs.\0\0",
  12833. .rlen = 48,
  12834. .np = 2,
  12835. .tap = { 20, 28 },
  12836. }
  12837. };
  12838. /*
  12839. * CAMELLIA test vectors.
  12840. */
  12841. #define CAMELLIA_ENC_TEST_VECTORS 4
  12842. #define CAMELLIA_DEC_TEST_VECTORS 4
  12843. #define CAMELLIA_CBC_ENC_TEST_VECTORS 3
  12844. #define CAMELLIA_CBC_DEC_TEST_VECTORS 3
  12845. #define CAMELLIA_CTR_ENC_TEST_VECTORS 2
  12846. #define CAMELLIA_CTR_DEC_TEST_VECTORS 2
  12847. #define CAMELLIA_LRW_ENC_TEST_VECTORS 8
  12848. #define CAMELLIA_LRW_DEC_TEST_VECTORS 8
  12849. #define CAMELLIA_XTS_ENC_TEST_VECTORS 5
  12850. #define CAMELLIA_XTS_DEC_TEST_VECTORS 5
  12851. static struct cipher_testvec camellia_enc_tv_template[] = {
  12852. {
  12853. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  12854. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  12855. .klen = 16,
  12856. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  12857. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  12858. .ilen = 16,
  12859. .result = "\x67\x67\x31\x38\x54\x96\x69\x73"
  12860. "\x08\x57\x06\x56\x48\xea\xbe\x43",
  12861. .rlen = 16,
  12862. }, {
  12863. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  12864. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  12865. "\x00\x11\x22\x33\x44\x55\x66\x77",
  12866. .klen = 24,
  12867. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  12868. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  12869. .ilen = 16,
  12870. .result = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
  12871. "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
  12872. .rlen = 16,
  12873. }, {
  12874. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  12875. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  12876. "\x00\x11\x22\x33\x44\x55\x66\x77"
  12877. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  12878. .klen = 32,
  12879. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  12880. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  12881. .ilen = 16,
  12882. .result = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
  12883. "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
  12884. .rlen = 16,
  12885. },
  12886. { /* Generated with Crypto++ */
  12887. .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
  12888. "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
  12889. "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
  12890. "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
  12891. .klen = 32,
  12892. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  12893. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  12894. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  12895. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  12896. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  12897. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48",
  12898. .ilen = 48,
  12899. .result = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA"
  12900. "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7"
  12901. "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04"
  12902. "\xB3\xC2\xB9\x03\xAA\x91\x56\x29"
  12903. "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9"
  12904. "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A",
  12905. .rlen = 48,
  12906. },
  12907. };
  12908. static struct cipher_testvec camellia_dec_tv_template[] = {
  12909. {
  12910. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  12911. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  12912. .klen = 16,
  12913. .input = "\x67\x67\x31\x38\x54\x96\x69\x73"
  12914. "\x08\x57\x06\x56\x48\xea\xbe\x43",
  12915. .ilen = 16,
  12916. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  12917. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  12918. .rlen = 16,
  12919. }, {
  12920. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  12921. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  12922. "\x00\x11\x22\x33\x44\x55\x66\x77",
  12923. .klen = 24,
  12924. .input = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
  12925. "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
  12926. .ilen = 16,
  12927. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  12928. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  12929. .rlen = 16,
  12930. }, {
  12931. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  12932. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  12933. "\x00\x11\x22\x33\x44\x55\x66\x77"
  12934. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  12935. .klen = 32,
  12936. .input = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
  12937. "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
  12938. .ilen = 16,
  12939. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  12940. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  12941. .rlen = 16,
  12942. },
  12943. { /* Generated with Crypto++ */
  12944. .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
  12945. "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
  12946. "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
  12947. "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
  12948. .klen = 32,
  12949. .input = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA"
  12950. "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7"
  12951. "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04"
  12952. "\xB3\xC2\xB9\x03\xAA\x91\x56\x29"
  12953. "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9"
  12954. "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A",
  12955. .ilen = 48,
  12956. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  12957. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  12958. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  12959. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  12960. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  12961. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48",
  12962. .rlen = 48,
  12963. },
  12964. };
  12965. static struct cipher_testvec camellia_cbc_enc_tv_template[] = {
  12966. {
  12967. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  12968. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  12969. .klen = 16,
  12970. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  12971. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  12972. .input = "Single block msg",
  12973. .ilen = 16,
  12974. .result = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
  12975. "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
  12976. .rlen = 16,
  12977. }, {
  12978. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  12979. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  12980. .klen = 16,
  12981. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  12982. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  12983. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  12984. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  12985. "\x10\x11\x12\x13\x14\x15\x16\x17"
  12986. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  12987. .ilen = 32,
  12988. .result = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
  12989. "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
  12990. "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
  12991. "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
  12992. .rlen = 32,
  12993. },
  12994. { /* Generated with Crypto++ */
  12995. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  12996. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  12997. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  12998. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  12999. .klen = 32,
  13000. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  13001. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  13002. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  13003. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  13004. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  13005. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  13006. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  13007. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48",
  13008. .ilen = 48,
  13009. .result = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77"
  13010. "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40"
  13011. "\x88\x39\xE3\xFD\x94\x4B\x25\x58"
  13012. "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B"
  13013. "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27"
  13014. "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01",
  13015. .rlen = 48,
  13016. },
  13017. };
  13018. static struct cipher_testvec camellia_cbc_dec_tv_template[] = {
  13019. {
  13020. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  13021. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  13022. .klen = 16,
  13023. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  13024. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  13025. .input = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
  13026. "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
  13027. .ilen = 16,
  13028. .result = "Single block msg",
  13029. .rlen = 16,
  13030. }, {
  13031. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  13032. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  13033. .klen = 16,
  13034. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  13035. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  13036. .input = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
  13037. "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
  13038. "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
  13039. "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
  13040. .ilen = 32,
  13041. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  13042. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  13043. "\x10\x11\x12\x13\x14\x15\x16\x17"
  13044. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  13045. .rlen = 32,
  13046. },
  13047. { /* Generated with Crypto++ */
  13048. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  13049. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  13050. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  13051. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  13052. .klen = 32,
  13053. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  13054. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  13055. .input = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77"
  13056. "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40"
  13057. "\x88\x39\xE3\xFD\x94\x4B\x25\x58"
  13058. "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B"
  13059. "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27"
  13060. "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01",
  13061. .ilen = 48,
  13062. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  13063. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  13064. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  13065. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  13066. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  13067. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48",
  13068. .rlen = 48,
  13069. },
  13070. };
  13071. static struct cipher_testvec camellia_ctr_enc_tv_template[] = {
  13072. { /* Generated with Crypto++ */
  13073. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  13074. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  13075. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  13076. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  13077. .klen = 32,
  13078. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  13079. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  13080. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  13081. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  13082. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  13083. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  13084. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  13085. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48",
  13086. .ilen = 48,
  13087. .result = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
  13088. "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
  13089. "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
  13090. "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
  13091. "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
  13092. "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C",
  13093. .rlen = 48,
  13094. },
  13095. { /* Generated with Crypto++ */
  13096. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  13097. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  13098. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  13099. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  13100. .klen = 32,
  13101. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  13102. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  13103. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  13104. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  13105. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  13106. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  13107. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  13108. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  13109. "\xDF\x76\x0D",
  13110. .ilen = 51,
  13111. .result = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
  13112. "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
  13113. "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
  13114. "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
  13115. "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
  13116. "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
  13117. "\x1E\x43\xEF",
  13118. .rlen = 51,
  13119. },
  13120. };
  13121. static struct cipher_testvec camellia_ctr_dec_tv_template[] = {
  13122. { /* Generated with Crypto++ */
  13123. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  13124. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  13125. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  13126. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  13127. .klen = 32,
  13128. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  13129. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  13130. .input = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
  13131. "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
  13132. "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
  13133. "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
  13134. "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
  13135. "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C",
  13136. .ilen = 48,
  13137. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  13138. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  13139. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  13140. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  13141. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  13142. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48",
  13143. .rlen = 48,
  13144. },
  13145. { /* Generated with Crypto++ */
  13146. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  13147. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  13148. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  13149. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  13150. .klen = 32,
  13151. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  13152. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  13153. .input = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
  13154. "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
  13155. "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
  13156. "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
  13157. "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
  13158. "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
  13159. "\x1E\x43\xEF",
  13160. .ilen = 51,
  13161. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  13162. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  13163. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  13164. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  13165. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  13166. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  13167. "\xDF\x76\x0D",
  13168. .rlen = 51,
  13169. },
  13170. };
  13171. static struct cipher_testvec camellia_lrw_enc_tv_template[] = {
  13172. /* Generated from AES-LRW test vectors */
  13173. {
  13174. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  13175. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  13176. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  13177. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  13178. .klen = 32,
  13179. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13180. "\x00\x00\x00\x00\x00\x00\x00\x01",
  13181. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  13182. "\x38\x39\x41\x42\x43\x44\x45\x46",
  13183. .ilen = 16,
  13184. .result = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31"
  13185. "\x97\xcc\x72\xbe\x99\x17\xeb\x3e",
  13186. .rlen = 16,
  13187. }, {
  13188. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  13189. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  13190. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  13191. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  13192. .klen = 32,
  13193. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13194. "\x00\x00\x00\x00\x00\x00\x00\x02",
  13195. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  13196. "\x38\x39\x41\x42\x43\x44\x45\x46",
  13197. .ilen = 16,
  13198. .result = "\x73\x09\xb7\x50\xb6\x77\x30\x50"
  13199. "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a",
  13200. .rlen = 16,
  13201. }, {
  13202. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  13203. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  13204. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  13205. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  13206. .klen = 32,
  13207. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13208. "\x00\x00\x00\x02\x00\x00\x00\x00",
  13209. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  13210. "\x38\x39\x41\x42\x43\x44\x45\x46",
  13211. .ilen = 16,
  13212. .result = "\x90\xae\x83\xe0\x22\xb9\x60\x91"
  13213. "\xfa\xa9\xb7\x98\xe3\xed\x87\x01",
  13214. .rlen = 16,
  13215. }, {
  13216. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  13217. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  13218. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  13219. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  13220. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  13221. .klen = 40,
  13222. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13223. "\x00\x00\x00\x00\x00\x00\x00\x01",
  13224. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  13225. "\x38\x39\x41\x42\x43\x44\x45\x46",
  13226. .ilen = 16,
  13227. .result = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0"
  13228. "\xd8\x83\xef\xd9\x07\x16\x5f\x35",
  13229. .rlen = 16,
  13230. }, {
  13231. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  13232. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  13233. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  13234. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  13235. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  13236. .klen = 40,
  13237. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13238. "\x00\x00\x00\x02\x00\x00\x00\x00",
  13239. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  13240. "\x38\x39\x41\x42\x43\x44\x45\x46",
  13241. .ilen = 16,
  13242. .result = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e"
  13243. "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15",
  13244. .rlen = 16,
  13245. }, {
  13246. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  13247. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  13248. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  13249. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  13250. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  13251. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  13252. .klen = 48,
  13253. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13254. "\x00\x00\x00\x00\x00\x00\x00\x01",
  13255. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  13256. "\x38\x39\x41\x42\x43\x44\x45\x46",
  13257. .ilen = 16,
  13258. .result = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9"
  13259. "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d",
  13260. .rlen = 16,
  13261. }, {
  13262. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  13263. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  13264. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  13265. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  13266. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  13267. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  13268. .klen = 48,
  13269. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13270. "\x00\x00\x00\x02\x00\x00\x00\x00",
  13271. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  13272. "\x38\x39\x41\x42\x43\x44\x45\x46",
  13273. .ilen = 16,
  13274. .result = "\x04\xab\x28\x37\x31\x7a\x26\xab"
  13275. "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff",
  13276. .rlen = 16,
  13277. }, {
  13278. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  13279. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  13280. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  13281. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  13282. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  13283. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  13284. .klen = 48,
  13285. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13286. "\x00\x00\x00\x00\x00\x00\x00\x01",
  13287. .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  13288. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  13289. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  13290. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  13291. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  13292. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  13293. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  13294. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  13295. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  13296. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  13297. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  13298. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  13299. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  13300. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  13301. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  13302. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  13303. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  13304. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  13305. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  13306. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  13307. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  13308. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  13309. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  13310. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  13311. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  13312. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  13313. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  13314. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  13315. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  13316. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  13317. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  13318. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  13319. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  13320. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  13321. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  13322. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  13323. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  13324. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  13325. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  13326. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  13327. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  13328. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  13329. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  13330. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  13331. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  13332. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  13333. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  13334. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  13335. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  13336. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  13337. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  13338. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  13339. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  13340. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  13341. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  13342. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  13343. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  13344. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  13345. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  13346. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  13347. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  13348. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  13349. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  13350. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  13351. .ilen = 512,
  13352. .result = "\x90\x69\x8e\xf2\x14\x86\x59\xf9"
  13353. "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96"
  13354. "\x67\x76\xac\x2c\xd2\x63\x18\x93"
  13355. "\x13\xf8\xf1\xf6\x71\x77\xb3\xee"
  13356. "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f"
  13357. "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06"
  13358. "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1"
  13359. "\x62\xdd\x78\x81\xea\x1d\xef\x04"
  13360. "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1"
  13361. "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2"
  13362. "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0"
  13363. "\x40\x41\x69\xaa\x71\xc0\x37\xec"
  13364. "\x39\xf3\xf2\xec\x82\xc3\x88\x79"
  13365. "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80"
  13366. "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c"
  13367. "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1"
  13368. "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12"
  13369. "\x6f\x75\xc7\x80\x99\x50\x84\xcf"
  13370. "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e"
  13371. "\xb9\xb3\xde\x7a\x93\x14\x12\xa2"
  13372. "\xf7\x43\xb3\x9d\x1a\x87\x65\x91"
  13373. "\x42\x08\x40\x82\x06\x1c\x2d\x55"
  13374. "\x6e\x48\xd5\x74\x07\x6e\x9d\x80"
  13375. "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74"
  13376. "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c"
  13377. "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9"
  13378. "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83"
  13379. "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b"
  13380. "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0"
  13381. "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1"
  13382. "\xed\x14\xa9\x57\x19\x63\x40\x04"
  13383. "\x24\xeb\x6e\x19\xd1\x3d\x70\x78"
  13384. "\xeb\xda\x55\x70\x2c\x4f\x41\x5b"
  13385. "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3"
  13386. "\x21\xec\xd7\xd2\x55\x32\x7c\x2e"
  13387. "\x3c\x48\x8e\xb4\x85\x35\x47\xfe"
  13388. "\xe2\x88\x79\x98\x6a\xc9\x8d\xff"
  13389. "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd"
  13390. "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99"
  13391. "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75"
  13392. "\x23\x52\x76\xc3\x50\x6e\x66\xf8"
  13393. "\xa2\xe2\xce\xba\x40\x21\x3f\xc9"
  13394. "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf"
  13395. "\xd3\xdf\x57\x59\x83\xb8\xe1\x85"
  13396. "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f"
  13397. "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a"
  13398. "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76"
  13399. "\x2f\x1c\x1a\x30\xed\x95\x2a\x44"
  13400. "\x35\xa5\x83\x04\x84\x01\x99\x56"
  13401. "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd"
  13402. "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c"
  13403. "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d"
  13404. "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77"
  13405. "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b"
  13406. "\x30\xed\x1a\x50\x19\xef\xc4\x2c"
  13407. "\x02\xd9\xc5\xd3\x11\x33\x37\xe5"
  13408. "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d"
  13409. "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96"
  13410. "\x91\xc3\x94\x24\xa5\x12\xa2\x37"
  13411. "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe"
  13412. "\x79\x92\x3e\xe6\x1b\x49\x57\x5d"
  13413. "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1"
  13414. "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9"
  13415. "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95",
  13416. .rlen = 512,
  13417. },
  13418. };
  13419. static struct cipher_testvec camellia_lrw_dec_tv_template[] = {
  13420. /* Generated from AES-LRW test vectors */
  13421. /* same as enc vectors with input and result reversed */
  13422. {
  13423. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  13424. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  13425. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  13426. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  13427. .klen = 32,
  13428. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13429. "\x00\x00\x00\x00\x00\x00\x00\x01",
  13430. .input = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31"
  13431. "\x97\xcc\x72\xbe\x99\x17\xeb\x3e",
  13432. .ilen = 16,
  13433. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  13434. "\x38\x39\x41\x42\x43\x44\x45\x46",
  13435. .rlen = 16,
  13436. }, {
  13437. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  13438. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  13439. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  13440. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  13441. .klen = 32,
  13442. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13443. "\x00\x00\x00\x00\x00\x00\x00\x02",
  13444. .input = "\x73\x09\xb7\x50\xb6\x77\x30\x50"
  13445. "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a",
  13446. .ilen = 16,
  13447. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  13448. "\x38\x39\x41\x42\x43\x44\x45\x46",
  13449. .rlen = 16,
  13450. }, {
  13451. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  13452. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  13453. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  13454. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  13455. .klen = 32,
  13456. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13457. "\x00\x00\x00\x02\x00\x00\x00\x00",
  13458. .input = "\x90\xae\x83\xe0\x22\xb9\x60\x91"
  13459. "\xfa\xa9\xb7\x98\xe3\xed\x87\x01",
  13460. .ilen = 16,
  13461. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  13462. "\x38\x39\x41\x42\x43\x44\x45\x46",
  13463. .rlen = 16,
  13464. }, {
  13465. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  13466. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  13467. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  13468. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  13469. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  13470. .klen = 40,
  13471. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13472. "\x00\x00\x00\x00\x00\x00\x00\x01",
  13473. .input = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0"
  13474. "\xd8\x83\xef\xd9\x07\x16\x5f\x35",
  13475. .ilen = 16,
  13476. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  13477. "\x38\x39\x41\x42\x43\x44\x45\x46",
  13478. .rlen = 16,
  13479. }, {
  13480. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  13481. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  13482. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  13483. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  13484. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  13485. .klen = 40,
  13486. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13487. "\x00\x00\x00\x02\x00\x00\x00\x00",
  13488. .input = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e"
  13489. "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15",
  13490. .ilen = 16,
  13491. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  13492. "\x38\x39\x41\x42\x43\x44\x45\x46",
  13493. .rlen = 16,
  13494. }, {
  13495. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  13496. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  13497. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  13498. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  13499. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  13500. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  13501. .klen = 48,
  13502. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13503. "\x00\x00\x00\x00\x00\x00\x00\x01",
  13504. .input = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9"
  13505. "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d",
  13506. .ilen = 16,
  13507. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  13508. "\x38\x39\x41\x42\x43\x44\x45\x46",
  13509. .rlen = 16,
  13510. }, {
  13511. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  13512. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  13513. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  13514. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  13515. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  13516. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  13517. .klen = 48,
  13518. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13519. "\x00\x00\x00\x02\x00\x00\x00\x00",
  13520. .input = "\x04\xab\x28\x37\x31\x7a\x26\xab"
  13521. "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff",
  13522. .ilen = 16,
  13523. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  13524. "\x38\x39\x41\x42\x43\x44\x45\x46",
  13525. .rlen = 16,
  13526. }, {
  13527. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  13528. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  13529. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  13530. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  13531. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  13532. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  13533. .klen = 48,
  13534. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13535. "\x00\x00\x00\x00\x00\x00\x00\x01",
  13536. .input = "\x90\x69\x8e\xf2\x14\x86\x59\xf9"
  13537. "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96"
  13538. "\x67\x76\xac\x2c\xd2\x63\x18\x93"
  13539. "\x13\xf8\xf1\xf6\x71\x77\xb3\xee"
  13540. "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f"
  13541. "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06"
  13542. "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1"
  13543. "\x62\xdd\x78\x81\xea\x1d\xef\x04"
  13544. "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1"
  13545. "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2"
  13546. "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0"
  13547. "\x40\x41\x69\xaa\x71\xc0\x37\xec"
  13548. "\x39\xf3\xf2\xec\x82\xc3\x88\x79"
  13549. "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80"
  13550. "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c"
  13551. "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1"
  13552. "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12"
  13553. "\x6f\x75\xc7\x80\x99\x50\x84\xcf"
  13554. "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e"
  13555. "\xb9\xb3\xde\x7a\x93\x14\x12\xa2"
  13556. "\xf7\x43\xb3\x9d\x1a\x87\x65\x91"
  13557. "\x42\x08\x40\x82\x06\x1c\x2d\x55"
  13558. "\x6e\x48\xd5\x74\x07\x6e\x9d\x80"
  13559. "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74"
  13560. "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c"
  13561. "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9"
  13562. "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83"
  13563. "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b"
  13564. "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0"
  13565. "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1"
  13566. "\xed\x14\xa9\x57\x19\x63\x40\x04"
  13567. "\x24\xeb\x6e\x19\xd1\x3d\x70\x78"
  13568. "\xeb\xda\x55\x70\x2c\x4f\x41\x5b"
  13569. "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3"
  13570. "\x21\xec\xd7\xd2\x55\x32\x7c\x2e"
  13571. "\x3c\x48\x8e\xb4\x85\x35\x47\xfe"
  13572. "\xe2\x88\x79\x98\x6a\xc9\x8d\xff"
  13573. "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd"
  13574. "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99"
  13575. "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75"
  13576. "\x23\x52\x76\xc3\x50\x6e\x66\xf8"
  13577. "\xa2\xe2\xce\xba\x40\x21\x3f\xc9"
  13578. "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf"
  13579. "\xd3\xdf\x57\x59\x83\xb8\xe1\x85"
  13580. "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f"
  13581. "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a"
  13582. "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76"
  13583. "\x2f\x1c\x1a\x30\xed\x95\x2a\x44"
  13584. "\x35\xa5\x83\x04\x84\x01\x99\x56"
  13585. "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd"
  13586. "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c"
  13587. "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d"
  13588. "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77"
  13589. "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b"
  13590. "\x30\xed\x1a\x50\x19\xef\xc4\x2c"
  13591. "\x02\xd9\xc5\xd3\x11\x33\x37\xe5"
  13592. "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d"
  13593. "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96"
  13594. "\x91\xc3\x94\x24\xa5\x12\xa2\x37"
  13595. "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe"
  13596. "\x79\x92\x3e\xe6\x1b\x49\x57\x5d"
  13597. "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1"
  13598. "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9"
  13599. "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95",
  13600. .ilen = 512,
  13601. .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  13602. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  13603. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  13604. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  13605. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  13606. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  13607. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  13608. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  13609. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  13610. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  13611. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  13612. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  13613. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  13614. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  13615. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  13616. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  13617. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  13618. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  13619. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  13620. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  13621. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  13622. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  13623. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  13624. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  13625. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  13626. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  13627. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  13628. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  13629. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  13630. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  13631. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  13632. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  13633. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  13634. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  13635. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  13636. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  13637. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  13638. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  13639. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  13640. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  13641. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  13642. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  13643. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  13644. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  13645. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  13646. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  13647. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  13648. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  13649. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  13650. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  13651. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  13652. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  13653. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  13654. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  13655. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  13656. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  13657. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  13658. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  13659. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  13660. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  13661. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  13662. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  13663. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  13664. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  13665. .rlen = 512,
  13666. },
  13667. };
  13668. static struct cipher_testvec camellia_xts_enc_tv_template[] = {
  13669. /* Generated from AES-XTS test vectors */
  13670. {
  13671. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13672. "\x00\x00\x00\x00\x00\x00\x00\x00"
  13673. "\x00\x00\x00\x00\x00\x00\x00\x00"
  13674. "\x00\x00\x00\x00\x00\x00\x00\x00",
  13675. .klen = 32,
  13676. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13677. "\x00\x00\x00\x00\x00\x00\x00\x00",
  13678. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13679. "\x00\x00\x00\x00\x00\x00\x00\x00"
  13680. "\x00\x00\x00\x00\x00\x00\x00\x00"
  13681. "\x00\x00\x00\x00\x00\x00\x00\x00",
  13682. .ilen = 32,
  13683. .result = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41"
  13684. "\xdc\xca\xfa\x09\xba\x74\xb9\x05"
  13685. "\x78\xba\xa4\xf8\x67\x4d\x7e\xad"
  13686. "\x20\x18\xf5\x0c\x41\x16\x2a\x61",
  13687. .rlen = 32,
  13688. }, {
  13689. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  13690. "\x11\x11\x11\x11\x11\x11\x11\x11"
  13691. "\x22\x22\x22\x22\x22\x22\x22\x22"
  13692. "\x22\x22\x22\x22\x22\x22\x22\x22",
  13693. .klen = 32,
  13694. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  13695. "\x00\x00\x00\x00\x00\x00\x00\x00",
  13696. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  13697. "\x44\x44\x44\x44\x44\x44\x44\x44"
  13698. "\x44\x44\x44\x44\x44\x44\x44\x44"
  13699. "\x44\x44\x44\x44\x44\x44\x44\x44",
  13700. .ilen = 32,
  13701. .result = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86"
  13702. "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f"
  13703. "\xb5\x37\x06\xff\xbd\xd4\x91\x70"
  13704. "\x80\x1f\xb2\x39\x10\x89\x44\xf5",
  13705. .rlen = 32,
  13706. }, {
  13707. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  13708. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  13709. "\x22\x22\x22\x22\x22\x22\x22\x22"
  13710. "\x22\x22\x22\x22\x22\x22\x22\x22",
  13711. .klen = 32,
  13712. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  13713. "\x00\x00\x00\x00\x00\x00\x00\x00",
  13714. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  13715. "\x44\x44\x44\x44\x44\x44\x44\x44"
  13716. "\x44\x44\x44\x44\x44\x44\x44\x44"
  13717. "\x44\x44\x44\x44\x44\x44\x44\x44",
  13718. .ilen = 32,
  13719. .result = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e"
  13720. "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7"
  13721. "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a"
  13722. "\x35\x3c\x6b\xb5\x61\x1c\x79\x38",
  13723. .rlen = 32,
  13724. }, {
  13725. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  13726. "\x23\x53\x60\x28\x74\x71\x35\x26"
  13727. "\x31\x41\x59\x26\x53\x58\x97\x93"
  13728. "\x23\x84\x62\x64\x33\x83\x27\x95",
  13729. .klen = 32,
  13730. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13731. "\x00\x00\x00\x00\x00\x00\x00\x00",
  13732. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  13733. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  13734. "\x10\x11\x12\x13\x14\x15\x16\x17"
  13735. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  13736. "\x20\x21\x22\x23\x24\x25\x26\x27"
  13737. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  13738. "\x30\x31\x32\x33\x34\x35\x36\x37"
  13739. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  13740. "\x40\x41\x42\x43\x44\x45\x46\x47"
  13741. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  13742. "\x50\x51\x52\x53\x54\x55\x56\x57"
  13743. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  13744. "\x60\x61\x62\x63\x64\x65\x66\x67"
  13745. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  13746. "\x70\x71\x72\x73\x74\x75\x76\x77"
  13747. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  13748. "\x80\x81\x82\x83\x84\x85\x86\x87"
  13749. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  13750. "\x90\x91\x92\x93\x94\x95\x96\x97"
  13751. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  13752. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  13753. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  13754. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  13755. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  13756. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  13757. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  13758. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  13759. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  13760. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  13761. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  13762. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  13763. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  13764. "\x00\x01\x02\x03\x04\x05\x06\x07"
  13765. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  13766. "\x10\x11\x12\x13\x14\x15\x16\x17"
  13767. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  13768. "\x20\x21\x22\x23\x24\x25\x26\x27"
  13769. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  13770. "\x30\x31\x32\x33\x34\x35\x36\x37"
  13771. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  13772. "\x40\x41\x42\x43\x44\x45\x46\x47"
  13773. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  13774. "\x50\x51\x52\x53\x54\x55\x56\x57"
  13775. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  13776. "\x60\x61\x62\x63\x64\x65\x66\x67"
  13777. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  13778. "\x70\x71\x72\x73\x74\x75\x76\x77"
  13779. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  13780. "\x80\x81\x82\x83\x84\x85\x86\x87"
  13781. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  13782. "\x90\x91\x92\x93\x94\x95\x96\x97"
  13783. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  13784. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  13785. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  13786. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  13787. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  13788. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  13789. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  13790. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  13791. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  13792. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  13793. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  13794. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  13795. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  13796. .ilen = 512,
  13797. .result = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33"
  13798. "\x60\xc3\xe9\x47\x90\xb7\x50\x57"
  13799. "\xa3\xad\x81\x2f\xf5\x22\x96\x02"
  13800. "\xaa\x7f\xea\xac\x29\x78\xca\x2a"
  13801. "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73"
  13802. "\x09\x66\xad\x72\x0e\x4d\x5d\x77"
  13803. "\xbc\xb8\x76\x80\x37\x59\xa9\x01"
  13804. "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d"
  13805. "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01"
  13806. "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8"
  13807. "\x08\xda\x76\x00\x65\xcf\x7b\x31"
  13808. "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e"
  13809. "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5"
  13810. "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04"
  13811. "\xfb\x54\xdd\x29\x27\xc2\x65\x17"
  13812. "\x36\x88\xb0\x85\x8d\x73\x7e\x4b"
  13813. "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4"
  13814. "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f"
  13815. "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3"
  13816. "\x6c\xee\xac\xdc\x45\x58\xca\x5b"
  13817. "\x70\x0e\x6a\x12\x86\x82\x79\x9f"
  13818. "\x16\xd4\x9d\x67\xcd\x70\x65\x26"
  13819. "\x21\x72\x1e\xa1\x94\x8a\x83\x0c"
  13820. "\x92\x42\x58\x5e\xa2\xc5\x31\xf3"
  13821. "\x7b\xd1\x31\xd4\x15\x80\x31\x61"
  13822. "\x5c\x53\x10\xdd\xea\xc8\x83\x5c"
  13823. "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05"
  13824. "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5"
  13825. "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9"
  13826. "\x16\x31\xb2\x47\x91\x67\xaa\x28"
  13827. "\x2c\x29\x85\xa3\xf7\xf2\x24\x93"
  13828. "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc"
  13829. "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec"
  13830. "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e"
  13831. "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66"
  13832. "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7"
  13833. "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d"
  13834. "\xf8\x89\xcd\x20\x27\x84\x5d\x5c"
  13835. "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3"
  13836. "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7"
  13837. "\x3f\x43\xcc\x86\x71\x34\x6a\xd9"
  13838. "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe"
  13839. "\x18\x41\xdc\x9e\x2e\x75\x20\x3e"
  13840. "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c"
  13841. "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71"
  13842. "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e"
  13843. "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9"
  13844. "\x34\xb8\x27\x74\x08\xda\xf2\x4a"
  13845. "\x23\x5b\x9f\x55\x3a\x57\x82\x52"
  13846. "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc"
  13847. "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49"
  13848. "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2"
  13849. "\x96\x0b\x35\x84\x05\x0d\xd6\x2a"
  13850. "\xea\x5a\xbf\x69\xde\xee\x4f\x8f"
  13851. "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8"
  13852. "\x96\xef\x0f\x0e\xec\xc7\xa6\x74"
  13853. "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15"
  13854. "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1"
  13855. "\x5b\xb6\x71\xda\xb0\x0c\xba\x26"
  13856. "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d"
  13857. "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33"
  13858. "\xcc\x06\xdb\xe7\x82\x29\x63\xd1"
  13859. "\x52\x84\x4f\xee\x27\xe8\x02\xd4"
  13860. "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a",
  13861. .rlen = 512,
  13862. }, {
  13863. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  13864. "\x23\x53\x60\x28\x74\x71\x35\x26"
  13865. "\x62\x49\x77\x57\x24\x70\x93\x69"
  13866. "\x99\x59\x57\x49\x66\x96\x76\x27"
  13867. "\x31\x41\x59\x26\x53\x58\x97\x93"
  13868. "\x23\x84\x62\x64\x33\x83\x27\x95"
  13869. "\x02\x88\x41\x97\x16\x93\x99\x37"
  13870. "\x51\x05\x82\x09\x74\x94\x45\x92",
  13871. .klen = 64,
  13872. .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
  13873. "\x00\x00\x00\x00\x00\x00\x00\x00",
  13874. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  13875. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  13876. "\x10\x11\x12\x13\x14\x15\x16\x17"
  13877. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  13878. "\x20\x21\x22\x23\x24\x25\x26\x27"
  13879. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  13880. "\x30\x31\x32\x33\x34\x35\x36\x37"
  13881. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  13882. "\x40\x41\x42\x43\x44\x45\x46\x47"
  13883. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  13884. "\x50\x51\x52\x53\x54\x55\x56\x57"
  13885. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  13886. "\x60\x61\x62\x63\x64\x65\x66\x67"
  13887. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  13888. "\x70\x71\x72\x73\x74\x75\x76\x77"
  13889. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  13890. "\x80\x81\x82\x83\x84\x85\x86\x87"
  13891. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  13892. "\x90\x91\x92\x93\x94\x95\x96\x97"
  13893. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  13894. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  13895. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  13896. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  13897. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  13898. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  13899. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  13900. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  13901. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  13902. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  13903. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  13904. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  13905. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  13906. "\x00\x01\x02\x03\x04\x05\x06\x07"
  13907. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  13908. "\x10\x11\x12\x13\x14\x15\x16\x17"
  13909. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  13910. "\x20\x21\x22\x23\x24\x25\x26\x27"
  13911. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  13912. "\x30\x31\x32\x33\x34\x35\x36\x37"
  13913. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  13914. "\x40\x41\x42\x43\x44\x45\x46\x47"
  13915. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  13916. "\x50\x51\x52\x53\x54\x55\x56\x57"
  13917. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  13918. "\x60\x61\x62\x63\x64\x65\x66\x67"
  13919. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  13920. "\x70\x71\x72\x73\x74\x75\x76\x77"
  13921. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  13922. "\x80\x81\x82\x83\x84\x85\x86\x87"
  13923. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  13924. "\x90\x91\x92\x93\x94\x95\x96\x97"
  13925. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  13926. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  13927. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  13928. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  13929. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  13930. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  13931. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  13932. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  13933. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  13934. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  13935. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  13936. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  13937. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  13938. .ilen = 512,
  13939. .result = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28"
  13940. "\x9a\x7f\x6e\x57\x55\xb8\x07\x88"
  13941. "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b"
  13942. "\xf1\x74\xac\x96\x05\x7b\x32\xca"
  13943. "\xd1\x4e\xf1\x58\x29\x16\x24\x6c"
  13944. "\xf2\xb3\xe4\x88\x84\xac\x4d\xee"
  13945. "\x97\x07\x82\xf0\x07\x12\x38\x0a"
  13946. "\x67\x62\xaf\xfd\x85\x9f\x0a\x55"
  13947. "\xa5\x20\xc5\x60\xe4\x68\x53\xa4"
  13948. "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c"
  13949. "\x1c\x01\x4f\x55\xa9\x13\xeb\x25"
  13950. "\x21\x87\xbc\xd3\xe7\x67\x4f\x38"
  13951. "\xa8\x14\x25\x71\xe9\x2e\x4c\x21"
  13952. "\x41\x82\x0c\x45\x39\x35\xa8\x75"
  13953. "\x03\x29\x01\x84\x8c\xab\x48\xbe"
  13954. "\x11\x56\x22\x67\xb7\x67\x1a\x09"
  13955. "\xa1\x72\x25\x41\x3c\x39\x65\x80"
  13956. "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d"
  13957. "\xdd\x16\x8b\x63\x70\x4e\xc5\x17"
  13958. "\x21\xe0\x84\x51\x4b\x6f\x05\x52"
  13959. "\xe3\x63\x34\xfa\xa4\xaf\x33\x20"
  13960. "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76"
  13961. "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b"
  13962. "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0"
  13963. "\xb8\x8a\x13\x88\x71\xf4\x11\xa5"
  13964. "\xe9\xa9\x10\x33\xe0\xbe\x49\x89"
  13965. "\x41\x22\xf5\x9d\x80\x3e\x3b\x76"
  13966. "\x01\x16\x50\x6e\x7c\x6a\x81\xe9"
  13967. "\x13\x2c\xde\xb2\x5f\x79\xba\xb2"
  13968. "\xb1\x75\xae\xd2\x07\x98\x4b\x69"
  13969. "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98"
  13970. "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a"
  13971. "\x0d\x23\xb1\x79\x25\x13\x4b\xe5"
  13972. "\xaf\x93\x20\x5c\x7f\x06\x7a\x34"
  13973. "\x0b\x78\xe3\x67\x26\xe0\xad\x95"
  13974. "\xc5\x4e\x26\x22\xcf\x73\x77\x62"
  13975. "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9"
  13976. "\xef\x38\x52\x18\x0e\x29\x7e\xef"
  13977. "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2"
  13978. "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d"
  13979. "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe"
  13980. "\x96\xcd\x41\x10\x78\x4e\x0c\xc9"
  13981. "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab"
  13982. "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa"
  13983. "\x9d\x70\xbe\x4c\xa8\x98\x89\x01"
  13984. "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa"
  13985. "\x89\xf5\x14\x79\x18\x8f\x3b\x0d"
  13986. "\x21\x17\xf8\x59\x15\x24\x64\x22"
  13987. "\x57\x48\x80\xd5\x3d\x92\x30\x07"
  13988. "\xd9\xa1\x4a\x23\x16\x43\x48\x0e"
  13989. "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa"
  13990. "\x49\xbc\x7e\x68\x6e\xa8\x46\x95"
  13991. "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d"
  13992. "\x6b\x84\xf3\x00\xba\x52\x05\x02"
  13993. "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3"
  13994. "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d"
  13995. "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0"
  13996. "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66"
  13997. "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89"
  13998. "\xf5\x21\x0f\x02\x48\x83\x74\xbf"
  13999. "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b"
  14000. "\xb1\x02\x0a\x5c\x79\x19\x3b\x75"
  14001. "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e"
  14002. "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95",
  14003. .rlen = 512,
  14004. },
  14005. };
  14006. static struct cipher_testvec camellia_xts_dec_tv_template[] = {
  14007. /* Generated from AES-XTS test vectors */
  14008. /* same as enc vectors with input and result reversed */
  14009. {
  14010. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  14011. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14012. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14013. "\x00\x00\x00\x00\x00\x00\x00\x00",
  14014. .klen = 32,
  14015. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  14016. "\x00\x00\x00\x00\x00\x00\x00\x00",
  14017. .input = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41"
  14018. "\xdc\xca\xfa\x09\xba\x74\xb9\x05"
  14019. "\x78\xba\xa4\xf8\x67\x4d\x7e\xad"
  14020. "\x20\x18\xf5\x0c\x41\x16\x2a\x61",
  14021. .ilen = 32,
  14022. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  14023. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14024. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14025. "\x00\x00\x00\x00\x00\x00\x00\x00",
  14026. .rlen = 32,
  14027. }, {
  14028. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  14029. "\x11\x11\x11\x11\x11\x11\x11\x11"
  14030. "\x22\x22\x22\x22\x22\x22\x22\x22"
  14031. "\x22\x22\x22\x22\x22\x22\x22\x22",
  14032. .klen = 32,
  14033. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  14034. "\x00\x00\x00\x00\x00\x00\x00\x00",
  14035. .input = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86"
  14036. "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f"
  14037. "\xb5\x37\x06\xff\xbd\xd4\x91\x70"
  14038. "\x80\x1f\xb2\x39\x10\x89\x44\xf5",
  14039. .ilen = 32,
  14040. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  14041. "\x44\x44\x44\x44\x44\x44\x44\x44"
  14042. "\x44\x44\x44\x44\x44\x44\x44\x44"
  14043. "\x44\x44\x44\x44\x44\x44\x44\x44",
  14044. .rlen = 32,
  14045. }, {
  14046. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  14047. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  14048. "\x22\x22\x22\x22\x22\x22\x22\x22"
  14049. "\x22\x22\x22\x22\x22\x22\x22\x22",
  14050. .klen = 32,
  14051. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  14052. "\x00\x00\x00\x00\x00\x00\x00\x00",
  14053. .input = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e"
  14054. "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7"
  14055. "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a"
  14056. "\x35\x3c\x6b\xb5\x61\x1c\x79\x38",
  14057. .ilen = 32,
  14058. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  14059. "\x44\x44\x44\x44\x44\x44\x44\x44"
  14060. "\x44\x44\x44\x44\x44\x44\x44\x44"
  14061. "\x44\x44\x44\x44\x44\x44\x44\x44",
  14062. .rlen = 32,
  14063. }, {
  14064. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  14065. "\x23\x53\x60\x28\x74\x71\x35\x26"
  14066. "\x31\x41\x59\x26\x53\x58\x97\x93"
  14067. "\x23\x84\x62\x64\x33\x83\x27\x95",
  14068. .klen = 32,
  14069. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  14070. "\x00\x00\x00\x00\x00\x00\x00\x00",
  14071. .input = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33"
  14072. "\x60\xc3\xe9\x47\x90\xb7\x50\x57"
  14073. "\xa3\xad\x81\x2f\xf5\x22\x96\x02"
  14074. "\xaa\x7f\xea\xac\x29\x78\xca\x2a"
  14075. "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73"
  14076. "\x09\x66\xad\x72\x0e\x4d\x5d\x77"
  14077. "\xbc\xb8\x76\x80\x37\x59\xa9\x01"
  14078. "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d"
  14079. "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01"
  14080. "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8"
  14081. "\x08\xda\x76\x00\x65\xcf\x7b\x31"
  14082. "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e"
  14083. "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5"
  14084. "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04"
  14085. "\xfb\x54\xdd\x29\x27\xc2\x65\x17"
  14086. "\x36\x88\xb0\x85\x8d\x73\x7e\x4b"
  14087. "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4"
  14088. "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f"
  14089. "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3"
  14090. "\x6c\xee\xac\xdc\x45\x58\xca\x5b"
  14091. "\x70\x0e\x6a\x12\x86\x82\x79\x9f"
  14092. "\x16\xd4\x9d\x67\xcd\x70\x65\x26"
  14093. "\x21\x72\x1e\xa1\x94\x8a\x83\x0c"
  14094. "\x92\x42\x58\x5e\xa2\xc5\x31\xf3"
  14095. "\x7b\xd1\x31\xd4\x15\x80\x31\x61"
  14096. "\x5c\x53\x10\xdd\xea\xc8\x83\x5c"
  14097. "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05"
  14098. "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5"
  14099. "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9"
  14100. "\x16\x31\xb2\x47\x91\x67\xaa\x28"
  14101. "\x2c\x29\x85\xa3\xf7\xf2\x24\x93"
  14102. "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc"
  14103. "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec"
  14104. "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e"
  14105. "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66"
  14106. "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7"
  14107. "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d"
  14108. "\xf8\x89\xcd\x20\x27\x84\x5d\x5c"
  14109. "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3"
  14110. "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7"
  14111. "\x3f\x43\xcc\x86\x71\x34\x6a\xd9"
  14112. "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe"
  14113. "\x18\x41\xdc\x9e\x2e\x75\x20\x3e"
  14114. "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c"
  14115. "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71"
  14116. "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e"
  14117. "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9"
  14118. "\x34\xb8\x27\x74\x08\xda\xf2\x4a"
  14119. "\x23\x5b\x9f\x55\x3a\x57\x82\x52"
  14120. "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc"
  14121. "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49"
  14122. "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2"
  14123. "\x96\x0b\x35\x84\x05\x0d\xd6\x2a"
  14124. "\xea\x5a\xbf\x69\xde\xee\x4f\x8f"
  14125. "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8"
  14126. "\x96\xef\x0f\x0e\xec\xc7\xa6\x74"
  14127. "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15"
  14128. "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1"
  14129. "\x5b\xb6\x71\xda\xb0\x0c\xba\x26"
  14130. "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d"
  14131. "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33"
  14132. "\xcc\x06\xdb\xe7\x82\x29\x63\xd1"
  14133. "\x52\x84\x4f\xee\x27\xe8\x02\xd4"
  14134. "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a",
  14135. .ilen = 512,
  14136. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  14137. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  14138. "\x10\x11\x12\x13\x14\x15\x16\x17"
  14139. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  14140. "\x20\x21\x22\x23\x24\x25\x26\x27"
  14141. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  14142. "\x30\x31\x32\x33\x34\x35\x36\x37"
  14143. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  14144. "\x40\x41\x42\x43\x44\x45\x46\x47"
  14145. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  14146. "\x50\x51\x52\x53\x54\x55\x56\x57"
  14147. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  14148. "\x60\x61\x62\x63\x64\x65\x66\x67"
  14149. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  14150. "\x70\x71\x72\x73\x74\x75\x76\x77"
  14151. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  14152. "\x80\x81\x82\x83\x84\x85\x86\x87"
  14153. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  14154. "\x90\x91\x92\x93\x94\x95\x96\x97"
  14155. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  14156. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  14157. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  14158. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  14159. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  14160. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  14161. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  14162. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  14163. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  14164. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  14165. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  14166. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  14167. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  14168. "\x00\x01\x02\x03\x04\x05\x06\x07"
  14169. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  14170. "\x10\x11\x12\x13\x14\x15\x16\x17"
  14171. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  14172. "\x20\x21\x22\x23\x24\x25\x26\x27"
  14173. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  14174. "\x30\x31\x32\x33\x34\x35\x36\x37"
  14175. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  14176. "\x40\x41\x42\x43\x44\x45\x46\x47"
  14177. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  14178. "\x50\x51\x52\x53\x54\x55\x56\x57"
  14179. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  14180. "\x60\x61\x62\x63\x64\x65\x66\x67"
  14181. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  14182. "\x70\x71\x72\x73\x74\x75\x76\x77"
  14183. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  14184. "\x80\x81\x82\x83\x84\x85\x86\x87"
  14185. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  14186. "\x90\x91\x92\x93\x94\x95\x96\x97"
  14187. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  14188. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  14189. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  14190. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  14191. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  14192. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  14193. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  14194. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  14195. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  14196. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  14197. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  14198. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  14199. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  14200. .rlen = 512,
  14201. }, {
  14202. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  14203. "\x23\x53\x60\x28\x74\x71\x35\x26"
  14204. "\x62\x49\x77\x57\x24\x70\x93\x69"
  14205. "\x99\x59\x57\x49\x66\x96\x76\x27"
  14206. "\x31\x41\x59\x26\x53\x58\x97\x93"
  14207. "\x23\x84\x62\x64\x33\x83\x27\x95"
  14208. "\x02\x88\x41\x97\x16\x93\x99\x37"
  14209. "\x51\x05\x82\x09\x74\x94\x45\x92",
  14210. .klen = 64,
  14211. .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
  14212. "\x00\x00\x00\x00\x00\x00\x00\x00",
  14213. .input = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28"
  14214. "\x9a\x7f\x6e\x57\x55\xb8\x07\x88"
  14215. "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b"
  14216. "\xf1\x74\xac\x96\x05\x7b\x32\xca"
  14217. "\xd1\x4e\xf1\x58\x29\x16\x24\x6c"
  14218. "\xf2\xb3\xe4\x88\x84\xac\x4d\xee"
  14219. "\x97\x07\x82\xf0\x07\x12\x38\x0a"
  14220. "\x67\x62\xaf\xfd\x85\x9f\x0a\x55"
  14221. "\xa5\x20\xc5\x60\xe4\x68\x53\xa4"
  14222. "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c"
  14223. "\x1c\x01\x4f\x55\xa9\x13\xeb\x25"
  14224. "\x21\x87\xbc\xd3\xe7\x67\x4f\x38"
  14225. "\xa8\x14\x25\x71\xe9\x2e\x4c\x21"
  14226. "\x41\x82\x0c\x45\x39\x35\xa8\x75"
  14227. "\x03\x29\x01\x84\x8c\xab\x48\xbe"
  14228. "\x11\x56\x22\x67\xb7\x67\x1a\x09"
  14229. "\xa1\x72\x25\x41\x3c\x39\x65\x80"
  14230. "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d"
  14231. "\xdd\x16\x8b\x63\x70\x4e\xc5\x17"
  14232. "\x21\xe0\x84\x51\x4b\x6f\x05\x52"
  14233. "\xe3\x63\x34\xfa\xa4\xaf\x33\x20"
  14234. "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76"
  14235. "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b"
  14236. "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0"
  14237. "\xb8\x8a\x13\x88\x71\xf4\x11\xa5"
  14238. "\xe9\xa9\x10\x33\xe0\xbe\x49\x89"
  14239. "\x41\x22\xf5\x9d\x80\x3e\x3b\x76"
  14240. "\x01\x16\x50\x6e\x7c\x6a\x81\xe9"
  14241. "\x13\x2c\xde\xb2\x5f\x79\xba\xb2"
  14242. "\xb1\x75\xae\xd2\x07\x98\x4b\x69"
  14243. "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98"
  14244. "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a"
  14245. "\x0d\x23\xb1\x79\x25\x13\x4b\xe5"
  14246. "\xaf\x93\x20\x5c\x7f\x06\x7a\x34"
  14247. "\x0b\x78\xe3\x67\x26\xe0\xad\x95"
  14248. "\xc5\x4e\x26\x22\xcf\x73\x77\x62"
  14249. "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9"
  14250. "\xef\x38\x52\x18\x0e\x29\x7e\xef"
  14251. "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2"
  14252. "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d"
  14253. "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe"
  14254. "\x96\xcd\x41\x10\x78\x4e\x0c\xc9"
  14255. "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab"
  14256. "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa"
  14257. "\x9d\x70\xbe\x4c\xa8\x98\x89\x01"
  14258. "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa"
  14259. "\x89\xf5\x14\x79\x18\x8f\x3b\x0d"
  14260. "\x21\x17\xf8\x59\x15\x24\x64\x22"
  14261. "\x57\x48\x80\xd5\x3d\x92\x30\x07"
  14262. "\xd9\xa1\x4a\x23\x16\x43\x48\x0e"
  14263. "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa"
  14264. "\x49\xbc\x7e\x68\x6e\xa8\x46\x95"
  14265. "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d"
  14266. "\x6b\x84\xf3\x00\xba\x52\x05\x02"
  14267. "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3"
  14268. "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d"
  14269. "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0"
  14270. "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66"
  14271. "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89"
  14272. "\xf5\x21\x0f\x02\x48\x83\x74\xbf"
  14273. "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b"
  14274. "\xb1\x02\x0a\x5c\x79\x19\x3b\x75"
  14275. "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e"
  14276. "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95",
  14277. .ilen = 512,
  14278. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  14279. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  14280. "\x10\x11\x12\x13\x14\x15\x16\x17"
  14281. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  14282. "\x20\x21\x22\x23\x24\x25\x26\x27"
  14283. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  14284. "\x30\x31\x32\x33\x34\x35\x36\x37"
  14285. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  14286. "\x40\x41\x42\x43\x44\x45\x46\x47"
  14287. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  14288. "\x50\x51\x52\x53\x54\x55\x56\x57"
  14289. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  14290. "\x60\x61\x62\x63\x64\x65\x66\x67"
  14291. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  14292. "\x70\x71\x72\x73\x74\x75\x76\x77"
  14293. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  14294. "\x80\x81\x82\x83\x84\x85\x86\x87"
  14295. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  14296. "\x90\x91\x92\x93\x94\x95\x96\x97"
  14297. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  14298. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  14299. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  14300. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  14301. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  14302. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  14303. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  14304. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  14305. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  14306. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  14307. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  14308. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  14309. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  14310. "\x00\x01\x02\x03\x04\x05\x06\x07"
  14311. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  14312. "\x10\x11\x12\x13\x14\x15\x16\x17"
  14313. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  14314. "\x20\x21\x22\x23\x24\x25\x26\x27"
  14315. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  14316. "\x30\x31\x32\x33\x34\x35\x36\x37"
  14317. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  14318. "\x40\x41\x42\x43\x44\x45\x46\x47"
  14319. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  14320. "\x50\x51\x52\x53\x54\x55\x56\x57"
  14321. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  14322. "\x60\x61\x62\x63\x64\x65\x66\x67"
  14323. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  14324. "\x70\x71\x72\x73\x74\x75\x76\x77"
  14325. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  14326. "\x80\x81\x82\x83\x84\x85\x86\x87"
  14327. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  14328. "\x90\x91\x92\x93\x94\x95\x96\x97"
  14329. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  14330. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  14331. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  14332. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  14333. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  14334. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  14335. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  14336. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  14337. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  14338. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  14339. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  14340. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  14341. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  14342. .rlen = 512,
  14343. },
  14344. };
  14345. /*
  14346. * SEED test vectors
  14347. */
  14348. #define SEED_ENC_TEST_VECTORS 4
  14349. #define SEED_DEC_TEST_VECTORS 4
  14350. static struct cipher_testvec seed_enc_tv_template[] = {
  14351. {
  14352. .key = zeroed_string,
  14353. .klen = 16,
  14354. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  14355. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  14356. .ilen = 16,
  14357. .result = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
  14358. "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
  14359. .rlen = 16,
  14360. }, {
  14361. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  14362. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  14363. .klen = 16,
  14364. .input = zeroed_string,
  14365. .ilen = 16,
  14366. .result = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
  14367. "\x84\x48\x35\x97\xe4\x37\x0f\x43",
  14368. .rlen = 16,
  14369. }, {
  14370. .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
  14371. "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
  14372. .klen = 16,
  14373. .input = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
  14374. "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
  14375. .ilen = 16,
  14376. .result = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
  14377. "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
  14378. .rlen = 16,
  14379. }, {
  14380. .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
  14381. "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
  14382. .klen = 16,
  14383. .input = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
  14384. "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
  14385. .ilen = 16,
  14386. .result = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
  14387. "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
  14388. .rlen = 16,
  14389. }
  14390. };
  14391. static struct cipher_testvec seed_dec_tv_template[] = {
  14392. {
  14393. .key = zeroed_string,
  14394. .klen = 16,
  14395. .input = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
  14396. "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
  14397. .ilen = 16,
  14398. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  14399. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  14400. .rlen = 16,
  14401. }, {
  14402. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  14403. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  14404. .klen = 16,
  14405. .input = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
  14406. "\x84\x48\x35\x97\xe4\x37\x0f\x43",
  14407. .ilen = 16,
  14408. .result = zeroed_string,
  14409. .rlen = 16,
  14410. }, {
  14411. .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
  14412. "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
  14413. .klen = 16,
  14414. .input = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
  14415. "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
  14416. .ilen = 16,
  14417. .result = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
  14418. "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
  14419. .rlen = 16,
  14420. }, {
  14421. .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
  14422. "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
  14423. .klen = 16,
  14424. .input = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
  14425. "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
  14426. .ilen = 16,
  14427. .result = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
  14428. "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
  14429. .rlen = 16,
  14430. }
  14431. };
  14432. #define SALSA20_STREAM_ENC_TEST_VECTORS 5
  14433. static struct cipher_testvec salsa20_stream_enc_tv_template[] = {
  14434. /*
  14435. * Testvectors from verified.test-vectors submitted to ECRYPT.
  14436. * They are truncated to size 39, 64, 111, 129 to test a variety
  14437. * of input length.
  14438. */
  14439. { /* Set 3, vector 0 */
  14440. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  14441. "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
  14442. .klen = 16,
  14443. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  14444. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  14445. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14446. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14447. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14448. "\x00\x00\x00\x00\x00\x00\x00",
  14449. .ilen = 39,
  14450. .result = "\x2D\xD5\xC3\xF7\xBA\x2B\x20\xF7"
  14451. "\x68\x02\x41\x0C\x68\x86\x88\x89"
  14452. "\x5A\xD8\xC1\xBD\x4E\xA6\xC9\xB1"
  14453. "\x40\xFB\x9B\x90\xE2\x10\x49\xBF"
  14454. "\x58\x3F\x52\x79\x70\xEB\xC1",
  14455. .rlen = 39,
  14456. }, { /* Set 5, vector 0 */
  14457. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  14458. "\x00\x00\x00\x00\x00\x00\x00\x00",
  14459. .klen = 16,
  14460. .iv = "\x80\x00\x00\x00\x00\x00\x00\x00",
  14461. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  14462. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14463. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14464. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14465. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14466. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14467. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14468. "\x00\x00\x00\x00\x00\x00\x00\x00",
  14469. .ilen = 64,
  14470. .result = "\xB6\x6C\x1E\x44\x46\xDD\x95\x57"
  14471. "\xE5\x78\xE2\x23\xB0\xB7\x68\x01"
  14472. "\x7B\x23\xB2\x67\xBB\x02\x34\xAE"
  14473. "\x46\x26\xBF\x44\x3F\x21\x97\x76"
  14474. "\x43\x6F\xB1\x9F\xD0\xE8\x86\x6F"
  14475. "\xCD\x0D\xE9\xA9\x53\x8F\x4A\x09"
  14476. "\xCA\x9A\xC0\x73\x2E\x30\xBC\xF9"
  14477. "\x8E\x4F\x13\xE4\xB9\xE2\x01\xD9",
  14478. .rlen = 64,
  14479. }, { /* Set 3, vector 27 */
  14480. .key = "\x1B\x1C\x1D\x1E\x1F\x20\x21\x22"
  14481. "\x23\x24\x25\x26\x27\x28\x29\x2A"
  14482. "\x2B\x2C\x2D\x2E\x2F\x30\x31\x32"
  14483. "\x33\x34\x35\x36\x37\x38\x39\x3A",
  14484. .klen = 32,
  14485. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  14486. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  14487. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14488. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14489. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14490. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14491. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14492. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14493. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14494. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14495. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14496. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14497. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14498. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14499. "\x00\x00\x00\x00\x00\x00\x00",
  14500. .ilen = 111,
  14501. .result = "\xAE\x39\x50\x8E\xAC\x9A\xEC\xE7"
  14502. "\xBF\x97\xBB\x20\xB9\xDE\xE4\x1F"
  14503. "\x87\xD9\x47\xF8\x28\x91\x35\x98"
  14504. "\xDB\x72\xCC\x23\x29\x48\x56\x5E"
  14505. "\x83\x7E\x0B\xF3\x7D\x5D\x38\x7B"
  14506. "\x2D\x71\x02\xB4\x3B\xB5\xD8\x23"
  14507. "\xB0\x4A\xDF\x3C\xEC\xB6\xD9\x3B"
  14508. "\x9B\xA7\x52\xBE\xC5\xD4\x50\x59"
  14509. "\x15\x14\xB4\x0E\x40\xE6\x53\xD1"
  14510. "\x83\x9C\x5B\xA0\x92\x29\x6B\x5E"
  14511. "\x96\x5B\x1E\x2F\xD3\xAC\xC1\x92"
  14512. "\xB1\x41\x3F\x19\x2F\xC4\x3B\xC6"
  14513. "\x95\x46\x45\x54\xE9\x75\x03\x08"
  14514. "\x44\xAF\xE5\x8A\x81\x12\x09",
  14515. .rlen = 111,
  14516. }, { /* Set 5, vector 27 */
  14517. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  14518. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14519. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14520. "\x00\x00\x00\x00\x00\x00\x00\x00",
  14521. .klen = 32,
  14522. .iv = "\x00\x00\x00\x10\x00\x00\x00\x00",
  14523. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  14524. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14525. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14526. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14527. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14528. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14529. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14530. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14531. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14532. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14533. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14534. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14535. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14536. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14537. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14538. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14539. "\x00",
  14540. .ilen = 129,
  14541. .result = "\xD2\xDB\x1A\x5C\xF1\xC1\xAC\xDB"
  14542. "\xE8\x1A\x7A\x43\x40\xEF\x53\x43"
  14543. "\x5E\x7F\x4B\x1A\x50\x52\x3F\x8D"
  14544. "\x28\x3D\xCF\x85\x1D\x69\x6E\x60"
  14545. "\xF2\xDE\x74\x56\x18\x1B\x84\x10"
  14546. "\xD4\x62\xBA\x60\x50\xF0\x61\xF2"
  14547. "\x1C\x78\x7F\xC1\x24\x34\xAF\x58"
  14548. "\xBF\x2C\x59\xCA\x90\x77\xF3\xB0"
  14549. "\x5B\x4A\xDF\x89\xCE\x2C\x2F\xFC"
  14550. "\x67\xF0\xE3\x45\xE8\xB3\xB3\x75"
  14551. "\xA0\x95\x71\xA1\x29\x39\x94\xCA"
  14552. "\x45\x2F\xBD\xCB\x10\xB6\xBE\x9F"
  14553. "\x8E\xF9\xB2\x01\x0A\x5A\x0A\xB7"
  14554. "\x6B\x9D\x70\x8E\x4B\xD6\x2F\xCD"
  14555. "\x2E\x40\x48\x75\xE9\xE2\x21\x45"
  14556. "\x0B\xC9\xB6\xB5\x66\xBC\x9A\x59"
  14557. "\x5A",
  14558. .rlen = 129,
  14559. }, { /* large test vector generated using Crypto++ */
  14560. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  14561. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  14562. "\x10\x11\x12\x13\x14\x15\x16\x17"
  14563. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  14564. .klen = 32,
  14565. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  14566. "\x00\x00\x00\x00\x00\x00\x00\x00",
  14567. .input =
  14568. "\x00\x01\x02\x03\x04\x05\x06\x07"
  14569. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  14570. "\x10\x11\x12\x13\x14\x15\x16\x17"
  14571. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  14572. "\x20\x21\x22\x23\x24\x25\x26\x27"
  14573. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  14574. "\x30\x31\x32\x33\x34\x35\x36\x37"
  14575. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  14576. "\x40\x41\x42\x43\x44\x45\x46\x47"
  14577. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  14578. "\x50\x51\x52\x53\x54\x55\x56\x57"
  14579. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  14580. "\x60\x61\x62\x63\x64\x65\x66\x67"
  14581. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  14582. "\x70\x71\x72\x73\x74\x75\x76\x77"
  14583. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  14584. "\x80\x81\x82\x83\x84\x85\x86\x87"
  14585. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  14586. "\x90\x91\x92\x93\x94\x95\x96\x97"
  14587. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  14588. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  14589. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  14590. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  14591. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  14592. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  14593. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  14594. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  14595. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  14596. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  14597. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  14598. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  14599. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  14600. "\x00\x03\x06\x09\x0c\x0f\x12\x15"
  14601. "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
  14602. "\x30\x33\x36\x39\x3c\x3f\x42\x45"
  14603. "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
  14604. "\x60\x63\x66\x69\x6c\x6f\x72\x75"
  14605. "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
  14606. "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
  14607. "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
  14608. "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
  14609. "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
  14610. "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
  14611. "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
  14612. "\x20\x23\x26\x29\x2c\x2f\x32\x35"
  14613. "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
  14614. "\x50\x53\x56\x59\x5c\x5f\x62\x65"
  14615. "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
  14616. "\x80\x83\x86\x89\x8c\x8f\x92\x95"
  14617. "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
  14618. "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
  14619. "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
  14620. "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
  14621. "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
  14622. "\x10\x13\x16\x19\x1c\x1f\x22\x25"
  14623. "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
  14624. "\x40\x43\x46\x49\x4c\x4f\x52\x55"
  14625. "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
  14626. "\x70\x73\x76\x79\x7c\x7f\x82\x85"
  14627. "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
  14628. "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
  14629. "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
  14630. "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
  14631. "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
  14632. "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
  14633. "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
  14634. "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
  14635. "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
  14636. "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
  14637. "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
  14638. "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
  14639. "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
  14640. "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
  14641. "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
  14642. "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
  14643. "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
  14644. "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
  14645. "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
  14646. "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
  14647. "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
  14648. "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
  14649. "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
  14650. "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
  14651. "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
  14652. "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
  14653. "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
  14654. "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
  14655. "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
  14656. "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
  14657. "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
  14658. "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
  14659. "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
  14660. "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
  14661. "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
  14662. "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
  14663. "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
  14664. "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
  14665. "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
  14666. "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
  14667. "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
  14668. "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
  14669. "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
  14670. "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
  14671. "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
  14672. "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
  14673. "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
  14674. "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
  14675. "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
  14676. "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
  14677. "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
  14678. "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
  14679. "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
  14680. "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
  14681. "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
  14682. "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
  14683. "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
  14684. "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
  14685. "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
  14686. "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
  14687. "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
  14688. "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
  14689. "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
  14690. "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
  14691. "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
  14692. "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
  14693. "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
  14694. "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
  14695. "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
  14696. "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
  14697. "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
  14698. "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
  14699. "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
  14700. "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
  14701. "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
  14702. "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
  14703. "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
  14704. "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
  14705. "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
  14706. "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
  14707. "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
  14708. "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
  14709. "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
  14710. "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
  14711. "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
  14712. "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
  14713. "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
  14714. "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
  14715. "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
  14716. "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
  14717. "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
  14718. "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
  14719. "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
  14720. "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
  14721. "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
  14722. "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
  14723. "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
  14724. "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
  14725. "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
  14726. "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
  14727. "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
  14728. "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
  14729. "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
  14730. "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
  14731. "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
  14732. "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
  14733. "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
  14734. "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
  14735. "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
  14736. "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
  14737. "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
  14738. "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
  14739. "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
  14740. "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
  14741. "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
  14742. "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
  14743. "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
  14744. "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
  14745. "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
  14746. "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
  14747. "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
  14748. "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
  14749. "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
  14750. "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
  14751. "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
  14752. "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
  14753. "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
  14754. "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
  14755. "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
  14756. "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
  14757. "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
  14758. "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
  14759. "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
  14760. "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
  14761. "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
  14762. "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
  14763. "\x38\x45\x52\x5f\x6c\x79\x86\x93"
  14764. "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
  14765. "\x08\x15\x22\x2f\x3c\x49\x56\x63"
  14766. "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
  14767. "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
  14768. "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
  14769. "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
  14770. "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
  14771. "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
  14772. "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
  14773. "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
  14774. "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
  14775. "\x18\x25\x32\x3f\x4c\x59\x66\x73"
  14776. "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
  14777. "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
  14778. "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
  14779. "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
  14780. "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
  14781. "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
  14782. "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
  14783. "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
  14784. "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
  14785. "\x28\x35\x42\x4f\x5c\x69\x76\x83"
  14786. "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
  14787. "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
  14788. "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
  14789. "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
  14790. "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
  14791. "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
  14792. "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
  14793. "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
  14794. "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
  14795. "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
  14796. "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
  14797. "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
  14798. "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
  14799. "\x48\x57\x66\x75\x84\x93\xa2\xb1"
  14800. "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
  14801. "\x38\x47\x56\x65\x74\x83\x92\xa1"
  14802. "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
  14803. "\x28\x37\x46\x55\x64\x73\x82\x91"
  14804. "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
  14805. "\x18\x27\x36\x45\x54\x63\x72\x81"
  14806. "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
  14807. "\x08\x17\x26\x35\x44\x53\x62\x71"
  14808. "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
  14809. "\xf8\x07\x16\x25\x34\x43\x52\x61"
  14810. "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
  14811. "\xe8\xf7\x06\x15\x24\x33\x42\x51"
  14812. "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
  14813. "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
  14814. "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
  14815. "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
  14816. "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
  14817. "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
  14818. "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
  14819. "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
  14820. "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
  14821. "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
  14822. "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
  14823. "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
  14824. "\x00\x11\x22\x33\x44\x55\x66\x77"
  14825. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
  14826. "\x10\x21\x32\x43\x54\x65\x76\x87"
  14827. "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
  14828. "\x20\x31\x42\x53\x64\x75\x86\x97"
  14829. "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
  14830. "\x30\x41\x52\x63\x74\x85\x96\xa7"
  14831. "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
  14832. "\x40\x51\x62\x73\x84\x95\xa6\xb7"
  14833. "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
  14834. "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
  14835. "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
  14836. "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
  14837. "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
  14838. "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
  14839. "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
  14840. "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
  14841. "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
  14842. "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
  14843. "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
  14844. "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
  14845. "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
  14846. "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
  14847. "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
  14848. "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
  14849. "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
  14850. "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
  14851. "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
  14852. "\xe0\xf1\x02\x13\x24\x35\x46\x57"
  14853. "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
  14854. "\xf0\x01\x12\x23\x34\x45\x56\x67"
  14855. "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
  14856. "\x00\x13\x26\x39\x4c\x5f\x72\x85"
  14857. "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
  14858. "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
  14859. "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
  14860. "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
  14861. "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
  14862. "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
  14863. "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
  14864. "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
  14865. "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
  14866. "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
  14867. "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
  14868. "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
  14869. "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
  14870. "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
  14871. "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
  14872. "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
  14873. "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
  14874. "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
  14875. "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
  14876. "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
  14877. "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
  14878. "\x10\x23\x36\x49\x5c\x6f\x82\x95"
  14879. "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
  14880. "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
  14881. "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
  14882. "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
  14883. "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
  14884. "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
  14885. "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
  14886. "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
  14887. "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
  14888. "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
  14889. "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
  14890. "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
  14891. "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
  14892. "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
  14893. "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
  14894. "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
  14895. "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
  14896. "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
  14897. "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
  14898. "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
  14899. "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
  14900. "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
  14901. "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
  14902. "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
  14903. "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
  14904. "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
  14905. "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
  14906. "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
  14907. "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
  14908. "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
  14909. "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
  14910. "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
  14911. "\x18\x2d\x42\x57\x6c\x81\x96\xab"
  14912. "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
  14913. "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
  14914. "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
  14915. "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
  14916. "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
  14917. "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
  14918. "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
  14919. "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
  14920. "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
  14921. "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
  14922. "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
  14923. "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
  14924. "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
  14925. "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
  14926. "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
  14927. "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
  14928. "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
  14929. "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
  14930. "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
  14931. "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
  14932. "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
  14933. "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
  14934. "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
  14935. "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
  14936. "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
  14937. "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
  14938. "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
  14939. "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
  14940. "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
  14941. "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
  14942. "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
  14943. "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
  14944. "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
  14945. "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
  14946. "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
  14947. "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
  14948. "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
  14949. "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
  14950. "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
  14951. "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
  14952. "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
  14953. "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
  14954. "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
  14955. "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
  14956. "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
  14957. "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
  14958. "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
  14959. "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
  14960. "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
  14961. "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
  14962. "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
  14963. "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
  14964. "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
  14965. "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
  14966. "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
  14967. "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
  14968. "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
  14969. "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
  14970. "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
  14971. "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
  14972. "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
  14973. "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
  14974. "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
  14975. "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
  14976. "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
  14977. "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
  14978. "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
  14979. "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
  14980. "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
  14981. "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
  14982. "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
  14983. "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
  14984. "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
  14985. "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
  14986. "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
  14987. "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
  14988. "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
  14989. "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
  14990. "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
  14991. "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
  14992. "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
  14993. "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
  14994. "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
  14995. "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
  14996. "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
  14997. "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
  14998. "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
  14999. "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
  15000. "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
  15001. "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
  15002. "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
  15003. "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
  15004. "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
  15005. "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
  15006. "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
  15007. "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
  15008. "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
  15009. "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
  15010. "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
  15011. "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
  15012. "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
  15013. "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
  15014. "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
  15015. "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
  15016. "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
  15017. "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
  15018. "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
  15019. "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
  15020. "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
  15021. "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
  15022. "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
  15023. "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
  15024. "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
  15025. "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
  15026. "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
  15027. "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
  15028. "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
  15029. "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
  15030. "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
  15031. "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
  15032. "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
  15033. "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
  15034. "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
  15035. "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
  15036. "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
  15037. "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
  15038. "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
  15039. "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
  15040. "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
  15041. "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
  15042. "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
  15043. "\x78\x95\xb2\xcf\xec\x09\x26\x43"
  15044. "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
  15045. "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
  15046. "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
  15047. "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
  15048. "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
  15049. "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
  15050. "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
  15051. "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
  15052. "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
  15053. "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
  15054. "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
  15055. "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
  15056. "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
  15057. "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
  15058. "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
  15059. "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
  15060. "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
  15061. "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
  15062. "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
  15063. "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
  15064. "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
  15065. "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
  15066. "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
  15067. "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
  15068. "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
  15069. "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
  15070. "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
  15071. "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
  15072. "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
  15073. "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
  15074. "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
  15075. "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
  15076. "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
  15077. "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
  15078. "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
  15079. "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
  15080. "\x00\x21\x42\x63",
  15081. .ilen = 4100,
  15082. .result =
  15083. "\xb5\x81\xf5\x64\x18\x73\xe3\xf0"
  15084. "\x4c\x13\xf2\x77\x18\x60\x65\x5e"
  15085. "\x29\x01\xce\x98\x55\x53\xf9\x0c"
  15086. "\x2a\x08\xd5\x09\xb3\x57\x55\x56"
  15087. "\xc5\xe9\x56\x90\xcb\x6a\xa3\xc0"
  15088. "\xff\xc4\x79\xb4\xd2\x97\x5d\xc4"
  15089. "\x43\xd1\xfe\x94\x7b\x88\x06\x5a"
  15090. "\xb2\x9e\x2c\xfc\x44\x03\xb7\x90"
  15091. "\xa0\xc1\xba\x6a\x33\xb8\xc7\xb2"
  15092. "\x9d\xe1\x12\x4f\xc0\x64\xd4\x01"
  15093. "\xfe\x8c\x7a\x66\xf7\xe6\x5a\x91"
  15094. "\xbb\xde\x56\x86\xab\x65\x21\x30"
  15095. "\x00\x84\x65\x24\xa5\x7d\x85\xb4"
  15096. "\xe3\x17\xed\x3a\xb7\x6f\xb4\x0b"
  15097. "\x0b\xaf\x15\xae\x5a\x8f\xf2\x0c"
  15098. "\x2f\x27\xf4\x09\xd8\xd2\x96\xb7"
  15099. "\x71\xf2\xc5\x99\x4d\x7e\x7f\x75"
  15100. "\x77\x89\x30\x8b\x59\xdb\xa2\xb2"
  15101. "\xa0\xf3\x19\x39\x2b\xc5\x7e\x3f"
  15102. "\x4f\xd9\xd3\x56\x28\x97\x44\xdc"
  15103. "\xc0\x8b\x77\x24\xd9\x52\xe7\xc5"
  15104. "\xaf\xf6\x7d\x59\xb2\x44\x05\x1d"
  15105. "\xb1\xb0\x11\xa5\x0f\xec\x33\xe1"
  15106. "\x6d\x1b\x4e\x1f\xff\x57\x91\xb4"
  15107. "\x5b\x9a\x96\xc5\x53\xbc\xae\x20"
  15108. "\x3c\xbb\x14\xe2\xe8\x22\x33\xc1"
  15109. "\x5e\x76\x9e\x46\x99\xf6\x2a\x15"
  15110. "\xc6\x97\x02\xa0\x66\x43\xd1\xa6"
  15111. "\x31\xa6\x9f\xfb\xf4\xd3\x69\xe5"
  15112. "\xcd\x76\x95\xb8\x7a\x82\x7f\x21"
  15113. "\x45\xff\x3f\xce\x55\xf6\x95\x10"
  15114. "\x08\x77\x10\x43\xc6\xf3\x09\xe5"
  15115. "\x68\xe7\x3c\xad\x00\x52\x45\x0d"
  15116. "\xfe\x2d\xc6\xc2\x94\x8c\x12\x1d"
  15117. "\xe6\x25\xae\x98\x12\x8e\x19\x9c"
  15118. "\x81\x68\xb1\x11\xf6\x69\xda\xe3"
  15119. "\x62\x08\x18\x7a\x25\x49\x28\xac"
  15120. "\xba\x71\x12\x0b\xe4\xa2\xe5\xc7"
  15121. "\x5d\x8e\xec\x49\x40\x21\xbf\x5a"
  15122. "\x98\xf3\x02\x68\x55\x03\x7f\x8a"
  15123. "\xe5\x94\x0c\x32\x5c\x07\x82\x63"
  15124. "\xaf\x6f\x91\x40\x84\x8e\x52\x25"
  15125. "\xd0\xb0\x29\x53\x05\xe2\x50\x7a"
  15126. "\x34\xeb\xc9\x46\x20\xa8\x3d\xde"
  15127. "\x7f\x16\x5f\x36\xc5\x2e\xdc\xd1"
  15128. "\x15\x47\xc7\x50\x40\x6d\x91\xc5"
  15129. "\xe7\x93\x95\x1a\xd3\x57\xbc\x52"
  15130. "\x33\xee\x14\x19\x22\x52\x89\xa7"
  15131. "\x4a\x25\x56\x77\x4b\xca\xcf\x0a"
  15132. "\xe1\xf5\x35\x85\x30\x7e\x59\x4a"
  15133. "\xbd\x14\x5b\xdf\xe3\x46\xcb\xac"
  15134. "\x1f\x6c\x96\x0e\xf4\x81\xd1\x99"
  15135. "\xca\x88\x63\x3d\x02\x58\x6b\xa9"
  15136. "\xe5\x9f\xb3\x00\xb2\x54\xc6\x74"
  15137. "\x1c\xbf\x46\xab\x97\xcc\xf8\x54"
  15138. "\x04\x07\x08\x52\xe6\xc0\xda\x93"
  15139. "\x74\x7d\x93\x99\x5d\x78\x68\xa6"
  15140. "\x2e\x6b\xd3\x6a\x69\xcc\x12\x6b"
  15141. "\xd4\xc7\xa5\xc6\xe7\xf6\x03\x04"
  15142. "\x5d\xcd\x61\x5e\x17\x40\xdc\xd1"
  15143. "\x5c\xf5\x08\xdf\x5c\x90\x85\xa4"
  15144. "\xaf\xf6\x78\xbb\x0d\xf1\xf4\xa4"
  15145. "\x54\x26\x72\x9e\x61\xfa\x86\xcf"
  15146. "\xe8\x9e\xa1\xe0\xc7\x48\x23\xae"
  15147. "\x5a\x90\xae\x75\x0a\x74\x18\x89"
  15148. "\x05\xb1\x92\xb2\x7f\xd0\x1b\xa6"
  15149. "\x62\x07\x25\x01\xc7\xc2\x4f\xf9"
  15150. "\xe8\xfe\x63\x95\x80\x07\xb4\x26"
  15151. "\xcc\xd1\x26\xb6\xc4\x3f\x9e\xcb"
  15152. "\x8e\x3b\x2e\x44\x16\xd3\x10\x9a"
  15153. "\x95\x08\xeb\xc8\xcb\xeb\xbf\x6f"
  15154. "\x0b\xcd\x1f\xc8\xca\x86\xaa\xec"
  15155. "\x33\xe6\x69\xf4\x45\x25\x86\x3a"
  15156. "\x22\x94\x4f\x00\x23\x6a\x44\xc2"
  15157. "\x49\x97\x33\xab\x36\x14\x0a\x70"
  15158. "\x24\xc3\xbe\x04\x3b\x79\xa0\xf9"
  15159. "\xb8\xe7\x76\x29\x22\x83\xd7\xf2"
  15160. "\x94\xf4\x41\x49\xba\x5f\x7b\x07"
  15161. "\xb5\xfb\xdb\x03\x1a\x9f\xb6\x4c"
  15162. "\xc2\x2e\x37\x40\x49\xc3\x38\x16"
  15163. "\xe2\x4f\x77\x82\xb0\x68\x4c\x71"
  15164. "\x1d\x57\x61\x9c\xd9\x4e\x54\x99"
  15165. "\x47\x13\x28\x73\x3c\xbb\x00\x90"
  15166. "\xf3\x4d\xc9\x0e\xfd\xe7\xb1\x71"
  15167. "\xd3\x15\x79\xbf\xcc\x26\x2f\xbd"
  15168. "\xad\x6c\x50\x69\x6c\x3e\x6d\x80"
  15169. "\x9a\xea\x78\xaf\x19\xb2\x0d\x4d"
  15170. "\xad\x04\x07\xae\x22\x90\x4a\x93"
  15171. "\x32\x0e\x36\x9b\x1b\x46\xba\x3b"
  15172. "\xb4\xac\xc6\xd1\xa2\x31\x53\x3b"
  15173. "\x2a\x3d\x45\xfe\x03\x61\x10\x85"
  15174. "\x17\x69\xa6\x78\xcc\x6c\x87\x49"
  15175. "\x53\xf9\x80\x10\xde\x80\xa2\x41"
  15176. "\x6a\xc3\x32\x02\xad\x6d\x3c\x56"
  15177. "\x00\x71\x51\x06\xa7\xbd\xfb\xef"
  15178. "\x3c\xb5\x9f\xfc\x48\x7d\x53\x7c"
  15179. "\x66\xb0\x49\x23\xc4\x47\x10\x0e"
  15180. "\xe5\x6c\x74\x13\xe6\xc5\x3f\xaa"
  15181. "\xde\xff\x07\x44\xdd\x56\x1b\xad"
  15182. "\x09\x77\xfb\x5b\x12\xb8\x0d\x38"
  15183. "\x17\x37\x35\x7b\x9b\xbc\xfe\xd4"
  15184. "\x7e\x8b\xda\x7e\x5b\x04\xa7\x22"
  15185. "\xa7\x31\xa1\x20\x86\xc7\x1b\x99"
  15186. "\xdb\xd1\x89\xf4\x94\xa3\x53\x69"
  15187. "\x8d\xe7\xe8\x74\x11\x8d\x74\xd6"
  15188. "\x07\x37\x91\x9f\xfd\x67\x50\x3a"
  15189. "\xc9\xe1\xf4\x36\xd5\xa0\x47\xd1"
  15190. "\xf9\xe5\x39\xa3\x31\xac\x07\x36"
  15191. "\x23\xf8\x66\x18\x14\x28\x34\x0f"
  15192. "\xb8\xd0\xe7\x29\xb3\x04\x4b\x55"
  15193. "\x01\x41\xb2\x75\x8d\xcb\x96\x85"
  15194. "\x3a\xfb\xab\x2b\x9e\xfa\x58\x20"
  15195. "\x44\x1f\xc0\x14\x22\x75\x61\xe8"
  15196. "\xaa\x19\xcf\xf1\x82\x56\xf4\xd7"
  15197. "\x78\x7b\x3d\x5f\xb3\x9e\x0b\x8a"
  15198. "\x57\x50\xdb\x17\x41\x65\x4d\xa3"
  15199. "\x02\xc9\x9c\x9c\x53\xfb\x39\x39"
  15200. "\x9b\x1d\x72\x24\xda\xb7\x39\xbe"
  15201. "\x13\x3b\xfa\x29\xda\x9e\x54\x64"
  15202. "\x6e\xba\xd8\xa1\xcb\xb3\x36\xfa"
  15203. "\xcb\x47\x85\xe9\x61\x38\xbc\xbe"
  15204. "\xc5\x00\x38\x2a\x54\xf7\xc4\xb9"
  15205. "\xb3\xd3\x7b\xa0\xa0\xf8\x72\x7f"
  15206. "\x8c\x8e\x82\x0e\xc6\x1c\x75\x9d"
  15207. "\xca\x8e\x61\x87\xde\xad\x80\xd2"
  15208. "\xf5\xf9\x80\xef\x15\x75\xaf\xf5"
  15209. "\x80\xfb\xff\x6d\x1e\x25\xb7\x40"
  15210. "\x61\x6a\x39\x5a\x6a\xb5\x31\xab"
  15211. "\x97\x8a\x19\x89\x44\x40\xc0\xa6"
  15212. "\xb4\x4e\x30\x32\x7b\x13\xe7\x67"
  15213. "\xa9\x8b\x57\x04\xc2\x01\xa6\xf4"
  15214. "\x28\x99\xad\x2c\x76\xa3\x78\xc2"
  15215. "\x4a\xe6\xca\x5c\x50\x6a\xc1\xb0"
  15216. "\x62\x4b\x10\x8e\x7c\x17\x43\xb3"
  15217. "\x17\x66\x1c\x3e\x8d\x69\xf0\x5a"
  15218. "\x71\xf5\x97\xdc\xd1\x45\xdd\x28"
  15219. "\xf3\x5d\xdf\x53\x7b\x11\xe5\xbc"
  15220. "\x4c\xdb\x1b\x51\x6b\xe9\xfb\x3d"
  15221. "\xc1\xc3\x2c\xb9\x71\xf5\xb6\xb2"
  15222. "\x13\x36\x79\x80\x53\xe8\xd3\xa6"
  15223. "\x0a\xaf\xfd\x56\x97\xf7\x40\x8e"
  15224. "\x45\xce\xf8\xb0\x9e\x5c\x33\x82"
  15225. "\xb0\x44\x56\xfc\x05\x09\xe9\x2a"
  15226. "\xac\x26\x80\x14\x1d\xc8\x3a\x35"
  15227. "\x4c\x82\x97\xfd\x76\xb7\xa9\x0a"
  15228. "\x35\x58\x79\x8e\x0f\x66\xea\xaf"
  15229. "\x51\x6c\x09\xa9\x6e\x9b\xcb\x9a"
  15230. "\x31\x47\xa0\x2f\x7c\x71\xb4\x4a"
  15231. "\x11\xaa\x8c\x66\xc5\x64\xe6\x3a"
  15232. "\x54\xda\x24\x6a\xc4\x41\x65\x46"
  15233. "\x82\xa0\x0a\x0f\x5f\xfb\x25\xd0"
  15234. "\x2c\x91\xa7\xee\xc4\x81\x07\x86"
  15235. "\x75\x5e\x33\x69\x97\xe4\x2c\xa8"
  15236. "\x9d\x9f\x0b\x6a\xbe\xad\x98\xda"
  15237. "\x6d\x94\x41\xda\x2c\x1e\x89\xc4"
  15238. "\xc2\xaf\x1e\x00\x05\x0b\x83\x60"
  15239. "\xbd\x43\xea\x15\x23\x7f\xb9\xac"
  15240. "\xee\x4f\x2c\xaf\x2a\xf3\xdf\xd0"
  15241. "\xf3\x19\x31\xbb\x4a\x74\x84\x17"
  15242. "\x52\x32\x2c\x7d\x61\xe4\xcb\xeb"
  15243. "\x80\x38\x15\x52\xcb\x6f\xea\xe5"
  15244. "\x73\x9c\xd9\x24\x69\xc6\x95\x32"
  15245. "\x21\xc8\x11\xe4\xdc\x36\xd7\x93"
  15246. "\x38\x66\xfb\xb2\x7f\x3a\xb9\xaf"
  15247. "\x31\xdd\x93\x75\x78\x8a\x2c\x94"
  15248. "\x87\x1a\x58\xec\x9e\x7d\x4d\xba"
  15249. "\xe1\xe5\x4d\xfc\xbc\xa4\x2a\x14"
  15250. "\xef\xcc\xa7\xec\xab\x43\x09\x18"
  15251. "\xd3\xab\x68\xd1\x07\x99\x44\x47"
  15252. "\xd6\x83\x85\x3b\x30\xea\xa9\x6b"
  15253. "\x63\xea\xc4\x07\xfb\x43\x2f\xa4"
  15254. "\xaa\xb0\xab\x03\x89\xce\x3f\x8c"
  15255. "\x02\x7c\x86\x54\xbc\x88\xaf\x75"
  15256. "\xd2\xdc\x63\x17\xd3\x26\xf6\x96"
  15257. "\xa9\x3c\xf1\x61\x8c\x11\x18\xcc"
  15258. "\xd6\xea\x5b\xe2\xcd\xf0\xf1\xb2"
  15259. "\xe5\x35\x90\x1f\x85\x4c\x76\x5b"
  15260. "\x66\xce\x44\xa4\x32\x9f\xe6\x7b"
  15261. "\x71\x6e\x9f\x58\x15\x67\x72\x87"
  15262. "\x64\x8e\x3a\x44\x45\xd4\x76\xfa"
  15263. "\xc2\xf6\xef\x85\x05\x18\x7a\x9b"
  15264. "\xba\x41\x54\xac\xf0\xfc\x59\x12"
  15265. "\x3f\xdf\xa0\xe5\x8a\x65\xfd\x3a"
  15266. "\x62\x8d\x83\x2c\x03\xbe\x05\x76"
  15267. "\x2e\x53\x49\x97\x94\x33\xae\x40"
  15268. "\x81\x15\xdb\x6e\xad\xaa\xf5\x4b"
  15269. "\xe3\x98\x70\xdf\xe0\x7c\xcd\xdb"
  15270. "\x02\xd4\x7d\x2f\xc1\xe6\xb4\xf3"
  15271. "\xd7\x0d\x7a\xd9\x23\x9e\x87\x2d"
  15272. "\xce\x87\xad\xcc\x72\x05\x00\x29"
  15273. "\xdc\x73\x7f\x64\xc1\x15\x0e\xc2"
  15274. "\xdf\xa7\x5f\xeb\x41\xa1\xcd\xef"
  15275. "\x5c\x50\x79\x2a\x56\x56\x71\x8c"
  15276. "\xac\xc0\x79\x50\x69\xca\x59\x32"
  15277. "\x65\xf2\x54\xe4\x52\x38\x76\xd1"
  15278. "\x5e\xde\x26\x9e\xfb\x75\x2e\x11"
  15279. "\xb5\x10\xf4\x17\x73\xf5\x89\xc7"
  15280. "\x4f\x43\x5c\x8e\x7c\xb9\x05\x52"
  15281. "\x24\x40\x99\xfe\x9b\x85\x0b\x6c"
  15282. "\x22\x3e\x8b\xae\x86\xa1\xd2\x79"
  15283. "\x05\x68\x6b\xab\xe3\x41\x49\xed"
  15284. "\x15\xa1\x8d\x40\x2d\x61\xdf\x1a"
  15285. "\x59\xc9\x26\x8b\xef\x30\x4c\x88"
  15286. "\x4b\x10\xf8\x8d\xa6\x92\x9f\x4b"
  15287. "\xf3\xc4\x53\x0b\x89\x5d\x28\x92"
  15288. "\xcf\x78\xb2\xc0\x5d\xed\x7e\xfc"
  15289. "\xc0\x12\x23\x5f\x5a\x78\x86\x43"
  15290. "\x6e\x27\xf7\x5a\xa7\x6a\xed\x19"
  15291. "\x04\xf0\xb3\x12\xd1\xbd\x0e\x89"
  15292. "\x6e\xbc\x96\xa8\xd8\x49\x39\x9f"
  15293. "\x7e\x67\xf0\x2e\x3e\x01\xa9\xba"
  15294. "\xec\x8b\x62\x8e\xcb\x4a\x70\x43"
  15295. "\xc7\xc2\xc4\xca\x82\x03\x73\xe9"
  15296. "\x11\xdf\xcf\x54\xea\xc9\xb0\x95"
  15297. "\x51\xc0\x13\x3d\x92\x05\xfa\xf4"
  15298. "\xa9\x34\xc8\xce\x6c\x3d\x54\xcc"
  15299. "\xc4\xaf\xf1\xdc\x11\x44\x26\xa2"
  15300. "\xaf\xf1\x85\x75\x7d\x03\x61\x68"
  15301. "\x4e\x78\xc6\x92\x7d\x86\x7d\x77"
  15302. "\xdc\x71\x72\xdb\xc6\xae\xa1\xcb"
  15303. "\x70\x9a\x0b\x19\xbe\x4a\x6c\x2a"
  15304. "\xe2\xba\x6c\x64\x9a\x13\x28\xdf"
  15305. "\x85\x75\xe6\x43\xf6\x87\x08\x68"
  15306. "\x6e\xba\x6e\x79\x9f\x04\xbc\x23"
  15307. "\x50\xf6\x33\x5c\x1f\x24\x25\xbe"
  15308. "\x33\x47\x80\x45\x56\xa3\xa7\xd7"
  15309. "\x7a\xb1\x34\x0b\x90\x3c\x9c\xad"
  15310. "\x44\x5f\x9e\x0e\x9d\xd4\xbd\x93"
  15311. "\x5e\xfa\x3c\xe0\xb0\xd9\xed\xf3"
  15312. "\xd6\x2e\xff\x24\xd8\x71\x6c\xed"
  15313. "\xaf\x55\xeb\x22\xac\x93\x68\x32"
  15314. "\x05\x5b\x47\xdd\xc6\x4a\xcb\xc7"
  15315. "\x10\xe1\x3c\x92\x1a\xf3\x23\x78"
  15316. "\x2b\xa1\xd2\x80\xf4\x12\xb1\x20"
  15317. "\x8f\xff\x26\x35\xdd\xfb\xc7\x4e"
  15318. "\x78\xf1\x2d\x50\x12\x77\xa8\x60"
  15319. "\x7c\x0f\xf5\x16\x2f\x63\x70\x2a"
  15320. "\xc0\x96\x80\x4e\x0a\xb4\x93\x35"
  15321. "\x5d\x1d\x3f\x56\xf7\x2f\xbb\x90"
  15322. "\x11\x16\x8f\xa2\xec\x47\xbe\xac"
  15323. "\x56\x01\x26\x56\xb1\x8c\xb2\x10"
  15324. "\xf9\x1a\xca\xf5\xd1\xb7\x39\x20"
  15325. "\x63\xf1\x69\x20\x4f\x13\x12\x1f"
  15326. "\x5b\x65\xfc\x98\xf7\xc4\x7a\xbe"
  15327. "\xf7\x26\x4d\x2b\x84\x7b\x42\xad"
  15328. "\xd8\x7a\x0a\xb4\xd8\x74\xbf\xc1"
  15329. "\xf0\x6e\xb4\x29\xa3\xbb\xca\x46"
  15330. "\x67\x70\x6a\x2d\xce\x0e\xa2\x8a"
  15331. "\xa9\x87\xbf\x05\xc4\xc1\x04\xa3"
  15332. "\xab\xd4\x45\x43\x8c\xb6\x02\xb0"
  15333. "\x41\xc8\xfc\x44\x3d\x59\xaa\x2e"
  15334. "\x44\x21\x2a\x8d\x88\x9d\x57\xf4"
  15335. "\xa0\x02\x77\xb8\xa6\xa0\xe6\x75"
  15336. "\x5c\x82\x65\x3e\x03\x5c\x29\x8f"
  15337. "\x38\x55\xab\x33\x26\xef\x9f\x43"
  15338. "\x52\xfd\x68\xaf\x36\xb4\xbb\x9a"
  15339. "\x58\x09\x09\x1b\xc3\x65\x46\x46"
  15340. "\x1d\xa7\x94\x18\x23\x50\x2c\xca"
  15341. "\x2c\x55\x19\x97\x01\x9d\x93\x3b"
  15342. "\x63\x86\xf2\x03\x67\x45\xd2\x72"
  15343. "\x28\x52\x6c\xf4\xe3\x1c\xb5\x11"
  15344. "\x13\xf1\xeb\x21\xc7\xd9\x56\x82"
  15345. "\x2b\x82\x39\xbd\x69\x54\xed\x62"
  15346. "\xc3\xe2\xde\x73\xd4\x6a\x12\xae"
  15347. "\x13\x21\x7f\x4b\x5b\xfc\xbf\xe8"
  15348. "\x2b\xbe\x56\xba\x68\x8b\x9a\xb1"
  15349. "\x6e\xfa\xbf\x7e\x5a\x4b\xf1\xac"
  15350. "\x98\x65\x85\xd1\x93\x53\xd3\x7b"
  15351. "\x09\xdd\x4b\x10\x6d\x84\xb0\x13"
  15352. "\x65\xbd\xcf\x52\x09\xc4\x85\xe2"
  15353. "\x84\x74\x15\x65\xb7\xf7\x51\xaf"
  15354. "\x55\xad\xa4\xd1\x22\x54\x70\x94"
  15355. "\xa0\x1c\x90\x41\xfd\x99\xd7\x5a"
  15356. "\x31\xef\xaa\x25\xd0\x7f\x4f\xea"
  15357. "\x1d\x55\x42\xe5\x49\xb0\xd0\x46"
  15358. "\x62\x36\x43\xb2\x82\x15\x75\x50"
  15359. "\xa4\x72\xeb\x54\x27\x1f\x8a\xe4"
  15360. "\x7d\xe9\x66\xc5\xf1\x53\xa4\xd1"
  15361. "\x0c\xeb\xb8\xf8\xbc\xd4\xe2\xe7"
  15362. "\xe1\xf8\x4b\xcb\xa9\xa1\xaf\x15"
  15363. "\x83\xcb\x72\xd0\x33\x79\x00\x2d"
  15364. "\x9f\xd7\xf1\x2e\x1e\x10\xe4\x45"
  15365. "\xc0\x75\x3a\x39\xea\x68\xf7\x5d"
  15366. "\x1b\x73\x8f\xe9\x8e\x0f\x72\x47"
  15367. "\xae\x35\x0a\x31\x7a\x14\x4d\x4a"
  15368. "\x6f\x47\xf7\x7e\x91\x6e\x74\x8b"
  15369. "\x26\x47\xf9\xc3\xf9\xde\x70\xf5"
  15370. "\x61\xab\xa9\x27\x9f\x82\xe4\x9c"
  15371. "\x89\x91\x3f\x2e\x6a\xfd\xb5\x49"
  15372. "\xe9\xfd\x59\x14\x36\x49\x40\x6d"
  15373. "\x32\xd8\x85\x42\xf3\xa5\xdf\x0c"
  15374. "\xa8\x27\xd7\x54\xe2\x63\x2f\xf2"
  15375. "\x7e\x8b\x8b\xe7\xf1\x9a\x95\x35"
  15376. "\x43\xdc\x3a\xe4\xb6\xf4\xd0\xdf"
  15377. "\x9c\xcb\x94\xf3\x21\xa0\x77\x50"
  15378. "\xe2\xc6\xc4\xc6\x5f\x09\x64\x5b"
  15379. "\x92\x90\xd8\xe1\xd1\xed\x4b\x42"
  15380. "\xd7\x37\xaf\x65\x3d\x11\x39\xb6"
  15381. "\x24\x8a\x60\xae\xd6\x1e\xbf\x0e"
  15382. "\x0d\xd7\xdc\x96\x0e\x65\x75\x4e"
  15383. "\x29\x06\x9d\xa4\x51\x3a\x10\x63"
  15384. "\x8f\x17\x07\xd5\x8e\x3c\xf4\x28"
  15385. "\x00\x5a\x5b\x05\x19\xd8\xc0\x6c"
  15386. "\xe5\x15\xe4\x9c\x9d\x71\x9d\x5e"
  15387. "\x94\x29\x1a\xa7\x80\xfa\x0e\x33"
  15388. "\x03\xdd\xb7\x3e\x9a\xa9\x26\x18"
  15389. "\x37\xa9\x64\x08\x4d\x94\x5a\x88"
  15390. "\xca\x35\xce\x81\x02\xe3\x1f\x1b"
  15391. "\x89\x1a\x77\x85\xe3\x41\x6d\x32"
  15392. "\x42\x19\x23\x7d\xc8\x73\xee\x25"
  15393. "\x85\x0d\xf8\x31\x25\x79\x1b\x6f"
  15394. "\x79\x25\xd2\xd8\xd4\x23\xfd\xf7"
  15395. "\x82\x36\x6a\x0c\x46\x22\x15\xe9"
  15396. "\xff\x72\x41\x91\x91\x7d\x3a\xb7"
  15397. "\xdd\x65\x99\x70\xf6\x8d\x84\xf8"
  15398. "\x67\x15\x20\x11\xd6\xb2\x55\x7b"
  15399. "\xdb\x87\xee\xef\x55\x89\x2a\x59"
  15400. "\x2b\x07\x8f\x43\x8a\x59\x3c\x01"
  15401. "\x8b\x65\x54\xa1\x66\xd5\x38\xbd"
  15402. "\xc6\x30\xa9\xcc\x49\xb6\xa8\x1b"
  15403. "\xb8\xc0\x0e\xe3\x45\x28\xe2\xff"
  15404. "\x41\x9f\x7e\x7c\xd1\xae\x9e\x25"
  15405. "\x3f\x4c\x7c\x7c\xf4\xa8\x26\x4d"
  15406. "\x5c\xfd\x4b\x27\x18\xf9\x61\x76"
  15407. "\x48\xba\x0c\x6b\xa9\x4d\xfc\xf5"
  15408. "\x3b\x35\x7e\x2f\x4a\xa9\xc2\x9a"
  15409. "\xae\xab\x86\x09\x89\xc9\xc2\x40"
  15410. "\x39\x2c\x81\xb3\xb8\x17\x67\xc2"
  15411. "\x0d\x32\x4a\x3a\x67\x81\xd7\x1a"
  15412. "\x34\x52\xc5\xdb\x0a\xf5\x63\x39"
  15413. "\xea\x1f\xe1\x7c\xa1\x9e\xc1\x35"
  15414. "\xe3\xb1\x18\x45\x67\xf9\x22\x38"
  15415. "\x95\xd9\x34\x34\x86\xc6\x41\x94"
  15416. "\x15\xf9\x5b\x41\xa6\x87\x8b\xf8"
  15417. "\xd5\xe1\x1b\xe2\x5b\xf3\x86\x10"
  15418. "\xff\xe6\xae\x69\x76\xbc\x0d\xb4"
  15419. "\x09\x90\x0c\xa2\x65\x0c\xad\x74"
  15420. "\xf5\xd7\xff\xda\xc1\xce\x85\xbe"
  15421. "\x00\xa7\xff\x4d\x2f\x65\xd3\x8c"
  15422. "\x86\x2d\x05\xe8\xed\x3e\x6b\x8b"
  15423. "\x0f\x3d\x83\x8c\xf1\x1d\x5b\x96"
  15424. "\x2e\xb1\x9c\xc2\x98\xe1\x70\xb9"
  15425. "\xba\x5c\x8a\x43\xd6\x34\xa7\x2d"
  15426. "\xc9\x92\xae\xf2\xa5\x7b\x05\x49"
  15427. "\xa7\x33\x34\x86\xca\xe4\x96\x23"
  15428. "\x76\x5b\xf2\xc6\xf1\x51\x28\x42"
  15429. "\x7b\xcc\x76\x8f\xfa\xa2\xad\x31"
  15430. "\xd4\xd6\x7a\x6d\x25\x25\x54\xe4"
  15431. "\x3f\x50\x59\xe1\x5c\x05\xb7\x27"
  15432. "\x48\xbf\x07\xec\x1b\x13\xbe\x2b"
  15433. "\xa1\x57\x2b\xd5\xab\xd7\xd0\x4c"
  15434. "\x1e\xcb\x71\x9b\xc5\x90\x85\xd3"
  15435. "\xde\x59\xec\x71\xeb\x89\xbb\xd0"
  15436. "\x09\x50\xe1\x16\x3f\xfd\x1c\x34"
  15437. "\xc3\x1c\xa1\x10\x77\x53\x98\xef"
  15438. "\xf2\xfd\xa5\x01\x59\xc2\x9b\x26"
  15439. "\xc7\x42\xd9\x49\xda\x58\x2b\x6e"
  15440. "\x9f\x53\x19\x76\x7e\xd9\xc9\x0e"
  15441. "\x68\xc8\x7f\x51\x22\x42\xef\x49"
  15442. "\xa4\x55\xb6\x36\xac\x09\xc7\x31"
  15443. "\x88\x15\x4b\x2e\x8f\x3a\x08\xf7"
  15444. "\xd8\xf7\xa8\xc5\xa9\x33\xa6\x45"
  15445. "\xe4\xc4\x94\x76\xf3\x0d\x8f\x7e"
  15446. "\xc8\xf6\xbc\x23\x0a\xb6\x4c\xd3"
  15447. "\x6a\xcd\x36\xc2\x90\x5c\x5c\x3c"
  15448. "\x65\x7b\xc2\xd6\xcc\xe6\x0d\x87"
  15449. "\x73\x2e\x71\x79\x16\x06\x63\x28"
  15450. "\x09\x15\xd8\x89\x38\x38\x3d\xb5"
  15451. "\x42\x1c\x08\x24\xf7\x2a\xd2\x9d"
  15452. "\xc8\xca\xef\xf9\x27\xd8\x07\x86"
  15453. "\xf7\x43\x0b\x55\x15\x3f\x9f\x83"
  15454. "\xef\xdc\x49\x9d\x2a\xc1\x54\x62"
  15455. "\xbd\x9b\x66\x55\x9f\xb7\x12\xf3"
  15456. "\x1b\x4d\x9d\x2a\x5c\xed\x87\x75"
  15457. "\x87\x26\xec\x61\x2c\xb4\x0f\x89"
  15458. "\xb0\xfb\x2e\x68\x5d\x15\xc7\x8d"
  15459. "\x2e\xc0\xd9\xec\xaf\x4f\xd2\x25"
  15460. "\x29\xe8\xd2\x26\x2b\x67\xe9\xfc"
  15461. "\x2b\xa8\x67\x96\x12\x1f\x5b\x96"
  15462. "\xc6\x14\x53\xaf\x44\xea\xd6\xe2"
  15463. "\x94\x98\xe4\x12\x93\x4c\x92\xe0"
  15464. "\x18\xa5\x8d\x2d\xe4\x71\x3c\x47"
  15465. "\x4c\xf7\xe6\x47\x9e\xc0\x68\xdf"
  15466. "\xd4\xf5\x5a\x74\xb1\x2b\x29\x03"
  15467. "\x19\x07\xaf\x90\x62\x5c\x68\x98"
  15468. "\x48\x16\x11\x02\x9d\xee\xb4\x9b"
  15469. "\xe5\x42\x7f\x08\xfd\x16\x32\x0b"
  15470. "\xd0\xb3\xfa\x2b\xb7\x99\xf9\x29"
  15471. "\xcd\x20\x45\x9f\xb3\x1a\x5d\xa2"
  15472. "\xaf\x4d\xe0\xbd\x42\x0d\xbc\x74"
  15473. "\x99\x9c\x8e\x53\x1a\xb4\x3e\xbd"
  15474. "\xa2\x9a\x2d\xf7\xf8\x39\x0f\x67"
  15475. "\x63\xfc\x6b\xc0\xaf\xb3\x4b\x4f"
  15476. "\x55\xc4\xcf\xa7\xc8\x04\x11\x3e"
  15477. "\x14\x32\xbb\x1b\x38\x77\xd6\x7f"
  15478. "\x54\x4c\xdf\x75\xf3\x07\x2d\x33"
  15479. "\x9b\xa8\x20\xe1\x7b\x12\xb5\xf3"
  15480. "\xef\x2f\xce\x72\xe5\x24\x60\xc1"
  15481. "\x30\xe2\xab\xa1\x8e\x11\x09\xa8"
  15482. "\x21\x33\x44\xfe\x7f\x35\x32\x93"
  15483. "\x39\xa7\xad\x8b\x79\x06\xb2\xcb"
  15484. "\x4e\xa9\x5f\xc7\xba\x74\x29\xec"
  15485. "\x93\xa0\x4e\x54\x93\xc0\xbc\x55"
  15486. "\x64\xf0\x48\xe5\x57\x99\xee\x75"
  15487. "\xd6\x79\x0f\x66\xb7\xc6\x57\x76"
  15488. "\xf7\xb7\xf3\x9c\xc5\x60\xe8\x7f"
  15489. "\x83\x76\xd6\x0e\xaa\xe6\x90\x39"
  15490. "\x1d\xa6\x32\x6a\x34\xe3\x55\xf8"
  15491. "\x58\xa0\x58\x7d\x33\xe0\x22\x39"
  15492. "\x44\x64\x87\x86\x5a\x2f\xa7\x7e"
  15493. "\x0f\x38\xea\xb0\x30\xcc\x61\xa5"
  15494. "\x6a\x32\xae\x1e\xf7\xe9\xd0\xa9"
  15495. "\x0c\x32\x4b\xb5\x49\x28\xab\x85"
  15496. "\x2f\x8e\x01\x36\x38\x52\xd0\xba"
  15497. "\xd6\x02\x78\xf8\x0e\x3e\x9c\x8b"
  15498. "\x6b\x45\x99\x3f\x5c\xfe\x58\xf1"
  15499. "\x5c\x94\x04\xe1\xf5\x18\x6d\x51"
  15500. "\xb2\x5d\x18\x20\xb6\xc2\x9a\x42"
  15501. "\x1d\xb3\xab\x3c\xb6\x3a\x13\x03"
  15502. "\xb2\x46\x82\x4f\xfc\x64\xbc\x4f"
  15503. "\xca\xfa\x9c\xc0\xd5\xa7\xbd\x11"
  15504. "\xb7\xe4\x5a\xf6\x6f\x4d\x4d\x54"
  15505. "\xea\xa4\x98\x66\xd4\x22\x3b\xd3"
  15506. "\x8f\x34\x47\xd9\x7c\xf4\x72\x3b"
  15507. "\x4d\x02\x77\xf6\xd6\xdd\x08\x0a"
  15508. "\x81\xe1\x86\x89\x3e\x56\x10\x3c"
  15509. "\xba\xd7\x81\x8c\x08\xbc\x8b\xe2"
  15510. "\x53\xec\xa7\x89\xee\xc8\x56\xb5"
  15511. "\x36\x2c\xb2\x03\xba\x99\xdd\x7c"
  15512. "\x48\xa0\xb0\xbc\x91\x33\xe9\xa8"
  15513. "\xcb\xcd\xcf\x59\x5f\x1f\x15\xe2"
  15514. "\x56\xf5\x4e\x01\x35\x27\x45\x77"
  15515. "\x47\xc8\xbc\xcb\x7e\x39\xc1\x97"
  15516. "\x28\xd3\x84\xfc\x2c\x3e\xc8\xad"
  15517. "\x9c\xf8\x8a\x61\x9c\x28\xaa\xc5"
  15518. "\x99\x20\x43\x85\x9d\xa5\xe2\x8b"
  15519. "\xb8\xae\xeb\xd0\x32\x0d\x52\x78"
  15520. "\x09\x56\x3f\xc7\xd8\x7e\x26\xfc"
  15521. "\x37\xfb\x6f\x04\xfc\xfa\x92\x10"
  15522. "\xac\xf8\x3e\x21\xdc\x8c\x21\x16"
  15523. "\x7d\x67\x6e\xf6\xcd\xda\xb6\x98"
  15524. "\x23\xab\x23\x3c\xb2\x10\xa0\x53"
  15525. "\x5a\x56\x9f\xc5\xd0\xff\xbb\xe4"
  15526. "\x98\x3c\x69\x1e\xdb\x38\x8f\x7e"
  15527. "\x0f\xd2\x98\x88\x81\x8b\x45\x67"
  15528. "\xea\x33\xf1\xeb\xe9\x97\x55\x2e"
  15529. "\xd9\xaa\xeb\x5a\xec\xda\xe1\x68"
  15530. "\xa8\x9d\x3c\x84\x7c\x05\x3d\x62"
  15531. "\x87\x8f\x03\x21\x28\x95\x0c\x89"
  15532. "\x25\x22\x4a\xb0\x93\xa9\x50\xa2"
  15533. "\x2f\x57\x6e\x18\x42\x19\x54\x0c"
  15534. "\x55\x67\xc6\x11\x49\xf4\x5c\xd2"
  15535. "\xe9\x3d\xdd\x8b\x48\x71\x21\x00"
  15536. "\xc3\x9a\x6c\x85\x74\x28\x83\x4a"
  15537. "\x1b\x31\x05\xe1\x06\x92\xe7\xda"
  15538. "\x85\x73\x78\x45\x20\x7f\xae\x13"
  15539. "\x7c\x33\x06\x22\xf4\x83\xf9\x35"
  15540. "\x3f\x6c\x71\xa8\x4e\x48\xbe\x9b"
  15541. "\xce\x8a\xba\xda\xbe\x28\x08\xf7"
  15542. "\xe2\x14\x8c\x71\xea\x72\xf9\x33"
  15543. "\xf2\x88\x3f\xd7\xbb\x69\x6c\x29"
  15544. "\x19\xdc\x84\xce\x1f\x12\x4f\xc8"
  15545. "\xaf\xa5\x04\xba\x5a\xab\xb0\xd9"
  15546. "\x14\x1f\x6c\x68\x98\x39\x89\x7a"
  15547. "\xd9\xd8\x2f\xdf\xa8\x47\x4a\x25"
  15548. "\xe2\xfb\x33\xf4\x59\x78\xe1\x68"
  15549. "\x85\xcf\xfe\x59\x20\xd4\x05\x1d"
  15550. "\x80\x99\xae\xbc\xca\xae\x0f\x2f"
  15551. "\x65\x43\x34\x8e\x7e\xac\xd3\x93"
  15552. "\x2f\xac\x6d\x14\x3d\x02\x07\x70"
  15553. "\x9d\xa4\xf3\x1b\x5c\x36\xfc\x01"
  15554. "\x73\x34\x85\x0c\x6c\xd6\xf1\xbd"
  15555. "\x3f\xdf\xee\xf5\xd9\xba\x56\xef"
  15556. "\xf4\x9b\x6b\xee\x9f\x5a\x78\x6d"
  15557. "\x32\x19\xf4\xf7\xf8\x4c\x69\x0b"
  15558. "\x4b\xbc\xbb\xb7\xf2\x85\xaf\x70"
  15559. "\x75\x24\x6c\x54\xa7\x0e\x4d\x1d"
  15560. "\x01\xbf\x08\xac\xcf\x7f\x2c\xe3"
  15561. "\x14\x89\x5e\x70\x5a\x99\x92\xcd"
  15562. "\x01\x84\xc8\xd2\xab\xe5\x4f\x58"
  15563. "\xe7\x0f\x2f\x0e\xff\x68\xea\xfd"
  15564. "\x15\xb3\x17\xe6\xb0\xe7\x85\xd8"
  15565. "\x23\x2e\x05\xc7\xc9\xc4\x46\x1f"
  15566. "\xe1\x9e\x49\x20\x23\x24\x4d\x7e"
  15567. "\x29\x65\xff\xf4\xb6\xfd\x1a\x85"
  15568. "\xc4\x16\xec\xfc\xea\x7b\xd6\x2c"
  15569. "\x43\xf8\xb7\xbf\x79\xc0\x85\xcd"
  15570. "\xef\xe1\x98\xd3\xa5\xf7\x90\x8c"
  15571. "\xe9\x7f\x80\x6b\xd2\xac\x4c\x30"
  15572. "\xa7\xc6\x61\x6c\xd2\xf9\x2c\xff"
  15573. "\x30\xbc\x22\x81\x7d\x93\x12\xe4"
  15574. "\x0a\xcd\xaf\xdd\xe8\xab\x0a\x1e"
  15575. "\x13\xa4\x27\xc3\x5f\xf7\x4b\xbb"
  15576. "\x37\x09\x4b\x91\x6f\x92\x4f\xaf"
  15577. "\x52\xee\xdf\xef\x09\x6f\xf7\x5c"
  15578. "\x6e\x12\x17\x72\x63\x57\xc7\xba"
  15579. "\x3b\x6b\x38\x32\x73\x1b\x9c\x80"
  15580. "\xc1\x7a\xc6\xcf\xcd\x35\xc0\x6b"
  15581. "\x31\x1a\x6b\xe9\xd8\x2c\x29\x3f"
  15582. "\x96\xfb\xb6\xcd\x13\x91\x3b\xc2"
  15583. "\xd2\xa3\x31\x8d\xa4\xcd\x57\xcd"
  15584. "\x13\x3d\x64\xfd\x06\xce\xe6\xdc"
  15585. "\x0c\x24\x43\x31\x40\x57\xf1\x72"
  15586. "\x17\xe3\x3a\x63\x6d\x35\xcf\x5d"
  15587. "\x97\x40\x59\xdd\xf7\x3c\x02\xf7"
  15588. "\x1c\x7e\x05\xbb\xa9\x0d\x01\xb1"
  15589. "\x8e\xc0\x30\xa9\x53\x24\xc9\x89"
  15590. "\x84\x6d\xaa\xd0\xcd\x91\xc2\x4d"
  15591. "\x91\xb0\x89\xe2\xbf\x83\x44\xaa"
  15592. "\x28\x72\x23\xa0\xc2\xad\xad\x1c"
  15593. "\xfc\x3f\x09\x7a\x0b\xdc\xc5\x1b"
  15594. "\x87\x13\xc6\x5b\x59\x8d\xf2\xc8"
  15595. "\xaf\xdf\x11\x95",
  15596. .rlen = 4100,
  15597. .np = 2,
  15598. .tap = { 4064, 36 },
  15599. },
  15600. };
  15601. /*
  15602. * CTS (Cipher Text Stealing) mode tests
  15603. */
  15604. #define CTS_MODE_ENC_TEST_VECTORS 6
  15605. #define CTS_MODE_DEC_TEST_VECTORS 6
  15606. static struct cipher_testvec cts_mode_enc_tv_template[] = {
  15607. { /* from rfc3962 */
  15608. .klen = 16,
  15609. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  15610. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  15611. .ilen = 17,
  15612. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  15613. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  15614. "\x20",
  15615. .rlen = 17,
  15616. .result = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
  15617. "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
  15618. "\x97",
  15619. }, {
  15620. .klen = 16,
  15621. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  15622. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  15623. .ilen = 31,
  15624. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  15625. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  15626. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  15627. "\x20\x47\x61\x75\x27\x73\x20",
  15628. .rlen = 31,
  15629. .result = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
  15630. "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
  15631. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  15632. "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
  15633. }, {
  15634. .klen = 16,
  15635. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  15636. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  15637. .ilen = 32,
  15638. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  15639. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  15640. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  15641. "\x20\x47\x61\x75\x27\x73\x20\x43",
  15642. .rlen = 32,
  15643. .result = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  15644. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  15645. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  15646. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
  15647. }, {
  15648. .klen = 16,
  15649. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  15650. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  15651. .ilen = 47,
  15652. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  15653. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  15654. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  15655. "\x20\x47\x61\x75\x27\x73\x20\x43"
  15656. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  15657. "\x70\x6c\x65\x61\x73\x65\x2c",
  15658. .rlen = 47,
  15659. .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  15660. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  15661. "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
  15662. "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
  15663. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  15664. "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
  15665. }, {
  15666. .klen = 16,
  15667. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  15668. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  15669. .ilen = 48,
  15670. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  15671. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  15672. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  15673. "\x20\x47\x61\x75\x27\x73\x20\x43"
  15674. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  15675. "\x70\x6c\x65\x61\x73\x65\x2c\x20",
  15676. .rlen = 48,
  15677. .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  15678. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  15679. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  15680. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
  15681. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  15682. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
  15683. }, {
  15684. .klen = 16,
  15685. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  15686. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  15687. .ilen = 64,
  15688. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  15689. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  15690. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  15691. "\x20\x47\x61\x75\x27\x73\x20\x43"
  15692. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  15693. "\x70\x6c\x65\x61\x73\x65\x2c\x20"
  15694. "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
  15695. "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
  15696. .rlen = 64,
  15697. .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  15698. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  15699. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  15700. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  15701. "\x48\x07\xef\xe8\x36\xee\x89\xa5"
  15702. "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
  15703. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  15704. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
  15705. }
  15706. };
  15707. static struct cipher_testvec cts_mode_dec_tv_template[] = {
  15708. { /* from rfc3962 */
  15709. .klen = 16,
  15710. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  15711. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  15712. .rlen = 17,
  15713. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  15714. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  15715. "\x20",
  15716. .ilen = 17,
  15717. .input = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
  15718. "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
  15719. "\x97",
  15720. }, {
  15721. .klen = 16,
  15722. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  15723. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  15724. .rlen = 31,
  15725. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  15726. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  15727. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  15728. "\x20\x47\x61\x75\x27\x73\x20",
  15729. .ilen = 31,
  15730. .input = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
  15731. "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
  15732. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  15733. "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
  15734. }, {
  15735. .klen = 16,
  15736. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  15737. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  15738. .rlen = 32,
  15739. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  15740. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  15741. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  15742. "\x20\x47\x61\x75\x27\x73\x20\x43",
  15743. .ilen = 32,
  15744. .input = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  15745. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  15746. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  15747. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
  15748. }, {
  15749. .klen = 16,
  15750. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  15751. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  15752. .rlen = 47,
  15753. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  15754. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  15755. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  15756. "\x20\x47\x61\x75\x27\x73\x20\x43"
  15757. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  15758. "\x70\x6c\x65\x61\x73\x65\x2c",
  15759. .ilen = 47,
  15760. .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  15761. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  15762. "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
  15763. "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
  15764. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  15765. "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
  15766. }, {
  15767. .klen = 16,
  15768. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  15769. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  15770. .rlen = 48,
  15771. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  15772. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  15773. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  15774. "\x20\x47\x61\x75\x27\x73\x20\x43"
  15775. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  15776. "\x70\x6c\x65\x61\x73\x65\x2c\x20",
  15777. .ilen = 48,
  15778. .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  15779. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  15780. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  15781. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
  15782. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  15783. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
  15784. }, {
  15785. .klen = 16,
  15786. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  15787. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  15788. .rlen = 64,
  15789. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  15790. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  15791. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  15792. "\x20\x47\x61\x75\x27\x73\x20\x43"
  15793. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  15794. "\x70\x6c\x65\x61\x73\x65\x2c\x20"
  15795. "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
  15796. "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
  15797. .ilen = 64,
  15798. .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  15799. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  15800. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  15801. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  15802. "\x48\x07\xef\xe8\x36\xee\x89\xa5"
  15803. "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
  15804. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  15805. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
  15806. }
  15807. };
  15808. /*
  15809. * Compression stuff.
  15810. */
  15811. #define COMP_BUF_SIZE 512
  15812. struct comp_testvec {
  15813. int inlen, outlen;
  15814. char input[COMP_BUF_SIZE];
  15815. char output[COMP_BUF_SIZE];
  15816. };
  15817. struct pcomp_testvec {
  15818. void *params;
  15819. unsigned int paramsize;
  15820. int inlen, outlen;
  15821. char input[COMP_BUF_SIZE];
  15822. char output[COMP_BUF_SIZE];
  15823. };
  15824. /*
  15825. * Deflate test vectors (null-terminated strings).
  15826. * Params: winbits=-11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL.
  15827. */
  15828. #define DEFLATE_COMP_TEST_VECTORS 2
  15829. #define DEFLATE_DECOMP_TEST_VECTORS 2
  15830. static struct comp_testvec deflate_comp_tv_template[] = {
  15831. {
  15832. .inlen = 70,
  15833. .outlen = 38,
  15834. .input = "Join us now and share the software "
  15835. "Join us now and share the software ",
  15836. .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  15837. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  15838. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  15839. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  15840. "\x71\xbc\x08\x2b\x01\x00",
  15841. }, {
  15842. .inlen = 191,
  15843. .outlen = 122,
  15844. .input = "This document describes a compression method based on the DEFLATE"
  15845. "compression algorithm. This document defines the application of "
  15846. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  15847. .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  15848. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  15849. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  15850. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  15851. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  15852. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  15853. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  15854. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  15855. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  15856. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  15857. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  15858. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  15859. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  15860. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  15861. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  15862. "\xfa\x02",
  15863. },
  15864. };
  15865. static struct comp_testvec deflate_decomp_tv_template[] = {
  15866. {
  15867. .inlen = 122,
  15868. .outlen = 191,
  15869. .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  15870. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  15871. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  15872. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  15873. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  15874. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  15875. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  15876. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  15877. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  15878. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  15879. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  15880. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  15881. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  15882. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  15883. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  15884. "\xfa\x02",
  15885. .output = "This document describes a compression method based on the DEFLATE"
  15886. "compression algorithm. This document defines the application of "
  15887. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  15888. }, {
  15889. .inlen = 38,
  15890. .outlen = 70,
  15891. .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  15892. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  15893. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  15894. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  15895. "\x71\xbc\x08\x2b\x01\x00",
  15896. .output = "Join us now and share the software "
  15897. "Join us now and share the software ",
  15898. },
  15899. };
  15900. #define ZLIB_COMP_TEST_VECTORS 2
  15901. #define ZLIB_DECOMP_TEST_VECTORS 2
  15902. static const struct {
  15903. struct nlattr nla;
  15904. int val;
  15905. } deflate_comp_params[] = {
  15906. {
  15907. .nla = {
  15908. .nla_len = NLA_HDRLEN + sizeof(int),
  15909. .nla_type = ZLIB_COMP_LEVEL,
  15910. },
  15911. .val = Z_DEFAULT_COMPRESSION,
  15912. }, {
  15913. .nla = {
  15914. .nla_len = NLA_HDRLEN + sizeof(int),
  15915. .nla_type = ZLIB_COMP_METHOD,
  15916. },
  15917. .val = Z_DEFLATED,
  15918. }, {
  15919. .nla = {
  15920. .nla_len = NLA_HDRLEN + sizeof(int),
  15921. .nla_type = ZLIB_COMP_WINDOWBITS,
  15922. },
  15923. .val = -11,
  15924. }, {
  15925. .nla = {
  15926. .nla_len = NLA_HDRLEN + sizeof(int),
  15927. .nla_type = ZLIB_COMP_MEMLEVEL,
  15928. },
  15929. .val = MAX_MEM_LEVEL,
  15930. }, {
  15931. .nla = {
  15932. .nla_len = NLA_HDRLEN + sizeof(int),
  15933. .nla_type = ZLIB_COMP_STRATEGY,
  15934. },
  15935. .val = Z_DEFAULT_STRATEGY,
  15936. }
  15937. };
  15938. static const struct {
  15939. struct nlattr nla;
  15940. int val;
  15941. } deflate_decomp_params[] = {
  15942. {
  15943. .nla = {
  15944. .nla_len = NLA_HDRLEN + sizeof(int),
  15945. .nla_type = ZLIB_DECOMP_WINDOWBITS,
  15946. },
  15947. .val = -11,
  15948. }
  15949. };
  15950. static struct pcomp_testvec zlib_comp_tv_template[] = {
  15951. {
  15952. .params = &deflate_comp_params,
  15953. .paramsize = sizeof(deflate_comp_params),
  15954. .inlen = 70,
  15955. .outlen = 38,
  15956. .input = "Join us now and share the software "
  15957. "Join us now and share the software ",
  15958. .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  15959. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  15960. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  15961. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  15962. "\x71\xbc\x08\x2b\x01\x00",
  15963. }, {
  15964. .params = &deflate_comp_params,
  15965. .paramsize = sizeof(deflate_comp_params),
  15966. .inlen = 191,
  15967. .outlen = 122,
  15968. .input = "This document describes a compression method based on the DEFLATE"
  15969. "compression algorithm. This document defines the application of "
  15970. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  15971. .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  15972. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  15973. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  15974. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  15975. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  15976. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  15977. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  15978. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  15979. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  15980. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  15981. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  15982. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  15983. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  15984. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  15985. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  15986. "\xfa\x02",
  15987. },
  15988. };
  15989. static struct pcomp_testvec zlib_decomp_tv_template[] = {
  15990. {
  15991. .params = &deflate_decomp_params,
  15992. .paramsize = sizeof(deflate_decomp_params),
  15993. .inlen = 122,
  15994. .outlen = 191,
  15995. .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  15996. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  15997. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  15998. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  15999. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  16000. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  16001. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  16002. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  16003. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  16004. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  16005. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  16006. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  16007. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  16008. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  16009. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  16010. "\xfa\x02",
  16011. .output = "This document describes a compression method based on the DEFLATE"
  16012. "compression algorithm. This document defines the application of "
  16013. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  16014. }, {
  16015. .params = &deflate_decomp_params,
  16016. .paramsize = sizeof(deflate_decomp_params),
  16017. .inlen = 38,
  16018. .outlen = 70,
  16019. .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  16020. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  16021. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  16022. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  16023. "\x71\xbc\x08\x2b\x01\x00",
  16024. .output = "Join us now and share the software "
  16025. "Join us now and share the software ",
  16026. },
  16027. };
  16028. /*
  16029. * LZO test vectors (null-terminated strings).
  16030. */
  16031. #define LZO_COMP_TEST_VECTORS 2
  16032. #define LZO_DECOMP_TEST_VECTORS 2
  16033. static struct comp_testvec lzo_comp_tv_template[] = {
  16034. {
  16035. .inlen = 70,
  16036. .outlen = 46,
  16037. .input = "Join us now and share the software "
  16038. "Join us now and share the software ",
  16039. .output = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
  16040. "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
  16041. "\x64\x20\x73\x68\x61\x72\x65\x20"
  16042. "\x74\x68\x65\x20\x73\x6f\x66\x74"
  16043. "\x77\x70\x01\x01\x4a\x6f\x69\x6e"
  16044. "\x3d\x88\x00\x11\x00\x00",
  16045. }, {
  16046. .inlen = 159,
  16047. .outlen = 133,
  16048. .input = "This document describes a compression method based on the LZO "
  16049. "compression algorithm. This document defines the application of "
  16050. "the LZO algorithm used in UBIFS.",
  16051. .output = "\x00\x2b\x54\x68\x69\x73\x20\x64"
  16052. "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
  16053. "\x64\x65\x73\x63\x72\x69\x62\x65"
  16054. "\x73\x20\x61\x20\x63\x6f\x6d\x70"
  16055. "\x72\x65\x73\x73\x69\x6f\x6e\x20"
  16056. "\x6d\x65\x74\x68\x6f\x64\x20\x62"
  16057. "\x61\x73\x65\x64\x20\x6f\x6e\x20"
  16058. "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
  16059. "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
  16060. "\x69\x74\x68\x6d\x2e\x20\x20\x54"
  16061. "\x68\x69\x73\x2a\x54\x01\x02\x66"
  16062. "\x69\x6e\x65\x73\x94\x06\x05\x61"
  16063. "\x70\x70\x6c\x69\x63\x61\x74\x76"
  16064. "\x0a\x6f\x66\x88\x02\x60\x09\x27"
  16065. "\xf0\x00\x0c\x20\x75\x73\x65\x64"
  16066. "\x20\x69\x6e\x20\x55\x42\x49\x46"
  16067. "\x53\x2e\x11\x00\x00",
  16068. },
  16069. };
  16070. static struct comp_testvec lzo_decomp_tv_template[] = {
  16071. {
  16072. .inlen = 133,
  16073. .outlen = 159,
  16074. .input = "\x00\x2b\x54\x68\x69\x73\x20\x64"
  16075. "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
  16076. "\x64\x65\x73\x63\x72\x69\x62\x65"
  16077. "\x73\x20\x61\x20\x63\x6f\x6d\x70"
  16078. "\x72\x65\x73\x73\x69\x6f\x6e\x20"
  16079. "\x6d\x65\x74\x68\x6f\x64\x20\x62"
  16080. "\x61\x73\x65\x64\x20\x6f\x6e\x20"
  16081. "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
  16082. "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
  16083. "\x69\x74\x68\x6d\x2e\x20\x20\x54"
  16084. "\x68\x69\x73\x2a\x54\x01\x02\x66"
  16085. "\x69\x6e\x65\x73\x94\x06\x05\x61"
  16086. "\x70\x70\x6c\x69\x63\x61\x74\x76"
  16087. "\x0a\x6f\x66\x88\x02\x60\x09\x27"
  16088. "\xf0\x00\x0c\x20\x75\x73\x65\x64"
  16089. "\x20\x69\x6e\x20\x55\x42\x49\x46"
  16090. "\x53\x2e\x11\x00\x00",
  16091. .output = "This document describes a compression method based on the LZO "
  16092. "compression algorithm. This document defines the application of "
  16093. "the LZO algorithm used in UBIFS.",
  16094. }, {
  16095. .inlen = 46,
  16096. .outlen = 70,
  16097. .input = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
  16098. "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
  16099. "\x64\x20\x73\x68\x61\x72\x65\x20"
  16100. "\x74\x68\x65\x20\x73\x6f\x66\x74"
  16101. "\x77\x70\x01\x01\x4a\x6f\x69\x6e"
  16102. "\x3d\x88\x00\x11\x00\x00",
  16103. .output = "Join us now and share the software "
  16104. "Join us now and share the software ",
  16105. },
  16106. };
  16107. /*
  16108. * Michael MIC test vectors from IEEE 802.11i
  16109. */
  16110. #define MICHAEL_MIC_TEST_VECTORS 6
  16111. static struct hash_testvec michael_mic_tv_template[] = {
  16112. {
  16113. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  16114. .ksize = 8,
  16115. .plaintext = zeroed_string,
  16116. .psize = 0,
  16117. .digest = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
  16118. },
  16119. {
  16120. .key = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
  16121. .ksize = 8,
  16122. .plaintext = "M",
  16123. .psize = 1,
  16124. .digest = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
  16125. },
  16126. {
  16127. .key = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
  16128. .ksize = 8,
  16129. .plaintext = "Mi",
  16130. .psize = 2,
  16131. .digest = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
  16132. },
  16133. {
  16134. .key = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
  16135. .ksize = 8,
  16136. .plaintext = "Mic",
  16137. .psize = 3,
  16138. .digest = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
  16139. },
  16140. {
  16141. .key = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
  16142. .ksize = 8,
  16143. .plaintext = "Mich",
  16144. .psize = 4,
  16145. .digest = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
  16146. },
  16147. {
  16148. .key = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
  16149. .ksize = 8,
  16150. .plaintext = "Michael",
  16151. .psize = 7,
  16152. .digest = "\x0a\x94\x2b\x12\x4e\xca\xa5\x46",
  16153. }
  16154. };
  16155. /*
  16156. * CRC32C test vectors
  16157. */
  16158. #define CRC32C_TEST_VECTORS 14
  16159. static struct hash_testvec crc32c_tv_template[] = {
  16160. {
  16161. .psize = 0,
  16162. .digest = "\x00\x00\x00\x00",
  16163. },
  16164. {
  16165. .key = "\x87\xa9\xcb\xed",
  16166. .ksize = 4,
  16167. .psize = 0,
  16168. .digest = "\x78\x56\x34\x12",
  16169. },
  16170. {
  16171. .key = "\xff\xff\xff\xff",
  16172. .ksize = 4,
  16173. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  16174. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  16175. "\x11\x12\x13\x14\x15\x16\x17\x18"
  16176. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  16177. "\x21\x22\x23\x24\x25\x26\x27\x28",
  16178. .psize = 40,
  16179. .digest = "\x7f\x15\x2c\x0e",
  16180. },
  16181. {
  16182. .key = "\xff\xff\xff\xff",
  16183. .ksize = 4,
  16184. .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  16185. "\x31\x32\x33\x34\x35\x36\x37\x38"
  16186. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  16187. "\x41\x42\x43\x44\x45\x46\x47\x48"
  16188. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
  16189. .psize = 40,
  16190. .digest = "\xf6\xeb\x80\xe9",
  16191. },
  16192. {
  16193. .key = "\xff\xff\xff\xff",
  16194. .ksize = 4,
  16195. .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
  16196. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  16197. "\x61\x62\x63\x64\x65\x66\x67\x68"
  16198. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  16199. "\x71\x72\x73\x74\x75\x76\x77\x78",
  16200. .psize = 40,
  16201. .digest = "\xed\xbd\x74\xde",
  16202. },
  16203. {
  16204. .key = "\xff\xff\xff\xff",
  16205. .ksize = 4,
  16206. .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  16207. "\x81\x82\x83\x84\x85\x86\x87\x88"
  16208. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  16209. "\x91\x92\x93\x94\x95\x96\x97\x98"
  16210. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
  16211. .psize = 40,
  16212. .digest = "\x62\xc8\x79\xd5",
  16213. },
  16214. {
  16215. .key = "\xff\xff\xff\xff",
  16216. .ksize = 4,
  16217. .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  16218. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  16219. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  16220. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  16221. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
  16222. .psize = 40,
  16223. .digest = "\xd0\x9a\x97\xba",
  16224. },
  16225. {
  16226. .key = "\xff\xff\xff\xff",
  16227. .ksize = 4,
  16228. .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  16229. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  16230. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  16231. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  16232. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  16233. .psize = 40,
  16234. .digest = "\x13\xd9\x29\x2b",
  16235. },
  16236. {
  16237. .key = "\x80\xea\xd3\xf1",
  16238. .ksize = 4,
  16239. .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  16240. "\x31\x32\x33\x34\x35\x36\x37\x38"
  16241. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  16242. "\x41\x42\x43\x44\x45\x46\x47\x48"
  16243. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
  16244. .psize = 40,
  16245. .digest = "\x0c\xb5\xe2\xa2",
  16246. },
  16247. {
  16248. .key = "\xf3\x4a\x1d\x5d",
  16249. .ksize = 4,
  16250. .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
  16251. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  16252. "\x61\x62\x63\x64\x65\x66\x67\x68"
  16253. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  16254. "\x71\x72\x73\x74\x75\x76\x77\x78",
  16255. .psize = 40,
  16256. .digest = "\xd1\x7f\xfb\xa6",
  16257. },
  16258. {
  16259. .key = "\x2e\x80\x04\x59",
  16260. .ksize = 4,
  16261. .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  16262. "\x81\x82\x83\x84\x85\x86\x87\x88"
  16263. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  16264. "\x91\x92\x93\x94\x95\x96\x97\x98"
  16265. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
  16266. .psize = 40,
  16267. .digest = "\x59\x33\xe6\x7a",
  16268. },
  16269. {
  16270. .key = "\xa6\xcc\x19\x85",
  16271. .ksize = 4,
  16272. .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  16273. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  16274. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  16275. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  16276. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
  16277. .psize = 40,
  16278. .digest = "\xbe\x03\x01\xd2",
  16279. },
  16280. {
  16281. .key = "\x41\xfc\xfe\x2d",
  16282. .ksize = 4,
  16283. .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  16284. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  16285. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  16286. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  16287. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  16288. .psize = 40,
  16289. .digest = "\x75\xd3\xc5\x24",
  16290. },
  16291. {
  16292. .key = "\xff\xff\xff\xff",
  16293. .ksize = 4,
  16294. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  16295. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  16296. "\x11\x12\x13\x14\x15\x16\x17\x18"
  16297. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  16298. "\x21\x22\x23\x24\x25\x26\x27\x28"
  16299. "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  16300. "\x31\x32\x33\x34\x35\x36\x37\x38"
  16301. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  16302. "\x41\x42\x43\x44\x45\x46\x47\x48"
  16303. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
  16304. "\x51\x52\x53\x54\x55\x56\x57\x58"
  16305. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  16306. "\x61\x62\x63\x64\x65\x66\x67\x68"
  16307. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  16308. "\x71\x72\x73\x74\x75\x76\x77\x78"
  16309. "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  16310. "\x81\x82\x83\x84\x85\x86\x87\x88"
  16311. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  16312. "\x91\x92\x93\x94\x95\x96\x97\x98"
  16313. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
  16314. "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  16315. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  16316. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  16317. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  16318. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
  16319. "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  16320. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  16321. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  16322. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  16323. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  16324. .psize = 240,
  16325. .digest = "\x75\xd3\xc5\x24",
  16326. .np = 2,
  16327. .tap = { 31, 209 }
  16328. },
  16329. };
  16330. /*
  16331. * Blakcifn CRC test vectors
  16332. */
  16333. #define BFIN_CRC_TEST_VECTORS 6
  16334. static struct hash_testvec bfin_crc_tv_template[] = {
  16335. {
  16336. .psize = 0,
  16337. .digest = "\x00\x00\x00\x00",
  16338. },
  16339. {
  16340. .key = "\x87\xa9\xcb\xed",
  16341. .ksize = 4,
  16342. .psize = 0,
  16343. .digest = "\x87\xa9\xcb\xed",
  16344. },
  16345. {
  16346. .key = "\xff\xff\xff\xff",
  16347. .ksize = 4,
  16348. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  16349. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  16350. "\x11\x12\x13\x14\x15\x16\x17\x18"
  16351. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  16352. "\x21\x22\x23\x24\x25\x26\x27\x28",
  16353. .psize = 40,
  16354. .digest = "\x84\x0c\x8d\xa2",
  16355. },
  16356. {
  16357. .key = "\xff\xff\xff\xff",
  16358. .ksize = 4,
  16359. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  16360. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  16361. "\x11\x12\x13\x14\x15\x16\x17\x18"
  16362. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  16363. "\x21\x22\x23\x24\x25\x26",
  16364. .psize = 38,
  16365. .digest = "\x8c\x58\xec\xb7",
  16366. },
  16367. {
  16368. .key = "\xff\xff\xff\xff",
  16369. .ksize = 4,
  16370. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  16371. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  16372. "\x11\x12\x13\x14\x15\x16\x17\x18"
  16373. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  16374. "\x21\x22\x23\x24\x25\x26\x27",
  16375. .psize = 39,
  16376. .digest = "\xdc\x50\x28\x7b",
  16377. },
  16378. {
  16379. .key = "\xff\xff\xff\xff",
  16380. .ksize = 4,
  16381. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  16382. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  16383. "\x11\x12\x13\x14\x15\x16\x17\x18"
  16384. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  16385. "\x21\x22\x23\x24\x25\x26\x27\x28"
  16386. "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  16387. "\x31\x32\x33\x34\x35\x36\x37\x38"
  16388. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  16389. "\x41\x42\x43\x44\x45\x46\x47\x48"
  16390. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
  16391. "\x51\x52\x53\x54\x55\x56\x57\x58"
  16392. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  16393. "\x61\x62\x63\x64\x65\x66\x67\x68"
  16394. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  16395. "\x71\x72\x73\x74\x75\x76\x77\x78"
  16396. "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  16397. "\x81\x82\x83\x84\x85\x86\x87\x88"
  16398. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  16399. "\x91\x92\x93\x94\x95\x96\x97\x98"
  16400. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
  16401. "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  16402. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  16403. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  16404. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  16405. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
  16406. "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  16407. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  16408. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  16409. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  16410. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  16411. .psize = 240,
  16412. .digest = "\x10\x19\x4a\x5c",
  16413. .np = 2,
  16414. .tap = { 31, 209 }
  16415. },
  16416. };
  16417. #endif /* _CRYPTO_TESTMGR_H */