testmgr.h 330 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061
  1. /*
  2. * Algorithm testing framework and tests.
  3. *
  4. * Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
  5. * Copyright (c) 2002 Jean-Francois Dive <jef@linuxbe.org>
  6. * Copyright (c) 2007 Nokia Siemens Networks
  7. * Copyright (c) 2008 Herbert Xu <herbert@gondor.apana.org.au>
  8. *
  9. * Updated RFC4106 AES-GCM testing. Some test vectors were taken from
  10. * http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/proposedmodes/
  11. * gcm/gcm-test-vectors.tar.gz
  12. * Authors: Aidan O'Mahony (aidan.o.mahony@intel.com)
  13. * Adrian Hoban <adrian.hoban@intel.com>
  14. * Gabriele Paoloni <gabriele.paoloni@intel.com>
  15. * Tadeusz Struk (tadeusz.struk@intel.com)
  16. * Copyright (c) 2010, Intel Corporation.
  17. *
  18. * This program is free software; you can redistribute it and/or modify it
  19. * under the terms of the GNU General Public License as published by the Free
  20. * Software Foundation; either version 2 of the License, or (at your option)
  21. * any later version.
  22. *
  23. */
  24. #ifndef _CRYPTO_TESTMGR_H
  25. #define _CRYPTO_TESTMGR_H
  26. #include <linux/netlink.h>
  27. #include <linux/zlib.h>
  28. #include <crypto/compress.h>
  29. #define MAX_DIGEST_SIZE 64
  30. #define MAX_TAP 8
  31. #define MAX_KEYLEN 56
  32. #define MAX_IVLEN 32
  33. struct hash_testvec {
  34. /* only used with keyed hash algorithms */
  35. char *key;
  36. char *plaintext;
  37. char *digest;
  38. unsigned char tap[MAX_TAP];
  39. unsigned char psize;
  40. unsigned char np;
  41. unsigned char ksize;
  42. };
  43. struct cipher_testvec {
  44. char *key;
  45. char *iv;
  46. char *input;
  47. char *result;
  48. unsigned short tap[MAX_TAP];
  49. int np;
  50. unsigned char fail;
  51. unsigned char wk; /* weak key flag */
  52. unsigned char klen;
  53. unsigned short ilen;
  54. unsigned short rlen;
  55. };
  56. struct aead_testvec {
  57. char *key;
  58. char *iv;
  59. char *input;
  60. char *assoc;
  61. char *result;
  62. unsigned char tap[MAX_TAP];
  63. unsigned char atap[MAX_TAP];
  64. int np;
  65. int anp;
  66. unsigned char fail;
  67. unsigned char novrfy; /* ccm dec verification failure expected */
  68. unsigned char wk; /* weak key flag */
  69. unsigned char klen;
  70. unsigned short ilen;
  71. unsigned short alen;
  72. unsigned short rlen;
  73. };
  74. struct cprng_testvec {
  75. char *key;
  76. char *dt;
  77. char *v;
  78. char *result;
  79. unsigned char klen;
  80. unsigned short dtlen;
  81. unsigned short vlen;
  82. unsigned short rlen;
  83. unsigned short loops;
  84. };
  85. static char zeroed_string[48];
  86. /*
  87. * MD4 test vectors from RFC1320
  88. */
  89. #define MD4_TEST_VECTORS 7
  90. static struct hash_testvec md4_tv_template [] = {
  91. {
  92. .plaintext = "",
  93. .digest = "\x31\xd6\xcf\xe0\xd1\x6a\xe9\x31"
  94. "\xb7\x3c\x59\xd7\xe0\xc0\x89\xc0",
  95. }, {
  96. .plaintext = "a",
  97. .psize = 1,
  98. .digest = "\xbd\xe5\x2c\xb3\x1d\xe3\x3e\x46"
  99. "\x24\x5e\x05\xfb\xdb\xd6\xfb\x24",
  100. }, {
  101. .plaintext = "abc",
  102. .psize = 3,
  103. .digest = "\xa4\x48\x01\x7a\xaf\x21\xd8\x52"
  104. "\x5f\xc1\x0a\xe8\x7a\xa6\x72\x9d",
  105. }, {
  106. .plaintext = "message digest",
  107. .psize = 14,
  108. .digest = "\xd9\x13\x0a\x81\x64\x54\x9f\xe8"
  109. "\x18\x87\x48\x06\xe1\xc7\x01\x4b",
  110. }, {
  111. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  112. .psize = 26,
  113. .digest = "\xd7\x9e\x1c\x30\x8a\xa5\xbb\xcd"
  114. "\xee\xa8\xed\x63\xdf\x41\x2d\xa9",
  115. .np = 2,
  116. .tap = { 13, 13 },
  117. }, {
  118. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
  119. .psize = 62,
  120. .digest = "\x04\x3f\x85\x82\xf2\x41\xdb\x35"
  121. "\x1c\xe6\x27\xe1\x53\xe7\xf0\xe4",
  122. }, {
  123. .plaintext = "123456789012345678901234567890123456789012345678901234567890123"
  124. "45678901234567890",
  125. .psize = 80,
  126. .digest = "\xe3\x3b\x4d\xdc\x9c\x38\xf2\x19"
  127. "\x9c\x3e\x7b\x16\x4f\xcc\x05\x36",
  128. },
  129. };
  130. /*
  131. * MD5 test vectors from RFC1321
  132. */
  133. #define MD5_TEST_VECTORS 7
  134. static struct hash_testvec md5_tv_template[] = {
  135. {
  136. .digest = "\xd4\x1d\x8c\xd9\x8f\x00\xb2\x04"
  137. "\xe9\x80\x09\x98\xec\xf8\x42\x7e",
  138. }, {
  139. .plaintext = "a",
  140. .psize = 1,
  141. .digest = "\x0c\xc1\x75\xb9\xc0\xf1\xb6\xa8"
  142. "\x31\xc3\x99\xe2\x69\x77\x26\x61",
  143. }, {
  144. .plaintext = "abc",
  145. .psize = 3,
  146. .digest = "\x90\x01\x50\x98\x3c\xd2\x4f\xb0"
  147. "\xd6\x96\x3f\x7d\x28\xe1\x7f\x72",
  148. }, {
  149. .plaintext = "message digest",
  150. .psize = 14,
  151. .digest = "\xf9\x6b\x69\x7d\x7c\xb7\x93\x8d"
  152. "\x52\x5a\x2f\x31\xaa\xf1\x61\xd0",
  153. }, {
  154. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  155. .psize = 26,
  156. .digest = "\xc3\xfc\xd3\xd7\x61\x92\xe4\x00"
  157. "\x7d\xfb\x49\x6c\xca\x67\xe1\x3b",
  158. .np = 2,
  159. .tap = {13, 13}
  160. }, {
  161. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
  162. .psize = 62,
  163. .digest = "\xd1\x74\xab\x98\xd2\x77\xd9\xf5"
  164. "\xa5\x61\x1c\x2c\x9f\x41\x9d\x9f",
  165. }, {
  166. .plaintext = "12345678901234567890123456789012345678901234567890123456789012"
  167. "345678901234567890",
  168. .psize = 80,
  169. .digest = "\x57\xed\xf4\xa2\x2b\xe3\xc9\x55"
  170. "\xac\x49\xda\x2e\x21\x07\xb6\x7a",
  171. }
  172. };
  173. /*
  174. * RIPEMD-128 test vectors from ISO/IEC 10118-3:2004(E)
  175. */
  176. #define RMD128_TEST_VECTORS 10
  177. static struct hash_testvec rmd128_tv_template[] = {
  178. {
  179. .digest = "\xcd\xf2\x62\x13\xa1\x50\xdc\x3e"
  180. "\xcb\x61\x0f\x18\xf6\xb3\x8b\x46",
  181. }, {
  182. .plaintext = "a",
  183. .psize = 1,
  184. .digest = "\x86\xbe\x7a\xfa\x33\x9d\x0f\xc7"
  185. "\xcf\xc7\x85\xe7\x2f\x57\x8d\x33",
  186. }, {
  187. .plaintext = "abc",
  188. .psize = 3,
  189. .digest = "\xc1\x4a\x12\x19\x9c\x66\xe4\xba"
  190. "\x84\x63\x6b\x0f\x69\x14\x4c\x77",
  191. }, {
  192. .plaintext = "message digest",
  193. .psize = 14,
  194. .digest = "\x9e\x32\x7b\x3d\x6e\x52\x30\x62"
  195. "\xaf\xc1\x13\x2d\x7d\xf9\xd1\xb8",
  196. }, {
  197. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  198. .psize = 26,
  199. .digest = "\xfd\x2a\xa6\x07\xf7\x1d\xc8\xf5"
  200. "\x10\x71\x49\x22\xb3\x71\x83\x4e",
  201. }, {
  202. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
  203. "fghijklmnopqrstuvwxyz0123456789",
  204. .psize = 62,
  205. .digest = "\xd1\xe9\x59\xeb\x17\x9c\x91\x1f"
  206. "\xae\xa4\x62\x4c\x60\xc5\xc7\x02",
  207. }, {
  208. .plaintext = "1234567890123456789012345678901234567890"
  209. "1234567890123456789012345678901234567890",
  210. .psize = 80,
  211. .digest = "\x3f\x45\xef\x19\x47\x32\xc2\xdb"
  212. "\xb2\xc4\xa2\xc7\x69\x79\x5f\xa3",
  213. }, {
  214. .plaintext = "abcdbcdecdefdefgefghfghighij"
  215. "hijkijkljklmklmnlmnomnopnopq",
  216. .psize = 56,
  217. .digest = "\xa1\xaa\x06\x89\xd0\xfa\xfa\x2d"
  218. "\xdc\x22\xe8\x8b\x49\x13\x3a\x06",
  219. .np = 2,
  220. .tap = { 28, 28 },
  221. }, {
  222. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
  223. "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
  224. "lmnopqrsmnopqrstnopqrstu",
  225. .psize = 112,
  226. .digest = "\xd4\xec\xc9\x13\xe1\xdf\x77\x6b"
  227. "\xf4\x8d\xe9\xd5\x5b\x1f\x25\x46",
  228. }, {
  229. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  230. .psize = 32,
  231. .digest = "\x13\xfc\x13\xe8\xef\xff\x34\x7d"
  232. "\xe1\x93\xff\x46\xdb\xac\xcf\xd4",
  233. }
  234. };
  235. /*
  236. * RIPEMD-160 test vectors from ISO/IEC 10118-3:2004(E)
  237. */
  238. #define RMD160_TEST_VECTORS 10
  239. static struct hash_testvec rmd160_tv_template[] = {
  240. {
  241. .digest = "\x9c\x11\x85\xa5\xc5\xe9\xfc\x54\x61\x28"
  242. "\x08\x97\x7e\xe8\xf5\x48\xb2\x25\x8d\x31",
  243. }, {
  244. .plaintext = "a",
  245. .psize = 1,
  246. .digest = "\x0b\xdc\x9d\x2d\x25\x6b\x3e\xe9\xda\xae"
  247. "\x34\x7b\xe6\xf4\xdc\x83\x5a\x46\x7f\xfe",
  248. }, {
  249. .plaintext = "abc",
  250. .psize = 3,
  251. .digest = "\x8e\xb2\x08\xf7\xe0\x5d\x98\x7a\x9b\x04"
  252. "\x4a\x8e\x98\xc6\xb0\x87\xf1\x5a\x0b\xfc",
  253. }, {
  254. .plaintext = "message digest",
  255. .psize = 14,
  256. .digest = "\x5d\x06\x89\xef\x49\xd2\xfa\xe5\x72\xb8"
  257. "\x81\xb1\x23\xa8\x5f\xfa\x21\x59\x5f\x36",
  258. }, {
  259. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  260. .psize = 26,
  261. .digest = "\xf7\x1c\x27\x10\x9c\x69\x2c\x1b\x56\xbb"
  262. "\xdc\xeb\x5b\x9d\x28\x65\xb3\x70\x8d\xbc",
  263. }, {
  264. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
  265. "fghijklmnopqrstuvwxyz0123456789",
  266. .psize = 62,
  267. .digest = "\xb0\xe2\x0b\x6e\x31\x16\x64\x02\x86\xed"
  268. "\x3a\x87\xa5\x71\x30\x79\xb2\x1f\x51\x89",
  269. }, {
  270. .plaintext = "1234567890123456789012345678901234567890"
  271. "1234567890123456789012345678901234567890",
  272. .psize = 80,
  273. .digest = "\x9b\x75\x2e\x45\x57\x3d\x4b\x39\xf4\xdb"
  274. "\xd3\x32\x3c\xab\x82\xbf\x63\x32\x6b\xfb",
  275. }, {
  276. .plaintext = "abcdbcdecdefdefgefghfghighij"
  277. "hijkijkljklmklmnlmnomnopnopq",
  278. .psize = 56,
  279. .digest = "\x12\xa0\x53\x38\x4a\x9c\x0c\x88\xe4\x05"
  280. "\xa0\x6c\x27\xdc\xf4\x9a\xda\x62\xeb\x2b",
  281. .np = 2,
  282. .tap = { 28, 28 },
  283. }, {
  284. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
  285. "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
  286. "lmnopqrsmnopqrstnopqrstu",
  287. .psize = 112,
  288. .digest = "\x6f\x3f\xa3\x9b\x6b\x50\x3c\x38\x4f\x91"
  289. "\x9a\x49\xa7\xaa\x5c\x2c\x08\xbd\xfb\x45",
  290. }, {
  291. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  292. .psize = 32,
  293. .digest = "\x94\xc2\x64\x11\x54\x04\xe6\x33\x79\x0d"
  294. "\xfc\xc8\x7b\x58\x7d\x36\x77\x06\x7d\x9f",
  295. }
  296. };
  297. /*
  298. * RIPEMD-256 test vectors
  299. */
  300. #define RMD256_TEST_VECTORS 8
  301. static struct hash_testvec rmd256_tv_template[] = {
  302. {
  303. .digest = "\x02\xba\x4c\x4e\x5f\x8e\xcd\x18"
  304. "\x77\xfc\x52\xd6\x4d\x30\xe3\x7a"
  305. "\x2d\x97\x74\xfb\x1e\x5d\x02\x63"
  306. "\x80\xae\x01\x68\xe3\xc5\x52\x2d",
  307. }, {
  308. .plaintext = "a",
  309. .psize = 1,
  310. .digest = "\xf9\x33\x3e\x45\xd8\x57\xf5\xd9"
  311. "\x0a\x91\xba\xb7\x0a\x1e\xba\x0c"
  312. "\xfb\x1b\xe4\xb0\x78\x3c\x9a\xcf"
  313. "\xcd\x88\x3a\x91\x34\x69\x29\x25",
  314. }, {
  315. .plaintext = "abc",
  316. .psize = 3,
  317. .digest = "\xaf\xbd\x6e\x22\x8b\x9d\x8c\xbb"
  318. "\xce\xf5\xca\x2d\x03\xe6\xdb\xa1"
  319. "\x0a\xc0\xbc\x7d\xcb\xe4\x68\x0e"
  320. "\x1e\x42\xd2\xe9\x75\x45\x9b\x65",
  321. }, {
  322. .plaintext = "message digest",
  323. .psize = 14,
  324. .digest = "\x87\xe9\x71\x75\x9a\x1c\xe4\x7a"
  325. "\x51\x4d\x5c\x91\x4c\x39\x2c\x90"
  326. "\x18\xc7\xc4\x6b\xc1\x44\x65\x55"
  327. "\x4a\xfc\xdf\x54\xa5\x07\x0c\x0e",
  328. }, {
  329. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  330. .psize = 26,
  331. .digest = "\x64\x9d\x30\x34\x75\x1e\xa2\x16"
  332. "\x77\x6b\xf9\xa1\x8a\xcc\x81\xbc"
  333. "\x78\x96\x11\x8a\x51\x97\x96\x87"
  334. "\x82\xdd\x1f\xd9\x7d\x8d\x51\x33",
  335. }, {
  336. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
  337. "fghijklmnopqrstuvwxyz0123456789",
  338. .psize = 62,
  339. .digest = "\x57\x40\xa4\x08\xac\x16\xb7\x20"
  340. "\xb8\x44\x24\xae\x93\x1c\xbb\x1f"
  341. "\xe3\x63\xd1\xd0\xbf\x40\x17\xf1"
  342. "\xa8\x9f\x7e\xa6\xde\x77\xa0\xb8",
  343. }, {
  344. .plaintext = "1234567890123456789012345678901234567890"
  345. "1234567890123456789012345678901234567890",
  346. .psize = 80,
  347. .digest = "\x06\xfd\xcc\x7a\x40\x95\x48\xaa"
  348. "\xf9\x13\x68\xc0\x6a\x62\x75\xb5"
  349. "\x53\xe3\xf0\x99\xbf\x0e\xa4\xed"
  350. "\xfd\x67\x78\xdf\x89\xa8\x90\xdd",
  351. }, {
  352. .plaintext = "abcdbcdecdefdefgefghfghighij"
  353. "hijkijkljklmklmnlmnomnopnopq",
  354. .psize = 56,
  355. .digest = "\x38\x43\x04\x55\x83\xaa\xc6\xc8"
  356. "\xc8\xd9\x12\x85\x73\xe7\xa9\x80"
  357. "\x9a\xfb\x2a\x0f\x34\xcc\xc3\x6e"
  358. "\xa9\xe7\x2f\x16\xf6\x36\x8e\x3f",
  359. .np = 2,
  360. .tap = { 28, 28 },
  361. }
  362. };
  363. /*
  364. * RIPEMD-320 test vectors
  365. */
  366. #define RMD320_TEST_VECTORS 8
  367. static struct hash_testvec rmd320_tv_template[] = {
  368. {
  369. .digest = "\x22\xd6\x5d\x56\x61\x53\x6c\xdc\x75\xc1"
  370. "\xfd\xf5\xc6\xde\x7b\x41\xb9\xf2\x73\x25"
  371. "\xeb\xc6\x1e\x85\x57\x17\x7d\x70\x5a\x0e"
  372. "\xc8\x80\x15\x1c\x3a\x32\xa0\x08\x99\xb8",
  373. }, {
  374. .plaintext = "a",
  375. .psize = 1,
  376. .digest = "\xce\x78\x85\x06\x38\xf9\x26\x58\xa5\xa5"
  377. "\x85\x09\x75\x79\x92\x6d\xda\x66\x7a\x57"
  378. "\x16\x56\x2c\xfc\xf6\xfb\xe7\x7f\x63\x54"
  379. "\x2f\x99\xb0\x47\x05\xd6\x97\x0d\xff\x5d",
  380. }, {
  381. .plaintext = "abc",
  382. .psize = 3,
  383. .digest = "\xde\x4c\x01\xb3\x05\x4f\x89\x30\xa7\x9d"
  384. "\x09\xae\x73\x8e\x92\x30\x1e\x5a\x17\x08"
  385. "\x5b\xef\xfd\xc1\xb8\xd1\x16\x71\x3e\x74"
  386. "\xf8\x2f\xa9\x42\xd6\x4c\xdb\xc4\x68\x2d",
  387. }, {
  388. .plaintext = "message digest",
  389. .psize = 14,
  390. .digest = "\x3a\x8e\x28\x50\x2e\xd4\x5d\x42\x2f\x68"
  391. "\x84\x4f\x9d\xd3\x16\xe7\xb9\x85\x33\xfa"
  392. "\x3f\x2a\x91\xd2\x9f\x84\xd4\x25\xc8\x8d"
  393. "\x6b\x4e\xff\x72\x7d\xf6\x6a\x7c\x01\x97",
  394. }, {
  395. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  396. .psize = 26,
  397. .digest = "\xca\xbd\xb1\x81\x0b\x92\x47\x0a\x20\x93"
  398. "\xaa\x6b\xce\x05\x95\x2c\x28\x34\x8c\xf4"
  399. "\x3f\xf6\x08\x41\x97\x51\x66\xbb\x40\xed"
  400. "\x23\x40\x04\xb8\x82\x44\x63\xe6\xb0\x09",
  401. }, {
  402. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
  403. "fghijklmnopqrstuvwxyz0123456789",
  404. .psize = 62,
  405. .digest = "\xed\x54\x49\x40\xc8\x6d\x67\xf2\x50\xd2"
  406. "\x32\xc3\x0b\x7b\x3e\x57\x70\xe0\xc6\x0c"
  407. "\x8c\xb9\xa4\xca\xfe\x3b\x11\x38\x8a\xf9"
  408. "\x92\x0e\x1b\x99\x23\x0b\x84\x3c\x86\xa4",
  409. }, {
  410. .plaintext = "1234567890123456789012345678901234567890"
  411. "1234567890123456789012345678901234567890",
  412. .psize = 80,
  413. .digest = "\x55\x78\x88\xaf\x5f\x6d\x8e\xd6\x2a\xb6"
  414. "\x69\x45\xc6\xd2\xa0\xa4\x7e\xcd\x53\x41"
  415. "\xe9\x15\xeb\x8f\xea\x1d\x05\x24\x95\x5f"
  416. "\x82\x5d\xc7\x17\xe4\xa0\x08\xab\x2d\x42",
  417. }, {
  418. .plaintext = "abcdbcdecdefdefgefghfghighij"
  419. "hijkijkljklmklmnlmnomnopnopq",
  420. .psize = 56,
  421. .digest = "\xd0\x34\xa7\x95\x0c\xf7\x22\x02\x1b\xa4"
  422. "\xb8\x4d\xf7\x69\xa5\xde\x20\x60\xe2\x59"
  423. "\xdf\x4c\x9b\xb4\xa4\x26\x8c\x0e\x93\x5b"
  424. "\xbc\x74\x70\xa9\x69\xc9\xd0\x72\xa1\xac",
  425. .np = 2,
  426. .tap = { 28, 28 },
  427. }
  428. };
  429. /*
  430. * SHA1 test vectors from from FIPS PUB 180-1
  431. * Long vector from CAVS 5.0
  432. */
  433. #define SHA1_TEST_VECTORS 3
  434. static struct hash_testvec sha1_tv_template[] = {
  435. {
  436. .plaintext = "abc",
  437. .psize = 3,
  438. .digest = "\xa9\x99\x3e\x36\x47\x06\x81\x6a\xba\x3e"
  439. "\x25\x71\x78\x50\xc2\x6c\x9c\xd0\xd8\x9d",
  440. }, {
  441. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  442. .psize = 56,
  443. .digest = "\x84\x98\x3e\x44\x1c\x3b\xd2\x6e\xba\xae"
  444. "\x4a\xa1\xf9\x51\x29\xe5\xe5\x46\x70\xf1",
  445. .np = 2,
  446. .tap = { 28, 28 }
  447. }, {
  448. .plaintext = "\xec\x29\x56\x12\x44\xed\xe7\x06"
  449. "\xb6\xeb\x30\xa1\xc3\x71\xd7\x44"
  450. "\x50\xa1\x05\xc3\xf9\x73\x5f\x7f"
  451. "\xa9\xfe\x38\xcf\x67\xf3\x04\xa5"
  452. "\x73\x6a\x10\x6e\x92\xe1\x71\x39"
  453. "\xa6\x81\x3b\x1c\x81\xa4\xf3\xd3"
  454. "\xfb\x95\x46\xab\x42\x96\xfa\x9f"
  455. "\x72\x28\x26\xc0\x66\x86\x9e\xda"
  456. "\xcd\x73\xb2\x54\x80\x35\x18\x58"
  457. "\x13\xe2\x26\x34\xa9\xda\x44\x00"
  458. "\x0d\x95\xa2\x81\xff\x9f\x26\x4e"
  459. "\xcc\xe0\xa9\x31\x22\x21\x62\xd0"
  460. "\x21\xcc\xa2\x8d\xb5\xf3\xc2\xaa"
  461. "\x24\x94\x5a\xb1\xe3\x1c\xb4\x13"
  462. "\xae\x29\x81\x0f\xd7\x94\xca\xd5"
  463. "\xdf\xaf\x29\xec\x43\xcb\x38\xd1"
  464. "\x98\xfe\x4a\xe1\xda\x23\x59\x78"
  465. "\x02\x21\x40\x5b\xd6\x71\x2a\x53"
  466. "\x05\xda\x4b\x1b\x73\x7f\xce\x7c"
  467. "\xd2\x1c\x0e\xb7\x72\x8d\x08\x23"
  468. "\x5a\x90\x11",
  469. .psize = 163,
  470. .digest = "\x97\x01\x11\xc4\xe7\x7b\xcc\x88\xcc\x20"
  471. "\x45\x9c\x02\xb6\x9b\x4a\xa8\xf5\x82\x17",
  472. .np = 4,
  473. .tap = { 63, 64, 31, 5 }
  474. }
  475. };
  476. /*
  477. * SHA224 test vectors from from FIPS PUB 180-2
  478. */
  479. #define SHA224_TEST_VECTORS 2
  480. static struct hash_testvec sha224_tv_template[] = {
  481. {
  482. .plaintext = "abc",
  483. .psize = 3,
  484. .digest = "\x23\x09\x7D\x22\x34\x05\xD8\x22"
  485. "\x86\x42\xA4\x77\xBD\xA2\x55\xB3"
  486. "\x2A\xAD\xBC\xE4\xBD\xA0\xB3\xF7"
  487. "\xE3\x6C\x9D\xA7",
  488. }, {
  489. .plaintext =
  490. "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  491. .psize = 56,
  492. .digest = "\x75\x38\x8B\x16\x51\x27\x76\xCC"
  493. "\x5D\xBA\x5D\xA1\xFD\x89\x01\x50"
  494. "\xB0\xC6\x45\x5C\xB4\xF5\x8B\x19"
  495. "\x52\x52\x25\x25",
  496. .np = 2,
  497. .tap = { 28, 28 }
  498. }
  499. };
  500. /*
  501. * SHA256 test vectors from from NIST
  502. */
  503. #define SHA256_TEST_VECTORS 2
  504. static struct hash_testvec sha256_tv_template[] = {
  505. {
  506. .plaintext = "abc",
  507. .psize = 3,
  508. .digest = "\xba\x78\x16\xbf\x8f\x01\xcf\xea"
  509. "\x41\x41\x40\xde\x5d\xae\x22\x23"
  510. "\xb0\x03\x61\xa3\x96\x17\x7a\x9c"
  511. "\xb4\x10\xff\x61\xf2\x00\x15\xad",
  512. }, {
  513. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  514. .psize = 56,
  515. .digest = "\x24\x8d\x6a\x61\xd2\x06\x38\xb8"
  516. "\xe5\xc0\x26\x93\x0c\x3e\x60\x39"
  517. "\xa3\x3c\xe4\x59\x64\xff\x21\x67"
  518. "\xf6\xec\xed\xd4\x19\xdb\x06\xc1",
  519. .np = 2,
  520. .tap = { 28, 28 }
  521. },
  522. };
  523. /*
  524. * SHA384 test vectors from from NIST and kerneli
  525. */
  526. #define SHA384_TEST_VECTORS 4
  527. static struct hash_testvec sha384_tv_template[] = {
  528. {
  529. .plaintext= "abc",
  530. .psize = 3,
  531. .digest = "\xcb\x00\x75\x3f\x45\xa3\x5e\x8b"
  532. "\xb5\xa0\x3d\x69\x9a\xc6\x50\x07"
  533. "\x27\x2c\x32\xab\x0e\xde\xd1\x63"
  534. "\x1a\x8b\x60\x5a\x43\xff\x5b\xed"
  535. "\x80\x86\x07\x2b\xa1\xe7\xcc\x23"
  536. "\x58\xba\xec\xa1\x34\xc8\x25\xa7",
  537. }, {
  538. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  539. .psize = 56,
  540. .digest = "\x33\x91\xfd\xdd\xfc\x8d\xc7\x39"
  541. "\x37\x07\xa6\x5b\x1b\x47\x09\x39"
  542. "\x7c\xf8\xb1\xd1\x62\xaf\x05\xab"
  543. "\xfe\x8f\x45\x0d\xe5\xf3\x6b\xc6"
  544. "\xb0\x45\x5a\x85\x20\xbc\x4e\x6f"
  545. "\x5f\xe9\x5b\x1f\xe3\xc8\x45\x2b",
  546. }, {
  547. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
  548. "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
  549. .psize = 112,
  550. .digest = "\x09\x33\x0c\x33\xf7\x11\x47\xe8"
  551. "\x3d\x19\x2f\xc7\x82\xcd\x1b\x47"
  552. "\x53\x11\x1b\x17\x3b\x3b\x05\xd2"
  553. "\x2f\xa0\x80\x86\xe3\xb0\xf7\x12"
  554. "\xfc\xc7\xc7\x1a\x55\x7e\x2d\xb9"
  555. "\x66\xc3\xe9\xfa\x91\x74\x60\x39",
  556. }, {
  557. .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
  558. "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
  559. .psize = 104,
  560. .digest = "\x3d\x20\x89\x73\xab\x35\x08\xdb"
  561. "\xbd\x7e\x2c\x28\x62\xba\x29\x0a"
  562. "\xd3\x01\x0e\x49\x78\xc1\x98\xdc"
  563. "\x4d\x8f\xd0\x14\xe5\x82\x82\x3a"
  564. "\x89\xe1\x6f\x9b\x2a\x7b\xbc\x1a"
  565. "\xc9\x38\xe2\xd1\x99\xe8\xbe\xa4",
  566. .np = 4,
  567. .tap = { 26, 26, 26, 26 }
  568. },
  569. };
  570. /*
  571. * SHA512 test vectors from from NIST and kerneli
  572. */
  573. #define SHA512_TEST_VECTORS 4
  574. static struct hash_testvec sha512_tv_template[] = {
  575. {
  576. .plaintext = "abc",
  577. .psize = 3,
  578. .digest = "\xdd\xaf\x35\xa1\x93\x61\x7a\xba"
  579. "\xcc\x41\x73\x49\xae\x20\x41\x31"
  580. "\x12\xe6\xfa\x4e\x89\xa9\x7e\xa2"
  581. "\x0a\x9e\xee\xe6\x4b\x55\xd3\x9a"
  582. "\x21\x92\x99\x2a\x27\x4f\xc1\xa8"
  583. "\x36\xba\x3c\x23\xa3\xfe\xeb\xbd"
  584. "\x45\x4d\x44\x23\x64\x3c\xe8\x0e"
  585. "\x2a\x9a\xc9\x4f\xa5\x4c\xa4\x9f",
  586. }, {
  587. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  588. .psize = 56,
  589. .digest = "\x20\x4a\x8f\xc6\xdd\xa8\x2f\x0a"
  590. "\x0c\xed\x7b\xeb\x8e\x08\xa4\x16"
  591. "\x57\xc1\x6e\xf4\x68\xb2\x28\xa8"
  592. "\x27\x9b\xe3\x31\xa7\x03\xc3\x35"
  593. "\x96\xfd\x15\xc1\x3b\x1b\x07\xf9"
  594. "\xaa\x1d\x3b\xea\x57\x78\x9c\xa0"
  595. "\x31\xad\x85\xc7\xa7\x1d\xd7\x03"
  596. "\x54\xec\x63\x12\x38\xca\x34\x45",
  597. }, {
  598. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
  599. "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
  600. .psize = 112,
  601. .digest = "\x8e\x95\x9b\x75\xda\xe3\x13\xda"
  602. "\x8c\xf4\xf7\x28\x14\xfc\x14\x3f"
  603. "\x8f\x77\x79\xc6\xeb\x9f\x7f\xa1"
  604. "\x72\x99\xae\xad\xb6\x88\x90\x18"
  605. "\x50\x1d\x28\x9e\x49\x00\xf7\xe4"
  606. "\x33\x1b\x99\xde\xc4\xb5\x43\x3a"
  607. "\xc7\xd3\x29\xee\xb6\xdd\x26\x54"
  608. "\x5e\x96\xe5\x5b\x87\x4b\xe9\x09",
  609. }, {
  610. .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
  611. "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
  612. .psize = 104,
  613. .digest = "\x93\x0d\x0c\xef\xcb\x30\xff\x11"
  614. "\x33\xb6\x89\x81\x21\xf1\xcf\x3d"
  615. "\x27\x57\x8a\xfc\xaf\xe8\x67\x7c"
  616. "\x52\x57\xcf\x06\x99\x11\xf7\x5d"
  617. "\x8f\x58\x31\xb5\x6e\xbf\xda\x67"
  618. "\xb2\x78\xe6\x6d\xff\x8b\x84\xfe"
  619. "\x2b\x28\x70\xf7\x42\xa5\x80\xd8"
  620. "\xed\xb4\x19\x87\x23\x28\x50\xc9",
  621. .np = 4,
  622. .tap = { 26, 26, 26, 26 }
  623. },
  624. };
  625. /*
  626. * WHIRLPOOL test vectors from Whirlpool package
  627. * by Vincent Rijmen and Paulo S. L. M. Barreto as part of the NESSIE
  628. * submission
  629. */
  630. #define WP512_TEST_VECTORS 8
  631. static struct hash_testvec wp512_tv_template[] = {
  632. {
  633. .plaintext = "",
  634. .psize = 0,
  635. .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
  636. "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
  637. "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
  638. "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
  639. "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
  640. "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57"
  641. "\xEA\x89\x64\xE5\x9B\x63\xD9\x37"
  642. "\x08\xB1\x38\xCC\x42\xA6\x6E\xB3",
  643. }, {
  644. .plaintext = "a",
  645. .psize = 1,
  646. .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
  647. "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
  648. "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
  649. "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
  650. "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
  651. "\x3A\x42\x39\x1A\x39\x14\x5A\x59"
  652. "\x1A\x92\x20\x0D\x56\x01\x95\xE5"
  653. "\x3B\x47\x85\x84\xFD\xAE\x23\x1A",
  654. }, {
  655. .plaintext = "abc",
  656. .psize = 3,
  657. .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
  658. "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
  659. "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
  660. "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
  661. "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
  662. "\x7D\x0E\x34\x95\x71\x14\xCB\xD6"
  663. "\xC7\x97\xFC\x9D\x95\xD8\xB5\x82"
  664. "\xD2\x25\x29\x20\x76\xD4\xEE\xF5",
  665. }, {
  666. .plaintext = "message digest",
  667. .psize = 14,
  668. .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
  669. "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
  670. "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
  671. "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
  672. "\x84\x21\x55\x76\x59\xEF\x55\xC1"
  673. "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6"
  674. "\x92\xED\x92\x00\x52\x83\x8F\x33"
  675. "\x62\xE8\x6D\xBD\x37\xA8\x90\x3E",
  676. }, {
  677. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  678. .psize = 26,
  679. .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
  680. "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
  681. "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
  682. "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
  683. "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
  684. "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6"
  685. "\xF6\x8F\x67\x3E\x72\x07\x86\x5D"
  686. "\x5D\x98\x19\xA3\xDB\xA4\xEB\x3B",
  687. }, {
  688. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  689. "abcdefghijklmnopqrstuvwxyz0123456789",
  690. .psize = 62,
  691. .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
  692. "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
  693. "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
  694. "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
  695. "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
  696. "\xB7\xCB\x57\x21\x1B\x92\x81\xA6"
  697. "\x55\x17\xCC\x87\x9D\x7B\x96\x21"
  698. "\x42\xC6\x5F\x5A\x7A\xF0\x14\x67",
  699. }, {
  700. .plaintext = "1234567890123456789012345678901234567890"
  701. "1234567890123456789012345678901234567890",
  702. .psize = 80,
  703. .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
  704. "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
  705. "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
  706. "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
  707. "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
  708. "\x38\xCD\x04\x7B\x26\x81\xA5\x1A"
  709. "\x2C\x60\x48\x1E\x88\xC5\xA2\x0B"
  710. "\x2C\x2A\x80\xCF\x3A\x9A\x08\x3B",
  711. }, {
  712. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  713. .psize = 32,
  714. .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
  715. "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
  716. "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
  717. "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
  718. "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
  719. "\x7B\x94\x76\x39\xFE\x05\x0B\x56"
  720. "\x93\x9B\xAA\xA0\xAD\xFF\x9A\xE6"
  721. "\x74\x5B\x7B\x18\x1C\x3B\xE3\xFD",
  722. },
  723. };
  724. #define WP384_TEST_VECTORS 8
  725. static struct hash_testvec wp384_tv_template[] = {
  726. {
  727. .plaintext = "",
  728. .psize = 0,
  729. .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
  730. "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
  731. "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
  732. "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
  733. "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
  734. "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57",
  735. }, {
  736. .plaintext = "a",
  737. .psize = 1,
  738. .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
  739. "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
  740. "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
  741. "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
  742. "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
  743. "\x3A\x42\x39\x1A\x39\x14\x5A\x59",
  744. }, {
  745. .plaintext = "abc",
  746. .psize = 3,
  747. .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
  748. "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
  749. "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
  750. "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
  751. "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
  752. "\x7D\x0E\x34\x95\x71\x14\xCB\xD6",
  753. }, {
  754. .plaintext = "message digest",
  755. .psize = 14,
  756. .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
  757. "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
  758. "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
  759. "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
  760. "\x84\x21\x55\x76\x59\xEF\x55\xC1"
  761. "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6",
  762. }, {
  763. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  764. .psize = 26,
  765. .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
  766. "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
  767. "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
  768. "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
  769. "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
  770. "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6",
  771. }, {
  772. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  773. "abcdefghijklmnopqrstuvwxyz0123456789",
  774. .psize = 62,
  775. .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
  776. "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
  777. "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
  778. "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
  779. "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
  780. "\xB7\xCB\x57\x21\x1B\x92\x81\xA6",
  781. }, {
  782. .plaintext = "1234567890123456789012345678901234567890"
  783. "1234567890123456789012345678901234567890",
  784. .psize = 80,
  785. .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
  786. "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
  787. "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
  788. "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
  789. "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
  790. "\x38\xCD\x04\x7B\x26\x81\xA5\x1A",
  791. }, {
  792. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  793. .psize = 32,
  794. .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
  795. "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
  796. "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
  797. "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
  798. "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
  799. "\x7B\x94\x76\x39\xFE\x05\x0B\x56",
  800. },
  801. };
  802. #define WP256_TEST_VECTORS 8
  803. static struct hash_testvec wp256_tv_template[] = {
  804. {
  805. .plaintext = "",
  806. .psize = 0,
  807. .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
  808. "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
  809. "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
  810. "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7",
  811. }, {
  812. .plaintext = "a",
  813. .psize = 1,
  814. .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
  815. "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
  816. "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
  817. "\x73\xC4\x50\x01\xD0\x08\x7B\x42",
  818. }, {
  819. .plaintext = "abc",
  820. .psize = 3,
  821. .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
  822. "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
  823. "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
  824. "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C",
  825. }, {
  826. .plaintext = "message digest",
  827. .psize = 14,
  828. .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
  829. "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
  830. "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
  831. "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B",
  832. }, {
  833. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  834. .psize = 26,
  835. .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
  836. "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
  837. "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
  838. "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B",
  839. }, {
  840. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  841. "abcdefghijklmnopqrstuvwxyz0123456789",
  842. .psize = 62,
  843. .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
  844. "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
  845. "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
  846. "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E",
  847. }, {
  848. .plaintext = "1234567890123456789012345678901234567890"
  849. "1234567890123456789012345678901234567890",
  850. .psize = 80,
  851. .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
  852. "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
  853. "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
  854. "\x54\x9C\x4A\xFA\xDB\x60\x14\x29",
  855. }, {
  856. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  857. .psize = 32,
  858. .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
  859. "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
  860. "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
  861. "\x07\xC5\x62\xF9\x88\xE9\x5C\x69",
  862. },
  863. };
  864. /*
  865. * TIGER test vectors from Tiger website
  866. */
  867. #define TGR192_TEST_VECTORS 6
  868. static struct hash_testvec tgr192_tv_template[] = {
  869. {
  870. .plaintext = "",
  871. .psize = 0,
  872. .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
  873. "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
  874. "\xf3\x73\xde\x2d\x49\x58\x4e\x7a",
  875. }, {
  876. .plaintext = "abc",
  877. .psize = 3,
  878. .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
  879. "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
  880. "\x93\x5f\x7b\x95\x1c\x13\x29\x51",
  881. }, {
  882. .plaintext = "Tiger",
  883. .psize = 5,
  884. .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
  885. "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
  886. "\x37\x79\x0c\x11\x6f\x9d\x2b\xdf",
  887. }, {
  888. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
  889. .psize = 64,
  890. .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
  891. "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
  892. "\xb5\x86\x44\x50\x34\xa5\xa3\x86",
  893. }, {
  894. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
  895. .psize = 64,
  896. .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
  897. "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
  898. "\x57\x89\x65\x65\x97\x5f\x91\x97",
  899. }, {
  900. .plaintext = "Tiger - A Fast New Hash Function, "
  901. "by Ross Anderson and Eli Biham, "
  902. "proceedings of Fast Software Encryption 3, "
  903. "Cambridge, 1996.",
  904. .psize = 125,
  905. .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
  906. "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
  907. "\xdd\x68\x15\x1d\x50\x39\x74\xfc",
  908. },
  909. };
  910. #define TGR160_TEST_VECTORS 6
  911. static struct hash_testvec tgr160_tv_template[] = {
  912. {
  913. .plaintext = "",
  914. .psize = 0,
  915. .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
  916. "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
  917. "\xf3\x73\xde\x2d",
  918. }, {
  919. .plaintext = "abc",
  920. .psize = 3,
  921. .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
  922. "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
  923. "\x93\x5f\x7b\x95",
  924. }, {
  925. .plaintext = "Tiger",
  926. .psize = 5,
  927. .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
  928. "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
  929. "\x37\x79\x0c\x11",
  930. }, {
  931. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
  932. .psize = 64,
  933. .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
  934. "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
  935. "\xb5\x86\x44\x50",
  936. }, {
  937. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
  938. .psize = 64,
  939. .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
  940. "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
  941. "\x57\x89\x65\x65",
  942. }, {
  943. .plaintext = "Tiger - A Fast New Hash Function, "
  944. "by Ross Anderson and Eli Biham, "
  945. "proceedings of Fast Software Encryption 3, "
  946. "Cambridge, 1996.",
  947. .psize = 125,
  948. .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
  949. "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
  950. "\xdd\x68\x15\x1d",
  951. },
  952. };
  953. #define TGR128_TEST_VECTORS 6
  954. static struct hash_testvec tgr128_tv_template[] = {
  955. {
  956. .plaintext = "",
  957. .psize = 0,
  958. .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
  959. "\x16\x16\x6e\x76\xb1\xbb\x92\x5f",
  960. }, {
  961. .plaintext = "abc",
  962. .psize = 3,
  963. .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
  964. "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf",
  965. }, {
  966. .plaintext = "Tiger",
  967. .psize = 5,
  968. .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
  969. "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec",
  970. }, {
  971. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
  972. .psize = 64,
  973. .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
  974. "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e",
  975. }, {
  976. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
  977. .psize = 64,
  978. .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
  979. "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9",
  980. }, {
  981. .plaintext = "Tiger - A Fast New Hash Function, "
  982. "by Ross Anderson and Eli Biham, "
  983. "proceedings of Fast Software Encryption 3, "
  984. "Cambridge, 1996.",
  985. .psize = 125,
  986. .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
  987. "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24",
  988. },
  989. };
  990. #define GHASH_TEST_VECTORS 1
  991. static struct hash_testvec ghash_tv_template[] =
  992. {
  993. {
  994. .key = "\xdf\xa6\xbf\x4d\xed\x81\xdb\x03\xff\xca\xff\x95\xf8\x30\xf0\x61",
  995. .ksize = 16,
  996. .plaintext = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0\xb3\x2b\x66\x56\xa0\x5b\x40\xb6",
  997. .psize = 16,
  998. .digest = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6"
  999. "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60",
  1000. },
  1001. };
  1002. /*
  1003. * HMAC-MD5 test vectors from RFC2202
  1004. * (These need to be fixed to not use strlen).
  1005. */
  1006. #define HMAC_MD5_TEST_VECTORS 7
  1007. static struct hash_testvec hmac_md5_tv_template[] =
  1008. {
  1009. {
  1010. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  1011. .ksize = 16,
  1012. .plaintext = "Hi There",
  1013. .psize = 8,
  1014. .digest = "\x92\x94\x72\x7a\x36\x38\xbb\x1c"
  1015. "\x13\xf4\x8e\xf8\x15\x8b\xfc\x9d",
  1016. }, {
  1017. .key = "Jefe",
  1018. .ksize = 4,
  1019. .plaintext = "what do ya want for nothing?",
  1020. .psize = 28,
  1021. .digest = "\x75\x0c\x78\x3e\x6a\xb0\xb5\x03"
  1022. "\xea\xa8\x6e\x31\x0a\x5d\xb7\x38",
  1023. .np = 2,
  1024. .tap = {14, 14}
  1025. }, {
  1026. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  1027. .ksize = 16,
  1028. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1029. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1030. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1031. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  1032. .psize = 50,
  1033. .digest = "\x56\xbe\x34\x52\x1d\x14\x4c\x88"
  1034. "\xdb\xb8\xc7\x33\xf0\xe8\xb3\xf6",
  1035. }, {
  1036. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1037. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1038. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  1039. .ksize = 25,
  1040. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1041. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1042. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1043. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1044. .psize = 50,
  1045. .digest = "\x69\x7e\xaf\x0a\xca\x3a\x3a\xea"
  1046. "\x3a\x75\x16\x47\x46\xff\xaa\x79",
  1047. }, {
  1048. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  1049. .ksize = 16,
  1050. .plaintext = "Test With Truncation",
  1051. .psize = 20,
  1052. .digest = "\x56\x46\x1e\xf2\x34\x2e\xdc\x00"
  1053. "\xf9\xba\xb9\x95\x69\x0e\xfd\x4c",
  1054. }, {
  1055. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1056. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1057. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1058. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1059. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1060. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1061. "\xaa\xaa",
  1062. .ksize = 80,
  1063. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1064. .psize = 54,
  1065. .digest = "\x6b\x1a\xb7\xfe\x4b\xd7\xbf\x8f"
  1066. "\x0b\x62\xe6\xce\x61\xb9\xd0\xcd",
  1067. }, {
  1068. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1069. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1070. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1071. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1072. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1073. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1074. "\xaa\xaa",
  1075. .ksize = 80,
  1076. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  1077. "Block-Size Data",
  1078. .psize = 73,
  1079. .digest = "\x6f\x63\x0f\xad\x67\xcd\xa0\xee"
  1080. "\x1f\xb1\xf5\x62\xdb\x3a\xa5\x3e",
  1081. },
  1082. };
  1083. /*
  1084. * HMAC-RIPEMD128 test vectors from RFC2286
  1085. */
  1086. #define HMAC_RMD128_TEST_VECTORS 7
  1087. static struct hash_testvec hmac_rmd128_tv_template[] = {
  1088. {
  1089. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  1090. .ksize = 16,
  1091. .plaintext = "Hi There",
  1092. .psize = 8,
  1093. .digest = "\xfb\xf6\x1f\x94\x92\xaa\x4b\xbf"
  1094. "\x81\xc1\x72\xe8\x4e\x07\x34\xdb",
  1095. }, {
  1096. .key = "Jefe",
  1097. .ksize = 4,
  1098. .plaintext = "what do ya want for nothing?",
  1099. .psize = 28,
  1100. .digest = "\x87\x5f\x82\x88\x62\xb6\xb3\x34"
  1101. "\xb4\x27\xc5\x5f\x9f\x7f\xf0\x9b",
  1102. .np = 2,
  1103. .tap = { 14, 14 },
  1104. }, {
  1105. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  1106. .ksize = 16,
  1107. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1108. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1109. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1110. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  1111. .psize = 50,
  1112. .digest = "\x09\xf0\xb2\x84\x6d\x2f\x54\x3d"
  1113. "\xa3\x63\xcb\xec\x8d\x62\xa3\x8d",
  1114. }, {
  1115. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1116. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1117. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  1118. .ksize = 25,
  1119. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1120. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1121. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1122. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1123. .psize = 50,
  1124. .digest = "\xbd\xbb\xd7\xcf\x03\xe4\x4b\x5a"
  1125. "\xa6\x0a\xf8\x15\xbe\x4d\x22\x94",
  1126. }, {
  1127. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  1128. .ksize = 16,
  1129. .plaintext = "Test With Truncation",
  1130. .psize = 20,
  1131. .digest = "\xe7\x98\x08\xf2\x4b\x25\xfd\x03"
  1132. "\x1c\x15\x5f\x0d\x55\x1d\x9a\x3a",
  1133. }, {
  1134. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1135. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1136. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1137. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1138. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1139. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1140. "\xaa\xaa",
  1141. .ksize = 80,
  1142. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1143. .psize = 54,
  1144. .digest = "\xdc\x73\x29\x28\xde\x98\x10\x4a"
  1145. "\x1f\x59\xd3\x73\xc1\x50\xac\xbb",
  1146. }, {
  1147. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1148. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1149. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1150. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1151. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1152. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1153. "\xaa\xaa",
  1154. .ksize = 80,
  1155. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  1156. "Block-Size Data",
  1157. .psize = 73,
  1158. .digest = "\x5c\x6b\xec\x96\x79\x3e\x16\xd4"
  1159. "\x06\x90\xc2\x37\x63\x5f\x30\xc5",
  1160. },
  1161. };
  1162. /*
  1163. * HMAC-RIPEMD160 test vectors from RFC2286
  1164. */
  1165. #define HMAC_RMD160_TEST_VECTORS 7
  1166. static struct hash_testvec hmac_rmd160_tv_template[] = {
  1167. {
  1168. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  1169. .ksize = 20,
  1170. .plaintext = "Hi There",
  1171. .psize = 8,
  1172. .digest = "\x24\xcb\x4b\xd6\x7d\x20\xfc\x1a\x5d\x2e"
  1173. "\xd7\x73\x2d\xcc\x39\x37\x7f\x0a\x56\x68",
  1174. }, {
  1175. .key = "Jefe",
  1176. .ksize = 4,
  1177. .plaintext = "what do ya want for nothing?",
  1178. .psize = 28,
  1179. .digest = "\xdd\xa6\xc0\x21\x3a\x48\x5a\x9e\x24\xf4"
  1180. "\x74\x20\x64\xa7\xf0\x33\xb4\x3c\x40\x69",
  1181. .np = 2,
  1182. .tap = { 14, 14 },
  1183. }, {
  1184. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  1185. .ksize = 20,
  1186. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1187. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1188. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1189. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  1190. .psize = 50,
  1191. .digest = "\xb0\xb1\x05\x36\x0d\xe7\x59\x96\x0a\xb4"
  1192. "\xf3\x52\x98\xe1\x16\xe2\x95\xd8\xe7\xc1",
  1193. }, {
  1194. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1195. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1196. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  1197. .ksize = 25,
  1198. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1199. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1200. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1201. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1202. .psize = 50,
  1203. .digest = "\xd5\xca\x86\x2f\x4d\x21\xd5\xe6\x10\xe1"
  1204. "\x8b\x4c\xf1\xbe\xb9\x7a\x43\x65\xec\xf4",
  1205. }, {
  1206. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  1207. .ksize = 20,
  1208. .plaintext = "Test With Truncation",
  1209. .psize = 20,
  1210. .digest = "\x76\x19\x69\x39\x78\xf9\x1d\x90\x53\x9a"
  1211. "\xe7\x86\x50\x0f\xf3\xd8\xe0\x51\x8e\x39",
  1212. }, {
  1213. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1214. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1215. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1216. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1217. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1218. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1219. "\xaa\xaa",
  1220. .ksize = 80,
  1221. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1222. .psize = 54,
  1223. .digest = "\x64\x66\xca\x07\xac\x5e\xac\x29\xe1\xbd"
  1224. "\x52\x3e\x5a\xda\x76\x05\xb7\x91\xfd\x8b",
  1225. }, {
  1226. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1227. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1228. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1229. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1230. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1231. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1232. "\xaa\xaa",
  1233. .ksize = 80,
  1234. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  1235. "Block-Size Data",
  1236. .psize = 73,
  1237. .digest = "\x69\xea\x60\x79\x8d\x71\x61\x6c\xce\x5f"
  1238. "\xd0\x87\x1e\x23\x75\x4c\xd7\x5d\x5a\x0a",
  1239. },
  1240. };
  1241. /*
  1242. * HMAC-SHA1 test vectors from RFC2202
  1243. */
  1244. #define HMAC_SHA1_TEST_VECTORS 7
  1245. static struct hash_testvec hmac_sha1_tv_template[] = {
  1246. {
  1247. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  1248. .ksize = 20,
  1249. .plaintext = "Hi There",
  1250. .psize = 8,
  1251. .digest = "\xb6\x17\x31\x86\x55\x05\x72\x64"
  1252. "\xe2\x8b\xc0\xb6\xfb\x37\x8c\x8e\xf1"
  1253. "\x46\xbe",
  1254. }, {
  1255. .key = "Jefe",
  1256. .ksize = 4,
  1257. .plaintext = "what do ya want for nothing?",
  1258. .psize = 28,
  1259. .digest = "\xef\xfc\xdf\x6a\xe5\xeb\x2f\xa2\xd2\x74"
  1260. "\x16\xd5\xf1\x84\xdf\x9c\x25\x9a\x7c\x79",
  1261. .np = 2,
  1262. .tap = { 14, 14 }
  1263. }, {
  1264. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  1265. .ksize = 20,
  1266. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1267. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1268. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1269. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  1270. .psize = 50,
  1271. .digest = "\x12\x5d\x73\x42\xb9\xac\x11\xcd\x91\xa3"
  1272. "\x9a\xf4\x8a\xa1\x7b\x4f\x63\xf1\x75\xd3",
  1273. }, {
  1274. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1275. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1276. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  1277. .ksize = 25,
  1278. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1279. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1280. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1281. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1282. .psize = 50,
  1283. .digest = "\x4c\x90\x07\xf4\x02\x62\x50\xc6\xbc\x84"
  1284. "\x14\xf9\xbf\x50\xc8\x6c\x2d\x72\x35\xda",
  1285. }, {
  1286. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  1287. .ksize = 20,
  1288. .plaintext = "Test With Truncation",
  1289. .psize = 20,
  1290. .digest = "\x4c\x1a\x03\x42\x4b\x55\xe0\x7f\xe7\xf2"
  1291. "\x7b\xe1\xd5\x8b\xb9\x32\x4a\x9a\x5a\x04",
  1292. }, {
  1293. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1294. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1295. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1296. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1297. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1298. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1299. "\xaa\xaa",
  1300. .ksize = 80,
  1301. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1302. .psize = 54,
  1303. .digest = "\xaa\x4a\xe5\xe1\x52\x72\xd0\x0e\x95\x70"
  1304. "\x56\x37\xce\x8a\x3b\x55\xed\x40\x21\x12",
  1305. }, {
  1306. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1307. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1308. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1309. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1310. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1311. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1312. "\xaa\xaa",
  1313. .ksize = 80,
  1314. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  1315. "Block-Size Data",
  1316. .psize = 73,
  1317. .digest = "\xe8\xe9\x9d\x0f\x45\x23\x7d\x78\x6d\x6b"
  1318. "\xba\xa7\x96\x5c\x78\x08\xbb\xff\x1a\x91",
  1319. },
  1320. };
  1321. /*
  1322. * SHA224 HMAC test vectors from RFC4231
  1323. */
  1324. #define HMAC_SHA224_TEST_VECTORS 4
  1325. static struct hash_testvec hmac_sha224_tv_template[] = {
  1326. {
  1327. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1328. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1329. "\x0b\x0b\x0b\x0b",
  1330. .ksize = 20,
  1331. /* ("Hi There") */
  1332. .plaintext = "\x48\x69\x20\x54\x68\x65\x72\x65",
  1333. .psize = 8,
  1334. .digest = "\x89\x6f\xb1\x12\x8a\xbb\xdf\x19"
  1335. "\x68\x32\x10\x7c\xd4\x9d\xf3\x3f"
  1336. "\x47\xb4\xb1\x16\x99\x12\xba\x4f"
  1337. "\x53\x68\x4b\x22",
  1338. }, {
  1339. .key = "Jefe",
  1340. .ksize = 4,
  1341. /* ("what do ya want for nothing?") */
  1342. .plaintext = "\x77\x68\x61\x74\x20\x64\x6f\x20"
  1343. "\x79\x61\x20\x77\x61\x6e\x74\x20"
  1344. "\x66\x6f\x72\x20\x6e\x6f\x74\x68"
  1345. "\x69\x6e\x67\x3f",
  1346. .psize = 28,
  1347. .digest = "\xa3\x0e\x01\x09\x8b\xc6\xdb\xbf"
  1348. "\x45\x69\x0f\x3a\x7e\x9e\x6d\x0f"
  1349. "\x8b\xbe\xa2\xa3\x9e\x61\x48\x00"
  1350. "\x8f\xd0\x5e\x44",
  1351. .np = 4,
  1352. .tap = { 7, 7, 7, 7 }
  1353. }, {
  1354. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1355. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1356. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1357. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1358. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1359. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1360. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1361. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1362. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1363. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1364. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1365. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1366. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1367. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1368. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1369. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1370. "\xaa\xaa\xaa",
  1371. .ksize = 131,
  1372. /* ("Test Using Larger Than Block-Size Key - Hash Key First") */
  1373. .plaintext = "\x54\x65\x73\x74\x20\x55\x73\x69"
  1374. "\x6e\x67\x20\x4c\x61\x72\x67\x65"
  1375. "\x72\x20\x54\x68\x61\x6e\x20\x42"
  1376. "\x6c\x6f\x63\x6b\x2d\x53\x69\x7a"
  1377. "\x65\x20\x4b\x65\x79\x20\x2d\x20"
  1378. "\x48\x61\x73\x68\x20\x4b\x65\x79"
  1379. "\x20\x46\x69\x72\x73\x74",
  1380. .psize = 54,
  1381. .digest = "\x95\xe9\xa0\xdb\x96\x20\x95\xad"
  1382. "\xae\xbe\x9b\x2d\x6f\x0d\xbc\xe2"
  1383. "\xd4\x99\xf1\x12\xf2\xd2\xb7\x27"
  1384. "\x3f\xa6\x87\x0e",
  1385. }, {
  1386. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1387. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1388. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1389. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1390. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1391. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1392. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1393. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1394. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1395. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1396. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1397. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1398. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1399. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1400. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1401. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1402. "\xaa\xaa\xaa",
  1403. .ksize = 131,
  1404. /* ("This is a test using a larger than block-size key and a")
  1405. (" larger than block-size data. The key needs to be")
  1406. (" hashed before being used by the HMAC algorithm.") */
  1407. .plaintext = "\x54\x68\x69\x73\x20\x69\x73\x20"
  1408. "\x61\x20\x74\x65\x73\x74\x20\x75"
  1409. "\x73\x69\x6e\x67\x20\x61\x20\x6c"
  1410. "\x61\x72\x67\x65\x72\x20\x74\x68"
  1411. "\x61\x6e\x20\x62\x6c\x6f\x63\x6b"
  1412. "\x2d\x73\x69\x7a\x65\x20\x6b\x65"
  1413. "\x79\x20\x61\x6e\x64\x20\x61\x20"
  1414. "\x6c\x61\x72\x67\x65\x72\x20\x74"
  1415. "\x68\x61\x6e\x20\x62\x6c\x6f\x63"
  1416. "\x6b\x2d\x73\x69\x7a\x65\x20\x64"
  1417. "\x61\x74\x61\x2e\x20\x54\x68\x65"
  1418. "\x20\x6b\x65\x79\x20\x6e\x65\x65"
  1419. "\x64\x73\x20\x74\x6f\x20\x62\x65"
  1420. "\x20\x68\x61\x73\x68\x65\x64\x20"
  1421. "\x62\x65\x66\x6f\x72\x65\x20\x62"
  1422. "\x65\x69\x6e\x67\x20\x75\x73\x65"
  1423. "\x64\x20\x62\x79\x20\x74\x68\x65"
  1424. "\x20\x48\x4d\x41\x43\x20\x61\x6c"
  1425. "\x67\x6f\x72\x69\x74\x68\x6d\x2e",
  1426. .psize = 152,
  1427. .digest = "\x3a\x85\x41\x66\xac\x5d\x9f\x02"
  1428. "\x3f\x54\xd5\x17\xd0\xb3\x9d\xbd"
  1429. "\x94\x67\x70\xdb\x9c\x2b\x95\xc9"
  1430. "\xf6\xf5\x65\xd1",
  1431. },
  1432. };
  1433. /*
  1434. * HMAC-SHA256 test vectors from
  1435. * draft-ietf-ipsec-ciph-sha-256-01.txt
  1436. */
  1437. #define HMAC_SHA256_TEST_VECTORS 10
  1438. static struct hash_testvec hmac_sha256_tv_template[] = {
  1439. {
  1440. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1441. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1442. "\x11\x12\x13\x14\x15\x16\x17\x18"
  1443. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
  1444. .ksize = 32,
  1445. .plaintext = "abc",
  1446. .psize = 3,
  1447. .digest = "\xa2\x1b\x1f\x5d\x4c\xf4\xf7\x3a"
  1448. "\x4d\xd9\x39\x75\x0f\x7a\x06\x6a"
  1449. "\x7f\x98\xcc\x13\x1c\xb1\x6a\x66"
  1450. "\x92\x75\x90\x21\xcf\xab\x81\x81",
  1451. }, {
  1452. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1453. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1454. "\x11\x12\x13\x14\x15\x16\x17\x18"
  1455. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
  1456. .ksize = 32,
  1457. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  1458. .psize = 56,
  1459. .digest = "\x10\x4f\xdc\x12\x57\x32\x8f\x08"
  1460. "\x18\x4b\xa7\x31\x31\xc5\x3c\xae"
  1461. "\xe6\x98\xe3\x61\x19\x42\x11\x49"
  1462. "\xea\x8c\x71\x24\x56\x69\x7d\x30",
  1463. }, {
  1464. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1465. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1466. "\x11\x12\x13\x14\x15\x16\x17\x18"
  1467. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
  1468. .ksize = 32,
  1469. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
  1470. "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  1471. .psize = 112,
  1472. .digest = "\x47\x03\x05\xfc\x7e\x40\xfe\x34"
  1473. "\xd3\xee\xb3\xe7\x73\xd9\x5a\xab"
  1474. "\x73\xac\xf0\xfd\x06\x04\x47\xa5"
  1475. "\xeb\x45\x95\xbf\x33\xa9\xd1\xa3",
  1476. }, {
  1477. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1478. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1479. "\x0b\x0b\x0b\x0b\x0b\x0b",
  1480. .ksize = 32,
  1481. .plaintext = "Hi There",
  1482. .psize = 8,
  1483. .digest = "\x19\x8a\x60\x7e\xb4\x4b\xfb\xc6"
  1484. "\x99\x03\xa0\xf1\xcf\x2b\xbd\xc5"
  1485. "\xba\x0a\xa3\xf3\xd9\xae\x3c\x1c"
  1486. "\x7a\x3b\x16\x96\xa0\xb6\x8c\xf7",
  1487. }, {
  1488. .key = "Jefe",
  1489. .ksize = 4,
  1490. .plaintext = "what do ya want for nothing?",
  1491. .psize = 28,
  1492. .digest = "\x5b\xdc\xc1\x46\xbf\x60\x75\x4e"
  1493. "\x6a\x04\x24\x26\x08\x95\x75\xc7"
  1494. "\x5a\x00\x3f\x08\x9d\x27\x39\x83"
  1495. "\x9d\xec\x58\xb9\x64\xec\x38\x43",
  1496. .np = 2,
  1497. .tap = { 14, 14 }
  1498. }, {
  1499. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1500. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1501. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  1502. .ksize = 32,
  1503. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1504. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1505. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1506. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  1507. .psize = 50,
  1508. .digest = "\xcd\xcb\x12\x20\xd1\xec\xcc\xea"
  1509. "\x91\xe5\x3a\xba\x30\x92\xf9\x62"
  1510. "\xe5\x49\xfe\x6c\xe9\xed\x7f\xdc"
  1511. "\x43\x19\x1f\xbd\xe4\x5c\x30\xb0",
  1512. }, {
  1513. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1514. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1515. "\x11\x12\x13\x14\x15\x16\x17\x18"
  1516. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  1517. "\x21\x22\x23\x24\x25",
  1518. .ksize = 37,
  1519. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1520. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1521. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1522. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1523. .psize = 50,
  1524. .digest = "\xd4\x63\x3c\x17\xf6\xfb\x8d\x74"
  1525. "\x4c\x66\xde\xe0\xf8\xf0\x74\x55"
  1526. "\x6e\xc4\xaf\x55\xef\x07\x99\x85"
  1527. "\x41\x46\x8e\xb4\x9b\xd2\xe9\x17",
  1528. }, {
  1529. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
  1530. "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
  1531. "\x0c\x0c\x0c\x0c\x0c\x0c",
  1532. .ksize = 32,
  1533. .plaintext = "Test With Truncation",
  1534. .psize = 20,
  1535. .digest = "\x75\x46\xaf\x01\x84\x1f\xc0\x9b"
  1536. "\x1a\xb9\xc3\x74\x9a\x5f\x1c\x17"
  1537. "\xd4\xf5\x89\x66\x8a\x58\x7b\x27"
  1538. "\x00\xa9\xc9\x7c\x11\x93\xcf\x42",
  1539. }, {
  1540. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1541. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1542. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1543. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1544. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1545. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1546. "\xaa\xaa",
  1547. .ksize = 80,
  1548. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1549. .psize = 54,
  1550. .digest = "\x69\x53\x02\x5e\xd9\x6f\x0c\x09"
  1551. "\xf8\x0a\x96\xf7\x8e\x65\x38\xdb"
  1552. "\xe2\xe7\xb8\x20\xe3\xdd\x97\x0e"
  1553. "\x7d\xdd\x39\x09\x1b\x32\x35\x2f",
  1554. }, {
  1555. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1556. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1557. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1558. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1559. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1560. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1561. "\xaa\xaa",
  1562. .ksize = 80,
  1563. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than "
  1564. "One Block-Size Data",
  1565. .psize = 73,
  1566. .digest = "\x63\x55\xac\x22\xe8\x90\xd0\xa3"
  1567. "\xc8\x48\x1a\x5c\xa4\x82\x5b\xc8"
  1568. "\x84\xd3\xe7\xa1\xff\x98\xa2\xfc"
  1569. "\x2a\xc7\xd8\xe0\x64\xc3\xb2\xe6",
  1570. },
  1571. };
  1572. #define XCBC_AES_TEST_VECTORS 6
  1573. static struct hash_testvec aes_xcbc128_tv_template[] = {
  1574. {
  1575. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1576. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1577. .plaintext = zeroed_string,
  1578. .digest = "\x75\xf0\x25\x1d\x52\x8a\xc0\x1c"
  1579. "\x45\x73\xdf\xd5\x84\xd7\x9f\x29",
  1580. .psize = 0,
  1581. .ksize = 16,
  1582. }, {
  1583. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1584. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1585. .plaintext = "\x00\x01\x02",
  1586. .digest = "\x5b\x37\x65\x80\xae\x2f\x19\xaf"
  1587. "\xe7\x21\x9c\xee\xf1\x72\x75\x6f",
  1588. .psize = 3,
  1589. .ksize = 16,
  1590. } , {
  1591. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1592. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1593. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1594. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1595. .digest = "\xd2\xa2\x46\xfa\x34\x9b\x68\xa7"
  1596. "\x99\x98\xa4\x39\x4f\xf7\xa2\x63",
  1597. .psize = 16,
  1598. .ksize = 16,
  1599. }, {
  1600. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1601. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1602. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1603. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  1604. "\x10\x11\x12\x13",
  1605. .digest = "\x47\xf5\x1b\x45\x64\x96\x62\x15"
  1606. "\xb8\x98\x5c\x63\x05\x5e\xd3\x08",
  1607. .tap = { 10, 10 },
  1608. .psize = 20,
  1609. .np = 2,
  1610. .ksize = 16,
  1611. }, {
  1612. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1613. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1614. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1615. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  1616. "\x10\x11\x12\x13\x14\x15\x16\x17"
  1617. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  1618. .digest = "\xf5\x4f\x0e\xc8\xd2\xb9\xf3\xd3"
  1619. "\x68\x07\x73\x4b\xd5\x28\x3f\xd4",
  1620. .psize = 32,
  1621. .ksize = 16,
  1622. }, {
  1623. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1624. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1625. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1626. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  1627. "\x10\x11\x12\x13\x14\x15\x16\x17"
  1628. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  1629. "\x20\x21",
  1630. .digest = "\xbe\xcb\xb3\xbc\xcd\xb5\x18\xa3"
  1631. "\x06\x77\xd5\x48\x1f\xb6\xb4\xd8",
  1632. .tap = { 17, 17 },
  1633. .psize = 34,
  1634. .np = 2,
  1635. .ksize = 16,
  1636. }
  1637. };
  1638. #define VMAC_AES_TEST_VECTORS 8
  1639. static char vmac_string1[128] = {'\x01', '\x01', '\x01', '\x01',
  1640. '\x02', '\x03', '\x02', '\x02',
  1641. '\x02', '\x04', '\x01', '\x07',
  1642. '\x04', '\x01', '\x04', '\x03',};
  1643. static char vmac_string2[128] = {'a', 'b', 'c',};
  1644. static char vmac_string3[128] = {'a', 'b', 'c', 'a', 'b', 'c',
  1645. 'a', 'b', 'c', 'a', 'b', 'c',
  1646. 'a', 'b', 'c', 'a', 'b', 'c',
  1647. 'a', 'b', 'c', 'a', 'b', 'c',
  1648. 'a', 'b', 'c', 'a', 'b', 'c',
  1649. 'a', 'b', 'c', 'a', 'b', 'c',
  1650. 'a', 'b', 'c', 'a', 'b', 'c',
  1651. 'a', 'b', 'c', 'a', 'b', 'c',
  1652. };
  1653. static struct hash_testvec aes_vmac128_tv_template[] = {
  1654. {
  1655. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1656. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1657. .plaintext = NULL,
  1658. .digest = "\x07\x58\x80\x35\x77\xa4\x7b\x54",
  1659. .psize = 0,
  1660. .ksize = 16,
  1661. }, {
  1662. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1663. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1664. .plaintext = vmac_string1,
  1665. .digest = "\xce\xf5\x3c\xd3\xae\x68\x8c\xa1",
  1666. .psize = 128,
  1667. .ksize = 16,
  1668. }, {
  1669. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1670. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1671. .plaintext = vmac_string2,
  1672. .digest = "\xc9\x27\xb0\x73\x81\xbd\x14\x2d",
  1673. .psize = 128,
  1674. .ksize = 16,
  1675. }, {
  1676. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1677. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1678. .plaintext = vmac_string3,
  1679. .digest = "\x8d\x1a\x95\x8c\x98\x47\x0b\x19",
  1680. .psize = 128,
  1681. .ksize = 16,
  1682. }, {
  1683. .key = "abcdefghijklmnop",
  1684. .plaintext = NULL,
  1685. .digest = "\x3b\x89\xa1\x26\x9e\x55\x8f\x84",
  1686. .psize = 0,
  1687. .ksize = 16,
  1688. }, {
  1689. .key = "abcdefghijklmnop",
  1690. .plaintext = vmac_string1,
  1691. .digest = "\xab\x5e\xab\xb0\xf6\x8d\x74\xc2",
  1692. .psize = 128,
  1693. .ksize = 16,
  1694. }, {
  1695. .key = "abcdefghijklmnop",
  1696. .plaintext = vmac_string2,
  1697. .digest = "\x11\x15\x68\x42\x3d\x7b\x09\xdf",
  1698. .psize = 128,
  1699. .ksize = 16,
  1700. }, {
  1701. .key = "abcdefghijklmnop",
  1702. .plaintext = vmac_string3,
  1703. .digest = "\x8b\x32\x8f\xe1\xed\x8f\xfa\xd4",
  1704. .psize = 128,
  1705. .ksize = 16,
  1706. },
  1707. };
  1708. /*
  1709. * SHA384 HMAC test vectors from RFC4231
  1710. */
  1711. #define HMAC_SHA384_TEST_VECTORS 4
  1712. static struct hash_testvec hmac_sha384_tv_template[] = {
  1713. {
  1714. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1715. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1716. "\x0b\x0b\x0b\x0b",
  1717. .ksize = 20,
  1718. .plaintext = "Hi There",
  1719. .psize = 8,
  1720. .digest = "\xaf\xd0\x39\x44\xd8\x48\x95\x62"
  1721. "\x6b\x08\x25\xf4\xab\x46\x90\x7f"
  1722. "\x15\xf9\xda\xdb\xe4\x10\x1e\xc6"
  1723. "\x82\xaa\x03\x4c\x7c\xeb\xc5\x9c"
  1724. "\xfa\xea\x9e\xa9\x07\x6e\xde\x7f"
  1725. "\x4a\xf1\x52\xe8\xb2\xfa\x9c\xb6",
  1726. }, {
  1727. .key = "Jefe",
  1728. .ksize = 4,
  1729. .plaintext = "what do ya want for nothing?",
  1730. .psize = 28,
  1731. .digest = "\xaf\x45\xd2\xe3\x76\x48\x40\x31"
  1732. "\x61\x7f\x78\xd2\xb5\x8a\x6b\x1b"
  1733. "\x9c\x7e\xf4\x64\xf5\xa0\x1b\x47"
  1734. "\xe4\x2e\xc3\x73\x63\x22\x44\x5e"
  1735. "\x8e\x22\x40\xca\x5e\x69\xe2\xc7"
  1736. "\x8b\x32\x39\xec\xfa\xb2\x16\x49",
  1737. .np = 4,
  1738. .tap = { 7, 7, 7, 7 }
  1739. }, {
  1740. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1741. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1742. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1743. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1744. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1745. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1746. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1747. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1748. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1749. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1750. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1751. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1752. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1753. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1754. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1755. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1756. "\xaa\xaa\xaa",
  1757. .ksize = 131,
  1758. .plaintext = "Test Using Larger Than Block-Siz"
  1759. "e Key - Hash Key First",
  1760. .psize = 54,
  1761. .digest = "\x4e\xce\x08\x44\x85\x81\x3e\x90"
  1762. "\x88\xd2\xc6\x3a\x04\x1b\xc5\xb4"
  1763. "\x4f\x9e\xf1\x01\x2a\x2b\x58\x8f"
  1764. "\x3c\xd1\x1f\x05\x03\x3a\xc4\xc6"
  1765. "\x0c\x2e\xf6\xab\x40\x30\xfe\x82"
  1766. "\x96\x24\x8d\xf1\x63\xf4\x49\x52",
  1767. }, {
  1768. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1769. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1770. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1771. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1772. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1773. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1774. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1775. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1776. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1777. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1778. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1779. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1780. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1781. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1782. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1783. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1784. "\xaa\xaa\xaa",
  1785. .ksize = 131,
  1786. .plaintext = "This is a test u"
  1787. "sing a larger th"
  1788. "an block-size ke"
  1789. "y and a larger t"
  1790. "han block-size d"
  1791. "ata. The key nee"
  1792. "ds to be hashed "
  1793. "before being use"
  1794. "d by the HMAC al"
  1795. "gorithm.",
  1796. .psize = 152,
  1797. .digest = "\x66\x17\x17\x8e\x94\x1f\x02\x0d"
  1798. "\x35\x1e\x2f\x25\x4e\x8f\xd3\x2c"
  1799. "\x60\x24\x20\xfe\xb0\xb8\xfb\x9a"
  1800. "\xdc\xce\xbb\x82\x46\x1e\x99\xc5"
  1801. "\xa6\x78\xcc\x31\xe7\x99\x17\x6d"
  1802. "\x38\x60\xe6\x11\x0c\x46\x52\x3e",
  1803. },
  1804. };
  1805. /*
  1806. * SHA512 HMAC test vectors from RFC4231
  1807. */
  1808. #define HMAC_SHA512_TEST_VECTORS 4
  1809. static struct hash_testvec hmac_sha512_tv_template[] = {
  1810. {
  1811. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1812. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1813. "\x0b\x0b\x0b\x0b",
  1814. .ksize = 20,
  1815. .plaintext = "Hi There",
  1816. .psize = 8,
  1817. .digest = "\x87\xaa\x7c\xde\xa5\xef\x61\x9d"
  1818. "\x4f\xf0\xb4\x24\x1a\x1d\x6c\xb0"
  1819. "\x23\x79\xf4\xe2\xce\x4e\xc2\x78"
  1820. "\x7a\xd0\xb3\x05\x45\xe1\x7c\xde"
  1821. "\xda\xa8\x33\xb7\xd6\xb8\xa7\x02"
  1822. "\x03\x8b\x27\x4e\xae\xa3\xf4\xe4"
  1823. "\xbe\x9d\x91\x4e\xeb\x61\xf1\x70"
  1824. "\x2e\x69\x6c\x20\x3a\x12\x68\x54",
  1825. }, {
  1826. .key = "Jefe",
  1827. .ksize = 4,
  1828. .plaintext = "what do ya want for nothing?",
  1829. .psize = 28,
  1830. .digest = "\x16\x4b\x7a\x7b\xfc\xf8\x19\xe2"
  1831. "\xe3\x95\xfb\xe7\x3b\x56\xe0\xa3"
  1832. "\x87\xbd\x64\x22\x2e\x83\x1f\xd6"
  1833. "\x10\x27\x0c\xd7\xea\x25\x05\x54"
  1834. "\x97\x58\xbf\x75\xc0\x5a\x99\x4a"
  1835. "\x6d\x03\x4f\x65\xf8\xf0\xe6\xfd"
  1836. "\xca\xea\xb1\xa3\x4d\x4a\x6b\x4b"
  1837. "\x63\x6e\x07\x0a\x38\xbc\xe7\x37",
  1838. .np = 4,
  1839. .tap = { 7, 7, 7, 7 }
  1840. }, {
  1841. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1842. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1843. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1844. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1845. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1846. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1847. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1848. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1849. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1850. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1851. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1852. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1853. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1854. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1855. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1856. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1857. "\xaa\xaa\xaa",
  1858. .ksize = 131,
  1859. .plaintext = "Test Using Large"
  1860. "r Than Block-Siz"
  1861. "e Key - Hash Key"
  1862. " First",
  1863. .psize = 54,
  1864. .digest = "\x80\xb2\x42\x63\xc7\xc1\xa3\xeb"
  1865. "\xb7\x14\x93\xc1\xdd\x7b\xe8\xb4"
  1866. "\x9b\x46\xd1\xf4\x1b\x4a\xee\xc1"
  1867. "\x12\x1b\x01\x37\x83\xf8\xf3\x52"
  1868. "\x6b\x56\xd0\x37\xe0\x5f\x25\x98"
  1869. "\xbd\x0f\xd2\x21\x5d\x6a\x1e\x52"
  1870. "\x95\xe6\x4f\x73\xf6\x3f\x0a\xec"
  1871. "\x8b\x91\x5a\x98\x5d\x78\x65\x98",
  1872. }, {
  1873. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1874. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1875. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1876. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1877. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1878. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1879. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1880. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1881. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1882. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1883. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1884. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1885. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1886. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1887. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1888. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1889. "\xaa\xaa\xaa",
  1890. .ksize = 131,
  1891. .plaintext =
  1892. "This is a test u"
  1893. "sing a larger th"
  1894. "an block-size ke"
  1895. "y and a larger t"
  1896. "han block-size d"
  1897. "ata. The key nee"
  1898. "ds to be hashed "
  1899. "before being use"
  1900. "d by the HMAC al"
  1901. "gorithm.",
  1902. .psize = 152,
  1903. .digest = "\xe3\x7b\x6a\x77\x5d\xc8\x7d\xba"
  1904. "\xa4\xdf\xa9\xf9\x6e\x5e\x3f\xfd"
  1905. "\xde\xbd\x71\xf8\x86\x72\x89\x86"
  1906. "\x5d\xf5\xa3\x2d\x20\xcd\xc9\x44"
  1907. "\xb6\x02\x2c\xac\x3c\x49\x82\xb1"
  1908. "\x0d\x5e\xeb\x55\xc3\xe4\xde\x15"
  1909. "\x13\x46\x76\xfb\x6d\xe0\x44\x60"
  1910. "\x65\xc9\x74\x40\xfa\x8c\x6a\x58",
  1911. },
  1912. };
  1913. /*
  1914. * DES test vectors.
  1915. */
  1916. #define DES_ENC_TEST_VECTORS 10
  1917. #define DES_DEC_TEST_VECTORS 4
  1918. #define DES_CBC_ENC_TEST_VECTORS 5
  1919. #define DES_CBC_DEC_TEST_VECTORS 4
  1920. #define DES3_EDE_ENC_TEST_VECTORS 3
  1921. #define DES3_EDE_DEC_TEST_VECTORS 3
  1922. #define DES3_EDE_CBC_ENC_TEST_VECTORS 1
  1923. #define DES3_EDE_CBC_DEC_TEST_VECTORS 1
  1924. static struct cipher_testvec des_enc_tv_template[] = {
  1925. { /* From Applied Cryptography */
  1926. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1927. .klen = 8,
  1928. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  1929. .ilen = 8,
  1930. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  1931. .rlen = 8,
  1932. }, { /* Same key, different plaintext block */
  1933. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1934. .klen = 8,
  1935. .input = "\x22\x33\x44\x55\x66\x77\x88\x99",
  1936. .ilen = 8,
  1937. .result = "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  1938. .rlen = 8,
  1939. }, { /* Sbox test from NBS */
  1940. .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
  1941. .klen = 8,
  1942. .input = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
  1943. .ilen = 8,
  1944. .result = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  1945. .rlen = 8,
  1946. }, { /* Three blocks */
  1947. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1948. .klen = 8,
  1949. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1950. "\x22\x33\x44\x55\x66\x77\x88\x99"
  1951. "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
  1952. .ilen = 24,
  1953. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1954. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
  1955. "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
  1956. .rlen = 24,
  1957. }, { /* Weak key */
  1958. .fail = 1,
  1959. .wk = 1,
  1960. .key = "\x01\x01\x01\x01\x01\x01\x01\x01",
  1961. .klen = 8,
  1962. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  1963. .ilen = 8,
  1964. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  1965. .rlen = 8,
  1966. }, { /* Two blocks -- for testing encryption across pages */
  1967. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1968. .klen = 8,
  1969. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1970. "\x22\x33\x44\x55\x66\x77\x88\x99",
  1971. .ilen = 16,
  1972. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1973. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  1974. .rlen = 16,
  1975. .np = 2,
  1976. .tap = { 8, 8 }
  1977. }, { /* Four blocks -- for testing encryption with chunking */
  1978. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1979. .klen = 8,
  1980. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1981. "\x22\x33\x44\x55\x66\x77\x88\x99"
  1982. "\xca\xfe\xba\xbe\xfe\xed\xbe\xef"
  1983. "\x22\x33\x44\x55\x66\x77\x88\x99",
  1984. .ilen = 32,
  1985. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1986. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
  1987. "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90"
  1988. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  1989. .rlen = 32,
  1990. .np = 3,
  1991. .tap = { 14, 10, 8 }
  1992. }, {
  1993. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1994. .klen = 8,
  1995. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1996. "\x22\x33\x44\x55\x66\x77\x88\x99"
  1997. "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
  1998. .ilen = 24,
  1999. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  2000. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
  2001. "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
  2002. .rlen = 24,
  2003. .np = 4,
  2004. .tap = { 2, 1, 3, 18 }
  2005. }, {
  2006. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2007. .klen = 8,
  2008. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  2009. "\x22\x33\x44\x55\x66\x77\x88\x99",
  2010. .ilen = 16,
  2011. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  2012. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  2013. .rlen = 16,
  2014. .np = 5,
  2015. .tap = { 2, 2, 2, 2, 8 }
  2016. }, {
  2017. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2018. .klen = 8,
  2019. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  2020. .ilen = 8,
  2021. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  2022. .rlen = 8,
  2023. .np = 8,
  2024. .tap = { 1, 1, 1, 1, 1, 1, 1, 1 }
  2025. },
  2026. };
  2027. static struct cipher_testvec des_dec_tv_template[] = {
  2028. { /* From Applied Cryptography */
  2029. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2030. .klen = 8,
  2031. .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  2032. .ilen = 8,
  2033. .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  2034. .rlen = 8,
  2035. }, { /* Sbox test from NBS */
  2036. .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
  2037. .klen = 8,
  2038. .input = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  2039. .ilen = 8,
  2040. .result = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
  2041. .rlen = 8,
  2042. }, { /* Two blocks, for chunking test */
  2043. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2044. .klen = 8,
  2045. .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  2046. "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  2047. .ilen = 16,
  2048. .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  2049. "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
  2050. .rlen = 16,
  2051. .np = 2,
  2052. .tap = { 8, 8 }
  2053. }, {
  2054. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2055. .klen = 8,
  2056. .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  2057. "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  2058. .ilen = 16,
  2059. .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  2060. "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
  2061. .rlen = 16,
  2062. .np = 3,
  2063. .tap = { 3, 12, 1 }
  2064. },
  2065. };
  2066. static struct cipher_testvec des_cbc_enc_tv_template[] = {
  2067. { /* From OpenSSL */
  2068. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2069. .klen = 8,
  2070. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2071. .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
  2072. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  2073. "\x68\x65\x20\x74\x69\x6d\x65\x20",
  2074. .ilen = 24,
  2075. .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
  2076. "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
  2077. "\x46\x8e\x91\x15\x78\x88\xba\x68",
  2078. .rlen = 24,
  2079. }, { /* FIPS Pub 81 */
  2080. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2081. .klen = 8,
  2082. .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
  2083. .input = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
  2084. .ilen = 8,
  2085. .result = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  2086. .rlen = 8,
  2087. }, {
  2088. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2089. .klen = 8,
  2090. .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  2091. .input = "\x68\x65\x20\x74\x69\x6d\x65\x20",
  2092. .ilen = 8,
  2093. .result = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  2094. .rlen = 8,
  2095. }, {
  2096. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2097. .klen = 8,
  2098. .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  2099. .input = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
  2100. .ilen = 8,
  2101. .result = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
  2102. .rlen = 8,
  2103. }, { /* Copy of openssl vector for chunk testing */
  2104. /* From OpenSSL */
  2105. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2106. .klen = 8,
  2107. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2108. .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
  2109. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  2110. "\x68\x65\x20\x74\x69\x6d\x65\x20",
  2111. .ilen = 24,
  2112. .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
  2113. "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
  2114. "\x46\x8e\x91\x15\x78\x88\xba\x68",
  2115. .rlen = 24,
  2116. .np = 2,
  2117. .tap = { 13, 11 }
  2118. },
  2119. };
  2120. static struct cipher_testvec des_cbc_dec_tv_template[] = {
  2121. { /* FIPS Pub 81 */
  2122. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2123. .klen = 8,
  2124. .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
  2125. .input = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  2126. .ilen = 8,
  2127. .result = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
  2128. .rlen = 8,
  2129. }, {
  2130. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2131. .klen = 8,
  2132. .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  2133. .input = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  2134. .ilen = 8,
  2135. .result = "\x68\x65\x20\x74\x69\x6d\x65\x20",
  2136. .rlen = 8,
  2137. }, {
  2138. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2139. .klen = 8,
  2140. .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  2141. .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
  2142. .ilen = 8,
  2143. .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
  2144. .rlen = 8,
  2145. }, { /* Copy of above, for chunk testing */
  2146. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2147. .klen = 8,
  2148. .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  2149. .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
  2150. .ilen = 8,
  2151. .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
  2152. .rlen = 8,
  2153. .np = 2,
  2154. .tap = { 4, 4 }
  2155. },
  2156. };
  2157. static struct cipher_testvec des3_ede_enc_tv_template[] = {
  2158. { /* These are from openssl */
  2159. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2160. "\x55\x55\x55\x55\x55\x55\x55\x55"
  2161. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2162. .klen = 24,
  2163. .input = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
  2164. .ilen = 8,
  2165. .result = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
  2166. .rlen = 8,
  2167. }, {
  2168. .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
  2169. "\x86\x02\x87\x66\x59\x08\x21\x98"
  2170. "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
  2171. .klen = 24,
  2172. .input = "\x73\x71\x75\x69\x67\x67\x6c\x65",
  2173. .ilen = 8,
  2174. .result = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
  2175. .rlen = 8,
  2176. }, {
  2177. .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
  2178. "\x91\x07\xd0\x15\x89\x19\x01\x01"
  2179. "\x19\x07\x92\x10\x98\x1a\x01\x01",
  2180. .klen = 24,
  2181. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2182. .ilen = 8,
  2183. .result = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
  2184. .rlen = 8,
  2185. },
  2186. };
  2187. static struct cipher_testvec des3_ede_dec_tv_template[] = {
  2188. { /* These are from openssl */
  2189. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2190. "\x55\x55\x55\x55\x55\x55\x55\x55"
  2191. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2192. .klen = 24,
  2193. .input = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
  2194. .ilen = 8,
  2195. .result = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
  2196. .rlen = 8,
  2197. }, {
  2198. .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
  2199. "\x86\x02\x87\x66\x59\x08\x21\x98"
  2200. "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
  2201. .klen = 24,
  2202. .input = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
  2203. .ilen = 8,
  2204. .result = "\x73\x71\x75\x69\x67\x67\x6c\x65",
  2205. .rlen = 8,
  2206. }, {
  2207. .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
  2208. "\x91\x07\xd0\x15\x89\x19\x01\x01"
  2209. "\x19\x07\x92\x10\x98\x1a\x01\x01",
  2210. .klen = 24,
  2211. .input = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
  2212. .ilen = 8,
  2213. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2214. .rlen = 8,
  2215. },
  2216. };
  2217. static struct cipher_testvec des3_ede_cbc_enc_tv_template[] = {
  2218. { /* Generated from openssl */
  2219. .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
  2220. "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
  2221. "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
  2222. .klen = 24,
  2223. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  2224. .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  2225. "\x53\x20\x63\x65\x65\x72\x73\x74"
  2226. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  2227. "\x20\x79\x65\x53\x72\x63\x74\x65"
  2228. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  2229. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  2230. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  2231. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  2232. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  2233. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  2234. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  2235. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  2236. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  2237. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  2238. "\x63\x65\x65\x72\x73\x74\x54\x20"
  2239. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  2240. .ilen = 128,
  2241. .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
  2242. "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
  2243. "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
  2244. "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
  2245. "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
  2246. "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
  2247. "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
  2248. "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
  2249. "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
  2250. "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
  2251. "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
  2252. "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
  2253. "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
  2254. "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
  2255. "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
  2256. "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
  2257. .rlen = 128,
  2258. },
  2259. };
  2260. static struct cipher_testvec des3_ede_cbc_dec_tv_template[] = {
  2261. { /* Generated from openssl */
  2262. .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
  2263. "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
  2264. "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
  2265. .klen = 24,
  2266. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  2267. .input = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
  2268. "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
  2269. "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
  2270. "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
  2271. "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
  2272. "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
  2273. "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
  2274. "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
  2275. "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
  2276. "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
  2277. "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
  2278. "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
  2279. "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
  2280. "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
  2281. "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
  2282. "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
  2283. .ilen = 128,
  2284. .result = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  2285. "\x53\x20\x63\x65\x65\x72\x73\x74"
  2286. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  2287. "\x20\x79\x65\x53\x72\x63\x74\x65"
  2288. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  2289. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  2290. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  2291. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  2292. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  2293. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  2294. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  2295. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  2296. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  2297. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  2298. "\x63\x65\x65\x72\x73\x74\x54\x20"
  2299. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  2300. .rlen = 128,
  2301. },
  2302. };
  2303. /*
  2304. * Blowfish test vectors.
  2305. */
  2306. #define BF_ENC_TEST_VECTORS 6
  2307. #define BF_DEC_TEST_VECTORS 6
  2308. #define BF_CBC_ENC_TEST_VECTORS 1
  2309. #define BF_CBC_DEC_TEST_VECTORS 1
  2310. static struct cipher_testvec bf_enc_tv_template[] = {
  2311. { /* DES test vectors from OpenSSL */
  2312. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2313. .klen = 8,
  2314. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2315. .ilen = 8,
  2316. .result = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
  2317. .rlen = 8,
  2318. }, {
  2319. .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
  2320. .klen = 8,
  2321. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2322. .ilen = 8,
  2323. .result = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
  2324. .rlen = 8,
  2325. }, {
  2326. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  2327. .klen = 8,
  2328. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2329. .ilen = 8,
  2330. .result = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
  2331. .rlen = 8,
  2332. }, { /* Vary the keylength... */
  2333. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2334. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
  2335. .klen = 16,
  2336. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2337. .ilen = 8,
  2338. .result = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
  2339. .rlen = 8,
  2340. }, {
  2341. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2342. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  2343. "\x00\x11\x22\x33\x44",
  2344. .klen = 21,
  2345. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2346. .ilen = 8,
  2347. .result = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
  2348. .rlen = 8,
  2349. }, { /* Generated with bf488 */
  2350. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2351. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  2352. "\x00\x11\x22\x33\x44\x55\x66\x77"
  2353. "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
  2354. "\x58\x40\x23\x64\x1a\xba\x61\x76"
  2355. "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
  2356. "\xff\xff\xff\xff\xff\xff\xff\xff",
  2357. .klen = 56,
  2358. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2359. .ilen = 8,
  2360. .result = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
  2361. .rlen = 8,
  2362. },
  2363. };
  2364. static struct cipher_testvec bf_dec_tv_template[] = {
  2365. { /* DES test vectors from OpenSSL */
  2366. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2367. .klen = 8,
  2368. .input = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
  2369. .ilen = 8,
  2370. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  2371. .rlen = 8,
  2372. }, {
  2373. .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
  2374. .klen = 8,
  2375. .input = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
  2376. .ilen = 8,
  2377. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  2378. .rlen = 8,
  2379. }, {
  2380. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  2381. .klen = 8,
  2382. .input = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
  2383. .ilen = 8,
  2384. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2385. .rlen = 8,
  2386. }, { /* Vary the keylength... */
  2387. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2388. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
  2389. .klen = 16,
  2390. .input = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
  2391. .ilen = 8,
  2392. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2393. .rlen = 8,
  2394. }, {
  2395. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2396. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  2397. "\x00\x11\x22\x33\x44",
  2398. .klen = 21,
  2399. .input = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
  2400. .ilen = 8,
  2401. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2402. .rlen = 8,
  2403. }, { /* Generated with bf488, using OpenSSL, Libgcrypt and Nettle */
  2404. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  2405. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  2406. "\x00\x11\x22\x33\x44\x55\x66\x77"
  2407. "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
  2408. "\x58\x40\x23\x64\x1a\xba\x61\x76"
  2409. "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
  2410. "\xff\xff\xff\xff\xff\xff\xff\xff",
  2411. .klen = 56,
  2412. .input = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
  2413. .ilen = 8,
  2414. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2415. .rlen = 8,
  2416. },
  2417. };
  2418. static struct cipher_testvec bf_cbc_enc_tv_template[] = {
  2419. { /* From OpenSSL */
  2420. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2421. "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  2422. .klen = 16,
  2423. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2424. .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
  2425. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  2426. "\x68\x65\x20\x74\x69\x6d\x65\x20"
  2427. "\x66\x6f\x72\x20\x00\x00\x00\x00",
  2428. .ilen = 32,
  2429. .result = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
  2430. "\x05\xb1\x56\xe2\x74\x03\x97\x93"
  2431. "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
  2432. "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
  2433. .rlen = 32,
  2434. },
  2435. };
  2436. static struct cipher_testvec bf_cbc_dec_tv_template[] = {
  2437. { /* From OpenSSL */
  2438. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2439. "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  2440. .klen = 16,
  2441. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  2442. .input = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
  2443. "\x05\xb1\x56\xe2\x74\x03\x97\x93"
  2444. "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
  2445. "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
  2446. .ilen = 32,
  2447. .result = "\x37\x36\x35\x34\x33\x32\x31\x20"
  2448. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  2449. "\x68\x65\x20\x74\x69\x6d\x65\x20"
  2450. "\x66\x6f\x72\x20\x00\x00\x00\x00",
  2451. .rlen = 32,
  2452. },
  2453. };
  2454. /*
  2455. * Twofish test vectors.
  2456. */
  2457. #define TF_ENC_TEST_VECTORS 3
  2458. #define TF_DEC_TEST_VECTORS 3
  2459. #define TF_CBC_ENC_TEST_VECTORS 4
  2460. #define TF_CBC_DEC_TEST_VECTORS 4
  2461. static struct cipher_testvec tf_enc_tv_template[] = {
  2462. {
  2463. .key = zeroed_string,
  2464. .klen = 16,
  2465. .input = zeroed_string,
  2466. .ilen = 16,
  2467. .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2468. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2469. .rlen = 16,
  2470. }, {
  2471. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2472. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  2473. "\x00\x11\x22\x33\x44\x55\x66\x77",
  2474. .klen = 24,
  2475. .input = zeroed_string,
  2476. .ilen = 16,
  2477. .result = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
  2478. "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
  2479. .rlen = 16,
  2480. }, {
  2481. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2482. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  2483. "\x00\x11\x22\x33\x44\x55\x66\x77"
  2484. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2485. .klen = 32,
  2486. .input = zeroed_string,
  2487. .ilen = 16,
  2488. .result = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
  2489. "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
  2490. .rlen = 16,
  2491. },
  2492. };
  2493. static struct cipher_testvec tf_dec_tv_template[] = {
  2494. {
  2495. .key = zeroed_string,
  2496. .klen = 16,
  2497. .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2498. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2499. .ilen = 16,
  2500. .result = zeroed_string,
  2501. .rlen = 16,
  2502. }, {
  2503. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2504. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  2505. "\x00\x11\x22\x33\x44\x55\x66\x77",
  2506. .klen = 24,
  2507. .input = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
  2508. "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
  2509. .ilen = 16,
  2510. .result = zeroed_string,
  2511. .rlen = 16,
  2512. }, {
  2513. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  2514. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  2515. "\x00\x11\x22\x33\x44\x55\x66\x77"
  2516. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2517. .klen = 32,
  2518. .input = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
  2519. "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
  2520. .ilen = 16,
  2521. .result = zeroed_string,
  2522. .rlen = 16,
  2523. },
  2524. };
  2525. static struct cipher_testvec tf_cbc_enc_tv_template[] = {
  2526. { /* Generated with Nettle */
  2527. .key = zeroed_string,
  2528. .klen = 16,
  2529. .iv = zeroed_string,
  2530. .input = zeroed_string,
  2531. .ilen = 16,
  2532. .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2533. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2534. .rlen = 16,
  2535. }, {
  2536. .key = zeroed_string,
  2537. .klen = 16,
  2538. .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2539. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2540. .input = zeroed_string,
  2541. .ilen = 16,
  2542. .result = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2543. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  2544. .rlen = 16,
  2545. }, {
  2546. .key = zeroed_string,
  2547. .klen = 16,
  2548. .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2549. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  2550. .input = zeroed_string,
  2551. .ilen = 16,
  2552. .result = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  2553. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  2554. .rlen = 16,
  2555. }, {
  2556. .key = zeroed_string,
  2557. .klen = 16,
  2558. .iv = zeroed_string,
  2559. .input = zeroed_string,
  2560. .ilen = 48,
  2561. .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2562. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
  2563. "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2564. "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
  2565. "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  2566. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  2567. .rlen = 48,
  2568. },
  2569. };
  2570. static struct cipher_testvec tf_cbc_dec_tv_template[] = {
  2571. { /* Reverse of the first four above */
  2572. .key = zeroed_string,
  2573. .klen = 16,
  2574. .iv = zeroed_string,
  2575. .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2576. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2577. .ilen = 16,
  2578. .result = zeroed_string,
  2579. .rlen = 16,
  2580. }, {
  2581. .key = zeroed_string,
  2582. .klen = 16,
  2583. .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2584. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  2585. .input = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2586. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  2587. .ilen = 16,
  2588. .result = zeroed_string,
  2589. .rlen = 16,
  2590. }, {
  2591. .key = zeroed_string,
  2592. .klen = 16,
  2593. .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2594. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  2595. .input = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  2596. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  2597. .ilen = 16,
  2598. .result = zeroed_string,
  2599. .rlen = 16,
  2600. }, {
  2601. .key = zeroed_string,
  2602. .klen = 16,
  2603. .iv = zeroed_string,
  2604. .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  2605. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
  2606. "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  2607. "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
  2608. "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  2609. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  2610. .ilen = 48,
  2611. .result = zeroed_string,
  2612. .rlen = 48,
  2613. },
  2614. };
  2615. /*
  2616. * Serpent test vectors. These are backwards because Serpent writes
  2617. * octet sequences in right-to-left mode.
  2618. */
  2619. #define SERPENT_ENC_TEST_VECTORS 4
  2620. #define SERPENT_DEC_TEST_VECTORS 4
  2621. #define TNEPRES_ENC_TEST_VECTORS 4
  2622. #define TNEPRES_DEC_TEST_VECTORS 4
  2623. static struct cipher_testvec serpent_enc_tv_template[] = {
  2624. {
  2625. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2626. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2627. .ilen = 16,
  2628. .result = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
  2629. "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
  2630. .rlen = 16,
  2631. }, {
  2632. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2633. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2634. .klen = 16,
  2635. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2636. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2637. .ilen = 16,
  2638. .result = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
  2639. "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
  2640. .rlen = 16,
  2641. }, {
  2642. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2643. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2644. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2645. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2646. .klen = 32,
  2647. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2648. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2649. .ilen = 16,
  2650. .result = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
  2651. "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
  2652. .rlen = 16,
  2653. }, {
  2654. .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
  2655. .klen = 16,
  2656. .input = zeroed_string,
  2657. .ilen = 16,
  2658. .result = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
  2659. "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
  2660. .rlen = 16,
  2661. },
  2662. };
  2663. static struct cipher_testvec tnepres_enc_tv_template[] = {
  2664. { /* KeySize=128, PT=0, I=1 */
  2665. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2666. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2667. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  2668. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2669. .klen = 16,
  2670. .ilen = 16,
  2671. .result = "\x49\xaf\xbf\xad\x9d\x5a\x34\x05"
  2672. "\x2c\xd8\xff\xa5\x98\x6b\xd2\xdd",
  2673. .rlen = 16,
  2674. }, { /* KeySize=192, PT=0, I=1 */
  2675. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  2676. "\x00\x00\x00\x00\x00\x00\x00\x00"
  2677. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2678. .klen = 24,
  2679. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2680. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2681. .ilen = 16,
  2682. .result = "\xe7\x8e\x54\x02\xc7\x19\x55\x68"
  2683. "\xac\x36\x78\xf7\xa3\xf6\x0c\x66",
  2684. .rlen = 16,
  2685. }, { /* KeySize=256, PT=0, I=1 */
  2686. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  2687. "\x00\x00\x00\x00\x00\x00\x00\x00"
  2688. "\x00\x00\x00\x00\x00\x00\x00\x00"
  2689. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2690. .klen = 32,
  2691. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2692. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2693. .ilen = 16,
  2694. .result = "\xab\xed\x96\xe7\x66\xbf\x28\xcb"
  2695. "\xc0\xeb\xd2\x1a\x82\xef\x08\x19",
  2696. .rlen = 16,
  2697. }, { /* KeySize=256, I=257 */
  2698. .key = "\x1f\x1e\x1d\x1c\x1b\x1a\x19\x18"
  2699. "\x17\x16\x15\x14\x13\x12\x11\x10"
  2700. "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
  2701. "\x07\x06\x05\x04\x03\x02\x01\x00",
  2702. .klen = 32,
  2703. .input = "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
  2704. "\x07\x06\x05\x04\x03\x02\x01\x00",
  2705. .ilen = 16,
  2706. .result = "\x5c\xe7\x1c\x70\xd2\x88\x2e\x5b"
  2707. "\xb8\x32\xe4\x33\xf8\x9f\x26\xde",
  2708. .rlen = 16,
  2709. },
  2710. };
  2711. static struct cipher_testvec serpent_dec_tv_template[] = {
  2712. {
  2713. .input = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
  2714. "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
  2715. .ilen = 16,
  2716. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2717. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2718. .rlen = 16,
  2719. }, {
  2720. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2721. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2722. .klen = 16,
  2723. .input = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
  2724. "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
  2725. .ilen = 16,
  2726. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2727. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2728. .rlen = 16,
  2729. }, {
  2730. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2731. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2732. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2733. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2734. .klen = 32,
  2735. .input = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
  2736. "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
  2737. .ilen = 16,
  2738. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2739. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2740. .rlen = 16,
  2741. }, {
  2742. .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
  2743. .klen = 16,
  2744. .input = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
  2745. "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
  2746. .ilen = 16,
  2747. .result = zeroed_string,
  2748. .rlen = 16,
  2749. },
  2750. };
  2751. static struct cipher_testvec tnepres_dec_tv_template[] = {
  2752. {
  2753. .input = "\x41\xcc\x6b\x31\x59\x31\x45\x97"
  2754. "\x6d\x6f\xbb\x38\x4b\x37\x21\x28",
  2755. .ilen = 16,
  2756. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2757. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2758. .rlen = 16,
  2759. }, {
  2760. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2761. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2762. .klen = 16,
  2763. .input = "\xea\xf4\xd7\xfc\xd8\x01\x34\x47"
  2764. "\x81\x45\x0b\xfa\x0c\xd6\xad\x6e",
  2765. .ilen = 16,
  2766. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2767. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2768. .rlen = 16,
  2769. }, {
  2770. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2771. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2772. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2773. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2774. .klen = 32,
  2775. .input = "\x64\xa9\x1a\x37\xed\x9f\xe7\x49"
  2776. "\xa8\x4e\x76\xd6\xf5\x0d\x78\xee",
  2777. .ilen = 16,
  2778. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2779. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2780. .rlen = 16,
  2781. }, { /* KeySize=128, I=121 */
  2782. .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
  2783. .klen = 16,
  2784. .input = "\x3d\xda\xbf\xc0\x06\xda\xab\x06"
  2785. "\x46\x2a\xf4\xef\x81\x54\x4e\x26",
  2786. .ilen = 16,
  2787. .result = zeroed_string,
  2788. .rlen = 16,
  2789. },
  2790. };
  2791. /* Cast6 test vectors from RFC 2612 */
  2792. #define CAST6_ENC_TEST_VECTORS 3
  2793. #define CAST6_DEC_TEST_VECTORS 3
  2794. static struct cipher_testvec cast6_enc_tv_template[] = {
  2795. {
  2796. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2797. "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
  2798. .klen = 16,
  2799. .input = zeroed_string,
  2800. .ilen = 16,
  2801. .result = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
  2802. "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
  2803. .rlen = 16,
  2804. }, {
  2805. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2806. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  2807. "\xba\xc7\x7a\x77\x17\x94\x28\x63",
  2808. .klen = 24,
  2809. .input = zeroed_string,
  2810. .ilen = 16,
  2811. .result = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
  2812. "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
  2813. .rlen = 16,
  2814. }, {
  2815. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2816. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  2817. "\x8d\x7c\x47\xce\x26\x49\x08\x46"
  2818. "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
  2819. .klen = 32,
  2820. .input = zeroed_string,
  2821. .ilen = 16,
  2822. .result = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
  2823. "\xc9\x87\x01\x36\x55\x33\x17\xfa",
  2824. .rlen = 16,
  2825. },
  2826. };
  2827. static struct cipher_testvec cast6_dec_tv_template[] = {
  2828. {
  2829. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2830. "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
  2831. .klen = 16,
  2832. .input = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
  2833. "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
  2834. .ilen = 16,
  2835. .result = zeroed_string,
  2836. .rlen = 16,
  2837. }, {
  2838. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2839. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  2840. "\xba\xc7\x7a\x77\x17\x94\x28\x63",
  2841. .klen = 24,
  2842. .input = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
  2843. "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
  2844. .ilen = 16,
  2845. .result = zeroed_string,
  2846. .rlen = 16,
  2847. }, {
  2848. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2849. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  2850. "\x8d\x7c\x47\xce\x26\x49\x08\x46"
  2851. "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
  2852. .klen = 32,
  2853. .input = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
  2854. "\xc9\x87\x01\x36\x55\x33\x17\xfa",
  2855. .ilen = 16,
  2856. .result = zeroed_string,
  2857. .rlen = 16,
  2858. },
  2859. };
  2860. /*
  2861. * AES test vectors.
  2862. */
  2863. #define AES_ENC_TEST_VECTORS 3
  2864. #define AES_DEC_TEST_VECTORS 3
  2865. #define AES_CBC_ENC_TEST_VECTORS 4
  2866. #define AES_CBC_DEC_TEST_VECTORS 4
  2867. #define AES_LRW_ENC_TEST_VECTORS 8
  2868. #define AES_LRW_DEC_TEST_VECTORS 8
  2869. #define AES_XTS_ENC_TEST_VECTORS 4
  2870. #define AES_XTS_DEC_TEST_VECTORS 4
  2871. #define AES_CTR_ENC_TEST_VECTORS 3
  2872. #define AES_CTR_DEC_TEST_VECTORS 3
  2873. #define AES_OFB_ENC_TEST_VECTORS 1
  2874. #define AES_OFB_DEC_TEST_VECTORS 1
  2875. #define AES_CTR_3686_ENC_TEST_VECTORS 7
  2876. #define AES_CTR_3686_DEC_TEST_VECTORS 6
  2877. #define AES_GCM_ENC_TEST_VECTORS 9
  2878. #define AES_GCM_DEC_TEST_VECTORS 8
  2879. #define AES_GCM_4106_ENC_TEST_VECTORS 7
  2880. #define AES_GCM_4106_DEC_TEST_VECTORS 7
  2881. #define AES_CCM_ENC_TEST_VECTORS 7
  2882. #define AES_CCM_DEC_TEST_VECTORS 7
  2883. #define AES_CCM_4309_ENC_TEST_VECTORS 7
  2884. #define AES_CCM_4309_DEC_TEST_VECTORS 10
  2885. static struct cipher_testvec aes_enc_tv_template[] = {
  2886. { /* From FIPS-197 */
  2887. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2888. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2889. .klen = 16,
  2890. .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2891. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2892. .ilen = 16,
  2893. .result = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
  2894. "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
  2895. .rlen = 16,
  2896. }, {
  2897. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2898. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2899. "\x10\x11\x12\x13\x14\x15\x16\x17",
  2900. .klen = 24,
  2901. .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2902. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2903. .ilen = 16,
  2904. .result = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
  2905. "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
  2906. .rlen = 16,
  2907. }, {
  2908. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2909. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2910. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2911. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2912. .klen = 32,
  2913. .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2914. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2915. .ilen = 16,
  2916. .result = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
  2917. "\xea\xfc\x49\x90\x4b\x49\x60\x89",
  2918. .rlen = 16,
  2919. },
  2920. };
  2921. static struct cipher_testvec aes_dec_tv_template[] = {
  2922. { /* From FIPS-197 */
  2923. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2924. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2925. .klen = 16,
  2926. .input = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
  2927. "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
  2928. .ilen = 16,
  2929. .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2930. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2931. .rlen = 16,
  2932. }, {
  2933. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2934. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2935. "\x10\x11\x12\x13\x14\x15\x16\x17",
  2936. .klen = 24,
  2937. .input = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
  2938. "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
  2939. .ilen = 16,
  2940. .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2941. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2942. .rlen = 16,
  2943. }, {
  2944. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2945. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2946. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2947. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2948. .klen = 32,
  2949. .input = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
  2950. "\xea\xfc\x49\x90\x4b\x49\x60\x89",
  2951. .ilen = 16,
  2952. .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2953. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2954. .rlen = 16,
  2955. },
  2956. };
  2957. static struct cipher_testvec aes_cbc_enc_tv_template[] = {
  2958. { /* From RFC 3602 */
  2959. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  2960. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  2961. .klen = 16,
  2962. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  2963. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  2964. .input = "Single block msg",
  2965. .ilen = 16,
  2966. .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
  2967. "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
  2968. .rlen = 16,
  2969. }, {
  2970. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  2971. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  2972. .klen = 16,
  2973. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  2974. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  2975. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2976. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2977. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2978. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2979. .ilen = 32,
  2980. .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
  2981. "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
  2982. "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
  2983. "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
  2984. .rlen = 32,
  2985. }, { /* From NIST SP800-38A */
  2986. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  2987. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  2988. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  2989. .klen = 24,
  2990. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2991. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2992. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  2993. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  2994. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  2995. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  2996. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  2997. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  2998. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  2999. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  3000. .ilen = 64,
  3001. .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
  3002. "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
  3003. "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
  3004. "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
  3005. "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
  3006. "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
  3007. "\x08\xb0\xe2\x79\x88\x59\x88\x81"
  3008. "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
  3009. .rlen = 64,
  3010. }, {
  3011. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  3012. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  3013. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  3014. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  3015. .klen = 32,
  3016. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3017. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  3018. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  3019. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  3020. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  3021. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  3022. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  3023. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  3024. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  3025. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  3026. .ilen = 64,
  3027. .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
  3028. "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
  3029. "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
  3030. "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
  3031. "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
  3032. "\xa5\x30\xe2\x63\x04\x23\x14\x61"
  3033. "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
  3034. "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
  3035. .rlen = 64,
  3036. },
  3037. };
  3038. static struct cipher_testvec aes_cbc_dec_tv_template[] = {
  3039. { /* From RFC 3602 */
  3040. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  3041. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  3042. .klen = 16,
  3043. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  3044. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  3045. .input = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
  3046. "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
  3047. .ilen = 16,
  3048. .result = "Single block msg",
  3049. .rlen = 16,
  3050. }, {
  3051. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  3052. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  3053. .klen = 16,
  3054. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  3055. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  3056. .input = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
  3057. "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
  3058. "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
  3059. "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
  3060. .ilen = 32,
  3061. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3062. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3063. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3064. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  3065. .rlen = 32,
  3066. }, { /* From NIST SP800-38A */
  3067. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  3068. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  3069. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  3070. .klen = 24,
  3071. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3072. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  3073. .input = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
  3074. "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
  3075. "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
  3076. "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
  3077. "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
  3078. "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
  3079. "\x08\xb0\xe2\x79\x88\x59\x88\x81"
  3080. "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
  3081. .ilen = 64,
  3082. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  3083. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  3084. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  3085. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  3086. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  3087. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  3088. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  3089. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  3090. .rlen = 64,
  3091. }, {
  3092. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  3093. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  3094. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  3095. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  3096. .klen = 32,
  3097. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3098. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  3099. .input = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
  3100. "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
  3101. "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
  3102. "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
  3103. "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
  3104. "\xa5\x30\xe2\x63\x04\x23\x14\x61"
  3105. "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
  3106. "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
  3107. .ilen = 64,
  3108. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  3109. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  3110. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  3111. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  3112. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  3113. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  3114. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  3115. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  3116. .rlen = 64,
  3117. },
  3118. };
  3119. static struct cipher_testvec aes_lrw_enc_tv_template[] = {
  3120. /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
  3121. { /* LRW-32-AES 1 */
  3122. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  3123. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  3124. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  3125. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  3126. .klen = 32,
  3127. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3128. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3129. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3130. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3131. .ilen = 16,
  3132. .result = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
  3133. "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
  3134. .rlen = 16,
  3135. }, { /* LRW-32-AES 2 */
  3136. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  3137. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  3138. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  3139. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  3140. .klen = 32,
  3141. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3142. "\x00\x00\x00\x00\x00\x00\x00\x02",
  3143. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3144. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3145. .ilen = 16,
  3146. .result = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
  3147. "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
  3148. .rlen = 16,
  3149. }, { /* LRW-32-AES 3 */
  3150. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  3151. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  3152. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  3153. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  3154. .klen = 32,
  3155. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3156. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3157. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3158. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3159. .ilen = 16,
  3160. .result = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
  3161. "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
  3162. .rlen = 16,
  3163. }, { /* LRW-32-AES 4 */
  3164. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  3165. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  3166. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  3167. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  3168. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  3169. .klen = 40,
  3170. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3171. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3172. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3173. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3174. .ilen = 16,
  3175. .result = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
  3176. "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
  3177. .rlen = 16,
  3178. }, { /* LRW-32-AES 5 */
  3179. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  3180. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  3181. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  3182. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  3183. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  3184. .klen = 40,
  3185. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3186. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3187. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3188. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3189. .ilen = 16,
  3190. .result = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
  3191. "\xc8\x60\x48\x02\x87\xe3\x34\x06",
  3192. .rlen = 16,
  3193. }, { /* LRW-32-AES 6 */
  3194. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  3195. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  3196. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  3197. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  3198. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  3199. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  3200. .klen = 48,
  3201. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3202. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3203. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3204. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3205. .ilen = 16,
  3206. .result = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
  3207. "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
  3208. .rlen = 16,
  3209. }, { /* LRW-32-AES 7 */
  3210. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  3211. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  3212. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  3213. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  3214. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  3215. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  3216. .klen = 48,
  3217. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3218. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3219. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3220. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3221. .ilen = 16,
  3222. .result = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
  3223. "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
  3224. .rlen = 16,
  3225. }, {
  3226. /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
  3227. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  3228. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  3229. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  3230. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  3231. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  3232. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  3233. .klen = 48,
  3234. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3235. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3236. .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  3237. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  3238. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  3239. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  3240. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  3241. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  3242. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  3243. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  3244. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  3245. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  3246. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  3247. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  3248. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  3249. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  3250. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  3251. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  3252. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  3253. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  3254. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  3255. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  3256. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  3257. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  3258. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  3259. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  3260. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  3261. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  3262. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  3263. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  3264. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  3265. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  3266. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  3267. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  3268. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  3269. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  3270. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  3271. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  3272. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  3273. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  3274. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  3275. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  3276. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  3277. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  3278. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  3279. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  3280. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  3281. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  3282. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  3283. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  3284. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  3285. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  3286. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  3287. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  3288. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  3289. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  3290. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  3291. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  3292. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  3293. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  3294. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  3295. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  3296. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  3297. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  3298. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  3299. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  3300. .ilen = 512,
  3301. .result = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
  3302. "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
  3303. "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
  3304. "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
  3305. "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
  3306. "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
  3307. "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
  3308. "\xe8\x58\x46\x97\x39\x51\x07\xde"
  3309. "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
  3310. "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
  3311. "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
  3312. "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
  3313. "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
  3314. "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
  3315. "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
  3316. "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
  3317. "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
  3318. "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
  3319. "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
  3320. "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
  3321. "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
  3322. "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
  3323. "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
  3324. "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
  3325. "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
  3326. "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
  3327. "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
  3328. "\x41\x30\x58\xc5\x62\x74\x52\x1d"
  3329. "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
  3330. "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
  3331. "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
  3332. "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
  3333. "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
  3334. "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
  3335. "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
  3336. "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
  3337. "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
  3338. "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
  3339. "\xb8\x79\x78\x97\x94\xff\x72\x13"
  3340. "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
  3341. "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
  3342. "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
  3343. "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
  3344. "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
  3345. "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
  3346. "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
  3347. "\x1e\x86\x53\x11\x53\x94\x00\xee"
  3348. "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
  3349. "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
  3350. "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
  3351. "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
  3352. "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
  3353. "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
  3354. "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
  3355. "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
  3356. "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
  3357. "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
  3358. "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
  3359. "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
  3360. "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
  3361. "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
  3362. "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
  3363. "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
  3364. "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
  3365. .rlen = 512,
  3366. }
  3367. };
  3368. static struct cipher_testvec aes_lrw_dec_tv_template[] = {
  3369. /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
  3370. /* same as enc vectors with input and result reversed */
  3371. { /* LRW-32-AES 1 */
  3372. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  3373. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  3374. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  3375. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  3376. .klen = 32,
  3377. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3378. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3379. .input = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
  3380. "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
  3381. .ilen = 16,
  3382. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3383. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3384. .rlen = 16,
  3385. }, { /* LRW-32-AES 2 */
  3386. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  3387. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  3388. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  3389. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  3390. .klen = 32,
  3391. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3392. "\x00\x00\x00\x00\x00\x00\x00\x02",
  3393. .input = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
  3394. "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
  3395. .ilen = 16,
  3396. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3397. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3398. .rlen = 16,
  3399. }, { /* LRW-32-AES 3 */
  3400. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  3401. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  3402. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  3403. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  3404. .klen = 32,
  3405. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3406. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3407. .input = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
  3408. "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
  3409. .ilen = 16,
  3410. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3411. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3412. .rlen = 16,
  3413. }, { /* LRW-32-AES 4 */
  3414. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  3415. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  3416. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  3417. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  3418. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  3419. .klen = 40,
  3420. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3421. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3422. .input = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
  3423. "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
  3424. .ilen = 16,
  3425. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3426. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3427. .rlen = 16,
  3428. }, { /* LRW-32-AES 5 */
  3429. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  3430. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  3431. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  3432. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  3433. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  3434. .klen = 40,
  3435. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3436. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3437. .input = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
  3438. "\xc8\x60\x48\x02\x87\xe3\x34\x06",
  3439. .ilen = 16,
  3440. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3441. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3442. .rlen = 16,
  3443. }, { /* LRW-32-AES 6 */
  3444. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  3445. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  3446. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  3447. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  3448. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  3449. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  3450. .klen = 48,
  3451. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3452. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3453. .input = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
  3454. "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
  3455. .ilen = 16,
  3456. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3457. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3458. .rlen = 16,
  3459. }, { /* LRW-32-AES 7 */
  3460. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  3461. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  3462. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  3463. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  3464. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  3465. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  3466. .klen = 48,
  3467. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3468. "\x00\x00\x00\x02\x00\x00\x00\x00",
  3469. .input = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
  3470. "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
  3471. .ilen = 16,
  3472. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  3473. "\x38\x39\x41\x42\x43\x44\x45\x46",
  3474. .rlen = 16,
  3475. }, {
  3476. /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
  3477. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  3478. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  3479. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  3480. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  3481. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  3482. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  3483. .klen = 48,
  3484. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3485. "\x00\x00\x00\x00\x00\x00\x00\x01",
  3486. .input = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
  3487. "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
  3488. "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
  3489. "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
  3490. "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
  3491. "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
  3492. "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
  3493. "\xe8\x58\x46\x97\x39\x51\x07\xde"
  3494. "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
  3495. "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
  3496. "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
  3497. "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
  3498. "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
  3499. "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
  3500. "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
  3501. "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
  3502. "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
  3503. "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
  3504. "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
  3505. "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
  3506. "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
  3507. "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
  3508. "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
  3509. "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
  3510. "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
  3511. "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
  3512. "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
  3513. "\x41\x30\x58\xc5\x62\x74\x52\x1d"
  3514. "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
  3515. "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
  3516. "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
  3517. "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
  3518. "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
  3519. "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
  3520. "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
  3521. "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
  3522. "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
  3523. "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
  3524. "\xb8\x79\x78\x97\x94\xff\x72\x13"
  3525. "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
  3526. "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
  3527. "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
  3528. "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
  3529. "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
  3530. "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
  3531. "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
  3532. "\x1e\x86\x53\x11\x53\x94\x00\xee"
  3533. "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
  3534. "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
  3535. "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
  3536. "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
  3537. "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
  3538. "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
  3539. "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
  3540. "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
  3541. "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
  3542. "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
  3543. "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
  3544. "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
  3545. "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
  3546. "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
  3547. "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
  3548. "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
  3549. "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
  3550. .ilen = 512,
  3551. .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  3552. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  3553. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  3554. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  3555. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  3556. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  3557. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  3558. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  3559. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  3560. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  3561. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  3562. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  3563. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  3564. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  3565. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  3566. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  3567. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  3568. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  3569. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  3570. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  3571. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  3572. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  3573. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  3574. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  3575. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  3576. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  3577. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  3578. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  3579. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  3580. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  3581. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  3582. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  3583. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  3584. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  3585. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  3586. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  3587. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  3588. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  3589. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  3590. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  3591. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  3592. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  3593. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  3594. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  3595. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  3596. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  3597. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  3598. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  3599. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  3600. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  3601. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  3602. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  3603. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  3604. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  3605. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  3606. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  3607. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  3608. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  3609. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  3610. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  3611. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  3612. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  3613. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  3614. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  3615. .rlen = 512,
  3616. }
  3617. };
  3618. static struct cipher_testvec aes_xts_enc_tv_template[] = {
  3619. /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
  3620. { /* XTS-AES 1 */
  3621. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3622. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3623. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3624. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3625. .klen = 32,
  3626. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3627. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3628. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3629. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3630. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3631. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3632. .ilen = 32,
  3633. .result = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
  3634. "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
  3635. "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
  3636. "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
  3637. .rlen = 32,
  3638. }, { /* XTS-AES 2 */
  3639. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  3640. "\x11\x11\x11\x11\x11\x11\x11\x11"
  3641. "\x22\x22\x22\x22\x22\x22\x22\x22"
  3642. "\x22\x22\x22\x22\x22\x22\x22\x22",
  3643. .klen = 32,
  3644. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  3645. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3646. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  3647. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3648. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3649. "\x44\x44\x44\x44\x44\x44\x44\x44",
  3650. .ilen = 32,
  3651. .result = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
  3652. "\x39\x33\x40\x38\xac\xef\x83\x8b"
  3653. "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
  3654. "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
  3655. .rlen = 32,
  3656. }, { /* XTS-AES 3 */
  3657. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  3658. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  3659. "\x22\x22\x22\x22\x22\x22\x22\x22"
  3660. "\x22\x22\x22\x22\x22\x22\x22\x22",
  3661. .klen = 32,
  3662. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  3663. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3664. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  3665. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3666. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3667. "\x44\x44\x44\x44\x44\x44\x44\x44",
  3668. .ilen = 32,
  3669. .result = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
  3670. "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
  3671. "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
  3672. "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
  3673. .rlen = 32,
  3674. }, { /* XTS-AES 4 */
  3675. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  3676. "\x23\x53\x60\x28\x74\x71\x35\x26"
  3677. "\x31\x41\x59\x26\x53\x58\x97\x93"
  3678. "\x23\x84\x62\x64\x33\x83\x27\x95",
  3679. .klen = 32,
  3680. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3681. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3682. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3683. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3684. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3685. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  3686. "\x20\x21\x22\x23\x24\x25\x26\x27"
  3687. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  3688. "\x30\x31\x32\x33\x34\x35\x36\x37"
  3689. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  3690. "\x40\x41\x42\x43\x44\x45\x46\x47"
  3691. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  3692. "\x50\x51\x52\x53\x54\x55\x56\x57"
  3693. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  3694. "\x60\x61\x62\x63\x64\x65\x66\x67"
  3695. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  3696. "\x70\x71\x72\x73\x74\x75\x76\x77"
  3697. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  3698. "\x80\x81\x82\x83\x84\x85\x86\x87"
  3699. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  3700. "\x90\x91\x92\x93\x94\x95\x96\x97"
  3701. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  3702. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  3703. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  3704. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  3705. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  3706. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  3707. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  3708. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  3709. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  3710. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  3711. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  3712. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3713. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  3714. "\x00\x01\x02\x03\x04\x05\x06\x07"
  3715. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3716. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3717. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  3718. "\x20\x21\x22\x23\x24\x25\x26\x27"
  3719. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  3720. "\x30\x31\x32\x33\x34\x35\x36\x37"
  3721. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  3722. "\x40\x41\x42\x43\x44\x45\x46\x47"
  3723. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  3724. "\x50\x51\x52\x53\x54\x55\x56\x57"
  3725. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  3726. "\x60\x61\x62\x63\x64\x65\x66\x67"
  3727. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  3728. "\x70\x71\x72\x73\x74\x75\x76\x77"
  3729. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  3730. "\x80\x81\x82\x83\x84\x85\x86\x87"
  3731. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  3732. "\x90\x91\x92\x93\x94\x95\x96\x97"
  3733. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  3734. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  3735. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  3736. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  3737. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  3738. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  3739. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  3740. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  3741. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  3742. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  3743. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  3744. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3745. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  3746. .ilen = 512,
  3747. .result = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
  3748. "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
  3749. "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
  3750. "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
  3751. "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
  3752. "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
  3753. "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
  3754. "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
  3755. "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
  3756. "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
  3757. "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
  3758. "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
  3759. "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
  3760. "\x22\x97\x61\x46\xae\x20\xce\x84"
  3761. "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
  3762. "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
  3763. "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
  3764. "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
  3765. "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
  3766. "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
  3767. "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
  3768. "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
  3769. "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
  3770. "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
  3771. "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
  3772. "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
  3773. "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
  3774. "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
  3775. "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
  3776. "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
  3777. "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
  3778. "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
  3779. "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
  3780. "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
  3781. "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
  3782. "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
  3783. "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
  3784. "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
  3785. "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
  3786. "\x55\xef\x52\x97\xca\x67\xe9\xf3"
  3787. "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
  3788. "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
  3789. "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
  3790. "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
  3791. "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
  3792. "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
  3793. "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
  3794. "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
  3795. "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
  3796. "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
  3797. "\x18\x84\x69\x77\xae\x11\x9f\x7a"
  3798. "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
  3799. "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
  3800. "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
  3801. "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
  3802. "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
  3803. "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
  3804. "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
  3805. "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
  3806. "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
  3807. "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
  3808. "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
  3809. "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
  3810. "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
  3811. .rlen = 512,
  3812. }
  3813. };
  3814. static struct cipher_testvec aes_xts_dec_tv_template[] = {
  3815. /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
  3816. { /* XTS-AES 1 */
  3817. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3818. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3819. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3820. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3821. .klen = 32,
  3822. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3823. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3824. .input = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
  3825. "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
  3826. "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
  3827. "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
  3828. .ilen = 32,
  3829. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3830. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3831. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3832. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3833. .rlen = 32,
  3834. }, { /* XTS-AES 2 */
  3835. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  3836. "\x11\x11\x11\x11\x11\x11\x11\x11"
  3837. "\x22\x22\x22\x22\x22\x22\x22\x22"
  3838. "\x22\x22\x22\x22\x22\x22\x22\x22",
  3839. .klen = 32,
  3840. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  3841. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3842. .input = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
  3843. "\x39\x33\x40\x38\xac\xef\x83\x8b"
  3844. "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
  3845. "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
  3846. .ilen = 32,
  3847. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  3848. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3849. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3850. "\x44\x44\x44\x44\x44\x44\x44\x44",
  3851. .rlen = 32,
  3852. }, { /* XTS-AES 3 */
  3853. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  3854. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  3855. "\x22\x22\x22\x22\x22\x22\x22\x22"
  3856. "\x22\x22\x22\x22\x22\x22\x22\x22",
  3857. .klen = 32,
  3858. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  3859. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3860. .input = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
  3861. "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
  3862. "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
  3863. "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
  3864. .ilen = 32,
  3865. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  3866. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3867. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3868. "\x44\x44\x44\x44\x44\x44\x44\x44",
  3869. .rlen = 32,
  3870. }, { /* XTS-AES 4 */
  3871. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  3872. "\x23\x53\x60\x28\x74\x71\x35\x26"
  3873. "\x31\x41\x59\x26\x53\x58\x97\x93"
  3874. "\x23\x84\x62\x64\x33\x83\x27\x95",
  3875. .klen = 32,
  3876. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3877. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3878. .input = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
  3879. "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
  3880. "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
  3881. "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
  3882. "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
  3883. "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
  3884. "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
  3885. "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
  3886. "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
  3887. "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
  3888. "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
  3889. "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
  3890. "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
  3891. "\x22\x97\x61\x46\xae\x20\xce\x84"
  3892. "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
  3893. "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
  3894. "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
  3895. "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
  3896. "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
  3897. "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
  3898. "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
  3899. "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
  3900. "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
  3901. "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
  3902. "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
  3903. "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
  3904. "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
  3905. "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
  3906. "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
  3907. "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
  3908. "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
  3909. "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
  3910. "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
  3911. "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
  3912. "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
  3913. "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
  3914. "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
  3915. "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
  3916. "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
  3917. "\x55\xef\x52\x97\xca\x67\xe9\xf3"
  3918. "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
  3919. "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
  3920. "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
  3921. "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
  3922. "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
  3923. "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
  3924. "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
  3925. "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
  3926. "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
  3927. "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
  3928. "\x18\x84\x69\x77\xae\x11\x9f\x7a"
  3929. "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
  3930. "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
  3931. "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
  3932. "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
  3933. "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
  3934. "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
  3935. "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
  3936. "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
  3937. "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
  3938. "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
  3939. "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
  3940. "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
  3941. "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
  3942. .ilen = 512,
  3943. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3944. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3945. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3946. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  3947. "\x20\x21\x22\x23\x24\x25\x26\x27"
  3948. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  3949. "\x30\x31\x32\x33\x34\x35\x36\x37"
  3950. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  3951. "\x40\x41\x42\x43\x44\x45\x46\x47"
  3952. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  3953. "\x50\x51\x52\x53\x54\x55\x56\x57"
  3954. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  3955. "\x60\x61\x62\x63\x64\x65\x66\x67"
  3956. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  3957. "\x70\x71\x72\x73\x74\x75\x76\x77"
  3958. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  3959. "\x80\x81\x82\x83\x84\x85\x86\x87"
  3960. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  3961. "\x90\x91\x92\x93\x94\x95\x96\x97"
  3962. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  3963. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  3964. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  3965. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  3966. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  3967. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  3968. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  3969. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  3970. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  3971. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  3972. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  3973. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3974. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  3975. "\x00\x01\x02\x03\x04\x05\x06\x07"
  3976. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3977. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3978. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  3979. "\x20\x21\x22\x23\x24\x25\x26\x27"
  3980. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  3981. "\x30\x31\x32\x33\x34\x35\x36\x37"
  3982. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  3983. "\x40\x41\x42\x43\x44\x45\x46\x47"
  3984. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  3985. "\x50\x51\x52\x53\x54\x55\x56\x57"
  3986. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  3987. "\x60\x61\x62\x63\x64\x65\x66\x67"
  3988. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  3989. "\x70\x71\x72\x73\x74\x75\x76\x77"
  3990. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  3991. "\x80\x81\x82\x83\x84\x85\x86\x87"
  3992. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  3993. "\x90\x91\x92\x93\x94\x95\x96\x97"
  3994. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  3995. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  3996. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  3997. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  3998. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  3999. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  4000. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  4001. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  4002. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  4003. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  4004. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  4005. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4006. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  4007. .rlen = 512,
  4008. }
  4009. };
  4010. static struct cipher_testvec aes_ctr_enc_tv_template[] = {
  4011. { /* From NIST Special Publication 800-38A, Appendix F.5 */
  4012. .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
  4013. "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
  4014. .klen = 16,
  4015. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4016. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  4017. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  4018. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  4019. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  4020. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  4021. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  4022. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  4023. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  4024. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  4025. .ilen = 64,
  4026. .result = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
  4027. "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
  4028. "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
  4029. "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
  4030. "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
  4031. "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
  4032. "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
  4033. "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
  4034. .rlen = 64,
  4035. }, {
  4036. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  4037. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  4038. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  4039. .klen = 24,
  4040. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4041. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  4042. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  4043. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  4044. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  4045. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  4046. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  4047. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  4048. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  4049. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  4050. .ilen = 64,
  4051. .result = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
  4052. "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
  4053. "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
  4054. "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
  4055. "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
  4056. "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
  4057. "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
  4058. "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
  4059. .rlen = 64,
  4060. }, {
  4061. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  4062. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  4063. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  4064. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  4065. .klen = 32,
  4066. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4067. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  4068. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  4069. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  4070. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  4071. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  4072. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  4073. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  4074. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  4075. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  4076. .ilen = 64,
  4077. .result = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
  4078. "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
  4079. "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
  4080. "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
  4081. "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
  4082. "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
  4083. "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
  4084. "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
  4085. .rlen = 64,
  4086. }
  4087. };
  4088. static struct cipher_testvec aes_ctr_dec_tv_template[] = {
  4089. { /* From NIST Special Publication 800-38A, Appendix F.5 */
  4090. .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
  4091. "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
  4092. .klen = 16,
  4093. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4094. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  4095. .input = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
  4096. "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
  4097. "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
  4098. "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
  4099. "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
  4100. "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
  4101. "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
  4102. "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
  4103. .ilen = 64,
  4104. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  4105. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  4106. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  4107. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  4108. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  4109. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  4110. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  4111. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  4112. .rlen = 64,
  4113. }, {
  4114. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  4115. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  4116. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  4117. .klen = 24,
  4118. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4119. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  4120. .input = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
  4121. "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
  4122. "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
  4123. "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
  4124. "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
  4125. "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
  4126. "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
  4127. "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
  4128. .ilen = 64,
  4129. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  4130. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  4131. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  4132. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  4133. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  4134. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  4135. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  4136. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  4137. .rlen = 64,
  4138. }, {
  4139. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  4140. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  4141. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  4142. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  4143. .klen = 32,
  4144. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4145. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  4146. .input = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
  4147. "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
  4148. "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
  4149. "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
  4150. "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
  4151. "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
  4152. "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
  4153. "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
  4154. .ilen = 64,
  4155. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  4156. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  4157. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  4158. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  4159. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  4160. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  4161. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  4162. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  4163. .rlen = 64,
  4164. }
  4165. };
  4166. static struct cipher_testvec aes_ctr_rfc3686_enc_tv_template[] = {
  4167. { /* From RFC 3686 */
  4168. .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
  4169. "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
  4170. "\x00\x00\x00\x30",
  4171. .klen = 20,
  4172. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  4173. .input = "Single block msg",
  4174. .ilen = 16,
  4175. .result = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
  4176. "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
  4177. .rlen = 16,
  4178. }, {
  4179. .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
  4180. "\x43\xd6\xce\x1f\x32\x53\x91\x63"
  4181. "\x00\x6c\xb6\xdb",
  4182. .klen = 20,
  4183. .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
  4184. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  4185. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4186. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4187. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  4188. .ilen = 32,
  4189. .result = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
  4190. "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
  4191. "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
  4192. "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
  4193. .rlen = 32,
  4194. }, {
  4195. .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
  4196. "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
  4197. "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
  4198. "\x00\x00\x00\x48",
  4199. .klen = 28,
  4200. .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
  4201. .input = "Single block msg",
  4202. .ilen = 16,
  4203. .result = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
  4204. "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
  4205. .rlen = 16,
  4206. }, {
  4207. .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
  4208. "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
  4209. "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
  4210. "\x00\x96\xb0\x3b",
  4211. .klen = 28,
  4212. .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
  4213. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  4214. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4215. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4216. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  4217. .ilen = 32,
  4218. .result = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
  4219. "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
  4220. "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
  4221. "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
  4222. .rlen = 32,
  4223. }, {
  4224. .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
  4225. "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
  4226. "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
  4227. "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
  4228. "\x00\x00\x00\x60",
  4229. .klen = 36,
  4230. .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
  4231. .input = "Single block msg",
  4232. .ilen = 16,
  4233. .result = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
  4234. "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
  4235. .rlen = 16,
  4236. }, {
  4237. .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
  4238. "\x07\x96\x36\x58\x79\xef\xf8\x86"
  4239. "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
  4240. "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
  4241. "\x00\xfa\xac\x24",
  4242. .klen = 36,
  4243. .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
  4244. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  4245. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4246. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4247. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  4248. .ilen = 32,
  4249. .result = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
  4250. "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
  4251. "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
  4252. "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
  4253. .rlen = 32,
  4254. }, {
  4255. // generated using Crypto++
  4256. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  4257. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4258. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4259. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  4260. "\x00\x00\x00\x00",
  4261. .klen = 32 + 4,
  4262. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  4263. .input =
  4264. "\x00\x01\x02\x03\x04\x05\x06\x07"
  4265. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4266. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4267. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  4268. "\x20\x21\x22\x23\x24\x25\x26\x27"
  4269. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  4270. "\x30\x31\x32\x33\x34\x35\x36\x37"
  4271. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  4272. "\x40\x41\x42\x43\x44\x45\x46\x47"
  4273. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  4274. "\x50\x51\x52\x53\x54\x55\x56\x57"
  4275. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  4276. "\x60\x61\x62\x63\x64\x65\x66\x67"
  4277. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  4278. "\x70\x71\x72\x73\x74\x75\x76\x77"
  4279. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  4280. "\x80\x81\x82\x83\x84\x85\x86\x87"
  4281. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  4282. "\x90\x91\x92\x93\x94\x95\x96\x97"
  4283. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  4284. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  4285. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  4286. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  4287. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  4288. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  4289. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  4290. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  4291. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  4292. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  4293. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  4294. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  4295. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  4296. "\x00\x03\x06\x09\x0c\x0f\x12\x15"
  4297. "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
  4298. "\x30\x33\x36\x39\x3c\x3f\x42\x45"
  4299. "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
  4300. "\x60\x63\x66\x69\x6c\x6f\x72\x75"
  4301. "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
  4302. "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
  4303. "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
  4304. "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
  4305. "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
  4306. "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
  4307. "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
  4308. "\x20\x23\x26\x29\x2c\x2f\x32\x35"
  4309. "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
  4310. "\x50\x53\x56\x59\x5c\x5f\x62\x65"
  4311. "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
  4312. "\x80\x83\x86\x89\x8c\x8f\x92\x95"
  4313. "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
  4314. "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
  4315. "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
  4316. "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
  4317. "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
  4318. "\x10\x13\x16\x19\x1c\x1f\x22\x25"
  4319. "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
  4320. "\x40\x43\x46\x49\x4c\x4f\x52\x55"
  4321. "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
  4322. "\x70\x73\x76\x79\x7c\x7f\x82\x85"
  4323. "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
  4324. "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
  4325. "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
  4326. "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
  4327. "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
  4328. "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
  4329. "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
  4330. "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
  4331. "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
  4332. "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
  4333. "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
  4334. "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
  4335. "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
  4336. "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
  4337. "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
  4338. "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
  4339. "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
  4340. "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
  4341. "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
  4342. "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
  4343. "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
  4344. "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
  4345. "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
  4346. "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
  4347. "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
  4348. "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
  4349. "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
  4350. "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
  4351. "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
  4352. "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
  4353. "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
  4354. "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
  4355. "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
  4356. "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
  4357. "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
  4358. "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
  4359. "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
  4360. "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
  4361. "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
  4362. "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
  4363. "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
  4364. "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
  4365. "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
  4366. "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
  4367. "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
  4368. "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
  4369. "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
  4370. "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
  4371. "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
  4372. "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
  4373. "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
  4374. "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
  4375. "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
  4376. "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
  4377. "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
  4378. "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
  4379. "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
  4380. "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
  4381. "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
  4382. "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
  4383. "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
  4384. "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
  4385. "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
  4386. "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
  4387. "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
  4388. "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
  4389. "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
  4390. "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
  4391. "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
  4392. "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
  4393. "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
  4394. "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
  4395. "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
  4396. "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
  4397. "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
  4398. "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
  4399. "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
  4400. "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
  4401. "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
  4402. "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
  4403. "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
  4404. "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
  4405. "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
  4406. "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
  4407. "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
  4408. "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
  4409. "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
  4410. "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
  4411. "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
  4412. "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
  4413. "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
  4414. "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
  4415. "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
  4416. "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
  4417. "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
  4418. "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
  4419. "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
  4420. "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
  4421. "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
  4422. "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
  4423. "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
  4424. "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
  4425. "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
  4426. "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
  4427. "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
  4428. "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
  4429. "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
  4430. "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
  4431. "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
  4432. "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
  4433. "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
  4434. "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
  4435. "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
  4436. "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
  4437. "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
  4438. "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
  4439. "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
  4440. "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
  4441. "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
  4442. "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
  4443. "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
  4444. "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
  4445. "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
  4446. "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
  4447. "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
  4448. "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
  4449. "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
  4450. "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
  4451. "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
  4452. "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
  4453. "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
  4454. "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
  4455. "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
  4456. "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
  4457. "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
  4458. "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
  4459. "\x38\x45\x52\x5f\x6c\x79\x86\x93"
  4460. "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
  4461. "\x08\x15\x22\x2f\x3c\x49\x56\x63"
  4462. "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
  4463. "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
  4464. "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
  4465. "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
  4466. "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
  4467. "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
  4468. "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
  4469. "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
  4470. "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
  4471. "\x18\x25\x32\x3f\x4c\x59\x66\x73"
  4472. "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
  4473. "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
  4474. "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
  4475. "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
  4476. "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
  4477. "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
  4478. "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
  4479. "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
  4480. "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
  4481. "\x28\x35\x42\x4f\x5c\x69\x76\x83"
  4482. "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
  4483. "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
  4484. "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
  4485. "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
  4486. "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
  4487. "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
  4488. "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
  4489. "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
  4490. "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
  4491. "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
  4492. "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
  4493. "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
  4494. "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
  4495. "\x48\x57\x66\x75\x84\x93\xa2\xb1"
  4496. "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
  4497. "\x38\x47\x56\x65\x74\x83\x92\xa1"
  4498. "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
  4499. "\x28\x37\x46\x55\x64\x73\x82\x91"
  4500. "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
  4501. "\x18\x27\x36\x45\x54\x63\x72\x81"
  4502. "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
  4503. "\x08\x17\x26\x35\x44\x53\x62\x71"
  4504. "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
  4505. "\xf8\x07\x16\x25\x34\x43\x52\x61"
  4506. "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
  4507. "\xe8\xf7\x06\x15\x24\x33\x42\x51"
  4508. "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
  4509. "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
  4510. "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
  4511. "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
  4512. "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
  4513. "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
  4514. "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
  4515. "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
  4516. "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
  4517. "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
  4518. "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
  4519. "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
  4520. "\x00\x11\x22\x33\x44\x55\x66\x77"
  4521. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
  4522. "\x10\x21\x32\x43\x54\x65\x76\x87"
  4523. "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
  4524. "\x20\x31\x42\x53\x64\x75\x86\x97"
  4525. "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
  4526. "\x30\x41\x52\x63\x74\x85\x96\xa7"
  4527. "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
  4528. "\x40\x51\x62\x73\x84\x95\xa6\xb7"
  4529. "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
  4530. "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
  4531. "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
  4532. "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
  4533. "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
  4534. "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
  4535. "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
  4536. "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
  4537. "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
  4538. "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
  4539. "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
  4540. "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
  4541. "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
  4542. "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
  4543. "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
  4544. "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
  4545. "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
  4546. "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
  4547. "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
  4548. "\xe0\xf1\x02\x13\x24\x35\x46\x57"
  4549. "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
  4550. "\xf0\x01\x12\x23\x34\x45\x56\x67"
  4551. "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
  4552. "\x00\x13\x26\x39\x4c\x5f\x72\x85"
  4553. "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
  4554. "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
  4555. "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
  4556. "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
  4557. "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
  4558. "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
  4559. "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
  4560. "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
  4561. "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
  4562. "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
  4563. "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
  4564. "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
  4565. "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
  4566. "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
  4567. "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
  4568. "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
  4569. "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
  4570. "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
  4571. "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
  4572. "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
  4573. "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
  4574. "\x10\x23\x36\x49\x5c\x6f\x82\x95"
  4575. "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
  4576. "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
  4577. "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
  4578. "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
  4579. "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
  4580. "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
  4581. "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
  4582. "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
  4583. "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
  4584. "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
  4585. "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
  4586. "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
  4587. "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
  4588. "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
  4589. "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
  4590. "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
  4591. "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
  4592. "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
  4593. "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
  4594. "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
  4595. "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
  4596. "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
  4597. "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
  4598. "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
  4599. "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
  4600. "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
  4601. "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
  4602. "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
  4603. "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
  4604. "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
  4605. "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
  4606. "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
  4607. "\x18\x2d\x42\x57\x6c\x81\x96\xab"
  4608. "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
  4609. "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
  4610. "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
  4611. "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
  4612. "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
  4613. "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
  4614. "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
  4615. "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
  4616. "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
  4617. "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
  4618. "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
  4619. "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
  4620. "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
  4621. "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
  4622. "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
  4623. "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
  4624. "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
  4625. "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
  4626. "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
  4627. "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
  4628. "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
  4629. "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
  4630. "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
  4631. "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
  4632. "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
  4633. "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
  4634. "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
  4635. "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
  4636. "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
  4637. "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
  4638. "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
  4639. "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
  4640. "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
  4641. "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
  4642. "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
  4643. "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
  4644. "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
  4645. "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
  4646. "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
  4647. "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
  4648. "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
  4649. "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
  4650. "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
  4651. "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
  4652. "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
  4653. "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
  4654. "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
  4655. "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
  4656. "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
  4657. "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
  4658. "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
  4659. "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
  4660. "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
  4661. "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
  4662. "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
  4663. "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
  4664. "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
  4665. "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
  4666. "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
  4667. "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
  4668. "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
  4669. "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
  4670. "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
  4671. "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
  4672. "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
  4673. "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
  4674. "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
  4675. "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
  4676. "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
  4677. "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
  4678. "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
  4679. "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
  4680. "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
  4681. "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
  4682. "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
  4683. "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
  4684. "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
  4685. "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
  4686. "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
  4687. "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
  4688. "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
  4689. "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
  4690. "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
  4691. "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
  4692. "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
  4693. "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
  4694. "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
  4695. "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
  4696. "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
  4697. "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
  4698. "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
  4699. "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
  4700. "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
  4701. "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
  4702. "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
  4703. "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
  4704. "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
  4705. "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
  4706. "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
  4707. "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
  4708. "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
  4709. "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
  4710. "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
  4711. "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
  4712. "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
  4713. "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
  4714. "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
  4715. "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
  4716. "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
  4717. "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
  4718. "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
  4719. "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
  4720. "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
  4721. "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
  4722. "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
  4723. "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
  4724. "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
  4725. "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
  4726. "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
  4727. "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
  4728. "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
  4729. "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
  4730. "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
  4731. "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
  4732. "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
  4733. "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
  4734. "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
  4735. "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
  4736. "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
  4737. "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
  4738. "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
  4739. "\x78\x95\xb2\xcf\xec\x09\x26\x43"
  4740. "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
  4741. "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
  4742. "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
  4743. "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
  4744. "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
  4745. "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
  4746. "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
  4747. "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
  4748. "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
  4749. "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
  4750. "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
  4751. "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
  4752. "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
  4753. "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
  4754. "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
  4755. "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
  4756. "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
  4757. "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
  4758. "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
  4759. "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
  4760. "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
  4761. "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
  4762. "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
  4763. "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
  4764. "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
  4765. "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
  4766. "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
  4767. "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
  4768. "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
  4769. "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
  4770. "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
  4771. "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
  4772. "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
  4773. "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
  4774. "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
  4775. "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
  4776. "\x00\x21\x42\x63",
  4777. .ilen = 4100,
  4778. .result =
  4779. "\xf0\x5c\x74\xad\x4e\xbc\x99\xe2"
  4780. "\xae\xff\x91\x3a\x44\xcf\x38\x32"
  4781. "\x1e\xad\xa7\xcd\xa1\x39\x95\xaa"
  4782. "\x10\xb1\xb3\x2e\x04\x31\x8f\x86"
  4783. "\xf2\x62\x74\x70\x0c\xa4\x46\x08"
  4784. "\xa8\xb7\x99\xa8\xe9\xd2\x73\x79"
  4785. "\x7e\x6e\xd4\x8f\x1e\xc7\x8e\x31"
  4786. "\x0b\xfa\x4b\xce\xfd\xf3\x57\x71"
  4787. "\xe9\x46\x03\xa5\x3d\x34\x00\xe2"
  4788. "\x18\xff\x75\x6d\x06\x2d\x00\xab"
  4789. "\xb9\x3e\x6c\x59\xc5\x84\x06\xb5"
  4790. "\x8b\xd0\x89\x9c\x4a\x79\x16\xc6"
  4791. "\x3d\x74\x54\xfa\x44\xcd\x23\x26"
  4792. "\x5c\xcf\x7e\x28\x92\x32\xbf\xdf"
  4793. "\xa7\x20\x3c\x74\x58\x2a\x9a\xde"
  4794. "\x61\x00\x1c\x4f\xff\x59\xc4\x22"
  4795. "\xac\x3c\xd0\xe8\x6c\xf9\x97\x1b"
  4796. "\x58\x9b\xad\x71\xe8\xa9\xb5\x0d"
  4797. "\xee\x2f\x04\x1f\x7f\xbc\x99\xee"
  4798. "\x84\xff\x42\x60\xdc\x3a\x18\xa5"
  4799. "\x81\xf9\xef\xdc\x7a\x0f\x65\x41"
  4800. "\x2f\xa3\xd3\xf9\xc2\xcb\xc0\x4d"
  4801. "\x8f\xd3\x76\x96\xad\x49\x6d\x38"
  4802. "\x3d\x39\x0b\x6c\x80\xb7\x54\x69"
  4803. "\xf0\x2c\x90\x02\x29\x0d\x1c\x12"
  4804. "\xad\x55\xc3\x8b\x68\xd9\xcc\xb3"
  4805. "\xb2\x64\x33\x90\x5e\xca\x4b\xe2"
  4806. "\xfb\x75\xdc\x63\xf7\x9f\x82\x74"
  4807. "\xf0\xc9\xaa\x7f\xe9\x2a\x9b\x33"
  4808. "\xbc\x88\x00\x7f\xca\xb2\x1f\x14"
  4809. "\xdb\xc5\x8e\x7b\x11\x3c\x3e\x08"
  4810. "\xf3\x83\xe8\xe0\x94\x86\x2e\x92"
  4811. "\x78\x6b\x01\xc9\xc7\x83\xba\x21"
  4812. "\x6a\x25\x15\x33\x4e\x45\x08\xec"
  4813. "\x35\xdb\xe0\x6e\x31\x51\x79\xa9"
  4814. "\x42\x44\x65\xc1\xa0\xf1\xf9\x2a"
  4815. "\x70\xd5\xb6\xc6\xc1\x8c\x39\xfc"
  4816. "\x25\xa6\x55\xd9\xdd\x2d\x4c\xec"
  4817. "\x49\xc6\xeb\x0e\xa8\x25\x2a\x16"
  4818. "\x1b\x66\x84\xda\xe2\x92\xe5\xc0"
  4819. "\xc8\x53\x07\xaf\x80\x84\xec\xfd"
  4820. "\xcd\xd1\x6e\xcd\x6f\x6a\xf5\x36"
  4821. "\xc5\x15\xe5\x25\x7d\x77\xd1\x1a"
  4822. "\x93\x36\xa9\xcf\x7c\xa4\x54\x4a"
  4823. "\x06\x51\x48\x4e\xf6\x59\x87\xd2"
  4824. "\x04\x02\xef\xd3\x44\xde\x76\x31"
  4825. "\xb3\x34\x17\x1b\x9d\x66\x11\x9f"
  4826. "\x1e\xcc\x17\xe9\xc7\x3c\x1b\xe7"
  4827. "\xcb\x50\x08\xfc\xdc\x2b\x24\xdb"
  4828. "\x65\x83\xd0\x3b\xe3\x30\xea\x94"
  4829. "\x6c\xe7\xe8\x35\x32\xc7\xdb\x64"
  4830. "\xb4\x01\xab\x36\x2c\x77\x13\xaf"
  4831. "\xf8\x2b\x88\x3f\x54\x39\xc4\x44"
  4832. "\xfe\xef\x6f\x68\x34\xbe\x0f\x05"
  4833. "\x16\x6d\xf6\x0a\x30\xe7\xe3\xed"
  4834. "\xc4\xde\x3c\x1b\x13\xd8\xdb\xfe"
  4835. "\x41\x62\xe5\x28\xd4\x8d\xa3\xc7"
  4836. "\x93\x97\xc6\x48\x45\x1d\x9f\x83"
  4837. "\xdf\x4b\x40\x3e\x42\x25\x87\x80"
  4838. "\x4c\x7d\xa8\xd4\x98\x23\x95\x75"
  4839. "\x41\x8c\xda\x41\x9b\xd4\xa7\x06"
  4840. "\xb5\xf1\x71\x09\x53\xbe\xca\xbf"
  4841. "\x32\x03\xed\xf0\x50\x1c\x56\x39"
  4842. "\x5b\xa4\x75\x18\xf7\x9b\x58\xef"
  4843. "\x53\xfc\x2a\x38\x23\x15\x75\xcd"
  4844. "\x45\xe5\x5a\x82\x55\xba\x21\xfa"
  4845. "\xd4\xbd\xc6\x94\x7c\xc5\x80\x12"
  4846. "\xf7\x4b\x32\xc4\x9a\x82\xd8\x28"
  4847. "\x8f\xd9\xc2\x0f\x60\x03\xbe\x5e"
  4848. "\x21\xd6\x5f\x58\xbf\x5c\xb1\x32"
  4849. "\x82\x8d\xa9\xe5\xf2\x66\x1a\xc0"
  4850. "\xa0\xbc\x58\x2f\x71\xf5\x2f\xed"
  4851. "\xd1\x26\xb9\xd8\x49\x5a\x07\x19"
  4852. "\x01\x7c\x59\xb0\xf8\xa4\xb7\xd3"
  4853. "\x7b\x1a\x8c\x38\xf4\x50\xa4\x59"
  4854. "\xb0\xcc\x41\x0b\x88\x7f\xe5\x31"
  4855. "\xb3\x42\xba\xa2\x7e\xd4\x32\x71"
  4856. "\x45\x87\x48\xa9\xc2\xf2\x89\xb3"
  4857. "\xe4\xa7\x7e\x52\x15\x61\xfa\xfe"
  4858. "\xc9\xdd\x81\xeb\x13\xab\xab\xc3"
  4859. "\x98\x59\xd8\x16\x3d\x14\x7a\x1c"
  4860. "\x3c\x41\x9a\x16\x16\x9b\xd2\xd2"
  4861. "\x69\x3a\x29\x23\xac\x86\x32\xa5"
  4862. "\x48\x9c\x9e\xf3\x47\x77\x81\x70"
  4863. "\x24\xe8\x85\xd2\xf5\xb5\xfa\xff"
  4864. "\x59\x6a\xd3\x50\x59\x43\x59\xde"
  4865. "\xd9\xf1\x55\xa5\x0c\xc3\x1a\x1a"
  4866. "\x18\x34\x0d\x1a\x63\x33\xed\x10"
  4867. "\xe0\x1d\x2a\x18\xd2\xc0\x54\xa8"
  4868. "\xca\xb5\x9a\xd3\xdd\xca\x45\x84"
  4869. "\x50\xe7\x0f\xfe\xa4\x99\x5a\xbe"
  4870. "\x43\x2d\x9a\xcb\x92\x3f\x5a\x1d"
  4871. "\x85\xd8\xc9\xdf\x68\xc9\x12\x80"
  4872. "\x56\x0c\xdc\x00\xdc\x3a\x7d\x9d"
  4873. "\xa3\xa2\xe8\x4d\xbf\xf9\x70\xa0"
  4874. "\xa4\x13\x4f\x6b\xaf\x0a\x89\x7f"
  4875. "\xda\xf0\xbf\x9b\xc8\x1d\xe5\xf8"
  4876. "\x2e\x8b\x07\xb5\x73\x1b\xcc\xa2"
  4877. "\xa6\xad\x30\xbc\x78\x3c\x5b\x10"
  4878. "\xfa\x5e\x62\x2d\x9e\x64\xb3\x33"
  4879. "\xce\xf9\x1f\x86\xe7\x8b\xa2\xb8"
  4880. "\xe8\x99\x57\x8c\x11\xed\x66\xd9"
  4881. "\x3c\x72\xb9\xc3\xe6\x4e\x17\x3a"
  4882. "\x6a\xcb\x42\x24\x06\xed\x3e\x4e"
  4883. "\xa3\xe8\x6a\x94\xda\x0d\x4e\xd5"
  4884. "\x14\x19\xcf\xb6\x26\xd8\x2e\xcc"
  4885. "\x64\x76\x38\x49\x4d\xfe\x30\x6d"
  4886. "\xe4\xc8\x8c\x7b\xc4\xe0\x35\xba"
  4887. "\x22\x6e\x76\xe1\x1a\xf2\x53\xc3"
  4888. "\x28\xa2\x82\x1f\x61\x69\xad\xc1"
  4889. "\x7b\x28\x4b\x1e\x6c\x85\x95\x9b"
  4890. "\x51\xb5\x17\x7f\x12\x69\x8c\x24"
  4891. "\xd5\xc7\x5a\x5a\x11\x54\xff\x5a"
  4892. "\xf7\x16\xc3\x91\xa6\xf0\xdc\x0a"
  4893. "\xb6\xa7\x4a\x0d\x7a\x58\xfe\xa5"
  4894. "\xf5\xcb\x8f\x7b\x0e\xea\x57\xe7"
  4895. "\xbd\x79\xd6\x1c\x88\x23\x6c\xf2"
  4896. "\x4d\x29\x77\x53\x35\x6a\x00\x8d"
  4897. "\xcd\xa3\x58\xbe\x77\x99\x18\xf8"
  4898. "\xe6\xe1\x8f\xe9\x37\x8f\xe3\xe2"
  4899. "\x5a\x8a\x93\x25\xaf\xf3\x78\x80"
  4900. "\xbe\xa6\x1b\xc6\xac\x8b\x1c\x91"
  4901. "\x58\xe1\x9f\x89\x35\x9d\x1d\x21"
  4902. "\x29\x9f\xf4\x99\x02\x27\x0f\xa8"
  4903. "\x4f\x79\x94\x2b\x33\x2c\xda\xa2"
  4904. "\x26\x39\x83\x94\xef\x27\xd8\x53"
  4905. "\x8f\x66\x0d\xe4\x41\x7d\x34\xcd"
  4906. "\x43\x7c\x95\x0a\x53\xef\x66\xda"
  4907. "\x7e\x9b\xf3\x93\xaf\xd0\x73\x71"
  4908. "\xba\x40\x9b\x74\xf8\xd7\xd7\x41"
  4909. "\x6d\xaf\x72\x9c\x8d\x21\x87\x3c"
  4910. "\xfd\x0a\x90\xa9\x47\x96\x9e\xd3"
  4911. "\x88\xee\x73\xcf\x66\x2f\x52\x56"
  4912. "\x6d\xa9\x80\x4c\xe2\x6f\x62\x88"
  4913. "\x3f\x0e\x54\x17\x48\x80\x5d\xd3"
  4914. "\xc3\xda\x25\x3d\xa1\xc8\xcb\x9f"
  4915. "\x9b\x70\xb3\xa1\xeb\x04\x52\xa1"
  4916. "\xf2\x22\x0f\xfc\xc8\x18\xfa\xf9"
  4917. "\x85\x9c\xf1\xac\xeb\x0c\x02\x46"
  4918. "\x75\xd2\xf5\x2c\xe3\xd2\x59\x94"
  4919. "\x12\xf3\x3c\xfc\xd7\x92\xfa\x36"
  4920. "\xba\x61\x34\x38\x7c\xda\x48\x3e"
  4921. "\x08\xc9\x39\x23\x5e\x02\x2c\x1a"
  4922. "\x18\x7e\xb4\xd9\xfd\x9e\x40\x02"
  4923. "\xb1\x33\x37\x32\xe7\xde\xd6\xd0"
  4924. "\x7c\x58\x65\x4b\xf8\x34\x27\x9c"
  4925. "\x44\xb4\xbd\xe9\xe9\x4c\x78\x7d"
  4926. "\x4b\x9f\xce\xb1\xcd\x47\xa5\x37"
  4927. "\xe5\x6d\xbd\xb9\x43\x94\x0a\xd4"
  4928. "\xd6\xf9\x04\x5f\xb5\x66\x6c\x1a"
  4929. "\x35\x12\xe3\x36\x28\x27\x36\x58"
  4930. "\x01\x2b\x79\xe4\xba\x6d\x10\x7d"
  4931. "\x65\xdf\x84\x95\xf4\xd5\xb6\x8f"
  4932. "\x2b\x9f\x96\x00\x86\x60\xf0\x21"
  4933. "\x76\xa8\x6a\x8c\x28\x1c\xb3\x6b"
  4934. "\x97\xd7\xb6\x53\x2a\xcc\xab\x40"
  4935. "\x9d\x62\x79\x58\x52\xe6\x65\xb7"
  4936. "\xab\x55\x67\x9c\x89\x7c\x03\xb0"
  4937. "\x73\x59\xc5\x81\xf5\x18\x17\x5c"
  4938. "\x89\xf3\x78\x35\x44\x62\x78\x72"
  4939. "\xd0\x96\xeb\x31\xe7\x87\x77\x14"
  4940. "\x99\x51\xf2\x59\x26\x9e\xb5\xa6"
  4941. "\x45\xfe\x6e\xbd\x07\x4c\x94\x5a"
  4942. "\xa5\x7d\xfc\xf1\x2b\x77\xe2\xfe"
  4943. "\x17\xd4\x84\xa0\xac\xb5\xc7\xda"
  4944. "\xa9\x1a\xb6\xf3\x74\x11\xb4\x9d"
  4945. "\xfb\x79\x2e\x04\x2d\x50\x28\x83"
  4946. "\xbf\xc6\x52\xd3\x34\xd6\xe8\x7a"
  4947. "\xb6\xea\xe7\xa8\x6c\x15\x1e\x2c"
  4948. "\x57\xbc\x48\x4e\x5f\x5c\xb6\x92"
  4949. "\xd2\x49\x77\x81\x6d\x90\x70\xae"
  4950. "\x98\xa1\x03\x0d\x6b\xb9\x77\x14"
  4951. "\xf1\x4e\x23\xd3\xf8\x68\xbd\xc2"
  4952. "\xfe\x04\xb7\x5c\xc5\x17\x60\x8f"
  4953. "\x65\x54\xa4\x7a\x42\xdc\x18\x0d"
  4954. "\xb5\xcf\x0f\xd3\xc7\x91\x66\x1b"
  4955. "\x45\x42\x27\x75\x50\xe5\xee\xb8"
  4956. "\x7f\x33\x2c\xba\x4a\x92\x4d\x2c"
  4957. "\x3c\xe3\x0d\x80\x01\xba\x0d\x29"
  4958. "\xd8\x3c\xe9\x13\x16\x57\xe6\xea"
  4959. "\x94\x52\xe7\x00\x4d\x30\xb0\x0f"
  4960. "\x35\xb8\xb8\xa7\xb1\xb5\x3b\x44"
  4961. "\xe1\x2f\xfd\x88\xed\x43\xe7\x52"
  4962. "\x10\x93\xb3\x8a\x30\x6b\x0a\xf7"
  4963. "\x23\xc6\x50\x9d\x4a\xb0\xde\xc3"
  4964. "\xdc\x9b\x2f\x01\x56\x36\x09\xc5"
  4965. "\x2f\x6b\xfe\xf1\xd8\x27\x45\x03"
  4966. "\x30\x5e\x5c\x5b\xb4\x62\x0e\x1a"
  4967. "\xa9\x21\x2b\x92\x94\x87\x62\x57"
  4968. "\x4c\x10\x74\x1a\xf1\x0a\xc5\x84"
  4969. "\x3b\x9e\x72\x02\xd7\xcc\x09\x56"
  4970. "\xbd\x54\xc1\xf0\xc3\xe3\xb3\xf8"
  4971. "\xd2\x0d\x61\xcb\xef\xce\x0d\x05"
  4972. "\xb0\x98\xd9\x8e\x4f\xf9\xbc\x93"
  4973. "\xa6\xea\xc8\xcf\x10\x53\x4b\xf1"
  4974. "\xec\xfc\x89\xf9\x64\xb0\x22\xbf"
  4975. "\x9e\x55\x46\x9f\x7c\x50\x8e\x84"
  4976. "\x54\x20\x98\xd7\x6c\x40\x1e\xdb"
  4977. "\x69\x34\x78\x61\x24\x21\x9c\x8a"
  4978. "\xb3\x62\x31\x8b\x6e\xf5\x2a\x35"
  4979. "\x86\x13\xb1\x6c\x64\x2e\x41\xa5"
  4980. "\x05\xf2\x42\xba\xd2\x3a\x0d\x8e"
  4981. "\x8a\x59\x94\x3c\xcf\x36\x27\x82"
  4982. "\xc2\x45\xee\x58\xcd\x88\xb4\xec"
  4983. "\xde\xb2\x96\x0a\xaf\x38\x6f\x88"
  4984. "\xd7\xd8\xe1\xdf\xb9\x96\xa9\x0a"
  4985. "\xb1\x95\x28\x86\x20\xe9\x17\x49"
  4986. "\xa2\x29\x38\xaa\xa5\xe9\x6e\xf1"
  4987. "\x19\x27\xc0\xd5\x2a\x22\xc3\x0b"
  4988. "\xdb\x7c\x73\x10\xb9\xba\x89\x76"
  4989. "\x54\xae\x7d\x71\xb3\x93\xf6\x32"
  4990. "\xe6\x47\x43\x55\xac\xa0\x0d\xc2"
  4991. "\x93\x27\x4a\x8e\x0e\x74\x15\xc7"
  4992. "\x0b\x85\xd9\x0c\xa9\x30\x7a\x3e"
  4993. "\xea\x8f\x85\x6d\x3a\x12\x4f\x72"
  4994. "\x69\x58\x7a\x80\xbb\xb5\x97\xf3"
  4995. "\xcf\x70\xd2\x5d\xdd\x4d\x21\x79"
  4996. "\x54\x4d\xe4\x05\xe8\xbd\xc2\x62"
  4997. "\xb1\x3b\x77\x1c\xd6\x5c\xf3\xa0"
  4998. "\x79\x00\xa8\x6c\x29\xd9\x18\x24"
  4999. "\x36\xa2\x46\xc0\x96\x65\x7f\xbd"
  5000. "\x2a\xed\x36\x16\x0c\xaa\x9f\xf4"
  5001. "\xc5\xb4\xe2\x12\xed\x69\xed\x4f"
  5002. "\x26\x2c\x39\x52\x89\x98\xe7\x2c"
  5003. "\x99\xa4\x9e\xa3\x9b\x99\x46\x7a"
  5004. "\x3a\xdc\xa8\x59\xa3\xdb\xc3\x3b"
  5005. "\x95\x0d\x3b\x09\x6e\xee\x83\x5d"
  5006. "\x32\x4d\xed\xab\xfa\x98\x14\x4e"
  5007. "\xc3\x15\x45\x53\x61\xc4\x93\xbd"
  5008. "\x90\xf4\x99\x95\x4c\xe6\x76\x92"
  5009. "\x29\x90\x46\x30\x92\x69\x7d\x13"
  5010. "\xf2\xa5\xcd\x69\x49\x44\xb2\x0f"
  5011. "\x63\x40\x36\x5f\x09\xe2\x78\xf8"
  5012. "\x91\xe3\xe2\xfa\x10\xf7\xc8\x24"
  5013. "\xa8\x89\x32\x5c\x37\x25\x1d\xb2"
  5014. "\xea\x17\x8a\x0a\xa9\x64\xc3\x7c"
  5015. "\x3c\x7c\xbd\xc6\x79\x34\xe7\xe2"
  5016. "\x85\x8e\xbf\xf8\xde\x92\xa0\xae"
  5017. "\x20\xc4\xf6\xbb\x1f\x38\x19\x0e"
  5018. "\xe8\x79\x9c\xa1\x23\xe9\x54\x7e"
  5019. "\x37\x2f\xe2\x94\x32\xaf\xa0\x23"
  5020. "\x49\xe4\xc0\xb3\xac\x00\x8f\x36"
  5021. "\x05\xc4\xa6\x96\xec\x05\x98\x4f"
  5022. "\x96\x67\x57\x1f\x20\x86\x1b\x2d"
  5023. "\x69\xe4\x29\x93\x66\x5f\xaf\x6b"
  5024. "\x88\x26\x2c\x67\x02\x4b\x52\xd0"
  5025. "\x83\x7a\x43\x1f\xc0\x71\x15\x25"
  5026. "\x77\x65\x08\x60\x11\x76\x4c\x8d"
  5027. "\xed\xa9\x27\xc6\xb1\x2a\x2c\x6a"
  5028. "\x4a\x97\xf5\xc6\xb7\x70\x42\xd3"
  5029. "\x03\xd1\x24\x95\xec\x6d\xab\x38"
  5030. "\x72\xce\xe2\x8b\x33\xd7\x51\x09"
  5031. "\xdc\x45\xe0\x09\x96\x32\xf3\xc4"
  5032. "\x84\xdc\x73\x73\x2d\x1b\x11\x98"
  5033. "\xc5\x0e\x69\x28\x94\xc7\xb5\x4d"
  5034. "\xc8\x8a\xd0\xaa\x13\x2e\x18\x74"
  5035. "\xdd\xd1\x1e\xf3\x90\xe8\xfc\x9a"
  5036. "\x72\x4a\x0e\xd1\xe4\xfb\x0d\x96"
  5037. "\xd1\x0c\x79\x85\x1b\x1c\xfe\xe1"
  5038. "\x62\x8f\x7a\x73\x32\xab\xc8\x18"
  5039. "\x69\xe3\x34\x30\xdf\x13\xa6\xe5"
  5040. "\xe8\x0e\x67\x7f\x81\x11\xb4\x60"
  5041. "\xc7\xbd\x79\x65\x50\xdc\xc4\x5b"
  5042. "\xde\x39\xa4\x01\x72\x63\xf3\xd1"
  5043. "\x64\x4e\xdf\xfc\x27\x92\x37\x0d"
  5044. "\x57\xcd\x11\x4f\x11\x04\x8e\x1d"
  5045. "\x16\xf7\xcd\x92\x9a\x99\x30\x14"
  5046. "\xf1\x7c\x67\x1b\x1f\x41\x0b\xe8"
  5047. "\x32\xe8\xb8\xc1\x4f\x54\x86\x4f"
  5048. "\xe5\x79\x81\x73\xcd\x43\x59\x68"
  5049. "\x73\x02\x3b\x78\x21\x72\x43\x00"
  5050. "\x49\x17\xf7\x00\xaf\x68\x24\x53"
  5051. "\x05\x0a\xc3\x33\xe0\x33\x3f\x69"
  5052. "\xd2\x84\x2f\x0b\xed\xde\x04\xf4"
  5053. "\x11\x94\x13\x69\x51\x09\x28\xde"
  5054. "\x57\x5c\xef\xdc\x9a\x49\x1c\x17"
  5055. "\x97\xf3\x96\xc1\x7f\x5d\x2e\x7d"
  5056. "\x55\xb8\xb3\x02\x09\xb3\x1f\xe7"
  5057. "\xc9\x8d\xa3\x36\x34\x8a\x77\x13"
  5058. "\x30\x63\x4c\xa5\xcd\xc3\xe0\x7e"
  5059. "\x05\xa1\x7b\x0c\xcb\x74\x47\x31"
  5060. "\x62\x03\x43\xf1\x87\xb4\xb0\x85"
  5061. "\x87\x8e\x4b\x25\xc7\xcf\xae\x4b"
  5062. "\x36\x46\x3e\x62\xbc\x6f\xeb\x5f"
  5063. "\x73\xac\xe6\x07\xee\xc1\xa1\xd6"
  5064. "\xc4\xab\xc9\xd6\x89\x45\xe1\xf1"
  5065. "\x04\x4e\x1a\x6f\xbb\x4f\x3a\xa3"
  5066. "\xa0\xcb\xa3\x0a\xd8\x71\x35\x55"
  5067. "\xe4\xbc\x2e\x04\x06\xe6\xff\x5b"
  5068. "\x1c\xc0\x11\x7c\xc5\x17\xf3\x38"
  5069. "\xcf\xe9\xba\x0f\x0e\xef\x02\xc2"
  5070. "\x8d\xc6\xbc\x4b\x67\x20\x95\xd7"
  5071. "\x2c\x45\x5b\x86\x44\x8c\x6f\x2e"
  5072. "\x7e\x9f\x1c\x77\xba\x6b\x0e\xa3"
  5073. "\x69\xdc\xab\x24\x57\x60\x47\xc1"
  5074. "\xd1\xa5\x9d\x23\xe6\xb1\x37\xfe"
  5075. "\x93\xd2\x4c\x46\xf9\x0c\xc6\xfb"
  5076. "\xd6\x9d\x99\x69\xab\x7a\x07\x0c"
  5077. "\x65\xe7\xc4\x08\x96\xe2\xa5\x01"
  5078. "\x3f\x46\x07\x05\x7e\xe8\x9a\x90"
  5079. "\x50\xdc\xe9\x7a\xea\xa1\x39\x6e"
  5080. "\x66\xe4\x6f\xa5\x5f\xb2\xd9\x5b"
  5081. "\xf5\xdb\x2a\x32\xf0\x11\x6f\x7c"
  5082. "\x26\x10\x8f\x3d\x80\xe9\x58\xf7"
  5083. "\xe0\xa8\x57\xf8\xdb\x0e\xce\x99"
  5084. "\x63\x19\x3d\xd5\xec\x1b\x77\x69"
  5085. "\x98\xf6\xe4\x5f\x67\x17\x4b\x09"
  5086. "\x85\x62\x82\x70\x18\xe2\x9a\x78"
  5087. "\xe2\x62\xbd\xb4\xf1\x42\xc6\xfb"
  5088. "\x08\xd0\xbd\xeb\x4e\x09\xf2\xc8"
  5089. "\x1e\xdc\x3d\x32\x21\x56\x9c\x4f"
  5090. "\x35\xf3\x61\x06\x72\x84\xc4\x32"
  5091. "\xf2\xf1\xfa\x0b\x2f\xc3\xdb\x02"
  5092. "\x04\xc2\xde\x57\x64\x60\x8d\xcf"
  5093. "\xcb\x86\x5d\x97\x3e\xb1\x9c\x01"
  5094. "\xd6\x28\x8f\x99\xbc\x46\xeb\x05"
  5095. "\xaf\x7e\xb8\x21\x2a\x56\x85\x1c"
  5096. "\xb3\x71\xa0\xde\xca\x96\xf1\x78"
  5097. "\x49\xa2\x99\x81\x80\x5c\x01\xf5"
  5098. "\xa0\xa2\x56\x63\xe2\x70\x07\xa5"
  5099. "\x95\xd6\x85\xeb\x36\x9e\xa9\x51"
  5100. "\x66\x56\x5f\x1d\x02\x19\xe2\xf6"
  5101. "\x4f\x73\x38\x09\x75\x64\x48\xe0"
  5102. "\xf1\x7e\x0e\xe8\x9d\xf9\xed\x94"
  5103. "\xfe\x16\x26\x62\x49\x74\xf4\xb0"
  5104. "\xd4\xa9\x6c\xb0\xfd\x53\xe9\x81"
  5105. "\xe0\x7a\xbf\xcf\xb5\xc4\x01\x81"
  5106. "\x79\x99\x77\x01\x3b\xe9\xa2\xb6"
  5107. "\xe6\x6a\x8a\x9e\x56\x1c\x8d\x1e"
  5108. "\x8f\x06\x55\x2c\x6c\xdc\x92\x87"
  5109. "\x64\x3b\x4b\x19\xa1\x13\x64\x1d"
  5110. "\x4a\xe9\xc0\x00\xb8\x95\xef\x6b"
  5111. "\x1a\x86\x6d\x37\x52\x02\xc2\xe0"
  5112. "\xc8\xbb\x42\x0c\x02\x21\x4a\xc9"
  5113. "\xef\xa0\x54\xe4\x5e\x16\x53\x81"
  5114. "\x70\x62\x10\xaf\xde\xb8\xb5\xd3"
  5115. "\xe8\x5e\x6c\xc3\x8a\x3e\x18\x07"
  5116. "\xf2\x2f\x7d\xa7\xe1\x3d\x4e\xb4"
  5117. "\x26\xa7\xa3\x93\x86\xb2\x04\x1e"
  5118. "\x53\x5d\x86\xd6\xde\x65\xca\xe3"
  5119. "\x4e\xc1\xcf\xef\xc8\x70\x1b\x83"
  5120. "\x13\xdd\x18\x8b\x0d\x76\xd2\xf6"
  5121. "\x37\x7a\x93\x7a\x50\x11\x9f\x96"
  5122. "\x86\x25\xfd\xac\xdc\xbe\x18\x93"
  5123. "\x19\x6b\xec\x58\x4f\xb9\x75\xa7"
  5124. "\xdd\x3f\x2f\xec\xc8\x5a\x84\xab"
  5125. "\xd5\xe4\x8a\x07\xf6\x4d\x23\xd6"
  5126. "\x03\xfb\x03\x6a\xea\x66\xbf\xd4"
  5127. "\xb1\x34\xfb\x78\xe9\x55\xdc\x7c"
  5128. "\x3d\x9c\xe5\x9a\xac\xc3\x7a\x80"
  5129. "\x24\x6d\xa0\xef\x25\x7c\xb7\xea"
  5130. "\xce\x4d\x5f\x18\x60\xce\x87\x22"
  5131. "\x66\x2f\xd5\xdd\xdd\x02\x21\x75"
  5132. "\x82\xa0\x1f\x58\xc6\xd3\x62\xf7"
  5133. "\x32\xd8\xaf\x1e\x07\x77\x51\x96"
  5134. "\xd5\x6b\x1e\x7e\x80\x02\xe8\x67"
  5135. "\xea\x17\x0b\x10\xd2\x3f\x28\x25"
  5136. "\x4f\x05\x77\x02\x14\x69\xf0\x2c"
  5137. "\xbe\x0c\xf1\x74\x30\xd1\xb9\x9b"
  5138. "\xfc\x8c\xbb\x04\x16\xd9\xba\xc3"
  5139. "\xbc\x91\x8a\xc4\x30\xa4\xb0\x12"
  5140. "\x4c\x21\x87\xcb\xc9\x1d\x16\x96"
  5141. "\x07\x6f\x23\x54\xb9\x6f\x79\xe5"
  5142. "\x64\xc0\x64\xda\xb1\xae\xdd\x60"
  5143. "\x6c\x1a\x9d\xd3\x04\x8e\x45\xb0"
  5144. "\x92\x61\xd0\x48\x81\xed\x5e\x1d"
  5145. "\xa0\xc9\xa4\x33\xc7\x13\x51\x5d"
  5146. "\x7f\x83\x73\xb6\x70\x18\x65\x3e"
  5147. "\x2f\x0e\x7a\x12\x39\x98\xab\xd8"
  5148. "\x7e\x6f\xa3\xd1\xba\x56\xad\xbd"
  5149. "\xf0\x03\x01\x1c\x85\x35\x9f\xeb"
  5150. "\x19\x63\xa1\xaf\xfe\x2d\x35\x50"
  5151. "\x39\xa0\x65\x7c\x95\x7e\x6b\xfe"
  5152. "\xc1\xac\x07\x7c\x98\x4f\xbe\x57"
  5153. "\xa7\x22\xec\xe2\x7e\x29\x09\x53"
  5154. "\xe8\xbf\xb4\x7e\x3f\x8f\xfc\x14"
  5155. "\xce\x54\xf9\x18\x58\xb5\xff\x44"
  5156. "\x05\x9d\xce\x1b\xb6\x82\x23\xc8"
  5157. "\x2e\xbc\x69\xbb\x4a\x29\x0f\x65"
  5158. "\x94\xf0\x63\x06\x0e\xef\x8c\xbd"
  5159. "\xff\xfd\xb0\x21\x6e\x57\x05\x75"
  5160. "\xda\xd5\xc4\xeb\x8d\x32\xf7\x50"
  5161. "\xd3\x6f\x22\xed\x5f\x8e\xa2\x5b"
  5162. "\x80\x8c\xc8\x78\x40\x24\x4b\x89"
  5163. "\x30\xce\x7a\x97\x0e\xc4\xaf\xef"
  5164. "\x9b\xb4\xcd\x66\x74\x14\x04\x2b"
  5165. "\xf7\xce\x0b\x1c\x6e\xc2\x78\x8c"
  5166. "\xca\xc5\xd0\x1c\x95\x4a\x91\x2d"
  5167. "\xa7\x20\xeb\x86\x52\xb7\x67\xd8"
  5168. "\x0c\xd6\x04\x14\xde\x51\x74\x75"
  5169. "\xe7\x11\xb4\x87\xa3\x3d\x2d\xad"
  5170. "\x4f\xef\xa0\x0f\x70\x00\x6d\x13"
  5171. "\x19\x1d\x41\x50\xe9\xd8\xf0\x32"
  5172. "\x71\xbc\xd3\x11\xf2\xac\xbe\xaf"
  5173. "\x75\x46\x65\x4e\x07\x34\x37\xa3"
  5174. "\x89\xfe\x75\xd4\x70\x4c\xc6\x3f"
  5175. "\x69\x24\x0e\x38\x67\x43\x8c\xde"
  5176. "\x06\xb5\xb8\xe7\xc4\xf0\x41\x8f"
  5177. "\xf0\xbd\x2f\x0b\xb9\x18\xf8\xde"
  5178. "\x64\xb1\xdb\xee\x00\x50\x77\xe1"
  5179. "\xc7\xff\xa6\xfa\xdd\x70\xf4\xe3"
  5180. "\x93\xe9\x77\x35\x3d\x4b\x2f\x2b"
  5181. "\x6d\x55\xf0\xfc\x88\x54\x4e\x89"
  5182. "\xc1\x8a\x23\x31\x2d\x14\x2a\xb8"
  5183. "\x1b\x15\xdd\x9e\x6e\x7b\xda\x05"
  5184. "\x91\x7d\x62\x64\x96\x72\xde\xfc"
  5185. "\xc1\xec\xf0\x23\x51\x6f\xdb\x5b"
  5186. "\x1d\x08\x57\xce\x09\xb8\xf6\xcd"
  5187. "\x8d\x95\xf2\x20\xbf\x0f\x20\x57"
  5188. "\x98\x81\x84\x4f\x15\x5c\x76\xe7"
  5189. "\x3e\x0a\x3a\x6c\xc4\x8a\xbe\x78"
  5190. "\x74\x77\xc3\x09\x4b\x5d\x48\xe4"
  5191. "\xc8\xcb\x0b\xea\x17\x28\xcf\xcf"
  5192. "\x31\x32\x44\xa4\xe5\x0e\x1a\x98"
  5193. "\x94\xc4\xf0\xff\xae\x3e\x44\xe8"
  5194. "\xa5\xb3\xb5\x37\x2f\xe8\xaf\x6f"
  5195. "\x28\xc1\x37\x5f\x31\xd2\xb9\x33"
  5196. "\xb1\xb2\x52\x94\x75\x2c\x29\x59"
  5197. "\x06\xc2\x25\xe8\x71\x65\x4e\xed"
  5198. "\xc0\x9c\xb1\xbb\x25\xdc\x6c\xe7"
  5199. "\x4b\xa5\x7a\x54\x7a\x60\xff\x7a"
  5200. "\xe0\x50\x40\x96\x35\x63\xe4\x0b"
  5201. "\x76\xbd\xa4\x65\x00\x1b\x57\x88"
  5202. "\xae\xed\x39\x88\x42\x11\x3c\xed"
  5203. "\x85\x67\x7d\xb9\x68\x82\xe9\x43"
  5204. "\x3c\x47\x53\xfa\xe8\xf8\x9f\x1f"
  5205. "\x9f\xef\x0f\xf7\x30\xd9\x30\x0e"
  5206. "\xb9\x9f\x69\x18\x2f\x7e\xf8\xf8"
  5207. "\xf8\x8c\x0f\xd4\x02\x4d\xea\xcd"
  5208. "\x0a\x9c\x6f\x71\x6d\x5a\x4c\x60"
  5209. "\xce\x20\x56\x32\xc6\xc5\x99\x1f"
  5210. "\x09\xe6\x4e\x18\x1a\x15\x13\xa8"
  5211. "\x7d\xb1\x6b\xc0\xb2\x6d\xf8\x26"
  5212. "\x66\xf8\x3d\x18\x74\x70\x66\x7a"
  5213. "\x34\x17\xde\xba\x47\xf1\x06\x18"
  5214. "\xcb\xaf\xeb\x4a\x1e\x8f\xa7\x77"
  5215. "\xe0\x3b\x78\x62\x66\xc9\x10\xea"
  5216. "\x1f\xb7\x29\x0a\x45\xa1\x1d\x1e"
  5217. "\x1d\xe2\x65\x61\x50\x9c\xd7\x05"
  5218. "\xf2\x0b\x5b\x12\x61\x02\xc8\xe5"
  5219. "\x63\x4f\x20\x0c\x07\x17\x33\x5e"
  5220. "\x03\x9a\x53\x0f\x2e\x55\xfe\x50"
  5221. "\x43\x7d\xd0\xb6\x7e\x5a\xda\xae"
  5222. "\x58\xef\x15\xa9\x83\xd9\x46\xb1"
  5223. "\x42\xaa\xf5\x02\x6c\xce\x92\x06"
  5224. "\x1b\xdb\x66\x45\x91\x79\xc2\x2d"
  5225. "\xe6\x53\xd3\x14\xfd\xbb\x44\x63"
  5226. "\xc6\xd7\x3d\x7a\x0c\x75\x78\x9d"
  5227. "\x5c\xa6\x39\xb3\xe5\x63\xca\x8b"
  5228. "\xfe\xd3\xef\x60\x83\xf6\x8e\x70"
  5229. "\xb6\x67\xc7\x77\xed\x23\xef\x4c"
  5230. "\xf0\xed\x2d\x07\x59\x6f\xc1\x01"
  5231. "\x34\x37\x08\xab\xd9\x1f\x09\xb1"
  5232. "\xce\x5b\x17\xff\x74\xf8\x9c\xd5"
  5233. "\x2c\x56\x39\x79\x0f\x69\x44\x75"
  5234. "\x58\x27\x01\xc4\xbf\xa7\xa1\x1d"
  5235. "\x90\x17\x77\x86\x5a\x3f\xd9\xd1"
  5236. "\x0e\xa0\x10\xf8\xec\x1e\xa5\x7f"
  5237. "\x5e\x36\xd1\xe3\x04\x2c\x70\xf7"
  5238. "\x8e\xc0\x98\x2f\x6c\x94\x2b\x41"
  5239. "\xb7\x60\x00\xb7\x2e\xb8\x02\x8d"
  5240. "\xb8\xb0\xd3\x86\xba\x1d\xd7\x90"
  5241. "\xd6\xb6\xe1\xfc\xd7\xd8\x28\x06"
  5242. "\x63\x9b\xce\x61\x24\x79\xc0\x70"
  5243. "\x52\xd0\xb6\xd4\x28\x95\x24\x87"
  5244. "\x03\x1f\xb7\x9a\xda\xa3\xfb\x52"
  5245. "\x5b\x68\xe7\x4c\x8c\x24\xe1\x42"
  5246. "\xf7\xd5\xfd\xad\x06\x32\x9f\xba"
  5247. "\xc1\xfc\xdd\xc6\xfc\xfc\xb3\x38"
  5248. "\x74\x56\x58\x40\x02\x37\x52\x2c"
  5249. "\x55\xcc\xb3\x9e\x7a\xe9\xd4\x38"
  5250. "\x41\x5e\x0c\x35\xe2\x11\xd1\x13"
  5251. "\xf8\xb7\x8d\x72\x6b\x22\x2a\xb0"
  5252. "\xdb\x08\xba\x35\xb9\x3f\xc8\xd3"
  5253. "\x24\x90\xec\x58\xd2\x09\xc7\x2d"
  5254. "\xed\x38\x80\x36\x72\x43\x27\x49"
  5255. "\x4a\x80\x8a\xa2\xe8\xd3\xda\x30"
  5256. "\x7d\xb6\x82\x37\x86\x92\x86\x3e"
  5257. "\x08\xb2\x28\x5a\x55\x44\x24\x7d"
  5258. "\x40\x48\x8a\xb6\x89\x58\x08\xa0"
  5259. "\xd6\x6d\x3a\x17\xbf\xf6\x54\xa2"
  5260. "\xf5\xd3\x8c\x0f\x78\x12\x57\x8b"
  5261. "\xd5\xc2\xfd\x58\x5b\x7f\x38\xe3"
  5262. "\xcc\xb7\x7c\x48\xb3\x20\xe8\x81"
  5263. "\x14\x32\x45\x05\xe0\xdb\x9f\x75"
  5264. "\x85\xb4\x6a\xfc\x95\xe3\x54\x22"
  5265. "\x12\xee\x30\xfe\xd8\x30\xef\x34"
  5266. "\x50\xab\x46\x30\x98\x2f\xb7\xc0"
  5267. "\x15\xa2\x83\xb6\xf2\x06\x21\xa2"
  5268. "\xc3\x26\x37\x14\xd1\x4d\xb5\x10"
  5269. "\x52\x76\x4d\x6a\xee\xb5\x2b\x15"
  5270. "\xb7\xf9\x51\xe8\x2a\xaf\xc7\xfa"
  5271. "\x77\xaf\xb0\x05\x4d\xd1\x68\x8e"
  5272. "\x74\x05\x9f\x9d\x93\xa5\x3e\x7f"
  5273. "\x4e\x5f\x9d\xcb\x09\xc7\x83\xe3"
  5274. "\x02\x9d\x27\x1f\xef\x85\x05\x8d"
  5275. "\xec\x55\x88\x0f\x0d\x7c\x4c\xe8"
  5276. "\xa1\x75\xa0\xd8\x06\x47\x14\xef"
  5277. "\xaa\x61\xcf\x26\x15\xad\xd8\xa3"
  5278. "\xaa\x75\xf2\x78\x4a\x5a\x61\xdf"
  5279. "\x8b\xc7\x04\xbc\xb2\x32\xd2\x7e"
  5280. "\x42\xee\xb4\x2f\x51\xff\x7b\x2e"
  5281. "\xd3\x02\xe8\xdc\x5d\x0d\x50\xdc"
  5282. "\xae\xb7\x46\xf9\xa8\xe6\xd0\x16"
  5283. "\xcc\xe6\x2c\x81\xc7\xad\xe9\xf0"
  5284. "\x05\x72\x6d\x3d\x0a\x7a\xa9\x02"
  5285. "\xac\x82\x93\x6e\xb6\x1c\x28\xfc"
  5286. "\x44\x12\xfb\x73\x77\xd4\x13\x39"
  5287. "\x29\x88\x8a\xf3\x5c\xa6\x36\xa0"
  5288. "\x2a\xed\x7e\xb1\x1d\xd6\x4c\x6b"
  5289. "\x41\x01\x18\x5d\x5d\x07\x97\xa6"
  5290. "\x4b\xef\x31\x18\xea\xac\xb1\x84"
  5291. "\x21\xed\xda\x86",
  5292. .rlen = 4100,
  5293. .np = 2,
  5294. .tap = { 4064, 36 },
  5295. },
  5296. };
  5297. static struct cipher_testvec aes_ctr_rfc3686_dec_tv_template[] = {
  5298. { /* From RFC 3686 */
  5299. .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
  5300. "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
  5301. "\x00\x00\x00\x30",
  5302. .klen = 20,
  5303. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  5304. .input = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
  5305. "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
  5306. .ilen = 16,
  5307. .result = "Single block msg",
  5308. .rlen = 16,
  5309. }, {
  5310. .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
  5311. "\x43\xd6\xce\x1f\x32\x53\x91\x63"
  5312. "\x00\x6c\xb6\xdb",
  5313. .klen = 20,
  5314. .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
  5315. .input = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
  5316. "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
  5317. "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
  5318. "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
  5319. .ilen = 32,
  5320. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5321. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5322. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5323. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  5324. .rlen = 32,
  5325. }, {
  5326. .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
  5327. "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
  5328. "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
  5329. "\x00\x00\x00\x48",
  5330. .klen = 28,
  5331. .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
  5332. .input = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
  5333. "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
  5334. .ilen = 16,
  5335. .result = "Single block msg",
  5336. .rlen = 16,
  5337. }, {
  5338. .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
  5339. "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
  5340. "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
  5341. "\x00\x96\xb0\x3b",
  5342. .klen = 28,
  5343. .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
  5344. .input = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
  5345. "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
  5346. "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
  5347. "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
  5348. .ilen = 32,
  5349. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5350. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5351. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5352. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  5353. .rlen = 32,
  5354. }, {
  5355. .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
  5356. "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
  5357. "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
  5358. "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
  5359. "\x00\x00\x00\x60",
  5360. .klen = 36,
  5361. .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
  5362. .input = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
  5363. "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
  5364. .ilen = 16,
  5365. .result = "Single block msg",
  5366. .rlen = 16,
  5367. }, {
  5368. .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
  5369. "\x07\x96\x36\x58\x79\xef\xf8\x86"
  5370. "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
  5371. "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
  5372. "\x00\xfa\xac\x24",
  5373. .klen = 36,
  5374. .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
  5375. .input = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
  5376. "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
  5377. "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
  5378. "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
  5379. .ilen = 32,
  5380. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5381. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5382. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5383. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  5384. .rlen = 32,
  5385. },
  5386. };
  5387. static struct cipher_testvec aes_ofb_enc_tv_template[] = {
  5388. /* From NIST Special Publication 800-38A, Appendix F.5 */
  5389. {
  5390. .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
  5391. "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
  5392. .klen = 16,
  5393. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08"
  5394. "\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  5395. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  5396. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  5397. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  5398. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  5399. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  5400. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  5401. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  5402. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  5403. .ilen = 64,
  5404. .result = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
  5405. "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
  5406. "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5"
  5407. "\x3c\x52\xda\xc5\x4e\xd8\x25"
  5408. "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43"
  5409. "\x44\xf7\xa8\x22\x60\xed\xcc"
  5410. "\x30\x4c\x65\x28\xf6\x59\xc7\x78"
  5411. "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e",
  5412. .rlen = 64,
  5413. }
  5414. };
  5415. static struct cipher_testvec aes_ofb_dec_tv_template[] = {
  5416. /* From NIST Special Publication 800-38A, Appendix F.5 */
  5417. {
  5418. .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
  5419. "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
  5420. .klen = 16,
  5421. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08"
  5422. "\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  5423. .input = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
  5424. "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
  5425. "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5"
  5426. "\x3c\x52\xda\xc5\x4e\xd8\x25"
  5427. "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43"
  5428. "\x44\xf7\xa8\x22\x60\xed\xcc"
  5429. "\x30\x4c\x65\x28\xf6\x59\xc7\x78"
  5430. "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e",
  5431. .ilen = 64,
  5432. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  5433. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  5434. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  5435. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  5436. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  5437. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  5438. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  5439. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  5440. .rlen = 64,
  5441. }
  5442. };
  5443. static struct aead_testvec aes_gcm_enc_tv_template[] = {
  5444. { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
  5445. .key = zeroed_string,
  5446. .klen = 16,
  5447. .result = "\x58\xe2\xfc\xce\xfa\x7e\x30\x61"
  5448. "\x36\x7f\x1d\x57\xa4\xe7\x45\x5a",
  5449. .rlen = 16,
  5450. }, {
  5451. .key = zeroed_string,
  5452. .klen = 16,
  5453. .input = zeroed_string,
  5454. .ilen = 16,
  5455. .result = "\x03\x88\xda\xce\x60\xb6\xa3\x92"
  5456. "\xf3\x28\xc2\xb9\x71\xb2\xfe\x78"
  5457. "\xab\x6e\x47\xd4\x2c\xec\x13\xbd"
  5458. "\xf5\x3a\x67\xb2\x12\x57\xbd\xdf",
  5459. .rlen = 32,
  5460. }, {
  5461. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5462. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5463. .klen = 16,
  5464. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5465. "\xde\xca\xf8\x88",
  5466. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5467. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5468. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5469. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5470. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5471. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5472. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5473. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  5474. .ilen = 64,
  5475. .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  5476. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  5477. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  5478. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  5479. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  5480. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  5481. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  5482. "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
  5483. "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
  5484. "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
  5485. .rlen = 80,
  5486. }, {
  5487. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5488. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5489. .klen = 16,
  5490. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5491. "\xde\xca\xf8\x88",
  5492. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5493. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5494. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5495. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5496. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5497. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5498. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5499. "\xba\x63\x7b\x39",
  5500. .ilen = 60,
  5501. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5502. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5503. "\xab\xad\xda\xd2",
  5504. .alen = 20,
  5505. .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  5506. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  5507. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  5508. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  5509. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  5510. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  5511. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  5512. "\x3d\x58\xe0\x91"
  5513. "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
  5514. "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
  5515. .rlen = 76,
  5516. }, {
  5517. .key = zeroed_string,
  5518. .klen = 24,
  5519. .result = "\xcd\x33\xb2\x8a\xc7\x73\xf7\x4b"
  5520. "\xa0\x0e\xd1\xf3\x12\x57\x24\x35",
  5521. .rlen = 16,
  5522. }, {
  5523. .key = zeroed_string,
  5524. .klen = 24,
  5525. .input = zeroed_string,
  5526. .ilen = 16,
  5527. .result = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
  5528. "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
  5529. "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
  5530. "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
  5531. .rlen = 32,
  5532. }, {
  5533. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5534. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5535. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  5536. .klen = 24,
  5537. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5538. "\xde\xca\xf8\x88",
  5539. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5540. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5541. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5542. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5543. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5544. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5545. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5546. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  5547. .ilen = 64,
  5548. .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  5549. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  5550. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  5551. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  5552. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  5553. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  5554. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  5555. "\xcc\xda\x27\x10\xac\xad\xe2\x56"
  5556. "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
  5557. "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
  5558. .rlen = 80,
  5559. }, {
  5560. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5561. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5562. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  5563. .klen = 24,
  5564. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5565. "\xde\xca\xf8\x88",
  5566. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5567. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5568. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5569. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5570. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5571. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5572. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5573. "\xba\x63\x7b\x39",
  5574. .ilen = 60,
  5575. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5576. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5577. "\xab\xad\xda\xd2",
  5578. .alen = 20,
  5579. .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  5580. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  5581. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  5582. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  5583. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  5584. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  5585. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  5586. "\xcc\xda\x27\x10"
  5587. "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
  5588. "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
  5589. .rlen = 76,
  5590. .np = 2,
  5591. .tap = { 32, 28 },
  5592. .anp = 2,
  5593. .atap = { 8, 12 }
  5594. }, {
  5595. .key = zeroed_string,
  5596. .klen = 32,
  5597. .result = "\x53\x0f\x8a\xfb\xc7\x45\x36\xb9"
  5598. "\xa9\x63\xb4\xf1\xc4\xcb\x73\x8b",
  5599. .rlen = 16,
  5600. }
  5601. };
  5602. static struct aead_testvec aes_gcm_dec_tv_template[] = {
  5603. { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
  5604. .key = zeroed_string,
  5605. .klen = 32,
  5606. .input = "\xce\xa7\x40\x3d\x4d\x60\x6b\x6e"
  5607. "\x07\x4e\xc5\xd3\xba\xf3\x9d\x18"
  5608. "\xd0\xd1\xc8\xa7\x99\x99\x6b\xf0"
  5609. "\x26\x5b\x98\xb5\xd4\x8a\xb9\x19",
  5610. .ilen = 32,
  5611. .result = zeroed_string,
  5612. .rlen = 16,
  5613. }, {
  5614. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5615. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5616. "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5617. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5618. .klen = 32,
  5619. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5620. "\xde\xca\xf8\x88",
  5621. .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
  5622. "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
  5623. "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
  5624. "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
  5625. "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
  5626. "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
  5627. "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
  5628. "\xbc\xc9\xf6\x62\x89\x80\x15\xad"
  5629. "\xb0\x94\xda\xc5\xd9\x34\x71\xbd"
  5630. "\xec\x1a\x50\x22\x70\xe3\xcc\x6c",
  5631. .ilen = 80,
  5632. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5633. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5634. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5635. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5636. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5637. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5638. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5639. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  5640. .rlen = 64,
  5641. }, {
  5642. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5643. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5644. "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5645. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5646. .klen = 32,
  5647. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5648. "\xde\xca\xf8\x88",
  5649. .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
  5650. "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
  5651. "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
  5652. "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
  5653. "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
  5654. "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
  5655. "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
  5656. "\xbc\xc9\xf6\x62"
  5657. "\x76\xfc\x6e\xce\x0f\x4e\x17\x68"
  5658. "\xcd\xdf\x88\x53\xbb\x2d\x55\x1b",
  5659. .ilen = 76,
  5660. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5661. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5662. "\xab\xad\xda\xd2",
  5663. .alen = 20,
  5664. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5665. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5666. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5667. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5668. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5669. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5670. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5671. "\xba\x63\x7b\x39",
  5672. .rlen = 60,
  5673. .np = 2,
  5674. .tap = { 48, 28 },
  5675. .anp = 3,
  5676. .atap = { 8, 8, 4 }
  5677. }, {
  5678. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5679. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5680. .klen = 16,
  5681. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5682. "\xde\xca\xf8\x88",
  5683. .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  5684. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  5685. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  5686. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  5687. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  5688. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  5689. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  5690. "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
  5691. "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
  5692. "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
  5693. .ilen = 80,
  5694. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5695. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5696. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5697. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5698. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5699. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5700. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5701. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  5702. .rlen = 64,
  5703. }, {
  5704. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5705. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  5706. .klen = 16,
  5707. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5708. "\xde\xca\xf8\x88",
  5709. .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  5710. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  5711. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  5712. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  5713. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  5714. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  5715. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  5716. "\x3d\x58\xe0\x91"
  5717. "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
  5718. "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
  5719. .ilen = 76,
  5720. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5721. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5722. "\xab\xad\xda\xd2",
  5723. .alen = 20,
  5724. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5725. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5726. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5727. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5728. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5729. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5730. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5731. "\xba\x63\x7b\x39",
  5732. .rlen = 60,
  5733. }, {
  5734. .key = zeroed_string,
  5735. .klen = 24,
  5736. .input = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
  5737. "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
  5738. "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
  5739. "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
  5740. .ilen = 32,
  5741. .result = zeroed_string,
  5742. .rlen = 16,
  5743. }, {
  5744. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5745. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5746. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  5747. .klen = 24,
  5748. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5749. "\xde\xca\xf8\x88",
  5750. .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  5751. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  5752. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  5753. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  5754. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  5755. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  5756. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  5757. "\xcc\xda\x27\x10\xac\xad\xe2\x56"
  5758. "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
  5759. "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
  5760. .ilen = 80,
  5761. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5762. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5763. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5764. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5765. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5766. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5767. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5768. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  5769. .rlen = 64,
  5770. }, {
  5771. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5772. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5773. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  5774. .klen = 24,
  5775. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  5776. "\xde\xca\xf8\x88",
  5777. .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  5778. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  5779. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  5780. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  5781. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  5782. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  5783. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  5784. "\xcc\xda\x27\x10"
  5785. "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
  5786. "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
  5787. .ilen = 76,
  5788. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5789. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  5790. "\xab\xad\xda\xd2",
  5791. .alen = 20,
  5792. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  5793. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  5794. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  5795. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  5796. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  5797. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  5798. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  5799. "\xba\x63\x7b\x39",
  5800. .rlen = 60,
  5801. }
  5802. };
  5803. static struct aead_testvec aes_gcm_rfc4106_enc_tv_template[] = {
  5804. { /* Generated using Crypto++ */
  5805. .key = zeroed_string,
  5806. .klen = 20,
  5807. .iv = zeroed_string,
  5808. .input = zeroed_string,
  5809. .ilen = 16,
  5810. .assoc = zeroed_string,
  5811. .alen = 8,
  5812. .result = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
  5813. "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
  5814. "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
  5815. "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
  5816. .rlen = 32,
  5817. },{
  5818. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5819. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5820. "\x00\x00\x00\x00",
  5821. .klen = 20,
  5822. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
  5823. "\x00\x00\x00\x00",
  5824. .input = zeroed_string,
  5825. .ilen = 16,
  5826. .assoc = zeroed_string,
  5827. .alen = 8,
  5828. .result = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
  5829. "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
  5830. "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
  5831. "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
  5832. .rlen = 32,
  5833. }, {
  5834. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5835. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5836. "\x00\x00\x00\x00",
  5837. .klen = 20,
  5838. .iv = zeroed_string,
  5839. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  5840. "\x01\x01\x01\x01\x01\x01\x01\x01",
  5841. .ilen = 16,
  5842. .assoc = zeroed_string,
  5843. .alen = 8,
  5844. .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
  5845. "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
  5846. "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
  5847. "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
  5848. .rlen = 32,
  5849. }, {
  5850. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5851. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5852. "\x00\x00\x00\x00",
  5853. .klen = 20,
  5854. .iv = zeroed_string,
  5855. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  5856. "\x01\x01\x01\x01\x01\x01\x01\x01",
  5857. .ilen = 16,
  5858. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
  5859. .alen = 8,
  5860. .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
  5861. "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
  5862. "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
  5863. "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
  5864. .rlen = 32,
  5865. }, {
  5866. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5867. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5868. "\x00\x00\x00\x00",
  5869. .klen = 20,
  5870. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
  5871. "\x00\x00\x00\x00",
  5872. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  5873. "\x01\x01\x01\x01\x01\x01\x01\x01",
  5874. .ilen = 16,
  5875. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
  5876. .alen = 8,
  5877. .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
  5878. "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
  5879. "\x64\x50\xF9\x32\x13\xFB\x74\x61"
  5880. "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
  5881. .rlen = 32,
  5882. }, {
  5883. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5884. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5885. "\x00\x00\x00\x00",
  5886. .klen = 20,
  5887. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
  5888. "\x00\x00\x00\x00",
  5889. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  5890. "\x01\x01\x01\x01\x01\x01\x01\x01"
  5891. "\x01\x01\x01\x01\x01\x01\x01\x01"
  5892. "\x01\x01\x01\x01\x01\x01\x01\x01"
  5893. "\x01\x01\x01\x01\x01\x01\x01\x01"
  5894. "\x01\x01\x01\x01\x01\x01\x01\x01"
  5895. "\x01\x01\x01\x01\x01\x01\x01\x01"
  5896. "\x01\x01\x01\x01\x01\x01\x01\x01",
  5897. .ilen = 64,
  5898. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
  5899. .alen = 8,
  5900. .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
  5901. "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
  5902. "\x98\x14\xA1\x42\x37\x80\xFD\x90"
  5903. "\x68\x12\x01\xA8\x91\x89\xB9\x83"
  5904. "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
  5905. "\x94\x5F\x18\x12\xBA\x27\x09\x39"
  5906. "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
  5907. "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
  5908. "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
  5909. "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
  5910. .rlen = 80,
  5911. }, {
  5912. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5913. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5914. "\x00\x00\x00\x00",
  5915. .klen = 20,
  5916. .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef"
  5917. "\x00\x00\x00\x00",
  5918. .input = "\xff\xff\xff\xff\xff\xff\xff\xff"
  5919. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5920. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5921. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5922. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5923. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5924. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5925. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5926. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5927. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5928. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5929. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5930. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5931. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5932. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5933. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5934. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5935. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5936. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5937. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5938. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5939. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5940. "\xff\xff\xff\xff\xff\xff\xff\xff"
  5941. "\xff\xff\xff\xff\xff\xff\xff\xff",
  5942. .ilen = 192,
  5943. .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  5944. "\xaa\xaa\xaa\xaa",
  5945. .alen = 12,
  5946. .result = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
  5947. "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
  5948. "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
  5949. "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
  5950. "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
  5951. "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
  5952. "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
  5953. "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
  5954. "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
  5955. "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
  5956. "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
  5957. "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
  5958. "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
  5959. "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
  5960. "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
  5961. "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
  5962. "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
  5963. "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
  5964. "\x7E\x13\x06\x82\x08\x17\xA4\x35"
  5965. "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
  5966. "\xA3\x05\x38\x95\x20\x1A\x47\x04"
  5967. "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
  5968. "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
  5969. "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
  5970. "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
  5971. "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
  5972. .rlen = 208,
  5973. }
  5974. };
  5975. static struct aead_testvec aes_gcm_rfc4106_dec_tv_template[] = {
  5976. { /* Generated using Crypto++ */
  5977. .key = zeroed_string,
  5978. .klen = 20,
  5979. .iv = zeroed_string,
  5980. .input = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
  5981. "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
  5982. "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
  5983. "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
  5984. .ilen = 32,
  5985. .assoc = zeroed_string,
  5986. .alen = 8,
  5987. .result = zeroed_string,
  5988. .rlen = 16,
  5989. },{
  5990. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  5991. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  5992. "\x00\x00\x00\x00",
  5993. .klen = 20,
  5994. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
  5995. "\x00\x00\x00\x00",
  5996. .input = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
  5997. "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
  5998. "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
  5999. "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
  6000. .ilen = 32,
  6001. .assoc = zeroed_string,
  6002. .alen = 8,
  6003. .result = zeroed_string,
  6004. .rlen = 16,
  6005. }, {
  6006. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  6007. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  6008. "\x00\x00\x00\x00",
  6009. .klen = 20,
  6010. .iv = zeroed_string,
  6011. .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
  6012. "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
  6013. "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
  6014. "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
  6015. .ilen = 32,
  6016. .assoc = zeroed_string,
  6017. .alen = 8,
  6018. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  6019. "\x01\x01\x01\x01\x01\x01\x01\x01",
  6020. .rlen = 16,
  6021. }, {
  6022. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  6023. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  6024. "\x00\x00\x00\x00",
  6025. .klen = 20,
  6026. .iv = zeroed_string,
  6027. .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
  6028. "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
  6029. "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
  6030. "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
  6031. .ilen = 32,
  6032. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
  6033. .alen = 8,
  6034. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  6035. "\x01\x01\x01\x01\x01\x01\x01\x01",
  6036. .rlen = 16,
  6037. }, {
  6038. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  6039. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  6040. "\x00\x00\x00\x00",
  6041. .klen = 20,
  6042. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
  6043. "\x00\x00\x00\x00",
  6044. .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
  6045. "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
  6046. "\x64\x50\xF9\x32\x13\xFB\x74\x61"
  6047. "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
  6048. .ilen = 32,
  6049. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
  6050. .alen = 8,
  6051. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  6052. "\x01\x01\x01\x01\x01\x01\x01\x01",
  6053. .rlen = 16,
  6054. }, {
  6055. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  6056. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  6057. "\x00\x00\x00\x00",
  6058. .klen = 20,
  6059. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01"
  6060. "\x00\x00\x00\x00",
  6061. .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
  6062. "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
  6063. "\x98\x14\xA1\x42\x37\x80\xFD\x90"
  6064. "\x68\x12\x01\xA8\x91\x89\xB9\x83"
  6065. "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
  6066. "\x94\x5F\x18\x12\xBA\x27\x09\x39"
  6067. "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
  6068. "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
  6069. "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
  6070. "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
  6071. .ilen = 80,
  6072. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01",
  6073. .alen = 8,
  6074. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  6075. "\x01\x01\x01\x01\x01\x01\x01\x01"
  6076. "\x01\x01\x01\x01\x01\x01\x01\x01"
  6077. "\x01\x01\x01\x01\x01\x01\x01\x01"
  6078. "\x01\x01\x01\x01\x01\x01\x01\x01"
  6079. "\x01\x01\x01\x01\x01\x01\x01\x01"
  6080. "\x01\x01\x01\x01\x01\x01\x01\x01"
  6081. "\x01\x01\x01\x01\x01\x01\x01\x01",
  6082. .rlen = 64,
  6083. }, {
  6084. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6085. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6086. "\x00\x00\x00\x00",
  6087. .klen = 20,
  6088. .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef"
  6089. "\x00\x00\x00\x00",
  6090. .input = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
  6091. "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
  6092. "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
  6093. "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
  6094. "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
  6095. "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
  6096. "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
  6097. "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
  6098. "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
  6099. "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
  6100. "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
  6101. "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
  6102. "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
  6103. "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
  6104. "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
  6105. "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
  6106. "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
  6107. "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
  6108. "\x7E\x13\x06\x82\x08\x17\xA4\x35"
  6109. "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
  6110. "\xA3\x05\x38\x95\x20\x1A\x47\x04"
  6111. "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
  6112. "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
  6113. "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
  6114. "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
  6115. "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
  6116. .ilen = 208,
  6117. .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  6118. "\xaa\xaa\xaa\xaa",
  6119. .alen = 12,
  6120. .result = "\xff\xff\xff\xff\xff\xff\xff\xff"
  6121. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6122. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6123. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6124. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6125. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6126. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6127. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6128. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6129. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6130. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6131. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6132. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6133. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6134. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6135. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6136. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6137. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6138. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6139. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6140. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6141. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6142. "\xff\xff\xff\xff\xff\xff\xff\xff"
  6143. "\xff\xff\xff\xff\xff\xff\xff\xff",
  6144. .rlen = 192,
  6145. }
  6146. };
  6147. static struct aead_testvec aes_ccm_enc_tv_template[] = {
  6148. { /* From RFC 3610 */
  6149. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6150. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  6151. .klen = 16,
  6152. .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
  6153. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  6154. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  6155. .alen = 8,
  6156. .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6157. "\x10\x11\x12\x13\x14\x15\x16\x17"
  6158. "\x18\x19\x1a\x1b\x1c\x1d\x1e",
  6159. .ilen = 23,
  6160. .result = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
  6161. "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
  6162. "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
  6163. "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
  6164. .rlen = 31,
  6165. }, {
  6166. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6167. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  6168. .klen = 16,
  6169. .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
  6170. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  6171. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6172. "\x08\x09\x0a\x0b",
  6173. .alen = 12,
  6174. .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  6175. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  6176. "\x1c\x1d\x1e\x1f",
  6177. .ilen = 20,
  6178. .result = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
  6179. "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
  6180. "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
  6181. "\x7d\x9c\x2d\x93",
  6182. .rlen = 28,
  6183. }, {
  6184. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6185. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  6186. .klen = 16,
  6187. .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
  6188. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  6189. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  6190. .alen = 8,
  6191. .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6192. "\x10\x11\x12\x13\x14\x15\x16\x17"
  6193. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  6194. "\x20",
  6195. .ilen = 25,
  6196. .result = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
  6197. "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
  6198. "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
  6199. "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
  6200. "\x7e\x5f\x4e",
  6201. .rlen = 35,
  6202. }, {
  6203. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6204. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  6205. .klen = 16,
  6206. .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
  6207. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  6208. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6209. "\x08\x09\x0a\x0b",
  6210. .alen = 12,
  6211. .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  6212. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  6213. "\x1c\x1d\x1e",
  6214. .ilen = 19,
  6215. .result = "\x07\x34\x25\x94\x15\x77\x85\x15"
  6216. "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
  6217. "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
  6218. "\x4d\x99\x99\x88\xdd",
  6219. .rlen = 29,
  6220. }, {
  6221. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  6222. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  6223. .klen = 16,
  6224. .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
  6225. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  6226. .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
  6227. .alen = 8,
  6228. .input = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
  6229. "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
  6230. "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
  6231. .ilen = 24,
  6232. .result = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
  6233. "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
  6234. "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
  6235. "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
  6236. .rlen = 32,
  6237. }, {
  6238. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  6239. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  6240. .klen = 16,
  6241. .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
  6242. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  6243. .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
  6244. "\x20\xea\x60\xc0",
  6245. .alen = 12,
  6246. .input = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
  6247. "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
  6248. "\x3a\x80\x3b\xa8\x7f",
  6249. .ilen = 21,
  6250. .result = "\x00\x97\x69\xec\xab\xdf\x48\x62"
  6251. "\x55\x94\xc5\x92\x51\xe6\x03\x57"
  6252. "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
  6253. "\x5a\xe0\x70\x45\x51",
  6254. .rlen = 29,
  6255. }, {
  6256. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  6257. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  6258. .klen = 16,
  6259. .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
  6260. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  6261. .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
  6262. .alen = 8,
  6263. .input = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
  6264. "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
  6265. "\x98\x09\xd6\x7d\xbe\xdd\x18",
  6266. .ilen = 23,
  6267. .result = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
  6268. "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
  6269. "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
  6270. "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
  6271. "\xba",
  6272. .rlen = 33,
  6273. },
  6274. };
  6275. static struct aead_testvec aes_ccm_dec_tv_template[] = {
  6276. { /* From RFC 3610 */
  6277. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6278. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  6279. .klen = 16,
  6280. .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
  6281. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  6282. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  6283. .alen = 8,
  6284. .input = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
  6285. "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
  6286. "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
  6287. "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
  6288. .ilen = 31,
  6289. .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6290. "\x10\x11\x12\x13\x14\x15\x16\x17"
  6291. "\x18\x19\x1a\x1b\x1c\x1d\x1e",
  6292. .rlen = 23,
  6293. }, {
  6294. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6295. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  6296. .klen = 16,
  6297. .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
  6298. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  6299. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6300. "\x08\x09\x0a\x0b",
  6301. .alen = 12,
  6302. .input = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
  6303. "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
  6304. "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
  6305. "\x7d\x9c\x2d\x93",
  6306. .ilen = 28,
  6307. .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  6308. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  6309. "\x1c\x1d\x1e\x1f",
  6310. .rlen = 20,
  6311. }, {
  6312. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6313. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  6314. .klen = 16,
  6315. .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
  6316. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  6317. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  6318. .alen = 8,
  6319. .input = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
  6320. "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
  6321. "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
  6322. "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
  6323. "\x7e\x5f\x4e",
  6324. .ilen = 35,
  6325. .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6326. "\x10\x11\x12\x13\x14\x15\x16\x17"
  6327. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  6328. "\x20",
  6329. .rlen = 25,
  6330. }, {
  6331. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6332. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  6333. .klen = 16,
  6334. .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
  6335. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  6336. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6337. "\x08\x09\x0a\x0b",
  6338. .alen = 12,
  6339. .input = "\x07\x34\x25\x94\x15\x77\x85\x15"
  6340. "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
  6341. "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
  6342. "\x4d\x99\x99\x88\xdd",
  6343. .ilen = 29,
  6344. .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  6345. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  6346. "\x1c\x1d\x1e",
  6347. .rlen = 19,
  6348. }, {
  6349. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  6350. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  6351. .klen = 16,
  6352. .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
  6353. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  6354. .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
  6355. .alen = 8,
  6356. .input = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
  6357. "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
  6358. "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
  6359. "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
  6360. .ilen = 32,
  6361. .result = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
  6362. "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
  6363. "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
  6364. .rlen = 24,
  6365. }, {
  6366. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  6367. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  6368. .klen = 16,
  6369. .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
  6370. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  6371. .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
  6372. "\x20\xea\x60\xc0",
  6373. .alen = 12,
  6374. .input = "\x00\x97\x69\xec\xab\xdf\x48\x62"
  6375. "\x55\x94\xc5\x92\x51\xe6\x03\x57"
  6376. "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
  6377. "\x5a\xe0\x70\x45\x51",
  6378. .ilen = 29,
  6379. .result = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
  6380. "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
  6381. "\x3a\x80\x3b\xa8\x7f",
  6382. .rlen = 21,
  6383. }, {
  6384. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  6385. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  6386. .klen = 16,
  6387. .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
  6388. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  6389. .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
  6390. .alen = 8,
  6391. .input = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
  6392. "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
  6393. "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
  6394. "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
  6395. "\xba",
  6396. .ilen = 33,
  6397. .result = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
  6398. "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
  6399. "\x98\x09\xd6\x7d\xbe\xdd\x18",
  6400. .rlen = 23,
  6401. },
  6402. };
  6403. /*
  6404. * rfc4309 refers to section 8 of rfc3610 for test vectors, but they all
  6405. * use a 13-byte nonce, we only support an 11-byte nonce. Similarly, all of
  6406. * Special Publication 800-38C's test vectors also use nonce lengths our
  6407. * implementation doesn't support. The following are taken from fips cavs
  6408. * fax files on hand at Red Hat.
  6409. *
  6410. * nb: actual key lengths are (klen - 3), the last 3 bytes are actually
  6411. * part of the nonce which combine w/the iv, but need to be input this way.
  6412. */
  6413. static struct aead_testvec aes_ccm_rfc4309_enc_tv_template[] = {
  6414. {
  6415. .key = "\x83\xac\x54\x66\xc2\xeb\xe5\x05"
  6416. "\x2e\x01\xd1\xfc\x5d\x82\x66\x2e"
  6417. "\x96\xac\x59",
  6418. .klen = 19,
  6419. .iv = "\x30\x07\xa1\xe2\xa2\xc7\x55\x24",
  6420. .alen = 0,
  6421. .input = "\x19\xc8\x81\xf6\xe9\x86\xff\x93"
  6422. "\x0b\x78\x67\xe5\xbb\xb7\xfc\x6e"
  6423. "\x83\x77\xb3\xa6\x0c\x8c\x9f\x9c"
  6424. "\x35\x2e\xad\xe0\x62\xf9\x91\xa1",
  6425. .ilen = 32,
  6426. .result = "\xab\x6f\xe1\x69\x1d\x19\x99\xa8"
  6427. "\x92\xa0\xc4\x6f\x7e\xe2\x8b\xb1"
  6428. "\x70\xbb\x8c\xa6\x4c\x6e\x97\x8a"
  6429. "\x57\x2b\xbe\x5d\x98\xa6\xb1\x32"
  6430. "\xda\x24\xea\xd9\xa1\x39\x98\xfd"
  6431. "\xa4\xbe\xd9\xf2\x1a\x6d\x22\xa8",
  6432. .rlen = 48,
  6433. }, {
  6434. .key = "\x1e\x2c\x7e\x01\x41\x9a\xef\xc0"
  6435. "\x0d\x58\x96\x6e\x5c\xa2\x4b\xd3"
  6436. "\x4f\xa3\x19",
  6437. .klen = 19,
  6438. .iv = "\xd3\x01\x5a\xd8\x30\x60\x15\x56",
  6439. .assoc = "\xda\xe6\x28\x9c\x45\x2d\xfd\x63"
  6440. "\x5e\xda\x4c\xb6\xe6\xfc\xf9\xb7"
  6441. "\x0c\x56\xcb\xe4\xe0\x05\x7a\xe1"
  6442. "\x0a\x63\x09\x78\xbc\x2c\x55\xde",
  6443. .alen = 32,
  6444. .input = "\x87\xa3\x36\xfd\x96\xb3\x93\x78"
  6445. "\xa9\x28\x63\xba\x12\xa3\x14\x85"
  6446. "\x57\x1e\x06\xc9\x7b\x21\xef\x76"
  6447. "\x7f\x38\x7e\x8e\x29\xa4\x3e\x7e",
  6448. .ilen = 32,
  6449. .result = "\x8a\x1e\x11\xf0\x02\x6b\xe2\x19"
  6450. "\xfc\x70\xc4\x6d\x8e\xb7\x99\xab"
  6451. "\xc5\x4b\xa2\xac\xd3\xf3\x48\xff"
  6452. "\x3b\xb5\xce\x53\xef\xde\xbb\x02"
  6453. "\xa9\x86\x15\x6c\x13\xfe\xda\x0a"
  6454. "\x22\xb8\x29\x3d\xd8\x39\x9a\x23",
  6455. .rlen = 48,
  6456. }, {
  6457. .key = "\xf4\x6b\xc2\x75\x62\xfe\xb4\xe1"
  6458. "\xa3\xf0\xff\xdd\x4e\x4b\x12\x75"
  6459. "\x53\x14\x73\x66\x8d\x88\xf6\x80"
  6460. "\xa0\x20\x35",
  6461. .klen = 27,
  6462. .iv = "\x26\xf2\x21\x8d\x50\x20\xda\xe2",
  6463. .assoc = "\x5b\x9e\x13\x67\x02\x5e\xef\xc1"
  6464. "\x6c\xf9\xd7\x1e\x52\x8f\x7a\x47"
  6465. "\xe9\xd4\xcf\x20\x14\x6e\xf0\x2d"
  6466. "\xd8\x9e\x2b\x56\x10\x23\x56\xe7",
  6467. .alen = 32,
  6468. .ilen = 0,
  6469. .result = "\x36\xea\x7a\x70\x08\xdc\x6a\xbc"
  6470. "\xad\x0c\x7a\x63\xf6\x61\xfd\x9b",
  6471. .rlen = 16,
  6472. }, {
  6473. .key = "\x56\xdf\x5c\x8f\x26\x3f\x0e\x42"
  6474. "\xef\x7a\xd3\xce\xfc\x84\x60\x62"
  6475. "\xca\xb4\x40\xaf\x5f\xc9\xc9\x01"
  6476. "\xd6\x3c\x8c",
  6477. .klen = 27,
  6478. .iv = "\x86\x84\xb6\xcd\xef\x09\x2e\x94",
  6479. .assoc = "\x02\x65\x78\x3c\xe9\x21\x30\x91"
  6480. "\xb1\xb9\xda\x76\x9a\x78\x6d\x95"
  6481. "\xf2\x88\x32\xa3\xf2\x50\xcb\x4c"
  6482. "\xe3\x00\x73\x69\x84\x69\x87\x79",
  6483. .alen = 32,
  6484. .input = "\x9f\xd2\x02\x4b\x52\x49\x31\x3c"
  6485. "\x43\x69\x3a\x2d\x8e\x70\xad\x7e"
  6486. "\xe0\xe5\x46\x09\x80\x89\x13\xb2"
  6487. "\x8c\x8b\xd9\x3f\x86\xfb\xb5\x6b",
  6488. .ilen = 32,
  6489. .result = "\x39\xdf\x7c\x3c\x5a\x29\xb9\x62"
  6490. "\x5d\x51\xc2\x16\xd8\xbd\x06\x9f"
  6491. "\x9b\x6a\x09\x70\xc1\x51\x83\xc2"
  6492. "\x66\x88\x1d\x4f\x9a\xda\xe0\x1e"
  6493. "\xc7\x79\x11\x58\xe5\x6b\x20\x40"
  6494. "\x7a\xea\x46\x42\x8b\xe4\x6f\xe1",
  6495. .rlen = 48,
  6496. }, {
  6497. .key = "\xe0\x8d\x99\x71\x60\xd7\x97\x1a"
  6498. "\xbd\x01\x99\xd5\x8a\xdf\x71\x3a"
  6499. "\xd3\xdf\x24\x4b\x5e\x3d\x4b\x4e"
  6500. "\x30\x7a\xb9\xd8\x53\x0a\x5e\x2b"
  6501. "\x1e\x29\x91",
  6502. .klen = 35,
  6503. .iv = "\xad\x8e\xc1\x53\x0a\xcf\x2d\xbe",
  6504. .assoc = "\x19\xb6\x1f\x57\xc4\xf3\xf0\x8b"
  6505. "\x78\x2b\x94\x02\x29\x0f\x42\x27"
  6506. "\x6b\x75\xcb\x98\x34\x08\x7e\x79"
  6507. "\xe4\x3e\x49\x0d\x84\x8b\x22\x87",
  6508. .alen = 32,
  6509. .input = "\xe1\xd9\xd8\x13\xeb\x3a\x75\x3f"
  6510. "\x9d\xbd\x5f\x66\xbe\xdc\xbb\x66"
  6511. "\xbf\x17\x99\x62\x4a\x39\x27\x1f"
  6512. "\x1d\xdc\x24\xae\x19\x2f\x98\x4c",
  6513. .ilen = 32,
  6514. .result = "\x19\xb8\x61\x33\x45\x2b\x43\x96"
  6515. "\x6f\x51\xd0\x20\x30\x7d\x9b\xc6"
  6516. "\x26\x3d\xf8\xc9\x65\x16\xa8\x9f"
  6517. "\xf0\x62\x17\x34\xf2\x1e\x8d\x75"
  6518. "\x4e\x13\xcc\xc0\xc3\x2a\x54\x2d",
  6519. .rlen = 40,
  6520. }, {
  6521. .key = "\x7c\xc8\x18\x3b\x8d\x99\xe0\x7c"
  6522. "\x45\x41\xb8\xbd\x5c\xa7\xc2\x32"
  6523. "\x8a\xb8\x02\x59\xa4\xfe\xa9\x2c"
  6524. "\x09\x75\x9a\x9b\x3c\x9b\x27\x39"
  6525. "\xf9\xd9\x4e",
  6526. .klen = 35,
  6527. .iv = "\x63\xb5\x3d\x9d\x43\xf6\x1e\x50",
  6528. .assoc = "\x57\xf5\x6b\x8b\x57\x5c\x3d\x3b"
  6529. "\x13\x02\x01\x0c\x83\x4c\x96\x35"
  6530. "\x8e\xd6\x39\xcf\x7d\x14\x9b\x94"
  6531. "\xb0\x39\x36\xe6\x8f\x57\xe0\x13",
  6532. .alen = 32,
  6533. .input = "\x3b\x6c\x29\x36\xb6\xef\x07\xa6"
  6534. "\x83\x72\x07\x4f\xcf\xfa\x66\x89"
  6535. "\x5f\xca\xb1\xba\xd5\x8f\x2c\x27"
  6536. "\x30\xdb\x75\x09\x93\xd4\x65\xe4",
  6537. .ilen = 32,
  6538. .result = "\xb0\x88\x5a\x33\xaa\xe5\xc7\x1d"
  6539. "\x85\x23\xc7\xc6\x2f\xf4\x1e\x3d"
  6540. "\xcc\x63\x44\x25\x07\x78\x4f\x9e"
  6541. "\x96\xb8\x88\xeb\xbc\x48\x1f\x06"
  6542. "\x39\xaf\x39\xac\xd8\x4a\x80\x39"
  6543. "\x7b\x72\x8a\xf7",
  6544. .rlen = 44,
  6545. }, {
  6546. .key = "\xab\xd0\xe9\x33\x07\x26\xe5\x83"
  6547. "\x8c\x76\x95\xd4\xb6\xdc\xf3\x46"
  6548. "\xf9\x8f\xad\xe3\x02\x13\x83\x77"
  6549. "\x3f\xb0\xf1\xa1\xa1\x22\x0f\x2b"
  6550. "\x24\xa7\x8b",
  6551. .klen = 35,
  6552. .iv = "\x07\xcb\xcc\x0e\xe6\x33\xbf\xf5",
  6553. .assoc = "\xd4\xdb\x30\x1d\x03\xfe\xfd\x5f"
  6554. "\x87\xd4\x8c\xb6\xb6\xf1\x7a\x5d"
  6555. "\xab\x90\x65\x8d\x8e\xca\x4d\x4f"
  6556. "\x16\x0c\x40\x90\x4b\xc7\x36\x73",
  6557. .alen = 32,
  6558. .input = "\xf5\xc6\x7d\x48\xc1\xb7\xe6\x92"
  6559. "\x97\x5a\xca\xc4\xa9\x6d\xf9\x3d"
  6560. "\x6c\xde\xbc\xf1\x90\xea\x6a\xb2"
  6561. "\x35\x86\x36\xaf\x5c\xfe\x4b\x3a",
  6562. .ilen = 32,
  6563. .result = "\x83\x6f\x40\x87\x72\xcf\xc1\x13"
  6564. "\xef\xbb\x80\x21\x04\x6c\x58\x09"
  6565. "\x07\x1b\xfc\xdf\xc0\x3f\x5b\xc7"
  6566. "\xe0\x79\xa8\x6e\x71\x7c\x3f\xcf"
  6567. "\x5c\xda\xb2\x33\xe5\x13\xe2\x0d"
  6568. "\x74\xd1\xef\xb5\x0f\x3a\xb5\xf8",
  6569. .rlen = 48,
  6570. },
  6571. };
  6572. static struct aead_testvec aes_ccm_rfc4309_dec_tv_template[] = {
  6573. {
  6574. .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
  6575. "\xff\x80\x2e\x48\x7d\x82\xf8\xb9"
  6576. "\xc6\xfb\x7d",
  6577. .klen = 19,
  6578. .iv = "\x80\x0d\x13\xab\xd8\xa6\xb2\xd8",
  6579. .alen = 0,
  6580. .input = "\xd5\xe8\x93\x9f\xc7\x89\x2e\x2b",
  6581. .ilen = 8,
  6582. .result = "\x00",
  6583. .rlen = 0,
  6584. .novrfy = 1,
  6585. }, {
  6586. .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
  6587. "\xff\x80\x2e\x48\x7d\x82\xf8\xb9"
  6588. "\xaf\x94\x87",
  6589. .klen = 19,
  6590. .iv = "\x78\x35\x82\x81\x7f\x88\x94\x68",
  6591. .alen = 0,
  6592. .input = "\x41\x3c\xb8\x87\x73\xcb\xf3\xf3",
  6593. .ilen = 8,
  6594. .result = "\x00",
  6595. .rlen = 0,
  6596. }, {
  6597. .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
  6598. "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8"
  6599. "\xc6\xfb\x7d",
  6600. .klen = 19,
  6601. .iv = "\x80\x0d\x13\xab\xd8\xa6\xb2\xd8",
  6602. .assoc = "\xf3\x94\x87\x78\x35\x82\x81\x7f"
  6603. "\x88\x94\x68\xb1\x78\x6b\x2b\xd6"
  6604. "\x04\x1f\x4e\xed\x78\xd5\x33\x66"
  6605. "\xd8\x94\x99\x91\x81\x54\x62\x57",
  6606. .alen = 32,
  6607. .input = "\xf0\x7c\x29\x02\xae\x1c\x2f\x55"
  6608. "\xd0\xd1\x3d\x1a\xa3\x6d\xe4\x0a"
  6609. "\x86\xb0\x87\x6b\x62\x33\x8c\x34"
  6610. "\xce\xab\x57\xcc\x79\x0b\xe0\x6f"
  6611. "\x5c\x3e\x48\x1f\x6c\x46\xf7\x51"
  6612. "\x8b\x84\x83\x2a\xc1\x05\xb8\xc5",
  6613. .ilen = 48,
  6614. .result = "\x50\x82\x3e\x07\xe2\x1e\xb6\xfb"
  6615. "\x33\xe4\x73\xce\xd2\xfb\x95\x79"
  6616. "\xe8\xb4\xb5\x77\x11\x10\x62\x6f"
  6617. "\x6a\x82\xd1\x13\xec\xf5\xd0\x48",
  6618. .rlen = 32,
  6619. .novrfy = 1,
  6620. }, {
  6621. .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
  6622. "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8"
  6623. "\x05\xe0\xc9",
  6624. .klen = 19,
  6625. .iv = "\x0f\xed\x34\xea\x97\xd4\x3b\xdf",
  6626. .assoc = "\x49\x5c\x50\x1f\x1d\x94\xcc\x81"
  6627. "\xba\xb7\xb6\x03\xaf\xa5\xc1\xa1"
  6628. "\xd8\x5c\x42\x68\xe0\x6c\xda\x89"
  6629. "\x05\xac\x56\xac\x1b\x2a\xd3\x86",
  6630. .alen = 32,
  6631. .input = "\x39\xbe\x7d\x15\x62\x77\xf3\x3c"
  6632. "\xad\x83\x52\x6d\x71\x03\x25\x1c"
  6633. "\xed\x81\x3a\x9a\x16\x7d\x19\x80"
  6634. "\x72\x04\x72\xd0\xf6\xff\x05\x0f"
  6635. "\xb7\x14\x30\x00\x32\x9e\xa0\xa6"
  6636. "\x9e\x5a\x18\xa1\xb8\xfe\xdb\xd3",
  6637. .ilen = 48,
  6638. .result = "\x75\x05\xbe\xc2\xd9\x1e\xde\x60"
  6639. "\x47\x3d\x8c\x7d\xbd\xb5\xd9\xb7"
  6640. "\xf2\xae\x61\x05\x8f\x82\x24\x3f"
  6641. "\x9c\x67\x91\xe1\x38\x4f\xe4\x0c",
  6642. .rlen = 32,
  6643. }, {
  6644. .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
  6645. "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
  6646. "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
  6647. "\xee\x49\x83",
  6648. .klen = 27,
  6649. .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e",
  6650. .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
  6651. "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
  6652. "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
  6653. "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
  6654. .alen = 32,
  6655. .input = "\x71\x99\xfa\xf4\x44\x12\x68\x9b",
  6656. .ilen = 8,
  6657. .result = "\x00",
  6658. .rlen = 0,
  6659. }, {
  6660. .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
  6661. "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
  6662. "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
  6663. "\xee\x49\x83",
  6664. .klen = 27,
  6665. .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e",
  6666. .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
  6667. "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
  6668. "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
  6669. "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
  6670. .alen = 32,
  6671. .input = "\xfb\xe5\x5d\x34\xbe\xe5\xe8\xe7"
  6672. "\x5a\xef\x2f\xbf\x1f\x7f\xd4\xb2"
  6673. "\x66\xca\x61\x1e\x96\x7a\x61\xb3"
  6674. "\x1c\x16\x45\x52\xba\x04\x9c\x9f"
  6675. "\xb1\xd2\x40\xbc\x52\x7c\x6f\xb1",
  6676. .ilen = 40,
  6677. .result = "\x85\x34\x66\x42\xc8\x92\x0f\x36"
  6678. "\x58\xe0\x6b\x91\x3c\x98\x5c\xbb"
  6679. "\x0a\x85\xcc\x02\xad\x7a\x96\xe9"
  6680. "\x65\x43\xa4\xc3\x0f\xdc\x55\x81",
  6681. .rlen = 32,
  6682. }, {
  6683. .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
  6684. "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
  6685. "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
  6686. "\xd1\xfc\x57",
  6687. .klen = 27,
  6688. .iv = "\x9c\xfe\xb8\x9c\xad\x71\xaa\x1f",
  6689. .assoc = "\x86\x67\xa5\xa9\x14\x5f\x0d\xc6"
  6690. "\xff\x14\xc7\x44\xbf\x6c\x3a\xc3"
  6691. "\xff\xb6\x81\xbd\xe2\xd5\x06\xc7"
  6692. "\x3c\xa1\x52\x13\x03\x8a\x23\x3a",
  6693. .alen = 32,
  6694. .input = "\x3f\x66\xb0\x9d\xe5\x4b\x38\x00"
  6695. "\xc6\x0e\x6e\xe5\xd6\x98\xa6\x37"
  6696. "\x8c\x26\x33\xc6\xb2\xa2\x17\xfa"
  6697. "\x64\x19\xc0\x30\xd7\xfc\x14\x6b"
  6698. "\xe3\x33\xc2\x04\xb0\x37\xbe\x3f"
  6699. "\xa9\xb4\x2d\x68\x03\xa3\x44\xef",
  6700. .ilen = 48,
  6701. .result = "\x02\x87\x4d\x28\x80\x6e\xb2\xed"
  6702. "\x99\x2a\xa8\xca\x04\x25\x45\x90"
  6703. "\x1d\xdd\x5a\xd9\xe4\xdb\x9c\x9c"
  6704. "\x49\xe9\x01\xfe\xa7\x80\x6d\x6b",
  6705. .rlen = 32,
  6706. .novrfy = 1,
  6707. }, {
  6708. .key = "\xa4\x4b\x54\x29\x0a\xb8\x6d\x01"
  6709. "\x5b\x80\x2a\xcf\x25\xc4\xb7\x5c"
  6710. "\x20\x2c\xad\x30\xc2\x2b\x41\xfb"
  6711. "\x0e\x85\xbc\x33\xad\x0f\x2b\xff"
  6712. "\xee\x49\x83",
  6713. .klen = 35,
  6714. .iv = "\xe9\xa9\xff\xe9\x57\xba\xfd\x9e",
  6715. .alen = 0,
  6716. .input = "\x1f\xb8\x8f\xa3\xdd\x54\x00\xf2",
  6717. .ilen = 8,
  6718. .result = "\x00",
  6719. .rlen = 0,
  6720. }, {
  6721. .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
  6722. "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
  6723. "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
  6724. "\xae\x8f\x11\x4c\xc2\x9c\x4a\xbb"
  6725. "\x85\x34\x66",
  6726. .klen = 35,
  6727. .iv = "\x42\xc8\x92\x0f\x36\x58\xe0\x6b",
  6728. .alen = 0,
  6729. .input = "\x48\x01\x5e\x02\x24\x04\x66\x47"
  6730. "\xa1\xea\x6f\xaf\xe8\xfc\xfb\xdd"
  6731. "\xa5\xa9\x87\x8d\x84\xee\x2e\x77"
  6732. "\xbb\x86\xb9\xf5\x5c\x6c\xff\xf6"
  6733. "\x72\xc3\x8e\xf7\x70\xb1\xb2\x07"
  6734. "\xbc\xa8\xa3\xbd\x83\x7c\x1d\x2a",
  6735. .ilen = 48,
  6736. .result = "\xdc\x56\xf2\x71\xb0\xb1\xa0\x6c"
  6737. "\xf0\x97\x3a\xfb\x6d\xe7\x32\x99"
  6738. "\x3e\xaf\x70\x5e\xb2\x4d\xea\x39"
  6739. "\x89\xd4\x75\x7a\x63\xb1\xda\x93",
  6740. .rlen = 32,
  6741. .novrfy = 1,
  6742. }, {
  6743. .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
  6744. "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
  6745. "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
  6746. "\x0d\x1a\x53\x3b\xb5\xe3\xf8\x8b"
  6747. "\xcf\x76\x3f",
  6748. .klen = 35,
  6749. .iv = "\xd9\x95\x75\x8f\x44\x89\x40\x7b",
  6750. .assoc = "\x8f\x86\x6c\x4d\x1d\xc5\x39\x88"
  6751. "\xc8\xf3\x5c\x52\x10\x63\x6f\x2b"
  6752. "\x8a\x2a\xc5\x6f\x30\x23\x58\x7b"
  6753. "\xfb\x36\x03\x11\xb4\xd9\xf2\xfe",
  6754. .alen = 32,
  6755. .input = "\x48\x58\xd6\xf3\xad\x63\x58\xbf"
  6756. "\xae\xc7\x5e\xae\x83\x8f\x7b\xe4"
  6757. "\x78\x5c\x4c\x67\x71\x89\x94\xbf"
  6758. "\x47\xf1\x63\x7e\x1c\x59\xbd\xc5"
  6759. "\x7f\x44\x0a\x0c\x01\x18\x07\x92"
  6760. "\xe1\xd3\x51\xce\x32\x6d\x0c\x5b",
  6761. .ilen = 48,
  6762. .result = "\xc2\x54\xc8\xde\x78\x87\x77\x40"
  6763. "\x49\x71\xe4\xb7\xe7\xcb\x76\x61"
  6764. "\x0a\x41\xb9\xe9\xc0\x76\x54\xab"
  6765. "\x04\x49\x3b\x19\x93\x57\x25\x5d",
  6766. .rlen = 32,
  6767. },
  6768. };
  6769. /*
  6770. * ANSI X9.31 Continuous Pseudo-Random Number Generator (AES mode)
  6771. * test vectors, taken from Appendix B.2.9 and B.2.10:
  6772. * http://csrc.nist.gov/groups/STM/cavp/documents/rng/RNGVS.pdf
  6773. * Only AES-128 is supported at this time.
  6774. */
  6775. #define ANSI_CPRNG_AES_TEST_VECTORS 6
  6776. static struct cprng_testvec ansi_cprng_aes_tv_template[] = {
  6777. {
  6778. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  6779. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  6780. .klen = 16,
  6781. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  6782. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xf9",
  6783. .dtlen = 16,
  6784. .v = "\x80\x00\x00\x00\x00\x00\x00\x00"
  6785. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6786. .vlen = 16,
  6787. .result = "\x59\x53\x1e\xd1\x3b\xb0\xc0\x55"
  6788. "\x84\x79\x66\x85\xc1\x2f\x76\x41",
  6789. .rlen = 16,
  6790. .loops = 1,
  6791. }, {
  6792. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  6793. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  6794. .klen = 16,
  6795. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  6796. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfa",
  6797. .dtlen = 16,
  6798. .v = "\xc0\x00\x00\x00\x00\x00\x00\x00"
  6799. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6800. .vlen = 16,
  6801. .result = "\x7c\x22\x2c\xf4\xca\x8f\xa2\x4c"
  6802. "\x1c\x9c\xb6\x41\xa9\xf3\x22\x0d",
  6803. .rlen = 16,
  6804. .loops = 1,
  6805. }, {
  6806. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  6807. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  6808. .klen = 16,
  6809. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  6810. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfb",
  6811. .dtlen = 16,
  6812. .v = "\xe0\x00\x00\x00\x00\x00\x00\x00"
  6813. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6814. .vlen = 16,
  6815. .result = "\x8a\xaa\x00\x39\x66\x67\x5b\xe5"
  6816. "\x29\x14\x28\x81\xa9\x4d\x4e\xc7",
  6817. .rlen = 16,
  6818. .loops = 1,
  6819. }, {
  6820. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  6821. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  6822. .klen = 16,
  6823. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  6824. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfc",
  6825. .dtlen = 16,
  6826. .v = "\xf0\x00\x00\x00\x00\x00\x00\x00"
  6827. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6828. .vlen = 16,
  6829. .result = "\x88\xdd\xa4\x56\x30\x24\x23\xe5"
  6830. "\xf6\x9d\xa5\x7e\x7b\x95\xc7\x3a",
  6831. .rlen = 16,
  6832. .loops = 1,
  6833. }, {
  6834. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  6835. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  6836. .klen = 16,
  6837. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  6838. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfd",
  6839. .dtlen = 16,
  6840. .v = "\xf8\x00\x00\x00\x00\x00\x00\x00"
  6841. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6842. .vlen = 16,
  6843. .result = "\x05\x25\x92\x46\x61\x79\xd2\xcb"
  6844. "\x78\xc4\x0b\x14\x0a\x5a\x9a\xc8",
  6845. .rlen = 16,
  6846. .loops = 1,
  6847. }, { /* Monte Carlo Test */
  6848. .key = "\x9f\x5b\x51\x20\x0b\xf3\x34\xb5"
  6849. "\xd8\x2b\xe8\xc3\x72\x55\xc8\x48",
  6850. .klen = 16,
  6851. .dt = "\x63\x76\xbb\xe5\x29\x02\xba\x3b"
  6852. "\x67\xc9\x25\xfa\x70\x1f\x11\xac",
  6853. .dtlen = 16,
  6854. .v = "\x57\x2c\x8e\x76\x87\x26\x47\x97"
  6855. "\x7e\x74\xfb\xdd\xc4\x95\x01\xd1",
  6856. .vlen = 16,
  6857. .result = "\x48\xe9\xbd\x0d\x06\xee\x18\xfb"
  6858. "\xe4\x57\x90\xd5\xc3\xfc\x9b\x73",
  6859. .rlen = 16,
  6860. .loops = 10000,
  6861. },
  6862. };
  6863. /* Cast5 test vectors from RFC 2144 */
  6864. #define CAST5_ENC_TEST_VECTORS 3
  6865. #define CAST5_DEC_TEST_VECTORS 3
  6866. static struct cipher_testvec cast5_enc_tv_template[] = {
  6867. {
  6868. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  6869. "\x23\x45\x67\x89\x34\x56\x78\x9a",
  6870. .klen = 16,
  6871. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6872. .ilen = 8,
  6873. .result = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
  6874. .rlen = 8,
  6875. }, {
  6876. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  6877. "\x23\x45",
  6878. .klen = 10,
  6879. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6880. .ilen = 8,
  6881. .result = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
  6882. .rlen = 8,
  6883. }, {
  6884. .key = "\x01\x23\x45\x67\x12",
  6885. .klen = 5,
  6886. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6887. .ilen = 8,
  6888. .result = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
  6889. .rlen = 8,
  6890. },
  6891. };
  6892. static struct cipher_testvec cast5_dec_tv_template[] = {
  6893. {
  6894. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  6895. "\x23\x45\x67\x89\x34\x56\x78\x9a",
  6896. .klen = 16,
  6897. .input = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
  6898. .ilen = 8,
  6899. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6900. .rlen = 8,
  6901. }, {
  6902. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  6903. "\x23\x45",
  6904. .klen = 10,
  6905. .input = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
  6906. .ilen = 8,
  6907. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6908. .rlen = 8,
  6909. }, {
  6910. .key = "\x01\x23\x45\x67\x12",
  6911. .klen = 5,
  6912. .input = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
  6913. .ilen = 8,
  6914. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6915. .rlen = 8,
  6916. },
  6917. };
  6918. /*
  6919. * ARC4 test vectors from OpenSSL
  6920. */
  6921. #define ARC4_ENC_TEST_VECTORS 7
  6922. #define ARC4_DEC_TEST_VECTORS 7
  6923. static struct cipher_testvec arc4_enc_tv_template[] = {
  6924. {
  6925. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6926. .klen = 8,
  6927. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6928. .ilen = 8,
  6929. .result = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
  6930. .rlen = 8,
  6931. }, {
  6932. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6933. .klen = 8,
  6934. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6935. .ilen = 8,
  6936. .result = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
  6937. .rlen = 8,
  6938. }, {
  6939. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6940. .klen = 8,
  6941. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6942. .ilen = 8,
  6943. .result = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
  6944. .rlen = 8,
  6945. }, {
  6946. .key = "\xef\x01\x23\x45",
  6947. .klen = 4,
  6948. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6949. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6950. "\x00\x00\x00\x00",
  6951. .ilen = 20,
  6952. .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  6953. "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
  6954. "\x36\xb6\x78\x58",
  6955. .rlen = 20,
  6956. }, {
  6957. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6958. .klen = 8,
  6959. .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  6960. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  6961. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  6962. "\x12\x34\x56\x78",
  6963. .ilen = 28,
  6964. .result = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
  6965. "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
  6966. "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
  6967. "\x40\x01\x1e\xcf",
  6968. .rlen = 28,
  6969. }, {
  6970. .key = "\xef\x01\x23\x45",
  6971. .klen = 4,
  6972. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6973. "\x00\x00",
  6974. .ilen = 10,
  6975. .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  6976. "\xbd\x61",
  6977. .rlen = 10,
  6978. }, {
  6979. .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
  6980. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6981. .klen = 16,
  6982. .input = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
  6983. .ilen = 8,
  6984. .result = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
  6985. .rlen = 8,
  6986. },
  6987. };
  6988. static struct cipher_testvec arc4_dec_tv_template[] = {
  6989. {
  6990. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6991. .klen = 8,
  6992. .input = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
  6993. .ilen = 8,
  6994. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6995. .rlen = 8,
  6996. }, {
  6997. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6998. .klen = 8,
  6999. .input = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
  7000. .ilen = 8,
  7001. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7002. .rlen = 8,
  7003. }, {
  7004. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7005. .klen = 8,
  7006. .input = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
  7007. .ilen = 8,
  7008. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7009. .rlen = 8,
  7010. }, {
  7011. .key = "\xef\x01\x23\x45",
  7012. .klen = 4,
  7013. .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  7014. "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
  7015. "\x36\xb6\x78\x58",
  7016. .ilen = 20,
  7017. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7018. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7019. "\x00\x00\x00\x00",
  7020. .rlen = 20,
  7021. }, {
  7022. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  7023. .klen = 8,
  7024. .input = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
  7025. "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
  7026. "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
  7027. "\x40\x01\x1e\xcf",
  7028. .ilen = 28,
  7029. .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  7030. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  7031. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  7032. "\x12\x34\x56\x78",
  7033. .rlen = 28,
  7034. }, {
  7035. .key = "\xef\x01\x23\x45",
  7036. .klen = 4,
  7037. .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  7038. "\xbd\x61",
  7039. .ilen = 10,
  7040. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7041. "\x00\x00",
  7042. .rlen = 10,
  7043. }, {
  7044. .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
  7045. "\x00\x00\x00\x00\x00\x00\x00\x00",
  7046. .klen = 16,
  7047. .input = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
  7048. .ilen = 8,
  7049. .result = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
  7050. .rlen = 8,
  7051. },
  7052. };
  7053. /*
  7054. * TEA test vectors
  7055. */
  7056. #define TEA_ENC_TEST_VECTORS 4
  7057. #define TEA_DEC_TEST_VECTORS 4
  7058. static struct cipher_testvec tea_enc_tv_template[] = {
  7059. {
  7060. .key = zeroed_string,
  7061. .klen = 16,
  7062. .input = zeroed_string,
  7063. .ilen = 8,
  7064. .result = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
  7065. .rlen = 8,
  7066. }, {
  7067. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  7068. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  7069. .klen = 16,
  7070. .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  7071. .ilen = 8,
  7072. .result = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
  7073. .rlen = 8,
  7074. }, {
  7075. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  7076. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  7077. .klen = 16,
  7078. .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  7079. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  7080. .ilen = 16,
  7081. .result = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
  7082. "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
  7083. .rlen = 16,
  7084. }, {
  7085. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  7086. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  7087. .klen = 16,
  7088. .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
  7089. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  7090. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  7091. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  7092. .ilen = 32,
  7093. .result = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
  7094. "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
  7095. "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
  7096. "\x07\x89\x73\xc2\x45\x92\xc6\x90",
  7097. .rlen = 32,
  7098. }
  7099. };
  7100. static struct cipher_testvec tea_dec_tv_template[] = {
  7101. {
  7102. .key = zeroed_string,
  7103. .klen = 16,
  7104. .input = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
  7105. .ilen = 8,
  7106. .result = zeroed_string,
  7107. .rlen = 8,
  7108. }, {
  7109. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  7110. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  7111. .klen = 16,
  7112. .input = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
  7113. .ilen = 8,
  7114. .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  7115. .rlen = 8,
  7116. }, {
  7117. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  7118. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  7119. .klen = 16,
  7120. .input = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
  7121. "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
  7122. .ilen = 16,
  7123. .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  7124. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  7125. .rlen = 16,
  7126. }, {
  7127. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  7128. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  7129. .klen = 16,
  7130. .input = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
  7131. "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
  7132. "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
  7133. "\x07\x89\x73\xc2\x45\x92\xc6\x90",
  7134. .ilen = 32,
  7135. .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
  7136. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  7137. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  7138. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  7139. .rlen = 32,
  7140. }
  7141. };
  7142. /*
  7143. * XTEA test vectors
  7144. */
  7145. #define XTEA_ENC_TEST_VECTORS 4
  7146. #define XTEA_DEC_TEST_VECTORS 4
  7147. static struct cipher_testvec xtea_enc_tv_template[] = {
  7148. {
  7149. .key = zeroed_string,
  7150. .klen = 16,
  7151. .input = zeroed_string,
  7152. .ilen = 8,
  7153. .result = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
  7154. .rlen = 8,
  7155. }, {
  7156. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  7157. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  7158. .klen = 16,
  7159. .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  7160. .ilen = 8,
  7161. .result = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
  7162. .rlen = 8,
  7163. }, {
  7164. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  7165. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  7166. .klen = 16,
  7167. .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  7168. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  7169. .ilen = 16,
  7170. .result = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
  7171. "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
  7172. .rlen = 16,
  7173. }, {
  7174. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  7175. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  7176. .klen = 16,
  7177. .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
  7178. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  7179. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  7180. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  7181. .ilen = 32,
  7182. .result = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
  7183. "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
  7184. "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
  7185. "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
  7186. .rlen = 32,
  7187. }
  7188. };
  7189. static struct cipher_testvec xtea_dec_tv_template[] = {
  7190. {
  7191. .key = zeroed_string,
  7192. .klen = 16,
  7193. .input = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
  7194. .ilen = 8,
  7195. .result = zeroed_string,
  7196. .rlen = 8,
  7197. }, {
  7198. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  7199. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  7200. .klen = 16,
  7201. .input = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
  7202. .ilen = 8,
  7203. .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  7204. .rlen = 8,
  7205. }, {
  7206. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  7207. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  7208. .klen = 16,
  7209. .input = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
  7210. "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
  7211. .ilen = 16,
  7212. .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  7213. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  7214. .rlen = 16,
  7215. }, {
  7216. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  7217. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  7218. .klen = 16,
  7219. .input = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
  7220. "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
  7221. "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
  7222. "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
  7223. .ilen = 32,
  7224. .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
  7225. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  7226. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  7227. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  7228. .rlen = 32,
  7229. }
  7230. };
  7231. /*
  7232. * KHAZAD test vectors.
  7233. */
  7234. #define KHAZAD_ENC_TEST_VECTORS 5
  7235. #define KHAZAD_DEC_TEST_VECTORS 5
  7236. static struct cipher_testvec khazad_enc_tv_template[] = {
  7237. {
  7238. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  7239. "\x00\x00\x00\x00\x00\x00\x00\x00",
  7240. .klen = 16,
  7241. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7242. .ilen = 8,
  7243. .result = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
  7244. .rlen = 8,
  7245. }, {
  7246. .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
  7247. "\x38\x38\x38\x38\x38\x38\x38\x38",
  7248. .klen = 16,
  7249. .input = "\x38\x38\x38\x38\x38\x38\x38\x38",
  7250. .ilen = 8,
  7251. .result = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
  7252. .rlen = 8,
  7253. }, {
  7254. .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
  7255. "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  7256. .klen = 16,
  7257. .input = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  7258. .ilen = 8,
  7259. .result = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
  7260. .rlen = 8,
  7261. }, {
  7262. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  7263. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  7264. .klen = 16,
  7265. .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  7266. .ilen = 8,
  7267. .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  7268. .rlen = 8,
  7269. }, {
  7270. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  7271. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  7272. .klen = 16,
  7273. .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  7274. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  7275. .ilen = 16,
  7276. .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
  7277. "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  7278. .rlen = 16,
  7279. },
  7280. };
  7281. static struct cipher_testvec khazad_dec_tv_template[] = {
  7282. {
  7283. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  7284. "\x00\x00\x00\x00\x00\x00\x00\x00",
  7285. .klen = 16,
  7286. .input = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
  7287. .ilen = 8,
  7288. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7289. .rlen = 8,
  7290. }, {
  7291. .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
  7292. "\x38\x38\x38\x38\x38\x38\x38\x38",
  7293. .klen = 16,
  7294. .input = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
  7295. .ilen = 8,
  7296. .result = "\x38\x38\x38\x38\x38\x38\x38\x38",
  7297. .rlen = 8,
  7298. }, {
  7299. .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
  7300. "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  7301. .klen = 16,
  7302. .input = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
  7303. .ilen = 8,
  7304. .result = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  7305. .rlen = 8,
  7306. }, {
  7307. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  7308. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  7309. .klen = 16,
  7310. .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  7311. .ilen = 8,
  7312. .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  7313. .rlen = 8,
  7314. }, {
  7315. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  7316. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  7317. .klen = 16,
  7318. .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
  7319. "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  7320. .ilen = 16,
  7321. .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  7322. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  7323. .rlen = 16,
  7324. },
  7325. };
  7326. /*
  7327. * Anubis test vectors.
  7328. */
  7329. #define ANUBIS_ENC_TEST_VECTORS 5
  7330. #define ANUBIS_DEC_TEST_VECTORS 5
  7331. #define ANUBIS_CBC_ENC_TEST_VECTORS 2
  7332. #define ANUBIS_CBC_DEC_TEST_VECTORS 2
  7333. static struct cipher_testvec anubis_enc_tv_template[] = {
  7334. {
  7335. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7336. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  7337. .klen = 16,
  7338. .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7339. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  7340. .ilen = 16,
  7341. .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  7342. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
  7343. .rlen = 16,
  7344. }, {
  7345. .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
  7346. "\x03\x03\x03\x03\x03\x03\x03\x03"
  7347. "\x03\x03\x03\x03",
  7348. .klen = 20,
  7349. .input = "\x03\x03\x03\x03\x03\x03\x03\x03"
  7350. "\x03\x03\x03\x03\x03\x03\x03\x03",
  7351. .ilen = 16,
  7352. .result = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
  7353. "\x87\x41\x6f\x82\x0a\x98\x64\xae",
  7354. .rlen = 16,
  7355. }, {
  7356. .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
  7357. "\x24\x24\x24\x24\x24\x24\x24\x24"
  7358. "\x24\x24\x24\x24\x24\x24\x24\x24"
  7359. "\x24\x24\x24\x24",
  7360. .klen = 28,
  7361. .input = "\x24\x24\x24\x24\x24\x24\x24\x24"
  7362. "\x24\x24\x24\x24\x24\x24\x24\x24",
  7363. .ilen = 16,
  7364. .result = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
  7365. "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
  7366. .rlen = 16,
  7367. }, {
  7368. .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
  7369. "\x25\x25\x25\x25\x25\x25\x25\x25"
  7370. "\x25\x25\x25\x25\x25\x25\x25\x25"
  7371. "\x25\x25\x25\x25\x25\x25\x25\x25",
  7372. .klen = 32,
  7373. .input = "\x25\x25\x25\x25\x25\x25\x25\x25"
  7374. "\x25\x25\x25\x25\x25\x25\x25\x25",
  7375. .ilen = 16,
  7376. .result = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
  7377. "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
  7378. .rlen = 16,
  7379. }, {
  7380. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7381. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7382. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7383. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7384. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7385. .klen = 40,
  7386. .input = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7387. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7388. .ilen = 16,
  7389. .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  7390. "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
  7391. .rlen = 16,
  7392. },
  7393. };
  7394. static struct cipher_testvec anubis_dec_tv_template[] = {
  7395. {
  7396. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7397. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  7398. .klen = 16,
  7399. .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  7400. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
  7401. .ilen = 16,
  7402. .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7403. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  7404. .rlen = 16,
  7405. }, {
  7406. .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
  7407. "\x03\x03\x03\x03\x03\x03\x03\x03"
  7408. "\x03\x03\x03\x03",
  7409. .klen = 20,
  7410. .input = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
  7411. "\x87\x41\x6f\x82\x0a\x98\x64\xae",
  7412. .ilen = 16,
  7413. .result = "\x03\x03\x03\x03\x03\x03\x03\x03"
  7414. "\x03\x03\x03\x03\x03\x03\x03\x03",
  7415. .rlen = 16,
  7416. }, {
  7417. .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
  7418. "\x24\x24\x24\x24\x24\x24\x24\x24"
  7419. "\x24\x24\x24\x24\x24\x24\x24\x24"
  7420. "\x24\x24\x24\x24",
  7421. .klen = 28,
  7422. .input = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
  7423. "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
  7424. .ilen = 16,
  7425. .result = "\x24\x24\x24\x24\x24\x24\x24\x24"
  7426. "\x24\x24\x24\x24\x24\x24\x24\x24",
  7427. .rlen = 16,
  7428. }, {
  7429. .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
  7430. "\x25\x25\x25\x25\x25\x25\x25\x25"
  7431. "\x25\x25\x25\x25\x25\x25\x25\x25"
  7432. "\x25\x25\x25\x25\x25\x25\x25\x25",
  7433. .klen = 32,
  7434. .input = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
  7435. "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
  7436. .ilen = 16,
  7437. .result = "\x25\x25\x25\x25\x25\x25\x25\x25"
  7438. "\x25\x25\x25\x25\x25\x25\x25\x25",
  7439. .rlen = 16,
  7440. }, {
  7441. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7442. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7443. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7444. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7445. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7446. .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  7447. "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
  7448. .klen = 40,
  7449. .ilen = 16,
  7450. .result = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7451. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7452. .rlen = 16,
  7453. },
  7454. };
  7455. static struct cipher_testvec anubis_cbc_enc_tv_template[] = {
  7456. {
  7457. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7458. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  7459. .klen = 16,
  7460. .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7461. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7462. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7463. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  7464. .ilen = 32,
  7465. .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  7466. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
  7467. "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
  7468. "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
  7469. .rlen = 32,
  7470. }, {
  7471. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7472. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7473. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7474. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7475. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7476. .klen = 40,
  7477. .input = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7478. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7479. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7480. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7481. .ilen = 32,
  7482. .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  7483. "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
  7484. "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
  7485. "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
  7486. .rlen = 32,
  7487. },
  7488. };
  7489. static struct cipher_testvec anubis_cbc_dec_tv_template[] = {
  7490. {
  7491. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7492. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  7493. .klen = 16,
  7494. .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  7495. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
  7496. "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
  7497. "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
  7498. .ilen = 32,
  7499. .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7500. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7501. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  7502. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  7503. .rlen = 32,
  7504. }, {
  7505. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7506. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7507. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7508. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7509. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7510. .klen = 40,
  7511. .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  7512. "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
  7513. "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
  7514. "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
  7515. .ilen = 32,
  7516. .result = "\x35\x35\x35\x35\x35\x35\x35\x35"
  7517. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7518. "\x35\x35\x35\x35\x35\x35\x35\x35"
  7519. "\x35\x35\x35\x35\x35\x35\x35\x35",
  7520. .rlen = 32,
  7521. },
  7522. };
  7523. /*
  7524. * XETA test vectors
  7525. */
  7526. #define XETA_ENC_TEST_VECTORS 4
  7527. #define XETA_DEC_TEST_VECTORS 4
  7528. static struct cipher_testvec xeta_enc_tv_template[] = {
  7529. {
  7530. .key = zeroed_string,
  7531. .klen = 16,
  7532. .input = zeroed_string,
  7533. .ilen = 8,
  7534. .result = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
  7535. .rlen = 8,
  7536. }, {
  7537. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  7538. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  7539. .klen = 16,
  7540. .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  7541. .ilen = 8,
  7542. .result = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
  7543. .rlen = 8,
  7544. }, {
  7545. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  7546. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  7547. .klen = 16,
  7548. .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  7549. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  7550. .ilen = 16,
  7551. .result = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
  7552. "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
  7553. .rlen = 16,
  7554. }, {
  7555. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  7556. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  7557. .klen = 16,
  7558. .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
  7559. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  7560. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  7561. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  7562. .ilen = 32,
  7563. .result = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
  7564. "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
  7565. "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
  7566. "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
  7567. .rlen = 32,
  7568. }
  7569. };
  7570. static struct cipher_testvec xeta_dec_tv_template[] = {
  7571. {
  7572. .key = zeroed_string,
  7573. .klen = 16,
  7574. .input = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
  7575. .ilen = 8,
  7576. .result = zeroed_string,
  7577. .rlen = 8,
  7578. }, {
  7579. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  7580. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  7581. .klen = 16,
  7582. .input = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
  7583. .ilen = 8,
  7584. .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  7585. .rlen = 8,
  7586. }, {
  7587. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  7588. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  7589. .klen = 16,
  7590. .input = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
  7591. "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
  7592. .ilen = 16,
  7593. .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  7594. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  7595. .rlen = 16,
  7596. }, {
  7597. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  7598. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  7599. .klen = 16,
  7600. .input = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
  7601. "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
  7602. "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
  7603. "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
  7604. .ilen = 32,
  7605. .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
  7606. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  7607. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  7608. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  7609. .rlen = 32,
  7610. }
  7611. };
  7612. /*
  7613. * FCrypt test vectors
  7614. */
  7615. #define FCRYPT_ENC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_enc_tv_template)
  7616. #define FCRYPT_DEC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_dec_tv_template)
  7617. static struct cipher_testvec fcrypt_pcbc_enc_tv_template[] = {
  7618. { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
  7619. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7620. .klen = 8,
  7621. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7622. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7623. .ilen = 8,
  7624. .result = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
  7625. .rlen = 8,
  7626. }, {
  7627. .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
  7628. .klen = 8,
  7629. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7630. .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
  7631. .ilen = 8,
  7632. .result = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
  7633. .rlen = 8,
  7634. }, { /* From Arla */
  7635. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7636. .klen = 8,
  7637. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7638. .input = "The quick brown fox jumps over the lazy dogs.\0\0",
  7639. .ilen = 48,
  7640. .result = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
  7641. "\xee\xac\x98\x62\x44\x51\xe4\x84"
  7642. "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
  7643. "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
  7644. "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
  7645. "\xf8\x91\x3c\xac\x44\x22\x92\xef",
  7646. .rlen = 48,
  7647. }, {
  7648. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7649. .klen = 8,
  7650. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7651. .input = "The quick brown fox jumps over the lazy dogs.\0\0",
  7652. .ilen = 48,
  7653. .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  7654. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  7655. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  7656. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  7657. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  7658. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  7659. .rlen = 48,
  7660. }, { /* split-page version */
  7661. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7662. .klen = 8,
  7663. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7664. .input = "The quick brown fox jumps over the lazy dogs.\0\0",
  7665. .ilen = 48,
  7666. .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  7667. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  7668. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  7669. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  7670. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  7671. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  7672. .rlen = 48,
  7673. .np = 2,
  7674. .tap = { 20, 28 },
  7675. }
  7676. };
  7677. static struct cipher_testvec fcrypt_pcbc_dec_tv_template[] = {
  7678. { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
  7679. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7680. .klen = 8,
  7681. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7682. .input = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
  7683. .ilen = 8,
  7684. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7685. .rlen = 8,
  7686. }, {
  7687. .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
  7688. .klen = 8,
  7689. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7690. .input = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
  7691. .ilen = 8,
  7692. .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
  7693. .rlen = 8,
  7694. }, { /* From Arla */
  7695. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7696. .klen = 8,
  7697. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7698. .input = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
  7699. "\xee\xac\x98\x62\x44\x51\xe4\x84"
  7700. "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
  7701. "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
  7702. "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
  7703. "\xf8\x91\x3c\xac\x44\x22\x92\xef",
  7704. .ilen = 48,
  7705. .result = "The quick brown fox jumps over the lazy dogs.\0\0",
  7706. .rlen = 48,
  7707. }, {
  7708. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7709. .klen = 8,
  7710. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7711. .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  7712. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  7713. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  7714. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  7715. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  7716. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  7717. .ilen = 48,
  7718. .result = "The quick brown fox jumps over the lazy dogs.\0\0",
  7719. .rlen = 48,
  7720. }, { /* split-page version */
  7721. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7722. .klen = 8,
  7723. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7724. .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  7725. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  7726. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  7727. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  7728. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  7729. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  7730. .ilen = 48,
  7731. .result = "The quick brown fox jumps over the lazy dogs.\0\0",
  7732. .rlen = 48,
  7733. .np = 2,
  7734. .tap = { 20, 28 },
  7735. }
  7736. };
  7737. /*
  7738. * CAMELLIA test vectors.
  7739. */
  7740. #define CAMELLIA_ENC_TEST_VECTORS 3
  7741. #define CAMELLIA_DEC_TEST_VECTORS 3
  7742. #define CAMELLIA_CBC_ENC_TEST_VECTORS 2
  7743. #define CAMELLIA_CBC_DEC_TEST_VECTORS 2
  7744. static struct cipher_testvec camellia_enc_tv_template[] = {
  7745. {
  7746. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7747. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7748. .klen = 16,
  7749. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7750. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7751. .ilen = 16,
  7752. .result = "\x67\x67\x31\x38\x54\x96\x69\x73"
  7753. "\x08\x57\x06\x56\x48\xea\xbe\x43",
  7754. .rlen = 16,
  7755. }, {
  7756. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7757. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  7758. "\x00\x11\x22\x33\x44\x55\x66\x77",
  7759. .klen = 24,
  7760. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7761. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7762. .ilen = 16,
  7763. .result = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
  7764. "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
  7765. .rlen = 16,
  7766. }, {
  7767. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7768. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  7769. "\x00\x11\x22\x33\x44\x55\x66\x77"
  7770. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  7771. .klen = 32,
  7772. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7773. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7774. .ilen = 16,
  7775. .result = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
  7776. "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
  7777. .rlen = 16,
  7778. },
  7779. };
  7780. static struct cipher_testvec camellia_dec_tv_template[] = {
  7781. {
  7782. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7783. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7784. .klen = 16,
  7785. .input = "\x67\x67\x31\x38\x54\x96\x69\x73"
  7786. "\x08\x57\x06\x56\x48\xea\xbe\x43",
  7787. .ilen = 16,
  7788. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7789. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7790. .rlen = 16,
  7791. }, {
  7792. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7793. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  7794. "\x00\x11\x22\x33\x44\x55\x66\x77",
  7795. .klen = 24,
  7796. .input = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
  7797. "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
  7798. .ilen = 16,
  7799. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7800. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7801. .rlen = 16,
  7802. }, {
  7803. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7804. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  7805. "\x00\x11\x22\x33\x44\x55\x66\x77"
  7806. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  7807. .klen = 32,
  7808. .input = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
  7809. "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
  7810. .ilen = 16,
  7811. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7812. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7813. .rlen = 16,
  7814. },
  7815. };
  7816. static struct cipher_testvec camellia_cbc_enc_tv_template[] = {
  7817. {
  7818. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  7819. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  7820. .klen = 16,
  7821. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  7822. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  7823. .input = "Single block msg",
  7824. .ilen = 16,
  7825. .result = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
  7826. "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
  7827. .rlen = 16,
  7828. }, {
  7829. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  7830. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  7831. .klen = 16,
  7832. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  7833. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  7834. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7835. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  7836. "\x10\x11\x12\x13\x14\x15\x16\x17"
  7837. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  7838. .ilen = 32,
  7839. .result = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
  7840. "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
  7841. "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
  7842. "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
  7843. .rlen = 32,
  7844. },
  7845. };
  7846. static struct cipher_testvec camellia_cbc_dec_tv_template[] = {
  7847. {
  7848. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  7849. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  7850. .klen = 16,
  7851. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  7852. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  7853. .input = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
  7854. "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
  7855. .ilen = 16,
  7856. .result = "Single block msg",
  7857. .rlen = 16,
  7858. }, {
  7859. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  7860. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  7861. .klen = 16,
  7862. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  7863. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  7864. .input = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
  7865. "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
  7866. "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
  7867. "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
  7868. .ilen = 32,
  7869. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7870. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  7871. "\x10\x11\x12\x13\x14\x15\x16\x17"
  7872. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  7873. .rlen = 32,
  7874. },
  7875. };
  7876. /*
  7877. * SEED test vectors
  7878. */
  7879. #define SEED_ENC_TEST_VECTORS 4
  7880. #define SEED_DEC_TEST_VECTORS 4
  7881. static struct cipher_testvec seed_enc_tv_template[] = {
  7882. {
  7883. .key = zeroed_string,
  7884. .klen = 16,
  7885. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7886. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  7887. .ilen = 16,
  7888. .result = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
  7889. "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
  7890. .rlen = 16,
  7891. }, {
  7892. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7893. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  7894. .klen = 16,
  7895. .input = zeroed_string,
  7896. .ilen = 16,
  7897. .result = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
  7898. "\x84\x48\x35\x97\xe4\x37\x0f\x43",
  7899. .rlen = 16,
  7900. }, {
  7901. .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
  7902. "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
  7903. .klen = 16,
  7904. .input = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
  7905. "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
  7906. .ilen = 16,
  7907. .result = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
  7908. "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
  7909. .rlen = 16,
  7910. }, {
  7911. .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
  7912. "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
  7913. .klen = 16,
  7914. .input = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
  7915. "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
  7916. .ilen = 16,
  7917. .result = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
  7918. "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
  7919. .rlen = 16,
  7920. }
  7921. };
  7922. static struct cipher_testvec seed_dec_tv_template[] = {
  7923. {
  7924. .key = zeroed_string,
  7925. .klen = 16,
  7926. .input = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
  7927. "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
  7928. .ilen = 16,
  7929. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7930. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  7931. .rlen = 16,
  7932. }, {
  7933. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7934. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  7935. .klen = 16,
  7936. .input = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
  7937. "\x84\x48\x35\x97\xe4\x37\x0f\x43",
  7938. .ilen = 16,
  7939. .result = zeroed_string,
  7940. .rlen = 16,
  7941. }, {
  7942. .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
  7943. "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
  7944. .klen = 16,
  7945. .input = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
  7946. "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
  7947. .ilen = 16,
  7948. .result = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
  7949. "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
  7950. .rlen = 16,
  7951. }, {
  7952. .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
  7953. "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
  7954. .klen = 16,
  7955. .input = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
  7956. "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
  7957. .ilen = 16,
  7958. .result = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
  7959. "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
  7960. .rlen = 16,
  7961. }
  7962. };
  7963. #define SALSA20_STREAM_ENC_TEST_VECTORS 5
  7964. static struct cipher_testvec salsa20_stream_enc_tv_template[] = {
  7965. /*
  7966. * Testvectors from verified.test-vectors submitted to ECRYPT.
  7967. * They are truncated to size 39, 64, 111, 129 to test a variety
  7968. * of input length.
  7969. */
  7970. { /* Set 3, vector 0 */
  7971. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  7972. "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
  7973. .klen = 16,
  7974. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7975. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7976. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7977. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7978. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7979. "\x00\x00\x00\x00\x00\x00\x00",
  7980. .ilen = 39,
  7981. .result = "\x2D\xD5\xC3\xF7\xBA\x2B\x20\xF7"
  7982. "\x68\x02\x41\x0C\x68\x86\x88\x89"
  7983. "\x5A\xD8\xC1\xBD\x4E\xA6\xC9\xB1"
  7984. "\x40\xFB\x9B\x90\xE2\x10\x49\xBF"
  7985. "\x58\x3F\x52\x79\x70\xEB\xC1",
  7986. .rlen = 39,
  7987. }, { /* Set 5, vector 0 */
  7988. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7989. "\x00\x00\x00\x00\x00\x00\x00\x00",
  7990. .klen = 16,
  7991. .iv = "\x80\x00\x00\x00\x00\x00\x00\x00",
  7992. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  7993. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7994. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7995. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7996. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7997. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7998. "\x00\x00\x00\x00\x00\x00\x00\x00"
  7999. "\x00\x00\x00\x00\x00\x00\x00\x00",
  8000. .ilen = 64,
  8001. .result = "\xB6\x6C\x1E\x44\x46\xDD\x95\x57"
  8002. "\xE5\x78\xE2\x23\xB0\xB7\x68\x01"
  8003. "\x7B\x23\xB2\x67\xBB\x02\x34\xAE"
  8004. "\x46\x26\xBF\x44\x3F\x21\x97\x76"
  8005. "\x43\x6F\xB1\x9F\xD0\xE8\x86\x6F"
  8006. "\xCD\x0D\xE9\xA9\x53\x8F\x4A\x09"
  8007. "\xCA\x9A\xC0\x73\x2E\x30\xBC\xF9"
  8008. "\x8E\x4F\x13\xE4\xB9\xE2\x01\xD9",
  8009. .rlen = 64,
  8010. }, { /* Set 3, vector 27 */
  8011. .key = "\x1B\x1C\x1D\x1E\x1F\x20\x21\x22"
  8012. "\x23\x24\x25\x26\x27\x28\x29\x2A"
  8013. "\x2B\x2C\x2D\x2E\x2F\x30\x31\x32"
  8014. "\x33\x34\x35\x36\x37\x38\x39\x3A",
  8015. .klen = 32,
  8016. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  8017. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  8018. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8019. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8020. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8021. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8022. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8023. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8024. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8025. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8026. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8027. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8028. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8029. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8030. "\x00\x00\x00\x00\x00\x00\x00",
  8031. .ilen = 111,
  8032. .result = "\xAE\x39\x50\x8E\xAC\x9A\xEC\xE7"
  8033. "\xBF\x97\xBB\x20\xB9\xDE\xE4\x1F"
  8034. "\x87\xD9\x47\xF8\x28\x91\x35\x98"
  8035. "\xDB\x72\xCC\x23\x29\x48\x56\x5E"
  8036. "\x83\x7E\x0B\xF3\x7D\x5D\x38\x7B"
  8037. "\x2D\x71\x02\xB4\x3B\xB5\xD8\x23"
  8038. "\xB0\x4A\xDF\x3C\xEC\xB6\xD9\x3B"
  8039. "\x9B\xA7\x52\xBE\xC5\xD4\x50\x59"
  8040. "\x15\x14\xB4\x0E\x40\xE6\x53\xD1"
  8041. "\x83\x9C\x5B\xA0\x92\x29\x6B\x5E"
  8042. "\x96\x5B\x1E\x2F\xD3\xAC\xC1\x92"
  8043. "\xB1\x41\x3F\x19\x2F\xC4\x3B\xC6"
  8044. "\x95\x46\x45\x54\xE9\x75\x03\x08"
  8045. "\x44\xAF\xE5\x8A\x81\x12\x09",
  8046. .rlen = 111,
  8047. }, { /* Set 5, vector 27 */
  8048. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  8049. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8050. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8051. "\x00\x00\x00\x00\x00\x00\x00\x00",
  8052. .klen = 32,
  8053. .iv = "\x00\x00\x00\x10\x00\x00\x00\x00",
  8054. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  8055. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8056. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8057. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8058. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8059. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8060. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8061. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8062. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8063. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8064. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8065. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8066. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8067. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8068. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8069. "\x00\x00\x00\x00\x00\x00\x00\x00"
  8070. "\x00",
  8071. .ilen = 129,
  8072. .result = "\xD2\xDB\x1A\x5C\xF1\xC1\xAC\xDB"
  8073. "\xE8\x1A\x7A\x43\x40\xEF\x53\x43"
  8074. "\x5E\x7F\x4B\x1A\x50\x52\x3F\x8D"
  8075. "\x28\x3D\xCF\x85\x1D\x69\x6E\x60"
  8076. "\xF2\xDE\x74\x56\x18\x1B\x84\x10"
  8077. "\xD4\x62\xBA\x60\x50\xF0\x61\xF2"
  8078. "\x1C\x78\x7F\xC1\x24\x34\xAF\x58"
  8079. "\xBF\x2C\x59\xCA\x90\x77\xF3\xB0"
  8080. "\x5B\x4A\xDF\x89\xCE\x2C\x2F\xFC"
  8081. "\x67\xF0\xE3\x45\xE8\xB3\xB3\x75"
  8082. "\xA0\x95\x71\xA1\x29\x39\x94\xCA"
  8083. "\x45\x2F\xBD\xCB\x10\xB6\xBE\x9F"
  8084. "\x8E\xF9\xB2\x01\x0A\x5A\x0A\xB7"
  8085. "\x6B\x9D\x70\x8E\x4B\xD6\x2F\xCD"
  8086. "\x2E\x40\x48\x75\xE9\xE2\x21\x45"
  8087. "\x0B\xC9\xB6\xB5\x66\xBC\x9A\x59"
  8088. "\x5A",
  8089. .rlen = 129,
  8090. }, { /* large test vector generated using Crypto++ */
  8091. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  8092. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  8093. "\x10\x11\x12\x13\x14\x15\x16\x17"
  8094. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  8095. .klen = 32,
  8096. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  8097. "\x00\x00\x00\x00\x00\x00\x00\x00",
  8098. .input =
  8099. "\x00\x01\x02\x03\x04\x05\x06\x07"
  8100. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  8101. "\x10\x11\x12\x13\x14\x15\x16\x17"
  8102. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  8103. "\x20\x21\x22\x23\x24\x25\x26\x27"
  8104. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  8105. "\x30\x31\x32\x33\x34\x35\x36\x37"
  8106. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  8107. "\x40\x41\x42\x43\x44\x45\x46\x47"
  8108. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  8109. "\x50\x51\x52\x53\x54\x55\x56\x57"
  8110. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  8111. "\x60\x61\x62\x63\x64\x65\x66\x67"
  8112. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  8113. "\x70\x71\x72\x73\x74\x75\x76\x77"
  8114. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  8115. "\x80\x81\x82\x83\x84\x85\x86\x87"
  8116. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  8117. "\x90\x91\x92\x93\x94\x95\x96\x97"
  8118. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  8119. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  8120. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  8121. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  8122. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  8123. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  8124. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  8125. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  8126. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  8127. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  8128. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  8129. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  8130. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  8131. "\x00\x03\x06\x09\x0c\x0f\x12\x15"
  8132. "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
  8133. "\x30\x33\x36\x39\x3c\x3f\x42\x45"
  8134. "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
  8135. "\x60\x63\x66\x69\x6c\x6f\x72\x75"
  8136. "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
  8137. "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
  8138. "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
  8139. "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
  8140. "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
  8141. "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
  8142. "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
  8143. "\x20\x23\x26\x29\x2c\x2f\x32\x35"
  8144. "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
  8145. "\x50\x53\x56\x59\x5c\x5f\x62\x65"
  8146. "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
  8147. "\x80\x83\x86\x89\x8c\x8f\x92\x95"
  8148. "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
  8149. "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
  8150. "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
  8151. "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
  8152. "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
  8153. "\x10\x13\x16\x19\x1c\x1f\x22\x25"
  8154. "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
  8155. "\x40\x43\x46\x49\x4c\x4f\x52\x55"
  8156. "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
  8157. "\x70\x73\x76\x79\x7c\x7f\x82\x85"
  8158. "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
  8159. "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
  8160. "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
  8161. "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
  8162. "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
  8163. "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
  8164. "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
  8165. "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
  8166. "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
  8167. "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
  8168. "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
  8169. "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
  8170. "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
  8171. "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
  8172. "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
  8173. "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
  8174. "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
  8175. "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
  8176. "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
  8177. "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
  8178. "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
  8179. "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
  8180. "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
  8181. "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
  8182. "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
  8183. "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
  8184. "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
  8185. "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
  8186. "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
  8187. "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
  8188. "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
  8189. "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
  8190. "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
  8191. "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
  8192. "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
  8193. "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
  8194. "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
  8195. "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
  8196. "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
  8197. "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
  8198. "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
  8199. "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
  8200. "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
  8201. "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
  8202. "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
  8203. "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
  8204. "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
  8205. "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
  8206. "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
  8207. "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
  8208. "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
  8209. "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
  8210. "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
  8211. "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
  8212. "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
  8213. "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
  8214. "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
  8215. "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
  8216. "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
  8217. "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
  8218. "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
  8219. "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
  8220. "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
  8221. "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
  8222. "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
  8223. "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
  8224. "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
  8225. "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
  8226. "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
  8227. "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
  8228. "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
  8229. "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
  8230. "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
  8231. "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
  8232. "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
  8233. "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
  8234. "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
  8235. "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
  8236. "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
  8237. "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
  8238. "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
  8239. "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
  8240. "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
  8241. "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
  8242. "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
  8243. "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
  8244. "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
  8245. "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
  8246. "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
  8247. "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
  8248. "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
  8249. "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
  8250. "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
  8251. "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
  8252. "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
  8253. "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
  8254. "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
  8255. "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
  8256. "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
  8257. "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
  8258. "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
  8259. "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
  8260. "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
  8261. "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
  8262. "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
  8263. "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
  8264. "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
  8265. "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
  8266. "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
  8267. "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
  8268. "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
  8269. "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
  8270. "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
  8271. "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
  8272. "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
  8273. "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
  8274. "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
  8275. "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
  8276. "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
  8277. "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
  8278. "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
  8279. "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
  8280. "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
  8281. "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
  8282. "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
  8283. "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
  8284. "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
  8285. "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
  8286. "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
  8287. "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
  8288. "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
  8289. "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
  8290. "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
  8291. "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
  8292. "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
  8293. "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
  8294. "\x38\x45\x52\x5f\x6c\x79\x86\x93"
  8295. "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
  8296. "\x08\x15\x22\x2f\x3c\x49\x56\x63"
  8297. "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
  8298. "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
  8299. "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
  8300. "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
  8301. "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
  8302. "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
  8303. "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
  8304. "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
  8305. "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
  8306. "\x18\x25\x32\x3f\x4c\x59\x66\x73"
  8307. "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
  8308. "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
  8309. "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
  8310. "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
  8311. "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
  8312. "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
  8313. "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
  8314. "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
  8315. "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
  8316. "\x28\x35\x42\x4f\x5c\x69\x76\x83"
  8317. "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
  8318. "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
  8319. "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
  8320. "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
  8321. "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
  8322. "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
  8323. "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
  8324. "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
  8325. "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
  8326. "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
  8327. "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
  8328. "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
  8329. "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
  8330. "\x48\x57\x66\x75\x84\x93\xa2\xb1"
  8331. "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
  8332. "\x38\x47\x56\x65\x74\x83\x92\xa1"
  8333. "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
  8334. "\x28\x37\x46\x55\x64\x73\x82\x91"
  8335. "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
  8336. "\x18\x27\x36\x45\x54\x63\x72\x81"
  8337. "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
  8338. "\x08\x17\x26\x35\x44\x53\x62\x71"
  8339. "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
  8340. "\xf8\x07\x16\x25\x34\x43\x52\x61"
  8341. "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
  8342. "\xe8\xf7\x06\x15\x24\x33\x42\x51"
  8343. "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
  8344. "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
  8345. "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
  8346. "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
  8347. "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
  8348. "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
  8349. "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
  8350. "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
  8351. "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
  8352. "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
  8353. "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
  8354. "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
  8355. "\x00\x11\x22\x33\x44\x55\x66\x77"
  8356. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
  8357. "\x10\x21\x32\x43\x54\x65\x76\x87"
  8358. "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
  8359. "\x20\x31\x42\x53\x64\x75\x86\x97"
  8360. "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
  8361. "\x30\x41\x52\x63\x74\x85\x96\xa7"
  8362. "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
  8363. "\x40\x51\x62\x73\x84\x95\xa6\xb7"
  8364. "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
  8365. "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
  8366. "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
  8367. "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
  8368. "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
  8369. "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
  8370. "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
  8371. "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
  8372. "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
  8373. "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
  8374. "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
  8375. "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
  8376. "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
  8377. "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
  8378. "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
  8379. "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
  8380. "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
  8381. "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
  8382. "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
  8383. "\xe0\xf1\x02\x13\x24\x35\x46\x57"
  8384. "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
  8385. "\xf0\x01\x12\x23\x34\x45\x56\x67"
  8386. "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
  8387. "\x00\x13\x26\x39\x4c\x5f\x72\x85"
  8388. "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
  8389. "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
  8390. "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
  8391. "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
  8392. "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
  8393. "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
  8394. "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
  8395. "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
  8396. "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
  8397. "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
  8398. "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
  8399. "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
  8400. "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
  8401. "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
  8402. "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
  8403. "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
  8404. "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
  8405. "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
  8406. "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
  8407. "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
  8408. "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
  8409. "\x10\x23\x36\x49\x5c\x6f\x82\x95"
  8410. "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
  8411. "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
  8412. "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
  8413. "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
  8414. "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
  8415. "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
  8416. "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
  8417. "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
  8418. "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
  8419. "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
  8420. "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
  8421. "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
  8422. "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
  8423. "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
  8424. "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
  8425. "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
  8426. "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
  8427. "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
  8428. "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
  8429. "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
  8430. "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
  8431. "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
  8432. "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
  8433. "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
  8434. "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
  8435. "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
  8436. "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
  8437. "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
  8438. "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
  8439. "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
  8440. "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
  8441. "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
  8442. "\x18\x2d\x42\x57\x6c\x81\x96\xab"
  8443. "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
  8444. "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
  8445. "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
  8446. "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
  8447. "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
  8448. "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
  8449. "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
  8450. "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
  8451. "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
  8452. "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
  8453. "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
  8454. "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
  8455. "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
  8456. "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
  8457. "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
  8458. "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
  8459. "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
  8460. "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
  8461. "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
  8462. "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
  8463. "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
  8464. "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
  8465. "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
  8466. "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
  8467. "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
  8468. "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
  8469. "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
  8470. "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
  8471. "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
  8472. "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
  8473. "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
  8474. "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
  8475. "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
  8476. "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
  8477. "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
  8478. "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
  8479. "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
  8480. "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
  8481. "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
  8482. "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
  8483. "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
  8484. "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
  8485. "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
  8486. "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
  8487. "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
  8488. "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
  8489. "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
  8490. "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
  8491. "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
  8492. "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
  8493. "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
  8494. "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
  8495. "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
  8496. "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
  8497. "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
  8498. "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
  8499. "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
  8500. "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
  8501. "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
  8502. "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
  8503. "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
  8504. "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
  8505. "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
  8506. "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
  8507. "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
  8508. "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
  8509. "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
  8510. "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
  8511. "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
  8512. "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
  8513. "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
  8514. "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
  8515. "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
  8516. "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
  8517. "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
  8518. "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
  8519. "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
  8520. "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
  8521. "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
  8522. "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
  8523. "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
  8524. "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
  8525. "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
  8526. "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
  8527. "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
  8528. "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
  8529. "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
  8530. "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
  8531. "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
  8532. "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
  8533. "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
  8534. "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
  8535. "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
  8536. "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
  8537. "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
  8538. "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
  8539. "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
  8540. "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
  8541. "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
  8542. "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
  8543. "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
  8544. "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
  8545. "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
  8546. "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
  8547. "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
  8548. "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
  8549. "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
  8550. "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
  8551. "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
  8552. "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
  8553. "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
  8554. "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
  8555. "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
  8556. "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
  8557. "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
  8558. "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
  8559. "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
  8560. "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
  8561. "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
  8562. "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
  8563. "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
  8564. "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
  8565. "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
  8566. "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
  8567. "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
  8568. "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
  8569. "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
  8570. "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
  8571. "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
  8572. "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
  8573. "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
  8574. "\x78\x95\xb2\xcf\xec\x09\x26\x43"
  8575. "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
  8576. "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
  8577. "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
  8578. "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
  8579. "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
  8580. "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
  8581. "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
  8582. "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
  8583. "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
  8584. "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
  8585. "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
  8586. "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
  8587. "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
  8588. "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
  8589. "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
  8590. "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
  8591. "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
  8592. "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
  8593. "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
  8594. "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
  8595. "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
  8596. "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
  8597. "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
  8598. "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
  8599. "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
  8600. "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
  8601. "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
  8602. "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
  8603. "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
  8604. "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
  8605. "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
  8606. "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
  8607. "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
  8608. "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
  8609. "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
  8610. "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
  8611. "\x00\x21\x42\x63",
  8612. .ilen = 4100,
  8613. .result =
  8614. "\xb5\x81\xf5\x64\x18\x73\xe3\xf0"
  8615. "\x4c\x13\xf2\x77\x18\x60\x65\x5e"
  8616. "\x29\x01\xce\x98\x55\x53\xf9\x0c"
  8617. "\x2a\x08\xd5\x09\xb3\x57\x55\x56"
  8618. "\xc5\xe9\x56\x90\xcb\x6a\xa3\xc0"
  8619. "\xff\xc4\x79\xb4\xd2\x97\x5d\xc4"
  8620. "\x43\xd1\xfe\x94\x7b\x88\x06\x5a"
  8621. "\xb2\x9e\x2c\xfc\x44\x03\xb7\x90"
  8622. "\xa0\xc1\xba\x6a\x33\xb8\xc7\xb2"
  8623. "\x9d\xe1\x12\x4f\xc0\x64\xd4\x01"
  8624. "\xfe\x8c\x7a\x66\xf7\xe6\x5a\x91"
  8625. "\xbb\xde\x56\x86\xab\x65\x21\x30"
  8626. "\x00\x84\x65\x24\xa5\x7d\x85\xb4"
  8627. "\xe3\x17\xed\x3a\xb7\x6f\xb4\x0b"
  8628. "\x0b\xaf\x15\xae\x5a\x8f\xf2\x0c"
  8629. "\x2f\x27\xf4\x09\xd8\xd2\x96\xb7"
  8630. "\x71\xf2\xc5\x99\x4d\x7e\x7f\x75"
  8631. "\x77\x89\x30\x8b\x59\xdb\xa2\xb2"
  8632. "\xa0\xf3\x19\x39\x2b\xc5\x7e\x3f"
  8633. "\x4f\xd9\xd3\x56\x28\x97\x44\xdc"
  8634. "\xc0\x8b\x77\x24\xd9\x52\xe7\xc5"
  8635. "\xaf\xf6\x7d\x59\xb2\x44\x05\x1d"
  8636. "\xb1\xb0\x11\xa5\x0f\xec\x33\xe1"
  8637. "\x6d\x1b\x4e\x1f\xff\x57\x91\xb4"
  8638. "\x5b\x9a\x96\xc5\x53\xbc\xae\x20"
  8639. "\x3c\xbb\x14\xe2\xe8\x22\x33\xc1"
  8640. "\x5e\x76\x9e\x46\x99\xf6\x2a\x15"
  8641. "\xc6\x97\x02\xa0\x66\x43\xd1\xa6"
  8642. "\x31\xa6\x9f\xfb\xf4\xd3\x69\xe5"
  8643. "\xcd\x76\x95\xb8\x7a\x82\x7f\x21"
  8644. "\x45\xff\x3f\xce\x55\xf6\x95\x10"
  8645. "\x08\x77\x10\x43\xc6\xf3\x09\xe5"
  8646. "\x68\xe7\x3c\xad\x00\x52\x45\x0d"
  8647. "\xfe\x2d\xc6\xc2\x94\x8c\x12\x1d"
  8648. "\xe6\x25\xae\x98\x12\x8e\x19\x9c"
  8649. "\x81\x68\xb1\x11\xf6\x69\xda\xe3"
  8650. "\x62\x08\x18\x7a\x25\x49\x28\xac"
  8651. "\xba\x71\x12\x0b\xe4\xa2\xe5\xc7"
  8652. "\x5d\x8e\xec\x49\x40\x21\xbf\x5a"
  8653. "\x98\xf3\x02\x68\x55\x03\x7f\x8a"
  8654. "\xe5\x94\x0c\x32\x5c\x07\x82\x63"
  8655. "\xaf\x6f\x91\x40\x84\x8e\x52\x25"
  8656. "\xd0\xb0\x29\x53\x05\xe2\x50\x7a"
  8657. "\x34\xeb\xc9\x46\x20\xa8\x3d\xde"
  8658. "\x7f\x16\x5f\x36\xc5\x2e\xdc\xd1"
  8659. "\x15\x47\xc7\x50\x40\x6d\x91\xc5"
  8660. "\xe7\x93\x95\x1a\xd3\x57\xbc\x52"
  8661. "\x33\xee\x14\x19\x22\x52\x89\xa7"
  8662. "\x4a\x25\x56\x77\x4b\xca\xcf\x0a"
  8663. "\xe1\xf5\x35\x85\x30\x7e\x59\x4a"
  8664. "\xbd\x14\x5b\xdf\xe3\x46\xcb\xac"
  8665. "\x1f\x6c\x96\x0e\xf4\x81\xd1\x99"
  8666. "\xca\x88\x63\x3d\x02\x58\x6b\xa9"
  8667. "\xe5\x9f\xb3\x00\xb2\x54\xc6\x74"
  8668. "\x1c\xbf\x46\xab\x97\xcc\xf8\x54"
  8669. "\x04\x07\x08\x52\xe6\xc0\xda\x93"
  8670. "\x74\x7d\x93\x99\x5d\x78\x68\xa6"
  8671. "\x2e\x6b\xd3\x6a\x69\xcc\x12\x6b"
  8672. "\xd4\xc7\xa5\xc6\xe7\xf6\x03\x04"
  8673. "\x5d\xcd\x61\x5e\x17\x40\xdc\xd1"
  8674. "\x5c\xf5\x08\xdf\x5c\x90\x85\xa4"
  8675. "\xaf\xf6\x78\xbb\x0d\xf1\xf4\xa4"
  8676. "\x54\x26\x72\x9e\x61\xfa\x86\xcf"
  8677. "\xe8\x9e\xa1\xe0\xc7\x48\x23\xae"
  8678. "\x5a\x90\xae\x75\x0a\x74\x18\x89"
  8679. "\x05\xb1\x92\xb2\x7f\xd0\x1b\xa6"
  8680. "\x62\x07\x25\x01\xc7\xc2\x4f\xf9"
  8681. "\xe8\xfe\x63\x95\x80\x07\xb4\x26"
  8682. "\xcc\xd1\x26\xb6\xc4\x3f\x9e\xcb"
  8683. "\x8e\x3b\x2e\x44\x16\xd3\x10\x9a"
  8684. "\x95\x08\xeb\xc8\xcb\xeb\xbf\x6f"
  8685. "\x0b\xcd\x1f\xc8\xca\x86\xaa\xec"
  8686. "\x33\xe6\x69\xf4\x45\x25\x86\x3a"
  8687. "\x22\x94\x4f\x00\x23\x6a\x44\xc2"
  8688. "\x49\x97\x33\xab\x36\x14\x0a\x70"
  8689. "\x24\xc3\xbe\x04\x3b\x79\xa0\xf9"
  8690. "\xb8\xe7\x76\x29\x22\x83\xd7\xf2"
  8691. "\x94\xf4\x41\x49\xba\x5f\x7b\x07"
  8692. "\xb5\xfb\xdb\x03\x1a\x9f\xb6\x4c"
  8693. "\xc2\x2e\x37\x40\x49\xc3\x38\x16"
  8694. "\xe2\x4f\x77\x82\xb0\x68\x4c\x71"
  8695. "\x1d\x57\x61\x9c\xd9\x4e\x54\x99"
  8696. "\x47\x13\x28\x73\x3c\xbb\x00\x90"
  8697. "\xf3\x4d\xc9\x0e\xfd\xe7\xb1\x71"
  8698. "\xd3\x15\x79\xbf\xcc\x26\x2f\xbd"
  8699. "\xad\x6c\x50\x69\x6c\x3e\x6d\x80"
  8700. "\x9a\xea\x78\xaf\x19\xb2\x0d\x4d"
  8701. "\xad\x04\x07\xae\x22\x90\x4a\x93"
  8702. "\x32\x0e\x36\x9b\x1b\x46\xba\x3b"
  8703. "\xb4\xac\xc6\xd1\xa2\x31\x53\x3b"
  8704. "\x2a\x3d\x45\xfe\x03\x61\x10\x85"
  8705. "\x17\x69\xa6\x78\xcc\x6c\x87\x49"
  8706. "\x53\xf9\x80\x10\xde\x80\xa2\x41"
  8707. "\x6a\xc3\x32\x02\xad\x6d\x3c\x56"
  8708. "\x00\x71\x51\x06\xa7\xbd\xfb\xef"
  8709. "\x3c\xb5\x9f\xfc\x48\x7d\x53\x7c"
  8710. "\x66\xb0\x49\x23\xc4\x47\x10\x0e"
  8711. "\xe5\x6c\x74\x13\xe6\xc5\x3f\xaa"
  8712. "\xde\xff\x07\x44\xdd\x56\x1b\xad"
  8713. "\x09\x77\xfb\x5b\x12\xb8\x0d\x38"
  8714. "\x17\x37\x35\x7b\x9b\xbc\xfe\xd4"
  8715. "\x7e\x8b\xda\x7e\x5b\x04\xa7\x22"
  8716. "\xa7\x31\xa1\x20\x86\xc7\x1b\x99"
  8717. "\xdb\xd1\x89\xf4\x94\xa3\x53\x69"
  8718. "\x8d\xe7\xe8\x74\x11\x8d\x74\xd6"
  8719. "\x07\x37\x91\x9f\xfd\x67\x50\x3a"
  8720. "\xc9\xe1\xf4\x36\xd5\xa0\x47\xd1"
  8721. "\xf9\xe5\x39\xa3\x31\xac\x07\x36"
  8722. "\x23\xf8\x66\x18\x14\x28\x34\x0f"
  8723. "\xb8\xd0\xe7\x29\xb3\x04\x4b\x55"
  8724. "\x01\x41\xb2\x75\x8d\xcb\x96\x85"
  8725. "\x3a\xfb\xab\x2b\x9e\xfa\x58\x20"
  8726. "\x44\x1f\xc0\x14\x22\x75\x61\xe8"
  8727. "\xaa\x19\xcf\xf1\x82\x56\xf4\xd7"
  8728. "\x78\x7b\x3d\x5f\xb3\x9e\x0b\x8a"
  8729. "\x57\x50\xdb\x17\x41\x65\x4d\xa3"
  8730. "\x02\xc9\x9c\x9c\x53\xfb\x39\x39"
  8731. "\x9b\x1d\x72\x24\xda\xb7\x39\xbe"
  8732. "\x13\x3b\xfa\x29\xda\x9e\x54\x64"
  8733. "\x6e\xba\xd8\xa1\xcb\xb3\x36\xfa"
  8734. "\xcb\x47\x85\xe9\x61\x38\xbc\xbe"
  8735. "\xc5\x00\x38\x2a\x54\xf7\xc4\xb9"
  8736. "\xb3\xd3\x7b\xa0\xa0\xf8\x72\x7f"
  8737. "\x8c\x8e\x82\x0e\xc6\x1c\x75\x9d"
  8738. "\xca\x8e\x61\x87\xde\xad\x80\xd2"
  8739. "\xf5\xf9\x80\xef\x15\x75\xaf\xf5"
  8740. "\x80\xfb\xff\x6d\x1e\x25\xb7\x40"
  8741. "\x61\x6a\x39\x5a\x6a\xb5\x31\xab"
  8742. "\x97\x8a\x19\x89\x44\x40\xc0\xa6"
  8743. "\xb4\x4e\x30\x32\x7b\x13\xe7\x67"
  8744. "\xa9\x8b\x57\x04\xc2\x01\xa6\xf4"
  8745. "\x28\x99\xad\x2c\x76\xa3\x78\xc2"
  8746. "\x4a\xe6\xca\x5c\x50\x6a\xc1\xb0"
  8747. "\x62\x4b\x10\x8e\x7c\x17\x43\xb3"
  8748. "\x17\x66\x1c\x3e\x8d\x69\xf0\x5a"
  8749. "\x71\xf5\x97\xdc\xd1\x45\xdd\x28"
  8750. "\xf3\x5d\xdf\x53\x7b\x11\xe5\xbc"
  8751. "\x4c\xdb\x1b\x51\x6b\xe9\xfb\x3d"
  8752. "\xc1\xc3\x2c\xb9\x71\xf5\xb6\xb2"
  8753. "\x13\x36\x79\x80\x53\xe8\xd3\xa6"
  8754. "\x0a\xaf\xfd\x56\x97\xf7\x40\x8e"
  8755. "\x45\xce\xf8\xb0\x9e\x5c\x33\x82"
  8756. "\xb0\x44\x56\xfc\x05\x09\xe9\x2a"
  8757. "\xac\x26\x80\x14\x1d\xc8\x3a\x35"
  8758. "\x4c\x82\x97\xfd\x76\xb7\xa9\x0a"
  8759. "\x35\x58\x79\x8e\x0f\x66\xea\xaf"
  8760. "\x51\x6c\x09\xa9\x6e\x9b\xcb\x9a"
  8761. "\x31\x47\xa0\x2f\x7c\x71\xb4\x4a"
  8762. "\x11\xaa\x8c\x66\xc5\x64\xe6\x3a"
  8763. "\x54\xda\x24\x6a\xc4\x41\x65\x46"
  8764. "\x82\xa0\x0a\x0f\x5f\xfb\x25\xd0"
  8765. "\x2c\x91\xa7\xee\xc4\x81\x07\x86"
  8766. "\x75\x5e\x33\x69\x97\xe4\x2c\xa8"
  8767. "\x9d\x9f\x0b\x6a\xbe\xad\x98\xda"
  8768. "\x6d\x94\x41\xda\x2c\x1e\x89\xc4"
  8769. "\xc2\xaf\x1e\x00\x05\x0b\x83\x60"
  8770. "\xbd\x43\xea\x15\x23\x7f\xb9\xac"
  8771. "\xee\x4f\x2c\xaf\x2a\xf3\xdf\xd0"
  8772. "\xf3\x19\x31\xbb\x4a\x74\x84\x17"
  8773. "\x52\x32\x2c\x7d\x61\xe4\xcb\xeb"
  8774. "\x80\x38\x15\x52\xcb\x6f\xea\xe5"
  8775. "\x73\x9c\xd9\x24\x69\xc6\x95\x32"
  8776. "\x21\xc8\x11\xe4\xdc\x36\xd7\x93"
  8777. "\x38\x66\xfb\xb2\x7f\x3a\xb9\xaf"
  8778. "\x31\xdd\x93\x75\x78\x8a\x2c\x94"
  8779. "\x87\x1a\x58\xec\x9e\x7d\x4d\xba"
  8780. "\xe1\xe5\x4d\xfc\xbc\xa4\x2a\x14"
  8781. "\xef\xcc\xa7\xec\xab\x43\x09\x18"
  8782. "\xd3\xab\x68\xd1\x07\x99\x44\x47"
  8783. "\xd6\x83\x85\x3b\x30\xea\xa9\x6b"
  8784. "\x63\xea\xc4\x07\xfb\x43\x2f\xa4"
  8785. "\xaa\xb0\xab\x03\x89\xce\x3f\x8c"
  8786. "\x02\x7c\x86\x54\xbc\x88\xaf\x75"
  8787. "\xd2\xdc\x63\x17\xd3\x26\xf6\x96"
  8788. "\xa9\x3c\xf1\x61\x8c\x11\x18\xcc"
  8789. "\xd6\xea\x5b\xe2\xcd\xf0\xf1\xb2"
  8790. "\xe5\x35\x90\x1f\x85\x4c\x76\x5b"
  8791. "\x66\xce\x44\xa4\x32\x9f\xe6\x7b"
  8792. "\x71\x6e\x9f\x58\x15\x67\x72\x87"
  8793. "\x64\x8e\x3a\x44\x45\xd4\x76\xfa"
  8794. "\xc2\xf6\xef\x85\x05\x18\x7a\x9b"
  8795. "\xba\x41\x54\xac\xf0\xfc\x59\x12"
  8796. "\x3f\xdf\xa0\xe5\x8a\x65\xfd\x3a"
  8797. "\x62\x8d\x83\x2c\x03\xbe\x05\x76"
  8798. "\x2e\x53\x49\x97\x94\x33\xae\x40"
  8799. "\x81\x15\xdb\x6e\xad\xaa\xf5\x4b"
  8800. "\xe3\x98\x70\xdf\xe0\x7c\xcd\xdb"
  8801. "\x02\xd4\x7d\x2f\xc1\xe6\xb4\xf3"
  8802. "\xd7\x0d\x7a\xd9\x23\x9e\x87\x2d"
  8803. "\xce\x87\xad\xcc\x72\x05\x00\x29"
  8804. "\xdc\x73\x7f\x64\xc1\x15\x0e\xc2"
  8805. "\xdf\xa7\x5f\xeb\x41\xa1\xcd\xef"
  8806. "\x5c\x50\x79\x2a\x56\x56\x71\x8c"
  8807. "\xac\xc0\x79\x50\x69\xca\x59\x32"
  8808. "\x65\xf2\x54\xe4\x52\x38\x76\xd1"
  8809. "\x5e\xde\x26\x9e\xfb\x75\x2e\x11"
  8810. "\xb5\x10\xf4\x17\x73\xf5\x89\xc7"
  8811. "\x4f\x43\x5c\x8e\x7c\xb9\x05\x52"
  8812. "\x24\x40\x99\xfe\x9b\x85\x0b\x6c"
  8813. "\x22\x3e\x8b\xae\x86\xa1\xd2\x79"
  8814. "\x05\x68\x6b\xab\xe3\x41\x49\xed"
  8815. "\x15\xa1\x8d\x40\x2d\x61\xdf\x1a"
  8816. "\x59\xc9\x26\x8b\xef\x30\x4c\x88"
  8817. "\x4b\x10\xf8\x8d\xa6\x92\x9f\x4b"
  8818. "\xf3\xc4\x53\x0b\x89\x5d\x28\x92"
  8819. "\xcf\x78\xb2\xc0\x5d\xed\x7e\xfc"
  8820. "\xc0\x12\x23\x5f\x5a\x78\x86\x43"
  8821. "\x6e\x27\xf7\x5a\xa7\x6a\xed\x19"
  8822. "\x04\xf0\xb3\x12\xd1\xbd\x0e\x89"
  8823. "\x6e\xbc\x96\xa8\xd8\x49\x39\x9f"
  8824. "\x7e\x67\xf0\x2e\x3e\x01\xa9\xba"
  8825. "\xec\x8b\x62\x8e\xcb\x4a\x70\x43"
  8826. "\xc7\xc2\xc4\xca\x82\x03\x73\xe9"
  8827. "\x11\xdf\xcf\x54\xea\xc9\xb0\x95"
  8828. "\x51\xc0\x13\x3d\x92\x05\xfa\xf4"
  8829. "\xa9\x34\xc8\xce\x6c\x3d\x54\xcc"
  8830. "\xc4\xaf\xf1\xdc\x11\x44\x26\xa2"
  8831. "\xaf\xf1\x85\x75\x7d\x03\x61\x68"
  8832. "\x4e\x78\xc6\x92\x7d\x86\x7d\x77"
  8833. "\xdc\x71\x72\xdb\xc6\xae\xa1\xcb"
  8834. "\x70\x9a\x0b\x19\xbe\x4a\x6c\x2a"
  8835. "\xe2\xba\x6c\x64\x9a\x13\x28\xdf"
  8836. "\x85\x75\xe6\x43\xf6\x87\x08\x68"
  8837. "\x6e\xba\x6e\x79\x9f\x04\xbc\x23"
  8838. "\x50\xf6\x33\x5c\x1f\x24\x25\xbe"
  8839. "\x33\x47\x80\x45\x56\xa3\xa7\xd7"
  8840. "\x7a\xb1\x34\x0b\x90\x3c\x9c\xad"
  8841. "\x44\x5f\x9e\x0e\x9d\xd4\xbd\x93"
  8842. "\x5e\xfa\x3c\xe0\xb0\xd9\xed\xf3"
  8843. "\xd6\x2e\xff\x24\xd8\x71\x6c\xed"
  8844. "\xaf\x55\xeb\x22\xac\x93\x68\x32"
  8845. "\x05\x5b\x47\xdd\xc6\x4a\xcb\xc7"
  8846. "\x10\xe1\x3c\x92\x1a\xf3\x23\x78"
  8847. "\x2b\xa1\xd2\x80\xf4\x12\xb1\x20"
  8848. "\x8f\xff\x26\x35\xdd\xfb\xc7\x4e"
  8849. "\x78\xf1\x2d\x50\x12\x77\xa8\x60"
  8850. "\x7c\x0f\xf5\x16\x2f\x63\x70\x2a"
  8851. "\xc0\x96\x80\x4e\x0a\xb4\x93\x35"
  8852. "\x5d\x1d\x3f\x56\xf7\x2f\xbb\x90"
  8853. "\x11\x16\x8f\xa2\xec\x47\xbe\xac"
  8854. "\x56\x01\x26\x56\xb1\x8c\xb2\x10"
  8855. "\xf9\x1a\xca\xf5\xd1\xb7\x39\x20"
  8856. "\x63\xf1\x69\x20\x4f\x13\x12\x1f"
  8857. "\x5b\x65\xfc\x98\xf7\xc4\x7a\xbe"
  8858. "\xf7\x26\x4d\x2b\x84\x7b\x42\xad"
  8859. "\xd8\x7a\x0a\xb4\xd8\x74\xbf\xc1"
  8860. "\xf0\x6e\xb4\x29\xa3\xbb\xca\x46"
  8861. "\x67\x70\x6a\x2d\xce\x0e\xa2\x8a"
  8862. "\xa9\x87\xbf\x05\xc4\xc1\x04\xa3"
  8863. "\xab\xd4\x45\x43\x8c\xb6\x02\xb0"
  8864. "\x41\xc8\xfc\x44\x3d\x59\xaa\x2e"
  8865. "\x44\x21\x2a\x8d\x88\x9d\x57\xf4"
  8866. "\xa0\x02\x77\xb8\xa6\xa0\xe6\x75"
  8867. "\x5c\x82\x65\x3e\x03\x5c\x29\x8f"
  8868. "\x38\x55\xab\x33\x26\xef\x9f\x43"
  8869. "\x52\xfd\x68\xaf\x36\xb4\xbb\x9a"
  8870. "\x58\x09\x09\x1b\xc3\x65\x46\x46"
  8871. "\x1d\xa7\x94\x18\x23\x50\x2c\xca"
  8872. "\x2c\x55\x19\x97\x01\x9d\x93\x3b"
  8873. "\x63\x86\xf2\x03\x67\x45\xd2\x72"
  8874. "\x28\x52\x6c\xf4\xe3\x1c\xb5\x11"
  8875. "\x13\xf1\xeb\x21\xc7\xd9\x56\x82"
  8876. "\x2b\x82\x39\xbd\x69\x54\xed\x62"
  8877. "\xc3\xe2\xde\x73\xd4\x6a\x12\xae"
  8878. "\x13\x21\x7f\x4b\x5b\xfc\xbf\xe8"
  8879. "\x2b\xbe\x56\xba\x68\x8b\x9a\xb1"
  8880. "\x6e\xfa\xbf\x7e\x5a\x4b\xf1\xac"
  8881. "\x98\x65\x85\xd1\x93\x53\xd3\x7b"
  8882. "\x09\xdd\x4b\x10\x6d\x84\xb0\x13"
  8883. "\x65\xbd\xcf\x52\x09\xc4\x85\xe2"
  8884. "\x84\x74\x15\x65\xb7\xf7\x51\xaf"
  8885. "\x55\xad\xa4\xd1\x22\x54\x70\x94"
  8886. "\xa0\x1c\x90\x41\xfd\x99\xd7\x5a"
  8887. "\x31\xef\xaa\x25\xd0\x7f\x4f\xea"
  8888. "\x1d\x55\x42\xe5\x49\xb0\xd0\x46"
  8889. "\x62\x36\x43\xb2\x82\x15\x75\x50"
  8890. "\xa4\x72\xeb\x54\x27\x1f\x8a\xe4"
  8891. "\x7d\xe9\x66\xc5\xf1\x53\xa4\xd1"
  8892. "\x0c\xeb\xb8\xf8\xbc\xd4\xe2\xe7"
  8893. "\xe1\xf8\x4b\xcb\xa9\xa1\xaf\x15"
  8894. "\x83\xcb\x72\xd0\x33\x79\x00\x2d"
  8895. "\x9f\xd7\xf1\x2e\x1e\x10\xe4\x45"
  8896. "\xc0\x75\x3a\x39\xea\x68\xf7\x5d"
  8897. "\x1b\x73\x8f\xe9\x8e\x0f\x72\x47"
  8898. "\xae\x35\x0a\x31\x7a\x14\x4d\x4a"
  8899. "\x6f\x47\xf7\x7e\x91\x6e\x74\x8b"
  8900. "\x26\x47\xf9\xc3\xf9\xde\x70\xf5"
  8901. "\x61\xab\xa9\x27\x9f\x82\xe4\x9c"
  8902. "\x89\x91\x3f\x2e\x6a\xfd\xb5\x49"
  8903. "\xe9\xfd\x59\x14\x36\x49\x40\x6d"
  8904. "\x32\xd8\x85\x42\xf3\xa5\xdf\x0c"
  8905. "\xa8\x27\xd7\x54\xe2\x63\x2f\xf2"
  8906. "\x7e\x8b\x8b\xe7\xf1\x9a\x95\x35"
  8907. "\x43\xdc\x3a\xe4\xb6\xf4\xd0\xdf"
  8908. "\x9c\xcb\x94\xf3\x21\xa0\x77\x50"
  8909. "\xe2\xc6\xc4\xc6\x5f\x09\x64\x5b"
  8910. "\x92\x90\xd8\xe1\xd1\xed\x4b\x42"
  8911. "\xd7\x37\xaf\x65\x3d\x11\x39\xb6"
  8912. "\x24\x8a\x60\xae\xd6\x1e\xbf\x0e"
  8913. "\x0d\xd7\xdc\x96\x0e\x65\x75\x4e"
  8914. "\x29\x06\x9d\xa4\x51\x3a\x10\x63"
  8915. "\x8f\x17\x07\xd5\x8e\x3c\xf4\x28"
  8916. "\x00\x5a\x5b\x05\x19\xd8\xc0\x6c"
  8917. "\xe5\x15\xe4\x9c\x9d\x71\x9d\x5e"
  8918. "\x94\x29\x1a\xa7\x80\xfa\x0e\x33"
  8919. "\x03\xdd\xb7\x3e\x9a\xa9\x26\x18"
  8920. "\x37\xa9\x64\x08\x4d\x94\x5a\x88"
  8921. "\xca\x35\xce\x81\x02\xe3\x1f\x1b"
  8922. "\x89\x1a\x77\x85\xe3\x41\x6d\x32"
  8923. "\x42\x19\x23\x7d\xc8\x73\xee\x25"
  8924. "\x85\x0d\xf8\x31\x25\x79\x1b\x6f"
  8925. "\x79\x25\xd2\xd8\xd4\x23\xfd\xf7"
  8926. "\x82\x36\x6a\x0c\x46\x22\x15\xe9"
  8927. "\xff\x72\x41\x91\x91\x7d\x3a\xb7"
  8928. "\xdd\x65\x99\x70\xf6\x8d\x84\xf8"
  8929. "\x67\x15\x20\x11\xd6\xb2\x55\x7b"
  8930. "\xdb\x87\xee\xef\x55\x89\x2a\x59"
  8931. "\x2b\x07\x8f\x43\x8a\x59\x3c\x01"
  8932. "\x8b\x65\x54\xa1\x66\xd5\x38\xbd"
  8933. "\xc6\x30\xa9\xcc\x49\xb6\xa8\x1b"
  8934. "\xb8\xc0\x0e\xe3\x45\x28\xe2\xff"
  8935. "\x41\x9f\x7e\x7c\xd1\xae\x9e\x25"
  8936. "\x3f\x4c\x7c\x7c\xf4\xa8\x26\x4d"
  8937. "\x5c\xfd\x4b\x27\x18\xf9\x61\x76"
  8938. "\x48\xba\x0c\x6b\xa9\x4d\xfc\xf5"
  8939. "\x3b\x35\x7e\x2f\x4a\xa9\xc2\x9a"
  8940. "\xae\xab\x86\x09\x89\xc9\xc2\x40"
  8941. "\x39\x2c\x81\xb3\xb8\x17\x67\xc2"
  8942. "\x0d\x32\x4a\x3a\x67\x81\xd7\x1a"
  8943. "\x34\x52\xc5\xdb\x0a\xf5\x63\x39"
  8944. "\xea\x1f\xe1\x7c\xa1\x9e\xc1\x35"
  8945. "\xe3\xb1\x18\x45\x67\xf9\x22\x38"
  8946. "\x95\xd9\x34\x34\x86\xc6\x41\x94"
  8947. "\x15\xf9\x5b\x41\xa6\x87\x8b\xf8"
  8948. "\xd5\xe1\x1b\xe2\x5b\xf3\x86\x10"
  8949. "\xff\xe6\xae\x69\x76\xbc\x0d\xb4"
  8950. "\x09\x90\x0c\xa2\x65\x0c\xad\x74"
  8951. "\xf5\xd7\xff\xda\xc1\xce\x85\xbe"
  8952. "\x00\xa7\xff\x4d\x2f\x65\xd3\x8c"
  8953. "\x86\x2d\x05\xe8\xed\x3e\x6b\x8b"
  8954. "\x0f\x3d\x83\x8c\xf1\x1d\x5b\x96"
  8955. "\x2e\xb1\x9c\xc2\x98\xe1\x70\xb9"
  8956. "\xba\x5c\x8a\x43\xd6\x34\xa7\x2d"
  8957. "\xc9\x92\xae\xf2\xa5\x7b\x05\x49"
  8958. "\xa7\x33\x34\x86\xca\xe4\x96\x23"
  8959. "\x76\x5b\xf2\xc6\xf1\x51\x28\x42"
  8960. "\x7b\xcc\x76\x8f\xfa\xa2\xad\x31"
  8961. "\xd4\xd6\x7a\x6d\x25\x25\x54\xe4"
  8962. "\x3f\x50\x59\xe1\x5c\x05\xb7\x27"
  8963. "\x48\xbf\x07\xec\x1b\x13\xbe\x2b"
  8964. "\xa1\x57\x2b\xd5\xab\xd7\xd0\x4c"
  8965. "\x1e\xcb\x71\x9b\xc5\x90\x85\xd3"
  8966. "\xde\x59\xec\x71\xeb\x89\xbb\xd0"
  8967. "\x09\x50\xe1\x16\x3f\xfd\x1c\x34"
  8968. "\xc3\x1c\xa1\x10\x77\x53\x98\xef"
  8969. "\xf2\xfd\xa5\x01\x59\xc2\x9b\x26"
  8970. "\xc7\x42\xd9\x49\xda\x58\x2b\x6e"
  8971. "\x9f\x53\x19\x76\x7e\xd9\xc9\x0e"
  8972. "\x68\xc8\x7f\x51\x22\x42\xef\x49"
  8973. "\xa4\x55\xb6\x36\xac\x09\xc7\x31"
  8974. "\x88\x15\x4b\x2e\x8f\x3a\x08\xf7"
  8975. "\xd8\xf7\xa8\xc5\xa9\x33\xa6\x45"
  8976. "\xe4\xc4\x94\x76\xf3\x0d\x8f\x7e"
  8977. "\xc8\xf6\xbc\x23\x0a\xb6\x4c\xd3"
  8978. "\x6a\xcd\x36\xc2\x90\x5c\x5c\x3c"
  8979. "\x65\x7b\xc2\xd6\xcc\xe6\x0d\x87"
  8980. "\x73\x2e\x71\x79\x16\x06\x63\x28"
  8981. "\x09\x15\xd8\x89\x38\x38\x3d\xb5"
  8982. "\x42\x1c\x08\x24\xf7\x2a\xd2\x9d"
  8983. "\xc8\xca\xef\xf9\x27\xd8\x07\x86"
  8984. "\xf7\x43\x0b\x55\x15\x3f\x9f\x83"
  8985. "\xef\xdc\x49\x9d\x2a\xc1\x54\x62"
  8986. "\xbd\x9b\x66\x55\x9f\xb7\x12\xf3"
  8987. "\x1b\x4d\x9d\x2a\x5c\xed\x87\x75"
  8988. "\x87\x26\xec\x61\x2c\xb4\x0f\x89"
  8989. "\xb0\xfb\x2e\x68\x5d\x15\xc7\x8d"
  8990. "\x2e\xc0\xd9\xec\xaf\x4f\xd2\x25"
  8991. "\x29\xe8\xd2\x26\x2b\x67\xe9\xfc"
  8992. "\x2b\xa8\x67\x96\x12\x1f\x5b\x96"
  8993. "\xc6\x14\x53\xaf\x44\xea\xd6\xe2"
  8994. "\x94\x98\xe4\x12\x93\x4c\x92\xe0"
  8995. "\x18\xa5\x8d\x2d\xe4\x71\x3c\x47"
  8996. "\x4c\xf7\xe6\x47\x9e\xc0\x68\xdf"
  8997. "\xd4\xf5\x5a\x74\xb1\x2b\x29\x03"
  8998. "\x19\x07\xaf\x90\x62\x5c\x68\x98"
  8999. "\x48\x16\x11\x02\x9d\xee\xb4\x9b"
  9000. "\xe5\x42\x7f\x08\xfd\x16\x32\x0b"
  9001. "\xd0\xb3\xfa\x2b\xb7\x99\xf9\x29"
  9002. "\xcd\x20\x45\x9f\xb3\x1a\x5d\xa2"
  9003. "\xaf\x4d\xe0\xbd\x42\x0d\xbc\x74"
  9004. "\x99\x9c\x8e\x53\x1a\xb4\x3e\xbd"
  9005. "\xa2\x9a\x2d\xf7\xf8\x39\x0f\x67"
  9006. "\x63\xfc\x6b\xc0\xaf\xb3\x4b\x4f"
  9007. "\x55\xc4\xcf\xa7\xc8\x04\x11\x3e"
  9008. "\x14\x32\xbb\x1b\x38\x77\xd6\x7f"
  9009. "\x54\x4c\xdf\x75\xf3\x07\x2d\x33"
  9010. "\x9b\xa8\x20\xe1\x7b\x12\xb5\xf3"
  9011. "\xef\x2f\xce\x72\xe5\x24\x60\xc1"
  9012. "\x30\xe2\xab\xa1\x8e\x11\x09\xa8"
  9013. "\x21\x33\x44\xfe\x7f\x35\x32\x93"
  9014. "\x39\xa7\xad\x8b\x79\x06\xb2\xcb"
  9015. "\x4e\xa9\x5f\xc7\xba\x74\x29\xec"
  9016. "\x93\xa0\x4e\x54\x93\xc0\xbc\x55"
  9017. "\x64\xf0\x48\xe5\x57\x99\xee\x75"
  9018. "\xd6\x79\x0f\x66\xb7\xc6\x57\x76"
  9019. "\xf7\xb7\xf3\x9c\xc5\x60\xe8\x7f"
  9020. "\x83\x76\xd6\x0e\xaa\xe6\x90\x39"
  9021. "\x1d\xa6\x32\x6a\x34\xe3\x55\xf8"
  9022. "\x58\xa0\x58\x7d\x33\xe0\x22\x39"
  9023. "\x44\x64\x87\x86\x5a\x2f\xa7\x7e"
  9024. "\x0f\x38\xea\xb0\x30\xcc\x61\xa5"
  9025. "\x6a\x32\xae\x1e\xf7\xe9\xd0\xa9"
  9026. "\x0c\x32\x4b\xb5\x49\x28\xab\x85"
  9027. "\x2f\x8e\x01\x36\x38\x52\xd0\xba"
  9028. "\xd6\x02\x78\xf8\x0e\x3e\x9c\x8b"
  9029. "\x6b\x45\x99\x3f\x5c\xfe\x58\xf1"
  9030. "\x5c\x94\x04\xe1\xf5\x18\x6d\x51"
  9031. "\xb2\x5d\x18\x20\xb6\xc2\x9a\x42"
  9032. "\x1d\xb3\xab\x3c\xb6\x3a\x13\x03"
  9033. "\xb2\x46\x82\x4f\xfc\x64\xbc\x4f"
  9034. "\xca\xfa\x9c\xc0\xd5\xa7\xbd\x11"
  9035. "\xb7\xe4\x5a\xf6\x6f\x4d\x4d\x54"
  9036. "\xea\xa4\x98\x66\xd4\x22\x3b\xd3"
  9037. "\x8f\x34\x47\xd9\x7c\xf4\x72\x3b"
  9038. "\x4d\x02\x77\xf6\xd6\xdd\x08\x0a"
  9039. "\x81\xe1\x86\x89\x3e\x56\x10\x3c"
  9040. "\xba\xd7\x81\x8c\x08\xbc\x8b\xe2"
  9041. "\x53\xec\xa7\x89\xee\xc8\x56\xb5"
  9042. "\x36\x2c\xb2\x03\xba\x99\xdd\x7c"
  9043. "\x48\xa0\xb0\xbc\x91\x33\xe9\xa8"
  9044. "\xcb\xcd\xcf\x59\x5f\x1f\x15\xe2"
  9045. "\x56\xf5\x4e\x01\x35\x27\x45\x77"
  9046. "\x47\xc8\xbc\xcb\x7e\x39\xc1\x97"
  9047. "\x28\xd3\x84\xfc\x2c\x3e\xc8\xad"
  9048. "\x9c\xf8\x8a\x61\x9c\x28\xaa\xc5"
  9049. "\x99\x20\x43\x85\x9d\xa5\xe2\x8b"
  9050. "\xb8\xae\xeb\xd0\x32\x0d\x52\x78"
  9051. "\x09\x56\x3f\xc7\xd8\x7e\x26\xfc"
  9052. "\x37\xfb\x6f\x04\xfc\xfa\x92\x10"
  9053. "\xac\xf8\x3e\x21\xdc\x8c\x21\x16"
  9054. "\x7d\x67\x6e\xf6\xcd\xda\xb6\x98"
  9055. "\x23\xab\x23\x3c\xb2\x10\xa0\x53"
  9056. "\x5a\x56\x9f\xc5\xd0\xff\xbb\xe4"
  9057. "\x98\x3c\x69\x1e\xdb\x38\x8f\x7e"
  9058. "\x0f\xd2\x98\x88\x81\x8b\x45\x67"
  9059. "\xea\x33\xf1\xeb\xe9\x97\x55\x2e"
  9060. "\xd9\xaa\xeb\x5a\xec\xda\xe1\x68"
  9061. "\xa8\x9d\x3c\x84\x7c\x05\x3d\x62"
  9062. "\x87\x8f\x03\x21\x28\x95\x0c\x89"
  9063. "\x25\x22\x4a\xb0\x93\xa9\x50\xa2"
  9064. "\x2f\x57\x6e\x18\x42\x19\x54\x0c"
  9065. "\x55\x67\xc6\x11\x49\xf4\x5c\xd2"
  9066. "\xe9\x3d\xdd\x8b\x48\x71\x21\x00"
  9067. "\xc3\x9a\x6c\x85\x74\x28\x83\x4a"
  9068. "\x1b\x31\x05\xe1\x06\x92\xe7\xda"
  9069. "\x85\x73\x78\x45\x20\x7f\xae\x13"
  9070. "\x7c\x33\x06\x22\xf4\x83\xf9\x35"
  9071. "\x3f\x6c\x71\xa8\x4e\x48\xbe\x9b"
  9072. "\xce\x8a\xba\xda\xbe\x28\x08\xf7"
  9073. "\xe2\x14\x8c\x71\xea\x72\xf9\x33"
  9074. "\xf2\x88\x3f\xd7\xbb\x69\x6c\x29"
  9075. "\x19\xdc\x84\xce\x1f\x12\x4f\xc8"
  9076. "\xaf\xa5\x04\xba\x5a\xab\xb0\xd9"
  9077. "\x14\x1f\x6c\x68\x98\x39\x89\x7a"
  9078. "\xd9\xd8\x2f\xdf\xa8\x47\x4a\x25"
  9079. "\xe2\xfb\x33\xf4\x59\x78\xe1\x68"
  9080. "\x85\xcf\xfe\x59\x20\xd4\x05\x1d"
  9081. "\x80\x99\xae\xbc\xca\xae\x0f\x2f"
  9082. "\x65\x43\x34\x8e\x7e\xac\xd3\x93"
  9083. "\x2f\xac\x6d\x14\x3d\x02\x07\x70"
  9084. "\x9d\xa4\xf3\x1b\x5c\x36\xfc\x01"
  9085. "\x73\x34\x85\x0c\x6c\xd6\xf1\xbd"
  9086. "\x3f\xdf\xee\xf5\xd9\xba\x56\xef"
  9087. "\xf4\x9b\x6b\xee\x9f\x5a\x78\x6d"
  9088. "\x32\x19\xf4\xf7\xf8\x4c\x69\x0b"
  9089. "\x4b\xbc\xbb\xb7\xf2\x85\xaf\x70"
  9090. "\x75\x24\x6c\x54\xa7\x0e\x4d\x1d"
  9091. "\x01\xbf\x08\xac\xcf\x7f\x2c\xe3"
  9092. "\x14\x89\x5e\x70\x5a\x99\x92\xcd"
  9093. "\x01\x84\xc8\xd2\xab\xe5\x4f\x58"
  9094. "\xe7\x0f\x2f\x0e\xff\x68\xea\xfd"
  9095. "\x15\xb3\x17\xe6\xb0\xe7\x85\xd8"
  9096. "\x23\x2e\x05\xc7\xc9\xc4\x46\x1f"
  9097. "\xe1\x9e\x49\x20\x23\x24\x4d\x7e"
  9098. "\x29\x65\xff\xf4\xb6\xfd\x1a\x85"
  9099. "\xc4\x16\xec\xfc\xea\x7b\xd6\x2c"
  9100. "\x43\xf8\xb7\xbf\x79\xc0\x85\xcd"
  9101. "\xef\xe1\x98\xd3\xa5\xf7\x90\x8c"
  9102. "\xe9\x7f\x80\x6b\xd2\xac\x4c\x30"
  9103. "\xa7\xc6\x61\x6c\xd2\xf9\x2c\xff"
  9104. "\x30\xbc\x22\x81\x7d\x93\x12\xe4"
  9105. "\x0a\xcd\xaf\xdd\xe8\xab\x0a\x1e"
  9106. "\x13\xa4\x27\xc3\x5f\xf7\x4b\xbb"
  9107. "\x37\x09\x4b\x91\x6f\x92\x4f\xaf"
  9108. "\x52\xee\xdf\xef\x09\x6f\xf7\x5c"
  9109. "\x6e\x12\x17\x72\x63\x57\xc7\xba"
  9110. "\x3b\x6b\x38\x32\x73\x1b\x9c\x80"
  9111. "\xc1\x7a\xc6\xcf\xcd\x35\xc0\x6b"
  9112. "\x31\x1a\x6b\xe9\xd8\x2c\x29\x3f"
  9113. "\x96\xfb\xb6\xcd\x13\x91\x3b\xc2"
  9114. "\xd2\xa3\x31\x8d\xa4\xcd\x57\xcd"
  9115. "\x13\x3d\x64\xfd\x06\xce\xe6\xdc"
  9116. "\x0c\x24\x43\x31\x40\x57\xf1\x72"
  9117. "\x17\xe3\x3a\x63\x6d\x35\xcf\x5d"
  9118. "\x97\x40\x59\xdd\xf7\x3c\x02\xf7"
  9119. "\x1c\x7e\x05\xbb\xa9\x0d\x01\xb1"
  9120. "\x8e\xc0\x30\xa9\x53\x24\xc9\x89"
  9121. "\x84\x6d\xaa\xd0\xcd\x91\xc2\x4d"
  9122. "\x91\xb0\x89\xe2\xbf\x83\x44\xaa"
  9123. "\x28\x72\x23\xa0\xc2\xad\xad\x1c"
  9124. "\xfc\x3f\x09\x7a\x0b\xdc\xc5\x1b"
  9125. "\x87\x13\xc6\x5b\x59\x8d\xf2\xc8"
  9126. "\xaf\xdf\x11\x95",
  9127. .rlen = 4100,
  9128. .np = 2,
  9129. .tap = { 4064, 36 },
  9130. },
  9131. };
  9132. /*
  9133. * CTS (Cipher Text Stealing) mode tests
  9134. */
  9135. #define CTS_MODE_ENC_TEST_VECTORS 6
  9136. #define CTS_MODE_DEC_TEST_VECTORS 6
  9137. static struct cipher_testvec cts_mode_enc_tv_template[] = {
  9138. { /* from rfc3962 */
  9139. .klen = 16,
  9140. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9141. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9142. .ilen = 17,
  9143. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9144. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9145. "\x20",
  9146. .rlen = 17,
  9147. .result = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
  9148. "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
  9149. "\x97",
  9150. }, {
  9151. .klen = 16,
  9152. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9153. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9154. .ilen = 31,
  9155. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9156. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9157. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9158. "\x20\x47\x61\x75\x27\x73\x20",
  9159. .rlen = 31,
  9160. .result = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
  9161. "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
  9162. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9163. "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
  9164. }, {
  9165. .klen = 16,
  9166. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9167. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9168. .ilen = 32,
  9169. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9170. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9171. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9172. "\x20\x47\x61\x75\x27\x73\x20\x43",
  9173. .rlen = 32,
  9174. .result = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  9175. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  9176. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9177. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
  9178. }, {
  9179. .klen = 16,
  9180. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9181. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9182. .ilen = 47,
  9183. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9184. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9185. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9186. "\x20\x47\x61\x75\x27\x73\x20\x43"
  9187. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  9188. "\x70\x6c\x65\x61\x73\x65\x2c",
  9189. .rlen = 47,
  9190. .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9191. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  9192. "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
  9193. "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
  9194. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  9195. "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
  9196. }, {
  9197. .klen = 16,
  9198. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9199. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9200. .ilen = 48,
  9201. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9202. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9203. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9204. "\x20\x47\x61\x75\x27\x73\x20\x43"
  9205. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  9206. "\x70\x6c\x65\x61\x73\x65\x2c\x20",
  9207. .rlen = 48,
  9208. .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9209. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  9210. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  9211. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
  9212. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  9213. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
  9214. }, {
  9215. .klen = 16,
  9216. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9217. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9218. .ilen = 64,
  9219. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9220. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9221. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9222. "\x20\x47\x61\x75\x27\x73\x20\x43"
  9223. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  9224. "\x70\x6c\x65\x61\x73\x65\x2c\x20"
  9225. "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
  9226. "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
  9227. .rlen = 64,
  9228. .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9229. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  9230. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  9231. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  9232. "\x48\x07\xef\xe8\x36\xee\x89\xa5"
  9233. "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
  9234. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  9235. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
  9236. }
  9237. };
  9238. static struct cipher_testvec cts_mode_dec_tv_template[] = {
  9239. { /* from rfc3962 */
  9240. .klen = 16,
  9241. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9242. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9243. .rlen = 17,
  9244. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9245. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9246. "\x20",
  9247. .ilen = 17,
  9248. .input = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
  9249. "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
  9250. "\x97",
  9251. }, {
  9252. .klen = 16,
  9253. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9254. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9255. .rlen = 31,
  9256. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9257. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9258. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9259. "\x20\x47\x61\x75\x27\x73\x20",
  9260. .ilen = 31,
  9261. .input = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
  9262. "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
  9263. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9264. "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
  9265. }, {
  9266. .klen = 16,
  9267. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9268. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9269. .rlen = 32,
  9270. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9271. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9272. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9273. "\x20\x47\x61\x75\x27\x73\x20\x43",
  9274. .ilen = 32,
  9275. .input = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  9276. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  9277. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9278. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
  9279. }, {
  9280. .klen = 16,
  9281. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9282. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9283. .rlen = 47,
  9284. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9285. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9286. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9287. "\x20\x47\x61\x75\x27\x73\x20\x43"
  9288. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  9289. "\x70\x6c\x65\x61\x73\x65\x2c",
  9290. .ilen = 47,
  9291. .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9292. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  9293. "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
  9294. "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
  9295. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  9296. "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
  9297. }, {
  9298. .klen = 16,
  9299. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9300. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9301. .rlen = 48,
  9302. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9303. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9304. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9305. "\x20\x47\x61\x75\x27\x73\x20\x43"
  9306. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  9307. "\x70\x6c\x65\x61\x73\x65\x2c\x20",
  9308. .ilen = 48,
  9309. .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9310. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  9311. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  9312. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
  9313. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  9314. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
  9315. }, {
  9316. .klen = 16,
  9317. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  9318. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  9319. .rlen = 64,
  9320. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  9321. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  9322. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  9323. "\x20\x47\x61\x75\x27\x73\x20\x43"
  9324. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  9325. "\x70\x6c\x65\x61\x73\x65\x2c\x20"
  9326. "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
  9327. "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
  9328. .ilen = 64,
  9329. .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  9330. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  9331. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  9332. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  9333. "\x48\x07\xef\xe8\x36\xee\x89\xa5"
  9334. "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
  9335. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  9336. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
  9337. }
  9338. };
  9339. /*
  9340. * Compression stuff.
  9341. */
  9342. #define COMP_BUF_SIZE 512
  9343. struct comp_testvec {
  9344. int inlen, outlen;
  9345. char input[COMP_BUF_SIZE];
  9346. char output[COMP_BUF_SIZE];
  9347. };
  9348. struct pcomp_testvec {
  9349. void *params;
  9350. unsigned int paramsize;
  9351. int inlen, outlen;
  9352. char input[COMP_BUF_SIZE];
  9353. char output[COMP_BUF_SIZE];
  9354. };
  9355. /*
  9356. * Deflate test vectors (null-terminated strings).
  9357. * Params: winbits=-11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL.
  9358. */
  9359. #define DEFLATE_COMP_TEST_VECTORS 2
  9360. #define DEFLATE_DECOMP_TEST_VECTORS 2
  9361. static struct comp_testvec deflate_comp_tv_template[] = {
  9362. {
  9363. .inlen = 70,
  9364. .outlen = 38,
  9365. .input = "Join us now and share the software "
  9366. "Join us now and share the software ",
  9367. .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  9368. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  9369. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  9370. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  9371. "\x71\xbc\x08\x2b\x01\x00",
  9372. }, {
  9373. .inlen = 191,
  9374. .outlen = 122,
  9375. .input = "This document describes a compression method based on the DEFLATE"
  9376. "compression algorithm. This document defines the application of "
  9377. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  9378. .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  9379. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  9380. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  9381. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  9382. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  9383. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  9384. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  9385. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  9386. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  9387. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  9388. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  9389. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  9390. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  9391. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  9392. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  9393. "\xfa\x02",
  9394. },
  9395. };
  9396. static struct comp_testvec deflate_decomp_tv_template[] = {
  9397. {
  9398. .inlen = 122,
  9399. .outlen = 191,
  9400. .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  9401. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  9402. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  9403. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  9404. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  9405. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  9406. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  9407. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  9408. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  9409. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  9410. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  9411. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  9412. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  9413. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  9414. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  9415. "\xfa\x02",
  9416. .output = "This document describes a compression method based on the DEFLATE"
  9417. "compression algorithm. This document defines the application of "
  9418. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  9419. }, {
  9420. .inlen = 38,
  9421. .outlen = 70,
  9422. .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  9423. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  9424. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  9425. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  9426. "\x71\xbc\x08\x2b\x01\x00",
  9427. .output = "Join us now and share the software "
  9428. "Join us now and share the software ",
  9429. },
  9430. };
  9431. #define ZLIB_COMP_TEST_VECTORS 2
  9432. #define ZLIB_DECOMP_TEST_VECTORS 2
  9433. static const struct {
  9434. struct nlattr nla;
  9435. int val;
  9436. } deflate_comp_params[] = {
  9437. {
  9438. .nla = {
  9439. .nla_len = NLA_HDRLEN + sizeof(int),
  9440. .nla_type = ZLIB_COMP_LEVEL,
  9441. },
  9442. .val = Z_DEFAULT_COMPRESSION,
  9443. }, {
  9444. .nla = {
  9445. .nla_len = NLA_HDRLEN + sizeof(int),
  9446. .nla_type = ZLIB_COMP_METHOD,
  9447. },
  9448. .val = Z_DEFLATED,
  9449. }, {
  9450. .nla = {
  9451. .nla_len = NLA_HDRLEN + sizeof(int),
  9452. .nla_type = ZLIB_COMP_WINDOWBITS,
  9453. },
  9454. .val = -11,
  9455. }, {
  9456. .nla = {
  9457. .nla_len = NLA_HDRLEN + sizeof(int),
  9458. .nla_type = ZLIB_COMP_MEMLEVEL,
  9459. },
  9460. .val = MAX_MEM_LEVEL,
  9461. }, {
  9462. .nla = {
  9463. .nla_len = NLA_HDRLEN + sizeof(int),
  9464. .nla_type = ZLIB_COMP_STRATEGY,
  9465. },
  9466. .val = Z_DEFAULT_STRATEGY,
  9467. }
  9468. };
  9469. static const struct {
  9470. struct nlattr nla;
  9471. int val;
  9472. } deflate_decomp_params[] = {
  9473. {
  9474. .nla = {
  9475. .nla_len = NLA_HDRLEN + sizeof(int),
  9476. .nla_type = ZLIB_DECOMP_WINDOWBITS,
  9477. },
  9478. .val = -11,
  9479. }
  9480. };
  9481. static struct pcomp_testvec zlib_comp_tv_template[] = {
  9482. {
  9483. .params = &deflate_comp_params,
  9484. .paramsize = sizeof(deflate_comp_params),
  9485. .inlen = 70,
  9486. .outlen = 38,
  9487. .input = "Join us now and share the software "
  9488. "Join us now and share the software ",
  9489. .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  9490. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  9491. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  9492. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  9493. "\x71\xbc\x08\x2b\x01\x00",
  9494. }, {
  9495. .params = &deflate_comp_params,
  9496. .paramsize = sizeof(deflate_comp_params),
  9497. .inlen = 191,
  9498. .outlen = 122,
  9499. .input = "This document describes a compression method based on the DEFLATE"
  9500. "compression algorithm. This document defines the application of "
  9501. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  9502. .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  9503. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  9504. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  9505. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  9506. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  9507. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  9508. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  9509. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  9510. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  9511. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  9512. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  9513. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  9514. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  9515. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  9516. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  9517. "\xfa\x02",
  9518. },
  9519. };
  9520. static struct pcomp_testvec zlib_decomp_tv_template[] = {
  9521. {
  9522. .params = &deflate_decomp_params,
  9523. .paramsize = sizeof(deflate_decomp_params),
  9524. .inlen = 122,
  9525. .outlen = 191,
  9526. .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  9527. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  9528. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  9529. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  9530. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  9531. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  9532. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  9533. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  9534. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  9535. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  9536. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  9537. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  9538. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  9539. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  9540. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  9541. "\xfa\x02",
  9542. .output = "This document describes a compression method based on the DEFLATE"
  9543. "compression algorithm. This document defines the application of "
  9544. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  9545. }, {
  9546. .params = &deflate_decomp_params,
  9547. .paramsize = sizeof(deflate_decomp_params),
  9548. .inlen = 38,
  9549. .outlen = 70,
  9550. .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  9551. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  9552. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  9553. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  9554. "\x71\xbc\x08\x2b\x01\x00",
  9555. .output = "Join us now and share the software "
  9556. "Join us now and share the software ",
  9557. },
  9558. };
  9559. /*
  9560. * LZO test vectors (null-terminated strings).
  9561. */
  9562. #define LZO_COMP_TEST_VECTORS 2
  9563. #define LZO_DECOMP_TEST_VECTORS 2
  9564. static struct comp_testvec lzo_comp_tv_template[] = {
  9565. {
  9566. .inlen = 70,
  9567. .outlen = 46,
  9568. .input = "Join us now and share the software "
  9569. "Join us now and share the software ",
  9570. .output = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
  9571. "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
  9572. "\x64\x20\x73\x68\x61\x72\x65\x20"
  9573. "\x74\x68\x65\x20\x73\x6f\x66\x74"
  9574. "\x77\x70\x01\x01\x4a\x6f\x69\x6e"
  9575. "\x3d\x88\x00\x11\x00\x00",
  9576. }, {
  9577. .inlen = 159,
  9578. .outlen = 133,
  9579. .input = "This document describes a compression method based on the LZO "
  9580. "compression algorithm. This document defines the application of "
  9581. "the LZO algorithm used in UBIFS.",
  9582. .output = "\x00\x2b\x54\x68\x69\x73\x20\x64"
  9583. "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
  9584. "\x64\x65\x73\x63\x72\x69\x62\x65"
  9585. "\x73\x20\x61\x20\x63\x6f\x6d\x70"
  9586. "\x72\x65\x73\x73\x69\x6f\x6e\x20"
  9587. "\x6d\x65\x74\x68\x6f\x64\x20\x62"
  9588. "\x61\x73\x65\x64\x20\x6f\x6e\x20"
  9589. "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
  9590. "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
  9591. "\x69\x74\x68\x6d\x2e\x20\x20\x54"
  9592. "\x68\x69\x73\x2a\x54\x01\x02\x66"
  9593. "\x69\x6e\x65\x73\x94\x06\x05\x61"
  9594. "\x70\x70\x6c\x69\x63\x61\x74\x76"
  9595. "\x0a\x6f\x66\x88\x02\x60\x09\x27"
  9596. "\xf0\x00\x0c\x20\x75\x73\x65\x64"
  9597. "\x20\x69\x6e\x20\x55\x42\x49\x46"
  9598. "\x53\x2e\x11\x00\x00",
  9599. },
  9600. };
  9601. static struct comp_testvec lzo_decomp_tv_template[] = {
  9602. {
  9603. .inlen = 133,
  9604. .outlen = 159,
  9605. .input = "\x00\x2b\x54\x68\x69\x73\x20\x64"
  9606. "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
  9607. "\x64\x65\x73\x63\x72\x69\x62\x65"
  9608. "\x73\x20\x61\x20\x63\x6f\x6d\x70"
  9609. "\x72\x65\x73\x73\x69\x6f\x6e\x20"
  9610. "\x6d\x65\x74\x68\x6f\x64\x20\x62"
  9611. "\x61\x73\x65\x64\x20\x6f\x6e\x20"
  9612. "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
  9613. "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
  9614. "\x69\x74\x68\x6d\x2e\x20\x20\x54"
  9615. "\x68\x69\x73\x2a\x54\x01\x02\x66"
  9616. "\x69\x6e\x65\x73\x94\x06\x05\x61"
  9617. "\x70\x70\x6c\x69\x63\x61\x74\x76"
  9618. "\x0a\x6f\x66\x88\x02\x60\x09\x27"
  9619. "\xf0\x00\x0c\x20\x75\x73\x65\x64"
  9620. "\x20\x69\x6e\x20\x55\x42\x49\x46"
  9621. "\x53\x2e\x11\x00\x00",
  9622. .output = "This document describes a compression method based on the LZO "
  9623. "compression algorithm. This document defines the application of "
  9624. "the LZO algorithm used in UBIFS.",
  9625. }, {
  9626. .inlen = 46,
  9627. .outlen = 70,
  9628. .input = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
  9629. "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
  9630. "\x64\x20\x73\x68\x61\x72\x65\x20"
  9631. "\x74\x68\x65\x20\x73\x6f\x66\x74"
  9632. "\x77\x70\x01\x01\x4a\x6f\x69\x6e"
  9633. "\x3d\x88\x00\x11\x00\x00",
  9634. .output = "Join us now and share the software "
  9635. "Join us now and share the software ",
  9636. },
  9637. };
  9638. /*
  9639. * Michael MIC test vectors from IEEE 802.11i
  9640. */
  9641. #define MICHAEL_MIC_TEST_VECTORS 6
  9642. static struct hash_testvec michael_mic_tv_template[] = {
  9643. {
  9644. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  9645. .ksize = 8,
  9646. .plaintext = zeroed_string,
  9647. .psize = 0,
  9648. .digest = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
  9649. },
  9650. {
  9651. .key = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
  9652. .ksize = 8,
  9653. .plaintext = "M",
  9654. .psize = 1,
  9655. .digest = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
  9656. },
  9657. {
  9658. .key = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
  9659. .ksize = 8,
  9660. .plaintext = "Mi",
  9661. .psize = 2,
  9662. .digest = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
  9663. },
  9664. {
  9665. .key = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
  9666. .ksize = 8,
  9667. .plaintext = "Mic",
  9668. .psize = 3,
  9669. .digest = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
  9670. },
  9671. {
  9672. .key = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
  9673. .ksize = 8,
  9674. .plaintext = "Mich",
  9675. .psize = 4,
  9676. .digest = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
  9677. },
  9678. {
  9679. .key = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
  9680. .ksize = 8,
  9681. .plaintext = "Michael",
  9682. .psize = 7,
  9683. .digest = "\x0a\x94\x2b\x12\x4e\xca\xa5\x46",
  9684. }
  9685. };
  9686. /*
  9687. * CRC32C test vectors
  9688. */
  9689. #define CRC32C_TEST_VECTORS 14
  9690. static struct hash_testvec crc32c_tv_template[] = {
  9691. {
  9692. .psize = 0,
  9693. .digest = "\x00\x00\x00\x00",
  9694. },
  9695. {
  9696. .key = "\x87\xa9\xcb\xed",
  9697. .ksize = 4,
  9698. .psize = 0,
  9699. .digest = "\x78\x56\x34\x12",
  9700. },
  9701. {
  9702. .key = "\xff\xff\xff\xff",
  9703. .ksize = 4,
  9704. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  9705. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  9706. "\x11\x12\x13\x14\x15\x16\x17\x18"
  9707. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  9708. "\x21\x22\x23\x24\x25\x26\x27\x28",
  9709. .psize = 40,
  9710. .digest = "\x7f\x15\x2c\x0e",
  9711. },
  9712. {
  9713. .key = "\xff\xff\xff\xff",
  9714. .ksize = 4,
  9715. .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  9716. "\x31\x32\x33\x34\x35\x36\x37\x38"
  9717. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  9718. "\x41\x42\x43\x44\x45\x46\x47\x48"
  9719. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
  9720. .psize = 40,
  9721. .digest = "\xf6\xeb\x80\xe9",
  9722. },
  9723. {
  9724. .key = "\xff\xff\xff\xff",
  9725. .ksize = 4,
  9726. .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
  9727. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  9728. "\x61\x62\x63\x64\x65\x66\x67\x68"
  9729. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  9730. "\x71\x72\x73\x74\x75\x76\x77\x78",
  9731. .psize = 40,
  9732. .digest = "\xed\xbd\x74\xde",
  9733. },
  9734. {
  9735. .key = "\xff\xff\xff\xff",
  9736. .ksize = 4,
  9737. .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  9738. "\x81\x82\x83\x84\x85\x86\x87\x88"
  9739. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  9740. "\x91\x92\x93\x94\x95\x96\x97\x98"
  9741. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
  9742. .psize = 40,
  9743. .digest = "\x62\xc8\x79\xd5",
  9744. },
  9745. {
  9746. .key = "\xff\xff\xff\xff",
  9747. .ksize = 4,
  9748. .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  9749. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  9750. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  9751. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  9752. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
  9753. .psize = 40,
  9754. .digest = "\xd0\x9a\x97\xba",
  9755. },
  9756. {
  9757. .key = "\xff\xff\xff\xff",
  9758. .ksize = 4,
  9759. .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  9760. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  9761. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  9762. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  9763. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  9764. .psize = 40,
  9765. .digest = "\x13\xd9\x29\x2b",
  9766. },
  9767. {
  9768. .key = "\x80\xea\xd3\xf1",
  9769. .ksize = 4,
  9770. .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  9771. "\x31\x32\x33\x34\x35\x36\x37\x38"
  9772. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  9773. "\x41\x42\x43\x44\x45\x46\x47\x48"
  9774. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
  9775. .psize = 40,
  9776. .digest = "\x0c\xb5\xe2\xa2",
  9777. },
  9778. {
  9779. .key = "\xf3\x4a\x1d\x5d",
  9780. .ksize = 4,
  9781. .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
  9782. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  9783. "\x61\x62\x63\x64\x65\x66\x67\x68"
  9784. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  9785. "\x71\x72\x73\x74\x75\x76\x77\x78",
  9786. .psize = 40,
  9787. .digest = "\xd1\x7f\xfb\xa6",
  9788. },
  9789. {
  9790. .key = "\x2e\x80\x04\x59",
  9791. .ksize = 4,
  9792. .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  9793. "\x81\x82\x83\x84\x85\x86\x87\x88"
  9794. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  9795. "\x91\x92\x93\x94\x95\x96\x97\x98"
  9796. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
  9797. .psize = 40,
  9798. .digest = "\x59\x33\xe6\x7a",
  9799. },
  9800. {
  9801. .key = "\xa6\xcc\x19\x85",
  9802. .ksize = 4,
  9803. .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  9804. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  9805. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  9806. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  9807. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
  9808. .psize = 40,
  9809. .digest = "\xbe\x03\x01\xd2",
  9810. },
  9811. {
  9812. .key = "\x41\xfc\xfe\x2d",
  9813. .ksize = 4,
  9814. .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  9815. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  9816. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  9817. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  9818. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  9819. .psize = 40,
  9820. .digest = "\x75\xd3\xc5\x24",
  9821. },
  9822. {
  9823. .key = "\xff\xff\xff\xff",
  9824. .ksize = 4,
  9825. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  9826. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  9827. "\x11\x12\x13\x14\x15\x16\x17\x18"
  9828. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  9829. "\x21\x22\x23\x24\x25\x26\x27\x28"
  9830. "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  9831. "\x31\x32\x33\x34\x35\x36\x37\x38"
  9832. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  9833. "\x41\x42\x43\x44\x45\x46\x47\x48"
  9834. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
  9835. "\x51\x52\x53\x54\x55\x56\x57\x58"
  9836. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  9837. "\x61\x62\x63\x64\x65\x66\x67\x68"
  9838. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  9839. "\x71\x72\x73\x74\x75\x76\x77\x78"
  9840. "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  9841. "\x81\x82\x83\x84\x85\x86\x87\x88"
  9842. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  9843. "\x91\x92\x93\x94\x95\x96\x97\x98"
  9844. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
  9845. "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  9846. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  9847. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  9848. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  9849. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
  9850. "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  9851. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  9852. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  9853. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  9854. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  9855. .psize = 240,
  9856. .digest = "\x75\xd3\xc5\x24",
  9857. .np = 2,
  9858. .tap = { 31, 209 }
  9859. },
  9860. };
  9861. #endif /* _CRYPTO_TESTMGR_H */