tcrypt.h 269 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275
  1. /*
  2. * Quick & dirty crypto testing module.
  3. *
  4. * This will only exist until we have a better testing mechanism
  5. * (e.g. a char device).
  6. *
  7. * Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
  8. * Copyright (c) 2002 Jean-Francois Dive <jef@linuxbe.org>
  9. * Copyright (c) 2007 Nokia Siemens Networks
  10. *
  11. * This program is free software; you can redistribute it and/or modify it
  12. * under the terms of the GNU General Public License as published by the Free
  13. * Software Foundation; either version 2 of the License, or (at your option)
  14. * any later version.
  15. *
  16. * 2007-11-13 Added GCM tests
  17. * 2007-11-13 Added AEAD support
  18. * 2006-12-07 Added SHA384 HMAC and SHA512 HMAC tests
  19. * 2004-08-09 Cipher speed tests by Reyk Floeter <reyk@vantronix.net>
  20. * 2003-09-14 Changes by Kartikey Mahendra Bhatt
  21. *
  22. */
  23. #ifndef _CRYPTO_TCRYPT_H
  24. #define _CRYPTO_TCRYPT_H
  25. #define MAX_DIGEST_SIZE 64
  26. #define MAX_TAP 8
  27. #define MAX_KEYLEN 56
  28. #define MAX_IVLEN 32
  29. struct hash_testvec {
  30. /* only used with keyed hash algorithms */
  31. char *key;
  32. char *plaintext;
  33. char *digest;
  34. unsigned char tap[MAX_TAP];
  35. unsigned char psize;
  36. unsigned char np;
  37. unsigned char ksize;
  38. };
  39. struct cipher_testvec {
  40. char *key;
  41. char *iv;
  42. char *input;
  43. char *result;
  44. unsigned char tap[MAX_TAP];
  45. int np;
  46. unsigned char fail;
  47. unsigned char wk; /* weak key flag */
  48. unsigned char klen;
  49. unsigned short ilen;
  50. unsigned short rlen;
  51. };
  52. struct aead_testvec {
  53. char *key;
  54. char *iv;
  55. char *input;
  56. char *assoc;
  57. char *result;
  58. unsigned char tap[MAX_TAP];
  59. unsigned char atap[MAX_TAP];
  60. int np;
  61. int anp;
  62. unsigned char fail;
  63. unsigned char wk; /* weak key flag */
  64. unsigned char klen;
  65. unsigned short ilen;
  66. unsigned short alen;
  67. unsigned short rlen;
  68. };
  69. struct hash_speed {
  70. unsigned int blen; /* buffer length */
  71. unsigned int plen; /* per-update length */
  72. };
  73. static char zeroed_string[48];
  74. /*
  75. * MD4 test vectors from RFC1320
  76. */
  77. #define MD4_TEST_VECTORS 7
  78. static struct hash_testvec md4_tv_template [] = {
  79. {
  80. .plaintext = "",
  81. .digest = "\x31\xd6\xcf\xe0\xd1\x6a\xe9\x31"
  82. "\xb7\x3c\x59\xd7\xe0\xc0\x89\xc0",
  83. }, {
  84. .plaintext = "a",
  85. .psize = 1,
  86. .digest = "\xbd\xe5\x2c\xb3\x1d\xe3\x3e\x46"
  87. "\x24\x5e\x05\xfb\xdb\xd6\xfb\x24",
  88. }, {
  89. .plaintext = "abc",
  90. .psize = 3,
  91. .digest = "\xa4\x48\x01\x7a\xaf\x21\xd8\x52"
  92. "\x5f\xc1\x0a\xe8\x7a\xa6\x72\x9d",
  93. }, {
  94. .plaintext = "message digest",
  95. .psize = 14,
  96. .digest = "\xd9\x13\x0a\x81\x64\x54\x9f\xe8"
  97. "\x18\x87\x48\x06\xe1\xc7\x01\x4b",
  98. }, {
  99. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  100. .psize = 26,
  101. .digest = "\xd7\x9e\x1c\x30\x8a\xa5\xbb\xcd"
  102. "\xee\xa8\xed\x63\xdf\x41\x2d\xa9",
  103. .np = 2,
  104. .tap = { 13, 13 },
  105. }, {
  106. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
  107. .psize = 62,
  108. .digest = "\x04\x3f\x85\x82\xf2\x41\xdb\x35"
  109. "\x1c\xe6\x27\xe1\x53\xe7\xf0\xe4",
  110. }, {
  111. .plaintext = "123456789012345678901234567890123456789012345678901234567890123"
  112. "45678901234567890",
  113. .psize = 80,
  114. .digest = "\xe3\x3b\x4d\xdc\x9c\x38\xf2\x19"
  115. "\x9c\x3e\x7b\x16\x4f\xcc\x05\x36",
  116. },
  117. };
  118. /*
  119. * MD5 test vectors from RFC1321
  120. */
  121. #define MD5_TEST_VECTORS 7
  122. static struct hash_testvec md5_tv_template[] = {
  123. {
  124. .digest = "\xd4\x1d\x8c\xd9\x8f\x00\xb2\x04"
  125. "\xe9\x80\x09\x98\xec\xf8\x42\x7e",
  126. }, {
  127. .plaintext = "a",
  128. .psize = 1,
  129. .digest = "\x0c\xc1\x75\xb9\xc0\xf1\xb6\xa8"
  130. "\x31\xc3\x99\xe2\x69\x77\x26\x61",
  131. }, {
  132. .plaintext = "abc",
  133. .psize = 3,
  134. .digest = "\x90\x01\x50\x98\x3c\xd2\x4f\xb0"
  135. "\xd6\x96\x3f\x7d\x28\xe1\x7f\x72",
  136. }, {
  137. .plaintext = "message digest",
  138. .psize = 14,
  139. .digest = "\xf9\x6b\x69\x7d\x7c\xb7\x93\x8d"
  140. "\x52\x5a\x2f\x31\xaa\xf1\x61\xd0",
  141. }, {
  142. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  143. .psize = 26,
  144. .digest = "\xc3\xfc\xd3\xd7\x61\x92\xe4\x00"
  145. "\x7d\xfb\x49\x6c\xca\x67\xe1\x3b",
  146. .np = 2,
  147. .tap = {13, 13}
  148. }, {
  149. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
  150. .psize = 62,
  151. .digest = "\xd1\x74\xab\x98\xd2\x77\xd9\xf5"
  152. "\xa5\x61\x1c\x2c\x9f\x41\x9d\x9f",
  153. }, {
  154. .plaintext = "12345678901234567890123456789012345678901234567890123456789012"
  155. "345678901234567890",
  156. .psize = 80,
  157. .digest = "\x57\xed\xf4\xa2\x2b\xe3\xc9\x55"
  158. "\xac\x49\xda\x2e\x21\x07\xb6\x7a",
  159. }
  160. };
  161. /*
  162. * SHA1 test vectors from from FIPS PUB 180-1
  163. */
  164. #define SHA1_TEST_VECTORS 2
  165. static struct hash_testvec sha1_tv_template[] = {
  166. {
  167. .plaintext = "abc",
  168. .psize = 3,
  169. .digest = "\xa9\x99\x3e\x36\x47\x06\x81\x6a\xba\x3e"
  170. "\x25\x71\x78\x50\xc2\x6c\x9c\xd0\xd8\x9d",
  171. }, {
  172. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  173. .psize = 56,
  174. .digest = "\x84\x98\x3e\x44\x1c\x3b\xd2\x6e\xba\xae"
  175. "\x4a\xa1\xf9\x51\x29\xe5\xe5\x46\x70\xf1",
  176. .np = 2,
  177. .tap = { 28, 28 }
  178. }
  179. };
  180. /*
  181. * SHA224 test vectors from from FIPS PUB 180-2
  182. */
  183. #define SHA224_TEST_VECTORS 2
  184. static struct hash_testvec sha224_tv_template[] = {
  185. {
  186. .plaintext = "abc",
  187. .psize = 3,
  188. .digest = "\x23\x09\x7D\x22\x34\x05\xD8\x22"
  189. "\x86\x42\xA4\x77\xBD\xA2\x55\xB3"
  190. "\x2A\xAD\xBC\xE4\xBD\xA0\xB3\xF7"
  191. "\xE3\x6C\x9D\xA7",
  192. }, {
  193. .plaintext =
  194. "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  195. .psize = 56,
  196. .digest = "\x75\x38\x8B\x16\x51\x27\x76\xCC"
  197. "\x5D\xBA\x5D\xA1\xFD\x89\x01\x50"
  198. "\xB0\xC6\x45\x5C\xB4\xF5\x8B\x19"
  199. "\x52\x52\x25\x25",
  200. .np = 2,
  201. .tap = { 28, 28 }
  202. }
  203. };
  204. /*
  205. * SHA256 test vectors from from NIST
  206. */
  207. #define SHA256_TEST_VECTORS 2
  208. static struct hash_testvec sha256_tv_template[] = {
  209. {
  210. .plaintext = "abc",
  211. .psize = 3,
  212. .digest = "\xba\x78\x16\xbf\x8f\x01\xcf\xea"
  213. "\x41\x41\x40\xde\x5d\xae\x22\x23"
  214. "\xb0\x03\x61\xa3\x96\x17\x7a\x9c"
  215. "\xb4\x10\xff\x61\xf2\x00\x15\xad",
  216. }, {
  217. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  218. .psize = 56,
  219. .digest = "\x24\x8d\x6a\x61\xd2\x06\x38\xb8"
  220. "\xe5\xc0\x26\x93\x0c\x3e\x60\x39"
  221. "\xa3\x3c\xe4\x59\x64\xff\x21\x67"
  222. "\xf6\xec\xed\xd4\x19\xdb\x06\xc1",
  223. .np = 2,
  224. .tap = { 28, 28 }
  225. },
  226. };
  227. /*
  228. * SHA384 test vectors from from NIST and kerneli
  229. */
  230. #define SHA384_TEST_VECTORS 4
  231. static struct hash_testvec sha384_tv_template[] = {
  232. {
  233. .plaintext= "abc",
  234. .psize = 3,
  235. .digest = "\xcb\x00\x75\x3f\x45\xa3\x5e\x8b"
  236. "\xb5\xa0\x3d\x69\x9a\xc6\x50\x07"
  237. "\x27\x2c\x32\xab\x0e\xde\xd1\x63"
  238. "\x1a\x8b\x60\x5a\x43\xff\x5b\xed"
  239. "\x80\x86\x07\x2b\xa1\xe7\xcc\x23"
  240. "\x58\xba\xec\xa1\x34\xc8\x25\xa7",
  241. }, {
  242. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  243. .psize = 56,
  244. .digest = "\x33\x91\xfd\xdd\xfc\x8d\xc7\x39"
  245. "\x37\x07\xa6\x5b\x1b\x47\x09\x39"
  246. "\x7c\xf8\xb1\xd1\x62\xaf\x05\xab"
  247. "\xfe\x8f\x45\x0d\xe5\xf3\x6b\xc6"
  248. "\xb0\x45\x5a\x85\x20\xbc\x4e\x6f"
  249. "\x5f\xe9\x5b\x1f\xe3\xc8\x45\x2b",
  250. }, {
  251. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
  252. "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
  253. .psize = 112,
  254. .digest = "\x09\x33\x0c\x33\xf7\x11\x47\xe8"
  255. "\x3d\x19\x2f\xc7\x82\xcd\x1b\x47"
  256. "\x53\x11\x1b\x17\x3b\x3b\x05\xd2"
  257. "\x2f\xa0\x80\x86\xe3\xb0\xf7\x12"
  258. "\xfc\xc7\xc7\x1a\x55\x7e\x2d\xb9"
  259. "\x66\xc3\xe9\xfa\x91\x74\x60\x39",
  260. }, {
  261. .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
  262. "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
  263. .psize = 104,
  264. .digest = "\x3d\x20\x89\x73\xab\x35\x08\xdb"
  265. "\xbd\x7e\x2c\x28\x62\xba\x29\x0a"
  266. "\xd3\x01\x0e\x49\x78\xc1\x98\xdc"
  267. "\x4d\x8f\xd0\x14\xe5\x82\x82\x3a"
  268. "\x89\xe1\x6f\x9b\x2a\x7b\xbc\x1a"
  269. "\xc9\x38\xe2\xd1\x99\xe8\xbe\xa4",
  270. .np = 4,
  271. .tap = { 26, 26, 26, 26 }
  272. },
  273. };
  274. /*
  275. * SHA512 test vectors from from NIST and kerneli
  276. */
  277. #define SHA512_TEST_VECTORS 4
  278. static struct hash_testvec sha512_tv_template[] = {
  279. {
  280. .plaintext = "abc",
  281. .psize = 3,
  282. .digest = "\xdd\xaf\x35\xa1\x93\x61\x7a\xba"
  283. "\xcc\x41\x73\x49\xae\x20\x41\x31"
  284. "\x12\xe6\xfa\x4e\x89\xa9\x7e\xa2"
  285. "\x0a\x9e\xee\xe6\x4b\x55\xd3\x9a"
  286. "\x21\x92\x99\x2a\x27\x4f\xc1\xa8"
  287. "\x36\xba\x3c\x23\xa3\xfe\xeb\xbd"
  288. "\x45\x4d\x44\x23\x64\x3c\xe8\x0e"
  289. "\x2a\x9a\xc9\x4f\xa5\x4c\xa4\x9f",
  290. }, {
  291. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  292. .psize = 56,
  293. .digest = "\x20\x4a\x8f\xc6\xdd\xa8\x2f\x0a"
  294. "\x0c\xed\x7b\xeb\x8e\x08\xa4\x16"
  295. "\x57\xc1\x6e\xf4\x68\xb2\x28\xa8"
  296. "\x27\x9b\xe3\x31\xa7\x03\xc3\x35"
  297. "\x96\xfd\x15\xc1\x3b\x1b\x07\xf9"
  298. "\xaa\x1d\x3b\xea\x57\x78\x9c\xa0"
  299. "\x31\xad\x85\xc7\xa7\x1d\xd7\x03"
  300. "\x54\xec\x63\x12\x38\xca\x34\x45",
  301. }, {
  302. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
  303. "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
  304. .psize = 112,
  305. .digest = "\x8e\x95\x9b\x75\xda\xe3\x13\xda"
  306. "\x8c\xf4\xf7\x28\x14\xfc\x14\x3f"
  307. "\x8f\x77\x79\xc6\xeb\x9f\x7f\xa1"
  308. "\x72\x99\xae\xad\xb6\x88\x90\x18"
  309. "\x50\x1d\x28\x9e\x49\x00\xf7\xe4"
  310. "\x33\x1b\x99\xde\xc4\xb5\x43\x3a"
  311. "\xc7\xd3\x29\xee\xb6\xdd\x26\x54"
  312. "\x5e\x96\xe5\x5b\x87\x4b\xe9\x09",
  313. }, {
  314. .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
  315. "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
  316. .psize = 104,
  317. .digest = "\x93\x0d\x0c\xef\xcb\x30\xff\x11"
  318. "\x33\xb6\x89\x81\x21\xf1\xcf\x3d"
  319. "\x27\x57\x8a\xfc\xaf\xe8\x67\x7c"
  320. "\x52\x57\xcf\x06\x99\x11\xf7\x5d"
  321. "\x8f\x58\x31\xb5\x6e\xbf\xda\x67"
  322. "\xb2\x78\xe6\x6d\xff\x8b\x84\xfe"
  323. "\x2b\x28\x70\xf7\x42\xa5\x80\xd8"
  324. "\xed\xb4\x19\x87\x23\x28\x50\xc9",
  325. .np = 4,
  326. .tap = { 26, 26, 26, 26 }
  327. },
  328. };
  329. /*
  330. * WHIRLPOOL test vectors from Whirlpool package
  331. * by Vincent Rijmen and Paulo S. L. M. Barreto as part of the NESSIE
  332. * submission
  333. */
  334. #define WP512_TEST_VECTORS 8
  335. static struct hash_testvec wp512_tv_template[] = {
  336. {
  337. .plaintext = "",
  338. .psize = 0,
  339. .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
  340. "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
  341. "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
  342. "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
  343. "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
  344. "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57"
  345. "\xEA\x89\x64\xE5\x9B\x63\xD9\x37"
  346. "\x08\xB1\x38\xCC\x42\xA6\x6E\xB3",
  347. }, {
  348. .plaintext = "a",
  349. .psize = 1,
  350. .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
  351. "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
  352. "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
  353. "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
  354. "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
  355. "\x3A\x42\x39\x1A\x39\x14\x5A\x59"
  356. "\x1A\x92\x20\x0D\x56\x01\x95\xE5"
  357. "\x3B\x47\x85\x84\xFD\xAE\x23\x1A",
  358. }, {
  359. .plaintext = "abc",
  360. .psize = 3,
  361. .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
  362. "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
  363. "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
  364. "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
  365. "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
  366. "\x7D\x0E\x34\x95\x71\x14\xCB\xD6"
  367. "\xC7\x97\xFC\x9D\x95\xD8\xB5\x82"
  368. "\xD2\x25\x29\x20\x76\xD4\xEE\xF5",
  369. }, {
  370. .plaintext = "message digest",
  371. .psize = 14,
  372. .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
  373. "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
  374. "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
  375. "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
  376. "\x84\x21\x55\x76\x59\xEF\x55\xC1"
  377. "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6"
  378. "\x92\xED\x92\x00\x52\x83\x8F\x33"
  379. "\x62\xE8\x6D\xBD\x37\xA8\x90\x3E",
  380. }, {
  381. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  382. .psize = 26,
  383. .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
  384. "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
  385. "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
  386. "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
  387. "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
  388. "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6"
  389. "\xF6\x8F\x67\x3E\x72\x07\x86\x5D"
  390. "\x5D\x98\x19\xA3\xDB\xA4\xEB\x3B",
  391. }, {
  392. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  393. "abcdefghijklmnopqrstuvwxyz0123456789",
  394. .psize = 62,
  395. .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
  396. "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
  397. "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
  398. "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
  399. "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
  400. "\xB7\xCB\x57\x21\x1B\x92\x81\xA6"
  401. "\x55\x17\xCC\x87\x9D\x7B\x96\x21"
  402. "\x42\xC6\x5F\x5A\x7A\xF0\x14\x67",
  403. }, {
  404. .plaintext = "1234567890123456789012345678901234567890"
  405. "1234567890123456789012345678901234567890",
  406. .psize = 80,
  407. .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
  408. "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
  409. "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
  410. "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
  411. "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
  412. "\x38\xCD\x04\x7B\x26\x81\xA5\x1A"
  413. "\x2C\x60\x48\x1E\x88\xC5\xA2\x0B"
  414. "\x2C\x2A\x80\xCF\x3A\x9A\x08\x3B",
  415. }, {
  416. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  417. .psize = 32,
  418. .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
  419. "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
  420. "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
  421. "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
  422. "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
  423. "\x7B\x94\x76\x39\xFE\x05\x0B\x56"
  424. "\x93\x9B\xAA\xA0\xAD\xFF\x9A\xE6"
  425. "\x74\x5B\x7B\x18\x1C\x3B\xE3\xFD",
  426. },
  427. };
  428. #define WP384_TEST_VECTORS 8
  429. static struct hash_testvec wp384_tv_template[] = {
  430. {
  431. .plaintext = "",
  432. .psize = 0,
  433. .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
  434. "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
  435. "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
  436. "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
  437. "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
  438. "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57",
  439. }, {
  440. .plaintext = "a",
  441. .psize = 1,
  442. .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
  443. "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
  444. "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
  445. "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
  446. "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
  447. "\x3A\x42\x39\x1A\x39\x14\x5A\x59",
  448. }, {
  449. .plaintext = "abc",
  450. .psize = 3,
  451. .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
  452. "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
  453. "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
  454. "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
  455. "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
  456. "\x7D\x0E\x34\x95\x71\x14\xCB\xD6",
  457. }, {
  458. .plaintext = "message digest",
  459. .psize = 14,
  460. .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
  461. "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
  462. "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
  463. "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
  464. "\x84\x21\x55\x76\x59\xEF\x55\xC1"
  465. "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6",
  466. }, {
  467. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  468. .psize = 26,
  469. .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
  470. "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
  471. "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
  472. "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
  473. "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
  474. "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6",
  475. }, {
  476. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  477. "abcdefghijklmnopqrstuvwxyz0123456789",
  478. .psize = 62,
  479. .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
  480. "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
  481. "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
  482. "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
  483. "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
  484. "\xB7\xCB\x57\x21\x1B\x92\x81\xA6",
  485. }, {
  486. .plaintext = "1234567890123456789012345678901234567890"
  487. "1234567890123456789012345678901234567890",
  488. .psize = 80,
  489. .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
  490. "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
  491. "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
  492. "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
  493. "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
  494. "\x38\xCD\x04\x7B\x26\x81\xA5\x1A",
  495. }, {
  496. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  497. .psize = 32,
  498. .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
  499. "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
  500. "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
  501. "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
  502. "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
  503. "\x7B\x94\x76\x39\xFE\x05\x0B\x56",
  504. },
  505. };
  506. #define WP256_TEST_VECTORS 8
  507. static struct hash_testvec wp256_tv_template[] = {
  508. {
  509. .plaintext = "",
  510. .psize = 0,
  511. .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
  512. "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
  513. "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
  514. "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7",
  515. }, {
  516. .plaintext = "a",
  517. .psize = 1,
  518. .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
  519. "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
  520. "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
  521. "\x73\xC4\x50\x01\xD0\x08\x7B\x42",
  522. }, {
  523. .plaintext = "abc",
  524. .psize = 3,
  525. .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
  526. "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
  527. "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
  528. "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C",
  529. }, {
  530. .plaintext = "message digest",
  531. .psize = 14,
  532. .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
  533. "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
  534. "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
  535. "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B",
  536. }, {
  537. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  538. .psize = 26,
  539. .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
  540. "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
  541. "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
  542. "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B",
  543. }, {
  544. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  545. "abcdefghijklmnopqrstuvwxyz0123456789",
  546. .psize = 62,
  547. .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
  548. "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
  549. "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
  550. "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E",
  551. }, {
  552. .plaintext = "1234567890123456789012345678901234567890"
  553. "1234567890123456789012345678901234567890",
  554. .psize = 80,
  555. .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
  556. "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
  557. "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
  558. "\x54\x9C\x4A\xFA\xDB\x60\x14\x29",
  559. }, {
  560. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  561. .psize = 32,
  562. .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
  563. "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
  564. "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
  565. "\x07\xC5\x62\xF9\x88\xE9\x5C\x69",
  566. },
  567. };
  568. /*
  569. * TIGER test vectors from Tiger website
  570. */
  571. #define TGR192_TEST_VECTORS 6
  572. static struct hash_testvec tgr192_tv_template[] = {
  573. {
  574. .plaintext = "",
  575. .psize = 0,
  576. .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
  577. "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
  578. "\xf3\x73\xde\x2d\x49\x58\x4e\x7a",
  579. }, {
  580. .plaintext = "abc",
  581. .psize = 3,
  582. .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
  583. "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
  584. "\x93\x5f\x7b\x95\x1c\x13\x29\x51",
  585. }, {
  586. .plaintext = "Tiger",
  587. .psize = 5,
  588. .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
  589. "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
  590. "\x37\x79\x0c\x11\x6f\x9d\x2b\xdf",
  591. }, {
  592. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
  593. .psize = 64,
  594. .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
  595. "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
  596. "\xb5\x86\x44\x50\x34\xa5\xa3\x86",
  597. }, {
  598. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
  599. .psize = 64,
  600. .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
  601. "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
  602. "\x57\x89\x65\x65\x97\x5f\x91\x97",
  603. }, {
  604. .plaintext = "Tiger - A Fast New Hash Function, "
  605. "by Ross Anderson and Eli Biham, "
  606. "proceedings of Fast Software Encryption 3, "
  607. "Cambridge, 1996.",
  608. .psize = 125,
  609. .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
  610. "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
  611. "\xdd\x68\x15\x1d\x50\x39\x74\xfc",
  612. },
  613. };
  614. #define TGR160_TEST_VECTORS 6
  615. static struct hash_testvec tgr160_tv_template[] = {
  616. {
  617. .plaintext = "",
  618. .psize = 0,
  619. .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
  620. "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
  621. "\xf3\x73\xde\x2d",
  622. }, {
  623. .plaintext = "abc",
  624. .psize = 3,
  625. .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
  626. "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
  627. "\x93\x5f\x7b\x95",
  628. }, {
  629. .plaintext = "Tiger",
  630. .psize = 5,
  631. .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
  632. "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
  633. "\x37\x79\x0c\x11",
  634. }, {
  635. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
  636. .psize = 64,
  637. .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
  638. "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
  639. "\xb5\x86\x44\x50",
  640. }, {
  641. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
  642. .psize = 64,
  643. .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
  644. "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
  645. "\x57\x89\x65\x65",
  646. }, {
  647. .plaintext = "Tiger - A Fast New Hash Function, "
  648. "by Ross Anderson and Eli Biham, "
  649. "proceedings of Fast Software Encryption 3, "
  650. "Cambridge, 1996.",
  651. .psize = 125,
  652. .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
  653. "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
  654. "\xdd\x68\x15\x1d",
  655. },
  656. };
  657. #define TGR128_TEST_VECTORS 6
  658. static struct hash_testvec tgr128_tv_template[] = {
  659. {
  660. .plaintext = "",
  661. .psize = 0,
  662. .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
  663. "\x16\x16\x6e\x76\xb1\xbb\x92\x5f",
  664. }, {
  665. .plaintext = "abc",
  666. .psize = 3,
  667. .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
  668. "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf",
  669. }, {
  670. .plaintext = "Tiger",
  671. .psize = 5,
  672. .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
  673. "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec",
  674. }, {
  675. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
  676. .psize = 64,
  677. .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
  678. "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e",
  679. }, {
  680. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
  681. .psize = 64,
  682. .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
  683. "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9",
  684. }, {
  685. .plaintext = "Tiger - A Fast New Hash Function, "
  686. "by Ross Anderson and Eli Biham, "
  687. "proceedings of Fast Software Encryption 3, "
  688. "Cambridge, 1996.",
  689. .psize = 125,
  690. .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
  691. "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24",
  692. },
  693. };
  694. /*
  695. * HMAC-MD5 test vectors from RFC2202
  696. * (These need to be fixed to not use strlen).
  697. */
  698. #define HMAC_MD5_TEST_VECTORS 7
  699. static struct hash_testvec hmac_md5_tv_template[] =
  700. {
  701. {
  702. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  703. .ksize = 16,
  704. .plaintext = "Hi There",
  705. .psize = 8,
  706. .digest = "\x92\x94\x72\x7a\x36\x38\xbb\x1c"
  707. "\x13\xf4\x8e\xf8\x15\x8b\xfc\x9d",
  708. }, {
  709. .key = "Jefe",
  710. .ksize = 4,
  711. .plaintext = "what do ya want for nothing?",
  712. .psize = 28,
  713. .digest = "\x75\x0c\x78\x3e\x6a\xb0\xb5\x03"
  714. "\xea\xa8\x6e\x31\x0a\x5d\xb7\x38",
  715. .np = 2,
  716. .tap = {14, 14}
  717. }, {
  718. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  719. .ksize = 16,
  720. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  721. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  722. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  723. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  724. .psize = 50,
  725. .digest = "\x56\xbe\x34\x52\x1d\x14\x4c\x88"
  726. "\xdb\xb8\xc7\x33\xf0\xe8\xb3\xf6",
  727. }, {
  728. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  729. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  730. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  731. .ksize = 25,
  732. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  733. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  734. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  735. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  736. .psize = 50,
  737. .digest = "\x69\x7e\xaf\x0a\xca\x3a\x3a\xea"
  738. "\x3a\x75\x16\x47\x46\xff\xaa\x79",
  739. }, {
  740. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  741. .ksize = 16,
  742. .plaintext = "Test With Truncation",
  743. .psize = 20,
  744. .digest = "\x56\x46\x1e\xf2\x34\x2e\xdc\x00"
  745. "\xf9\xba\xb9\x95\x69\x0e\xfd\x4c",
  746. }, {
  747. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  748. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  749. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  750. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  751. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  752. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  753. "\xaa\xaa",
  754. .ksize = 80,
  755. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  756. .psize = 54,
  757. .digest = "\x6b\x1a\xb7\xfe\x4b\xd7\xbf\x8f"
  758. "\x0b\x62\xe6\xce\x61\xb9\xd0\xcd",
  759. }, {
  760. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  761. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  762. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  763. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  764. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  765. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  766. "\xaa\xaa",
  767. .ksize = 80,
  768. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  769. "Block-Size Data",
  770. .psize = 73,
  771. .digest = "\x6f\x63\x0f\xad\x67\xcd\xa0\xee"
  772. "\x1f\xb1\xf5\x62\xdb\x3a\xa5\x3e",
  773. },
  774. };
  775. /*
  776. * HMAC-SHA1 test vectors from RFC2202
  777. */
  778. #define HMAC_SHA1_TEST_VECTORS 7
  779. static struct hash_testvec hmac_sha1_tv_template[] = {
  780. {
  781. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  782. .ksize = 20,
  783. .plaintext = "Hi There",
  784. .psize = 8,
  785. .digest = "\xb6\x17\x31\x86\x55\x05\x72\x64"
  786. "\xe2\x8b\xc0\xb6\xfb\x37\x8c\x8e\xf1"
  787. "\x46\xbe",
  788. }, {
  789. .key = "Jefe",
  790. .ksize = 4,
  791. .plaintext = "what do ya want for nothing?",
  792. .psize = 28,
  793. .digest = "\xef\xfc\xdf\x6a\xe5\xeb\x2f\xa2\xd2\x74"
  794. "\x16\xd5\xf1\x84\xdf\x9c\x25\x9a\x7c\x79",
  795. .np = 2,
  796. .tap = { 14, 14 }
  797. }, {
  798. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  799. .ksize = 20,
  800. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  801. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  802. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  803. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  804. .psize = 50,
  805. .digest = "\x12\x5d\x73\x42\xb9\xac\x11\xcd\x91\xa3"
  806. "\x9a\xf4\x8a\xa1\x7b\x4f\x63\xf1\x75\xd3",
  807. }, {
  808. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  809. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  810. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  811. .ksize = 25,
  812. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  813. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  814. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  815. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  816. .psize = 50,
  817. .digest = "\x4c\x90\x07\xf4\x02\x62\x50\xc6\xbc\x84"
  818. "\x14\xf9\xbf\x50\xc8\x6c\x2d\x72\x35\xda",
  819. }, {
  820. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  821. .ksize = 20,
  822. .plaintext = "Test With Truncation",
  823. .psize = 20,
  824. .digest = "\x4c\x1a\x03\x42\x4b\x55\xe0\x7f\xe7\xf2"
  825. "\x7b\xe1\xd5\x8b\xb9\x32\x4a\x9a\x5a\x04",
  826. }, {
  827. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  828. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  829. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  830. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  831. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  832. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  833. "\xaa\xaa",
  834. .ksize = 80,
  835. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  836. .psize = 54,
  837. .digest = "\xaa\x4a\xe5\xe1\x52\x72\xd0\x0e\x95\x70"
  838. "\x56\x37\xce\x8a\x3b\x55\xed\x40\x21\x12",
  839. }, {
  840. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  841. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  842. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  843. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  844. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  845. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  846. "\xaa\xaa",
  847. .ksize = 80,
  848. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  849. "Block-Size Data",
  850. .psize = 73,
  851. .digest = "\xe8\xe9\x9d\x0f\x45\x23\x7d\x78\x6d\x6b"
  852. "\xba\xa7\x96\x5c\x78\x08\xbb\xff\x1a\x91",
  853. },
  854. };
  855. /*
  856. * SHA224 HMAC test vectors from RFC4231
  857. */
  858. #define HMAC_SHA224_TEST_VECTORS 4
  859. static struct hash_testvec hmac_sha224_tv_template[] = {
  860. {
  861. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  862. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  863. "\x0b\x0b\x0b\x0b",
  864. .ksize = 20,
  865. /* ("Hi There") */
  866. .plaintext = "\x48\x69\x20\x54\x68\x65\x72\x65",
  867. .psize = 8,
  868. .digest = "\x89\x6f\xb1\x12\x8a\xbb\xdf\x19"
  869. "\x68\x32\x10\x7c\xd4\x9d\xf3\x3f"
  870. "\x47\xb4\xb1\x16\x99\x12\xba\x4f"
  871. "\x53\x68\x4b\x22",
  872. }, {
  873. .key = "Jefe",
  874. .ksize = 4,
  875. /* ("what do ya want for nothing?") */
  876. .plaintext = "\x77\x68\x61\x74\x20\x64\x6f\x20"
  877. "\x79\x61\x20\x77\x61\x6e\x74\x20"
  878. "\x66\x6f\x72\x20\x6e\x6f\x74\x68"
  879. "\x69\x6e\x67\x3f",
  880. .psize = 28,
  881. .digest = "\xa3\x0e\x01\x09\x8b\xc6\xdb\xbf"
  882. "\x45\x69\x0f\x3a\x7e\x9e\x6d\x0f"
  883. "\x8b\xbe\xa2\xa3\x9e\x61\x48\x00"
  884. "\x8f\xd0\x5e\x44",
  885. .np = 4,
  886. .tap = { 7, 7, 7, 7 }
  887. }, {
  888. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  889. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  890. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  891. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  892. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  893. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  894. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  895. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  896. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  897. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  898. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  899. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  900. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  901. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  902. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  903. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  904. "\xaa\xaa\xaa",
  905. .ksize = 131,
  906. /* ("Test Using Larger Than Block-Size Key - Hash Key First") */
  907. .plaintext = "\x54\x65\x73\x74\x20\x55\x73\x69"
  908. "\x6e\x67\x20\x4c\x61\x72\x67\x65"
  909. "\x72\x20\x54\x68\x61\x6e\x20\x42"
  910. "\x6c\x6f\x63\x6b\x2d\x53\x69\x7a"
  911. "\x65\x20\x4b\x65\x79\x20\x2d\x20"
  912. "\x48\x61\x73\x68\x20\x4b\x65\x79"
  913. "\x20\x46\x69\x72\x73\x74",
  914. .psize = 54,
  915. .digest = "\x95\xe9\xa0\xdb\x96\x20\x95\xad"
  916. "\xae\xbe\x9b\x2d\x6f\x0d\xbc\xe2"
  917. "\xd4\x99\xf1\x12\xf2\xd2\xb7\x27"
  918. "\x3f\xa6\x87\x0e",
  919. }, {
  920. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  921. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  922. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  923. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  924. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  925. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  926. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  927. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  928. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  929. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  930. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  931. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  932. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  933. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  934. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  935. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  936. "\xaa\xaa\xaa",
  937. .ksize = 131,
  938. /* ("This is a test using a larger than block-size key and a")
  939. (" larger than block-size data. The key needs to be")
  940. (" hashed before being used by the HMAC algorithm.") */
  941. .plaintext = "\x54\x68\x69\x73\x20\x69\x73\x20"
  942. "\x61\x20\x74\x65\x73\x74\x20\x75"
  943. "\x73\x69\x6e\x67\x20\x61\x20\x6c"
  944. "\x61\x72\x67\x65\x72\x20\x74\x68"
  945. "\x61\x6e\x20\x62\x6c\x6f\x63\x6b"
  946. "\x2d\x73\x69\x7a\x65\x20\x6b\x65"
  947. "\x79\x20\x61\x6e\x64\x20\x61\x20"
  948. "\x6c\x61\x72\x67\x65\x72\x20\x74"
  949. "\x68\x61\x6e\x20\x62\x6c\x6f\x63"
  950. "\x6b\x2d\x73\x69\x7a\x65\x20\x64"
  951. "\x61\x74\x61\x2e\x20\x54\x68\x65"
  952. "\x20\x6b\x65\x79\x20\x6e\x65\x65"
  953. "\x64\x73\x20\x74\x6f\x20\x62\x65"
  954. "\x20\x68\x61\x73\x68\x65\x64\x20"
  955. "\x62\x65\x66\x6f\x72\x65\x20\x62"
  956. "\x65\x69\x6e\x67\x20\x75\x73\x65"
  957. "\x64\x20\x62\x79\x20\x74\x68\x65"
  958. "\x20\x48\x4d\x41\x43\x20\x61\x6c"
  959. "\x67\x6f\x72\x69\x74\x68\x6d\x2e",
  960. .psize = 152,
  961. .digest = "\x3a\x85\x41\x66\xac\x5d\x9f\x02"
  962. "\x3f\x54\xd5\x17\xd0\xb3\x9d\xbd"
  963. "\x94\x67\x70\xdb\x9c\x2b\x95\xc9"
  964. "\xf6\xf5\x65\xd1",
  965. },
  966. };
  967. /*
  968. * HMAC-SHA256 test vectors from
  969. * draft-ietf-ipsec-ciph-sha-256-01.txt
  970. */
  971. #define HMAC_SHA256_TEST_VECTORS 10
  972. static struct hash_testvec hmac_sha256_tv_template[] = {
  973. {
  974. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  975. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  976. "\x11\x12\x13\x14\x15\x16\x17\x18"
  977. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
  978. .ksize = 32,
  979. .plaintext = "abc",
  980. .psize = 3,
  981. .digest = "\xa2\x1b\x1f\x5d\x4c\xf4\xf7\x3a"
  982. "\x4d\xd9\x39\x75\x0f\x7a\x06\x6a"
  983. "\x7f\x98\xcc\x13\x1c\xb1\x6a\x66"
  984. "\x92\x75\x90\x21\xcf\xab\x81\x81",
  985. }, {
  986. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  987. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  988. "\x11\x12\x13\x14\x15\x16\x17\x18"
  989. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
  990. .ksize = 32,
  991. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  992. .psize = 56,
  993. .digest = "\x10\x4f\xdc\x12\x57\x32\x8f\x08"
  994. "\x18\x4b\xa7\x31\x31\xc5\x3c\xae"
  995. "\xe6\x98\xe3\x61\x19\x42\x11\x49"
  996. "\xea\x8c\x71\x24\x56\x69\x7d\x30",
  997. }, {
  998. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  999. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1000. "\x11\x12\x13\x14\x15\x16\x17\x18"
  1001. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
  1002. .ksize = 32,
  1003. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
  1004. "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  1005. .psize = 112,
  1006. .digest = "\x47\x03\x05\xfc\x7e\x40\xfe\x34"
  1007. "\xd3\xee\xb3\xe7\x73\xd9\x5a\xab"
  1008. "\x73\xac\xf0\xfd\x06\x04\x47\xa5"
  1009. "\xeb\x45\x95\xbf\x33\xa9\xd1\xa3",
  1010. }, {
  1011. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1012. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1013. "\x0b\x0b\x0b\x0b\x0b\x0b",
  1014. .ksize = 32,
  1015. .plaintext = "Hi There",
  1016. .psize = 8,
  1017. .digest = "\x19\x8a\x60\x7e\xb4\x4b\xfb\xc6"
  1018. "\x99\x03\xa0\xf1\xcf\x2b\xbd\xc5"
  1019. "\xba\x0a\xa3\xf3\xd9\xae\x3c\x1c"
  1020. "\x7a\x3b\x16\x96\xa0\xb6\x8c\xf7",
  1021. }, {
  1022. .key = "Jefe",
  1023. .ksize = 4,
  1024. .plaintext = "what do ya want for nothing?",
  1025. .psize = 28,
  1026. .digest = "\x5b\xdc\xc1\x46\xbf\x60\x75\x4e"
  1027. "\x6a\x04\x24\x26\x08\x95\x75\xc7"
  1028. "\x5a\x00\x3f\x08\x9d\x27\x39\x83"
  1029. "\x9d\xec\x58\xb9\x64\xec\x38\x43",
  1030. .np = 2,
  1031. .tap = { 14, 14 }
  1032. }, {
  1033. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1034. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1035. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  1036. .ksize = 32,
  1037. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1038. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1039. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  1040. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  1041. .psize = 50,
  1042. .digest = "\xcd\xcb\x12\x20\xd1\xec\xcc\xea"
  1043. "\x91\xe5\x3a\xba\x30\x92\xf9\x62"
  1044. "\xe5\x49\xfe\x6c\xe9\xed\x7f\xdc"
  1045. "\x43\x19\x1f\xbd\xe4\x5c\x30\xb0",
  1046. }, {
  1047. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  1048. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  1049. "\x11\x12\x13\x14\x15\x16\x17\x18"
  1050. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  1051. "\x21\x22\x23\x24\x25",
  1052. .ksize = 37,
  1053. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1054. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1055. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  1056. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  1057. .psize = 50,
  1058. .digest = "\xd4\x63\x3c\x17\xf6\xfb\x8d\x74"
  1059. "\x4c\x66\xde\xe0\xf8\xf0\x74\x55"
  1060. "\x6e\xc4\xaf\x55\xef\x07\x99\x85"
  1061. "\x41\x46\x8e\xb4\x9b\xd2\xe9\x17",
  1062. }, {
  1063. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
  1064. "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
  1065. "\x0c\x0c\x0c\x0c\x0c\x0c",
  1066. .ksize = 32,
  1067. .plaintext = "Test With Truncation",
  1068. .psize = 20,
  1069. .digest = "\x75\x46\xaf\x01\x84\x1f\xc0\x9b"
  1070. "\x1a\xb9\xc3\x74\x9a\x5f\x1c\x17"
  1071. "\xd4\xf5\x89\x66\x8a\x58\x7b\x27"
  1072. "\x00\xa9\xc9\x7c\x11\x93\xcf\x42",
  1073. }, {
  1074. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1075. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1076. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1077. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1078. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1079. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1080. "\xaa\xaa",
  1081. .ksize = 80,
  1082. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  1083. .psize = 54,
  1084. .digest = "\x69\x53\x02\x5e\xd9\x6f\x0c\x09"
  1085. "\xf8\x0a\x96\xf7\x8e\x65\x38\xdb"
  1086. "\xe2\xe7\xb8\x20\xe3\xdd\x97\x0e"
  1087. "\x7d\xdd\x39\x09\x1b\x32\x35\x2f",
  1088. }, {
  1089. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1090. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1091. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1092. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1093. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1094. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1095. "\xaa\xaa",
  1096. .ksize = 80,
  1097. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than "
  1098. "One Block-Size Data",
  1099. .psize = 73,
  1100. .digest = "\x63\x55\xac\x22\xe8\x90\xd0\xa3"
  1101. "\xc8\x48\x1a\x5c\xa4\x82\x5b\xc8"
  1102. "\x84\xd3\xe7\xa1\xff\x98\xa2\xfc"
  1103. "\x2a\xc7\xd8\xe0\x64\xc3\xb2\xe6",
  1104. },
  1105. };
  1106. #define XCBC_AES_TEST_VECTORS 6
  1107. static struct hash_testvec aes_xcbc128_tv_template[] = {
  1108. {
  1109. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1110. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1111. .plaintext = zeroed_string,
  1112. .digest = "\x75\xf0\x25\x1d\x52\x8a\xc0\x1c"
  1113. "\x45\x73\xdf\xd5\x84\xd7\x9f\x29",
  1114. .psize = 0,
  1115. .ksize = 16,
  1116. }, {
  1117. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1118. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1119. .plaintext = "\x00\x01\x02",
  1120. .digest = "\x5b\x37\x65\x80\xae\x2f\x19\xaf"
  1121. "\xe7\x21\x9c\xee\xf1\x72\x75\x6f",
  1122. .psize = 3,
  1123. .ksize = 16,
  1124. } , {
  1125. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1126. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1127. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1128. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1129. .digest = "\xd2\xa2\x46\xfa\x34\x9b\x68\xa7"
  1130. "\x99\x98\xa4\x39\x4f\xf7\xa2\x63",
  1131. .psize = 16,
  1132. .ksize = 16,
  1133. }, {
  1134. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1135. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1136. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1137. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  1138. "\x10\x11\x12\x13",
  1139. .digest = "\x47\xf5\x1b\x45\x64\x96\x62\x15"
  1140. "\xb8\x98\x5c\x63\x05\x5e\xd3\x08",
  1141. .tap = { 10, 10 },
  1142. .psize = 20,
  1143. .np = 2,
  1144. .ksize = 16,
  1145. }, {
  1146. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1147. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1148. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1149. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  1150. "\x10\x11\x12\x13\x14\x15\x16\x17"
  1151. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  1152. .digest = "\xf5\x4f\x0e\xc8\xd2\xb9\xf3\xd3"
  1153. "\x68\x07\x73\x4b\xd5\x28\x3f\xd4",
  1154. .psize = 32,
  1155. .ksize = 16,
  1156. }, {
  1157. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1158. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  1159. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  1160. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  1161. "\x10\x11\x12\x13\x14\x15\x16\x17"
  1162. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  1163. "\x20\x21",
  1164. .digest = "\xbe\xcb\xb3\xbc\xcd\xb5\x18\xa3"
  1165. "\x06\x77\xd5\x48\x1f\xb6\xb4\xd8",
  1166. .tap = { 17, 17 },
  1167. .psize = 34,
  1168. .np = 2,
  1169. .ksize = 16,
  1170. }
  1171. };
  1172. /*
  1173. * SHA384 HMAC test vectors from RFC4231
  1174. */
  1175. #define HMAC_SHA384_TEST_VECTORS 4
  1176. static struct hash_testvec hmac_sha384_tv_template[] = {
  1177. {
  1178. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1179. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1180. "\x0b\x0b\x0b\x0b",
  1181. .ksize = 20,
  1182. .plaintext = "Hi There",
  1183. .psize = 8,
  1184. .digest = "\xaf\xd0\x39\x44\xd8\x48\x95\x62"
  1185. "\x6b\x08\x25\xf4\xab\x46\x90\x7f"
  1186. "\x15\xf9\xda\xdb\xe4\x10\x1e\xc6"
  1187. "\x82\xaa\x03\x4c\x7c\xeb\xc5\x9c"
  1188. "\xfa\xea\x9e\xa9\x07\x6e\xde\x7f"
  1189. "\x4a\xf1\x52\xe8\xb2\xfa\x9c\xb6",
  1190. }, {
  1191. .key = "Jefe",
  1192. .ksize = 4,
  1193. .plaintext = "what do ya want for nothing?",
  1194. .psize = 28,
  1195. .digest = "\xaf\x45\xd2\xe3\x76\x48\x40\x31"
  1196. "\x61\x7f\x78\xd2\xb5\x8a\x6b\x1b"
  1197. "\x9c\x7e\xf4\x64\xf5\xa0\x1b\x47"
  1198. "\xe4\x2e\xc3\x73\x63\x22\x44\x5e"
  1199. "\x8e\x22\x40\xca\x5e\x69\xe2\xc7"
  1200. "\x8b\x32\x39\xec\xfa\xb2\x16\x49",
  1201. .np = 4,
  1202. .tap = { 7, 7, 7, 7 }
  1203. }, {
  1204. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1205. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1206. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1207. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1208. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1209. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1210. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1211. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1212. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1213. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1214. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1215. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1216. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1217. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1218. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1219. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1220. "\xaa\xaa\xaa",
  1221. .ksize = 131,
  1222. .plaintext = "Test Using Larger Than Block-Siz"
  1223. "e Key - Hash Key First",
  1224. .psize = 54,
  1225. .digest = "\x4e\xce\x08\x44\x85\x81\x3e\x90"
  1226. "\x88\xd2\xc6\x3a\x04\x1b\xc5\xb4"
  1227. "\x4f\x9e\xf1\x01\x2a\x2b\x58\x8f"
  1228. "\x3c\xd1\x1f\x05\x03\x3a\xc4\xc6"
  1229. "\x0c\x2e\xf6\xab\x40\x30\xfe\x82"
  1230. "\x96\x24\x8d\xf1\x63\xf4\x49\x52",
  1231. }, {
  1232. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1233. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1234. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1235. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1236. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1237. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1238. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1239. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1240. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1241. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1242. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1243. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1244. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1245. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1246. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1247. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1248. "\xaa\xaa\xaa",
  1249. .ksize = 131,
  1250. .plaintext = "This is a test u"
  1251. "sing a larger th"
  1252. "an block-size ke"
  1253. "y and a larger t"
  1254. "han block-size d"
  1255. "ata. The key nee"
  1256. "ds to be hashed "
  1257. "before being use"
  1258. "d by the HMAC al"
  1259. "gorithm.",
  1260. .psize = 152,
  1261. .digest = "\x66\x17\x17\x8e\x94\x1f\x02\x0d"
  1262. "\x35\x1e\x2f\x25\x4e\x8f\xd3\x2c"
  1263. "\x60\x24\x20\xfe\xb0\xb8\xfb\x9a"
  1264. "\xdc\xce\xbb\x82\x46\x1e\x99\xc5"
  1265. "\xa6\x78\xcc\x31\xe7\x99\x17\x6d"
  1266. "\x38\x60\xe6\x11\x0c\x46\x52\x3e",
  1267. },
  1268. };
  1269. /*
  1270. * SHA512 HMAC test vectors from RFC4231
  1271. */
  1272. #define HMAC_SHA512_TEST_VECTORS 4
  1273. static struct hash_testvec hmac_sha512_tv_template[] = {
  1274. {
  1275. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1276. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  1277. "\x0b\x0b\x0b\x0b",
  1278. .ksize = 20,
  1279. .plaintext = "Hi There",
  1280. .psize = 8,
  1281. .digest = "\x87\xaa\x7c\xde\xa5\xef\x61\x9d"
  1282. "\x4f\xf0\xb4\x24\x1a\x1d\x6c\xb0"
  1283. "\x23\x79\xf4\xe2\xce\x4e\xc2\x78"
  1284. "\x7a\xd0\xb3\x05\x45\xe1\x7c\xde"
  1285. "\xda\xa8\x33\xb7\xd6\xb8\xa7\x02"
  1286. "\x03\x8b\x27\x4e\xae\xa3\xf4\xe4"
  1287. "\xbe\x9d\x91\x4e\xeb\x61\xf1\x70"
  1288. "\x2e\x69\x6c\x20\x3a\x12\x68\x54",
  1289. }, {
  1290. .key = "Jefe",
  1291. .ksize = 4,
  1292. .plaintext = "what do ya want for nothing?",
  1293. .psize = 28,
  1294. .digest = "\x16\x4b\x7a\x7b\xfc\xf8\x19\xe2"
  1295. "\xe3\x95\xfb\xe7\x3b\x56\xe0\xa3"
  1296. "\x87\xbd\x64\x22\x2e\x83\x1f\xd6"
  1297. "\x10\x27\x0c\xd7\xea\x25\x05\x54"
  1298. "\x97\x58\xbf\x75\xc0\x5a\x99\x4a"
  1299. "\x6d\x03\x4f\x65\xf8\xf0\xe6\xfd"
  1300. "\xca\xea\xb1\xa3\x4d\x4a\x6b\x4b"
  1301. "\x63\x6e\x07\x0a\x38\xbc\xe7\x37",
  1302. .np = 4,
  1303. .tap = { 7, 7, 7, 7 }
  1304. }, {
  1305. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1306. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1307. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1308. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1309. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1310. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1311. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1312. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1313. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1314. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1315. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1316. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1317. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1318. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1319. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1320. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1321. "\xaa\xaa\xaa",
  1322. .ksize = 131,
  1323. .plaintext = "Test Using Large"
  1324. "r Than Block-Siz"
  1325. "e Key - Hash Key"
  1326. " First",
  1327. .psize = 54,
  1328. .digest = "\x80\xb2\x42\x63\xc7\xc1\xa3\xeb"
  1329. "\xb7\x14\x93\xc1\xdd\x7b\xe8\xb4"
  1330. "\x9b\x46\xd1\xf4\x1b\x4a\xee\xc1"
  1331. "\x12\x1b\x01\x37\x83\xf8\xf3\x52"
  1332. "\x6b\x56\xd0\x37\xe0\x5f\x25\x98"
  1333. "\xbd\x0f\xd2\x21\x5d\x6a\x1e\x52"
  1334. "\x95\xe6\x4f\x73\xf6\x3f\x0a\xec"
  1335. "\x8b\x91\x5a\x98\x5d\x78\x65\x98",
  1336. }, {
  1337. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1338. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1339. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1340. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1341. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1342. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1343. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1344. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1345. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1346. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1347. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1348. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1349. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1350. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1351. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1352. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  1353. "\xaa\xaa\xaa",
  1354. .ksize = 131,
  1355. .plaintext =
  1356. "This is a test u"
  1357. "sing a larger th"
  1358. "an block-size ke"
  1359. "y and a larger t"
  1360. "han block-size d"
  1361. "ata. The key nee"
  1362. "ds to be hashed "
  1363. "before being use"
  1364. "d by the HMAC al"
  1365. "gorithm.",
  1366. .psize = 152,
  1367. .digest = "\xe3\x7b\x6a\x77\x5d\xc8\x7d\xba"
  1368. "\xa4\xdf\xa9\xf9\x6e\x5e\x3f\xfd"
  1369. "\xde\xbd\x71\xf8\x86\x72\x89\x86"
  1370. "\x5d\xf5\xa3\x2d\x20\xcd\xc9\x44"
  1371. "\xb6\x02\x2c\xac\x3c\x49\x82\xb1"
  1372. "\x0d\x5e\xeb\x55\xc3\xe4\xde\x15"
  1373. "\x13\x46\x76\xfb\x6d\xe0\x44\x60"
  1374. "\x65\xc9\x74\x40\xfa\x8c\x6a\x58",
  1375. },
  1376. };
  1377. /*
  1378. * DES test vectors.
  1379. */
  1380. #define DES_ENC_TEST_VECTORS 10
  1381. #define DES_DEC_TEST_VECTORS 4
  1382. #define DES_CBC_ENC_TEST_VECTORS 5
  1383. #define DES_CBC_DEC_TEST_VECTORS 4
  1384. #define DES3_EDE_ENC_TEST_VECTORS 3
  1385. #define DES3_EDE_DEC_TEST_VECTORS 3
  1386. static struct cipher_testvec des_enc_tv_template[] = {
  1387. { /* From Applied Cryptography */
  1388. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1389. .klen = 8,
  1390. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  1391. .ilen = 8,
  1392. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  1393. .rlen = 8,
  1394. }, { /* Same key, different plaintext block */
  1395. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1396. .klen = 8,
  1397. .input = "\x22\x33\x44\x55\x66\x77\x88\x99",
  1398. .ilen = 8,
  1399. .result = "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  1400. .rlen = 8,
  1401. }, { /* Sbox test from NBS */
  1402. .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
  1403. .klen = 8,
  1404. .input = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
  1405. .ilen = 8,
  1406. .result = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  1407. .rlen = 8,
  1408. }, { /* Three blocks */
  1409. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1410. .klen = 8,
  1411. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1412. "\x22\x33\x44\x55\x66\x77\x88\x99"
  1413. "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
  1414. .ilen = 24,
  1415. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1416. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
  1417. "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
  1418. .rlen = 24,
  1419. }, { /* Weak key */
  1420. .fail = 1,
  1421. .wk = 1,
  1422. .key = "\x01\x01\x01\x01\x01\x01\x01\x01",
  1423. .klen = 8,
  1424. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  1425. .ilen = 8,
  1426. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  1427. .rlen = 8,
  1428. }, { /* Two blocks -- for testing encryption across pages */
  1429. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1430. .klen = 8,
  1431. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1432. "\x22\x33\x44\x55\x66\x77\x88\x99",
  1433. .ilen = 16,
  1434. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1435. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  1436. .rlen = 16,
  1437. .np = 2,
  1438. .tap = { 8, 8 }
  1439. }, { /* Four blocks -- for testing encryption with chunking */
  1440. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1441. .klen = 8,
  1442. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1443. "\x22\x33\x44\x55\x66\x77\x88\x99"
  1444. "\xca\xfe\xba\xbe\xfe\xed\xbe\xef"
  1445. "\x22\x33\x44\x55\x66\x77\x88\x99",
  1446. .ilen = 32,
  1447. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1448. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
  1449. "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90"
  1450. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  1451. .rlen = 32,
  1452. .np = 3,
  1453. .tap = { 14, 10, 8 }
  1454. }, {
  1455. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1456. .klen = 8,
  1457. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1458. "\x22\x33\x44\x55\x66\x77\x88\x99"
  1459. "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
  1460. .ilen = 24,
  1461. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1462. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
  1463. "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
  1464. .rlen = 24,
  1465. .np = 4,
  1466. .tap = { 2, 1, 3, 18 }
  1467. }, {
  1468. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1469. .klen = 8,
  1470. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1471. "\x22\x33\x44\x55\x66\x77\x88\x99",
  1472. .ilen = 16,
  1473. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1474. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  1475. .rlen = 16,
  1476. .np = 5,
  1477. .tap = { 2, 2, 2, 2, 8 }
  1478. }, {
  1479. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1480. .klen = 8,
  1481. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  1482. .ilen = 8,
  1483. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  1484. .rlen = 8,
  1485. .np = 8,
  1486. .tap = { 1, 1, 1, 1, 1, 1, 1, 1 }
  1487. },
  1488. };
  1489. static struct cipher_testvec des_dec_tv_template[] = {
  1490. { /* From Applied Cryptography */
  1491. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1492. .klen = 8,
  1493. .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  1494. .ilen = 8,
  1495. .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  1496. .rlen = 8,
  1497. }, { /* Sbox test from NBS */
  1498. .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
  1499. .klen = 8,
  1500. .input = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  1501. .ilen = 8,
  1502. .result = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
  1503. .rlen = 8,
  1504. }, { /* Two blocks, for chunking test */
  1505. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1506. .klen = 8,
  1507. .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1508. "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  1509. .ilen = 16,
  1510. .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1511. "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
  1512. .rlen = 16,
  1513. .np = 2,
  1514. .tap = { 8, 8 }
  1515. }, {
  1516. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1517. .klen = 8,
  1518. .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  1519. "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  1520. .ilen = 16,
  1521. .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  1522. "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
  1523. .rlen = 16,
  1524. .np = 3,
  1525. .tap = { 3, 12, 1 }
  1526. },
  1527. };
  1528. static struct cipher_testvec des_cbc_enc_tv_template[] = {
  1529. { /* From OpenSSL */
  1530. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1531. .klen = 8,
  1532. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  1533. .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
  1534. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  1535. "\x68\x65\x20\x74\x69\x6d\x65\x20",
  1536. .ilen = 24,
  1537. .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
  1538. "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
  1539. "\x46\x8e\x91\x15\x78\x88\xba\x68",
  1540. .rlen = 24,
  1541. }, { /* FIPS Pub 81 */
  1542. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1543. .klen = 8,
  1544. .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
  1545. .input = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
  1546. .ilen = 8,
  1547. .result = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  1548. .rlen = 8,
  1549. }, {
  1550. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1551. .klen = 8,
  1552. .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  1553. .input = "\x68\x65\x20\x74\x69\x6d\x65\x20",
  1554. .ilen = 8,
  1555. .result = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  1556. .rlen = 8,
  1557. }, {
  1558. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1559. .klen = 8,
  1560. .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  1561. .input = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
  1562. .ilen = 8,
  1563. .result = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
  1564. .rlen = 8,
  1565. }, { /* Copy of openssl vector for chunk testing */
  1566. /* From OpenSSL */
  1567. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1568. .klen = 8,
  1569. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  1570. .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
  1571. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  1572. "\x68\x65\x20\x74\x69\x6d\x65\x20",
  1573. .ilen = 24,
  1574. .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
  1575. "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
  1576. "\x46\x8e\x91\x15\x78\x88\xba\x68",
  1577. .rlen = 24,
  1578. .np = 2,
  1579. .tap = { 13, 11 }
  1580. },
  1581. };
  1582. static struct cipher_testvec des_cbc_dec_tv_template[] = {
  1583. { /* FIPS Pub 81 */
  1584. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1585. .klen = 8,
  1586. .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
  1587. .input = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  1588. .ilen = 8,
  1589. .result = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
  1590. .rlen = 8,
  1591. }, {
  1592. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1593. .klen = 8,
  1594. .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  1595. .input = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  1596. .ilen = 8,
  1597. .result = "\x68\x65\x20\x74\x69\x6d\x65\x20",
  1598. .rlen = 8,
  1599. }, {
  1600. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1601. .klen = 8,
  1602. .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  1603. .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
  1604. .ilen = 8,
  1605. .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
  1606. .rlen = 8,
  1607. }, { /* Copy of above, for chunk testing */
  1608. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1609. .klen = 8,
  1610. .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  1611. .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
  1612. .ilen = 8,
  1613. .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
  1614. .rlen = 8,
  1615. .np = 2,
  1616. .tap = { 4, 4 }
  1617. },
  1618. };
  1619. /*
  1620. * We really need some more test vectors, especially for DES3 CBC.
  1621. */
  1622. static struct cipher_testvec des3_ede_enc_tv_template[] = {
  1623. { /* These are from openssl */
  1624. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  1625. "\x55\x55\x55\x55\x55\x55\x55\x55"
  1626. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  1627. .klen = 24,
  1628. .input = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
  1629. .ilen = 8,
  1630. .result = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
  1631. .rlen = 8,
  1632. }, {
  1633. .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
  1634. "\x86\x02\x87\x66\x59\x08\x21\x98"
  1635. "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
  1636. .klen = 24,
  1637. .input = "\x73\x71\x75\x69\x67\x67\x6c\x65",
  1638. .ilen = 8,
  1639. .result = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
  1640. .rlen = 8,
  1641. }, {
  1642. .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
  1643. "\x91\x07\xd0\x15\x89\x19\x01\x01"
  1644. "\x19\x07\x92\x10\x98\x1a\x01\x01",
  1645. .klen = 24,
  1646. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  1647. .ilen = 8,
  1648. .result = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
  1649. .rlen = 8,
  1650. },
  1651. };
  1652. static struct cipher_testvec des3_ede_dec_tv_template[] = {
  1653. { /* These are from openssl */
  1654. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  1655. "\x55\x55\x55\x55\x55\x55\x55\x55"
  1656. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  1657. .klen = 24,
  1658. .input = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
  1659. .ilen = 8,
  1660. .result = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
  1661. .rlen = 8,
  1662. }, {
  1663. .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
  1664. "\x86\x02\x87\x66\x59\x08\x21\x98"
  1665. "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
  1666. .klen = 24,
  1667. .input = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
  1668. .ilen = 8,
  1669. .result = "\x73\x71\x75\x69\x67\x67\x6c\x65",
  1670. .rlen = 8,
  1671. }, {
  1672. .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
  1673. "\x91\x07\xd0\x15\x89\x19\x01\x01"
  1674. "\x19\x07\x92\x10\x98\x1a\x01\x01",
  1675. .klen = 24,
  1676. .input = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
  1677. .ilen = 8,
  1678. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  1679. .rlen = 8,
  1680. },
  1681. };
  1682. /*
  1683. * Blowfish test vectors.
  1684. */
  1685. #define BF_ENC_TEST_VECTORS 6
  1686. #define BF_DEC_TEST_VECTORS 6
  1687. #define BF_CBC_ENC_TEST_VECTORS 1
  1688. #define BF_CBC_DEC_TEST_VECTORS 1
  1689. static struct cipher_testvec bf_enc_tv_template[] = {
  1690. { /* DES test vectors from OpenSSL */
  1691. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  1692. .klen = 8,
  1693. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  1694. .ilen = 8,
  1695. .result = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
  1696. .rlen = 8,
  1697. }, {
  1698. .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
  1699. .klen = 8,
  1700. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1701. .ilen = 8,
  1702. .result = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
  1703. .rlen = 8,
  1704. }, {
  1705. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  1706. .klen = 8,
  1707. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  1708. .ilen = 8,
  1709. .result = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
  1710. .rlen = 8,
  1711. }, { /* Vary the keylength... */
  1712. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  1713. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
  1714. .klen = 16,
  1715. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  1716. .ilen = 8,
  1717. .result = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
  1718. .rlen = 8,
  1719. }, {
  1720. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  1721. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  1722. "\x00\x11\x22\x33\x44",
  1723. .klen = 21,
  1724. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  1725. .ilen = 8,
  1726. .result = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
  1727. .rlen = 8,
  1728. }, { /* Generated with bf488 */
  1729. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  1730. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  1731. "\x00\x11\x22\x33\x44\x55\x66\x77"
  1732. "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
  1733. "\x58\x40\x23\x64\x1a\xba\x61\x76"
  1734. "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
  1735. "\xff\xff\xff\xff\xff\xff\xff\xff",
  1736. .klen = 56,
  1737. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  1738. .ilen = 8,
  1739. .result = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
  1740. .rlen = 8,
  1741. },
  1742. };
  1743. static struct cipher_testvec bf_dec_tv_template[] = {
  1744. { /* DES test vectors from OpenSSL */
  1745. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  1746. .klen = 8,
  1747. .input = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
  1748. .ilen = 8,
  1749. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  1750. .rlen = 8,
  1751. }, {
  1752. .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
  1753. .klen = 8,
  1754. .input = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
  1755. .ilen = 8,
  1756. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  1757. .rlen = 8,
  1758. }, {
  1759. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  1760. .klen = 8,
  1761. .input = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
  1762. .ilen = 8,
  1763. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  1764. .rlen = 8,
  1765. }, { /* Vary the keylength... */
  1766. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  1767. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
  1768. .klen = 16,
  1769. .input = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
  1770. .ilen = 8,
  1771. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  1772. .rlen = 8,
  1773. }, {
  1774. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  1775. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  1776. "\x00\x11\x22\x33\x44",
  1777. .klen = 21,
  1778. .input = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
  1779. .ilen = 8,
  1780. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  1781. .rlen = 8,
  1782. }, { /* Generated with bf488, using OpenSSL, Libgcrypt and Nettle */
  1783. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  1784. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  1785. "\x00\x11\x22\x33\x44\x55\x66\x77"
  1786. "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
  1787. "\x58\x40\x23\x64\x1a\xba\x61\x76"
  1788. "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
  1789. "\xff\xff\xff\xff\xff\xff\xff\xff",
  1790. .klen = 56,
  1791. .input = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
  1792. .ilen = 8,
  1793. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  1794. .rlen = 8,
  1795. },
  1796. };
  1797. static struct cipher_testvec bf_cbc_enc_tv_template[] = {
  1798. { /* From OpenSSL */
  1799. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  1800. "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  1801. .klen = 16,
  1802. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  1803. .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
  1804. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  1805. "\x68\x65\x20\x74\x69\x6d\x65\x20"
  1806. "\x66\x6f\x72\x20\x00\x00\x00\x00",
  1807. .ilen = 32,
  1808. .result = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
  1809. "\x05\xb1\x56\xe2\x74\x03\x97\x93"
  1810. "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
  1811. "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
  1812. .rlen = 32,
  1813. },
  1814. };
  1815. static struct cipher_testvec bf_cbc_dec_tv_template[] = {
  1816. { /* From OpenSSL */
  1817. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  1818. "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  1819. .klen = 16,
  1820. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  1821. .input = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
  1822. "\x05\xb1\x56\xe2\x74\x03\x97\x93"
  1823. "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
  1824. "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
  1825. .ilen = 32,
  1826. .result = "\x37\x36\x35\x34\x33\x32\x31\x20"
  1827. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  1828. "\x68\x65\x20\x74\x69\x6d\x65\x20"
  1829. "\x66\x6f\x72\x20\x00\x00\x00\x00",
  1830. .rlen = 32,
  1831. },
  1832. };
  1833. /*
  1834. * Twofish test vectors.
  1835. */
  1836. #define TF_ENC_TEST_VECTORS 3
  1837. #define TF_DEC_TEST_VECTORS 3
  1838. #define TF_CBC_ENC_TEST_VECTORS 4
  1839. #define TF_CBC_DEC_TEST_VECTORS 4
  1840. static struct cipher_testvec tf_enc_tv_template[] = {
  1841. {
  1842. .key = zeroed_string,
  1843. .klen = 16,
  1844. .input = zeroed_string,
  1845. .ilen = 16,
  1846. .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  1847. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  1848. .rlen = 16,
  1849. }, {
  1850. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  1851. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  1852. "\x00\x11\x22\x33\x44\x55\x66\x77",
  1853. .klen = 24,
  1854. .input = zeroed_string,
  1855. .ilen = 16,
  1856. .result = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
  1857. "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
  1858. .rlen = 16,
  1859. }, {
  1860. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  1861. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  1862. "\x00\x11\x22\x33\x44\x55\x66\x77"
  1863. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  1864. .klen = 32,
  1865. .input = zeroed_string,
  1866. .ilen = 16,
  1867. .result = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
  1868. "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
  1869. .rlen = 16,
  1870. },
  1871. };
  1872. static struct cipher_testvec tf_dec_tv_template[] = {
  1873. {
  1874. .key = zeroed_string,
  1875. .klen = 16,
  1876. .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  1877. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  1878. .ilen = 16,
  1879. .result = zeroed_string,
  1880. .rlen = 16,
  1881. }, {
  1882. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  1883. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  1884. "\x00\x11\x22\x33\x44\x55\x66\x77",
  1885. .klen = 24,
  1886. .input = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
  1887. "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
  1888. .ilen = 16,
  1889. .result = zeroed_string,
  1890. .rlen = 16,
  1891. }, {
  1892. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  1893. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  1894. "\x00\x11\x22\x33\x44\x55\x66\x77"
  1895. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  1896. .klen = 32,
  1897. .input = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
  1898. "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
  1899. .ilen = 16,
  1900. .result = zeroed_string,
  1901. .rlen = 16,
  1902. },
  1903. };
  1904. static struct cipher_testvec tf_cbc_enc_tv_template[] = {
  1905. { /* Generated with Nettle */
  1906. .key = zeroed_string,
  1907. .klen = 16,
  1908. .iv = zeroed_string,
  1909. .input = zeroed_string,
  1910. .ilen = 16,
  1911. .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  1912. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  1913. .rlen = 16,
  1914. }, {
  1915. .key = zeroed_string,
  1916. .klen = 16,
  1917. .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  1918. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  1919. .input = zeroed_string,
  1920. .ilen = 16,
  1921. .result = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  1922. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  1923. .rlen = 16,
  1924. }, {
  1925. .key = zeroed_string,
  1926. .klen = 16,
  1927. .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  1928. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  1929. .input = zeroed_string,
  1930. .ilen = 16,
  1931. .result = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  1932. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  1933. .rlen = 16,
  1934. }, {
  1935. .key = zeroed_string,
  1936. .klen = 16,
  1937. .iv = zeroed_string,
  1938. .input = zeroed_string,
  1939. .ilen = 48,
  1940. .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  1941. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
  1942. "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  1943. "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
  1944. "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  1945. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  1946. .rlen = 48,
  1947. },
  1948. };
  1949. static struct cipher_testvec tf_cbc_dec_tv_template[] = {
  1950. { /* Reverse of the first four above */
  1951. .key = zeroed_string,
  1952. .klen = 16,
  1953. .iv = zeroed_string,
  1954. .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  1955. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  1956. .ilen = 16,
  1957. .result = zeroed_string,
  1958. .rlen = 16,
  1959. }, {
  1960. .key = zeroed_string,
  1961. .klen = 16,
  1962. .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  1963. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  1964. .input = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  1965. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  1966. .ilen = 16,
  1967. .result = zeroed_string,
  1968. .rlen = 16,
  1969. }, {
  1970. .key = zeroed_string,
  1971. .klen = 16,
  1972. .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  1973. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  1974. .input = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  1975. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  1976. .ilen = 16,
  1977. .result = zeroed_string,
  1978. .rlen = 16,
  1979. }, {
  1980. .key = zeroed_string,
  1981. .klen = 16,
  1982. .iv = zeroed_string,
  1983. .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  1984. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
  1985. "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  1986. "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
  1987. "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  1988. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  1989. .ilen = 48,
  1990. .result = zeroed_string,
  1991. .rlen = 48,
  1992. },
  1993. };
  1994. /*
  1995. * Serpent test vectors. These are backwards because Serpent writes
  1996. * octet sequences in right-to-left mode.
  1997. */
  1998. #define SERPENT_ENC_TEST_VECTORS 4
  1999. #define SERPENT_DEC_TEST_VECTORS 4
  2000. #define TNEPRES_ENC_TEST_VECTORS 4
  2001. #define TNEPRES_DEC_TEST_VECTORS 4
  2002. static struct cipher_testvec serpent_enc_tv_template[] = {
  2003. {
  2004. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2005. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2006. .ilen = 16,
  2007. .result = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
  2008. "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
  2009. .rlen = 16,
  2010. }, {
  2011. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2012. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2013. .klen = 16,
  2014. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2015. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2016. .ilen = 16,
  2017. .result = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
  2018. "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
  2019. .rlen = 16,
  2020. }, {
  2021. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2022. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2023. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2024. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2025. .klen = 32,
  2026. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2027. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2028. .ilen = 16,
  2029. .result = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
  2030. "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
  2031. .rlen = 16,
  2032. }, {
  2033. .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
  2034. .klen = 16,
  2035. .input = zeroed_string,
  2036. .ilen = 16,
  2037. .result = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
  2038. "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
  2039. .rlen = 16,
  2040. },
  2041. };
  2042. static struct cipher_testvec tnepres_enc_tv_template[] = {
  2043. { /* KeySize=128, PT=0, I=1 */
  2044. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2045. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2046. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  2047. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2048. .klen = 16,
  2049. .ilen = 16,
  2050. .result = "\x49\xaf\xbf\xad\x9d\x5a\x34\x05"
  2051. "\x2c\xd8\xff\xa5\x98\x6b\xd2\xdd",
  2052. .rlen = 16,
  2053. }, { /* KeySize=192, PT=0, I=1 */
  2054. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  2055. "\x00\x00\x00\x00\x00\x00\x00\x00"
  2056. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2057. .klen = 24,
  2058. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2059. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2060. .ilen = 16,
  2061. .result = "\xe7\x8e\x54\x02\xc7\x19\x55\x68"
  2062. "\xac\x36\x78\xf7\xa3\xf6\x0c\x66",
  2063. .rlen = 16,
  2064. }, { /* KeySize=256, PT=0, I=1 */
  2065. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  2066. "\x00\x00\x00\x00\x00\x00\x00\x00"
  2067. "\x00\x00\x00\x00\x00\x00\x00\x00"
  2068. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2069. .klen = 32,
  2070. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2071. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2072. .ilen = 16,
  2073. .result = "\xab\xed\x96\xe7\x66\xbf\x28\xcb"
  2074. "\xc0\xeb\xd2\x1a\x82\xef\x08\x19",
  2075. .rlen = 16,
  2076. }, { /* KeySize=256, I=257 */
  2077. .key = "\x1f\x1e\x1d\x1c\x1b\x1a\x19\x18"
  2078. "\x17\x16\x15\x14\x13\x12\x11\x10"
  2079. "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
  2080. "\x07\x06\x05\x04\x03\x02\x01\x00",
  2081. .klen = 32,
  2082. .input = "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
  2083. "\x07\x06\x05\x04\x03\x02\x01\x00",
  2084. .ilen = 16,
  2085. .result = "\x5c\xe7\x1c\x70\xd2\x88\x2e\x5b"
  2086. "\xb8\x32\xe4\x33\xf8\x9f\x26\xde",
  2087. .rlen = 16,
  2088. },
  2089. };
  2090. static struct cipher_testvec serpent_dec_tv_template[] = {
  2091. {
  2092. .input = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
  2093. "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
  2094. .ilen = 16,
  2095. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2096. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2097. .rlen = 16,
  2098. }, {
  2099. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2100. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2101. .klen = 16,
  2102. .input = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
  2103. "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
  2104. .ilen = 16,
  2105. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2106. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2107. .rlen = 16,
  2108. }, {
  2109. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2110. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2111. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2112. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2113. .klen = 32,
  2114. .input = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
  2115. "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
  2116. .ilen = 16,
  2117. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2118. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2119. .rlen = 16,
  2120. }, {
  2121. .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
  2122. .klen = 16,
  2123. .input = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
  2124. "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
  2125. .ilen = 16,
  2126. .result = zeroed_string,
  2127. .rlen = 16,
  2128. },
  2129. };
  2130. static struct cipher_testvec tnepres_dec_tv_template[] = {
  2131. {
  2132. .input = "\x41\xcc\x6b\x31\x59\x31\x45\x97"
  2133. "\x6d\x6f\xbb\x38\x4b\x37\x21\x28",
  2134. .ilen = 16,
  2135. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2136. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2137. .rlen = 16,
  2138. }, {
  2139. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2140. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2141. .klen = 16,
  2142. .input = "\xea\xf4\xd7\xfc\xd8\x01\x34\x47"
  2143. "\x81\x45\x0b\xfa\x0c\xd6\xad\x6e",
  2144. .ilen = 16,
  2145. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2146. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2147. .rlen = 16,
  2148. }, {
  2149. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2150. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2151. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2152. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2153. .klen = 32,
  2154. .input = "\x64\xa9\x1a\x37\xed\x9f\xe7\x49"
  2155. "\xa8\x4e\x76\xd6\xf5\x0d\x78\xee",
  2156. .ilen = 16,
  2157. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2158. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2159. .rlen = 16,
  2160. }, { /* KeySize=128, I=121 */
  2161. .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
  2162. .klen = 16,
  2163. .input = "\x3d\xda\xbf\xc0\x06\xda\xab\x06"
  2164. "\x46\x2a\xf4\xef\x81\x54\x4e\x26",
  2165. .ilen = 16,
  2166. .result = zeroed_string,
  2167. .rlen = 16,
  2168. },
  2169. };
  2170. /* Cast6 test vectors from RFC 2612 */
  2171. #define CAST6_ENC_TEST_VECTORS 3
  2172. #define CAST6_DEC_TEST_VECTORS 3
  2173. static struct cipher_testvec cast6_enc_tv_template[] = {
  2174. {
  2175. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2176. "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
  2177. .klen = 16,
  2178. .input = zeroed_string,
  2179. .ilen = 16,
  2180. .result = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
  2181. "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
  2182. .rlen = 16,
  2183. }, {
  2184. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2185. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  2186. "\xba\xc7\x7a\x77\x17\x94\x28\x63",
  2187. .klen = 24,
  2188. .input = zeroed_string,
  2189. .ilen = 16,
  2190. .result = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
  2191. "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
  2192. .rlen = 16,
  2193. }, {
  2194. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2195. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  2196. "\x8d\x7c\x47\xce\x26\x49\x08\x46"
  2197. "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
  2198. .klen = 32,
  2199. .input = zeroed_string,
  2200. .ilen = 16,
  2201. .result = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
  2202. "\xc9\x87\x01\x36\x55\x33\x17\xfa",
  2203. .rlen = 16,
  2204. },
  2205. };
  2206. static struct cipher_testvec cast6_dec_tv_template[] = {
  2207. {
  2208. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2209. "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
  2210. .klen = 16,
  2211. .input = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
  2212. "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
  2213. .ilen = 16,
  2214. .result = zeroed_string,
  2215. .rlen = 16,
  2216. }, {
  2217. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2218. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  2219. "\xba\xc7\x7a\x77\x17\x94\x28\x63",
  2220. .klen = 24,
  2221. .input = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
  2222. "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
  2223. .ilen = 16,
  2224. .result = zeroed_string,
  2225. .rlen = 16,
  2226. }, {
  2227. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  2228. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  2229. "\x8d\x7c\x47\xce\x26\x49\x08\x46"
  2230. "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
  2231. .klen = 32,
  2232. .input = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
  2233. "\xc9\x87\x01\x36\x55\x33\x17\xfa",
  2234. .ilen = 16,
  2235. .result = zeroed_string,
  2236. .rlen = 16,
  2237. },
  2238. };
  2239. /*
  2240. * AES test vectors.
  2241. */
  2242. #define AES_ENC_TEST_VECTORS 3
  2243. #define AES_DEC_TEST_VECTORS 3
  2244. #define AES_CBC_ENC_TEST_VECTORS 4
  2245. #define AES_CBC_DEC_TEST_VECTORS 4
  2246. #define AES_LRW_ENC_TEST_VECTORS 8
  2247. #define AES_LRW_DEC_TEST_VECTORS 8
  2248. #define AES_XTS_ENC_TEST_VECTORS 4
  2249. #define AES_XTS_DEC_TEST_VECTORS 4
  2250. #define AES_CTR_ENC_TEST_VECTORS 7
  2251. #define AES_CTR_DEC_TEST_VECTORS 6
  2252. #define AES_GCM_ENC_TEST_VECTORS 9
  2253. #define AES_GCM_DEC_TEST_VECTORS 8
  2254. #define AES_CCM_ENC_TEST_VECTORS 7
  2255. #define AES_CCM_DEC_TEST_VECTORS 7
  2256. static struct cipher_testvec aes_enc_tv_template[] = {
  2257. { /* From FIPS-197 */
  2258. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2259. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2260. .klen = 16,
  2261. .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2262. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2263. .ilen = 16,
  2264. .result = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
  2265. "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
  2266. .rlen = 16,
  2267. }, {
  2268. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2269. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2270. "\x10\x11\x12\x13\x14\x15\x16\x17",
  2271. .klen = 24,
  2272. .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2273. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2274. .ilen = 16,
  2275. .result = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
  2276. "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
  2277. .rlen = 16,
  2278. }, {
  2279. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2280. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2281. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2282. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2283. .klen = 32,
  2284. .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2285. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2286. .ilen = 16,
  2287. .result = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
  2288. "\xea\xfc\x49\x90\x4b\x49\x60\x89",
  2289. .rlen = 16,
  2290. },
  2291. };
  2292. static struct cipher_testvec aes_dec_tv_template[] = {
  2293. { /* From FIPS-197 */
  2294. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2295. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2296. .klen = 16,
  2297. .input = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
  2298. "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
  2299. .ilen = 16,
  2300. .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2301. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2302. .rlen = 16,
  2303. }, {
  2304. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2305. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2306. "\x10\x11\x12\x13\x14\x15\x16\x17",
  2307. .klen = 24,
  2308. .input = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
  2309. "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
  2310. .ilen = 16,
  2311. .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2312. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2313. .rlen = 16,
  2314. }, {
  2315. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2316. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2317. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2318. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2319. .klen = 32,
  2320. .input = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
  2321. "\xea\xfc\x49\x90\x4b\x49\x60\x89",
  2322. .ilen = 16,
  2323. .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
  2324. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  2325. .rlen = 16,
  2326. },
  2327. };
  2328. static struct cipher_testvec aes_cbc_enc_tv_template[] = {
  2329. { /* From RFC 3602 */
  2330. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  2331. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  2332. .klen = 16,
  2333. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  2334. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  2335. .input = "Single block msg",
  2336. .ilen = 16,
  2337. .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
  2338. "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
  2339. .rlen = 16,
  2340. }, {
  2341. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  2342. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  2343. .klen = 16,
  2344. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  2345. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  2346. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2347. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2348. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2349. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2350. .ilen = 32,
  2351. .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
  2352. "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
  2353. "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
  2354. "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
  2355. .rlen = 32,
  2356. }, { /* From NIST SP800-38A */
  2357. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  2358. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  2359. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  2360. .klen = 24,
  2361. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2362. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2363. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  2364. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  2365. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  2366. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  2367. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  2368. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  2369. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  2370. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  2371. .ilen = 64,
  2372. .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
  2373. "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
  2374. "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
  2375. "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
  2376. "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
  2377. "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
  2378. "\x08\xb0\xe2\x79\x88\x59\x88\x81"
  2379. "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
  2380. .rlen = 64,
  2381. }, {
  2382. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  2383. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  2384. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  2385. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  2386. .klen = 32,
  2387. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2388. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2389. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  2390. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  2391. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  2392. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  2393. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  2394. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  2395. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  2396. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  2397. .ilen = 64,
  2398. .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
  2399. "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
  2400. "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
  2401. "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
  2402. "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
  2403. "\xa5\x30\xe2\x63\x04\x23\x14\x61"
  2404. "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
  2405. "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
  2406. .rlen = 64,
  2407. },
  2408. };
  2409. static struct cipher_testvec aes_cbc_dec_tv_template[] = {
  2410. { /* From RFC 3602 */
  2411. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  2412. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  2413. .klen = 16,
  2414. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  2415. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  2416. .input = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
  2417. "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
  2418. .ilen = 16,
  2419. .result = "Single block msg",
  2420. .rlen = 16,
  2421. }, {
  2422. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  2423. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  2424. .klen = 16,
  2425. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  2426. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  2427. .input = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
  2428. "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
  2429. "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
  2430. "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
  2431. .ilen = 32,
  2432. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2433. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  2434. "\x10\x11\x12\x13\x14\x15\x16\x17"
  2435. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  2436. .rlen = 32,
  2437. }, { /* From NIST SP800-38A */
  2438. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  2439. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  2440. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  2441. .klen = 24,
  2442. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2443. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2444. .input = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
  2445. "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
  2446. "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
  2447. "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
  2448. "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
  2449. "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
  2450. "\x08\xb0\xe2\x79\x88\x59\x88\x81"
  2451. "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
  2452. .ilen = 64,
  2453. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  2454. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  2455. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  2456. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  2457. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  2458. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  2459. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  2460. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  2461. .rlen = 64,
  2462. }, {
  2463. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  2464. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  2465. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  2466. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  2467. .klen = 32,
  2468. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  2469. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  2470. .input = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
  2471. "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
  2472. "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
  2473. "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
  2474. "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
  2475. "\xa5\x30\xe2\x63\x04\x23\x14\x61"
  2476. "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
  2477. "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
  2478. .ilen = 64,
  2479. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  2480. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  2481. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  2482. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  2483. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  2484. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  2485. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  2486. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  2487. .rlen = 64,
  2488. },
  2489. };
  2490. static struct cipher_testvec aes_lrw_enc_tv_template[] = {
  2491. /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
  2492. { /* LRW-32-AES 1 */
  2493. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  2494. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  2495. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  2496. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  2497. .klen = 32,
  2498. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2499. "\x00\x00\x00\x00\x00\x00\x00\x01",
  2500. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  2501. "\x38\x39\x41\x42\x43\x44\x45\x46",
  2502. .ilen = 16,
  2503. .result = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
  2504. "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
  2505. .rlen = 16,
  2506. }, { /* LRW-32-AES 2 */
  2507. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  2508. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  2509. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  2510. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  2511. .klen = 32,
  2512. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2513. "\x00\x00\x00\x00\x00\x00\x00\x02",
  2514. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  2515. "\x38\x39\x41\x42\x43\x44\x45\x46",
  2516. .ilen = 16,
  2517. .result = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
  2518. "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
  2519. .rlen = 16,
  2520. }, { /* LRW-32-AES 3 */
  2521. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  2522. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  2523. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  2524. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  2525. .klen = 32,
  2526. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2527. "\x00\x00\x00\x02\x00\x00\x00\x00",
  2528. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  2529. "\x38\x39\x41\x42\x43\x44\x45\x46",
  2530. .ilen = 16,
  2531. .result = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
  2532. "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
  2533. .rlen = 16,
  2534. }, { /* LRW-32-AES 4 */
  2535. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  2536. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  2537. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  2538. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  2539. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  2540. .klen = 40,
  2541. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2542. "\x00\x00\x00\x00\x00\x00\x00\x01",
  2543. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  2544. "\x38\x39\x41\x42\x43\x44\x45\x46",
  2545. .ilen = 16,
  2546. .result = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
  2547. "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
  2548. .rlen = 16,
  2549. }, { /* LRW-32-AES 5 */
  2550. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  2551. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  2552. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  2553. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  2554. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  2555. .klen = 40,
  2556. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2557. "\x00\x00\x00\x02\x00\x00\x00\x00",
  2558. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  2559. "\x38\x39\x41\x42\x43\x44\x45\x46",
  2560. .ilen = 16,
  2561. .result = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
  2562. "\xc8\x60\x48\x02\x87\xe3\x34\x06",
  2563. .rlen = 16,
  2564. }, { /* LRW-32-AES 6 */
  2565. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  2566. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  2567. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  2568. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  2569. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  2570. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  2571. .klen = 48,
  2572. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2573. "\x00\x00\x00\x00\x00\x00\x00\x01",
  2574. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  2575. "\x38\x39\x41\x42\x43\x44\x45\x46",
  2576. .ilen = 16,
  2577. .result = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
  2578. "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
  2579. .rlen = 16,
  2580. }, { /* LRW-32-AES 7 */
  2581. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  2582. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  2583. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  2584. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  2585. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  2586. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  2587. .klen = 48,
  2588. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2589. "\x00\x00\x00\x02\x00\x00\x00\x00",
  2590. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  2591. "\x38\x39\x41\x42\x43\x44\x45\x46",
  2592. .ilen = 16,
  2593. .result = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
  2594. "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
  2595. .rlen = 16,
  2596. }, {
  2597. /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
  2598. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  2599. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  2600. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  2601. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  2602. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  2603. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  2604. .klen = 48,
  2605. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2606. "\x00\x00\x00\x00\x00\x00\x00\x01",
  2607. .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  2608. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  2609. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  2610. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  2611. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  2612. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  2613. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  2614. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  2615. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  2616. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  2617. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  2618. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  2619. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  2620. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  2621. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  2622. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  2623. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  2624. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  2625. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  2626. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  2627. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  2628. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  2629. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  2630. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  2631. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  2632. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  2633. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  2634. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  2635. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  2636. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  2637. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  2638. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  2639. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  2640. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  2641. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  2642. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  2643. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  2644. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  2645. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  2646. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  2647. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  2648. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  2649. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  2650. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  2651. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  2652. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  2653. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  2654. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  2655. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  2656. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  2657. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  2658. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  2659. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  2660. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  2661. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  2662. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  2663. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  2664. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  2665. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  2666. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  2667. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  2668. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  2669. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  2670. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  2671. .ilen = 512,
  2672. .result = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
  2673. "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
  2674. "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
  2675. "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
  2676. "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
  2677. "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
  2678. "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
  2679. "\xe8\x58\x46\x97\x39\x51\x07\xde"
  2680. "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
  2681. "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
  2682. "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
  2683. "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
  2684. "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
  2685. "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
  2686. "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
  2687. "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
  2688. "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
  2689. "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
  2690. "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
  2691. "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
  2692. "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
  2693. "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
  2694. "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
  2695. "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
  2696. "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
  2697. "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
  2698. "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
  2699. "\x41\x30\x58\xc5\x62\x74\x52\x1d"
  2700. "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
  2701. "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
  2702. "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
  2703. "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
  2704. "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
  2705. "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
  2706. "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
  2707. "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
  2708. "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
  2709. "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
  2710. "\xb8\x79\x78\x97\x94\xff\x72\x13"
  2711. "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
  2712. "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
  2713. "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
  2714. "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
  2715. "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
  2716. "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
  2717. "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
  2718. "\x1e\x86\x53\x11\x53\x94\x00\xee"
  2719. "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
  2720. "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
  2721. "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
  2722. "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
  2723. "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
  2724. "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
  2725. "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
  2726. "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
  2727. "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
  2728. "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
  2729. "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
  2730. "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
  2731. "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
  2732. "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
  2733. "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
  2734. "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
  2735. "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
  2736. .rlen = 512,
  2737. }
  2738. };
  2739. static struct cipher_testvec aes_lrw_dec_tv_template[] = {
  2740. /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
  2741. /* same as enc vectors with input and result reversed */
  2742. { /* LRW-32-AES 1 */
  2743. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  2744. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  2745. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  2746. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  2747. .klen = 32,
  2748. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2749. "\x00\x00\x00\x00\x00\x00\x00\x01",
  2750. .input = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
  2751. "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
  2752. .ilen = 16,
  2753. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  2754. "\x38\x39\x41\x42\x43\x44\x45\x46",
  2755. .rlen = 16,
  2756. }, { /* LRW-32-AES 2 */
  2757. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  2758. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  2759. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  2760. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  2761. .klen = 32,
  2762. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2763. "\x00\x00\x00\x00\x00\x00\x00\x02",
  2764. .input = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
  2765. "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
  2766. .ilen = 16,
  2767. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  2768. "\x38\x39\x41\x42\x43\x44\x45\x46",
  2769. .rlen = 16,
  2770. }, { /* LRW-32-AES 3 */
  2771. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  2772. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  2773. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  2774. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  2775. .klen = 32,
  2776. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2777. "\x00\x00\x00\x02\x00\x00\x00\x00",
  2778. .input = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
  2779. "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
  2780. .ilen = 16,
  2781. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  2782. "\x38\x39\x41\x42\x43\x44\x45\x46",
  2783. .rlen = 16,
  2784. }, { /* LRW-32-AES 4 */
  2785. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  2786. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  2787. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  2788. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  2789. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  2790. .klen = 40,
  2791. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2792. "\x00\x00\x00\x00\x00\x00\x00\x01",
  2793. .input = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
  2794. "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
  2795. .ilen = 16,
  2796. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  2797. "\x38\x39\x41\x42\x43\x44\x45\x46",
  2798. .rlen = 16,
  2799. }, { /* LRW-32-AES 5 */
  2800. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  2801. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  2802. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  2803. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  2804. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  2805. .klen = 40,
  2806. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2807. "\x00\x00\x00\x02\x00\x00\x00\x00",
  2808. .input = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
  2809. "\xc8\x60\x48\x02\x87\xe3\x34\x06",
  2810. .ilen = 16,
  2811. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  2812. "\x38\x39\x41\x42\x43\x44\x45\x46",
  2813. .rlen = 16,
  2814. }, { /* LRW-32-AES 6 */
  2815. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  2816. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  2817. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  2818. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  2819. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  2820. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  2821. .klen = 48,
  2822. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2823. "\x00\x00\x00\x00\x00\x00\x00\x01",
  2824. .input = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
  2825. "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
  2826. .ilen = 16,
  2827. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  2828. "\x38\x39\x41\x42\x43\x44\x45\x46",
  2829. .rlen = 16,
  2830. }, { /* LRW-32-AES 7 */
  2831. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  2832. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  2833. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  2834. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  2835. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  2836. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  2837. .klen = 48,
  2838. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2839. "\x00\x00\x00\x02\x00\x00\x00\x00",
  2840. .input = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
  2841. "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
  2842. .ilen = 16,
  2843. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  2844. "\x38\x39\x41\x42\x43\x44\x45\x46",
  2845. .rlen = 16,
  2846. }, {
  2847. /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
  2848. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  2849. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  2850. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  2851. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  2852. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  2853. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  2854. .klen = 48,
  2855. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2856. "\x00\x00\x00\x00\x00\x00\x00\x01",
  2857. .input = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
  2858. "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
  2859. "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
  2860. "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
  2861. "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
  2862. "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
  2863. "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
  2864. "\xe8\x58\x46\x97\x39\x51\x07\xde"
  2865. "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
  2866. "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
  2867. "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
  2868. "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
  2869. "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
  2870. "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
  2871. "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
  2872. "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
  2873. "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
  2874. "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
  2875. "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
  2876. "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
  2877. "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
  2878. "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
  2879. "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
  2880. "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
  2881. "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
  2882. "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
  2883. "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
  2884. "\x41\x30\x58\xc5\x62\x74\x52\x1d"
  2885. "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
  2886. "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
  2887. "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
  2888. "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
  2889. "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
  2890. "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
  2891. "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
  2892. "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
  2893. "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
  2894. "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
  2895. "\xb8\x79\x78\x97\x94\xff\x72\x13"
  2896. "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
  2897. "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
  2898. "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
  2899. "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
  2900. "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
  2901. "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
  2902. "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
  2903. "\x1e\x86\x53\x11\x53\x94\x00\xee"
  2904. "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
  2905. "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
  2906. "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
  2907. "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
  2908. "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
  2909. "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
  2910. "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
  2911. "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
  2912. "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
  2913. "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
  2914. "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
  2915. "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
  2916. "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
  2917. "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
  2918. "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
  2919. "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
  2920. "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
  2921. .ilen = 512,
  2922. .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  2923. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  2924. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  2925. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  2926. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  2927. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  2928. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  2929. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  2930. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  2931. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  2932. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  2933. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  2934. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  2935. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  2936. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  2937. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  2938. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  2939. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  2940. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  2941. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  2942. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  2943. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  2944. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  2945. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  2946. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  2947. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  2948. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  2949. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  2950. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  2951. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  2952. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  2953. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  2954. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  2955. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  2956. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  2957. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  2958. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  2959. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  2960. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  2961. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  2962. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  2963. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  2964. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  2965. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  2966. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  2967. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  2968. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  2969. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  2970. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  2971. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  2972. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  2973. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  2974. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  2975. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  2976. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  2977. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  2978. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  2979. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  2980. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  2981. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  2982. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  2983. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  2984. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  2985. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  2986. .rlen = 512,
  2987. }
  2988. };
  2989. static struct cipher_testvec aes_xts_enc_tv_template[] = {
  2990. /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
  2991. { /* XTS-AES 1 */
  2992. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2993. "\x00\x00\x00\x00\x00\x00\x00\x00"
  2994. "\x00\x00\x00\x00\x00\x00\x00\x00"
  2995. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2996. .klen = 32,
  2997. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  2998. "\x00\x00\x00\x00\x00\x00\x00\x00",
  2999. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3000. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3001. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3002. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3003. .ilen = 32,
  3004. .result = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
  3005. "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
  3006. "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
  3007. "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
  3008. .rlen = 32,
  3009. }, { /* XTS-AES 2 */
  3010. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  3011. "\x11\x11\x11\x11\x11\x11\x11\x11"
  3012. "\x22\x22\x22\x22\x22\x22\x22\x22"
  3013. "\x22\x22\x22\x22\x22\x22\x22\x22",
  3014. .klen = 32,
  3015. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  3016. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3017. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  3018. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3019. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3020. "\x44\x44\x44\x44\x44\x44\x44\x44",
  3021. .ilen = 32,
  3022. .result = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
  3023. "\x39\x33\x40\x38\xac\xef\x83\x8b"
  3024. "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
  3025. "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
  3026. .rlen = 32,
  3027. }, { /* XTS-AES 3 */
  3028. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  3029. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  3030. "\x22\x22\x22\x22\x22\x22\x22\x22"
  3031. "\x22\x22\x22\x22\x22\x22\x22\x22",
  3032. .klen = 32,
  3033. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  3034. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3035. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  3036. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3037. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3038. "\x44\x44\x44\x44\x44\x44\x44\x44",
  3039. .ilen = 32,
  3040. .result = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
  3041. "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
  3042. "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
  3043. "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
  3044. .rlen = 32,
  3045. }, { /* XTS-AES 4 */
  3046. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  3047. "\x23\x53\x60\x28\x74\x71\x35\x26"
  3048. "\x31\x41\x59\x26\x53\x58\x97\x93"
  3049. "\x23\x84\x62\x64\x33\x83\x27\x95",
  3050. .klen = 32,
  3051. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3052. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3053. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3054. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3055. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3056. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  3057. "\x20\x21\x22\x23\x24\x25\x26\x27"
  3058. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  3059. "\x30\x31\x32\x33\x34\x35\x36\x37"
  3060. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  3061. "\x40\x41\x42\x43\x44\x45\x46\x47"
  3062. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  3063. "\x50\x51\x52\x53\x54\x55\x56\x57"
  3064. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  3065. "\x60\x61\x62\x63\x64\x65\x66\x67"
  3066. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  3067. "\x70\x71\x72\x73\x74\x75\x76\x77"
  3068. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  3069. "\x80\x81\x82\x83\x84\x85\x86\x87"
  3070. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  3071. "\x90\x91\x92\x93\x94\x95\x96\x97"
  3072. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  3073. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  3074. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  3075. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  3076. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  3077. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  3078. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  3079. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  3080. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  3081. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  3082. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  3083. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3084. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  3085. "\x00\x01\x02\x03\x04\x05\x06\x07"
  3086. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3087. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3088. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  3089. "\x20\x21\x22\x23\x24\x25\x26\x27"
  3090. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  3091. "\x30\x31\x32\x33\x34\x35\x36\x37"
  3092. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  3093. "\x40\x41\x42\x43\x44\x45\x46\x47"
  3094. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  3095. "\x50\x51\x52\x53\x54\x55\x56\x57"
  3096. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  3097. "\x60\x61\x62\x63\x64\x65\x66\x67"
  3098. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  3099. "\x70\x71\x72\x73\x74\x75\x76\x77"
  3100. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  3101. "\x80\x81\x82\x83\x84\x85\x86\x87"
  3102. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  3103. "\x90\x91\x92\x93\x94\x95\x96\x97"
  3104. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  3105. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  3106. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  3107. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  3108. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  3109. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  3110. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  3111. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  3112. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  3113. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  3114. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  3115. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3116. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  3117. .ilen = 512,
  3118. .result = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
  3119. "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
  3120. "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
  3121. "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
  3122. "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
  3123. "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
  3124. "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
  3125. "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
  3126. "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
  3127. "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
  3128. "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
  3129. "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
  3130. "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
  3131. "\x22\x97\x61\x46\xae\x20\xce\x84"
  3132. "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
  3133. "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
  3134. "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
  3135. "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
  3136. "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
  3137. "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
  3138. "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
  3139. "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
  3140. "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
  3141. "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
  3142. "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
  3143. "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
  3144. "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
  3145. "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
  3146. "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
  3147. "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
  3148. "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
  3149. "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
  3150. "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
  3151. "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
  3152. "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
  3153. "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
  3154. "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
  3155. "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
  3156. "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
  3157. "\x55\xef\x52\x97\xca\x67\xe9\xf3"
  3158. "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
  3159. "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
  3160. "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
  3161. "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
  3162. "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
  3163. "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
  3164. "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
  3165. "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
  3166. "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
  3167. "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
  3168. "\x18\x84\x69\x77\xae\x11\x9f\x7a"
  3169. "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
  3170. "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
  3171. "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
  3172. "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
  3173. "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
  3174. "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
  3175. "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
  3176. "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
  3177. "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
  3178. "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
  3179. "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
  3180. "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
  3181. "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
  3182. .rlen = 512,
  3183. }
  3184. };
  3185. static struct cipher_testvec aes_xts_dec_tv_template[] = {
  3186. /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
  3187. { /* XTS-AES 1 */
  3188. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3189. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3190. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3191. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3192. .klen = 32,
  3193. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3194. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3195. .input = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
  3196. "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
  3197. "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
  3198. "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
  3199. .ilen = 32,
  3200. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3201. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3202. "\x00\x00\x00\x00\x00\x00\x00\x00"
  3203. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3204. .rlen = 32,
  3205. }, { /* XTS-AES 2 */
  3206. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  3207. "\x11\x11\x11\x11\x11\x11\x11\x11"
  3208. "\x22\x22\x22\x22\x22\x22\x22\x22"
  3209. "\x22\x22\x22\x22\x22\x22\x22\x22",
  3210. .klen = 32,
  3211. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  3212. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3213. .input = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
  3214. "\x39\x33\x40\x38\xac\xef\x83\x8b"
  3215. "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
  3216. "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
  3217. .ilen = 32,
  3218. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  3219. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3220. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3221. "\x44\x44\x44\x44\x44\x44\x44\x44",
  3222. .rlen = 32,
  3223. }, { /* XTS-AES 3 */
  3224. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  3225. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  3226. "\x22\x22\x22\x22\x22\x22\x22\x22"
  3227. "\x22\x22\x22\x22\x22\x22\x22\x22",
  3228. .klen = 32,
  3229. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  3230. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3231. .input = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
  3232. "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
  3233. "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
  3234. "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
  3235. .ilen = 32,
  3236. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  3237. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3238. "\x44\x44\x44\x44\x44\x44\x44\x44"
  3239. "\x44\x44\x44\x44\x44\x44\x44\x44",
  3240. .rlen = 32,
  3241. }, { /* XTS-AES 4 */
  3242. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  3243. "\x23\x53\x60\x28\x74\x71\x35\x26"
  3244. "\x31\x41\x59\x26\x53\x58\x97\x93"
  3245. "\x23\x84\x62\x64\x33\x83\x27\x95",
  3246. .klen = 32,
  3247. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  3248. "\x00\x00\x00\x00\x00\x00\x00\x00",
  3249. .input = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
  3250. "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
  3251. "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
  3252. "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
  3253. "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
  3254. "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
  3255. "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
  3256. "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
  3257. "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
  3258. "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
  3259. "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
  3260. "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
  3261. "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
  3262. "\x22\x97\x61\x46\xae\x20\xce\x84"
  3263. "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
  3264. "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
  3265. "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
  3266. "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
  3267. "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
  3268. "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
  3269. "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
  3270. "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
  3271. "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
  3272. "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
  3273. "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
  3274. "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
  3275. "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
  3276. "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
  3277. "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
  3278. "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
  3279. "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
  3280. "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
  3281. "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
  3282. "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
  3283. "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
  3284. "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
  3285. "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
  3286. "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
  3287. "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
  3288. "\x55\xef\x52\x97\xca\x67\xe9\xf3"
  3289. "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
  3290. "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
  3291. "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
  3292. "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
  3293. "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
  3294. "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
  3295. "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
  3296. "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
  3297. "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
  3298. "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
  3299. "\x18\x84\x69\x77\xae\x11\x9f\x7a"
  3300. "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
  3301. "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
  3302. "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
  3303. "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
  3304. "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
  3305. "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
  3306. "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
  3307. "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
  3308. "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
  3309. "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
  3310. "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
  3311. "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
  3312. "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
  3313. .ilen = 512,
  3314. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3315. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3316. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3317. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  3318. "\x20\x21\x22\x23\x24\x25\x26\x27"
  3319. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  3320. "\x30\x31\x32\x33\x34\x35\x36\x37"
  3321. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  3322. "\x40\x41\x42\x43\x44\x45\x46\x47"
  3323. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  3324. "\x50\x51\x52\x53\x54\x55\x56\x57"
  3325. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  3326. "\x60\x61\x62\x63\x64\x65\x66\x67"
  3327. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  3328. "\x70\x71\x72\x73\x74\x75\x76\x77"
  3329. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  3330. "\x80\x81\x82\x83\x84\x85\x86\x87"
  3331. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  3332. "\x90\x91\x92\x93\x94\x95\x96\x97"
  3333. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  3334. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  3335. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  3336. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  3337. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  3338. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  3339. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  3340. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  3341. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  3342. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  3343. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  3344. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3345. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  3346. "\x00\x01\x02\x03\x04\x05\x06\x07"
  3347. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3348. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3349. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  3350. "\x20\x21\x22\x23\x24\x25\x26\x27"
  3351. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  3352. "\x30\x31\x32\x33\x34\x35\x36\x37"
  3353. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  3354. "\x40\x41\x42\x43\x44\x45\x46\x47"
  3355. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  3356. "\x50\x51\x52\x53\x54\x55\x56\x57"
  3357. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  3358. "\x60\x61\x62\x63\x64\x65\x66\x67"
  3359. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  3360. "\x70\x71\x72\x73\x74\x75\x76\x77"
  3361. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  3362. "\x80\x81\x82\x83\x84\x85\x86\x87"
  3363. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  3364. "\x90\x91\x92\x93\x94\x95\x96\x97"
  3365. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  3366. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  3367. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  3368. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  3369. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  3370. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  3371. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  3372. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  3373. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  3374. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  3375. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  3376. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3377. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  3378. .rlen = 512,
  3379. }
  3380. };
  3381. static struct cipher_testvec aes_ctr_enc_tv_template[] = {
  3382. { /* From RFC 3686 */
  3383. .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
  3384. "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
  3385. "\x00\x00\x00\x30",
  3386. .klen = 20,
  3387. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  3388. .input = "Single block msg",
  3389. .ilen = 16,
  3390. .result = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
  3391. "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
  3392. .rlen = 16,
  3393. }, {
  3394. .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
  3395. "\x43\xd6\xce\x1f\x32\x53\x91\x63"
  3396. "\x00\x6c\xb6\xdb",
  3397. .klen = 20,
  3398. .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
  3399. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3400. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3401. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3402. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  3403. .ilen = 32,
  3404. .result = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
  3405. "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
  3406. "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
  3407. "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
  3408. .rlen = 32,
  3409. }, {
  3410. .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
  3411. "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
  3412. "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
  3413. "\x00\x00\x00\x48",
  3414. .klen = 28,
  3415. .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
  3416. .input = "Single block msg",
  3417. .ilen = 16,
  3418. .result = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
  3419. "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
  3420. .rlen = 16,
  3421. }, {
  3422. .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
  3423. "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
  3424. "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
  3425. "\x00\x96\xb0\x3b",
  3426. .klen = 28,
  3427. .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
  3428. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3429. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3430. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3431. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  3432. .ilen = 32,
  3433. .result = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
  3434. "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
  3435. "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
  3436. "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
  3437. .rlen = 32,
  3438. }, {
  3439. .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
  3440. "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
  3441. "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
  3442. "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
  3443. "\x00\x00\x00\x60",
  3444. .klen = 36,
  3445. .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
  3446. .input = "Single block msg",
  3447. .ilen = 16,
  3448. .result = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
  3449. "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
  3450. .rlen = 16,
  3451. }, {
  3452. .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
  3453. "\x07\x96\x36\x58\x79\xef\xf8\x86"
  3454. "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
  3455. "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
  3456. "\x00\xfa\xac\x24",
  3457. .klen = 36,
  3458. .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
  3459. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3460. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3461. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3462. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  3463. .ilen = 32,
  3464. .result = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
  3465. "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
  3466. "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
  3467. "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
  3468. .rlen = 32,
  3469. }, {
  3470. // generated using Crypto++
  3471. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3472. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3473. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3474. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  3475. "\x00\x00\x00\x00",
  3476. .klen = 32 + 4,
  3477. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  3478. .input =
  3479. "\x00\x01\x02\x03\x04\x05\x06\x07"
  3480. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3481. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3482. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  3483. "\x20\x21\x22\x23\x24\x25\x26\x27"
  3484. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  3485. "\x30\x31\x32\x33\x34\x35\x36\x37"
  3486. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  3487. "\x40\x41\x42\x43\x44\x45\x46\x47"
  3488. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  3489. "\x50\x51\x52\x53\x54\x55\x56\x57"
  3490. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  3491. "\x60\x61\x62\x63\x64\x65\x66\x67"
  3492. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  3493. "\x70\x71\x72\x73\x74\x75\x76\x77"
  3494. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  3495. "\x80\x81\x82\x83\x84\x85\x86\x87"
  3496. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  3497. "\x90\x91\x92\x93\x94\x95\x96\x97"
  3498. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  3499. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  3500. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  3501. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  3502. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  3503. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  3504. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  3505. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  3506. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  3507. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  3508. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  3509. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  3510. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  3511. "\x00\x03\x06\x09\x0c\x0f\x12\x15"
  3512. "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
  3513. "\x30\x33\x36\x39\x3c\x3f\x42\x45"
  3514. "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
  3515. "\x60\x63\x66\x69\x6c\x6f\x72\x75"
  3516. "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
  3517. "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
  3518. "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
  3519. "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
  3520. "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
  3521. "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
  3522. "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
  3523. "\x20\x23\x26\x29\x2c\x2f\x32\x35"
  3524. "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
  3525. "\x50\x53\x56\x59\x5c\x5f\x62\x65"
  3526. "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
  3527. "\x80\x83\x86\x89\x8c\x8f\x92\x95"
  3528. "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
  3529. "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
  3530. "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
  3531. "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
  3532. "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
  3533. "\x10\x13\x16\x19\x1c\x1f\x22\x25"
  3534. "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
  3535. "\x40\x43\x46\x49\x4c\x4f\x52\x55"
  3536. "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
  3537. "\x70\x73\x76\x79\x7c\x7f\x82\x85"
  3538. "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
  3539. "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
  3540. "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
  3541. "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
  3542. "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
  3543. "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
  3544. "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
  3545. "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
  3546. "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
  3547. "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
  3548. "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
  3549. "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
  3550. "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
  3551. "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
  3552. "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
  3553. "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
  3554. "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
  3555. "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
  3556. "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
  3557. "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
  3558. "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
  3559. "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
  3560. "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
  3561. "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
  3562. "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
  3563. "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
  3564. "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
  3565. "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
  3566. "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
  3567. "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
  3568. "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
  3569. "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
  3570. "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
  3571. "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
  3572. "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
  3573. "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
  3574. "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
  3575. "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
  3576. "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
  3577. "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
  3578. "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
  3579. "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
  3580. "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
  3581. "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
  3582. "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
  3583. "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
  3584. "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
  3585. "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
  3586. "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
  3587. "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
  3588. "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
  3589. "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
  3590. "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
  3591. "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
  3592. "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
  3593. "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
  3594. "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
  3595. "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
  3596. "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
  3597. "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
  3598. "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
  3599. "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
  3600. "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
  3601. "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
  3602. "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
  3603. "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
  3604. "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
  3605. "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
  3606. "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
  3607. "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
  3608. "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
  3609. "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
  3610. "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
  3611. "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
  3612. "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
  3613. "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
  3614. "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
  3615. "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
  3616. "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
  3617. "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
  3618. "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
  3619. "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
  3620. "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
  3621. "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
  3622. "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
  3623. "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
  3624. "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
  3625. "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
  3626. "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
  3627. "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
  3628. "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
  3629. "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
  3630. "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
  3631. "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
  3632. "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
  3633. "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
  3634. "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
  3635. "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
  3636. "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
  3637. "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
  3638. "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
  3639. "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
  3640. "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
  3641. "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
  3642. "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
  3643. "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
  3644. "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
  3645. "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
  3646. "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
  3647. "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
  3648. "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
  3649. "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
  3650. "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
  3651. "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
  3652. "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
  3653. "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
  3654. "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
  3655. "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
  3656. "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
  3657. "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
  3658. "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
  3659. "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
  3660. "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
  3661. "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
  3662. "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
  3663. "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
  3664. "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
  3665. "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
  3666. "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
  3667. "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
  3668. "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
  3669. "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
  3670. "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
  3671. "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
  3672. "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
  3673. "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
  3674. "\x38\x45\x52\x5f\x6c\x79\x86\x93"
  3675. "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
  3676. "\x08\x15\x22\x2f\x3c\x49\x56\x63"
  3677. "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
  3678. "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
  3679. "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
  3680. "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
  3681. "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
  3682. "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
  3683. "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
  3684. "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
  3685. "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
  3686. "\x18\x25\x32\x3f\x4c\x59\x66\x73"
  3687. "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
  3688. "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
  3689. "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
  3690. "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
  3691. "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
  3692. "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
  3693. "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
  3694. "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
  3695. "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
  3696. "\x28\x35\x42\x4f\x5c\x69\x76\x83"
  3697. "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
  3698. "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
  3699. "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
  3700. "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
  3701. "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
  3702. "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
  3703. "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
  3704. "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
  3705. "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
  3706. "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
  3707. "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
  3708. "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
  3709. "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
  3710. "\x48\x57\x66\x75\x84\x93\xa2\xb1"
  3711. "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
  3712. "\x38\x47\x56\x65\x74\x83\x92\xa1"
  3713. "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
  3714. "\x28\x37\x46\x55\x64\x73\x82\x91"
  3715. "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
  3716. "\x18\x27\x36\x45\x54\x63\x72\x81"
  3717. "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
  3718. "\x08\x17\x26\x35\x44\x53\x62\x71"
  3719. "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
  3720. "\xf8\x07\x16\x25\x34\x43\x52\x61"
  3721. "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
  3722. "\xe8\xf7\x06\x15\x24\x33\x42\x51"
  3723. "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
  3724. "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
  3725. "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
  3726. "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
  3727. "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
  3728. "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
  3729. "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
  3730. "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
  3731. "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
  3732. "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
  3733. "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
  3734. "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
  3735. "\x00\x11\x22\x33\x44\x55\x66\x77"
  3736. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
  3737. "\x10\x21\x32\x43\x54\x65\x76\x87"
  3738. "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
  3739. "\x20\x31\x42\x53\x64\x75\x86\x97"
  3740. "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
  3741. "\x30\x41\x52\x63\x74\x85\x96\xa7"
  3742. "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
  3743. "\x40\x51\x62\x73\x84\x95\xa6\xb7"
  3744. "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
  3745. "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
  3746. "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
  3747. "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
  3748. "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
  3749. "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
  3750. "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
  3751. "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
  3752. "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
  3753. "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
  3754. "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
  3755. "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
  3756. "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
  3757. "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
  3758. "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
  3759. "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
  3760. "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
  3761. "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
  3762. "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
  3763. "\xe0\xf1\x02\x13\x24\x35\x46\x57"
  3764. "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
  3765. "\xf0\x01\x12\x23\x34\x45\x56\x67"
  3766. "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
  3767. "\x00\x13\x26\x39\x4c\x5f\x72\x85"
  3768. "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
  3769. "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
  3770. "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
  3771. "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
  3772. "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
  3773. "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
  3774. "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
  3775. "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
  3776. "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
  3777. "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
  3778. "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
  3779. "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
  3780. "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
  3781. "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
  3782. "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
  3783. "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
  3784. "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
  3785. "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
  3786. "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
  3787. "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
  3788. "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
  3789. "\x10\x23\x36\x49\x5c\x6f\x82\x95"
  3790. "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
  3791. "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
  3792. "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
  3793. "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
  3794. "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
  3795. "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
  3796. "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
  3797. "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
  3798. "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
  3799. "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
  3800. "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
  3801. "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
  3802. "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
  3803. "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
  3804. "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
  3805. "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
  3806. "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
  3807. "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
  3808. "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
  3809. "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
  3810. "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
  3811. "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
  3812. "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
  3813. "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
  3814. "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
  3815. "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
  3816. "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
  3817. "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
  3818. "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
  3819. "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
  3820. "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
  3821. "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
  3822. "\x18\x2d\x42\x57\x6c\x81\x96\xab"
  3823. "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
  3824. "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
  3825. "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
  3826. "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
  3827. "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
  3828. "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
  3829. "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
  3830. "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
  3831. "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
  3832. "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
  3833. "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
  3834. "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
  3835. "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
  3836. "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
  3837. "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
  3838. "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
  3839. "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
  3840. "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
  3841. "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
  3842. "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
  3843. "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
  3844. "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
  3845. "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
  3846. "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
  3847. "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
  3848. "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
  3849. "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
  3850. "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
  3851. "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
  3852. "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
  3853. "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
  3854. "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
  3855. "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
  3856. "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
  3857. "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
  3858. "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
  3859. "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
  3860. "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
  3861. "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
  3862. "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
  3863. "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
  3864. "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
  3865. "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
  3866. "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
  3867. "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
  3868. "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
  3869. "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
  3870. "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
  3871. "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
  3872. "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
  3873. "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
  3874. "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
  3875. "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
  3876. "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
  3877. "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
  3878. "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
  3879. "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
  3880. "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
  3881. "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
  3882. "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
  3883. "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
  3884. "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
  3885. "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
  3886. "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
  3887. "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
  3888. "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
  3889. "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
  3890. "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
  3891. "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
  3892. "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
  3893. "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
  3894. "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
  3895. "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
  3896. "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
  3897. "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
  3898. "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
  3899. "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
  3900. "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
  3901. "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
  3902. "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
  3903. "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
  3904. "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
  3905. "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
  3906. "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
  3907. "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
  3908. "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
  3909. "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
  3910. "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
  3911. "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
  3912. "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
  3913. "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
  3914. "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
  3915. "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
  3916. "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
  3917. "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
  3918. "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
  3919. "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
  3920. "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
  3921. "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
  3922. "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
  3923. "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
  3924. "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
  3925. "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
  3926. "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
  3927. "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
  3928. "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
  3929. "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
  3930. "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
  3931. "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
  3932. "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
  3933. "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
  3934. "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
  3935. "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
  3936. "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
  3937. "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
  3938. "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
  3939. "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
  3940. "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
  3941. "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
  3942. "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
  3943. "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
  3944. "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
  3945. "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
  3946. "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
  3947. "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
  3948. "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
  3949. "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
  3950. "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
  3951. "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
  3952. "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
  3953. "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
  3954. "\x78\x95\xb2\xcf\xec\x09\x26\x43"
  3955. "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
  3956. "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
  3957. "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
  3958. "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
  3959. "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
  3960. "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
  3961. "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
  3962. "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
  3963. "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
  3964. "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
  3965. "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
  3966. "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
  3967. "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
  3968. "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
  3969. "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
  3970. "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
  3971. "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
  3972. "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
  3973. "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
  3974. "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
  3975. "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
  3976. "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
  3977. "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
  3978. "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
  3979. "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
  3980. "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
  3981. "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
  3982. "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
  3983. "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
  3984. "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
  3985. "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
  3986. "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
  3987. "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
  3988. "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
  3989. "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
  3990. "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
  3991. "\x00\x21\x42\x63",
  3992. .ilen = 4100,
  3993. .result =
  3994. "\xf0\x5c\x74\xad\x4e\xbc\x99\xe2"
  3995. "\xae\xff\x91\x3a\x44\xcf\x38\x32"
  3996. "\x1e\xad\xa7\xcd\xa1\x39\x95\xaa"
  3997. "\x10\xb1\xb3\x2e\x04\x31\x8f\x86"
  3998. "\xf2\x62\x74\x70\x0c\xa4\x46\x08"
  3999. "\xa8\xb7\x99\xa8\xe9\xd2\x73\x79"
  4000. "\x7e\x6e\xd4\x8f\x1e\xc7\x8e\x31"
  4001. "\x0b\xfa\x4b\xce\xfd\xf3\x57\x71"
  4002. "\xe9\x46\x03\xa5\x3d\x34\x00\xe2"
  4003. "\x18\xff\x75\x6d\x06\x2d\x00\xab"
  4004. "\xb9\x3e\x6c\x59\xc5\x84\x06\xb5"
  4005. "\x8b\xd0\x89\x9c\x4a\x79\x16\xc6"
  4006. "\x3d\x74\x54\xfa\x44\xcd\x23\x26"
  4007. "\x5c\xcf\x7e\x28\x92\x32\xbf\xdf"
  4008. "\xa7\x20\x3c\x74\x58\x2a\x9a\xde"
  4009. "\x61\x00\x1c\x4f\xff\x59\xc4\x22"
  4010. "\xac\x3c\xd0\xe8\x6c\xf9\x97\x1b"
  4011. "\x58\x9b\xad\x71\xe8\xa9\xb5\x0d"
  4012. "\xee\x2f\x04\x1f\x7f\xbc\x99\xee"
  4013. "\x84\xff\x42\x60\xdc\x3a\x18\xa5"
  4014. "\x81\xf9\xef\xdc\x7a\x0f\x65\x41"
  4015. "\x2f\xa3\xd3\xf9\xc2\xcb\xc0\x4d"
  4016. "\x8f\xd3\x76\x96\xad\x49\x6d\x38"
  4017. "\x3d\x39\x0b\x6c\x80\xb7\x54\x69"
  4018. "\xf0\x2c\x90\x02\x29\x0d\x1c\x12"
  4019. "\xad\x55\xc3\x8b\x68\xd9\xcc\xb3"
  4020. "\xb2\x64\x33\x90\x5e\xca\x4b\xe2"
  4021. "\xfb\x75\xdc\x63\xf7\x9f\x82\x74"
  4022. "\xf0\xc9\xaa\x7f\xe9\x2a\x9b\x33"
  4023. "\xbc\x88\x00\x7f\xca\xb2\x1f\x14"
  4024. "\xdb\xc5\x8e\x7b\x11\x3c\x3e\x08"
  4025. "\xf3\x83\xe8\xe0\x94\x86\x2e\x92"
  4026. "\x78\x6b\x01\xc9\xc7\x83\xba\x21"
  4027. "\x6a\x25\x15\x33\x4e\x45\x08\xec"
  4028. "\x35\xdb\xe0\x6e\x31\x51\x79\xa9"
  4029. "\x42\x44\x65\xc1\xa0\xf1\xf9\x2a"
  4030. "\x70\xd5\xb6\xc6\xc1\x8c\x39\xfc"
  4031. "\x25\xa6\x55\xd9\xdd\x2d\x4c\xec"
  4032. "\x49\xc6\xeb\x0e\xa8\x25\x2a\x16"
  4033. "\x1b\x66\x84\xda\xe2\x92\xe5\xc0"
  4034. "\xc8\x53\x07\xaf\x80\x84\xec\xfd"
  4035. "\xcd\xd1\x6e\xcd\x6f\x6a\xf5\x36"
  4036. "\xc5\x15\xe5\x25\x7d\x77\xd1\x1a"
  4037. "\x93\x36\xa9\xcf\x7c\xa4\x54\x4a"
  4038. "\x06\x51\x48\x4e\xf6\x59\x87\xd2"
  4039. "\x04\x02\xef\xd3\x44\xde\x76\x31"
  4040. "\xb3\x34\x17\x1b\x9d\x66\x11\x9f"
  4041. "\x1e\xcc\x17\xe9\xc7\x3c\x1b\xe7"
  4042. "\xcb\x50\x08\xfc\xdc\x2b\x24\xdb"
  4043. "\x65\x83\xd0\x3b\xe3\x30\xea\x94"
  4044. "\x6c\xe7\xe8\x35\x32\xc7\xdb\x64"
  4045. "\xb4\x01\xab\x36\x2c\x77\x13\xaf"
  4046. "\xf8\x2b\x88\x3f\x54\x39\xc4\x44"
  4047. "\xfe\xef\x6f\x68\x34\xbe\x0f\x05"
  4048. "\x16\x6d\xf6\x0a\x30\xe7\xe3\xed"
  4049. "\xc4\xde\x3c\x1b\x13\xd8\xdb\xfe"
  4050. "\x41\x62\xe5\x28\xd4\x8d\xa3\xc7"
  4051. "\x93\x97\xc6\x48\x45\x1d\x9f\x83"
  4052. "\xdf\x4b\x40\x3e\x42\x25\x87\x80"
  4053. "\x4c\x7d\xa8\xd4\x98\x23\x95\x75"
  4054. "\x41\x8c\xda\x41\x9b\xd4\xa7\x06"
  4055. "\xb5\xf1\x71\x09\x53\xbe\xca\xbf"
  4056. "\x32\x03\xed\xf0\x50\x1c\x56\x39"
  4057. "\x5b\xa4\x75\x18\xf7\x9b\x58\xef"
  4058. "\x53\xfc\x2a\x38\x23\x15\x75\xcd"
  4059. "\x45\xe5\x5a\x82\x55\xba\x21\xfa"
  4060. "\xd4\xbd\xc6\x94\x7c\xc5\x80\x12"
  4061. "\xf7\x4b\x32\xc4\x9a\x82\xd8\x28"
  4062. "\x8f\xd9\xc2\x0f\x60\x03\xbe\x5e"
  4063. "\x21\xd6\x5f\x58\xbf\x5c\xb1\x32"
  4064. "\x82\x8d\xa9\xe5\xf2\x66\x1a\xc0"
  4065. "\xa0\xbc\x58\x2f\x71\xf5\x2f\xed"
  4066. "\xd1\x26\xb9\xd8\x49\x5a\x07\x19"
  4067. "\x01\x7c\x59\xb0\xf8\xa4\xb7\xd3"
  4068. "\x7b\x1a\x8c\x38\xf4\x50\xa4\x59"
  4069. "\xb0\xcc\x41\x0b\x88\x7f\xe5\x31"
  4070. "\xb3\x42\xba\xa2\x7e\xd4\x32\x71"
  4071. "\x45\x87\x48\xa9\xc2\xf2\x89\xb3"
  4072. "\xe4\xa7\x7e\x52\x15\x61\xfa\xfe"
  4073. "\xc9\xdd\x81\xeb\x13\xab\xab\xc3"
  4074. "\x98\x59\xd8\x16\x3d\x14\x7a\x1c"
  4075. "\x3c\x41\x9a\x16\x16\x9b\xd2\xd2"
  4076. "\x69\x3a\x29\x23\xac\x86\x32\xa5"
  4077. "\x48\x9c\x9e\xf3\x47\x77\x81\x70"
  4078. "\x24\xe8\x85\xd2\xf5\xb5\xfa\xff"
  4079. "\x59\x6a\xd3\x50\x59\x43\x59\xde"
  4080. "\xd9\xf1\x55\xa5\x0c\xc3\x1a\x1a"
  4081. "\x18\x34\x0d\x1a\x63\x33\xed\x10"
  4082. "\xe0\x1d\x2a\x18\xd2\xc0\x54\xa8"
  4083. "\xca\xb5\x9a\xd3\xdd\xca\x45\x84"
  4084. "\x50\xe7\x0f\xfe\xa4\x99\x5a\xbe"
  4085. "\x43\x2d\x9a\xcb\x92\x3f\x5a\x1d"
  4086. "\x85\xd8\xc9\xdf\x68\xc9\x12\x80"
  4087. "\x56\x0c\xdc\x00\xdc\x3a\x7d\x9d"
  4088. "\xa3\xa2\xe8\x4d\xbf\xf9\x70\xa0"
  4089. "\xa4\x13\x4f\x6b\xaf\x0a\x89\x7f"
  4090. "\xda\xf0\xbf\x9b\xc8\x1d\xe5\xf8"
  4091. "\x2e\x8b\x07\xb5\x73\x1b\xcc\xa2"
  4092. "\xa6\xad\x30\xbc\x78\x3c\x5b\x10"
  4093. "\xfa\x5e\x62\x2d\x9e\x64\xb3\x33"
  4094. "\xce\xf9\x1f\x86\xe7\x8b\xa2\xb8"
  4095. "\xe8\x99\x57\x8c\x11\xed\x66\xd9"
  4096. "\x3c\x72\xb9\xc3\xe6\x4e\x17\x3a"
  4097. "\x6a\xcb\x42\x24\x06\xed\x3e\x4e"
  4098. "\xa3\xe8\x6a\x94\xda\x0d\x4e\xd5"
  4099. "\x14\x19\xcf\xb6\x26\xd8\x2e\xcc"
  4100. "\x64\x76\x38\x49\x4d\xfe\x30\x6d"
  4101. "\xe4\xc8\x8c\x7b\xc4\xe0\x35\xba"
  4102. "\x22\x6e\x76\xe1\x1a\xf2\x53\xc3"
  4103. "\x28\xa2\x82\x1f\x61\x69\xad\xc1"
  4104. "\x7b\x28\x4b\x1e\x6c\x85\x95\x9b"
  4105. "\x51\xb5\x17\x7f\x12\x69\x8c\x24"
  4106. "\xd5\xc7\x5a\x5a\x11\x54\xff\x5a"
  4107. "\xf7\x16\xc3\x91\xa6\xf0\xdc\x0a"
  4108. "\xb6\xa7\x4a\x0d\x7a\x58\xfe\xa5"
  4109. "\xf5\xcb\x8f\x7b\x0e\xea\x57\xe7"
  4110. "\xbd\x79\xd6\x1c\x88\x23\x6c\xf2"
  4111. "\x4d\x29\x77\x53\x35\x6a\x00\x8d"
  4112. "\xcd\xa3\x58\xbe\x77\x99\x18\xf8"
  4113. "\xe6\xe1\x8f\xe9\x37\x8f\xe3\xe2"
  4114. "\x5a\x8a\x93\x25\xaf\xf3\x78\x80"
  4115. "\xbe\xa6\x1b\xc6\xac\x8b\x1c\x91"
  4116. "\x58\xe1\x9f\x89\x35\x9d\x1d\x21"
  4117. "\x29\x9f\xf4\x99\x02\x27\x0f\xa8"
  4118. "\x4f\x79\x94\x2b\x33\x2c\xda\xa2"
  4119. "\x26\x39\x83\x94\xef\x27\xd8\x53"
  4120. "\x8f\x66\x0d\xe4\x41\x7d\x34\xcd"
  4121. "\x43\x7c\x95\x0a\x53\xef\x66\xda"
  4122. "\x7e\x9b\xf3\x93\xaf\xd0\x73\x71"
  4123. "\xba\x40\x9b\x74\xf8\xd7\xd7\x41"
  4124. "\x6d\xaf\x72\x9c\x8d\x21\x87\x3c"
  4125. "\xfd\x0a\x90\xa9\x47\x96\x9e\xd3"
  4126. "\x88\xee\x73\xcf\x66\x2f\x52\x56"
  4127. "\x6d\xa9\x80\x4c\xe2\x6f\x62\x88"
  4128. "\x3f\x0e\x54\x17\x48\x80\x5d\xd3"
  4129. "\xc3\xda\x25\x3d\xa1\xc8\xcb\x9f"
  4130. "\x9b\x70\xb3\xa1\xeb\x04\x52\xa1"
  4131. "\xf2\x22\x0f\xfc\xc8\x18\xfa\xf9"
  4132. "\x85\x9c\xf1\xac\xeb\x0c\x02\x46"
  4133. "\x75\xd2\xf5\x2c\xe3\xd2\x59\x94"
  4134. "\x12\xf3\x3c\xfc\xd7\x92\xfa\x36"
  4135. "\xba\x61\x34\x38\x7c\xda\x48\x3e"
  4136. "\x08\xc9\x39\x23\x5e\x02\x2c\x1a"
  4137. "\x18\x7e\xb4\xd9\xfd\x9e\x40\x02"
  4138. "\xb1\x33\x37\x32\xe7\xde\xd6\xd0"
  4139. "\x7c\x58\x65\x4b\xf8\x34\x27\x9c"
  4140. "\x44\xb4\xbd\xe9\xe9\x4c\x78\x7d"
  4141. "\x4b\x9f\xce\xb1\xcd\x47\xa5\x37"
  4142. "\xe5\x6d\xbd\xb9\x43\x94\x0a\xd4"
  4143. "\xd6\xf9\x04\x5f\xb5\x66\x6c\x1a"
  4144. "\x35\x12\xe3\x36\x28\x27\x36\x58"
  4145. "\x01\x2b\x79\xe4\xba\x6d\x10\x7d"
  4146. "\x65\xdf\x84\x95\xf4\xd5\xb6\x8f"
  4147. "\x2b\x9f\x96\x00\x86\x60\xf0\x21"
  4148. "\x76\xa8\x6a\x8c\x28\x1c\xb3\x6b"
  4149. "\x97\xd7\xb6\x53\x2a\xcc\xab\x40"
  4150. "\x9d\x62\x79\x58\x52\xe6\x65\xb7"
  4151. "\xab\x55\x67\x9c\x89\x7c\x03\xb0"
  4152. "\x73\x59\xc5\x81\xf5\x18\x17\x5c"
  4153. "\x89\xf3\x78\x35\x44\x62\x78\x72"
  4154. "\xd0\x96\xeb\x31\xe7\x87\x77\x14"
  4155. "\x99\x51\xf2\x59\x26\x9e\xb5\xa6"
  4156. "\x45\xfe\x6e\xbd\x07\x4c\x94\x5a"
  4157. "\xa5\x7d\xfc\xf1\x2b\x77\xe2\xfe"
  4158. "\x17\xd4\x84\xa0\xac\xb5\xc7\xda"
  4159. "\xa9\x1a\xb6\xf3\x74\x11\xb4\x9d"
  4160. "\xfb\x79\x2e\x04\x2d\x50\x28\x83"
  4161. "\xbf\xc6\x52\xd3\x34\xd6\xe8\x7a"
  4162. "\xb6\xea\xe7\xa8\x6c\x15\x1e\x2c"
  4163. "\x57\xbc\x48\x4e\x5f\x5c\xb6\x92"
  4164. "\xd2\x49\x77\x81\x6d\x90\x70\xae"
  4165. "\x98\xa1\x03\x0d\x6b\xb9\x77\x14"
  4166. "\xf1\x4e\x23\xd3\xf8\x68\xbd\xc2"
  4167. "\xfe\x04\xb7\x5c\xc5\x17\x60\x8f"
  4168. "\x65\x54\xa4\x7a\x42\xdc\x18\x0d"
  4169. "\xb5\xcf\x0f\xd3\xc7\x91\x66\x1b"
  4170. "\x45\x42\x27\x75\x50\xe5\xee\xb8"
  4171. "\x7f\x33\x2c\xba\x4a\x92\x4d\x2c"
  4172. "\x3c\xe3\x0d\x80\x01\xba\x0d\x29"
  4173. "\xd8\x3c\xe9\x13\x16\x57\xe6\xea"
  4174. "\x94\x52\xe7\x00\x4d\x30\xb0\x0f"
  4175. "\x35\xb8\xb8\xa7\xb1\xb5\x3b\x44"
  4176. "\xe1\x2f\xfd\x88\xed\x43\xe7\x52"
  4177. "\x10\x93\xb3\x8a\x30\x6b\x0a\xf7"
  4178. "\x23\xc6\x50\x9d\x4a\xb0\xde\xc3"
  4179. "\xdc\x9b\x2f\x01\x56\x36\x09\xc5"
  4180. "\x2f\x6b\xfe\xf1\xd8\x27\x45\x03"
  4181. "\x30\x5e\x5c\x5b\xb4\x62\x0e\x1a"
  4182. "\xa9\x21\x2b\x92\x94\x87\x62\x57"
  4183. "\x4c\x10\x74\x1a\xf1\x0a\xc5\x84"
  4184. "\x3b\x9e\x72\x02\xd7\xcc\x09\x56"
  4185. "\xbd\x54\xc1\xf0\xc3\xe3\xb3\xf8"
  4186. "\xd2\x0d\x61\xcb\xef\xce\x0d\x05"
  4187. "\xb0\x98\xd9\x8e\x4f\xf9\xbc\x93"
  4188. "\xa6\xea\xc8\xcf\x10\x53\x4b\xf1"
  4189. "\xec\xfc\x89\xf9\x64\xb0\x22\xbf"
  4190. "\x9e\x55\x46\x9f\x7c\x50\x8e\x84"
  4191. "\x54\x20\x98\xd7\x6c\x40\x1e\xdb"
  4192. "\x69\x34\x78\x61\x24\x21\x9c\x8a"
  4193. "\xb3\x62\x31\x8b\x6e\xf5\x2a\x35"
  4194. "\x86\x13\xb1\x6c\x64\x2e\x41\xa5"
  4195. "\x05\xf2\x42\xba\xd2\x3a\x0d\x8e"
  4196. "\x8a\x59\x94\x3c\xcf\x36\x27\x82"
  4197. "\xc2\x45\xee\x58\xcd\x88\xb4\xec"
  4198. "\xde\xb2\x96\x0a\xaf\x38\x6f\x88"
  4199. "\xd7\xd8\xe1\xdf\xb9\x96\xa9\x0a"
  4200. "\xb1\x95\x28\x86\x20\xe9\x17\x49"
  4201. "\xa2\x29\x38\xaa\xa5\xe9\x6e\xf1"
  4202. "\x19\x27\xc0\xd5\x2a\x22\xc3\x0b"
  4203. "\xdb\x7c\x73\x10\xb9\xba\x89\x76"
  4204. "\x54\xae\x7d\x71\xb3\x93\xf6\x32"
  4205. "\xe6\x47\x43\x55\xac\xa0\x0d\xc2"
  4206. "\x93\x27\x4a\x8e\x0e\x74\x15\xc7"
  4207. "\x0b\x85\xd9\x0c\xa9\x30\x7a\x3e"
  4208. "\xea\x8f\x85\x6d\x3a\x12\x4f\x72"
  4209. "\x69\x58\x7a\x80\xbb\xb5\x97\xf3"
  4210. "\xcf\x70\xd2\x5d\xdd\x4d\x21\x79"
  4211. "\x54\x4d\xe4\x05\xe8\xbd\xc2\x62"
  4212. "\xb1\x3b\x77\x1c\xd6\x5c\xf3\xa0"
  4213. "\x79\x00\xa8\x6c\x29\xd9\x18\x24"
  4214. "\x36\xa2\x46\xc0\x96\x65\x7f\xbd"
  4215. "\x2a\xed\x36\x16\x0c\xaa\x9f\xf4"
  4216. "\xc5\xb4\xe2\x12\xed\x69\xed\x4f"
  4217. "\x26\x2c\x39\x52\x89\x98\xe7\x2c"
  4218. "\x99\xa4\x9e\xa3\x9b\x99\x46\x7a"
  4219. "\x3a\xdc\xa8\x59\xa3\xdb\xc3\x3b"
  4220. "\x95\x0d\x3b\x09\x6e\xee\x83\x5d"
  4221. "\x32\x4d\xed\xab\xfa\x98\x14\x4e"
  4222. "\xc3\x15\x45\x53\x61\xc4\x93\xbd"
  4223. "\x90\xf4\x99\x95\x4c\xe6\x76\x92"
  4224. "\x29\x90\x46\x30\x92\x69\x7d\x13"
  4225. "\xf2\xa5\xcd\x69\x49\x44\xb2\x0f"
  4226. "\x63\x40\x36\x5f\x09\xe2\x78\xf8"
  4227. "\x91\xe3\xe2\xfa\x10\xf7\xc8\x24"
  4228. "\xa8\x89\x32\x5c\x37\x25\x1d\xb2"
  4229. "\xea\x17\x8a\x0a\xa9\x64\xc3\x7c"
  4230. "\x3c\x7c\xbd\xc6\x79\x34\xe7\xe2"
  4231. "\x85\x8e\xbf\xf8\xde\x92\xa0\xae"
  4232. "\x20\xc4\xf6\xbb\x1f\x38\x19\x0e"
  4233. "\xe8\x79\x9c\xa1\x23\xe9\x54\x7e"
  4234. "\x37\x2f\xe2\x94\x32\xaf\xa0\x23"
  4235. "\x49\xe4\xc0\xb3\xac\x00\x8f\x36"
  4236. "\x05\xc4\xa6\x96\xec\x05\x98\x4f"
  4237. "\x96\x67\x57\x1f\x20\x86\x1b\x2d"
  4238. "\x69\xe4\x29\x93\x66\x5f\xaf\x6b"
  4239. "\x88\x26\x2c\x67\x02\x4b\x52\xd0"
  4240. "\x83\x7a\x43\x1f\xc0\x71\x15\x25"
  4241. "\x77\x65\x08\x60\x11\x76\x4c\x8d"
  4242. "\xed\xa9\x27\xc6\xb1\x2a\x2c\x6a"
  4243. "\x4a\x97\xf5\xc6\xb7\x70\x42\xd3"
  4244. "\x03\xd1\x24\x95\xec\x6d\xab\x38"
  4245. "\x72\xce\xe2\x8b\x33\xd7\x51\x09"
  4246. "\xdc\x45\xe0\x09\x96\x32\xf3\xc4"
  4247. "\x84\xdc\x73\x73\x2d\x1b\x11\x98"
  4248. "\xc5\x0e\x69\x28\x94\xc7\xb5\x4d"
  4249. "\xc8\x8a\xd0\xaa\x13\x2e\x18\x74"
  4250. "\xdd\xd1\x1e\xf3\x90\xe8\xfc\x9a"
  4251. "\x72\x4a\x0e\xd1\xe4\xfb\x0d\x96"
  4252. "\xd1\x0c\x79\x85\x1b\x1c\xfe\xe1"
  4253. "\x62\x8f\x7a\x73\x32\xab\xc8\x18"
  4254. "\x69\xe3\x34\x30\xdf\x13\xa6\xe5"
  4255. "\xe8\x0e\x67\x7f\x81\x11\xb4\x60"
  4256. "\xc7\xbd\x79\x65\x50\xdc\xc4\x5b"
  4257. "\xde\x39\xa4\x01\x72\x63\xf3\xd1"
  4258. "\x64\x4e\xdf\xfc\x27\x92\x37\x0d"
  4259. "\x57\xcd\x11\x4f\x11\x04\x8e\x1d"
  4260. "\x16\xf7\xcd\x92\x9a\x99\x30\x14"
  4261. "\xf1\x7c\x67\x1b\x1f\x41\x0b\xe8"
  4262. "\x32\xe8\xb8\xc1\x4f\x54\x86\x4f"
  4263. "\xe5\x79\x81\x73\xcd\x43\x59\x68"
  4264. "\x73\x02\x3b\x78\x21\x72\x43\x00"
  4265. "\x49\x17\xf7\x00\xaf\x68\x24\x53"
  4266. "\x05\x0a\xc3\x33\xe0\x33\x3f\x69"
  4267. "\xd2\x84\x2f\x0b\xed\xde\x04\xf4"
  4268. "\x11\x94\x13\x69\x51\x09\x28\xde"
  4269. "\x57\x5c\xef\xdc\x9a\x49\x1c\x17"
  4270. "\x97\xf3\x96\xc1\x7f\x5d\x2e\x7d"
  4271. "\x55\xb8\xb3\x02\x09\xb3\x1f\xe7"
  4272. "\xc9\x8d\xa3\x36\x34\x8a\x77\x13"
  4273. "\x30\x63\x4c\xa5\xcd\xc3\xe0\x7e"
  4274. "\x05\xa1\x7b\x0c\xcb\x74\x47\x31"
  4275. "\x62\x03\x43\xf1\x87\xb4\xb0\x85"
  4276. "\x87\x8e\x4b\x25\xc7\xcf\xae\x4b"
  4277. "\x36\x46\x3e\x62\xbc\x6f\xeb\x5f"
  4278. "\x73\xac\xe6\x07\xee\xc1\xa1\xd6"
  4279. "\xc4\xab\xc9\xd6\x89\x45\xe1\xf1"
  4280. "\x04\x4e\x1a\x6f\xbb\x4f\x3a\xa3"
  4281. "\xa0\xcb\xa3\x0a\xd8\x71\x35\x55"
  4282. "\xe4\xbc\x2e\x04\x06\xe6\xff\x5b"
  4283. "\x1c\xc0\x11\x7c\xc5\x17\xf3\x38"
  4284. "\xcf\xe9\xba\x0f\x0e\xef\x02\xc2"
  4285. "\x8d\xc6\xbc\x4b\x67\x20\x95\xd7"
  4286. "\x2c\x45\x5b\x86\x44\x8c\x6f\x2e"
  4287. "\x7e\x9f\x1c\x77\xba\x6b\x0e\xa3"
  4288. "\x69\xdc\xab\x24\x57\x60\x47\xc1"
  4289. "\xd1\xa5\x9d\x23\xe6\xb1\x37\xfe"
  4290. "\x93\xd2\x4c\x46\xf9\x0c\xc6\xfb"
  4291. "\xd6\x9d\x99\x69\xab\x7a\x07\x0c"
  4292. "\x65\xe7\xc4\x08\x96\xe2\xa5\x01"
  4293. "\x3f\x46\x07\x05\x7e\xe8\x9a\x90"
  4294. "\x50\xdc\xe9\x7a\xea\xa1\x39\x6e"
  4295. "\x66\xe4\x6f\xa5\x5f\xb2\xd9\x5b"
  4296. "\xf5\xdb\x2a\x32\xf0\x11\x6f\x7c"
  4297. "\x26\x10\x8f\x3d\x80\xe9\x58\xf7"
  4298. "\xe0\xa8\x57\xf8\xdb\x0e\xce\x99"
  4299. "\x63\x19\x3d\xd5\xec\x1b\x77\x69"
  4300. "\x98\xf6\xe4\x5f\x67\x17\x4b\x09"
  4301. "\x85\x62\x82\x70\x18\xe2\x9a\x78"
  4302. "\xe2\x62\xbd\xb4\xf1\x42\xc6\xfb"
  4303. "\x08\xd0\xbd\xeb\x4e\x09\xf2\xc8"
  4304. "\x1e\xdc\x3d\x32\x21\x56\x9c\x4f"
  4305. "\x35\xf3\x61\x06\x72\x84\xc4\x32"
  4306. "\xf2\xf1\xfa\x0b\x2f\xc3\xdb\x02"
  4307. "\x04\xc2\xde\x57\x64\x60\x8d\xcf"
  4308. "\xcb\x86\x5d\x97\x3e\xb1\x9c\x01"
  4309. "\xd6\x28\x8f\x99\xbc\x46\xeb\x05"
  4310. "\xaf\x7e\xb8\x21\x2a\x56\x85\x1c"
  4311. "\xb3\x71\xa0\xde\xca\x96\xf1\x78"
  4312. "\x49\xa2\x99\x81\x80\x5c\x01\xf5"
  4313. "\xa0\xa2\x56\x63\xe2\x70\x07\xa5"
  4314. "\x95\xd6\x85\xeb\x36\x9e\xa9\x51"
  4315. "\x66\x56\x5f\x1d\x02\x19\xe2\xf6"
  4316. "\x4f\x73\x38\x09\x75\x64\x48\xe0"
  4317. "\xf1\x7e\x0e\xe8\x9d\xf9\xed\x94"
  4318. "\xfe\x16\x26\x62\x49\x74\xf4\xb0"
  4319. "\xd4\xa9\x6c\xb0\xfd\x53\xe9\x81"
  4320. "\xe0\x7a\xbf\xcf\xb5\xc4\x01\x81"
  4321. "\x79\x99\x77\x01\x3b\xe9\xa2\xb6"
  4322. "\xe6\x6a\x8a\x9e\x56\x1c\x8d\x1e"
  4323. "\x8f\x06\x55\x2c\x6c\xdc\x92\x87"
  4324. "\x64\x3b\x4b\x19\xa1\x13\x64\x1d"
  4325. "\x4a\xe9\xc0\x00\xb8\x95\xef\x6b"
  4326. "\x1a\x86\x6d\x37\x52\x02\xc2\xe0"
  4327. "\xc8\xbb\x42\x0c\x02\x21\x4a\xc9"
  4328. "\xef\xa0\x54\xe4\x5e\x16\x53\x81"
  4329. "\x70\x62\x10\xaf\xde\xb8\xb5\xd3"
  4330. "\xe8\x5e\x6c\xc3\x8a\x3e\x18\x07"
  4331. "\xf2\x2f\x7d\xa7\xe1\x3d\x4e\xb4"
  4332. "\x26\xa7\xa3\x93\x86\xb2\x04\x1e"
  4333. "\x53\x5d\x86\xd6\xde\x65\xca\xe3"
  4334. "\x4e\xc1\xcf\xef\xc8\x70\x1b\x83"
  4335. "\x13\xdd\x18\x8b\x0d\x76\xd2\xf6"
  4336. "\x37\x7a\x93\x7a\x50\x11\x9f\x96"
  4337. "\x86\x25\xfd\xac\xdc\xbe\x18\x93"
  4338. "\x19\x6b\xec\x58\x4f\xb9\x75\xa7"
  4339. "\xdd\x3f\x2f\xec\xc8\x5a\x84\xab"
  4340. "\xd5\xe4\x8a\x07\xf6\x4d\x23\xd6"
  4341. "\x03\xfb\x03\x6a\xea\x66\xbf\xd4"
  4342. "\xb1\x34\xfb\x78\xe9\x55\xdc\x7c"
  4343. "\x3d\x9c\xe5\x9a\xac\xc3\x7a\x80"
  4344. "\x24\x6d\xa0\xef\x25\x7c\xb7\xea"
  4345. "\xce\x4d\x5f\x18\x60\xce\x87\x22"
  4346. "\x66\x2f\xd5\xdd\xdd\x02\x21\x75"
  4347. "\x82\xa0\x1f\x58\xc6\xd3\x62\xf7"
  4348. "\x32\xd8\xaf\x1e\x07\x77\x51\x96"
  4349. "\xd5\x6b\x1e\x7e\x80\x02\xe8\x67"
  4350. "\xea\x17\x0b\x10\xd2\x3f\x28\x25"
  4351. "\x4f\x05\x77\x02\x14\x69\xf0\x2c"
  4352. "\xbe\x0c\xf1\x74\x30\xd1\xb9\x9b"
  4353. "\xfc\x8c\xbb\x04\x16\xd9\xba\xc3"
  4354. "\xbc\x91\x8a\xc4\x30\xa4\xb0\x12"
  4355. "\x4c\x21\x87\xcb\xc9\x1d\x16\x96"
  4356. "\x07\x6f\x23\x54\xb9\x6f\x79\xe5"
  4357. "\x64\xc0\x64\xda\xb1\xae\xdd\x60"
  4358. "\x6c\x1a\x9d\xd3\x04\x8e\x45\xb0"
  4359. "\x92\x61\xd0\x48\x81\xed\x5e\x1d"
  4360. "\xa0\xc9\xa4\x33\xc7\x13\x51\x5d"
  4361. "\x7f\x83\x73\xb6\x70\x18\x65\x3e"
  4362. "\x2f\x0e\x7a\x12\x39\x98\xab\xd8"
  4363. "\x7e\x6f\xa3\xd1\xba\x56\xad\xbd"
  4364. "\xf0\x03\x01\x1c\x85\x35\x9f\xeb"
  4365. "\x19\x63\xa1\xaf\xfe\x2d\x35\x50"
  4366. "\x39\xa0\x65\x7c\x95\x7e\x6b\xfe"
  4367. "\xc1\xac\x07\x7c\x98\x4f\xbe\x57"
  4368. "\xa7\x22\xec\xe2\x7e\x29\x09\x53"
  4369. "\xe8\xbf\xb4\x7e\x3f\x8f\xfc\x14"
  4370. "\xce\x54\xf9\x18\x58\xb5\xff\x44"
  4371. "\x05\x9d\xce\x1b\xb6\x82\x23\xc8"
  4372. "\x2e\xbc\x69\xbb\x4a\x29\x0f\x65"
  4373. "\x94\xf0\x63\x06\x0e\xef\x8c\xbd"
  4374. "\xff\xfd\xb0\x21\x6e\x57\x05\x75"
  4375. "\xda\xd5\xc4\xeb\x8d\x32\xf7\x50"
  4376. "\xd3\x6f\x22\xed\x5f\x8e\xa2\x5b"
  4377. "\x80\x8c\xc8\x78\x40\x24\x4b\x89"
  4378. "\x30\xce\x7a\x97\x0e\xc4\xaf\xef"
  4379. "\x9b\xb4\xcd\x66\x74\x14\x04\x2b"
  4380. "\xf7\xce\x0b\x1c\x6e\xc2\x78\x8c"
  4381. "\xca\xc5\xd0\x1c\x95\x4a\x91\x2d"
  4382. "\xa7\x20\xeb\x86\x52\xb7\x67\xd8"
  4383. "\x0c\xd6\x04\x14\xde\x51\x74\x75"
  4384. "\xe7\x11\xb4\x87\xa3\x3d\x2d\xad"
  4385. "\x4f\xef\xa0\x0f\x70\x00\x6d\x13"
  4386. "\x19\x1d\x41\x50\xe9\xd8\xf0\x32"
  4387. "\x71\xbc\xd3\x11\xf2\xac\xbe\xaf"
  4388. "\x75\x46\x65\x4e\x07\x34\x37\xa3"
  4389. "\x89\xfe\x75\xd4\x70\x4c\xc6\x3f"
  4390. "\x69\x24\x0e\x38\x67\x43\x8c\xde"
  4391. "\x06\xb5\xb8\xe7\xc4\xf0\x41\x8f"
  4392. "\xf0\xbd\x2f\x0b\xb9\x18\xf8\xde"
  4393. "\x64\xb1\xdb\xee\x00\x50\x77\xe1"
  4394. "\xc7\xff\xa6\xfa\xdd\x70\xf4\xe3"
  4395. "\x93\xe9\x77\x35\x3d\x4b\x2f\x2b"
  4396. "\x6d\x55\xf0\xfc\x88\x54\x4e\x89"
  4397. "\xc1\x8a\x23\x31\x2d\x14\x2a\xb8"
  4398. "\x1b\x15\xdd\x9e\x6e\x7b\xda\x05"
  4399. "\x91\x7d\x62\x64\x96\x72\xde\xfc"
  4400. "\xc1\xec\xf0\x23\x51\x6f\xdb\x5b"
  4401. "\x1d\x08\x57\xce\x09\xb8\xf6\xcd"
  4402. "\x8d\x95\xf2\x20\xbf\x0f\x20\x57"
  4403. "\x98\x81\x84\x4f\x15\x5c\x76\xe7"
  4404. "\x3e\x0a\x3a\x6c\xc4\x8a\xbe\x78"
  4405. "\x74\x77\xc3\x09\x4b\x5d\x48\xe4"
  4406. "\xc8\xcb\x0b\xea\x17\x28\xcf\xcf"
  4407. "\x31\x32\x44\xa4\xe5\x0e\x1a\x98"
  4408. "\x94\xc4\xf0\xff\xae\x3e\x44\xe8"
  4409. "\xa5\xb3\xb5\x37\x2f\xe8\xaf\x6f"
  4410. "\x28\xc1\x37\x5f\x31\xd2\xb9\x33"
  4411. "\xb1\xb2\x52\x94\x75\x2c\x29\x59"
  4412. "\x06\xc2\x25\xe8\x71\x65\x4e\xed"
  4413. "\xc0\x9c\xb1\xbb\x25\xdc\x6c\xe7"
  4414. "\x4b\xa5\x7a\x54\x7a\x60\xff\x7a"
  4415. "\xe0\x50\x40\x96\x35\x63\xe4\x0b"
  4416. "\x76\xbd\xa4\x65\x00\x1b\x57\x88"
  4417. "\xae\xed\x39\x88\x42\x11\x3c\xed"
  4418. "\x85\x67\x7d\xb9\x68\x82\xe9\x43"
  4419. "\x3c\x47\x53\xfa\xe8\xf8\x9f\x1f"
  4420. "\x9f\xef\x0f\xf7\x30\xd9\x30\x0e"
  4421. "\xb9\x9f\x69\x18\x2f\x7e\xf8\xf8"
  4422. "\xf8\x8c\x0f\xd4\x02\x4d\xea\xcd"
  4423. "\x0a\x9c\x6f\x71\x6d\x5a\x4c\x60"
  4424. "\xce\x20\x56\x32\xc6\xc5\x99\x1f"
  4425. "\x09\xe6\x4e\x18\x1a\x15\x13\xa8"
  4426. "\x7d\xb1\x6b\xc0\xb2\x6d\xf8\x26"
  4427. "\x66\xf8\x3d\x18\x74\x70\x66\x7a"
  4428. "\x34\x17\xde\xba\x47\xf1\x06\x18"
  4429. "\xcb\xaf\xeb\x4a\x1e\x8f\xa7\x77"
  4430. "\xe0\x3b\x78\x62\x66\xc9\x10\xea"
  4431. "\x1f\xb7\x29\x0a\x45\xa1\x1d\x1e"
  4432. "\x1d\xe2\x65\x61\x50\x9c\xd7\x05"
  4433. "\xf2\x0b\x5b\x12\x61\x02\xc8\xe5"
  4434. "\x63\x4f\x20\x0c\x07\x17\x33\x5e"
  4435. "\x03\x9a\x53\x0f\x2e\x55\xfe\x50"
  4436. "\x43\x7d\xd0\xb6\x7e\x5a\xda\xae"
  4437. "\x58\xef\x15\xa9\x83\xd9\x46\xb1"
  4438. "\x42\xaa\xf5\x02\x6c\xce\x92\x06"
  4439. "\x1b\xdb\x66\x45\x91\x79\xc2\x2d"
  4440. "\xe6\x53\xd3\x14\xfd\xbb\x44\x63"
  4441. "\xc6\xd7\x3d\x7a\x0c\x75\x78\x9d"
  4442. "\x5c\xa6\x39\xb3\xe5\x63\xca\x8b"
  4443. "\xfe\xd3\xef\x60\x83\xf6\x8e\x70"
  4444. "\xb6\x67\xc7\x77\xed\x23\xef\x4c"
  4445. "\xf0\xed\x2d\x07\x59\x6f\xc1\x01"
  4446. "\x34\x37\x08\xab\xd9\x1f\x09\xb1"
  4447. "\xce\x5b\x17\xff\x74\xf8\x9c\xd5"
  4448. "\x2c\x56\x39\x79\x0f\x69\x44\x75"
  4449. "\x58\x27\x01\xc4\xbf\xa7\xa1\x1d"
  4450. "\x90\x17\x77\x86\x5a\x3f\xd9\xd1"
  4451. "\x0e\xa0\x10\xf8\xec\x1e\xa5\x7f"
  4452. "\x5e\x36\xd1\xe3\x04\x2c\x70\xf7"
  4453. "\x8e\xc0\x98\x2f\x6c\x94\x2b\x41"
  4454. "\xb7\x60\x00\xb7\x2e\xb8\x02\x8d"
  4455. "\xb8\xb0\xd3\x86\xba\x1d\xd7\x90"
  4456. "\xd6\xb6\xe1\xfc\xd7\xd8\x28\x06"
  4457. "\x63\x9b\xce\x61\x24\x79\xc0\x70"
  4458. "\x52\xd0\xb6\xd4\x28\x95\x24\x87"
  4459. "\x03\x1f\xb7\x9a\xda\xa3\xfb\x52"
  4460. "\x5b\x68\xe7\x4c\x8c\x24\xe1\x42"
  4461. "\xf7\xd5\xfd\xad\x06\x32\x9f\xba"
  4462. "\xc1\xfc\xdd\xc6\xfc\xfc\xb3\x38"
  4463. "\x74\x56\x58\x40\x02\x37\x52\x2c"
  4464. "\x55\xcc\xb3\x9e\x7a\xe9\xd4\x38"
  4465. "\x41\x5e\x0c\x35\xe2\x11\xd1\x13"
  4466. "\xf8\xb7\x8d\x72\x6b\x22\x2a\xb0"
  4467. "\xdb\x08\xba\x35\xb9\x3f\xc8\xd3"
  4468. "\x24\x90\xec\x58\xd2\x09\xc7\x2d"
  4469. "\xed\x38\x80\x36\x72\x43\x27\x49"
  4470. "\x4a\x80\x8a\xa2\xe8\xd3\xda\x30"
  4471. "\x7d\xb6\x82\x37\x86\x92\x86\x3e"
  4472. "\x08\xb2\x28\x5a\x55\x44\x24\x7d"
  4473. "\x40\x48\x8a\xb6\x89\x58\x08\xa0"
  4474. "\xd6\x6d\x3a\x17\xbf\xf6\x54\xa2"
  4475. "\xf5\xd3\x8c\x0f\x78\x12\x57\x8b"
  4476. "\xd5\xc2\xfd\x58\x5b\x7f\x38\xe3"
  4477. "\xcc\xb7\x7c\x48\xb3\x20\xe8\x81"
  4478. "\x14\x32\x45\x05\xe0\xdb\x9f\x75"
  4479. "\x85\xb4\x6a\xfc\x95\xe3\x54\x22"
  4480. "\x12\xee\x30\xfe\xd8\x30\xef\x34"
  4481. "\x50\xab\x46\x30\x98\x2f\xb7\xc0"
  4482. "\x15\xa2\x83\xb6\xf2\x06\x21\xa2"
  4483. "\xc3\x26\x37\x14\xd1\x4d\xb5\x10"
  4484. "\x52\x76\x4d\x6a\xee\xb5\x2b\x15"
  4485. "\xb7\xf9\x51\xe8\x2a\xaf\xc7\xfa"
  4486. "\x77\xaf\xb0\x05\x4d\xd1\x68\x8e"
  4487. "\x74\x05\x9f\x9d\x93\xa5\x3e\x7f"
  4488. "\x4e\x5f\x9d\xcb\x09\xc7\x83\xe3"
  4489. "\x02\x9d\x27\x1f\xef\x85\x05\x8d"
  4490. "\xec\x55\x88\x0f\x0d\x7c\x4c\xe8"
  4491. "\xa1\x75\xa0\xd8\x06\x47\x14\xef"
  4492. "\xaa\x61\xcf\x26\x15\xad\xd8\xa3"
  4493. "\xaa\x75\xf2\x78\x4a\x5a\x61\xdf"
  4494. "\x8b\xc7\x04\xbc\xb2\x32\xd2\x7e"
  4495. "\x42\xee\xb4\x2f\x51\xff\x7b\x2e"
  4496. "\xd3\x02\xe8\xdc\x5d\x0d\x50\xdc"
  4497. "\xae\xb7\x46\xf9\xa8\xe6\xd0\x16"
  4498. "\xcc\xe6\x2c\x81\xc7\xad\xe9\xf0"
  4499. "\x05\x72\x6d\x3d\x0a\x7a\xa9\x02"
  4500. "\xac\x82\x93\x6e\xb6\x1c\x28\xfc"
  4501. "\x44\x12\xfb\x73\x77\xd4\x13\x39"
  4502. "\x29\x88\x8a\xf3\x5c\xa6\x36\xa0"
  4503. "\x2a\xed\x7e\xb1\x1d\xd6\x4c\x6b"
  4504. "\x41\x01\x18\x5d\x5d\x07\x97\xa6"
  4505. "\x4b\xef\x31\x18\xea\xac\xb1\x84"
  4506. "\x21\xed\xda\x86",
  4507. .rlen = 4100,
  4508. },
  4509. };
  4510. static struct cipher_testvec aes_ctr_dec_tv_template[] = {
  4511. { /* From RFC 3686 */
  4512. .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
  4513. "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
  4514. "\x00\x00\x00\x30",
  4515. .klen = 20,
  4516. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  4517. .input = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
  4518. "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
  4519. .ilen = 16,
  4520. .result = "Single block msg",
  4521. .rlen = 16,
  4522. }, {
  4523. .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
  4524. "\x43\xd6\xce\x1f\x32\x53\x91\x63"
  4525. "\x00\x6c\xb6\xdb",
  4526. .klen = 20,
  4527. .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
  4528. .input = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
  4529. "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
  4530. "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
  4531. "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
  4532. .ilen = 32,
  4533. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  4534. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4535. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4536. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  4537. .rlen = 32,
  4538. }, {
  4539. .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
  4540. "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
  4541. "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
  4542. "\x00\x00\x00\x48",
  4543. .klen = 28,
  4544. .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
  4545. .input = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
  4546. "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
  4547. .ilen = 16,
  4548. .result = "Single block msg",
  4549. .rlen = 16,
  4550. }, {
  4551. .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
  4552. "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
  4553. "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
  4554. "\x00\x96\xb0\x3b",
  4555. .klen = 28,
  4556. .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
  4557. .input = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
  4558. "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
  4559. "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
  4560. "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
  4561. .ilen = 32,
  4562. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  4563. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4564. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4565. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  4566. .rlen = 32,
  4567. }, {
  4568. .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
  4569. "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
  4570. "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
  4571. "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
  4572. "\x00\x00\x00\x60",
  4573. .klen = 36,
  4574. .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
  4575. .input = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
  4576. "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
  4577. .ilen = 16,
  4578. .result = "Single block msg",
  4579. .rlen = 16,
  4580. }, {
  4581. .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
  4582. "\x07\x96\x36\x58\x79\xef\xf8\x86"
  4583. "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
  4584. "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
  4585. "\x00\xfa\xac\x24",
  4586. .klen = 36,
  4587. .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
  4588. .input = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
  4589. "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
  4590. "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
  4591. "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
  4592. .ilen = 32,
  4593. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  4594. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4595. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4596. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  4597. .rlen = 32,
  4598. },
  4599. };
  4600. static struct aead_testvec aes_gcm_enc_tv_template[] = {
  4601. { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
  4602. .key = zeroed_string,
  4603. .klen = 16,
  4604. .result = "\x58\xe2\xfc\xce\xfa\x7e\x30\x61"
  4605. "\x36\x7f\x1d\x57\xa4\xe7\x45\x5a",
  4606. .rlen = 16,
  4607. }, {
  4608. .key = zeroed_string,
  4609. .klen = 16,
  4610. .input = zeroed_string,
  4611. .ilen = 16,
  4612. .result = "\x03\x88\xda\xce\x60\xb6\xa3\x92"
  4613. "\xf3\x28\xc2\xb9\x71\xb2\xfe\x78"
  4614. "\xab\x6e\x47\xd4\x2c\xec\x13\xbd"
  4615. "\xf5\x3a\x67\xb2\x12\x57\xbd\xdf",
  4616. .rlen = 32,
  4617. }, {
  4618. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  4619. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  4620. .klen = 16,
  4621. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  4622. "\xde\xca\xf8\x88",
  4623. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  4624. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  4625. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  4626. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  4627. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  4628. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  4629. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  4630. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  4631. .ilen = 64,
  4632. .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  4633. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  4634. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  4635. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  4636. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  4637. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  4638. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  4639. "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
  4640. "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
  4641. "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
  4642. .rlen = 80,
  4643. }, {
  4644. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  4645. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  4646. .klen = 16,
  4647. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  4648. "\xde\xca\xf8\x88",
  4649. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  4650. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  4651. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  4652. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  4653. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  4654. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  4655. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  4656. "\xba\x63\x7b\x39",
  4657. .ilen = 60,
  4658. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  4659. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  4660. "\xab\xad\xda\xd2",
  4661. .alen = 20,
  4662. .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  4663. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  4664. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  4665. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  4666. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  4667. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  4668. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  4669. "\x3d\x58\xe0\x91"
  4670. "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
  4671. "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
  4672. .rlen = 76,
  4673. }, {
  4674. .key = zeroed_string,
  4675. .klen = 24,
  4676. .result = "\xcd\x33\xb2\x8a\xc7\x73\xf7\x4b"
  4677. "\xa0\x0e\xd1\xf3\x12\x57\x24\x35",
  4678. .rlen = 16,
  4679. }, {
  4680. .key = zeroed_string,
  4681. .klen = 24,
  4682. .input = zeroed_string,
  4683. .ilen = 16,
  4684. .result = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
  4685. "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
  4686. "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
  4687. "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
  4688. .rlen = 32,
  4689. }, {
  4690. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  4691. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  4692. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  4693. .klen = 24,
  4694. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  4695. "\xde\xca\xf8\x88",
  4696. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  4697. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  4698. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  4699. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  4700. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  4701. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  4702. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  4703. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  4704. .ilen = 64,
  4705. .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  4706. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  4707. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  4708. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  4709. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  4710. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  4711. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  4712. "\xcc\xda\x27\x10\xac\xad\xe2\x56"
  4713. "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
  4714. "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
  4715. .rlen = 80,
  4716. }, {
  4717. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  4718. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  4719. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  4720. .klen = 24,
  4721. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  4722. "\xde\xca\xf8\x88",
  4723. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  4724. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  4725. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  4726. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  4727. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  4728. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  4729. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  4730. "\xba\x63\x7b\x39",
  4731. .ilen = 60,
  4732. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  4733. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  4734. "\xab\xad\xda\xd2",
  4735. .alen = 20,
  4736. .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  4737. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  4738. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  4739. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  4740. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  4741. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  4742. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  4743. "\xcc\xda\x27\x10"
  4744. "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
  4745. "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
  4746. .rlen = 76,
  4747. .np = 2,
  4748. .tap = { 32, 28 },
  4749. .anp = 2,
  4750. .atap = { 8, 12 }
  4751. }, {
  4752. .key = zeroed_string,
  4753. .klen = 32,
  4754. .result = "\x53\x0f\x8a\xfb\xc7\x45\x36\xb9"
  4755. "\xa9\x63\xb4\xf1\xc4\xcb\x73\x8b",
  4756. .rlen = 16,
  4757. }
  4758. };
  4759. static struct aead_testvec aes_gcm_dec_tv_template[] = {
  4760. { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
  4761. .key = zeroed_string,
  4762. .klen = 32,
  4763. .input = "\xce\xa7\x40\x3d\x4d\x60\x6b\x6e"
  4764. "\x07\x4e\xc5\xd3\xba\xf3\x9d\x18"
  4765. "\xd0\xd1\xc8\xa7\x99\x99\x6b\xf0"
  4766. "\x26\x5b\x98\xb5\xd4\x8a\xb9\x19",
  4767. .ilen = 32,
  4768. .result = zeroed_string,
  4769. .rlen = 16,
  4770. }, {
  4771. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  4772. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  4773. "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  4774. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  4775. .klen = 32,
  4776. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  4777. "\xde\xca\xf8\x88",
  4778. .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
  4779. "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
  4780. "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
  4781. "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
  4782. "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
  4783. "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
  4784. "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
  4785. "\xbc\xc9\xf6\x62\x89\x80\x15\xad"
  4786. "\xb0\x94\xda\xc5\xd9\x34\x71\xbd"
  4787. "\xec\x1a\x50\x22\x70\xe3\xcc\x6c",
  4788. .ilen = 80,
  4789. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  4790. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  4791. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  4792. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  4793. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  4794. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  4795. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  4796. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  4797. .rlen = 64,
  4798. }, {
  4799. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  4800. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  4801. "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  4802. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  4803. .klen = 32,
  4804. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  4805. "\xde\xca\xf8\x88",
  4806. .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
  4807. "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
  4808. "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
  4809. "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
  4810. "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
  4811. "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
  4812. "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
  4813. "\xbc\xc9\xf6\x62"
  4814. "\x76\xfc\x6e\xce\x0f\x4e\x17\x68"
  4815. "\xcd\xdf\x88\x53\xbb\x2d\x55\x1b",
  4816. .ilen = 76,
  4817. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  4818. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  4819. "\xab\xad\xda\xd2",
  4820. .alen = 20,
  4821. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  4822. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  4823. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  4824. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  4825. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  4826. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  4827. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  4828. "\xba\x63\x7b\x39",
  4829. .rlen = 60,
  4830. .np = 2,
  4831. .tap = { 48, 28 },
  4832. .anp = 3,
  4833. .atap = { 8, 8, 4 }
  4834. }, {
  4835. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  4836. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  4837. .klen = 16,
  4838. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  4839. "\xde\xca\xf8\x88",
  4840. .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  4841. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  4842. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  4843. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  4844. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  4845. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  4846. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  4847. "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
  4848. "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
  4849. "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
  4850. .ilen = 80,
  4851. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  4852. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  4853. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  4854. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  4855. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  4856. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  4857. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  4858. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  4859. .rlen = 64,
  4860. }, {
  4861. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  4862. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  4863. .klen = 16,
  4864. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  4865. "\xde\xca\xf8\x88",
  4866. .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  4867. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  4868. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  4869. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  4870. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  4871. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  4872. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  4873. "\x3d\x58\xe0\x91"
  4874. "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
  4875. "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
  4876. .ilen = 76,
  4877. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  4878. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  4879. "\xab\xad\xda\xd2",
  4880. .alen = 20,
  4881. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  4882. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  4883. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  4884. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  4885. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  4886. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  4887. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  4888. "\xba\x63\x7b\x39",
  4889. .rlen = 60,
  4890. }, {
  4891. .key = zeroed_string,
  4892. .klen = 24,
  4893. .input = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
  4894. "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
  4895. "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
  4896. "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
  4897. .ilen = 32,
  4898. .result = zeroed_string,
  4899. .rlen = 16,
  4900. }, {
  4901. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  4902. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  4903. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  4904. .klen = 24,
  4905. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  4906. "\xde\xca\xf8\x88",
  4907. .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  4908. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  4909. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  4910. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  4911. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  4912. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  4913. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  4914. "\xcc\xda\x27\x10\xac\xad\xe2\x56"
  4915. "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
  4916. "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
  4917. .ilen = 80,
  4918. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  4919. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  4920. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  4921. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  4922. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  4923. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  4924. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  4925. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  4926. .rlen = 64,
  4927. }, {
  4928. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  4929. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  4930. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  4931. .klen = 24,
  4932. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  4933. "\xde\xca\xf8\x88",
  4934. .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  4935. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  4936. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  4937. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  4938. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  4939. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  4940. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  4941. "\xcc\xda\x27\x10"
  4942. "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
  4943. "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
  4944. .ilen = 76,
  4945. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  4946. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  4947. "\xab\xad\xda\xd2",
  4948. .alen = 20,
  4949. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  4950. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  4951. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  4952. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  4953. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  4954. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  4955. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  4956. "\xba\x63\x7b\x39",
  4957. .rlen = 60,
  4958. }
  4959. };
  4960. static struct aead_testvec aes_ccm_enc_tv_template[] = {
  4961. { /* From RFC 3610 */
  4962. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  4963. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  4964. .klen = 16,
  4965. .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
  4966. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  4967. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  4968. .alen = 8,
  4969. .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  4970. "\x10\x11\x12\x13\x14\x15\x16\x17"
  4971. "\x18\x19\x1a\x1b\x1c\x1d\x1e",
  4972. .ilen = 23,
  4973. .result = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
  4974. "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
  4975. "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
  4976. "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
  4977. .rlen = 31,
  4978. }, {
  4979. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  4980. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  4981. .klen = 16,
  4982. .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
  4983. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  4984. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  4985. "\x08\x09\x0a\x0b",
  4986. .alen = 12,
  4987. .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  4988. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  4989. "\x1c\x1d\x1e\x1f",
  4990. .ilen = 20,
  4991. .result = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
  4992. "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
  4993. "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
  4994. "\x7d\x9c\x2d\x93",
  4995. .rlen = 28,
  4996. }, {
  4997. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  4998. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  4999. .klen = 16,
  5000. .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
  5001. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  5002. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  5003. .alen = 8,
  5004. .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5005. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5006. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  5007. "\x20",
  5008. .ilen = 25,
  5009. .result = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
  5010. "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
  5011. "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
  5012. "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
  5013. "\x7e\x5f\x4e",
  5014. .rlen = 35,
  5015. }, {
  5016. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  5017. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  5018. .klen = 16,
  5019. .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
  5020. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  5021. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5022. "\x08\x09\x0a\x0b",
  5023. .alen = 12,
  5024. .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  5025. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  5026. "\x1c\x1d\x1e",
  5027. .ilen = 19,
  5028. .result = "\x07\x34\x25\x94\x15\x77\x85\x15"
  5029. "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
  5030. "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
  5031. "\x4d\x99\x99\x88\xdd",
  5032. .rlen = 29,
  5033. }, {
  5034. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  5035. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  5036. .klen = 16,
  5037. .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
  5038. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  5039. .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
  5040. .alen = 8,
  5041. .input = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
  5042. "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
  5043. "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
  5044. .ilen = 24,
  5045. .result = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
  5046. "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
  5047. "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
  5048. "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
  5049. .rlen = 32,
  5050. }, {
  5051. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  5052. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  5053. .klen = 16,
  5054. .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
  5055. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  5056. .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
  5057. "\x20\xea\x60\xc0",
  5058. .alen = 12,
  5059. .input = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
  5060. "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
  5061. "\x3a\x80\x3b\xa8\x7f",
  5062. .ilen = 21,
  5063. .result = "\x00\x97\x69\xec\xab\xdf\x48\x62"
  5064. "\x55\x94\xc5\x92\x51\xe6\x03\x57"
  5065. "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
  5066. "\x5a\xe0\x70\x45\x51",
  5067. .rlen = 29,
  5068. }, {
  5069. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  5070. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  5071. .klen = 16,
  5072. .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
  5073. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  5074. .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
  5075. .alen = 8,
  5076. .input = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
  5077. "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
  5078. "\x98\x09\xd6\x7d\xbe\xdd\x18",
  5079. .ilen = 23,
  5080. .result = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
  5081. "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
  5082. "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
  5083. "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
  5084. "\xba",
  5085. .rlen = 33,
  5086. },
  5087. };
  5088. static struct aead_testvec aes_ccm_dec_tv_template[] = {
  5089. { /* From RFC 3610 */
  5090. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  5091. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  5092. .klen = 16,
  5093. .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
  5094. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  5095. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  5096. .alen = 8,
  5097. .input = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
  5098. "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
  5099. "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
  5100. "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
  5101. .ilen = 31,
  5102. .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5103. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5104. "\x18\x19\x1a\x1b\x1c\x1d\x1e",
  5105. .rlen = 23,
  5106. }, {
  5107. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  5108. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  5109. .klen = 16,
  5110. .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
  5111. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  5112. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5113. "\x08\x09\x0a\x0b",
  5114. .alen = 12,
  5115. .input = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
  5116. "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
  5117. "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
  5118. "\x7d\x9c\x2d\x93",
  5119. .ilen = 28,
  5120. .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  5121. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  5122. "\x1c\x1d\x1e\x1f",
  5123. .rlen = 20,
  5124. }, {
  5125. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  5126. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  5127. .klen = 16,
  5128. .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
  5129. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  5130. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  5131. .alen = 8,
  5132. .input = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
  5133. "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
  5134. "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
  5135. "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
  5136. "\x7e\x5f\x4e",
  5137. .ilen = 35,
  5138. .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  5139. "\x10\x11\x12\x13\x14\x15\x16\x17"
  5140. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  5141. "\x20",
  5142. .rlen = 25,
  5143. }, {
  5144. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  5145. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  5146. .klen = 16,
  5147. .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
  5148. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  5149. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  5150. "\x08\x09\x0a\x0b",
  5151. .alen = 12,
  5152. .input = "\x07\x34\x25\x94\x15\x77\x85\x15"
  5153. "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
  5154. "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
  5155. "\x4d\x99\x99\x88\xdd",
  5156. .ilen = 29,
  5157. .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  5158. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  5159. "\x1c\x1d\x1e",
  5160. .rlen = 19,
  5161. }, {
  5162. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  5163. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  5164. .klen = 16,
  5165. .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
  5166. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  5167. .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
  5168. .alen = 8,
  5169. .input = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
  5170. "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
  5171. "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
  5172. "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
  5173. .ilen = 32,
  5174. .result = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
  5175. "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
  5176. "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
  5177. .rlen = 24,
  5178. }, {
  5179. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  5180. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  5181. .klen = 16,
  5182. .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
  5183. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  5184. .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
  5185. "\x20\xea\x60\xc0",
  5186. .alen = 12,
  5187. .input = "\x00\x97\x69\xec\xab\xdf\x48\x62"
  5188. "\x55\x94\xc5\x92\x51\xe6\x03\x57"
  5189. "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
  5190. "\x5a\xe0\x70\x45\x51",
  5191. .ilen = 29,
  5192. .result = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
  5193. "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
  5194. "\x3a\x80\x3b\xa8\x7f",
  5195. .rlen = 21,
  5196. }, {
  5197. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  5198. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  5199. .klen = 16,
  5200. .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
  5201. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  5202. .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
  5203. .alen = 8,
  5204. .input = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
  5205. "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
  5206. "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
  5207. "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
  5208. "\xba",
  5209. .ilen = 33,
  5210. .result = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
  5211. "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
  5212. "\x98\x09\xd6\x7d\xbe\xdd\x18",
  5213. .rlen = 23,
  5214. },
  5215. };
  5216. /* Cast5 test vectors from RFC 2144 */
  5217. #define CAST5_ENC_TEST_VECTORS 3
  5218. #define CAST5_DEC_TEST_VECTORS 3
  5219. static struct cipher_testvec cast5_enc_tv_template[] = {
  5220. {
  5221. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  5222. "\x23\x45\x67\x89\x34\x56\x78\x9a",
  5223. .klen = 16,
  5224. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  5225. .ilen = 8,
  5226. .result = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
  5227. .rlen = 8,
  5228. }, {
  5229. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  5230. "\x23\x45",
  5231. .klen = 10,
  5232. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  5233. .ilen = 8,
  5234. .result = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
  5235. .rlen = 8,
  5236. }, {
  5237. .key = "\x01\x23\x45\x67\x12",
  5238. .klen = 5,
  5239. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  5240. .ilen = 8,
  5241. .result = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
  5242. .rlen = 8,
  5243. },
  5244. };
  5245. static struct cipher_testvec cast5_dec_tv_template[] = {
  5246. {
  5247. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  5248. "\x23\x45\x67\x89\x34\x56\x78\x9a",
  5249. .klen = 16,
  5250. .input = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
  5251. .ilen = 8,
  5252. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  5253. .rlen = 8,
  5254. }, {
  5255. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  5256. "\x23\x45",
  5257. .klen = 10,
  5258. .input = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
  5259. .ilen = 8,
  5260. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  5261. .rlen = 8,
  5262. }, {
  5263. .key = "\x01\x23\x45\x67\x12",
  5264. .klen = 5,
  5265. .input = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
  5266. .ilen = 8,
  5267. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  5268. .rlen = 8,
  5269. },
  5270. };
  5271. /*
  5272. * ARC4 test vectors from OpenSSL
  5273. */
  5274. #define ARC4_ENC_TEST_VECTORS 7
  5275. #define ARC4_DEC_TEST_VECTORS 7
  5276. static struct cipher_testvec arc4_enc_tv_template[] = {
  5277. {
  5278. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  5279. .klen = 8,
  5280. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  5281. .ilen = 8,
  5282. .result = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
  5283. .rlen = 8,
  5284. }, {
  5285. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  5286. .klen = 8,
  5287. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  5288. .ilen = 8,
  5289. .result = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
  5290. .rlen = 8,
  5291. }, {
  5292. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  5293. .klen = 8,
  5294. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  5295. .ilen = 8,
  5296. .result = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
  5297. .rlen = 8,
  5298. }, {
  5299. .key = "\xef\x01\x23\x45",
  5300. .klen = 4,
  5301. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  5302. "\x00\x00\x00\x00\x00\x00\x00\x00"
  5303. "\x00\x00\x00\x00",
  5304. .ilen = 20,
  5305. .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  5306. "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
  5307. "\x36\xb6\x78\x58",
  5308. .rlen = 20,
  5309. }, {
  5310. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  5311. .klen = 8,
  5312. .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  5313. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  5314. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  5315. "\x12\x34\x56\x78",
  5316. .ilen = 28,
  5317. .result = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
  5318. "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
  5319. "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
  5320. "\x40\x01\x1e\xcf",
  5321. .rlen = 28,
  5322. }, {
  5323. .key = "\xef\x01\x23\x45",
  5324. .klen = 4,
  5325. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  5326. "\x00\x00",
  5327. .ilen = 10,
  5328. .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  5329. "\xbd\x61",
  5330. .rlen = 10,
  5331. }, {
  5332. .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
  5333. "\x00\x00\x00\x00\x00\x00\x00\x00",
  5334. .klen = 16,
  5335. .input = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
  5336. .ilen = 8,
  5337. .result = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
  5338. .rlen = 8,
  5339. },
  5340. };
  5341. static struct cipher_testvec arc4_dec_tv_template[] = {
  5342. {
  5343. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  5344. .klen = 8,
  5345. .input = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
  5346. .ilen = 8,
  5347. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  5348. .rlen = 8,
  5349. }, {
  5350. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  5351. .klen = 8,
  5352. .input = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
  5353. .ilen = 8,
  5354. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  5355. .rlen = 8,
  5356. }, {
  5357. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  5358. .klen = 8,
  5359. .input = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
  5360. .ilen = 8,
  5361. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  5362. .rlen = 8,
  5363. }, {
  5364. .key = "\xef\x01\x23\x45",
  5365. .klen = 4,
  5366. .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  5367. "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
  5368. "\x36\xb6\x78\x58",
  5369. .ilen = 20,
  5370. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  5371. "\x00\x00\x00\x00\x00\x00\x00\x00"
  5372. "\x00\x00\x00\x00",
  5373. .rlen = 20,
  5374. }, {
  5375. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  5376. .klen = 8,
  5377. .input = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
  5378. "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
  5379. "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
  5380. "\x40\x01\x1e\xcf",
  5381. .ilen = 28,
  5382. .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  5383. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  5384. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  5385. "\x12\x34\x56\x78",
  5386. .rlen = 28,
  5387. }, {
  5388. .key = "\xef\x01\x23\x45",
  5389. .klen = 4,
  5390. .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  5391. "\xbd\x61",
  5392. .ilen = 10,
  5393. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  5394. "\x00\x00",
  5395. .rlen = 10,
  5396. }, {
  5397. .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
  5398. "\x00\x00\x00\x00\x00\x00\x00\x00",
  5399. .klen = 16,
  5400. .input = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
  5401. .ilen = 8,
  5402. .result = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
  5403. .rlen = 8,
  5404. },
  5405. };
  5406. /*
  5407. * TEA test vectors
  5408. */
  5409. #define TEA_ENC_TEST_VECTORS 4
  5410. #define TEA_DEC_TEST_VECTORS 4
  5411. static struct cipher_testvec tea_enc_tv_template[] = {
  5412. {
  5413. .key = zeroed_string,
  5414. .klen = 16,
  5415. .input = zeroed_string,
  5416. .ilen = 8,
  5417. .result = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
  5418. .rlen = 8,
  5419. }, {
  5420. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  5421. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  5422. .klen = 16,
  5423. .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  5424. .ilen = 8,
  5425. .result = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
  5426. .rlen = 8,
  5427. }, {
  5428. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  5429. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  5430. .klen = 16,
  5431. .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  5432. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  5433. .ilen = 16,
  5434. .result = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
  5435. "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
  5436. .rlen = 16,
  5437. }, {
  5438. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  5439. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  5440. .klen = 16,
  5441. .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
  5442. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  5443. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  5444. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  5445. .ilen = 32,
  5446. .result = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
  5447. "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
  5448. "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
  5449. "\x07\x89\x73\xc2\x45\x92\xc6\x90",
  5450. .rlen = 32,
  5451. }
  5452. };
  5453. static struct cipher_testvec tea_dec_tv_template[] = {
  5454. {
  5455. .key = zeroed_string,
  5456. .klen = 16,
  5457. .input = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
  5458. .ilen = 8,
  5459. .result = zeroed_string,
  5460. .rlen = 8,
  5461. }, {
  5462. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  5463. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  5464. .klen = 16,
  5465. .input = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
  5466. .ilen = 8,
  5467. .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  5468. .rlen = 8,
  5469. }, {
  5470. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  5471. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  5472. .klen = 16,
  5473. .input = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
  5474. "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
  5475. .ilen = 16,
  5476. .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  5477. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  5478. .rlen = 16,
  5479. }, {
  5480. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  5481. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  5482. .klen = 16,
  5483. .input = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
  5484. "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
  5485. "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
  5486. "\x07\x89\x73\xc2\x45\x92\xc6\x90",
  5487. .ilen = 32,
  5488. .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
  5489. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  5490. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  5491. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  5492. .rlen = 32,
  5493. }
  5494. };
  5495. /*
  5496. * XTEA test vectors
  5497. */
  5498. #define XTEA_ENC_TEST_VECTORS 4
  5499. #define XTEA_DEC_TEST_VECTORS 4
  5500. static struct cipher_testvec xtea_enc_tv_template[] = {
  5501. {
  5502. .key = zeroed_string,
  5503. .klen = 16,
  5504. .input = zeroed_string,
  5505. .ilen = 8,
  5506. .result = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
  5507. .rlen = 8,
  5508. }, {
  5509. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  5510. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  5511. .klen = 16,
  5512. .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  5513. .ilen = 8,
  5514. .result = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
  5515. .rlen = 8,
  5516. }, {
  5517. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  5518. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  5519. .klen = 16,
  5520. .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  5521. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  5522. .ilen = 16,
  5523. .result = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
  5524. "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
  5525. .rlen = 16,
  5526. }, {
  5527. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  5528. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  5529. .klen = 16,
  5530. .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
  5531. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  5532. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  5533. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  5534. .ilen = 32,
  5535. .result = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
  5536. "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
  5537. "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
  5538. "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
  5539. .rlen = 32,
  5540. }
  5541. };
  5542. static struct cipher_testvec xtea_dec_tv_template[] = {
  5543. {
  5544. .key = zeroed_string,
  5545. .klen = 16,
  5546. .input = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
  5547. .ilen = 8,
  5548. .result = zeroed_string,
  5549. .rlen = 8,
  5550. }, {
  5551. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  5552. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  5553. .klen = 16,
  5554. .input = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
  5555. .ilen = 8,
  5556. .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  5557. .rlen = 8,
  5558. }, {
  5559. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  5560. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  5561. .klen = 16,
  5562. .input = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
  5563. "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
  5564. .ilen = 16,
  5565. .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  5566. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  5567. .rlen = 16,
  5568. }, {
  5569. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  5570. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  5571. .klen = 16,
  5572. .input = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
  5573. "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
  5574. "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
  5575. "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
  5576. .ilen = 32,
  5577. .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
  5578. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  5579. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  5580. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  5581. .rlen = 32,
  5582. }
  5583. };
  5584. /*
  5585. * KHAZAD test vectors.
  5586. */
  5587. #define KHAZAD_ENC_TEST_VECTORS 5
  5588. #define KHAZAD_DEC_TEST_VECTORS 5
  5589. static struct cipher_testvec khazad_enc_tv_template[] = {
  5590. {
  5591. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  5592. "\x00\x00\x00\x00\x00\x00\x00\x00",
  5593. .klen = 16,
  5594. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  5595. .ilen = 8,
  5596. .result = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
  5597. .rlen = 8,
  5598. }, {
  5599. .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
  5600. "\x38\x38\x38\x38\x38\x38\x38\x38",
  5601. .klen = 16,
  5602. .input = "\x38\x38\x38\x38\x38\x38\x38\x38",
  5603. .ilen = 8,
  5604. .result = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
  5605. .rlen = 8,
  5606. }, {
  5607. .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
  5608. "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  5609. .klen = 16,
  5610. .input = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  5611. .ilen = 8,
  5612. .result = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
  5613. .rlen = 8,
  5614. }, {
  5615. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  5616. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  5617. .klen = 16,
  5618. .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  5619. .ilen = 8,
  5620. .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  5621. .rlen = 8,
  5622. }, {
  5623. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  5624. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  5625. .klen = 16,
  5626. .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  5627. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  5628. .ilen = 16,
  5629. .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
  5630. "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  5631. .rlen = 16,
  5632. },
  5633. };
  5634. static struct cipher_testvec khazad_dec_tv_template[] = {
  5635. {
  5636. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  5637. "\x00\x00\x00\x00\x00\x00\x00\x00",
  5638. .klen = 16,
  5639. .input = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
  5640. .ilen = 8,
  5641. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  5642. .rlen = 8,
  5643. }, {
  5644. .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
  5645. "\x38\x38\x38\x38\x38\x38\x38\x38",
  5646. .klen = 16,
  5647. .input = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
  5648. .ilen = 8,
  5649. .result = "\x38\x38\x38\x38\x38\x38\x38\x38",
  5650. .rlen = 8,
  5651. }, {
  5652. .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
  5653. "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  5654. .klen = 16,
  5655. .input = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
  5656. .ilen = 8,
  5657. .result = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  5658. .rlen = 8,
  5659. }, {
  5660. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  5661. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  5662. .klen = 16,
  5663. .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  5664. .ilen = 8,
  5665. .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  5666. .rlen = 8,
  5667. }, {
  5668. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  5669. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  5670. .klen = 16,
  5671. .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
  5672. "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  5673. .ilen = 16,
  5674. .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  5675. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  5676. .rlen = 16,
  5677. },
  5678. };
  5679. /*
  5680. * Anubis test vectors.
  5681. */
  5682. #define ANUBIS_ENC_TEST_VECTORS 5
  5683. #define ANUBIS_DEC_TEST_VECTORS 5
  5684. #define ANUBIS_CBC_ENC_TEST_VECTORS 2
  5685. #define ANUBIS_CBC_DEC_TEST_VECTORS 2
  5686. static struct cipher_testvec anubis_enc_tv_template[] = {
  5687. {
  5688. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  5689. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  5690. .klen = 16,
  5691. .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  5692. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  5693. .ilen = 16,
  5694. .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  5695. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
  5696. .rlen = 16,
  5697. }, {
  5698. .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
  5699. "\x03\x03\x03\x03\x03\x03\x03\x03"
  5700. "\x03\x03\x03\x03",
  5701. .klen = 20,
  5702. .input = "\x03\x03\x03\x03\x03\x03\x03\x03"
  5703. "\x03\x03\x03\x03\x03\x03\x03\x03",
  5704. .ilen = 16,
  5705. .result = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
  5706. "\x87\x41\x6f\x82\x0a\x98\x64\xae",
  5707. .rlen = 16,
  5708. }, {
  5709. .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
  5710. "\x24\x24\x24\x24\x24\x24\x24\x24"
  5711. "\x24\x24\x24\x24\x24\x24\x24\x24"
  5712. "\x24\x24\x24\x24",
  5713. .klen = 28,
  5714. .input = "\x24\x24\x24\x24\x24\x24\x24\x24"
  5715. "\x24\x24\x24\x24\x24\x24\x24\x24",
  5716. .ilen = 16,
  5717. .result = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
  5718. "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
  5719. .rlen = 16,
  5720. }, {
  5721. .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
  5722. "\x25\x25\x25\x25\x25\x25\x25\x25"
  5723. "\x25\x25\x25\x25\x25\x25\x25\x25"
  5724. "\x25\x25\x25\x25\x25\x25\x25\x25",
  5725. .klen = 32,
  5726. .input = "\x25\x25\x25\x25\x25\x25\x25\x25"
  5727. "\x25\x25\x25\x25\x25\x25\x25\x25",
  5728. .ilen = 16,
  5729. .result = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
  5730. "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
  5731. .rlen = 16,
  5732. }, {
  5733. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  5734. "\x35\x35\x35\x35\x35\x35\x35\x35"
  5735. "\x35\x35\x35\x35\x35\x35\x35\x35"
  5736. "\x35\x35\x35\x35\x35\x35\x35\x35"
  5737. "\x35\x35\x35\x35\x35\x35\x35\x35",
  5738. .klen = 40,
  5739. .input = "\x35\x35\x35\x35\x35\x35\x35\x35"
  5740. "\x35\x35\x35\x35\x35\x35\x35\x35",
  5741. .ilen = 16,
  5742. .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  5743. "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
  5744. .rlen = 16,
  5745. },
  5746. };
  5747. static struct cipher_testvec anubis_dec_tv_template[] = {
  5748. {
  5749. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  5750. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  5751. .klen = 16,
  5752. .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  5753. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
  5754. .ilen = 16,
  5755. .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  5756. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  5757. .rlen = 16,
  5758. }, {
  5759. .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
  5760. "\x03\x03\x03\x03\x03\x03\x03\x03"
  5761. "\x03\x03\x03\x03",
  5762. .klen = 20,
  5763. .input = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
  5764. "\x87\x41\x6f\x82\x0a\x98\x64\xae",
  5765. .ilen = 16,
  5766. .result = "\x03\x03\x03\x03\x03\x03\x03\x03"
  5767. "\x03\x03\x03\x03\x03\x03\x03\x03",
  5768. .rlen = 16,
  5769. }, {
  5770. .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
  5771. "\x24\x24\x24\x24\x24\x24\x24\x24"
  5772. "\x24\x24\x24\x24\x24\x24\x24\x24"
  5773. "\x24\x24\x24\x24",
  5774. .klen = 28,
  5775. .input = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
  5776. "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
  5777. .ilen = 16,
  5778. .result = "\x24\x24\x24\x24\x24\x24\x24\x24"
  5779. "\x24\x24\x24\x24\x24\x24\x24\x24",
  5780. .rlen = 16,
  5781. }, {
  5782. .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
  5783. "\x25\x25\x25\x25\x25\x25\x25\x25"
  5784. "\x25\x25\x25\x25\x25\x25\x25\x25"
  5785. "\x25\x25\x25\x25\x25\x25\x25\x25",
  5786. .klen = 32,
  5787. .input = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
  5788. "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
  5789. .ilen = 16,
  5790. .result = "\x25\x25\x25\x25\x25\x25\x25\x25"
  5791. "\x25\x25\x25\x25\x25\x25\x25\x25",
  5792. .rlen = 16,
  5793. }, {
  5794. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  5795. "\x35\x35\x35\x35\x35\x35\x35\x35"
  5796. "\x35\x35\x35\x35\x35\x35\x35\x35"
  5797. "\x35\x35\x35\x35\x35\x35\x35\x35"
  5798. "\x35\x35\x35\x35\x35\x35\x35\x35",
  5799. .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  5800. "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
  5801. .klen = 40,
  5802. .ilen = 16,
  5803. .result = "\x35\x35\x35\x35\x35\x35\x35\x35"
  5804. "\x35\x35\x35\x35\x35\x35\x35\x35",
  5805. .rlen = 16,
  5806. },
  5807. };
  5808. static struct cipher_testvec anubis_cbc_enc_tv_template[] = {
  5809. {
  5810. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  5811. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  5812. .klen = 16,
  5813. .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  5814. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  5815. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  5816. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  5817. .ilen = 32,
  5818. .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  5819. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
  5820. "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
  5821. "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
  5822. .rlen = 32,
  5823. }, {
  5824. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  5825. "\x35\x35\x35\x35\x35\x35\x35\x35"
  5826. "\x35\x35\x35\x35\x35\x35\x35\x35"
  5827. "\x35\x35\x35\x35\x35\x35\x35\x35"
  5828. "\x35\x35\x35\x35\x35\x35\x35\x35",
  5829. .klen = 40,
  5830. .input = "\x35\x35\x35\x35\x35\x35\x35\x35"
  5831. "\x35\x35\x35\x35\x35\x35\x35\x35"
  5832. "\x35\x35\x35\x35\x35\x35\x35\x35"
  5833. "\x35\x35\x35\x35\x35\x35\x35\x35",
  5834. .ilen = 32,
  5835. .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  5836. "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
  5837. "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
  5838. "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
  5839. .rlen = 32,
  5840. },
  5841. };
  5842. static struct cipher_testvec anubis_cbc_dec_tv_template[] = {
  5843. {
  5844. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  5845. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  5846. .klen = 16,
  5847. .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  5848. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
  5849. "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
  5850. "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
  5851. .ilen = 32,
  5852. .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  5853. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  5854. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  5855. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  5856. .rlen = 32,
  5857. }, {
  5858. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  5859. "\x35\x35\x35\x35\x35\x35\x35\x35"
  5860. "\x35\x35\x35\x35\x35\x35\x35\x35"
  5861. "\x35\x35\x35\x35\x35\x35\x35\x35"
  5862. "\x35\x35\x35\x35\x35\x35\x35\x35",
  5863. .klen = 40,
  5864. .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  5865. "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
  5866. "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
  5867. "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
  5868. .ilen = 32,
  5869. .result = "\x35\x35\x35\x35\x35\x35\x35\x35"
  5870. "\x35\x35\x35\x35\x35\x35\x35\x35"
  5871. "\x35\x35\x35\x35\x35\x35\x35\x35"
  5872. "\x35\x35\x35\x35\x35\x35\x35\x35",
  5873. .rlen = 32,
  5874. },
  5875. };
  5876. /*
  5877. * XETA test vectors
  5878. */
  5879. #define XETA_ENC_TEST_VECTORS 4
  5880. #define XETA_DEC_TEST_VECTORS 4
  5881. static struct cipher_testvec xeta_enc_tv_template[] = {
  5882. {
  5883. .key = zeroed_string,
  5884. .klen = 16,
  5885. .input = zeroed_string,
  5886. .ilen = 8,
  5887. .result = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
  5888. .rlen = 8,
  5889. }, {
  5890. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  5891. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  5892. .klen = 16,
  5893. .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  5894. .ilen = 8,
  5895. .result = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
  5896. .rlen = 8,
  5897. }, {
  5898. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  5899. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  5900. .klen = 16,
  5901. .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  5902. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  5903. .ilen = 16,
  5904. .result = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
  5905. "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
  5906. .rlen = 16,
  5907. }, {
  5908. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  5909. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  5910. .klen = 16,
  5911. .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
  5912. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  5913. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  5914. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  5915. .ilen = 32,
  5916. .result = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
  5917. "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
  5918. "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
  5919. "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
  5920. .rlen = 32,
  5921. }
  5922. };
  5923. static struct cipher_testvec xeta_dec_tv_template[] = {
  5924. {
  5925. .key = zeroed_string,
  5926. .klen = 16,
  5927. .input = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
  5928. .ilen = 8,
  5929. .result = zeroed_string,
  5930. .rlen = 8,
  5931. }, {
  5932. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  5933. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  5934. .klen = 16,
  5935. .input = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
  5936. .ilen = 8,
  5937. .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  5938. .rlen = 8,
  5939. }, {
  5940. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  5941. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  5942. .klen = 16,
  5943. .input = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
  5944. "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
  5945. .ilen = 16,
  5946. .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  5947. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  5948. .rlen = 16,
  5949. }, {
  5950. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  5951. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  5952. .klen = 16,
  5953. .input = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
  5954. "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
  5955. "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
  5956. "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
  5957. .ilen = 32,
  5958. .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
  5959. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  5960. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  5961. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  5962. .rlen = 32,
  5963. }
  5964. };
  5965. /*
  5966. * FCrypt test vectors
  5967. */
  5968. #define FCRYPT_ENC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_enc_tv_template)
  5969. #define FCRYPT_DEC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_dec_tv_template)
  5970. static struct cipher_testvec fcrypt_pcbc_enc_tv_template[] = {
  5971. { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
  5972. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  5973. .klen = 8,
  5974. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  5975. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  5976. .ilen = 8,
  5977. .result = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
  5978. .rlen = 8,
  5979. }, {
  5980. .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
  5981. .klen = 8,
  5982. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  5983. .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
  5984. .ilen = 8,
  5985. .result = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
  5986. .rlen = 8,
  5987. }, { /* From Arla */
  5988. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  5989. .klen = 8,
  5990. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  5991. .input = "The quick brown fox jumps over the lazy dogs.\0\0",
  5992. .ilen = 48,
  5993. .result = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
  5994. "\xee\xac\x98\x62\x44\x51\xe4\x84"
  5995. "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
  5996. "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
  5997. "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
  5998. "\xf8\x91\x3c\xac\x44\x22\x92\xef",
  5999. .rlen = 48,
  6000. }, {
  6001. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  6002. .klen = 8,
  6003. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  6004. .input = "The quick brown fox jumps over the lazy dogs.\0\0",
  6005. .ilen = 48,
  6006. .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  6007. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  6008. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  6009. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  6010. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  6011. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  6012. .rlen = 48,
  6013. }, { /* split-page version */
  6014. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  6015. .klen = 8,
  6016. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  6017. .input = "The quick brown fox jumps over the lazy dogs.\0\0",
  6018. .ilen = 48,
  6019. .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  6020. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  6021. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  6022. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  6023. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  6024. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  6025. .rlen = 48,
  6026. .np = 2,
  6027. .tap = { 20, 28 },
  6028. }
  6029. };
  6030. static struct cipher_testvec fcrypt_pcbc_dec_tv_template[] = {
  6031. { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
  6032. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6033. .klen = 8,
  6034. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6035. .input = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
  6036. .ilen = 8,
  6037. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6038. .rlen = 8,
  6039. }, {
  6040. .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
  6041. .klen = 8,
  6042. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6043. .input = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
  6044. .ilen = 8,
  6045. .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
  6046. .rlen = 8,
  6047. }, { /* From Arla */
  6048. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  6049. .klen = 8,
  6050. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  6051. .input = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
  6052. "\xee\xac\x98\x62\x44\x51\xe4\x84"
  6053. "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
  6054. "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
  6055. "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
  6056. "\xf8\x91\x3c\xac\x44\x22\x92\xef",
  6057. .ilen = 48,
  6058. .result = "The quick brown fox jumps over the lazy dogs.\0\0",
  6059. .rlen = 48,
  6060. }, {
  6061. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  6062. .klen = 8,
  6063. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  6064. .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  6065. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  6066. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  6067. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  6068. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  6069. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  6070. .ilen = 48,
  6071. .result = "The quick brown fox jumps over the lazy dogs.\0\0",
  6072. .rlen = 48,
  6073. }, { /* split-page version */
  6074. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  6075. .klen = 8,
  6076. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  6077. .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  6078. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  6079. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  6080. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  6081. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  6082. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  6083. .ilen = 48,
  6084. .result = "The quick brown fox jumps over the lazy dogs.\0\0",
  6085. .rlen = 48,
  6086. .np = 2,
  6087. .tap = { 20, 28 },
  6088. }
  6089. };
  6090. /*
  6091. * CAMELLIA test vectors.
  6092. */
  6093. #define CAMELLIA_ENC_TEST_VECTORS 3
  6094. #define CAMELLIA_DEC_TEST_VECTORS 3
  6095. #define CAMELLIA_CBC_ENC_TEST_VECTORS 2
  6096. #define CAMELLIA_CBC_DEC_TEST_VECTORS 2
  6097. static struct cipher_testvec camellia_enc_tv_template[] = {
  6098. {
  6099. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  6100. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  6101. .klen = 16,
  6102. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  6103. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  6104. .ilen = 16,
  6105. .result = "\x67\x67\x31\x38\x54\x96\x69\x73"
  6106. "\x08\x57\x06\x56\x48\xea\xbe\x43",
  6107. .rlen = 16,
  6108. }, {
  6109. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  6110. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  6111. "\x00\x11\x22\x33\x44\x55\x66\x77",
  6112. .klen = 24,
  6113. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  6114. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  6115. .ilen = 16,
  6116. .result = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
  6117. "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
  6118. .rlen = 16,
  6119. }, {
  6120. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  6121. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  6122. "\x00\x11\x22\x33\x44\x55\x66\x77"
  6123. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  6124. .klen = 32,
  6125. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  6126. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  6127. .ilen = 16,
  6128. .result = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
  6129. "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
  6130. .rlen = 16,
  6131. },
  6132. };
  6133. static struct cipher_testvec camellia_dec_tv_template[] = {
  6134. {
  6135. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  6136. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  6137. .klen = 16,
  6138. .input = "\x67\x67\x31\x38\x54\x96\x69\x73"
  6139. "\x08\x57\x06\x56\x48\xea\xbe\x43",
  6140. .ilen = 16,
  6141. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  6142. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  6143. .rlen = 16,
  6144. }, {
  6145. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  6146. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  6147. "\x00\x11\x22\x33\x44\x55\x66\x77",
  6148. .klen = 24,
  6149. .input = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
  6150. "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
  6151. .ilen = 16,
  6152. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  6153. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  6154. .rlen = 16,
  6155. }, {
  6156. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  6157. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  6158. "\x00\x11\x22\x33\x44\x55\x66\x77"
  6159. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  6160. .klen = 32,
  6161. .input = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
  6162. "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
  6163. .ilen = 16,
  6164. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  6165. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  6166. .rlen = 16,
  6167. },
  6168. };
  6169. static struct cipher_testvec camellia_cbc_enc_tv_template[] = {
  6170. {
  6171. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  6172. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  6173. .klen = 16,
  6174. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  6175. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  6176. .input = "Single block msg",
  6177. .ilen = 16,
  6178. .result = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
  6179. "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
  6180. .rlen = 16,
  6181. }, {
  6182. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  6183. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  6184. .klen = 16,
  6185. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  6186. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  6187. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6188. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6189. "\x10\x11\x12\x13\x14\x15\x16\x17"
  6190. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  6191. .ilen = 32,
  6192. .result = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
  6193. "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
  6194. "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
  6195. "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
  6196. .rlen = 32,
  6197. },
  6198. };
  6199. static struct cipher_testvec camellia_cbc_dec_tv_template[] = {
  6200. {
  6201. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  6202. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  6203. .klen = 16,
  6204. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  6205. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  6206. .input = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
  6207. "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
  6208. .ilen = 16,
  6209. .result = "Single block msg",
  6210. .rlen = 16,
  6211. }, {
  6212. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  6213. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  6214. .klen = 16,
  6215. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  6216. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  6217. .input = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
  6218. "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
  6219. "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
  6220. "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
  6221. .ilen = 32,
  6222. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6223. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6224. "\x10\x11\x12\x13\x14\x15\x16\x17"
  6225. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  6226. .rlen = 32,
  6227. },
  6228. };
  6229. /*
  6230. * SEED test vectors
  6231. */
  6232. #define SEED_ENC_TEST_VECTORS 4
  6233. #define SEED_DEC_TEST_VECTORS 4
  6234. static struct cipher_testvec seed_enc_tv_template[] = {
  6235. {
  6236. .key = zeroed_string,
  6237. .klen = 16,
  6238. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6239. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  6240. .ilen = 16,
  6241. .result = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
  6242. "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
  6243. .rlen = 16,
  6244. }, {
  6245. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6246. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  6247. .klen = 16,
  6248. .input = zeroed_string,
  6249. .ilen = 16,
  6250. .result = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
  6251. "\x84\x48\x35\x97\xe4\x37\x0f\x43",
  6252. .rlen = 16,
  6253. }, {
  6254. .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
  6255. "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
  6256. .klen = 16,
  6257. .input = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
  6258. "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
  6259. .ilen = 16,
  6260. .result = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
  6261. "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
  6262. .rlen = 16,
  6263. }, {
  6264. .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
  6265. "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
  6266. .klen = 16,
  6267. .input = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
  6268. "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
  6269. .ilen = 16,
  6270. .result = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
  6271. "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
  6272. .rlen = 16,
  6273. }
  6274. };
  6275. static struct cipher_testvec seed_dec_tv_template[] = {
  6276. {
  6277. .key = zeroed_string,
  6278. .klen = 16,
  6279. .input = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
  6280. "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
  6281. .ilen = 16,
  6282. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6283. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  6284. .rlen = 16,
  6285. }, {
  6286. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6287. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  6288. .klen = 16,
  6289. .input = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
  6290. "\x84\x48\x35\x97\xe4\x37\x0f\x43",
  6291. .ilen = 16,
  6292. .result = zeroed_string,
  6293. .rlen = 16,
  6294. }, {
  6295. .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
  6296. "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
  6297. .klen = 16,
  6298. .input = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
  6299. "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
  6300. .ilen = 16,
  6301. .result = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
  6302. "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
  6303. .rlen = 16,
  6304. }, {
  6305. .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
  6306. "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
  6307. .klen = 16,
  6308. .input = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
  6309. "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
  6310. .ilen = 16,
  6311. .result = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
  6312. "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
  6313. .rlen = 16,
  6314. }
  6315. };
  6316. #define SALSA20_STREAM_ENC_TEST_VECTORS 5
  6317. static struct cipher_testvec salsa20_stream_enc_tv_template[] = {
  6318. /*
  6319. * Testvectors from verified.test-vectors submitted to ECRYPT.
  6320. * They are truncated to size 39, 64, 111, 129 to test a variety
  6321. * of input length.
  6322. */
  6323. { /* Set 3, vector 0 */
  6324. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6325. "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
  6326. .klen = 16,
  6327. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6328. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6329. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6330. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6331. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6332. "\x00\x00\x00\x00\x00\x00\x00",
  6333. .ilen = 39,
  6334. .result = "\x2D\xD5\xC3\xF7\xBA\x2B\x20\xF7"
  6335. "\x68\x02\x41\x0C\x68\x86\x88\x89"
  6336. "\x5A\xD8\xC1\xBD\x4E\xA6\xC9\xB1"
  6337. "\x40\xFB\x9B\x90\xE2\x10\x49\xBF"
  6338. "\x58\x3F\x52\x79\x70\xEB\xC1",
  6339. .rlen = 39,
  6340. }, { /* Set 5, vector 0 */
  6341. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6342. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6343. .klen = 16,
  6344. .iv = "\x80\x00\x00\x00\x00\x00\x00\x00",
  6345. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6346. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6347. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6348. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6349. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6350. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6351. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6352. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6353. .ilen = 64,
  6354. .result = "\xB6\x6C\x1E\x44\x46\xDD\x95\x57"
  6355. "\xE5\x78\xE2\x23\xB0\xB7\x68\x01"
  6356. "\x7B\x23\xB2\x67\xBB\x02\x34\xAE"
  6357. "\x46\x26\xBF\x44\x3F\x21\x97\x76"
  6358. "\x43\x6F\xB1\x9F\xD0\xE8\x86\x6F"
  6359. "\xCD\x0D\xE9\xA9\x53\x8F\x4A\x09"
  6360. "\xCA\x9A\xC0\x73\x2E\x30\xBC\xF9"
  6361. "\x8E\x4F\x13\xE4\xB9\xE2\x01\xD9",
  6362. .rlen = 64,
  6363. }, { /* Set 3, vector 27 */
  6364. .key = "\x1B\x1C\x1D\x1E\x1F\x20\x21\x22"
  6365. "\x23\x24\x25\x26\x27\x28\x29\x2A"
  6366. "\x2B\x2C\x2D\x2E\x2F\x30\x31\x32"
  6367. "\x33\x34\x35\x36\x37\x38\x39\x3A",
  6368. .klen = 32,
  6369. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6370. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6371. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6372. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6373. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6374. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6375. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6376. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6377. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6378. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6379. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6380. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6381. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6382. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6383. "\x00\x00\x00\x00\x00\x00\x00",
  6384. .ilen = 111,
  6385. .result = "\xAE\x39\x50\x8E\xAC\x9A\xEC\xE7"
  6386. "\xBF\x97\xBB\x20\xB9\xDE\xE4\x1F"
  6387. "\x87\xD9\x47\xF8\x28\x91\x35\x98"
  6388. "\xDB\x72\xCC\x23\x29\x48\x56\x5E"
  6389. "\x83\x7E\x0B\xF3\x7D\x5D\x38\x7B"
  6390. "\x2D\x71\x02\xB4\x3B\xB5\xD8\x23"
  6391. "\xB0\x4A\xDF\x3C\xEC\xB6\xD9\x3B"
  6392. "\x9B\xA7\x52\xBE\xC5\xD4\x50\x59"
  6393. "\x15\x14\xB4\x0E\x40\xE6\x53\xD1"
  6394. "\x83\x9C\x5B\xA0\x92\x29\x6B\x5E"
  6395. "\x96\x5B\x1E\x2F\xD3\xAC\xC1\x92"
  6396. "\xB1\x41\x3F\x19\x2F\xC4\x3B\xC6"
  6397. "\x95\x46\x45\x54\xE9\x75\x03\x08"
  6398. "\x44\xAF\xE5\x8A\x81\x12\x09",
  6399. .rlen = 111,
  6400. }, { /* Set 5, vector 27 */
  6401. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6402. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6403. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6404. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6405. .klen = 32,
  6406. .iv = "\x00\x00\x00\x10\x00\x00\x00\x00",
  6407. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6408. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6409. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6410. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6411. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6412. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6413. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6414. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6415. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6416. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6417. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6418. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6419. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6420. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6421. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6422. "\x00\x00\x00\x00\x00\x00\x00\x00"
  6423. "\x00",
  6424. .ilen = 129,
  6425. .result = "\xD2\xDB\x1A\x5C\xF1\xC1\xAC\xDB"
  6426. "\xE8\x1A\x7A\x43\x40\xEF\x53\x43"
  6427. "\x5E\x7F\x4B\x1A\x50\x52\x3F\x8D"
  6428. "\x28\x3D\xCF\x85\x1D\x69\x6E\x60"
  6429. "\xF2\xDE\x74\x56\x18\x1B\x84\x10"
  6430. "\xD4\x62\xBA\x60\x50\xF0\x61\xF2"
  6431. "\x1C\x78\x7F\xC1\x24\x34\xAF\x58"
  6432. "\xBF\x2C\x59\xCA\x90\x77\xF3\xB0"
  6433. "\x5B\x4A\xDF\x89\xCE\x2C\x2F\xFC"
  6434. "\x67\xF0\xE3\x45\xE8\xB3\xB3\x75"
  6435. "\xA0\x95\x71\xA1\x29\x39\x94\xCA"
  6436. "\x45\x2F\xBD\xCB\x10\xB6\xBE\x9F"
  6437. "\x8E\xF9\xB2\x01\x0A\x5A\x0A\xB7"
  6438. "\x6B\x9D\x70\x8E\x4B\xD6\x2F\xCD"
  6439. "\x2E\x40\x48\x75\xE9\xE2\x21\x45"
  6440. "\x0B\xC9\xB6\xB5\x66\xBC\x9A\x59"
  6441. "\x5A",
  6442. .rlen = 129,
  6443. }, { /* large test vector generated using Crypto++ */
  6444. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  6445. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6446. "\x10\x11\x12\x13\x14\x15\x16\x17"
  6447. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  6448. .klen = 32,
  6449. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  6450. "\x00\x00\x00\x00\x00\x00\x00\x00",
  6451. .input =
  6452. "\x00\x01\x02\x03\x04\x05\x06\x07"
  6453. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  6454. "\x10\x11\x12\x13\x14\x15\x16\x17"
  6455. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  6456. "\x20\x21\x22\x23\x24\x25\x26\x27"
  6457. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  6458. "\x30\x31\x32\x33\x34\x35\x36\x37"
  6459. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  6460. "\x40\x41\x42\x43\x44\x45\x46\x47"
  6461. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  6462. "\x50\x51\x52\x53\x54\x55\x56\x57"
  6463. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  6464. "\x60\x61\x62\x63\x64\x65\x66\x67"
  6465. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  6466. "\x70\x71\x72\x73\x74\x75\x76\x77"
  6467. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  6468. "\x80\x81\x82\x83\x84\x85\x86\x87"
  6469. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  6470. "\x90\x91\x92\x93\x94\x95\x96\x97"
  6471. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  6472. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  6473. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  6474. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  6475. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  6476. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  6477. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  6478. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  6479. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  6480. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  6481. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  6482. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  6483. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  6484. "\x00\x03\x06\x09\x0c\x0f\x12\x15"
  6485. "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
  6486. "\x30\x33\x36\x39\x3c\x3f\x42\x45"
  6487. "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
  6488. "\x60\x63\x66\x69\x6c\x6f\x72\x75"
  6489. "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
  6490. "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
  6491. "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
  6492. "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
  6493. "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
  6494. "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
  6495. "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
  6496. "\x20\x23\x26\x29\x2c\x2f\x32\x35"
  6497. "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
  6498. "\x50\x53\x56\x59\x5c\x5f\x62\x65"
  6499. "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
  6500. "\x80\x83\x86\x89\x8c\x8f\x92\x95"
  6501. "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
  6502. "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
  6503. "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
  6504. "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
  6505. "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
  6506. "\x10\x13\x16\x19\x1c\x1f\x22\x25"
  6507. "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
  6508. "\x40\x43\x46\x49\x4c\x4f\x52\x55"
  6509. "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
  6510. "\x70\x73\x76\x79\x7c\x7f\x82\x85"
  6511. "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
  6512. "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
  6513. "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
  6514. "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
  6515. "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
  6516. "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
  6517. "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
  6518. "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
  6519. "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
  6520. "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
  6521. "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
  6522. "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
  6523. "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
  6524. "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
  6525. "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
  6526. "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
  6527. "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
  6528. "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
  6529. "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
  6530. "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
  6531. "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
  6532. "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
  6533. "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
  6534. "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
  6535. "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
  6536. "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
  6537. "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
  6538. "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
  6539. "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
  6540. "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
  6541. "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
  6542. "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
  6543. "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
  6544. "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
  6545. "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
  6546. "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
  6547. "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
  6548. "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
  6549. "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
  6550. "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
  6551. "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
  6552. "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
  6553. "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
  6554. "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
  6555. "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
  6556. "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
  6557. "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
  6558. "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
  6559. "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
  6560. "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
  6561. "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
  6562. "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
  6563. "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
  6564. "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
  6565. "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
  6566. "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
  6567. "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
  6568. "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
  6569. "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
  6570. "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
  6571. "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
  6572. "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
  6573. "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
  6574. "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
  6575. "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
  6576. "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
  6577. "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
  6578. "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
  6579. "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
  6580. "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
  6581. "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
  6582. "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
  6583. "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
  6584. "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
  6585. "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
  6586. "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
  6587. "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
  6588. "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
  6589. "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
  6590. "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
  6591. "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
  6592. "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
  6593. "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
  6594. "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
  6595. "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
  6596. "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
  6597. "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
  6598. "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
  6599. "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
  6600. "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
  6601. "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
  6602. "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
  6603. "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
  6604. "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
  6605. "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
  6606. "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
  6607. "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
  6608. "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
  6609. "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
  6610. "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
  6611. "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
  6612. "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
  6613. "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
  6614. "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
  6615. "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
  6616. "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
  6617. "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
  6618. "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
  6619. "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
  6620. "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
  6621. "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
  6622. "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
  6623. "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
  6624. "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
  6625. "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
  6626. "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
  6627. "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
  6628. "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
  6629. "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
  6630. "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
  6631. "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
  6632. "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
  6633. "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
  6634. "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
  6635. "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
  6636. "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
  6637. "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
  6638. "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
  6639. "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
  6640. "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
  6641. "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
  6642. "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
  6643. "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
  6644. "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
  6645. "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
  6646. "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
  6647. "\x38\x45\x52\x5f\x6c\x79\x86\x93"
  6648. "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
  6649. "\x08\x15\x22\x2f\x3c\x49\x56\x63"
  6650. "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
  6651. "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
  6652. "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
  6653. "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
  6654. "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
  6655. "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
  6656. "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
  6657. "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
  6658. "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
  6659. "\x18\x25\x32\x3f\x4c\x59\x66\x73"
  6660. "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
  6661. "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
  6662. "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
  6663. "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
  6664. "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
  6665. "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
  6666. "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
  6667. "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
  6668. "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
  6669. "\x28\x35\x42\x4f\x5c\x69\x76\x83"
  6670. "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
  6671. "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
  6672. "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
  6673. "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
  6674. "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
  6675. "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
  6676. "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
  6677. "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
  6678. "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
  6679. "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
  6680. "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
  6681. "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
  6682. "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
  6683. "\x48\x57\x66\x75\x84\x93\xa2\xb1"
  6684. "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
  6685. "\x38\x47\x56\x65\x74\x83\x92\xa1"
  6686. "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
  6687. "\x28\x37\x46\x55\x64\x73\x82\x91"
  6688. "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
  6689. "\x18\x27\x36\x45\x54\x63\x72\x81"
  6690. "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
  6691. "\x08\x17\x26\x35\x44\x53\x62\x71"
  6692. "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
  6693. "\xf8\x07\x16\x25\x34\x43\x52\x61"
  6694. "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
  6695. "\xe8\xf7\x06\x15\x24\x33\x42\x51"
  6696. "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
  6697. "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
  6698. "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
  6699. "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
  6700. "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
  6701. "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
  6702. "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
  6703. "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
  6704. "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
  6705. "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
  6706. "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
  6707. "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
  6708. "\x00\x11\x22\x33\x44\x55\x66\x77"
  6709. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
  6710. "\x10\x21\x32\x43\x54\x65\x76\x87"
  6711. "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
  6712. "\x20\x31\x42\x53\x64\x75\x86\x97"
  6713. "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
  6714. "\x30\x41\x52\x63\x74\x85\x96\xa7"
  6715. "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
  6716. "\x40\x51\x62\x73\x84\x95\xa6\xb7"
  6717. "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
  6718. "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
  6719. "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
  6720. "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
  6721. "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
  6722. "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
  6723. "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
  6724. "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
  6725. "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
  6726. "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
  6727. "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
  6728. "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
  6729. "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
  6730. "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
  6731. "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
  6732. "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
  6733. "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
  6734. "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
  6735. "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
  6736. "\xe0\xf1\x02\x13\x24\x35\x46\x57"
  6737. "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
  6738. "\xf0\x01\x12\x23\x34\x45\x56\x67"
  6739. "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
  6740. "\x00\x13\x26\x39\x4c\x5f\x72\x85"
  6741. "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
  6742. "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
  6743. "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
  6744. "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
  6745. "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
  6746. "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
  6747. "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
  6748. "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
  6749. "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
  6750. "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
  6751. "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
  6752. "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
  6753. "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
  6754. "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
  6755. "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
  6756. "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
  6757. "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
  6758. "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
  6759. "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
  6760. "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
  6761. "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
  6762. "\x10\x23\x36\x49\x5c\x6f\x82\x95"
  6763. "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
  6764. "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
  6765. "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
  6766. "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
  6767. "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
  6768. "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
  6769. "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
  6770. "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
  6771. "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
  6772. "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
  6773. "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
  6774. "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
  6775. "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
  6776. "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
  6777. "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
  6778. "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
  6779. "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
  6780. "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
  6781. "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
  6782. "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
  6783. "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
  6784. "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
  6785. "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
  6786. "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
  6787. "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
  6788. "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
  6789. "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
  6790. "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
  6791. "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
  6792. "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
  6793. "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
  6794. "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
  6795. "\x18\x2d\x42\x57\x6c\x81\x96\xab"
  6796. "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
  6797. "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
  6798. "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
  6799. "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
  6800. "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
  6801. "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
  6802. "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
  6803. "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
  6804. "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
  6805. "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
  6806. "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
  6807. "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
  6808. "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
  6809. "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
  6810. "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
  6811. "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
  6812. "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
  6813. "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
  6814. "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
  6815. "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
  6816. "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
  6817. "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
  6818. "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
  6819. "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
  6820. "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
  6821. "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
  6822. "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
  6823. "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
  6824. "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
  6825. "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
  6826. "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
  6827. "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
  6828. "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
  6829. "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
  6830. "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
  6831. "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
  6832. "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
  6833. "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
  6834. "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
  6835. "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
  6836. "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
  6837. "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
  6838. "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
  6839. "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
  6840. "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
  6841. "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
  6842. "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
  6843. "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
  6844. "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
  6845. "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
  6846. "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
  6847. "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
  6848. "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
  6849. "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
  6850. "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
  6851. "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
  6852. "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
  6853. "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
  6854. "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
  6855. "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
  6856. "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
  6857. "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
  6858. "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
  6859. "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
  6860. "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
  6861. "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
  6862. "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
  6863. "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
  6864. "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
  6865. "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
  6866. "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
  6867. "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
  6868. "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
  6869. "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
  6870. "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
  6871. "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
  6872. "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
  6873. "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
  6874. "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
  6875. "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
  6876. "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
  6877. "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
  6878. "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
  6879. "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
  6880. "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
  6881. "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
  6882. "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
  6883. "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
  6884. "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
  6885. "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
  6886. "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
  6887. "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
  6888. "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
  6889. "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
  6890. "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
  6891. "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
  6892. "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
  6893. "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
  6894. "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
  6895. "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
  6896. "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
  6897. "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
  6898. "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
  6899. "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
  6900. "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
  6901. "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
  6902. "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
  6903. "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
  6904. "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
  6905. "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
  6906. "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
  6907. "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
  6908. "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
  6909. "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
  6910. "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
  6911. "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
  6912. "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
  6913. "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
  6914. "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
  6915. "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
  6916. "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
  6917. "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
  6918. "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
  6919. "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
  6920. "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
  6921. "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
  6922. "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
  6923. "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
  6924. "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
  6925. "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
  6926. "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
  6927. "\x78\x95\xb2\xcf\xec\x09\x26\x43"
  6928. "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
  6929. "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
  6930. "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
  6931. "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
  6932. "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
  6933. "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
  6934. "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
  6935. "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
  6936. "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
  6937. "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
  6938. "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
  6939. "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
  6940. "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
  6941. "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
  6942. "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
  6943. "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
  6944. "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
  6945. "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
  6946. "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
  6947. "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
  6948. "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
  6949. "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
  6950. "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
  6951. "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
  6952. "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
  6953. "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
  6954. "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
  6955. "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
  6956. "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
  6957. "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
  6958. "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
  6959. "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
  6960. "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
  6961. "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
  6962. "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
  6963. "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
  6964. "\x00\x21\x42\x63",
  6965. .ilen = 4100,
  6966. .result =
  6967. "\xb5\x81\xf5\x64\x18\x73\xe3\xf0"
  6968. "\x4c\x13\xf2\x77\x18\x60\x65\x5e"
  6969. "\x29\x01\xce\x98\x55\x53\xf9\x0c"
  6970. "\x2a\x08\xd5\x09\xb3\x57\x55\x56"
  6971. "\xc5\xe9\x56\x90\xcb\x6a\xa3\xc0"
  6972. "\xff\xc4\x79\xb4\xd2\x97\x5d\xc4"
  6973. "\x43\xd1\xfe\x94\x7b\x88\x06\x5a"
  6974. "\xb2\x9e\x2c\xfc\x44\x03\xb7\x90"
  6975. "\xa0\xc1\xba\x6a\x33\xb8\xc7\xb2"
  6976. "\x9d\xe1\x12\x4f\xc0\x64\xd4\x01"
  6977. "\xfe\x8c\x7a\x66\xf7\xe6\x5a\x91"
  6978. "\xbb\xde\x56\x86\xab\x65\x21\x30"
  6979. "\x00\x84\x65\x24\xa5\x7d\x85\xb4"
  6980. "\xe3\x17\xed\x3a\xb7\x6f\xb4\x0b"
  6981. "\x0b\xaf\x15\xae\x5a\x8f\xf2\x0c"
  6982. "\x2f\x27\xf4\x09\xd8\xd2\x96\xb7"
  6983. "\x71\xf2\xc5\x99\x4d\x7e\x7f\x75"
  6984. "\x77\x89\x30\x8b\x59\xdb\xa2\xb2"
  6985. "\xa0\xf3\x19\x39\x2b\xc5\x7e\x3f"
  6986. "\x4f\xd9\xd3\x56\x28\x97\x44\xdc"
  6987. "\xc0\x8b\x77\x24\xd9\x52\xe7\xc5"
  6988. "\xaf\xf6\x7d\x59\xb2\x44\x05\x1d"
  6989. "\xb1\xb0\x11\xa5\x0f\xec\x33\xe1"
  6990. "\x6d\x1b\x4e\x1f\xff\x57\x91\xb4"
  6991. "\x5b\x9a\x96\xc5\x53\xbc\xae\x20"
  6992. "\x3c\xbb\x14\xe2\xe8\x22\x33\xc1"
  6993. "\x5e\x76\x9e\x46\x99\xf6\x2a\x15"
  6994. "\xc6\x97\x02\xa0\x66\x43\xd1\xa6"
  6995. "\x31\xa6\x9f\xfb\xf4\xd3\x69\xe5"
  6996. "\xcd\x76\x95\xb8\x7a\x82\x7f\x21"
  6997. "\x45\xff\x3f\xce\x55\xf6\x95\x10"
  6998. "\x08\x77\x10\x43\xc6\xf3\x09\xe5"
  6999. "\x68\xe7\x3c\xad\x00\x52\x45\x0d"
  7000. "\xfe\x2d\xc6\xc2\x94\x8c\x12\x1d"
  7001. "\xe6\x25\xae\x98\x12\x8e\x19\x9c"
  7002. "\x81\x68\xb1\x11\xf6\x69\xda\xe3"
  7003. "\x62\x08\x18\x7a\x25\x49\x28\xac"
  7004. "\xba\x71\x12\x0b\xe4\xa2\xe5\xc7"
  7005. "\x5d\x8e\xec\x49\x40\x21\xbf\x5a"
  7006. "\x98\xf3\x02\x68\x55\x03\x7f\x8a"
  7007. "\xe5\x94\x0c\x32\x5c\x07\x82\x63"
  7008. "\xaf\x6f\x91\x40\x84\x8e\x52\x25"
  7009. "\xd0\xb0\x29\x53\x05\xe2\x50\x7a"
  7010. "\x34\xeb\xc9\x46\x20\xa8\x3d\xde"
  7011. "\x7f\x16\x5f\x36\xc5\x2e\xdc\xd1"
  7012. "\x15\x47\xc7\x50\x40\x6d\x91\xc5"
  7013. "\xe7\x93\x95\x1a\xd3\x57\xbc\x52"
  7014. "\x33\xee\x14\x19\x22\x52\x89\xa7"
  7015. "\x4a\x25\x56\x77\x4b\xca\xcf\x0a"
  7016. "\xe1\xf5\x35\x85\x30\x7e\x59\x4a"
  7017. "\xbd\x14\x5b\xdf\xe3\x46\xcb\xac"
  7018. "\x1f\x6c\x96\x0e\xf4\x81\xd1\x99"
  7019. "\xca\x88\x63\x3d\x02\x58\x6b\xa9"
  7020. "\xe5\x9f\xb3\x00\xb2\x54\xc6\x74"
  7021. "\x1c\xbf\x46\xab\x97\xcc\xf8\x54"
  7022. "\x04\x07\x08\x52\xe6\xc0\xda\x93"
  7023. "\x74\x7d\x93\x99\x5d\x78\x68\xa6"
  7024. "\x2e\x6b\xd3\x6a\x69\xcc\x12\x6b"
  7025. "\xd4\xc7\xa5\xc6\xe7\xf6\x03\x04"
  7026. "\x5d\xcd\x61\x5e\x17\x40\xdc\xd1"
  7027. "\x5c\xf5\x08\xdf\x5c\x90\x85\xa4"
  7028. "\xaf\xf6\x78\xbb\x0d\xf1\xf4\xa4"
  7029. "\x54\x26\x72\x9e\x61\xfa\x86\xcf"
  7030. "\xe8\x9e\xa1\xe0\xc7\x48\x23\xae"
  7031. "\x5a\x90\xae\x75\x0a\x74\x18\x89"
  7032. "\x05\xb1\x92\xb2\x7f\xd0\x1b\xa6"
  7033. "\x62\x07\x25\x01\xc7\xc2\x4f\xf9"
  7034. "\xe8\xfe\x63\x95\x80\x07\xb4\x26"
  7035. "\xcc\xd1\x26\xb6\xc4\x3f\x9e\xcb"
  7036. "\x8e\x3b\x2e\x44\x16\xd3\x10\x9a"
  7037. "\x95\x08\xeb\xc8\xcb\xeb\xbf\x6f"
  7038. "\x0b\xcd\x1f\xc8\xca\x86\xaa\xec"
  7039. "\x33\xe6\x69\xf4\x45\x25\x86\x3a"
  7040. "\x22\x94\x4f\x00\x23\x6a\x44\xc2"
  7041. "\x49\x97\x33\xab\x36\x14\x0a\x70"
  7042. "\x24\xc3\xbe\x04\x3b\x79\xa0\xf9"
  7043. "\xb8\xe7\x76\x29\x22\x83\xd7\xf2"
  7044. "\x94\xf4\x41\x49\xba\x5f\x7b\x07"
  7045. "\xb5\xfb\xdb\x03\x1a\x9f\xb6\x4c"
  7046. "\xc2\x2e\x37\x40\x49\xc3\x38\x16"
  7047. "\xe2\x4f\x77\x82\xb0\x68\x4c\x71"
  7048. "\x1d\x57\x61\x9c\xd9\x4e\x54\x99"
  7049. "\x47\x13\x28\x73\x3c\xbb\x00\x90"
  7050. "\xf3\x4d\xc9\x0e\xfd\xe7\xb1\x71"
  7051. "\xd3\x15\x79\xbf\xcc\x26\x2f\xbd"
  7052. "\xad\x6c\x50\x69\x6c\x3e\x6d\x80"
  7053. "\x9a\xea\x78\xaf\x19\xb2\x0d\x4d"
  7054. "\xad\x04\x07\xae\x22\x90\x4a\x93"
  7055. "\x32\x0e\x36\x9b\x1b\x46\xba\x3b"
  7056. "\xb4\xac\xc6\xd1\xa2\x31\x53\x3b"
  7057. "\x2a\x3d\x45\xfe\x03\x61\x10\x85"
  7058. "\x17\x69\xa6\x78\xcc\x6c\x87\x49"
  7059. "\x53\xf9\x80\x10\xde\x80\xa2\x41"
  7060. "\x6a\xc3\x32\x02\xad\x6d\x3c\x56"
  7061. "\x00\x71\x51\x06\xa7\xbd\xfb\xef"
  7062. "\x3c\xb5\x9f\xfc\x48\x7d\x53\x7c"
  7063. "\x66\xb0\x49\x23\xc4\x47\x10\x0e"
  7064. "\xe5\x6c\x74\x13\xe6\xc5\x3f\xaa"
  7065. "\xde\xff\x07\x44\xdd\x56\x1b\xad"
  7066. "\x09\x77\xfb\x5b\x12\xb8\x0d\x38"
  7067. "\x17\x37\x35\x7b\x9b\xbc\xfe\xd4"
  7068. "\x7e\x8b\xda\x7e\x5b\x04\xa7\x22"
  7069. "\xa7\x31\xa1\x20\x86\xc7\x1b\x99"
  7070. "\xdb\xd1\x89\xf4\x94\xa3\x53\x69"
  7071. "\x8d\xe7\xe8\x74\x11\x8d\x74\xd6"
  7072. "\x07\x37\x91\x9f\xfd\x67\x50\x3a"
  7073. "\xc9\xe1\xf4\x36\xd5\xa0\x47\xd1"
  7074. "\xf9\xe5\x39\xa3\x31\xac\x07\x36"
  7075. "\x23\xf8\x66\x18\x14\x28\x34\x0f"
  7076. "\xb8\xd0\xe7\x29\xb3\x04\x4b\x55"
  7077. "\x01\x41\xb2\x75\x8d\xcb\x96\x85"
  7078. "\x3a\xfb\xab\x2b\x9e\xfa\x58\x20"
  7079. "\x44\x1f\xc0\x14\x22\x75\x61\xe8"
  7080. "\xaa\x19\xcf\xf1\x82\x56\xf4\xd7"
  7081. "\x78\x7b\x3d\x5f\xb3\x9e\x0b\x8a"
  7082. "\x57\x50\xdb\x17\x41\x65\x4d\xa3"
  7083. "\x02\xc9\x9c\x9c\x53\xfb\x39\x39"
  7084. "\x9b\x1d\x72\x24\xda\xb7\x39\xbe"
  7085. "\x13\x3b\xfa\x29\xda\x9e\x54\x64"
  7086. "\x6e\xba\xd8\xa1\xcb\xb3\x36\xfa"
  7087. "\xcb\x47\x85\xe9\x61\x38\xbc\xbe"
  7088. "\xc5\x00\x38\x2a\x54\xf7\xc4\xb9"
  7089. "\xb3\xd3\x7b\xa0\xa0\xf8\x72\x7f"
  7090. "\x8c\x8e\x82\x0e\xc6\x1c\x75\x9d"
  7091. "\xca\x8e\x61\x87\xde\xad\x80\xd2"
  7092. "\xf5\xf9\x80\xef\x15\x75\xaf\xf5"
  7093. "\x80\xfb\xff\x6d\x1e\x25\xb7\x40"
  7094. "\x61\x6a\x39\x5a\x6a\xb5\x31\xab"
  7095. "\x97\x8a\x19\x89\x44\x40\xc0\xa6"
  7096. "\xb4\x4e\x30\x32\x7b\x13\xe7\x67"
  7097. "\xa9\x8b\x57\x04\xc2\x01\xa6\xf4"
  7098. "\x28\x99\xad\x2c\x76\xa3\x78\xc2"
  7099. "\x4a\xe6\xca\x5c\x50\x6a\xc1\xb0"
  7100. "\x62\x4b\x10\x8e\x7c\x17\x43\xb3"
  7101. "\x17\x66\x1c\x3e\x8d\x69\xf0\x5a"
  7102. "\x71\xf5\x97\xdc\xd1\x45\xdd\x28"
  7103. "\xf3\x5d\xdf\x53\x7b\x11\xe5\xbc"
  7104. "\x4c\xdb\x1b\x51\x6b\xe9\xfb\x3d"
  7105. "\xc1\xc3\x2c\xb9\x71\xf5\xb6\xb2"
  7106. "\x13\x36\x79\x80\x53\xe8\xd3\xa6"
  7107. "\x0a\xaf\xfd\x56\x97\xf7\x40\x8e"
  7108. "\x45\xce\xf8\xb0\x9e\x5c\x33\x82"
  7109. "\xb0\x44\x56\xfc\x05\x09\xe9\x2a"
  7110. "\xac\x26\x80\x14\x1d\xc8\x3a\x35"
  7111. "\x4c\x82\x97\xfd\x76\xb7\xa9\x0a"
  7112. "\x35\x58\x79\x8e\x0f\x66\xea\xaf"
  7113. "\x51\x6c\x09\xa9\x6e\x9b\xcb\x9a"
  7114. "\x31\x47\xa0\x2f\x7c\x71\xb4\x4a"
  7115. "\x11\xaa\x8c\x66\xc5\x64\xe6\x3a"
  7116. "\x54\xda\x24\x6a\xc4\x41\x65\x46"
  7117. "\x82\xa0\x0a\x0f\x5f\xfb\x25\xd0"
  7118. "\x2c\x91\xa7\xee\xc4\x81\x07\x86"
  7119. "\x75\x5e\x33\x69\x97\xe4\x2c\xa8"
  7120. "\x9d\x9f\x0b\x6a\xbe\xad\x98\xda"
  7121. "\x6d\x94\x41\xda\x2c\x1e\x89\xc4"
  7122. "\xc2\xaf\x1e\x00\x05\x0b\x83\x60"
  7123. "\xbd\x43\xea\x15\x23\x7f\xb9\xac"
  7124. "\xee\x4f\x2c\xaf\x2a\xf3\xdf\xd0"
  7125. "\xf3\x19\x31\xbb\x4a\x74\x84\x17"
  7126. "\x52\x32\x2c\x7d\x61\xe4\xcb\xeb"
  7127. "\x80\x38\x15\x52\xcb\x6f\xea\xe5"
  7128. "\x73\x9c\xd9\x24\x69\xc6\x95\x32"
  7129. "\x21\xc8\x11\xe4\xdc\x36\xd7\x93"
  7130. "\x38\x66\xfb\xb2\x7f\x3a\xb9\xaf"
  7131. "\x31\xdd\x93\x75\x78\x8a\x2c\x94"
  7132. "\x87\x1a\x58\xec\x9e\x7d\x4d\xba"
  7133. "\xe1\xe5\x4d\xfc\xbc\xa4\x2a\x14"
  7134. "\xef\xcc\xa7\xec\xab\x43\x09\x18"
  7135. "\xd3\xab\x68\xd1\x07\x99\x44\x47"
  7136. "\xd6\x83\x85\x3b\x30\xea\xa9\x6b"
  7137. "\x63\xea\xc4\x07\xfb\x43\x2f\xa4"
  7138. "\xaa\xb0\xab\x03\x89\xce\x3f\x8c"
  7139. "\x02\x7c\x86\x54\xbc\x88\xaf\x75"
  7140. "\xd2\xdc\x63\x17\xd3\x26\xf6\x96"
  7141. "\xa9\x3c\xf1\x61\x8c\x11\x18\xcc"
  7142. "\xd6\xea\x5b\xe2\xcd\xf0\xf1\xb2"
  7143. "\xe5\x35\x90\x1f\x85\x4c\x76\x5b"
  7144. "\x66\xce\x44\xa4\x32\x9f\xe6\x7b"
  7145. "\x71\x6e\x9f\x58\x15\x67\x72\x87"
  7146. "\x64\x8e\x3a\x44\x45\xd4\x76\xfa"
  7147. "\xc2\xf6\xef\x85\x05\x18\x7a\x9b"
  7148. "\xba\x41\x54\xac\xf0\xfc\x59\x12"
  7149. "\x3f\xdf\xa0\xe5\x8a\x65\xfd\x3a"
  7150. "\x62\x8d\x83\x2c\x03\xbe\x05\x76"
  7151. "\x2e\x53\x49\x97\x94\x33\xae\x40"
  7152. "\x81\x15\xdb\x6e\xad\xaa\xf5\x4b"
  7153. "\xe3\x98\x70\xdf\xe0\x7c\xcd\xdb"
  7154. "\x02\xd4\x7d\x2f\xc1\xe6\xb4\xf3"
  7155. "\xd7\x0d\x7a\xd9\x23\x9e\x87\x2d"
  7156. "\xce\x87\xad\xcc\x72\x05\x00\x29"
  7157. "\xdc\x73\x7f\x64\xc1\x15\x0e\xc2"
  7158. "\xdf\xa7\x5f\xeb\x41\xa1\xcd\xef"
  7159. "\x5c\x50\x79\x2a\x56\x56\x71\x8c"
  7160. "\xac\xc0\x79\x50\x69\xca\x59\x32"
  7161. "\x65\xf2\x54\xe4\x52\x38\x76\xd1"
  7162. "\x5e\xde\x26\x9e\xfb\x75\x2e\x11"
  7163. "\xb5\x10\xf4\x17\x73\xf5\x89\xc7"
  7164. "\x4f\x43\x5c\x8e\x7c\xb9\x05\x52"
  7165. "\x24\x40\x99\xfe\x9b\x85\x0b\x6c"
  7166. "\x22\x3e\x8b\xae\x86\xa1\xd2\x79"
  7167. "\x05\x68\x6b\xab\xe3\x41\x49\xed"
  7168. "\x15\xa1\x8d\x40\x2d\x61\xdf\x1a"
  7169. "\x59\xc9\x26\x8b\xef\x30\x4c\x88"
  7170. "\x4b\x10\xf8\x8d\xa6\x92\x9f\x4b"
  7171. "\xf3\xc4\x53\x0b\x89\x5d\x28\x92"
  7172. "\xcf\x78\xb2\xc0\x5d\xed\x7e\xfc"
  7173. "\xc0\x12\x23\x5f\x5a\x78\x86\x43"
  7174. "\x6e\x27\xf7\x5a\xa7\x6a\xed\x19"
  7175. "\x04\xf0\xb3\x12\xd1\xbd\x0e\x89"
  7176. "\x6e\xbc\x96\xa8\xd8\x49\x39\x9f"
  7177. "\x7e\x67\xf0\x2e\x3e\x01\xa9\xba"
  7178. "\xec\x8b\x62\x8e\xcb\x4a\x70\x43"
  7179. "\xc7\xc2\xc4\xca\x82\x03\x73\xe9"
  7180. "\x11\xdf\xcf\x54\xea\xc9\xb0\x95"
  7181. "\x51\xc0\x13\x3d\x92\x05\xfa\xf4"
  7182. "\xa9\x34\xc8\xce\x6c\x3d\x54\xcc"
  7183. "\xc4\xaf\xf1\xdc\x11\x44\x26\xa2"
  7184. "\xaf\xf1\x85\x75\x7d\x03\x61\x68"
  7185. "\x4e\x78\xc6\x92\x7d\x86\x7d\x77"
  7186. "\xdc\x71\x72\xdb\xc6\xae\xa1\xcb"
  7187. "\x70\x9a\x0b\x19\xbe\x4a\x6c\x2a"
  7188. "\xe2\xba\x6c\x64\x9a\x13\x28\xdf"
  7189. "\x85\x75\xe6\x43\xf6\x87\x08\x68"
  7190. "\x6e\xba\x6e\x79\x9f\x04\xbc\x23"
  7191. "\x50\xf6\x33\x5c\x1f\x24\x25\xbe"
  7192. "\x33\x47\x80\x45\x56\xa3\xa7\xd7"
  7193. "\x7a\xb1\x34\x0b\x90\x3c\x9c\xad"
  7194. "\x44\x5f\x9e\x0e\x9d\xd4\xbd\x93"
  7195. "\x5e\xfa\x3c\xe0\xb0\xd9\xed\xf3"
  7196. "\xd6\x2e\xff\x24\xd8\x71\x6c\xed"
  7197. "\xaf\x55\xeb\x22\xac\x93\x68\x32"
  7198. "\x05\x5b\x47\xdd\xc6\x4a\xcb\xc7"
  7199. "\x10\xe1\x3c\x92\x1a\xf3\x23\x78"
  7200. "\x2b\xa1\xd2\x80\xf4\x12\xb1\x20"
  7201. "\x8f\xff\x26\x35\xdd\xfb\xc7\x4e"
  7202. "\x78\xf1\x2d\x50\x12\x77\xa8\x60"
  7203. "\x7c\x0f\xf5\x16\x2f\x63\x70\x2a"
  7204. "\xc0\x96\x80\x4e\x0a\xb4\x93\x35"
  7205. "\x5d\x1d\x3f\x56\xf7\x2f\xbb\x90"
  7206. "\x11\x16\x8f\xa2\xec\x47\xbe\xac"
  7207. "\x56\x01\x26\x56\xb1\x8c\xb2\x10"
  7208. "\xf9\x1a\xca\xf5\xd1\xb7\x39\x20"
  7209. "\x63\xf1\x69\x20\x4f\x13\x12\x1f"
  7210. "\x5b\x65\xfc\x98\xf7\xc4\x7a\xbe"
  7211. "\xf7\x26\x4d\x2b\x84\x7b\x42\xad"
  7212. "\xd8\x7a\x0a\xb4\xd8\x74\xbf\xc1"
  7213. "\xf0\x6e\xb4\x29\xa3\xbb\xca\x46"
  7214. "\x67\x70\x6a\x2d\xce\x0e\xa2\x8a"
  7215. "\xa9\x87\xbf\x05\xc4\xc1\x04\xa3"
  7216. "\xab\xd4\x45\x43\x8c\xb6\x02\xb0"
  7217. "\x41\xc8\xfc\x44\x3d\x59\xaa\x2e"
  7218. "\x44\x21\x2a\x8d\x88\x9d\x57\xf4"
  7219. "\xa0\x02\x77\xb8\xa6\xa0\xe6\x75"
  7220. "\x5c\x82\x65\x3e\x03\x5c\x29\x8f"
  7221. "\x38\x55\xab\x33\x26\xef\x9f\x43"
  7222. "\x52\xfd\x68\xaf\x36\xb4\xbb\x9a"
  7223. "\x58\x09\x09\x1b\xc3\x65\x46\x46"
  7224. "\x1d\xa7\x94\x18\x23\x50\x2c\xca"
  7225. "\x2c\x55\x19\x97\x01\x9d\x93\x3b"
  7226. "\x63\x86\xf2\x03\x67\x45\xd2\x72"
  7227. "\x28\x52\x6c\xf4\xe3\x1c\xb5\x11"
  7228. "\x13\xf1\xeb\x21\xc7\xd9\x56\x82"
  7229. "\x2b\x82\x39\xbd\x69\x54\xed\x62"
  7230. "\xc3\xe2\xde\x73\xd4\x6a\x12\xae"
  7231. "\x13\x21\x7f\x4b\x5b\xfc\xbf\xe8"
  7232. "\x2b\xbe\x56\xba\x68\x8b\x9a\xb1"
  7233. "\x6e\xfa\xbf\x7e\x5a\x4b\xf1\xac"
  7234. "\x98\x65\x85\xd1\x93\x53\xd3\x7b"
  7235. "\x09\xdd\x4b\x10\x6d\x84\xb0\x13"
  7236. "\x65\xbd\xcf\x52\x09\xc4\x85\xe2"
  7237. "\x84\x74\x15\x65\xb7\xf7\x51\xaf"
  7238. "\x55\xad\xa4\xd1\x22\x54\x70\x94"
  7239. "\xa0\x1c\x90\x41\xfd\x99\xd7\x5a"
  7240. "\x31\xef\xaa\x25\xd0\x7f\x4f\xea"
  7241. "\x1d\x55\x42\xe5\x49\xb0\xd0\x46"
  7242. "\x62\x36\x43\xb2\x82\x15\x75\x50"
  7243. "\xa4\x72\xeb\x54\x27\x1f\x8a\xe4"
  7244. "\x7d\xe9\x66\xc5\xf1\x53\xa4\xd1"
  7245. "\x0c\xeb\xb8\xf8\xbc\xd4\xe2\xe7"
  7246. "\xe1\xf8\x4b\xcb\xa9\xa1\xaf\x15"
  7247. "\x83\xcb\x72\xd0\x33\x79\x00\x2d"
  7248. "\x9f\xd7\xf1\x2e\x1e\x10\xe4\x45"
  7249. "\xc0\x75\x3a\x39\xea\x68\xf7\x5d"
  7250. "\x1b\x73\x8f\xe9\x8e\x0f\x72\x47"
  7251. "\xae\x35\x0a\x31\x7a\x14\x4d\x4a"
  7252. "\x6f\x47\xf7\x7e\x91\x6e\x74\x8b"
  7253. "\x26\x47\xf9\xc3\xf9\xde\x70\xf5"
  7254. "\x61\xab\xa9\x27\x9f\x82\xe4\x9c"
  7255. "\x89\x91\x3f\x2e\x6a\xfd\xb5\x49"
  7256. "\xe9\xfd\x59\x14\x36\x49\x40\x6d"
  7257. "\x32\xd8\x85\x42\xf3\xa5\xdf\x0c"
  7258. "\xa8\x27\xd7\x54\xe2\x63\x2f\xf2"
  7259. "\x7e\x8b\x8b\xe7\xf1\x9a\x95\x35"
  7260. "\x43\xdc\x3a\xe4\xb6\xf4\xd0\xdf"
  7261. "\x9c\xcb\x94\xf3\x21\xa0\x77\x50"
  7262. "\xe2\xc6\xc4\xc6\x5f\x09\x64\x5b"
  7263. "\x92\x90\xd8\xe1\xd1\xed\x4b\x42"
  7264. "\xd7\x37\xaf\x65\x3d\x11\x39\xb6"
  7265. "\x24\x8a\x60\xae\xd6\x1e\xbf\x0e"
  7266. "\x0d\xd7\xdc\x96\x0e\x65\x75\x4e"
  7267. "\x29\x06\x9d\xa4\x51\x3a\x10\x63"
  7268. "\x8f\x17\x07\xd5\x8e\x3c\xf4\x28"
  7269. "\x00\x5a\x5b\x05\x19\xd8\xc0\x6c"
  7270. "\xe5\x15\xe4\x9c\x9d\x71\x9d\x5e"
  7271. "\x94\x29\x1a\xa7\x80\xfa\x0e\x33"
  7272. "\x03\xdd\xb7\x3e\x9a\xa9\x26\x18"
  7273. "\x37\xa9\x64\x08\x4d\x94\x5a\x88"
  7274. "\xca\x35\xce\x81\x02\xe3\x1f\x1b"
  7275. "\x89\x1a\x77\x85\xe3\x41\x6d\x32"
  7276. "\x42\x19\x23\x7d\xc8\x73\xee\x25"
  7277. "\x85\x0d\xf8\x31\x25\x79\x1b\x6f"
  7278. "\x79\x25\xd2\xd8\xd4\x23\xfd\xf7"
  7279. "\x82\x36\x6a\x0c\x46\x22\x15\xe9"
  7280. "\xff\x72\x41\x91\x91\x7d\x3a\xb7"
  7281. "\xdd\x65\x99\x70\xf6\x8d\x84\xf8"
  7282. "\x67\x15\x20\x11\xd6\xb2\x55\x7b"
  7283. "\xdb\x87\xee\xef\x55\x89\x2a\x59"
  7284. "\x2b\x07\x8f\x43\x8a\x59\x3c\x01"
  7285. "\x8b\x65\x54\xa1\x66\xd5\x38\xbd"
  7286. "\xc6\x30\xa9\xcc\x49\xb6\xa8\x1b"
  7287. "\xb8\xc0\x0e\xe3\x45\x28\xe2\xff"
  7288. "\x41\x9f\x7e\x7c\xd1\xae\x9e\x25"
  7289. "\x3f\x4c\x7c\x7c\xf4\xa8\x26\x4d"
  7290. "\x5c\xfd\x4b\x27\x18\xf9\x61\x76"
  7291. "\x48\xba\x0c\x6b\xa9\x4d\xfc\xf5"
  7292. "\x3b\x35\x7e\x2f\x4a\xa9\xc2\x9a"
  7293. "\xae\xab\x86\x09\x89\xc9\xc2\x40"
  7294. "\x39\x2c\x81\xb3\xb8\x17\x67\xc2"
  7295. "\x0d\x32\x4a\x3a\x67\x81\xd7\x1a"
  7296. "\x34\x52\xc5\xdb\x0a\xf5\x63\x39"
  7297. "\xea\x1f\xe1\x7c\xa1\x9e\xc1\x35"
  7298. "\xe3\xb1\x18\x45\x67\xf9\x22\x38"
  7299. "\x95\xd9\x34\x34\x86\xc6\x41\x94"
  7300. "\x15\xf9\x5b\x41\xa6\x87\x8b\xf8"
  7301. "\xd5\xe1\x1b\xe2\x5b\xf3\x86\x10"
  7302. "\xff\xe6\xae\x69\x76\xbc\x0d\xb4"
  7303. "\x09\x90\x0c\xa2\x65\x0c\xad\x74"
  7304. "\xf5\xd7\xff\xda\xc1\xce\x85\xbe"
  7305. "\x00\xa7\xff\x4d\x2f\x65\xd3\x8c"
  7306. "\x86\x2d\x05\xe8\xed\x3e\x6b\x8b"
  7307. "\x0f\x3d\x83\x8c\xf1\x1d\x5b\x96"
  7308. "\x2e\xb1\x9c\xc2\x98\xe1\x70\xb9"
  7309. "\xba\x5c\x8a\x43\xd6\x34\xa7\x2d"
  7310. "\xc9\x92\xae\xf2\xa5\x7b\x05\x49"
  7311. "\xa7\x33\x34\x86\xca\xe4\x96\x23"
  7312. "\x76\x5b\xf2\xc6\xf1\x51\x28\x42"
  7313. "\x7b\xcc\x76\x8f\xfa\xa2\xad\x31"
  7314. "\xd4\xd6\x7a\x6d\x25\x25\x54\xe4"
  7315. "\x3f\x50\x59\xe1\x5c\x05\xb7\x27"
  7316. "\x48\xbf\x07\xec\x1b\x13\xbe\x2b"
  7317. "\xa1\x57\x2b\xd5\xab\xd7\xd0\x4c"
  7318. "\x1e\xcb\x71\x9b\xc5\x90\x85\xd3"
  7319. "\xde\x59\xec\x71\xeb\x89\xbb\xd0"
  7320. "\x09\x50\xe1\x16\x3f\xfd\x1c\x34"
  7321. "\xc3\x1c\xa1\x10\x77\x53\x98\xef"
  7322. "\xf2\xfd\xa5\x01\x59\xc2\x9b\x26"
  7323. "\xc7\x42\xd9\x49\xda\x58\x2b\x6e"
  7324. "\x9f\x53\x19\x76\x7e\xd9\xc9\x0e"
  7325. "\x68\xc8\x7f\x51\x22\x42\xef\x49"
  7326. "\xa4\x55\xb6\x36\xac\x09\xc7\x31"
  7327. "\x88\x15\x4b\x2e\x8f\x3a\x08\xf7"
  7328. "\xd8\xf7\xa8\xc5\xa9\x33\xa6\x45"
  7329. "\xe4\xc4\x94\x76\xf3\x0d\x8f\x7e"
  7330. "\xc8\xf6\xbc\x23\x0a\xb6\x4c\xd3"
  7331. "\x6a\xcd\x36\xc2\x90\x5c\x5c\x3c"
  7332. "\x65\x7b\xc2\xd6\xcc\xe6\x0d\x87"
  7333. "\x73\x2e\x71\x79\x16\x06\x63\x28"
  7334. "\x09\x15\xd8\x89\x38\x38\x3d\xb5"
  7335. "\x42\x1c\x08\x24\xf7\x2a\xd2\x9d"
  7336. "\xc8\xca\xef\xf9\x27\xd8\x07\x86"
  7337. "\xf7\x43\x0b\x55\x15\x3f\x9f\x83"
  7338. "\xef\xdc\x49\x9d\x2a\xc1\x54\x62"
  7339. "\xbd\x9b\x66\x55\x9f\xb7\x12\xf3"
  7340. "\x1b\x4d\x9d\x2a\x5c\xed\x87\x75"
  7341. "\x87\x26\xec\x61\x2c\xb4\x0f\x89"
  7342. "\xb0\xfb\x2e\x68\x5d\x15\xc7\x8d"
  7343. "\x2e\xc0\xd9\xec\xaf\x4f\xd2\x25"
  7344. "\x29\xe8\xd2\x26\x2b\x67\xe9\xfc"
  7345. "\x2b\xa8\x67\x96\x12\x1f\x5b\x96"
  7346. "\xc6\x14\x53\xaf\x44\xea\xd6\xe2"
  7347. "\x94\x98\xe4\x12\x93\x4c\x92\xe0"
  7348. "\x18\xa5\x8d\x2d\xe4\x71\x3c\x47"
  7349. "\x4c\xf7\xe6\x47\x9e\xc0\x68\xdf"
  7350. "\xd4\xf5\x5a\x74\xb1\x2b\x29\x03"
  7351. "\x19\x07\xaf\x90\x62\x5c\x68\x98"
  7352. "\x48\x16\x11\x02\x9d\xee\xb4\x9b"
  7353. "\xe5\x42\x7f\x08\xfd\x16\x32\x0b"
  7354. "\xd0\xb3\xfa\x2b\xb7\x99\xf9\x29"
  7355. "\xcd\x20\x45\x9f\xb3\x1a\x5d\xa2"
  7356. "\xaf\x4d\xe0\xbd\x42\x0d\xbc\x74"
  7357. "\x99\x9c\x8e\x53\x1a\xb4\x3e\xbd"
  7358. "\xa2\x9a\x2d\xf7\xf8\x39\x0f\x67"
  7359. "\x63\xfc\x6b\xc0\xaf\xb3\x4b\x4f"
  7360. "\x55\xc4\xcf\xa7\xc8\x04\x11\x3e"
  7361. "\x14\x32\xbb\x1b\x38\x77\xd6\x7f"
  7362. "\x54\x4c\xdf\x75\xf3\x07\x2d\x33"
  7363. "\x9b\xa8\x20\xe1\x7b\x12\xb5\xf3"
  7364. "\xef\x2f\xce\x72\xe5\x24\x60\xc1"
  7365. "\x30\xe2\xab\xa1\x8e\x11\x09\xa8"
  7366. "\x21\x33\x44\xfe\x7f\x35\x32\x93"
  7367. "\x39\xa7\xad\x8b\x79\x06\xb2\xcb"
  7368. "\x4e\xa9\x5f\xc7\xba\x74\x29\xec"
  7369. "\x93\xa0\x4e\x54\x93\xc0\xbc\x55"
  7370. "\x64\xf0\x48\xe5\x57\x99\xee\x75"
  7371. "\xd6\x79\x0f\x66\xb7\xc6\x57\x76"
  7372. "\xf7\xb7\xf3\x9c\xc5\x60\xe8\x7f"
  7373. "\x83\x76\xd6\x0e\xaa\xe6\x90\x39"
  7374. "\x1d\xa6\x32\x6a\x34\xe3\x55\xf8"
  7375. "\x58\xa0\x58\x7d\x33\xe0\x22\x39"
  7376. "\x44\x64\x87\x86\x5a\x2f\xa7\x7e"
  7377. "\x0f\x38\xea\xb0\x30\xcc\x61\xa5"
  7378. "\x6a\x32\xae\x1e\xf7\xe9\xd0\xa9"
  7379. "\x0c\x32\x4b\xb5\x49\x28\xab\x85"
  7380. "\x2f\x8e\x01\x36\x38\x52\xd0\xba"
  7381. "\xd6\x02\x78\xf8\x0e\x3e\x9c\x8b"
  7382. "\x6b\x45\x99\x3f\x5c\xfe\x58\xf1"
  7383. "\x5c\x94\x04\xe1\xf5\x18\x6d\x51"
  7384. "\xb2\x5d\x18\x20\xb6\xc2\x9a\x42"
  7385. "\x1d\xb3\xab\x3c\xb6\x3a\x13\x03"
  7386. "\xb2\x46\x82\x4f\xfc\x64\xbc\x4f"
  7387. "\xca\xfa\x9c\xc0\xd5\xa7\xbd\x11"
  7388. "\xb7\xe4\x5a\xf6\x6f\x4d\x4d\x54"
  7389. "\xea\xa4\x98\x66\xd4\x22\x3b\xd3"
  7390. "\x8f\x34\x47\xd9\x7c\xf4\x72\x3b"
  7391. "\x4d\x02\x77\xf6\xd6\xdd\x08\x0a"
  7392. "\x81\xe1\x86\x89\x3e\x56\x10\x3c"
  7393. "\xba\xd7\x81\x8c\x08\xbc\x8b\xe2"
  7394. "\x53\xec\xa7\x89\xee\xc8\x56\xb5"
  7395. "\x36\x2c\xb2\x03\xba\x99\xdd\x7c"
  7396. "\x48\xa0\xb0\xbc\x91\x33\xe9\xa8"
  7397. "\xcb\xcd\xcf\x59\x5f\x1f\x15\xe2"
  7398. "\x56\xf5\x4e\x01\x35\x27\x45\x77"
  7399. "\x47\xc8\xbc\xcb\x7e\x39\xc1\x97"
  7400. "\x28\xd3\x84\xfc\x2c\x3e\xc8\xad"
  7401. "\x9c\xf8\x8a\x61\x9c\x28\xaa\xc5"
  7402. "\x99\x20\x43\x85\x9d\xa5\xe2\x8b"
  7403. "\xb8\xae\xeb\xd0\x32\x0d\x52\x78"
  7404. "\x09\x56\x3f\xc7\xd8\x7e\x26\xfc"
  7405. "\x37\xfb\x6f\x04\xfc\xfa\x92\x10"
  7406. "\xac\xf8\x3e\x21\xdc\x8c\x21\x16"
  7407. "\x7d\x67\x6e\xf6\xcd\xda\xb6\x98"
  7408. "\x23\xab\x23\x3c\xb2\x10\xa0\x53"
  7409. "\x5a\x56\x9f\xc5\xd0\xff\xbb\xe4"
  7410. "\x98\x3c\x69\x1e\xdb\x38\x8f\x7e"
  7411. "\x0f\xd2\x98\x88\x81\x8b\x45\x67"
  7412. "\xea\x33\xf1\xeb\xe9\x97\x55\x2e"
  7413. "\xd9\xaa\xeb\x5a\xec\xda\xe1\x68"
  7414. "\xa8\x9d\x3c\x84\x7c\x05\x3d\x62"
  7415. "\x87\x8f\x03\x21\x28\x95\x0c\x89"
  7416. "\x25\x22\x4a\xb0\x93\xa9\x50\xa2"
  7417. "\x2f\x57\x6e\x18\x42\x19\x54\x0c"
  7418. "\x55\x67\xc6\x11\x49\xf4\x5c\xd2"
  7419. "\xe9\x3d\xdd\x8b\x48\x71\x21\x00"
  7420. "\xc3\x9a\x6c\x85\x74\x28\x83\x4a"
  7421. "\x1b\x31\x05\xe1\x06\x92\xe7\xda"
  7422. "\x85\x73\x78\x45\x20\x7f\xae\x13"
  7423. "\x7c\x33\x06\x22\xf4\x83\xf9\x35"
  7424. "\x3f\x6c\x71\xa8\x4e\x48\xbe\x9b"
  7425. "\xce\x8a\xba\xda\xbe\x28\x08\xf7"
  7426. "\xe2\x14\x8c\x71\xea\x72\xf9\x33"
  7427. "\xf2\x88\x3f\xd7\xbb\x69\x6c\x29"
  7428. "\x19\xdc\x84\xce\x1f\x12\x4f\xc8"
  7429. "\xaf\xa5\x04\xba\x5a\xab\xb0\xd9"
  7430. "\x14\x1f\x6c\x68\x98\x39\x89\x7a"
  7431. "\xd9\xd8\x2f\xdf\xa8\x47\x4a\x25"
  7432. "\xe2\xfb\x33\xf4\x59\x78\xe1\x68"
  7433. "\x85\xcf\xfe\x59\x20\xd4\x05\x1d"
  7434. "\x80\x99\xae\xbc\xca\xae\x0f\x2f"
  7435. "\x65\x43\x34\x8e\x7e\xac\xd3\x93"
  7436. "\x2f\xac\x6d\x14\x3d\x02\x07\x70"
  7437. "\x9d\xa4\xf3\x1b\x5c\x36\xfc\x01"
  7438. "\x73\x34\x85\x0c\x6c\xd6\xf1\xbd"
  7439. "\x3f\xdf\xee\xf5\xd9\xba\x56\xef"
  7440. "\xf4\x9b\x6b\xee\x9f\x5a\x78\x6d"
  7441. "\x32\x19\xf4\xf7\xf8\x4c\x69\x0b"
  7442. "\x4b\xbc\xbb\xb7\xf2\x85\xaf\x70"
  7443. "\x75\x24\x6c\x54\xa7\x0e\x4d\x1d"
  7444. "\x01\xbf\x08\xac\xcf\x7f\x2c\xe3"
  7445. "\x14\x89\x5e\x70\x5a\x99\x92\xcd"
  7446. "\x01\x84\xc8\xd2\xab\xe5\x4f\x58"
  7447. "\xe7\x0f\x2f\x0e\xff\x68\xea\xfd"
  7448. "\x15\xb3\x17\xe6\xb0\xe7\x85\xd8"
  7449. "\x23\x2e\x05\xc7\xc9\xc4\x46\x1f"
  7450. "\xe1\x9e\x49\x20\x23\x24\x4d\x7e"
  7451. "\x29\x65\xff\xf4\xb6\xfd\x1a\x85"
  7452. "\xc4\x16\xec\xfc\xea\x7b\xd6\x2c"
  7453. "\x43\xf8\xb7\xbf\x79\xc0\x85\xcd"
  7454. "\xef\xe1\x98\xd3\xa5\xf7\x90\x8c"
  7455. "\xe9\x7f\x80\x6b\xd2\xac\x4c\x30"
  7456. "\xa7\xc6\x61\x6c\xd2\xf9\x2c\xff"
  7457. "\x30\xbc\x22\x81\x7d\x93\x12\xe4"
  7458. "\x0a\xcd\xaf\xdd\xe8\xab\x0a\x1e"
  7459. "\x13\xa4\x27\xc3\x5f\xf7\x4b\xbb"
  7460. "\x37\x09\x4b\x91\x6f\x92\x4f\xaf"
  7461. "\x52\xee\xdf\xef\x09\x6f\xf7\x5c"
  7462. "\x6e\x12\x17\x72\x63\x57\xc7\xba"
  7463. "\x3b\x6b\x38\x32\x73\x1b\x9c\x80"
  7464. "\xc1\x7a\xc6\xcf\xcd\x35\xc0\x6b"
  7465. "\x31\x1a\x6b\xe9\xd8\x2c\x29\x3f"
  7466. "\x96\xfb\xb6\xcd\x13\x91\x3b\xc2"
  7467. "\xd2\xa3\x31\x8d\xa4\xcd\x57\xcd"
  7468. "\x13\x3d\x64\xfd\x06\xce\xe6\xdc"
  7469. "\x0c\x24\x43\x31\x40\x57\xf1\x72"
  7470. "\x17\xe3\x3a\x63\x6d\x35\xcf\x5d"
  7471. "\x97\x40\x59\xdd\xf7\x3c\x02\xf7"
  7472. "\x1c\x7e\x05\xbb\xa9\x0d\x01\xb1"
  7473. "\x8e\xc0\x30\xa9\x53\x24\xc9\x89"
  7474. "\x84\x6d\xaa\xd0\xcd\x91\xc2\x4d"
  7475. "\x91\xb0\x89\xe2\xbf\x83\x44\xaa"
  7476. "\x28\x72\x23\xa0\xc2\xad\xad\x1c"
  7477. "\xfc\x3f\x09\x7a\x0b\xdc\xc5\x1b"
  7478. "\x87\x13\xc6\x5b\x59\x8d\xf2\xc8"
  7479. "\xaf\xdf\x11\x95",
  7480. .rlen = 4100,
  7481. },
  7482. };
  7483. /*
  7484. * CTS (Cipher Text Stealing) mode tests
  7485. */
  7486. #define CTS_MODE_ENC_TEST_VECTORS 6
  7487. #define CTS_MODE_DEC_TEST_VECTORS 6
  7488. static struct cipher_testvec cts_mode_enc_tv_template[] = {
  7489. { /* from rfc3962 */
  7490. .klen = 16,
  7491. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  7492. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  7493. .ilen = 17,
  7494. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  7495. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  7496. "\x20",
  7497. .rlen = 17,
  7498. .result = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
  7499. "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
  7500. "\x97",
  7501. }, {
  7502. .klen = 16,
  7503. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  7504. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  7505. .ilen = 31,
  7506. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  7507. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  7508. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  7509. "\x20\x47\x61\x75\x27\x73\x20",
  7510. .rlen = 31,
  7511. .result = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
  7512. "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
  7513. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  7514. "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
  7515. }, {
  7516. .klen = 16,
  7517. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  7518. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  7519. .ilen = 32,
  7520. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  7521. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  7522. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  7523. "\x20\x47\x61\x75\x27\x73\x20\x43",
  7524. .rlen = 32,
  7525. .result = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  7526. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  7527. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  7528. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
  7529. }, {
  7530. .klen = 16,
  7531. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  7532. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  7533. .ilen = 47,
  7534. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  7535. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  7536. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  7537. "\x20\x47\x61\x75\x27\x73\x20\x43"
  7538. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  7539. "\x70\x6c\x65\x61\x73\x65\x2c",
  7540. .rlen = 47,
  7541. .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  7542. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  7543. "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
  7544. "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
  7545. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  7546. "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
  7547. }, {
  7548. .klen = 16,
  7549. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  7550. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  7551. .ilen = 48,
  7552. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  7553. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  7554. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  7555. "\x20\x47\x61\x75\x27\x73\x20\x43"
  7556. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  7557. "\x70\x6c\x65\x61\x73\x65\x2c\x20",
  7558. .rlen = 48,
  7559. .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  7560. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  7561. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  7562. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
  7563. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  7564. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
  7565. }, {
  7566. .klen = 16,
  7567. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  7568. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  7569. .ilen = 64,
  7570. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  7571. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  7572. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  7573. "\x20\x47\x61\x75\x27\x73\x20\x43"
  7574. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  7575. "\x70\x6c\x65\x61\x73\x65\x2c\x20"
  7576. "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
  7577. "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
  7578. .rlen = 64,
  7579. .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  7580. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  7581. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  7582. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  7583. "\x48\x07\xef\xe8\x36\xee\x89\xa5"
  7584. "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
  7585. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  7586. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
  7587. }
  7588. };
  7589. static struct cipher_testvec cts_mode_dec_tv_template[] = {
  7590. { /* from rfc3962 */
  7591. .klen = 16,
  7592. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  7593. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  7594. .rlen = 17,
  7595. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  7596. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  7597. "\x20",
  7598. .ilen = 17,
  7599. .input = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
  7600. "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
  7601. "\x97",
  7602. }, {
  7603. .klen = 16,
  7604. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  7605. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  7606. .rlen = 31,
  7607. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  7608. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  7609. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  7610. "\x20\x47\x61\x75\x27\x73\x20",
  7611. .ilen = 31,
  7612. .input = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
  7613. "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
  7614. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  7615. "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
  7616. }, {
  7617. .klen = 16,
  7618. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  7619. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  7620. .rlen = 32,
  7621. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  7622. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  7623. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  7624. "\x20\x47\x61\x75\x27\x73\x20\x43",
  7625. .ilen = 32,
  7626. .input = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  7627. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  7628. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  7629. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
  7630. }, {
  7631. .klen = 16,
  7632. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  7633. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  7634. .rlen = 47,
  7635. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  7636. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  7637. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  7638. "\x20\x47\x61\x75\x27\x73\x20\x43"
  7639. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  7640. "\x70\x6c\x65\x61\x73\x65\x2c",
  7641. .ilen = 47,
  7642. .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  7643. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  7644. "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
  7645. "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
  7646. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  7647. "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
  7648. }, {
  7649. .klen = 16,
  7650. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  7651. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  7652. .rlen = 48,
  7653. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  7654. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  7655. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  7656. "\x20\x47\x61\x75\x27\x73\x20\x43"
  7657. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  7658. "\x70\x6c\x65\x61\x73\x65\x2c\x20",
  7659. .ilen = 48,
  7660. .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  7661. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  7662. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  7663. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
  7664. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  7665. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
  7666. }, {
  7667. .klen = 16,
  7668. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  7669. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  7670. .rlen = 64,
  7671. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  7672. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  7673. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  7674. "\x20\x47\x61\x75\x27\x73\x20\x43"
  7675. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  7676. "\x70\x6c\x65\x61\x73\x65\x2c\x20"
  7677. "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
  7678. "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
  7679. .ilen = 64,
  7680. .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  7681. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  7682. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  7683. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  7684. "\x48\x07\xef\xe8\x36\xee\x89\xa5"
  7685. "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
  7686. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  7687. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
  7688. }
  7689. };
  7690. /*
  7691. * Compression stuff.
  7692. */
  7693. #define COMP_BUF_SIZE 512
  7694. struct comp_testvec {
  7695. int inlen, outlen;
  7696. char input[COMP_BUF_SIZE];
  7697. char output[COMP_BUF_SIZE];
  7698. };
  7699. /*
  7700. * Deflate test vectors (null-terminated strings).
  7701. * Params: winbits=11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL.
  7702. */
  7703. #define DEFLATE_COMP_TEST_VECTORS 2
  7704. #define DEFLATE_DECOMP_TEST_VECTORS 2
  7705. static struct comp_testvec deflate_comp_tv_template[] = {
  7706. {
  7707. .inlen = 70,
  7708. .outlen = 38,
  7709. .input = "Join us now and share the software "
  7710. "Join us now and share the software ",
  7711. .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  7712. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  7713. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  7714. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  7715. "\x71\xbc\x08\x2b\x01\x00",
  7716. }, {
  7717. .inlen = 191,
  7718. .outlen = 122,
  7719. .input = "This document describes a compression method based on the DEFLATE"
  7720. "compression algorithm. This document defines the application of "
  7721. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  7722. .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  7723. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  7724. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  7725. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  7726. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  7727. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  7728. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  7729. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  7730. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  7731. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  7732. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  7733. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  7734. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  7735. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  7736. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  7737. "\xfa\x02",
  7738. },
  7739. };
  7740. static struct comp_testvec deflate_decomp_tv_template[] = {
  7741. {
  7742. .inlen = 122,
  7743. .outlen = 191,
  7744. .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  7745. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  7746. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  7747. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  7748. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  7749. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  7750. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  7751. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  7752. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  7753. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  7754. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  7755. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  7756. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  7757. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  7758. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  7759. "\xfa\x02",
  7760. .output = "This document describes a compression method based on the DEFLATE"
  7761. "compression algorithm. This document defines the application of "
  7762. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  7763. }, {
  7764. .inlen = 38,
  7765. .outlen = 70,
  7766. .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  7767. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  7768. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  7769. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  7770. "\x71\xbc\x08\x2b\x01\x00",
  7771. .output = "Join us now and share the software "
  7772. "Join us now and share the software ",
  7773. },
  7774. };
  7775. /*
  7776. * LZO test vectors (null-terminated strings).
  7777. */
  7778. #define LZO_COMP_TEST_VECTORS 2
  7779. #define LZO_DECOMP_TEST_VECTORS 2
  7780. static struct comp_testvec lzo_comp_tv_template[] = {
  7781. {
  7782. .inlen = 70,
  7783. .outlen = 46,
  7784. .input = "Join us now and share the software "
  7785. "Join us now and share the software ",
  7786. .output = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
  7787. "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
  7788. "\x64\x20\x73\x68\x61\x72\x65\x20"
  7789. "\x74\x68\x65\x20\x73\x6f\x66\x74"
  7790. "\x77\x70\x01\x01\x4a\x6f\x69\x6e"
  7791. "\x3d\x88\x00\x11\x00\x00",
  7792. }, {
  7793. .inlen = 159,
  7794. .outlen = 133,
  7795. .input = "This document describes a compression method based on the LZO "
  7796. "compression algorithm. This document defines the application of "
  7797. "the LZO algorithm used in UBIFS.",
  7798. .output = "\x00\x2b\x54\x68\x69\x73\x20\x64"
  7799. "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
  7800. "\x64\x65\x73\x63\x72\x69\x62\x65"
  7801. "\x73\x20\x61\x20\x63\x6f\x6d\x70"
  7802. "\x72\x65\x73\x73\x69\x6f\x6e\x20"
  7803. "\x6d\x65\x74\x68\x6f\x64\x20\x62"
  7804. "\x61\x73\x65\x64\x20\x6f\x6e\x20"
  7805. "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
  7806. "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
  7807. "\x69\x74\x68\x6d\x2e\x20\x20\x54"
  7808. "\x68\x69\x73\x2a\x54\x01\x02\x66"
  7809. "\x69\x6e\x65\x73\x94\x06\x05\x61"
  7810. "\x70\x70\x6c\x69\x63\x61\x74\x76"
  7811. "\x0a\x6f\x66\x88\x02\x60\x09\x27"
  7812. "\xf0\x00\x0c\x20\x75\x73\x65\x64"
  7813. "\x20\x69\x6e\x20\x55\x42\x49\x46"
  7814. "\x53\x2e\x11\x00\x00",
  7815. },
  7816. };
  7817. static struct comp_testvec lzo_decomp_tv_template[] = {
  7818. {
  7819. .inlen = 133,
  7820. .outlen = 159,
  7821. .input = "\x00\x2b\x54\x68\x69\x73\x20\x64"
  7822. "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
  7823. "\x64\x65\x73\x63\x72\x69\x62\x65"
  7824. "\x73\x20\x61\x20\x63\x6f\x6d\x70"
  7825. "\x72\x65\x73\x73\x69\x6f\x6e\x20"
  7826. "\x6d\x65\x74\x68\x6f\x64\x20\x62"
  7827. "\x61\x73\x65\x64\x20\x6f\x6e\x20"
  7828. "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
  7829. "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
  7830. "\x69\x74\x68\x6d\x2e\x20\x20\x54"
  7831. "\x68\x69\x73\x2a\x54\x01\x02\x66"
  7832. "\x69\x6e\x65\x73\x94\x06\x05\x61"
  7833. "\x70\x70\x6c\x69\x63\x61\x74\x76"
  7834. "\x0a\x6f\x66\x88\x02\x60\x09\x27"
  7835. "\xf0\x00\x0c\x20\x75\x73\x65\x64"
  7836. "\x20\x69\x6e\x20\x55\x42\x49\x46"
  7837. "\x53\x2e\x11\x00\x00",
  7838. .output = "This document describes a compression method based on the LZO "
  7839. "compression algorithm. This document defines the application of "
  7840. "the LZO algorithm used in UBIFS.",
  7841. }, {
  7842. .inlen = 46,
  7843. .outlen = 70,
  7844. .input = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
  7845. "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
  7846. "\x64\x20\x73\x68\x61\x72\x65\x20"
  7847. "\x74\x68\x65\x20\x73\x6f\x66\x74"
  7848. "\x77\x70\x01\x01\x4a\x6f\x69\x6e"
  7849. "\x3d\x88\x00\x11\x00\x00",
  7850. .output = "Join us now and share the software "
  7851. "Join us now and share the software ",
  7852. },
  7853. };
  7854. /*
  7855. * Michael MIC test vectors from IEEE 802.11i
  7856. */
  7857. #define MICHAEL_MIC_TEST_VECTORS 6
  7858. static struct hash_testvec michael_mic_tv_template[] = {
  7859. {
  7860. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7861. .ksize = 8,
  7862. .plaintext = zeroed_string,
  7863. .psize = 0,
  7864. .digest = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
  7865. },
  7866. {
  7867. .key = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
  7868. .ksize = 8,
  7869. .plaintext = "M",
  7870. .psize = 1,
  7871. .digest = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
  7872. },
  7873. {
  7874. .key = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
  7875. .ksize = 8,
  7876. .plaintext = "Mi",
  7877. .psize = 2,
  7878. .digest = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
  7879. },
  7880. {
  7881. .key = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
  7882. .ksize = 8,
  7883. .plaintext = "Mic",
  7884. .psize = 3,
  7885. .digest = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
  7886. },
  7887. {
  7888. .key = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
  7889. .ksize = 8,
  7890. .plaintext = "Mich",
  7891. .psize = 4,
  7892. .digest = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
  7893. },
  7894. {
  7895. .key = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
  7896. .ksize = 8,
  7897. .plaintext = "Michael",
  7898. .psize = 7,
  7899. .digest = "\x0a\x94\x2b\x12\x4e\xca\xa5\x46",
  7900. }
  7901. };
  7902. /*
  7903. * CRC32C test vectors
  7904. */
  7905. #define CRC32C_TEST_VECTORS 14
  7906. static struct hash_testvec crc32c_tv_template[] = {
  7907. {
  7908. .psize = 0,
  7909. .digest = "\x00\x00\x00\x00",
  7910. },
  7911. {
  7912. .key = "\x87\xa9\xcb\xed",
  7913. .ksize = 4,
  7914. .psize = 0,
  7915. .digest = "\x78\x56\x34\x12",
  7916. },
  7917. {
  7918. .key = "\xff\xff\xff\xff",
  7919. .ksize = 4,
  7920. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  7921. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  7922. "\x11\x12\x13\x14\x15\x16\x17\x18"
  7923. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  7924. "\x21\x22\x23\x24\x25\x26\x27\x28",
  7925. .psize = 40,
  7926. .digest = "\x7f\x15\x2c\x0e",
  7927. },
  7928. {
  7929. .key = "\xff\xff\xff\xff",
  7930. .ksize = 4,
  7931. .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  7932. "\x31\x32\x33\x34\x35\x36\x37\x38"
  7933. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  7934. "\x41\x42\x43\x44\x45\x46\x47\x48"
  7935. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
  7936. .psize = 40,
  7937. .digest = "\xf6\xeb\x80\xe9",
  7938. },
  7939. {
  7940. .key = "\xff\xff\xff\xff",
  7941. .ksize = 4,
  7942. .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
  7943. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  7944. "\x61\x62\x63\x64\x65\x66\x67\x68"
  7945. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  7946. "\x71\x72\x73\x74\x75\x76\x77\x78",
  7947. .psize = 40,
  7948. .digest = "\xed\xbd\x74\xde",
  7949. },
  7950. {
  7951. .key = "\xff\xff\xff\xff",
  7952. .ksize = 4,
  7953. .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  7954. "\x81\x82\x83\x84\x85\x86\x87\x88"
  7955. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  7956. "\x91\x92\x93\x94\x95\x96\x97\x98"
  7957. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
  7958. .psize = 40,
  7959. .digest = "\x62\xc8\x79\xd5",
  7960. },
  7961. {
  7962. .key = "\xff\xff\xff\xff",
  7963. .ksize = 4,
  7964. .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  7965. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  7966. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  7967. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  7968. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
  7969. .psize = 40,
  7970. .digest = "\xd0\x9a\x97\xba",
  7971. },
  7972. {
  7973. .key = "\xff\xff\xff\xff",
  7974. .ksize = 4,
  7975. .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  7976. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  7977. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  7978. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  7979. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  7980. .psize = 40,
  7981. .digest = "\x13\xd9\x29\x2b",
  7982. },
  7983. {
  7984. .key = "\x80\xea\xd3\xf1",
  7985. .ksize = 4,
  7986. .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  7987. "\x31\x32\x33\x34\x35\x36\x37\x38"
  7988. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  7989. "\x41\x42\x43\x44\x45\x46\x47\x48"
  7990. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
  7991. .psize = 40,
  7992. .digest = "\x0c\xb5\xe2\xa2",
  7993. },
  7994. {
  7995. .key = "\xf3\x4a\x1d\x5d",
  7996. .ksize = 4,
  7997. .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
  7998. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  7999. "\x61\x62\x63\x64\x65\x66\x67\x68"
  8000. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  8001. "\x71\x72\x73\x74\x75\x76\x77\x78",
  8002. .psize = 40,
  8003. .digest = "\xd1\x7f\xfb\xa6",
  8004. },
  8005. {
  8006. .key = "\x2e\x80\x04\x59",
  8007. .ksize = 4,
  8008. .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  8009. "\x81\x82\x83\x84\x85\x86\x87\x88"
  8010. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  8011. "\x91\x92\x93\x94\x95\x96\x97\x98"
  8012. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
  8013. .psize = 40,
  8014. .digest = "\x59\x33\xe6\x7a",
  8015. },
  8016. {
  8017. .key = "\xa6\xcc\x19\x85",
  8018. .ksize = 4,
  8019. .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  8020. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  8021. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  8022. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  8023. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
  8024. .psize = 40,
  8025. .digest = "\xbe\x03\x01\xd2",
  8026. },
  8027. {
  8028. .key = "\x41\xfc\xfe\x2d",
  8029. .ksize = 4,
  8030. .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  8031. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  8032. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  8033. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  8034. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  8035. .psize = 40,
  8036. .digest = "\x75\xd3\xc5\x24",
  8037. },
  8038. {
  8039. .key = "\xff\xff\xff\xff",
  8040. .ksize = 4,
  8041. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  8042. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  8043. "\x11\x12\x13\x14\x15\x16\x17\x18"
  8044. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  8045. "\x21\x22\x23\x24\x25\x26\x27\x28"
  8046. "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  8047. "\x31\x32\x33\x34\x35\x36\x37\x38"
  8048. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  8049. "\x41\x42\x43\x44\x45\x46\x47\x48"
  8050. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
  8051. "\x51\x52\x53\x54\x55\x56\x57\x58"
  8052. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  8053. "\x61\x62\x63\x64\x65\x66\x67\x68"
  8054. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  8055. "\x71\x72\x73\x74\x75\x76\x77\x78"
  8056. "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  8057. "\x81\x82\x83\x84\x85\x86\x87\x88"
  8058. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  8059. "\x91\x92\x93\x94\x95\x96\x97\x98"
  8060. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
  8061. "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  8062. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  8063. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  8064. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  8065. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
  8066. "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  8067. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  8068. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  8069. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  8070. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  8071. .psize = 240,
  8072. .digest = "\x75\xd3\xc5\x24",
  8073. .np = 2,
  8074. .tap = { 31, 209 }
  8075. },
  8076. };
  8077. /*
  8078. * Cipher speed tests
  8079. */
  8080. static u8 speed_template_8[] = {8, 0};
  8081. static u8 speed_template_24[] = {24, 0};
  8082. static u8 speed_template_8_32[] = {8, 32, 0};
  8083. static u8 speed_template_16_32[] = {16, 32, 0};
  8084. static u8 speed_template_16_24_32[] = {16, 24, 32, 0};
  8085. static u8 speed_template_32_40_48[] = {32, 40, 48, 0};
  8086. static u8 speed_template_32_48_64[] = {32, 48, 64, 0};
  8087. /*
  8088. * Digest speed tests
  8089. */
  8090. static struct hash_speed generic_hash_speed_template[] = {
  8091. { .blen = 16, .plen = 16, },
  8092. { .blen = 64, .plen = 16, },
  8093. { .blen = 64, .plen = 64, },
  8094. { .blen = 256, .plen = 16, },
  8095. { .blen = 256, .plen = 64, },
  8096. { .blen = 256, .plen = 256, },
  8097. { .blen = 1024, .plen = 16, },
  8098. { .blen = 1024, .plen = 256, },
  8099. { .blen = 1024, .plen = 1024, },
  8100. { .blen = 2048, .plen = 16, },
  8101. { .blen = 2048, .plen = 256, },
  8102. { .blen = 2048, .plen = 1024, },
  8103. { .blen = 2048, .plen = 2048, },
  8104. { .blen = 4096, .plen = 16, },
  8105. { .blen = 4096, .plen = 256, },
  8106. { .blen = 4096, .plen = 1024, },
  8107. { .blen = 4096, .plen = 4096, },
  8108. { .blen = 8192, .plen = 16, },
  8109. { .blen = 8192, .plen = 256, },
  8110. { .blen = 8192, .plen = 1024, },
  8111. { .blen = 8192, .plen = 4096, },
  8112. { .blen = 8192, .plen = 8192, },
  8113. /* End marker */
  8114. { .blen = 0, .plen = 0, }
  8115. };
  8116. #endif /* _CRYPTO_TCRYPT_H */