testmgr.h 1.2 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549
  1. /*
  2. * Algorithm testing framework and tests.
  3. *
  4. * Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
  5. * Copyright (c) 2002 Jean-Francois Dive <jef@linuxbe.org>
  6. * Copyright (c) 2007 Nokia Siemens Networks
  7. * Copyright (c) 2008 Herbert Xu <herbert@gondor.apana.org.au>
  8. *
  9. * Updated RFC4106 AES-GCM testing. Some test vectors were taken from
  10. * http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/proposedmodes/
  11. * gcm/gcm-test-vectors.tar.gz
  12. * Authors: Aidan O'Mahony (aidan.o.mahony@intel.com)
  13. * Adrian Hoban <adrian.hoban@intel.com>
  14. * Gabriele Paoloni <gabriele.paoloni@intel.com>
  15. * Tadeusz Struk (tadeusz.struk@intel.com)
  16. * Copyright (c) 2010, Intel Corporation.
  17. *
  18. * This program is free software; you can redistribute it and/or modify it
  19. * under the terms of the GNU General Public License as published by the Free
  20. * Software Foundation; either version 2 of the License, or (at your option)
  21. * any later version.
  22. *
  23. */
  24. #ifndef _CRYPTO_TESTMGR_H
  25. #define _CRYPTO_TESTMGR_H
  26. #include <linux/netlink.h>
  27. #define MAX_DIGEST_SIZE 64
  28. #define MAX_TAP 8
  29. #define MAX_KEYLEN 160
  30. #define MAX_IVLEN 32
  31. struct hash_testvec {
  32. /* only used with keyed hash algorithms */
  33. char *key;
  34. char *plaintext;
  35. char *digest;
  36. unsigned char tap[MAX_TAP];
  37. unsigned short psize;
  38. unsigned char np;
  39. unsigned char ksize;
  40. };
  41. /*
  42. * cipher_testvec: structure to describe a cipher test
  43. * @key: A pointer to a key used by the test
  44. * @klen: The length of @key
  45. * @iv: A pointer to the IV used by the test
  46. * @input: A pointer to data used as input
  47. * @ilen The length of data in @input
  48. * @result: A pointer to what the test need to produce
  49. * @rlen: The length of data in @result
  50. * @fail: If set to one, the test need to fail
  51. * @wk: Does the test need CRYPTO_TFM_REQ_WEAK_KEY
  52. * ( e.g. test needs to fail due to a weak key )
  53. * @np: numbers of SG to distribute data in (from 1 to MAX_TAP)
  54. * @tap: How to distribute data in @np SGs
  55. * @also_non_np: if set to 1, the test will be also done without
  56. * splitting data in @np SGs
  57. * @fips_skip: Skip the test vector in FIPS mode
  58. */
  59. struct cipher_testvec {
  60. char *key;
  61. char *iv;
  62. char *iv_out;
  63. char *input;
  64. char *result;
  65. unsigned short tap[MAX_TAP];
  66. int np;
  67. unsigned char also_non_np;
  68. bool fail;
  69. unsigned char wk; /* weak key flag */
  70. unsigned char klen;
  71. unsigned short ilen;
  72. unsigned short rlen;
  73. bool fips_skip;
  74. };
  75. struct aead_testvec {
  76. char *key;
  77. char *iv;
  78. char *input;
  79. char *assoc;
  80. char *result;
  81. unsigned char tap[MAX_TAP];
  82. unsigned char atap[MAX_TAP];
  83. int np;
  84. int anp;
  85. bool fail;
  86. unsigned char novrfy; /* ccm dec verification failure expected */
  87. unsigned char wk; /* weak key flag */
  88. unsigned char klen;
  89. unsigned short ilen;
  90. unsigned short alen;
  91. unsigned short rlen;
  92. };
  93. struct cprng_testvec {
  94. char *key;
  95. char *dt;
  96. char *v;
  97. char *result;
  98. unsigned char klen;
  99. unsigned short dtlen;
  100. unsigned short vlen;
  101. unsigned short rlen;
  102. unsigned short loops;
  103. };
  104. struct drbg_testvec {
  105. unsigned char *entropy;
  106. size_t entropylen;
  107. unsigned char *entpra;
  108. unsigned char *entprb;
  109. size_t entprlen;
  110. unsigned char *addtla;
  111. unsigned char *addtlb;
  112. size_t addtllen;
  113. unsigned char *pers;
  114. size_t perslen;
  115. unsigned char *expected;
  116. size_t expectedlen;
  117. };
  118. struct akcipher_testvec {
  119. unsigned char *key;
  120. unsigned char *m;
  121. unsigned char *c;
  122. unsigned int key_len;
  123. unsigned int m_size;
  124. unsigned int c_size;
  125. bool public_key_vec;
  126. };
  127. struct kpp_testvec {
  128. unsigned char *secret;
  129. unsigned char *b_public;
  130. unsigned char *expected_a_public;
  131. unsigned char *expected_ss;
  132. unsigned short secret_size;
  133. unsigned short b_public_size;
  134. unsigned short expected_a_public_size;
  135. unsigned short expected_ss_size;
  136. };
  137. static char zeroed_string[48];
  138. /*
  139. * RSA test vectors. Borrowed from openSSL.
  140. */
  141. #ifdef CONFIG_CRYPTO_FIPS
  142. #define RSA_TEST_VECTORS 2
  143. #else
  144. #define RSA_TEST_VECTORS 5
  145. #endif
  146. static struct akcipher_testvec rsa_tv_template[] = {
  147. {
  148. #ifndef CONFIG_CRYPTO_FIPS
  149. .key =
  150. "\x30\x81\x9A" /* sequence of 154 bytes */
  151. "\x02\x01\x01" /* version - integer of 1 byte */
  152. "\x02\x41" /* modulus - integer of 65 bytes */
  153. "\x00\xAA\x36\xAB\xCE\x88\xAC\xFD\xFF\x55\x52\x3C\x7F\xC4\x52\x3F"
  154. "\x90\xEF\xA0\x0D\xF3\x77\x4A\x25\x9F\x2E\x62\xB4\xC5\xD9\x9C\xB5"
  155. "\xAD\xB3\x00\xA0\x28\x5E\x53\x01\x93\x0E\x0C\x70\xFB\x68\x76\x93"
  156. "\x9C\xE6\x16\xCE\x62\x4A\x11\xE0\x08\x6D\x34\x1E\xBC\xAC\xA0\xA1"
  157. "\xF5"
  158. "\x02\x01\x11" /* public key - integer of 1 byte */
  159. "\x02\x40" /* private key - integer of 64 bytes */
  160. "\x0A\x03\x37\x48\x62\x64\x87\x69\x5F\x5F\x30\xBC\x38\xB9\x8B\x44"
  161. "\xC2\xCD\x2D\xFF\x43\x40\x98\xCD\x20\xD8\xA1\x38\xD0\x90\xBF\x64"
  162. "\x79\x7C\x3F\xA7\xA2\xCD\xCB\x3C\xD1\xE0\xBD\xBA\x26\x54\xB4\xF9"
  163. "\xDF\x8E\x8A\xE5\x9D\x73\x3D\x9F\x33\xB3\x01\x62\x4A\xFD\x1D\x51"
  164. "\x02\x01\x00" /* prime1 - integer of 1 byte */
  165. "\x02\x01\x00" /* prime2 - integer of 1 byte */
  166. "\x02\x01\x00" /* exponent1 - integer of 1 byte */
  167. "\x02\x01\x00" /* exponent2 - integer of 1 byte */
  168. "\x02\x01\x00", /* coefficient - integer of 1 byte */
  169. .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
  170. .c =
  171. "\x63\x1c\xcd\x7b\xe1\x7e\xe4\xde\xc9\xa8\x89\xa1\x74\xcb\x3c\x63"
  172. "\x7d\x24\xec\x83\xc3\x15\xe4\x7f\x73\x05\x34\xd1\xec\x22\xbb\x8a"
  173. "\x5e\x32\x39\x6d\xc1\x1d\x7d\x50\x3b\x9f\x7a\xad\xf0\x2e\x25\x53"
  174. "\x9f\x6e\xbd\x4c\x55\x84\x0c\x9b\xcf\x1a\x4b\x51\x1e\x9e\x0c\x06",
  175. .key_len = 157,
  176. .m_size = 8,
  177. .c_size = 64,
  178. }, {
  179. .key =
  180. "\x30\x82\x01\x1D" /* sequence of 285 bytes */
  181. "\x02\x01\x01" /* version - integer of 1 byte */
  182. "\x02\x81\x81" /* modulus - integer of 129 bytes */
  183. "\x00\xBB\xF8\x2F\x09\x06\x82\xCE\x9C\x23\x38\xAC\x2B\x9D\xA8\x71"
  184. "\xF7\x36\x8D\x07\xEE\xD4\x10\x43\xA4\x40\xD6\xB6\xF0\x74\x54\xF5"
  185. "\x1F\xB8\xDF\xBA\xAF\x03\x5C\x02\xAB\x61\xEA\x48\xCE\xEB\x6F\xCD"
  186. "\x48\x76\xED\x52\x0D\x60\xE1\xEC\x46\x19\x71\x9D\x8A\x5B\x8B\x80"
  187. "\x7F\xAF\xB8\xE0\xA3\xDF\xC7\x37\x72\x3E\xE6\xB4\xB7\xD9\x3A\x25"
  188. "\x84\xEE\x6A\x64\x9D\x06\x09\x53\x74\x88\x34\xB2\x45\x45\x98\x39"
  189. "\x4E\xE0\xAA\xB1\x2D\x7B\x61\xA5\x1F\x52\x7A\x9A\x41\xF6\xC1\x68"
  190. "\x7F\xE2\x53\x72\x98\xCA\x2A\x8F\x59\x46\xF8\xE5\xFD\x09\x1D\xBD"
  191. "\xCB"
  192. "\x02\x01\x11" /* public key - integer of 1 byte */
  193. "\x02\x81\x81" /* private key - integer of 129 bytes */
  194. "\x00\xA5\xDA\xFC\x53\x41\xFA\xF2\x89\xC4\xB9\x88\xDB\x30\xC1\xCD"
  195. "\xF8\x3F\x31\x25\x1E\x06\x68\xB4\x27\x84\x81\x38\x01\x57\x96\x41"
  196. "\xB2\x94\x10\xB3\xC7\x99\x8D\x6B\xC4\x65\x74\x5E\x5C\x39\x26\x69"
  197. "\xD6\x87\x0D\xA2\xC0\x82\xA9\x39\xE3\x7F\xDC\xB8\x2E\xC9\x3E\xDA"
  198. "\xC9\x7F\xF3\xAD\x59\x50\xAC\xCF\xBC\x11\x1C\x76\xF1\xA9\x52\x94"
  199. "\x44\xE5\x6A\xAF\x68\xC5\x6C\x09\x2C\xD3\x8D\xC3\xBE\xF5\xD2\x0A"
  200. "\x93\x99\x26\xED\x4F\x74\xA1\x3E\xDD\xFB\xE1\xA1\xCE\xCC\x48\x94"
  201. "\xAF\x94\x28\xC2\xB7\xB8\x88\x3F\xE4\x46\x3A\x4B\xC8\x5B\x1C\xB3"
  202. "\xC1"
  203. "\x02\x01\x00" /* prime1 - integer of 1 byte */
  204. "\x02\x01\x00" /* prime2 - integer of 1 byte */
  205. "\x02\x01\x00" /* exponent1 - integer of 1 byte */
  206. "\x02\x01\x00" /* exponent2 - integer of 1 byte */
  207. "\x02\x01\x00", /* coefficient - integer of 1 byte */
  208. .key_len = 289,
  209. .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
  210. .c =
  211. "\x74\x1b\x55\xac\x47\xb5\x08\x0a\x6e\x2b\x2d\xf7\x94\xb8\x8a\x95"
  212. "\xed\xa3\x6b\xc9\x29\xee\xb2\x2c\x80\xc3\x39\x3b\x8c\x62\x45\x72"
  213. "\xc2\x7f\x74\x81\x91\x68\x44\x48\x5a\xdc\xa0\x7e\xa7\x0b\x05\x7f"
  214. "\x0e\xa0\x6c\xe5\x8f\x19\x4d\xce\x98\x47\x5f\xbd\x5f\xfe\xe5\x34"
  215. "\x59\x89\xaf\xf0\xba\x44\xd7\xf1\x1a\x50\x72\xef\x5e\x4a\xb6\xb7"
  216. "\x54\x34\xd1\xc4\x83\x09\xdf\x0f\x91\x5f\x7d\x91\x70\x2f\xd4\x13"
  217. "\xcc\x5e\xa4\x6c\xc3\x4d\x28\xef\xda\xaf\xec\x14\x92\xfc\xa3\x75"
  218. "\x13\xb4\xc1\xa1\x11\xfc\x40\x2f\x4c\x9d\xdf\x16\x76\x11\x20\x6b",
  219. .m_size = 8,
  220. .c_size = 128,
  221. }, {
  222. #endif
  223. .key =
  224. "\x30\x82\x02\x1F" /* sequence of 543 bytes */
  225. "\x02\x01\x01" /* version - integer of 1 byte */
  226. "\x02\x82\x01\x00" /* modulus - integer of 256 bytes */
  227. "\xDB\x10\x1A\xC2\xA3\xF1\xDC\xFF\x13\x6B\xED\x44\xDF\xF0\x02\x6D"
  228. "\x13\xC7\x88\xDA\x70\x6B\x54\xF1\xE8\x27\xDC\xC3\x0F\x99\x6A\xFA"
  229. "\xC6\x67\xFF\x1D\x1E\x3C\x1D\xC1\xB5\x5F\x6C\xC0\xB2\x07\x3A\x6D"
  230. "\x41\xE4\x25\x99\xAC\xFC\xD2\x0F\x02\xD3\xD1\x54\x06\x1A\x51\x77"
  231. "\xBD\xB6\xBF\xEA\xA7\x5C\x06\xA9\x5D\x69\x84\x45\xD7\xF5\x05\xBA"
  232. "\x47\xF0\x1B\xD7\x2B\x24\xEC\xCB\x9B\x1B\x10\x8D\x81\xA0\xBE\xB1"
  233. "\x8C\x33\xE4\x36\xB8\x43\xEB\x19\x2A\x81\x8D\xDE\x81\x0A\x99\x48"
  234. "\xB6\xF6\xBC\xCD\x49\x34\x3A\x8F\x26\x94\xE3\x28\x82\x1A\x7C\x8F"
  235. "\x59\x9F\x45\xE8\x5D\x1A\x45\x76\x04\x56\x05\xA1\xD0\x1B\x8C\x77"
  236. "\x6D\xAF\x53\xFA\x71\xE2\x67\xE0\x9A\xFE\x03\xA9\x85\xD2\xC9\xAA"
  237. "\xBA\x2A\xBC\xF4\xA0\x08\xF5\x13\x98\x13\x5D\xF0\xD9\x33\x34\x2A"
  238. "\x61\xC3\x89\x55\xF0\xAE\x1A\x9C\x22\xEE\x19\x05\x8D\x32\xFE\xEC"
  239. "\x9C\x84\xBA\xB7\xF9\x6C\x3A\x4F\x07\xFC\x45\xEB\x12\xE5\x7B\xFD"
  240. "\x55\xE6\x29\x69\xD1\xC2\xE8\xB9\x78\x59\xF6\x79\x10\xC6\x4E\xEB"
  241. "\x6A\x5E\xB9\x9A\xC7\xC4\x5B\x63\xDA\xA3\x3F\x5E\x92\x7A\x81\x5E"
  242. "\xD6\xB0\xE2\x62\x8F\x74\x26\xC2\x0C\xD3\x9A\x17\x47\xE6\x8E\xAB"
  243. "\x02\x03\x01\x00\x01" /* public key - integer of 3 bytes */
  244. "\x02\x82\x01\x00" /* private key - integer of 256 bytes */
  245. "\x52\x41\xF4\xDA\x7B\xB7\x59\x55\xCA\xD4\x2F\x0F\x3A\xCB\xA4\x0D"
  246. "\x93\x6C\xCC\x9D\xC1\xB2\xFB\xFD\xAE\x40\x31\xAC\x69\x52\x21\x92"
  247. "\xB3\x27\xDF\xEA\xEE\x2C\x82\xBB\xF7\x40\x32\xD5\x14\xC4\x94\x12"
  248. "\xEC\xB8\x1F\xCA\x59\xE3\xC1\x78\xF3\x85\xD8\x47\xA5\xD7\x02\x1A"
  249. "\x65\x79\x97\x0D\x24\xF4\xF0\x67\x6E\x75\x2D\xBF\x10\x3D\xA8\x7D"
  250. "\xEF\x7F\x60\xE4\xE6\x05\x82\x89\x5D\xDF\xC6\xD2\x6C\x07\x91\x33"
  251. "\x98\x42\xF0\x02\x00\x25\x38\xC5\x85\x69\x8A\x7D\x2F\x95\x6C\x43"
  252. "\x9A\xB8\x81\xE2\xD0\x07\x35\xAA\x05\x41\xC9\x1E\xAF\xE4\x04\x3B"
  253. "\x19\xB8\x73\xA2\xAC\x4B\x1E\x66\x48\xD8\x72\x1F\xAC\xF6\xCB\xBC"
  254. "\x90\x09\xCA\xEC\x0C\xDC\xF9\x2C\xD7\xEB\xAE\xA3\xA4\x47\xD7\x33"
  255. "\x2F\x8A\xCA\xBC\x5E\xF0\x77\xE4\x97\x98\x97\xC7\x10\x91\x7D\x2A"
  256. "\xA6\xFF\x46\x83\x97\xDE\xE9\xE2\x17\x03\x06\x14\xE2\xD7\xB1\x1D"
  257. "\x77\xAF\x51\x27\x5B\x5E\x69\xB8\x81\xE6\x11\xC5\x43\x23\x81\x04"
  258. "\x62\xFF\xE9\x46\xB8\xD8\x44\xDB\xA5\xCC\x31\x54\x34\xCE\x3E\x82"
  259. "\xD6\xBF\x7A\x0B\x64\x21\x6D\x88\x7E\x5B\x45\x12\x1E\x63\x8D\x49"
  260. "\xA7\x1D\xD9\x1E\x06\xCD\xE8\xBA\x2C\x8C\x69\x32\xEA\xBE\x60\x71"
  261. "\x02\x01\x00" /* prime1 - integer of 1 byte */
  262. "\x02\x01\x00" /* prime2 - integer of 1 byte */
  263. "\x02\x01\x00" /* exponent1 - integer of 1 byte */
  264. "\x02\x01\x00" /* exponent2 - integer of 1 byte */
  265. "\x02\x01\x00", /* coefficient - integer of 1 byte */
  266. .key_len = 547,
  267. .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
  268. .c =
  269. "\xb2\x97\x76\xb4\xae\x3e\x38\x3c\x7e\x64\x1f\xcc\xa2\x7f\xf6\xbe"
  270. "\xcf\x49\xbc\x48\xd3\x6c\x8f\x0a\x0e\xc1\x73\xbd\x7b\x55\x79\x36"
  271. "\x0e\xa1\x87\x88\xb9\x2c\x90\xa6\x53\x5e\xe9\xef\xc4\xe2\x4d\xdd"
  272. "\xf7\xa6\x69\x82\x3f\x56\xa4\x7b\xfb\x62\xe0\xae\xb8\xd3\x04\xb3"
  273. "\xac\x5a\x15\x2a\xe3\x19\x9b\x03\x9a\x0b\x41\xda\x64\xec\x0a\x69"
  274. "\xfc\xf2\x10\x92\xf3\xc1\xbf\x84\x7f\xfd\x2c\xae\xc8\xb5\xf6\x41"
  275. "\x70\xc5\x47\x03\x8a\xf8\xff\x6f\x3f\xd2\x6f\x09\xb4\x22\xf3\x30"
  276. "\xbe\xa9\x85\xcb\x9c\x8d\xf9\x8f\xeb\x32\x91\xa2\x25\x84\x8f\xf5"
  277. "\xdc\xc7\x06\x9c\x2d\xe5\x11\x2c\x09\x09\x87\x09\xa9\xf6\x33\x73"
  278. "\x90\xf1\x60\xf2\x65\xdd\x30\xa5\x66\xce\x62\x7b\xd0\xf8\x2d\x3d"
  279. "\x19\x82\x77\xe3\x0a\x5f\x75\x2f\x8e\xb1\xe5\xe8\x91\x35\x1b\x3b"
  280. "\x33\xb7\x66\x92\xd1\xf2\x8e\x6f\xe5\x75\x0c\xad\x36\xfb\x4e\xd0"
  281. "\x66\x61\xbd\x49\xfe\xf4\x1a\xa2\x2b\x49\xfe\x03\x4c\x74\x47\x8d"
  282. "\x9a\x66\xb2\x49\x46\x4d\x77\xea\x33\x4d\x6b\x3c\xb4\x49\x4a\xc6"
  283. "\x7d\x3d\xb5\xb9\x56\x41\x15\x67\x0f\x94\x3c\x93\x65\x27\xe0\x21"
  284. "\x5d\x59\xc3\x62\xd5\xa6\xda\x38\x26\x22\x5e\x34\x1c\x94\xaf\x98",
  285. .m_size = 8,
  286. .c_size = 256,
  287. }, {
  288. .key =
  289. "\x30\x82\x01\x09" /* sequence of 265 bytes */
  290. "\x02\x82\x01\x00" /* modulus - integer of 256 bytes */
  291. "\xDB\x10\x1A\xC2\xA3\xF1\xDC\xFF\x13\x6B\xED\x44\xDF\xF0\x02\x6D"
  292. "\x13\xC7\x88\xDA\x70\x6B\x54\xF1\xE8\x27\xDC\xC3\x0F\x99\x6A\xFA"
  293. "\xC6\x67\xFF\x1D\x1E\x3C\x1D\xC1\xB5\x5F\x6C\xC0\xB2\x07\x3A\x6D"
  294. "\x41\xE4\x25\x99\xAC\xFC\xD2\x0F\x02\xD3\xD1\x54\x06\x1A\x51\x77"
  295. "\xBD\xB6\xBF\xEA\xA7\x5C\x06\xA9\x5D\x69\x84\x45\xD7\xF5\x05\xBA"
  296. "\x47\xF0\x1B\xD7\x2B\x24\xEC\xCB\x9B\x1B\x10\x8D\x81\xA0\xBE\xB1"
  297. "\x8C\x33\xE4\x36\xB8\x43\xEB\x19\x2A\x81\x8D\xDE\x81\x0A\x99\x48"
  298. "\xB6\xF6\xBC\xCD\x49\x34\x3A\x8F\x26\x94\xE3\x28\x82\x1A\x7C\x8F"
  299. "\x59\x9F\x45\xE8\x5D\x1A\x45\x76\x04\x56\x05\xA1\xD0\x1B\x8C\x77"
  300. "\x6D\xAF\x53\xFA\x71\xE2\x67\xE0\x9A\xFE\x03\xA9\x85\xD2\xC9\xAA"
  301. "\xBA\x2A\xBC\xF4\xA0\x08\xF5\x13\x98\x13\x5D\xF0\xD9\x33\x34\x2A"
  302. "\x61\xC3\x89\x55\xF0\xAE\x1A\x9C\x22\xEE\x19\x05\x8D\x32\xFE\xEC"
  303. "\x9C\x84\xBA\xB7\xF9\x6C\x3A\x4F\x07\xFC\x45\xEB\x12\xE5\x7B\xFD"
  304. "\x55\xE6\x29\x69\xD1\xC2\xE8\xB9\x78\x59\xF6\x79\x10\xC6\x4E\xEB"
  305. "\x6A\x5E\xB9\x9A\xC7\xC4\x5B\x63\xDA\xA3\x3F\x5E\x92\x7A\x81\x5E"
  306. "\xD6\xB0\xE2\x62\x8F\x74\x26\xC2\x0C\xD3\x9A\x17\x47\xE6\x8E\xAB"
  307. "\x02\x03\x01\x00\x01", /* public key - integer of 3 bytes */
  308. .key_len = 269,
  309. .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
  310. .c =
  311. "\xb2\x97\x76\xb4\xae\x3e\x38\x3c\x7e\x64\x1f\xcc\xa2\x7f\xf6\xbe"
  312. "\xcf\x49\xbc\x48\xd3\x6c\x8f\x0a\x0e\xc1\x73\xbd\x7b\x55\x79\x36"
  313. "\x0e\xa1\x87\x88\xb9\x2c\x90\xa6\x53\x5e\xe9\xef\xc4\xe2\x4d\xdd"
  314. "\xf7\xa6\x69\x82\x3f\x56\xa4\x7b\xfb\x62\xe0\xae\xb8\xd3\x04\xb3"
  315. "\xac\x5a\x15\x2a\xe3\x19\x9b\x03\x9a\x0b\x41\xda\x64\xec\x0a\x69"
  316. "\xfc\xf2\x10\x92\xf3\xc1\xbf\x84\x7f\xfd\x2c\xae\xc8\xb5\xf6\x41"
  317. "\x70\xc5\x47\x03\x8a\xf8\xff\x6f\x3f\xd2\x6f\x09\xb4\x22\xf3\x30"
  318. "\xbe\xa9\x85\xcb\x9c\x8d\xf9\x8f\xeb\x32\x91\xa2\x25\x84\x8f\xf5"
  319. "\xdc\xc7\x06\x9c\x2d\xe5\x11\x2c\x09\x09\x87\x09\xa9\xf6\x33\x73"
  320. "\x90\xf1\x60\xf2\x65\xdd\x30\xa5\x66\xce\x62\x7b\xd0\xf8\x2d\x3d"
  321. "\x19\x82\x77\xe3\x0a\x5f\x75\x2f\x8e\xb1\xe5\xe8\x91\x35\x1b\x3b"
  322. "\x33\xb7\x66\x92\xd1\xf2\x8e\x6f\xe5\x75\x0c\xad\x36\xfb\x4e\xd0"
  323. "\x66\x61\xbd\x49\xfe\xf4\x1a\xa2\x2b\x49\xfe\x03\x4c\x74\x47\x8d"
  324. "\x9a\x66\xb2\x49\x46\x4d\x77\xea\x33\x4d\x6b\x3c\xb4\x49\x4a\xc6"
  325. "\x7d\x3d\xb5\xb9\x56\x41\x15\x67\x0f\x94\x3c\x93\x65\x27\xe0\x21"
  326. "\x5d\x59\xc3\x62\xd5\xa6\xda\x38\x26\x22\x5e\x34\x1c\x94\xaf\x98",
  327. .m_size = 8,
  328. .c_size = 256,
  329. .public_key_vec = true,
  330. }, {
  331. .key =
  332. "\x30\x82\x09\x29" /* sequence of 2345 bytes */
  333. "\x02\x01\x00" /* version integer of 1 byte */
  334. "\x02\x82\x02\x01" /* modulus - integer of 513 bytes */
  335. "\x00\xC3\x8B\x55\x7B\x73\x4D\xFF\xE9\x9B\xC6\xDC\x67\x3C\xB4\x8E"
  336. "\xA0\x86\xED\xF2\xB9\x50\x5C\x54\x5C\xBA\xE4\xA1\xB2\xA7\xAE\x2F"
  337. "\x1B\x7D\xF1\xFB\xAC\x79\xC5\xDF\x1A\x00\xC9\xB2\xC1\x61\x25\x33"
  338. "\xE6\x9C\xE9\xCF\xD6\x27\xC4\x4E\x44\x30\x44\x5E\x08\xA1\x87\x52"
  339. "\xCC\x6B\x97\x70\x8C\xBC\xA5\x06\x31\x0C\xD4\x2F\xD5\x7D\x26\x24"
  340. "\xA2\xE2\xAC\x78\xF4\x53\x14\xCE\xF7\x19\x2E\xD7\xF7\xE6\x0C\xB9"
  341. "\x56\x7F\x0B\xF1\xB1\xE2\x43\x70\xBD\x86\x1D\xA1\xCC\x2B\x19\x08"
  342. "\x76\xEF\x91\xAC\xBF\x20\x24\x0D\x38\xC0\x89\xB8\x9A\x70\xB3\x64"
  343. "\xD9\x8F\x80\x41\x10\x5B\x9F\xB1\xCB\x76\x43\x00\x21\x25\x36\xD4"
  344. "\x19\xFC\x55\x95\x10\xE4\x26\x74\x98\x2C\xD9\xBD\x0B\x2B\x04\xC2"
  345. "\xAC\x82\x38\xB4\xDD\x4C\x04\x7E\x51\x36\x40\x1E\x0B\xC4\x7C\x25"
  346. "\xDD\x4B\xB2\xE7\x20\x0A\x57\xF9\xB4\x94\xC3\x08\x33\x22\x6F\x8B"
  347. "\x48\xDB\x03\x68\x5A\x5B\xBA\xAE\xF3\xAD\xCF\xC3\x6D\xBA\xF1\x28"
  348. "\x67\x7E\x6C\x79\x07\xDE\xFC\xED\xE7\x96\xE3\x6C\xE0\x2C\x87\xF8"
  349. "\x02\x01\x28\x38\x43\x21\x53\x84\x69\x75\x78\x15\x7E\xEE\xD2\x1B"
  350. "\xB9\x23\x40\xA8\x86\x1E\x38\x83\xB2\x73\x1D\x53\xFB\x9E\x2A\x8A"
  351. "\xB2\x75\x35\x01\xC3\xC3\xC4\x94\xE8\x84\x86\x64\x81\xF4\x42\xAA"
  352. "\x3C\x0E\xD6\x4F\xBC\x0A\x09\x2D\xE7\x1B\xD4\x10\xA8\x54\xEA\x89"
  353. "\x84\x8A\xCB\xF7\x5A\x3C\xCA\x76\x08\x29\x62\xB4\x6A\x22\xDF\x14"
  354. "\x95\x71\xFD\xB6\x86\x39\xB8\x8B\xF8\x91\x7F\x38\xAA\x14\xCD\xE5"
  355. "\xF5\x1D\xC2\x6D\x53\x69\x52\x84\x7F\xA3\x1A\x5E\x26\x04\x83\x06"
  356. "\x73\x52\x56\xCF\x76\x26\xC9\xDD\x75\xD7\xFC\xF4\x69\xD8\x7B\x55"
  357. "\xB7\x68\x13\x53\xB9\xE7\x89\xC3\xE8\xD6\x6E\xA7\x6D\xEA\x81\xFD"
  358. "\xC4\xB7\x05\x5A\xB7\x41\x0A\x23\x8E\x03\x8A\x1C\xAE\xD3\x1E\xCE"
  359. "\xE3\x5E\xFC\x19\x4A\xEE\x61\x9B\x8E\xE5\xE5\xDD\x85\xF9\x41\xEC"
  360. "\x14\x53\x92\xF7\xDD\x06\x85\x02\x91\xE3\xEB\x6C\x43\x03\xB1\x36"
  361. "\x7B\x89\x5A\xA8\xEB\xFC\xD5\xA8\x35\xDC\x81\xD9\x5C\xBD\xCA\xDC"
  362. "\x9B\x98\x0B\x06\x5D\x0C\x5B\xEE\xF3\xD5\xCC\x57\xC9\x71\x2F\x90"
  363. "\x3B\x3C\xF0\x8E\x4E\x35\x48\xAE\x63\x74\xA9\xFC\x72\x75\x8E\x34"
  364. "\xA8\xF2\x1F\xEA\xDF\x3A\x37\x2D\xE5\x39\x39\xF8\x57\x58\x3C\x04"
  365. "\xFE\x87\x06\x98\xBC\x7B\xD3\x21\x36\x60\x25\x54\xA7\x3D\xFA\x91"
  366. "\xCC\xA8\x0B\x92\x8E\xB4\xF7\x06\xFF\x1E\x95\xCB\x07\x76\x97\x3B"
  367. "\x9D"
  368. "\x02\x03\x01\x00\x01" /* public key integer of 3 bytes */
  369. "\x02\x82\x02\x00" /* private key integer of 512 bytes */
  370. "\x74\xA9\xE0\x6A\x32\xB4\xCA\x85\xD9\x86\x9F\x60\x88\x7B\x40\xCC"
  371. "\xCD\x33\x91\xA8\xB6\x25\x1F\xBF\xE3\x51\x1C\x97\xB6\x2A\xD9\xB8"
  372. "\x11\x40\x19\xE3\x21\x13\xC8\xB3\x7E\xDC\xD7\x65\x40\x4C\x2D\xD6"
  373. "\xDC\xAF\x32\x6C\x96\x75\x2C\x2C\xCA\x8F\x3F\x7A\xEE\xC4\x09\xC6"
  374. "\x24\x3A\xC9\xCF\x6D\x8D\x17\x50\x94\x52\xD3\xE7\x0F\x2F\x7E\x94"
  375. "\x1F\xA0\xBE\xD9\x25\xE8\x38\x42\x7C\x27\xD2\x79\xF8\x2A\x87\x38"
  376. "\xEF\xBB\x74\x8B\xA8\x6E\x8C\x08\xC6\xC7\x4F\x0C\xBC\x79\xC6\xEF"
  377. "\x0E\xA7\x5E\xE4\xF8\x8C\x09\xC7\x5E\x37\xCC\x87\x77\xCD\xCF\xD1"
  378. "\x6D\x28\x1B\xA9\x62\xC0\xB8\x16\xA7\x8B\xF9\xBB\xCC\xB4\x15\x7F"
  379. "\x1B\x69\x03\xF2\x7B\xEB\xE5\x8C\x14\xD6\x23\x4F\x52\x6F\x18\xA6"
  380. "\x4B\x5B\x01\xAD\x35\xF9\x48\x53\xB3\x86\x35\x66\xD7\xE7\x29\xC0"
  381. "\x09\xB5\xC6\xE6\xFA\xC4\xDA\x19\xBE\xD7\x4D\x41\x14\xBE\x6F\xDF"
  382. "\x1B\xAB\xC0\xCA\x88\x07\xAC\xF1\x7D\x35\x83\x67\x28\x2D\x50\xE9"
  383. "\xCE\x27\x71\x5E\x1C\xCF\xD2\x30\x65\x79\x72\x2F\x9C\xE1\xD2\x39"
  384. "\x7F\xEF\x3B\x01\xF2\x14\x1D\xDF\xBD\x51\xD3\xA1\x53\x62\xCF\x5F"
  385. "\x79\x84\xCE\x06\x96\x69\x29\x49\x82\x1C\x71\x4A\xA1\x66\xC8\x2F"
  386. "\xFD\x7B\x96\x7B\xFC\xC4\x26\x58\xC4\xFC\x7C\xAF\xB5\xE8\x95\x83"
  387. "\x87\xCB\x46\xDE\x97\xA7\xB3\xA2\x54\x5B\xD7\xAF\xAB\xEB\xC8\xF3"
  388. "\x55\x9D\x48\x2B\x30\x9C\xDC\x26\x4B\xC2\x89\x45\x13\xB2\x01\x9A"
  389. "\xA4\x65\xC3\xEC\x24\x2D\x26\x97\xEB\x80\x8A\x9D\x03\xBC\x59\x66"
  390. "\x9E\xE2\xBB\xBB\x63\x19\x64\x93\x11\x7B\x25\x65\x30\xCD\x5B\x4B"
  391. "\x2C\xFF\xDC\x2D\x30\x87\x1F\x3C\x88\x07\xD0\xFC\x48\xCC\x05\x8A"
  392. "\xA2\xC8\x39\x3E\xD5\x51\xBC\x0A\xBE\x6D\xA8\xA0\xF6\x88\x06\x79"
  393. "\x13\xFF\x1B\x45\xDA\x54\xC9\x24\x25\x8A\x75\x0A\x26\xD1\x69\x81"
  394. "\x14\x14\xD1\x79\x7D\x8E\x76\xF2\xE0\xEB\xDD\x0F\xDE\xC2\xEC\x80"
  395. "\xD7\xDC\x16\x99\x92\xBE\xCB\x40\x0C\xCE\x7C\x3B\x46\xA2\x5B\x5D"
  396. "\x0C\x45\xEB\xE1\x00\xDE\x72\x50\xB1\xA6\x0B\x76\xC5\x8D\xFC\x82"
  397. "\x38\x6D\x99\x14\x1D\x1A\x4A\xD3\x7C\x53\xB8\x12\x46\xA2\x30\x38"
  398. "\x82\xF4\x96\x6E\x8C\xCE\x47\x0D\xAF\x0A\x3B\x45\xB7\x43\x95\x43"
  399. "\x9E\x02\x2C\x44\x07\x6D\x1F\x3C\x66\x89\x09\xB6\x1F\x06\x30\xCC"
  400. "\xAD\xCE\x7D\x9A\xDE\x3E\xFB\x6C\xE4\x58\x43\xD2\x4F\xA5\x9E\x5E"
  401. "\xA7\x7B\xAE\x3A\xF6\x7E\xD9\xDB\xD3\xF5\xC5\x41\xAF\xE6\x9C\x91"
  402. "\x02\x82\x01\x01" /* prime1 - integer of 257 bytes */
  403. "\x00\xE0\xA6\x6C\xF0\xA2\xF8\x81\x85\x36\x43\xD0\x13\x0B\x33\x8B"
  404. "\x8F\x78\x3D\xAC\xC7\x5E\x46\x6A\x7F\x05\xAE\x3E\x26\x0A\xA6\xD0"
  405. "\x51\xF3\xC8\x61\xF5\x77\x22\x48\x10\x87\x4C\xD5\xA4\xD5\xAE\x2D"
  406. "\x4E\x7A\xFE\x1C\x31\xE7\x6B\xFF\xA4\x69\x20\xF9\x2A\x0B\x99\xBE"
  407. "\x7C\x32\x68\xAD\xB0\xC6\x94\x81\x41\x75\xDC\x06\x78\x0A\xB4\xCF"
  408. "\xCD\x1B\x2D\x31\xE4\x7B\xEA\xA8\x35\x99\x75\x57\xC6\x0E\xF6\x78"
  409. "\x4F\xA0\x92\x4A\x00\x1B\xE7\x96\xF2\x5B\xFD\x2C\x0A\x0A\x13\x81"
  410. "\xAF\xCB\x59\x87\x31\xD9\x83\x65\xF2\x22\x48\xD0\x03\x67\x39\xF6"
  411. "\xFF\xA8\x36\x07\x3A\x68\xE3\x7B\xA9\x64\xFD\x9C\xF7\xB1\x3D\xBF"
  412. "\x26\x5C\xCC\x7A\xFC\xA2\x8F\x51\xD1\xE1\xE2\x3C\xEC\x06\x75\x7C"
  413. "\x34\xF9\xA9\x33\x70\x11\xAD\x5A\xDC\x5F\xCF\x50\xF6\x23\x2F\x39"
  414. "\xAC\x92\x48\x53\x4D\x01\x96\x3C\xD8\xDC\x1F\x23\x23\x78\x80\x34"
  415. "\x54\x14\x76\x8B\xB6\xBB\xFB\x88\x78\x31\x59\x28\xD2\xB1\x75\x17"
  416. "\x88\x04\x4A\x78\x62\x18\x2E\xF5\xFB\x9B\xEF\x15\xD8\x16\x47\xC6"
  417. "\x42\xB1\x02\xDA\x9E\xE3\x84\x90\xB4\x2D\xC3\xCE\x13\xC9\x12\x7D"
  418. "\x3E\xCD\x39\x39\xC9\xAD\xA1\x1A\xE6\xD5\xAD\x5A\x09\x4D\x1B\x0C"
  419. "\xAB"
  420. "\x02\x82\x01\x01" /* prime 2 - integer of 257 bytes */
  421. "\x00\xDE\xD5\x1B\xF6\xCD\x83\xB1\xC6\x47\x7E\xB9\xC0\x6B\xA9\xB8"
  422. "\x02\xF3\xAE\x40\x5D\xFC\xD3\xE5\x4E\xF1\xE3\x39\x04\x52\x84\x89"
  423. "\x40\x37\xBB\xC2\xCD\x7F\x71\x77\x17\xDF\x6A\x4C\x31\x24\x7F\xB9"
  424. "\x7E\x7F\xC8\x43\x4A\x3C\xEB\x8D\x1B\x7F\x21\x51\x67\x45\x8F\xA0"
  425. "\x36\x29\x3A\x18\x45\xA5\x32\xEC\x74\x88\x3C\x98\x5D\x67\x3B\xD7"
  426. "\x51\x1F\xE9\xAE\x09\x01\xDE\xDE\x7C\xFB\x60\xD1\xA5\x6C\xE9\x6A"
  427. "\x93\x04\x02\x3A\xBB\x67\x02\xB9\xFD\x23\xF0\x02\x2B\x49\x85\xC9"
  428. "\x5B\xE7\x4B\xDF\xA3\xF4\xEE\x59\x4C\x45\xEF\x8B\xC1\x6B\xDE\xDE"
  429. "\xBC\x1A\xFC\xD2\x76\x3F\x33\x74\xA9\x8E\xA3\x7E\x0C\xC6\xCE\x70"
  430. "\xA1\x5B\xA6\x77\xEA\x76\xEB\x18\xCE\xB9\xD7\x78\x8D\xAE\x06\xBB"
  431. "\xD3\x1F\x16\x0D\x05\xAB\x4F\xC6\x52\xC8\x6B\x36\x51\x7D\x1D\x27"
  432. "\xAF\x88\x9A\x6F\xCC\x25\x2E\x74\x06\x72\xCE\x9E\xDB\xE0\x9D\x30"
  433. "\xEF\x55\xA5\x58\x21\xA7\x42\x12\x2C\x2C\x23\x87\xC1\x0F\xE8\x51"
  434. "\xDA\x53\xDA\xFC\x05\x36\xDF\x08\x0E\x08\x36\xBE\x5C\x86\x9E\xCA"
  435. "\x68\x90\x33\x12\x0B\x14\x82\xAB\x90\x1A\xD4\x49\x32\x9C\xBD\xAA"
  436. "\xAB\x4E\x38\xF1\xEE\xED\x3D\x3F\xE8\xBD\x48\x56\xA6\x64\xEE\xC8"
  437. "\xD7"
  438. "\x02\x82\x01\x01" /* exponent 1 - integer of 257 bytes */
  439. "\x00\x96\x5E\x6F\x8F\x06\xD6\xE6\x03\x1F\x96\x76\x81\x38\xBF\x30"
  440. "\xCC\x40\x84\xAF\xD0\xE7\x06\xA5\x24\x0E\xCE\x59\xA5\x26\xFE\x0F"
  441. "\x74\xBB\x83\xC6\x26\x02\xAF\x3C\xA3\x6B\x9C\xFF\x68\x0C\xEB\x40"
  442. "\x42\x46\xCB\x2E\x5E\x2C\xF4\x3A\x32\x77\x77\xED\xAF\xBA\x02\x17"
  443. "\xE1\x93\xF0\x43\x4A\x8F\x31\x39\xEF\x72\x0F\x6B\x79\x10\x59\x84"
  444. "\xBA\x5A\x55\x7F\x0E\xDB\xEE\xEE\xD6\xA9\xB8\x44\x9F\x3A\xC6\xB9"
  445. "\x33\x3B\x5C\x90\x11\xD0\x9B\xCC\x8A\xBF\x0E\x10\x5B\x4B\xF1\x50"
  446. "\x9E\x35\xB3\xE0\x6D\x7A\x95\x9C\x38\x5D\xC0\x75\x13\xC2\x15\xA7"
  447. "\x81\xEA\xBA\xF7\x4D\x9E\x85\x9D\xF1\x7D\xBA\xD0\x45\x6F\x2A\xD0"
  448. "\x76\xC2\x28\xD0\xAD\xA7\xB5\xDC\xE3\x6A\x99\xFF\x83\x50\xB3\x75"
  449. "\x07\x14\x91\xAF\xEF\x74\xB5\x9F\x9A\xE0\xBA\xA9\x0B\x87\xF3\x85"
  450. "\x5C\x40\xB2\x0E\xA7\xFD\xC6\xED\x45\x8E\xD9\x7C\xB0\xB2\x68\xC6"
  451. "\x1D\xFD\x70\x78\x06\x41\x7F\x95\x12\x36\x9D\xE2\x58\x5D\x15\xEE"
  452. "\x41\x49\xF5\xFA\xEC\x56\x19\xA0\xE6\xE0\xB2\x40\xE1\xD9\xD0\x03"
  453. "\x22\x02\xCF\xD1\x3C\x07\x38\x65\x8F\x65\x0E\xAA\x32\xCE\x25\x05"
  454. "\x16\x73\x51\xB9\x9F\x88\x0B\xCD\x30\xF3\x97\xCC\x2B\x6B\xA4\x0E"
  455. "\x6F"
  456. "\x02\x82\x01\x00" /* exponent 2 - integer of 256 bytes */
  457. "\x2A\x5F\x3F\xB8\x08\x90\x58\x47\xA9\xE4\xB1\x11\xA3\xE7\x5B\xF4"
  458. "\x43\xBE\x08\xC3\x56\x86\x3C\x7E\x6C\x84\x96\x9C\xF9\xCB\xF6\x05"
  459. "\x5E\x13\xB8\x11\x37\x80\xAD\xF2\xBE\x2B\x0A\x5D\xF5\xE0\xCB\xB7"
  460. "\x00\x39\x66\x82\x41\x5F\x51\x2F\xBF\x56\xE8\x91\xC8\xAA\x6C\xFE"
  461. "\x9F\x8C\x4A\x7D\x43\xD2\x91\x1F\xFF\x9F\xF6\x21\x1C\xB6\x46\x55"
  462. "\x48\xCA\x38\xAB\xC1\xCD\x4D\x65\x5A\xAF\xA8\x6D\xDA\x6D\xF0\x34"
  463. "\x10\x79\x14\x0D\xFA\xA2\x8C\x17\x54\xB4\x18\xD5\x7E\x5F\x90\x50"
  464. "\x87\x84\xE7\xFB\xD7\x61\x53\x5D\xAB\x96\xC7\x6E\x7A\x42\xA0\xFC"
  465. "\x07\xED\xB7\x5F\x80\xD9\x19\xFF\xFB\xFD\x9E\xC4\x73\x31\x62\x3D"
  466. "\x6C\x9E\x15\x03\x62\xA5\x85\xCC\x19\x8E\x9D\x7F\xE3\x6D\xA8\x5D"
  467. "\x96\xF5\xAC\x78\x3D\x81\x27\xE7\x29\xF1\x29\x1D\x09\xBB\x77\x86"
  468. "\x6B\x65\x62\x88\xE1\x31\x1A\x22\xF7\xC5\xCE\x73\x65\x1C\xBE\xE7"
  469. "\x63\xD3\xD3\x14\x63\x27\xAF\x28\xF3\x23\xB6\x76\xC1\xBD\x9D\x82"
  470. "\xF4\x9B\x19\x7D\x2C\x57\xF0\xC2\x2A\x51\xAE\x95\x0D\x8C\x38\x54"
  471. "\xF5\xC6\xA0\x51\xB7\x0E\xB9\xEC\xE7\x0D\x22\xF6\x1A\xD3\xFE\x16"
  472. "\x21\x03\xB7\x0D\x85\xD3\x35\xC9\xDD\xE4\x59\x85\xBE\x7F\xA1\x75"
  473. "\x02\x82\x01\x01" /* coefficient - integer of 257 bytes */
  474. "\x00\xB9\x48\xD2\x54\x2F\x19\x54\x64\xAE\x62\x80\x61\x89\x80\xB4"
  475. "\x48\x0B\x8D\x7E\x1B\x0F\x50\x08\x82\x3F\xED\x75\x84\xB7\x13\xE4"
  476. "\xF8\x8D\xA8\xBB\x54\x21\x4C\x5A\x54\x07\x16\x4B\xB4\xA4\x9E\x30"
  477. "\xBF\x7A\x30\x1B\x39\x60\xA3\x21\x53\xFB\xB0\xDC\x0F\x7C\x2C\xFB"
  478. "\xAA\x95\x7D\x51\x39\x28\x33\x1F\x25\x31\x53\xF5\xD2\x64\x2B\xF2"
  479. "\x1E\xB3\xC0\x6A\x0B\xC9\xA4\x42\x64\x5C\xFB\x15\xA3\xE8\x4C\x3A"
  480. "\x9C\x3C\xBE\xA3\x39\x83\x23\xE3\x6D\x18\xCC\xC2\xDC\x63\x8D\xBA"
  481. "\x98\xE0\xE0\x31\x4A\x2B\x37\x9C\x4D\x6B\xF3\x9F\x51\xE4\x43\x5C"
  482. "\x83\x5F\xBF\x5C\xFE\x92\x45\x01\xAF\xF5\xC2\xF4\xB7\x56\x93\xA5"
  483. "\xF4\xAA\x67\x3C\x48\x37\xBD\x9A\x3C\xFE\xA5\x9A\xB0\xD1\x6B\x85"
  484. "\xDD\x81\xD4\xFA\xAD\x31\x83\xA8\x22\x9B\xFD\xB4\x61\xDC\x7A\x51"
  485. "\x59\x62\x10\x1B\x7E\x44\xA3\xFE\x90\x51\x5A\x3E\x02\x87\xAD\xFA"
  486. "\xDD\x0B\x1F\x3D\x35\xAF\xEE\x13\x85\x51\xA7\x42\xC0\xEE\x9E\x20"
  487. "\xE9\xD0\x29\xB2\xE4\x21\xE4\x6D\x62\xB9\xF4\x48\x4A\xD8\x46\x8E"
  488. "\x61\xA6\x2C\x5D\xDF\x8F\x97\x2B\x3A\x75\x1D\x83\x17\x6F\xC6\xB0"
  489. "\xDE\xFC\x14\x25\x06\x5A\x60\xBB\xB8\x21\x89\xD1\xEF\x57\xF1\x71"
  490. "\x3D",
  491. .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
  492. .c =
  493. "\x5c\xce\x9c\xd7\x9a\x9e\xa1\xfe\x7a\x82\x3c\x68\x27\x98\xe3\x5d"
  494. "\xd5\xd7\x07\x29\xf5\xfb\xc3\x1a\x7f\x63\x1e\x62\x31\x3b\x19\x87"
  495. "\x79\x4f\xec\x7b\xf3\xcb\xea\x9b\x95\x52\x3a\x40\xe5\x87\x7b\x72"
  496. "\xd1\x72\xc9\xfb\x54\x63\xd8\xc9\xd7\x2c\xfc\x7b\xc3\x14\x1e\xbc"
  497. "\x18\xb4\x34\xa1\xbf\x14\xb1\x37\x31\x6e\xf0\x1b\x35\x19\x54\x07"
  498. "\xf7\x99\xec\x3e\x63\xe2\xcd\x61\x28\x65\xc3\xcd\xb1\x38\x36\xa5"
  499. "\xb2\xd7\xb0\xdc\x1f\xf5\xef\x19\xc7\x53\x32\x2d\x1c\x26\xda\xe4"
  500. "\x0d\xd6\x90\x7e\x28\xd8\xdc\xe4\x61\x05\xd2\x25\x90\x01\xd3\x96"
  501. "\x6d\xa6\xcf\x58\x20\xbb\x03\xf4\x01\xbc\x79\xb9\x18\xd8\xb8\xba"
  502. "\xbd\x93\xfc\xf2\x62\x5d\x8c\x66\x1e\x0e\x84\x59\x93\xdd\xe2\x93"
  503. "\xa2\x62\x7d\x08\x82\x7a\xdd\xfc\xb8\xbc\xc5\x4f\x9c\x4e\xbf\xb4"
  504. "\xfc\xf4\xc5\x01\xe8\x00\x70\x4d\x28\x26\xcc\x2e\xfe\x0e\x58\x41"
  505. "\x8b\xec\xaf\x7c\x4b\x54\xd0\xa0\x64\xf9\x32\xf4\x2e\x47\x65\x0a"
  506. "\x67\x88\x39\x3a\xdb\xb2\xdb\x7b\xb5\xf6\x17\xa8\xd9\xc6\x5e\x28"
  507. "\x13\x82\x8a\x99\xdb\x60\x08\xa5\x23\x37\xfa\x88\x90\x31\xc8\x9d"
  508. "\x8f\xec\xfb\x85\x9f\xb1\xce\xa6\x24\x50\x46\x44\x47\xcb\x65\xd1"
  509. "\xdf\xc0\xb1\x6c\x90\x1f\x99\x8e\x4d\xd5\x9e\x31\x07\x66\x87\xdf"
  510. "\x01\xaa\x56\x3c\x71\xe0\x2b\x6f\x67\x3b\x23\xed\xc2\xbd\x03\x30"
  511. "\x79\x76\x02\x10\x10\x98\x85\x8a\xff\xfd\x0b\xda\xa5\xd9\x32\x48"
  512. "\x02\xa0\x0b\xb9\x2a\x8a\x18\xca\xc6\x8f\x3f\xbb\x16\xb2\xaa\x98"
  513. "\x27\xe3\x60\x43\xed\x15\x70\xd4\x57\x15\xfe\x19\xd4\x9b\x13\x78"
  514. "\x8a\xf7\x21\xf1\xa2\xa2\x2d\xb3\x09\xcf\x44\x91\x6e\x08\x3a\x30"
  515. "\x81\x3e\x90\x93\x8a\x67\x33\x00\x59\x54\x9a\x25\xd3\x49\x8e\x9f"
  516. "\xc1\x4b\xe5\x86\xf3\x50\x4c\xbc\xc5\xd3\xf5\x3a\x54\xe1\x36\x3f"
  517. "\xe2\x5a\xb4\x37\xc0\xeb\x70\x35\xec\xf6\xb7\xe8\x44\x3b\x7b\xf3"
  518. "\xf1\xf2\x1e\xdb\x60\x7d\xd5\xbe\xf0\x71\x34\x90\x4c\xcb\xd4\x35"
  519. "\x51\xc7\xdd\xd8\xc9\x81\xf5\x5d\x57\x46\x2c\xb1\x7b\x9b\xaa\xcb"
  520. "\xd1\x22\x25\x49\x44\xa3\xd4\x6b\x29\x7b\xd8\xb2\x07\x93\xbf\x3d"
  521. "\x52\x49\x84\x79\xef\xb8\xe5\xc4\xad\xca\xa8\xc6\xf6\xa6\x76\x70"
  522. "\x5b\x0b\xe5\x83\xc6\x0e\xef\x55\xf2\xe7\xff\x04\xea\xe6\x13\xbe"
  523. "\x40\xe1\x40\x45\x48\x66\x75\x31\xae\x35\x64\x91\x11\x6f\xda\xee"
  524. "\x26\x86\x45\x6f\x0b\xd5\x9f\x03\xb1\x65\x5b\xdb\xa4\xe4\xf9\x45",
  525. .key_len = 2349,
  526. .m_size = 8,
  527. .c_size = 512,
  528. }
  529. };
  530. #define DH_TEST_VECTORS 2
  531. struct kpp_testvec dh_tv_template[] = {
  532. {
  533. .secret =
  534. #ifdef __LITTLE_ENDIAN
  535. "\x01\x00" /* type */
  536. "\x11\x02" /* len */
  537. "\x00\x01\x00\x00" /* key_size */
  538. "\x00\x01\x00\x00" /* p_size */
  539. "\x01\x00\x00\x00" /* g_size */
  540. #else
  541. "\x00\x01" /* type */
  542. "\x02\x11" /* len */
  543. "\x00\x00\x01\x00" /* key_size */
  544. "\x00\x00\x01\x00" /* p_size */
  545. "\x00\x00\x00\x01" /* g_size */
  546. #endif
  547. /* xa */
  548. "\x44\xc1\x48\x36\xa7\x2b\x6f\x4e\x43\x03\x68\xad\x31\x00\xda\xf3"
  549. "\x2a\x01\xa8\x32\x63\x5f\x89\x32\x1f\xdf\x4c\xa1\x6a\xbc\x10\x15"
  550. "\x90\x35\xc9\x26\x41\xdf\x7b\xaa\x56\x56\x3d\x85\x44\xb5\xc0\x8e"
  551. "\x37\x83\x06\x50\xb3\x5f\x0e\x28\x2c\xd5\x46\x15\xe3\xda\x7d\x74"
  552. "\x87\x13\x91\x4f\xd4\x2d\xf6\xc7\x5e\x14\x2c\x11\xc2\x26\xb4\x3a"
  553. "\xe3\xb2\x36\x20\x11\x3b\x22\xf2\x06\x65\x66\xe2\x57\x58\xf8\x22"
  554. "\x1a\x94\xbd\x2b\x0e\x8c\x55\xad\x61\x23\x45\x2b\x19\x1e\x63\x3a"
  555. "\x13\x61\xe3\xa0\x79\x70\x3e\x6d\x98\x32\xbc\x7f\x82\xc3\x11\xd8"
  556. "\xeb\x53\xb5\xfc\xb5\xd5\x3c\x4a\xea\x92\x3e\x01\xce\x15\x65\xd4"
  557. "\xaa\x85\xc1\x11\x90\x83\x31\x6e\xfe\xe7\x7f\x7d\xed\xab\xf9\x29"
  558. "\xf8\xc7\xf1\x68\xc6\xb7\xe4\x1f\x2f\x28\xa0\xc9\x1a\x50\x64\x29"
  559. "\x4b\x01\x6d\x1a\xda\x46\x63\x21\x07\x40\x8c\x8e\x4c\x6f\xb5\xe5"
  560. "\x12\xf3\xc2\x1b\x48\x27\x5e\x27\x01\xb1\xaa\xed\x68\x9b\x83\x18"
  561. "\x8f\xb1\xeb\x1f\x04\xd1\x3c\x79\xed\x4b\xf7\x0a\x33\xdc\xe0\xc6"
  562. "\xd8\x02\x51\x59\x00\x74\x30\x07\x4c\x2d\xac\xe4\x13\xf1\x80\xf0"
  563. "\xce\xfa\xff\xa9\xce\x29\x46\xdd\x9d\xad\xd1\xc3\xc6\x58\x1a\x63"
  564. /* p */
  565. "\xb9\x36\x3a\xf1\x82\x1f\x60\xd3\x22\x47\xb8\xbc\x2d\x22\x6b\x81"
  566. "\x7f\xe8\x20\x06\x09\x23\x73\x49\x9a\x59\x8b\x35\x25\xf8\x31\xbc"
  567. "\x7d\xa8\x1c\x9d\x56\x0d\x1a\xf7\x4b\x4f\x96\xa4\x35\x77\x6a\x89"
  568. "\xab\x42\x00\x49\x21\x71\xed\x28\x16\x1d\x87\x5a\x10\xa7\x9c\x64"
  569. "\x94\xd4\x87\x3d\x28\xef\x44\xfe\x4b\xe2\xb4\x15\x8c\x82\xa6\xf3"
  570. "\x50\x5f\xa8\xe8\xa2\x60\xe7\x00\x86\x78\x05\xd4\x78\x19\xa1\x98"
  571. "\x62\x4e\x4a\x00\x78\x56\x96\xe6\xcf\xd7\x10\x1b\x74\x5d\xd0\x26"
  572. "\x61\xdb\x6b\x32\x09\x51\xd8\xa5\xfd\x54\x16\x71\x01\xb3\x39\xe6"
  573. "\x4e\x69\xb1\xd7\x06\x8f\xd6\x1e\xdc\x72\x25\x26\x74\xc8\x41\x06"
  574. "\x5c\xd1\x26\x5c\xb0\x2f\xf9\x59\x13\xc1\x2a\x0f\x78\xea\x7b\xf7"
  575. "\xbd\x59\xa0\x90\x1d\xfc\x33\x5b\x4c\xbf\x05\x9c\x3a\x3f\x69\xa2"
  576. "\x45\x61\x4e\x10\x6a\xb3\x17\xc5\x68\x30\xfb\x07\x5f\x34\xc6\xfb"
  577. "\x73\x07\x3c\x70\xf6\xae\xe7\x72\x84\xc3\x18\x81\x8f\xe8\x11\x1f"
  578. "\x3d\x83\x83\x01\x2a\x14\x73\xbf\x32\x32\x2e\xc9\x4d\xdb\x2a\xca"
  579. "\xee\x71\xf9\xda\xad\xe8\x82\x0b\x4d\x0c\x1f\xb6\x1d\xef\x00\x67"
  580. "\x74\x3d\x95\xe0\xb7\xc4\x30\x8a\x24\x87\x12\x47\x27\x70\x0d\x73"
  581. /* g */
  582. "\x02",
  583. .b_public =
  584. "\x2a\x67\x5c\xfd\x63\x5d\xc0\x97\x0a\x8b\xa2\x1f\xf8\x8a\xcb\x54"
  585. "\xca\x2f\xd3\x49\x3f\x01\x8e\x87\xfe\xcc\x94\xa0\x3e\xd4\x26\x79"
  586. "\x9a\x94\x3c\x11\x81\x58\x5c\x60\x3d\xf5\x98\x90\x89\x64\x62\x1f"
  587. "\xbd\x05\x6d\x2b\xcd\x84\x40\x9b\x4a\x1f\xe0\x19\xf1\xca\x20\xb3"
  588. "\x4e\xa0\x4f\x15\xcc\xa5\xfe\xa5\xb4\xf5\x0b\x18\x7a\x5a\x37\xaa"
  589. "\x58\x00\x19\x7f\xe2\xa3\xd9\x1c\x44\x57\xcc\xde\x2e\xc1\x38\xea"
  590. "\xeb\xe3\x90\x40\xc4\x6c\xf7\xcd\xe9\x22\x50\x71\xf5\x7c\xdb\x37"
  591. "\x0e\x80\xc3\xed\x7e\xb1\x2b\x2f\xbe\x71\xa6\x11\xa5\x9d\xf5\x39"
  592. "\xf1\xa2\xe5\x85\xbc\x25\x91\x4e\x84\x8d\x26\x9f\x4f\xe6\x0f\xa6"
  593. "\x2b\x6b\xf9\x0d\xaf\x6f\xbb\xfa\x2d\x79\x15\x31\x57\xae\x19\x60"
  594. "\x22\x0a\xf5\xfd\x98\x0e\xbf\x5d\x49\x75\x58\x37\xbc\x7f\xf5\x21"
  595. "\x56\x1e\xd5\xb3\x50\x0b\xca\x96\xf3\xd1\x3f\xb3\x70\xa8\x6d\x63"
  596. "\x48\xfb\x3d\xd7\x29\x91\x45\xb5\x48\xcd\xb6\x78\x30\xf2\x3f\x1e"
  597. "\xd6\x22\xd6\x35\x9b\xf9\x1f\x85\xae\xab\x4b\xd7\xe0\xc7\x86\x67"
  598. "\x3f\x05\x7f\xa6\x0d\x2f\x0d\xbf\x53\x5f\x4d\x2c\x6d\x5e\x57\x40"
  599. "\x30\x3a\x23\x98\xf9\xb4\x32\xf5\x32\x83\xdd\x0b\xae\x33\x97\x2f",
  600. .expected_a_public =
  601. "\x5c\x24\xdf\xeb\x5b\x4b\xf8\xc5\xef\x39\x48\x82\xe0\x1e\x62\xee"
  602. "\x8a\xae\xdf\x93\x6c\x2b\x16\x95\x92\x16\x3f\x16\x7b\x75\x03\x85"
  603. "\xd9\xf1\x69\xc2\x14\x87\x45\xfc\xa4\x19\xf6\xf0\xa4\xf3\xec\xd4"
  604. "\x6c\x5c\x03\x3b\x94\xc2\x2f\x92\xe4\xce\xb3\xe4\x72\xe8\x17\xe6"
  605. "\x23\x7e\x00\x01\x09\x59\x13\xbf\xc1\x2f\x99\xa9\x07\xaa\x02\x23"
  606. "\x4a\xca\x39\x4f\xbc\xec\x0f\x27\x4f\x19\x93\x6c\xb9\x30\x52\xfd"
  607. "\x2b\x9d\x86\xf1\x06\x1e\xb6\x56\x27\x4a\xc9\x8a\xa7\x8a\x48\x5e"
  608. "\xb5\x60\xcb\xdf\xff\x03\x26\x10\xbf\x90\x8f\x46\x60\xeb\x9b\x9a"
  609. "\xd6\x6f\x44\x91\x03\x92\x18\x2c\x96\x5e\x40\x19\xfb\xf4\x4f\x3a"
  610. "\x02\x7b\xaf\xcc\x22\x20\x79\xb9\xf8\x9f\x8f\x85\x6b\xec\x44\xbb"
  611. "\xe6\xa8\x8e\xb1\xe8\x2c\xee\x64\xee\xf8\xbd\x00\xf3\xe2\x2b\x93"
  612. "\xcd\xe7\xc4\xdf\xc9\x19\x46\xfe\xb6\x07\x73\xc1\x8a\x64\x79\x26"
  613. "\xe7\x30\xad\x2a\xdf\xe6\x8f\x59\xf5\x81\xbf\x4a\x29\x91\xe7\xb7"
  614. "\xcf\x48\x13\x27\x75\x79\x40\xd9\xd6\x32\x52\x4e\x6a\x86\xae\x6f"
  615. "\xc2\xbf\xec\x1f\xc2\x69\xb2\xb6\x59\xe5\xa5\x17\xa4\x77\xb7\x62"
  616. "\x46\xde\xe8\xd2\x89\x78\x9a\xef\xa3\xb5\x8f\x26\xec\x80\xda\x39",
  617. .expected_ss =
  618. "\x8f\xf3\xac\xa2\xea\x22\x11\x5c\x45\x65\x1a\x77\x75\x2e\xcf\x46"
  619. "\x23\x14\x1e\x67\x53\x4d\x35\xb0\x38\x1d\x4e\xb9\x41\x9a\x21\x24"
  620. "\x6e\x9f\x40\xfe\x90\x51\xb1\x06\xa4\x7b\x87\x17\x2f\xe7\x5e\x22"
  621. "\xf0\x7b\x54\x84\x0a\xac\x0a\x90\xd2\xd7\xe8\x7f\xe7\xe3\x30\x75"
  622. "\x01\x1f\x24\x75\x56\xbe\xcc\x8d\x1e\x68\x0c\x41\x72\xd3\xfa\xbb"
  623. "\xe5\x9c\x60\xc7\x28\x77\x0c\xbe\x89\xab\x08\xd6\x21\xe7\x2e\x1a"
  624. "\x58\x7a\xca\x4f\x22\xf3\x2b\x30\xfd\xf4\x98\xc1\xa3\xf8\xf6\xcc"
  625. "\xa9\xe4\xdb\x5b\xee\xd5\x5c\x6f\x62\x4c\xd1\x1a\x02\x2a\x23\xe4"
  626. "\xb5\x57\xf3\xf9\xec\x04\x83\x54\xfe\x08\x5e\x35\xac\xfb\xa8\x09"
  627. "\x82\x32\x60\x11\xb2\x16\x62\x6b\xdf\xda\xde\x9c\xcb\x63\x44\x6c"
  628. "\x59\x26\x6a\x8f\xb0\x24\xcb\xa6\x72\x48\x1e\xeb\xe0\xe1\x09\x44"
  629. "\xdd\xee\x66\x6d\x84\xcf\xa5\xc1\xb8\x36\x74\xd3\x15\x96\xc3\xe4"
  630. "\xc6\x5a\x4d\x23\x97\x0c\x5c\xcb\xa9\xf5\x29\xc2\x0e\xff\x93\x82"
  631. "\xd3\x34\x49\xad\x64\xa6\xb1\xc0\x59\x28\x75\x60\xa7\x8a\xb0\x11"
  632. "\x56\x89\x42\x74\x11\xf5\xf6\x5e\x6f\x16\x54\x6a\xb1\x76\x4d\x50"
  633. "\x8a\x68\xc1\x5b\x82\xb9\x0d\x00\x32\x50\xed\x88\x87\x48\x92\x17",
  634. .secret_size = 529,
  635. .b_public_size = 256,
  636. .expected_a_public_size = 256,
  637. .expected_ss_size = 256,
  638. },
  639. {
  640. .secret =
  641. #ifdef __LITTLE_ENDIAN
  642. "\x01\x00" /* type */
  643. "\x11\x02" /* len */
  644. "\x00\x01\x00\x00" /* key_size */
  645. "\x00\x01\x00\x00" /* p_size */
  646. "\x01\x00\x00\x00" /* g_size */
  647. #else
  648. "\x00\x01" /* type */
  649. "\x02\x11" /* len */
  650. "\x00\x00\x01\x00" /* key_size */
  651. "\x00\x00\x01\x00" /* p_size */
  652. "\x00\x00\x00\x01" /* g_size */
  653. #endif
  654. /* xa */
  655. "\x4d\x75\xa8\x6e\xba\x23\x3a\x0c\x63\x56\xc8\xc9\x5a\xa7\xd6\x0e"
  656. "\xed\xae\x40\x78\x87\x47\x5f\xe0\xa7\x7b\xba\x84\x88\x67\x4e\xe5"
  657. "\x3c\xcc\x5c\x6a\xe7\x4a\x20\xec\xbe\xcb\xf5\x52\x62\x9f\x37\x80"
  658. "\x0c\x72\x7b\x83\x66\xa4\xf6\x7f\x95\x97\x1c\x6a\x5c\x7e\xf1\x67"
  659. "\x37\xb3\x93\x39\x3d\x0b\x55\x35\xd9\xe5\x22\x04\x9f\xf8\xc1\x04"
  660. "\xce\x13\xa5\xac\xe1\x75\x05\xd1\x2b\x53\xa2\x84\xef\xb1\x18\xf4"
  661. "\x66\xdd\xea\xe6\x24\x69\x5a\x49\xe0\x7a\xd8\xdf\x1b\xb7\xf1\x6d"
  662. "\x9b\x50\x2c\xc8\x1c\x1c\xa3\xb4\x37\xfb\x66\x3f\x67\x71\x73\xa9"
  663. "\xff\x5f\xd9\xa2\x25\x6e\x25\x1b\x26\x54\xbf\x0c\xc6\xdb\xea\x0a"
  664. "\x52\x6c\x16\x7c\x27\x68\x15\x71\x58\x73\x9d\xe6\xc2\x80\xaa\x97"
  665. "\x31\x66\xfb\xa6\xfb\xfd\xd0\x9c\x1d\xbe\x81\x48\xf5\x9a\x32\xf1"
  666. "\x69\x62\x18\x78\xae\x72\x36\xe6\x94\x27\xd1\xff\x18\x4f\x28\x6a"
  667. "\x16\xbd\x6a\x60\xee\xe5\xf9\x6d\x16\xe4\xb8\xa6\x41\x9b\x23\x7e"
  668. "\xf7\x9d\xd1\x1d\x03\x15\x66\x3a\xcf\xb6\x2c\x13\x96\x2c\x52\x21"
  669. "\xe4\x2d\x48\x7a\x8a\x5d\xb2\x88\xed\x98\x61\x79\x8b\x6a\x1e\x5f"
  670. "\xd0\x8a\x2d\x99\x5a\x2b\x0f\xbc\xef\x53\x8f\x32\xc1\xa2\x99\x26"
  671. /* p */
  672. "\xb9\x36\x3a\xf1\x82\x1f\x60\xd3\x22\x47\xb8\xbc\x2d\x22\x6b\x81"
  673. "\x7f\xe8\x20\x06\x09\x23\x73\x49\x9a\x59\x8b\x35\x25\xf8\x31\xbc"
  674. "\x7d\xa8\x1c\x9d\x56\x0d\x1a\xf7\x4b\x4f\x96\xa4\x35\x77\x6a\x89"
  675. "\xab\x42\x00\x49\x21\x71\xed\x28\x16\x1d\x87\x5a\x10\xa7\x9c\x64"
  676. "\x94\xd4\x87\x3d\x28\xef\x44\xfe\x4b\xe2\xb4\x15\x8c\x82\xa6\xf3"
  677. "\x50\x5f\xa8\xe8\xa2\x60\xe7\x00\x86\x78\x05\xd4\x78\x19\xa1\x98"
  678. "\x62\x4e\x4a\x00\x78\x56\x96\xe6\xcf\xd7\x10\x1b\x74\x5d\xd0\x26"
  679. "\x61\xdb\x6b\x32\x09\x51\xd8\xa5\xfd\x54\x16\x71\x01\xb3\x39\xe6"
  680. "\x4e\x69\xb1\xd7\x06\x8f\xd6\x1e\xdc\x72\x25\x26\x74\xc8\x41\x06"
  681. "\x5c\xd1\x26\x5c\xb0\x2f\xf9\x59\x13\xc1\x2a\x0f\x78\xea\x7b\xf7"
  682. "\xbd\x59\xa0\x90\x1d\xfc\x33\x5b\x4c\xbf\x05\x9c\x3a\x3f\x69\xa2"
  683. "\x45\x61\x4e\x10\x6a\xb3\x17\xc5\x68\x30\xfb\x07\x5f\x34\xc6\xfb"
  684. "\x73\x07\x3c\x70\xf6\xae\xe7\x72\x84\xc3\x18\x81\x8f\xe8\x11\x1f"
  685. "\x3d\x83\x83\x01\x2a\x14\x73\xbf\x32\x32\x2e\xc9\x4d\xdb\x2a\xca"
  686. "\xee\x71\xf9\xda\xad\xe8\x82\x0b\x4d\x0c\x1f\xb6\x1d\xef\x00\x67"
  687. "\x74\x3d\x95\xe0\xb7\xc4\x30\x8a\x24\x87\x12\x47\x27\x70\x0d\x73"
  688. /* g */
  689. "\x02",
  690. .b_public =
  691. "\x99\x4d\xd9\x01\x84\x8e\x4a\x5b\xb8\xa5\x64\x8c\x6c\x00\x5c\x0e"
  692. "\x1e\x1b\xee\x5d\x9f\x53\xe3\x16\x70\x01\xed\xbf\x4f\x14\x36\x6e"
  693. "\xe4\x43\x45\x43\x49\xcc\xb1\xb0\x2a\xc0\x6f\x22\x55\x42\x17\x94"
  694. "\x18\x83\xd7\x2a\x5c\x51\x54\xf8\x4e\x7c\x10\xda\x76\x68\x57\x77"
  695. "\x1e\x62\x03\x30\x04\x7b\x4c\x39\x9c\x54\x01\x54\xec\xef\xb3\x55"
  696. "\xa4\xc0\x24\x6d\x3d\xbd\xcc\x46\x5b\x00\x96\xc7\xea\x93\xd1\x3f"
  697. "\xf2\x6a\x72\xe3\xf2\xc1\x92\x24\x5b\xda\x48\x70\x2c\xa9\x59\x97"
  698. "\x19\xb1\xd6\x54\xb3\x9c\x2e\xb0\x63\x07\x9b\x5e\xac\xb5\xf2\xb1"
  699. "\x5b\xf8\xf3\xd7\x2d\x37\x9b\x68\x6c\xf8\x90\x07\xbc\x37\x9a\xa5"
  700. "\xe2\x91\x12\x25\x47\x77\xe3\x3d\xb2\x95\x69\x44\x0b\x91\x1e\xaf"
  701. "\x7c\x8c\x7c\x34\x41\x6a\xab\x60\x6e\xc6\x52\xec\x7e\x94\x0a\x37"
  702. "\xec\x98\x90\xdf\x3f\x02\xbd\x23\x52\xdd\xd9\xe5\x31\x80\x74\x25"
  703. "\xb6\xd2\xd3\xcc\xd5\xcc\x6d\xf9\x7e\x4d\x78\xab\x77\x51\xfa\x77"
  704. "\x19\x94\x49\x8c\x05\xd4\x75\xed\xd2\xb3\x64\x57\xe0\x52\x99\xc0"
  705. "\x83\xe3\xbb\x5e\x2b\xf1\xd2\xc0\xb1\x37\x36\x0b\x7c\xb5\x63\x96"
  706. "\x8e\xde\x04\x23\x11\x95\x62\x11\x9a\xce\x6f\x63\xc8\xd5\xd1\x8f",
  707. .expected_a_public =
  708. "\x90\x89\xe4\x82\xd6\x0a\xcf\x1a\xae\xce\x1b\x66\xa7\x19\x71\x18"
  709. "\x8f\x95\x4b\x5b\x80\x45\x4a\x5a\x43\x99\x4d\x37\xcf\xa3\xa7\x28"
  710. "\x9c\xc7\x73\xf1\xb2\x17\xf6\x99\xe3\x6b\x56\xcb\x3e\x35\x60\x7d"
  711. "\x65\xc7\x84\x6b\x3e\x60\xee\xcd\xd2\x70\xe7\xc9\x32\x1c\xf0\xb4"
  712. "\xf9\x52\xd9\x88\x75\xfd\x40\x2c\xa7\xbe\x19\x1c\x0a\xae\x93\xe1"
  713. "\x71\xc7\xcd\x4f\x33\x5c\x10\x7d\x39\x56\xfc\x73\x84\xb2\x67\xc3"
  714. "\x77\x26\x20\x97\x2b\xf8\x13\x43\x93\x9c\x9a\xa4\x08\xc7\x34\x83"
  715. "\xe6\x98\x61\xe7\x16\x30\x2c\xb1\xdb\x2a\xb2\xcc\xc3\x02\xa5\x3c"
  716. "\x71\x50\x14\x83\xc7\xbb\xa4\xbe\x98\x1b\xfe\xcb\x43\xe9\x97\x62"
  717. "\xd6\xf0\x8c\xcb\x1c\xba\x1e\xa8\xa6\xa6\x50\xfc\x85\x7d\x47\xbf"
  718. "\xf4\x3e\x23\xd3\x5f\xb2\x71\x3e\x40\x94\xaa\x87\x83\x2c\x6c\x8e"
  719. "\x60\xfd\xdd\xf7\xf4\x76\x03\xd3\x1d\xec\x18\x51\xa3\xf2\x44\x1a"
  720. "\x3f\xb4\x7c\x18\x0d\x68\x65\x92\x54\x0d\x2d\x81\x16\xf1\x84\x66"
  721. "\x89\x92\xd0\x1a\x5e\x1f\x42\x46\x5b\xe5\x83\x86\x80\xd9\xcd\x3a"
  722. "\x5a\x2f\xb9\x59\x9b\xe4\x43\x84\x64\xf3\x09\x1a\x0a\xa2\x64\x0f"
  723. "\x77\x4e\x8d\x8b\xe6\x88\xd1\xfc\xaf\x8f\xdf\x1d\xbc\x31\xb3\xbd",
  724. .expected_ss =
  725. "\x34\xc3\x35\x14\x88\x46\x26\x23\x97\xbb\xdd\x28\x5c\x94\xf6\x47"
  726. "\xca\xb3\x19\xaf\xca\x44\x9b\xc2\x7d\x89\xfd\x96\x14\xfd\x6d\x58"
  727. "\xd8\xc4\x6b\x61\x2a\x0d\xf2\x36\x45\xc8\xe4\xa4\xed\x81\x53\x81"
  728. "\x66\x1e\xe0\x5a\xb1\x78\x2d\x0b\x5c\xb4\xd1\xfc\x90\xc6\x9c\xdb"
  729. "\x5a\x30\x0b\x14\x7d\xbe\xb3\x7d\xb1\xb2\x76\x3c\x6c\xef\x74\x6b"
  730. "\xe7\x1f\x64\x0c\xab\x65\xe1\x76\x5c\x3d\x83\xb5\x8a\xfb\xaf\x0f"
  731. "\xf2\x06\x14\x8f\xa0\xf6\xc1\x89\x78\xf2\xba\x72\x73\x3c\xf7\x76"
  732. "\x21\x67\xbc\x24\x31\xb8\x09\x65\x0f\x0c\x02\x32\x4a\x98\x14\xfc"
  733. "\x72\x2c\x25\x60\x68\x5f\x2f\x30\x1e\x5b\xf0\x3b\xd1\xa2\x87\xa0"
  734. "\x54\xdf\xdb\xc0\xee\x0a\x0f\x47\xc9\x90\x20\x2c\xf9\xe3\x52\xad"
  735. "\x27\x65\x8d\x54\x8d\xa8\xa1\xf3\xed\x15\xd4\x94\x28\x90\x31\x93"
  736. "\x1b\xc0\x51\xbb\x43\x5d\x76\x3b\x1d\x2a\x71\x50\xea\x5d\x48\x94"
  737. "\x7f\x6f\xf1\x48\xdb\x30\xe5\xae\x64\x79\xd9\x7a\xdb\xc6\xff\xd8"
  738. "\x5e\x5a\x64\xbd\xf6\x85\x04\xe8\x28\x6a\xac\xef\xce\x19\x8e\x9a"
  739. "\xfe\x75\xc0\x27\x69\xe3\xb3\x7b\x21\xa7\xb1\x16\xa4\x85\x23\xee"
  740. "\xb0\x1b\x04\x6e\xbd\xab\x16\xde\xfd\x86\x6b\xa9\x95\xd7\x0b\xfd",
  741. .secret_size = 529,
  742. .b_public_size = 256,
  743. .expected_a_public_size = 256,
  744. .expected_ss_size = 256,
  745. }
  746. };
  747. #ifdef CONFIG_CRYPTO_FIPS
  748. #define ECDH_TEST_VECTORS 1
  749. #else
  750. #define ECDH_TEST_VECTORS 2
  751. #endif
  752. struct kpp_testvec ecdh_tv_template[] = {
  753. {
  754. #ifndef CONFIG_CRYPTO_FIPS
  755. .secret =
  756. #ifdef __LITTLE_ENDIAN
  757. "\x02\x00" /* type */
  758. "\x20\x00" /* len */
  759. "\x01\x00" /* curve_id */
  760. "\x18\x00" /* key_size */
  761. #else
  762. "\x00\x02" /* type */
  763. "\x00\x20" /* len */
  764. "\x00\x01" /* curve_id */
  765. "\x00\x18" /* key_size */
  766. #endif
  767. "\xb5\x05\xb1\x71\x1e\xbf\x8c\xda"
  768. "\x4e\x19\x1e\x62\x1f\x23\x23\x31"
  769. "\x36\x1e\xd3\x84\x2f\xcc\x21\x72",
  770. .b_public =
  771. "\xc3\xba\x67\x4b\x71\xec\xd0\x76"
  772. "\x7a\x99\x75\x64\x36\x13\x9a\x94"
  773. "\x5d\x8b\xdc\x60\x90\x91\xfd\x3f"
  774. "\xb0\x1f\x8a\x0a\x68\xc6\x88\x6e"
  775. "\x83\x87\xdd\x67\x09\xf8\x8d\x96"
  776. "\x07\xd6\xbd\x1c\xe6\x8d\x9d\x67",
  777. .expected_a_public =
  778. "\x1a\x04\xdb\xa5\xe1\xdd\x4e\x79"
  779. "\xa3\xe6\xef\x0e\x5c\x80\x49\x85"
  780. "\xfa\x78\xb4\xef\x49\xbd\x4c\x7c"
  781. "\x22\x90\x21\x02\xf9\x1b\x81\x5d"
  782. "\x0c\x8a\xa8\x98\xd6\x27\x69\x88"
  783. "\x5e\xbc\x94\xd8\x15\x9e\x21\xce",
  784. .expected_ss =
  785. "\xf4\x57\xcc\x4f\x1f\x4e\x31\xcc"
  786. "\xe3\x40\x60\xc8\x06\x93\xc6\x2e"
  787. "\x99\x80\x81\x28\xaf\xc5\x51\x74",
  788. .secret_size = 32,
  789. .b_public_size = 48,
  790. .expected_a_public_size = 48,
  791. .expected_ss_size = 24
  792. }, {
  793. #endif
  794. .secret =
  795. #ifdef __LITTLE_ENDIAN
  796. "\x02\x00" /* type */
  797. "\x28\x00" /* len */
  798. "\x02\x00" /* curve_id */
  799. "\x20\x00" /* key_size */
  800. #else
  801. "\x00\x02" /* type */
  802. "\x00\x28" /* len */
  803. "\x00\x02" /* curve_id */
  804. "\x00\x20" /* key_size */
  805. #endif
  806. "\x24\xd1\x21\xeb\xe5\xcf\x2d\x83"
  807. "\xf6\x62\x1b\x6e\x43\x84\x3a\xa3"
  808. "\x8b\xe0\x86\xc3\x20\x19\xda\x92"
  809. "\x50\x53\x03\xe1\xc0\xea\xb8\x82",
  810. .expected_a_public =
  811. "\x1a\x7f\xeb\x52\x00\xbd\x3c\x31"
  812. "\x7d\xb6\x70\xc1\x86\xa6\xc7\xc4"
  813. "\x3b\xc5\x5f\x6c\x6f\x58\x3c\xf5"
  814. "\xb6\x63\x82\x77\x33\x24\xa1\x5f"
  815. "\x6a\xca\x43\x6f\xf7\x7e\xff\x02"
  816. "\x37\x08\xcc\x40\x5e\x7a\xfd\x6a"
  817. "\x6a\x02\x6e\x41\x87\x68\x38\x77"
  818. "\xfa\xa9\x44\x43\x2d\xef\x09\xdf",
  819. .expected_ss =
  820. "\xea\x17\x6f\x7e\x6e\x57\x26\x38"
  821. "\x8b\xfb\x41\xeb\xba\xc8\x6d\xa5"
  822. "\xa8\x72\xd1\xff\xc9\x47\x3d\xaa"
  823. "\x58\x43\x9f\x34\x0f\x8c\xf3\xc9",
  824. .b_public =
  825. "\xcc\xb4\xda\x74\xb1\x47\x3f\xea"
  826. "\x6c\x70\x9e\x38\x2d\xc7\xaa\xb7"
  827. "\x29\xb2\x47\x03\x19\xab\xdd\x34"
  828. "\xbd\xa8\x2c\x93\xe1\xa4\x74\xd9"
  829. "\x64\x63\xf7\x70\x20\x2f\xa4\xe6"
  830. "\x9f\x4a\x38\xcc\xc0\x2c\x49\x2f"
  831. "\xb1\x32\xbb\xaf\x22\x61\xda\xcb"
  832. "\x6f\xdb\xa9\xaa\xfc\x77\x81\xf3",
  833. .secret_size = 40,
  834. .b_public_size = 64,
  835. .expected_a_public_size = 64,
  836. .expected_ss_size = 32
  837. }
  838. };
  839. /*
  840. * MD4 test vectors from RFC1320
  841. */
  842. #define MD4_TEST_VECTORS 7
  843. static struct hash_testvec md4_tv_template [] = {
  844. {
  845. .plaintext = "",
  846. .digest = "\x31\xd6\xcf\xe0\xd1\x6a\xe9\x31"
  847. "\xb7\x3c\x59\xd7\xe0\xc0\x89\xc0",
  848. }, {
  849. .plaintext = "a",
  850. .psize = 1,
  851. .digest = "\xbd\xe5\x2c\xb3\x1d\xe3\x3e\x46"
  852. "\x24\x5e\x05\xfb\xdb\xd6\xfb\x24",
  853. }, {
  854. .plaintext = "abc",
  855. .psize = 3,
  856. .digest = "\xa4\x48\x01\x7a\xaf\x21\xd8\x52"
  857. "\x5f\xc1\x0a\xe8\x7a\xa6\x72\x9d",
  858. }, {
  859. .plaintext = "message digest",
  860. .psize = 14,
  861. .digest = "\xd9\x13\x0a\x81\x64\x54\x9f\xe8"
  862. "\x18\x87\x48\x06\xe1\xc7\x01\x4b",
  863. }, {
  864. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  865. .psize = 26,
  866. .digest = "\xd7\x9e\x1c\x30\x8a\xa5\xbb\xcd"
  867. "\xee\xa8\xed\x63\xdf\x41\x2d\xa9",
  868. .np = 2,
  869. .tap = { 13, 13 },
  870. }, {
  871. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
  872. .psize = 62,
  873. .digest = "\x04\x3f\x85\x82\xf2\x41\xdb\x35"
  874. "\x1c\xe6\x27\xe1\x53\xe7\xf0\xe4",
  875. }, {
  876. .plaintext = "123456789012345678901234567890123456789012345678901234567890123"
  877. "45678901234567890",
  878. .psize = 80,
  879. .digest = "\xe3\x3b\x4d\xdc\x9c\x38\xf2\x19"
  880. "\x9c\x3e\x7b\x16\x4f\xcc\x05\x36",
  881. },
  882. };
  883. #define SHA3_224_TEST_VECTORS 3
  884. static struct hash_testvec sha3_224_tv_template[] = {
  885. {
  886. .plaintext = "",
  887. .digest = "\x6b\x4e\x03\x42\x36\x67\xdb\xb7"
  888. "\x3b\x6e\x15\x45\x4f\x0e\xb1\xab"
  889. "\xd4\x59\x7f\x9a\x1b\x07\x8e\x3f"
  890. "\x5b\x5a\x6b\xc7",
  891. }, {
  892. .plaintext = "a",
  893. .psize = 1,
  894. .digest = "\x9e\x86\xff\x69\x55\x7c\xa9\x5f"
  895. "\x40\x5f\x08\x12\x69\x68\x5b\x38"
  896. "\xe3\xa8\x19\xb3\x09\xee\x94\x2f"
  897. "\x48\x2b\x6a\x8b",
  898. }, {
  899. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
  900. "jklmklmnlmnomnopnopq",
  901. .psize = 56,
  902. .digest = "\x8a\x24\x10\x8b\x15\x4a\xda\x21"
  903. "\xc9\xfd\x55\x74\x49\x44\x79\xba"
  904. "\x5c\x7e\x7a\xb7\x6e\xf2\x64\xea"
  905. "\xd0\xfc\xce\x33",
  906. },
  907. };
  908. #define SHA3_256_TEST_VECTORS 3
  909. static struct hash_testvec sha3_256_tv_template[] = {
  910. {
  911. .plaintext = "",
  912. .digest = "\xa7\xff\xc6\xf8\xbf\x1e\xd7\x66"
  913. "\x51\xc1\x47\x56\xa0\x61\xd6\x62"
  914. "\xf5\x80\xff\x4d\xe4\x3b\x49\xfa"
  915. "\x82\xd8\x0a\x4b\x80\xf8\x43\x4a",
  916. }, {
  917. .plaintext = "a",
  918. .psize = 1,
  919. .digest = "\x80\x08\x4b\xf2\xfb\xa0\x24\x75"
  920. "\x72\x6f\xeb\x2c\xab\x2d\x82\x15"
  921. "\xea\xb1\x4b\xc6\xbd\xd8\xbf\xb2"
  922. "\xc8\x15\x12\x57\x03\x2e\xcd\x8b",
  923. }, {
  924. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
  925. "jklmklmnlmnomnopnopq",
  926. .psize = 56,
  927. .digest = "\x41\xc0\xdb\xa2\xa9\xd6\x24\x08"
  928. "\x49\x10\x03\x76\xa8\x23\x5e\x2c"
  929. "\x82\xe1\xb9\x99\x8a\x99\x9e\x21"
  930. "\xdb\x32\xdd\x97\x49\x6d\x33\x76",
  931. },
  932. };
  933. #define SHA3_384_TEST_VECTORS 3
  934. static struct hash_testvec sha3_384_tv_template[] = {
  935. {
  936. .plaintext = "",
  937. .digest = "\x0c\x63\xa7\x5b\x84\x5e\x4f\x7d"
  938. "\x01\x10\x7d\x85\x2e\x4c\x24\x85"
  939. "\xc5\x1a\x50\xaa\xaa\x94\xfc\x61"
  940. "\x99\x5e\x71\xbb\xee\x98\x3a\x2a"
  941. "\xc3\x71\x38\x31\x26\x4a\xdb\x47"
  942. "\xfb\x6b\xd1\xe0\x58\xd5\xf0\x04",
  943. }, {
  944. .plaintext = "a",
  945. .psize = 1,
  946. .digest = "\x18\x15\xf7\x74\xf3\x20\x49\x1b"
  947. "\x48\x56\x9e\xfe\xc7\x94\xd2\x49"
  948. "\xee\xb5\x9a\xae\x46\xd2\x2b\xf7"
  949. "\x7d\xaf\xe2\x5c\x5e\xdc\x28\xd7"
  950. "\xea\x44\xf9\x3e\xe1\x23\x4a\xa8"
  951. "\x8f\x61\xc9\x19\x12\xa4\xcc\xd9",
  952. }, {
  953. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
  954. "jklmklmnlmnomnopnopq",
  955. .psize = 56,
  956. .digest = "\x99\x1c\x66\x57\x55\xeb\x3a\x4b"
  957. "\x6b\xbd\xfb\x75\xc7\x8a\x49\x2e"
  958. "\x8c\x56\xa2\x2c\x5c\x4d\x7e\x42"
  959. "\x9b\xfd\xbc\x32\xb9\xd4\xad\x5a"
  960. "\xa0\x4a\x1f\x07\x6e\x62\xfe\xa1"
  961. "\x9e\xef\x51\xac\xd0\x65\x7c\x22",
  962. },
  963. };
  964. #define SHA3_512_TEST_VECTORS 3
  965. static struct hash_testvec sha3_512_tv_template[] = {
  966. {
  967. .plaintext = "",
  968. .digest = "\xa6\x9f\x73\xcc\xa2\x3a\x9a\xc5"
  969. "\xc8\xb5\x67\xdc\x18\x5a\x75\x6e"
  970. "\x97\xc9\x82\x16\x4f\xe2\x58\x59"
  971. "\xe0\xd1\xdc\xc1\x47\x5c\x80\xa6"
  972. "\x15\xb2\x12\x3a\xf1\xf5\xf9\x4c"
  973. "\x11\xe3\xe9\x40\x2c\x3a\xc5\x58"
  974. "\xf5\x00\x19\x9d\x95\xb6\xd3\xe3"
  975. "\x01\x75\x85\x86\x28\x1d\xcd\x26",
  976. }, {
  977. .plaintext = "a",
  978. .psize = 1,
  979. .digest = "\x69\x7f\x2d\x85\x61\x72\xcb\x83"
  980. "\x09\xd6\xb8\xb9\x7d\xac\x4d\xe3"
  981. "\x44\xb5\x49\xd4\xde\xe6\x1e\xdf"
  982. "\xb4\x96\x2d\x86\x98\xb7\xfa\x80"
  983. "\x3f\x4f\x93\xff\x24\x39\x35\x86"
  984. "\xe2\x8b\x5b\x95\x7a\xc3\xd1\xd3"
  985. "\x69\x42\x0c\xe5\x33\x32\x71\x2f"
  986. "\x99\x7b\xd3\x36\xd0\x9a\xb0\x2a",
  987. }, {
  988. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
  989. "jklmklmnlmnomnopnopq",
  990. .psize = 56,
  991. .digest = "\x04\xa3\x71\xe8\x4e\xcf\xb5\xb8"
  992. "\xb7\x7c\xb4\x86\x10\xfc\xa8\x18"
  993. "\x2d\xd4\x57\xce\x6f\x32\x6a\x0f"
  994. "\xd3\xd7\xec\x2f\x1e\x91\x63\x6d"
  995. "\xee\x69\x1f\xbe\x0c\x98\x53\x02"
  996. "\xba\x1b\x0d\x8d\xc7\x8c\x08\x63"
  997. "\x46\xb5\x33\xb4\x9c\x03\x0d\x99"
  998. "\xa2\x7d\xaf\x11\x39\xd6\xe7\x5e",
  999. },
  1000. };
  1001. /*
  1002. * MD5 test vectors from RFC1321
  1003. */
  1004. #define MD5_TEST_VECTORS 7
  1005. static struct hash_testvec md5_tv_template[] = {
  1006. {
  1007. .digest = "\xd4\x1d\x8c\xd9\x8f\x00\xb2\x04"
  1008. "\xe9\x80\x09\x98\xec\xf8\x42\x7e",
  1009. }, {
  1010. .plaintext = "a",
  1011. .psize = 1,
  1012. .digest = "\x0c\xc1\x75\xb9\xc0\xf1\xb6\xa8"
  1013. "\x31\xc3\x99\xe2\x69\x77\x26\x61",
  1014. }, {
  1015. .plaintext = "abc",
  1016. .psize = 3,
  1017. .digest = "\x90\x01\x50\x98\x3c\xd2\x4f\xb0"
  1018. "\xd6\x96\x3f\x7d\x28\xe1\x7f\x72",
  1019. }, {
  1020. .plaintext = "message digest",
  1021. .psize = 14,
  1022. .digest = "\xf9\x6b\x69\x7d\x7c\xb7\x93\x8d"
  1023. "\x52\x5a\x2f\x31\xaa\xf1\x61\xd0",
  1024. }, {
  1025. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  1026. .psize = 26,
  1027. .digest = "\xc3\xfc\xd3\xd7\x61\x92\xe4\x00"
  1028. "\x7d\xfb\x49\x6c\xca\x67\xe1\x3b",
  1029. .np = 2,
  1030. .tap = {13, 13}
  1031. }, {
  1032. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
  1033. .psize = 62,
  1034. .digest = "\xd1\x74\xab\x98\xd2\x77\xd9\xf5"
  1035. "\xa5\x61\x1c\x2c\x9f\x41\x9d\x9f",
  1036. }, {
  1037. .plaintext = "12345678901234567890123456789012345678901234567890123456789012"
  1038. "345678901234567890",
  1039. .psize = 80,
  1040. .digest = "\x57\xed\xf4\xa2\x2b\xe3\xc9\x55"
  1041. "\xac\x49\xda\x2e\x21\x07\xb6\x7a",
  1042. }
  1043. };
  1044. /*
  1045. * RIPEMD-128 test vectors from ISO/IEC 10118-3:2004(E)
  1046. */
  1047. #define RMD128_TEST_VECTORS 10
  1048. static struct hash_testvec rmd128_tv_template[] = {
  1049. {
  1050. .digest = "\xcd\xf2\x62\x13\xa1\x50\xdc\x3e"
  1051. "\xcb\x61\x0f\x18\xf6\xb3\x8b\x46",
  1052. }, {
  1053. .plaintext = "a",
  1054. .psize = 1,
  1055. .digest = "\x86\xbe\x7a\xfa\x33\x9d\x0f\xc7"
  1056. "\xcf\xc7\x85\xe7\x2f\x57\x8d\x33",
  1057. }, {
  1058. .plaintext = "abc",
  1059. .psize = 3,
  1060. .digest = "\xc1\x4a\x12\x19\x9c\x66\xe4\xba"
  1061. "\x84\x63\x6b\x0f\x69\x14\x4c\x77",
  1062. }, {
  1063. .plaintext = "message digest",
  1064. .psize = 14,
  1065. .digest = "\x9e\x32\x7b\x3d\x6e\x52\x30\x62"
  1066. "\xaf\xc1\x13\x2d\x7d\xf9\xd1\xb8",
  1067. }, {
  1068. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  1069. .psize = 26,
  1070. .digest = "\xfd\x2a\xa6\x07\xf7\x1d\xc8\xf5"
  1071. "\x10\x71\x49\x22\xb3\x71\x83\x4e",
  1072. }, {
  1073. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
  1074. "fghijklmnopqrstuvwxyz0123456789",
  1075. .psize = 62,
  1076. .digest = "\xd1\xe9\x59\xeb\x17\x9c\x91\x1f"
  1077. "\xae\xa4\x62\x4c\x60\xc5\xc7\x02",
  1078. }, {
  1079. .plaintext = "1234567890123456789012345678901234567890"
  1080. "1234567890123456789012345678901234567890",
  1081. .psize = 80,
  1082. .digest = "\x3f\x45\xef\x19\x47\x32\xc2\xdb"
  1083. "\xb2\xc4\xa2\xc7\x69\x79\x5f\xa3",
  1084. }, {
  1085. .plaintext = "abcdbcdecdefdefgefghfghighij"
  1086. "hijkijkljklmklmnlmnomnopnopq",
  1087. .psize = 56,
  1088. .digest = "\xa1\xaa\x06\x89\xd0\xfa\xfa\x2d"
  1089. "\xdc\x22\xe8\x8b\x49\x13\x3a\x06",
  1090. .np = 2,
  1091. .tap = { 28, 28 },
  1092. }, {
  1093. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
  1094. "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
  1095. "lmnopqrsmnopqrstnopqrstu",
  1096. .psize = 112,
  1097. .digest = "\xd4\xec\xc9\x13\xe1\xdf\x77\x6b"
  1098. "\xf4\x8d\xe9\xd5\x5b\x1f\x25\x46",
  1099. }, {
  1100. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  1101. .psize = 32,
  1102. .digest = "\x13\xfc\x13\xe8\xef\xff\x34\x7d"
  1103. "\xe1\x93\xff\x46\xdb\xac\xcf\xd4",
  1104. }
  1105. };
  1106. /*
  1107. * RIPEMD-160 test vectors from ISO/IEC 10118-3:2004(E)
  1108. */
  1109. #define RMD160_TEST_VECTORS 10
  1110. static struct hash_testvec rmd160_tv_template[] = {
  1111. {
  1112. .digest = "\x9c\x11\x85\xa5\xc5\xe9\xfc\x54\x61\x28"
  1113. "\x08\x97\x7e\xe8\xf5\x48\xb2\x25\x8d\x31",
  1114. }, {
  1115. .plaintext = "a",
  1116. .psize = 1,
  1117. .digest = "\x0b\xdc\x9d\x2d\x25\x6b\x3e\xe9\xda\xae"
  1118. "\x34\x7b\xe6\xf4\xdc\x83\x5a\x46\x7f\xfe",
  1119. }, {
  1120. .plaintext = "abc",
  1121. .psize = 3,
  1122. .digest = "\x8e\xb2\x08\xf7\xe0\x5d\x98\x7a\x9b\x04"
  1123. "\x4a\x8e\x98\xc6\xb0\x87\xf1\x5a\x0b\xfc",
  1124. }, {
  1125. .plaintext = "message digest",
  1126. .psize = 14,
  1127. .digest = "\x5d\x06\x89\xef\x49\xd2\xfa\xe5\x72\xb8"
  1128. "\x81\xb1\x23\xa8\x5f\xfa\x21\x59\x5f\x36",
  1129. }, {
  1130. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  1131. .psize = 26,
  1132. .digest = "\xf7\x1c\x27\x10\x9c\x69\x2c\x1b\x56\xbb"
  1133. "\xdc\xeb\x5b\x9d\x28\x65\xb3\x70\x8d\xbc",
  1134. }, {
  1135. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
  1136. "fghijklmnopqrstuvwxyz0123456789",
  1137. .psize = 62,
  1138. .digest = "\xb0\xe2\x0b\x6e\x31\x16\x64\x02\x86\xed"
  1139. "\x3a\x87\xa5\x71\x30\x79\xb2\x1f\x51\x89",
  1140. }, {
  1141. .plaintext = "1234567890123456789012345678901234567890"
  1142. "1234567890123456789012345678901234567890",
  1143. .psize = 80,
  1144. .digest = "\x9b\x75\x2e\x45\x57\x3d\x4b\x39\xf4\xdb"
  1145. "\xd3\x32\x3c\xab\x82\xbf\x63\x32\x6b\xfb",
  1146. }, {
  1147. .plaintext = "abcdbcdecdefdefgefghfghighij"
  1148. "hijkijkljklmklmnlmnomnopnopq",
  1149. .psize = 56,
  1150. .digest = "\x12\xa0\x53\x38\x4a\x9c\x0c\x88\xe4\x05"
  1151. "\xa0\x6c\x27\xdc\xf4\x9a\xda\x62\xeb\x2b",
  1152. .np = 2,
  1153. .tap = { 28, 28 },
  1154. }, {
  1155. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
  1156. "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
  1157. "lmnopqrsmnopqrstnopqrstu",
  1158. .psize = 112,
  1159. .digest = "\x6f\x3f\xa3\x9b\x6b\x50\x3c\x38\x4f\x91"
  1160. "\x9a\x49\xa7\xaa\x5c\x2c\x08\xbd\xfb\x45",
  1161. }, {
  1162. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  1163. .psize = 32,
  1164. .digest = "\x94\xc2\x64\x11\x54\x04\xe6\x33\x79\x0d"
  1165. "\xfc\xc8\x7b\x58\x7d\x36\x77\x06\x7d\x9f",
  1166. }
  1167. };
  1168. /*
  1169. * RIPEMD-256 test vectors
  1170. */
  1171. #define RMD256_TEST_VECTORS 8
  1172. static struct hash_testvec rmd256_tv_template[] = {
  1173. {
  1174. .digest = "\x02\xba\x4c\x4e\x5f\x8e\xcd\x18"
  1175. "\x77\xfc\x52\xd6\x4d\x30\xe3\x7a"
  1176. "\x2d\x97\x74\xfb\x1e\x5d\x02\x63"
  1177. "\x80\xae\x01\x68\xe3\xc5\x52\x2d",
  1178. }, {
  1179. .plaintext = "a",
  1180. .psize = 1,
  1181. .digest = "\xf9\x33\x3e\x45\xd8\x57\xf5\xd9"
  1182. "\x0a\x91\xba\xb7\x0a\x1e\xba\x0c"
  1183. "\xfb\x1b\xe4\xb0\x78\x3c\x9a\xcf"
  1184. "\xcd\x88\x3a\x91\x34\x69\x29\x25",
  1185. }, {
  1186. .plaintext = "abc",
  1187. .psize = 3,
  1188. .digest = "\xaf\xbd\x6e\x22\x8b\x9d\x8c\xbb"
  1189. "\xce\xf5\xca\x2d\x03\xe6\xdb\xa1"
  1190. "\x0a\xc0\xbc\x7d\xcb\xe4\x68\x0e"
  1191. "\x1e\x42\xd2\xe9\x75\x45\x9b\x65",
  1192. }, {
  1193. .plaintext = "message digest",
  1194. .psize = 14,
  1195. .digest = "\x87\xe9\x71\x75\x9a\x1c\xe4\x7a"
  1196. "\x51\x4d\x5c\x91\x4c\x39\x2c\x90"
  1197. "\x18\xc7\xc4\x6b\xc1\x44\x65\x55"
  1198. "\x4a\xfc\xdf\x54\xa5\x07\x0c\x0e",
  1199. }, {
  1200. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  1201. .psize = 26,
  1202. .digest = "\x64\x9d\x30\x34\x75\x1e\xa2\x16"
  1203. "\x77\x6b\xf9\xa1\x8a\xcc\x81\xbc"
  1204. "\x78\x96\x11\x8a\x51\x97\x96\x87"
  1205. "\x82\xdd\x1f\xd9\x7d\x8d\x51\x33",
  1206. }, {
  1207. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
  1208. "fghijklmnopqrstuvwxyz0123456789",
  1209. .psize = 62,
  1210. .digest = "\x57\x40\xa4\x08\xac\x16\xb7\x20"
  1211. "\xb8\x44\x24\xae\x93\x1c\xbb\x1f"
  1212. "\xe3\x63\xd1\xd0\xbf\x40\x17\xf1"
  1213. "\xa8\x9f\x7e\xa6\xde\x77\xa0\xb8",
  1214. }, {
  1215. .plaintext = "1234567890123456789012345678901234567890"
  1216. "1234567890123456789012345678901234567890",
  1217. .psize = 80,
  1218. .digest = "\x06\xfd\xcc\x7a\x40\x95\x48\xaa"
  1219. "\xf9\x13\x68\xc0\x6a\x62\x75\xb5"
  1220. "\x53\xe3\xf0\x99\xbf\x0e\xa4\xed"
  1221. "\xfd\x67\x78\xdf\x89\xa8\x90\xdd",
  1222. }, {
  1223. .plaintext = "abcdbcdecdefdefgefghfghighij"
  1224. "hijkijkljklmklmnlmnomnopnopq",
  1225. .psize = 56,
  1226. .digest = "\x38\x43\x04\x55\x83\xaa\xc6\xc8"
  1227. "\xc8\xd9\x12\x85\x73\xe7\xa9\x80"
  1228. "\x9a\xfb\x2a\x0f\x34\xcc\xc3\x6e"
  1229. "\xa9\xe7\x2f\x16\xf6\x36\x8e\x3f",
  1230. .np = 2,
  1231. .tap = { 28, 28 },
  1232. }
  1233. };
  1234. /*
  1235. * RIPEMD-320 test vectors
  1236. */
  1237. #define RMD320_TEST_VECTORS 8
  1238. static struct hash_testvec rmd320_tv_template[] = {
  1239. {
  1240. .digest = "\x22\xd6\x5d\x56\x61\x53\x6c\xdc\x75\xc1"
  1241. "\xfd\xf5\xc6\xde\x7b\x41\xb9\xf2\x73\x25"
  1242. "\xeb\xc6\x1e\x85\x57\x17\x7d\x70\x5a\x0e"
  1243. "\xc8\x80\x15\x1c\x3a\x32\xa0\x08\x99\xb8",
  1244. }, {
  1245. .plaintext = "a",
  1246. .psize = 1,
  1247. .digest = "\xce\x78\x85\x06\x38\xf9\x26\x58\xa5\xa5"
  1248. "\x85\x09\x75\x79\x92\x6d\xda\x66\x7a\x57"
  1249. "\x16\x56\x2c\xfc\xf6\xfb\xe7\x7f\x63\x54"
  1250. "\x2f\x99\xb0\x47\x05\xd6\x97\x0d\xff\x5d",
  1251. }, {
  1252. .plaintext = "abc",
  1253. .psize = 3,
  1254. .digest = "\xde\x4c\x01\xb3\x05\x4f\x89\x30\xa7\x9d"
  1255. "\x09\xae\x73\x8e\x92\x30\x1e\x5a\x17\x08"
  1256. "\x5b\xef\xfd\xc1\xb8\xd1\x16\x71\x3e\x74"
  1257. "\xf8\x2f\xa9\x42\xd6\x4c\xdb\xc4\x68\x2d",
  1258. }, {
  1259. .plaintext = "message digest",
  1260. .psize = 14,
  1261. .digest = "\x3a\x8e\x28\x50\x2e\xd4\x5d\x42\x2f\x68"
  1262. "\x84\x4f\x9d\xd3\x16\xe7\xb9\x85\x33\xfa"
  1263. "\x3f\x2a\x91\xd2\x9f\x84\xd4\x25\xc8\x8d"
  1264. "\x6b\x4e\xff\x72\x7d\xf6\x6a\x7c\x01\x97",
  1265. }, {
  1266. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  1267. .psize = 26,
  1268. .digest = "\xca\xbd\xb1\x81\x0b\x92\x47\x0a\x20\x93"
  1269. "\xaa\x6b\xce\x05\x95\x2c\x28\x34\x8c\xf4"
  1270. "\x3f\xf6\x08\x41\x97\x51\x66\xbb\x40\xed"
  1271. "\x23\x40\x04\xb8\x82\x44\x63\xe6\xb0\x09",
  1272. }, {
  1273. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
  1274. "fghijklmnopqrstuvwxyz0123456789",
  1275. .psize = 62,
  1276. .digest = "\xed\x54\x49\x40\xc8\x6d\x67\xf2\x50\xd2"
  1277. "\x32\xc3\x0b\x7b\x3e\x57\x70\xe0\xc6\x0c"
  1278. "\x8c\xb9\xa4\xca\xfe\x3b\x11\x38\x8a\xf9"
  1279. "\x92\x0e\x1b\x99\x23\x0b\x84\x3c\x86\xa4",
  1280. }, {
  1281. .plaintext = "1234567890123456789012345678901234567890"
  1282. "1234567890123456789012345678901234567890",
  1283. .psize = 80,
  1284. .digest = "\x55\x78\x88\xaf\x5f\x6d\x8e\xd6\x2a\xb6"
  1285. "\x69\x45\xc6\xd2\xa0\xa4\x7e\xcd\x53\x41"
  1286. "\xe9\x15\xeb\x8f\xea\x1d\x05\x24\x95\x5f"
  1287. "\x82\x5d\xc7\x17\xe4\xa0\x08\xab\x2d\x42",
  1288. }, {
  1289. .plaintext = "abcdbcdecdefdefgefghfghighij"
  1290. "hijkijkljklmklmnlmnomnopnopq",
  1291. .psize = 56,
  1292. .digest = "\xd0\x34\xa7\x95\x0c\xf7\x22\x02\x1b\xa4"
  1293. "\xb8\x4d\xf7\x69\xa5\xde\x20\x60\xe2\x59"
  1294. "\xdf\x4c\x9b\xb4\xa4\x26\x8c\x0e\x93\x5b"
  1295. "\xbc\x74\x70\xa9\x69\xc9\xd0\x72\xa1\xac",
  1296. .np = 2,
  1297. .tap = { 28, 28 },
  1298. }
  1299. };
  1300. #define CRCT10DIF_TEST_VECTORS 3
  1301. static struct hash_testvec crct10dif_tv_template[] = {
  1302. {
  1303. .plaintext = "abc",
  1304. .psize = 3,
  1305. #ifdef __LITTLE_ENDIAN
  1306. .digest = "\x3b\x44",
  1307. #else
  1308. .digest = "\x44\x3b",
  1309. #endif
  1310. }, {
  1311. .plaintext = "1234567890123456789012345678901234567890"
  1312. "123456789012345678901234567890123456789",
  1313. .psize = 79,
  1314. #ifdef __LITTLE_ENDIAN
  1315. .digest = "\x70\x4b",
  1316. #else
  1317. .digest = "\x4b\x70",
  1318. #endif
  1319. }, {
  1320. .plaintext =
  1321. "abcddddddddddddddddddddddddddddddddddddddddddddddddddddd",
  1322. .psize = 56,
  1323. #ifdef __LITTLE_ENDIAN
  1324. .digest = "\xe3\x9c",
  1325. #else
  1326. .digest = "\x9c\xe3",
  1327. #endif
  1328. .np = 2,
  1329. .tap = { 28, 28 }
  1330. }
  1331. };
  1332. /*
  1333. * SHA1 test vectors from from FIPS PUB 180-1
  1334. * Long vector from CAVS 5.0
  1335. */
  1336. #define SHA1_TEST_VECTORS 6
  1337. static struct hash_testvec sha1_tv_template[] = {
  1338. {
  1339. .plaintext = "",
  1340. .psize = 0,
  1341. .digest = "\xda\x39\xa3\xee\x5e\x6b\x4b\x0d\x32\x55"
  1342. "\xbf\xef\x95\x60\x18\x90\xaf\xd8\x07\x09",
  1343. }, {
  1344. .plaintext = "abc",
  1345. .psize = 3,
  1346. .digest = "\xa9\x99\x3e\x36\x47\x06\x81\x6a\xba\x3e"
  1347. "\x25\x71\x78\x50\xc2\x6c\x9c\xd0\xd8\x9d",
  1348. }, {
  1349. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  1350. .psize = 56,
  1351. .digest = "\x84\x98\x3e\x44\x1c\x3b\xd2\x6e\xba\xae"
  1352. "\x4a\xa1\xf9\x51\x29\xe5\xe5\x46\x70\xf1",
  1353. .np = 2,
  1354. .tap = { 28, 28 }
  1355. }, {
  1356. .plaintext = "\xec\x29\x56\x12\x44\xed\xe7\x06"
  1357. "\xb6\xeb\x30\xa1\xc3\x71\xd7\x44"
  1358. "\x50\xa1\x05\xc3\xf9\x73\x5f\x7f"
  1359. "\xa9\xfe\x38\xcf\x67\xf3\x04\xa5"
  1360. "\x73\x6a\x10\x6e\x92\xe1\x71\x39"
  1361. "\xa6\x81\x3b\x1c\x81\xa4\xf3\xd3"
  1362. "\xfb\x95\x46\xab\x42\x96\xfa\x9f"
  1363. "\x72\x28\x26\xc0\x66\x86\x9e\xda"
  1364. "\xcd\x73\xb2\x54\x80\x35\x18\x58"
  1365. "\x13\xe2\x26\x34\xa9\xda\x44\x00"
  1366. "\x0d\x95\xa2\x81\xff\x9f\x26\x4e"
  1367. "\xcc\xe0\xa9\x31\x22\x21\x62\xd0"
  1368. "\x21\xcc\xa2\x8d\xb5\xf3\xc2\xaa"
  1369. "\x24\x94\x5a\xb1\xe3\x1c\xb4\x13"
  1370. "\xae\x29\x81\x0f\xd7\x94\xca\xd5"
  1371. "\xdf\xaf\x29\xec\x43\xcb\x38\xd1"
  1372. "\x98\xfe\x4a\xe1\xda\x23\x59\x78"
  1373. "\x02\x21\x40\x5b\xd6\x71\x2a\x53"
  1374. "\x05\xda\x4b\x1b\x73\x7f\xce\x7c"
  1375. "\xd2\x1c\x0e\xb7\x72\x8d\x08\x23"
  1376. "\x5a\x90\x11",
  1377. .psize = 163,
  1378. .digest = "\x97\x01\x11\xc4\xe7\x7b\xcc\x88\xcc\x20"
  1379. "\x45\x9c\x02\xb6\x9b\x4a\xa8\xf5\x82\x17",
  1380. .np = 4,
  1381. .tap = { 63, 64, 31, 5 }
  1382. }, {
  1383. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
  1384. .psize = 64,
  1385. .digest = "\xc8\x71\xf6\x9a\x63\xcc\xa9\x84\x84\x82"
  1386. "\x64\xe7\x79\x95\x5d\xd7\x19\x41\x7c\x91",
  1387. }, {
  1388. .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
  1389. "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
  1390. "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
  1391. "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
  1392. "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
  1393. "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
  1394. "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
  1395. "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
  1396. "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
  1397. "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
  1398. "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
  1399. "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
  1400. "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
  1401. "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
  1402. "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
  1403. "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
  1404. "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
  1405. "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
  1406. "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
  1407. "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
  1408. "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
  1409. "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
  1410. "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
  1411. "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
  1412. "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
  1413. "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
  1414. "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
  1415. "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
  1416. "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
  1417. "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
  1418. "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
  1419. "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
  1420. "\x53\xea\x81\x18\x8c\x23\xba\x2e"
  1421. "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
  1422. "\x37\xce\x42\xd9\x70\x07\x7b\x12"
  1423. "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
  1424. "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
  1425. "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
  1426. "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
  1427. "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
  1428. "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
  1429. "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
  1430. "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
  1431. "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
  1432. "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
  1433. "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
  1434. "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
  1435. "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
  1436. "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
  1437. "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
  1438. "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
  1439. "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
  1440. "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
  1441. "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
  1442. "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
  1443. "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
  1444. "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
  1445. "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
  1446. "\x38\xcf\x43\xda\x71\x08\x7c\x13"
  1447. "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
  1448. "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
  1449. "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
  1450. "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
  1451. "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
  1452. "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
  1453. "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
  1454. "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
  1455. "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
  1456. "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
  1457. "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
  1458. "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
  1459. "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
  1460. "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
  1461. "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
  1462. "\xef\x63\xfa\x91\x05\x9c\x33\xca"
  1463. "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
  1464. "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
  1465. "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
  1466. "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
  1467. "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
  1468. "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
  1469. "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
  1470. "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
  1471. "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
  1472. "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
  1473. "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
  1474. "\xde\x75\x0c\x80\x17\xae\x22\xb9"
  1475. "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
  1476. "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
  1477. "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
  1478. "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
  1479. "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
  1480. "\x67\xfe\x72\x09\xa0\x14\xab\x42"
  1481. "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
  1482. "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
  1483. "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
  1484. "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
  1485. "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
  1486. "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
  1487. "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
  1488. "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
  1489. "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
  1490. "\x95\x09\xa0\x37\xce\x42\xd9\x70"
  1491. "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
  1492. "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
  1493. "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
  1494. "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
  1495. "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
  1496. "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
  1497. "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
  1498. "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
  1499. "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
  1500. "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
  1501. "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
  1502. "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
  1503. "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
  1504. "\x68\xff\x73\x0a\xa1\x15\xac\x43"
  1505. "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
  1506. "\x29\xc0\x57\xee\x62\xf9\x90\x04"
  1507. "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
  1508. "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
  1509. "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
  1510. "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
  1511. "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
  1512. "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
  1513. "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
  1514. "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
  1515. "\x08\x7c\x13\xaa\x1e\xb5\x4c",
  1516. .psize = 1023,
  1517. .digest = "\xb8\xe3\x54\xed\xc5\xfc\xef\xa4"
  1518. "\x55\x73\x4a\x81\x99\xe4\x47\x2a"
  1519. "\x30\xd6\xc9\x85",
  1520. }
  1521. };
  1522. /*
  1523. * SHA224 test vectors from from FIPS PUB 180-2
  1524. */
  1525. #define SHA224_TEST_VECTORS 5
  1526. static struct hash_testvec sha224_tv_template[] = {
  1527. {
  1528. .plaintext = "",
  1529. .psize = 0,
  1530. .digest = "\xd1\x4a\x02\x8c\x2a\x3a\x2b\xc9"
  1531. "\x47\x61\x02\xbb\x28\x82\x34\xc4"
  1532. "\x15\xa2\xb0\x1f\x82\x8e\xa6\x2a"
  1533. "\xc5\xb3\xe4\x2f",
  1534. }, {
  1535. .plaintext = "abc",
  1536. .psize = 3,
  1537. .digest = "\x23\x09\x7D\x22\x34\x05\xD8\x22"
  1538. "\x86\x42\xA4\x77\xBD\xA2\x55\xB3"
  1539. "\x2A\xAD\xBC\xE4\xBD\xA0\xB3\xF7"
  1540. "\xE3\x6C\x9D\xA7",
  1541. }, {
  1542. .plaintext =
  1543. "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  1544. .psize = 56,
  1545. .digest = "\x75\x38\x8B\x16\x51\x27\x76\xCC"
  1546. "\x5D\xBA\x5D\xA1\xFD\x89\x01\x50"
  1547. "\xB0\xC6\x45\x5C\xB4\xF5\x8B\x19"
  1548. "\x52\x52\x25\x25",
  1549. .np = 2,
  1550. .tap = { 28, 28 }
  1551. }, {
  1552. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
  1553. .psize = 64,
  1554. .digest = "\xc4\xdb\x2b\x3a\x58\xc3\x99\x01"
  1555. "\x42\xfd\x10\x92\xaa\x4e\x04\x08"
  1556. "\x58\xbb\xbb\xe8\xf8\x14\xa7\x0c"
  1557. "\xef\x3b\xcb\x0e",
  1558. }, {
  1559. .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
  1560. "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
  1561. "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
  1562. "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
  1563. "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
  1564. "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
  1565. "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
  1566. "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
  1567. "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
  1568. "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
  1569. "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
  1570. "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
  1571. "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
  1572. "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
  1573. "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
  1574. "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
  1575. "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
  1576. "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
  1577. "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
  1578. "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
  1579. "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
  1580. "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
  1581. "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
  1582. "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
  1583. "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
  1584. "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
  1585. "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
  1586. "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
  1587. "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
  1588. "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
  1589. "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
  1590. "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
  1591. "\x53\xea\x81\x18\x8c\x23\xba\x2e"
  1592. "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
  1593. "\x37\xce\x42\xd9\x70\x07\x7b\x12"
  1594. "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
  1595. "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
  1596. "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
  1597. "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
  1598. "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
  1599. "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
  1600. "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
  1601. "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
  1602. "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
  1603. "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
  1604. "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
  1605. "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
  1606. "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
  1607. "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
  1608. "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
  1609. "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
  1610. "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
  1611. "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
  1612. "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
  1613. "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
  1614. "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
  1615. "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
  1616. "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
  1617. "\x38\xcf\x43\xda\x71\x08\x7c\x13"
  1618. "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
  1619. "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
  1620. "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
  1621. "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
  1622. "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
  1623. "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
  1624. "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
  1625. "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
  1626. "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
  1627. "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
  1628. "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
  1629. "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
  1630. "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
  1631. "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
  1632. "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
  1633. "\xef\x63\xfa\x91\x05\x9c\x33\xca"
  1634. "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
  1635. "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
  1636. "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
  1637. "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
  1638. "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
  1639. "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
  1640. "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
  1641. "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
  1642. "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
  1643. "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
  1644. "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
  1645. "\xde\x75\x0c\x80\x17\xae\x22\xb9"
  1646. "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
  1647. "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
  1648. "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
  1649. "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
  1650. "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
  1651. "\x67\xfe\x72\x09\xa0\x14\xab\x42"
  1652. "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
  1653. "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
  1654. "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
  1655. "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
  1656. "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
  1657. "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
  1658. "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
  1659. "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
  1660. "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
  1661. "\x95\x09\xa0\x37\xce\x42\xd9\x70"
  1662. "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
  1663. "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
  1664. "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
  1665. "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
  1666. "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
  1667. "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
  1668. "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
  1669. "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
  1670. "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
  1671. "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
  1672. "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
  1673. "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
  1674. "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
  1675. "\x68\xff\x73\x0a\xa1\x15\xac\x43"
  1676. "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
  1677. "\x29\xc0\x57\xee\x62\xf9\x90\x04"
  1678. "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
  1679. "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
  1680. "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
  1681. "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
  1682. "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
  1683. "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
  1684. "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
  1685. "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
  1686. "\x08\x7c\x13\xaa\x1e\xb5\x4c",
  1687. .psize = 1023,
  1688. .digest = "\x98\x43\x07\x63\x75\xe0\xa7\x1c"
  1689. "\x78\xb1\x8b\xfd\x04\xf5\x2d\x91"
  1690. "\x20\x48\xa4\x28\xff\x55\xb1\xd3"
  1691. "\xe6\xf9\x4f\xcc",
  1692. }
  1693. };
  1694. /*
  1695. * SHA256 test vectors from from NIST
  1696. */
  1697. #define SHA256_TEST_VECTORS 5
  1698. static struct hash_testvec sha256_tv_template[] = {
  1699. {
  1700. .plaintext = "",
  1701. .psize = 0,
  1702. .digest = "\xe3\xb0\xc4\x42\x98\xfc\x1c\x14"
  1703. "\x9a\xfb\xf4\xc8\x99\x6f\xb9\x24"
  1704. "\x27\xae\x41\xe4\x64\x9b\x93\x4c"
  1705. "\xa4\x95\x99\x1b\x78\x52\xb8\x55",
  1706. }, {
  1707. .plaintext = "abc",
  1708. .psize = 3,
  1709. .digest = "\xba\x78\x16\xbf\x8f\x01\xcf\xea"
  1710. "\x41\x41\x40\xde\x5d\xae\x22\x23"
  1711. "\xb0\x03\x61\xa3\x96\x17\x7a\x9c"
  1712. "\xb4\x10\xff\x61\xf2\x00\x15\xad",
  1713. }, {
  1714. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  1715. .psize = 56,
  1716. .digest = "\x24\x8d\x6a\x61\xd2\x06\x38\xb8"
  1717. "\xe5\xc0\x26\x93\x0c\x3e\x60\x39"
  1718. "\xa3\x3c\xe4\x59\x64\xff\x21\x67"
  1719. "\xf6\xec\xed\xd4\x19\xdb\x06\xc1",
  1720. .np = 2,
  1721. .tap = { 28, 28 }
  1722. }, {
  1723. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
  1724. .psize = 64,
  1725. .digest = "\xb5\xfe\xad\x56\x7d\xff\xcb\xa4"
  1726. "\x2c\x32\x29\x32\x19\xbb\xfb\xfa"
  1727. "\xd6\xff\x94\xa3\x72\x91\x85\x66"
  1728. "\x3b\xa7\x87\x77\x58\xa3\x40\x3a",
  1729. }, {
  1730. .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
  1731. "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
  1732. "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
  1733. "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
  1734. "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
  1735. "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
  1736. "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
  1737. "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
  1738. "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
  1739. "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
  1740. "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
  1741. "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
  1742. "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
  1743. "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
  1744. "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
  1745. "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
  1746. "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
  1747. "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
  1748. "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
  1749. "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
  1750. "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
  1751. "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
  1752. "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
  1753. "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
  1754. "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
  1755. "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
  1756. "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
  1757. "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
  1758. "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
  1759. "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
  1760. "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
  1761. "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
  1762. "\x53\xea\x81\x18\x8c\x23\xba\x2e"
  1763. "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
  1764. "\x37\xce\x42\xd9\x70\x07\x7b\x12"
  1765. "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
  1766. "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
  1767. "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
  1768. "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
  1769. "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
  1770. "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
  1771. "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
  1772. "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
  1773. "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
  1774. "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
  1775. "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
  1776. "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
  1777. "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
  1778. "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
  1779. "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
  1780. "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
  1781. "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
  1782. "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
  1783. "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
  1784. "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
  1785. "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
  1786. "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
  1787. "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
  1788. "\x38\xcf\x43\xda\x71\x08\x7c\x13"
  1789. "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
  1790. "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
  1791. "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
  1792. "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
  1793. "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
  1794. "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
  1795. "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
  1796. "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
  1797. "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
  1798. "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
  1799. "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
  1800. "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
  1801. "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
  1802. "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
  1803. "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
  1804. "\xef\x63\xfa\x91\x05\x9c\x33\xca"
  1805. "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
  1806. "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
  1807. "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
  1808. "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
  1809. "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
  1810. "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
  1811. "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
  1812. "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
  1813. "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
  1814. "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
  1815. "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
  1816. "\xde\x75\x0c\x80\x17\xae\x22\xb9"
  1817. "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
  1818. "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
  1819. "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
  1820. "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
  1821. "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
  1822. "\x67\xfe\x72\x09\xa0\x14\xab\x42"
  1823. "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
  1824. "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
  1825. "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
  1826. "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
  1827. "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
  1828. "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
  1829. "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
  1830. "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
  1831. "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
  1832. "\x95\x09\xa0\x37\xce\x42\xd9\x70"
  1833. "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
  1834. "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
  1835. "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
  1836. "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
  1837. "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
  1838. "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
  1839. "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
  1840. "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
  1841. "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
  1842. "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
  1843. "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
  1844. "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
  1845. "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
  1846. "\x68\xff\x73\x0a\xa1\x15\xac\x43"
  1847. "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
  1848. "\x29\xc0\x57\xee\x62\xf9\x90\x04"
  1849. "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
  1850. "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
  1851. "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
  1852. "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
  1853. "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
  1854. "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
  1855. "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
  1856. "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
  1857. "\x08\x7c\x13\xaa\x1e\xb5\x4c",
  1858. .psize = 1023,
  1859. .digest = "\xc5\xce\x0c\xca\x01\x4f\x53\x3a"
  1860. "\x32\x32\x17\xcc\xd4\x6a\x71\xa9"
  1861. "\xf3\xed\x50\x10\x64\x8e\x06\xbe"
  1862. "\x9b\x4a\xa6\xbb\x05\x89\x59\x51",
  1863. }
  1864. };
  1865. /*
  1866. * SHA384 test vectors from from NIST and kerneli
  1867. */
  1868. #define SHA384_TEST_VECTORS 6
  1869. static struct hash_testvec sha384_tv_template[] = {
  1870. {
  1871. .plaintext = "",
  1872. .psize = 0,
  1873. .digest = "\x38\xb0\x60\xa7\x51\xac\x96\x38"
  1874. "\x4c\xd9\x32\x7e\xb1\xb1\xe3\x6a"
  1875. "\x21\xfd\xb7\x11\x14\xbe\x07\x43"
  1876. "\x4c\x0c\xc7\xbf\x63\xf6\xe1\xda"
  1877. "\x27\x4e\xde\xbf\xe7\x6f\x65\xfb"
  1878. "\xd5\x1a\xd2\xf1\x48\x98\xb9\x5b",
  1879. }, {
  1880. .plaintext= "abc",
  1881. .psize = 3,
  1882. .digest = "\xcb\x00\x75\x3f\x45\xa3\x5e\x8b"
  1883. "\xb5\xa0\x3d\x69\x9a\xc6\x50\x07"
  1884. "\x27\x2c\x32\xab\x0e\xde\xd1\x63"
  1885. "\x1a\x8b\x60\x5a\x43\xff\x5b\xed"
  1886. "\x80\x86\x07\x2b\xa1\xe7\xcc\x23"
  1887. "\x58\xba\xec\xa1\x34\xc8\x25\xa7",
  1888. }, {
  1889. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  1890. .psize = 56,
  1891. .digest = "\x33\x91\xfd\xdd\xfc\x8d\xc7\x39"
  1892. "\x37\x07\xa6\x5b\x1b\x47\x09\x39"
  1893. "\x7c\xf8\xb1\xd1\x62\xaf\x05\xab"
  1894. "\xfe\x8f\x45\x0d\xe5\xf3\x6b\xc6"
  1895. "\xb0\x45\x5a\x85\x20\xbc\x4e\x6f"
  1896. "\x5f\xe9\x5b\x1f\xe3\xc8\x45\x2b",
  1897. }, {
  1898. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
  1899. "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
  1900. .psize = 112,
  1901. .digest = "\x09\x33\x0c\x33\xf7\x11\x47\xe8"
  1902. "\x3d\x19\x2f\xc7\x82\xcd\x1b\x47"
  1903. "\x53\x11\x1b\x17\x3b\x3b\x05\xd2"
  1904. "\x2f\xa0\x80\x86\xe3\xb0\xf7\x12"
  1905. "\xfc\xc7\xc7\x1a\x55\x7e\x2d\xb9"
  1906. "\x66\xc3\xe9\xfa\x91\x74\x60\x39",
  1907. }, {
  1908. .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
  1909. "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
  1910. .psize = 104,
  1911. .digest = "\x3d\x20\x89\x73\xab\x35\x08\xdb"
  1912. "\xbd\x7e\x2c\x28\x62\xba\x29\x0a"
  1913. "\xd3\x01\x0e\x49\x78\xc1\x98\xdc"
  1914. "\x4d\x8f\xd0\x14\xe5\x82\x82\x3a"
  1915. "\x89\xe1\x6f\x9b\x2a\x7b\xbc\x1a"
  1916. "\xc9\x38\xe2\xd1\x99\xe8\xbe\xa4",
  1917. .np = 4,
  1918. .tap = { 26, 26, 26, 26 }
  1919. }, {
  1920. .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
  1921. "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
  1922. "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
  1923. "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
  1924. "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
  1925. "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
  1926. "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
  1927. "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
  1928. "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
  1929. "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
  1930. "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
  1931. "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
  1932. "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
  1933. "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
  1934. "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
  1935. "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
  1936. "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
  1937. "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
  1938. "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
  1939. "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
  1940. "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
  1941. "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
  1942. "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
  1943. "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
  1944. "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
  1945. "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
  1946. "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
  1947. "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
  1948. "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
  1949. "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
  1950. "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
  1951. "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
  1952. "\x53\xea\x81\x18\x8c\x23\xba\x2e"
  1953. "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
  1954. "\x37\xce\x42\xd9\x70\x07\x7b\x12"
  1955. "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
  1956. "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
  1957. "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
  1958. "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
  1959. "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
  1960. "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
  1961. "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
  1962. "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
  1963. "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
  1964. "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
  1965. "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
  1966. "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
  1967. "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
  1968. "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
  1969. "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
  1970. "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
  1971. "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
  1972. "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
  1973. "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
  1974. "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
  1975. "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
  1976. "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
  1977. "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
  1978. "\x38\xcf\x43\xda\x71\x08\x7c\x13"
  1979. "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
  1980. "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
  1981. "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
  1982. "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
  1983. "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
  1984. "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
  1985. "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
  1986. "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
  1987. "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
  1988. "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
  1989. "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
  1990. "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
  1991. "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
  1992. "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
  1993. "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
  1994. "\xef\x63\xfa\x91\x05\x9c\x33\xca"
  1995. "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
  1996. "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
  1997. "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
  1998. "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
  1999. "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
  2000. "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
  2001. "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
  2002. "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
  2003. "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
  2004. "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
  2005. "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
  2006. "\xde\x75\x0c\x80\x17\xae\x22\xb9"
  2007. "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
  2008. "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
  2009. "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
  2010. "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
  2011. "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
  2012. "\x67\xfe\x72\x09\xa0\x14\xab\x42"
  2013. "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
  2014. "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
  2015. "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
  2016. "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
  2017. "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
  2018. "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
  2019. "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
  2020. "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
  2021. "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
  2022. "\x95\x09\xa0\x37\xce\x42\xd9\x70"
  2023. "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
  2024. "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
  2025. "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
  2026. "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
  2027. "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
  2028. "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
  2029. "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
  2030. "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
  2031. "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
  2032. "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
  2033. "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
  2034. "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
  2035. "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
  2036. "\x68\xff\x73\x0a\xa1\x15\xac\x43"
  2037. "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
  2038. "\x29\xc0\x57\xee\x62\xf9\x90\x04"
  2039. "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
  2040. "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
  2041. "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
  2042. "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
  2043. "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
  2044. "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
  2045. "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
  2046. "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
  2047. "\x08\x7c\x13\xaa\x1e\xb5\x4c",
  2048. .psize = 1023,
  2049. .digest = "\x4d\x97\x23\xc8\xea\x7a\x7c\x15"
  2050. "\xb8\xff\x97\x9c\xf5\x13\x4f\x31"
  2051. "\xde\x67\xf7\x24\x73\xcd\x70\x1c"
  2052. "\x03\x4a\xba\x8a\x87\x49\xfe\xdc"
  2053. "\x75\x29\x62\x83\xae\x3f\x17\xab"
  2054. "\xfd\x10\x4d\x8e\x17\x1c\x1f\xca",
  2055. }
  2056. };
  2057. /*
  2058. * SHA512 test vectors from from NIST and kerneli
  2059. */
  2060. #define SHA512_TEST_VECTORS 6
  2061. static struct hash_testvec sha512_tv_template[] = {
  2062. {
  2063. .plaintext = "",
  2064. .psize = 0,
  2065. .digest = "\xcf\x83\xe1\x35\x7e\xef\xb8\xbd"
  2066. "\xf1\x54\x28\x50\xd6\x6d\x80\x07"
  2067. "\xd6\x20\xe4\x05\x0b\x57\x15\xdc"
  2068. "\x83\xf4\xa9\x21\xd3\x6c\xe9\xce"
  2069. "\x47\xd0\xd1\x3c\x5d\x85\xf2\xb0"
  2070. "\xff\x83\x18\xd2\x87\x7e\xec\x2f"
  2071. "\x63\xb9\x31\xbd\x47\x41\x7a\x81"
  2072. "\xa5\x38\x32\x7a\xf9\x27\xda\x3e",
  2073. }, {
  2074. .plaintext = "abc",
  2075. .psize = 3,
  2076. .digest = "\xdd\xaf\x35\xa1\x93\x61\x7a\xba"
  2077. "\xcc\x41\x73\x49\xae\x20\x41\x31"
  2078. "\x12\xe6\xfa\x4e\x89\xa9\x7e\xa2"
  2079. "\x0a\x9e\xee\xe6\x4b\x55\xd3\x9a"
  2080. "\x21\x92\x99\x2a\x27\x4f\xc1\xa8"
  2081. "\x36\xba\x3c\x23\xa3\xfe\xeb\xbd"
  2082. "\x45\x4d\x44\x23\x64\x3c\xe8\x0e"
  2083. "\x2a\x9a\xc9\x4f\xa5\x4c\xa4\x9f",
  2084. }, {
  2085. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  2086. .psize = 56,
  2087. .digest = "\x20\x4a\x8f\xc6\xdd\xa8\x2f\x0a"
  2088. "\x0c\xed\x7b\xeb\x8e\x08\xa4\x16"
  2089. "\x57\xc1\x6e\xf4\x68\xb2\x28\xa8"
  2090. "\x27\x9b\xe3\x31\xa7\x03\xc3\x35"
  2091. "\x96\xfd\x15\xc1\x3b\x1b\x07\xf9"
  2092. "\xaa\x1d\x3b\xea\x57\x78\x9c\xa0"
  2093. "\x31\xad\x85\xc7\xa7\x1d\xd7\x03"
  2094. "\x54\xec\x63\x12\x38\xca\x34\x45",
  2095. }, {
  2096. .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
  2097. "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
  2098. .psize = 112,
  2099. .digest = "\x8e\x95\x9b\x75\xda\xe3\x13\xda"
  2100. "\x8c\xf4\xf7\x28\x14\xfc\x14\x3f"
  2101. "\x8f\x77\x79\xc6\xeb\x9f\x7f\xa1"
  2102. "\x72\x99\xae\xad\xb6\x88\x90\x18"
  2103. "\x50\x1d\x28\x9e\x49\x00\xf7\xe4"
  2104. "\x33\x1b\x99\xde\xc4\xb5\x43\x3a"
  2105. "\xc7\xd3\x29\xee\xb6\xdd\x26\x54"
  2106. "\x5e\x96\xe5\x5b\x87\x4b\xe9\x09",
  2107. }, {
  2108. .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
  2109. "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
  2110. .psize = 104,
  2111. .digest = "\x93\x0d\x0c\xef\xcb\x30\xff\x11"
  2112. "\x33\xb6\x89\x81\x21\xf1\xcf\x3d"
  2113. "\x27\x57\x8a\xfc\xaf\xe8\x67\x7c"
  2114. "\x52\x57\xcf\x06\x99\x11\xf7\x5d"
  2115. "\x8f\x58\x31\xb5\x6e\xbf\xda\x67"
  2116. "\xb2\x78\xe6\x6d\xff\x8b\x84\xfe"
  2117. "\x2b\x28\x70\xf7\x42\xa5\x80\xd8"
  2118. "\xed\xb4\x19\x87\x23\x28\x50\xc9",
  2119. .np = 4,
  2120. .tap = { 26, 26, 26, 26 }
  2121. }, {
  2122. .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
  2123. "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
  2124. "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
  2125. "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
  2126. "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
  2127. "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
  2128. "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
  2129. "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
  2130. "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
  2131. "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
  2132. "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
  2133. "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
  2134. "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
  2135. "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
  2136. "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
  2137. "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
  2138. "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
  2139. "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
  2140. "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
  2141. "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
  2142. "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
  2143. "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
  2144. "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
  2145. "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
  2146. "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
  2147. "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
  2148. "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
  2149. "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
  2150. "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
  2151. "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
  2152. "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
  2153. "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
  2154. "\x53\xea\x81\x18\x8c\x23\xba\x2e"
  2155. "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
  2156. "\x37\xce\x42\xd9\x70\x07\x7b\x12"
  2157. "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
  2158. "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
  2159. "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
  2160. "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
  2161. "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
  2162. "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
  2163. "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
  2164. "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
  2165. "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
  2166. "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
  2167. "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
  2168. "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
  2169. "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
  2170. "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
  2171. "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
  2172. "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
  2173. "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
  2174. "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
  2175. "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
  2176. "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
  2177. "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
  2178. "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
  2179. "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
  2180. "\x38\xcf\x43\xda\x71\x08\x7c\x13"
  2181. "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
  2182. "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
  2183. "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
  2184. "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
  2185. "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
  2186. "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
  2187. "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
  2188. "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
  2189. "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
  2190. "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
  2191. "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
  2192. "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
  2193. "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
  2194. "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
  2195. "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
  2196. "\xef\x63\xfa\x91\x05\x9c\x33\xca"
  2197. "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
  2198. "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
  2199. "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
  2200. "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
  2201. "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
  2202. "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
  2203. "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
  2204. "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
  2205. "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
  2206. "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
  2207. "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
  2208. "\xde\x75\x0c\x80\x17\xae\x22\xb9"
  2209. "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
  2210. "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
  2211. "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
  2212. "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
  2213. "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
  2214. "\x67\xfe\x72\x09\xa0\x14\xab\x42"
  2215. "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
  2216. "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
  2217. "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
  2218. "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
  2219. "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
  2220. "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
  2221. "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
  2222. "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
  2223. "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
  2224. "\x95\x09\xa0\x37\xce\x42\xd9\x70"
  2225. "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
  2226. "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
  2227. "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
  2228. "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
  2229. "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
  2230. "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
  2231. "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
  2232. "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
  2233. "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
  2234. "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
  2235. "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
  2236. "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
  2237. "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
  2238. "\x68\xff\x73\x0a\xa1\x15\xac\x43"
  2239. "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
  2240. "\x29\xc0\x57\xee\x62\xf9\x90\x04"
  2241. "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
  2242. "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
  2243. "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
  2244. "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
  2245. "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
  2246. "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
  2247. "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
  2248. "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
  2249. "\x08\x7c\x13\xaa\x1e\xb5\x4c",
  2250. .psize = 1023,
  2251. .digest = "\x76\xc9\xd4\x91\x7a\x5f\x0f\xaa"
  2252. "\x13\x39\xf3\x01\x7a\xfa\xe5\x41"
  2253. "\x5f\x0b\xf8\xeb\x32\xfc\xbf\xb0"
  2254. "\xfa\x8c\xcd\x17\x83\xe2\xfa\xeb"
  2255. "\x1c\x19\xde\xe2\x75\xdc\x34\x64"
  2256. "\x5f\x35\x9c\x61\x2f\x10\xf9\xec"
  2257. "\x59\xca\x9d\xcc\x25\x0c\x43\xba"
  2258. "\x85\xa8\xf8\xfe\xb5\x24\xb2\xee",
  2259. }
  2260. };
  2261. /*
  2262. * WHIRLPOOL test vectors from Whirlpool package
  2263. * by Vincent Rijmen and Paulo S. L. M. Barreto as part of the NESSIE
  2264. * submission
  2265. */
  2266. #define WP512_TEST_VECTORS 8
  2267. static struct hash_testvec wp512_tv_template[] = {
  2268. {
  2269. .plaintext = "",
  2270. .psize = 0,
  2271. .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
  2272. "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
  2273. "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
  2274. "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
  2275. "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
  2276. "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57"
  2277. "\xEA\x89\x64\xE5\x9B\x63\xD9\x37"
  2278. "\x08\xB1\x38\xCC\x42\xA6\x6E\xB3",
  2279. }, {
  2280. .plaintext = "a",
  2281. .psize = 1,
  2282. .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
  2283. "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
  2284. "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
  2285. "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
  2286. "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
  2287. "\x3A\x42\x39\x1A\x39\x14\x5A\x59"
  2288. "\x1A\x92\x20\x0D\x56\x01\x95\xE5"
  2289. "\x3B\x47\x85\x84\xFD\xAE\x23\x1A",
  2290. }, {
  2291. .plaintext = "abc",
  2292. .psize = 3,
  2293. .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
  2294. "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
  2295. "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
  2296. "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
  2297. "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
  2298. "\x7D\x0E\x34\x95\x71\x14\xCB\xD6"
  2299. "\xC7\x97\xFC\x9D\x95\xD8\xB5\x82"
  2300. "\xD2\x25\x29\x20\x76\xD4\xEE\xF5",
  2301. }, {
  2302. .plaintext = "message digest",
  2303. .psize = 14,
  2304. .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
  2305. "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
  2306. "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
  2307. "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
  2308. "\x84\x21\x55\x76\x59\xEF\x55\xC1"
  2309. "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6"
  2310. "\x92\xED\x92\x00\x52\x83\x8F\x33"
  2311. "\x62\xE8\x6D\xBD\x37\xA8\x90\x3E",
  2312. }, {
  2313. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  2314. .psize = 26,
  2315. .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
  2316. "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
  2317. "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
  2318. "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
  2319. "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
  2320. "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6"
  2321. "\xF6\x8F\x67\x3E\x72\x07\x86\x5D"
  2322. "\x5D\x98\x19\xA3\xDB\xA4\xEB\x3B",
  2323. }, {
  2324. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  2325. "abcdefghijklmnopqrstuvwxyz0123456789",
  2326. .psize = 62,
  2327. .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
  2328. "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
  2329. "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
  2330. "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
  2331. "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
  2332. "\xB7\xCB\x57\x21\x1B\x92\x81\xA6"
  2333. "\x55\x17\xCC\x87\x9D\x7B\x96\x21"
  2334. "\x42\xC6\x5F\x5A\x7A\xF0\x14\x67",
  2335. }, {
  2336. .plaintext = "1234567890123456789012345678901234567890"
  2337. "1234567890123456789012345678901234567890",
  2338. .psize = 80,
  2339. .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
  2340. "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
  2341. "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
  2342. "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
  2343. "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
  2344. "\x38\xCD\x04\x7B\x26\x81\xA5\x1A"
  2345. "\x2C\x60\x48\x1E\x88\xC5\xA2\x0B"
  2346. "\x2C\x2A\x80\xCF\x3A\x9A\x08\x3B",
  2347. }, {
  2348. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  2349. .psize = 32,
  2350. .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
  2351. "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
  2352. "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
  2353. "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
  2354. "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
  2355. "\x7B\x94\x76\x39\xFE\x05\x0B\x56"
  2356. "\x93\x9B\xAA\xA0\xAD\xFF\x9A\xE6"
  2357. "\x74\x5B\x7B\x18\x1C\x3B\xE3\xFD",
  2358. },
  2359. };
  2360. #define WP384_TEST_VECTORS 8
  2361. static struct hash_testvec wp384_tv_template[] = {
  2362. {
  2363. .plaintext = "",
  2364. .psize = 0,
  2365. .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
  2366. "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
  2367. "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
  2368. "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
  2369. "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
  2370. "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57",
  2371. }, {
  2372. .plaintext = "a",
  2373. .psize = 1,
  2374. .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
  2375. "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
  2376. "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
  2377. "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
  2378. "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
  2379. "\x3A\x42\x39\x1A\x39\x14\x5A\x59",
  2380. }, {
  2381. .plaintext = "abc",
  2382. .psize = 3,
  2383. .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
  2384. "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
  2385. "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
  2386. "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
  2387. "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
  2388. "\x7D\x0E\x34\x95\x71\x14\xCB\xD6",
  2389. }, {
  2390. .plaintext = "message digest",
  2391. .psize = 14,
  2392. .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
  2393. "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
  2394. "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
  2395. "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
  2396. "\x84\x21\x55\x76\x59\xEF\x55\xC1"
  2397. "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6",
  2398. }, {
  2399. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  2400. .psize = 26,
  2401. .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
  2402. "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
  2403. "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
  2404. "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
  2405. "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
  2406. "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6",
  2407. }, {
  2408. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  2409. "abcdefghijklmnopqrstuvwxyz0123456789",
  2410. .psize = 62,
  2411. .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
  2412. "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
  2413. "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
  2414. "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
  2415. "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
  2416. "\xB7\xCB\x57\x21\x1B\x92\x81\xA6",
  2417. }, {
  2418. .plaintext = "1234567890123456789012345678901234567890"
  2419. "1234567890123456789012345678901234567890",
  2420. .psize = 80,
  2421. .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
  2422. "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
  2423. "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
  2424. "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
  2425. "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
  2426. "\x38\xCD\x04\x7B\x26\x81\xA5\x1A",
  2427. }, {
  2428. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  2429. .psize = 32,
  2430. .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
  2431. "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
  2432. "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
  2433. "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
  2434. "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
  2435. "\x7B\x94\x76\x39\xFE\x05\x0B\x56",
  2436. },
  2437. };
  2438. #define WP256_TEST_VECTORS 8
  2439. static struct hash_testvec wp256_tv_template[] = {
  2440. {
  2441. .plaintext = "",
  2442. .psize = 0,
  2443. .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
  2444. "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
  2445. "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
  2446. "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7",
  2447. }, {
  2448. .plaintext = "a",
  2449. .psize = 1,
  2450. .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
  2451. "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
  2452. "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
  2453. "\x73\xC4\x50\x01\xD0\x08\x7B\x42",
  2454. }, {
  2455. .plaintext = "abc",
  2456. .psize = 3,
  2457. .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
  2458. "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
  2459. "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
  2460. "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C",
  2461. }, {
  2462. .plaintext = "message digest",
  2463. .psize = 14,
  2464. .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
  2465. "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
  2466. "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
  2467. "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B",
  2468. }, {
  2469. .plaintext = "abcdefghijklmnopqrstuvwxyz",
  2470. .psize = 26,
  2471. .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
  2472. "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
  2473. "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
  2474. "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B",
  2475. }, {
  2476. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  2477. "abcdefghijklmnopqrstuvwxyz0123456789",
  2478. .psize = 62,
  2479. .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
  2480. "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
  2481. "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
  2482. "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E",
  2483. }, {
  2484. .plaintext = "1234567890123456789012345678901234567890"
  2485. "1234567890123456789012345678901234567890",
  2486. .psize = 80,
  2487. .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
  2488. "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
  2489. "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
  2490. "\x54\x9C\x4A\xFA\xDB\x60\x14\x29",
  2491. }, {
  2492. .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
  2493. .psize = 32,
  2494. .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
  2495. "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
  2496. "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
  2497. "\x07\xC5\x62\xF9\x88\xE9\x5C\x69",
  2498. },
  2499. };
  2500. /*
  2501. * TIGER test vectors from Tiger website
  2502. */
  2503. #define TGR192_TEST_VECTORS 6
  2504. static struct hash_testvec tgr192_tv_template[] = {
  2505. {
  2506. .plaintext = "",
  2507. .psize = 0,
  2508. .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
  2509. "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
  2510. "\xf3\x73\xde\x2d\x49\x58\x4e\x7a",
  2511. }, {
  2512. .plaintext = "abc",
  2513. .psize = 3,
  2514. .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
  2515. "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
  2516. "\x93\x5f\x7b\x95\x1c\x13\x29\x51",
  2517. }, {
  2518. .plaintext = "Tiger",
  2519. .psize = 5,
  2520. .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
  2521. "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
  2522. "\x37\x79\x0c\x11\x6f\x9d\x2b\xdf",
  2523. }, {
  2524. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
  2525. .psize = 64,
  2526. .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
  2527. "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
  2528. "\xb5\x86\x44\x50\x34\xa5\xa3\x86",
  2529. }, {
  2530. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
  2531. .psize = 64,
  2532. .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
  2533. "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
  2534. "\x57\x89\x65\x65\x97\x5f\x91\x97",
  2535. }, {
  2536. .plaintext = "Tiger - A Fast New Hash Function, "
  2537. "by Ross Anderson and Eli Biham, "
  2538. "proceedings of Fast Software Encryption 3, "
  2539. "Cambridge, 1996.",
  2540. .psize = 125,
  2541. .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
  2542. "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
  2543. "\xdd\x68\x15\x1d\x50\x39\x74\xfc",
  2544. },
  2545. };
  2546. #define TGR160_TEST_VECTORS 6
  2547. static struct hash_testvec tgr160_tv_template[] = {
  2548. {
  2549. .plaintext = "",
  2550. .psize = 0,
  2551. .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
  2552. "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
  2553. "\xf3\x73\xde\x2d",
  2554. }, {
  2555. .plaintext = "abc",
  2556. .psize = 3,
  2557. .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
  2558. "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
  2559. "\x93\x5f\x7b\x95",
  2560. }, {
  2561. .plaintext = "Tiger",
  2562. .psize = 5,
  2563. .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
  2564. "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
  2565. "\x37\x79\x0c\x11",
  2566. }, {
  2567. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
  2568. .psize = 64,
  2569. .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
  2570. "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
  2571. "\xb5\x86\x44\x50",
  2572. }, {
  2573. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
  2574. .psize = 64,
  2575. .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
  2576. "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
  2577. "\x57\x89\x65\x65",
  2578. }, {
  2579. .plaintext = "Tiger - A Fast New Hash Function, "
  2580. "by Ross Anderson and Eli Biham, "
  2581. "proceedings of Fast Software Encryption 3, "
  2582. "Cambridge, 1996.",
  2583. .psize = 125,
  2584. .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
  2585. "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
  2586. "\xdd\x68\x15\x1d",
  2587. },
  2588. };
  2589. #define TGR128_TEST_VECTORS 6
  2590. static struct hash_testvec tgr128_tv_template[] = {
  2591. {
  2592. .plaintext = "",
  2593. .psize = 0,
  2594. .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
  2595. "\x16\x16\x6e\x76\xb1\xbb\x92\x5f",
  2596. }, {
  2597. .plaintext = "abc",
  2598. .psize = 3,
  2599. .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
  2600. "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf",
  2601. }, {
  2602. .plaintext = "Tiger",
  2603. .psize = 5,
  2604. .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
  2605. "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec",
  2606. }, {
  2607. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
  2608. .psize = 64,
  2609. .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
  2610. "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e",
  2611. }, {
  2612. .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
  2613. .psize = 64,
  2614. .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
  2615. "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9",
  2616. }, {
  2617. .plaintext = "Tiger - A Fast New Hash Function, "
  2618. "by Ross Anderson and Eli Biham, "
  2619. "proceedings of Fast Software Encryption 3, "
  2620. "Cambridge, 1996.",
  2621. .psize = 125,
  2622. .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
  2623. "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24",
  2624. },
  2625. };
  2626. #define GHASH_TEST_VECTORS 6
  2627. static struct hash_testvec ghash_tv_template[] =
  2628. {
  2629. {
  2630. .key = "\xdf\xa6\xbf\x4d\xed\x81\xdb\x03"
  2631. "\xff\xca\xff\x95\xf8\x30\xf0\x61",
  2632. .ksize = 16,
  2633. .plaintext = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0"
  2634. "\xb3\x2b\x66\x56\xa0\x5b\x40\xb6",
  2635. .psize = 16,
  2636. .digest = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6"
  2637. "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60",
  2638. }, {
  2639. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  2640. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  2641. .ksize = 16,
  2642. .plaintext = "what do ya want for nothing?",
  2643. .psize = 28,
  2644. .digest = "\x3e\x1f\x5c\x4d\x65\xf0\xef\xce"
  2645. "\x0d\x61\x06\x27\x66\x51\xd5\xe2",
  2646. .np = 2,
  2647. .tap = {14, 14}
  2648. }, {
  2649. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2650. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  2651. .ksize = 16,
  2652. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  2653. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  2654. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  2655. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  2656. .psize = 50,
  2657. .digest = "\xfb\x49\x8a\x36\xe1\x96\xe1\x96"
  2658. "\xe1\x96\xe1\x96\xe1\x96\xe1\x96",
  2659. }, {
  2660. .key = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6"
  2661. "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60",
  2662. .ksize = 16,
  2663. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  2664. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  2665. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  2666. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  2667. .psize = 50,
  2668. .digest = "\x2b\x5c\x0c\x7f\x52\xd1\x60\xc2"
  2669. "\x49\xed\x6e\x32\x7a\xa9\xbe\x08",
  2670. }, {
  2671. .key = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0"
  2672. "\xb3\x2b\x66\x56\xa0\x5b\x40\xb6",
  2673. .ksize = 16,
  2674. .plaintext = "Test With Truncation",
  2675. .psize = 20,
  2676. .digest = "\xf8\x94\x87\x2a\x4b\x63\x99\x28"
  2677. "\x23\xf7\x93\xf7\x19\xf5\x96\xd9",
  2678. }, {
  2679. .key = "\x0a\x1b\x2c\x3d\x4e\x5f\x64\x71"
  2680. "\x82\x93\xa4\xb5\xc6\xd7\xe8\xf9",
  2681. .ksize = 16,
  2682. .plaintext = "\x56\x6f\x72\x20\x6c\x61\x75\x74"
  2683. "\x65\x72\x20\x4c\x61\x75\x73\x63"
  2684. "\x68\x65\x6e\x20\x75\x6e\x64\x20"
  2685. "\x53\x74\x61\x75\x6e\x65\x6e\x20"
  2686. "\x73\x65\x69\x20\x73\x74\x69\x6c"
  2687. "\x6c\x2c\x0a\x64\x75\x20\x6d\x65"
  2688. "\x69\x6e\x20\x74\x69\x65\x66\x74"
  2689. "\x69\x65\x66\x65\x73\x20\x4c\x65"
  2690. "\x62\x65\x6e\x3b\x0a\x64\x61\x73"
  2691. "\x73\x20\x64\x75\x20\x77\x65\x69"
  2692. "\xc3\x9f\x74\x20\x77\x61\x73\x20"
  2693. "\x64\x65\x72\x20\x57\x69\x6e\x64"
  2694. "\x20\x64\x69\x72\x20\x77\x69\x6c"
  2695. "\x6c\x2c\x0a\x65\x68\x20\x6e\x6f"
  2696. "\x63\x68\x20\x64\x69\x65\x20\x42"
  2697. "\x69\x72\x6b\x65\x6e\x20\x62\x65"
  2698. "\x62\x65\x6e\x2e\x0a\x0a\x55\x6e"
  2699. "\x64\x20\x77\x65\x6e\x6e\x20\x64"
  2700. "\x69\x72\x20\x65\x69\x6e\x6d\x61"
  2701. "\x6c\x20\x64\x61\x73\x20\x53\x63"
  2702. "\x68\x77\x65\x69\x67\x65\x6e\x20"
  2703. "\x73\x70\x72\x61\x63\x68\x2c\x0a"
  2704. "\x6c\x61\x73\x73\x20\x64\x65\x69"
  2705. "\x6e\x65\x20\x53\x69\x6e\x6e\x65"
  2706. "\x20\x62\x65\x73\x69\x65\x67\x65"
  2707. "\x6e\x2e\x0a\x4a\x65\x64\x65\x6d"
  2708. "\x20\x48\x61\x75\x63\x68\x65\x20"
  2709. "\x67\x69\x62\x74\x20\x64\x69\x63"
  2710. "\x68\x2c\x20\x67\x69\x62\x20\x6e"
  2711. "\x61\x63\x68\x2c\x0a\x65\x72\x20"
  2712. "\x77\x69\x72\x64\x20\x64\x69\x63"
  2713. "\x68\x20\x6c\x69\x65\x62\x65\x6e"
  2714. "\x20\x75\x6e\x64\x20\x77\x69\x65"
  2715. "\x67\x65\x6e\x2e\x0a\x0a\x55\x6e"
  2716. "\x64\x20\x64\x61\x6e\x6e\x20\x6d"
  2717. "\x65\x69\x6e\x65\x20\x53\x65\x65"
  2718. "\x6c\x65\x20\x73\x65\x69\x74\x20"
  2719. "\x77\x65\x69\x74\x2c\x20\x73\x65"
  2720. "\x69\x20\x77\x65\x69\x74\x2c\x0a"
  2721. "\x64\x61\x73\x73\x20\x64\x69\x72"
  2722. "\x20\x64\x61\x73\x20\x4c\x65\x62"
  2723. "\x65\x6e\x20\x67\x65\x6c\x69\x6e"
  2724. "\x67\x65\x2c\x0a\x62\x72\x65\x69"
  2725. "\x74\x65\x20\x64\x69\x63\x68\x20"
  2726. "\x77\x69\x65\x20\x65\x69\x6e\x20"
  2727. "\x46\x65\x69\x65\x72\x6b\x6c\x65"
  2728. "\x69\x64\x0a\xc3\xbc\x62\x65\x72"
  2729. "\x20\x64\x69\x65\x20\x73\x69\x6e"
  2730. "\x6e\x65\x6e\x64\x65\x6e\x20\x44"
  2731. "\x69\x6e\x67\x65\x2e\x2e\x2e\x0a",
  2732. .psize = 400,
  2733. .digest = "\xad\xb1\xc1\xe9\x56\x70\x31\x1d"
  2734. "\xbb\x5b\xdf\x5e\x70\x72\x1a\x57",
  2735. },
  2736. };
  2737. /*
  2738. * HMAC-MD5 test vectors from RFC2202
  2739. * (These need to be fixed to not use strlen).
  2740. */
  2741. #define HMAC_MD5_TEST_VECTORS 7
  2742. static struct hash_testvec hmac_md5_tv_template[] =
  2743. {
  2744. {
  2745. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  2746. .ksize = 16,
  2747. .plaintext = "Hi There",
  2748. .psize = 8,
  2749. .digest = "\x92\x94\x72\x7a\x36\x38\xbb\x1c"
  2750. "\x13\xf4\x8e\xf8\x15\x8b\xfc\x9d",
  2751. }, {
  2752. .key = "Jefe",
  2753. .ksize = 4,
  2754. .plaintext = "what do ya want for nothing?",
  2755. .psize = 28,
  2756. .digest = "\x75\x0c\x78\x3e\x6a\xb0\xb5\x03"
  2757. "\xea\xa8\x6e\x31\x0a\x5d\xb7\x38",
  2758. .np = 2,
  2759. .tap = {14, 14}
  2760. }, {
  2761. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  2762. .ksize = 16,
  2763. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  2764. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  2765. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  2766. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  2767. .psize = 50,
  2768. .digest = "\x56\xbe\x34\x52\x1d\x14\x4c\x88"
  2769. "\xdb\xb8\xc7\x33\xf0\xe8\xb3\xf6",
  2770. }, {
  2771. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  2772. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  2773. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  2774. .ksize = 25,
  2775. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  2776. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  2777. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  2778. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  2779. .psize = 50,
  2780. .digest = "\x69\x7e\xaf\x0a\xca\x3a\x3a\xea"
  2781. "\x3a\x75\x16\x47\x46\xff\xaa\x79",
  2782. }, {
  2783. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  2784. .ksize = 16,
  2785. .plaintext = "Test With Truncation",
  2786. .psize = 20,
  2787. .digest = "\x56\x46\x1e\xf2\x34\x2e\xdc\x00"
  2788. "\xf9\xba\xb9\x95\x69\x0e\xfd\x4c",
  2789. }, {
  2790. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2791. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2792. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2793. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2794. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2795. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2796. "\xaa\xaa",
  2797. .ksize = 80,
  2798. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  2799. .psize = 54,
  2800. .digest = "\x6b\x1a\xb7\xfe\x4b\xd7\xbf\x8f"
  2801. "\x0b\x62\xe6\xce\x61\xb9\xd0\xcd",
  2802. }, {
  2803. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2804. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2805. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2806. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2807. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2808. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2809. "\xaa\xaa",
  2810. .ksize = 80,
  2811. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  2812. "Block-Size Data",
  2813. .psize = 73,
  2814. .digest = "\x6f\x63\x0f\xad\x67\xcd\xa0\xee"
  2815. "\x1f\xb1\xf5\x62\xdb\x3a\xa5\x3e",
  2816. },
  2817. };
  2818. /*
  2819. * HMAC-RIPEMD128 test vectors from RFC2286
  2820. */
  2821. #define HMAC_RMD128_TEST_VECTORS 7
  2822. static struct hash_testvec hmac_rmd128_tv_template[] = {
  2823. {
  2824. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  2825. .ksize = 16,
  2826. .plaintext = "Hi There",
  2827. .psize = 8,
  2828. .digest = "\xfb\xf6\x1f\x94\x92\xaa\x4b\xbf"
  2829. "\x81\xc1\x72\xe8\x4e\x07\x34\xdb",
  2830. }, {
  2831. .key = "Jefe",
  2832. .ksize = 4,
  2833. .plaintext = "what do ya want for nothing?",
  2834. .psize = 28,
  2835. .digest = "\x87\x5f\x82\x88\x62\xb6\xb3\x34"
  2836. "\xb4\x27\xc5\x5f\x9f\x7f\xf0\x9b",
  2837. .np = 2,
  2838. .tap = { 14, 14 },
  2839. }, {
  2840. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  2841. .ksize = 16,
  2842. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  2843. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  2844. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  2845. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  2846. .psize = 50,
  2847. .digest = "\x09\xf0\xb2\x84\x6d\x2f\x54\x3d"
  2848. "\xa3\x63\xcb\xec\x8d\x62\xa3\x8d",
  2849. }, {
  2850. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  2851. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  2852. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  2853. .ksize = 25,
  2854. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  2855. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  2856. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  2857. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  2858. .psize = 50,
  2859. .digest = "\xbd\xbb\xd7\xcf\x03\xe4\x4b\x5a"
  2860. "\xa6\x0a\xf8\x15\xbe\x4d\x22\x94",
  2861. }, {
  2862. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  2863. .ksize = 16,
  2864. .plaintext = "Test With Truncation",
  2865. .psize = 20,
  2866. .digest = "\xe7\x98\x08\xf2\x4b\x25\xfd\x03"
  2867. "\x1c\x15\x5f\x0d\x55\x1d\x9a\x3a",
  2868. }, {
  2869. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2870. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2871. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2872. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2873. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2874. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2875. "\xaa\xaa",
  2876. .ksize = 80,
  2877. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  2878. .psize = 54,
  2879. .digest = "\xdc\x73\x29\x28\xde\x98\x10\x4a"
  2880. "\x1f\x59\xd3\x73\xc1\x50\xac\xbb",
  2881. }, {
  2882. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2883. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2884. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2885. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2886. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2887. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2888. "\xaa\xaa",
  2889. .ksize = 80,
  2890. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  2891. "Block-Size Data",
  2892. .psize = 73,
  2893. .digest = "\x5c\x6b\xec\x96\x79\x3e\x16\xd4"
  2894. "\x06\x90\xc2\x37\x63\x5f\x30\xc5",
  2895. },
  2896. };
  2897. /*
  2898. * HMAC-RIPEMD160 test vectors from RFC2286
  2899. */
  2900. #define HMAC_RMD160_TEST_VECTORS 7
  2901. static struct hash_testvec hmac_rmd160_tv_template[] = {
  2902. {
  2903. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  2904. .ksize = 20,
  2905. .plaintext = "Hi There",
  2906. .psize = 8,
  2907. .digest = "\x24\xcb\x4b\xd6\x7d\x20\xfc\x1a\x5d\x2e"
  2908. "\xd7\x73\x2d\xcc\x39\x37\x7f\x0a\x56\x68",
  2909. }, {
  2910. .key = "Jefe",
  2911. .ksize = 4,
  2912. .plaintext = "what do ya want for nothing?",
  2913. .psize = 28,
  2914. .digest = "\xdd\xa6\xc0\x21\x3a\x48\x5a\x9e\x24\xf4"
  2915. "\x74\x20\x64\xa7\xf0\x33\xb4\x3c\x40\x69",
  2916. .np = 2,
  2917. .tap = { 14, 14 },
  2918. }, {
  2919. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  2920. .ksize = 20,
  2921. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  2922. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  2923. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  2924. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  2925. .psize = 50,
  2926. .digest = "\xb0\xb1\x05\x36\x0d\xe7\x59\x96\x0a\xb4"
  2927. "\xf3\x52\x98\xe1\x16\xe2\x95\xd8\xe7\xc1",
  2928. }, {
  2929. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  2930. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  2931. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  2932. .ksize = 25,
  2933. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  2934. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  2935. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  2936. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  2937. .psize = 50,
  2938. .digest = "\xd5\xca\x86\x2f\x4d\x21\xd5\xe6\x10\xe1"
  2939. "\x8b\x4c\xf1\xbe\xb9\x7a\x43\x65\xec\xf4",
  2940. }, {
  2941. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  2942. .ksize = 20,
  2943. .plaintext = "Test With Truncation",
  2944. .psize = 20,
  2945. .digest = "\x76\x19\x69\x39\x78\xf9\x1d\x90\x53\x9a"
  2946. "\xe7\x86\x50\x0f\xf3\xd8\xe0\x51\x8e\x39",
  2947. }, {
  2948. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2949. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2950. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2951. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2952. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2953. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2954. "\xaa\xaa",
  2955. .ksize = 80,
  2956. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  2957. .psize = 54,
  2958. .digest = "\x64\x66\xca\x07\xac\x5e\xac\x29\xe1\xbd"
  2959. "\x52\x3e\x5a\xda\x76\x05\xb7\x91\xfd\x8b",
  2960. }, {
  2961. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2962. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2963. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2964. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2965. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2966. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  2967. "\xaa\xaa",
  2968. .ksize = 80,
  2969. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  2970. "Block-Size Data",
  2971. .psize = 73,
  2972. .digest = "\x69\xea\x60\x79\x8d\x71\x61\x6c\xce\x5f"
  2973. "\xd0\x87\x1e\x23\x75\x4c\xd7\x5d\x5a\x0a",
  2974. },
  2975. };
  2976. /*
  2977. * HMAC-SHA1 test vectors from RFC2202
  2978. */
  2979. #define HMAC_SHA1_TEST_VECTORS 7
  2980. static struct hash_testvec hmac_sha1_tv_template[] = {
  2981. {
  2982. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
  2983. .ksize = 20,
  2984. .plaintext = "Hi There",
  2985. .psize = 8,
  2986. .digest = "\xb6\x17\x31\x86\x55\x05\x72\x64"
  2987. "\xe2\x8b\xc0\xb6\xfb\x37\x8c\x8e\xf1"
  2988. "\x46\xbe",
  2989. }, {
  2990. .key = "Jefe",
  2991. .ksize = 4,
  2992. .plaintext = "what do ya want for nothing?",
  2993. .psize = 28,
  2994. .digest = "\xef\xfc\xdf\x6a\xe5\xeb\x2f\xa2\xd2\x74"
  2995. "\x16\xd5\xf1\x84\xdf\x9c\x25\x9a\x7c\x79",
  2996. .np = 2,
  2997. .tap = { 14, 14 }
  2998. }, {
  2999. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  3000. .ksize = 20,
  3001. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  3002. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  3003. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  3004. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  3005. .psize = 50,
  3006. .digest = "\x12\x5d\x73\x42\xb9\xac\x11\xcd\x91\xa3"
  3007. "\x9a\xf4\x8a\xa1\x7b\x4f\x63\xf1\x75\xd3",
  3008. }, {
  3009. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  3010. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  3011. "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
  3012. .ksize = 25,
  3013. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  3014. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  3015. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  3016. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  3017. .psize = 50,
  3018. .digest = "\x4c\x90\x07\xf4\x02\x62\x50\xc6\xbc\x84"
  3019. "\x14\xf9\xbf\x50\xc8\x6c\x2d\x72\x35\xda",
  3020. }, {
  3021. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
  3022. .ksize = 20,
  3023. .plaintext = "Test With Truncation",
  3024. .psize = 20,
  3025. .digest = "\x4c\x1a\x03\x42\x4b\x55\xe0\x7f\xe7\xf2"
  3026. "\x7b\xe1\xd5\x8b\xb9\x32\x4a\x9a\x5a\x04",
  3027. }, {
  3028. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3029. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3030. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3031. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3032. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3033. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3034. "\xaa\xaa",
  3035. .ksize = 80,
  3036. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  3037. .psize = 54,
  3038. .digest = "\xaa\x4a\xe5\xe1\x52\x72\xd0\x0e\x95\x70"
  3039. "\x56\x37\xce\x8a\x3b\x55\xed\x40\x21\x12",
  3040. }, {
  3041. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3042. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3043. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3044. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3045. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3046. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3047. "\xaa\xaa",
  3048. .ksize = 80,
  3049. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
  3050. "Block-Size Data",
  3051. .psize = 73,
  3052. .digest = "\xe8\xe9\x9d\x0f\x45\x23\x7d\x78\x6d\x6b"
  3053. "\xba\xa7\x96\x5c\x78\x08\xbb\xff\x1a\x91",
  3054. },
  3055. };
  3056. /*
  3057. * SHA224 HMAC test vectors from RFC4231
  3058. */
  3059. #define HMAC_SHA224_TEST_VECTORS 4
  3060. static struct hash_testvec hmac_sha224_tv_template[] = {
  3061. {
  3062. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  3063. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  3064. "\x0b\x0b\x0b\x0b",
  3065. .ksize = 20,
  3066. /* ("Hi There") */
  3067. .plaintext = "\x48\x69\x20\x54\x68\x65\x72\x65",
  3068. .psize = 8,
  3069. .digest = "\x89\x6f\xb1\x12\x8a\xbb\xdf\x19"
  3070. "\x68\x32\x10\x7c\xd4\x9d\xf3\x3f"
  3071. "\x47\xb4\xb1\x16\x99\x12\xba\x4f"
  3072. "\x53\x68\x4b\x22",
  3073. }, {
  3074. .key = "Jefe",
  3075. .ksize = 4,
  3076. /* ("what do ya want for nothing?") */
  3077. .plaintext = "\x77\x68\x61\x74\x20\x64\x6f\x20"
  3078. "\x79\x61\x20\x77\x61\x6e\x74\x20"
  3079. "\x66\x6f\x72\x20\x6e\x6f\x74\x68"
  3080. "\x69\x6e\x67\x3f",
  3081. .psize = 28,
  3082. .digest = "\xa3\x0e\x01\x09\x8b\xc6\xdb\xbf"
  3083. "\x45\x69\x0f\x3a\x7e\x9e\x6d\x0f"
  3084. "\x8b\xbe\xa2\xa3\x9e\x61\x48\x00"
  3085. "\x8f\xd0\x5e\x44",
  3086. .np = 4,
  3087. .tap = { 7, 7, 7, 7 }
  3088. }, {
  3089. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3090. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3091. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3092. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3093. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3094. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3095. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3096. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3097. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3098. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3099. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3100. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3101. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3102. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3103. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3104. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3105. "\xaa\xaa\xaa",
  3106. .ksize = 131,
  3107. /* ("Test Using Larger Than Block-Size Key - Hash Key First") */
  3108. .plaintext = "\x54\x65\x73\x74\x20\x55\x73\x69"
  3109. "\x6e\x67\x20\x4c\x61\x72\x67\x65"
  3110. "\x72\x20\x54\x68\x61\x6e\x20\x42"
  3111. "\x6c\x6f\x63\x6b\x2d\x53\x69\x7a"
  3112. "\x65\x20\x4b\x65\x79\x20\x2d\x20"
  3113. "\x48\x61\x73\x68\x20\x4b\x65\x79"
  3114. "\x20\x46\x69\x72\x73\x74",
  3115. .psize = 54,
  3116. .digest = "\x95\xe9\xa0\xdb\x96\x20\x95\xad"
  3117. "\xae\xbe\x9b\x2d\x6f\x0d\xbc\xe2"
  3118. "\xd4\x99\xf1\x12\xf2\xd2\xb7\x27"
  3119. "\x3f\xa6\x87\x0e",
  3120. }, {
  3121. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3122. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3123. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3124. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3125. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3126. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3127. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3128. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3129. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3130. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3131. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3132. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3133. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3134. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3135. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3136. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3137. "\xaa\xaa\xaa",
  3138. .ksize = 131,
  3139. /* ("This is a test using a larger than block-size key and a")
  3140. (" larger than block-size data. The key needs to be")
  3141. (" hashed before being used by the HMAC algorithm.") */
  3142. .plaintext = "\x54\x68\x69\x73\x20\x69\x73\x20"
  3143. "\x61\x20\x74\x65\x73\x74\x20\x75"
  3144. "\x73\x69\x6e\x67\x20\x61\x20\x6c"
  3145. "\x61\x72\x67\x65\x72\x20\x74\x68"
  3146. "\x61\x6e\x20\x62\x6c\x6f\x63\x6b"
  3147. "\x2d\x73\x69\x7a\x65\x20\x6b\x65"
  3148. "\x79\x20\x61\x6e\x64\x20\x61\x20"
  3149. "\x6c\x61\x72\x67\x65\x72\x20\x74"
  3150. "\x68\x61\x6e\x20\x62\x6c\x6f\x63"
  3151. "\x6b\x2d\x73\x69\x7a\x65\x20\x64"
  3152. "\x61\x74\x61\x2e\x20\x54\x68\x65"
  3153. "\x20\x6b\x65\x79\x20\x6e\x65\x65"
  3154. "\x64\x73\x20\x74\x6f\x20\x62\x65"
  3155. "\x20\x68\x61\x73\x68\x65\x64\x20"
  3156. "\x62\x65\x66\x6f\x72\x65\x20\x62"
  3157. "\x65\x69\x6e\x67\x20\x75\x73\x65"
  3158. "\x64\x20\x62\x79\x20\x74\x68\x65"
  3159. "\x20\x48\x4d\x41\x43\x20\x61\x6c"
  3160. "\x67\x6f\x72\x69\x74\x68\x6d\x2e",
  3161. .psize = 152,
  3162. .digest = "\x3a\x85\x41\x66\xac\x5d\x9f\x02"
  3163. "\x3f\x54\xd5\x17\xd0\xb3\x9d\xbd"
  3164. "\x94\x67\x70\xdb\x9c\x2b\x95\xc9"
  3165. "\xf6\xf5\x65\xd1",
  3166. },
  3167. };
  3168. /*
  3169. * HMAC-SHA256 test vectors from
  3170. * draft-ietf-ipsec-ciph-sha-256-01.txt
  3171. */
  3172. #define HMAC_SHA256_TEST_VECTORS 10
  3173. static struct hash_testvec hmac_sha256_tv_template[] = {
  3174. {
  3175. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  3176. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  3177. "\x11\x12\x13\x14\x15\x16\x17\x18"
  3178. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
  3179. .ksize = 32,
  3180. .plaintext = "abc",
  3181. .psize = 3,
  3182. .digest = "\xa2\x1b\x1f\x5d\x4c\xf4\xf7\x3a"
  3183. "\x4d\xd9\x39\x75\x0f\x7a\x06\x6a"
  3184. "\x7f\x98\xcc\x13\x1c\xb1\x6a\x66"
  3185. "\x92\x75\x90\x21\xcf\xab\x81\x81",
  3186. }, {
  3187. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  3188. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  3189. "\x11\x12\x13\x14\x15\x16\x17\x18"
  3190. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
  3191. .ksize = 32,
  3192. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  3193. .psize = 56,
  3194. .digest = "\x10\x4f\xdc\x12\x57\x32\x8f\x08"
  3195. "\x18\x4b\xa7\x31\x31\xc5\x3c\xae"
  3196. "\xe6\x98\xe3\x61\x19\x42\x11\x49"
  3197. "\xea\x8c\x71\x24\x56\x69\x7d\x30",
  3198. }, {
  3199. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  3200. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  3201. "\x11\x12\x13\x14\x15\x16\x17\x18"
  3202. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
  3203. .ksize = 32,
  3204. .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
  3205. "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
  3206. .psize = 112,
  3207. .digest = "\x47\x03\x05\xfc\x7e\x40\xfe\x34"
  3208. "\xd3\xee\xb3\xe7\x73\xd9\x5a\xab"
  3209. "\x73\xac\xf0\xfd\x06\x04\x47\xa5"
  3210. "\xeb\x45\x95\xbf\x33\xa9\xd1\xa3",
  3211. }, {
  3212. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  3213. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  3214. "\x0b\x0b\x0b\x0b\x0b\x0b",
  3215. .ksize = 32,
  3216. .plaintext = "Hi There",
  3217. .psize = 8,
  3218. .digest = "\x19\x8a\x60\x7e\xb4\x4b\xfb\xc6"
  3219. "\x99\x03\xa0\xf1\xcf\x2b\xbd\xc5"
  3220. "\xba\x0a\xa3\xf3\xd9\xae\x3c\x1c"
  3221. "\x7a\x3b\x16\x96\xa0\xb6\x8c\xf7",
  3222. }, {
  3223. .key = "Jefe",
  3224. .ksize = 4,
  3225. .plaintext = "what do ya want for nothing?",
  3226. .psize = 28,
  3227. .digest = "\x5b\xdc\xc1\x46\xbf\x60\x75\x4e"
  3228. "\x6a\x04\x24\x26\x08\x95\x75\xc7"
  3229. "\x5a\x00\x3f\x08\x9d\x27\x39\x83"
  3230. "\x9d\xec\x58\xb9\x64\xec\x38\x43",
  3231. .np = 2,
  3232. .tap = { 14, 14 }
  3233. }, {
  3234. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3235. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3236. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
  3237. .ksize = 32,
  3238. .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  3239. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  3240. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
  3241. "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
  3242. .psize = 50,
  3243. .digest = "\xcd\xcb\x12\x20\xd1\xec\xcc\xea"
  3244. "\x91\xe5\x3a\xba\x30\x92\xf9\x62"
  3245. "\xe5\x49\xfe\x6c\xe9\xed\x7f\xdc"
  3246. "\x43\x19\x1f\xbd\xe4\x5c\x30\xb0",
  3247. }, {
  3248. .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
  3249. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  3250. "\x11\x12\x13\x14\x15\x16\x17\x18"
  3251. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  3252. "\x21\x22\x23\x24\x25",
  3253. .ksize = 37,
  3254. .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  3255. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  3256. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
  3257. "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
  3258. .psize = 50,
  3259. .digest = "\xd4\x63\x3c\x17\xf6\xfb\x8d\x74"
  3260. "\x4c\x66\xde\xe0\xf8\xf0\x74\x55"
  3261. "\x6e\xc4\xaf\x55\xef\x07\x99\x85"
  3262. "\x41\x46\x8e\xb4\x9b\xd2\xe9\x17",
  3263. }, {
  3264. .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
  3265. "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
  3266. "\x0c\x0c\x0c\x0c\x0c\x0c",
  3267. .ksize = 32,
  3268. .plaintext = "Test With Truncation",
  3269. .psize = 20,
  3270. .digest = "\x75\x46\xaf\x01\x84\x1f\xc0\x9b"
  3271. "\x1a\xb9\xc3\x74\x9a\x5f\x1c\x17"
  3272. "\xd4\xf5\x89\x66\x8a\x58\x7b\x27"
  3273. "\x00\xa9\xc9\x7c\x11\x93\xcf\x42",
  3274. }, {
  3275. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3276. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3277. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3278. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3279. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3280. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3281. "\xaa\xaa",
  3282. .ksize = 80,
  3283. .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
  3284. .psize = 54,
  3285. .digest = "\x69\x53\x02\x5e\xd9\x6f\x0c\x09"
  3286. "\xf8\x0a\x96\xf7\x8e\x65\x38\xdb"
  3287. "\xe2\xe7\xb8\x20\xe3\xdd\x97\x0e"
  3288. "\x7d\xdd\x39\x09\x1b\x32\x35\x2f",
  3289. }, {
  3290. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3291. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3292. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3293. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3294. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3295. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3296. "\xaa\xaa",
  3297. .ksize = 80,
  3298. .plaintext = "Test Using Larger Than Block-Size Key and Larger Than "
  3299. "One Block-Size Data",
  3300. .psize = 73,
  3301. .digest = "\x63\x55\xac\x22\xe8\x90\xd0\xa3"
  3302. "\xc8\x48\x1a\x5c\xa4\x82\x5b\xc8"
  3303. "\x84\xd3\xe7\xa1\xff\x98\xa2\xfc"
  3304. "\x2a\xc7\xd8\xe0\x64\xc3\xb2\xe6",
  3305. },
  3306. };
  3307. #define CMAC_AES_TEST_VECTORS 6
  3308. static struct hash_testvec aes_cmac128_tv_template[] = {
  3309. { /* From NIST Special Publication 800-38B, AES-128 */
  3310. .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
  3311. "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
  3312. .plaintext = zeroed_string,
  3313. .digest = "\xbb\x1d\x69\x29\xe9\x59\x37\x28"
  3314. "\x7f\xa3\x7d\x12\x9b\x75\x67\x46",
  3315. .psize = 0,
  3316. .ksize = 16,
  3317. }, {
  3318. .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
  3319. "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
  3320. .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  3321. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a",
  3322. .digest = "\x07\x0a\x16\xb4\x6b\x4d\x41\x44"
  3323. "\xf7\x9b\xdd\x9d\xd0\x4a\x28\x7c",
  3324. .psize = 16,
  3325. .ksize = 16,
  3326. }, {
  3327. .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
  3328. "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
  3329. .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  3330. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  3331. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  3332. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  3333. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11",
  3334. .digest = "\xdf\xa6\x67\x47\xde\x9a\xe6\x30"
  3335. "\x30\xca\x32\x61\x14\x97\xc8\x27",
  3336. .psize = 40,
  3337. .ksize = 16,
  3338. }, {
  3339. .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
  3340. "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
  3341. .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  3342. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  3343. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  3344. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  3345. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  3346. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  3347. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  3348. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  3349. .digest = "\x51\xf0\xbe\xbf\x7e\x3b\x9d\x92"
  3350. "\xfc\x49\x74\x17\x79\x36\x3c\xfe",
  3351. .psize = 64,
  3352. .ksize = 16,
  3353. }, { /* From NIST Special Publication 800-38B, AES-256 */
  3354. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  3355. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  3356. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  3357. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  3358. .plaintext = zeroed_string,
  3359. .digest = "\x02\x89\x62\xf6\x1b\x7b\xf8\x9e"
  3360. "\xfc\x6b\x55\x1f\x46\x67\xd9\x83",
  3361. .psize = 0,
  3362. .ksize = 32,
  3363. }, {
  3364. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  3365. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  3366. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  3367. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  3368. .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  3369. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  3370. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  3371. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  3372. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  3373. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  3374. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  3375. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  3376. .digest = "\xe1\x99\x21\x90\x54\x9f\x6e\xd5"
  3377. "\x69\x6a\x2c\x05\x6c\x31\x54\x10",
  3378. .psize = 64,
  3379. .ksize = 32,
  3380. }
  3381. };
  3382. #define CMAC_DES3_EDE_TEST_VECTORS 4
  3383. static struct hash_testvec des3_ede_cmac64_tv_template[] = {
  3384. /*
  3385. * From NIST Special Publication 800-38B, Three Key TDEA
  3386. * Corrected test vectors from:
  3387. * http://csrc.nist.gov/publications/nistpubs/800-38B/Updated_CMAC_Examples.pdf
  3388. */
  3389. {
  3390. .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
  3391. "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
  3392. "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
  3393. .plaintext = zeroed_string,
  3394. .digest = "\xb7\xa6\x88\xe1\x22\xff\xaf\x95",
  3395. .psize = 0,
  3396. .ksize = 24,
  3397. }, {
  3398. .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
  3399. "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
  3400. "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
  3401. .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96",
  3402. .digest = "\x8e\x8f\x29\x31\x36\x28\x37\x97",
  3403. .psize = 8,
  3404. .ksize = 24,
  3405. }, {
  3406. .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
  3407. "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
  3408. "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
  3409. .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  3410. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  3411. "\xae\x2d\x8a\x57",
  3412. .digest = "\x74\x3d\xdb\xe0\xce\x2d\xc2\xed",
  3413. .psize = 20,
  3414. .ksize = 24,
  3415. }, {
  3416. .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
  3417. "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
  3418. "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
  3419. .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  3420. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  3421. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  3422. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51",
  3423. .digest = "\x33\xe6\xb1\x09\x24\x00\xea\xe5",
  3424. .psize = 32,
  3425. .ksize = 24,
  3426. }
  3427. };
  3428. #define XCBC_AES_TEST_VECTORS 6
  3429. static struct hash_testvec aes_xcbc128_tv_template[] = {
  3430. {
  3431. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3432. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  3433. .plaintext = zeroed_string,
  3434. .digest = "\x75\xf0\x25\x1d\x52\x8a\xc0\x1c"
  3435. "\x45\x73\xdf\xd5\x84\xd7\x9f\x29",
  3436. .psize = 0,
  3437. .ksize = 16,
  3438. }, {
  3439. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3440. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  3441. .plaintext = "\x00\x01\x02",
  3442. .digest = "\x5b\x37\x65\x80\xae\x2f\x19\xaf"
  3443. "\xe7\x21\x9c\xee\xf1\x72\x75\x6f",
  3444. .psize = 3,
  3445. .ksize = 16,
  3446. } , {
  3447. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3448. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  3449. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3450. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  3451. .digest = "\xd2\xa2\x46\xfa\x34\x9b\x68\xa7"
  3452. "\x99\x98\xa4\x39\x4f\xf7\xa2\x63",
  3453. .psize = 16,
  3454. .ksize = 16,
  3455. }, {
  3456. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3457. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  3458. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3459. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3460. "\x10\x11\x12\x13",
  3461. .digest = "\x47\xf5\x1b\x45\x64\x96\x62\x15"
  3462. "\xb8\x98\x5c\x63\x05\x5e\xd3\x08",
  3463. .tap = { 10, 10 },
  3464. .psize = 20,
  3465. .np = 2,
  3466. .ksize = 16,
  3467. }, {
  3468. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3469. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  3470. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3471. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3472. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3473. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  3474. .digest = "\xf5\x4f\x0e\xc8\xd2\xb9\xf3\xd3"
  3475. "\x68\x07\x73\x4b\xd5\x28\x3f\xd4",
  3476. .psize = 32,
  3477. .ksize = 16,
  3478. }, {
  3479. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3480. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  3481. .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3482. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  3483. "\x10\x11\x12\x13\x14\x15\x16\x17"
  3484. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  3485. "\x20\x21",
  3486. .digest = "\xbe\xcb\xb3\xbc\xcd\xb5\x18\xa3"
  3487. "\x06\x77\xd5\x48\x1f\xb6\xb4\xd8",
  3488. .tap = { 17, 17 },
  3489. .psize = 34,
  3490. .np = 2,
  3491. .ksize = 16,
  3492. }
  3493. };
  3494. #define VMAC_AES_TEST_VECTORS 11
  3495. static char vmac_string1[128] = {'\x01', '\x01', '\x01', '\x01',
  3496. '\x02', '\x03', '\x02', '\x02',
  3497. '\x02', '\x04', '\x01', '\x07',
  3498. '\x04', '\x01', '\x04', '\x03',};
  3499. static char vmac_string2[128] = {'a', 'b', 'c',};
  3500. static char vmac_string3[128] = {'a', 'b', 'c', 'a', 'b', 'c',
  3501. 'a', 'b', 'c', 'a', 'b', 'c',
  3502. 'a', 'b', 'c', 'a', 'b', 'c',
  3503. 'a', 'b', 'c', 'a', 'b', 'c',
  3504. 'a', 'b', 'c', 'a', 'b', 'c',
  3505. 'a', 'b', 'c', 'a', 'b', 'c',
  3506. 'a', 'b', 'c', 'a', 'b', 'c',
  3507. 'a', 'b', 'c', 'a', 'b', 'c',
  3508. };
  3509. static char vmac_string4[17] = {'b', 'c', 'e', 'f',
  3510. 'i', 'j', 'l', 'm',
  3511. 'o', 'p', 'r', 's',
  3512. 't', 'u', 'w', 'x', 'z'};
  3513. static char vmac_string5[127] = {'r', 'm', 'b', 't', 'c',
  3514. 'o', 'l', 'k', ']', '%',
  3515. '9', '2', '7', '!', 'A'};
  3516. static char vmac_string6[129] = {'p', 't', '*', '7', 'l',
  3517. 'i', '!', '#', 'w', '0',
  3518. 'z', '/', '4', 'A', 'n'};
  3519. static struct hash_testvec aes_vmac128_tv_template[] = {
  3520. {
  3521. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3522. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  3523. .plaintext = NULL,
  3524. .digest = "\x07\x58\x80\x35\x77\xa4\x7b\x54",
  3525. .psize = 0,
  3526. .ksize = 16,
  3527. }, {
  3528. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3529. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  3530. .plaintext = vmac_string1,
  3531. .digest = "\xce\xf5\x3c\xd3\xae\x68\x8c\xa1",
  3532. .psize = 128,
  3533. .ksize = 16,
  3534. }, {
  3535. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3536. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  3537. .plaintext = vmac_string2,
  3538. .digest = "\xc9\x27\xb0\x73\x81\xbd\x14\x2d",
  3539. .psize = 128,
  3540. .ksize = 16,
  3541. }, {
  3542. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  3543. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  3544. .plaintext = vmac_string3,
  3545. .digest = "\x8d\x1a\x95\x8c\x98\x47\x0b\x19",
  3546. .psize = 128,
  3547. .ksize = 16,
  3548. }, {
  3549. .key = "abcdefghijklmnop",
  3550. .plaintext = NULL,
  3551. .digest = "\x3b\x89\xa1\x26\x9e\x55\x8f\x84",
  3552. .psize = 0,
  3553. .ksize = 16,
  3554. }, {
  3555. .key = "abcdefghijklmnop",
  3556. .plaintext = vmac_string1,
  3557. .digest = "\xab\x5e\xab\xb0\xf6\x8d\x74\xc2",
  3558. .psize = 128,
  3559. .ksize = 16,
  3560. }, {
  3561. .key = "abcdefghijklmnop",
  3562. .plaintext = vmac_string2,
  3563. .digest = "\x11\x15\x68\x42\x3d\x7b\x09\xdf",
  3564. .psize = 128,
  3565. .ksize = 16,
  3566. }, {
  3567. .key = "abcdefghijklmnop",
  3568. .plaintext = vmac_string3,
  3569. .digest = "\x8b\x32\x8f\xe1\xed\x8f\xfa\xd4",
  3570. .psize = 128,
  3571. .ksize = 16,
  3572. }, {
  3573. .key = "a09b5cd!f#07K\x00\x00\x00",
  3574. .plaintext = vmac_string4,
  3575. .digest = "\xab\xa5\x0f\xea\x42\x4e\xa1\x5f",
  3576. .psize = sizeof(vmac_string4),
  3577. .ksize = 16,
  3578. }, {
  3579. .key = "a09b5cd!f#07K\x00\x00\x00",
  3580. .plaintext = vmac_string5,
  3581. .digest = "\x25\x31\x98\xbc\x1d\xe8\x67\x60",
  3582. .psize = sizeof(vmac_string5),
  3583. .ksize = 16,
  3584. }, {
  3585. .key = "a09b5cd!f#07K\x00\x00\x00",
  3586. .plaintext = vmac_string6,
  3587. .digest = "\xc4\xae\x9b\x47\x95\x65\xeb\x41",
  3588. .psize = sizeof(vmac_string6),
  3589. .ksize = 16,
  3590. },
  3591. };
  3592. /*
  3593. * SHA384 HMAC test vectors from RFC4231
  3594. */
  3595. #define HMAC_SHA384_TEST_VECTORS 4
  3596. static struct hash_testvec hmac_sha384_tv_template[] = {
  3597. {
  3598. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  3599. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  3600. "\x0b\x0b\x0b\x0b",
  3601. .ksize = 20,
  3602. .plaintext = "Hi There",
  3603. .psize = 8,
  3604. .digest = "\xaf\xd0\x39\x44\xd8\x48\x95\x62"
  3605. "\x6b\x08\x25\xf4\xab\x46\x90\x7f"
  3606. "\x15\xf9\xda\xdb\xe4\x10\x1e\xc6"
  3607. "\x82\xaa\x03\x4c\x7c\xeb\xc5\x9c"
  3608. "\xfa\xea\x9e\xa9\x07\x6e\xde\x7f"
  3609. "\x4a\xf1\x52\xe8\xb2\xfa\x9c\xb6",
  3610. }, {
  3611. .key = "Jefe",
  3612. .ksize = 4,
  3613. .plaintext = "what do ya want for nothing?",
  3614. .psize = 28,
  3615. .digest = "\xaf\x45\xd2\xe3\x76\x48\x40\x31"
  3616. "\x61\x7f\x78\xd2\xb5\x8a\x6b\x1b"
  3617. "\x9c\x7e\xf4\x64\xf5\xa0\x1b\x47"
  3618. "\xe4\x2e\xc3\x73\x63\x22\x44\x5e"
  3619. "\x8e\x22\x40\xca\x5e\x69\xe2\xc7"
  3620. "\x8b\x32\x39\xec\xfa\xb2\x16\x49",
  3621. .np = 4,
  3622. .tap = { 7, 7, 7, 7 }
  3623. }, {
  3624. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3625. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3626. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3627. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3628. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3629. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3630. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3631. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3632. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3633. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3634. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3635. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3636. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3637. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3638. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3639. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3640. "\xaa\xaa\xaa",
  3641. .ksize = 131,
  3642. .plaintext = "Test Using Larger Than Block-Siz"
  3643. "e Key - Hash Key First",
  3644. .psize = 54,
  3645. .digest = "\x4e\xce\x08\x44\x85\x81\x3e\x90"
  3646. "\x88\xd2\xc6\x3a\x04\x1b\xc5\xb4"
  3647. "\x4f\x9e\xf1\x01\x2a\x2b\x58\x8f"
  3648. "\x3c\xd1\x1f\x05\x03\x3a\xc4\xc6"
  3649. "\x0c\x2e\xf6\xab\x40\x30\xfe\x82"
  3650. "\x96\x24\x8d\xf1\x63\xf4\x49\x52",
  3651. }, {
  3652. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3653. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3654. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3655. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3656. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3657. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3658. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3659. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3660. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3661. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3662. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3663. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3664. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3665. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3666. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3667. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3668. "\xaa\xaa\xaa",
  3669. .ksize = 131,
  3670. .plaintext = "This is a test u"
  3671. "sing a larger th"
  3672. "an block-size ke"
  3673. "y and a larger t"
  3674. "han block-size d"
  3675. "ata. The key nee"
  3676. "ds to be hashed "
  3677. "before being use"
  3678. "d by the HMAC al"
  3679. "gorithm.",
  3680. .psize = 152,
  3681. .digest = "\x66\x17\x17\x8e\x94\x1f\x02\x0d"
  3682. "\x35\x1e\x2f\x25\x4e\x8f\xd3\x2c"
  3683. "\x60\x24\x20\xfe\xb0\xb8\xfb\x9a"
  3684. "\xdc\xce\xbb\x82\x46\x1e\x99\xc5"
  3685. "\xa6\x78\xcc\x31\xe7\x99\x17\x6d"
  3686. "\x38\x60\xe6\x11\x0c\x46\x52\x3e",
  3687. },
  3688. };
  3689. /*
  3690. * SHA512 HMAC test vectors from RFC4231
  3691. */
  3692. #define HMAC_SHA512_TEST_VECTORS 4
  3693. static struct hash_testvec hmac_sha512_tv_template[] = {
  3694. {
  3695. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  3696. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  3697. "\x0b\x0b\x0b\x0b",
  3698. .ksize = 20,
  3699. .plaintext = "Hi There",
  3700. .psize = 8,
  3701. .digest = "\x87\xaa\x7c\xde\xa5\xef\x61\x9d"
  3702. "\x4f\xf0\xb4\x24\x1a\x1d\x6c\xb0"
  3703. "\x23\x79\xf4\xe2\xce\x4e\xc2\x78"
  3704. "\x7a\xd0\xb3\x05\x45\xe1\x7c\xde"
  3705. "\xda\xa8\x33\xb7\xd6\xb8\xa7\x02"
  3706. "\x03\x8b\x27\x4e\xae\xa3\xf4\xe4"
  3707. "\xbe\x9d\x91\x4e\xeb\x61\xf1\x70"
  3708. "\x2e\x69\x6c\x20\x3a\x12\x68\x54",
  3709. }, {
  3710. .key = "Jefe",
  3711. .ksize = 4,
  3712. .plaintext = "what do ya want for nothing?",
  3713. .psize = 28,
  3714. .digest = "\x16\x4b\x7a\x7b\xfc\xf8\x19\xe2"
  3715. "\xe3\x95\xfb\xe7\x3b\x56\xe0\xa3"
  3716. "\x87\xbd\x64\x22\x2e\x83\x1f\xd6"
  3717. "\x10\x27\x0c\xd7\xea\x25\x05\x54"
  3718. "\x97\x58\xbf\x75\xc0\x5a\x99\x4a"
  3719. "\x6d\x03\x4f\x65\xf8\xf0\xe6\xfd"
  3720. "\xca\xea\xb1\xa3\x4d\x4a\x6b\x4b"
  3721. "\x63\x6e\x07\x0a\x38\xbc\xe7\x37",
  3722. .np = 4,
  3723. .tap = { 7, 7, 7, 7 }
  3724. }, {
  3725. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3726. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3727. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3728. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3729. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3730. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3731. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3732. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3733. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3734. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3735. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3736. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3737. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3738. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3739. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3740. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3741. "\xaa\xaa\xaa",
  3742. .ksize = 131,
  3743. .plaintext = "Test Using Large"
  3744. "r Than Block-Siz"
  3745. "e Key - Hash Key"
  3746. " First",
  3747. .psize = 54,
  3748. .digest = "\x80\xb2\x42\x63\xc7\xc1\xa3\xeb"
  3749. "\xb7\x14\x93\xc1\xdd\x7b\xe8\xb4"
  3750. "\x9b\x46\xd1\xf4\x1b\x4a\xee\xc1"
  3751. "\x12\x1b\x01\x37\x83\xf8\xf3\x52"
  3752. "\x6b\x56\xd0\x37\xe0\x5f\x25\x98"
  3753. "\xbd\x0f\xd2\x21\x5d\x6a\x1e\x52"
  3754. "\x95\xe6\x4f\x73\xf6\x3f\x0a\xec"
  3755. "\x8b\x91\x5a\x98\x5d\x78\x65\x98",
  3756. }, {
  3757. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3758. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3759. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3760. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3761. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3762. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3763. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3764. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3765. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3766. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3767. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3768. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3769. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3770. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3771. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3772. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3773. "\xaa\xaa\xaa",
  3774. .ksize = 131,
  3775. .plaintext =
  3776. "This is a test u"
  3777. "sing a larger th"
  3778. "an block-size ke"
  3779. "y and a larger t"
  3780. "han block-size d"
  3781. "ata. The key nee"
  3782. "ds to be hashed "
  3783. "before being use"
  3784. "d by the HMAC al"
  3785. "gorithm.",
  3786. .psize = 152,
  3787. .digest = "\xe3\x7b\x6a\x77\x5d\xc8\x7d\xba"
  3788. "\xa4\xdf\xa9\xf9\x6e\x5e\x3f\xfd"
  3789. "\xde\xbd\x71\xf8\x86\x72\x89\x86"
  3790. "\x5d\xf5\xa3\x2d\x20\xcd\xc9\x44"
  3791. "\xb6\x02\x2c\xac\x3c\x49\x82\xb1"
  3792. "\x0d\x5e\xeb\x55\xc3\xe4\xde\x15"
  3793. "\x13\x46\x76\xfb\x6d\xe0\x44\x60"
  3794. "\x65\xc9\x74\x40\xfa\x8c\x6a\x58",
  3795. },
  3796. };
  3797. #define HMAC_SHA3_224_TEST_VECTORS 4
  3798. static struct hash_testvec hmac_sha3_224_tv_template[] = {
  3799. {
  3800. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  3801. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  3802. "\x0b\x0b\x0b\x0b",
  3803. .ksize = 20,
  3804. .plaintext = "Hi There",
  3805. .psize = 8,
  3806. .digest = "\x3b\x16\x54\x6b\xbc\x7b\xe2\x70"
  3807. "\x6a\x03\x1d\xca\xfd\x56\x37\x3d"
  3808. "\x98\x84\x36\x76\x41\xd8\xc5\x9a"
  3809. "\xf3\xc8\x60\xf7",
  3810. }, {
  3811. .key = "Jefe",
  3812. .ksize = 4,
  3813. .plaintext = "what do ya want for nothing?",
  3814. .psize = 28,
  3815. .digest = "\x7f\xdb\x8d\xd8\x8b\xd2\xf6\x0d"
  3816. "\x1b\x79\x86\x34\xad\x38\x68\x11"
  3817. "\xc2\xcf\xc8\x5b\xfa\xf5\xd5\x2b"
  3818. "\xba\xce\x5e\x66",
  3819. .np = 4,
  3820. .tap = { 7, 7, 7, 7 }
  3821. }, {
  3822. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3823. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3824. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3825. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3826. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3827. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3828. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3829. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3830. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3831. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3832. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3833. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3834. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3835. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3836. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3837. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3838. "\xaa\xaa\xaa",
  3839. .ksize = 131,
  3840. .plaintext = "Test Using Large"
  3841. "r Than Block-Siz"
  3842. "e Key - Hash Key"
  3843. " First",
  3844. .psize = 54,
  3845. .digest = "\xb4\xa1\xf0\x4c\x00\x28\x7a\x9b"
  3846. "\x7f\x60\x75\xb3\x13\xd2\x79\xb8"
  3847. "\x33\xbc\x8f\x75\x12\x43\x52\xd0"
  3848. "\x5f\xb9\x99\x5f",
  3849. }, {
  3850. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3851. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3852. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3853. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3854. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3855. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3856. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3857. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3858. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3859. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3860. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3861. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3862. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3863. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3864. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3865. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3866. "\xaa\xaa\xaa",
  3867. .ksize = 131,
  3868. .plaintext =
  3869. "This is a test u"
  3870. "sing a larger th"
  3871. "an block-size ke"
  3872. "y and a larger t"
  3873. "han block-size d"
  3874. "ata. The key nee"
  3875. "ds to be hashed "
  3876. "before being use"
  3877. "d by the HMAC al"
  3878. "gorithm.",
  3879. .psize = 152,
  3880. .digest = "\x05\xd8\xcd\x6d\x00\xfa\xea\x8d"
  3881. "\x1e\xb6\x8a\xde\x28\x73\x0b\xbd"
  3882. "\x3c\xba\xb6\x92\x9f\x0a\x08\x6b"
  3883. "\x29\xcd\x62\xa0",
  3884. },
  3885. };
  3886. #define HMAC_SHA3_256_TEST_VECTORS 4
  3887. static struct hash_testvec hmac_sha3_256_tv_template[] = {
  3888. {
  3889. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  3890. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  3891. "\x0b\x0b\x0b\x0b",
  3892. .ksize = 20,
  3893. .plaintext = "Hi There",
  3894. .psize = 8,
  3895. .digest = "\xba\x85\x19\x23\x10\xdf\xfa\x96"
  3896. "\xe2\xa3\xa4\x0e\x69\x77\x43\x51"
  3897. "\x14\x0b\xb7\x18\x5e\x12\x02\xcd"
  3898. "\xcc\x91\x75\x89\xf9\x5e\x16\xbb",
  3899. }, {
  3900. .key = "Jefe",
  3901. .ksize = 4,
  3902. .plaintext = "what do ya want for nothing?",
  3903. .psize = 28,
  3904. .digest = "\xc7\xd4\x07\x2e\x78\x88\x77\xae"
  3905. "\x35\x96\xbb\xb0\xda\x73\xb8\x87"
  3906. "\xc9\x17\x1f\x93\x09\x5b\x29\x4a"
  3907. "\xe8\x57\xfb\xe2\x64\x5e\x1b\xa5",
  3908. .np = 4,
  3909. .tap = { 7, 7, 7, 7 }
  3910. }, {
  3911. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3912. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3913. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3914. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3915. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3916. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3917. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3918. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3919. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3920. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3921. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3922. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3923. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3924. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3925. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3926. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3927. "\xaa\xaa\xaa",
  3928. .ksize = 131,
  3929. .plaintext = "Test Using Large"
  3930. "r Than Block-Siz"
  3931. "e Key - Hash Key"
  3932. " First",
  3933. .psize = 54,
  3934. .digest = "\xed\x73\xa3\x74\xb9\x6c\x00\x52"
  3935. "\x35\xf9\x48\x03\x2f\x09\x67\x4a"
  3936. "\x58\xc0\xce\x55\x5c\xfc\x1f\x22"
  3937. "\x3b\x02\x35\x65\x60\x31\x2c\x3b",
  3938. }, {
  3939. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3940. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3941. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3942. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3943. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3944. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3945. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3946. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3947. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3948. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3949. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3950. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3951. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3952. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3953. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3954. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  3955. "\xaa\xaa\xaa",
  3956. .ksize = 131,
  3957. .plaintext =
  3958. "This is a test u"
  3959. "sing a larger th"
  3960. "an block-size ke"
  3961. "y and a larger t"
  3962. "han block-size d"
  3963. "ata. The key nee"
  3964. "ds to be hashed "
  3965. "before being use"
  3966. "d by the HMAC al"
  3967. "gorithm.",
  3968. .psize = 152,
  3969. .digest = "\x65\xc5\xb0\x6d\x4c\x3d\xe3\x2a"
  3970. "\x7a\xef\x87\x63\x26\x1e\x49\xad"
  3971. "\xb6\xe2\x29\x3e\xc8\xe7\xc6\x1e"
  3972. "\x8d\xe6\x17\x01\xfc\x63\xe1\x23",
  3973. },
  3974. };
  3975. #define HMAC_SHA3_384_TEST_VECTORS 4
  3976. static struct hash_testvec hmac_sha3_384_tv_template[] = {
  3977. {
  3978. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  3979. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  3980. "\x0b\x0b\x0b\x0b",
  3981. .ksize = 20,
  3982. .plaintext = "Hi There",
  3983. .psize = 8,
  3984. .digest = "\x68\xd2\xdc\xf7\xfd\x4d\xdd\x0a"
  3985. "\x22\x40\xc8\xa4\x37\x30\x5f\x61"
  3986. "\xfb\x73\x34\xcf\xb5\xd0\x22\x6e"
  3987. "\x1b\xc2\x7d\xc1\x0a\x2e\x72\x3a"
  3988. "\x20\xd3\x70\xb4\x77\x43\x13\x0e"
  3989. "\x26\xac\x7e\x3d\x53\x28\x86\xbd",
  3990. }, {
  3991. .key = "Jefe",
  3992. .ksize = 4,
  3993. .plaintext = "what do ya want for nothing?",
  3994. .psize = 28,
  3995. .digest = "\xf1\x10\x1f\x8c\xbf\x97\x66\xfd"
  3996. "\x67\x64\xd2\xed\x61\x90\x3f\x21"
  3997. "\xca\x9b\x18\xf5\x7c\xf3\xe1\xa2"
  3998. "\x3c\xa1\x35\x08\xa9\x32\x43\xce"
  3999. "\x48\xc0\x45\xdc\x00\x7f\x26\xa2"
  4000. "\x1b\x3f\x5e\x0e\x9d\xf4\xc2\x0a",
  4001. .np = 4,
  4002. .tap = { 7, 7, 7, 7 }
  4003. }, {
  4004. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4005. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4006. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4007. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4008. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4009. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4010. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4011. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4012. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4013. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4014. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4015. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4016. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4017. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4018. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4019. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4020. "\xaa\xaa\xaa",
  4021. .ksize = 131,
  4022. .plaintext = "Test Using Large"
  4023. "r Than Block-Siz"
  4024. "e Key - Hash Key"
  4025. " First",
  4026. .psize = 54,
  4027. .digest = "\x0f\xc1\x95\x13\xbf\x6b\xd8\x78"
  4028. "\x03\x70\x16\x70\x6a\x0e\x57\xbc"
  4029. "\x52\x81\x39\x83\x6b\x9a\x42\xc3"
  4030. "\xd4\x19\xe4\x98\xe0\xe1\xfb\x96"
  4031. "\x16\xfd\x66\x91\x38\xd3\x3a\x11"
  4032. "\x05\xe0\x7c\x72\xb6\x95\x3b\xcc",
  4033. }, {
  4034. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4035. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4036. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4037. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4038. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4039. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4040. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4041. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4042. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4043. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4044. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4045. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4046. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4047. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4048. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4049. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4050. "\xaa\xaa\xaa",
  4051. .ksize = 131,
  4052. .plaintext =
  4053. "This is a test u"
  4054. "sing a larger th"
  4055. "an block-size ke"
  4056. "y and a larger t"
  4057. "han block-size d"
  4058. "ata. The key nee"
  4059. "ds to be hashed "
  4060. "before being use"
  4061. "d by the HMAC al"
  4062. "gorithm.",
  4063. .psize = 152,
  4064. .digest = "\x02\x6f\xdf\x6b\x50\x74\x1e\x37"
  4065. "\x38\x99\xc9\xf7\xd5\x40\x6d\x4e"
  4066. "\xb0\x9f\xc6\x66\x56\x36\xfc\x1a"
  4067. "\x53\x00\x29\xdd\xf5\xcf\x3c\xa5"
  4068. "\xa9\x00\xed\xce\x01\xf5\xf6\x1e"
  4069. "\x2f\x40\x8c\xdf\x2f\xd3\xe7\xe8",
  4070. },
  4071. };
  4072. #define HMAC_SHA3_512_TEST_VECTORS 4
  4073. static struct hash_testvec hmac_sha3_512_tv_template[] = {
  4074. {
  4075. .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  4076. "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
  4077. "\x0b\x0b\x0b\x0b",
  4078. .ksize = 20,
  4079. .plaintext = "Hi There",
  4080. .psize = 8,
  4081. .digest = "\xeb\x3f\xbd\x4b\x2e\xaa\xb8\xf5"
  4082. "\xc5\x04\xbd\x3a\x41\x46\x5a\xac"
  4083. "\xec\x15\x77\x0a\x7c\xab\xac\x53"
  4084. "\x1e\x48\x2f\x86\x0b\x5e\xc7\xba"
  4085. "\x47\xcc\xb2\xc6\xf2\xaf\xce\x8f"
  4086. "\x88\xd2\x2b\x6d\xc6\x13\x80\xf2"
  4087. "\x3a\x66\x8f\xd3\x88\x8b\xb8\x05"
  4088. "\x37\xc0\xa0\xb8\x64\x07\x68\x9e",
  4089. }, {
  4090. .key = "Jefe",
  4091. .ksize = 4,
  4092. .plaintext = "what do ya want for nothing?",
  4093. .psize = 28,
  4094. .digest = "\x5a\x4b\xfe\xab\x61\x66\x42\x7c"
  4095. "\x7a\x36\x47\xb7\x47\x29\x2b\x83"
  4096. "\x84\x53\x7c\xdb\x89\xaf\xb3\xbf"
  4097. "\x56\x65\xe4\xc5\xe7\x09\x35\x0b"
  4098. "\x28\x7b\xae\xc9\x21\xfd\x7c\xa0"
  4099. "\xee\x7a\x0c\x31\xd0\x22\xa9\x5e"
  4100. "\x1f\xc9\x2b\xa9\xd7\x7d\xf8\x83"
  4101. "\x96\x02\x75\xbe\xb4\xe6\x20\x24",
  4102. .np = 4,
  4103. .tap = { 7, 7, 7, 7 }
  4104. }, {
  4105. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4106. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4107. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4108. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4109. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4110. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4111. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4112. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4113. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4114. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4115. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4116. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4117. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4118. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4119. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4120. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4121. "\xaa\xaa\xaa",
  4122. .ksize = 131,
  4123. .plaintext = "Test Using Large"
  4124. "r Than Block-Siz"
  4125. "e Key - Hash Key"
  4126. " First",
  4127. .psize = 54,
  4128. .digest = "\x00\xf7\x51\xa9\xe5\x06\x95\xb0"
  4129. "\x90\xed\x69\x11\xa4\xb6\x55\x24"
  4130. "\x95\x1c\xdc\x15\xa7\x3a\x5d\x58"
  4131. "\xbb\x55\x21\x5e\xa2\xcd\x83\x9a"
  4132. "\xc7\x9d\x2b\x44\xa3\x9b\xaf\xab"
  4133. "\x27\xe8\x3f\xde\x9e\x11\xf6\x34"
  4134. "\x0b\x11\xd9\x91\xb1\xb9\x1b\xf2"
  4135. "\xee\xe7\xfc\x87\x24\x26\xc3\xa4",
  4136. }, {
  4137. .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4138. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4139. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4140. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4141. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4142. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4143. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4144. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4145. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4146. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4147. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4148. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4149. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4150. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4151. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4152. "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  4153. "\xaa\xaa\xaa",
  4154. .ksize = 131,
  4155. .plaintext =
  4156. "This is a test u"
  4157. "sing a larger th"
  4158. "an block-size ke"
  4159. "y and a larger t"
  4160. "han block-size d"
  4161. "ata. The key nee"
  4162. "ds to be hashed "
  4163. "before being use"
  4164. "d by the HMAC al"
  4165. "gorithm.",
  4166. .psize = 152,
  4167. .digest = "\x38\xa4\x56\xa0\x04\xbd\x10\xd3"
  4168. "\x2c\x9a\xb8\x33\x66\x84\x11\x28"
  4169. "\x62\xc3\xdb\x61\xad\xcc\xa3\x18"
  4170. "\x29\x35\x5e\xaf\x46\xfd\x5c\x73"
  4171. "\xd0\x6a\x1f\x0d\x13\xfe\xc9\xa6"
  4172. "\x52\xfb\x38\x11\xb5\x77\xb1\xb1"
  4173. "\xd1\xb9\x78\x9f\x97\xae\x5b\x83"
  4174. "\xc6\xf4\x4d\xfc\xf1\xd6\x7e\xba",
  4175. },
  4176. };
  4177. /*
  4178. * Poly1305 test vectors from RFC7539 A.3.
  4179. */
  4180. #define POLY1305_TEST_VECTORS 11
  4181. static struct hash_testvec poly1305_tv_template[] = {
  4182. { /* Test Vector #1 */
  4183. .plaintext = "\x00\x00\x00\x00\x00\x00\x00\x00"
  4184. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4185. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4186. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4187. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4188. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4189. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4190. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4191. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4192. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4193. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4194. "\x00\x00\x00\x00\x00\x00\x00\x00",
  4195. .psize = 96,
  4196. .digest = "\x00\x00\x00\x00\x00\x00\x00\x00"
  4197. "\x00\x00\x00\x00\x00\x00\x00\x00",
  4198. }, { /* Test Vector #2 */
  4199. .plaintext = "\x00\x00\x00\x00\x00\x00\x00\x00"
  4200. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4201. "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70"
  4202. "\xf0\xef\xca\x96\x22\x7a\x86\x3e"
  4203. "\x41\x6e\x79\x20\x73\x75\x62\x6d"
  4204. "\x69\x73\x73\x69\x6f\x6e\x20\x74"
  4205. "\x6f\x20\x74\x68\x65\x20\x49\x45"
  4206. "\x54\x46\x20\x69\x6e\x74\x65\x6e"
  4207. "\x64\x65\x64\x20\x62\x79\x20\x74"
  4208. "\x68\x65\x20\x43\x6f\x6e\x74\x72"
  4209. "\x69\x62\x75\x74\x6f\x72\x20\x66"
  4210. "\x6f\x72\x20\x70\x75\x62\x6c\x69"
  4211. "\x63\x61\x74\x69\x6f\x6e\x20\x61"
  4212. "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
  4213. "\x20\x70\x61\x72\x74\x20\x6f\x66"
  4214. "\x20\x61\x6e\x20\x49\x45\x54\x46"
  4215. "\x20\x49\x6e\x74\x65\x72\x6e\x65"
  4216. "\x74\x2d\x44\x72\x61\x66\x74\x20"
  4217. "\x6f\x72\x20\x52\x46\x43\x20\x61"
  4218. "\x6e\x64\x20\x61\x6e\x79\x20\x73"
  4219. "\x74\x61\x74\x65\x6d\x65\x6e\x74"
  4220. "\x20\x6d\x61\x64\x65\x20\x77\x69"
  4221. "\x74\x68\x69\x6e\x20\x74\x68\x65"
  4222. "\x20\x63\x6f\x6e\x74\x65\x78\x74"
  4223. "\x20\x6f\x66\x20\x61\x6e\x20\x49"
  4224. "\x45\x54\x46\x20\x61\x63\x74\x69"
  4225. "\x76\x69\x74\x79\x20\x69\x73\x20"
  4226. "\x63\x6f\x6e\x73\x69\x64\x65\x72"
  4227. "\x65\x64\x20\x61\x6e\x20\x22\x49"
  4228. "\x45\x54\x46\x20\x43\x6f\x6e\x74"
  4229. "\x72\x69\x62\x75\x74\x69\x6f\x6e"
  4230. "\x22\x2e\x20\x53\x75\x63\x68\x20"
  4231. "\x73\x74\x61\x74\x65\x6d\x65\x6e"
  4232. "\x74\x73\x20\x69\x6e\x63\x6c\x75"
  4233. "\x64\x65\x20\x6f\x72\x61\x6c\x20"
  4234. "\x73\x74\x61\x74\x65\x6d\x65\x6e"
  4235. "\x74\x73\x20\x69\x6e\x20\x49\x45"
  4236. "\x54\x46\x20\x73\x65\x73\x73\x69"
  4237. "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
  4238. "\x77\x65\x6c\x6c\x20\x61\x73\x20"
  4239. "\x77\x72\x69\x74\x74\x65\x6e\x20"
  4240. "\x61\x6e\x64\x20\x65\x6c\x65\x63"
  4241. "\x74\x72\x6f\x6e\x69\x63\x20\x63"
  4242. "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
  4243. "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
  4244. "\x64\x65\x20\x61\x74\x20\x61\x6e"
  4245. "\x79\x20\x74\x69\x6d\x65\x20\x6f"
  4246. "\x72\x20\x70\x6c\x61\x63\x65\x2c"
  4247. "\x20\x77\x68\x69\x63\x68\x20\x61"
  4248. "\x72\x65\x20\x61\x64\x64\x72\x65"
  4249. "\x73\x73\x65\x64\x20\x74\x6f",
  4250. .psize = 407,
  4251. .digest = "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70"
  4252. "\xf0\xef\xca\x96\x22\x7a\x86\x3e",
  4253. }, { /* Test Vector #3 */
  4254. .plaintext = "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70"
  4255. "\xf0\xef\xca\x96\x22\x7a\x86\x3e"
  4256. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4257. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4258. "\x41\x6e\x79\x20\x73\x75\x62\x6d"
  4259. "\x69\x73\x73\x69\x6f\x6e\x20\x74"
  4260. "\x6f\x20\x74\x68\x65\x20\x49\x45"
  4261. "\x54\x46\x20\x69\x6e\x74\x65\x6e"
  4262. "\x64\x65\x64\x20\x62\x79\x20\x74"
  4263. "\x68\x65\x20\x43\x6f\x6e\x74\x72"
  4264. "\x69\x62\x75\x74\x6f\x72\x20\x66"
  4265. "\x6f\x72\x20\x70\x75\x62\x6c\x69"
  4266. "\x63\x61\x74\x69\x6f\x6e\x20\x61"
  4267. "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
  4268. "\x20\x70\x61\x72\x74\x20\x6f\x66"
  4269. "\x20\x61\x6e\x20\x49\x45\x54\x46"
  4270. "\x20\x49\x6e\x74\x65\x72\x6e\x65"
  4271. "\x74\x2d\x44\x72\x61\x66\x74\x20"
  4272. "\x6f\x72\x20\x52\x46\x43\x20\x61"
  4273. "\x6e\x64\x20\x61\x6e\x79\x20\x73"
  4274. "\x74\x61\x74\x65\x6d\x65\x6e\x74"
  4275. "\x20\x6d\x61\x64\x65\x20\x77\x69"
  4276. "\x74\x68\x69\x6e\x20\x74\x68\x65"
  4277. "\x20\x63\x6f\x6e\x74\x65\x78\x74"
  4278. "\x20\x6f\x66\x20\x61\x6e\x20\x49"
  4279. "\x45\x54\x46\x20\x61\x63\x74\x69"
  4280. "\x76\x69\x74\x79\x20\x69\x73\x20"
  4281. "\x63\x6f\x6e\x73\x69\x64\x65\x72"
  4282. "\x65\x64\x20\x61\x6e\x20\x22\x49"
  4283. "\x45\x54\x46\x20\x43\x6f\x6e\x74"
  4284. "\x72\x69\x62\x75\x74\x69\x6f\x6e"
  4285. "\x22\x2e\x20\x53\x75\x63\x68\x20"
  4286. "\x73\x74\x61\x74\x65\x6d\x65\x6e"
  4287. "\x74\x73\x20\x69\x6e\x63\x6c\x75"
  4288. "\x64\x65\x20\x6f\x72\x61\x6c\x20"
  4289. "\x73\x74\x61\x74\x65\x6d\x65\x6e"
  4290. "\x74\x73\x20\x69\x6e\x20\x49\x45"
  4291. "\x54\x46\x20\x73\x65\x73\x73\x69"
  4292. "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
  4293. "\x77\x65\x6c\x6c\x20\x61\x73\x20"
  4294. "\x77\x72\x69\x74\x74\x65\x6e\x20"
  4295. "\x61\x6e\x64\x20\x65\x6c\x65\x63"
  4296. "\x74\x72\x6f\x6e\x69\x63\x20\x63"
  4297. "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
  4298. "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
  4299. "\x64\x65\x20\x61\x74\x20\x61\x6e"
  4300. "\x79\x20\x74\x69\x6d\x65\x20\x6f"
  4301. "\x72\x20\x70\x6c\x61\x63\x65\x2c"
  4302. "\x20\x77\x68\x69\x63\x68\x20\x61"
  4303. "\x72\x65\x20\x61\x64\x64\x72\x65"
  4304. "\x73\x73\x65\x64\x20\x74\x6f",
  4305. .psize = 407,
  4306. .digest = "\xf3\x47\x7e\x7c\xd9\x54\x17\xaf"
  4307. "\x89\xa6\xb8\x79\x4c\x31\x0c\xf0",
  4308. }, { /* Test Vector #4 */
  4309. .plaintext = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
  4310. "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
  4311. "\x47\x39\x17\xc1\x40\x2b\x80\x09"
  4312. "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
  4313. "\x27\x54\x77\x61\x73\x20\x62\x72"
  4314. "\x69\x6c\x6c\x69\x67\x2c\x20\x61"
  4315. "\x6e\x64\x20\x74\x68\x65\x20\x73"
  4316. "\x6c\x69\x74\x68\x79\x20\x74\x6f"
  4317. "\x76\x65\x73\x0a\x44\x69\x64\x20"
  4318. "\x67\x79\x72\x65\x20\x61\x6e\x64"
  4319. "\x20\x67\x69\x6d\x62\x6c\x65\x20"
  4320. "\x69\x6e\x20\x74\x68\x65\x20\x77"
  4321. "\x61\x62\x65\x3a\x0a\x41\x6c\x6c"
  4322. "\x20\x6d\x69\x6d\x73\x79\x20\x77"
  4323. "\x65\x72\x65\x20\x74\x68\x65\x20"
  4324. "\x62\x6f\x72\x6f\x67\x6f\x76\x65"
  4325. "\x73\x2c\x0a\x41\x6e\x64\x20\x74"
  4326. "\x68\x65\x20\x6d\x6f\x6d\x65\x20"
  4327. "\x72\x61\x74\x68\x73\x20\x6f\x75"
  4328. "\x74\x67\x72\x61\x62\x65\x2e",
  4329. .psize = 159,
  4330. .digest = "\x45\x41\x66\x9a\x7e\xaa\xee\x61"
  4331. "\xe7\x08\xdc\x7c\xbc\xc5\xeb\x62",
  4332. }, { /* Test Vector #5 */
  4333. .plaintext = "\x02\x00\x00\x00\x00\x00\x00\x00"
  4334. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4335. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4336. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4337. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4338. "\xff\xff\xff\xff\xff\xff\xff\xff",
  4339. .psize = 48,
  4340. .digest = "\x03\x00\x00\x00\x00\x00\x00\x00"
  4341. "\x00\x00\x00\x00\x00\x00\x00\x00",
  4342. }, { /* Test Vector #6 */
  4343. .plaintext = "\x02\x00\x00\x00\x00\x00\x00\x00"
  4344. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4345. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4346. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4347. "\x02\x00\x00\x00\x00\x00\x00\x00"
  4348. "\x00\x00\x00\x00\x00\x00\x00\x00",
  4349. .psize = 48,
  4350. .digest = "\x03\x00\x00\x00\x00\x00\x00\x00"
  4351. "\x00\x00\x00\x00\x00\x00\x00\x00",
  4352. }, { /* Test Vector #7 */
  4353. .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00"
  4354. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4355. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4356. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4357. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4358. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4359. "\xf0\xff\xff\xff\xff\xff\xff\xff"
  4360. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4361. "\x11\x00\x00\x00\x00\x00\x00\x00"
  4362. "\x00\x00\x00\x00\x00\x00\x00\x00",
  4363. .psize = 80,
  4364. .digest = "\x05\x00\x00\x00\x00\x00\x00\x00"
  4365. "\x00\x00\x00\x00\x00\x00\x00\x00",
  4366. }, { /* Test Vector #8 */
  4367. .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00"
  4368. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4369. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4370. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4371. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4372. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4373. "\xfb\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  4374. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  4375. "\x01\x01\x01\x01\x01\x01\x01\x01"
  4376. "\x01\x01\x01\x01\x01\x01\x01\x01",
  4377. .psize = 80,
  4378. .digest = "\x00\x00\x00\x00\x00\x00\x00\x00"
  4379. "\x00\x00\x00\x00\x00\x00\x00\x00",
  4380. }, { /* Test Vector #9 */
  4381. .plaintext = "\x02\x00\x00\x00\x00\x00\x00\x00"
  4382. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4383. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4384. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4385. "\xfd\xff\xff\xff\xff\xff\xff\xff"
  4386. "\xff\xff\xff\xff\xff\xff\xff\xff",
  4387. .psize = 48,
  4388. .digest = "\xfa\xff\xff\xff\xff\xff\xff\xff"
  4389. "\xff\xff\xff\xff\xff\xff\xff\xff",
  4390. }, { /* Test Vector #10 */
  4391. .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00"
  4392. "\x04\x00\x00\x00\x00\x00\x00\x00"
  4393. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4394. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4395. "\xe3\x35\x94\xd7\x50\x5e\x43\xb9"
  4396. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4397. "\x33\x94\xd7\x50\x5e\x43\x79\xcd"
  4398. "\x01\x00\x00\x00\x00\x00\x00\x00"
  4399. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4400. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4401. "\x01\x00\x00\x00\x00\x00\x00\x00"
  4402. "\x00\x00\x00\x00\x00\x00\x00\x00",
  4403. .psize = 96,
  4404. .digest = "\x14\x00\x00\x00\x00\x00\x00\x00"
  4405. "\x55\x00\x00\x00\x00\x00\x00\x00",
  4406. }, { /* Test Vector #11 */
  4407. .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00"
  4408. "\x04\x00\x00\x00\x00\x00\x00\x00"
  4409. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4410. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4411. "\xe3\x35\x94\xd7\x50\x5e\x43\xb9"
  4412. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4413. "\x33\x94\xd7\x50\x5e\x43\x79\xcd"
  4414. "\x01\x00\x00\x00\x00\x00\x00\x00"
  4415. "\x00\x00\x00\x00\x00\x00\x00\x00"
  4416. "\x00\x00\x00\x00\x00\x00\x00\x00",
  4417. .psize = 80,
  4418. .digest = "\x13\x00\x00\x00\x00\x00\x00\x00"
  4419. "\x00\x00\x00\x00\x00\x00\x00\x00",
  4420. },
  4421. };
  4422. /*
  4423. * DES test vectors.
  4424. */
  4425. #define DES_ENC_TEST_VECTORS 11
  4426. #define DES_DEC_TEST_VECTORS 5
  4427. #define DES_CBC_ENC_TEST_VECTORS 6
  4428. #define DES_CBC_DEC_TEST_VECTORS 5
  4429. #define DES_CTR_ENC_TEST_VECTORS 2
  4430. #define DES_CTR_DEC_TEST_VECTORS 2
  4431. #define DES3_EDE_ENC_TEST_VECTORS 4
  4432. #define DES3_EDE_DEC_TEST_VECTORS 4
  4433. #define DES3_EDE_CBC_ENC_TEST_VECTORS 2
  4434. #define DES3_EDE_CBC_DEC_TEST_VECTORS 2
  4435. #define DES3_EDE_CTR_ENC_TEST_VECTORS 2
  4436. #define DES3_EDE_CTR_DEC_TEST_VECTORS 2
  4437. static struct cipher_testvec des_enc_tv_template[] = {
  4438. { /* From Applied Cryptography */
  4439. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  4440. .klen = 8,
  4441. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  4442. .ilen = 8,
  4443. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  4444. .rlen = 8,
  4445. }, { /* Same key, different plaintext block */
  4446. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  4447. .klen = 8,
  4448. .input = "\x22\x33\x44\x55\x66\x77\x88\x99",
  4449. .ilen = 8,
  4450. .result = "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  4451. .rlen = 8,
  4452. }, { /* Sbox test from NBS */
  4453. .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
  4454. .klen = 8,
  4455. .input = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
  4456. .ilen = 8,
  4457. .result = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  4458. .rlen = 8,
  4459. }, { /* Three blocks */
  4460. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  4461. .klen = 8,
  4462. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  4463. "\x22\x33\x44\x55\x66\x77\x88\x99"
  4464. "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
  4465. .ilen = 24,
  4466. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  4467. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
  4468. "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
  4469. .rlen = 24,
  4470. }, { /* Weak key */
  4471. .fail = true,
  4472. .wk = 1,
  4473. .key = "\x01\x01\x01\x01\x01\x01\x01\x01",
  4474. .klen = 8,
  4475. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  4476. .ilen = 8,
  4477. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  4478. .rlen = 8,
  4479. }, { /* Two blocks -- for testing encryption across pages */
  4480. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  4481. .klen = 8,
  4482. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  4483. "\x22\x33\x44\x55\x66\x77\x88\x99",
  4484. .ilen = 16,
  4485. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  4486. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  4487. .rlen = 16,
  4488. .np = 2,
  4489. .tap = { 8, 8 }
  4490. }, { /* Four blocks -- for testing encryption with chunking */
  4491. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  4492. .klen = 8,
  4493. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  4494. "\x22\x33\x44\x55\x66\x77\x88\x99"
  4495. "\xca\xfe\xba\xbe\xfe\xed\xbe\xef"
  4496. "\x22\x33\x44\x55\x66\x77\x88\x99",
  4497. .ilen = 32,
  4498. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  4499. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
  4500. "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90"
  4501. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  4502. .rlen = 32,
  4503. .np = 3,
  4504. .tap = { 14, 10, 8 }
  4505. }, {
  4506. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  4507. .klen = 8,
  4508. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  4509. "\x22\x33\x44\x55\x66\x77\x88\x99"
  4510. "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
  4511. .ilen = 24,
  4512. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  4513. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
  4514. "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
  4515. .rlen = 24,
  4516. .np = 4,
  4517. .tap = { 2, 1, 3, 18 }
  4518. }, {
  4519. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  4520. .klen = 8,
  4521. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  4522. "\x22\x33\x44\x55\x66\x77\x88\x99",
  4523. .ilen = 16,
  4524. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  4525. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  4526. .rlen = 16,
  4527. .np = 5,
  4528. .tap = { 2, 2, 2, 2, 8 }
  4529. }, {
  4530. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  4531. .klen = 8,
  4532. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  4533. .ilen = 8,
  4534. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  4535. .rlen = 8,
  4536. .np = 8,
  4537. .tap = { 1, 1, 1, 1, 1, 1, 1, 1 }
  4538. }, { /* Generated with Crypto++ */
  4539. .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
  4540. .klen = 8,
  4541. .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  4542. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  4543. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  4544. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  4545. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  4546. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  4547. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  4548. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  4549. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  4550. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  4551. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  4552. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  4553. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  4554. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  4555. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  4556. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  4557. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  4558. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  4559. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  4560. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  4561. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  4562. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  4563. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  4564. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  4565. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  4566. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  4567. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  4568. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  4569. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  4570. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  4571. "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
  4572. .ilen = 248,
  4573. .result = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57"
  4574. "\x92\xB9\x77\xFF\x2F\x47\x58\xDD"
  4575. "\xD7\x8A\x91\x95\x26\x33\x78\xB2"
  4576. "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF"
  4577. "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3"
  4578. "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55"
  4579. "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD"
  4580. "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8"
  4581. "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9"
  4582. "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94"
  4583. "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4"
  4584. "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC"
  4585. "\x73\x58\x11\x1F\x81\xD7\x21\x1A"
  4586. "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5"
  4587. "\x2E\x51\x16\xCA\x09\x89\x54\x62"
  4588. "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4"
  4589. "\x62\xF0\x02\x58\x83\xAF\x30\x87"
  4590. "\x85\x3F\x01\xCD\x8E\x58\x42\xC4"
  4591. "\x41\x73\xE0\x15\x0A\xE6\x2E\x80"
  4592. "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2"
  4593. "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E"
  4594. "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F"
  4595. "\x14\xA0\x66\xAB\x79\x39\xD0\x8E"
  4596. "\xE9\x95\x61\x74\x12\xED\x07\xD7"
  4597. "\xDD\x95\xDC\x7B\x57\x25\x27\x9C"
  4598. "\x51\x96\x16\xF7\x94\x61\xB8\x87"
  4599. "\xF0\x21\x1B\x32\xFB\x07\x0F\x29"
  4600. "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9"
  4601. "\x46\x31\x4C\x5E\x2E\x95\x61\xEF"
  4602. "\xE1\x58\x39\x09\xB4\x8B\x40\xAC"
  4603. "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A",
  4604. .rlen = 248,
  4605. .also_non_np = 1,
  4606. .np = 3,
  4607. .tap = { 248 - 10, 2, 8 },
  4608. },
  4609. };
  4610. static struct cipher_testvec des_dec_tv_template[] = {
  4611. { /* From Applied Cryptography */
  4612. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  4613. .klen = 8,
  4614. .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  4615. .ilen = 8,
  4616. .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  4617. .rlen = 8,
  4618. }, { /* Sbox test from NBS */
  4619. .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
  4620. .klen = 8,
  4621. .input = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  4622. .ilen = 8,
  4623. .result = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
  4624. .rlen = 8,
  4625. }, { /* Two blocks, for chunking test */
  4626. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  4627. .klen = 8,
  4628. .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  4629. "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  4630. .ilen = 16,
  4631. .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  4632. "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
  4633. .rlen = 16,
  4634. .np = 2,
  4635. .tap = { 8, 8 }
  4636. }, {
  4637. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  4638. .klen = 8,
  4639. .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  4640. "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  4641. .ilen = 16,
  4642. .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  4643. "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
  4644. .rlen = 16,
  4645. .np = 3,
  4646. .tap = { 3, 12, 1 }
  4647. }, { /* Generated with Crypto++ */
  4648. .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
  4649. .klen = 8,
  4650. .input = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57"
  4651. "\x92\xB9\x77\xFF\x2F\x47\x58\xDD"
  4652. "\xD7\x8A\x91\x95\x26\x33\x78\xB2"
  4653. "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF"
  4654. "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3"
  4655. "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55"
  4656. "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD"
  4657. "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8"
  4658. "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9"
  4659. "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94"
  4660. "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4"
  4661. "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC"
  4662. "\x73\x58\x11\x1F\x81\xD7\x21\x1A"
  4663. "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5"
  4664. "\x2E\x51\x16\xCA\x09\x89\x54\x62"
  4665. "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4"
  4666. "\x62\xF0\x02\x58\x83\xAF\x30\x87"
  4667. "\x85\x3F\x01\xCD\x8E\x58\x42\xC4"
  4668. "\x41\x73\xE0\x15\x0A\xE6\x2E\x80"
  4669. "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2"
  4670. "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E"
  4671. "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F"
  4672. "\x14\xA0\x66\xAB\x79\x39\xD0\x8E"
  4673. "\xE9\x95\x61\x74\x12\xED\x07\xD7"
  4674. "\xDD\x95\xDC\x7B\x57\x25\x27\x9C"
  4675. "\x51\x96\x16\xF7\x94\x61\xB8\x87"
  4676. "\xF0\x21\x1B\x32\xFB\x07\x0F\x29"
  4677. "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9"
  4678. "\x46\x31\x4C\x5E\x2E\x95\x61\xEF"
  4679. "\xE1\x58\x39\x09\xB4\x8B\x40\xAC"
  4680. "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A",
  4681. .ilen = 248,
  4682. .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  4683. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  4684. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  4685. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  4686. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  4687. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  4688. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  4689. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  4690. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  4691. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  4692. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  4693. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  4694. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  4695. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  4696. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  4697. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  4698. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  4699. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  4700. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  4701. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  4702. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  4703. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  4704. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  4705. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  4706. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  4707. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  4708. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  4709. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  4710. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  4711. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  4712. "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
  4713. .rlen = 248,
  4714. .also_non_np = 1,
  4715. .np = 3,
  4716. .tap = { 248 - 10, 2, 8 },
  4717. },
  4718. };
  4719. static struct cipher_testvec des_cbc_enc_tv_template[] = {
  4720. { /* From OpenSSL */
  4721. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  4722. .klen = 8,
  4723. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  4724. .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
  4725. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  4726. "\x68\x65\x20\x74\x69\x6d\x65\x20",
  4727. .ilen = 24,
  4728. .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
  4729. "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
  4730. "\x46\x8e\x91\x15\x78\x88\xba\x68",
  4731. .rlen = 24,
  4732. }, { /* FIPS Pub 81 */
  4733. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  4734. .klen = 8,
  4735. .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
  4736. .input = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
  4737. .ilen = 8,
  4738. .result = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  4739. .rlen = 8,
  4740. }, {
  4741. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  4742. .klen = 8,
  4743. .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  4744. .input = "\x68\x65\x20\x74\x69\x6d\x65\x20",
  4745. .ilen = 8,
  4746. .result = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  4747. .rlen = 8,
  4748. }, {
  4749. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  4750. .klen = 8,
  4751. .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  4752. .input = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
  4753. .ilen = 8,
  4754. .result = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
  4755. .rlen = 8,
  4756. }, { /* Copy of openssl vector for chunk testing */
  4757. /* From OpenSSL */
  4758. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  4759. .klen = 8,
  4760. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  4761. .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
  4762. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  4763. "\x68\x65\x20\x74\x69\x6d\x65\x20",
  4764. .ilen = 24,
  4765. .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
  4766. "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
  4767. "\x46\x8e\x91\x15\x78\x88\xba\x68",
  4768. .rlen = 24,
  4769. .np = 2,
  4770. .tap = { 13, 11 }
  4771. }, { /* Generated with Crypto++ */
  4772. .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
  4773. .klen = 8,
  4774. .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
  4775. .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  4776. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  4777. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  4778. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  4779. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  4780. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  4781. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  4782. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  4783. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  4784. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  4785. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  4786. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  4787. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  4788. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  4789. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  4790. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  4791. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  4792. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  4793. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  4794. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  4795. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  4796. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  4797. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  4798. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  4799. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  4800. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  4801. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  4802. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  4803. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  4804. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  4805. "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
  4806. .ilen = 248,
  4807. .result = "\x71\xCC\x56\x1C\x87\x2C\x43\x20"
  4808. "\x1C\x20\x13\x09\xF9\x2B\x40\x47"
  4809. "\x99\x10\xD1\x1B\x65\x33\x33\xBA"
  4810. "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4"
  4811. "\x5A\x0C\x12\x96\x32\x57\xAA\x26"
  4812. "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E"
  4813. "\x81\x72\x74\xDE\x30\x19\x69\x49"
  4814. "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1"
  4815. "\xE8\x6D\x0D\x05\x83\xA5\x12\x08"
  4816. "\x47\xF8\x88\x03\x86\x51\x3C\xEF"
  4817. "\xE7\x11\x73\x4D\x44\x2B\xE2\x16"
  4818. "\xE8\xA5\x06\x50\x66\x70\x0E\x14"
  4819. "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F"
  4820. "\x56\xB6\xA7\x44\xDB\x86\xAB\x69"
  4821. "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE"
  4822. "\x49\x90\x88\x6A\x09\x8F\x76\x59"
  4823. "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A"
  4824. "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B"
  4825. "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63"
  4826. "\x80\x02\x61\x2F\xE3\x46\xB6\xB5"
  4827. "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F"
  4828. "\x20\xCF\xD2\x47\x4E\x39\x65\xB3"
  4829. "\x11\x87\xA2\x6C\x49\x7E\x36\xC7"
  4830. "\x62\x8B\x48\x0D\x6A\x64\x00\xBD"
  4831. "\x71\x91\x8C\xE9\x70\x19\x01\x4F"
  4832. "\x4E\x68\x23\xBA\xDA\x24\x2E\x45"
  4833. "\x02\x14\x33\x21\xAE\x58\x4B\xCF"
  4834. "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93"
  4835. "\xD7\x07\x8A\xD7\x18\x92\x36\x8C"
  4836. "\x82\xA9\xBD\x6A\x31\x91\x39\x11"
  4837. "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63",
  4838. .rlen = 248,
  4839. .also_non_np = 1,
  4840. .np = 3,
  4841. .tap = { 248 - 10, 2, 8 },
  4842. },
  4843. };
  4844. static struct cipher_testvec des_cbc_dec_tv_template[] = {
  4845. { /* FIPS Pub 81 */
  4846. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  4847. .klen = 8,
  4848. .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
  4849. .input = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  4850. .ilen = 8,
  4851. .result = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
  4852. .rlen = 8,
  4853. }, {
  4854. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  4855. .klen = 8,
  4856. .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  4857. .input = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  4858. .ilen = 8,
  4859. .result = "\x68\x65\x20\x74\x69\x6d\x65\x20",
  4860. .rlen = 8,
  4861. }, {
  4862. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  4863. .klen = 8,
  4864. .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  4865. .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
  4866. .ilen = 8,
  4867. .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
  4868. .rlen = 8,
  4869. }, { /* Copy of above, for chunk testing */
  4870. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  4871. .klen = 8,
  4872. .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  4873. .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
  4874. .ilen = 8,
  4875. .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
  4876. .rlen = 8,
  4877. .np = 2,
  4878. .tap = { 4, 4 }
  4879. }, { /* Generated with Crypto++ */
  4880. .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
  4881. .klen = 8,
  4882. .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
  4883. .input = "\x71\xCC\x56\x1C\x87\x2C\x43\x20"
  4884. "\x1C\x20\x13\x09\xF9\x2B\x40\x47"
  4885. "\x99\x10\xD1\x1B\x65\x33\x33\xBA"
  4886. "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4"
  4887. "\x5A\x0C\x12\x96\x32\x57\xAA\x26"
  4888. "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E"
  4889. "\x81\x72\x74\xDE\x30\x19\x69\x49"
  4890. "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1"
  4891. "\xE8\x6D\x0D\x05\x83\xA5\x12\x08"
  4892. "\x47\xF8\x88\x03\x86\x51\x3C\xEF"
  4893. "\xE7\x11\x73\x4D\x44\x2B\xE2\x16"
  4894. "\xE8\xA5\x06\x50\x66\x70\x0E\x14"
  4895. "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F"
  4896. "\x56\xB6\xA7\x44\xDB\x86\xAB\x69"
  4897. "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE"
  4898. "\x49\x90\x88\x6A\x09\x8F\x76\x59"
  4899. "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A"
  4900. "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B"
  4901. "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63"
  4902. "\x80\x02\x61\x2F\xE3\x46\xB6\xB5"
  4903. "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F"
  4904. "\x20\xCF\xD2\x47\x4E\x39\x65\xB3"
  4905. "\x11\x87\xA2\x6C\x49\x7E\x36\xC7"
  4906. "\x62\x8B\x48\x0D\x6A\x64\x00\xBD"
  4907. "\x71\x91\x8C\xE9\x70\x19\x01\x4F"
  4908. "\x4E\x68\x23\xBA\xDA\x24\x2E\x45"
  4909. "\x02\x14\x33\x21\xAE\x58\x4B\xCF"
  4910. "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93"
  4911. "\xD7\x07\x8A\xD7\x18\x92\x36\x8C"
  4912. "\x82\xA9\xBD\x6A\x31\x91\x39\x11"
  4913. "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63",
  4914. .ilen = 248,
  4915. .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  4916. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  4917. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  4918. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  4919. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  4920. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  4921. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  4922. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  4923. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  4924. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  4925. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  4926. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  4927. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  4928. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  4929. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  4930. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  4931. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  4932. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  4933. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  4934. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  4935. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  4936. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  4937. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  4938. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  4939. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  4940. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  4941. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  4942. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  4943. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  4944. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  4945. "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
  4946. .rlen = 248,
  4947. .also_non_np = 1,
  4948. .np = 3,
  4949. .tap = { 248 - 10, 2, 8 },
  4950. },
  4951. };
  4952. static struct cipher_testvec des_ctr_enc_tv_template[] = {
  4953. { /* Generated with Crypto++ */
  4954. .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
  4955. .klen = 8,
  4956. .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
  4957. .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  4958. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  4959. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  4960. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  4961. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  4962. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  4963. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  4964. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  4965. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  4966. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  4967. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  4968. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  4969. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  4970. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  4971. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  4972. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  4973. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  4974. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  4975. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  4976. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  4977. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  4978. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  4979. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  4980. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  4981. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  4982. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  4983. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  4984. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  4985. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  4986. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  4987. "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
  4988. .ilen = 248,
  4989. .result = "\x2F\x96\x06\x0F\x50\xC9\x68\x03"
  4990. "\x0F\x31\xD4\x64\xA5\x29\x77\x35"
  4991. "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E"
  4992. "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02"
  4993. "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C"
  4994. "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47"
  4995. "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B"
  4996. "\xC8\x0F\x85\xDC\x03\x13\xA9\x04"
  4997. "\x19\x40\xBE\xBE\x5C\x49\x4A\x69"
  4998. "\xED\xE8\xE1\x9E\x14\x43\x74\xDE"
  4999. "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB"
  5000. "\xBE\x4C\x91\x43\x22\x65\x72\x48"
  5001. "\xE2\x12\xED\x88\xAC\xA7\xC9\x91"
  5002. "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F"
  5003. "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA"
  5004. "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C"
  5005. "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31"
  5006. "\xB7\x30\x1C\x21\x38\xFB\x68\x8C"
  5007. "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12"
  5008. "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86"
  5009. "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B"
  5010. "\x96\x28\x72\x6B\xF3\x30\xA9\xEB"
  5011. "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7"
  5012. "\xC0\xEF\x07\xB7\x77\x2C\x00\x05"
  5013. "\x46\xBD\xFE\x53\x81\x8B\xA4\x03"
  5014. "\x20\x0F\xDB\x78\x0B\x1F\x53\x04"
  5015. "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E"
  5016. "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2"
  5017. "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD"
  5018. "\x19\x7F\x99\x19\x53\xCE\x1D\x14"
  5019. "\x69\x74\xA1\x06\x46\x0F\x4E\x75",
  5020. .rlen = 248,
  5021. .also_non_np = 1,
  5022. .np = 3,
  5023. .tap = { 248 - 10, 2, 8 },
  5024. }, { /* Generated with Crypto++ */
  5025. .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
  5026. .klen = 8,
  5027. .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
  5028. .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  5029. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  5030. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  5031. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  5032. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  5033. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  5034. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  5035. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  5036. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  5037. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  5038. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  5039. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  5040. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  5041. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  5042. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  5043. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  5044. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  5045. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  5046. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  5047. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  5048. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  5049. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  5050. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  5051. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  5052. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  5053. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  5054. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  5055. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  5056. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  5057. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  5058. "\xC6\x2F\xBB\x24\x8D\x19\x82",
  5059. .ilen = 247,
  5060. .result = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3"
  5061. "\xF4\x10\xCC\x21\x99\xEB\xDC\x15"
  5062. "\x19\x13\x93\x27\x9D\xB6\x6F\x45"
  5063. "\x17\x55\x61\x72\xC8\xD3\x7F\xA5"
  5064. "\x32\xD0\xD3\x02\x15\xA4\x05\x23"
  5065. "\x9C\x23\x61\x60\x77\x7B\x6C\x95"
  5066. "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D"
  5067. "\xC8\x47\xD5\x94\xE7\x53\xC8\x23"
  5068. "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12"
  5069. "\xA4\x42\x15\x34\xF7\x5F\xDC\x58"
  5070. "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6"
  5071. "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8"
  5072. "\x02\x82\xBB\x16\xB8\xDC\xB5\x58"
  5073. "\xC3\x2D\x79\xE4\x25\x79\x43\xF9"
  5074. "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E"
  5075. "\x04\x25\x79\xFD\x27\xFB\xC4\xEA"
  5076. "\x32\x94\x48\x92\xF3\x68\x1A\x7F"
  5077. "\x36\x33\x43\x79\xF7\xCA\xC2\x38"
  5078. "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C"
  5079. "\x40\x57\x3E\xED\x00\x9F\x22\x6E"
  5080. "\x80\x99\x0B\xCC\x40\x63\x46\x8A"
  5081. "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9"
  5082. "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D"
  5083. "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C"
  5084. "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A"
  5085. "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E"
  5086. "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0"
  5087. "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7"
  5088. "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94"
  5089. "\xA5\xA6\xE7\xB0\x51\x36\x52\x37"
  5090. "\x91\x45\x05\x3E\x58\xBF\x32",
  5091. .rlen = 247,
  5092. .also_non_np = 1,
  5093. .np = 2,
  5094. .tap = { 247 - 8, 8 },
  5095. },
  5096. };
  5097. static struct cipher_testvec des_ctr_dec_tv_template[] = {
  5098. { /* Generated with Crypto++ */
  5099. .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
  5100. .klen = 8,
  5101. .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
  5102. .input = "\x2F\x96\x06\x0F\x50\xC9\x68\x03"
  5103. "\x0F\x31\xD4\x64\xA5\x29\x77\x35"
  5104. "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E"
  5105. "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02"
  5106. "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C"
  5107. "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47"
  5108. "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B"
  5109. "\xC8\x0F\x85\xDC\x03\x13\xA9\x04"
  5110. "\x19\x40\xBE\xBE\x5C\x49\x4A\x69"
  5111. "\xED\xE8\xE1\x9E\x14\x43\x74\xDE"
  5112. "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB"
  5113. "\xBE\x4C\x91\x43\x22\x65\x72\x48"
  5114. "\xE2\x12\xED\x88\xAC\xA7\xC9\x91"
  5115. "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F"
  5116. "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA"
  5117. "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C"
  5118. "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31"
  5119. "\xB7\x30\x1C\x21\x38\xFB\x68\x8C"
  5120. "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12"
  5121. "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86"
  5122. "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B"
  5123. "\x96\x28\x72\x6B\xF3\x30\xA9\xEB"
  5124. "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7"
  5125. "\xC0\xEF\x07\xB7\x77\x2C\x00\x05"
  5126. "\x46\xBD\xFE\x53\x81\x8B\xA4\x03"
  5127. "\x20\x0F\xDB\x78\x0B\x1F\x53\x04"
  5128. "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E"
  5129. "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2"
  5130. "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD"
  5131. "\x19\x7F\x99\x19\x53\xCE\x1D\x14"
  5132. "\x69\x74\xA1\x06\x46\x0F\x4E\x75",
  5133. .ilen = 248,
  5134. .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  5135. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  5136. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  5137. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  5138. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  5139. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  5140. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  5141. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  5142. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  5143. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  5144. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  5145. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  5146. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  5147. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  5148. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  5149. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  5150. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  5151. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  5152. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  5153. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  5154. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  5155. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  5156. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  5157. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  5158. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  5159. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  5160. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  5161. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  5162. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  5163. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  5164. "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
  5165. .rlen = 248,
  5166. .also_non_np = 1,
  5167. .np = 3,
  5168. .tap = { 248 - 10, 2, 8 },
  5169. }, { /* Generated with Crypto++ */
  5170. .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
  5171. .klen = 8,
  5172. .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
  5173. .input = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3"
  5174. "\xF4\x10\xCC\x21\x99\xEB\xDC\x15"
  5175. "\x19\x13\x93\x27\x9D\xB6\x6F\x45"
  5176. "\x17\x55\x61\x72\xC8\xD3\x7F\xA5"
  5177. "\x32\xD0\xD3\x02\x15\xA4\x05\x23"
  5178. "\x9C\x23\x61\x60\x77\x7B\x6C\x95"
  5179. "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D"
  5180. "\xC8\x47\xD5\x94\xE7\x53\xC8\x23"
  5181. "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12"
  5182. "\xA4\x42\x15\x34\xF7\x5F\xDC\x58"
  5183. "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6"
  5184. "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8"
  5185. "\x02\x82\xBB\x16\xB8\xDC\xB5\x58"
  5186. "\xC3\x2D\x79\xE4\x25\x79\x43\xF9"
  5187. "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E"
  5188. "\x04\x25\x79\xFD\x27\xFB\xC4\xEA"
  5189. "\x32\x94\x48\x92\xF3\x68\x1A\x7F"
  5190. "\x36\x33\x43\x79\xF7\xCA\xC2\x38"
  5191. "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C"
  5192. "\x40\x57\x3E\xED\x00\x9F\x22\x6E"
  5193. "\x80\x99\x0B\xCC\x40\x63\x46\x8A"
  5194. "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9"
  5195. "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D"
  5196. "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C"
  5197. "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A"
  5198. "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E"
  5199. "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0"
  5200. "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7"
  5201. "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94"
  5202. "\xA5\xA6\xE7\xB0\x51\x36\x52\x37"
  5203. "\x91\x45\x05\x3E\x58\xBF\x32",
  5204. .ilen = 247,
  5205. .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  5206. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  5207. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  5208. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  5209. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  5210. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  5211. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  5212. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  5213. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  5214. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  5215. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  5216. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  5217. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  5218. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  5219. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  5220. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  5221. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  5222. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  5223. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  5224. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  5225. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  5226. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  5227. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  5228. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  5229. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  5230. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  5231. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  5232. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  5233. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  5234. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  5235. "\xC6\x2F\xBB\x24\x8D\x19\x82",
  5236. .rlen = 247,
  5237. .also_non_np = 1,
  5238. .np = 2,
  5239. .tap = { 247 - 8, 8 },
  5240. },
  5241. };
  5242. static struct cipher_testvec des3_ede_enc_tv_template[] = {
  5243. { /* These are from openssl */
  5244. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  5245. "\x55\x55\x55\x55\x55\x55\x55\x55"
  5246. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  5247. .klen = 24,
  5248. .input = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
  5249. .ilen = 8,
  5250. .result = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
  5251. .rlen = 8,
  5252. }, {
  5253. .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
  5254. "\x86\x02\x87\x66\x59\x08\x21\x98"
  5255. "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
  5256. .klen = 24,
  5257. .input = "\x73\x71\x75\x69\x67\x67\x6c\x65",
  5258. .ilen = 8,
  5259. .result = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
  5260. .rlen = 8,
  5261. }, {
  5262. .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
  5263. "\x91\x07\xd0\x15\x89\x19\x01\x01"
  5264. "\x19\x07\x92\x10\x98\x1a\x01\x01",
  5265. .klen = 24,
  5266. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  5267. .ilen = 8,
  5268. .result = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
  5269. .rlen = 8,
  5270. }, { /* Generated with Crypto++ */
  5271. .key = "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67"
  5272. "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D"
  5273. "\xCE\xEB\xB4\x51\x72\xB4\x51\x72",
  5274. .klen = 24,
  5275. .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
  5276. "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
  5277. "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
  5278. "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
  5279. "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
  5280. "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
  5281. "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
  5282. "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
  5283. "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
  5284. "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
  5285. "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
  5286. "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
  5287. "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
  5288. "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
  5289. "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
  5290. "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
  5291. "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
  5292. "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
  5293. "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
  5294. "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
  5295. "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
  5296. "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
  5297. "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
  5298. "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
  5299. "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
  5300. "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
  5301. "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
  5302. "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
  5303. "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
  5304. "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
  5305. "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
  5306. "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
  5307. "\x50\x3B\x82\x15\x99\x60\xCB\x52"
  5308. "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
  5309. "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
  5310. "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
  5311. "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
  5312. "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
  5313. "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
  5314. "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
  5315. "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
  5316. "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
  5317. "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
  5318. "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
  5319. "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
  5320. "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
  5321. "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
  5322. "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
  5323. "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
  5324. "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
  5325. "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
  5326. "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
  5327. "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
  5328. "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
  5329. "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
  5330. "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
  5331. "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
  5332. "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
  5333. "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
  5334. "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
  5335. "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
  5336. "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
  5337. .ilen = 496,
  5338. .result = "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA"
  5339. "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4"
  5340. "\x81\x01\x04\x00\x76\xFA\xED\xD3"
  5341. "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64"
  5342. "\xCA\x4E\x90\xE0\xC0\x63\x28\x92"
  5343. "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77"
  5344. "\x69\x56\xD0\x19\xAD\x00\x2D\x97"
  5345. "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2"
  5346. "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B"
  5347. "\xEA\x32\x56\xE4\x0B\xAF\x27\x36"
  5348. "\xAF\x08\xB9\x61\xB7\x48\x23\x27"
  5349. "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7"
  5350. "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6"
  5351. "\x9D\xDA\x04\x59\xE2\x09\x48\x7E"
  5352. "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E"
  5353. "\x0D\x19\xFA\x33\x0F\xEE\x36\x68"
  5354. "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA"
  5355. "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16"
  5356. "\x45\x86\x50\x01\x70\x35\x99\x92"
  5357. "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B"
  5358. "\xD2\x04\x84\x90\xC4\x27\xDF\x0A"
  5359. "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA"
  5360. "\xB3\x18\x5C\xC3\x93\x63\x5A\x68"
  5361. "\x77\x02\xBA\xED\x62\x71\xB1\xD9"
  5362. "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E"
  5363. "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4"
  5364. "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70"
  5365. "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD"
  5366. "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1"
  5367. "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2"
  5368. "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52"
  5369. "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3"
  5370. "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F"
  5371. "\xDB\xEA\x84\x13\x26\x6C\x85\x4E"
  5372. "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06"
  5373. "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2"
  5374. "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C"
  5375. "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5"
  5376. "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7"
  5377. "\xD1\x17\x25\x08\xF9\xA9\xA6\x67"
  5378. "\x38\x80\xD1\x22\xAB\x1A\xD7\x26"
  5379. "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57"
  5380. "\x31\xEC\xC9\xED\xDB\x79\xC0\x48"
  5381. "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E"
  5382. "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC"
  5383. "\x58\xC8\xDE\x51\x4E\x17\x15\x11"
  5384. "\x66\x58\xB6\x90\xDC\xDF\xA1\x49"
  5385. "\xCA\x79\xE9\x31\x31\x42\xDC\x56"
  5386. "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19"
  5387. "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90"
  5388. "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B"
  5389. "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46"
  5390. "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84"
  5391. "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA"
  5392. "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F"
  5393. "\xE4\x82\x77\xCE\x87\xC0\x09\xF0"
  5394. "\xD6\x10\x9E\x34\xE1\x0C\x67\x55"
  5395. "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA"
  5396. "\xF2\x7B\xBE\x75\x07\x42\x9D\x99"
  5397. "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6"
  5398. "\x93\x03\xD7\x51\x09\xFA\xBE\x68"
  5399. "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63",
  5400. .rlen = 496,
  5401. .also_non_np = 1,
  5402. .np = 3,
  5403. .tap = { 496 - 20, 4, 16 },
  5404. },
  5405. };
  5406. static struct cipher_testvec des3_ede_dec_tv_template[] = {
  5407. { /* These are from openssl */
  5408. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  5409. "\x55\x55\x55\x55\x55\x55\x55\x55"
  5410. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  5411. .klen = 24,
  5412. .input = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
  5413. .ilen = 8,
  5414. .result = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
  5415. .rlen = 8,
  5416. }, {
  5417. .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
  5418. "\x86\x02\x87\x66\x59\x08\x21\x98"
  5419. "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
  5420. .klen = 24,
  5421. .input = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
  5422. .ilen = 8,
  5423. .result = "\x73\x71\x75\x69\x67\x67\x6c\x65",
  5424. .rlen = 8,
  5425. }, {
  5426. .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
  5427. "\x91\x07\xd0\x15\x89\x19\x01\x01"
  5428. "\x19\x07\x92\x10\x98\x1a\x01\x01",
  5429. .klen = 24,
  5430. .input = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
  5431. .ilen = 8,
  5432. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  5433. .rlen = 8,
  5434. }, { /* Generated with Crypto++ */
  5435. .key = "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67"
  5436. "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D"
  5437. "\xCE\xEB\xB4\x51\x72\xB4\x51\x72",
  5438. .klen = 24,
  5439. .input = "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA"
  5440. "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4"
  5441. "\x81\x01\x04\x00\x76\xFA\xED\xD3"
  5442. "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64"
  5443. "\xCA\x4E\x90\xE0\xC0\x63\x28\x92"
  5444. "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77"
  5445. "\x69\x56\xD0\x19\xAD\x00\x2D\x97"
  5446. "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2"
  5447. "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B"
  5448. "\xEA\x32\x56\xE4\x0B\xAF\x27\x36"
  5449. "\xAF\x08\xB9\x61\xB7\x48\x23\x27"
  5450. "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7"
  5451. "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6"
  5452. "\x9D\xDA\x04\x59\xE2\x09\x48\x7E"
  5453. "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E"
  5454. "\x0D\x19\xFA\x33\x0F\xEE\x36\x68"
  5455. "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA"
  5456. "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16"
  5457. "\x45\x86\x50\x01\x70\x35\x99\x92"
  5458. "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B"
  5459. "\xD2\x04\x84\x90\xC4\x27\xDF\x0A"
  5460. "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA"
  5461. "\xB3\x18\x5C\xC3\x93\x63\x5A\x68"
  5462. "\x77\x02\xBA\xED\x62\x71\xB1\xD9"
  5463. "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E"
  5464. "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4"
  5465. "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70"
  5466. "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD"
  5467. "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1"
  5468. "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2"
  5469. "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52"
  5470. "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3"
  5471. "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F"
  5472. "\xDB\xEA\x84\x13\x26\x6C\x85\x4E"
  5473. "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06"
  5474. "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2"
  5475. "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C"
  5476. "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5"
  5477. "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7"
  5478. "\xD1\x17\x25\x08\xF9\xA9\xA6\x67"
  5479. "\x38\x80\xD1\x22\xAB\x1A\xD7\x26"
  5480. "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57"
  5481. "\x31\xEC\xC9\xED\xDB\x79\xC0\x48"
  5482. "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E"
  5483. "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC"
  5484. "\x58\xC8\xDE\x51\x4E\x17\x15\x11"
  5485. "\x66\x58\xB6\x90\xDC\xDF\xA1\x49"
  5486. "\xCA\x79\xE9\x31\x31\x42\xDC\x56"
  5487. "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19"
  5488. "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90"
  5489. "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B"
  5490. "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46"
  5491. "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84"
  5492. "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA"
  5493. "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F"
  5494. "\xE4\x82\x77\xCE\x87\xC0\x09\xF0"
  5495. "\xD6\x10\x9E\x34\xE1\x0C\x67\x55"
  5496. "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA"
  5497. "\xF2\x7B\xBE\x75\x07\x42\x9D\x99"
  5498. "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6"
  5499. "\x93\x03\xD7\x51\x09\xFA\xBE\x68"
  5500. "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63",
  5501. .ilen = 496,
  5502. .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
  5503. "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
  5504. "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
  5505. "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
  5506. "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
  5507. "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
  5508. "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
  5509. "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
  5510. "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
  5511. "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
  5512. "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
  5513. "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
  5514. "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
  5515. "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
  5516. "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
  5517. "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
  5518. "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
  5519. "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
  5520. "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
  5521. "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
  5522. "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
  5523. "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
  5524. "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
  5525. "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
  5526. "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
  5527. "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
  5528. "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
  5529. "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
  5530. "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
  5531. "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
  5532. "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
  5533. "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
  5534. "\x50\x3B\x82\x15\x99\x60\xCB\x52"
  5535. "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
  5536. "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
  5537. "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
  5538. "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
  5539. "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
  5540. "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
  5541. "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
  5542. "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
  5543. "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
  5544. "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
  5545. "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
  5546. "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
  5547. "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
  5548. "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
  5549. "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
  5550. "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
  5551. "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
  5552. "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
  5553. "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
  5554. "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
  5555. "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
  5556. "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
  5557. "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
  5558. "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
  5559. "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
  5560. "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
  5561. "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
  5562. "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
  5563. "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
  5564. .rlen = 496,
  5565. .also_non_np = 1,
  5566. .np = 3,
  5567. .tap = { 496 - 20, 4, 16 },
  5568. },
  5569. };
  5570. static struct cipher_testvec des3_ede_cbc_enc_tv_template[] = {
  5571. { /* Generated from openssl */
  5572. .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
  5573. "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
  5574. "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
  5575. .klen = 24,
  5576. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  5577. .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  5578. "\x53\x20\x63\x65\x65\x72\x73\x74"
  5579. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  5580. "\x20\x79\x65\x53\x72\x63\x74\x65"
  5581. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  5582. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  5583. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  5584. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  5585. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  5586. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  5587. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  5588. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  5589. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  5590. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  5591. "\x63\x65\x65\x72\x73\x74\x54\x20"
  5592. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  5593. .ilen = 128,
  5594. .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
  5595. "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
  5596. "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
  5597. "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
  5598. "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
  5599. "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
  5600. "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
  5601. "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
  5602. "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
  5603. "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
  5604. "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
  5605. "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
  5606. "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
  5607. "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
  5608. "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
  5609. "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
  5610. .rlen = 128,
  5611. }, { /* Generated with Crypto++ */
  5612. .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
  5613. "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
  5614. "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
  5615. .klen = 24,
  5616. .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
  5617. "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
  5618. .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
  5619. "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
  5620. "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
  5621. "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
  5622. "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
  5623. "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
  5624. "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
  5625. "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
  5626. "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
  5627. "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
  5628. "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
  5629. "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
  5630. "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
  5631. "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
  5632. "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
  5633. "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
  5634. "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
  5635. "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
  5636. "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
  5637. "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
  5638. "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
  5639. "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
  5640. "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
  5641. "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
  5642. "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
  5643. "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
  5644. "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
  5645. "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
  5646. "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
  5647. "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
  5648. "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
  5649. "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
  5650. "\x50\x3B\x82\x15\x99\x60\xCB\x52"
  5651. "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
  5652. "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
  5653. "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
  5654. "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
  5655. "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
  5656. "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
  5657. "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
  5658. "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
  5659. "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
  5660. "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
  5661. "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
  5662. "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
  5663. "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
  5664. "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
  5665. "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
  5666. "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
  5667. "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
  5668. "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
  5669. "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
  5670. "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
  5671. "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
  5672. "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
  5673. "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
  5674. "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
  5675. "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
  5676. "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
  5677. "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
  5678. "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
  5679. "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
  5680. .ilen = 496,
  5681. .result = "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84"
  5682. "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5"
  5683. "\x1E\x68\x8E\x85\x12\x86\x1D\x38"
  5684. "\x1C\x91\x40\xCC\x69\x6A\xD5\x35"
  5685. "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF"
  5686. "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C"
  5687. "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37"
  5688. "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90"
  5689. "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B"
  5690. "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B"
  5691. "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9"
  5692. "\xE6\xA5\xAD\x25\xE6\x17\x69\x63"
  5693. "\x11\x35\x61\x94\x88\x7B\x1C\x48"
  5694. "\xF1\x24\x20\x29\x6B\x93\x1A\x8E"
  5695. "\x43\x03\x89\xD8\xB1\xDA\x47\x7B"
  5696. "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB"
  5697. "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8"
  5698. "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73"
  5699. "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6"
  5700. "\x67\x88\xA5\x20\x6F\x5F\x97\xC7"
  5701. "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7"
  5702. "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7"
  5703. "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E"
  5704. "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6"
  5705. "\xEE\xFE\x55\xA3\x29\x65\xE0\x12"
  5706. "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96"
  5707. "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF"
  5708. "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE"
  5709. "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99"
  5710. "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D"
  5711. "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6"
  5712. "\x2B\x1C\xD5\xFB\x96\x24\x60\x60"
  5713. "\x54\x40\xB8\x62\xA4\xF8\x46\x95"
  5714. "\x73\x28\xA3\xA6\x16\x2B\x17\xE7"
  5715. "\x7A\xF8\x62\x54\x3B\x64\x69\xE1"
  5716. "\x71\x34\x29\x5B\x4E\x05\x9B\xFA"
  5717. "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59"
  5718. "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2"
  5719. "\x3B\x8E\x71\x69\x6A\x91\xB6\x65"
  5720. "\x32\x09\xB8\xE4\x09\x1F\xEA\x39"
  5721. "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0"
  5722. "\x73\x50\x08\x56\x20\x9B\x94\x23"
  5723. "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F"
  5724. "\x41\x5B\xCC\xE2\x18\xAE\x62\x89"
  5725. "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5"
  5726. "\x25\xC9\x48\x97\xB5\xD3\x17\xD5"
  5727. "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B"
  5728. "\x57\x08\xAE\x91\xF2\xB7\x57\x89"
  5729. "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF"
  5730. "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02"
  5731. "\xD4\x56\x42\x79\x79\x7F\x2A\x77"
  5732. "\x25\xE9\x7D\xC1\x88\x19\x2B\x49"
  5733. "\x6F\x46\x59\xAB\x56\x1F\x61\xE0"
  5734. "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12"
  5735. "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8"
  5736. "\x21\x85\x1A\x62\x7E\x34\xBB\xEB"
  5737. "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5"
  5738. "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38"
  5739. "\x02\x80\xA3\x28\x22\x75\xE1\xE9"
  5740. "\x90\xE9\xFA\x4B\x00\x10\xAC\x58"
  5741. "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F"
  5742. "\x95\x63\x73\xA2\x44\xAC\xF8\xA5",
  5743. .rlen = 496,
  5744. .also_non_np = 1,
  5745. .np = 3,
  5746. .tap = { 496 - 20, 4, 16 },
  5747. },
  5748. };
  5749. static struct cipher_testvec des3_ede_cbc_dec_tv_template[] = {
  5750. { /* Generated from openssl */
  5751. .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
  5752. "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
  5753. "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
  5754. .klen = 24,
  5755. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  5756. .input = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
  5757. "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
  5758. "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
  5759. "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
  5760. "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
  5761. "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
  5762. "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
  5763. "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
  5764. "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
  5765. "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
  5766. "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
  5767. "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
  5768. "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
  5769. "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
  5770. "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
  5771. "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
  5772. .ilen = 128,
  5773. .result = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  5774. "\x53\x20\x63\x65\x65\x72\x73\x74"
  5775. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  5776. "\x20\x79\x65\x53\x72\x63\x74\x65"
  5777. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  5778. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  5779. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  5780. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  5781. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  5782. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  5783. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  5784. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  5785. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  5786. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  5787. "\x63\x65\x65\x72\x73\x74\x54\x20"
  5788. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  5789. .rlen = 128,
  5790. }, { /* Generated with Crypto++ */
  5791. .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
  5792. "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
  5793. "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
  5794. .klen = 24,
  5795. .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
  5796. "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
  5797. .input = "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84"
  5798. "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5"
  5799. "\x1E\x68\x8E\x85\x12\x86\x1D\x38"
  5800. "\x1C\x91\x40\xCC\x69\x6A\xD5\x35"
  5801. "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF"
  5802. "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C"
  5803. "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37"
  5804. "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90"
  5805. "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B"
  5806. "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B"
  5807. "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9"
  5808. "\xE6\xA5\xAD\x25\xE6\x17\x69\x63"
  5809. "\x11\x35\x61\x94\x88\x7B\x1C\x48"
  5810. "\xF1\x24\x20\x29\x6B\x93\x1A\x8E"
  5811. "\x43\x03\x89\xD8\xB1\xDA\x47\x7B"
  5812. "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB"
  5813. "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8"
  5814. "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73"
  5815. "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6"
  5816. "\x67\x88\xA5\x20\x6F\x5F\x97\xC7"
  5817. "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7"
  5818. "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7"
  5819. "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E"
  5820. "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6"
  5821. "\xEE\xFE\x55\xA3\x29\x65\xE0\x12"
  5822. "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96"
  5823. "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF"
  5824. "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE"
  5825. "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99"
  5826. "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D"
  5827. "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6"
  5828. "\x2B\x1C\xD5\xFB\x96\x24\x60\x60"
  5829. "\x54\x40\xB8\x62\xA4\xF8\x46\x95"
  5830. "\x73\x28\xA3\xA6\x16\x2B\x17\xE7"
  5831. "\x7A\xF8\x62\x54\x3B\x64\x69\xE1"
  5832. "\x71\x34\x29\x5B\x4E\x05\x9B\xFA"
  5833. "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59"
  5834. "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2"
  5835. "\x3B\x8E\x71\x69\x6A\x91\xB6\x65"
  5836. "\x32\x09\xB8\xE4\x09\x1F\xEA\x39"
  5837. "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0"
  5838. "\x73\x50\x08\x56\x20\x9B\x94\x23"
  5839. "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F"
  5840. "\x41\x5B\xCC\xE2\x18\xAE\x62\x89"
  5841. "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5"
  5842. "\x25\xC9\x48\x97\xB5\xD3\x17\xD5"
  5843. "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B"
  5844. "\x57\x08\xAE\x91\xF2\xB7\x57\x89"
  5845. "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF"
  5846. "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02"
  5847. "\xD4\x56\x42\x79\x79\x7F\x2A\x77"
  5848. "\x25\xE9\x7D\xC1\x88\x19\x2B\x49"
  5849. "\x6F\x46\x59\xAB\x56\x1F\x61\xE0"
  5850. "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12"
  5851. "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8"
  5852. "\x21\x85\x1A\x62\x7E\x34\xBB\xEB"
  5853. "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5"
  5854. "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38"
  5855. "\x02\x80\xA3\x28\x22\x75\xE1\xE9"
  5856. "\x90\xE9\xFA\x4B\x00\x10\xAC\x58"
  5857. "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F"
  5858. "\x95\x63\x73\xA2\x44\xAC\xF8\xA5",
  5859. .ilen = 496,
  5860. .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
  5861. "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
  5862. "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
  5863. "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
  5864. "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
  5865. "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
  5866. "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
  5867. "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
  5868. "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
  5869. "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
  5870. "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
  5871. "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
  5872. "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
  5873. "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
  5874. "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
  5875. "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
  5876. "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
  5877. "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
  5878. "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
  5879. "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
  5880. "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
  5881. "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
  5882. "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
  5883. "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
  5884. "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
  5885. "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
  5886. "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
  5887. "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
  5888. "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
  5889. "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
  5890. "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
  5891. "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
  5892. "\x50\x3B\x82\x15\x99\x60\xCB\x52"
  5893. "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
  5894. "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
  5895. "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
  5896. "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
  5897. "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
  5898. "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
  5899. "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
  5900. "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
  5901. "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
  5902. "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
  5903. "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
  5904. "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
  5905. "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
  5906. "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
  5907. "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
  5908. "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
  5909. "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
  5910. "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
  5911. "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
  5912. "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
  5913. "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
  5914. "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
  5915. "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
  5916. "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
  5917. "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
  5918. "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
  5919. "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
  5920. "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
  5921. "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
  5922. .rlen = 496,
  5923. .also_non_np = 1,
  5924. .np = 3,
  5925. .tap = { 496 - 20, 4, 16 },
  5926. },
  5927. };
  5928. static struct cipher_testvec des3_ede_ctr_enc_tv_template[] = {
  5929. { /* Generated with Crypto++ */
  5930. .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
  5931. "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
  5932. "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
  5933. .klen = 24,
  5934. .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
  5935. "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
  5936. .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
  5937. "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
  5938. "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
  5939. "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
  5940. "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
  5941. "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
  5942. "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
  5943. "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
  5944. "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
  5945. "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
  5946. "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
  5947. "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
  5948. "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
  5949. "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
  5950. "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
  5951. "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
  5952. "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
  5953. "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
  5954. "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
  5955. "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
  5956. "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
  5957. "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
  5958. "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
  5959. "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
  5960. "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
  5961. "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
  5962. "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
  5963. "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
  5964. "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
  5965. "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
  5966. "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
  5967. "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
  5968. "\x50\x3B\x82\x15\x99\x60\xCB\x52"
  5969. "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
  5970. "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
  5971. "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
  5972. "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
  5973. "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
  5974. "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
  5975. "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
  5976. "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
  5977. "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
  5978. "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
  5979. "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
  5980. "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
  5981. "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
  5982. "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
  5983. "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
  5984. "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
  5985. "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
  5986. "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
  5987. "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
  5988. "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
  5989. "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
  5990. "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
  5991. "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
  5992. "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
  5993. "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
  5994. "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
  5995. "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
  5996. "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
  5997. "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
  5998. .ilen = 496,
  5999. .result = "\x07\xC2\x08\x20\x72\x1F\x49\xEF"
  6000. "\x19\xCD\x6F\x32\x53\x05\x22\x15"
  6001. "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9"
  6002. "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4"
  6003. "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE"
  6004. "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E"
  6005. "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C"
  6006. "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA"
  6007. "\x13\x78\xDC\x89\x12\x12\x43\xFA"
  6008. "\xF6\x12\xEF\x8D\x87\x62\x78\x83"
  6009. "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B"
  6010. "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03"
  6011. "\xBF\x45\x73\xD4\xE5\x59\x95\xD1"
  6012. "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F"
  6013. "\xA4\xD2\x39\x80\xAA\x50\x23\xF0"
  6014. "\x74\x88\x3D\xA8\x6A\x18\x79\x3B"
  6015. "\xC4\x96\x6C\x8D\x22\x40\x92\x6E"
  6016. "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7"
  6017. "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC"
  6018. "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA"
  6019. "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B"
  6020. "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B"
  6021. "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D"
  6022. "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01"
  6023. "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0"
  6024. "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA"
  6025. "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA"
  6026. "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2"
  6027. "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F"
  6028. "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9"
  6029. "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C"
  6030. "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4"
  6031. "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08"
  6032. "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D"
  6033. "\x14\x28\x0C\xCF\x99\x13\x7A\xF1"
  6034. "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1"
  6035. "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E"
  6036. "\x83\x37\x4F\x1F\x48\x30\xED\x04"
  6037. "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C"
  6038. "\x41\x8F\x63\x37\x78\x2F\x86\xA6"
  6039. "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67"
  6040. "\x52\x71\xC3\x8E\xF8\x26\x93\x72"
  6041. "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A"
  6042. "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C"
  6043. "\x52\xBC\x8B\x05\x56\xB2\xBC\x31"
  6044. "\x9B\x74\xB9\x29\x29\x96\x9A\x50"
  6045. "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4"
  6046. "\xD3\x05\x7E\x59\x55\xC3\xF4\x90"
  6047. "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1"
  6048. "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC"
  6049. "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA"
  6050. "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65"
  6051. "\x32\xDC\x48\xC4\xF2\x00\x6B\x77"
  6052. "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A"
  6053. "\xA5\x3A\x62\xC8\x91\xB1\x03\x65"
  6054. "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC"
  6055. "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0"
  6056. "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0"
  6057. "\x40\x77\x72\xC2\xEA\x0E\x3A\x78"
  6058. "\x46\xB9\x91\xB6\xE7\x3D\x51\x42"
  6059. "\xFD\x51\xB0\xC6\x2C\x63\x13\x78"
  6060. "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34",
  6061. .rlen = 496,
  6062. .also_non_np = 1,
  6063. .np = 3,
  6064. .tap = { 496 - 20, 4, 16 },
  6065. }, { /* Generated with Crypto++ */
  6066. .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
  6067. "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
  6068. "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
  6069. .klen = 24,
  6070. .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
  6071. "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
  6072. .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
  6073. "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
  6074. "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
  6075. "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
  6076. "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
  6077. "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
  6078. "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
  6079. "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
  6080. "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
  6081. "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
  6082. "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
  6083. "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
  6084. "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
  6085. "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
  6086. "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
  6087. "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
  6088. "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
  6089. "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
  6090. "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
  6091. "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
  6092. "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
  6093. "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
  6094. "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
  6095. "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
  6096. "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
  6097. "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
  6098. "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
  6099. "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
  6100. "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
  6101. "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
  6102. "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
  6103. "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
  6104. "\x50\x3B\x82\x15\x99\x60\xCB\x52"
  6105. "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
  6106. "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
  6107. "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
  6108. "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
  6109. "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
  6110. "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
  6111. "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
  6112. "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
  6113. "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
  6114. "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
  6115. "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
  6116. "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
  6117. "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
  6118. "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
  6119. "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
  6120. "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
  6121. "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
  6122. "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
  6123. "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
  6124. "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
  6125. "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
  6126. "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
  6127. "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
  6128. "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
  6129. "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
  6130. "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
  6131. "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
  6132. "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
  6133. "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47"
  6134. "\x2E\xB1\x18",
  6135. .ilen = 499,
  6136. .result = "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4"
  6137. "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7"
  6138. "\x94\x9D\x1B\xFF\x8E\x95\x57\x89"
  6139. "\x8C\x2E\x33\x70\x43\x61\xE6\xD2"
  6140. "\x82\x33\x63\xB6\xC4\x34\x5E\xF8"
  6141. "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA"
  6142. "\x7C\xA0\x55\x89\x2E\xE1\x85\x25"
  6143. "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF"
  6144. "\x08\x2E\x69\xD4\x54\xDE\x22\x84"
  6145. "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05"
  6146. "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F"
  6147. "\x58\x5C\x46\xEA\x07\x40\xDA\xE1"
  6148. "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54"
  6149. "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5"
  6150. "\x97\x5D\x61\x78\x2E\x46\xEC\x6A"
  6151. "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29"
  6152. "\x9F\x17\x33\x24\xD8\xB9\xB2\x05"
  6153. "\x93\x88\xEA\xF7\xA0\x70\x69\x49"
  6154. "\x88\x6B\x73\x40\x41\x8D\xD9\xD9"
  6155. "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A"
  6156. "\x66\xE1\xDA\xED\x10\xFF\x69\x1D"
  6157. "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2"
  6158. "\x45\x54\x8B\xA3\x70\x23\xB4\x5E"
  6159. "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2"
  6160. "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2"
  6161. "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8"
  6162. "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0"
  6163. "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E"
  6164. "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71"
  6165. "\xCE\x05\x49\x89\xBA\xD6\x72\xE7"
  6166. "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02"
  6167. "\xD6\x43\x22\xAF\xA2\xE4\x80\x85"
  6168. "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF"
  6169. "\x5C\x82\x2E\x98\x0D\x30\x41\x6B"
  6170. "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D"
  6171. "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58"
  6172. "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40"
  6173. "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC"
  6174. "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B"
  6175. "\xC6\x12\x13\x4F\xCB\x35\xBA\x35"
  6176. "\xDD\x7A\x36\x9C\x12\x57\x55\x83"
  6177. "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C"
  6178. "\x38\xCF\xBD\x79\x5B\x13\x4D\x97"
  6179. "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4"
  6180. "\x98\xE2\xBD\x77\x6B\x53\x39\x1A"
  6181. "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69"
  6182. "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15"
  6183. "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F"
  6184. "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F"
  6185. "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA"
  6186. "\x8A\x19\x08\xE1\x08\x48\x59\x51"
  6187. "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F"
  6188. "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA"
  6189. "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4"
  6190. "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED"
  6191. "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75"
  6192. "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4"
  6193. "\x97\x73\x28\xDE\xCF\xAF\x82\xBD"
  6194. "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42"
  6195. "\x42\x39\x7C\x53\xA4\xD4\xDD\x40"
  6196. "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7"
  6197. "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B"
  6198. "\xF2\x79\xD9",
  6199. .rlen = 499,
  6200. .also_non_np = 1,
  6201. .np = 2,
  6202. .tap = { 499 - 16, 16 },
  6203. },
  6204. };
  6205. static struct cipher_testvec des3_ede_ctr_dec_tv_template[] = {
  6206. { /* Generated with Crypto++ */
  6207. .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
  6208. "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
  6209. "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
  6210. .klen = 24,
  6211. .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
  6212. "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
  6213. .input = "\x07\xC2\x08\x20\x72\x1F\x49\xEF"
  6214. "\x19\xCD\x6F\x32\x53\x05\x22\x15"
  6215. "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9"
  6216. "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4"
  6217. "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE"
  6218. "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E"
  6219. "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C"
  6220. "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA"
  6221. "\x13\x78\xDC\x89\x12\x12\x43\xFA"
  6222. "\xF6\x12\xEF\x8D\x87\x62\x78\x83"
  6223. "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B"
  6224. "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03"
  6225. "\xBF\x45\x73\xD4\xE5\x59\x95\xD1"
  6226. "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F"
  6227. "\xA4\xD2\x39\x80\xAA\x50\x23\xF0"
  6228. "\x74\x88\x3D\xA8\x6A\x18\x79\x3B"
  6229. "\xC4\x96\x6C\x8D\x22\x40\x92\x6E"
  6230. "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7"
  6231. "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC"
  6232. "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA"
  6233. "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B"
  6234. "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B"
  6235. "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D"
  6236. "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01"
  6237. "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0"
  6238. "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA"
  6239. "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA"
  6240. "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2"
  6241. "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F"
  6242. "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9"
  6243. "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C"
  6244. "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4"
  6245. "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08"
  6246. "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D"
  6247. "\x14\x28\x0C\xCF\x99\x13\x7A\xF1"
  6248. "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1"
  6249. "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E"
  6250. "\x83\x37\x4F\x1F\x48\x30\xED\x04"
  6251. "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C"
  6252. "\x41\x8F\x63\x37\x78\x2F\x86\xA6"
  6253. "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67"
  6254. "\x52\x71\xC3\x8E\xF8\x26\x93\x72"
  6255. "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A"
  6256. "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C"
  6257. "\x52\xBC\x8B\x05\x56\xB2\xBC\x31"
  6258. "\x9B\x74\xB9\x29\x29\x96\x9A\x50"
  6259. "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4"
  6260. "\xD3\x05\x7E\x59\x55\xC3\xF4\x90"
  6261. "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1"
  6262. "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC"
  6263. "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA"
  6264. "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65"
  6265. "\x32\xDC\x48\xC4\xF2\x00\x6B\x77"
  6266. "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A"
  6267. "\xA5\x3A\x62\xC8\x91\xB1\x03\x65"
  6268. "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC"
  6269. "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0"
  6270. "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0"
  6271. "\x40\x77\x72\xC2\xEA\x0E\x3A\x78"
  6272. "\x46\xB9\x91\xB6\xE7\x3D\x51\x42"
  6273. "\xFD\x51\xB0\xC6\x2C\x63\x13\x78"
  6274. "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34",
  6275. .ilen = 496,
  6276. .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
  6277. "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
  6278. "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
  6279. "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
  6280. "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
  6281. "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
  6282. "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
  6283. "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
  6284. "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
  6285. "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
  6286. "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
  6287. "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
  6288. "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
  6289. "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
  6290. "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
  6291. "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
  6292. "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
  6293. "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
  6294. "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
  6295. "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
  6296. "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
  6297. "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
  6298. "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
  6299. "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
  6300. "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
  6301. "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
  6302. "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
  6303. "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
  6304. "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
  6305. "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
  6306. "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
  6307. "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
  6308. "\x50\x3B\x82\x15\x99\x60\xCB\x52"
  6309. "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
  6310. "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
  6311. "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
  6312. "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
  6313. "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
  6314. "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
  6315. "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
  6316. "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
  6317. "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
  6318. "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
  6319. "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
  6320. "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
  6321. "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
  6322. "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
  6323. "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
  6324. "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
  6325. "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
  6326. "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
  6327. "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
  6328. "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
  6329. "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
  6330. "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
  6331. "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
  6332. "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
  6333. "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
  6334. "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
  6335. "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
  6336. "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
  6337. "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
  6338. .rlen = 496,
  6339. .also_non_np = 1,
  6340. .np = 3,
  6341. .tap = { 496 - 20, 4, 16 },
  6342. }, { /* Generated with Crypto++ */
  6343. .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
  6344. "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
  6345. "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
  6346. .klen = 24,
  6347. .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
  6348. "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
  6349. .input = "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4"
  6350. "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7"
  6351. "\x94\x9D\x1B\xFF\x8E\x95\x57\x89"
  6352. "\x8C\x2E\x33\x70\x43\x61\xE6\xD2"
  6353. "\x82\x33\x63\xB6\xC4\x34\x5E\xF8"
  6354. "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA"
  6355. "\x7C\xA0\x55\x89\x2E\xE1\x85\x25"
  6356. "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF"
  6357. "\x08\x2E\x69\xD4\x54\xDE\x22\x84"
  6358. "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05"
  6359. "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F"
  6360. "\x58\x5C\x46\xEA\x07\x40\xDA\xE1"
  6361. "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54"
  6362. "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5"
  6363. "\x97\x5D\x61\x78\x2E\x46\xEC\x6A"
  6364. "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29"
  6365. "\x9F\x17\x33\x24\xD8\xB9\xB2\x05"
  6366. "\x93\x88\xEA\xF7\xA0\x70\x69\x49"
  6367. "\x88\x6B\x73\x40\x41\x8D\xD9\xD9"
  6368. "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A"
  6369. "\x66\xE1\xDA\xED\x10\xFF\x69\x1D"
  6370. "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2"
  6371. "\x45\x54\x8B\xA3\x70\x23\xB4\x5E"
  6372. "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2"
  6373. "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2"
  6374. "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8"
  6375. "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0"
  6376. "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E"
  6377. "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71"
  6378. "\xCE\x05\x49\x89\xBA\xD6\x72\xE7"
  6379. "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02"
  6380. "\xD6\x43\x22\xAF\xA2\xE4\x80\x85"
  6381. "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF"
  6382. "\x5C\x82\x2E\x98\x0D\x30\x41\x6B"
  6383. "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D"
  6384. "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58"
  6385. "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40"
  6386. "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC"
  6387. "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B"
  6388. "\xC6\x12\x13\x4F\xCB\x35\xBA\x35"
  6389. "\xDD\x7A\x36\x9C\x12\x57\x55\x83"
  6390. "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C"
  6391. "\x38\xCF\xBD\x79\x5B\x13\x4D\x97"
  6392. "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4"
  6393. "\x98\xE2\xBD\x77\x6B\x53\x39\x1A"
  6394. "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69"
  6395. "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15"
  6396. "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F"
  6397. "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F"
  6398. "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA"
  6399. "\x8A\x19\x08\xE1\x08\x48\x59\x51"
  6400. "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F"
  6401. "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA"
  6402. "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4"
  6403. "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED"
  6404. "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75"
  6405. "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4"
  6406. "\x97\x73\x28\xDE\xCF\xAF\x82\xBD"
  6407. "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42"
  6408. "\x42\x39\x7C\x53\xA4\xD4\xDD\x40"
  6409. "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7"
  6410. "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B"
  6411. "\xF2\x79\xD9",
  6412. .ilen = 499,
  6413. .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
  6414. "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
  6415. "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
  6416. "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
  6417. "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
  6418. "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
  6419. "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
  6420. "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
  6421. "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
  6422. "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
  6423. "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
  6424. "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
  6425. "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
  6426. "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
  6427. "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
  6428. "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
  6429. "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
  6430. "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
  6431. "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
  6432. "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
  6433. "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
  6434. "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
  6435. "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
  6436. "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
  6437. "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
  6438. "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
  6439. "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
  6440. "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
  6441. "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
  6442. "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
  6443. "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
  6444. "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
  6445. "\x50\x3B\x82\x15\x99\x60\xCB\x52"
  6446. "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
  6447. "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
  6448. "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
  6449. "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
  6450. "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
  6451. "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
  6452. "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
  6453. "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
  6454. "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
  6455. "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
  6456. "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
  6457. "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
  6458. "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
  6459. "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
  6460. "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
  6461. "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
  6462. "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
  6463. "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
  6464. "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
  6465. "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
  6466. "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
  6467. "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
  6468. "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
  6469. "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
  6470. "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
  6471. "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
  6472. "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
  6473. "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
  6474. "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47"
  6475. "\x2E\xB1\x18",
  6476. .rlen = 499,
  6477. .also_non_np = 1,
  6478. .np = 2,
  6479. .tap = { 499 - 16, 16 },
  6480. },
  6481. };
  6482. /*
  6483. * Blowfish test vectors.
  6484. */
  6485. #define BF_ENC_TEST_VECTORS 7
  6486. #define BF_DEC_TEST_VECTORS 7
  6487. #define BF_CBC_ENC_TEST_VECTORS 2
  6488. #define BF_CBC_DEC_TEST_VECTORS 2
  6489. #define BF_CTR_ENC_TEST_VECTORS 2
  6490. #define BF_CTR_DEC_TEST_VECTORS 2
  6491. static struct cipher_testvec bf_enc_tv_template[] = {
  6492. { /* DES test vectors from OpenSSL */
  6493. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6494. .klen = 8,
  6495. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6496. .ilen = 8,
  6497. .result = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
  6498. .rlen = 8,
  6499. }, {
  6500. .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
  6501. .klen = 8,
  6502. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6503. .ilen = 8,
  6504. .result = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
  6505. .rlen = 8,
  6506. }, {
  6507. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  6508. .klen = 8,
  6509. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  6510. .ilen = 8,
  6511. .result = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
  6512. .rlen = 8,
  6513. }, { /* Vary the keylength... */
  6514. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  6515. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
  6516. .klen = 16,
  6517. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  6518. .ilen = 8,
  6519. .result = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
  6520. .rlen = 8,
  6521. }, {
  6522. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  6523. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  6524. "\x00\x11\x22\x33\x44",
  6525. .klen = 21,
  6526. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  6527. .ilen = 8,
  6528. .result = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
  6529. .rlen = 8,
  6530. }, { /* Generated with bf488 */
  6531. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  6532. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  6533. "\x00\x11\x22\x33\x44\x55\x66\x77"
  6534. "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
  6535. "\x58\x40\x23\x64\x1a\xba\x61\x76"
  6536. "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
  6537. "\xff\xff\xff\xff\xff\xff\xff\xff",
  6538. .klen = 56,
  6539. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  6540. .ilen = 8,
  6541. .result = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
  6542. .rlen = 8,
  6543. }, { /* Generated with Crypto++ */
  6544. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  6545. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  6546. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  6547. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  6548. .klen = 32,
  6549. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  6550. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  6551. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  6552. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  6553. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  6554. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  6555. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  6556. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  6557. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  6558. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  6559. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  6560. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  6561. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  6562. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  6563. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  6564. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  6565. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  6566. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  6567. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  6568. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  6569. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  6570. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  6571. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  6572. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  6573. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  6574. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  6575. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  6576. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  6577. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  6578. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  6579. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  6580. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  6581. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  6582. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  6583. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  6584. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  6585. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  6586. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  6587. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  6588. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  6589. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  6590. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  6591. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  6592. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  6593. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  6594. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  6595. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  6596. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  6597. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  6598. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  6599. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  6600. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  6601. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  6602. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  6603. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  6604. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  6605. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  6606. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  6607. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  6608. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  6609. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  6610. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  6611. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
  6612. .ilen = 504,
  6613. .result = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F"
  6614. "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D"
  6615. "\xD7\x87\xA1\xF2\xDF\x51\x71\x26"
  6616. "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40"
  6617. "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B"
  6618. "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9"
  6619. "\xCD\xF3\x88\x39\x39\x7A\xDF\x19"
  6620. "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86"
  6621. "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5"
  6622. "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D"
  6623. "\x6E\x66\xAF\x38\x6C\xD3\x13\xED"
  6624. "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A"
  6625. "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B"
  6626. "\x9D\x5B\x54\x65\x4F\x16\x8A\x97"
  6627. "\xF3\xF6\xD4\xAA\x87\x36\x77\x72"
  6628. "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D"
  6629. "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F"
  6630. "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8"
  6631. "\x47\x82\x98\x23\x33\x36\xBC\x1B"
  6632. "\x36\xE7\xF6\xCF\x97\x37\x16\xC0"
  6633. "\x87\x31\x8B\xB0\xDB\x19\x42\xA5"
  6634. "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9"
  6635. "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71"
  6636. "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B"
  6637. "\x60\x00\x55\x57\x06\x8B\xD5\xB3"
  6638. "\x86\x30\x78\xDA\x33\x9A\x9D\xCC"
  6639. "\xBA\x0B\x81\x06\x77\x43\xC7\xC9"
  6640. "\xDB\x37\x60\x11\x45\x59\x6D\x2D"
  6641. "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C"
  6642. "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B"
  6643. "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9"
  6644. "\x98\xE4\x7F\xC3\x6E\x51\x24\x70"
  6645. "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3"
  6646. "\xE0\x8A\x44\xA2\x5C\x94\x74\x34"
  6647. "\x37\x52\x7C\x03\xE8\x8E\x97\xE1"
  6648. "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F"
  6649. "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45"
  6650. "\x55\xC5\xA7\xA3\x19\x80\x28\x51"
  6651. "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB"
  6652. "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC"
  6653. "\x3E\x42\x14\x49\x88\x51\xBF\x68"
  6654. "\x45\x75\x27\x1B\x0A\x72\xED\xAF"
  6655. "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3"
  6656. "\x34\xDD\x91\x19\x42\x3A\xCB\xDA"
  6657. "\x38\xFA\x3C\x93\x62\xF2\xE3\x81"
  6658. "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09"
  6659. "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2"
  6660. "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E"
  6661. "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC"
  6662. "\x36\x56\x6E\x85\x73\xD7\x52\xBA"
  6663. "\x35\x5E\x32\x89\x5D\x42\xF5\x36"
  6664. "\x52\x8D\x46\x7D\xC8\x71\xAD\x33"
  6665. "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC"
  6666. "\xFE\x88\xE6\x16\xE4\xC8\x13\x00"
  6667. "\x3C\xDA\x59\x32\x38\x19\xD5\xEB"
  6668. "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C"
  6669. "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B"
  6670. "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29"
  6671. "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D"
  6672. "\xC9\x0D\x59\x82\x27\x57\x9D\x42"
  6673. "\x54\x59\x09\xA5\x3D\xC5\x84\x68"
  6674. "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5"
  6675. "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4",
  6676. .rlen = 504,
  6677. .also_non_np = 1,
  6678. .np = 3,
  6679. .tap = { 504 - 10, 2, 8 },
  6680. },
  6681. };
  6682. static struct cipher_testvec bf_dec_tv_template[] = {
  6683. { /* DES test vectors from OpenSSL */
  6684. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6685. .klen = 8,
  6686. .input = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
  6687. .ilen = 8,
  6688. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6689. .rlen = 8,
  6690. }, {
  6691. .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
  6692. .klen = 8,
  6693. .input = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
  6694. .ilen = 8,
  6695. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6696. .rlen = 8,
  6697. }, {
  6698. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  6699. .klen = 8,
  6700. .input = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
  6701. .ilen = 8,
  6702. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  6703. .rlen = 8,
  6704. }, { /* Vary the keylength... */
  6705. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  6706. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
  6707. .klen = 16,
  6708. .input = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
  6709. .ilen = 8,
  6710. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  6711. .rlen = 8,
  6712. }, {
  6713. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  6714. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  6715. "\x00\x11\x22\x33\x44",
  6716. .klen = 21,
  6717. .input = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
  6718. .ilen = 8,
  6719. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  6720. .rlen = 8,
  6721. }, { /* Generated with bf488, using OpenSSL, Libgcrypt and Nettle */
  6722. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  6723. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  6724. "\x00\x11\x22\x33\x44\x55\x66\x77"
  6725. "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
  6726. "\x58\x40\x23\x64\x1a\xba\x61\x76"
  6727. "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
  6728. "\xff\xff\xff\xff\xff\xff\xff\xff",
  6729. .klen = 56,
  6730. .input = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
  6731. .ilen = 8,
  6732. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  6733. .rlen = 8,
  6734. }, { /* Generated with Crypto++ */
  6735. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  6736. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  6737. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  6738. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  6739. .klen = 32,
  6740. .input = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F"
  6741. "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D"
  6742. "\xD7\x87\xA1\xF2\xDF\x51\x71\x26"
  6743. "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40"
  6744. "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B"
  6745. "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9"
  6746. "\xCD\xF3\x88\x39\x39\x7A\xDF\x19"
  6747. "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86"
  6748. "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5"
  6749. "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D"
  6750. "\x6E\x66\xAF\x38\x6C\xD3\x13\xED"
  6751. "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A"
  6752. "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B"
  6753. "\x9D\x5B\x54\x65\x4F\x16\x8A\x97"
  6754. "\xF3\xF6\xD4\xAA\x87\x36\x77\x72"
  6755. "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D"
  6756. "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F"
  6757. "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8"
  6758. "\x47\x82\x98\x23\x33\x36\xBC\x1B"
  6759. "\x36\xE7\xF6\xCF\x97\x37\x16\xC0"
  6760. "\x87\x31\x8B\xB0\xDB\x19\x42\xA5"
  6761. "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9"
  6762. "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71"
  6763. "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B"
  6764. "\x60\x00\x55\x57\x06\x8B\xD5\xB3"
  6765. "\x86\x30\x78\xDA\x33\x9A\x9D\xCC"
  6766. "\xBA\x0B\x81\x06\x77\x43\xC7\xC9"
  6767. "\xDB\x37\x60\x11\x45\x59\x6D\x2D"
  6768. "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C"
  6769. "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B"
  6770. "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9"
  6771. "\x98\xE4\x7F\xC3\x6E\x51\x24\x70"
  6772. "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3"
  6773. "\xE0\x8A\x44\xA2\x5C\x94\x74\x34"
  6774. "\x37\x52\x7C\x03\xE8\x8E\x97\xE1"
  6775. "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F"
  6776. "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45"
  6777. "\x55\xC5\xA7\xA3\x19\x80\x28\x51"
  6778. "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB"
  6779. "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC"
  6780. "\x3E\x42\x14\x49\x88\x51\xBF\x68"
  6781. "\x45\x75\x27\x1B\x0A\x72\xED\xAF"
  6782. "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3"
  6783. "\x34\xDD\x91\x19\x42\x3A\xCB\xDA"
  6784. "\x38\xFA\x3C\x93\x62\xF2\xE3\x81"
  6785. "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09"
  6786. "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2"
  6787. "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E"
  6788. "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC"
  6789. "\x36\x56\x6E\x85\x73\xD7\x52\xBA"
  6790. "\x35\x5E\x32\x89\x5D\x42\xF5\x36"
  6791. "\x52\x8D\x46\x7D\xC8\x71\xAD\x33"
  6792. "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC"
  6793. "\xFE\x88\xE6\x16\xE4\xC8\x13\x00"
  6794. "\x3C\xDA\x59\x32\x38\x19\xD5\xEB"
  6795. "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C"
  6796. "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B"
  6797. "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29"
  6798. "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D"
  6799. "\xC9\x0D\x59\x82\x27\x57\x9D\x42"
  6800. "\x54\x59\x09\xA5\x3D\xC5\x84\x68"
  6801. "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5"
  6802. "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4",
  6803. .ilen = 504,
  6804. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  6805. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  6806. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  6807. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  6808. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  6809. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  6810. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  6811. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  6812. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  6813. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  6814. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  6815. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  6816. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  6817. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  6818. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  6819. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  6820. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  6821. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  6822. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  6823. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  6824. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  6825. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  6826. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  6827. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  6828. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  6829. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  6830. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  6831. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  6832. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  6833. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  6834. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  6835. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  6836. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  6837. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  6838. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  6839. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  6840. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  6841. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  6842. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  6843. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  6844. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  6845. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  6846. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  6847. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  6848. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  6849. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  6850. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  6851. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  6852. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  6853. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  6854. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  6855. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  6856. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  6857. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  6858. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  6859. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  6860. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  6861. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  6862. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  6863. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  6864. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  6865. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  6866. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
  6867. .rlen = 504,
  6868. .also_non_np = 1,
  6869. .np = 3,
  6870. .tap = { 504 - 10, 2, 8 },
  6871. },
  6872. };
  6873. static struct cipher_testvec bf_cbc_enc_tv_template[] = {
  6874. { /* From OpenSSL */
  6875. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  6876. "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  6877. .klen = 16,
  6878. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  6879. .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
  6880. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  6881. "\x68\x65\x20\x74\x69\x6d\x65\x20"
  6882. "\x66\x6f\x72\x20\x00\x00\x00\x00",
  6883. .ilen = 32,
  6884. .result = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
  6885. "\x05\xb1\x56\xe2\x74\x03\x97\x93"
  6886. "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
  6887. "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
  6888. .rlen = 32,
  6889. }, { /* Generated with Crypto++ */
  6890. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  6891. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  6892. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  6893. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  6894. .klen = 32,
  6895. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  6896. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  6897. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  6898. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  6899. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  6900. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  6901. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  6902. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  6903. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  6904. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  6905. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  6906. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  6907. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  6908. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  6909. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  6910. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  6911. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  6912. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  6913. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  6914. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  6915. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  6916. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  6917. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  6918. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  6919. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  6920. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  6921. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  6922. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  6923. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  6924. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  6925. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  6926. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  6927. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  6928. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  6929. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  6930. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  6931. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  6932. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  6933. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  6934. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  6935. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  6936. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  6937. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  6938. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  6939. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  6940. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  6941. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  6942. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  6943. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  6944. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  6945. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  6946. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  6947. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  6948. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  6949. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  6950. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  6951. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  6952. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  6953. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  6954. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  6955. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  6956. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  6957. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  6958. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
  6959. .ilen = 504,
  6960. .result = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06"
  6961. "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62"
  6962. "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E"
  6963. "\x1B\xD9\x02\xB6\x48\xB0\x87\x25"
  6964. "\x01\x9C\x93\x63\x51\x60\x82\xD2"
  6965. "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD"
  6966. "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F"
  6967. "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69"
  6968. "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5"
  6969. "\x43\x29\x9D\x94\xF4\x2F\x0A\x65"
  6970. "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A"
  6971. "\x60\xD3\x52\xA8\xED\x91\xDF\xE1"
  6972. "\x91\x73\x7C\x28\xA1\x14\xC3\x4C"
  6973. "\x82\x72\x4B\x7D\x7D\x32\xD5\x19"
  6974. "\xE8\xB8\x6B\x30\x21\x09\x0E\x27"
  6975. "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6"
  6976. "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13"
  6977. "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69"
  6978. "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C"
  6979. "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40"
  6980. "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43"
  6981. "\x65\xFE\x15\x40\xD0\x62\x41\x02"
  6982. "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE"
  6983. "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C"
  6984. "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B"
  6985. "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A"
  6986. "\xC2\x6D\xBD\x5E\x89\x95\x86\x43"
  6987. "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24"
  6988. "\x04\xF0\x86\x08\x78\x18\x42\xE0"
  6989. "\x39\x1B\x22\x9E\x89\x4C\x04\x6B"
  6990. "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7"
  6991. "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC"
  6992. "\xF0\x51\xCC\x93\x68\xFC\xE9\x19"
  6993. "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC"
  6994. "\x97\x18\x92\xFF\x15\x11\xCE\xED"
  6995. "\x04\x41\x05\xA3\x92\xFF\x3B\xE6"
  6996. "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04"
  6997. "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68"
  6998. "\xEF\xB3\x61\x18\xDB\x83\x9B\x39"
  6999. "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02"
  7000. "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35"
  7001. "\x75\x6F\x06\x81\x0A\x97\x4D\xF0"
  7002. "\x43\x12\x73\x77\xDB\x91\x83\x5B"
  7003. "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50"
  7004. "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F"
  7005. "\x7E\x12\x40\xB2\x3E\x19\x23\xF1"
  7006. "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87"
  7007. "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88"
  7008. "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A"
  7009. "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76"
  7010. "\x14\x48\x2E\xDE\x2A\x44\x5E\x45"
  7011. "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A"
  7012. "\xED\x73\xD3\x79\xF7\x38\x1D\xD0"
  7013. "\xC5\xF8\x69\x83\x28\x84\x87\x56"
  7014. "\x3F\xAE\x81\x04\x79\x1F\xD1\x09"
  7015. "\xC5\xE5\x05\x0D\x64\x16\xCE\x42"
  7016. "\xC5\xF8\xDB\x57\x89\x33\x22\xFC"
  7017. "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90"
  7018. "\x02\xBA\x55\x1E\x24\x3E\x02\x1D"
  7019. "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51"
  7020. "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9"
  7021. "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0"
  7022. "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4",
  7023. .rlen = 504,
  7024. .also_non_np = 1,
  7025. .np = 3,
  7026. .tap = { 504 - 10, 2, 8 },
  7027. },
  7028. };
  7029. static struct cipher_testvec bf_cbc_dec_tv_template[] = {
  7030. { /* From OpenSSL */
  7031. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  7032. "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7033. .klen = 16,
  7034. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7035. .input = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
  7036. "\x05\xb1\x56\xe2\x74\x03\x97\x93"
  7037. "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
  7038. "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
  7039. .ilen = 32,
  7040. .result = "\x37\x36\x35\x34\x33\x32\x31\x20"
  7041. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  7042. "\x68\x65\x20\x74\x69\x6d\x65\x20"
  7043. "\x66\x6f\x72\x20\x00\x00\x00\x00",
  7044. .rlen = 32,
  7045. }, { /* Generated with Crypto++ */
  7046. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  7047. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  7048. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  7049. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  7050. .klen = 32,
  7051. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  7052. .input = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06"
  7053. "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62"
  7054. "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E"
  7055. "\x1B\xD9\x02\xB6\x48\xB0\x87\x25"
  7056. "\x01\x9C\x93\x63\x51\x60\x82\xD2"
  7057. "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD"
  7058. "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F"
  7059. "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69"
  7060. "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5"
  7061. "\x43\x29\x9D\x94\xF4\x2F\x0A\x65"
  7062. "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A"
  7063. "\x60\xD3\x52\xA8\xED\x91\xDF\xE1"
  7064. "\x91\x73\x7C\x28\xA1\x14\xC3\x4C"
  7065. "\x82\x72\x4B\x7D\x7D\x32\xD5\x19"
  7066. "\xE8\xB8\x6B\x30\x21\x09\x0E\x27"
  7067. "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6"
  7068. "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13"
  7069. "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69"
  7070. "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C"
  7071. "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40"
  7072. "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43"
  7073. "\x65\xFE\x15\x40\xD0\x62\x41\x02"
  7074. "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE"
  7075. "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C"
  7076. "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B"
  7077. "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A"
  7078. "\xC2\x6D\xBD\x5E\x89\x95\x86\x43"
  7079. "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24"
  7080. "\x04\xF0\x86\x08\x78\x18\x42\xE0"
  7081. "\x39\x1B\x22\x9E\x89\x4C\x04\x6B"
  7082. "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7"
  7083. "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC"
  7084. "\xF0\x51\xCC\x93\x68\xFC\xE9\x19"
  7085. "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC"
  7086. "\x97\x18\x92\xFF\x15\x11\xCE\xED"
  7087. "\x04\x41\x05\xA3\x92\xFF\x3B\xE6"
  7088. "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04"
  7089. "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68"
  7090. "\xEF\xB3\x61\x18\xDB\x83\x9B\x39"
  7091. "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02"
  7092. "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35"
  7093. "\x75\x6F\x06\x81\x0A\x97\x4D\xF0"
  7094. "\x43\x12\x73\x77\xDB\x91\x83\x5B"
  7095. "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50"
  7096. "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F"
  7097. "\x7E\x12\x40\xB2\x3E\x19\x23\xF1"
  7098. "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87"
  7099. "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88"
  7100. "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A"
  7101. "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76"
  7102. "\x14\x48\x2E\xDE\x2A\x44\x5E\x45"
  7103. "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A"
  7104. "\xED\x73\xD3\x79\xF7\x38\x1D\xD0"
  7105. "\xC5\xF8\x69\x83\x28\x84\x87\x56"
  7106. "\x3F\xAE\x81\x04\x79\x1F\xD1\x09"
  7107. "\xC5\xE5\x05\x0D\x64\x16\xCE\x42"
  7108. "\xC5\xF8\xDB\x57\x89\x33\x22\xFC"
  7109. "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90"
  7110. "\x02\xBA\x55\x1E\x24\x3E\x02\x1D"
  7111. "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51"
  7112. "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9"
  7113. "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0"
  7114. "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4",
  7115. .ilen = 504,
  7116. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  7117. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  7118. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  7119. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  7120. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  7121. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  7122. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  7123. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  7124. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  7125. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  7126. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  7127. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  7128. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  7129. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  7130. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  7131. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  7132. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  7133. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  7134. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  7135. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  7136. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  7137. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  7138. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  7139. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  7140. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  7141. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  7142. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  7143. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  7144. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  7145. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  7146. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  7147. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  7148. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  7149. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  7150. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  7151. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  7152. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  7153. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  7154. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  7155. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  7156. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  7157. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  7158. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  7159. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  7160. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  7161. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  7162. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  7163. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  7164. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  7165. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  7166. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  7167. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  7168. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  7169. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  7170. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  7171. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  7172. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  7173. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  7174. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  7175. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  7176. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  7177. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  7178. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
  7179. .rlen = 504,
  7180. .also_non_np = 1,
  7181. .np = 3,
  7182. .tap = { 504 - 10, 2, 8 },
  7183. },
  7184. };
  7185. static struct cipher_testvec bf_ctr_enc_tv_template[] = {
  7186. { /* Generated with Crypto++ */
  7187. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  7188. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  7189. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  7190. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  7191. .klen = 32,
  7192. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  7193. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  7194. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  7195. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  7196. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  7197. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  7198. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  7199. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  7200. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  7201. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  7202. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  7203. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  7204. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  7205. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  7206. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  7207. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  7208. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  7209. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  7210. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  7211. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  7212. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  7213. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  7214. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  7215. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  7216. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  7217. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  7218. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  7219. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  7220. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  7221. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  7222. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  7223. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  7224. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  7225. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  7226. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  7227. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  7228. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  7229. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  7230. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  7231. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  7232. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  7233. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  7234. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  7235. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  7236. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  7237. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  7238. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  7239. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  7240. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  7241. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  7242. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  7243. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  7244. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  7245. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  7246. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  7247. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  7248. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  7249. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  7250. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  7251. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  7252. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  7253. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  7254. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  7255. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
  7256. .ilen = 504,
  7257. .result = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
  7258. "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
  7259. "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
  7260. "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
  7261. "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
  7262. "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
  7263. "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
  7264. "\x97\xEB\x98\x75\xC4\x73\x45\x83"
  7265. "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
  7266. "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
  7267. "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
  7268. "\x13\xD2\x96\x68\x69\x10\x67\x0C"
  7269. "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
  7270. "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
  7271. "\x88\x09\x40\x59\xBD\x12\x64\xB5"
  7272. "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
  7273. "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
  7274. "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
  7275. "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
  7276. "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
  7277. "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
  7278. "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
  7279. "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
  7280. "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
  7281. "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
  7282. "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
  7283. "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
  7284. "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
  7285. "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
  7286. "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
  7287. "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
  7288. "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
  7289. "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
  7290. "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
  7291. "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
  7292. "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
  7293. "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
  7294. "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
  7295. "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
  7296. "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
  7297. "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
  7298. "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
  7299. "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
  7300. "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
  7301. "\x82\x63\x11\xB3\x54\x49\x00\x08"
  7302. "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
  7303. "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
  7304. "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
  7305. "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
  7306. "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
  7307. "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
  7308. "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
  7309. "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
  7310. "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
  7311. "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
  7312. "\x91\x04\x94\x99\x03\x3B\x42\x6D"
  7313. "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
  7314. "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
  7315. "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
  7316. "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
  7317. "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
  7318. "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
  7319. "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29",
  7320. .rlen = 504,
  7321. }, { /* Generated with Crypto++ */
  7322. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  7323. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  7324. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  7325. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  7326. .klen = 32,
  7327. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  7328. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  7329. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  7330. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  7331. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  7332. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  7333. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  7334. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  7335. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  7336. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  7337. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  7338. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  7339. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  7340. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  7341. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  7342. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  7343. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  7344. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  7345. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  7346. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  7347. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  7348. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  7349. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  7350. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  7351. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  7352. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  7353. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  7354. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  7355. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  7356. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  7357. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  7358. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  7359. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  7360. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  7361. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  7362. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  7363. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  7364. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  7365. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  7366. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  7367. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  7368. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  7369. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  7370. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  7371. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  7372. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  7373. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  7374. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  7375. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  7376. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  7377. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  7378. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  7379. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  7380. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  7381. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  7382. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  7383. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  7384. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  7385. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  7386. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  7387. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  7388. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  7389. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  7390. "\x2B\xC2\x59\xF0\x64\xFB\x92",
  7391. .ilen = 503,
  7392. .result = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
  7393. "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
  7394. "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
  7395. "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
  7396. "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
  7397. "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
  7398. "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
  7399. "\x97\xEB\x98\x75\xC4\x73\x45\x83"
  7400. "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
  7401. "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
  7402. "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
  7403. "\x13\xD2\x96\x68\x69\x10\x67\x0C"
  7404. "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
  7405. "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
  7406. "\x88\x09\x40\x59\xBD\x12\x64\xB5"
  7407. "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
  7408. "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
  7409. "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
  7410. "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
  7411. "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
  7412. "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
  7413. "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
  7414. "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
  7415. "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
  7416. "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
  7417. "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
  7418. "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
  7419. "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
  7420. "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
  7421. "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
  7422. "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
  7423. "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
  7424. "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
  7425. "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
  7426. "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
  7427. "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
  7428. "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
  7429. "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
  7430. "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
  7431. "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
  7432. "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
  7433. "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
  7434. "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
  7435. "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
  7436. "\x82\x63\x11\xB3\x54\x49\x00\x08"
  7437. "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
  7438. "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
  7439. "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
  7440. "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
  7441. "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
  7442. "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
  7443. "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
  7444. "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
  7445. "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
  7446. "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
  7447. "\x91\x04\x94\x99\x03\x3B\x42\x6D"
  7448. "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
  7449. "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
  7450. "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
  7451. "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
  7452. "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
  7453. "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
  7454. "\xF3\x71\xEF\xEB\x4E\xBB\x4D",
  7455. .rlen = 503,
  7456. .also_non_np = 1,
  7457. .np = 2,
  7458. .tap = { 503 - 8, 8 },
  7459. }, { /* Generated with Crypto++ */
  7460. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  7461. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  7462. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  7463. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  7464. .klen = 32,
  7465. .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
  7466. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  7467. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  7468. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  7469. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  7470. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  7471. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  7472. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  7473. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  7474. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  7475. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  7476. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  7477. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  7478. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  7479. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  7480. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  7481. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  7482. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  7483. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  7484. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  7485. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  7486. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  7487. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  7488. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  7489. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  7490. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  7491. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  7492. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  7493. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  7494. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  7495. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  7496. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  7497. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  7498. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  7499. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  7500. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  7501. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  7502. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  7503. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  7504. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  7505. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  7506. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  7507. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  7508. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  7509. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  7510. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  7511. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  7512. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  7513. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  7514. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  7515. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  7516. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  7517. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  7518. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  7519. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  7520. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  7521. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  7522. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  7523. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  7524. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  7525. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  7526. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  7527. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  7528. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
  7529. .ilen = 504,
  7530. .result = "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D"
  7531. "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82"
  7532. "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F"
  7533. "\x25\xF9\x27\x21\xF2\xD2\x9A\x01"
  7534. "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE"
  7535. "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2"
  7536. "\x62\x44\x72\xB9\x5D\xC0\xF8\x37"
  7537. "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2"
  7538. "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18"
  7539. "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60"
  7540. "\xF8\x98\xA2\x39\x81\x23\x6C\xA9"
  7541. "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44"
  7542. "\x2A\x67\x7A\x88\x28\xDC\x36\x83"
  7543. "\x18\xD7\x48\x43\x17\x2B\x1B\xE6"
  7544. "\x0B\x82\x59\x14\x26\x67\x08\x09"
  7545. "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A"
  7546. "\xCD\x22\x94\x42\xF5\xBA\x74\x7E"
  7547. "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E"
  7548. "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8"
  7549. "\xF4\xCC\x19\x76\xAB\x48\x29\xAA"
  7550. "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21"
  7551. "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F"
  7552. "\x59\x28\x1A\xE4\x18\x16\xA0\x29"
  7553. "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E"
  7554. "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D"
  7555. "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD"
  7556. "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31"
  7557. "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB"
  7558. "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8"
  7559. "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F"
  7560. "\xC5\xE9\x09\x08\xDD\x22\x77\x42"
  7561. "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C"
  7562. "\xF0\xFF\x15\x8E\x84\x86\xC0\x10"
  7563. "\x0F\x8D\x33\x06\xB8\x72\xA4\x47"
  7564. "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B"
  7565. "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2"
  7566. "\x63\x66\x07\x6D\x3F\x6C\x51\x7C"
  7567. "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D"
  7568. "\xB4\x19\xD8\x19\x45\x66\x27\x02"
  7569. "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D"
  7570. "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1"
  7571. "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7"
  7572. "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53"
  7573. "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3"
  7574. "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8"
  7575. "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A"
  7576. "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E"
  7577. "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37"
  7578. "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22"
  7579. "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9"
  7580. "\x91\x51\x4E\x71\xF2\x98\x85\x16"
  7581. "\x25\x7A\x76\x8A\x51\x0E\x65\x14"
  7582. "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A"
  7583. "\xE1\xCF\x41\x72\x14\x29\x4C\xF0"
  7584. "\x20\xD9\x9A\xC5\x66\xA4\x03\x76"
  7585. "\x5B\xA4\x15\x4F\x0E\x64\x39\x40"
  7586. "\x25\xF9\x20\x22\xF5\x88\xF5\xBA"
  7587. "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24"
  7588. "\x4B\x92\x71\xD9\x2F\x77\xA7\x95"
  7589. "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB"
  7590. "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0"
  7591. "\x16\x4C\x18\x6B\xF2\x69\xA0\x07"
  7592. "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E",
  7593. .rlen = 504,
  7594. },
  7595. };
  7596. static struct cipher_testvec bf_ctr_dec_tv_template[] = {
  7597. { /* Generated with Crypto++ */
  7598. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  7599. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  7600. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  7601. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  7602. .klen = 32,
  7603. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  7604. .input = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
  7605. "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
  7606. "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
  7607. "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
  7608. "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
  7609. "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
  7610. "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
  7611. "\x97\xEB\x98\x75\xC4\x73\x45\x83"
  7612. "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
  7613. "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
  7614. "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
  7615. "\x13\xD2\x96\x68\x69\x10\x67\x0C"
  7616. "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
  7617. "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
  7618. "\x88\x09\x40\x59\xBD\x12\x64\xB5"
  7619. "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
  7620. "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
  7621. "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
  7622. "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
  7623. "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
  7624. "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
  7625. "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
  7626. "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
  7627. "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
  7628. "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
  7629. "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
  7630. "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
  7631. "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
  7632. "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
  7633. "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
  7634. "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
  7635. "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
  7636. "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
  7637. "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
  7638. "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
  7639. "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
  7640. "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
  7641. "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
  7642. "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
  7643. "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
  7644. "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
  7645. "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
  7646. "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
  7647. "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
  7648. "\x82\x63\x11\xB3\x54\x49\x00\x08"
  7649. "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
  7650. "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
  7651. "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
  7652. "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
  7653. "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
  7654. "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
  7655. "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
  7656. "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
  7657. "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
  7658. "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
  7659. "\x91\x04\x94\x99\x03\x3B\x42\x6D"
  7660. "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
  7661. "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
  7662. "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
  7663. "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
  7664. "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
  7665. "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
  7666. "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29",
  7667. .ilen = 504,
  7668. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  7669. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  7670. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  7671. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  7672. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  7673. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  7674. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  7675. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  7676. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  7677. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  7678. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  7679. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  7680. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  7681. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  7682. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  7683. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  7684. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  7685. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  7686. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  7687. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  7688. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  7689. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  7690. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  7691. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  7692. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  7693. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  7694. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  7695. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  7696. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  7697. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  7698. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  7699. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  7700. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  7701. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  7702. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  7703. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  7704. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  7705. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  7706. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  7707. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  7708. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  7709. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  7710. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  7711. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  7712. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  7713. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  7714. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  7715. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  7716. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  7717. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  7718. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  7719. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  7720. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  7721. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  7722. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  7723. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  7724. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  7725. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  7726. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  7727. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  7728. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  7729. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  7730. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
  7731. .rlen = 504,
  7732. }, { /* Generated with Crypto++ */
  7733. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  7734. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  7735. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  7736. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  7737. .klen = 32,
  7738. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  7739. .input = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
  7740. "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
  7741. "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
  7742. "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
  7743. "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
  7744. "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
  7745. "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
  7746. "\x97\xEB\x98\x75\xC4\x73\x45\x83"
  7747. "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
  7748. "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
  7749. "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
  7750. "\x13\xD2\x96\x68\x69\x10\x67\x0C"
  7751. "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
  7752. "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
  7753. "\x88\x09\x40\x59\xBD\x12\x64\xB5"
  7754. "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
  7755. "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
  7756. "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
  7757. "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
  7758. "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
  7759. "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
  7760. "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
  7761. "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
  7762. "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
  7763. "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
  7764. "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
  7765. "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
  7766. "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
  7767. "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
  7768. "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
  7769. "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
  7770. "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
  7771. "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
  7772. "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
  7773. "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
  7774. "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
  7775. "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
  7776. "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
  7777. "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
  7778. "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
  7779. "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
  7780. "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
  7781. "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
  7782. "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
  7783. "\x82\x63\x11\xB3\x54\x49\x00\x08"
  7784. "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
  7785. "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
  7786. "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
  7787. "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
  7788. "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
  7789. "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
  7790. "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
  7791. "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
  7792. "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
  7793. "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
  7794. "\x91\x04\x94\x99\x03\x3B\x42\x6D"
  7795. "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
  7796. "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
  7797. "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
  7798. "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
  7799. "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
  7800. "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
  7801. "\xF3\x71\xEF\xEB\x4E\xBB\x4D",
  7802. .ilen = 503,
  7803. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  7804. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  7805. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  7806. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  7807. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  7808. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  7809. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  7810. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  7811. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  7812. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  7813. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  7814. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  7815. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  7816. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  7817. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  7818. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  7819. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  7820. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  7821. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  7822. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  7823. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  7824. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  7825. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  7826. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  7827. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  7828. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  7829. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  7830. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  7831. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  7832. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  7833. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  7834. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  7835. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  7836. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  7837. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  7838. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  7839. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  7840. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  7841. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  7842. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  7843. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  7844. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  7845. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  7846. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  7847. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  7848. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  7849. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  7850. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  7851. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  7852. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  7853. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  7854. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  7855. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  7856. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  7857. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  7858. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  7859. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  7860. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  7861. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  7862. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  7863. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  7864. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  7865. "\x2B\xC2\x59\xF0\x64\xFB\x92",
  7866. .rlen = 503,
  7867. .also_non_np = 1,
  7868. .np = 2,
  7869. .tap = { 503 - 8, 8 },
  7870. }, { /* Generated with Crypto++ */
  7871. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  7872. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  7873. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  7874. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  7875. .klen = 32,
  7876. .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
  7877. .input = "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D"
  7878. "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82"
  7879. "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F"
  7880. "\x25\xF9\x27\x21\xF2\xD2\x9A\x01"
  7881. "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE"
  7882. "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2"
  7883. "\x62\x44\x72\xB9\x5D\xC0\xF8\x37"
  7884. "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2"
  7885. "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18"
  7886. "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60"
  7887. "\xF8\x98\xA2\x39\x81\x23\x6C\xA9"
  7888. "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44"
  7889. "\x2A\x67\x7A\x88\x28\xDC\x36\x83"
  7890. "\x18\xD7\x48\x43\x17\x2B\x1B\xE6"
  7891. "\x0B\x82\x59\x14\x26\x67\x08\x09"
  7892. "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A"
  7893. "\xCD\x22\x94\x42\xF5\xBA\x74\x7E"
  7894. "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E"
  7895. "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8"
  7896. "\xF4\xCC\x19\x76\xAB\x48\x29\xAA"
  7897. "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21"
  7898. "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F"
  7899. "\x59\x28\x1A\xE4\x18\x16\xA0\x29"
  7900. "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E"
  7901. "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D"
  7902. "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD"
  7903. "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31"
  7904. "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB"
  7905. "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8"
  7906. "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F"
  7907. "\xC5\xE9\x09\x08\xDD\x22\x77\x42"
  7908. "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C"
  7909. "\xF0\xFF\x15\x8E\x84\x86\xC0\x10"
  7910. "\x0F\x8D\x33\x06\xB8\x72\xA4\x47"
  7911. "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B"
  7912. "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2"
  7913. "\x63\x66\x07\x6D\x3F\x6C\x51\x7C"
  7914. "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D"
  7915. "\xB4\x19\xD8\x19\x45\x66\x27\x02"
  7916. "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D"
  7917. "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1"
  7918. "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7"
  7919. "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53"
  7920. "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3"
  7921. "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8"
  7922. "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A"
  7923. "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E"
  7924. "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37"
  7925. "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22"
  7926. "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9"
  7927. "\x91\x51\x4E\x71\xF2\x98\x85\x16"
  7928. "\x25\x7A\x76\x8A\x51\x0E\x65\x14"
  7929. "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A"
  7930. "\xE1\xCF\x41\x72\x14\x29\x4C\xF0"
  7931. "\x20\xD9\x9A\xC5\x66\xA4\x03\x76"
  7932. "\x5B\xA4\x15\x4F\x0E\x64\x39\x40"
  7933. "\x25\xF9\x20\x22\xF5\x88\xF5\xBA"
  7934. "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24"
  7935. "\x4B\x92\x71\xD9\x2F\x77\xA7\x95"
  7936. "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB"
  7937. "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0"
  7938. "\x16\x4C\x18\x6B\xF2\x69\xA0\x07"
  7939. "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E",
  7940. .ilen = 504,
  7941. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  7942. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  7943. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  7944. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  7945. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  7946. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  7947. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  7948. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  7949. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  7950. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  7951. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  7952. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  7953. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  7954. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  7955. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  7956. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  7957. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  7958. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  7959. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  7960. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  7961. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  7962. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  7963. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  7964. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  7965. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  7966. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  7967. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  7968. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  7969. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  7970. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  7971. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  7972. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  7973. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  7974. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  7975. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  7976. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  7977. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  7978. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  7979. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  7980. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  7981. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  7982. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  7983. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  7984. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  7985. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  7986. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  7987. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  7988. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  7989. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  7990. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  7991. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  7992. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  7993. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  7994. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  7995. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  7996. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  7997. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  7998. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  7999. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  8000. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  8001. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  8002. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  8003. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
  8004. .rlen = 504,
  8005. },
  8006. };
  8007. /*
  8008. * Twofish test vectors.
  8009. */
  8010. #define TF_ENC_TEST_VECTORS 4
  8011. #define TF_DEC_TEST_VECTORS 4
  8012. #define TF_CBC_ENC_TEST_VECTORS 5
  8013. #define TF_CBC_DEC_TEST_VECTORS 5
  8014. #define TF_CTR_ENC_TEST_VECTORS 2
  8015. #define TF_CTR_DEC_TEST_VECTORS 2
  8016. #define TF_LRW_ENC_TEST_VECTORS 8
  8017. #define TF_LRW_DEC_TEST_VECTORS 8
  8018. #define TF_XTS_ENC_TEST_VECTORS 5
  8019. #define TF_XTS_DEC_TEST_VECTORS 5
  8020. static struct cipher_testvec tf_enc_tv_template[] = {
  8021. {
  8022. .key = zeroed_string,
  8023. .klen = 16,
  8024. .input = zeroed_string,
  8025. .ilen = 16,
  8026. .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  8027. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  8028. .rlen = 16,
  8029. }, {
  8030. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  8031. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  8032. "\x00\x11\x22\x33\x44\x55\x66\x77",
  8033. .klen = 24,
  8034. .input = zeroed_string,
  8035. .ilen = 16,
  8036. .result = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
  8037. "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
  8038. .rlen = 16,
  8039. }, {
  8040. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  8041. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  8042. "\x00\x11\x22\x33\x44\x55\x66\x77"
  8043. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  8044. .klen = 32,
  8045. .input = zeroed_string,
  8046. .ilen = 16,
  8047. .result = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
  8048. "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
  8049. .rlen = 16,
  8050. }, { /* Generated with Crypto++ */
  8051. .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
  8052. "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
  8053. "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
  8054. "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
  8055. .klen = 32,
  8056. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  8057. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  8058. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  8059. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  8060. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  8061. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  8062. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  8063. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  8064. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  8065. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  8066. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  8067. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  8068. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  8069. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  8070. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  8071. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  8072. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  8073. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  8074. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  8075. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  8076. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  8077. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  8078. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  8079. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  8080. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  8081. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  8082. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  8083. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  8084. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  8085. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  8086. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  8087. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  8088. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  8089. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  8090. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  8091. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  8092. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  8093. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  8094. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  8095. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  8096. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  8097. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  8098. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  8099. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  8100. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  8101. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  8102. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  8103. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  8104. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  8105. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  8106. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  8107. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  8108. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  8109. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  8110. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  8111. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  8112. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  8113. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  8114. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  8115. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  8116. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  8117. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  8118. .ilen = 496,
  8119. .result = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF"
  8120. "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC"
  8121. "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D"
  8122. "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14"
  8123. "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5"
  8124. "\xDF\xFA\xC7\xE8\x09\x50\x76\x08"
  8125. "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05"
  8126. "\x89\xF6\x82\xF0\xD3\xDB\x06\x02"
  8127. "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43"
  8128. "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40"
  8129. "\x80\x27\x88\xBA\x2C\x74\x42\xE0"
  8130. "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A"
  8131. "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A"
  8132. "\x91\x75\x47\xBC\x67\x21\x4E\xF9"
  8133. "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C"
  8134. "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22"
  8135. "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C"
  8136. "\xC6\x24\x42\xB8\x23\x66\x80\xA9"
  8137. "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63"
  8138. "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3"
  8139. "\x33\x62\x70\xE2\x1B\x86\x7A\xA1"
  8140. "\x51\x4A\x16\xFE\x29\x63\x7E\xD0"
  8141. "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8"
  8142. "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66"
  8143. "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B"
  8144. "\xB6\x41\x42\x64\x43\xEE\x6E\x7C"
  8145. "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F"
  8146. "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97"
  8147. "\x66\xA3\x96\x0F\x1C\x25\x60\xF5"
  8148. "\x3C\x2E\x32\x69\x0E\x82\xFF\x27"
  8149. "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C"
  8150. "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A"
  8151. "\x1B\x42\x1F\x5B\x29\x19\x96\x13"
  8152. "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B"
  8153. "\x81\x77\x6D\xF4\xA0\x01\x42\xEC"
  8154. "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB"
  8155. "\x83\x54\xDF\x0F\x86\xB7\xEA\x40"
  8156. "\x46\x39\xF7\x2A\x89\x8D\x4E\x96"
  8157. "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D"
  8158. "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16"
  8159. "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D"
  8160. "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41"
  8161. "\xC6\xBD\x36\xEF\xED\x29\x50\x6D"
  8162. "\x10\xEF\x26\xE8\xA8\x93\x11\x3F"
  8163. "\x2D\x1F\x88\x20\x77\x45\xF5\x66"
  8164. "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81"
  8165. "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C"
  8166. "\xB2\x10\x7A\xCA\x05\x25\x59\xDB"
  8167. "\xC7\x28\xF5\x20\x35\x52\x9E\x62"
  8168. "\xF8\x88\x24\x1C\x4D\x84\x12\x39"
  8169. "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC"
  8170. "\x87\x66\xE6\xC0\x6B\x31\x9A\x66"
  8171. "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F"
  8172. "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD"
  8173. "\xA3\x63\xE2\x71\x4F\x03\x94\x87"
  8174. "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F"
  8175. "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D"
  8176. "\x84\x9B\x2A\xE9\x55\xDD\x46\x91"
  8177. "\x15\x33\xF3\x2B\x9B\x46\x97\x00"
  8178. "\xF0\x29\xD8\x59\x5D\x33\x37\xF9"
  8179. "\x58\x33\x9B\x78\xC7\x58\x48\x6B"
  8180. "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5",
  8181. .rlen = 496,
  8182. .also_non_np = 1,
  8183. .np = 3,
  8184. .tap = { 496 - 20, 4, 16 },
  8185. },
  8186. };
  8187. static struct cipher_testvec tf_dec_tv_template[] = {
  8188. {
  8189. .key = zeroed_string,
  8190. .klen = 16,
  8191. .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  8192. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  8193. .ilen = 16,
  8194. .result = zeroed_string,
  8195. .rlen = 16,
  8196. }, {
  8197. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  8198. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  8199. "\x00\x11\x22\x33\x44\x55\x66\x77",
  8200. .klen = 24,
  8201. .input = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
  8202. "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
  8203. .ilen = 16,
  8204. .result = zeroed_string,
  8205. .rlen = 16,
  8206. }, {
  8207. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  8208. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  8209. "\x00\x11\x22\x33\x44\x55\x66\x77"
  8210. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  8211. .klen = 32,
  8212. .input = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
  8213. "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
  8214. .ilen = 16,
  8215. .result = zeroed_string,
  8216. .rlen = 16,
  8217. }, { /* Generated with Crypto++ */
  8218. .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
  8219. "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
  8220. "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
  8221. "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
  8222. .klen = 32,
  8223. .input = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF"
  8224. "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC"
  8225. "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D"
  8226. "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14"
  8227. "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5"
  8228. "\xDF\xFA\xC7\xE8\x09\x50\x76\x08"
  8229. "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05"
  8230. "\x89\xF6\x82\xF0\xD3\xDB\x06\x02"
  8231. "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43"
  8232. "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40"
  8233. "\x80\x27\x88\xBA\x2C\x74\x42\xE0"
  8234. "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A"
  8235. "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A"
  8236. "\x91\x75\x47\xBC\x67\x21\x4E\xF9"
  8237. "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C"
  8238. "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22"
  8239. "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C"
  8240. "\xC6\x24\x42\xB8\x23\x66\x80\xA9"
  8241. "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63"
  8242. "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3"
  8243. "\x33\x62\x70\xE2\x1B\x86\x7A\xA1"
  8244. "\x51\x4A\x16\xFE\x29\x63\x7E\xD0"
  8245. "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8"
  8246. "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66"
  8247. "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B"
  8248. "\xB6\x41\x42\x64\x43\xEE\x6E\x7C"
  8249. "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F"
  8250. "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97"
  8251. "\x66\xA3\x96\x0F\x1C\x25\x60\xF5"
  8252. "\x3C\x2E\x32\x69\x0E\x82\xFF\x27"
  8253. "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C"
  8254. "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A"
  8255. "\x1B\x42\x1F\x5B\x29\x19\x96\x13"
  8256. "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B"
  8257. "\x81\x77\x6D\xF4\xA0\x01\x42\xEC"
  8258. "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB"
  8259. "\x83\x54\xDF\x0F\x86\xB7\xEA\x40"
  8260. "\x46\x39\xF7\x2A\x89\x8D\x4E\x96"
  8261. "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D"
  8262. "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16"
  8263. "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D"
  8264. "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41"
  8265. "\xC6\xBD\x36\xEF\xED\x29\x50\x6D"
  8266. "\x10\xEF\x26\xE8\xA8\x93\x11\x3F"
  8267. "\x2D\x1F\x88\x20\x77\x45\xF5\x66"
  8268. "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81"
  8269. "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C"
  8270. "\xB2\x10\x7A\xCA\x05\x25\x59\xDB"
  8271. "\xC7\x28\xF5\x20\x35\x52\x9E\x62"
  8272. "\xF8\x88\x24\x1C\x4D\x84\x12\x39"
  8273. "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC"
  8274. "\x87\x66\xE6\xC0\x6B\x31\x9A\x66"
  8275. "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F"
  8276. "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD"
  8277. "\xA3\x63\xE2\x71\x4F\x03\x94\x87"
  8278. "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F"
  8279. "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D"
  8280. "\x84\x9B\x2A\xE9\x55\xDD\x46\x91"
  8281. "\x15\x33\xF3\x2B\x9B\x46\x97\x00"
  8282. "\xF0\x29\xD8\x59\x5D\x33\x37\xF9"
  8283. "\x58\x33\x9B\x78\xC7\x58\x48\x6B"
  8284. "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5",
  8285. .ilen = 496,
  8286. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  8287. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  8288. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  8289. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  8290. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  8291. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  8292. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  8293. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  8294. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  8295. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  8296. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  8297. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  8298. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  8299. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  8300. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  8301. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  8302. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  8303. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  8304. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  8305. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  8306. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  8307. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  8308. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  8309. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  8310. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  8311. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  8312. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  8313. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  8314. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  8315. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  8316. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  8317. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  8318. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  8319. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  8320. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  8321. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  8322. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  8323. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  8324. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  8325. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  8326. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  8327. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  8328. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  8329. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  8330. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  8331. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  8332. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  8333. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  8334. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  8335. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  8336. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  8337. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  8338. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  8339. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  8340. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  8341. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  8342. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  8343. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  8344. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  8345. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  8346. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  8347. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  8348. .rlen = 496,
  8349. .also_non_np = 1,
  8350. .np = 3,
  8351. .tap = { 496 - 20, 4, 16 },
  8352. },
  8353. };
  8354. static struct cipher_testvec tf_cbc_enc_tv_template[] = {
  8355. { /* Generated with Nettle */
  8356. .key = zeroed_string,
  8357. .klen = 16,
  8358. .iv = zeroed_string,
  8359. .input = zeroed_string,
  8360. .ilen = 16,
  8361. .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  8362. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  8363. .rlen = 16,
  8364. }, {
  8365. .key = zeroed_string,
  8366. .klen = 16,
  8367. .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  8368. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  8369. .input = zeroed_string,
  8370. .ilen = 16,
  8371. .result = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  8372. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  8373. .rlen = 16,
  8374. }, {
  8375. .key = zeroed_string,
  8376. .klen = 16,
  8377. .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  8378. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  8379. .input = zeroed_string,
  8380. .ilen = 16,
  8381. .result = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  8382. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  8383. .rlen = 16,
  8384. }, {
  8385. .key = zeroed_string,
  8386. .klen = 16,
  8387. .iv = zeroed_string,
  8388. .input = zeroed_string,
  8389. .ilen = 48,
  8390. .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  8391. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
  8392. "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  8393. "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
  8394. "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  8395. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  8396. .rlen = 48,
  8397. }, { /* Generated with Crypto++ */
  8398. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  8399. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  8400. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  8401. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  8402. .klen = 32,
  8403. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  8404. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  8405. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  8406. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  8407. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  8408. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  8409. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  8410. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  8411. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  8412. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  8413. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  8414. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  8415. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  8416. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  8417. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  8418. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  8419. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  8420. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  8421. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  8422. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  8423. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  8424. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  8425. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  8426. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  8427. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  8428. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  8429. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  8430. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  8431. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  8432. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  8433. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  8434. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  8435. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  8436. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  8437. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  8438. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  8439. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  8440. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  8441. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  8442. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  8443. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  8444. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  8445. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  8446. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  8447. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  8448. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  8449. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  8450. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  8451. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  8452. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  8453. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  8454. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  8455. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  8456. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  8457. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  8458. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  8459. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  8460. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  8461. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  8462. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  8463. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  8464. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  8465. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  8466. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  8467. .ilen = 496,
  8468. .result = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1"
  8469. "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5"
  8470. "\x26\x1B\x05\x0C\x05\x12\x3F\xC0"
  8471. "\xF9\x1C\x02\x28\x40\x96\x6F\xD0"
  8472. "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE"
  8473. "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC"
  8474. "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3"
  8475. "\xB1\xD3\x44\x65\xDF\xE7\x63\x38"
  8476. "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8"
  8477. "\x43\xFC\xFE\x18\xB5\x11\x6D\x31"
  8478. "\x81\x8B\x0D\x75\xF6\x80\xEC\x84"
  8479. "\x04\xB9\xE6\x09\x63\xED\x39\xDB"
  8480. "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD"
  8481. "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63"
  8482. "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80"
  8483. "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68"
  8484. "\x45\xDD\xC8\x83\x1D\x41\x96\x0D"
  8485. "\x91\x2E\x05\xD3\x59\x82\xE0\x43"
  8486. "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF"
  8487. "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C"
  8488. "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3"
  8489. "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC"
  8490. "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF"
  8491. "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38"
  8492. "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34"
  8493. "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60"
  8494. "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7"
  8495. "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8"
  8496. "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25"
  8497. "\x94\x70\x74\x0E\x1D\xC5\xBC\x12"
  8498. "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55"
  8499. "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3"
  8500. "\x75\x42\x62\x04\x31\x1F\x95\x7C"
  8501. "\x66\x1A\x97\xDC\x2F\x40\x5C\x39"
  8502. "\x78\xE6\x02\xDB\x49\xE1\xC6\x47"
  8503. "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93"
  8504. "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7"
  8505. "\xC2\x89\xF3\x91\x88\x83\x3D\xF0"
  8506. "\x29\xA2\xCD\xB5\x79\x16\xC2\x40"
  8507. "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4"
  8508. "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B"
  8509. "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF"
  8510. "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA"
  8511. "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C"
  8512. "\x78\xB6\xC9\xBF\xF9\x78\x57\x88"
  8513. "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8"
  8514. "\xEE\xC4\xBE\x7B\x55\x59\x00\x48"
  8515. "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C"
  8516. "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE"
  8517. "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D"
  8518. "\xBC\x68\x9C\x91\x2A\x59\x57\x04"
  8519. "\xED\x1A\x1E\x00\xB1\x85\x92\x04"
  8520. "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7"
  8521. "\x4C\x3E\xB0\xE7\x86\x62\x68\x91"
  8522. "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93"
  8523. "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64"
  8524. "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD"
  8525. "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1"
  8526. "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39"
  8527. "\x69\xA1\x62\xBD\x49\x3A\x9D\x91"
  8528. "\x30\x70\x56\xA4\x37\xDD\x7C\xC0"
  8529. "\x0A\xA3\x30\x10\x26\x25\x41\x2C",
  8530. .rlen = 496,
  8531. .also_non_np = 1,
  8532. .np = 3,
  8533. .tap = { 496 - 20, 4, 16 },
  8534. },
  8535. };
  8536. static struct cipher_testvec tf_cbc_dec_tv_template[] = {
  8537. { /* Reverse of the first four above */
  8538. .key = zeroed_string,
  8539. .klen = 16,
  8540. .iv = zeroed_string,
  8541. .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  8542. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  8543. .ilen = 16,
  8544. .result = zeroed_string,
  8545. .rlen = 16,
  8546. }, {
  8547. .key = zeroed_string,
  8548. .klen = 16,
  8549. .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  8550. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  8551. .input = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  8552. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  8553. .ilen = 16,
  8554. .result = zeroed_string,
  8555. .rlen = 16,
  8556. }, {
  8557. .key = zeroed_string,
  8558. .klen = 16,
  8559. .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  8560. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  8561. .input = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  8562. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  8563. .ilen = 16,
  8564. .result = zeroed_string,
  8565. .rlen = 16,
  8566. }, {
  8567. .key = zeroed_string,
  8568. .klen = 16,
  8569. .iv = zeroed_string,
  8570. .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  8571. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
  8572. "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  8573. "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
  8574. "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  8575. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  8576. .ilen = 48,
  8577. .result = zeroed_string,
  8578. .rlen = 48,
  8579. }, { /* Generated with Crypto++ */
  8580. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  8581. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  8582. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  8583. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  8584. .klen = 32,
  8585. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  8586. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  8587. .input = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1"
  8588. "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5"
  8589. "\x26\x1B\x05\x0C\x05\x12\x3F\xC0"
  8590. "\xF9\x1C\x02\x28\x40\x96\x6F\xD0"
  8591. "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE"
  8592. "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC"
  8593. "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3"
  8594. "\xB1\xD3\x44\x65\xDF\xE7\x63\x38"
  8595. "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8"
  8596. "\x43\xFC\xFE\x18\xB5\x11\x6D\x31"
  8597. "\x81\x8B\x0D\x75\xF6\x80\xEC\x84"
  8598. "\x04\xB9\xE6\x09\x63\xED\x39\xDB"
  8599. "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD"
  8600. "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63"
  8601. "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80"
  8602. "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68"
  8603. "\x45\xDD\xC8\x83\x1D\x41\x96\x0D"
  8604. "\x91\x2E\x05\xD3\x59\x82\xE0\x43"
  8605. "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF"
  8606. "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C"
  8607. "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3"
  8608. "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC"
  8609. "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF"
  8610. "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38"
  8611. "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34"
  8612. "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60"
  8613. "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7"
  8614. "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8"
  8615. "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25"
  8616. "\x94\x70\x74\x0E\x1D\xC5\xBC\x12"
  8617. "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55"
  8618. "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3"
  8619. "\x75\x42\x62\x04\x31\x1F\x95\x7C"
  8620. "\x66\x1A\x97\xDC\x2F\x40\x5C\x39"
  8621. "\x78\xE6\x02\xDB\x49\xE1\xC6\x47"
  8622. "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93"
  8623. "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7"
  8624. "\xC2\x89\xF3\x91\x88\x83\x3D\xF0"
  8625. "\x29\xA2\xCD\xB5\x79\x16\xC2\x40"
  8626. "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4"
  8627. "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B"
  8628. "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF"
  8629. "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA"
  8630. "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C"
  8631. "\x78\xB6\xC9\xBF\xF9\x78\x57\x88"
  8632. "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8"
  8633. "\xEE\xC4\xBE\x7B\x55\x59\x00\x48"
  8634. "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C"
  8635. "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE"
  8636. "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D"
  8637. "\xBC\x68\x9C\x91\x2A\x59\x57\x04"
  8638. "\xED\x1A\x1E\x00\xB1\x85\x92\x04"
  8639. "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7"
  8640. "\x4C\x3E\xB0\xE7\x86\x62\x68\x91"
  8641. "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93"
  8642. "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64"
  8643. "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD"
  8644. "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1"
  8645. "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39"
  8646. "\x69\xA1\x62\xBD\x49\x3A\x9D\x91"
  8647. "\x30\x70\x56\xA4\x37\xDD\x7C\xC0"
  8648. "\x0A\xA3\x30\x10\x26\x25\x41\x2C",
  8649. .ilen = 496,
  8650. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  8651. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  8652. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  8653. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  8654. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  8655. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  8656. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  8657. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  8658. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  8659. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  8660. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  8661. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  8662. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  8663. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  8664. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  8665. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  8666. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  8667. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  8668. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  8669. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  8670. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  8671. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  8672. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  8673. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  8674. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  8675. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  8676. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  8677. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  8678. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  8679. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  8680. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  8681. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  8682. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  8683. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  8684. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  8685. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  8686. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  8687. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  8688. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  8689. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  8690. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  8691. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  8692. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  8693. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  8694. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  8695. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  8696. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  8697. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  8698. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  8699. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  8700. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  8701. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  8702. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  8703. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  8704. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  8705. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  8706. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  8707. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  8708. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  8709. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  8710. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  8711. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  8712. .rlen = 496,
  8713. .also_non_np = 1,
  8714. .np = 3,
  8715. .tap = { 496 - 20, 4, 16 },
  8716. },
  8717. };
  8718. static struct cipher_testvec tf_ctr_enc_tv_template[] = {
  8719. { /* Generated with Crypto++ */
  8720. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  8721. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  8722. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  8723. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  8724. .klen = 32,
  8725. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  8726. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  8727. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  8728. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  8729. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  8730. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  8731. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  8732. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  8733. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  8734. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  8735. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  8736. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  8737. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  8738. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  8739. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  8740. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  8741. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  8742. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  8743. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  8744. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  8745. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  8746. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  8747. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  8748. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  8749. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  8750. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  8751. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  8752. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  8753. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  8754. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  8755. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  8756. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  8757. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  8758. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  8759. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  8760. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  8761. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  8762. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  8763. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  8764. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  8765. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  8766. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  8767. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  8768. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  8769. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  8770. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  8771. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  8772. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  8773. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  8774. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  8775. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  8776. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  8777. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  8778. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  8779. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  8780. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  8781. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  8782. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  8783. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  8784. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  8785. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  8786. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  8787. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  8788. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  8789. .ilen = 496,
  8790. .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
  8791. "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
  8792. "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
  8793. "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
  8794. "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
  8795. "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
  8796. "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
  8797. "\x01\x41\x21\x12\x38\xAB\x52\x4F"
  8798. "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
  8799. "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
  8800. "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
  8801. "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
  8802. "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
  8803. "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
  8804. "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
  8805. "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
  8806. "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
  8807. "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
  8808. "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
  8809. "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
  8810. "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
  8811. "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
  8812. "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
  8813. "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
  8814. "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
  8815. "\x23\x61\x48\xEA\x80\x04\x27\xAA"
  8816. "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
  8817. "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
  8818. "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
  8819. "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
  8820. "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
  8821. "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
  8822. "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
  8823. "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
  8824. "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
  8825. "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
  8826. "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
  8827. "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
  8828. "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
  8829. "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
  8830. "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
  8831. "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
  8832. "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
  8833. "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
  8834. "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
  8835. "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
  8836. "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
  8837. "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
  8838. "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
  8839. "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
  8840. "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
  8841. "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
  8842. "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
  8843. "\x11\xE9\x43\x83\x76\xAA\x53\x37"
  8844. "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
  8845. "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
  8846. "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
  8847. "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
  8848. "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
  8849. "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
  8850. "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
  8851. "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF",
  8852. .rlen = 496,
  8853. }, { /* Generated with Crypto++ */
  8854. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  8855. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  8856. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  8857. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  8858. .klen = 32,
  8859. .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
  8860. "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
  8861. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  8862. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  8863. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  8864. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  8865. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  8866. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  8867. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  8868. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  8869. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  8870. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  8871. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  8872. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  8873. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  8874. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  8875. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  8876. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  8877. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  8878. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  8879. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  8880. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  8881. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  8882. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  8883. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  8884. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  8885. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  8886. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  8887. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  8888. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  8889. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  8890. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  8891. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  8892. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  8893. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  8894. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  8895. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  8896. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  8897. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  8898. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  8899. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  8900. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  8901. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  8902. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  8903. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  8904. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  8905. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  8906. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  8907. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  8908. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  8909. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  8910. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  8911. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  8912. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  8913. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  8914. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  8915. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  8916. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  8917. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  8918. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  8919. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  8920. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  8921. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  8922. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  8923. .ilen = 496,
  8924. .result = "\xEB\x44\xAF\x49\x27\xB8\xFB\x44"
  8925. "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C"
  8926. "\x53\xC8\x16\x38\xDE\x40\x4F\x91"
  8927. "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA"
  8928. "\x88\x7E\x89\xE9\x67\x2B\x83\xA2"
  8929. "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B"
  8930. "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3"
  8931. "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33"
  8932. "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E"
  8933. "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0"
  8934. "\x64\x89\x9F\x6A\x27\x96\x07\xA6"
  8935. "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01"
  8936. "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34"
  8937. "\x39\x18\x09\xA4\x82\x59\x78\xE7"
  8938. "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2"
  8939. "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3"
  8940. "\xE6\x87\x31\x9E\x16\x85\xAD\xB1"
  8941. "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E"
  8942. "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3"
  8943. "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF"
  8944. "\x89\x16\x4D\x2D\xA2\x26\x33\x72"
  8945. "\x18\x33\x7E\xD6\xD2\x16\xA4\x54"
  8946. "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB"
  8947. "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2"
  8948. "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19"
  8949. "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E"
  8950. "\xAC\x00\xE3\x50\x63\x4A\x80\x9A"
  8951. "\x05\xBC\x50\x39\xD3\x32\xD9\x0D"
  8952. "\xE3\x20\x0D\x75\x54\xEC\xE6\x31"
  8953. "\x14\xB9\x3A\x59\x00\x43\x37\x8E"
  8954. "\x8C\x5A\x79\x62\x14\x76\x8A\xAE"
  8955. "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D"
  8956. "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60"
  8957. "\xC9\x87\xB1\x79\x1E\xA5\x86\x68"
  8958. "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73"
  8959. "\xD0\xDA\x75\x77\x9E\x05\x27\xF1"
  8960. "\x08\xA9\x66\x64\x6C\xBC\x82\x17"
  8961. "\x2C\x23\x5F\x62\x4D\x02\x1A\x58"
  8962. "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF"
  8963. "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83"
  8964. "\x95\x87\x13\x57\x60\xD7\xB5\xB1"
  8965. "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D"
  8966. "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF"
  8967. "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A"
  8968. "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8"
  8969. "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0"
  8970. "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC"
  8971. "\xDE\x55\x1B\x50\x14\x53\x44\x17"
  8972. "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A"
  8973. "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B"
  8974. "\x1A\x09\x97\xA9\xB6\x97\x79\x06"
  8975. "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1"
  8976. "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5"
  8977. "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D"
  8978. "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23"
  8979. "\x41\x67\xA1\x24\x99\x7E\xCC\x9B"
  8980. "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A"
  8981. "\xF4\x78\xFD\x79\x62\x63\x4F\x14"
  8982. "\xD6\x11\x11\x04\x05\x5F\x7E\xEA"
  8983. "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54"
  8984. "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B"
  8985. "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D",
  8986. .rlen = 496,
  8987. }, { /* Generated with Crypto++ */
  8988. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  8989. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  8990. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  8991. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  8992. .klen = 32,
  8993. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  8994. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  8995. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  8996. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  8997. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  8998. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  8999. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  9000. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  9001. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  9002. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  9003. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  9004. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  9005. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  9006. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  9007. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  9008. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  9009. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  9010. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  9011. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  9012. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  9013. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  9014. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  9015. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  9016. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  9017. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  9018. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  9019. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  9020. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  9021. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  9022. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  9023. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  9024. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  9025. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  9026. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  9027. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  9028. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  9029. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  9030. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  9031. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  9032. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  9033. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  9034. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  9035. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  9036. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  9037. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  9038. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  9039. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  9040. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  9041. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  9042. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  9043. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  9044. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  9045. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  9046. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  9047. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  9048. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  9049. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  9050. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  9051. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  9052. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  9053. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  9054. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  9055. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  9056. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  9057. "\x2B\xC2\x59",
  9058. .ilen = 499,
  9059. .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
  9060. "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
  9061. "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
  9062. "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
  9063. "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
  9064. "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
  9065. "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
  9066. "\x01\x41\x21\x12\x38\xAB\x52\x4F"
  9067. "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
  9068. "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
  9069. "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
  9070. "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
  9071. "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
  9072. "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
  9073. "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
  9074. "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
  9075. "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
  9076. "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
  9077. "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
  9078. "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
  9079. "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
  9080. "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
  9081. "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
  9082. "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
  9083. "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
  9084. "\x23\x61\x48\xEA\x80\x04\x27\xAA"
  9085. "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
  9086. "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
  9087. "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
  9088. "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
  9089. "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
  9090. "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
  9091. "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
  9092. "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
  9093. "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
  9094. "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
  9095. "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
  9096. "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
  9097. "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
  9098. "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
  9099. "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
  9100. "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
  9101. "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
  9102. "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
  9103. "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
  9104. "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
  9105. "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
  9106. "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
  9107. "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
  9108. "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
  9109. "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
  9110. "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
  9111. "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
  9112. "\x11\xE9\x43\x83\x76\xAA\x53\x37"
  9113. "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
  9114. "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
  9115. "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
  9116. "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
  9117. "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
  9118. "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
  9119. "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
  9120. "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF"
  9121. "\x6C\x82\x9D",
  9122. .rlen = 499,
  9123. .also_non_np = 1,
  9124. .np = 2,
  9125. .tap = { 499 - 16, 16 },
  9126. },
  9127. };
  9128. static struct cipher_testvec tf_ctr_dec_tv_template[] = {
  9129. { /* Generated with Crypto++ */
  9130. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  9131. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  9132. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  9133. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  9134. .klen = 32,
  9135. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  9136. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  9137. .input = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
  9138. "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
  9139. "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
  9140. "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
  9141. "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
  9142. "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
  9143. "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
  9144. "\x01\x41\x21\x12\x38\xAB\x52\x4F"
  9145. "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
  9146. "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
  9147. "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
  9148. "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
  9149. "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
  9150. "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
  9151. "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
  9152. "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
  9153. "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
  9154. "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
  9155. "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
  9156. "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
  9157. "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
  9158. "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
  9159. "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
  9160. "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
  9161. "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
  9162. "\x23\x61\x48\xEA\x80\x04\x27\xAA"
  9163. "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
  9164. "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
  9165. "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
  9166. "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
  9167. "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
  9168. "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
  9169. "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
  9170. "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
  9171. "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
  9172. "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
  9173. "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
  9174. "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
  9175. "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
  9176. "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
  9177. "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
  9178. "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
  9179. "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
  9180. "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
  9181. "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
  9182. "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
  9183. "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
  9184. "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
  9185. "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
  9186. "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
  9187. "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
  9188. "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
  9189. "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
  9190. "\x11\xE9\x43\x83\x76\xAA\x53\x37"
  9191. "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
  9192. "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
  9193. "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
  9194. "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
  9195. "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
  9196. "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
  9197. "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
  9198. "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF",
  9199. .ilen = 496,
  9200. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  9201. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  9202. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  9203. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  9204. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  9205. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  9206. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  9207. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  9208. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  9209. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  9210. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  9211. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  9212. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  9213. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  9214. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  9215. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  9216. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  9217. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  9218. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  9219. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  9220. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  9221. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  9222. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  9223. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  9224. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  9225. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  9226. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  9227. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  9228. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  9229. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  9230. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  9231. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  9232. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  9233. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  9234. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  9235. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  9236. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  9237. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  9238. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  9239. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  9240. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  9241. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  9242. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  9243. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  9244. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  9245. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  9246. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  9247. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  9248. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  9249. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  9250. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  9251. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  9252. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  9253. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  9254. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  9255. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  9256. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  9257. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  9258. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  9259. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  9260. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  9261. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  9262. .rlen = 496,
  9263. }, { /* Generated with Crypto++ */
  9264. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  9265. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  9266. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  9267. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  9268. .klen = 32,
  9269. .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
  9270. "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
  9271. .input = "\xEB\x44\xAF\x49\x27\xB8\xFB\x44"
  9272. "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C"
  9273. "\x53\xC8\x16\x38\xDE\x40\x4F\x91"
  9274. "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA"
  9275. "\x88\x7E\x89\xE9\x67\x2B\x83\xA2"
  9276. "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B"
  9277. "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3"
  9278. "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33"
  9279. "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E"
  9280. "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0"
  9281. "\x64\x89\x9F\x6A\x27\x96\x07\xA6"
  9282. "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01"
  9283. "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34"
  9284. "\x39\x18\x09\xA4\x82\x59\x78\xE7"
  9285. "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2"
  9286. "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3"
  9287. "\xE6\x87\x31\x9E\x16\x85\xAD\xB1"
  9288. "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E"
  9289. "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3"
  9290. "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF"
  9291. "\x89\x16\x4D\x2D\xA2\x26\x33\x72"
  9292. "\x18\x33\x7E\xD6\xD2\x16\xA4\x54"
  9293. "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB"
  9294. "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2"
  9295. "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19"
  9296. "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E"
  9297. "\xAC\x00\xE3\x50\x63\x4A\x80\x9A"
  9298. "\x05\xBC\x50\x39\xD3\x32\xD9\x0D"
  9299. "\xE3\x20\x0D\x75\x54\xEC\xE6\x31"
  9300. "\x14\xB9\x3A\x59\x00\x43\x37\x8E"
  9301. "\x8C\x5A\x79\x62\x14\x76\x8A\xAE"
  9302. "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D"
  9303. "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60"
  9304. "\xC9\x87\xB1\x79\x1E\xA5\x86\x68"
  9305. "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73"
  9306. "\xD0\xDA\x75\x77\x9E\x05\x27\xF1"
  9307. "\x08\xA9\x66\x64\x6C\xBC\x82\x17"
  9308. "\x2C\x23\x5F\x62\x4D\x02\x1A\x58"
  9309. "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF"
  9310. "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83"
  9311. "\x95\x87\x13\x57\x60\xD7\xB5\xB1"
  9312. "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D"
  9313. "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF"
  9314. "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A"
  9315. "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8"
  9316. "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0"
  9317. "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC"
  9318. "\xDE\x55\x1B\x50\x14\x53\x44\x17"
  9319. "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A"
  9320. "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B"
  9321. "\x1A\x09\x97\xA9\xB6\x97\x79\x06"
  9322. "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1"
  9323. "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5"
  9324. "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D"
  9325. "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23"
  9326. "\x41\x67\xA1\x24\x99\x7E\xCC\x9B"
  9327. "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A"
  9328. "\xF4\x78\xFD\x79\x62\x63\x4F\x14"
  9329. "\xD6\x11\x11\x04\x05\x5F\x7E\xEA"
  9330. "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54"
  9331. "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B"
  9332. "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D",
  9333. .ilen = 496,
  9334. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  9335. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  9336. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  9337. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  9338. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  9339. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  9340. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  9341. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  9342. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  9343. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  9344. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  9345. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  9346. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  9347. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  9348. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  9349. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  9350. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  9351. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  9352. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  9353. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  9354. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  9355. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  9356. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  9357. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  9358. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  9359. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  9360. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  9361. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  9362. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  9363. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  9364. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  9365. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  9366. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  9367. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  9368. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  9369. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  9370. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  9371. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  9372. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  9373. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  9374. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  9375. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  9376. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  9377. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  9378. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  9379. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  9380. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  9381. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  9382. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  9383. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  9384. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  9385. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  9386. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  9387. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  9388. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  9389. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  9390. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  9391. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  9392. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  9393. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  9394. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  9395. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  9396. .rlen = 496,
  9397. }, { /* Generated with Crypto++ */
  9398. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  9399. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  9400. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  9401. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  9402. .klen = 32,
  9403. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  9404. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  9405. .input = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
  9406. "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
  9407. "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
  9408. "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
  9409. "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
  9410. "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
  9411. "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
  9412. "\x01\x41\x21\x12\x38\xAB\x52\x4F"
  9413. "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
  9414. "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
  9415. "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
  9416. "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
  9417. "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
  9418. "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
  9419. "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
  9420. "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
  9421. "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
  9422. "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
  9423. "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
  9424. "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
  9425. "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
  9426. "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
  9427. "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
  9428. "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
  9429. "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
  9430. "\x23\x61\x48\xEA\x80\x04\x27\xAA"
  9431. "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
  9432. "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
  9433. "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
  9434. "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
  9435. "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
  9436. "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
  9437. "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
  9438. "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
  9439. "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
  9440. "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
  9441. "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
  9442. "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
  9443. "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
  9444. "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
  9445. "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
  9446. "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
  9447. "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
  9448. "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
  9449. "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
  9450. "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
  9451. "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
  9452. "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
  9453. "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
  9454. "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
  9455. "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
  9456. "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
  9457. "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
  9458. "\x11\xE9\x43\x83\x76\xAA\x53\x37"
  9459. "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
  9460. "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
  9461. "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
  9462. "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
  9463. "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
  9464. "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
  9465. "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
  9466. "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF"
  9467. "\x6C\x82\x9D",
  9468. .ilen = 499,
  9469. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  9470. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  9471. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  9472. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  9473. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  9474. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  9475. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  9476. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  9477. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  9478. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  9479. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  9480. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  9481. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  9482. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  9483. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  9484. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  9485. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  9486. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  9487. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  9488. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  9489. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  9490. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  9491. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  9492. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  9493. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  9494. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  9495. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  9496. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  9497. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  9498. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  9499. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  9500. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  9501. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  9502. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  9503. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  9504. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  9505. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  9506. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  9507. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  9508. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  9509. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  9510. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  9511. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  9512. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  9513. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  9514. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  9515. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  9516. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  9517. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  9518. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  9519. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  9520. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  9521. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  9522. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  9523. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  9524. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  9525. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  9526. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  9527. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  9528. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  9529. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  9530. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  9531. "\x2B\xC2\x59",
  9532. .rlen = 499,
  9533. .also_non_np = 1,
  9534. .np = 2,
  9535. .tap = { 499 - 16, 16 },
  9536. },
  9537. };
  9538. static struct cipher_testvec tf_lrw_enc_tv_template[] = {
  9539. /* Generated from AES-LRW test vectors */
  9540. {
  9541. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  9542. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  9543. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  9544. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  9545. .klen = 32,
  9546. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  9547. "\x00\x00\x00\x00\x00\x00\x00\x01",
  9548. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  9549. "\x38\x39\x41\x42\x43\x44\x45\x46",
  9550. .ilen = 16,
  9551. .result = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b"
  9552. "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee",
  9553. .rlen = 16,
  9554. }, {
  9555. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  9556. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  9557. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  9558. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  9559. .klen = 32,
  9560. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  9561. "\x00\x00\x00\x00\x00\x00\x00\x02",
  9562. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  9563. "\x38\x39\x41\x42\x43\x44\x45\x46",
  9564. .ilen = 16,
  9565. .result = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9"
  9566. "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd",
  9567. .rlen = 16,
  9568. }, {
  9569. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  9570. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  9571. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  9572. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  9573. .klen = 32,
  9574. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  9575. "\x00\x00\x00\x02\x00\x00\x00\x00",
  9576. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  9577. "\x38\x39\x41\x42\x43\x44\x45\x46",
  9578. .ilen = 16,
  9579. .result = "\x85\xa7\x56\x67\x08\xfa\x42\xe1"
  9580. "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4",
  9581. .rlen = 16,
  9582. }, {
  9583. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  9584. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  9585. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  9586. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  9587. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  9588. .klen = 40,
  9589. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  9590. "\x00\x00\x00\x00\x00\x00\x00\x01",
  9591. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  9592. "\x38\x39\x41\x42\x43\x44\x45\x46",
  9593. .ilen = 16,
  9594. .result = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c"
  9595. "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5",
  9596. .rlen = 16,
  9597. }, {
  9598. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  9599. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  9600. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  9601. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  9602. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  9603. .klen = 40,
  9604. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  9605. "\x00\x00\x00\x02\x00\x00\x00\x00",
  9606. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  9607. "\x38\x39\x41\x42\x43\x44\x45\x46",
  9608. .ilen = 16,
  9609. .result = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a"
  9610. "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4",
  9611. .rlen = 16,
  9612. }, {
  9613. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  9614. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  9615. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  9616. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  9617. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  9618. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  9619. .klen = 48,
  9620. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  9621. "\x00\x00\x00\x00\x00\x00\x00\x01",
  9622. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  9623. "\x38\x39\x41\x42\x43\x44\x45\x46",
  9624. .ilen = 16,
  9625. .result = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58"
  9626. "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76",
  9627. .rlen = 16,
  9628. }, {
  9629. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  9630. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  9631. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  9632. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  9633. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  9634. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  9635. .klen = 48,
  9636. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  9637. "\x00\x00\x00\x02\x00\x00\x00\x00",
  9638. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  9639. "\x38\x39\x41\x42\x43\x44\x45\x46",
  9640. .ilen = 16,
  9641. .result = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75"
  9642. "\x17\x66\x5e\x0c\x14\xa1\x3d\x40",
  9643. .rlen = 16,
  9644. }, {
  9645. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  9646. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  9647. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  9648. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  9649. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  9650. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  9651. .klen = 48,
  9652. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  9653. "\x00\x00\x00\x00\x00\x00\x00\x01",
  9654. .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  9655. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  9656. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  9657. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  9658. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  9659. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  9660. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  9661. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  9662. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  9663. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  9664. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  9665. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  9666. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  9667. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  9668. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  9669. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  9670. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  9671. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  9672. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  9673. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  9674. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  9675. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  9676. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  9677. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  9678. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  9679. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  9680. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  9681. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  9682. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  9683. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  9684. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  9685. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  9686. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  9687. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  9688. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  9689. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  9690. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  9691. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  9692. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  9693. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  9694. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  9695. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  9696. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  9697. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  9698. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  9699. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  9700. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  9701. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  9702. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  9703. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  9704. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  9705. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  9706. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  9707. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  9708. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  9709. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  9710. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  9711. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  9712. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  9713. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  9714. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  9715. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  9716. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  9717. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  9718. .ilen = 512,
  9719. .result = "\x30\x38\xeb\xaf\x12\x43\x1a\x89"
  9720. "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9"
  9721. "\x08\xc3\x0d\xdd\x95\xab\x19\x96"
  9722. "\x27\x52\x41\xc3\xca\xfb\xf6\xee"
  9723. "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a"
  9724. "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45"
  9725. "\x42\xe9\x29\xc0\xb4\x07\xb4\x31"
  9726. "\x66\x77\x72\xb5\xb6\xb3\x57\x46"
  9727. "\x34\x9a\xfe\x03\xaf\x6b\x36\x07"
  9728. "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d"
  9729. "\xfb\x6d\x82\x51\xb6\x98\xd0\x71"
  9730. "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d"
  9731. "\x72\x2b\x54\x13\xe3\x6d\x79\x37"
  9732. "\xa9\x39\x2c\xdf\x21\xab\x87\xd5"
  9733. "\xee\xef\x9a\x12\x50\x39\x2e\x1b"
  9734. "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac"
  9735. "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08"
  9736. "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25"
  9737. "\x31\x9d\xef\xb1\x1d\x27\x55\x04"
  9738. "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a"
  9739. "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb"
  9740. "\x26\xbe\x4f\x27\x04\x42\xd1\x44"
  9741. "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf"
  9742. "\x1d\x28\x14\xfd\xb1\x1a\x34\x18"
  9743. "\xf5\x1e\x28\x69\x95\x6a\x5a\xba"
  9744. "\x8e\xb2\x58\x1d\x28\x17\x13\x3d"
  9745. "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8"
  9746. "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b"
  9747. "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a"
  9748. "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a"
  9749. "\x63\xa5\x99\x82\x09\x72\x8f\xc6"
  9750. "\xa4\x62\x24\x69\x8c\x2d\x26\x00"
  9751. "\x99\x83\x91\xd6\xc6\xcf\x57\x67"
  9752. "\x38\xea\xf2\xfc\x29\xe0\x73\x39"
  9753. "\xf9\x13\x94\x6d\xe2\x58\x28\x75"
  9754. "\x3e\xae\x71\x90\x07\x70\x1c\x38"
  9755. "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef"
  9756. "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22"
  9757. "\x82\x09\xe3\x18\x3f\x4f\x48\xfc"
  9758. "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b"
  9759. "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e"
  9760. "\xc3\xac\x4a\xed\xe7\x82\xef\x31"
  9761. "\x1f\x1a\x51\x1e\x29\x60\xc8\x98"
  9762. "\x93\x51\x1d\x3d\x62\x59\x83\x82"
  9763. "\x0c\xf1\xd7\x8d\xac\x33\x44\x81"
  9764. "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4"
  9765. "\xec\xdc\x24\xfd\x0e\x1a\x79\x94"
  9766. "\x34\xb0\x62\xfa\x98\x49\x26\x1f"
  9767. "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe"
  9768. "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc"
  9769. "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c"
  9770. "\xdb\xf6\x21\x80\xf7\x5a\x37\x15"
  9771. "\x0c\xe3\x36\xc8\x74\x75\x20\x91"
  9772. "\xdf\x52\x2d\x0c\xe7\x45\xff\x46"
  9773. "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6"
  9774. "\x26\xa2\x5d\x7d\x61\xbf\x10\x46"
  9775. "\x57\x8d\x05\x96\x70\x0b\xd6\x41"
  9776. "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd"
  9777. "\x5f\x92\x81\x6e\x35\x03\xd4\x72"
  9778. "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23"
  9779. "\x45\x5d\xec\x72\xc1\x52\xef\x2e"
  9780. "\x81\x00\xd3\xfe\x4c\x3c\x05\x61"
  9781. "\x80\x18\xc4\x6c\x03\xd3\xb7\xba"
  9782. "\x11\xd7\xb8\x6e\xea\xe1\x80\x30",
  9783. .rlen = 512,
  9784. .also_non_np = 1,
  9785. .np = 3,
  9786. .tap = { 512 - 20, 4, 16 },
  9787. },
  9788. };
  9789. static struct cipher_testvec tf_lrw_dec_tv_template[] = {
  9790. /* Generated from AES-LRW test vectors */
  9791. /* same as enc vectors with input and result reversed */
  9792. {
  9793. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  9794. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  9795. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  9796. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  9797. .klen = 32,
  9798. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  9799. "\x00\x00\x00\x00\x00\x00\x00\x01",
  9800. .input = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b"
  9801. "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee",
  9802. .ilen = 16,
  9803. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  9804. "\x38\x39\x41\x42\x43\x44\x45\x46",
  9805. .rlen = 16,
  9806. }, {
  9807. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  9808. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  9809. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  9810. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  9811. .klen = 32,
  9812. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  9813. "\x00\x00\x00\x00\x00\x00\x00\x02",
  9814. .input = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9"
  9815. "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd",
  9816. .ilen = 16,
  9817. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  9818. "\x38\x39\x41\x42\x43\x44\x45\x46",
  9819. .rlen = 16,
  9820. }, {
  9821. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  9822. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  9823. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  9824. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  9825. .klen = 32,
  9826. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  9827. "\x00\x00\x00\x02\x00\x00\x00\x00",
  9828. .input = "\x85\xa7\x56\x67\x08\xfa\x42\xe1"
  9829. "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4",
  9830. .ilen = 16,
  9831. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  9832. "\x38\x39\x41\x42\x43\x44\x45\x46",
  9833. .rlen = 16,
  9834. }, {
  9835. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  9836. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  9837. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  9838. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  9839. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  9840. .klen = 40,
  9841. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  9842. "\x00\x00\x00\x00\x00\x00\x00\x01",
  9843. .input = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c"
  9844. "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5",
  9845. .ilen = 16,
  9846. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  9847. "\x38\x39\x41\x42\x43\x44\x45\x46",
  9848. .rlen = 16,
  9849. }, {
  9850. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  9851. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  9852. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  9853. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  9854. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  9855. .klen = 40,
  9856. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  9857. "\x00\x00\x00\x02\x00\x00\x00\x00",
  9858. .input = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a"
  9859. "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4",
  9860. .ilen = 16,
  9861. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  9862. "\x38\x39\x41\x42\x43\x44\x45\x46",
  9863. .rlen = 16,
  9864. }, {
  9865. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  9866. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  9867. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  9868. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  9869. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  9870. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  9871. .klen = 48,
  9872. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  9873. "\x00\x00\x00\x00\x00\x00\x00\x01",
  9874. .input = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58"
  9875. "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76",
  9876. .ilen = 16,
  9877. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  9878. "\x38\x39\x41\x42\x43\x44\x45\x46",
  9879. .rlen = 16,
  9880. }, {
  9881. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  9882. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  9883. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  9884. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  9885. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  9886. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  9887. .klen = 48,
  9888. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  9889. "\x00\x00\x00\x02\x00\x00\x00\x00",
  9890. .input = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75"
  9891. "\x17\x66\x5e\x0c\x14\xa1\x3d\x40",
  9892. .ilen = 16,
  9893. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  9894. "\x38\x39\x41\x42\x43\x44\x45\x46",
  9895. .rlen = 16,
  9896. }, {
  9897. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  9898. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  9899. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  9900. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  9901. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  9902. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  9903. .klen = 48,
  9904. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  9905. "\x00\x00\x00\x00\x00\x00\x00\x01",
  9906. .input = "\x30\x38\xeb\xaf\x12\x43\x1a\x89"
  9907. "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9"
  9908. "\x08\xc3\x0d\xdd\x95\xab\x19\x96"
  9909. "\x27\x52\x41\xc3\xca\xfb\xf6\xee"
  9910. "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a"
  9911. "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45"
  9912. "\x42\xe9\x29\xc0\xb4\x07\xb4\x31"
  9913. "\x66\x77\x72\xb5\xb6\xb3\x57\x46"
  9914. "\x34\x9a\xfe\x03\xaf\x6b\x36\x07"
  9915. "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d"
  9916. "\xfb\x6d\x82\x51\xb6\x98\xd0\x71"
  9917. "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d"
  9918. "\x72\x2b\x54\x13\xe3\x6d\x79\x37"
  9919. "\xa9\x39\x2c\xdf\x21\xab\x87\xd5"
  9920. "\xee\xef\x9a\x12\x50\x39\x2e\x1b"
  9921. "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac"
  9922. "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08"
  9923. "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25"
  9924. "\x31\x9d\xef\xb1\x1d\x27\x55\x04"
  9925. "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a"
  9926. "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb"
  9927. "\x26\xbe\x4f\x27\x04\x42\xd1\x44"
  9928. "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf"
  9929. "\x1d\x28\x14\xfd\xb1\x1a\x34\x18"
  9930. "\xf5\x1e\x28\x69\x95\x6a\x5a\xba"
  9931. "\x8e\xb2\x58\x1d\x28\x17\x13\x3d"
  9932. "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8"
  9933. "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b"
  9934. "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a"
  9935. "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a"
  9936. "\x63\xa5\x99\x82\x09\x72\x8f\xc6"
  9937. "\xa4\x62\x24\x69\x8c\x2d\x26\x00"
  9938. "\x99\x83\x91\xd6\xc6\xcf\x57\x67"
  9939. "\x38\xea\xf2\xfc\x29\xe0\x73\x39"
  9940. "\xf9\x13\x94\x6d\xe2\x58\x28\x75"
  9941. "\x3e\xae\x71\x90\x07\x70\x1c\x38"
  9942. "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef"
  9943. "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22"
  9944. "\x82\x09\xe3\x18\x3f\x4f\x48\xfc"
  9945. "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b"
  9946. "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e"
  9947. "\xc3\xac\x4a\xed\xe7\x82\xef\x31"
  9948. "\x1f\x1a\x51\x1e\x29\x60\xc8\x98"
  9949. "\x93\x51\x1d\x3d\x62\x59\x83\x82"
  9950. "\x0c\xf1\xd7\x8d\xac\x33\x44\x81"
  9951. "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4"
  9952. "\xec\xdc\x24\xfd\x0e\x1a\x79\x94"
  9953. "\x34\xb0\x62\xfa\x98\x49\x26\x1f"
  9954. "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe"
  9955. "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc"
  9956. "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c"
  9957. "\xdb\xf6\x21\x80\xf7\x5a\x37\x15"
  9958. "\x0c\xe3\x36\xc8\x74\x75\x20\x91"
  9959. "\xdf\x52\x2d\x0c\xe7\x45\xff\x46"
  9960. "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6"
  9961. "\x26\xa2\x5d\x7d\x61\xbf\x10\x46"
  9962. "\x57\x8d\x05\x96\x70\x0b\xd6\x41"
  9963. "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd"
  9964. "\x5f\x92\x81\x6e\x35\x03\xd4\x72"
  9965. "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23"
  9966. "\x45\x5d\xec\x72\xc1\x52\xef\x2e"
  9967. "\x81\x00\xd3\xfe\x4c\x3c\x05\x61"
  9968. "\x80\x18\xc4\x6c\x03\xd3\xb7\xba"
  9969. "\x11\xd7\xb8\x6e\xea\xe1\x80\x30",
  9970. .ilen = 512,
  9971. .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  9972. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  9973. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  9974. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  9975. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  9976. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  9977. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  9978. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  9979. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  9980. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  9981. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  9982. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  9983. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  9984. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  9985. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  9986. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  9987. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  9988. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  9989. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  9990. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  9991. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  9992. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  9993. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  9994. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  9995. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  9996. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  9997. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  9998. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  9999. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  10000. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  10001. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  10002. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  10003. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  10004. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  10005. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  10006. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  10007. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  10008. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  10009. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  10010. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  10011. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  10012. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  10013. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  10014. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  10015. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  10016. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  10017. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  10018. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  10019. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  10020. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  10021. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  10022. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  10023. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  10024. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  10025. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  10026. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  10027. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  10028. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  10029. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  10030. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  10031. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  10032. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  10033. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  10034. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  10035. .rlen = 512,
  10036. .also_non_np = 1,
  10037. .np = 3,
  10038. .tap = { 512 - 20, 4, 16 },
  10039. },
  10040. };
  10041. static struct cipher_testvec tf_xts_enc_tv_template[] = {
  10042. /* Generated from AES-XTS test vectors */
  10043. {
  10044. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  10045. "\x00\x00\x00\x00\x00\x00\x00\x00"
  10046. "\x00\x00\x00\x00\x00\x00\x00\x00"
  10047. "\x00\x00\x00\x00\x00\x00\x00\x00",
  10048. .klen = 32,
  10049. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  10050. "\x00\x00\x00\x00\x00\x00\x00\x00",
  10051. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  10052. "\x00\x00\x00\x00\x00\x00\x00\x00"
  10053. "\x00\x00\x00\x00\x00\x00\x00\x00"
  10054. "\x00\x00\x00\x00\x00\x00\x00\x00",
  10055. .ilen = 32,
  10056. .result = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac"
  10057. "\x30\x74\xe4\x44\x52\x77\x97\x43"
  10058. "\xa7\x60\xb2\x45\x2e\xf9\x00\x90"
  10059. "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0",
  10060. .rlen = 32,
  10061. }, {
  10062. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  10063. "\x11\x11\x11\x11\x11\x11\x11\x11"
  10064. "\x22\x22\x22\x22\x22\x22\x22\x22"
  10065. "\x22\x22\x22\x22\x22\x22\x22\x22",
  10066. .klen = 32,
  10067. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  10068. "\x00\x00\x00\x00\x00\x00\x00\x00",
  10069. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  10070. "\x44\x44\x44\x44\x44\x44\x44\x44"
  10071. "\x44\x44\x44\x44\x44\x44\x44\x44"
  10072. "\x44\x44\x44\x44\x44\x44\x44\x44",
  10073. .ilen = 32,
  10074. .result = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f"
  10075. "\x32\xd3\xbd\x36\x05\x15\x44\x2c"
  10076. "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5"
  10077. "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9",
  10078. .rlen = 32,
  10079. }, {
  10080. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  10081. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  10082. "\x22\x22\x22\x22\x22\x22\x22\x22"
  10083. "\x22\x22\x22\x22\x22\x22\x22\x22",
  10084. .klen = 32,
  10085. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  10086. "\x00\x00\x00\x00\x00\x00\x00\x00",
  10087. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  10088. "\x44\x44\x44\x44\x44\x44\x44\x44"
  10089. "\x44\x44\x44\x44\x44\x44\x44\x44"
  10090. "\x44\x44\x44\x44\x44\x44\x44\x44",
  10091. .ilen = 32,
  10092. .result = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde"
  10093. "\x40\x0c\x89\x56\xf6\x4d\xa7\x07"
  10094. "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2"
  10095. "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea",
  10096. .rlen = 32,
  10097. }, {
  10098. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  10099. "\x23\x53\x60\x28\x74\x71\x35\x26"
  10100. "\x31\x41\x59\x26\x53\x58\x97\x93"
  10101. "\x23\x84\x62\x64\x33\x83\x27\x95",
  10102. .klen = 32,
  10103. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  10104. "\x00\x00\x00\x00\x00\x00\x00\x00",
  10105. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  10106. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  10107. "\x10\x11\x12\x13\x14\x15\x16\x17"
  10108. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  10109. "\x20\x21\x22\x23\x24\x25\x26\x27"
  10110. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  10111. "\x30\x31\x32\x33\x34\x35\x36\x37"
  10112. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  10113. "\x40\x41\x42\x43\x44\x45\x46\x47"
  10114. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  10115. "\x50\x51\x52\x53\x54\x55\x56\x57"
  10116. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  10117. "\x60\x61\x62\x63\x64\x65\x66\x67"
  10118. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  10119. "\x70\x71\x72\x73\x74\x75\x76\x77"
  10120. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  10121. "\x80\x81\x82\x83\x84\x85\x86\x87"
  10122. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  10123. "\x90\x91\x92\x93\x94\x95\x96\x97"
  10124. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  10125. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  10126. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  10127. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  10128. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  10129. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  10130. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  10131. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  10132. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  10133. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  10134. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  10135. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  10136. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  10137. "\x00\x01\x02\x03\x04\x05\x06\x07"
  10138. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  10139. "\x10\x11\x12\x13\x14\x15\x16\x17"
  10140. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  10141. "\x20\x21\x22\x23\x24\x25\x26\x27"
  10142. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  10143. "\x30\x31\x32\x33\x34\x35\x36\x37"
  10144. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  10145. "\x40\x41\x42\x43\x44\x45\x46\x47"
  10146. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  10147. "\x50\x51\x52\x53\x54\x55\x56\x57"
  10148. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  10149. "\x60\x61\x62\x63\x64\x65\x66\x67"
  10150. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  10151. "\x70\x71\x72\x73\x74\x75\x76\x77"
  10152. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  10153. "\x80\x81\x82\x83\x84\x85\x86\x87"
  10154. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  10155. "\x90\x91\x92\x93\x94\x95\x96\x97"
  10156. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  10157. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  10158. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  10159. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  10160. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  10161. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  10162. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  10163. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  10164. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  10165. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  10166. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  10167. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  10168. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  10169. .ilen = 512,
  10170. .result = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c"
  10171. "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0"
  10172. "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58"
  10173. "\xb8\x2d\xb9\x5d\x58\x07\x66\x50"
  10174. "\xea\x35\x35\x8c\xb2\x46\x61\x06"
  10175. "\x5d\x65\xfc\x57\x8f\x69\x74\xab"
  10176. "\x8a\x06\x69\xb5\x6c\xda\x66\xc7"
  10177. "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2"
  10178. "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3"
  10179. "\x32\x36\x7c\x97\x6b\x4e\x8a\x50"
  10180. "\xe4\x91\x83\x96\x8f\xf4\x94\x1a"
  10181. "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f"
  10182. "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e"
  10183. "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53"
  10184. "\x01\x73\x68\x32\x25\x19\xfa\xfb"
  10185. "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31"
  10186. "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6"
  10187. "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11"
  10188. "\x39\x80\x39\x09\x97\x65\xf2\x83"
  10189. "\xae\xe6\xa1\x6f\x47\xb8\x49\xde"
  10190. "\x99\x36\x20\x7d\x97\x3b\xec\xfa"
  10191. "\xb4\x33\x6e\x7a\xc7\x46\x84\x49"
  10192. "\x91\xcd\xe1\x57\x0d\xed\x40\x08"
  10193. "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6"
  10194. "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47"
  10195. "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a"
  10196. "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12"
  10197. "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3"
  10198. "\xca\x1c\xa3\x8e\xed\x39\x28\xb5"
  10199. "\x10\x1b\x4b\x08\x42\x00\x4a\xd3"
  10200. "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4"
  10201. "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d"
  10202. "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20"
  10203. "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24"
  10204. "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47"
  10205. "\x24\x65\x63\x7e\xbd\x8c\xe6\x52"
  10206. "\x7d\xef\x33\x53\x63\xec\xaa\x0b"
  10207. "\x64\x15\xa9\xa6\x1f\x10\x00\x38"
  10208. "\x35\xa8\xe7\xbe\x23\x70\x22\xe0"
  10209. "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50"
  10210. "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c"
  10211. "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71"
  10212. "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e"
  10213. "\x7a\x74\x85\xa9\x6a\x90\xab\x2c"
  10214. "\x38\x51\xbc\x1f\x43\x4a\x56\x1c"
  10215. "\xf8\x47\x03\x4e\x67\xa8\x1f\x99"
  10216. "\x04\x39\x73\x32\xb2\x86\x79\xe7"
  10217. "\x14\x28\x70\xb8\xe2\x7d\x69\x85"
  10218. "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6"
  10219. "\x09\x0f\x75\xf7\xb6\x81\xd2\x11"
  10220. "\x20\x9c\xa1\xee\x11\x44\x79\xd0"
  10221. "\xb2\x34\x77\xda\x10\x9a\x6f\x6f"
  10222. "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd"
  10223. "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac"
  10224. "\xfe\x2f\x85\x00\x44\xdf\x33\x16"
  10225. "\x35\xb6\xa3\xd3\x70\xdf\x69\x35"
  10226. "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e"
  10227. "\x5a\x14\x30\xd0\x55\x3e\x4f\x64"
  10228. "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26"
  10229. "\x75\xae\xf6\xb5\x23\x0b\x17\x31"
  10230. "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f"
  10231. "\x43\xc4\x46\x24\x22\x4f\x8f\x7e"
  10232. "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb"
  10233. "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a",
  10234. .rlen = 512,
  10235. }, {
  10236. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  10237. "\x23\x53\x60\x28\x74\x71\x35\x26"
  10238. "\x62\x49\x77\x57\x24\x70\x93\x69"
  10239. "\x99\x59\x57\x49\x66\x96\x76\x27"
  10240. "\x31\x41\x59\x26\x53\x58\x97\x93"
  10241. "\x23\x84\x62\x64\x33\x83\x27\x95"
  10242. "\x02\x88\x41\x97\x16\x93\x99\x37"
  10243. "\x51\x05\x82\x09\x74\x94\x45\x92",
  10244. .klen = 64,
  10245. .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
  10246. "\x00\x00\x00\x00\x00\x00\x00\x00",
  10247. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  10248. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  10249. "\x10\x11\x12\x13\x14\x15\x16\x17"
  10250. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  10251. "\x20\x21\x22\x23\x24\x25\x26\x27"
  10252. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  10253. "\x30\x31\x32\x33\x34\x35\x36\x37"
  10254. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  10255. "\x40\x41\x42\x43\x44\x45\x46\x47"
  10256. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  10257. "\x50\x51\x52\x53\x54\x55\x56\x57"
  10258. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  10259. "\x60\x61\x62\x63\x64\x65\x66\x67"
  10260. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  10261. "\x70\x71\x72\x73\x74\x75\x76\x77"
  10262. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  10263. "\x80\x81\x82\x83\x84\x85\x86\x87"
  10264. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  10265. "\x90\x91\x92\x93\x94\x95\x96\x97"
  10266. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  10267. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  10268. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  10269. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  10270. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  10271. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  10272. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  10273. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  10274. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  10275. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  10276. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  10277. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  10278. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  10279. "\x00\x01\x02\x03\x04\x05\x06\x07"
  10280. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  10281. "\x10\x11\x12\x13\x14\x15\x16\x17"
  10282. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  10283. "\x20\x21\x22\x23\x24\x25\x26\x27"
  10284. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  10285. "\x30\x31\x32\x33\x34\x35\x36\x37"
  10286. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  10287. "\x40\x41\x42\x43\x44\x45\x46\x47"
  10288. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  10289. "\x50\x51\x52\x53\x54\x55\x56\x57"
  10290. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  10291. "\x60\x61\x62\x63\x64\x65\x66\x67"
  10292. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  10293. "\x70\x71\x72\x73\x74\x75\x76\x77"
  10294. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  10295. "\x80\x81\x82\x83\x84\x85\x86\x87"
  10296. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  10297. "\x90\x91\x92\x93\x94\x95\x96\x97"
  10298. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  10299. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  10300. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  10301. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  10302. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  10303. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  10304. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  10305. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  10306. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  10307. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  10308. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  10309. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  10310. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  10311. .ilen = 512,
  10312. .result = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1"
  10313. "\x35\x39\x71\x88\x76\x1e\xc9\xea"
  10314. "\x86\xad\xf3\x14\x48\x3d\x5e\xe9"
  10315. "\xe9\x2d\xb2\x56\x59\x35\x9d\xec"
  10316. "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f"
  10317. "\xce\xf4\xa9\x21\x0b\x5f\x96\xec"
  10318. "\xcb\xf9\x57\x68\x33\x88\x39\xbf"
  10319. "\x2f\xbb\x59\x03\xbd\x66\x8b\x11"
  10320. "\x11\x65\x51\x2e\xb8\x67\x05\xd1"
  10321. "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3"
  10322. "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5"
  10323. "\x85\xdc\x46\xe6\xf0\x24\xeb\x93"
  10324. "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03"
  10325. "\x22\xc8\x3a\x4f\xb4\x19\x91\x09"
  10326. "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53"
  10327. "\x72\x60\x79\xcb\x0e\x32\x8a\x77"
  10328. "\xd5\xed\xdb\x33\xd7\x62\x16\x69"
  10329. "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d"
  10330. "\x69\x35\x61\x86\xf8\x86\xb9\x89"
  10331. "\x6e\x59\x35\xac\xf6\x6b\x33\xa0"
  10332. "\xea\xef\x96\x62\xd8\xa9\xcf\x56"
  10333. "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73"
  10334. "\x3d\x94\x4a\x49\x42\x6d\x08\x60"
  10335. "\xa1\xea\xab\xb6\x88\x13\x94\xb8"
  10336. "\x51\x98\xdb\x35\x85\xdf\xf6\xb9"
  10337. "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72"
  10338. "\xb8\xb2\x6c\x02\x43\x35\x22\x2a"
  10339. "\x31\xed\xcd\x16\x19\xdf\x62\x0f"
  10340. "\x29\xcf\x87\x04\xec\x02\x4f\xe4"
  10341. "\xa2\xed\x73\xc6\x69\xd3\x7e\x89"
  10342. "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25"
  10343. "\xed\xcc\x60\x5d\x61\x20\xc1\x97"
  10344. "\x56\x91\x57\x28\xbe\x71\x0d\xcd"
  10345. "\xde\xc4\x9e\x55\x91\xbe\xd1\x28"
  10346. "\x9b\x90\xeb\x73\xf3\x68\x51\xc6"
  10347. "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27"
  10348. "\xc0\x60\x5e\x33\xd6\xa7\x20\xea"
  10349. "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47"
  10350. "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42"
  10351. "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0"
  10352. "\xad\x12\x32\x31\x03\xf7\x21\xbe"
  10353. "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd"
  10354. "\xd8\x81\x77\xa9\x49\x98\x6c\x09"
  10355. "\xc5\xa3\x61\x12\x62\x85\x6b\xcd"
  10356. "\xb3\xf4\x20\x0c\x41\xc4\x05\x37"
  10357. "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e"
  10358. "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb"
  10359. "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8"
  10360. "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0"
  10361. "\x93\x4a\x2f\xda\x7b\xe0\x20\x54"
  10362. "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75"
  10363. "\xb9\x07\x67\xcc\xc8\xe7\x21\x15"
  10364. "\xa7\xc8\x98\xff\x4b\x80\x1c\x12"
  10365. "\xa8\x54\xe1\x38\x52\xe6\x74\x81"
  10366. "\x97\x47\xa1\x41\x0e\xc0\x50\xe3"
  10367. "\x55\x0e\xc3\xa7\x70\x77\xce\x07"
  10368. "\xed\x8c\x88\xe6\xa1\x5b\x14\xec"
  10369. "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa"
  10370. "\xe5\x2f\x5a\xff\xc8\x05\xee\x27"
  10371. "\x35\x61\xbf\x0b\x19\x78\x9b\xd2"
  10372. "\x04\xc7\x05\xb1\x79\xb4\xff\x5f"
  10373. "\xf3\xea\x67\x52\x78\xc2\xce\x70"
  10374. "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97"
  10375. "\x37\x30\xe1\x91\x8d\xb3\x2a\xff",
  10376. .rlen = 512,
  10377. .also_non_np = 1,
  10378. .np = 3,
  10379. .tap = { 512 - 20, 4, 16 },
  10380. },
  10381. };
  10382. static struct cipher_testvec tf_xts_dec_tv_template[] = {
  10383. /* Generated from AES-XTS test vectors */
  10384. /* same as enc vectors with input and result reversed */
  10385. {
  10386. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  10387. "\x00\x00\x00\x00\x00\x00\x00\x00"
  10388. "\x00\x00\x00\x00\x00\x00\x00\x00"
  10389. "\x00\x00\x00\x00\x00\x00\x00\x00",
  10390. .klen = 32,
  10391. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  10392. "\x00\x00\x00\x00\x00\x00\x00\x00",
  10393. .input = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac"
  10394. "\x30\x74\xe4\x44\x52\x77\x97\x43"
  10395. "\xa7\x60\xb2\x45\x2e\xf9\x00\x90"
  10396. "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0",
  10397. .ilen = 32,
  10398. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  10399. "\x00\x00\x00\x00\x00\x00\x00\x00"
  10400. "\x00\x00\x00\x00\x00\x00\x00\x00"
  10401. "\x00\x00\x00\x00\x00\x00\x00\x00",
  10402. .rlen = 32,
  10403. }, {
  10404. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  10405. "\x11\x11\x11\x11\x11\x11\x11\x11"
  10406. "\x22\x22\x22\x22\x22\x22\x22\x22"
  10407. "\x22\x22\x22\x22\x22\x22\x22\x22",
  10408. .klen = 32,
  10409. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  10410. "\x00\x00\x00\x00\x00\x00\x00\x00",
  10411. .input = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f"
  10412. "\x32\xd3\xbd\x36\x05\x15\x44\x2c"
  10413. "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5"
  10414. "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9",
  10415. .ilen = 32,
  10416. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  10417. "\x44\x44\x44\x44\x44\x44\x44\x44"
  10418. "\x44\x44\x44\x44\x44\x44\x44\x44"
  10419. "\x44\x44\x44\x44\x44\x44\x44\x44",
  10420. .rlen = 32,
  10421. }, {
  10422. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  10423. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  10424. "\x22\x22\x22\x22\x22\x22\x22\x22"
  10425. "\x22\x22\x22\x22\x22\x22\x22\x22",
  10426. .klen = 32,
  10427. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  10428. "\x00\x00\x00\x00\x00\x00\x00\x00",
  10429. .input = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde"
  10430. "\x40\x0c\x89\x56\xf6\x4d\xa7\x07"
  10431. "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2"
  10432. "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea",
  10433. .ilen = 32,
  10434. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  10435. "\x44\x44\x44\x44\x44\x44\x44\x44"
  10436. "\x44\x44\x44\x44\x44\x44\x44\x44"
  10437. "\x44\x44\x44\x44\x44\x44\x44\x44",
  10438. .rlen = 32,
  10439. }, {
  10440. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  10441. "\x23\x53\x60\x28\x74\x71\x35\x26"
  10442. "\x31\x41\x59\x26\x53\x58\x97\x93"
  10443. "\x23\x84\x62\x64\x33\x83\x27\x95",
  10444. .klen = 32,
  10445. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  10446. "\x00\x00\x00\x00\x00\x00\x00\x00",
  10447. .input = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c"
  10448. "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0"
  10449. "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58"
  10450. "\xb8\x2d\xb9\x5d\x58\x07\x66\x50"
  10451. "\xea\x35\x35\x8c\xb2\x46\x61\x06"
  10452. "\x5d\x65\xfc\x57\x8f\x69\x74\xab"
  10453. "\x8a\x06\x69\xb5\x6c\xda\x66\xc7"
  10454. "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2"
  10455. "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3"
  10456. "\x32\x36\x7c\x97\x6b\x4e\x8a\x50"
  10457. "\xe4\x91\x83\x96\x8f\xf4\x94\x1a"
  10458. "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f"
  10459. "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e"
  10460. "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53"
  10461. "\x01\x73\x68\x32\x25\x19\xfa\xfb"
  10462. "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31"
  10463. "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6"
  10464. "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11"
  10465. "\x39\x80\x39\x09\x97\x65\xf2\x83"
  10466. "\xae\xe6\xa1\x6f\x47\xb8\x49\xde"
  10467. "\x99\x36\x20\x7d\x97\x3b\xec\xfa"
  10468. "\xb4\x33\x6e\x7a\xc7\x46\x84\x49"
  10469. "\x91\xcd\xe1\x57\x0d\xed\x40\x08"
  10470. "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6"
  10471. "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47"
  10472. "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a"
  10473. "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12"
  10474. "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3"
  10475. "\xca\x1c\xa3\x8e\xed\x39\x28\xb5"
  10476. "\x10\x1b\x4b\x08\x42\x00\x4a\xd3"
  10477. "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4"
  10478. "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d"
  10479. "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20"
  10480. "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24"
  10481. "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47"
  10482. "\x24\x65\x63\x7e\xbd\x8c\xe6\x52"
  10483. "\x7d\xef\x33\x53\x63\xec\xaa\x0b"
  10484. "\x64\x15\xa9\xa6\x1f\x10\x00\x38"
  10485. "\x35\xa8\xe7\xbe\x23\x70\x22\xe0"
  10486. "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50"
  10487. "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c"
  10488. "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71"
  10489. "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e"
  10490. "\x7a\x74\x85\xa9\x6a\x90\xab\x2c"
  10491. "\x38\x51\xbc\x1f\x43\x4a\x56\x1c"
  10492. "\xf8\x47\x03\x4e\x67\xa8\x1f\x99"
  10493. "\x04\x39\x73\x32\xb2\x86\x79\xe7"
  10494. "\x14\x28\x70\xb8\xe2\x7d\x69\x85"
  10495. "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6"
  10496. "\x09\x0f\x75\xf7\xb6\x81\xd2\x11"
  10497. "\x20\x9c\xa1\xee\x11\x44\x79\xd0"
  10498. "\xb2\x34\x77\xda\x10\x9a\x6f\x6f"
  10499. "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd"
  10500. "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac"
  10501. "\xfe\x2f\x85\x00\x44\xdf\x33\x16"
  10502. "\x35\xb6\xa3\xd3\x70\xdf\x69\x35"
  10503. "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e"
  10504. "\x5a\x14\x30\xd0\x55\x3e\x4f\x64"
  10505. "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26"
  10506. "\x75\xae\xf6\xb5\x23\x0b\x17\x31"
  10507. "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f"
  10508. "\x43\xc4\x46\x24\x22\x4f\x8f\x7e"
  10509. "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb"
  10510. "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a",
  10511. .ilen = 512,
  10512. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  10513. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  10514. "\x10\x11\x12\x13\x14\x15\x16\x17"
  10515. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  10516. "\x20\x21\x22\x23\x24\x25\x26\x27"
  10517. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  10518. "\x30\x31\x32\x33\x34\x35\x36\x37"
  10519. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  10520. "\x40\x41\x42\x43\x44\x45\x46\x47"
  10521. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  10522. "\x50\x51\x52\x53\x54\x55\x56\x57"
  10523. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  10524. "\x60\x61\x62\x63\x64\x65\x66\x67"
  10525. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  10526. "\x70\x71\x72\x73\x74\x75\x76\x77"
  10527. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  10528. "\x80\x81\x82\x83\x84\x85\x86\x87"
  10529. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  10530. "\x90\x91\x92\x93\x94\x95\x96\x97"
  10531. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  10532. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  10533. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  10534. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  10535. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  10536. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  10537. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  10538. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  10539. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  10540. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  10541. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  10542. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  10543. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  10544. "\x00\x01\x02\x03\x04\x05\x06\x07"
  10545. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  10546. "\x10\x11\x12\x13\x14\x15\x16\x17"
  10547. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  10548. "\x20\x21\x22\x23\x24\x25\x26\x27"
  10549. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  10550. "\x30\x31\x32\x33\x34\x35\x36\x37"
  10551. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  10552. "\x40\x41\x42\x43\x44\x45\x46\x47"
  10553. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  10554. "\x50\x51\x52\x53\x54\x55\x56\x57"
  10555. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  10556. "\x60\x61\x62\x63\x64\x65\x66\x67"
  10557. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  10558. "\x70\x71\x72\x73\x74\x75\x76\x77"
  10559. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  10560. "\x80\x81\x82\x83\x84\x85\x86\x87"
  10561. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  10562. "\x90\x91\x92\x93\x94\x95\x96\x97"
  10563. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  10564. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  10565. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  10566. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  10567. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  10568. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  10569. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  10570. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  10571. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  10572. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  10573. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  10574. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  10575. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  10576. .rlen = 512,
  10577. }, {
  10578. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  10579. "\x23\x53\x60\x28\x74\x71\x35\x26"
  10580. "\x62\x49\x77\x57\x24\x70\x93\x69"
  10581. "\x99\x59\x57\x49\x66\x96\x76\x27"
  10582. "\x31\x41\x59\x26\x53\x58\x97\x93"
  10583. "\x23\x84\x62\x64\x33\x83\x27\x95"
  10584. "\x02\x88\x41\x97\x16\x93\x99\x37"
  10585. "\x51\x05\x82\x09\x74\x94\x45\x92",
  10586. .klen = 64,
  10587. .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
  10588. "\x00\x00\x00\x00\x00\x00\x00\x00",
  10589. .input = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1"
  10590. "\x35\x39\x71\x88\x76\x1e\xc9\xea"
  10591. "\x86\xad\xf3\x14\x48\x3d\x5e\xe9"
  10592. "\xe9\x2d\xb2\x56\x59\x35\x9d\xec"
  10593. "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f"
  10594. "\xce\xf4\xa9\x21\x0b\x5f\x96\xec"
  10595. "\xcb\xf9\x57\x68\x33\x88\x39\xbf"
  10596. "\x2f\xbb\x59\x03\xbd\x66\x8b\x11"
  10597. "\x11\x65\x51\x2e\xb8\x67\x05\xd1"
  10598. "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3"
  10599. "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5"
  10600. "\x85\xdc\x46\xe6\xf0\x24\xeb\x93"
  10601. "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03"
  10602. "\x22\xc8\x3a\x4f\xb4\x19\x91\x09"
  10603. "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53"
  10604. "\x72\x60\x79\xcb\x0e\x32\x8a\x77"
  10605. "\xd5\xed\xdb\x33\xd7\x62\x16\x69"
  10606. "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d"
  10607. "\x69\x35\x61\x86\xf8\x86\xb9\x89"
  10608. "\x6e\x59\x35\xac\xf6\x6b\x33\xa0"
  10609. "\xea\xef\x96\x62\xd8\xa9\xcf\x56"
  10610. "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73"
  10611. "\x3d\x94\x4a\x49\x42\x6d\x08\x60"
  10612. "\xa1\xea\xab\xb6\x88\x13\x94\xb8"
  10613. "\x51\x98\xdb\x35\x85\xdf\xf6\xb9"
  10614. "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72"
  10615. "\xb8\xb2\x6c\x02\x43\x35\x22\x2a"
  10616. "\x31\xed\xcd\x16\x19\xdf\x62\x0f"
  10617. "\x29\xcf\x87\x04\xec\x02\x4f\xe4"
  10618. "\xa2\xed\x73\xc6\x69\xd3\x7e\x89"
  10619. "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25"
  10620. "\xed\xcc\x60\x5d\x61\x20\xc1\x97"
  10621. "\x56\x91\x57\x28\xbe\x71\x0d\xcd"
  10622. "\xde\xc4\x9e\x55\x91\xbe\xd1\x28"
  10623. "\x9b\x90\xeb\x73\xf3\x68\x51\xc6"
  10624. "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27"
  10625. "\xc0\x60\x5e\x33\xd6\xa7\x20\xea"
  10626. "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47"
  10627. "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42"
  10628. "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0"
  10629. "\xad\x12\x32\x31\x03\xf7\x21\xbe"
  10630. "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd"
  10631. "\xd8\x81\x77\xa9\x49\x98\x6c\x09"
  10632. "\xc5\xa3\x61\x12\x62\x85\x6b\xcd"
  10633. "\xb3\xf4\x20\x0c\x41\xc4\x05\x37"
  10634. "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e"
  10635. "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb"
  10636. "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8"
  10637. "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0"
  10638. "\x93\x4a\x2f\xda\x7b\xe0\x20\x54"
  10639. "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75"
  10640. "\xb9\x07\x67\xcc\xc8\xe7\x21\x15"
  10641. "\xa7\xc8\x98\xff\x4b\x80\x1c\x12"
  10642. "\xa8\x54\xe1\x38\x52\xe6\x74\x81"
  10643. "\x97\x47\xa1\x41\x0e\xc0\x50\xe3"
  10644. "\x55\x0e\xc3\xa7\x70\x77\xce\x07"
  10645. "\xed\x8c\x88\xe6\xa1\x5b\x14\xec"
  10646. "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa"
  10647. "\xe5\x2f\x5a\xff\xc8\x05\xee\x27"
  10648. "\x35\x61\xbf\x0b\x19\x78\x9b\xd2"
  10649. "\x04\xc7\x05\xb1\x79\xb4\xff\x5f"
  10650. "\xf3\xea\x67\x52\x78\xc2\xce\x70"
  10651. "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97"
  10652. "\x37\x30\xe1\x91\x8d\xb3\x2a\xff",
  10653. .ilen = 512,
  10654. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  10655. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  10656. "\x10\x11\x12\x13\x14\x15\x16\x17"
  10657. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  10658. "\x20\x21\x22\x23\x24\x25\x26\x27"
  10659. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  10660. "\x30\x31\x32\x33\x34\x35\x36\x37"
  10661. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  10662. "\x40\x41\x42\x43\x44\x45\x46\x47"
  10663. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  10664. "\x50\x51\x52\x53\x54\x55\x56\x57"
  10665. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  10666. "\x60\x61\x62\x63\x64\x65\x66\x67"
  10667. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  10668. "\x70\x71\x72\x73\x74\x75\x76\x77"
  10669. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  10670. "\x80\x81\x82\x83\x84\x85\x86\x87"
  10671. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  10672. "\x90\x91\x92\x93\x94\x95\x96\x97"
  10673. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  10674. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  10675. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  10676. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  10677. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  10678. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  10679. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  10680. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  10681. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  10682. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  10683. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  10684. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  10685. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  10686. "\x00\x01\x02\x03\x04\x05\x06\x07"
  10687. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  10688. "\x10\x11\x12\x13\x14\x15\x16\x17"
  10689. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  10690. "\x20\x21\x22\x23\x24\x25\x26\x27"
  10691. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  10692. "\x30\x31\x32\x33\x34\x35\x36\x37"
  10693. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  10694. "\x40\x41\x42\x43\x44\x45\x46\x47"
  10695. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  10696. "\x50\x51\x52\x53\x54\x55\x56\x57"
  10697. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  10698. "\x60\x61\x62\x63\x64\x65\x66\x67"
  10699. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  10700. "\x70\x71\x72\x73\x74\x75\x76\x77"
  10701. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  10702. "\x80\x81\x82\x83\x84\x85\x86\x87"
  10703. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  10704. "\x90\x91\x92\x93\x94\x95\x96\x97"
  10705. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  10706. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  10707. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  10708. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  10709. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  10710. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  10711. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  10712. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  10713. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  10714. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  10715. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  10716. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  10717. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  10718. .rlen = 512,
  10719. .also_non_np = 1,
  10720. .np = 3,
  10721. .tap = { 512 - 20, 4, 16 },
  10722. },
  10723. };
  10724. /*
  10725. * Serpent test vectors. These are backwards because Serpent writes
  10726. * octet sequences in right-to-left mode.
  10727. */
  10728. #define SERPENT_ENC_TEST_VECTORS 5
  10729. #define SERPENT_DEC_TEST_VECTORS 5
  10730. #define TNEPRES_ENC_TEST_VECTORS 4
  10731. #define TNEPRES_DEC_TEST_VECTORS 4
  10732. #define SERPENT_CBC_ENC_TEST_VECTORS 1
  10733. #define SERPENT_CBC_DEC_TEST_VECTORS 1
  10734. #define SERPENT_CTR_ENC_TEST_VECTORS 2
  10735. #define SERPENT_CTR_DEC_TEST_VECTORS 2
  10736. #define SERPENT_LRW_ENC_TEST_VECTORS 8
  10737. #define SERPENT_LRW_DEC_TEST_VECTORS 8
  10738. #define SERPENT_XTS_ENC_TEST_VECTORS 5
  10739. #define SERPENT_XTS_DEC_TEST_VECTORS 5
  10740. static struct cipher_testvec serpent_enc_tv_template[] = {
  10741. {
  10742. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  10743. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  10744. .ilen = 16,
  10745. .result = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
  10746. "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
  10747. .rlen = 16,
  10748. }, {
  10749. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  10750. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  10751. .klen = 16,
  10752. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  10753. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  10754. .ilen = 16,
  10755. .result = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
  10756. "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
  10757. .rlen = 16,
  10758. }, {
  10759. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  10760. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  10761. "\x10\x11\x12\x13\x14\x15\x16\x17"
  10762. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  10763. .klen = 32,
  10764. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  10765. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  10766. .ilen = 16,
  10767. .result = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
  10768. "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
  10769. .rlen = 16,
  10770. }, {
  10771. .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
  10772. .klen = 16,
  10773. .input = zeroed_string,
  10774. .ilen = 16,
  10775. .result = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
  10776. "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
  10777. .rlen = 16,
  10778. }, { /* Generated with Crypto++ */
  10779. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  10780. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  10781. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  10782. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  10783. .klen = 32,
  10784. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  10785. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  10786. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  10787. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  10788. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  10789. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  10790. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  10791. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  10792. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  10793. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  10794. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  10795. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  10796. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  10797. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  10798. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  10799. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  10800. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  10801. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  10802. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  10803. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  10804. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  10805. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  10806. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  10807. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  10808. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  10809. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  10810. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  10811. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  10812. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  10813. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  10814. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  10815. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  10816. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  10817. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  10818. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  10819. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  10820. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  10821. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  10822. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  10823. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  10824. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  10825. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  10826. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  10827. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  10828. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  10829. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  10830. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  10831. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  10832. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  10833. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  10834. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  10835. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  10836. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  10837. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  10838. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  10839. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  10840. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  10841. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  10842. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  10843. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  10844. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  10845. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  10846. .ilen = 496,
  10847. .result = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB"
  10848. "\xB1\x80\x10\x43\xDE\x62\x70\xBD"
  10849. "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7"
  10850. "\x0C\xD1\xBB\x29\x25\x14\x4C\x22"
  10851. "\x77\xA6\x38\x00\xDB\xB9\xE2\x07"
  10852. "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39"
  10853. "\x99\x34\x89\x5B\x54\xE9\x12\x13"
  10854. "\x3B\x04\xE5\x12\x42\xC5\x79\xAB"
  10855. "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6"
  10856. "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA"
  10857. "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A"
  10858. "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87"
  10859. "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5"
  10860. "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73"
  10861. "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD"
  10862. "\x69\xDA\x7A\x01\xF5\x6A\x70\x39"
  10863. "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39"
  10864. "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6"
  10865. "\xB6\x31\x36\x34\x38\x3C\x1D\x69"
  10866. "\x9F\x47\x28\x9A\x1D\x96\x70\x54"
  10867. "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A"
  10868. "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A"
  10869. "\x23\x9C\x9B\x79\xC7\x75\xC8\x39"
  10870. "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D"
  10871. "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B"
  10872. "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F"
  10873. "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8"
  10874. "\xEF\x50\x22\x20\x93\x30\xBE\xE2"
  10875. "\x38\x05\x65\xAF\xBA\xB6\xE4\x72"
  10876. "\xA9\xEE\x05\x42\x88\xBD\x9D\x49"
  10877. "\xAD\x93\xCA\x4D\x45\x11\x43\x4D"
  10878. "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4"
  10879. "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD"
  10880. "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6"
  10881. "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69"
  10882. "\x73\x65\x65\x51\xD6\x0B\x4E\x8C"
  10883. "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B"
  10884. "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39"
  10885. "\xE8\x10\x93\x16\xC8\x68\x4C\x60"
  10886. "\x87\x70\x14\xD0\x01\x57\xCB\x42"
  10887. "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7"
  10888. "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE"
  10889. "\xFD\x72\xEC\xD7\x6F\x97\x14\x90"
  10890. "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE"
  10891. "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B"
  10892. "\x71\x80\x05\x35\x3F\x40\x0B\x21"
  10893. "\x76\xE5\xEF\x42\x6C\xDB\x31\x05"
  10894. "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2"
  10895. "\x49\x03\x5E\x77\x2E\x20\xBA\xA1"
  10896. "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E"
  10897. "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F"
  10898. "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6"
  10899. "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1"
  10900. "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00"
  10901. "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF"
  10902. "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45"
  10903. "\x91\x76\xE7\x6E\x65\x3D\x15\x86"
  10904. "\x10\xF8\xDB\x66\x97\x7C\x43\x4D"
  10905. "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A"
  10906. "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02"
  10907. "\x75\x55\x9B\xFF\x36\x73\xAB\x7C"
  10908. "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7",
  10909. .rlen = 496,
  10910. .also_non_np = 1,
  10911. .np = 3,
  10912. .tap = { 496 - 20, 4, 16 },
  10913. },
  10914. };
  10915. static struct cipher_testvec tnepres_enc_tv_template[] = {
  10916. { /* KeySize=128, PT=0, I=1 */
  10917. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  10918. "\x00\x00\x00\x00\x00\x00\x00\x00",
  10919. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  10920. "\x00\x00\x00\x00\x00\x00\x00\x00",
  10921. .klen = 16,
  10922. .ilen = 16,
  10923. .result = "\x49\xaf\xbf\xad\x9d\x5a\x34\x05"
  10924. "\x2c\xd8\xff\xa5\x98\x6b\xd2\xdd",
  10925. .rlen = 16,
  10926. }, { /* KeySize=192, PT=0, I=1 */
  10927. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  10928. "\x00\x00\x00\x00\x00\x00\x00\x00"
  10929. "\x00\x00\x00\x00\x00\x00\x00\x00",
  10930. .klen = 24,
  10931. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  10932. "\x00\x00\x00\x00\x00\x00\x00\x00",
  10933. .ilen = 16,
  10934. .result = "\xe7\x8e\x54\x02\xc7\x19\x55\x68"
  10935. "\xac\x36\x78\xf7\xa3\xf6\x0c\x66",
  10936. .rlen = 16,
  10937. }, { /* KeySize=256, PT=0, I=1 */
  10938. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  10939. "\x00\x00\x00\x00\x00\x00\x00\x00"
  10940. "\x00\x00\x00\x00\x00\x00\x00\x00"
  10941. "\x00\x00\x00\x00\x00\x00\x00\x00",
  10942. .klen = 32,
  10943. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  10944. "\x00\x00\x00\x00\x00\x00\x00\x00",
  10945. .ilen = 16,
  10946. .result = "\xab\xed\x96\xe7\x66\xbf\x28\xcb"
  10947. "\xc0\xeb\xd2\x1a\x82\xef\x08\x19",
  10948. .rlen = 16,
  10949. }, { /* KeySize=256, I=257 */
  10950. .key = "\x1f\x1e\x1d\x1c\x1b\x1a\x19\x18"
  10951. "\x17\x16\x15\x14\x13\x12\x11\x10"
  10952. "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
  10953. "\x07\x06\x05\x04\x03\x02\x01\x00",
  10954. .klen = 32,
  10955. .input = "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
  10956. "\x07\x06\x05\x04\x03\x02\x01\x00",
  10957. .ilen = 16,
  10958. .result = "\x5c\xe7\x1c\x70\xd2\x88\x2e\x5b"
  10959. "\xb8\x32\xe4\x33\xf8\x9f\x26\xde",
  10960. .rlen = 16,
  10961. },
  10962. };
  10963. static struct cipher_testvec serpent_dec_tv_template[] = {
  10964. {
  10965. .input = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
  10966. "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
  10967. .ilen = 16,
  10968. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  10969. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  10970. .rlen = 16,
  10971. }, {
  10972. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  10973. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  10974. .klen = 16,
  10975. .input = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
  10976. "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
  10977. .ilen = 16,
  10978. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  10979. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  10980. .rlen = 16,
  10981. }, {
  10982. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  10983. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  10984. "\x10\x11\x12\x13\x14\x15\x16\x17"
  10985. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  10986. .klen = 32,
  10987. .input = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
  10988. "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
  10989. .ilen = 16,
  10990. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  10991. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  10992. .rlen = 16,
  10993. }, {
  10994. .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
  10995. .klen = 16,
  10996. .input = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
  10997. "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
  10998. .ilen = 16,
  10999. .result = zeroed_string,
  11000. .rlen = 16,
  11001. }, { /* Generated with Crypto++ */
  11002. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  11003. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  11004. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  11005. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  11006. .klen = 32,
  11007. .input = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB"
  11008. "\xB1\x80\x10\x43\xDE\x62\x70\xBD"
  11009. "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7"
  11010. "\x0C\xD1\xBB\x29\x25\x14\x4C\x22"
  11011. "\x77\xA6\x38\x00\xDB\xB9\xE2\x07"
  11012. "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39"
  11013. "\x99\x34\x89\x5B\x54\xE9\x12\x13"
  11014. "\x3B\x04\xE5\x12\x42\xC5\x79\xAB"
  11015. "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6"
  11016. "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA"
  11017. "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A"
  11018. "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87"
  11019. "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5"
  11020. "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73"
  11021. "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD"
  11022. "\x69\xDA\x7A\x01\xF5\x6A\x70\x39"
  11023. "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39"
  11024. "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6"
  11025. "\xB6\x31\x36\x34\x38\x3C\x1D\x69"
  11026. "\x9F\x47\x28\x9A\x1D\x96\x70\x54"
  11027. "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A"
  11028. "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A"
  11029. "\x23\x9C\x9B\x79\xC7\x75\xC8\x39"
  11030. "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D"
  11031. "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B"
  11032. "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F"
  11033. "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8"
  11034. "\xEF\x50\x22\x20\x93\x30\xBE\xE2"
  11035. "\x38\x05\x65\xAF\xBA\xB6\xE4\x72"
  11036. "\xA9\xEE\x05\x42\x88\xBD\x9D\x49"
  11037. "\xAD\x93\xCA\x4D\x45\x11\x43\x4D"
  11038. "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4"
  11039. "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD"
  11040. "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6"
  11041. "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69"
  11042. "\x73\x65\x65\x51\xD6\x0B\x4E\x8C"
  11043. "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B"
  11044. "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39"
  11045. "\xE8\x10\x93\x16\xC8\x68\x4C\x60"
  11046. "\x87\x70\x14\xD0\x01\x57\xCB\x42"
  11047. "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7"
  11048. "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE"
  11049. "\xFD\x72\xEC\xD7\x6F\x97\x14\x90"
  11050. "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE"
  11051. "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B"
  11052. "\x71\x80\x05\x35\x3F\x40\x0B\x21"
  11053. "\x76\xE5\xEF\x42\x6C\xDB\x31\x05"
  11054. "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2"
  11055. "\x49\x03\x5E\x77\x2E\x20\xBA\xA1"
  11056. "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E"
  11057. "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F"
  11058. "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6"
  11059. "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1"
  11060. "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00"
  11061. "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF"
  11062. "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45"
  11063. "\x91\x76\xE7\x6E\x65\x3D\x15\x86"
  11064. "\x10\xF8\xDB\x66\x97\x7C\x43\x4D"
  11065. "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A"
  11066. "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02"
  11067. "\x75\x55\x9B\xFF\x36\x73\xAB\x7C"
  11068. "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7",
  11069. .ilen = 496,
  11070. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  11071. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  11072. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  11073. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  11074. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  11075. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  11076. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  11077. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  11078. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  11079. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  11080. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  11081. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  11082. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  11083. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  11084. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  11085. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  11086. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  11087. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  11088. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  11089. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  11090. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  11091. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  11092. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  11093. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  11094. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  11095. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  11096. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  11097. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  11098. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  11099. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  11100. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  11101. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  11102. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  11103. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  11104. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  11105. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  11106. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  11107. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  11108. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  11109. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  11110. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  11111. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  11112. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  11113. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  11114. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  11115. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  11116. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  11117. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  11118. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  11119. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  11120. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  11121. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  11122. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  11123. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  11124. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  11125. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  11126. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  11127. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  11128. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  11129. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  11130. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  11131. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  11132. .rlen = 496,
  11133. .also_non_np = 1,
  11134. .np = 3,
  11135. .tap = { 496 - 20, 4, 16 },
  11136. },
  11137. };
  11138. static struct cipher_testvec tnepres_dec_tv_template[] = {
  11139. {
  11140. .input = "\x41\xcc\x6b\x31\x59\x31\x45\x97"
  11141. "\x6d\x6f\xbb\x38\x4b\x37\x21\x28",
  11142. .ilen = 16,
  11143. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  11144. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  11145. .rlen = 16,
  11146. }, {
  11147. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  11148. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  11149. .klen = 16,
  11150. .input = "\xea\xf4\xd7\xfc\xd8\x01\x34\x47"
  11151. "\x81\x45\x0b\xfa\x0c\xd6\xad\x6e",
  11152. .ilen = 16,
  11153. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  11154. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  11155. .rlen = 16,
  11156. }, {
  11157. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  11158. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  11159. "\x10\x11\x12\x13\x14\x15\x16\x17"
  11160. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  11161. .klen = 32,
  11162. .input = "\x64\xa9\x1a\x37\xed\x9f\xe7\x49"
  11163. "\xa8\x4e\x76\xd6\xf5\x0d\x78\xee",
  11164. .ilen = 16,
  11165. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  11166. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  11167. .rlen = 16,
  11168. }, { /* KeySize=128, I=121 */
  11169. .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
  11170. .klen = 16,
  11171. .input = "\x3d\xda\xbf\xc0\x06\xda\xab\x06"
  11172. "\x46\x2a\xf4\xef\x81\x54\x4e\x26",
  11173. .ilen = 16,
  11174. .result = zeroed_string,
  11175. .rlen = 16,
  11176. },
  11177. };
  11178. static struct cipher_testvec serpent_cbc_enc_tv_template[] = {
  11179. { /* Generated with Crypto++ */
  11180. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  11181. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  11182. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  11183. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  11184. .klen = 32,
  11185. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  11186. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  11187. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  11188. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  11189. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  11190. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  11191. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  11192. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  11193. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  11194. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  11195. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  11196. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  11197. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  11198. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  11199. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  11200. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  11201. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  11202. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  11203. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  11204. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  11205. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  11206. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  11207. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  11208. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  11209. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  11210. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  11211. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  11212. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  11213. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  11214. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  11215. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  11216. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  11217. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  11218. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  11219. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  11220. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  11221. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  11222. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  11223. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  11224. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  11225. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  11226. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  11227. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  11228. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  11229. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  11230. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  11231. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  11232. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  11233. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  11234. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  11235. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  11236. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  11237. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  11238. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  11239. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  11240. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  11241. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  11242. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  11243. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  11244. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  11245. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  11246. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  11247. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  11248. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  11249. .ilen = 496,
  11250. .result = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C"
  11251. "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E"
  11252. "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD"
  11253. "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C"
  11254. "\x38\x63\x35\x7E\x79\x18\x0A\xE8"
  11255. "\x67\x06\x76\xD5\xFF\x22\x2F\xDA"
  11256. "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97"
  11257. "\xFE\x53\x75\x35\x97\x7F\x51\xEA"
  11258. "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7"
  11259. "\x62\x67\xFF\x04\xC2\x18\x22\x5F"
  11260. "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E"
  11261. "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41"
  11262. "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB"
  11263. "\x72\x84\xF8\x0A\x3F\x38\x5E\x91"
  11264. "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2"
  11265. "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB"
  11266. "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A"
  11267. "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C"
  11268. "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A"
  11269. "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC"
  11270. "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97"
  11271. "\x5A\x5E\x7E\x96\x52\x20\xDC\x25"
  11272. "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C"
  11273. "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B"
  11274. "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9"
  11275. "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5"
  11276. "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B"
  11277. "\xA1\xC0\x12\x54\x4E\xC9\x20\x92"
  11278. "\x11\x00\x10\x4E\xB3\x7C\xCA\x63"
  11279. "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7"
  11280. "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D"
  11281. "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7"
  11282. "\x81\x92\x66\x67\x15\x1E\x39\x98"
  11283. "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A"
  11284. "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05"
  11285. "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B"
  11286. "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C"
  11287. "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3"
  11288. "\x96\xC6\x66\x49\xDA\x0D\x71\xAC"
  11289. "\x04\x05\x46\xD3\x90\x0F\x64\x64"
  11290. "\x01\x66\x2C\x62\x5D\x34\xD1\xCB"
  11291. "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97"
  11292. "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D"
  11293. "\x62\xA6\x19\x28\x9E\x26\xB4\x3F"
  11294. "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0"
  11295. "\x7D\xE9\x95\x45\x86\xED\xB1\xE0"
  11296. "\x8D\xE9\xC5\x86\x13\x24\x28\x7D"
  11297. "\x74\xEF\xCA\x50\x12\x7E\x64\x8F"
  11298. "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7"
  11299. "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA"
  11300. "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2"
  11301. "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E"
  11302. "\xE6\x75\x0D\x54\x64\x11\xA3\x3A"
  11303. "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E"
  11304. "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4"
  11305. "\xBA\x23\x2D\x8D\x29\x07\x12\xCF"
  11306. "\x34\xCD\x72\x7F\x01\x30\xE7\xA0"
  11307. "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2"
  11308. "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4"
  11309. "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF"
  11310. "\xFC\x66\xAA\x37\xF2\x37\x39\x6B"
  11311. "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1",
  11312. .rlen = 496,
  11313. .also_non_np = 1,
  11314. .np = 3,
  11315. .tap = { 496 - 20, 4, 16 },
  11316. },
  11317. };
  11318. static struct cipher_testvec serpent_cbc_dec_tv_template[] = {
  11319. { /* Generated with Crypto++ */
  11320. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  11321. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  11322. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  11323. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  11324. .klen = 32,
  11325. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  11326. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  11327. .input = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C"
  11328. "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E"
  11329. "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD"
  11330. "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C"
  11331. "\x38\x63\x35\x7E\x79\x18\x0A\xE8"
  11332. "\x67\x06\x76\xD5\xFF\x22\x2F\xDA"
  11333. "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97"
  11334. "\xFE\x53\x75\x35\x97\x7F\x51\xEA"
  11335. "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7"
  11336. "\x62\x67\xFF\x04\xC2\x18\x22\x5F"
  11337. "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E"
  11338. "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41"
  11339. "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB"
  11340. "\x72\x84\xF8\x0A\x3F\x38\x5E\x91"
  11341. "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2"
  11342. "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB"
  11343. "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A"
  11344. "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C"
  11345. "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A"
  11346. "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC"
  11347. "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97"
  11348. "\x5A\x5E\x7E\x96\x52\x20\xDC\x25"
  11349. "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C"
  11350. "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B"
  11351. "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9"
  11352. "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5"
  11353. "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B"
  11354. "\xA1\xC0\x12\x54\x4E\xC9\x20\x92"
  11355. "\x11\x00\x10\x4E\xB3\x7C\xCA\x63"
  11356. "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7"
  11357. "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D"
  11358. "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7"
  11359. "\x81\x92\x66\x67\x15\x1E\x39\x98"
  11360. "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A"
  11361. "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05"
  11362. "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B"
  11363. "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C"
  11364. "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3"
  11365. "\x96\xC6\x66\x49\xDA\x0D\x71\xAC"
  11366. "\x04\x05\x46\xD3\x90\x0F\x64\x64"
  11367. "\x01\x66\x2C\x62\x5D\x34\xD1\xCB"
  11368. "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97"
  11369. "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D"
  11370. "\x62\xA6\x19\x28\x9E\x26\xB4\x3F"
  11371. "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0"
  11372. "\x7D\xE9\x95\x45\x86\xED\xB1\xE0"
  11373. "\x8D\xE9\xC5\x86\x13\x24\x28\x7D"
  11374. "\x74\xEF\xCA\x50\x12\x7E\x64\x8F"
  11375. "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7"
  11376. "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA"
  11377. "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2"
  11378. "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E"
  11379. "\xE6\x75\x0D\x54\x64\x11\xA3\x3A"
  11380. "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E"
  11381. "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4"
  11382. "\xBA\x23\x2D\x8D\x29\x07\x12\xCF"
  11383. "\x34\xCD\x72\x7F\x01\x30\xE7\xA0"
  11384. "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2"
  11385. "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4"
  11386. "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF"
  11387. "\xFC\x66\xAA\x37\xF2\x37\x39\x6B"
  11388. "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1",
  11389. .ilen = 496,
  11390. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  11391. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  11392. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  11393. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  11394. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  11395. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  11396. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  11397. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  11398. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  11399. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  11400. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  11401. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  11402. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  11403. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  11404. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  11405. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  11406. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  11407. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  11408. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  11409. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  11410. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  11411. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  11412. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  11413. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  11414. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  11415. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  11416. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  11417. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  11418. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  11419. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  11420. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  11421. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  11422. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  11423. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  11424. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  11425. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  11426. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  11427. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  11428. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  11429. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  11430. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  11431. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  11432. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  11433. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  11434. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  11435. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  11436. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  11437. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  11438. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  11439. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  11440. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  11441. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  11442. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  11443. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  11444. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  11445. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  11446. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  11447. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  11448. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  11449. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  11450. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  11451. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  11452. .rlen = 496,
  11453. .also_non_np = 1,
  11454. .np = 3,
  11455. .tap = { 496 - 20, 4, 16 },
  11456. },
  11457. };
  11458. static struct cipher_testvec serpent_ctr_enc_tv_template[] = {
  11459. { /* Generated with Crypto++ */
  11460. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  11461. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  11462. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  11463. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  11464. .klen = 32,
  11465. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  11466. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  11467. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  11468. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  11469. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  11470. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  11471. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  11472. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  11473. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  11474. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  11475. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  11476. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  11477. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  11478. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  11479. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  11480. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  11481. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  11482. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  11483. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  11484. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  11485. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  11486. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  11487. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  11488. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  11489. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  11490. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  11491. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  11492. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  11493. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  11494. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  11495. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  11496. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  11497. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  11498. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  11499. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  11500. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  11501. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  11502. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  11503. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  11504. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  11505. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  11506. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  11507. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  11508. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  11509. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  11510. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  11511. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  11512. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  11513. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  11514. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  11515. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  11516. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  11517. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  11518. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  11519. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  11520. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  11521. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  11522. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  11523. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  11524. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  11525. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  11526. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  11527. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  11528. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  11529. .ilen = 496,
  11530. .result = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
  11531. "\x37\x69\xE3\x3A\x22\x85\x48\x46"
  11532. "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
  11533. "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
  11534. "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
  11535. "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
  11536. "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
  11537. "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
  11538. "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
  11539. "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
  11540. "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
  11541. "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
  11542. "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
  11543. "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
  11544. "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
  11545. "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
  11546. "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
  11547. "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
  11548. "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
  11549. "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
  11550. "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
  11551. "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
  11552. "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
  11553. "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
  11554. "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
  11555. "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
  11556. "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
  11557. "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
  11558. "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
  11559. "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
  11560. "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
  11561. "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
  11562. "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
  11563. "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
  11564. "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
  11565. "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
  11566. "\x07\x97\x38\x4B\x5C\x56\x98\x67"
  11567. "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
  11568. "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
  11569. "\x18\x06\x15\x9D\x5A\x10\x13\x37"
  11570. "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
  11571. "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
  11572. "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
  11573. "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
  11574. "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
  11575. "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
  11576. "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
  11577. "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
  11578. "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
  11579. "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
  11580. "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
  11581. "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
  11582. "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
  11583. "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
  11584. "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
  11585. "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
  11586. "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
  11587. "\x90\x47\x40\x92\xE6\x69\xD1\x96"
  11588. "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
  11589. "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
  11590. "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
  11591. "\x40\x53\x77\x8C\x15\xF8\x8D\x13",
  11592. .rlen = 496,
  11593. }, { /* Generated with Crypto++ */
  11594. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  11595. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  11596. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  11597. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  11598. .klen = 32,
  11599. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  11600. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  11601. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  11602. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  11603. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  11604. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  11605. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  11606. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  11607. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  11608. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  11609. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  11610. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  11611. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  11612. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  11613. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  11614. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  11615. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  11616. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  11617. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  11618. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  11619. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  11620. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  11621. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  11622. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  11623. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  11624. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  11625. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  11626. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  11627. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  11628. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  11629. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  11630. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  11631. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  11632. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  11633. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  11634. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  11635. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  11636. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  11637. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  11638. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  11639. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  11640. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  11641. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  11642. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  11643. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  11644. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  11645. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  11646. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  11647. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  11648. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  11649. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  11650. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  11651. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  11652. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  11653. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  11654. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  11655. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  11656. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  11657. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  11658. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  11659. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  11660. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  11661. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  11662. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  11663. "\x2B\xC2\x59",
  11664. .ilen = 499,
  11665. .result = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
  11666. "\x37\x69\xE3\x3A\x22\x85\x48\x46"
  11667. "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
  11668. "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
  11669. "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
  11670. "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
  11671. "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
  11672. "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
  11673. "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
  11674. "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
  11675. "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
  11676. "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
  11677. "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
  11678. "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
  11679. "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
  11680. "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
  11681. "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
  11682. "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
  11683. "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
  11684. "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
  11685. "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
  11686. "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
  11687. "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
  11688. "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
  11689. "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
  11690. "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
  11691. "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
  11692. "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
  11693. "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
  11694. "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
  11695. "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
  11696. "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
  11697. "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
  11698. "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
  11699. "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
  11700. "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
  11701. "\x07\x97\x38\x4B\x5C\x56\x98\x67"
  11702. "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
  11703. "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
  11704. "\x18\x06\x15\x9D\x5A\x10\x13\x37"
  11705. "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
  11706. "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
  11707. "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
  11708. "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
  11709. "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
  11710. "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
  11711. "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
  11712. "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
  11713. "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
  11714. "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
  11715. "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
  11716. "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
  11717. "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
  11718. "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
  11719. "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
  11720. "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
  11721. "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
  11722. "\x90\x47\x40\x92\xE6\x69\xD1\x96"
  11723. "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
  11724. "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
  11725. "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
  11726. "\x40\x53\x77\x8C\x15\xF8\x8D\x13"
  11727. "\x38\xE2\xE5",
  11728. .rlen = 499,
  11729. .also_non_np = 1,
  11730. .np = 2,
  11731. .tap = { 499 - 16, 16 },
  11732. }, { /* Generated with Crypto++ */
  11733. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  11734. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  11735. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  11736. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  11737. .klen = 32,
  11738. .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
  11739. "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
  11740. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  11741. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  11742. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  11743. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  11744. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  11745. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  11746. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  11747. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  11748. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  11749. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  11750. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  11751. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  11752. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  11753. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  11754. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  11755. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  11756. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  11757. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  11758. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  11759. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  11760. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  11761. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  11762. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  11763. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  11764. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  11765. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  11766. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  11767. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  11768. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  11769. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  11770. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  11771. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  11772. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  11773. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  11774. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  11775. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  11776. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  11777. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  11778. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  11779. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  11780. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  11781. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  11782. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  11783. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  11784. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  11785. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  11786. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  11787. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  11788. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  11789. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  11790. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  11791. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  11792. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  11793. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  11794. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  11795. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  11796. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  11797. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  11798. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  11799. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  11800. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  11801. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  11802. .ilen = 496,
  11803. .result = "\x06\x9A\xF8\xB4\x53\x88\x62\xFC"
  11804. "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D"
  11805. "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC"
  11806. "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A"
  11807. "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E"
  11808. "\x71\x28\x06\x4F\xE8\x08\x39\xDA"
  11809. "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69"
  11810. "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B"
  11811. "\x9F\x3E\x39\x79\xF0\xCD\x64\x35"
  11812. "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B"
  11813. "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18"
  11814. "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2"
  11815. "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47"
  11816. "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2"
  11817. "\x7D\xE2\x43\x81\x86\x72\x2E\xB1"
  11818. "\x39\xF6\x95\xE1\x1F\xCB\x76\x33"
  11819. "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F"
  11820. "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C"
  11821. "\x70\xFE\x52\xAA\x93\x3C\xC4\x46"
  11822. "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE"
  11823. "\x25\x92\xB2\x63\xBD\x49\x77\xB4"
  11824. "\x22\xA4\x6A\xD5\x04\xE0\x45\x58"
  11825. "\x1C\x34\x96\x7C\x03\x0C\x13\xA2"
  11826. "\x05\x22\xE2\xCB\x5A\x35\x03\x09"
  11827. "\x40\xD2\x82\x05\xCA\x58\x73\xF2"
  11828. "\x29\x5E\x01\x47\x13\x32\x78\xBE"
  11829. "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C"
  11830. "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1"
  11831. "\x38\x35\x11\x26\x4A\xB4\x06\x32"
  11832. "\xFA\xD2\x07\x77\xB3\x74\x98\x80"
  11833. "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF"
  11834. "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F"
  11835. "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65"
  11836. "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA"
  11837. "\xD6\x9B\xC9\x6D\x58\x40\x81\x02"
  11838. "\x73\x44\x4E\x43\x6E\x37\xBB\x11"
  11839. "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA"
  11840. "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8"
  11841. "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B"
  11842. "\x07\xB5\x82\x3A\xC4\xE8\x42\x51"
  11843. "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F"
  11844. "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7"
  11845. "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F"
  11846. "\xBF\xF9\xAC\x59\x50\xA8\x08\x70"
  11847. "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2"
  11848. "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD"
  11849. "\xC1\x03\x9A\xAA\x89\x8B\x32\x46"
  11850. "\x5B\x18\x27\xBA\x46\xAA\x64\xDE"
  11851. "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB"
  11852. "\x7E\xDA\xEC\x30\x17\x19\xF8\x80"
  11853. "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28"
  11854. "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE"
  11855. "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8"
  11856. "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B"
  11857. "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E"
  11858. "\xDC\x34\x27\x89\x98\xCE\x1C\xA2"
  11859. "\xD8\xB8\x90\xBE\xEC\x72\x28\x13"
  11860. "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50"
  11861. "\xB7\x99\x65\x8A\xC9\xC6\x21\x34"
  11862. "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17"
  11863. "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0"
  11864. "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20",
  11865. .rlen = 496,
  11866. },
  11867. };
  11868. static struct cipher_testvec serpent_ctr_dec_tv_template[] = {
  11869. { /* Generated with Crypto++ */
  11870. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  11871. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  11872. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  11873. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  11874. .klen = 32,
  11875. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  11876. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  11877. .input = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
  11878. "\x37\x69\xE3\x3A\x22\x85\x48\x46"
  11879. "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
  11880. "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
  11881. "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
  11882. "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
  11883. "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
  11884. "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
  11885. "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
  11886. "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
  11887. "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
  11888. "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
  11889. "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
  11890. "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
  11891. "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
  11892. "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
  11893. "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
  11894. "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
  11895. "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
  11896. "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
  11897. "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
  11898. "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
  11899. "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
  11900. "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
  11901. "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
  11902. "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
  11903. "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
  11904. "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
  11905. "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
  11906. "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
  11907. "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
  11908. "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
  11909. "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
  11910. "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
  11911. "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
  11912. "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
  11913. "\x07\x97\x38\x4B\x5C\x56\x98\x67"
  11914. "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
  11915. "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
  11916. "\x18\x06\x15\x9D\x5A\x10\x13\x37"
  11917. "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
  11918. "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
  11919. "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
  11920. "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
  11921. "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
  11922. "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
  11923. "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
  11924. "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
  11925. "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
  11926. "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
  11927. "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
  11928. "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
  11929. "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
  11930. "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
  11931. "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
  11932. "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
  11933. "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
  11934. "\x90\x47\x40\x92\xE6\x69\xD1\x96"
  11935. "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
  11936. "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
  11937. "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
  11938. "\x40\x53\x77\x8C\x15\xF8\x8D\x13",
  11939. .ilen = 496,
  11940. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  11941. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  11942. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  11943. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  11944. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  11945. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  11946. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  11947. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  11948. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  11949. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  11950. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  11951. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  11952. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  11953. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  11954. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  11955. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  11956. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  11957. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  11958. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  11959. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  11960. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  11961. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  11962. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  11963. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  11964. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  11965. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  11966. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  11967. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  11968. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  11969. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  11970. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  11971. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  11972. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  11973. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  11974. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  11975. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  11976. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  11977. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  11978. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  11979. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  11980. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  11981. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  11982. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  11983. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  11984. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  11985. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  11986. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  11987. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  11988. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  11989. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  11990. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  11991. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  11992. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  11993. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  11994. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  11995. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  11996. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  11997. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  11998. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  11999. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  12000. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  12001. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  12002. .rlen = 496,
  12003. }, { /* Generated with Crypto++ */
  12004. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  12005. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  12006. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  12007. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  12008. .klen = 32,
  12009. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  12010. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  12011. .input = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
  12012. "\x37\x69\xE3\x3A\x22\x85\x48\x46"
  12013. "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
  12014. "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
  12015. "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
  12016. "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
  12017. "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
  12018. "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
  12019. "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
  12020. "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
  12021. "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
  12022. "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
  12023. "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
  12024. "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
  12025. "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
  12026. "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
  12027. "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
  12028. "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
  12029. "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
  12030. "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
  12031. "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
  12032. "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
  12033. "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
  12034. "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
  12035. "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
  12036. "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
  12037. "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
  12038. "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
  12039. "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
  12040. "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
  12041. "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
  12042. "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
  12043. "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
  12044. "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
  12045. "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
  12046. "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
  12047. "\x07\x97\x38\x4B\x5C\x56\x98\x67"
  12048. "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
  12049. "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
  12050. "\x18\x06\x15\x9D\x5A\x10\x13\x37"
  12051. "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
  12052. "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
  12053. "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
  12054. "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
  12055. "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
  12056. "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
  12057. "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
  12058. "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
  12059. "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
  12060. "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
  12061. "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
  12062. "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
  12063. "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
  12064. "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
  12065. "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
  12066. "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
  12067. "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
  12068. "\x90\x47\x40\x92\xE6\x69\xD1\x96"
  12069. "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
  12070. "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
  12071. "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
  12072. "\x40\x53\x77\x8C\x15\xF8\x8D\x13"
  12073. "\x38\xE2\xE5",
  12074. .ilen = 499,
  12075. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  12076. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  12077. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  12078. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  12079. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  12080. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  12081. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  12082. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  12083. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  12084. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  12085. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  12086. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  12087. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  12088. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  12089. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  12090. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  12091. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  12092. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  12093. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  12094. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  12095. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  12096. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  12097. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  12098. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  12099. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  12100. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  12101. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  12102. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  12103. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  12104. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  12105. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  12106. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  12107. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  12108. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  12109. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  12110. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  12111. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  12112. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  12113. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  12114. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  12115. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  12116. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  12117. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  12118. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  12119. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  12120. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  12121. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  12122. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  12123. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  12124. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  12125. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  12126. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  12127. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  12128. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  12129. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  12130. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  12131. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  12132. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  12133. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  12134. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  12135. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  12136. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  12137. "\x2B\xC2\x59",
  12138. .rlen = 499,
  12139. .also_non_np = 1,
  12140. .np = 2,
  12141. .tap = { 499 - 16, 16 },
  12142. }, { /* Generated with Crypto++ */
  12143. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  12144. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  12145. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  12146. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  12147. .klen = 32,
  12148. .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
  12149. "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
  12150. .input = "\x06\x9A\xF8\xB4\x53\x88\x62\xFC"
  12151. "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D"
  12152. "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC"
  12153. "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A"
  12154. "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E"
  12155. "\x71\x28\x06\x4F\xE8\x08\x39\xDA"
  12156. "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69"
  12157. "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B"
  12158. "\x9F\x3E\x39\x79\xF0\xCD\x64\x35"
  12159. "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B"
  12160. "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18"
  12161. "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2"
  12162. "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47"
  12163. "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2"
  12164. "\x7D\xE2\x43\x81\x86\x72\x2E\xB1"
  12165. "\x39\xF6\x95\xE1\x1F\xCB\x76\x33"
  12166. "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F"
  12167. "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C"
  12168. "\x70\xFE\x52\xAA\x93\x3C\xC4\x46"
  12169. "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE"
  12170. "\x25\x92\xB2\x63\xBD\x49\x77\xB4"
  12171. "\x22\xA4\x6A\xD5\x04\xE0\x45\x58"
  12172. "\x1C\x34\x96\x7C\x03\x0C\x13\xA2"
  12173. "\x05\x22\xE2\xCB\x5A\x35\x03\x09"
  12174. "\x40\xD2\x82\x05\xCA\x58\x73\xF2"
  12175. "\x29\x5E\x01\x47\x13\x32\x78\xBE"
  12176. "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C"
  12177. "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1"
  12178. "\x38\x35\x11\x26\x4A\xB4\x06\x32"
  12179. "\xFA\xD2\x07\x77\xB3\x74\x98\x80"
  12180. "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF"
  12181. "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F"
  12182. "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65"
  12183. "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA"
  12184. "\xD6\x9B\xC9\x6D\x58\x40\x81\x02"
  12185. "\x73\x44\x4E\x43\x6E\x37\xBB\x11"
  12186. "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA"
  12187. "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8"
  12188. "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B"
  12189. "\x07\xB5\x82\x3A\xC4\xE8\x42\x51"
  12190. "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F"
  12191. "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7"
  12192. "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F"
  12193. "\xBF\xF9\xAC\x59\x50\xA8\x08\x70"
  12194. "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2"
  12195. "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD"
  12196. "\xC1\x03\x9A\xAA\x89\x8B\x32\x46"
  12197. "\x5B\x18\x27\xBA\x46\xAA\x64\xDE"
  12198. "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB"
  12199. "\x7E\xDA\xEC\x30\x17\x19\xF8\x80"
  12200. "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28"
  12201. "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE"
  12202. "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8"
  12203. "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B"
  12204. "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E"
  12205. "\xDC\x34\x27\x89\x98\xCE\x1C\xA2"
  12206. "\xD8\xB8\x90\xBE\xEC\x72\x28\x13"
  12207. "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50"
  12208. "\xB7\x99\x65\x8A\xC9\xC6\x21\x34"
  12209. "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17"
  12210. "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0"
  12211. "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20",
  12212. .ilen = 496,
  12213. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  12214. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  12215. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  12216. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  12217. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  12218. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  12219. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  12220. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  12221. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  12222. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  12223. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  12224. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  12225. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  12226. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  12227. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  12228. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  12229. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  12230. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  12231. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  12232. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  12233. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  12234. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  12235. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  12236. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  12237. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  12238. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  12239. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  12240. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  12241. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  12242. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  12243. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  12244. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  12245. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  12246. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  12247. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  12248. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  12249. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  12250. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  12251. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  12252. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  12253. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  12254. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  12255. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  12256. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  12257. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  12258. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  12259. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  12260. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  12261. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  12262. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  12263. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  12264. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  12265. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  12266. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  12267. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  12268. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  12269. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  12270. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  12271. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  12272. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  12273. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  12274. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  12275. .rlen = 496,
  12276. },
  12277. };
  12278. static struct cipher_testvec serpent_lrw_enc_tv_template[] = {
  12279. /* Generated from AES-LRW test vectors */
  12280. {
  12281. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  12282. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  12283. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  12284. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  12285. .klen = 32,
  12286. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  12287. "\x00\x00\x00\x00\x00\x00\x00\x01",
  12288. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  12289. "\x38\x39\x41\x42\x43\x44\x45\x46",
  12290. .ilen = 16,
  12291. .result = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79"
  12292. "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a",
  12293. .rlen = 16,
  12294. }, {
  12295. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  12296. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  12297. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  12298. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  12299. .klen = 32,
  12300. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  12301. "\x00\x00\x00\x00\x00\x00\x00\x02",
  12302. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  12303. "\x38\x39\x41\x42\x43\x44\x45\x46",
  12304. .ilen = 16,
  12305. .result = "\xfd\xb2\x66\x98\x80\x96\x55\xad"
  12306. "\x08\x94\x54\x9c\x21\x7c\x69\xe3",
  12307. .rlen = 16,
  12308. }, {
  12309. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  12310. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  12311. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  12312. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  12313. .klen = 32,
  12314. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  12315. "\x00\x00\x00\x02\x00\x00\x00\x00",
  12316. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  12317. "\x38\x39\x41\x42\x43\x44\x45\x46",
  12318. .ilen = 16,
  12319. .result = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34"
  12320. "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c",
  12321. .rlen = 16,
  12322. }, {
  12323. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  12324. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  12325. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  12326. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  12327. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  12328. .klen = 40,
  12329. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  12330. "\x00\x00\x00\x00\x00\x00\x00\x01",
  12331. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  12332. "\x38\x39\x41\x42\x43\x44\x45\x46",
  12333. .ilen = 16,
  12334. .result = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc"
  12335. "\x5d\x45\x95\x30\x8f\xff\x2f\x1b",
  12336. .rlen = 16,
  12337. }, {
  12338. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  12339. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  12340. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  12341. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  12342. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  12343. .klen = 40,
  12344. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  12345. "\x00\x00\x00\x02\x00\x00\x00\x00",
  12346. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  12347. "\x38\x39\x41\x42\x43\x44\x45\x46",
  12348. .ilen = 16,
  12349. .result = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f"
  12350. "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26",
  12351. .rlen = 16,
  12352. }, {
  12353. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  12354. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  12355. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  12356. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  12357. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  12358. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  12359. .klen = 48,
  12360. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  12361. "\x00\x00\x00\x00\x00\x00\x00\x01",
  12362. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  12363. "\x38\x39\x41\x42\x43\x44\x45\x46",
  12364. .ilen = 16,
  12365. .result = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c"
  12366. "\x2e\x18\xe6\x99\xcd\xd3\x15\x68",
  12367. .rlen = 16,
  12368. }, {
  12369. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  12370. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  12371. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  12372. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  12373. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  12374. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  12375. .klen = 48,
  12376. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  12377. "\x00\x00\x00\x02\x00\x00\x00\x00",
  12378. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  12379. "\x38\x39\x41\x42\x43\x44\x45\x46",
  12380. .ilen = 16,
  12381. .result = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6"
  12382. "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf",
  12383. .rlen = 16,
  12384. }, {
  12385. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  12386. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  12387. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  12388. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  12389. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  12390. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  12391. .klen = 48,
  12392. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  12393. "\x00\x00\x00\x00\x00\x00\x00\x01",
  12394. .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  12395. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  12396. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  12397. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  12398. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  12399. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  12400. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  12401. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  12402. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  12403. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  12404. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  12405. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  12406. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  12407. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  12408. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  12409. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  12410. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  12411. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  12412. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  12413. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  12414. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  12415. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  12416. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  12417. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  12418. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  12419. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  12420. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  12421. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  12422. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  12423. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  12424. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  12425. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  12426. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  12427. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  12428. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  12429. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  12430. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  12431. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  12432. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  12433. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  12434. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  12435. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  12436. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  12437. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  12438. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  12439. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  12440. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  12441. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  12442. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  12443. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  12444. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  12445. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  12446. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  12447. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  12448. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  12449. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  12450. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  12451. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  12452. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  12453. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  12454. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  12455. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  12456. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  12457. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  12458. .ilen = 512,
  12459. .result = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74"
  12460. "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d"
  12461. "\x82\xec\xf1\x5f\x03\x6d\x02\x58"
  12462. "\x90\x67\xfc\xdd\x8d\xe1\x38\x08"
  12463. "\x7b\xc9\x9b\x4b\x04\x09\x50\x15"
  12464. "\xce\xab\xda\x33\x30\x20\x12\xfa"
  12465. "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9"
  12466. "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c"
  12467. "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22"
  12468. "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b"
  12469. "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5"
  12470. "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5"
  12471. "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b"
  12472. "\x89\x58\x7c\x9a\xae\x26\xe8\xb7"
  12473. "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d"
  12474. "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47"
  12475. "\x5f\x03\x8b\xdd\x94\xd1\xee\x12"
  12476. "\xa7\x83\x80\xf2\xc1\x15\x74\x4f"
  12477. "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f"
  12478. "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52"
  12479. "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98"
  12480. "\x04\xd6\xdd\x4c\x00\x64\xd9\x54"
  12481. "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8"
  12482. "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b"
  12483. "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9"
  12484. "\x04\xc3\x6f\x17\x66\xa9\x1f\x59"
  12485. "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b"
  12486. "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43"
  12487. "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb"
  12488. "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49"
  12489. "\xb3\xac\x5d\xcf\x31\xa0\x27\x26"
  12490. "\x21\xbe\x94\x2e\x19\xea\xf4\xee"
  12491. "\xb5\x13\x89\xf7\x94\x0b\xef\x59"
  12492. "\x44\xc5\x78\x8b\x3c\x3b\x71\x20"
  12493. "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2"
  12494. "\xb4\x11\x0e\x2c\x61\xa1\x52\x46"
  12495. "\x18\x11\x16\xc6\x86\x44\xa7\xaf"
  12496. "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b"
  12497. "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea"
  12498. "\x3f\x0e\x90\xd6\x8f\x83\x30\x64"
  12499. "\xb5\x51\x2d\x08\x3c\xcd\x99\x36"
  12500. "\x96\xd4\xb1\xb5\x48\x30\xca\x48"
  12501. "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d"
  12502. "\x12\x33\x2f\xc0\xe8\xda\xec\x8a"
  12503. "\xe1\x88\x72\x63\xde\x20\xa3\xe1"
  12504. "\x8e\xac\x84\x37\x35\xf5\xf7\x3f"
  12505. "\x00\x02\x0e\xe4\xc1\x53\x68\x3f"
  12506. "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d"
  12507. "\x7c\x83\xd0\xbd\xaa\x97\x35\x36"
  12508. "\x98\x88\x59\x5d\xe7\x24\xe3\x90"
  12509. "\x9d\x30\x47\xa7\xc3\x60\x35\xf4"
  12510. "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b"
  12511. "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d"
  12512. "\x49\x5a\x3c\x8a\xa3\x01\xae\x25"
  12513. "\x42\xab\xd2\x87\x1b\x35\xd6\xd2"
  12514. "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39"
  12515. "\x1c\x58\xa2\xb4\xd0\x78\x55\x72"
  12516. "\x76\x59\xea\xd9\xd7\x6e\x63\x8b"
  12517. "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68"
  12518. "\x86\x28\xd1\xbb\x54\x8d\x66\xad"
  12519. "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd"
  12520. "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a"
  12521. "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd"
  12522. "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7",
  12523. .rlen = 512,
  12524. .also_non_np = 1,
  12525. .np = 3,
  12526. .tap = { 512 - 20, 4, 16 },
  12527. },
  12528. };
  12529. static struct cipher_testvec serpent_lrw_dec_tv_template[] = {
  12530. /* Generated from AES-LRW test vectors */
  12531. /* same as enc vectors with input and result reversed */
  12532. {
  12533. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  12534. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  12535. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  12536. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  12537. .klen = 32,
  12538. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  12539. "\x00\x00\x00\x00\x00\x00\x00\x01",
  12540. .input = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79"
  12541. "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a",
  12542. .ilen = 16,
  12543. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  12544. "\x38\x39\x41\x42\x43\x44\x45\x46",
  12545. .rlen = 16,
  12546. }, {
  12547. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  12548. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  12549. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  12550. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  12551. .klen = 32,
  12552. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  12553. "\x00\x00\x00\x00\x00\x00\x00\x02",
  12554. .input = "\xfd\xb2\x66\x98\x80\x96\x55\xad"
  12555. "\x08\x94\x54\x9c\x21\x7c\x69\xe3",
  12556. .ilen = 16,
  12557. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  12558. "\x38\x39\x41\x42\x43\x44\x45\x46",
  12559. .rlen = 16,
  12560. }, {
  12561. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  12562. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  12563. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  12564. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  12565. .klen = 32,
  12566. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  12567. "\x00\x00\x00\x02\x00\x00\x00\x00",
  12568. .input = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34"
  12569. "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c",
  12570. .ilen = 16,
  12571. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  12572. "\x38\x39\x41\x42\x43\x44\x45\x46",
  12573. .rlen = 16,
  12574. }, {
  12575. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  12576. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  12577. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  12578. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  12579. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  12580. .klen = 40,
  12581. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  12582. "\x00\x00\x00\x00\x00\x00\x00\x01",
  12583. .input = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc"
  12584. "\x5d\x45\x95\x30\x8f\xff\x2f\x1b",
  12585. .ilen = 16,
  12586. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  12587. "\x38\x39\x41\x42\x43\x44\x45\x46",
  12588. .rlen = 16,
  12589. }, {
  12590. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  12591. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  12592. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  12593. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  12594. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  12595. .klen = 40,
  12596. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  12597. "\x00\x00\x00\x02\x00\x00\x00\x00",
  12598. .input = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f"
  12599. "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26",
  12600. .ilen = 16,
  12601. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  12602. "\x38\x39\x41\x42\x43\x44\x45\x46",
  12603. .rlen = 16,
  12604. }, {
  12605. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  12606. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  12607. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  12608. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  12609. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  12610. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  12611. .klen = 48,
  12612. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  12613. "\x00\x00\x00\x00\x00\x00\x00\x01",
  12614. .input = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c"
  12615. "\x2e\x18\xe6\x99\xcd\xd3\x15\x68",
  12616. .ilen = 16,
  12617. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  12618. "\x38\x39\x41\x42\x43\x44\x45\x46",
  12619. .rlen = 16,
  12620. }, {
  12621. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  12622. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  12623. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  12624. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  12625. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  12626. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  12627. .klen = 48,
  12628. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  12629. "\x00\x00\x00\x02\x00\x00\x00\x00",
  12630. .input = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6"
  12631. "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf",
  12632. .ilen = 16,
  12633. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  12634. "\x38\x39\x41\x42\x43\x44\x45\x46",
  12635. .rlen = 16,
  12636. }, {
  12637. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  12638. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  12639. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  12640. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  12641. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  12642. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  12643. .klen = 48,
  12644. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  12645. "\x00\x00\x00\x00\x00\x00\x00\x01",
  12646. .input = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74"
  12647. "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d"
  12648. "\x82\xec\xf1\x5f\x03\x6d\x02\x58"
  12649. "\x90\x67\xfc\xdd\x8d\xe1\x38\x08"
  12650. "\x7b\xc9\x9b\x4b\x04\x09\x50\x15"
  12651. "\xce\xab\xda\x33\x30\x20\x12\xfa"
  12652. "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9"
  12653. "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c"
  12654. "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22"
  12655. "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b"
  12656. "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5"
  12657. "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5"
  12658. "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b"
  12659. "\x89\x58\x7c\x9a\xae\x26\xe8\xb7"
  12660. "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d"
  12661. "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47"
  12662. "\x5f\x03\x8b\xdd\x94\xd1\xee\x12"
  12663. "\xa7\x83\x80\xf2\xc1\x15\x74\x4f"
  12664. "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f"
  12665. "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52"
  12666. "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98"
  12667. "\x04\xd6\xdd\x4c\x00\x64\xd9\x54"
  12668. "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8"
  12669. "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b"
  12670. "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9"
  12671. "\x04\xc3\x6f\x17\x66\xa9\x1f\x59"
  12672. "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b"
  12673. "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43"
  12674. "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb"
  12675. "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49"
  12676. "\xb3\xac\x5d\xcf\x31\xa0\x27\x26"
  12677. "\x21\xbe\x94\x2e\x19\xea\xf4\xee"
  12678. "\xb5\x13\x89\xf7\x94\x0b\xef\x59"
  12679. "\x44\xc5\x78\x8b\x3c\x3b\x71\x20"
  12680. "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2"
  12681. "\xb4\x11\x0e\x2c\x61\xa1\x52\x46"
  12682. "\x18\x11\x16\xc6\x86\x44\xa7\xaf"
  12683. "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b"
  12684. "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea"
  12685. "\x3f\x0e\x90\xd6\x8f\x83\x30\x64"
  12686. "\xb5\x51\x2d\x08\x3c\xcd\x99\x36"
  12687. "\x96\xd4\xb1\xb5\x48\x30\xca\x48"
  12688. "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d"
  12689. "\x12\x33\x2f\xc0\xe8\xda\xec\x8a"
  12690. "\xe1\x88\x72\x63\xde\x20\xa3\xe1"
  12691. "\x8e\xac\x84\x37\x35\xf5\xf7\x3f"
  12692. "\x00\x02\x0e\xe4\xc1\x53\x68\x3f"
  12693. "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d"
  12694. "\x7c\x83\xd0\xbd\xaa\x97\x35\x36"
  12695. "\x98\x88\x59\x5d\xe7\x24\xe3\x90"
  12696. "\x9d\x30\x47\xa7\xc3\x60\x35\xf4"
  12697. "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b"
  12698. "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d"
  12699. "\x49\x5a\x3c\x8a\xa3\x01\xae\x25"
  12700. "\x42\xab\xd2\x87\x1b\x35\xd6\xd2"
  12701. "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39"
  12702. "\x1c\x58\xa2\xb4\xd0\x78\x55\x72"
  12703. "\x76\x59\xea\xd9\xd7\x6e\x63\x8b"
  12704. "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68"
  12705. "\x86\x28\xd1\xbb\x54\x8d\x66\xad"
  12706. "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd"
  12707. "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a"
  12708. "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd"
  12709. "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7",
  12710. .ilen = 512,
  12711. .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  12712. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  12713. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  12714. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  12715. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  12716. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  12717. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  12718. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  12719. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  12720. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  12721. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  12722. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  12723. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  12724. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  12725. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  12726. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  12727. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  12728. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  12729. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  12730. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  12731. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  12732. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  12733. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  12734. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  12735. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  12736. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  12737. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  12738. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  12739. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  12740. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  12741. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  12742. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  12743. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  12744. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  12745. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  12746. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  12747. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  12748. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  12749. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  12750. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  12751. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  12752. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  12753. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  12754. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  12755. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  12756. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  12757. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  12758. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  12759. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  12760. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  12761. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  12762. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  12763. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  12764. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  12765. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  12766. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  12767. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  12768. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  12769. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  12770. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  12771. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  12772. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  12773. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  12774. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  12775. .rlen = 512,
  12776. .also_non_np = 1,
  12777. .np = 3,
  12778. .tap = { 512 - 20, 4, 16 },
  12779. },
  12780. };
  12781. static struct cipher_testvec serpent_xts_enc_tv_template[] = {
  12782. /* Generated from AES-XTS test vectors */
  12783. {
  12784. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  12785. "\x00\x00\x00\x00\x00\x00\x00\x00"
  12786. "\x00\x00\x00\x00\x00\x00\x00\x00"
  12787. "\x00\x00\x00\x00\x00\x00\x00\x00",
  12788. .klen = 32,
  12789. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  12790. "\x00\x00\x00\x00\x00\x00\x00\x00",
  12791. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  12792. "\x00\x00\x00\x00\x00\x00\x00\x00"
  12793. "\x00\x00\x00\x00\x00\x00\x00\x00"
  12794. "\x00\x00\x00\x00\x00\x00\x00\x00",
  12795. .ilen = 32,
  12796. .result = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64"
  12797. "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4"
  12798. "\x6a\x31\xc5\xf3\x00\xca\xb9\x16"
  12799. "\xde\xe2\x77\x66\xf7\xfe\x62\x08",
  12800. .rlen = 32,
  12801. }, {
  12802. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  12803. "\x11\x11\x11\x11\x11\x11\x11\x11"
  12804. "\x22\x22\x22\x22\x22\x22\x22\x22"
  12805. "\x22\x22\x22\x22\x22\x22\x22\x22",
  12806. .klen = 32,
  12807. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  12808. "\x00\x00\x00\x00\x00\x00\x00\x00",
  12809. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  12810. "\x44\x44\x44\x44\x44\x44\x44\x44"
  12811. "\x44\x44\x44\x44\x44\x44\x44\x44"
  12812. "\x44\x44\x44\x44\x44\x44\x44\x44",
  12813. .ilen = 32,
  12814. .result = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98"
  12815. "\x41\x86\x12\xaf\xb3\xd7\x68\x13"
  12816. "\xed\x81\xcd\x06\x87\x43\x1a\xbb"
  12817. "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe",
  12818. .rlen = 32,
  12819. }, {
  12820. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  12821. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  12822. "\x22\x22\x22\x22\x22\x22\x22\x22"
  12823. "\x22\x22\x22\x22\x22\x22\x22\x22",
  12824. .klen = 32,
  12825. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  12826. "\x00\x00\x00\x00\x00\x00\x00\x00",
  12827. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  12828. "\x44\x44\x44\x44\x44\x44\x44\x44"
  12829. "\x44\x44\x44\x44\x44\x44\x44\x44"
  12830. "\x44\x44\x44\x44\x44\x44\x44\x44",
  12831. .ilen = 32,
  12832. .result = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61"
  12833. "\xb6\x1c\x81\x8f\x2c\x87\x60\x89"
  12834. "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86"
  12835. "\xc1\x68\x45\xaa\x00\xe9\x24\xc5",
  12836. .rlen = 32,
  12837. }, {
  12838. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  12839. "\x23\x53\x60\x28\x74\x71\x35\x26"
  12840. "\x31\x41\x59\x26\x53\x58\x97\x93"
  12841. "\x23\x84\x62\x64\x33\x83\x27\x95",
  12842. .klen = 32,
  12843. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  12844. "\x00\x00\x00\x00\x00\x00\x00\x00",
  12845. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  12846. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  12847. "\x10\x11\x12\x13\x14\x15\x16\x17"
  12848. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  12849. "\x20\x21\x22\x23\x24\x25\x26\x27"
  12850. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  12851. "\x30\x31\x32\x33\x34\x35\x36\x37"
  12852. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  12853. "\x40\x41\x42\x43\x44\x45\x46\x47"
  12854. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  12855. "\x50\x51\x52\x53\x54\x55\x56\x57"
  12856. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  12857. "\x60\x61\x62\x63\x64\x65\x66\x67"
  12858. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  12859. "\x70\x71\x72\x73\x74\x75\x76\x77"
  12860. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  12861. "\x80\x81\x82\x83\x84\x85\x86\x87"
  12862. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  12863. "\x90\x91\x92\x93\x94\x95\x96\x97"
  12864. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  12865. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  12866. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  12867. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  12868. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  12869. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  12870. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  12871. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  12872. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  12873. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  12874. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  12875. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  12876. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  12877. "\x00\x01\x02\x03\x04\x05\x06\x07"
  12878. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  12879. "\x10\x11\x12\x13\x14\x15\x16\x17"
  12880. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  12881. "\x20\x21\x22\x23\x24\x25\x26\x27"
  12882. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  12883. "\x30\x31\x32\x33\x34\x35\x36\x37"
  12884. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  12885. "\x40\x41\x42\x43\x44\x45\x46\x47"
  12886. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  12887. "\x50\x51\x52\x53\x54\x55\x56\x57"
  12888. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  12889. "\x60\x61\x62\x63\x64\x65\x66\x67"
  12890. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  12891. "\x70\x71\x72\x73\x74\x75\x76\x77"
  12892. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  12893. "\x80\x81\x82\x83\x84\x85\x86\x87"
  12894. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  12895. "\x90\x91\x92\x93\x94\x95\x96\x97"
  12896. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  12897. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  12898. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  12899. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  12900. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  12901. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  12902. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  12903. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  12904. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  12905. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  12906. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  12907. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  12908. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  12909. .ilen = 512,
  12910. .result = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b"
  12911. "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53"
  12912. "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e"
  12913. "\x28\xca\xb0\x22\xb3\x85\x75\xf4"
  12914. "\x00\x5c\x75\x14\x06\xd6\x25\x82"
  12915. "\xe6\xcb\x08\xf7\x29\x90\x23\x8e"
  12916. "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3"
  12917. "\x80\x51\x67\xb5\x0b\x85\x69\xe8"
  12918. "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3"
  12919. "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0"
  12920. "\x63\x5a\x16\x0f\xf0\xce\x66\x1f"
  12921. "\x2c\x21\x07\xf1\xa4\x03\xa3\x44"
  12922. "\x41\x61\x87\x5d\x6b\xb3\xef\xd4"
  12923. "\xfc\xaa\x32\x7e\x55\x58\x04\x41"
  12924. "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a"
  12925. "\x55\x79\x4b\x6f\xcf\x89\xb9\x19"
  12926. "\xe5\x54\x13\x15\xb2\x1a\xfa\x15"
  12927. "\xc2\xf0\x06\x59\xfa\xa0\x25\x05"
  12928. "\x58\xfa\x43\x91\x16\x85\x40\xbb"
  12929. "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08"
  12930. "\xcd\x22\x22\x41\x11\x9f\x6c\x7c"
  12931. "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7"
  12932. "\xa0\x42\xa8\xde\xfc\xa3\xca\x98"
  12933. "\x4b\x43\xb1\xce\x4b\xbf\x01\x67"
  12934. "\x6e\x29\x60\xbd\x10\x14\x84\x82"
  12935. "\x83\x82\x0c\x63\x73\x92\x02\x7c"
  12936. "\x55\x37\x20\x80\x17\x51\xc8\xbc"
  12937. "\x46\x02\xcb\x38\x07\x6d\xe2\x85"
  12938. "\xaa\x29\xaf\x24\x58\x0d\xf0\x75"
  12939. "\x08\x0a\xa5\x34\x25\x16\xf3\x74"
  12940. "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29"
  12941. "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c"
  12942. "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e"
  12943. "\x8c\x2b\x4f\x54\x76\x47\x53\x8e"
  12944. "\xe8\x00\xec\x92\xb9\x55\xe6\xa2"
  12945. "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87"
  12946. "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21"
  12947. "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19"
  12948. "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9"
  12949. "\x94\x4e\x63\xc7\xae\xfc\xed\x47"
  12950. "\xe2\xfe\x7a\x63\x77\xfe\x97\x82"
  12951. "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80"
  12952. "\xec\x69\x41\xec\xa7\x8a\xe0\x2f"
  12953. "\xe3\x49\x26\xa2\x41\xb2\x08\x0f"
  12954. "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e"
  12955. "\x43\x42\x35\xd0\xcf\xec\x77\x67"
  12956. "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e"
  12957. "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50"
  12958. "\xab\x6c\x6b\xff\xea\x00\x67\xaa"
  12959. "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76"
  12960. "\x2b\x77\x3f\xbe\x12\x75\xfb\x92"
  12961. "\xc6\x89\x67\x4d\xca\xf7\xd4\x50"
  12962. "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6"
  12963. "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5"
  12964. "\x86\xad\x51\xcc\xd5\x96\xb8\xdc"
  12965. "\x03\x57\xe6\x98\x52\x2f\x61\x62"
  12966. "\xc4\x5c\x9c\x36\x71\x07\xfb\x94"
  12967. "\xe3\x02\xc4\x2b\x08\x75\xc7\x35"
  12968. "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1"
  12969. "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e"
  12970. "\x76\x87\x19\x04\x1a\x2f\x38\x3e"
  12971. "\xef\x91\x64\x1d\x18\x07\x4e\x31"
  12972. "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c"
  12973. "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd",
  12974. .rlen = 512,
  12975. }, {
  12976. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  12977. "\x23\x53\x60\x28\x74\x71\x35\x26"
  12978. "\x62\x49\x77\x57\x24\x70\x93\x69"
  12979. "\x99\x59\x57\x49\x66\x96\x76\x27"
  12980. "\x31\x41\x59\x26\x53\x58\x97\x93"
  12981. "\x23\x84\x62\x64\x33\x83\x27\x95"
  12982. "\x02\x88\x41\x97\x16\x93\x99\x37"
  12983. "\x51\x05\x82\x09\x74\x94\x45\x92",
  12984. .klen = 64,
  12985. .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
  12986. "\x00\x00\x00\x00\x00\x00\x00\x00",
  12987. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  12988. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  12989. "\x10\x11\x12\x13\x14\x15\x16\x17"
  12990. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  12991. "\x20\x21\x22\x23\x24\x25\x26\x27"
  12992. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  12993. "\x30\x31\x32\x33\x34\x35\x36\x37"
  12994. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  12995. "\x40\x41\x42\x43\x44\x45\x46\x47"
  12996. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  12997. "\x50\x51\x52\x53\x54\x55\x56\x57"
  12998. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  12999. "\x60\x61\x62\x63\x64\x65\x66\x67"
  13000. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  13001. "\x70\x71\x72\x73\x74\x75\x76\x77"
  13002. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  13003. "\x80\x81\x82\x83\x84\x85\x86\x87"
  13004. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  13005. "\x90\x91\x92\x93\x94\x95\x96\x97"
  13006. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  13007. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  13008. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  13009. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  13010. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  13011. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  13012. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  13013. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  13014. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  13015. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  13016. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  13017. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  13018. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  13019. "\x00\x01\x02\x03\x04\x05\x06\x07"
  13020. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  13021. "\x10\x11\x12\x13\x14\x15\x16\x17"
  13022. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  13023. "\x20\x21\x22\x23\x24\x25\x26\x27"
  13024. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  13025. "\x30\x31\x32\x33\x34\x35\x36\x37"
  13026. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  13027. "\x40\x41\x42\x43\x44\x45\x46\x47"
  13028. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  13029. "\x50\x51\x52\x53\x54\x55\x56\x57"
  13030. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  13031. "\x60\x61\x62\x63\x64\x65\x66\x67"
  13032. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  13033. "\x70\x71\x72\x73\x74\x75\x76\x77"
  13034. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  13035. "\x80\x81\x82\x83\x84\x85\x86\x87"
  13036. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  13037. "\x90\x91\x92\x93\x94\x95\x96\x97"
  13038. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  13039. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  13040. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  13041. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  13042. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  13043. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  13044. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  13045. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  13046. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  13047. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  13048. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  13049. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  13050. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  13051. .ilen = 512,
  13052. .result = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32"
  13053. "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f"
  13054. "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b"
  13055. "\x80\x1b\x82\xcb\x01\x59\x91\x7f"
  13056. "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3"
  13057. "\x34\xfd\xe6\x11\xf9\x33\x45\x12"
  13058. "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23"
  13059. "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7"
  13060. "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0"
  13061. "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78"
  13062. "\xcd\xec\x7d\xdc\x19\x9c\x72\x64"
  13063. "\x63\x0b\x38\x2e\x76\xdd\x2d\x36"
  13064. "\x49\xb0\x1d\xea\x78\x9e\x00\xca"
  13065. "\x20\xcc\x1b\x1e\x98\x74\xab\xed"
  13066. "\x79\xf7\xd0\x6c\xd8\x93\x80\x29"
  13067. "\xac\xa5\x5e\x34\xa9\xab\xa0\x55"
  13068. "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46"
  13069. "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae"
  13070. "\x25\x42\x17\xbf\x76\x8f\x1c\x3d"
  13071. "\xec\x9a\xda\x64\x96\xb5\x61\xff"
  13072. "\x99\xeb\x12\x96\x85\x82\x9d\xd5"
  13073. "\x81\x85\x14\xa8\x59\xac\x8c\x94"
  13074. "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba"
  13075. "\x82\xc6\x4d\xca\x86\xea\x53\x28"
  13076. "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79"
  13077. "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff"
  13078. "\x05\xca\x81\x7b\xda\xa2\xde\x63"
  13079. "\x3a\x10\xbe\xc2\xac\x32\xc4\x05"
  13080. "\x47\x7e\xef\x67\xe2\x5f\x5b\xae"
  13081. "\xed\xf1\x70\x34\x16\x9a\x07\x7b"
  13082. "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a"
  13083. "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd"
  13084. "\x93\x1f\x06\xba\xd4\x9a\x22\x69"
  13085. "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c"
  13086. "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6"
  13087. "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32"
  13088. "\xfd\x43\x7d\xda\x42\x51\x87\x43"
  13089. "\x9d\xf9\xef\xf4\x30\x97\xf8\x09"
  13090. "\x88\xfc\x3f\x93\x70\xc1\x4a\xec"
  13091. "\x27\x5f\x11\xac\x71\xc7\x48\x46"
  13092. "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56"
  13093. "\x0d\x4e\xb0\x32\x76\xce\x86\x81"
  13094. "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24"
  13095. "\xaf\xf7\x9a\xde\xff\x18\xac\x14"
  13096. "\x90\xc5\x01\x39\x34\x0f\x24\xf3"
  13097. "\x13\x2f\x5e\x4f\x30\x9a\x36\x40"
  13098. "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23"
  13099. "\x50\x88\x97\x40\x69\xb1\x37\xf5"
  13100. "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8"
  13101. "\x7b\x10\x20\xb9\x2b\x46\x83\x5b"
  13102. "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2"
  13103. "\x72\xb0\x97\x4e\x89\xb3\x48\x00"
  13104. "\xc1\x16\x73\x50\x77\xba\xa6\x65"
  13105. "\x20\x2d\xb0\x02\x27\x89\xda\x99"
  13106. "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6"
  13107. "\x2a\xda\x09\x12\x11\xaf\xe6\x57"
  13108. "\x01\x04\x8a\xff\x86\x8b\xac\xf8"
  13109. "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76"
  13110. "\xa3\x0e\x33\x74\x40\x18\x39\x72"
  13111. "\x66\x50\x31\xfd\x70\xdf\xe8\x51"
  13112. "\x96\x21\x36\xb2\x9b\xfa\x85\xd1"
  13113. "\x30\x05\xc8\x92\x98\x80\xff\x7a"
  13114. "\xaf\x43\x0b\xc5\x20\x41\x92\x20"
  13115. "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1",
  13116. .rlen = 512,
  13117. .also_non_np = 1,
  13118. .np = 3,
  13119. .tap = { 512 - 20, 4, 16 },
  13120. },
  13121. };
  13122. static struct cipher_testvec serpent_xts_dec_tv_template[] = {
  13123. /* Generated from AES-XTS test vectors */
  13124. /* same as enc vectors with input and result reversed */
  13125. {
  13126. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13127. "\x00\x00\x00\x00\x00\x00\x00\x00"
  13128. "\x00\x00\x00\x00\x00\x00\x00\x00"
  13129. "\x00\x00\x00\x00\x00\x00\x00\x00",
  13130. .klen = 32,
  13131. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13132. "\x00\x00\x00\x00\x00\x00\x00\x00",
  13133. .input = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64"
  13134. "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4"
  13135. "\x6a\x31\xc5\xf3\x00\xca\xb9\x16"
  13136. "\xde\xe2\x77\x66\xf7\xfe\x62\x08",
  13137. .ilen = 32,
  13138. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13139. "\x00\x00\x00\x00\x00\x00\x00\x00"
  13140. "\x00\x00\x00\x00\x00\x00\x00\x00"
  13141. "\x00\x00\x00\x00\x00\x00\x00\x00",
  13142. .rlen = 32,
  13143. }, {
  13144. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  13145. "\x11\x11\x11\x11\x11\x11\x11\x11"
  13146. "\x22\x22\x22\x22\x22\x22\x22\x22"
  13147. "\x22\x22\x22\x22\x22\x22\x22\x22",
  13148. .klen = 32,
  13149. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  13150. "\x00\x00\x00\x00\x00\x00\x00\x00",
  13151. .input = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98"
  13152. "\x41\x86\x12\xaf\xb3\xd7\x68\x13"
  13153. "\xed\x81\xcd\x06\x87\x43\x1a\xbb"
  13154. "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe",
  13155. .ilen = 32,
  13156. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  13157. "\x44\x44\x44\x44\x44\x44\x44\x44"
  13158. "\x44\x44\x44\x44\x44\x44\x44\x44"
  13159. "\x44\x44\x44\x44\x44\x44\x44\x44",
  13160. .rlen = 32,
  13161. }, {
  13162. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  13163. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  13164. "\x22\x22\x22\x22\x22\x22\x22\x22"
  13165. "\x22\x22\x22\x22\x22\x22\x22\x22",
  13166. .klen = 32,
  13167. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  13168. "\x00\x00\x00\x00\x00\x00\x00\x00",
  13169. .input = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61"
  13170. "\xb6\x1c\x81\x8f\x2c\x87\x60\x89"
  13171. "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86"
  13172. "\xc1\x68\x45\xaa\x00\xe9\x24\xc5",
  13173. .ilen = 32,
  13174. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  13175. "\x44\x44\x44\x44\x44\x44\x44\x44"
  13176. "\x44\x44\x44\x44\x44\x44\x44\x44"
  13177. "\x44\x44\x44\x44\x44\x44\x44\x44",
  13178. .rlen = 32,
  13179. }, {
  13180. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  13181. "\x23\x53\x60\x28\x74\x71\x35\x26"
  13182. "\x31\x41\x59\x26\x53\x58\x97\x93"
  13183. "\x23\x84\x62\x64\x33\x83\x27\x95",
  13184. .klen = 32,
  13185. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13186. "\x00\x00\x00\x00\x00\x00\x00\x00",
  13187. .input = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b"
  13188. "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53"
  13189. "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e"
  13190. "\x28\xca\xb0\x22\xb3\x85\x75\xf4"
  13191. "\x00\x5c\x75\x14\x06\xd6\x25\x82"
  13192. "\xe6\xcb\x08\xf7\x29\x90\x23\x8e"
  13193. "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3"
  13194. "\x80\x51\x67\xb5\x0b\x85\x69\xe8"
  13195. "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3"
  13196. "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0"
  13197. "\x63\x5a\x16\x0f\xf0\xce\x66\x1f"
  13198. "\x2c\x21\x07\xf1\xa4\x03\xa3\x44"
  13199. "\x41\x61\x87\x5d\x6b\xb3\xef\xd4"
  13200. "\xfc\xaa\x32\x7e\x55\x58\x04\x41"
  13201. "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a"
  13202. "\x55\x79\x4b\x6f\xcf\x89\xb9\x19"
  13203. "\xe5\x54\x13\x15\xb2\x1a\xfa\x15"
  13204. "\xc2\xf0\x06\x59\xfa\xa0\x25\x05"
  13205. "\x58\xfa\x43\x91\x16\x85\x40\xbb"
  13206. "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08"
  13207. "\xcd\x22\x22\x41\x11\x9f\x6c\x7c"
  13208. "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7"
  13209. "\xa0\x42\xa8\xde\xfc\xa3\xca\x98"
  13210. "\x4b\x43\xb1\xce\x4b\xbf\x01\x67"
  13211. "\x6e\x29\x60\xbd\x10\x14\x84\x82"
  13212. "\x83\x82\x0c\x63\x73\x92\x02\x7c"
  13213. "\x55\x37\x20\x80\x17\x51\xc8\xbc"
  13214. "\x46\x02\xcb\x38\x07\x6d\xe2\x85"
  13215. "\xaa\x29\xaf\x24\x58\x0d\xf0\x75"
  13216. "\x08\x0a\xa5\x34\x25\x16\xf3\x74"
  13217. "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29"
  13218. "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c"
  13219. "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e"
  13220. "\x8c\x2b\x4f\x54\x76\x47\x53\x8e"
  13221. "\xe8\x00\xec\x92\xb9\x55\xe6\xa2"
  13222. "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87"
  13223. "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21"
  13224. "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19"
  13225. "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9"
  13226. "\x94\x4e\x63\xc7\xae\xfc\xed\x47"
  13227. "\xe2\xfe\x7a\x63\x77\xfe\x97\x82"
  13228. "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80"
  13229. "\xec\x69\x41\xec\xa7\x8a\xe0\x2f"
  13230. "\xe3\x49\x26\xa2\x41\xb2\x08\x0f"
  13231. "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e"
  13232. "\x43\x42\x35\xd0\xcf\xec\x77\x67"
  13233. "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e"
  13234. "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50"
  13235. "\xab\x6c\x6b\xff\xea\x00\x67\xaa"
  13236. "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76"
  13237. "\x2b\x77\x3f\xbe\x12\x75\xfb\x92"
  13238. "\xc6\x89\x67\x4d\xca\xf7\xd4\x50"
  13239. "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6"
  13240. "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5"
  13241. "\x86\xad\x51\xcc\xd5\x96\xb8\xdc"
  13242. "\x03\x57\xe6\x98\x52\x2f\x61\x62"
  13243. "\xc4\x5c\x9c\x36\x71\x07\xfb\x94"
  13244. "\xe3\x02\xc4\x2b\x08\x75\xc7\x35"
  13245. "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1"
  13246. "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e"
  13247. "\x76\x87\x19\x04\x1a\x2f\x38\x3e"
  13248. "\xef\x91\x64\x1d\x18\x07\x4e\x31"
  13249. "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c"
  13250. "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd",
  13251. .ilen = 512,
  13252. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  13253. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  13254. "\x10\x11\x12\x13\x14\x15\x16\x17"
  13255. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  13256. "\x20\x21\x22\x23\x24\x25\x26\x27"
  13257. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  13258. "\x30\x31\x32\x33\x34\x35\x36\x37"
  13259. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  13260. "\x40\x41\x42\x43\x44\x45\x46\x47"
  13261. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  13262. "\x50\x51\x52\x53\x54\x55\x56\x57"
  13263. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  13264. "\x60\x61\x62\x63\x64\x65\x66\x67"
  13265. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  13266. "\x70\x71\x72\x73\x74\x75\x76\x77"
  13267. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  13268. "\x80\x81\x82\x83\x84\x85\x86\x87"
  13269. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  13270. "\x90\x91\x92\x93\x94\x95\x96\x97"
  13271. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  13272. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  13273. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  13274. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  13275. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  13276. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  13277. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  13278. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  13279. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  13280. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  13281. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  13282. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  13283. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  13284. "\x00\x01\x02\x03\x04\x05\x06\x07"
  13285. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  13286. "\x10\x11\x12\x13\x14\x15\x16\x17"
  13287. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  13288. "\x20\x21\x22\x23\x24\x25\x26\x27"
  13289. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  13290. "\x30\x31\x32\x33\x34\x35\x36\x37"
  13291. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  13292. "\x40\x41\x42\x43\x44\x45\x46\x47"
  13293. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  13294. "\x50\x51\x52\x53\x54\x55\x56\x57"
  13295. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  13296. "\x60\x61\x62\x63\x64\x65\x66\x67"
  13297. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  13298. "\x70\x71\x72\x73\x74\x75\x76\x77"
  13299. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  13300. "\x80\x81\x82\x83\x84\x85\x86\x87"
  13301. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  13302. "\x90\x91\x92\x93\x94\x95\x96\x97"
  13303. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  13304. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  13305. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  13306. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  13307. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  13308. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  13309. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  13310. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  13311. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  13312. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  13313. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  13314. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  13315. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  13316. .rlen = 512,
  13317. }, {
  13318. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  13319. "\x23\x53\x60\x28\x74\x71\x35\x26"
  13320. "\x62\x49\x77\x57\x24\x70\x93\x69"
  13321. "\x99\x59\x57\x49\x66\x96\x76\x27"
  13322. "\x31\x41\x59\x26\x53\x58\x97\x93"
  13323. "\x23\x84\x62\x64\x33\x83\x27\x95"
  13324. "\x02\x88\x41\x97\x16\x93\x99\x37"
  13325. "\x51\x05\x82\x09\x74\x94\x45\x92",
  13326. .klen = 64,
  13327. .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
  13328. "\x00\x00\x00\x00\x00\x00\x00\x00",
  13329. .input = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32"
  13330. "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f"
  13331. "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b"
  13332. "\x80\x1b\x82\xcb\x01\x59\x91\x7f"
  13333. "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3"
  13334. "\x34\xfd\xe6\x11\xf9\x33\x45\x12"
  13335. "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23"
  13336. "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7"
  13337. "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0"
  13338. "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78"
  13339. "\xcd\xec\x7d\xdc\x19\x9c\x72\x64"
  13340. "\x63\x0b\x38\x2e\x76\xdd\x2d\x36"
  13341. "\x49\xb0\x1d\xea\x78\x9e\x00\xca"
  13342. "\x20\xcc\x1b\x1e\x98\x74\xab\xed"
  13343. "\x79\xf7\xd0\x6c\xd8\x93\x80\x29"
  13344. "\xac\xa5\x5e\x34\xa9\xab\xa0\x55"
  13345. "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46"
  13346. "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae"
  13347. "\x25\x42\x17\xbf\x76\x8f\x1c\x3d"
  13348. "\xec\x9a\xda\x64\x96\xb5\x61\xff"
  13349. "\x99\xeb\x12\x96\x85\x82\x9d\xd5"
  13350. "\x81\x85\x14\xa8\x59\xac\x8c\x94"
  13351. "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba"
  13352. "\x82\xc6\x4d\xca\x86\xea\x53\x28"
  13353. "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79"
  13354. "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff"
  13355. "\x05\xca\x81\x7b\xda\xa2\xde\x63"
  13356. "\x3a\x10\xbe\xc2\xac\x32\xc4\x05"
  13357. "\x47\x7e\xef\x67\xe2\x5f\x5b\xae"
  13358. "\xed\xf1\x70\x34\x16\x9a\x07\x7b"
  13359. "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a"
  13360. "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd"
  13361. "\x93\x1f\x06\xba\xd4\x9a\x22\x69"
  13362. "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c"
  13363. "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6"
  13364. "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32"
  13365. "\xfd\x43\x7d\xda\x42\x51\x87\x43"
  13366. "\x9d\xf9\xef\xf4\x30\x97\xf8\x09"
  13367. "\x88\xfc\x3f\x93\x70\xc1\x4a\xec"
  13368. "\x27\x5f\x11\xac\x71\xc7\x48\x46"
  13369. "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56"
  13370. "\x0d\x4e\xb0\x32\x76\xce\x86\x81"
  13371. "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24"
  13372. "\xaf\xf7\x9a\xde\xff\x18\xac\x14"
  13373. "\x90\xc5\x01\x39\x34\x0f\x24\xf3"
  13374. "\x13\x2f\x5e\x4f\x30\x9a\x36\x40"
  13375. "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23"
  13376. "\x50\x88\x97\x40\x69\xb1\x37\xf5"
  13377. "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8"
  13378. "\x7b\x10\x20\xb9\x2b\x46\x83\x5b"
  13379. "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2"
  13380. "\x72\xb0\x97\x4e\x89\xb3\x48\x00"
  13381. "\xc1\x16\x73\x50\x77\xba\xa6\x65"
  13382. "\x20\x2d\xb0\x02\x27\x89\xda\x99"
  13383. "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6"
  13384. "\x2a\xda\x09\x12\x11\xaf\xe6\x57"
  13385. "\x01\x04\x8a\xff\x86\x8b\xac\xf8"
  13386. "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76"
  13387. "\xa3\x0e\x33\x74\x40\x18\x39\x72"
  13388. "\x66\x50\x31\xfd\x70\xdf\xe8\x51"
  13389. "\x96\x21\x36\xb2\x9b\xfa\x85\xd1"
  13390. "\x30\x05\xc8\x92\x98\x80\xff\x7a"
  13391. "\xaf\x43\x0b\xc5\x20\x41\x92\x20"
  13392. "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1",
  13393. .ilen = 512,
  13394. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  13395. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  13396. "\x10\x11\x12\x13\x14\x15\x16\x17"
  13397. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  13398. "\x20\x21\x22\x23\x24\x25\x26\x27"
  13399. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  13400. "\x30\x31\x32\x33\x34\x35\x36\x37"
  13401. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  13402. "\x40\x41\x42\x43\x44\x45\x46\x47"
  13403. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  13404. "\x50\x51\x52\x53\x54\x55\x56\x57"
  13405. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  13406. "\x60\x61\x62\x63\x64\x65\x66\x67"
  13407. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  13408. "\x70\x71\x72\x73\x74\x75\x76\x77"
  13409. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  13410. "\x80\x81\x82\x83\x84\x85\x86\x87"
  13411. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  13412. "\x90\x91\x92\x93\x94\x95\x96\x97"
  13413. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  13414. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  13415. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  13416. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  13417. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  13418. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  13419. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  13420. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  13421. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  13422. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  13423. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  13424. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  13425. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  13426. "\x00\x01\x02\x03\x04\x05\x06\x07"
  13427. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  13428. "\x10\x11\x12\x13\x14\x15\x16\x17"
  13429. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  13430. "\x20\x21\x22\x23\x24\x25\x26\x27"
  13431. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  13432. "\x30\x31\x32\x33\x34\x35\x36\x37"
  13433. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  13434. "\x40\x41\x42\x43\x44\x45\x46\x47"
  13435. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  13436. "\x50\x51\x52\x53\x54\x55\x56\x57"
  13437. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  13438. "\x60\x61\x62\x63\x64\x65\x66\x67"
  13439. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  13440. "\x70\x71\x72\x73\x74\x75\x76\x77"
  13441. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  13442. "\x80\x81\x82\x83\x84\x85\x86\x87"
  13443. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  13444. "\x90\x91\x92\x93\x94\x95\x96\x97"
  13445. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  13446. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  13447. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  13448. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  13449. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  13450. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  13451. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  13452. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  13453. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  13454. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  13455. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  13456. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  13457. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  13458. .rlen = 512,
  13459. .also_non_np = 1,
  13460. .np = 3,
  13461. .tap = { 512 - 20, 4, 16 },
  13462. },
  13463. };
  13464. /* Cast6 test vectors from RFC 2612 */
  13465. #define CAST6_ENC_TEST_VECTORS 4
  13466. #define CAST6_DEC_TEST_VECTORS 4
  13467. #define CAST6_CBC_ENC_TEST_VECTORS 1
  13468. #define CAST6_CBC_DEC_TEST_VECTORS 1
  13469. #define CAST6_CTR_ENC_TEST_VECTORS 2
  13470. #define CAST6_CTR_DEC_TEST_VECTORS 2
  13471. #define CAST6_LRW_ENC_TEST_VECTORS 1
  13472. #define CAST6_LRW_DEC_TEST_VECTORS 1
  13473. #define CAST6_XTS_ENC_TEST_VECTORS 1
  13474. #define CAST6_XTS_DEC_TEST_VECTORS 1
  13475. static struct cipher_testvec cast6_enc_tv_template[] = {
  13476. {
  13477. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  13478. "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
  13479. .klen = 16,
  13480. .input = zeroed_string,
  13481. .ilen = 16,
  13482. .result = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
  13483. "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
  13484. .rlen = 16,
  13485. }, {
  13486. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  13487. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  13488. "\xba\xc7\x7a\x77\x17\x94\x28\x63",
  13489. .klen = 24,
  13490. .input = zeroed_string,
  13491. .ilen = 16,
  13492. .result = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
  13493. "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
  13494. .rlen = 16,
  13495. }, {
  13496. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  13497. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  13498. "\x8d\x7c\x47\xce\x26\x49\x08\x46"
  13499. "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
  13500. .klen = 32,
  13501. .input = zeroed_string,
  13502. .ilen = 16,
  13503. .result = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
  13504. "\xc9\x87\x01\x36\x55\x33\x17\xfa",
  13505. .rlen = 16,
  13506. }, { /* Generated from TF test vectors */
  13507. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  13508. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  13509. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  13510. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  13511. .klen = 32,
  13512. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  13513. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  13514. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  13515. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  13516. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  13517. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  13518. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  13519. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  13520. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  13521. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  13522. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  13523. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  13524. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  13525. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  13526. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  13527. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  13528. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  13529. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  13530. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  13531. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  13532. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  13533. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  13534. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  13535. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  13536. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  13537. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  13538. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  13539. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  13540. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  13541. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  13542. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  13543. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  13544. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  13545. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  13546. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  13547. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  13548. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  13549. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  13550. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  13551. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  13552. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  13553. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  13554. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  13555. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  13556. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  13557. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  13558. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  13559. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  13560. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  13561. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  13562. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  13563. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  13564. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  13565. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  13566. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  13567. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  13568. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  13569. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  13570. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  13571. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  13572. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  13573. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  13574. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  13575. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  13576. .ilen = 496,
  13577. .result = "\xC3\x70\x22\x32\xF5\x80\xCB\x54"
  13578. "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6"
  13579. "\xB6\xB9\xC5\xA4\x91\x55\x14\x97"
  13580. "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA"
  13581. "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE"
  13582. "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C"
  13583. "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C"
  13584. "\xD0\x6A\x99\x10\x72\xF8\x47\x62"
  13585. "\x81\x42\xF8\xD8\xF5\xBB\x94\x08"
  13586. "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E"
  13587. "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58"
  13588. "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12"
  13589. "\x5A\x72\x85\x47\x8B\xEC\x9F\x26"
  13590. "\x84\xB6\xED\x10\x33\x63\x9B\x5F"
  13591. "\x4D\x53\xEE\x94\x45\x8B\x60\x58"
  13592. "\x86\x20\xF9\x1E\x82\x08\x3E\x58"
  13593. "\x60\x1B\x34\x19\x02\xBE\x4E\x09"
  13594. "\xBB\x7C\x15\xCC\x60\x27\x55\x7A"
  13595. "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3"
  13596. "\xF1\xDD\xA7\x07\xA3\x12\x85\x28"
  13597. "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A"
  13598. "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43"
  13599. "\x92\xE4\x7C\x26\x69\x4D\x83\x68"
  13600. "\x14\x96\x42\x47\xBD\xA9\xE4\x8A"
  13601. "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E"
  13602. "\x91\x51\xB5\x36\x08\xDE\x1C\x06"
  13603. "\x03\xBD\xDE\x81\x26\xF7\x99\xC2"
  13604. "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF"
  13605. "\xC1\xF5\x27\x05\xB8\x02\x57\x72"
  13606. "\xE6\x42\x13\x0B\xC6\x47\x05\x74"
  13607. "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9"
  13608. "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C"
  13609. "\x98\x82\x67\x67\xB4\xD7\xD3\x43"
  13610. "\x23\x08\x02\xB7\x9B\x99\x05\xFB"
  13611. "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6"
  13612. "\x2E\x49\x58\xD0\xA8\x57\x29\x7F"
  13613. "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67"
  13614. "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D"
  13615. "\x17\xE2\x58\x2B\x88\x0D\x68\x62"
  13616. "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62"
  13617. "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08"
  13618. "\xEB\x84\x1D\x25\xA7\x38\x94\x06"
  13619. "\x93\x9D\xF8\xFE\x88\x71\xE7\x84"
  13620. "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29"
  13621. "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB"
  13622. "\x8E\x75\x3D\x73\xEB\x6A\xED\x29"
  13623. "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA"
  13624. "\x41\xE2\x10\x4C\x01\x8B\x69\x2B"
  13625. "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B"
  13626. "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6"
  13627. "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06"
  13628. "\x59\x28\x1D\x86\x43\x04\x5D\x3B"
  13629. "\x99\x4C\x04\x5A\x21\x17\x8B\x76"
  13630. "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3"
  13631. "\x65\xA2\x58\x2A\xC5\x66\x24\xBF"
  13632. "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8"
  13633. "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9"
  13634. "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E"
  13635. "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1"
  13636. "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C"
  13637. "\x84\x52\x6D\x68\xDE\xC6\x64\xB2"
  13638. "\x11\x74\x93\x57\xB4\x7E\xC6\x00",
  13639. .rlen = 496,
  13640. .also_non_np = 1,
  13641. .np = 3,
  13642. .tap = { 496 - 20, 4, 16 },
  13643. },
  13644. };
  13645. static struct cipher_testvec cast6_dec_tv_template[] = {
  13646. {
  13647. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  13648. "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
  13649. .klen = 16,
  13650. .input = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
  13651. "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
  13652. .ilen = 16,
  13653. .result = zeroed_string,
  13654. .rlen = 16,
  13655. }, {
  13656. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  13657. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  13658. "\xba\xc7\x7a\x77\x17\x94\x28\x63",
  13659. .klen = 24,
  13660. .input = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
  13661. "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
  13662. .ilen = 16,
  13663. .result = zeroed_string,
  13664. .rlen = 16,
  13665. }, {
  13666. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  13667. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  13668. "\x8d\x7c\x47\xce\x26\x49\x08\x46"
  13669. "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
  13670. .klen = 32,
  13671. .input = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
  13672. "\xc9\x87\x01\x36\x55\x33\x17\xfa",
  13673. .ilen = 16,
  13674. .result = zeroed_string,
  13675. .rlen = 16,
  13676. }, { /* Generated from TF test vectors */
  13677. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  13678. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  13679. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  13680. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  13681. .klen = 32,
  13682. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  13683. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  13684. .input = "\xC3\x70\x22\x32\xF5\x80\xCB\x54"
  13685. "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6"
  13686. "\xB6\xB9\xC5\xA4\x91\x55\x14\x97"
  13687. "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA"
  13688. "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE"
  13689. "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C"
  13690. "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C"
  13691. "\xD0\x6A\x99\x10\x72\xF8\x47\x62"
  13692. "\x81\x42\xF8\xD8\xF5\xBB\x94\x08"
  13693. "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E"
  13694. "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58"
  13695. "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12"
  13696. "\x5A\x72\x85\x47\x8B\xEC\x9F\x26"
  13697. "\x84\xB6\xED\x10\x33\x63\x9B\x5F"
  13698. "\x4D\x53\xEE\x94\x45\x8B\x60\x58"
  13699. "\x86\x20\xF9\x1E\x82\x08\x3E\x58"
  13700. "\x60\x1B\x34\x19\x02\xBE\x4E\x09"
  13701. "\xBB\x7C\x15\xCC\x60\x27\x55\x7A"
  13702. "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3"
  13703. "\xF1\xDD\xA7\x07\xA3\x12\x85\x28"
  13704. "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A"
  13705. "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43"
  13706. "\x92\xE4\x7C\x26\x69\x4D\x83\x68"
  13707. "\x14\x96\x42\x47\xBD\xA9\xE4\x8A"
  13708. "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E"
  13709. "\x91\x51\xB5\x36\x08\xDE\x1C\x06"
  13710. "\x03\xBD\xDE\x81\x26\xF7\x99\xC2"
  13711. "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF"
  13712. "\xC1\xF5\x27\x05\xB8\x02\x57\x72"
  13713. "\xE6\x42\x13\x0B\xC6\x47\x05\x74"
  13714. "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9"
  13715. "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C"
  13716. "\x98\x82\x67\x67\xB4\xD7\xD3\x43"
  13717. "\x23\x08\x02\xB7\x9B\x99\x05\xFB"
  13718. "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6"
  13719. "\x2E\x49\x58\xD0\xA8\x57\x29\x7F"
  13720. "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67"
  13721. "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D"
  13722. "\x17\xE2\x58\x2B\x88\x0D\x68\x62"
  13723. "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62"
  13724. "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08"
  13725. "\xEB\x84\x1D\x25\xA7\x38\x94\x06"
  13726. "\x93\x9D\xF8\xFE\x88\x71\xE7\x84"
  13727. "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29"
  13728. "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB"
  13729. "\x8E\x75\x3D\x73\xEB\x6A\xED\x29"
  13730. "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA"
  13731. "\x41\xE2\x10\x4C\x01\x8B\x69\x2B"
  13732. "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B"
  13733. "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6"
  13734. "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06"
  13735. "\x59\x28\x1D\x86\x43\x04\x5D\x3B"
  13736. "\x99\x4C\x04\x5A\x21\x17\x8B\x76"
  13737. "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3"
  13738. "\x65\xA2\x58\x2A\xC5\x66\x24\xBF"
  13739. "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8"
  13740. "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9"
  13741. "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E"
  13742. "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1"
  13743. "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C"
  13744. "\x84\x52\x6D\x68\xDE\xC6\x64\xB2"
  13745. "\x11\x74\x93\x57\xB4\x7E\xC6\x00",
  13746. .ilen = 496,
  13747. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  13748. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  13749. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  13750. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  13751. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  13752. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  13753. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  13754. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  13755. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  13756. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  13757. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  13758. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  13759. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  13760. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  13761. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  13762. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  13763. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  13764. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  13765. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  13766. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  13767. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  13768. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  13769. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  13770. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  13771. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  13772. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  13773. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  13774. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  13775. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  13776. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  13777. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  13778. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  13779. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  13780. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  13781. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  13782. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  13783. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  13784. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  13785. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  13786. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  13787. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  13788. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  13789. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  13790. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  13791. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  13792. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  13793. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  13794. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  13795. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  13796. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  13797. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  13798. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  13799. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  13800. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  13801. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  13802. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  13803. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  13804. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  13805. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  13806. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  13807. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  13808. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  13809. .rlen = 496,
  13810. .also_non_np = 1,
  13811. .np = 3,
  13812. .tap = { 496 - 20, 4, 16 },
  13813. },
  13814. };
  13815. static struct cipher_testvec cast6_cbc_enc_tv_template[] = {
  13816. { /* Generated from TF test vectors */
  13817. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  13818. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  13819. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  13820. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  13821. .klen = 32,
  13822. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  13823. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  13824. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  13825. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  13826. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  13827. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  13828. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  13829. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  13830. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  13831. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  13832. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  13833. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  13834. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  13835. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  13836. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  13837. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  13838. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  13839. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  13840. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  13841. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  13842. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  13843. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  13844. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  13845. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  13846. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  13847. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  13848. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  13849. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  13850. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  13851. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  13852. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  13853. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  13854. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  13855. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  13856. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  13857. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  13858. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  13859. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  13860. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  13861. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  13862. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  13863. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  13864. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  13865. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  13866. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  13867. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  13868. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  13869. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  13870. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  13871. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  13872. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  13873. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  13874. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  13875. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  13876. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  13877. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  13878. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  13879. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  13880. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  13881. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  13882. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  13883. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  13884. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  13885. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  13886. .ilen = 496,
  13887. .result = "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2"
  13888. "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F"
  13889. "\xA0\x73\xB3\x70\xC3\x68\x64\x70"
  13890. "\xAD\x33\x02\xFB\x88\x74\xAA\x78"
  13891. "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F"
  13892. "\x7E\x6F\xDF\x05\x13\x76\xA6\x72"
  13893. "\xB7\x13\x09\x0F\x7D\x38\xDF\x25"
  13894. "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0"
  13895. "\x57\x95\xE1\x21\x26\x10\x9A\x21"
  13896. "\xA1\x8A\x51\x05\xD1\xB1\x78\x35"
  13897. "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF"
  13898. "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B"
  13899. "\x23\x16\x47\x72\x81\x13\x3A\x72"
  13900. "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8"
  13901. "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E"
  13902. "\xA3\x63\x98\x7D\x35\xE4\xD9\x83"
  13903. "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3"
  13904. "\x41\x1A\x93\x8D\x76\x31\x9F\xF2"
  13905. "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9"
  13906. "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1"
  13907. "\x21\x9C\x1A\xCA\x65\xDE\x44\x03"
  13908. "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37"
  13909. "\x53\x50\x23\xA4\x81\x6E\xDA\xFB"
  13910. "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8"
  13911. "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7"
  13912. "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3"
  13913. "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2"
  13914. "\xC1\x03\xE6\x5A\x37\xD8\x64\x18"
  13915. "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB"
  13916. "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4"
  13917. "\x89\x05\x81\x6E\x71\x4F\xC3\x28"
  13918. "\x10\xC1\x62\xC4\x41\xE9\xD2\x39"
  13919. "\xF3\x22\x39\x12\x2C\xC2\x95\x2D"
  13920. "\xBF\x93\x58\x4B\x04\xD1\x8D\x57"
  13921. "\xAE\xEB\x60\x03\x56\x35\xAD\x5A"
  13922. "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8"
  13923. "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E"
  13924. "\x07\x09\x82\xBA\xF0\x80\x8A\xD0"
  13925. "\xA0\x3F\x6A\xE9\x24\x87\x19\x65"
  13926. "\x73\x3F\x12\x91\x47\x54\xBA\x39"
  13927. "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF"
  13928. "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76"
  13929. "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47"
  13930. "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1"
  13931. "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12"
  13932. "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D"
  13933. "\x23\xFA\x7D\x77\xB8\x46\x75\xFE"
  13934. "\x4F\x10\xD3\x09\x60\xA1\x36\x96"
  13935. "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14"
  13936. "\x80\x21\x83\x58\x3C\x76\xFD\x28"
  13937. "\x1D\xF9\x93\x13\xD7\x0E\x62\x14"
  13938. "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C"
  13939. "\x68\x93\x44\x70\xDF\xCF\x4A\x51"
  13940. "\x0B\x81\x29\x41\xE5\x62\x4D\x36"
  13941. "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09"
  13942. "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6"
  13943. "\x01\x91\xB4\x27\xDA\x59\xD6\x17"
  13944. "\x56\x4D\x82\x62\x37\xA3\x48\x01"
  13945. "\x99\x91\x77\xB2\x08\x6B\x2C\x37"
  13946. "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3"
  13947. "\x4D\x59\x7D\xC5\x28\x69\xFA\x92"
  13948. "\x22\x46\x89\x2D\x0F\x2B\x08\x24",
  13949. .rlen = 496,
  13950. .also_non_np = 1,
  13951. .np = 3,
  13952. .tap = { 496 - 20, 4, 16 },
  13953. },
  13954. };
  13955. static struct cipher_testvec cast6_cbc_dec_tv_template[] = {
  13956. { /* Generated from TF test vectors */
  13957. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  13958. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  13959. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  13960. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  13961. .klen = 32,
  13962. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  13963. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  13964. .input = "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2"
  13965. "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F"
  13966. "\xA0\x73\xB3\x70\xC3\x68\x64\x70"
  13967. "\xAD\x33\x02\xFB\x88\x74\xAA\x78"
  13968. "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F"
  13969. "\x7E\x6F\xDF\x05\x13\x76\xA6\x72"
  13970. "\xB7\x13\x09\x0F\x7D\x38\xDF\x25"
  13971. "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0"
  13972. "\x57\x95\xE1\x21\x26\x10\x9A\x21"
  13973. "\xA1\x8A\x51\x05\xD1\xB1\x78\x35"
  13974. "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF"
  13975. "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B"
  13976. "\x23\x16\x47\x72\x81\x13\x3A\x72"
  13977. "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8"
  13978. "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E"
  13979. "\xA3\x63\x98\x7D\x35\xE4\xD9\x83"
  13980. "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3"
  13981. "\x41\x1A\x93\x8D\x76\x31\x9F\xF2"
  13982. "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9"
  13983. "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1"
  13984. "\x21\x9C\x1A\xCA\x65\xDE\x44\x03"
  13985. "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37"
  13986. "\x53\x50\x23\xA4\x81\x6E\xDA\xFB"
  13987. "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8"
  13988. "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7"
  13989. "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3"
  13990. "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2"
  13991. "\xC1\x03\xE6\x5A\x37\xD8\x64\x18"
  13992. "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB"
  13993. "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4"
  13994. "\x89\x05\x81\x6E\x71\x4F\xC3\x28"
  13995. "\x10\xC1\x62\xC4\x41\xE9\xD2\x39"
  13996. "\xF3\x22\x39\x12\x2C\xC2\x95\x2D"
  13997. "\xBF\x93\x58\x4B\x04\xD1\x8D\x57"
  13998. "\xAE\xEB\x60\x03\x56\x35\xAD\x5A"
  13999. "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8"
  14000. "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E"
  14001. "\x07\x09\x82\xBA\xF0\x80\x8A\xD0"
  14002. "\xA0\x3F\x6A\xE9\x24\x87\x19\x65"
  14003. "\x73\x3F\x12\x91\x47\x54\xBA\x39"
  14004. "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF"
  14005. "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76"
  14006. "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47"
  14007. "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1"
  14008. "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12"
  14009. "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D"
  14010. "\x23\xFA\x7D\x77\xB8\x46\x75\xFE"
  14011. "\x4F\x10\xD3\x09\x60\xA1\x36\x96"
  14012. "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14"
  14013. "\x80\x21\x83\x58\x3C\x76\xFD\x28"
  14014. "\x1D\xF9\x93\x13\xD7\x0E\x62\x14"
  14015. "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C"
  14016. "\x68\x93\x44\x70\xDF\xCF\x4A\x51"
  14017. "\x0B\x81\x29\x41\xE5\x62\x4D\x36"
  14018. "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09"
  14019. "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6"
  14020. "\x01\x91\xB4\x27\xDA\x59\xD6\x17"
  14021. "\x56\x4D\x82\x62\x37\xA3\x48\x01"
  14022. "\x99\x91\x77\xB2\x08\x6B\x2C\x37"
  14023. "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3"
  14024. "\x4D\x59\x7D\xC5\x28\x69\xFA\x92"
  14025. "\x22\x46\x89\x2D\x0F\x2B\x08\x24",
  14026. .ilen = 496,
  14027. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  14028. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  14029. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  14030. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  14031. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  14032. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  14033. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  14034. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  14035. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  14036. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  14037. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  14038. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  14039. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  14040. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  14041. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  14042. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  14043. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  14044. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  14045. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  14046. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  14047. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  14048. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  14049. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  14050. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  14051. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  14052. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  14053. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  14054. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  14055. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  14056. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  14057. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  14058. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  14059. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  14060. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  14061. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  14062. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  14063. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  14064. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  14065. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  14066. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  14067. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  14068. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  14069. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  14070. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  14071. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  14072. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  14073. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  14074. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  14075. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  14076. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  14077. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  14078. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  14079. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  14080. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  14081. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  14082. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  14083. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  14084. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  14085. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  14086. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  14087. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  14088. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  14089. .rlen = 496,
  14090. .also_non_np = 1,
  14091. .np = 3,
  14092. .tap = { 496 - 20, 4, 16 },
  14093. },
  14094. };
  14095. static struct cipher_testvec cast6_ctr_enc_tv_template[] = {
  14096. { /* Generated from TF test vectors */
  14097. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  14098. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  14099. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  14100. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  14101. .klen = 32,
  14102. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  14103. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  14104. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  14105. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  14106. "\x3A",
  14107. .ilen = 17,
  14108. .result = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
  14109. "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
  14110. "\x57",
  14111. .rlen = 17,
  14112. }, { /* Generated from TF test vectors */
  14113. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  14114. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  14115. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  14116. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  14117. .klen = 32,
  14118. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  14119. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  14120. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  14121. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  14122. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  14123. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  14124. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  14125. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  14126. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  14127. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  14128. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  14129. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  14130. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  14131. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  14132. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  14133. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  14134. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  14135. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  14136. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  14137. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  14138. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  14139. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  14140. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  14141. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  14142. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  14143. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  14144. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  14145. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  14146. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  14147. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  14148. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  14149. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  14150. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  14151. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  14152. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  14153. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  14154. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  14155. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  14156. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  14157. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  14158. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  14159. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  14160. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  14161. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  14162. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  14163. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  14164. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  14165. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  14166. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  14167. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  14168. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  14169. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  14170. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  14171. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  14172. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  14173. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  14174. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  14175. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  14176. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  14177. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  14178. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  14179. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  14180. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  14181. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  14182. .ilen = 496,
  14183. .result = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
  14184. "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
  14185. "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7"
  14186. "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56"
  14187. "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8"
  14188. "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3"
  14189. "\xE3\xF3\xFA\xC2\x23\x55\x98\x20"
  14190. "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5"
  14191. "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30"
  14192. "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D"
  14193. "\x66\x45\xEE\xC8\x19\xBE\x50\xF0"
  14194. "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9"
  14195. "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5"
  14196. "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C"
  14197. "\x81\xDF\x82\x12\xC7\x4C\x1B\x07"
  14198. "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA"
  14199. "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6"
  14200. "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5"
  14201. "\x49\x61\x22\x52\x64\x8C\x46\x41"
  14202. "\x1F\x48\x5F\x4F\xA2\x89\x36\x17"
  14203. "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0"
  14204. "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3"
  14205. "\x00\x14\x15\x59\xC1\x30\x64\xAF"
  14206. "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C"
  14207. "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4"
  14208. "\x02\x37\xC4\x69\xEF\x36\xC1\xF3"
  14209. "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0"
  14210. "\x51\x73\xA3\x22\x42\x41\xAB\xD2"
  14211. "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA"
  14212. "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF"
  14213. "\xC9\x3F\x07\x87\x42\x4B\x3A\x54"
  14214. "\x34\x8E\x37\xA3\x03\x6F\x65\x66"
  14215. "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD"
  14216. "\x61\xB4\x2B\x80\xA3\x98\x13\xF5"
  14217. "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8"
  14218. "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D"
  14219. "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE"
  14220. "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A"
  14221. "\x60\x40\x38\x90\x20\x46\xC7\xB3"
  14222. "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4"
  14223. "\x11\x41\x76\x6B\xB3\x60\x82\x3C"
  14224. "\x84\xFB\x08\x2E\x92\x25\xCB\x79"
  14225. "\x6F\x58\xC5\x94\x00\x00\x47\xB6"
  14226. "\x9E\xDC\x0F\x29\x70\x46\x20\x76"
  14227. "\x65\x75\x66\x5C\x00\x96\xB3\xE1"
  14228. "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45"
  14229. "\x73\xFC\x91\xAB\x79\x41\x23\x14"
  14230. "\x13\xB6\x72\x6C\x46\xB3\x03\x11"
  14231. "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32"
  14232. "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7"
  14233. "\x15\x48\x44\x99\x09\xF6\xE0\xD7"
  14234. "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2"
  14235. "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2"
  14236. "\x12\x53\x35\x9C\xF9\xE7\x35\x5D"
  14237. "\x81\xE4\x86\x42\xC3\x58\xFB\xF0"
  14238. "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F"
  14239. "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4"
  14240. "\x19\x35\x88\x22\x45\x59\x0E\x8F"
  14241. "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41"
  14242. "\x9B\x66\x8D\x32\xBA\x81\x34\x87"
  14243. "\x0E\x74\x33\x30\x62\xB9\x89\xDF"
  14244. "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB",
  14245. .rlen = 496,
  14246. .also_non_np = 1,
  14247. .np = 3,
  14248. .tap = { 496 - 20, 4, 16 },
  14249. },
  14250. };
  14251. static struct cipher_testvec cast6_ctr_dec_tv_template[] = {
  14252. { /* Generated from TF test vectors */
  14253. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  14254. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  14255. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  14256. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  14257. .klen = 32,
  14258. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  14259. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  14260. .input = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
  14261. "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
  14262. "\x57",
  14263. .ilen = 17,
  14264. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  14265. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  14266. "\x3A",
  14267. .rlen = 17,
  14268. }, { /* Generated from TF test vectors */
  14269. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  14270. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  14271. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  14272. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  14273. .klen = 32,
  14274. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  14275. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  14276. .input = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
  14277. "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
  14278. "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7"
  14279. "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56"
  14280. "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8"
  14281. "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3"
  14282. "\xE3\xF3\xFA\xC2\x23\x55\x98\x20"
  14283. "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5"
  14284. "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30"
  14285. "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D"
  14286. "\x66\x45\xEE\xC8\x19\xBE\x50\xF0"
  14287. "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9"
  14288. "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5"
  14289. "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C"
  14290. "\x81\xDF\x82\x12\xC7\x4C\x1B\x07"
  14291. "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA"
  14292. "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6"
  14293. "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5"
  14294. "\x49\x61\x22\x52\x64\x8C\x46\x41"
  14295. "\x1F\x48\x5F\x4F\xA2\x89\x36\x17"
  14296. "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0"
  14297. "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3"
  14298. "\x00\x14\x15\x59\xC1\x30\x64\xAF"
  14299. "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C"
  14300. "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4"
  14301. "\x02\x37\xC4\x69\xEF\x36\xC1\xF3"
  14302. "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0"
  14303. "\x51\x73\xA3\x22\x42\x41\xAB\xD2"
  14304. "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA"
  14305. "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF"
  14306. "\xC9\x3F\x07\x87\x42\x4B\x3A\x54"
  14307. "\x34\x8E\x37\xA3\x03\x6F\x65\x66"
  14308. "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD"
  14309. "\x61\xB4\x2B\x80\xA3\x98\x13\xF5"
  14310. "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8"
  14311. "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D"
  14312. "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE"
  14313. "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A"
  14314. "\x60\x40\x38\x90\x20\x46\xC7\xB3"
  14315. "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4"
  14316. "\x11\x41\x76\x6B\xB3\x60\x82\x3C"
  14317. "\x84\xFB\x08\x2E\x92\x25\xCB\x79"
  14318. "\x6F\x58\xC5\x94\x00\x00\x47\xB6"
  14319. "\x9E\xDC\x0F\x29\x70\x46\x20\x76"
  14320. "\x65\x75\x66\x5C\x00\x96\xB3\xE1"
  14321. "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45"
  14322. "\x73\xFC\x91\xAB\x79\x41\x23\x14"
  14323. "\x13\xB6\x72\x6C\x46\xB3\x03\x11"
  14324. "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32"
  14325. "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7"
  14326. "\x15\x48\x44\x99\x09\xF6\xE0\xD7"
  14327. "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2"
  14328. "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2"
  14329. "\x12\x53\x35\x9C\xF9\xE7\x35\x5D"
  14330. "\x81\xE4\x86\x42\xC3\x58\xFB\xF0"
  14331. "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F"
  14332. "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4"
  14333. "\x19\x35\x88\x22\x45\x59\x0E\x8F"
  14334. "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41"
  14335. "\x9B\x66\x8D\x32\xBA\x81\x34\x87"
  14336. "\x0E\x74\x33\x30\x62\xB9\x89\xDF"
  14337. "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB",
  14338. .ilen = 496,
  14339. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  14340. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  14341. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  14342. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  14343. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  14344. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  14345. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  14346. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  14347. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  14348. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  14349. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  14350. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  14351. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  14352. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  14353. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  14354. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  14355. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  14356. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  14357. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  14358. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  14359. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  14360. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  14361. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  14362. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  14363. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  14364. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  14365. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  14366. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  14367. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  14368. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  14369. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  14370. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  14371. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  14372. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  14373. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  14374. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  14375. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  14376. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  14377. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  14378. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  14379. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  14380. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  14381. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  14382. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  14383. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  14384. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  14385. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  14386. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  14387. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  14388. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  14389. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  14390. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  14391. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  14392. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  14393. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  14394. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  14395. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  14396. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  14397. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  14398. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  14399. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  14400. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  14401. .rlen = 496,
  14402. .also_non_np = 1,
  14403. .np = 3,
  14404. .tap = { 496 - 20, 4, 16 },
  14405. },
  14406. };
  14407. static struct cipher_testvec cast6_lrw_enc_tv_template[] = {
  14408. { /* Generated from TF test vectors */
  14409. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  14410. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  14411. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  14412. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  14413. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  14414. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  14415. .klen = 48,
  14416. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  14417. "\x00\x00\x00\x00\x00\x00\x00\x01",
  14418. .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  14419. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  14420. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  14421. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  14422. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  14423. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  14424. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  14425. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  14426. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  14427. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  14428. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  14429. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  14430. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  14431. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  14432. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  14433. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  14434. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  14435. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  14436. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  14437. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  14438. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  14439. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  14440. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  14441. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  14442. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  14443. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  14444. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  14445. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  14446. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  14447. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  14448. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  14449. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  14450. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  14451. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  14452. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  14453. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  14454. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  14455. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  14456. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  14457. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  14458. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  14459. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  14460. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  14461. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  14462. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  14463. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  14464. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  14465. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  14466. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  14467. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  14468. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  14469. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  14470. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  14471. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  14472. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  14473. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  14474. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  14475. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  14476. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  14477. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  14478. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  14479. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  14480. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  14481. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  14482. .ilen = 512,
  14483. .result = "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF"
  14484. "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB"
  14485. "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA"
  14486. "\x58\xB6\x73\xF0\xD7\x52\x34\xEF"
  14487. "\xFB\x3E\x96\x81\xB7\x71\x34\xA4"
  14488. "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1"
  14489. "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7"
  14490. "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B"
  14491. "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08"
  14492. "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D"
  14493. "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE"
  14494. "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA"
  14495. "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D"
  14496. "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28"
  14497. "\x80\x1D\xF0\x30\xBA\x62\x77\x7D"
  14498. "\xDB\x15\x69\xDF\xFA\x2A\x81\x64"
  14499. "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30"
  14500. "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7"
  14501. "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B"
  14502. "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61"
  14503. "\x5E\xDB\xFC\x11\x74\x25\x96\x65"
  14504. "\xE8\xE2\x34\x57\x77\x15\x5E\x70"
  14505. "\xFF\x10\x90\xC3\x64\xF0\x11\x0A"
  14506. "\x63\x3A\xD3\x55\x92\x15\x4B\x0C"
  14507. "\xC7\x08\x89\x17\x3B\x99\xAD\x63"
  14508. "\xE7\x06\xDF\x52\xBC\x15\x64\x45"
  14509. "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9"
  14510. "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23"
  14511. "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E"
  14512. "\xBD\xAB\x60\x1A\x51\x17\x54\x27"
  14513. "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19"
  14514. "\x2F\x6F\x20\xA7\x47\xED\x74\x6C"
  14515. "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F"
  14516. "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1"
  14517. "\x07\x16\xDE\x76\xCC\x5E\x94\x02"
  14518. "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F"
  14519. "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7"
  14520. "\x6E\x21\x58\x36\x06\xDE\xB3\xD4"
  14521. "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23"
  14522. "\x51\x21\x2B\x32\x68\xAA\xF8\xA8"
  14523. "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7"
  14524. "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25"
  14525. "\x30\xC7\x10\x3F\x97\x27\x01\x8E"
  14526. "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB"
  14527. "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8"
  14528. "\x22\xE2\xE6\x92\xA7\x5F\x11\x32"
  14529. "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54"
  14530. "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC"
  14531. "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5"
  14532. "\x96\x3D\x69\x91\x20\x4E\xF2\x61"
  14533. "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A"
  14534. "\x78\x39\xB0\xE0\xCF\x12\x56\xD6"
  14535. "\x05\xDC\xF9\x19\x66\x44\x1D\xF9"
  14536. "\x82\x37\xD4\xC2\x60\xB6\x31\xDF"
  14537. "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D"
  14538. "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9"
  14539. "\x9B\x8D\xA7\x00\x86\x25\xB6\x14"
  14540. "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3"
  14541. "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6"
  14542. "\x15\xB7\x94\x7D\x4E\x70\x4C\x75"
  14543. "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A"
  14544. "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5"
  14545. "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7"
  14546. "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46",
  14547. .rlen = 512,
  14548. .also_non_np = 1,
  14549. .np = 3,
  14550. .tap = { 512 - 20, 4, 16 },
  14551. },
  14552. };
  14553. static struct cipher_testvec cast6_lrw_dec_tv_template[] = {
  14554. { /* Generated from TF test vectors */
  14555. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  14556. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  14557. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  14558. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  14559. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  14560. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  14561. .klen = 48,
  14562. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  14563. "\x00\x00\x00\x00\x00\x00\x00\x01",
  14564. .input = "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF"
  14565. "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB"
  14566. "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA"
  14567. "\x58\xB6\x73\xF0\xD7\x52\x34\xEF"
  14568. "\xFB\x3E\x96\x81\xB7\x71\x34\xA4"
  14569. "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1"
  14570. "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7"
  14571. "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B"
  14572. "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08"
  14573. "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D"
  14574. "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE"
  14575. "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA"
  14576. "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D"
  14577. "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28"
  14578. "\x80\x1D\xF0\x30\xBA\x62\x77\x7D"
  14579. "\xDB\x15\x69\xDF\xFA\x2A\x81\x64"
  14580. "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30"
  14581. "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7"
  14582. "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B"
  14583. "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61"
  14584. "\x5E\xDB\xFC\x11\x74\x25\x96\x65"
  14585. "\xE8\xE2\x34\x57\x77\x15\x5E\x70"
  14586. "\xFF\x10\x90\xC3\x64\xF0\x11\x0A"
  14587. "\x63\x3A\xD3\x55\x92\x15\x4B\x0C"
  14588. "\xC7\x08\x89\x17\x3B\x99\xAD\x63"
  14589. "\xE7\x06\xDF\x52\xBC\x15\x64\x45"
  14590. "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9"
  14591. "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23"
  14592. "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E"
  14593. "\xBD\xAB\x60\x1A\x51\x17\x54\x27"
  14594. "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19"
  14595. "\x2F\x6F\x20\xA7\x47\xED\x74\x6C"
  14596. "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F"
  14597. "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1"
  14598. "\x07\x16\xDE\x76\xCC\x5E\x94\x02"
  14599. "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F"
  14600. "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7"
  14601. "\x6E\x21\x58\x36\x06\xDE\xB3\xD4"
  14602. "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23"
  14603. "\x51\x21\x2B\x32\x68\xAA\xF8\xA8"
  14604. "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7"
  14605. "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25"
  14606. "\x30\xC7\x10\x3F\x97\x27\x01\x8E"
  14607. "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB"
  14608. "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8"
  14609. "\x22\xE2\xE6\x92\xA7\x5F\x11\x32"
  14610. "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54"
  14611. "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC"
  14612. "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5"
  14613. "\x96\x3D\x69\x91\x20\x4E\xF2\x61"
  14614. "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A"
  14615. "\x78\x39\xB0\xE0\xCF\x12\x56\xD6"
  14616. "\x05\xDC\xF9\x19\x66\x44\x1D\xF9"
  14617. "\x82\x37\xD4\xC2\x60\xB6\x31\xDF"
  14618. "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D"
  14619. "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9"
  14620. "\x9B\x8D\xA7\x00\x86\x25\xB6\x14"
  14621. "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3"
  14622. "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6"
  14623. "\x15\xB7\x94\x7D\x4E\x70\x4C\x75"
  14624. "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A"
  14625. "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5"
  14626. "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7"
  14627. "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46",
  14628. .ilen = 512,
  14629. .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  14630. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  14631. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  14632. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  14633. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  14634. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  14635. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  14636. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  14637. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  14638. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  14639. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  14640. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  14641. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  14642. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  14643. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  14644. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  14645. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  14646. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  14647. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  14648. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  14649. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  14650. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  14651. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  14652. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  14653. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  14654. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  14655. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  14656. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  14657. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  14658. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  14659. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  14660. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  14661. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  14662. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  14663. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  14664. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  14665. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  14666. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  14667. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  14668. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  14669. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  14670. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  14671. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  14672. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  14673. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  14674. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  14675. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  14676. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  14677. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  14678. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  14679. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  14680. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  14681. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  14682. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  14683. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  14684. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  14685. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  14686. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  14687. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  14688. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  14689. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  14690. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  14691. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  14692. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  14693. .rlen = 512,
  14694. .also_non_np = 1,
  14695. .np = 3,
  14696. .tap = { 512 - 20, 4, 16 },
  14697. },
  14698. };
  14699. static struct cipher_testvec cast6_xts_enc_tv_template[] = {
  14700. { /* Generated from TF test vectors */
  14701. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  14702. "\x23\x53\x60\x28\x74\x71\x35\x26"
  14703. "\x62\x49\x77\x57\x24\x70\x93\x69"
  14704. "\x99\x59\x57\x49\x66\x96\x76\x27"
  14705. "\x31\x41\x59\x26\x53\x58\x97\x93"
  14706. "\x23\x84\x62\x64\x33\x83\x27\x95"
  14707. "\x02\x88\x41\x97\x16\x93\x99\x37"
  14708. "\x51\x05\x82\x09\x74\x94\x45\x92",
  14709. .klen = 64,
  14710. .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
  14711. "\x00\x00\x00\x00\x00\x00\x00\x00",
  14712. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  14713. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  14714. "\x10\x11\x12\x13\x14\x15\x16\x17"
  14715. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  14716. "\x20\x21\x22\x23\x24\x25\x26\x27"
  14717. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  14718. "\x30\x31\x32\x33\x34\x35\x36\x37"
  14719. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  14720. "\x40\x41\x42\x43\x44\x45\x46\x47"
  14721. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  14722. "\x50\x51\x52\x53\x54\x55\x56\x57"
  14723. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  14724. "\x60\x61\x62\x63\x64\x65\x66\x67"
  14725. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  14726. "\x70\x71\x72\x73\x74\x75\x76\x77"
  14727. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  14728. "\x80\x81\x82\x83\x84\x85\x86\x87"
  14729. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  14730. "\x90\x91\x92\x93\x94\x95\x96\x97"
  14731. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  14732. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  14733. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  14734. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  14735. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  14736. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  14737. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  14738. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  14739. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  14740. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  14741. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  14742. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  14743. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  14744. "\x00\x01\x02\x03\x04\x05\x06\x07"
  14745. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  14746. "\x10\x11\x12\x13\x14\x15\x16\x17"
  14747. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  14748. "\x20\x21\x22\x23\x24\x25\x26\x27"
  14749. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  14750. "\x30\x31\x32\x33\x34\x35\x36\x37"
  14751. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  14752. "\x40\x41\x42\x43\x44\x45\x46\x47"
  14753. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  14754. "\x50\x51\x52\x53\x54\x55\x56\x57"
  14755. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  14756. "\x60\x61\x62\x63\x64\x65\x66\x67"
  14757. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  14758. "\x70\x71\x72\x73\x74\x75\x76\x77"
  14759. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  14760. "\x80\x81\x82\x83\x84\x85\x86\x87"
  14761. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  14762. "\x90\x91\x92\x93\x94\x95\x96\x97"
  14763. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  14764. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  14765. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  14766. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  14767. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  14768. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  14769. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  14770. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  14771. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  14772. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  14773. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  14774. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  14775. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  14776. .ilen = 512,
  14777. .result = "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78"
  14778. "\x88\x5A\x4F\x8D\x82\x76\x52\x6D"
  14779. "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6"
  14780. "\xE2\xC5\x62\x8D\x61\xA1\x01\xED"
  14781. "\xD9\x38\x01\xC1\x43\x63\x4E\x88"
  14782. "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71"
  14783. "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13"
  14784. "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81"
  14785. "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6"
  14786. "\x60\x54\x09\x32\xFE\x6A\x76\x2E"
  14787. "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D"
  14788. "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB"
  14789. "\xB8\x25\x70\xF8\x40\xBC\x90\x1B"
  14790. "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD"
  14791. "\xD3\x3B\xCF\x60\xA1\x78\x94\x57"
  14792. "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98"
  14793. "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA"
  14794. "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67"
  14795. "\x05\xDD\x1D\x58\x6E\x2F\x95\x08"
  14796. "\x3A\xF8\x78\x76\x82\x56\xA7\xEC"
  14797. "\x51\x4B\x85\x77\xC2\x4C\x4A\x34"
  14798. "\x71\x38\x17\x91\x44\xE8\xFC\x65"
  14799. "\x99\x0D\x52\x91\xEE\xF8\xEF\x27"
  14800. "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4"
  14801. "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D"
  14802. "\x59\x22\x9B\x29\x5C\x18\xF0\xC3"
  14803. "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1"
  14804. "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3"
  14805. "\x91\x3B\x49\x73\x18\xAB\xD4\xC9"
  14806. "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A"
  14807. "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E"
  14808. "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24"
  14809. "\xE6\x87\xEA\xFE\x96\x25\x67\x8E"
  14810. "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C"
  14811. "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9"
  14812. "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97"
  14813. "\x49\xF7\x04\xCB\xEF\x84\x98\x33"
  14814. "\xAF\x38\xD3\x04\x1C\x24\x71\x38"
  14815. "\xC7\x71\xDD\x43\x0D\x12\x4A\x18"
  14816. "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95"
  14817. "\x02\x43\x5D\xCE\x19\xCC\xCD\x66"
  14818. "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C"
  14819. "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB"
  14820. "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B"
  14821. "\x30\x45\xA9\xB7\xAF\x80\x64\x6F"
  14822. "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE"
  14823. "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE"
  14824. "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8"
  14825. "\x97\xA3\xE1\x6F\x38\x24\x34\x88"
  14826. "\xCE\xBD\x32\x52\xE0\x00\x6C\x94"
  14827. "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F"
  14828. "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59"
  14829. "\x34\x39\xA8\x35\x12\xB7\xBC\xAC"
  14830. "\xEA\x52\x9C\x78\x02\x6D\x92\x36"
  14831. "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83"
  14832. "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64"
  14833. "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3"
  14834. "\xB0\xEB\x31\xE4\x69\x95\xAB\x35"
  14835. "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82"
  14836. "\xF8\xD9\x47\x82\xA9\x82\x03\x91"
  14837. "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F"
  14838. "\x45\x72\x80\x17\x81\xBD\x9D\x62"
  14839. "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC"
  14840. "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9",
  14841. .rlen = 512,
  14842. .also_non_np = 1,
  14843. .np = 3,
  14844. .tap = { 512 - 20, 4, 16 },
  14845. },
  14846. };
  14847. static struct cipher_testvec cast6_xts_dec_tv_template[] = {
  14848. { /* Generated from TF test vectors */
  14849. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  14850. "\x23\x53\x60\x28\x74\x71\x35\x26"
  14851. "\x62\x49\x77\x57\x24\x70\x93\x69"
  14852. "\x99\x59\x57\x49\x66\x96\x76\x27"
  14853. "\x31\x41\x59\x26\x53\x58\x97\x93"
  14854. "\x23\x84\x62\x64\x33\x83\x27\x95"
  14855. "\x02\x88\x41\x97\x16\x93\x99\x37"
  14856. "\x51\x05\x82\x09\x74\x94\x45\x92",
  14857. .klen = 64,
  14858. .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
  14859. "\x00\x00\x00\x00\x00\x00\x00\x00",
  14860. .input = "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78"
  14861. "\x88\x5A\x4F\x8D\x82\x76\x52\x6D"
  14862. "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6"
  14863. "\xE2\xC5\x62\x8D\x61\xA1\x01\xED"
  14864. "\xD9\x38\x01\xC1\x43\x63\x4E\x88"
  14865. "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71"
  14866. "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13"
  14867. "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81"
  14868. "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6"
  14869. "\x60\x54\x09\x32\xFE\x6A\x76\x2E"
  14870. "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D"
  14871. "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB"
  14872. "\xB8\x25\x70\xF8\x40\xBC\x90\x1B"
  14873. "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD"
  14874. "\xD3\x3B\xCF\x60\xA1\x78\x94\x57"
  14875. "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98"
  14876. "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA"
  14877. "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67"
  14878. "\x05\xDD\x1D\x58\x6E\x2F\x95\x08"
  14879. "\x3A\xF8\x78\x76\x82\x56\xA7\xEC"
  14880. "\x51\x4B\x85\x77\xC2\x4C\x4A\x34"
  14881. "\x71\x38\x17\x91\x44\xE8\xFC\x65"
  14882. "\x99\x0D\x52\x91\xEE\xF8\xEF\x27"
  14883. "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4"
  14884. "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D"
  14885. "\x59\x22\x9B\x29\x5C\x18\xF0\xC3"
  14886. "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1"
  14887. "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3"
  14888. "\x91\x3B\x49\x73\x18\xAB\xD4\xC9"
  14889. "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A"
  14890. "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E"
  14891. "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24"
  14892. "\xE6\x87\xEA\xFE\x96\x25\x67\x8E"
  14893. "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C"
  14894. "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9"
  14895. "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97"
  14896. "\x49\xF7\x04\xCB\xEF\x84\x98\x33"
  14897. "\xAF\x38\xD3\x04\x1C\x24\x71\x38"
  14898. "\xC7\x71\xDD\x43\x0D\x12\x4A\x18"
  14899. "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95"
  14900. "\x02\x43\x5D\xCE\x19\xCC\xCD\x66"
  14901. "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C"
  14902. "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB"
  14903. "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B"
  14904. "\x30\x45\xA9\xB7\xAF\x80\x64\x6F"
  14905. "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE"
  14906. "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE"
  14907. "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8"
  14908. "\x97\xA3\xE1\x6F\x38\x24\x34\x88"
  14909. "\xCE\xBD\x32\x52\xE0\x00\x6C\x94"
  14910. "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F"
  14911. "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59"
  14912. "\x34\x39\xA8\x35\x12\xB7\xBC\xAC"
  14913. "\xEA\x52\x9C\x78\x02\x6D\x92\x36"
  14914. "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83"
  14915. "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64"
  14916. "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3"
  14917. "\xB0\xEB\x31\xE4\x69\x95\xAB\x35"
  14918. "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82"
  14919. "\xF8\xD9\x47\x82\xA9\x82\x03\x91"
  14920. "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F"
  14921. "\x45\x72\x80\x17\x81\xBD\x9D\x62"
  14922. "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC"
  14923. "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9",
  14924. .ilen = 512,
  14925. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  14926. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  14927. "\x10\x11\x12\x13\x14\x15\x16\x17"
  14928. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  14929. "\x20\x21\x22\x23\x24\x25\x26\x27"
  14930. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  14931. "\x30\x31\x32\x33\x34\x35\x36\x37"
  14932. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  14933. "\x40\x41\x42\x43\x44\x45\x46\x47"
  14934. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  14935. "\x50\x51\x52\x53\x54\x55\x56\x57"
  14936. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  14937. "\x60\x61\x62\x63\x64\x65\x66\x67"
  14938. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  14939. "\x70\x71\x72\x73\x74\x75\x76\x77"
  14940. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  14941. "\x80\x81\x82\x83\x84\x85\x86\x87"
  14942. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  14943. "\x90\x91\x92\x93\x94\x95\x96\x97"
  14944. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  14945. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  14946. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  14947. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  14948. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  14949. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  14950. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  14951. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  14952. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  14953. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  14954. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  14955. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  14956. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  14957. "\x00\x01\x02\x03\x04\x05\x06\x07"
  14958. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  14959. "\x10\x11\x12\x13\x14\x15\x16\x17"
  14960. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  14961. "\x20\x21\x22\x23\x24\x25\x26\x27"
  14962. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  14963. "\x30\x31\x32\x33\x34\x35\x36\x37"
  14964. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  14965. "\x40\x41\x42\x43\x44\x45\x46\x47"
  14966. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  14967. "\x50\x51\x52\x53\x54\x55\x56\x57"
  14968. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  14969. "\x60\x61\x62\x63\x64\x65\x66\x67"
  14970. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  14971. "\x70\x71\x72\x73\x74\x75\x76\x77"
  14972. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  14973. "\x80\x81\x82\x83\x84\x85\x86\x87"
  14974. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  14975. "\x90\x91\x92\x93\x94\x95\x96\x97"
  14976. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  14977. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  14978. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  14979. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  14980. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  14981. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  14982. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  14983. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  14984. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  14985. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  14986. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  14987. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  14988. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  14989. .rlen = 512,
  14990. .also_non_np = 1,
  14991. .np = 3,
  14992. .tap = { 512 - 20, 4, 16 },
  14993. },
  14994. };
  14995. /*
  14996. * AES test vectors.
  14997. */
  14998. #define AES_ENC_TEST_VECTORS 4
  14999. #define AES_DEC_TEST_VECTORS 4
  15000. #define AES_CBC_ENC_TEST_VECTORS 5
  15001. #define AES_CBC_DEC_TEST_VECTORS 5
  15002. #define HMAC_MD5_ECB_CIPHER_NULL_ENC_TEST_VECTORS 2
  15003. #define HMAC_MD5_ECB_CIPHER_NULL_DEC_TEST_VECTORS 2
  15004. #define HMAC_SHA1_ECB_CIPHER_NULL_ENC_TEST_VEC 2
  15005. #define HMAC_SHA1_ECB_CIPHER_NULL_DEC_TEST_VEC 2
  15006. #define HMAC_SHA1_AES_CBC_ENC_TEST_VEC 7
  15007. #define HMAC_SHA256_AES_CBC_ENC_TEST_VEC 7
  15008. #define HMAC_SHA512_AES_CBC_ENC_TEST_VEC 7
  15009. #define AES_LRW_ENC_TEST_VECTORS 8
  15010. #define AES_LRW_DEC_TEST_VECTORS 8
  15011. #define AES_XTS_ENC_TEST_VECTORS 5
  15012. #define AES_XTS_DEC_TEST_VECTORS 5
  15013. #define AES_CTR_ENC_TEST_VECTORS 5
  15014. #define AES_CTR_DEC_TEST_VECTORS 5
  15015. #define AES_OFB_ENC_TEST_VECTORS 1
  15016. #define AES_OFB_DEC_TEST_VECTORS 1
  15017. #define AES_CTR_3686_ENC_TEST_VECTORS 7
  15018. #define AES_CTR_3686_DEC_TEST_VECTORS 6
  15019. #define AES_GCM_ENC_TEST_VECTORS 9
  15020. #define AES_GCM_DEC_TEST_VECTORS 8
  15021. #define AES_GCM_4106_ENC_TEST_VECTORS 23
  15022. #define AES_GCM_4106_DEC_TEST_VECTORS 23
  15023. #define AES_GCM_4543_ENC_TEST_VECTORS 1
  15024. #define AES_GCM_4543_DEC_TEST_VECTORS 2
  15025. #define AES_CCM_ENC_TEST_VECTORS 8
  15026. #define AES_CCM_DEC_TEST_VECTORS 7
  15027. #define AES_CCM_4309_ENC_TEST_VECTORS 7
  15028. #define AES_CCM_4309_DEC_TEST_VECTORS 10
  15029. static struct cipher_testvec aes_enc_tv_template[] = {
  15030. { /* From FIPS-197 */
  15031. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  15032. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  15033. .klen = 16,
  15034. .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
  15035. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  15036. .ilen = 16,
  15037. .result = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
  15038. "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
  15039. .rlen = 16,
  15040. }, {
  15041. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  15042. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  15043. "\x10\x11\x12\x13\x14\x15\x16\x17",
  15044. .klen = 24,
  15045. .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
  15046. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  15047. .ilen = 16,
  15048. .result = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
  15049. "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
  15050. .rlen = 16,
  15051. }, {
  15052. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  15053. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  15054. "\x10\x11\x12\x13\x14\x15\x16\x17"
  15055. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  15056. .klen = 32,
  15057. .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
  15058. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  15059. .ilen = 16,
  15060. .result = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
  15061. "\xea\xfc\x49\x90\x4b\x49\x60\x89",
  15062. .rlen = 16,
  15063. }, { /* Generated with Crypto++ */
  15064. .key = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32"
  15065. "\x55\x0F\x32\x55\x78\x9B\xBE\x78"
  15066. "\x9B\xBE\xE1\x04\x27\xE1\x04\x27"
  15067. "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6",
  15068. .klen = 32,
  15069. .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  15070. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  15071. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  15072. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  15073. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  15074. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  15075. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  15076. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  15077. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  15078. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  15079. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  15080. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  15081. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  15082. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  15083. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  15084. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  15085. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  15086. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  15087. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  15088. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  15089. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  15090. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  15091. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  15092. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  15093. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  15094. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  15095. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  15096. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  15097. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  15098. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  15099. "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
  15100. "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
  15101. "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
  15102. "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
  15103. "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
  15104. "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
  15105. "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
  15106. "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
  15107. "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
  15108. "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
  15109. "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
  15110. "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
  15111. "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
  15112. "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
  15113. "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
  15114. "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
  15115. "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
  15116. "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
  15117. "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
  15118. "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
  15119. "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
  15120. "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
  15121. "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
  15122. "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
  15123. "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
  15124. "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
  15125. "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
  15126. "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
  15127. "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
  15128. "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
  15129. "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
  15130. "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
  15131. .ilen = 496,
  15132. .result = "\x71\x73\xF7\xDB\x24\x93\x21\x6D"
  15133. "\x61\x1E\xBB\x63\x42\x79\xDB\x64"
  15134. "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B"
  15135. "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F"
  15136. "\x5E\x06\xF0\x5F\x31\x51\x18\x37"
  15137. "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1"
  15138. "\xDD\x8D\x22\x65\x2B\x00\x50\xCE"
  15139. "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA"
  15140. "\x78\x69\x7F\xAE\x8F\x8B\x69\x37"
  15141. "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09"
  15142. "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8"
  15143. "\x81\x82\x27\xFA\x45\x9C\x29\xA4"
  15144. "\x22\x8B\x78\x69\x5B\x46\xF9\x39"
  15145. "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C"
  15146. "\x41\x72\x51\x97\x1D\x07\x49\xA0"
  15147. "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03"
  15148. "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64"
  15149. "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA"
  15150. "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F"
  15151. "\xE1\x8B\x22\x17\x59\x0C\x47\x89"
  15152. "\x33\xA1\xD6\x47\x03\x19\x4F\xA8"
  15153. "\x67\x69\xF0\x5B\xF0\x20\xAD\x06"
  15154. "\x27\x81\x92\xD8\xC5\xBA\x98\x12"
  15155. "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD"
  15156. "\x12\x2F\x07\x32\xEE\x39\xAF\x64"
  15157. "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E"
  15158. "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68"
  15159. "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC"
  15160. "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F"
  15161. "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C"
  15162. "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B"
  15163. "\x25\xFB\x26\x81\xE0\x2F\xF0\x96"
  15164. "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64"
  15165. "\x63\x29\x4C\x8E\x18\x13\xC5\xBF"
  15166. "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29"
  15167. "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1"
  15168. "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1"
  15169. "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA"
  15170. "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50"
  15171. "\x31\xCB\x69\x3F\x96\x15\xD6\xF5"
  15172. "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10"
  15173. "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A"
  15174. "\xDC\x6A\x80\x34\x73\x97\x1B\xC5"
  15175. "\xCA\x26\x16\x77\x0E\x60\xAB\x89"
  15176. "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4"
  15177. "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70"
  15178. "\x42\x71\x51\x78\x70\xB3\xE0\x3D"
  15179. "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92"
  15180. "\x11\x08\x42\x4F\xE5\xAD\x26\x92"
  15181. "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47"
  15182. "\x22\xC1\x95\xC1\x63\x7F\xCB\x03"
  15183. "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA"
  15184. "\x35\xA2\xFD\x45\x52\x39\x13\x6F"
  15185. "\xC1\x53\xF3\x53\xDF\x33\x84\xD7"
  15186. "\xD2\xC8\x37\xB0\x75\xE3\x41\x46"
  15187. "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5"
  15188. "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD"
  15189. "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F"
  15190. "\x40\x86\x7F\x51\xE1\x11\x9C\xCB"
  15191. "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF"
  15192. "\x09\x79\xA0\x43\x5C\x0D\x08\x58"
  15193. "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9",
  15194. .rlen = 496,
  15195. .also_non_np = 1,
  15196. .np = 3,
  15197. .tap = { 496 - 20, 4, 16 },
  15198. },
  15199. };
  15200. static struct cipher_testvec aes_dec_tv_template[] = {
  15201. { /* From FIPS-197 */
  15202. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  15203. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  15204. .klen = 16,
  15205. .input = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
  15206. "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
  15207. .ilen = 16,
  15208. .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
  15209. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  15210. .rlen = 16,
  15211. }, {
  15212. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  15213. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  15214. "\x10\x11\x12\x13\x14\x15\x16\x17",
  15215. .klen = 24,
  15216. .input = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
  15217. "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
  15218. .ilen = 16,
  15219. .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
  15220. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  15221. .rlen = 16,
  15222. }, {
  15223. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  15224. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  15225. "\x10\x11\x12\x13\x14\x15\x16\x17"
  15226. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  15227. .klen = 32,
  15228. .input = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
  15229. "\xea\xfc\x49\x90\x4b\x49\x60\x89",
  15230. .ilen = 16,
  15231. .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
  15232. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  15233. .rlen = 16,
  15234. }, { /* Generated with Crypto++ */
  15235. .key = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32"
  15236. "\x55\x0F\x32\x55\x78\x9B\xBE\x78"
  15237. "\x9B\xBE\xE1\x04\x27\xE1\x04\x27"
  15238. "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6",
  15239. .klen = 32,
  15240. .input = "\x71\x73\xF7\xDB\x24\x93\x21\x6D"
  15241. "\x61\x1E\xBB\x63\x42\x79\xDB\x64"
  15242. "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B"
  15243. "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F"
  15244. "\x5E\x06\xF0\x5F\x31\x51\x18\x37"
  15245. "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1"
  15246. "\xDD\x8D\x22\x65\x2B\x00\x50\xCE"
  15247. "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA"
  15248. "\x78\x69\x7F\xAE\x8F\x8B\x69\x37"
  15249. "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09"
  15250. "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8"
  15251. "\x81\x82\x27\xFA\x45\x9C\x29\xA4"
  15252. "\x22\x8B\x78\x69\x5B\x46\xF9\x39"
  15253. "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C"
  15254. "\x41\x72\x51\x97\x1D\x07\x49\xA0"
  15255. "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03"
  15256. "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64"
  15257. "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA"
  15258. "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F"
  15259. "\xE1\x8B\x22\x17\x59\x0C\x47\x89"
  15260. "\x33\xA1\xD6\x47\x03\x19\x4F\xA8"
  15261. "\x67\x69\xF0\x5B\xF0\x20\xAD\x06"
  15262. "\x27\x81\x92\xD8\xC5\xBA\x98\x12"
  15263. "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD"
  15264. "\x12\x2F\x07\x32\xEE\x39\xAF\x64"
  15265. "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E"
  15266. "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68"
  15267. "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC"
  15268. "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F"
  15269. "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C"
  15270. "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B"
  15271. "\x25\xFB\x26\x81\xE0\x2F\xF0\x96"
  15272. "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64"
  15273. "\x63\x29\x4C\x8E\x18\x13\xC5\xBF"
  15274. "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29"
  15275. "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1"
  15276. "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1"
  15277. "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA"
  15278. "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50"
  15279. "\x31\xCB\x69\x3F\x96\x15\xD6\xF5"
  15280. "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10"
  15281. "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A"
  15282. "\xDC\x6A\x80\x34\x73\x97\x1B\xC5"
  15283. "\xCA\x26\x16\x77\x0E\x60\xAB\x89"
  15284. "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4"
  15285. "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70"
  15286. "\x42\x71\x51\x78\x70\xB3\xE0\x3D"
  15287. "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92"
  15288. "\x11\x08\x42\x4F\xE5\xAD\x26\x92"
  15289. "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47"
  15290. "\x22\xC1\x95\xC1\x63\x7F\xCB\x03"
  15291. "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA"
  15292. "\x35\xA2\xFD\x45\x52\x39\x13\x6F"
  15293. "\xC1\x53\xF3\x53\xDF\x33\x84\xD7"
  15294. "\xD2\xC8\x37\xB0\x75\xE3\x41\x46"
  15295. "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5"
  15296. "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD"
  15297. "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F"
  15298. "\x40\x86\x7F\x51\xE1\x11\x9C\xCB"
  15299. "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF"
  15300. "\x09\x79\xA0\x43\x5C\x0D\x08\x58"
  15301. "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9",
  15302. .ilen = 496,
  15303. .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  15304. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  15305. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  15306. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  15307. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  15308. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  15309. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  15310. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  15311. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  15312. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  15313. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  15314. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  15315. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  15316. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  15317. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  15318. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  15319. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  15320. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  15321. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  15322. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  15323. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  15324. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  15325. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  15326. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  15327. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  15328. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  15329. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  15330. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  15331. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  15332. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  15333. "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
  15334. "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
  15335. "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
  15336. "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
  15337. "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
  15338. "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
  15339. "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
  15340. "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
  15341. "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
  15342. "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
  15343. "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
  15344. "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
  15345. "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
  15346. "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
  15347. "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
  15348. "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
  15349. "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
  15350. "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
  15351. "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
  15352. "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
  15353. "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
  15354. "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
  15355. "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
  15356. "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
  15357. "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
  15358. "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
  15359. "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
  15360. "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
  15361. "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
  15362. "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
  15363. "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
  15364. "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
  15365. .rlen = 496,
  15366. .also_non_np = 1,
  15367. .np = 3,
  15368. .tap = { 496 - 20, 4, 16 },
  15369. },
  15370. };
  15371. static struct cipher_testvec aes_cbc_enc_tv_template[] = {
  15372. { /* From RFC 3602 */
  15373. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  15374. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  15375. .klen = 16,
  15376. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  15377. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  15378. .input = "Single block msg",
  15379. .ilen = 16,
  15380. .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
  15381. "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
  15382. .rlen = 16,
  15383. .also_non_np = 1,
  15384. .np = 8,
  15385. .tap = { 3, 2, 3, 2, 3, 1, 1, 1 },
  15386. }, {
  15387. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  15388. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  15389. .klen = 16,
  15390. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  15391. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  15392. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  15393. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  15394. "\x10\x11\x12\x13\x14\x15\x16\x17"
  15395. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  15396. .ilen = 32,
  15397. .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
  15398. "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
  15399. "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
  15400. "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
  15401. .rlen = 32,
  15402. }, { /* From NIST SP800-38A */
  15403. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  15404. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  15405. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  15406. .klen = 24,
  15407. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  15408. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  15409. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  15410. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  15411. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  15412. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  15413. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  15414. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  15415. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  15416. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  15417. .ilen = 64,
  15418. .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
  15419. "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
  15420. "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
  15421. "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
  15422. "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
  15423. "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
  15424. "\x08\xb0\xe2\x79\x88\x59\x88\x81"
  15425. "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
  15426. .rlen = 64,
  15427. }, {
  15428. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  15429. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  15430. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  15431. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  15432. .klen = 32,
  15433. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  15434. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  15435. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  15436. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  15437. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  15438. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  15439. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  15440. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  15441. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  15442. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  15443. .ilen = 64,
  15444. .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
  15445. "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
  15446. "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
  15447. "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
  15448. "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
  15449. "\xa5\x30\xe2\x63\x04\x23\x14\x61"
  15450. "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
  15451. "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
  15452. .rlen = 64,
  15453. }, { /* Generated with Crypto++ */
  15454. .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
  15455. "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
  15456. "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
  15457. "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
  15458. .klen = 32,
  15459. .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
  15460. "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
  15461. .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  15462. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  15463. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  15464. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  15465. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  15466. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  15467. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  15468. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  15469. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  15470. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  15471. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  15472. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  15473. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  15474. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  15475. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  15476. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  15477. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  15478. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  15479. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  15480. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  15481. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  15482. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  15483. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  15484. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  15485. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  15486. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  15487. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  15488. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  15489. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  15490. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  15491. "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
  15492. "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
  15493. "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
  15494. "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
  15495. "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
  15496. "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
  15497. "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
  15498. "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
  15499. "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
  15500. "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
  15501. "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
  15502. "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
  15503. "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
  15504. "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
  15505. "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
  15506. "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
  15507. "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
  15508. "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
  15509. "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
  15510. "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
  15511. "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
  15512. "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
  15513. "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
  15514. "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
  15515. "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
  15516. "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
  15517. "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
  15518. "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
  15519. "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
  15520. "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
  15521. "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
  15522. "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
  15523. .ilen = 496,
  15524. .result = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F"
  15525. "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF"
  15526. "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F"
  15527. "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8"
  15528. "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0"
  15529. "\x11\x15\xFF\x6D\x1E\x82\x04\xA6"
  15530. "\xB1\x74\xD1\x08\x13\xFD\x90\x7C"
  15531. "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F"
  15532. "\x0A\x70\xF1\x88\x07\xCF\x21\x26"
  15533. "\x40\x40\x8A\xF5\x53\xF7\x24\x4F"
  15534. "\x83\x38\x43\x5F\x08\x99\xEB\xE3"
  15535. "\xDC\x02\x64\x67\x50\x6E\x15\xC3"
  15536. "\x01\x1A\xA0\x81\x13\x65\xA6\x73"
  15537. "\x71\xA6\x3B\x91\x83\x77\xBE\xFA"
  15538. "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3"
  15539. "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F"
  15540. "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F"
  15541. "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43"
  15542. "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40"
  15543. "\x03\xA8\x6C\x50\x42\x9F\x77\x59"
  15544. "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99"
  15545. "\x16\x24\x02\x07\x48\xAE\xF2\x31"
  15546. "\x34\x0E\xC3\x85\xFE\x1C\x95\x99"
  15547. "\x87\x58\x98\x8B\xE7\xC6\xC5\x70"
  15548. "\x73\x81\x07\x7C\x56\x2F\xD8\x1B"
  15549. "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F"
  15550. "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98"
  15551. "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04"
  15552. "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5"
  15553. "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD"
  15554. "\xF1\xE3\x3D\x98\x50\x02\x77\x9E"
  15555. "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66"
  15556. "\x20\x02\x23\xDA\xDF\xA0\x89\xF6"
  15557. "\xD8\xF3\x45\x24\x53\x6F\x16\x77"
  15558. "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78"
  15559. "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3"
  15560. "\x57\xBC\x0B\x9F\x43\x51\x28\x4F"
  15561. "\x07\x50\x6C\x68\x12\x07\xCF\xFA"
  15562. "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C"
  15563. "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD"
  15564. "\x22\x39\x7B\x16\x03\x01\x69\xAF"
  15565. "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5"
  15566. "\x03\xB4\x2F\x51\x8A\x56\x17\x2B"
  15567. "\x88\x42\x6D\x40\x68\x8F\xD0\x11"
  15568. "\x19\xF9\x1F\x43\x79\x95\x31\xFA"
  15569. "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC"
  15570. "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC"
  15571. "\x8D\x53\x6E\x72\x68\xA3\xC7\x63"
  15572. "\x43\x2B\x78\xE0\x04\x29\x8F\x72"
  15573. "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD"
  15574. "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D"
  15575. "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44"
  15576. "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61"
  15577. "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC"
  15578. "\x58\x08\x15\xAB\x12\xAB\x17\x4A"
  15579. "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB"
  15580. "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F"
  15581. "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61"
  15582. "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD"
  15583. "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A"
  15584. "\xE0\x1F\x91\xF8\x82\x96\x2D\x65"
  15585. "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02",
  15586. .rlen = 496,
  15587. .also_non_np = 1,
  15588. .np = 3,
  15589. .tap = { 496 - 20, 4, 16 },
  15590. },
  15591. };
  15592. static struct cipher_testvec aes_cbc_dec_tv_template[] = {
  15593. { /* From RFC 3602 */
  15594. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  15595. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  15596. .klen = 16,
  15597. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  15598. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  15599. .input = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
  15600. "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
  15601. .ilen = 16,
  15602. .result = "Single block msg",
  15603. .rlen = 16,
  15604. .also_non_np = 1,
  15605. .np = 8,
  15606. .tap = { 3, 2, 3, 2, 3, 1, 1, 1 },
  15607. }, {
  15608. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  15609. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  15610. .klen = 16,
  15611. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  15612. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  15613. .input = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
  15614. "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
  15615. "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
  15616. "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
  15617. .ilen = 32,
  15618. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  15619. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  15620. "\x10\x11\x12\x13\x14\x15\x16\x17"
  15621. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  15622. .rlen = 32,
  15623. }, { /* From NIST SP800-38A */
  15624. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  15625. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  15626. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  15627. .klen = 24,
  15628. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  15629. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  15630. .input = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
  15631. "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
  15632. "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
  15633. "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
  15634. "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
  15635. "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
  15636. "\x08\xb0\xe2\x79\x88\x59\x88\x81"
  15637. "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
  15638. .ilen = 64,
  15639. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  15640. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  15641. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  15642. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  15643. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  15644. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  15645. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  15646. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  15647. .rlen = 64,
  15648. }, {
  15649. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  15650. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  15651. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  15652. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  15653. .klen = 32,
  15654. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  15655. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  15656. .input = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
  15657. "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
  15658. "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
  15659. "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
  15660. "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
  15661. "\xa5\x30\xe2\x63\x04\x23\x14\x61"
  15662. "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
  15663. "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
  15664. .ilen = 64,
  15665. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  15666. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  15667. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  15668. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  15669. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  15670. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  15671. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  15672. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  15673. .rlen = 64,
  15674. }, { /* Generated with Crypto++ */
  15675. .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
  15676. "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
  15677. "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
  15678. "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
  15679. .klen = 32,
  15680. .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
  15681. "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
  15682. .input = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F"
  15683. "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF"
  15684. "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F"
  15685. "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8"
  15686. "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0"
  15687. "\x11\x15\xFF\x6D\x1E\x82\x04\xA6"
  15688. "\xB1\x74\xD1\x08\x13\xFD\x90\x7C"
  15689. "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F"
  15690. "\x0A\x70\xF1\x88\x07\xCF\x21\x26"
  15691. "\x40\x40\x8A\xF5\x53\xF7\x24\x4F"
  15692. "\x83\x38\x43\x5F\x08\x99\xEB\xE3"
  15693. "\xDC\x02\x64\x67\x50\x6E\x15\xC3"
  15694. "\x01\x1A\xA0\x81\x13\x65\xA6\x73"
  15695. "\x71\xA6\x3B\x91\x83\x77\xBE\xFA"
  15696. "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3"
  15697. "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F"
  15698. "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F"
  15699. "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43"
  15700. "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40"
  15701. "\x03\xA8\x6C\x50\x42\x9F\x77\x59"
  15702. "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99"
  15703. "\x16\x24\x02\x07\x48\xAE\xF2\x31"
  15704. "\x34\x0E\xC3\x85\xFE\x1C\x95\x99"
  15705. "\x87\x58\x98\x8B\xE7\xC6\xC5\x70"
  15706. "\x73\x81\x07\x7C\x56\x2F\xD8\x1B"
  15707. "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F"
  15708. "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98"
  15709. "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04"
  15710. "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5"
  15711. "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD"
  15712. "\xF1\xE3\x3D\x98\x50\x02\x77\x9E"
  15713. "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66"
  15714. "\x20\x02\x23\xDA\xDF\xA0\x89\xF6"
  15715. "\xD8\xF3\x45\x24\x53\x6F\x16\x77"
  15716. "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78"
  15717. "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3"
  15718. "\x57\xBC\x0B\x9F\x43\x51\x28\x4F"
  15719. "\x07\x50\x6C\x68\x12\x07\xCF\xFA"
  15720. "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C"
  15721. "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD"
  15722. "\x22\x39\x7B\x16\x03\x01\x69\xAF"
  15723. "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5"
  15724. "\x03\xB4\x2F\x51\x8A\x56\x17\x2B"
  15725. "\x88\x42\x6D\x40\x68\x8F\xD0\x11"
  15726. "\x19\xF9\x1F\x43\x79\x95\x31\xFA"
  15727. "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC"
  15728. "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC"
  15729. "\x8D\x53\x6E\x72\x68\xA3\xC7\x63"
  15730. "\x43\x2B\x78\xE0\x04\x29\x8F\x72"
  15731. "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD"
  15732. "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D"
  15733. "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44"
  15734. "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61"
  15735. "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC"
  15736. "\x58\x08\x15\xAB\x12\xAB\x17\x4A"
  15737. "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB"
  15738. "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F"
  15739. "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61"
  15740. "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD"
  15741. "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A"
  15742. "\xE0\x1F\x91\xF8\x82\x96\x2D\x65"
  15743. "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02",
  15744. .ilen = 496,
  15745. .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  15746. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  15747. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  15748. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  15749. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  15750. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  15751. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  15752. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  15753. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  15754. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  15755. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  15756. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  15757. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  15758. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  15759. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  15760. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  15761. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  15762. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  15763. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  15764. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  15765. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  15766. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  15767. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  15768. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  15769. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  15770. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  15771. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  15772. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  15773. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  15774. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  15775. "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
  15776. "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
  15777. "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
  15778. "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
  15779. "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
  15780. "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
  15781. "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
  15782. "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
  15783. "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
  15784. "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
  15785. "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
  15786. "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
  15787. "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
  15788. "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
  15789. "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
  15790. "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
  15791. "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
  15792. "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
  15793. "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
  15794. "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
  15795. "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
  15796. "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
  15797. "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
  15798. "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
  15799. "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
  15800. "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
  15801. "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
  15802. "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
  15803. "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
  15804. "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
  15805. "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
  15806. "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
  15807. .rlen = 496,
  15808. .also_non_np = 1,
  15809. .np = 3,
  15810. .tap = { 496 - 20, 4, 16 },
  15811. },
  15812. };
  15813. static struct aead_testvec hmac_md5_ecb_cipher_null_enc_tv_template[] = {
  15814. { /* Input data from RFC 2410 Case 1 */
  15815. #ifdef __LITTLE_ENDIAN
  15816. .key = "\x08\x00" /* rta length */
  15817. "\x01\x00" /* rta type */
  15818. #else
  15819. .key = "\x00\x08" /* rta length */
  15820. "\x00\x01" /* rta type */
  15821. #endif
  15822. "\x00\x00\x00\x00" /* enc key length */
  15823. "\x00\x00\x00\x00\x00\x00\x00\x00"
  15824. "\x00\x00\x00\x00\x00\x00\x00\x00",
  15825. .klen = 8 + 16 + 0,
  15826. .iv = "",
  15827. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  15828. .ilen = 8,
  15829. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  15830. "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a"
  15831. "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae",
  15832. .rlen = 8 + 16,
  15833. }, { /* Input data from RFC 2410 Case 2 */
  15834. #ifdef __LITTLE_ENDIAN
  15835. .key = "\x08\x00" /* rta length */
  15836. "\x01\x00" /* rta type */
  15837. #else
  15838. .key = "\x00\x08" /* rta length */
  15839. "\x00\x01" /* rta type */
  15840. #endif
  15841. "\x00\x00\x00\x00" /* enc key length */
  15842. "\x00\x00\x00\x00\x00\x00\x00\x00"
  15843. "\x00\x00\x00\x00\x00\x00\x00\x00",
  15844. .klen = 8 + 16 + 0,
  15845. .iv = "",
  15846. .input = "Network Security People Have A Strange Sense Of Humor",
  15847. .ilen = 53,
  15848. .result = "Network Security People Have A Strange Sense Of Humor"
  15849. "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a"
  15850. "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23",
  15851. .rlen = 53 + 16,
  15852. },
  15853. };
  15854. static struct aead_testvec hmac_md5_ecb_cipher_null_dec_tv_template[] = {
  15855. {
  15856. #ifdef __LITTLE_ENDIAN
  15857. .key = "\x08\x00" /* rta length */
  15858. "\x01\x00" /* rta type */
  15859. #else
  15860. .key = "\x00\x08" /* rta length */
  15861. "\x00\x01" /* rta type */
  15862. #endif
  15863. "\x00\x00\x00\x00" /* enc key length */
  15864. "\x00\x00\x00\x00\x00\x00\x00\x00"
  15865. "\x00\x00\x00\x00\x00\x00\x00\x00",
  15866. .klen = 8 + 16 + 0,
  15867. .iv = "",
  15868. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  15869. "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a"
  15870. "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae",
  15871. .ilen = 8 + 16,
  15872. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  15873. .rlen = 8,
  15874. }, {
  15875. #ifdef __LITTLE_ENDIAN
  15876. .key = "\x08\x00" /* rta length */
  15877. "\x01\x00" /* rta type */
  15878. #else
  15879. .key = "\x00\x08" /* rta length */
  15880. "\x00\x01" /* rta type */
  15881. #endif
  15882. "\x00\x00\x00\x00" /* enc key length */
  15883. "\x00\x00\x00\x00\x00\x00\x00\x00"
  15884. "\x00\x00\x00\x00\x00\x00\x00\x00",
  15885. .klen = 8 + 16 + 0,
  15886. .iv = "",
  15887. .input = "Network Security People Have A Strange Sense Of Humor"
  15888. "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a"
  15889. "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23",
  15890. .ilen = 53 + 16,
  15891. .result = "Network Security People Have A Strange Sense Of Humor",
  15892. .rlen = 53,
  15893. },
  15894. };
  15895. static struct aead_testvec hmac_sha1_aes_cbc_enc_tv_temp[] = {
  15896. { /* RFC 3602 Case 1 */
  15897. #ifdef __LITTLE_ENDIAN
  15898. .key = "\x08\x00" /* rta length */
  15899. "\x01\x00" /* rta type */
  15900. #else
  15901. .key = "\x00\x08" /* rta length */
  15902. "\x00\x01" /* rta type */
  15903. #endif
  15904. "\x00\x00\x00\x10" /* enc key length */
  15905. "\x00\x00\x00\x00\x00\x00\x00\x00"
  15906. "\x00\x00\x00\x00\x00\x00\x00\x00"
  15907. "\x00\x00\x00\x00"
  15908. "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  15909. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  15910. .klen = 8 + 20 + 16,
  15911. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  15912. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  15913. .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  15914. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  15915. .alen = 16,
  15916. .input = "Single block msg",
  15917. .ilen = 16,
  15918. .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
  15919. "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
  15920. "\x1b\x13\xcb\xaf\x89\x5e\xe1\x2c"
  15921. "\x13\xc5\x2e\xa3\xcc\xed\xdc\xb5"
  15922. "\x03\x71\xa2\x06",
  15923. .rlen = 16 + 20,
  15924. }, { /* RFC 3602 Case 2 */
  15925. #ifdef __LITTLE_ENDIAN
  15926. .key = "\x08\x00" /* rta length */
  15927. "\x01\x00" /* rta type */
  15928. #else
  15929. .key = "\x00\x08" /* rta length */
  15930. "\x00\x01" /* rta type */
  15931. #endif
  15932. "\x00\x00\x00\x10" /* enc key length */
  15933. "\x20\x21\x22\x23\x24\x25\x26\x27"
  15934. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  15935. "\x30\x31\x32\x33"
  15936. "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  15937. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  15938. .klen = 8 + 20 + 16,
  15939. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  15940. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  15941. .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  15942. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  15943. .alen = 16,
  15944. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  15945. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  15946. "\x10\x11\x12\x13\x14\x15\x16\x17"
  15947. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  15948. .ilen = 32,
  15949. .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
  15950. "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
  15951. "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
  15952. "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
  15953. "\xad\x9b\x4c\x5c\x85\xe1\xda\xae"
  15954. "\xee\x81\x4e\xd7\xdb\x74\xcf\x58"
  15955. "\x65\x39\xf8\xde",
  15956. .rlen = 32 + 20,
  15957. }, { /* RFC 3602 Case 3 */
  15958. #ifdef __LITTLE_ENDIAN
  15959. .key = "\x08\x00" /* rta length */
  15960. "\x01\x00" /* rta type */
  15961. #else
  15962. .key = "\x00\x08" /* rta length */
  15963. "\x00\x01" /* rta type */
  15964. #endif
  15965. "\x00\x00\x00\x10" /* enc key length */
  15966. "\x11\x22\x33\x44\x55\x66\x77\x88"
  15967. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  15968. "\x22\x33\x44\x55"
  15969. "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
  15970. "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
  15971. .klen = 8 + 20 + 16,
  15972. .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
  15973. "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
  15974. .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
  15975. "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
  15976. .alen = 16,
  15977. .input = "This is a 48-byte message (exactly 3 AES blocks)",
  15978. .ilen = 48,
  15979. .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
  15980. "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
  15981. "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
  15982. "\x50\x69\x39\x27\x67\x72\xf8\xd5"
  15983. "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
  15984. "\x85\x79\x69\x5d\x83\xba\x26\x84"
  15985. "\xc2\xec\x0c\xf8\x7f\x05\xba\xca"
  15986. "\xff\xee\x4c\xd0\x93\xe6\x36\x7f"
  15987. "\x8d\x62\xf2\x1e",
  15988. .rlen = 48 + 20,
  15989. }, { /* RFC 3602 Case 4 */
  15990. #ifdef __LITTLE_ENDIAN
  15991. .key = "\x08\x00" /* rta length */
  15992. "\x01\x00" /* rta type */
  15993. #else
  15994. .key = "\x00\x08" /* rta length */
  15995. "\x00\x01" /* rta type */
  15996. #endif
  15997. "\x00\x00\x00\x10" /* enc key length */
  15998. "\x11\x22\x33\x44\x55\x66\x77\x88"
  15999. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  16000. "\x22\x33\x44\x55"
  16001. "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
  16002. "\xbc\x46\x90\x3d\xba\x29\x03\x49",
  16003. .klen = 8 + 20 + 16,
  16004. .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
  16005. "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
  16006. .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
  16007. "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
  16008. .alen = 16,
  16009. .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  16010. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  16011. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  16012. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  16013. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  16014. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  16015. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  16016. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
  16017. .ilen = 64,
  16018. .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
  16019. "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
  16020. "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
  16021. "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
  16022. "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
  16023. "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
  16024. "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
  16025. "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
  16026. "\x1c\x45\x57\xa9\x56\xcb\xa9\x2d"
  16027. "\x18\xac\xf1\xc7\x5d\xd1\xcd\x0d"
  16028. "\x1d\xbe\xc6\xe9",
  16029. .rlen = 64 + 20,
  16030. }, { /* RFC 3602 Case 5 */
  16031. #ifdef __LITTLE_ENDIAN
  16032. .key = "\x08\x00" /* rta length */
  16033. "\x01\x00" /* rta type */
  16034. #else
  16035. .key = "\x00\x08" /* rta length */
  16036. "\x00\x01" /* rta type */
  16037. #endif
  16038. "\x00\x00\x00\x10" /* enc key length */
  16039. "\x11\x22\x33\x44\x55\x66\x77\x88"
  16040. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  16041. "\x22\x33\x44\x55"
  16042. "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
  16043. "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
  16044. .klen = 8 + 20 + 16,
  16045. .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
  16046. "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
  16047. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
  16048. "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
  16049. "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
  16050. .alen = 24,
  16051. .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
  16052. "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
  16053. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  16054. "\x10\x11\x12\x13\x14\x15\x16\x17"
  16055. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  16056. "\x20\x21\x22\x23\x24\x25\x26\x27"
  16057. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  16058. "\x30\x31\x32\x33\x34\x35\x36\x37"
  16059. "\x01\x02\x03\x04\x05\x06\x07\x08"
  16060. "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
  16061. .ilen = 80,
  16062. .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
  16063. "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
  16064. "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
  16065. "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
  16066. "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
  16067. "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
  16068. "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
  16069. "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
  16070. "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
  16071. "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
  16072. "\x58\xc6\x84\x75\xe4\xe9\x6b\x0c"
  16073. "\xe1\xc5\x0b\x73\x4d\x82\x55\xa8"
  16074. "\x85\xe1\x59\xf7",
  16075. .rlen = 80 + 20,
  16076. }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
  16077. #ifdef __LITTLE_ENDIAN
  16078. .key = "\x08\x00" /* rta length */
  16079. "\x01\x00" /* rta type */
  16080. #else
  16081. .key = "\x00\x08" /* rta length */
  16082. "\x00\x01" /* rta type */
  16083. #endif
  16084. "\x00\x00\x00\x18" /* enc key length */
  16085. "\x11\x22\x33\x44\x55\x66\x77\x88"
  16086. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  16087. "\x22\x33\x44\x55"
  16088. "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  16089. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  16090. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  16091. .klen = 8 + 20 + 24,
  16092. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  16093. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  16094. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  16095. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  16096. .alen = 16,
  16097. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  16098. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  16099. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  16100. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  16101. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  16102. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  16103. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  16104. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  16105. .ilen = 64,
  16106. .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
  16107. "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
  16108. "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
  16109. "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
  16110. "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
  16111. "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
  16112. "\x08\xb0\xe2\x79\x88\x59\x88\x81"
  16113. "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
  16114. "\x73\xe3\x19\x3f\x8b\xc9\xc6\xf4"
  16115. "\x5a\xf1\x5b\xa8\x98\x07\xc5\x36"
  16116. "\x47\x4c\xfc\x36",
  16117. .rlen = 64 + 20,
  16118. }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
  16119. #ifdef __LITTLE_ENDIAN
  16120. .key = "\x08\x00" /* rta length */
  16121. "\x01\x00" /* rta type */
  16122. #else
  16123. .key = "\x00\x08" /* rta length */
  16124. "\x00\x01" /* rta type */
  16125. #endif
  16126. "\x00\x00\x00\x20" /* enc key length */
  16127. "\x11\x22\x33\x44\x55\x66\x77\x88"
  16128. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  16129. "\x22\x33\x44\x55"
  16130. "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  16131. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  16132. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  16133. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  16134. .klen = 8 + 20 + 32,
  16135. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  16136. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  16137. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  16138. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  16139. .alen = 16,
  16140. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  16141. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  16142. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  16143. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  16144. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  16145. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  16146. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  16147. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  16148. .ilen = 64,
  16149. .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
  16150. "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
  16151. "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
  16152. "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
  16153. "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
  16154. "\xa5\x30\xe2\x63\x04\x23\x14\x61"
  16155. "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
  16156. "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
  16157. "\xa3\xe8\x9b\x17\xe3\xf4\x7f\xde"
  16158. "\x1b\x9f\xc6\x81\x26\x43\x4a\x87"
  16159. "\x51\xee\xd6\x4e",
  16160. .rlen = 64 + 20,
  16161. },
  16162. };
  16163. static struct aead_testvec hmac_sha1_ecb_cipher_null_enc_tv_temp[] = {
  16164. { /* Input data from RFC 2410 Case 1 */
  16165. #ifdef __LITTLE_ENDIAN
  16166. .key = "\x08\x00" /* rta length */
  16167. "\x01\x00" /* rta type */
  16168. #else
  16169. .key = "\x00\x08" /* rta length */
  16170. "\x00\x01" /* rta type */
  16171. #endif
  16172. "\x00\x00\x00\x00" /* enc key length */
  16173. "\x00\x00\x00\x00\x00\x00\x00\x00"
  16174. "\x00\x00\x00\x00\x00\x00\x00\x00"
  16175. "\x00\x00\x00\x00",
  16176. .klen = 8 + 20 + 0,
  16177. .iv = "",
  16178. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  16179. .ilen = 8,
  16180. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  16181. "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab"
  16182. "\x99\x5e\x19\x04\xd1\x72\xef\xb8"
  16183. "\x8c\x5e\xe4\x08",
  16184. .rlen = 8 + 20,
  16185. }, { /* Input data from RFC 2410 Case 2 */
  16186. #ifdef __LITTLE_ENDIAN
  16187. .key = "\x08\x00" /* rta length */
  16188. "\x01\x00" /* rta type */
  16189. #else
  16190. .key = "\x00\x08" /* rta length */
  16191. "\x00\x01" /* rta type */
  16192. #endif
  16193. "\x00\x00\x00\x00" /* enc key length */
  16194. "\x00\x00\x00\x00\x00\x00\x00\x00"
  16195. "\x00\x00\x00\x00\x00\x00\x00\x00"
  16196. "\x00\x00\x00\x00",
  16197. .klen = 8 + 20 + 0,
  16198. .iv = "",
  16199. .input = "Network Security People Have A Strange Sense Of Humor",
  16200. .ilen = 53,
  16201. .result = "Network Security People Have A Strange Sense Of Humor"
  16202. "\x75\x6f\x42\x1e\xf8\x50\x21\xd2"
  16203. "\x65\x47\xee\x8e\x1a\xef\x16\xf6"
  16204. "\x91\x56\xe4\xd6",
  16205. .rlen = 53 + 20,
  16206. },
  16207. };
  16208. static struct aead_testvec hmac_sha1_ecb_cipher_null_dec_tv_temp[] = {
  16209. {
  16210. #ifdef __LITTLE_ENDIAN
  16211. .key = "\x08\x00" /* rta length */
  16212. "\x01\x00" /* rta type */
  16213. #else
  16214. .key = "\x00\x08" /* rta length */
  16215. "\x00\x01" /* rta type */
  16216. #endif
  16217. "\x00\x00\x00\x00" /* enc key length */
  16218. "\x00\x00\x00\x00\x00\x00\x00\x00"
  16219. "\x00\x00\x00\x00\x00\x00\x00\x00"
  16220. "\x00\x00\x00\x00",
  16221. .klen = 8 + 20 + 0,
  16222. .iv = "",
  16223. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  16224. "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab"
  16225. "\x99\x5e\x19\x04\xd1\x72\xef\xb8"
  16226. "\x8c\x5e\xe4\x08",
  16227. .ilen = 8 + 20,
  16228. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  16229. .rlen = 8,
  16230. }, {
  16231. #ifdef __LITTLE_ENDIAN
  16232. .key = "\x08\x00" /* rta length */
  16233. "\x01\x00" /* rta type */
  16234. #else
  16235. .key = "\x00\x08" /* rta length */
  16236. "\x00\x01" /* rta type */
  16237. #endif
  16238. "\x00\x00\x00\x00" /* enc key length */
  16239. "\x00\x00\x00\x00\x00\x00\x00\x00"
  16240. "\x00\x00\x00\x00\x00\x00\x00\x00"
  16241. "\x00\x00\x00\x00",
  16242. .klen = 8 + 20 + 0,
  16243. .iv = "",
  16244. .input = "Network Security People Have A Strange Sense Of Humor"
  16245. "\x75\x6f\x42\x1e\xf8\x50\x21\xd2"
  16246. "\x65\x47\xee\x8e\x1a\xef\x16\xf6"
  16247. "\x91\x56\xe4\xd6",
  16248. .ilen = 53 + 20,
  16249. .result = "Network Security People Have A Strange Sense Of Humor",
  16250. .rlen = 53,
  16251. },
  16252. };
  16253. static struct aead_testvec hmac_sha256_aes_cbc_enc_tv_temp[] = {
  16254. { /* RFC 3602 Case 1 */
  16255. #ifdef __LITTLE_ENDIAN
  16256. .key = "\x08\x00" /* rta length */
  16257. "\x01\x00" /* rta type */
  16258. #else
  16259. .key = "\x00\x08" /* rta length */
  16260. "\x00\x01" /* rta type */
  16261. #endif
  16262. "\x00\x00\x00\x10" /* enc key length */
  16263. "\x00\x00\x00\x00\x00\x00\x00\x00"
  16264. "\x00\x00\x00\x00\x00\x00\x00\x00"
  16265. "\x00\x00\x00\x00\x00\x00\x00\x00"
  16266. "\x00\x00\x00\x00\x00\x00\x00\x00"
  16267. "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  16268. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  16269. .klen = 8 + 32 + 16,
  16270. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  16271. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  16272. .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  16273. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  16274. .alen = 16,
  16275. .input = "Single block msg",
  16276. .ilen = 16,
  16277. .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
  16278. "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
  16279. "\xcc\xde\x2d\x6a\xae\xf1\x0b\xcc"
  16280. "\x38\x06\x38\x51\xb4\xb8\xf3\x5b"
  16281. "\x5c\x34\xa6\xa3\x6e\x0b\x05\xe5"
  16282. "\x6a\x6d\x44\xaa\x26\xa8\x44\xa5",
  16283. .rlen = 16 + 32,
  16284. }, { /* RFC 3602 Case 2 */
  16285. #ifdef __LITTLE_ENDIAN
  16286. .key = "\x08\x00" /* rta length */
  16287. "\x01\x00" /* rta type */
  16288. #else
  16289. .key = "\x00\x08" /* rta length */
  16290. "\x00\x01" /* rta type */
  16291. #endif
  16292. "\x00\x00\x00\x10" /* enc key length */
  16293. "\x20\x21\x22\x23\x24\x25\x26\x27"
  16294. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  16295. "\x30\x31\x32\x33\x34\x35\x36\x37"
  16296. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  16297. "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  16298. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  16299. .klen = 8 + 32 + 16,
  16300. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  16301. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  16302. .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  16303. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  16304. .alen = 16,
  16305. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  16306. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  16307. "\x10\x11\x12\x13\x14\x15\x16\x17"
  16308. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  16309. .ilen = 32,
  16310. .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
  16311. "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
  16312. "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
  16313. "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
  16314. "\xf5\x33\x53\xf3\x68\x85\x2a\x99"
  16315. "\x0e\x06\x58\x8f\xba\xf6\x06\xda"
  16316. "\x49\x69\x0d\x5b\xd4\x36\x06\x62"
  16317. "\x35\x5e\x54\x58\x53\x4d\xdf\xbf",
  16318. .rlen = 32 + 32,
  16319. }, { /* RFC 3602 Case 3 */
  16320. #ifdef __LITTLE_ENDIAN
  16321. .key = "\x08\x00" /* rta length */
  16322. "\x01\x00" /* rta type */
  16323. #else
  16324. .key = "\x00\x08" /* rta length */
  16325. "\x00\x01" /* rta type */
  16326. #endif
  16327. "\x00\x00\x00\x10" /* enc key length */
  16328. "\x11\x22\x33\x44\x55\x66\x77\x88"
  16329. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  16330. "\x22\x33\x44\x55\x66\x77\x88\x99"
  16331. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  16332. "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
  16333. "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
  16334. .klen = 8 + 32 + 16,
  16335. .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
  16336. "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
  16337. .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
  16338. "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
  16339. .alen = 16,
  16340. .input = "This is a 48-byte message (exactly 3 AES blocks)",
  16341. .ilen = 48,
  16342. .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
  16343. "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
  16344. "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
  16345. "\x50\x69\x39\x27\x67\x72\xf8\xd5"
  16346. "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
  16347. "\x85\x79\x69\x5d\x83\xba\x26\x84"
  16348. "\x68\xb9\x3e\x90\x38\xa0\x88\x01"
  16349. "\xe7\xc6\xce\x10\x31\x2f\x9b\x1d"
  16350. "\x24\x78\xfb\xbe\x02\xe0\x4f\x40"
  16351. "\x10\xbd\xaa\xc6\xa7\x79\xe0\x1a",
  16352. .rlen = 48 + 32,
  16353. }, { /* RFC 3602 Case 4 */
  16354. #ifdef __LITTLE_ENDIAN
  16355. .key = "\x08\x00" /* rta length */
  16356. "\x01\x00" /* rta type */
  16357. #else
  16358. .key = "\x00\x08" /* rta length */
  16359. "\x00\x01" /* rta type */
  16360. #endif
  16361. "\x00\x00\x00\x10" /* enc key length */
  16362. "\x11\x22\x33\x44\x55\x66\x77\x88"
  16363. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  16364. "\x22\x33\x44\x55\x66\x77\x88\x99"
  16365. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  16366. "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
  16367. "\xbc\x46\x90\x3d\xba\x29\x03\x49",
  16368. .klen = 8 + 32 + 16,
  16369. .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
  16370. "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
  16371. .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
  16372. "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
  16373. .alen = 16,
  16374. .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  16375. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  16376. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  16377. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  16378. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  16379. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  16380. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  16381. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
  16382. .ilen = 64,
  16383. .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
  16384. "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
  16385. "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
  16386. "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
  16387. "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
  16388. "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
  16389. "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
  16390. "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
  16391. "\x7a\x1b\xd4\x3c\xdb\x17\x95\xe2"
  16392. "\xe0\x93\xec\xc9\x9f\xf7\xce\xd8"
  16393. "\x3f\x54\xe2\x49\x39\xe3\x71\x25"
  16394. "\x2b\x6c\xe9\x5d\xec\xec\x2b\x64",
  16395. .rlen = 64 + 32,
  16396. }, { /* RFC 3602 Case 5 */
  16397. #ifdef __LITTLE_ENDIAN
  16398. .key = "\x08\x00" /* rta length */
  16399. "\x01\x00" /* rta type */
  16400. #else
  16401. .key = "\x00\x08" /* rta length */
  16402. "\x00\x01" /* rta type */
  16403. #endif
  16404. "\x00\x00\x00\x10" /* enc key length */
  16405. "\x11\x22\x33\x44\x55\x66\x77\x88"
  16406. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  16407. "\x22\x33\x44\x55\x66\x77\x88\x99"
  16408. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  16409. "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
  16410. "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
  16411. .klen = 8 + 32 + 16,
  16412. .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
  16413. "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
  16414. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
  16415. "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
  16416. "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
  16417. .alen = 24,
  16418. .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
  16419. "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
  16420. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  16421. "\x10\x11\x12\x13\x14\x15\x16\x17"
  16422. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  16423. "\x20\x21\x22\x23\x24\x25\x26\x27"
  16424. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  16425. "\x30\x31\x32\x33\x34\x35\x36\x37"
  16426. "\x01\x02\x03\x04\x05\x06\x07\x08"
  16427. "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
  16428. .ilen = 80,
  16429. .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
  16430. "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
  16431. "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
  16432. "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
  16433. "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
  16434. "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
  16435. "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
  16436. "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
  16437. "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
  16438. "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
  16439. "\xbb\xd4\x0f\xbe\xa3\x3b\x4c\xb8"
  16440. "\x3a\xd2\xe1\x03\x86\xa5\x59\xb7"
  16441. "\x73\xc3\x46\x20\x2c\xb1\xef\x68"
  16442. "\xbb\x8a\x32\x7e\x12\x8c\x69\xcf",
  16443. .rlen = 80 + 32,
  16444. }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
  16445. #ifdef __LITTLE_ENDIAN
  16446. .key = "\x08\x00" /* rta length */
  16447. "\x01\x00" /* rta type */
  16448. #else
  16449. .key = "\x00\x08" /* rta length */
  16450. "\x00\x01" /* rta type */
  16451. #endif
  16452. "\x00\x00\x00\x18" /* enc key length */
  16453. "\x11\x22\x33\x44\x55\x66\x77\x88"
  16454. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  16455. "\x22\x33\x44\x55\x66\x77\x88\x99"
  16456. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  16457. "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  16458. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  16459. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  16460. .klen = 8 + 32 + 24,
  16461. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  16462. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  16463. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  16464. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  16465. .alen = 16,
  16466. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  16467. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  16468. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  16469. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  16470. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  16471. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  16472. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  16473. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  16474. .ilen = 64,
  16475. .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
  16476. "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
  16477. "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
  16478. "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
  16479. "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
  16480. "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
  16481. "\x08\xb0\xe2\x79\x88\x59\x88\x81"
  16482. "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
  16483. "\x2f\xee\x5f\xdb\x66\xfe\x79\x09"
  16484. "\x61\x81\x31\xea\x5b\x3d\x8e\xfb"
  16485. "\xca\x71\x85\x93\xf7\x85\x55\x8b"
  16486. "\x7a\xe4\x94\xca\x8b\xba\x19\x33",
  16487. .rlen = 64 + 32,
  16488. }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
  16489. #ifdef __LITTLE_ENDIAN
  16490. .key = "\x08\x00" /* rta length */
  16491. "\x01\x00" /* rta type */
  16492. #else
  16493. .key = "\x00\x08" /* rta length */
  16494. "\x00\x01" /* rta type */
  16495. #endif
  16496. "\x00\x00\x00\x20" /* enc key length */
  16497. "\x11\x22\x33\x44\x55\x66\x77\x88"
  16498. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  16499. "\x22\x33\x44\x55\x66\x77\x88\x99"
  16500. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  16501. "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  16502. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  16503. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  16504. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  16505. .klen = 8 + 32 + 32,
  16506. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  16507. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  16508. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  16509. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  16510. .alen = 16,
  16511. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  16512. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  16513. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  16514. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  16515. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  16516. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  16517. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  16518. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  16519. .ilen = 64,
  16520. .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
  16521. "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
  16522. "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
  16523. "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
  16524. "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
  16525. "\xa5\x30\xe2\x63\x04\x23\x14\x61"
  16526. "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
  16527. "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
  16528. "\x24\x29\xed\xc2\x31\x49\xdb\xb1"
  16529. "\x8f\x74\xbd\x17\x92\x03\xbe\x8f"
  16530. "\xf3\x61\xde\x1c\xe9\xdb\xcd\xd0"
  16531. "\xcc\xce\xe9\x85\x57\xcf\x6f\x5f",
  16532. .rlen = 64 + 32,
  16533. },
  16534. };
  16535. static struct aead_testvec hmac_sha512_aes_cbc_enc_tv_temp[] = {
  16536. { /* RFC 3602 Case 1 */
  16537. #ifdef __LITTLE_ENDIAN
  16538. .key = "\x08\x00" /* rta length */
  16539. "\x01\x00" /* rta type */
  16540. #else
  16541. .key = "\x00\x08" /* rta length */
  16542. "\x00\x01" /* rta type */
  16543. #endif
  16544. "\x00\x00\x00\x10" /* enc key length */
  16545. "\x00\x00\x00\x00\x00\x00\x00\x00"
  16546. "\x00\x00\x00\x00\x00\x00\x00\x00"
  16547. "\x00\x00\x00\x00\x00\x00\x00\x00"
  16548. "\x00\x00\x00\x00\x00\x00\x00\x00"
  16549. "\x00\x00\x00\x00\x00\x00\x00\x00"
  16550. "\x00\x00\x00\x00\x00\x00\x00\x00"
  16551. "\x00\x00\x00\x00\x00\x00\x00\x00"
  16552. "\x00\x00\x00\x00\x00\x00\x00\x00"
  16553. "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  16554. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  16555. .klen = 8 + 64 + 16,
  16556. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  16557. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  16558. .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  16559. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  16560. .alen = 16,
  16561. .input = "Single block msg",
  16562. .ilen = 16,
  16563. .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
  16564. "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
  16565. "\x3f\xdc\xad\x90\x03\x63\x5e\x68"
  16566. "\xc3\x13\xdd\xa4\x5c\x4d\x54\xa7"
  16567. "\x19\x6e\x03\x75\x2b\xa1\x62\xce"
  16568. "\xe0\xc6\x96\x75\xb2\x14\xca\x96"
  16569. "\xec\xbd\x50\x08\x07\x64\x1a\x49"
  16570. "\xe8\x9a\x7c\x06\x3d\xcb\xff\xb2"
  16571. "\xfa\x20\x89\xdd\x9c\xac\x9e\x16"
  16572. "\x18\x8a\xa0\x6d\x01\x6c\xa3\x3a",
  16573. .rlen = 16 + 64,
  16574. }, { /* RFC 3602 Case 2 */
  16575. #ifdef __LITTLE_ENDIAN
  16576. .key = "\x08\x00" /* rta length */
  16577. "\x01\x00" /* rta type */
  16578. #else
  16579. .key = "\x00\x08" /* rta length */
  16580. "\x00\x01" /* rta type */
  16581. #endif
  16582. "\x00\x00\x00\x10" /* enc key length */
  16583. "\x20\x21\x22\x23\x24\x25\x26\x27"
  16584. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  16585. "\x30\x31\x32\x33\x34\x35\x36\x37"
  16586. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  16587. "\x40\x41\x42\x43\x44\x45\x46\x47"
  16588. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  16589. "\x50\x51\x52\x53\x54\x55\x56\x57"
  16590. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  16591. "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  16592. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  16593. .klen = 8 + 64 + 16,
  16594. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  16595. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  16596. .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  16597. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  16598. .alen = 16,
  16599. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  16600. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  16601. "\x10\x11\x12\x13\x14\x15\x16\x17"
  16602. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  16603. .ilen = 32,
  16604. .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
  16605. "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
  16606. "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
  16607. "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
  16608. "\xda\xb2\x0c\xb2\x26\xc4\xd5\xef"
  16609. "\x60\x38\xa4\x5e\x9a\x8c\x1b\x41"
  16610. "\x03\x9f\xc4\x64\x7f\x01\x42\x9b"
  16611. "\x0e\x1b\xea\xef\xbc\x88\x19\x5e"
  16612. "\x31\x7e\xc2\x95\xfc\x09\x32\x0a"
  16613. "\x46\x32\x7c\x41\x9c\x59\x3e\xe9"
  16614. "\x8f\x9f\xd4\x31\xd6\x22\xbd\xf8"
  16615. "\xf7\x0a\x94\xe5\xa9\xc3\xf6\x9d",
  16616. .rlen = 32 + 64,
  16617. }, { /* RFC 3602 Case 3 */
  16618. #ifdef __LITTLE_ENDIAN
  16619. .key = "\x08\x00" /* rta length */
  16620. "\x01\x00" /* rta type */
  16621. #else
  16622. .key = "\x00\x08" /* rta length */
  16623. "\x00\x01" /* rta type */
  16624. #endif
  16625. "\x00\x00\x00\x10" /* enc key length */
  16626. "\x11\x22\x33\x44\x55\x66\x77\x88"
  16627. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  16628. "\x22\x33\x44\x55\x66\x77\x88\x99"
  16629. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  16630. "\x33\x44\x55\x66\x77\x88\x99\xaa"
  16631. "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
  16632. "\x44\x55\x66\x77\x88\x99\xaa\xbb"
  16633. "\xcc\xdd\xee\xff\x11\x22\x33\x44"
  16634. "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
  16635. "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
  16636. .klen = 8 + 64 + 16,
  16637. .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
  16638. "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
  16639. .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
  16640. "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
  16641. .alen = 16,
  16642. .input = "This is a 48-byte message (exactly 3 AES blocks)",
  16643. .ilen = 48,
  16644. .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
  16645. "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
  16646. "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
  16647. "\x50\x69\x39\x27\x67\x72\xf8\xd5"
  16648. "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
  16649. "\x85\x79\x69\x5d\x83\xba\x26\x84"
  16650. "\x64\x19\x17\x5b\x57\xe0\x21\x0f"
  16651. "\xca\xdb\xa1\x26\x38\x14\xa2\x69"
  16652. "\xdb\x54\x67\x80\xc0\x54\xe0\xfd"
  16653. "\x3e\x91\xe7\x91\x7f\x13\x38\x44"
  16654. "\xb7\xb1\xd6\xc8\x7d\x48\x8d\x41"
  16655. "\x08\xea\x29\x6c\x74\x67\x3f\xb0"
  16656. "\xac\x7f\x5c\x1d\xf5\xee\x22\x66"
  16657. "\x27\xa6\xb6\x13\xba\xba\xf0\xc2",
  16658. .rlen = 48 + 64,
  16659. }, { /* RFC 3602 Case 4 */
  16660. #ifdef __LITTLE_ENDIAN
  16661. .key = "\x08\x00" /* rta length */
  16662. "\x01\x00" /* rta type */
  16663. #else
  16664. .key = "\x00\x08" /* rta length */
  16665. "\x00\x01" /* rta type */
  16666. #endif
  16667. "\x00\x00\x00\x10" /* enc key length */
  16668. "\x11\x22\x33\x44\x55\x66\x77\x88"
  16669. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  16670. "\x22\x33\x44\x55\x66\x77\x88\x99"
  16671. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  16672. "\x33\x44\x55\x66\x77\x88\x99\xaa"
  16673. "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
  16674. "\x44\x55\x66\x77\x88\x99\xaa\xbb"
  16675. "\xcc\xdd\xee\xff\x11\x22\x33\x44"
  16676. "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
  16677. "\xbc\x46\x90\x3d\xba\x29\x03\x49",
  16678. .klen = 8 + 64 + 16,
  16679. .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
  16680. "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
  16681. .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
  16682. "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
  16683. .alen = 16,
  16684. .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  16685. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  16686. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  16687. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  16688. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  16689. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  16690. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  16691. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
  16692. .ilen = 64,
  16693. .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
  16694. "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
  16695. "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
  16696. "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
  16697. "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
  16698. "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
  16699. "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
  16700. "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
  16701. "\x82\xcd\x42\x28\x21\x20\x15\xcc"
  16702. "\xb7\xb2\x48\x40\xc7\x64\x41\x3a"
  16703. "\x61\x32\x82\x85\xcf\x27\xed\xb4"
  16704. "\xe4\x68\xa2\xf5\x79\x26\x27\xb2"
  16705. "\x51\x67\x6a\xc4\xf0\x66\x55\x50"
  16706. "\xbc\x6f\xed\xd5\x8d\xde\x23\x7c"
  16707. "\x62\x98\x14\xd7\x2f\x37\x8d\xdf"
  16708. "\xf4\x33\x80\xeb\x8e\xb4\xa4\xda",
  16709. .rlen = 64 + 64,
  16710. }, { /* RFC 3602 Case 5 */
  16711. #ifdef __LITTLE_ENDIAN
  16712. .key = "\x08\x00" /* rta length */
  16713. "\x01\x00" /* rta type */
  16714. #else
  16715. .key = "\x00\x08" /* rta length */
  16716. "\x00\x01" /* rta type */
  16717. #endif
  16718. "\x00\x00\x00\x10" /* enc key length */
  16719. "\x11\x22\x33\x44\x55\x66\x77\x88"
  16720. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  16721. "\x22\x33\x44\x55\x66\x77\x88\x99"
  16722. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  16723. "\x33\x44\x55\x66\x77\x88\x99\xaa"
  16724. "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
  16725. "\x44\x55\x66\x77\x88\x99\xaa\xbb"
  16726. "\xcc\xdd\xee\xff\x11\x22\x33\x44"
  16727. "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
  16728. "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
  16729. .klen = 8 + 64 + 16,
  16730. .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
  16731. "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
  16732. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
  16733. "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
  16734. "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
  16735. .alen = 24,
  16736. .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
  16737. "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
  16738. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  16739. "\x10\x11\x12\x13\x14\x15\x16\x17"
  16740. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  16741. "\x20\x21\x22\x23\x24\x25\x26\x27"
  16742. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  16743. "\x30\x31\x32\x33\x34\x35\x36\x37"
  16744. "\x01\x02\x03\x04\x05\x06\x07\x08"
  16745. "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
  16746. .ilen = 80,
  16747. .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
  16748. "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
  16749. "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
  16750. "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
  16751. "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
  16752. "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
  16753. "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
  16754. "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
  16755. "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
  16756. "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
  16757. "\x74\x84\x94\xe2\xd7\x7a\xf9\xbf"
  16758. "\x00\x8a\xa2\xd5\xb7\xf3\x60\xcf"
  16759. "\xa0\x47\xdf\x4e\x09\xf4\xb1\x7f"
  16760. "\x14\xd9\x3d\x53\x8e\x12\xb3\x00"
  16761. "\x4c\x0a\x4e\x32\x40\x43\x88\xce"
  16762. "\x92\x26\xc1\x76\x20\x11\xeb\xba"
  16763. "\x62\x4f\x9a\x62\x25\xc3\x75\x80"
  16764. "\xb7\x0a\x17\xf5\xd7\x94\xb4\x14",
  16765. .rlen = 80 + 64,
  16766. }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
  16767. #ifdef __LITTLE_ENDIAN
  16768. .key = "\x08\x00" /* rta length */
  16769. "\x01\x00" /* rta type */
  16770. #else
  16771. .key = "\x00\x08" /* rta length */
  16772. "\x00\x01" /* rta type */
  16773. #endif
  16774. "\x00\x00\x00\x18" /* enc key length */
  16775. "\x11\x22\x33\x44\x55\x66\x77\x88"
  16776. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  16777. "\x22\x33\x44\x55\x66\x77\x88\x99"
  16778. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  16779. "\x33\x44\x55\x66\x77\x88\x99\xaa"
  16780. "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
  16781. "\x44\x55\x66\x77\x88\x99\xaa\xbb"
  16782. "\xcc\xdd\xee\xff\x11\x22\x33\x44"
  16783. "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  16784. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  16785. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  16786. .klen = 8 + 64 + 24,
  16787. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  16788. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  16789. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  16790. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  16791. .alen = 16,
  16792. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  16793. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  16794. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  16795. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  16796. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  16797. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  16798. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  16799. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  16800. .ilen = 64,
  16801. .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
  16802. "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
  16803. "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
  16804. "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
  16805. "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
  16806. "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
  16807. "\x08\xb0\xe2\x79\x88\x59\x88\x81"
  16808. "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
  16809. "\x77\x4b\x69\x9d\x3a\x0d\xb4\x99"
  16810. "\x8f\xc6\x8e\x0e\x72\x58\xe3\x56"
  16811. "\xbb\x21\xd2\x7d\x93\x11\x17\x91"
  16812. "\xc4\x83\xfd\x0a\xea\x71\xfe\x77"
  16813. "\xae\x6f\x0a\xa5\xf0\xcf\xe1\x35"
  16814. "\xba\x03\xd5\x32\xfa\x5f\x41\x58"
  16815. "\x8d\x43\x98\xa7\x94\x16\x07\x02"
  16816. "\x0f\xb6\x81\x50\x28\x95\x2e\x75",
  16817. .rlen = 64 + 64,
  16818. }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
  16819. #ifdef __LITTLE_ENDIAN
  16820. .key = "\x08\x00" /* rta length */
  16821. "\x01\x00" /* rta type */
  16822. #else
  16823. .key = "\x00\x08" /* rta length */
  16824. "\x00\x01" /* rta type */
  16825. #endif
  16826. "\x00\x00\x00\x20" /* enc key length */
  16827. "\x11\x22\x33\x44\x55\x66\x77\x88"
  16828. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  16829. "\x22\x33\x44\x55\x66\x77\x88\x99"
  16830. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  16831. "\x33\x44\x55\x66\x77\x88\x99\xaa"
  16832. "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
  16833. "\x44\x55\x66\x77\x88\x99\xaa\xbb"
  16834. "\xcc\xdd\xee\xff\x11\x22\x33\x44"
  16835. "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  16836. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  16837. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  16838. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  16839. .klen = 8 + 64 + 32,
  16840. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  16841. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  16842. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  16843. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  16844. .alen = 16,
  16845. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  16846. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  16847. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  16848. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  16849. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  16850. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  16851. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  16852. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  16853. .ilen = 64,
  16854. .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
  16855. "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
  16856. "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
  16857. "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
  16858. "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
  16859. "\xa5\x30\xe2\x63\x04\x23\x14\x61"
  16860. "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
  16861. "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
  16862. "\xb2\x27\x69\x7f\x45\x64\x79\x2b"
  16863. "\xb7\xb8\x4c\xd4\x75\x94\x68\x40"
  16864. "\x2a\xea\x91\xc7\x3f\x7c\xed\x7b"
  16865. "\x95\x2c\x9b\xa8\xf5\xe5\x52\x8d"
  16866. "\x6b\xe1\xae\xf1\x74\xfa\x0d\x0c"
  16867. "\xe3\x8d\x64\xc3\x8d\xff\x7c\x8c"
  16868. "\xdb\xbf\xa0\xb4\x01\xa2\xa8\xa2"
  16869. "\x2c\xb1\x62\x2c\x10\xca\xf1\x21",
  16870. .rlen = 64 + 64,
  16871. },
  16872. };
  16873. #define HMAC_SHA1_DES_CBC_ENC_TEST_VEC 1
  16874. static struct aead_testvec hmac_sha1_des_cbc_enc_tv_temp[] = {
  16875. { /*Generated with cryptopp*/
  16876. #ifdef __LITTLE_ENDIAN
  16877. .key = "\x08\x00" /* rta length */
  16878. "\x01\x00" /* rta type */
  16879. #else
  16880. .key = "\x00\x08" /* rta length */
  16881. "\x00\x01" /* rta type */
  16882. #endif
  16883. "\x00\x00\x00\x08" /* enc key length */
  16884. "\x11\x22\x33\x44\x55\x66\x77\x88"
  16885. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  16886. "\x22\x33\x44\x55"
  16887. "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
  16888. .klen = 8 + 20 + 8,
  16889. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  16890. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
  16891. "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  16892. .alen = 16,
  16893. .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  16894. "\x53\x20\x63\x65\x65\x72\x73\x74"
  16895. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  16896. "\x20\x79\x65\x53\x72\x63\x74\x65"
  16897. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  16898. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  16899. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  16900. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  16901. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  16902. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  16903. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  16904. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  16905. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  16906. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  16907. "\x63\x65\x65\x72\x73\x74\x54\x20"
  16908. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  16909. .ilen = 128,
  16910. .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
  16911. "\x54\x31\x85\x37\xed\x6b\x01\x8d"
  16912. "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
  16913. "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
  16914. "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
  16915. "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
  16916. "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
  16917. "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
  16918. "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
  16919. "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
  16920. "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
  16921. "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
  16922. "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
  16923. "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
  16924. "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
  16925. "\x53\xba\xe1\x76\xe3\x82\x07\x86"
  16926. "\x95\x16\x20\x09\xf5\x95\x19\xfd"
  16927. "\x3c\xc7\xe0\x42\xc0\x14\x69\xfa"
  16928. "\x5c\x44\xa9\x37",
  16929. .rlen = 128 + 20,
  16930. },
  16931. };
  16932. #define HMAC_SHA224_DES_CBC_ENC_TEST_VEC 1
  16933. static struct aead_testvec hmac_sha224_des_cbc_enc_tv_temp[] = {
  16934. { /*Generated with cryptopp*/
  16935. #ifdef __LITTLE_ENDIAN
  16936. .key = "\x08\x00" /* rta length */
  16937. "\x01\x00" /* rta type */
  16938. #else
  16939. .key = "\x00\x08" /* rta length */
  16940. "\x00\x01" /* rta type */
  16941. #endif
  16942. "\x00\x00\x00\x08" /* enc key length */
  16943. "\x11\x22\x33\x44\x55\x66\x77\x88"
  16944. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  16945. "\x22\x33\x44\x55\x66\x77\x88\x99"
  16946. "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
  16947. .klen = 8 + 24 + 8,
  16948. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  16949. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
  16950. "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  16951. .alen = 16,
  16952. .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  16953. "\x53\x20\x63\x65\x65\x72\x73\x74"
  16954. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  16955. "\x20\x79\x65\x53\x72\x63\x74\x65"
  16956. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  16957. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  16958. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  16959. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  16960. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  16961. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  16962. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  16963. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  16964. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  16965. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  16966. "\x63\x65\x65\x72\x73\x74\x54\x20"
  16967. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  16968. .ilen = 128,
  16969. .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
  16970. "\x54\x31\x85\x37\xed\x6b\x01\x8d"
  16971. "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
  16972. "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
  16973. "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
  16974. "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
  16975. "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
  16976. "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
  16977. "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
  16978. "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
  16979. "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
  16980. "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
  16981. "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
  16982. "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
  16983. "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
  16984. "\x53\xba\xe1\x76\xe3\x82\x07\x86"
  16985. "\x9c\x2d\x7e\xee\x20\x34\x55\x0a"
  16986. "\xce\xb5\x4e\x64\x53\xe7\xbf\x91"
  16987. "\xab\xd4\xd9\xda\xc9\x12\xae\xf7",
  16988. .rlen = 128 + 24,
  16989. },
  16990. };
  16991. #define HMAC_SHA256_DES_CBC_ENC_TEST_VEC 1
  16992. static struct aead_testvec hmac_sha256_des_cbc_enc_tv_temp[] = {
  16993. { /*Generated with cryptopp*/
  16994. #ifdef __LITTLE_ENDIAN
  16995. .key = "\x08\x00" /* rta length */
  16996. "\x01\x00" /* rta type */
  16997. #else
  16998. .key = "\x00\x08" /* rta length */
  16999. "\x00\x01" /* rta type */
  17000. #endif
  17001. "\x00\x00\x00\x08" /* enc key length */
  17002. "\x11\x22\x33\x44\x55\x66\x77\x88"
  17003. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  17004. "\x22\x33\x44\x55\x66\x77\x88\x99"
  17005. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  17006. "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
  17007. .klen = 8 + 32 + 8,
  17008. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  17009. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
  17010. "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  17011. .alen = 16,
  17012. .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  17013. "\x53\x20\x63\x65\x65\x72\x73\x74"
  17014. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  17015. "\x20\x79\x65\x53\x72\x63\x74\x65"
  17016. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  17017. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  17018. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  17019. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  17020. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  17021. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  17022. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  17023. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  17024. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  17025. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  17026. "\x63\x65\x65\x72\x73\x74\x54\x20"
  17027. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  17028. .ilen = 128,
  17029. .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
  17030. "\x54\x31\x85\x37\xed\x6b\x01\x8d"
  17031. "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
  17032. "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
  17033. "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
  17034. "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
  17035. "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
  17036. "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
  17037. "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
  17038. "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
  17039. "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
  17040. "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
  17041. "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
  17042. "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
  17043. "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
  17044. "\x53\xba\xe1\x76\xe3\x82\x07\x86"
  17045. "\xc6\x58\xa1\x60\x70\x91\x39\x36"
  17046. "\x50\xf6\x5d\xab\x4b\x51\x4e\x5e"
  17047. "\xde\x63\xde\x76\x52\xde\x9f\xba"
  17048. "\x90\xcf\x15\xf2\xbb\x6e\x84\x00",
  17049. .rlen = 128 + 32,
  17050. },
  17051. };
  17052. #define HMAC_SHA384_DES_CBC_ENC_TEST_VEC 1
  17053. static struct aead_testvec hmac_sha384_des_cbc_enc_tv_temp[] = {
  17054. { /*Generated with cryptopp*/
  17055. #ifdef __LITTLE_ENDIAN
  17056. .key = "\x08\x00" /* rta length */
  17057. "\x01\x00" /* rta type */
  17058. #else
  17059. .key = "\x00\x08" /* rta length */
  17060. "\x00\x01" /* rta type */
  17061. #endif
  17062. "\x00\x00\x00\x08" /* enc key length */
  17063. "\x11\x22\x33\x44\x55\x66\x77\x88"
  17064. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  17065. "\x22\x33\x44\x55\x66\x77\x88\x99"
  17066. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  17067. "\x33\x44\x55\x66\x77\x88\x99\xaa"
  17068. "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
  17069. "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
  17070. .klen = 8 + 48 + 8,
  17071. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  17072. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
  17073. "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  17074. .alen = 16,
  17075. .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  17076. "\x53\x20\x63\x65\x65\x72\x73\x74"
  17077. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  17078. "\x20\x79\x65\x53\x72\x63\x74\x65"
  17079. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  17080. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  17081. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  17082. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  17083. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  17084. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  17085. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  17086. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  17087. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  17088. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  17089. "\x63\x65\x65\x72\x73\x74\x54\x20"
  17090. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  17091. .ilen = 128,
  17092. .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
  17093. "\x54\x31\x85\x37\xed\x6b\x01\x8d"
  17094. "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
  17095. "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
  17096. "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
  17097. "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
  17098. "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
  17099. "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
  17100. "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
  17101. "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
  17102. "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
  17103. "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
  17104. "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
  17105. "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
  17106. "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
  17107. "\x53\xba\xe1\x76\xe3\x82\x07\x86"
  17108. "\xa8\x8e\x9c\x74\x8c\x2b\x99\xa0"
  17109. "\xc8\x8c\xef\x25\x07\x83\x11\x3a"
  17110. "\x31\x8d\xbe\x3b\x6a\xd7\x96\xfe"
  17111. "\x5e\x67\xb5\x74\xe7\xe7\x85\x61"
  17112. "\x6a\x95\x26\x75\xcc\x53\x89\xf3"
  17113. "\x74\xc9\x2a\x76\x20\xa2\x64\x62",
  17114. .rlen = 128 + 48,
  17115. },
  17116. };
  17117. #define HMAC_SHA512_DES_CBC_ENC_TEST_VEC 1
  17118. static struct aead_testvec hmac_sha512_des_cbc_enc_tv_temp[] = {
  17119. { /*Generated with cryptopp*/
  17120. #ifdef __LITTLE_ENDIAN
  17121. .key = "\x08\x00" /* rta length */
  17122. "\x01\x00" /* rta type */
  17123. #else
  17124. .key = "\x00\x08" /* rta length */
  17125. "\x00\x01" /* rta type */
  17126. #endif
  17127. "\x00\x00\x00\x08" /* enc key length */
  17128. "\x11\x22\x33\x44\x55\x66\x77\x88"
  17129. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  17130. "\x22\x33\x44\x55\x66\x77\x88\x99"
  17131. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  17132. "\x33\x44\x55\x66\x77\x88\x99\xaa"
  17133. "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
  17134. "\x44\x55\x66\x77\x88\x99\xaa\xbb"
  17135. "\xcc\xdd\xee\xff\x11\x22\x33\x44"
  17136. "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
  17137. .klen = 8 + 64 + 8,
  17138. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  17139. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
  17140. "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  17141. .alen = 16,
  17142. .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  17143. "\x53\x20\x63\x65\x65\x72\x73\x74"
  17144. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  17145. "\x20\x79\x65\x53\x72\x63\x74\x65"
  17146. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  17147. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  17148. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  17149. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  17150. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  17151. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  17152. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  17153. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  17154. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  17155. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  17156. "\x63\x65\x65\x72\x73\x74\x54\x20"
  17157. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  17158. .ilen = 128,
  17159. .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
  17160. "\x54\x31\x85\x37\xed\x6b\x01\x8d"
  17161. "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
  17162. "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
  17163. "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
  17164. "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
  17165. "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
  17166. "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
  17167. "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
  17168. "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
  17169. "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
  17170. "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
  17171. "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
  17172. "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
  17173. "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
  17174. "\x53\xba\xe1\x76\xe3\x82\x07\x86"
  17175. "\xc6\x2c\x73\x88\xb0\x9d\x5f\x3e"
  17176. "\x5b\x78\xca\x0e\xab\x8a\xa3\xbb"
  17177. "\xd9\x1d\xc3\xe3\x05\xac\x76\xfb"
  17178. "\x58\x83\xda\x67\xfb\x21\x24\xa2"
  17179. "\xb1\xa7\xd7\x66\xa6\x8d\xa6\x93"
  17180. "\x97\xe2\xe3\xb8\xaa\x48\x85\xee"
  17181. "\x8c\xf6\x07\x95\x1f\xa6\x6c\x96"
  17182. "\x99\xc7\x5c\x8d\xd8\xb5\x68\x7b",
  17183. .rlen = 128 + 64,
  17184. },
  17185. };
  17186. #define HMAC_SHA1_DES3_EDE_CBC_ENC_TEST_VEC 1
  17187. static struct aead_testvec hmac_sha1_des3_ede_cbc_enc_tv_temp[] = {
  17188. { /*Generated with cryptopp*/
  17189. #ifdef __LITTLE_ENDIAN
  17190. .key = "\x08\x00" /* rta length */
  17191. "\x01\x00" /* rta type */
  17192. #else
  17193. .key = "\x00\x08" /* rta length */
  17194. "\x00\x01" /* rta type */
  17195. #endif
  17196. "\x00\x00\x00\x18" /* enc key length */
  17197. "\x11\x22\x33\x44\x55\x66\x77\x88"
  17198. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  17199. "\x22\x33\x44\x55"
  17200. "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
  17201. "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
  17202. "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
  17203. .klen = 8 + 20 + 24,
  17204. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  17205. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
  17206. "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  17207. .alen = 16,
  17208. .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  17209. "\x53\x20\x63\x65\x65\x72\x73\x74"
  17210. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  17211. "\x20\x79\x65\x53\x72\x63\x74\x65"
  17212. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  17213. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  17214. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  17215. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  17216. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  17217. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  17218. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  17219. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  17220. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  17221. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  17222. "\x63\x65\x65\x72\x73\x74\x54\x20"
  17223. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  17224. .ilen = 128,
  17225. .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
  17226. "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
  17227. "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
  17228. "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
  17229. "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
  17230. "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
  17231. "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
  17232. "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
  17233. "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
  17234. "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
  17235. "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
  17236. "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
  17237. "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
  17238. "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
  17239. "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
  17240. "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
  17241. "\x67\x6d\xb1\xf5\xb8\x10\xdc\xc6"
  17242. "\x75\x86\x96\x6b\xb1\xc5\xe4\xcf"
  17243. "\xd1\x60\x91\xb3",
  17244. .rlen = 128 + 20,
  17245. },
  17246. };
  17247. #define HMAC_SHA224_DES3_EDE_CBC_ENC_TEST_VEC 1
  17248. static struct aead_testvec hmac_sha224_des3_ede_cbc_enc_tv_temp[] = {
  17249. { /*Generated with cryptopp*/
  17250. #ifdef __LITTLE_ENDIAN
  17251. .key = "\x08\x00" /* rta length */
  17252. "\x01\x00" /* rta type */
  17253. #else
  17254. .key = "\x00\x08" /* rta length */
  17255. "\x00\x01" /* rta type */
  17256. #endif
  17257. "\x00\x00\x00\x18" /* enc key length */
  17258. "\x11\x22\x33\x44\x55\x66\x77\x88"
  17259. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  17260. "\x22\x33\x44\x55\x66\x77\x88\x99"
  17261. "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
  17262. "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
  17263. "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
  17264. .klen = 8 + 24 + 24,
  17265. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  17266. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
  17267. "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  17268. .alen = 16,
  17269. .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  17270. "\x53\x20\x63\x65\x65\x72\x73\x74"
  17271. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  17272. "\x20\x79\x65\x53\x72\x63\x74\x65"
  17273. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  17274. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  17275. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  17276. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  17277. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  17278. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  17279. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  17280. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  17281. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  17282. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  17283. "\x63\x65\x65\x72\x73\x74\x54\x20"
  17284. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  17285. .ilen = 128,
  17286. .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
  17287. "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
  17288. "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
  17289. "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
  17290. "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
  17291. "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
  17292. "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
  17293. "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
  17294. "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
  17295. "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
  17296. "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
  17297. "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
  17298. "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
  17299. "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
  17300. "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
  17301. "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
  17302. "\x15\x24\x7f\x5a\x45\x4a\x66\xce"
  17303. "\x2b\x0b\x93\x99\x2f\x9d\x0c\x6c"
  17304. "\x56\x1f\xe1\xa6\x41\xb2\x4c\xd0",
  17305. .rlen = 128 + 24,
  17306. },
  17307. };
  17308. #define HMAC_SHA256_DES3_EDE_CBC_ENC_TEST_VEC 1
  17309. static struct aead_testvec hmac_sha256_des3_ede_cbc_enc_tv_temp[] = {
  17310. { /*Generated with cryptopp*/
  17311. #ifdef __LITTLE_ENDIAN
  17312. .key = "\x08\x00" /* rta length */
  17313. "\x01\x00" /* rta type */
  17314. #else
  17315. .key = "\x00\x08" /* rta length */
  17316. "\x00\x01" /* rta type */
  17317. #endif
  17318. "\x00\x00\x00\x18" /* enc key length */
  17319. "\x11\x22\x33\x44\x55\x66\x77\x88"
  17320. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  17321. "\x22\x33\x44\x55\x66\x77\x88\x99"
  17322. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  17323. "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
  17324. "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
  17325. "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
  17326. .klen = 8 + 32 + 24,
  17327. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  17328. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
  17329. "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  17330. .alen = 16,
  17331. .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  17332. "\x53\x20\x63\x65\x65\x72\x73\x74"
  17333. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  17334. "\x20\x79\x65\x53\x72\x63\x74\x65"
  17335. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  17336. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  17337. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  17338. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  17339. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  17340. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  17341. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  17342. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  17343. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  17344. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  17345. "\x63\x65\x65\x72\x73\x74\x54\x20"
  17346. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  17347. .ilen = 128,
  17348. .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
  17349. "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
  17350. "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
  17351. "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
  17352. "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
  17353. "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
  17354. "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
  17355. "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
  17356. "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
  17357. "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
  17358. "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
  17359. "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
  17360. "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
  17361. "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
  17362. "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
  17363. "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
  17364. "\x73\xb0\xea\x9f\xe8\x18\x80\xd6"
  17365. "\x56\x38\x44\xc0\xdb\xe3\x4f\x71"
  17366. "\xf7\xce\xd1\xd3\xf8\xbd\x3e\x4f"
  17367. "\xca\x43\x95\xdf\x80\x61\x81\xa9",
  17368. .rlen = 128 + 32,
  17369. },
  17370. };
  17371. #define HMAC_SHA384_DES3_EDE_CBC_ENC_TEST_VEC 1
  17372. static struct aead_testvec hmac_sha384_des3_ede_cbc_enc_tv_temp[] = {
  17373. { /*Generated with cryptopp*/
  17374. #ifdef __LITTLE_ENDIAN
  17375. .key = "\x08\x00" /* rta length */
  17376. "\x01\x00" /* rta type */
  17377. #else
  17378. .key = "\x00\x08" /* rta length */
  17379. "\x00\x01" /* rta type */
  17380. #endif
  17381. "\x00\x00\x00\x18" /* enc key length */
  17382. "\x11\x22\x33\x44\x55\x66\x77\x88"
  17383. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  17384. "\x22\x33\x44\x55\x66\x77\x88\x99"
  17385. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  17386. "\x33\x44\x55\x66\x77\x88\x99\xaa"
  17387. "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
  17388. "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
  17389. "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
  17390. "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
  17391. .klen = 8 + 48 + 24,
  17392. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  17393. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
  17394. "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  17395. .alen = 16,
  17396. .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  17397. "\x53\x20\x63\x65\x65\x72\x73\x74"
  17398. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  17399. "\x20\x79\x65\x53\x72\x63\x74\x65"
  17400. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  17401. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  17402. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  17403. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  17404. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  17405. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  17406. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  17407. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  17408. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  17409. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  17410. "\x63\x65\x65\x72\x73\x74\x54\x20"
  17411. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  17412. .ilen = 128,
  17413. .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
  17414. "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
  17415. "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
  17416. "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
  17417. "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
  17418. "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
  17419. "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
  17420. "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
  17421. "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
  17422. "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
  17423. "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
  17424. "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
  17425. "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
  17426. "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
  17427. "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
  17428. "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
  17429. "\x6d\x77\xfc\x80\x9d\x8a\x9c\xb7"
  17430. "\x70\xe7\x93\xbf\x73\xe6\x9f\x83"
  17431. "\x99\x62\x23\xe6\x5b\xd0\xda\x18"
  17432. "\xa4\x32\x8a\x0b\x46\xd7\xf0\x39"
  17433. "\x36\x5d\x13\x2f\x86\x10\x78\xd6"
  17434. "\xd6\xbe\x5c\xb9\x15\x89\xf9\x1b",
  17435. .rlen = 128 + 48,
  17436. },
  17437. };
  17438. #define HMAC_SHA512_DES3_EDE_CBC_ENC_TEST_VEC 1
  17439. static struct aead_testvec hmac_sha512_des3_ede_cbc_enc_tv_temp[] = {
  17440. { /*Generated with cryptopp*/
  17441. #ifdef __LITTLE_ENDIAN
  17442. .key = "\x08\x00" /* rta length */
  17443. "\x01\x00" /* rta type */
  17444. #else
  17445. .key = "\x00\x08" /* rta length */
  17446. "\x00\x01" /* rta type */
  17447. #endif
  17448. "\x00\x00\x00\x18" /* enc key length */
  17449. "\x11\x22\x33\x44\x55\x66\x77\x88"
  17450. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  17451. "\x22\x33\x44\x55\x66\x77\x88\x99"
  17452. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  17453. "\x33\x44\x55\x66\x77\x88\x99\xaa"
  17454. "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
  17455. "\x44\x55\x66\x77\x88\x99\xaa\xbb"
  17456. "\xcc\xdd\xee\xff\x11\x22\x33\x44"
  17457. "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
  17458. "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
  17459. "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
  17460. .klen = 8 + 64 + 24,
  17461. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  17462. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
  17463. "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  17464. .alen = 16,
  17465. .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  17466. "\x53\x20\x63\x65\x65\x72\x73\x74"
  17467. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  17468. "\x20\x79\x65\x53\x72\x63\x74\x65"
  17469. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  17470. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  17471. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  17472. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  17473. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  17474. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  17475. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  17476. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  17477. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  17478. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  17479. "\x63\x65\x65\x72\x73\x74\x54\x20"
  17480. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  17481. .ilen = 128,
  17482. .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
  17483. "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
  17484. "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
  17485. "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
  17486. "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
  17487. "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
  17488. "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
  17489. "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
  17490. "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
  17491. "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
  17492. "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
  17493. "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
  17494. "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
  17495. "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
  17496. "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
  17497. "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
  17498. "\x41\xb5\x1f\xbb\xbd\x4e\xb8\x32"
  17499. "\x22\x86\x4e\x57\x1b\x2a\xd8\x6e"
  17500. "\xa9\xfb\xc8\xf3\xbf\x2d\xae\x2b"
  17501. "\x3b\xbc\x41\xe8\x38\xbb\xf1\x60"
  17502. "\x4c\x68\xa9\x4e\x8c\x73\xa7\xc0"
  17503. "\x2a\x74\xd4\x65\x12\xcb\x55\xf2"
  17504. "\xd5\x02\x6d\xe6\xaf\xc9\x2f\xf2"
  17505. "\x57\xaa\x85\xf7\xf3\x6a\xcb\xdb",
  17506. .rlen = 128 + 64,
  17507. },
  17508. };
  17509. static struct cipher_testvec aes_lrw_enc_tv_template[] = {
  17510. /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
  17511. { /* LRW-32-AES 1 */
  17512. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  17513. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  17514. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  17515. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  17516. .klen = 32,
  17517. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  17518. "\x00\x00\x00\x00\x00\x00\x00\x01",
  17519. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  17520. "\x38\x39\x41\x42\x43\x44\x45\x46",
  17521. .ilen = 16,
  17522. .result = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
  17523. "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
  17524. .rlen = 16,
  17525. }, { /* LRW-32-AES 2 */
  17526. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  17527. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  17528. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  17529. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  17530. .klen = 32,
  17531. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  17532. "\x00\x00\x00\x00\x00\x00\x00\x02",
  17533. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  17534. "\x38\x39\x41\x42\x43\x44\x45\x46",
  17535. .ilen = 16,
  17536. .result = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
  17537. "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
  17538. .rlen = 16,
  17539. }, { /* LRW-32-AES 3 */
  17540. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  17541. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  17542. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  17543. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  17544. .klen = 32,
  17545. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  17546. "\x00\x00\x00\x02\x00\x00\x00\x00",
  17547. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  17548. "\x38\x39\x41\x42\x43\x44\x45\x46",
  17549. .ilen = 16,
  17550. .result = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
  17551. "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
  17552. .rlen = 16,
  17553. }, { /* LRW-32-AES 4 */
  17554. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  17555. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  17556. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  17557. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  17558. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  17559. .klen = 40,
  17560. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  17561. "\x00\x00\x00\x00\x00\x00\x00\x01",
  17562. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  17563. "\x38\x39\x41\x42\x43\x44\x45\x46",
  17564. .ilen = 16,
  17565. .result = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
  17566. "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
  17567. .rlen = 16,
  17568. }, { /* LRW-32-AES 5 */
  17569. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  17570. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  17571. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  17572. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  17573. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  17574. .klen = 40,
  17575. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  17576. "\x00\x00\x00\x02\x00\x00\x00\x00",
  17577. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  17578. "\x38\x39\x41\x42\x43\x44\x45\x46",
  17579. .ilen = 16,
  17580. .result = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
  17581. "\xc8\x60\x48\x02\x87\xe3\x34\x06",
  17582. .rlen = 16,
  17583. }, { /* LRW-32-AES 6 */
  17584. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  17585. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  17586. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  17587. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  17588. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  17589. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  17590. .klen = 48,
  17591. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  17592. "\x00\x00\x00\x00\x00\x00\x00\x01",
  17593. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  17594. "\x38\x39\x41\x42\x43\x44\x45\x46",
  17595. .ilen = 16,
  17596. .result = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
  17597. "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
  17598. .rlen = 16,
  17599. }, { /* LRW-32-AES 7 */
  17600. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  17601. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  17602. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  17603. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  17604. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  17605. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  17606. .klen = 48,
  17607. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  17608. "\x00\x00\x00\x02\x00\x00\x00\x00",
  17609. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  17610. "\x38\x39\x41\x42\x43\x44\x45\x46",
  17611. .ilen = 16,
  17612. .result = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
  17613. "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
  17614. .rlen = 16,
  17615. }, {
  17616. /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
  17617. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  17618. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  17619. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  17620. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  17621. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  17622. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  17623. .klen = 48,
  17624. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  17625. "\x00\x00\x00\x00\x00\x00\x00\x01",
  17626. .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  17627. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  17628. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  17629. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  17630. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  17631. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  17632. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  17633. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  17634. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  17635. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  17636. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  17637. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  17638. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  17639. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  17640. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  17641. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  17642. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  17643. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  17644. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  17645. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  17646. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  17647. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  17648. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  17649. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  17650. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  17651. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  17652. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  17653. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  17654. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  17655. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  17656. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  17657. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  17658. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  17659. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  17660. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  17661. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  17662. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  17663. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  17664. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  17665. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  17666. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  17667. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  17668. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  17669. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  17670. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  17671. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  17672. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  17673. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  17674. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  17675. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  17676. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  17677. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  17678. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  17679. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  17680. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  17681. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  17682. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  17683. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  17684. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  17685. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  17686. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  17687. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  17688. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  17689. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  17690. .ilen = 512,
  17691. .result = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
  17692. "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
  17693. "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
  17694. "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
  17695. "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
  17696. "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
  17697. "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
  17698. "\xe8\x58\x46\x97\x39\x51\x07\xde"
  17699. "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
  17700. "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
  17701. "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
  17702. "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
  17703. "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
  17704. "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
  17705. "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
  17706. "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
  17707. "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
  17708. "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
  17709. "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
  17710. "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
  17711. "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
  17712. "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
  17713. "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
  17714. "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
  17715. "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
  17716. "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
  17717. "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
  17718. "\x41\x30\x58\xc5\x62\x74\x52\x1d"
  17719. "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
  17720. "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
  17721. "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
  17722. "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
  17723. "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
  17724. "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
  17725. "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
  17726. "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
  17727. "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
  17728. "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
  17729. "\xb8\x79\x78\x97\x94\xff\x72\x13"
  17730. "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
  17731. "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
  17732. "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
  17733. "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
  17734. "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
  17735. "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
  17736. "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
  17737. "\x1e\x86\x53\x11\x53\x94\x00\xee"
  17738. "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
  17739. "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
  17740. "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
  17741. "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
  17742. "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
  17743. "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
  17744. "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
  17745. "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
  17746. "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
  17747. "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
  17748. "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
  17749. "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
  17750. "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
  17751. "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
  17752. "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
  17753. "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
  17754. "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
  17755. .rlen = 512,
  17756. .also_non_np = 1,
  17757. .np = 3,
  17758. .tap = { 512 - 20, 4, 16 },
  17759. }
  17760. };
  17761. static struct cipher_testvec aes_lrw_dec_tv_template[] = {
  17762. /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
  17763. /* same as enc vectors with input and result reversed */
  17764. { /* LRW-32-AES 1 */
  17765. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  17766. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  17767. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  17768. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  17769. .klen = 32,
  17770. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  17771. "\x00\x00\x00\x00\x00\x00\x00\x01",
  17772. .input = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
  17773. "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
  17774. .ilen = 16,
  17775. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  17776. "\x38\x39\x41\x42\x43\x44\x45\x46",
  17777. .rlen = 16,
  17778. }, { /* LRW-32-AES 2 */
  17779. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  17780. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  17781. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  17782. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  17783. .klen = 32,
  17784. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  17785. "\x00\x00\x00\x00\x00\x00\x00\x02",
  17786. .input = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
  17787. "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
  17788. .ilen = 16,
  17789. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  17790. "\x38\x39\x41\x42\x43\x44\x45\x46",
  17791. .rlen = 16,
  17792. }, { /* LRW-32-AES 3 */
  17793. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  17794. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  17795. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  17796. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  17797. .klen = 32,
  17798. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  17799. "\x00\x00\x00\x02\x00\x00\x00\x00",
  17800. .input = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
  17801. "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
  17802. .ilen = 16,
  17803. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  17804. "\x38\x39\x41\x42\x43\x44\x45\x46",
  17805. .rlen = 16,
  17806. }, { /* LRW-32-AES 4 */
  17807. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  17808. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  17809. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  17810. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  17811. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  17812. .klen = 40,
  17813. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  17814. "\x00\x00\x00\x00\x00\x00\x00\x01",
  17815. .input = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
  17816. "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
  17817. .ilen = 16,
  17818. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  17819. "\x38\x39\x41\x42\x43\x44\x45\x46",
  17820. .rlen = 16,
  17821. }, { /* LRW-32-AES 5 */
  17822. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  17823. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  17824. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  17825. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  17826. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  17827. .klen = 40,
  17828. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  17829. "\x00\x00\x00\x02\x00\x00\x00\x00",
  17830. .input = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
  17831. "\xc8\x60\x48\x02\x87\xe3\x34\x06",
  17832. .ilen = 16,
  17833. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  17834. "\x38\x39\x41\x42\x43\x44\x45\x46",
  17835. .rlen = 16,
  17836. }, { /* LRW-32-AES 6 */
  17837. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  17838. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  17839. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  17840. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  17841. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  17842. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  17843. .klen = 48,
  17844. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  17845. "\x00\x00\x00\x00\x00\x00\x00\x01",
  17846. .input = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
  17847. "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
  17848. .ilen = 16,
  17849. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  17850. "\x38\x39\x41\x42\x43\x44\x45\x46",
  17851. .rlen = 16,
  17852. }, { /* LRW-32-AES 7 */
  17853. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  17854. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  17855. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  17856. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  17857. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  17858. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  17859. .klen = 48,
  17860. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  17861. "\x00\x00\x00\x02\x00\x00\x00\x00",
  17862. .input = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
  17863. "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
  17864. .ilen = 16,
  17865. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  17866. "\x38\x39\x41\x42\x43\x44\x45\x46",
  17867. .rlen = 16,
  17868. }, {
  17869. /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
  17870. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  17871. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  17872. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  17873. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  17874. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  17875. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  17876. .klen = 48,
  17877. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  17878. "\x00\x00\x00\x00\x00\x00\x00\x01",
  17879. .input = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
  17880. "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
  17881. "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
  17882. "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
  17883. "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
  17884. "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
  17885. "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
  17886. "\xe8\x58\x46\x97\x39\x51\x07\xde"
  17887. "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
  17888. "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
  17889. "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
  17890. "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
  17891. "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
  17892. "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
  17893. "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
  17894. "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
  17895. "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
  17896. "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
  17897. "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
  17898. "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
  17899. "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
  17900. "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
  17901. "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
  17902. "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
  17903. "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
  17904. "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
  17905. "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
  17906. "\x41\x30\x58\xc5\x62\x74\x52\x1d"
  17907. "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
  17908. "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
  17909. "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
  17910. "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
  17911. "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
  17912. "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
  17913. "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
  17914. "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
  17915. "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
  17916. "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
  17917. "\xb8\x79\x78\x97\x94\xff\x72\x13"
  17918. "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
  17919. "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
  17920. "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
  17921. "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
  17922. "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
  17923. "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
  17924. "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
  17925. "\x1e\x86\x53\x11\x53\x94\x00\xee"
  17926. "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
  17927. "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
  17928. "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
  17929. "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
  17930. "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
  17931. "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
  17932. "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
  17933. "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
  17934. "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
  17935. "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
  17936. "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
  17937. "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
  17938. "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
  17939. "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
  17940. "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
  17941. "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
  17942. "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
  17943. .ilen = 512,
  17944. .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  17945. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  17946. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  17947. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  17948. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  17949. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  17950. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  17951. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  17952. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  17953. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  17954. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  17955. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  17956. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  17957. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  17958. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  17959. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  17960. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  17961. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  17962. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  17963. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  17964. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  17965. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  17966. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  17967. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  17968. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  17969. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  17970. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  17971. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  17972. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  17973. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  17974. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  17975. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  17976. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  17977. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  17978. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  17979. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  17980. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  17981. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  17982. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  17983. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  17984. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  17985. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  17986. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  17987. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  17988. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  17989. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  17990. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  17991. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  17992. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  17993. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  17994. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  17995. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  17996. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  17997. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  17998. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  17999. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  18000. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  18001. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  18002. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  18003. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  18004. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  18005. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  18006. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  18007. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  18008. .rlen = 512,
  18009. .also_non_np = 1,
  18010. .np = 3,
  18011. .tap = { 512 - 20, 4, 16 },
  18012. }
  18013. };
  18014. static struct cipher_testvec aes_xts_enc_tv_template[] = {
  18015. /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
  18016. { /* XTS-AES 1 */
  18017. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  18018. "\x00\x00\x00\x00\x00\x00\x00\x00"
  18019. "\x00\x00\x00\x00\x00\x00\x00\x00"
  18020. "\x00\x00\x00\x00\x00\x00\x00\x00",
  18021. .klen = 32,
  18022. .fips_skip = 1,
  18023. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  18024. "\x00\x00\x00\x00\x00\x00\x00\x00",
  18025. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  18026. "\x00\x00\x00\x00\x00\x00\x00\x00"
  18027. "\x00\x00\x00\x00\x00\x00\x00\x00"
  18028. "\x00\x00\x00\x00\x00\x00\x00\x00",
  18029. .ilen = 32,
  18030. .result = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
  18031. "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
  18032. "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
  18033. "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
  18034. .rlen = 32,
  18035. }, { /* XTS-AES 2 */
  18036. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  18037. "\x11\x11\x11\x11\x11\x11\x11\x11"
  18038. "\x22\x22\x22\x22\x22\x22\x22\x22"
  18039. "\x22\x22\x22\x22\x22\x22\x22\x22",
  18040. .klen = 32,
  18041. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  18042. "\x00\x00\x00\x00\x00\x00\x00\x00",
  18043. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  18044. "\x44\x44\x44\x44\x44\x44\x44\x44"
  18045. "\x44\x44\x44\x44\x44\x44\x44\x44"
  18046. "\x44\x44\x44\x44\x44\x44\x44\x44",
  18047. .ilen = 32,
  18048. .result = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
  18049. "\x39\x33\x40\x38\xac\xef\x83\x8b"
  18050. "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
  18051. "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
  18052. .rlen = 32,
  18053. }, { /* XTS-AES 3 */
  18054. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  18055. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  18056. "\x22\x22\x22\x22\x22\x22\x22\x22"
  18057. "\x22\x22\x22\x22\x22\x22\x22\x22",
  18058. .klen = 32,
  18059. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  18060. "\x00\x00\x00\x00\x00\x00\x00\x00",
  18061. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  18062. "\x44\x44\x44\x44\x44\x44\x44\x44"
  18063. "\x44\x44\x44\x44\x44\x44\x44\x44"
  18064. "\x44\x44\x44\x44\x44\x44\x44\x44",
  18065. .ilen = 32,
  18066. .result = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
  18067. "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
  18068. "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
  18069. "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
  18070. .rlen = 32,
  18071. }, { /* XTS-AES 4 */
  18072. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  18073. "\x23\x53\x60\x28\x74\x71\x35\x26"
  18074. "\x31\x41\x59\x26\x53\x58\x97\x93"
  18075. "\x23\x84\x62\x64\x33\x83\x27\x95",
  18076. .klen = 32,
  18077. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  18078. "\x00\x00\x00\x00\x00\x00\x00\x00",
  18079. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  18080. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  18081. "\x10\x11\x12\x13\x14\x15\x16\x17"
  18082. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  18083. "\x20\x21\x22\x23\x24\x25\x26\x27"
  18084. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  18085. "\x30\x31\x32\x33\x34\x35\x36\x37"
  18086. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  18087. "\x40\x41\x42\x43\x44\x45\x46\x47"
  18088. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  18089. "\x50\x51\x52\x53\x54\x55\x56\x57"
  18090. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  18091. "\x60\x61\x62\x63\x64\x65\x66\x67"
  18092. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  18093. "\x70\x71\x72\x73\x74\x75\x76\x77"
  18094. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  18095. "\x80\x81\x82\x83\x84\x85\x86\x87"
  18096. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  18097. "\x90\x91\x92\x93\x94\x95\x96\x97"
  18098. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  18099. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  18100. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  18101. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  18102. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  18103. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  18104. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  18105. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  18106. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  18107. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  18108. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  18109. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  18110. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  18111. "\x00\x01\x02\x03\x04\x05\x06\x07"
  18112. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  18113. "\x10\x11\x12\x13\x14\x15\x16\x17"
  18114. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  18115. "\x20\x21\x22\x23\x24\x25\x26\x27"
  18116. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  18117. "\x30\x31\x32\x33\x34\x35\x36\x37"
  18118. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  18119. "\x40\x41\x42\x43\x44\x45\x46\x47"
  18120. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  18121. "\x50\x51\x52\x53\x54\x55\x56\x57"
  18122. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  18123. "\x60\x61\x62\x63\x64\x65\x66\x67"
  18124. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  18125. "\x70\x71\x72\x73\x74\x75\x76\x77"
  18126. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  18127. "\x80\x81\x82\x83\x84\x85\x86\x87"
  18128. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  18129. "\x90\x91\x92\x93\x94\x95\x96\x97"
  18130. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  18131. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  18132. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  18133. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  18134. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  18135. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  18136. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  18137. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  18138. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  18139. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  18140. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  18141. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  18142. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  18143. .ilen = 512,
  18144. .result = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
  18145. "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
  18146. "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
  18147. "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
  18148. "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
  18149. "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
  18150. "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
  18151. "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
  18152. "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
  18153. "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
  18154. "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
  18155. "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
  18156. "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
  18157. "\x22\x97\x61\x46\xae\x20\xce\x84"
  18158. "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
  18159. "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
  18160. "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
  18161. "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
  18162. "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
  18163. "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
  18164. "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
  18165. "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
  18166. "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
  18167. "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
  18168. "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
  18169. "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
  18170. "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
  18171. "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
  18172. "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
  18173. "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
  18174. "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
  18175. "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
  18176. "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
  18177. "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
  18178. "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
  18179. "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
  18180. "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
  18181. "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
  18182. "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
  18183. "\x55\xef\x52\x97\xca\x67\xe9\xf3"
  18184. "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
  18185. "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
  18186. "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
  18187. "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
  18188. "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
  18189. "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
  18190. "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
  18191. "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
  18192. "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
  18193. "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
  18194. "\x18\x84\x69\x77\xae\x11\x9f\x7a"
  18195. "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
  18196. "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
  18197. "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
  18198. "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
  18199. "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
  18200. "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
  18201. "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
  18202. "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
  18203. "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
  18204. "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
  18205. "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
  18206. "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
  18207. "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
  18208. .rlen = 512,
  18209. }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */
  18210. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  18211. "\x23\x53\x60\x28\x74\x71\x35\x26"
  18212. "\x62\x49\x77\x57\x24\x70\x93\x69"
  18213. "\x99\x59\x57\x49\x66\x96\x76\x27"
  18214. "\x31\x41\x59\x26\x53\x58\x97\x93"
  18215. "\x23\x84\x62\x64\x33\x83\x27\x95"
  18216. "\x02\x88\x41\x97\x16\x93\x99\x37"
  18217. "\x51\x05\x82\x09\x74\x94\x45\x92",
  18218. .klen = 64,
  18219. .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
  18220. "\x00\x00\x00\x00\x00\x00\x00\x00",
  18221. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  18222. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  18223. "\x10\x11\x12\x13\x14\x15\x16\x17"
  18224. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  18225. "\x20\x21\x22\x23\x24\x25\x26\x27"
  18226. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  18227. "\x30\x31\x32\x33\x34\x35\x36\x37"
  18228. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  18229. "\x40\x41\x42\x43\x44\x45\x46\x47"
  18230. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  18231. "\x50\x51\x52\x53\x54\x55\x56\x57"
  18232. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  18233. "\x60\x61\x62\x63\x64\x65\x66\x67"
  18234. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  18235. "\x70\x71\x72\x73\x74\x75\x76\x77"
  18236. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  18237. "\x80\x81\x82\x83\x84\x85\x86\x87"
  18238. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  18239. "\x90\x91\x92\x93\x94\x95\x96\x97"
  18240. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  18241. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  18242. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  18243. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  18244. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  18245. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  18246. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  18247. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  18248. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  18249. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  18250. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  18251. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  18252. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  18253. "\x00\x01\x02\x03\x04\x05\x06\x07"
  18254. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  18255. "\x10\x11\x12\x13\x14\x15\x16\x17"
  18256. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  18257. "\x20\x21\x22\x23\x24\x25\x26\x27"
  18258. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  18259. "\x30\x31\x32\x33\x34\x35\x36\x37"
  18260. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  18261. "\x40\x41\x42\x43\x44\x45\x46\x47"
  18262. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  18263. "\x50\x51\x52\x53\x54\x55\x56\x57"
  18264. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  18265. "\x60\x61\x62\x63\x64\x65\x66\x67"
  18266. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  18267. "\x70\x71\x72\x73\x74\x75\x76\x77"
  18268. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  18269. "\x80\x81\x82\x83\x84\x85\x86\x87"
  18270. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  18271. "\x90\x91\x92\x93\x94\x95\x96\x97"
  18272. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  18273. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  18274. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  18275. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  18276. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  18277. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  18278. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  18279. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  18280. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  18281. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  18282. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  18283. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  18284. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  18285. .ilen = 512,
  18286. .result = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86"
  18287. "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b"
  18288. "\xea\x00\x80\x3f\x5e\x48\x23\x57"
  18289. "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b"
  18290. "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d"
  18291. "\x66\xb3\x17\xf9\xac\x68\x3f\x44"
  18292. "\x68\x0a\x86\xac\x35\xad\xfc\x33"
  18293. "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd"
  18294. "\x57\x76\x92\x6c\x49\xa3\x09\x5e"
  18295. "\xb1\x08\xfd\x10\x98\xba\xec\x70"
  18296. "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2"
  18297. "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0"
  18298. "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89"
  18299. "\xae\xba\x12\x29\x61\xd0\x3a\x75"
  18300. "\x71\x23\xe9\x87\x0f\x8a\xcf\x10"
  18301. "\x00\x02\x08\x87\x89\x14\x29\xca"
  18302. "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03"
  18303. "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d"
  18304. "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd"
  18305. "\x12\x0c\x0f\x74\x18\xda\xe3\xd0"
  18306. "\xb5\x78\x1c\x34\x80\x3f\xa7\x54"
  18307. "\x21\xc7\x90\xdf\xe1\xde\x18\x34"
  18308. "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c"
  18309. "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f"
  18310. "\x93\xec\x05\xc5\x2e\x04\x93\xef"
  18311. "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a"
  18312. "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50"
  18313. "\x84\x14\x73\xd1\xa8\xcc\x81\xec"
  18314. "\x58\x3e\x96\x45\xe0\x7b\x8d\x96"
  18315. "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6"
  18316. "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb"
  18317. "\x17\xb6\xba\x02\x46\x9a\x02\x0a"
  18318. "\x84\xe1\x8e\x8f\x84\x25\x20\x70"
  18319. "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f"
  18320. "\xbc\x48\x14\x57\x77\x8f\x61\x60"
  18321. "\x15\xe1\x32\x7a\x02\xb1\x40\xf1"
  18322. "\x50\x5e\xb3\x09\x32\x6d\x68\x37"
  18323. "\x8f\x83\x74\x59\x5c\x84\x9d\x84"
  18324. "\xf4\xc3\x33\xec\x44\x23\x88\x51"
  18325. "\x43\xcb\x47\xbd\x71\xc5\xed\xae"
  18326. "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe"
  18327. "\xc9\xde\x24\x4f\xbe\x15\x99\x2b"
  18328. "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f"
  18329. "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29"
  18330. "\xa9\xab\xc3\xd4\xd8\x93\x92\x72"
  18331. "\x84\xc5\x87\x54\xcc\xe2\x94\x52"
  18332. "\x9f\x86\x14\xdc\xd2\xab\xa9\x91"
  18333. "\x92\x5f\xed\xc4\xae\x74\xff\xac"
  18334. "\x6e\x33\x3b\x93\xeb\x4a\xff\x04"
  18335. "\x79\xda\x9a\x41\x0e\x44\x50\xe0"
  18336. "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00"
  18337. "\x57\x5d\xa4\x01\xfc\x07\x05\x9f"
  18338. "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33"
  18339. "\x94\x30\x54\xff\x84\x01\x14\x93"
  18340. "\xc2\x7b\x34\x29\xea\xed\xb4\xed"
  18341. "\x53\x76\x44\x1a\x77\xed\x43\x85"
  18342. "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2"
  18343. "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a"
  18344. "\xab\x1c\xbb\x4c\x15\x50\xbe\x97"
  18345. "\xf7\xab\x40\x66\x19\x3c\x4c\xaa"
  18346. "\x77\x3d\xad\x38\x01\x4b\xd2\x09"
  18347. "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54"
  18348. "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70"
  18349. "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51",
  18350. .rlen = 512,
  18351. .also_non_np = 1,
  18352. .np = 3,
  18353. .tap = { 512 - 20, 4, 16 },
  18354. }
  18355. };
  18356. static struct cipher_testvec aes_xts_dec_tv_template[] = {
  18357. /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
  18358. { /* XTS-AES 1 */
  18359. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  18360. "\x00\x00\x00\x00\x00\x00\x00\x00"
  18361. "\x00\x00\x00\x00\x00\x00\x00\x00"
  18362. "\x00\x00\x00\x00\x00\x00\x00\x00",
  18363. .klen = 32,
  18364. .fips_skip = 1,
  18365. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  18366. "\x00\x00\x00\x00\x00\x00\x00\x00",
  18367. .input = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
  18368. "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
  18369. "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
  18370. "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
  18371. .ilen = 32,
  18372. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  18373. "\x00\x00\x00\x00\x00\x00\x00\x00"
  18374. "\x00\x00\x00\x00\x00\x00\x00\x00"
  18375. "\x00\x00\x00\x00\x00\x00\x00\x00",
  18376. .rlen = 32,
  18377. }, { /* XTS-AES 2 */
  18378. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  18379. "\x11\x11\x11\x11\x11\x11\x11\x11"
  18380. "\x22\x22\x22\x22\x22\x22\x22\x22"
  18381. "\x22\x22\x22\x22\x22\x22\x22\x22",
  18382. .klen = 32,
  18383. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  18384. "\x00\x00\x00\x00\x00\x00\x00\x00",
  18385. .input = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
  18386. "\x39\x33\x40\x38\xac\xef\x83\x8b"
  18387. "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
  18388. "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
  18389. .ilen = 32,
  18390. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  18391. "\x44\x44\x44\x44\x44\x44\x44\x44"
  18392. "\x44\x44\x44\x44\x44\x44\x44\x44"
  18393. "\x44\x44\x44\x44\x44\x44\x44\x44",
  18394. .rlen = 32,
  18395. }, { /* XTS-AES 3 */
  18396. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  18397. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  18398. "\x22\x22\x22\x22\x22\x22\x22\x22"
  18399. "\x22\x22\x22\x22\x22\x22\x22\x22",
  18400. .klen = 32,
  18401. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  18402. "\x00\x00\x00\x00\x00\x00\x00\x00",
  18403. .input = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
  18404. "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
  18405. "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
  18406. "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
  18407. .ilen = 32,
  18408. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  18409. "\x44\x44\x44\x44\x44\x44\x44\x44"
  18410. "\x44\x44\x44\x44\x44\x44\x44\x44"
  18411. "\x44\x44\x44\x44\x44\x44\x44\x44",
  18412. .rlen = 32,
  18413. }, { /* XTS-AES 4 */
  18414. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  18415. "\x23\x53\x60\x28\x74\x71\x35\x26"
  18416. "\x31\x41\x59\x26\x53\x58\x97\x93"
  18417. "\x23\x84\x62\x64\x33\x83\x27\x95",
  18418. .klen = 32,
  18419. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  18420. "\x00\x00\x00\x00\x00\x00\x00\x00",
  18421. .input = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
  18422. "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
  18423. "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
  18424. "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
  18425. "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
  18426. "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
  18427. "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
  18428. "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
  18429. "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
  18430. "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
  18431. "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
  18432. "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
  18433. "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
  18434. "\x22\x97\x61\x46\xae\x20\xce\x84"
  18435. "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
  18436. "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
  18437. "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
  18438. "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
  18439. "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
  18440. "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
  18441. "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
  18442. "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
  18443. "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
  18444. "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
  18445. "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
  18446. "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
  18447. "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
  18448. "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
  18449. "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
  18450. "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
  18451. "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
  18452. "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
  18453. "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
  18454. "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
  18455. "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
  18456. "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
  18457. "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
  18458. "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
  18459. "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
  18460. "\x55\xef\x52\x97\xca\x67\xe9\xf3"
  18461. "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
  18462. "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
  18463. "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
  18464. "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
  18465. "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
  18466. "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
  18467. "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
  18468. "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
  18469. "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
  18470. "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
  18471. "\x18\x84\x69\x77\xae\x11\x9f\x7a"
  18472. "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
  18473. "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
  18474. "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
  18475. "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
  18476. "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
  18477. "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
  18478. "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
  18479. "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
  18480. "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
  18481. "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
  18482. "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
  18483. "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
  18484. "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
  18485. .ilen = 512,
  18486. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  18487. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  18488. "\x10\x11\x12\x13\x14\x15\x16\x17"
  18489. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  18490. "\x20\x21\x22\x23\x24\x25\x26\x27"
  18491. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  18492. "\x30\x31\x32\x33\x34\x35\x36\x37"
  18493. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  18494. "\x40\x41\x42\x43\x44\x45\x46\x47"
  18495. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  18496. "\x50\x51\x52\x53\x54\x55\x56\x57"
  18497. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  18498. "\x60\x61\x62\x63\x64\x65\x66\x67"
  18499. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  18500. "\x70\x71\x72\x73\x74\x75\x76\x77"
  18501. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  18502. "\x80\x81\x82\x83\x84\x85\x86\x87"
  18503. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  18504. "\x90\x91\x92\x93\x94\x95\x96\x97"
  18505. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  18506. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  18507. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  18508. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  18509. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  18510. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  18511. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  18512. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  18513. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  18514. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  18515. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  18516. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  18517. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  18518. "\x00\x01\x02\x03\x04\x05\x06\x07"
  18519. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  18520. "\x10\x11\x12\x13\x14\x15\x16\x17"
  18521. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  18522. "\x20\x21\x22\x23\x24\x25\x26\x27"
  18523. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  18524. "\x30\x31\x32\x33\x34\x35\x36\x37"
  18525. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  18526. "\x40\x41\x42\x43\x44\x45\x46\x47"
  18527. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  18528. "\x50\x51\x52\x53\x54\x55\x56\x57"
  18529. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  18530. "\x60\x61\x62\x63\x64\x65\x66\x67"
  18531. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  18532. "\x70\x71\x72\x73\x74\x75\x76\x77"
  18533. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  18534. "\x80\x81\x82\x83\x84\x85\x86\x87"
  18535. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  18536. "\x90\x91\x92\x93\x94\x95\x96\x97"
  18537. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  18538. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  18539. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  18540. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  18541. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  18542. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  18543. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  18544. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  18545. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  18546. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  18547. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  18548. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  18549. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  18550. .rlen = 512,
  18551. }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */
  18552. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  18553. "\x23\x53\x60\x28\x74\x71\x35\x26"
  18554. "\x62\x49\x77\x57\x24\x70\x93\x69"
  18555. "\x99\x59\x57\x49\x66\x96\x76\x27"
  18556. "\x31\x41\x59\x26\x53\x58\x97\x93"
  18557. "\x23\x84\x62\x64\x33\x83\x27\x95"
  18558. "\x02\x88\x41\x97\x16\x93\x99\x37"
  18559. "\x51\x05\x82\x09\x74\x94\x45\x92",
  18560. .klen = 64,
  18561. .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
  18562. "\x00\x00\x00\x00\x00\x00\x00\x00",
  18563. .input = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86"
  18564. "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b"
  18565. "\xea\x00\x80\x3f\x5e\x48\x23\x57"
  18566. "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b"
  18567. "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d"
  18568. "\x66\xb3\x17\xf9\xac\x68\x3f\x44"
  18569. "\x68\x0a\x86\xac\x35\xad\xfc\x33"
  18570. "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd"
  18571. "\x57\x76\x92\x6c\x49\xa3\x09\x5e"
  18572. "\xb1\x08\xfd\x10\x98\xba\xec\x70"
  18573. "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2"
  18574. "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0"
  18575. "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89"
  18576. "\xae\xba\x12\x29\x61\xd0\x3a\x75"
  18577. "\x71\x23\xe9\x87\x0f\x8a\xcf\x10"
  18578. "\x00\x02\x08\x87\x89\x14\x29\xca"
  18579. "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03"
  18580. "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d"
  18581. "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd"
  18582. "\x12\x0c\x0f\x74\x18\xda\xe3\xd0"
  18583. "\xb5\x78\x1c\x34\x80\x3f\xa7\x54"
  18584. "\x21\xc7\x90\xdf\xe1\xde\x18\x34"
  18585. "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c"
  18586. "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f"
  18587. "\x93\xec\x05\xc5\x2e\x04\x93\xef"
  18588. "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a"
  18589. "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50"
  18590. "\x84\x14\x73\xd1\xa8\xcc\x81\xec"
  18591. "\x58\x3e\x96\x45\xe0\x7b\x8d\x96"
  18592. "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6"
  18593. "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb"
  18594. "\x17\xb6\xba\x02\x46\x9a\x02\x0a"
  18595. "\x84\xe1\x8e\x8f\x84\x25\x20\x70"
  18596. "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f"
  18597. "\xbc\x48\x14\x57\x77\x8f\x61\x60"
  18598. "\x15\xe1\x32\x7a\x02\xb1\x40\xf1"
  18599. "\x50\x5e\xb3\x09\x32\x6d\x68\x37"
  18600. "\x8f\x83\x74\x59\x5c\x84\x9d\x84"
  18601. "\xf4\xc3\x33\xec\x44\x23\x88\x51"
  18602. "\x43\xcb\x47\xbd\x71\xc5\xed\xae"
  18603. "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe"
  18604. "\xc9\xde\x24\x4f\xbe\x15\x99\x2b"
  18605. "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f"
  18606. "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29"
  18607. "\xa9\xab\xc3\xd4\xd8\x93\x92\x72"
  18608. "\x84\xc5\x87\x54\xcc\xe2\x94\x52"
  18609. "\x9f\x86\x14\xdc\xd2\xab\xa9\x91"
  18610. "\x92\x5f\xed\xc4\xae\x74\xff\xac"
  18611. "\x6e\x33\x3b\x93\xeb\x4a\xff\x04"
  18612. "\x79\xda\x9a\x41\x0e\x44\x50\xe0"
  18613. "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00"
  18614. "\x57\x5d\xa4\x01\xfc\x07\x05\x9f"
  18615. "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33"
  18616. "\x94\x30\x54\xff\x84\x01\x14\x93"
  18617. "\xc2\x7b\x34\x29\xea\xed\xb4\xed"
  18618. "\x53\x76\x44\x1a\x77\xed\x43\x85"
  18619. "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2"
  18620. "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a"
  18621. "\xab\x1c\xbb\x4c\x15\x50\xbe\x97"
  18622. "\xf7\xab\x40\x66\x19\x3c\x4c\xaa"
  18623. "\x77\x3d\xad\x38\x01\x4b\xd2\x09"
  18624. "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54"
  18625. "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70"
  18626. "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51",
  18627. .ilen = 512,
  18628. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  18629. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  18630. "\x10\x11\x12\x13\x14\x15\x16\x17"
  18631. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  18632. "\x20\x21\x22\x23\x24\x25\x26\x27"
  18633. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  18634. "\x30\x31\x32\x33\x34\x35\x36\x37"
  18635. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  18636. "\x40\x41\x42\x43\x44\x45\x46\x47"
  18637. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  18638. "\x50\x51\x52\x53\x54\x55\x56\x57"
  18639. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  18640. "\x60\x61\x62\x63\x64\x65\x66\x67"
  18641. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  18642. "\x70\x71\x72\x73\x74\x75\x76\x77"
  18643. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  18644. "\x80\x81\x82\x83\x84\x85\x86\x87"
  18645. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  18646. "\x90\x91\x92\x93\x94\x95\x96\x97"
  18647. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  18648. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  18649. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  18650. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  18651. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  18652. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  18653. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  18654. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  18655. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  18656. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  18657. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  18658. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  18659. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  18660. "\x00\x01\x02\x03\x04\x05\x06\x07"
  18661. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  18662. "\x10\x11\x12\x13\x14\x15\x16\x17"
  18663. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  18664. "\x20\x21\x22\x23\x24\x25\x26\x27"
  18665. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  18666. "\x30\x31\x32\x33\x34\x35\x36\x37"
  18667. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  18668. "\x40\x41\x42\x43\x44\x45\x46\x47"
  18669. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  18670. "\x50\x51\x52\x53\x54\x55\x56\x57"
  18671. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  18672. "\x60\x61\x62\x63\x64\x65\x66\x67"
  18673. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  18674. "\x70\x71\x72\x73\x74\x75\x76\x77"
  18675. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  18676. "\x80\x81\x82\x83\x84\x85\x86\x87"
  18677. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  18678. "\x90\x91\x92\x93\x94\x95\x96\x97"
  18679. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  18680. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  18681. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  18682. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  18683. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  18684. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  18685. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  18686. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  18687. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  18688. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  18689. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  18690. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  18691. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  18692. .rlen = 512,
  18693. .also_non_np = 1,
  18694. .np = 3,
  18695. .tap = { 512 - 20, 4, 16 },
  18696. }
  18697. };
  18698. static struct cipher_testvec aes_ctr_enc_tv_template[] = {
  18699. { /* From NIST Special Publication 800-38A, Appendix F.5 */
  18700. .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
  18701. "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
  18702. .klen = 16,
  18703. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  18704. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  18705. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  18706. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  18707. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  18708. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  18709. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  18710. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  18711. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  18712. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  18713. .ilen = 64,
  18714. .result = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
  18715. "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
  18716. "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
  18717. "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
  18718. "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
  18719. "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
  18720. "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
  18721. "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
  18722. .rlen = 64,
  18723. }, {
  18724. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  18725. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  18726. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  18727. .klen = 24,
  18728. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  18729. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  18730. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  18731. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  18732. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  18733. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  18734. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  18735. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  18736. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  18737. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  18738. .ilen = 64,
  18739. .result = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
  18740. "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
  18741. "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
  18742. "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
  18743. "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
  18744. "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
  18745. "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
  18746. "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
  18747. .rlen = 64,
  18748. }, {
  18749. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  18750. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  18751. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  18752. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  18753. .klen = 32,
  18754. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  18755. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  18756. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  18757. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  18758. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  18759. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  18760. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  18761. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  18762. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  18763. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  18764. .ilen = 64,
  18765. .result = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
  18766. "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
  18767. "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
  18768. "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
  18769. "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
  18770. "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
  18771. "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
  18772. "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
  18773. .rlen = 64,
  18774. }, { /* Generated with Crypto++ */
  18775. .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
  18776. "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
  18777. "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
  18778. "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
  18779. .klen = 32,
  18780. .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
  18781. "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
  18782. .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  18783. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  18784. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  18785. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  18786. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  18787. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  18788. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  18789. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  18790. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  18791. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  18792. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  18793. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  18794. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  18795. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  18796. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  18797. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  18798. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  18799. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  18800. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  18801. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  18802. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  18803. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  18804. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  18805. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  18806. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  18807. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  18808. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  18809. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  18810. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  18811. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  18812. "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
  18813. "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
  18814. "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
  18815. "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
  18816. "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
  18817. "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
  18818. "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
  18819. "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
  18820. "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
  18821. "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
  18822. "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
  18823. "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
  18824. "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
  18825. "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
  18826. "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
  18827. "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
  18828. "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
  18829. "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
  18830. "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
  18831. "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
  18832. "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
  18833. "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
  18834. "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
  18835. "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
  18836. "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
  18837. "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
  18838. "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
  18839. "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
  18840. "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
  18841. "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
  18842. "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
  18843. "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
  18844. .ilen = 496,
  18845. .result = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF"
  18846. "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53"
  18847. "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9"
  18848. "\x69\x95\x35\x98\x8D\x4D\x8C\xC1"
  18849. "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2"
  18850. "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE"
  18851. "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB"
  18852. "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB"
  18853. "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81"
  18854. "\x47\x61\x12\x4D\xC2\x8C\xFA\x78"
  18855. "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC"
  18856. "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B"
  18857. "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D"
  18858. "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74"
  18859. "\x32\x41\x1F\x31\x9C\x08\xA2\x5D"
  18860. "\x67\xEB\x72\x1D\xF8\xE7\x70\x54"
  18861. "\x34\x4B\x31\x69\x84\x66\x96\x44"
  18862. "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9"
  18863. "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF"
  18864. "\x16\x5C\x5F\x79\x34\x52\x54\xFE"
  18865. "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06"
  18866. "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B"
  18867. "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC"
  18868. "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD"
  18869. "\x3C\x98\x08\x12\xEC\xAA\x9E\x11"
  18870. "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72"
  18871. "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56"
  18872. "\xD5\x45\x16\xD2\xAF\x13\x66\xF7"
  18873. "\x8C\x67\xAC\x79\xB2\xAF\x56\x27"
  18874. "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1"
  18875. "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4"
  18876. "\x42\xC8\x21\x08\x16\xF7\x01\xD7"
  18877. "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4"
  18878. "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3"
  18879. "\x35\x1C\x82\xB9\x10\xF9\x42\xA1"
  18880. "\xFC\x74\x9B\x44\x4F\x25\x02\xE3"
  18881. "\x08\xF5\xD4\x32\x39\x08\x11\xE8"
  18882. "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B"
  18883. "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E"
  18884. "\x0D\x07\x19\xDB\x67\xD7\x98\x91"
  18885. "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33"
  18886. "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA"
  18887. "\x85\x99\x22\xE8\x91\x38\x70\x83"
  18888. "\x93\x01\x24\x6C\xFA\x9A\xB9\x07"
  18889. "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16"
  18890. "\x2F\x69\xEE\x84\x36\x44\x76\x98"
  18891. "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B"
  18892. "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D"
  18893. "\xAC\xED\x18\x1F\x50\xA4\xF5\x98"
  18894. "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6"
  18895. "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3"
  18896. "\x1B\x39\x72\xD5\x26\xCA\x04\xE0"
  18897. "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C"
  18898. "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA"
  18899. "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D"
  18900. "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC"
  18901. "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63"
  18902. "\xEF\xDC\xC9\x79\x10\x26\xE8\x61"
  18903. "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63"
  18904. "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B"
  18905. "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE"
  18906. "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51",
  18907. .rlen = 496,
  18908. .also_non_np = 1,
  18909. .np = 3,
  18910. .tap = { 496 - 20, 4, 16 },
  18911. }, { /* Generated with Crypto++ */
  18912. .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
  18913. "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
  18914. "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
  18915. "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
  18916. .klen = 32,
  18917. .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
  18918. "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
  18919. .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  18920. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  18921. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  18922. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  18923. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  18924. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  18925. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  18926. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  18927. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  18928. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  18929. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  18930. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  18931. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  18932. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  18933. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  18934. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  18935. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  18936. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  18937. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  18938. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  18939. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  18940. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  18941. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  18942. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  18943. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  18944. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  18945. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  18946. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  18947. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  18948. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  18949. "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
  18950. "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
  18951. "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
  18952. "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
  18953. "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
  18954. "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
  18955. "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
  18956. "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
  18957. "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
  18958. "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
  18959. "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
  18960. "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
  18961. "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
  18962. "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
  18963. "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
  18964. "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
  18965. "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
  18966. "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
  18967. "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
  18968. "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
  18969. "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
  18970. "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
  18971. "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
  18972. "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
  18973. "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
  18974. "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
  18975. "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
  18976. "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
  18977. "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
  18978. "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
  18979. "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
  18980. "\xED\x56\xBF\x28\xB4\x1D\x86\x12"
  18981. "\x7B\xE4\x4D",
  18982. .ilen = 499,
  18983. .result = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2"
  18984. "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5"
  18985. "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44"
  18986. "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE"
  18987. "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F"
  18988. "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E"
  18989. "\x76\xEA\x06\x32\x23\xF3\x59\x2E"
  18990. "\x75\xDE\x71\x86\x3C\x98\x23\x44"
  18991. "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD"
  18992. "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04"
  18993. "\x70\x8B\x92\x55\x23\xE9\x6A\x3A"
  18994. "\x78\x7A\x1B\x10\x85\x52\x9C\x12"
  18995. "\xE4\x55\x81\x21\xCE\x53\xD0\x3B"
  18996. "\x63\x77\x2C\x74\xD1\xF5\x60\xF3"
  18997. "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD"
  18998. "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E"
  18999. "\xA8\x28\x69\x65\x31\xE1\x45\x83"
  19000. "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21"
  19001. "\xCD\x5D\x0F\x15\xB7\x93\x07\x26"
  19002. "\xB0\x65\x6D\x91\x90\x23\x7A\xC6"
  19003. "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E"
  19004. "\xC6\x91\x83\x20\x92\x4D\x63\x7A"
  19005. "\x45\x18\x18\x74\x19\xAD\x71\x01"
  19006. "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46"
  19007. "\xC9\x73\x7A\xF9\x02\x95\xF4\x07"
  19008. "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C"
  19009. "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8"
  19010. "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D"
  19011. "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7"
  19012. "\xE8\x61\xE5\x95\x52\x1E\x3E\x49"
  19013. "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD"
  19014. "\xDD\x15\x3B\x20\x59\x24\xFF\xB0"
  19015. "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5"
  19016. "\x15\xF0\x61\x4F\xAE\x89\x10\x58"
  19017. "\x5A\x33\x95\x52\x2A\xB5\x77\x9C"
  19018. "\xA5\x43\x80\x40\x27\x2D\xAE\xD9"
  19019. "\x3F\xE0\x80\x94\x78\x79\xCB\x7E"
  19020. "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE"
  19021. "\x0B\x05\x2A\x82\x99\x58\xBB\x7A"
  19022. "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93"
  19023. "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70"
  19024. "\x16\xAE\x35\xC5\x52\x0F\x46\x1F"
  19025. "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F"
  19026. "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6"
  19027. "\xF6\xB8\x32\xCD\xD6\x85\x73\x60"
  19028. "\x59\x20\xE7\x55\x0E\x91\xE2\x0C"
  19029. "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2"
  19030. "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D"
  19031. "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7"
  19032. "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D"
  19033. "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4"
  19034. "\xFB\x81\x5D\xF7\x96\x96\xD4\x50"
  19035. "\x89\xA7\xF6\xB9\x67\x76\x40\x9E"
  19036. "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F"
  19037. "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D"
  19038. "\x87\x52\xA4\x91\xA9\xD7\xA9\x51"
  19039. "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D"
  19040. "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D"
  19041. "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37"
  19042. "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A"
  19043. "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11"
  19044. "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76"
  19045. "\xFB\xF2\x3F",
  19046. .rlen = 499,
  19047. .also_non_np = 1,
  19048. .np = 2,
  19049. .tap = { 499 - 16, 16 },
  19050. },
  19051. };
  19052. static struct cipher_testvec aes_ctr_dec_tv_template[] = {
  19053. { /* From NIST Special Publication 800-38A, Appendix F.5 */
  19054. .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
  19055. "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
  19056. .klen = 16,
  19057. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  19058. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  19059. .input = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
  19060. "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
  19061. "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
  19062. "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
  19063. "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
  19064. "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
  19065. "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
  19066. "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
  19067. .ilen = 64,
  19068. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  19069. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  19070. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  19071. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  19072. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  19073. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  19074. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  19075. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  19076. .rlen = 64,
  19077. }, {
  19078. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  19079. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  19080. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  19081. .klen = 24,
  19082. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  19083. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  19084. .input = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
  19085. "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
  19086. "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
  19087. "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
  19088. "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
  19089. "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
  19090. "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
  19091. "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
  19092. .ilen = 64,
  19093. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  19094. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  19095. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  19096. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  19097. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  19098. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  19099. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  19100. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  19101. .rlen = 64,
  19102. }, {
  19103. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  19104. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  19105. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  19106. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  19107. .klen = 32,
  19108. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  19109. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  19110. .input = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
  19111. "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
  19112. "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
  19113. "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
  19114. "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
  19115. "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
  19116. "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
  19117. "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
  19118. .ilen = 64,
  19119. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  19120. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  19121. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  19122. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  19123. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  19124. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  19125. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  19126. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  19127. .rlen = 64,
  19128. }, { /* Generated with Crypto++ */
  19129. .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
  19130. "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
  19131. "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
  19132. "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
  19133. .klen = 32,
  19134. .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
  19135. "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
  19136. .input = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF"
  19137. "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53"
  19138. "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9"
  19139. "\x69\x95\x35\x98\x8D\x4D\x8C\xC1"
  19140. "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2"
  19141. "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE"
  19142. "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB"
  19143. "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB"
  19144. "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81"
  19145. "\x47\x61\x12\x4D\xC2\x8C\xFA\x78"
  19146. "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC"
  19147. "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B"
  19148. "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D"
  19149. "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74"
  19150. "\x32\x41\x1F\x31\x9C\x08\xA2\x5D"
  19151. "\x67\xEB\x72\x1D\xF8\xE7\x70\x54"
  19152. "\x34\x4B\x31\x69\x84\x66\x96\x44"
  19153. "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9"
  19154. "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF"
  19155. "\x16\x5C\x5F\x79\x34\x52\x54\xFE"
  19156. "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06"
  19157. "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B"
  19158. "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC"
  19159. "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD"
  19160. "\x3C\x98\x08\x12\xEC\xAA\x9E\x11"
  19161. "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72"
  19162. "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56"
  19163. "\xD5\x45\x16\xD2\xAF\x13\x66\xF7"
  19164. "\x8C\x67\xAC\x79\xB2\xAF\x56\x27"
  19165. "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1"
  19166. "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4"
  19167. "\x42\xC8\x21\x08\x16\xF7\x01\xD7"
  19168. "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4"
  19169. "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3"
  19170. "\x35\x1C\x82\xB9\x10\xF9\x42\xA1"
  19171. "\xFC\x74\x9B\x44\x4F\x25\x02\xE3"
  19172. "\x08\xF5\xD4\x32\x39\x08\x11\xE8"
  19173. "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B"
  19174. "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E"
  19175. "\x0D\x07\x19\xDB\x67\xD7\x98\x91"
  19176. "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33"
  19177. "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA"
  19178. "\x85\x99\x22\xE8\x91\x38\x70\x83"
  19179. "\x93\x01\x24\x6C\xFA\x9A\xB9\x07"
  19180. "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16"
  19181. "\x2F\x69\xEE\x84\x36\x44\x76\x98"
  19182. "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B"
  19183. "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D"
  19184. "\xAC\xED\x18\x1F\x50\xA4\xF5\x98"
  19185. "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6"
  19186. "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3"
  19187. "\x1B\x39\x72\xD5\x26\xCA\x04\xE0"
  19188. "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C"
  19189. "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA"
  19190. "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D"
  19191. "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC"
  19192. "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63"
  19193. "\xEF\xDC\xC9\x79\x10\x26\xE8\x61"
  19194. "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63"
  19195. "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B"
  19196. "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE"
  19197. "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51",
  19198. .ilen = 496,
  19199. .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  19200. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  19201. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  19202. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  19203. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  19204. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  19205. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  19206. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  19207. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  19208. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  19209. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  19210. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  19211. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  19212. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  19213. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  19214. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  19215. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  19216. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  19217. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  19218. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  19219. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  19220. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  19221. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  19222. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  19223. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  19224. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  19225. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  19226. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  19227. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  19228. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  19229. "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
  19230. "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
  19231. "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
  19232. "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
  19233. "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
  19234. "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
  19235. "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
  19236. "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
  19237. "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
  19238. "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
  19239. "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
  19240. "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
  19241. "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
  19242. "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
  19243. "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
  19244. "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
  19245. "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
  19246. "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
  19247. "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
  19248. "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
  19249. "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
  19250. "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
  19251. "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
  19252. "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
  19253. "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
  19254. "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
  19255. "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
  19256. "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
  19257. "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
  19258. "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
  19259. "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
  19260. "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
  19261. .rlen = 496,
  19262. .also_non_np = 1,
  19263. .np = 3,
  19264. .tap = { 496 - 20, 4, 16 },
  19265. }, { /* Generated with Crypto++ */
  19266. .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
  19267. "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
  19268. "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
  19269. "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
  19270. .klen = 32,
  19271. .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
  19272. "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
  19273. .input = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2"
  19274. "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5"
  19275. "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44"
  19276. "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE"
  19277. "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F"
  19278. "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E"
  19279. "\x76\xEA\x06\x32\x23\xF3\x59\x2E"
  19280. "\x75\xDE\x71\x86\x3C\x98\x23\x44"
  19281. "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD"
  19282. "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04"
  19283. "\x70\x8B\x92\x55\x23\xE9\x6A\x3A"
  19284. "\x78\x7A\x1B\x10\x85\x52\x9C\x12"
  19285. "\xE4\x55\x81\x21\xCE\x53\xD0\x3B"
  19286. "\x63\x77\x2C\x74\xD1\xF5\x60\xF3"
  19287. "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD"
  19288. "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E"
  19289. "\xA8\x28\x69\x65\x31\xE1\x45\x83"
  19290. "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21"
  19291. "\xCD\x5D\x0F\x15\xB7\x93\x07\x26"
  19292. "\xB0\x65\x6D\x91\x90\x23\x7A\xC6"
  19293. "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E"
  19294. "\xC6\x91\x83\x20\x92\x4D\x63\x7A"
  19295. "\x45\x18\x18\x74\x19\xAD\x71\x01"
  19296. "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46"
  19297. "\xC9\x73\x7A\xF9\x02\x95\xF4\x07"
  19298. "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C"
  19299. "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8"
  19300. "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D"
  19301. "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7"
  19302. "\xE8\x61\xE5\x95\x52\x1E\x3E\x49"
  19303. "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD"
  19304. "\xDD\x15\x3B\x20\x59\x24\xFF\xB0"
  19305. "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5"
  19306. "\x15\xF0\x61\x4F\xAE\x89\x10\x58"
  19307. "\x5A\x33\x95\x52\x2A\xB5\x77\x9C"
  19308. "\xA5\x43\x80\x40\x27\x2D\xAE\xD9"
  19309. "\x3F\xE0\x80\x94\x78\x79\xCB\x7E"
  19310. "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE"
  19311. "\x0B\x05\x2A\x82\x99\x58\xBB\x7A"
  19312. "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93"
  19313. "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70"
  19314. "\x16\xAE\x35\xC5\x52\x0F\x46\x1F"
  19315. "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F"
  19316. "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6"
  19317. "\xF6\xB8\x32\xCD\xD6\x85\x73\x60"
  19318. "\x59\x20\xE7\x55\x0E\x91\xE2\x0C"
  19319. "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2"
  19320. "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D"
  19321. "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7"
  19322. "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D"
  19323. "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4"
  19324. "\xFB\x81\x5D\xF7\x96\x96\xD4\x50"
  19325. "\x89\xA7\xF6\xB9\x67\x76\x40\x9E"
  19326. "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F"
  19327. "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D"
  19328. "\x87\x52\xA4\x91\xA9\xD7\xA9\x51"
  19329. "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D"
  19330. "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D"
  19331. "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37"
  19332. "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A"
  19333. "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11"
  19334. "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76"
  19335. "\xFB\xF2\x3F",
  19336. .ilen = 499,
  19337. .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  19338. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  19339. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  19340. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  19341. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  19342. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  19343. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  19344. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  19345. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  19346. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  19347. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  19348. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  19349. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  19350. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  19351. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  19352. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  19353. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  19354. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  19355. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  19356. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  19357. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  19358. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  19359. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  19360. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  19361. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  19362. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  19363. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  19364. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  19365. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  19366. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  19367. "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
  19368. "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
  19369. "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
  19370. "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
  19371. "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
  19372. "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
  19373. "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
  19374. "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
  19375. "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
  19376. "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
  19377. "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
  19378. "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
  19379. "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
  19380. "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
  19381. "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
  19382. "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
  19383. "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
  19384. "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
  19385. "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
  19386. "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
  19387. "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
  19388. "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
  19389. "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
  19390. "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
  19391. "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
  19392. "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
  19393. "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
  19394. "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
  19395. "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
  19396. "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
  19397. "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
  19398. "\xED\x56\xBF\x28\xB4\x1D\x86\x12"
  19399. "\x7B\xE4\x4D",
  19400. .rlen = 499,
  19401. .also_non_np = 1,
  19402. .np = 2,
  19403. .tap = { 499 - 16, 16 },
  19404. },
  19405. };
  19406. static struct cipher_testvec aes_ctr_rfc3686_enc_tv_template[] = {
  19407. { /* From RFC 3686 */
  19408. .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
  19409. "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
  19410. "\x00\x00\x00\x30",
  19411. .klen = 20,
  19412. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  19413. .input = "Single block msg",
  19414. .ilen = 16,
  19415. .result = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
  19416. "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
  19417. .rlen = 16,
  19418. }, {
  19419. .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
  19420. "\x43\xd6\xce\x1f\x32\x53\x91\x63"
  19421. "\x00\x6c\xb6\xdb",
  19422. .klen = 20,
  19423. .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
  19424. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  19425. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  19426. "\x10\x11\x12\x13\x14\x15\x16\x17"
  19427. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  19428. .ilen = 32,
  19429. .result = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
  19430. "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
  19431. "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
  19432. "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
  19433. .rlen = 32,
  19434. }, {
  19435. .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
  19436. "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
  19437. "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
  19438. "\x00\x00\x00\x48",
  19439. .klen = 28,
  19440. .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
  19441. .input = "Single block msg",
  19442. .ilen = 16,
  19443. .result = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
  19444. "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
  19445. .rlen = 16,
  19446. }, {
  19447. .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
  19448. "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
  19449. "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
  19450. "\x00\x96\xb0\x3b",
  19451. .klen = 28,
  19452. .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
  19453. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  19454. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  19455. "\x10\x11\x12\x13\x14\x15\x16\x17"
  19456. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  19457. .ilen = 32,
  19458. .result = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
  19459. "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
  19460. "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
  19461. "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
  19462. .rlen = 32,
  19463. }, {
  19464. .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
  19465. "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
  19466. "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
  19467. "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
  19468. "\x00\x00\x00\x60",
  19469. .klen = 36,
  19470. .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
  19471. .input = "Single block msg",
  19472. .ilen = 16,
  19473. .result = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
  19474. "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
  19475. .rlen = 16,
  19476. }, {
  19477. .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
  19478. "\x07\x96\x36\x58\x79\xef\xf8\x86"
  19479. "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
  19480. "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
  19481. "\x00\xfa\xac\x24",
  19482. .klen = 36,
  19483. .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
  19484. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  19485. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  19486. "\x10\x11\x12\x13\x14\x15\x16\x17"
  19487. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  19488. .ilen = 32,
  19489. .result = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
  19490. "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
  19491. "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
  19492. "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
  19493. .rlen = 32,
  19494. }, {
  19495. // generated using Crypto++
  19496. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  19497. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  19498. "\x10\x11\x12\x13\x14\x15\x16\x17"
  19499. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  19500. "\x00\x00\x00\x00",
  19501. .klen = 32 + 4,
  19502. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  19503. .input =
  19504. "\x00\x01\x02\x03\x04\x05\x06\x07"
  19505. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  19506. "\x10\x11\x12\x13\x14\x15\x16\x17"
  19507. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  19508. "\x20\x21\x22\x23\x24\x25\x26\x27"
  19509. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  19510. "\x30\x31\x32\x33\x34\x35\x36\x37"
  19511. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  19512. "\x40\x41\x42\x43\x44\x45\x46\x47"
  19513. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  19514. "\x50\x51\x52\x53\x54\x55\x56\x57"
  19515. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  19516. "\x60\x61\x62\x63\x64\x65\x66\x67"
  19517. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  19518. "\x70\x71\x72\x73\x74\x75\x76\x77"
  19519. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  19520. "\x80\x81\x82\x83\x84\x85\x86\x87"
  19521. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  19522. "\x90\x91\x92\x93\x94\x95\x96\x97"
  19523. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  19524. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  19525. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  19526. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  19527. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  19528. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  19529. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  19530. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  19531. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  19532. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  19533. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  19534. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  19535. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  19536. "\x00\x03\x06\x09\x0c\x0f\x12\x15"
  19537. "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
  19538. "\x30\x33\x36\x39\x3c\x3f\x42\x45"
  19539. "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
  19540. "\x60\x63\x66\x69\x6c\x6f\x72\x75"
  19541. "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
  19542. "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
  19543. "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
  19544. "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
  19545. "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
  19546. "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
  19547. "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
  19548. "\x20\x23\x26\x29\x2c\x2f\x32\x35"
  19549. "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
  19550. "\x50\x53\x56\x59\x5c\x5f\x62\x65"
  19551. "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
  19552. "\x80\x83\x86\x89\x8c\x8f\x92\x95"
  19553. "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
  19554. "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
  19555. "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
  19556. "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
  19557. "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
  19558. "\x10\x13\x16\x19\x1c\x1f\x22\x25"
  19559. "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
  19560. "\x40\x43\x46\x49\x4c\x4f\x52\x55"
  19561. "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
  19562. "\x70\x73\x76\x79\x7c\x7f\x82\x85"
  19563. "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
  19564. "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
  19565. "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
  19566. "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
  19567. "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
  19568. "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
  19569. "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
  19570. "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
  19571. "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
  19572. "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
  19573. "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
  19574. "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
  19575. "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
  19576. "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
  19577. "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
  19578. "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
  19579. "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
  19580. "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
  19581. "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
  19582. "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
  19583. "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
  19584. "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
  19585. "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
  19586. "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
  19587. "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
  19588. "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
  19589. "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
  19590. "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
  19591. "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
  19592. "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
  19593. "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
  19594. "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
  19595. "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
  19596. "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
  19597. "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
  19598. "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
  19599. "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
  19600. "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
  19601. "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
  19602. "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
  19603. "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
  19604. "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
  19605. "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
  19606. "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
  19607. "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
  19608. "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
  19609. "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
  19610. "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
  19611. "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
  19612. "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
  19613. "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
  19614. "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
  19615. "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
  19616. "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
  19617. "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
  19618. "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
  19619. "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
  19620. "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
  19621. "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
  19622. "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
  19623. "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
  19624. "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
  19625. "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
  19626. "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
  19627. "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
  19628. "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
  19629. "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
  19630. "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
  19631. "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
  19632. "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
  19633. "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
  19634. "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
  19635. "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
  19636. "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
  19637. "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
  19638. "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
  19639. "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
  19640. "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
  19641. "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
  19642. "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
  19643. "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
  19644. "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
  19645. "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
  19646. "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
  19647. "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
  19648. "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
  19649. "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
  19650. "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
  19651. "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
  19652. "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
  19653. "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
  19654. "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
  19655. "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
  19656. "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
  19657. "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
  19658. "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
  19659. "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
  19660. "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
  19661. "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
  19662. "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
  19663. "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
  19664. "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
  19665. "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
  19666. "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
  19667. "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
  19668. "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
  19669. "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
  19670. "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
  19671. "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
  19672. "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
  19673. "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
  19674. "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
  19675. "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
  19676. "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
  19677. "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
  19678. "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
  19679. "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
  19680. "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
  19681. "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
  19682. "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
  19683. "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
  19684. "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
  19685. "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
  19686. "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
  19687. "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
  19688. "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
  19689. "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
  19690. "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
  19691. "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
  19692. "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
  19693. "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
  19694. "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
  19695. "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
  19696. "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
  19697. "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
  19698. "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
  19699. "\x38\x45\x52\x5f\x6c\x79\x86\x93"
  19700. "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
  19701. "\x08\x15\x22\x2f\x3c\x49\x56\x63"
  19702. "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
  19703. "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
  19704. "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
  19705. "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
  19706. "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
  19707. "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
  19708. "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
  19709. "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
  19710. "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
  19711. "\x18\x25\x32\x3f\x4c\x59\x66\x73"
  19712. "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
  19713. "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
  19714. "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
  19715. "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
  19716. "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
  19717. "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
  19718. "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
  19719. "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
  19720. "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
  19721. "\x28\x35\x42\x4f\x5c\x69\x76\x83"
  19722. "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
  19723. "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
  19724. "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
  19725. "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
  19726. "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
  19727. "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
  19728. "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
  19729. "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
  19730. "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
  19731. "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
  19732. "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
  19733. "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
  19734. "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
  19735. "\x48\x57\x66\x75\x84\x93\xa2\xb1"
  19736. "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
  19737. "\x38\x47\x56\x65\x74\x83\x92\xa1"
  19738. "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
  19739. "\x28\x37\x46\x55\x64\x73\x82\x91"
  19740. "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
  19741. "\x18\x27\x36\x45\x54\x63\x72\x81"
  19742. "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
  19743. "\x08\x17\x26\x35\x44\x53\x62\x71"
  19744. "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
  19745. "\xf8\x07\x16\x25\x34\x43\x52\x61"
  19746. "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
  19747. "\xe8\xf7\x06\x15\x24\x33\x42\x51"
  19748. "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
  19749. "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
  19750. "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
  19751. "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
  19752. "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
  19753. "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
  19754. "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
  19755. "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
  19756. "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
  19757. "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
  19758. "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
  19759. "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
  19760. "\x00\x11\x22\x33\x44\x55\x66\x77"
  19761. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
  19762. "\x10\x21\x32\x43\x54\x65\x76\x87"
  19763. "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
  19764. "\x20\x31\x42\x53\x64\x75\x86\x97"
  19765. "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
  19766. "\x30\x41\x52\x63\x74\x85\x96\xa7"
  19767. "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
  19768. "\x40\x51\x62\x73\x84\x95\xa6\xb7"
  19769. "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
  19770. "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
  19771. "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
  19772. "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
  19773. "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
  19774. "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
  19775. "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
  19776. "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
  19777. "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
  19778. "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
  19779. "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
  19780. "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
  19781. "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
  19782. "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
  19783. "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
  19784. "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
  19785. "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
  19786. "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
  19787. "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
  19788. "\xe0\xf1\x02\x13\x24\x35\x46\x57"
  19789. "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
  19790. "\xf0\x01\x12\x23\x34\x45\x56\x67"
  19791. "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
  19792. "\x00\x13\x26\x39\x4c\x5f\x72\x85"
  19793. "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
  19794. "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
  19795. "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
  19796. "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
  19797. "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
  19798. "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
  19799. "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
  19800. "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
  19801. "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
  19802. "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
  19803. "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
  19804. "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
  19805. "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
  19806. "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
  19807. "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
  19808. "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
  19809. "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
  19810. "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
  19811. "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
  19812. "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
  19813. "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
  19814. "\x10\x23\x36\x49\x5c\x6f\x82\x95"
  19815. "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
  19816. "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
  19817. "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
  19818. "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
  19819. "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
  19820. "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
  19821. "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
  19822. "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
  19823. "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
  19824. "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
  19825. "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
  19826. "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
  19827. "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
  19828. "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
  19829. "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
  19830. "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
  19831. "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
  19832. "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
  19833. "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
  19834. "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
  19835. "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
  19836. "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
  19837. "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
  19838. "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
  19839. "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
  19840. "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
  19841. "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
  19842. "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
  19843. "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
  19844. "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
  19845. "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
  19846. "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
  19847. "\x18\x2d\x42\x57\x6c\x81\x96\xab"
  19848. "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
  19849. "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
  19850. "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
  19851. "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
  19852. "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
  19853. "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
  19854. "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
  19855. "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
  19856. "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
  19857. "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
  19858. "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
  19859. "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
  19860. "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
  19861. "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
  19862. "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
  19863. "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
  19864. "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
  19865. "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
  19866. "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
  19867. "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
  19868. "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
  19869. "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
  19870. "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
  19871. "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
  19872. "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
  19873. "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
  19874. "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
  19875. "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
  19876. "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
  19877. "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
  19878. "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
  19879. "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
  19880. "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
  19881. "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
  19882. "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
  19883. "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
  19884. "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
  19885. "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
  19886. "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
  19887. "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
  19888. "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
  19889. "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
  19890. "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
  19891. "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
  19892. "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
  19893. "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
  19894. "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
  19895. "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
  19896. "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
  19897. "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
  19898. "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
  19899. "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
  19900. "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
  19901. "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
  19902. "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
  19903. "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
  19904. "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
  19905. "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
  19906. "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
  19907. "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
  19908. "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
  19909. "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
  19910. "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
  19911. "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
  19912. "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
  19913. "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
  19914. "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
  19915. "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
  19916. "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
  19917. "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
  19918. "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
  19919. "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
  19920. "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
  19921. "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
  19922. "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
  19923. "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
  19924. "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
  19925. "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
  19926. "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
  19927. "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
  19928. "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
  19929. "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
  19930. "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
  19931. "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
  19932. "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
  19933. "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
  19934. "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
  19935. "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
  19936. "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
  19937. "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
  19938. "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
  19939. "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
  19940. "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
  19941. "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
  19942. "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
  19943. "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
  19944. "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
  19945. "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
  19946. "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
  19947. "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
  19948. "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
  19949. "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
  19950. "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
  19951. "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
  19952. "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
  19953. "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
  19954. "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
  19955. "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
  19956. "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
  19957. "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
  19958. "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
  19959. "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
  19960. "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
  19961. "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
  19962. "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
  19963. "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
  19964. "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
  19965. "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
  19966. "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
  19967. "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
  19968. "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
  19969. "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
  19970. "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
  19971. "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
  19972. "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
  19973. "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
  19974. "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
  19975. "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
  19976. "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
  19977. "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
  19978. "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
  19979. "\x78\x95\xb2\xcf\xec\x09\x26\x43"
  19980. "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
  19981. "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
  19982. "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
  19983. "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
  19984. "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
  19985. "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
  19986. "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
  19987. "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
  19988. "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
  19989. "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
  19990. "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
  19991. "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
  19992. "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
  19993. "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
  19994. "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
  19995. "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
  19996. "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
  19997. "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
  19998. "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
  19999. "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
  20000. "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
  20001. "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
  20002. "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
  20003. "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
  20004. "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
  20005. "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
  20006. "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
  20007. "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
  20008. "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
  20009. "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
  20010. "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
  20011. "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
  20012. "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
  20013. "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
  20014. "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
  20015. "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
  20016. "\x00\x21\x42\x63",
  20017. .ilen = 4100,
  20018. .result =
  20019. "\xf0\x5c\x74\xad\x4e\xbc\x99\xe2"
  20020. "\xae\xff\x91\x3a\x44\xcf\x38\x32"
  20021. "\x1e\xad\xa7\xcd\xa1\x39\x95\xaa"
  20022. "\x10\xb1\xb3\x2e\x04\x31\x8f\x86"
  20023. "\xf2\x62\x74\x70\x0c\xa4\x46\x08"
  20024. "\xa8\xb7\x99\xa8\xe9\xd2\x73\x79"
  20025. "\x7e\x6e\xd4\x8f\x1e\xc7\x8e\x31"
  20026. "\x0b\xfa\x4b\xce\xfd\xf3\x57\x71"
  20027. "\xe9\x46\x03\xa5\x3d\x34\x00\xe2"
  20028. "\x18\xff\x75\x6d\x06\x2d\x00\xab"
  20029. "\xb9\x3e\x6c\x59\xc5\x84\x06\xb5"
  20030. "\x8b\xd0\x89\x9c\x4a\x79\x16\xc6"
  20031. "\x3d\x74\x54\xfa\x44\xcd\x23\x26"
  20032. "\x5c\xcf\x7e\x28\x92\x32\xbf\xdf"
  20033. "\xa7\x20\x3c\x74\x58\x2a\x9a\xde"
  20034. "\x61\x00\x1c\x4f\xff\x59\xc4\x22"
  20035. "\xac\x3c\xd0\xe8\x6c\xf9\x97\x1b"
  20036. "\x58\x9b\xad\x71\xe8\xa9\xb5\x0d"
  20037. "\xee\x2f\x04\x1f\x7f\xbc\x99\xee"
  20038. "\x84\xff\x42\x60\xdc\x3a\x18\xa5"
  20039. "\x81\xf9\xef\xdc\x7a\x0f\x65\x41"
  20040. "\x2f\xa3\xd3\xf9\xc2\xcb\xc0\x4d"
  20041. "\x8f\xd3\x76\x96\xad\x49\x6d\x38"
  20042. "\x3d\x39\x0b\x6c\x80\xb7\x54\x69"
  20043. "\xf0\x2c\x90\x02\x29\x0d\x1c\x12"
  20044. "\xad\x55\xc3\x8b\x68\xd9\xcc\xb3"
  20045. "\xb2\x64\x33\x90\x5e\xca\x4b\xe2"
  20046. "\xfb\x75\xdc\x63\xf7\x9f\x82\x74"
  20047. "\xf0\xc9\xaa\x7f\xe9\x2a\x9b\x33"
  20048. "\xbc\x88\x00\x7f\xca\xb2\x1f\x14"
  20049. "\xdb\xc5\x8e\x7b\x11\x3c\x3e\x08"
  20050. "\xf3\x83\xe8\xe0\x94\x86\x2e\x92"
  20051. "\x78\x6b\x01\xc9\xc7\x83\xba\x21"
  20052. "\x6a\x25\x15\x33\x4e\x45\x08\xec"
  20053. "\x35\xdb\xe0\x6e\x31\x51\x79\xa9"
  20054. "\x42\x44\x65\xc1\xa0\xf1\xf9\x2a"
  20055. "\x70\xd5\xb6\xc6\xc1\x8c\x39\xfc"
  20056. "\x25\xa6\x55\xd9\xdd\x2d\x4c\xec"
  20057. "\x49\xc6\xeb\x0e\xa8\x25\x2a\x16"
  20058. "\x1b\x66\x84\xda\xe2\x92\xe5\xc0"
  20059. "\xc8\x53\x07\xaf\x80\x84\xec\xfd"
  20060. "\xcd\xd1\x6e\xcd\x6f\x6a\xf5\x36"
  20061. "\xc5\x15\xe5\x25\x7d\x77\xd1\x1a"
  20062. "\x93\x36\xa9\xcf\x7c\xa4\x54\x4a"
  20063. "\x06\x51\x48\x4e\xf6\x59\x87\xd2"
  20064. "\x04\x02\xef\xd3\x44\xde\x76\x31"
  20065. "\xb3\x34\x17\x1b\x9d\x66\x11\x9f"
  20066. "\x1e\xcc\x17\xe9\xc7\x3c\x1b\xe7"
  20067. "\xcb\x50\x08\xfc\xdc\x2b\x24\xdb"
  20068. "\x65\x83\xd0\x3b\xe3\x30\xea\x94"
  20069. "\x6c\xe7\xe8\x35\x32\xc7\xdb\x64"
  20070. "\xb4\x01\xab\x36\x2c\x77\x13\xaf"
  20071. "\xf8\x2b\x88\x3f\x54\x39\xc4\x44"
  20072. "\xfe\xef\x6f\x68\x34\xbe\x0f\x05"
  20073. "\x16\x6d\xf6\x0a\x30\xe7\xe3\xed"
  20074. "\xc4\xde\x3c\x1b\x13\xd8\xdb\xfe"
  20075. "\x41\x62\xe5\x28\xd4\x8d\xa3\xc7"
  20076. "\x93\x97\xc6\x48\x45\x1d\x9f\x83"
  20077. "\xdf\x4b\x40\x3e\x42\x25\x87\x80"
  20078. "\x4c\x7d\xa8\xd4\x98\x23\x95\x75"
  20079. "\x41\x8c\xda\x41\x9b\xd4\xa7\x06"
  20080. "\xb5\xf1\x71\x09\x53\xbe\xca\xbf"
  20081. "\x32\x03\xed\xf0\x50\x1c\x56\x39"
  20082. "\x5b\xa4\x75\x18\xf7\x9b\x58\xef"
  20083. "\x53\xfc\x2a\x38\x23\x15\x75\xcd"
  20084. "\x45\xe5\x5a\x82\x55\xba\x21\xfa"
  20085. "\xd4\xbd\xc6\x94\x7c\xc5\x80\x12"
  20086. "\xf7\x4b\x32\xc4\x9a\x82\xd8\x28"
  20087. "\x8f\xd9\xc2\x0f\x60\x03\xbe\x5e"
  20088. "\x21\xd6\x5f\x58\xbf\x5c\xb1\x32"
  20089. "\x82\x8d\xa9\xe5\xf2\x66\x1a\xc0"
  20090. "\xa0\xbc\x58\x2f\x71\xf5\x2f\xed"
  20091. "\xd1\x26\xb9\xd8\x49\x5a\x07\x19"
  20092. "\x01\x7c\x59\xb0\xf8\xa4\xb7\xd3"
  20093. "\x7b\x1a\x8c\x38\xf4\x50\xa4\x59"
  20094. "\xb0\xcc\x41\x0b\x88\x7f\xe5\x31"
  20095. "\xb3\x42\xba\xa2\x7e\xd4\x32\x71"
  20096. "\x45\x87\x48\xa9\xc2\xf2\x89\xb3"
  20097. "\xe4\xa7\x7e\x52\x15\x61\xfa\xfe"
  20098. "\xc9\xdd\x81\xeb\x13\xab\xab\xc3"
  20099. "\x98\x59\xd8\x16\x3d\x14\x7a\x1c"
  20100. "\x3c\x41\x9a\x16\x16\x9b\xd2\xd2"
  20101. "\x69\x3a\x29\x23\xac\x86\x32\xa5"
  20102. "\x48\x9c\x9e\xf3\x47\x77\x81\x70"
  20103. "\x24\xe8\x85\xd2\xf5\xb5\xfa\xff"
  20104. "\x59\x6a\xd3\x50\x59\x43\x59\xde"
  20105. "\xd9\xf1\x55\xa5\x0c\xc3\x1a\x1a"
  20106. "\x18\x34\x0d\x1a\x63\x33\xed\x10"
  20107. "\xe0\x1d\x2a\x18\xd2\xc0\x54\xa8"
  20108. "\xca\xb5\x9a\xd3\xdd\xca\x45\x84"
  20109. "\x50\xe7\x0f\xfe\xa4\x99\x5a\xbe"
  20110. "\x43\x2d\x9a\xcb\x92\x3f\x5a\x1d"
  20111. "\x85\xd8\xc9\xdf\x68\xc9\x12\x80"
  20112. "\x56\x0c\xdc\x00\xdc\x3a\x7d\x9d"
  20113. "\xa3\xa2\xe8\x4d\xbf\xf9\x70\xa0"
  20114. "\xa4\x13\x4f\x6b\xaf\x0a\x89\x7f"
  20115. "\xda\xf0\xbf\x9b\xc8\x1d\xe5\xf8"
  20116. "\x2e\x8b\x07\xb5\x73\x1b\xcc\xa2"
  20117. "\xa6\xad\x30\xbc\x78\x3c\x5b\x10"
  20118. "\xfa\x5e\x62\x2d\x9e\x64\xb3\x33"
  20119. "\xce\xf9\x1f\x86\xe7\x8b\xa2\xb8"
  20120. "\xe8\x99\x57\x8c\x11\xed\x66\xd9"
  20121. "\x3c\x72\xb9\xc3\xe6\x4e\x17\x3a"
  20122. "\x6a\xcb\x42\x24\x06\xed\x3e\x4e"
  20123. "\xa3\xe8\x6a\x94\xda\x0d\x4e\xd5"
  20124. "\x14\x19\xcf\xb6\x26\xd8\x2e\xcc"
  20125. "\x64\x76\x38\x49\x4d\xfe\x30\x6d"
  20126. "\xe4\xc8\x8c\x7b\xc4\xe0\x35\xba"
  20127. "\x22\x6e\x76\xe1\x1a\xf2\x53\xc3"
  20128. "\x28\xa2\x82\x1f\x61\x69\xad\xc1"
  20129. "\x7b\x28\x4b\x1e\x6c\x85\x95\x9b"
  20130. "\x51\xb5\x17\x7f\x12\x69\x8c\x24"
  20131. "\xd5\xc7\x5a\x5a\x11\x54\xff\x5a"
  20132. "\xf7\x16\xc3\x91\xa6\xf0\xdc\x0a"
  20133. "\xb6\xa7\x4a\x0d\x7a\x58\xfe\xa5"
  20134. "\xf5\xcb\x8f\x7b\x0e\xea\x57\xe7"
  20135. "\xbd\x79\xd6\x1c\x88\x23\x6c\xf2"
  20136. "\x4d\x29\x77\x53\x35\x6a\x00\x8d"
  20137. "\xcd\xa3\x58\xbe\x77\x99\x18\xf8"
  20138. "\xe6\xe1\x8f\xe9\x37\x8f\xe3\xe2"
  20139. "\x5a\x8a\x93\x25\xaf\xf3\x78\x80"
  20140. "\xbe\xa6\x1b\xc6\xac\x8b\x1c\x91"
  20141. "\x58\xe1\x9f\x89\x35\x9d\x1d\x21"
  20142. "\x29\x9f\xf4\x99\x02\x27\x0f\xa8"
  20143. "\x4f\x79\x94\x2b\x33\x2c\xda\xa2"
  20144. "\x26\x39\x83\x94\xef\x27\xd8\x53"
  20145. "\x8f\x66\x0d\xe4\x41\x7d\x34\xcd"
  20146. "\x43\x7c\x95\x0a\x53\xef\x66\xda"
  20147. "\x7e\x9b\xf3\x93\xaf\xd0\x73\x71"
  20148. "\xba\x40\x9b\x74\xf8\xd7\xd7\x41"
  20149. "\x6d\xaf\x72\x9c\x8d\x21\x87\x3c"
  20150. "\xfd\x0a\x90\xa9\x47\x96\x9e\xd3"
  20151. "\x88\xee\x73\xcf\x66\x2f\x52\x56"
  20152. "\x6d\xa9\x80\x4c\xe2\x6f\x62\x88"
  20153. "\x3f\x0e\x54\x17\x48\x80\x5d\xd3"
  20154. "\xc3\xda\x25\x3d\xa1\xc8\xcb\x9f"
  20155. "\x9b\x70\xb3\xa1\xeb\x04\x52\xa1"
  20156. "\xf2\x22\x0f\xfc\xc8\x18\xfa\xf9"
  20157. "\x85\x9c\xf1\xac\xeb\x0c\x02\x46"
  20158. "\x75\xd2\xf5\x2c\xe3\xd2\x59\x94"
  20159. "\x12\xf3\x3c\xfc\xd7\x92\xfa\x36"
  20160. "\xba\x61\x34\x38\x7c\xda\x48\x3e"
  20161. "\x08\xc9\x39\x23\x5e\x02\x2c\x1a"
  20162. "\x18\x7e\xb4\xd9\xfd\x9e\x40\x02"
  20163. "\xb1\x33\x37\x32\xe7\xde\xd6\xd0"
  20164. "\x7c\x58\x65\x4b\xf8\x34\x27\x9c"
  20165. "\x44\xb4\xbd\xe9\xe9\x4c\x78\x7d"
  20166. "\x4b\x9f\xce\xb1\xcd\x47\xa5\x37"
  20167. "\xe5\x6d\xbd\xb9\x43\x94\x0a\xd4"
  20168. "\xd6\xf9\x04\x5f\xb5\x66\x6c\x1a"
  20169. "\x35\x12\xe3\x36\x28\x27\x36\x58"
  20170. "\x01\x2b\x79\xe4\xba\x6d\x10\x7d"
  20171. "\x65\xdf\x84\x95\xf4\xd5\xb6\x8f"
  20172. "\x2b\x9f\x96\x00\x86\x60\xf0\x21"
  20173. "\x76\xa8\x6a\x8c\x28\x1c\xb3\x6b"
  20174. "\x97\xd7\xb6\x53\x2a\xcc\xab\x40"
  20175. "\x9d\x62\x79\x58\x52\xe6\x65\xb7"
  20176. "\xab\x55\x67\x9c\x89\x7c\x03\xb0"
  20177. "\x73\x59\xc5\x81\xf5\x18\x17\x5c"
  20178. "\x89\xf3\x78\x35\x44\x62\x78\x72"
  20179. "\xd0\x96\xeb\x31\xe7\x87\x77\x14"
  20180. "\x99\x51\xf2\x59\x26\x9e\xb5\xa6"
  20181. "\x45\xfe\x6e\xbd\x07\x4c\x94\x5a"
  20182. "\xa5\x7d\xfc\xf1\x2b\x77\xe2\xfe"
  20183. "\x17\xd4\x84\xa0\xac\xb5\xc7\xda"
  20184. "\xa9\x1a\xb6\xf3\x74\x11\xb4\x9d"
  20185. "\xfb\x79\x2e\x04\x2d\x50\x28\x83"
  20186. "\xbf\xc6\x52\xd3\x34\xd6\xe8\x7a"
  20187. "\xb6\xea\xe7\xa8\x6c\x15\x1e\x2c"
  20188. "\x57\xbc\x48\x4e\x5f\x5c\xb6\x92"
  20189. "\xd2\x49\x77\x81\x6d\x90\x70\xae"
  20190. "\x98\xa1\x03\x0d\x6b\xb9\x77\x14"
  20191. "\xf1\x4e\x23\xd3\xf8\x68\xbd\xc2"
  20192. "\xfe\x04\xb7\x5c\xc5\x17\x60\x8f"
  20193. "\x65\x54\xa4\x7a\x42\xdc\x18\x0d"
  20194. "\xb5\xcf\x0f\xd3\xc7\x91\x66\x1b"
  20195. "\x45\x42\x27\x75\x50\xe5\xee\xb8"
  20196. "\x7f\x33\x2c\xba\x4a\x92\x4d\x2c"
  20197. "\x3c\xe3\x0d\x80\x01\xba\x0d\x29"
  20198. "\xd8\x3c\xe9\x13\x16\x57\xe6\xea"
  20199. "\x94\x52\xe7\x00\x4d\x30\xb0\x0f"
  20200. "\x35\xb8\xb8\xa7\xb1\xb5\x3b\x44"
  20201. "\xe1\x2f\xfd\x88\xed\x43\xe7\x52"
  20202. "\x10\x93\xb3\x8a\x30\x6b\x0a\xf7"
  20203. "\x23\xc6\x50\x9d\x4a\xb0\xde\xc3"
  20204. "\xdc\x9b\x2f\x01\x56\x36\x09\xc5"
  20205. "\x2f\x6b\xfe\xf1\xd8\x27\x45\x03"
  20206. "\x30\x5e\x5c\x5b\xb4\x62\x0e\x1a"
  20207. "\xa9\x21\x2b\x92\x94\x87\x62\x57"
  20208. "\x4c\x10\x74\x1a\xf1\x0a\xc5\x84"
  20209. "\x3b\x9e\x72\x02\xd7\xcc\x09\x56"
  20210. "\xbd\x54\xc1\xf0\xc3\xe3\xb3\xf8"
  20211. "\xd2\x0d\x61\xcb\xef\xce\x0d\x05"
  20212. "\xb0\x98\xd9\x8e\x4f\xf9\xbc\x93"
  20213. "\xa6\xea\xc8\xcf\x10\x53\x4b\xf1"
  20214. "\xec\xfc\x89\xf9\x64\xb0\x22\xbf"
  20215. "\x9e\x55\x46\x9f\x7c\x50\x8e\x84"
  20216. "\x54\x20\x98\xd7\x6c\x40\x1e\xdb"
  20217. "\x69\x34\x78\x61\x24\x21\x9c\x8a"
  20218. "\xb3\x62\x31\x8b\x6e\xf5\x2a\x35"
  20219. "\x86\x13\xb1\x6c\x64\x2e\x41\xa5"
  20220. "\x05\xf2\x42\xba\xd2\x3a\x0d\x8e"
  20221. "\x8a\x59\x94\x3c\xcf\x36\x27\x82"
  20222. "\xc2\x45\xee\x58\xcd\x88\xb4\xec"
  20223. "\xde\xb2\x96\x0a\xaf\x38\x6f\x88"
  20224. "\xd7\xd8\xe1\xdf\xb9\x96\xa9\x0a"
  20225. "\xb1\x95\x28\x86\x20\xe9\x17\x49"
  20226. "\xa2\x29\x38\xaa\xa5\xe9\x6e\xf1"
  20227. "\x19\x27\xc0\xd5\x2a\x22\xc3\x0b"
  20228. "\xdb\x7c\x73\x10\xb9\xba\x89\x76"
  20229. "\x54\xae\x7d\x71\xb3\x93\xf6\x32"
  20230. "\xe6\x47\x43\x55\xac\xa0\x0d\xc2"
  20231. "\x93\x27\x4a\x8e\x0e\x74\x15\xc7"
  20232. "\x0b\x85\xd9\x0c\xa9\x30\x7a\x3e"
  20233. "\xea\x8f\x85\x6d\x3a\x12\x4f\x72"
  20234. "\x69\x58\x7a\x80\xbb\xb5\x97\xf3"
  20235. "\xcf\x70\xd2\x5d\xdd\x4d\x21\x79"
  20236. "\x54\x4d\xe4\x05\xe8\xbd\xc2\x62"
  20237. "\xb1\x3b\x77\x1c\xd6\x5c\xf3\xa0"
  20238. "\x79\x00\xa8\x6c\x29\xd9\x18\x24"
  20239. "\x36\xa2\x46\xc0\x96\x65\x7f\xbd"
  20240. "\x2a\xed\x36\x16\x0c\xaa\x9f\xf4"
  20241. "\xc5\xb4\xe2\x12\xed\x69\xed\x4f"
  20242. "\x26\x2c\x39\x52\x89\x98\xe7\x2c"
  20243. "\x99\xa4\x9e\xa3\x9b\x99\x46\x7a"
  20244. "\x3a\xdc\xa8\x59\xa3\xdb\xc3\x3b"
  20245. "\x95\x0d\x3b\x09\x6e\xee\x83\x5d"
  20246. "\x32\x4d\xed\xab\xfa\x98\x14\x4e"
  20247. "\xc3\x15\x45\x53\x61\xc4\x93\xbd"
  20248. "\x90\xf4\x99\x95\x4c\xe6\x76\x92"
  20249. "\x29\x90\x46\x30\x92\x69\x7d\x13"
  20250. "\xf2\xa5\xcd\x69\x49\x44\xb2\x0f"
  20251. "\x63\x40\x36\x5f\x09\xe2\x78\xf8"
  20252. "\x91\xe3\xe2\xfa\x10\xf7\xc8\x24"
  20253. "\xa8\x89\x32\x5c\x37\x25\x1d\xb2"
  20254. "\xea\x17\x8a\x0a\xa9\x64\xc3\x7c"
  20255. "\x3c\x7c\xbd\xc6\x79\x34\xe7\xe2"
  20256. "\x85\x8e\xbf\xf8\xde\x92\xa0\xae"
  20257. "\x20\xc4\xf6\xbb\x1f\x38\x19\x0e"
  20258. "\xe8\x79\x9c\xa1\x23\xe9\x54\x7e"
  20259. "\x37\x2f\xe2\x94\x32\xaf\xa0\x23"
  20260. "\x49\xe4\xc0\xb3\xac\x00\x8f\x36"
  20261. "\x05\xc4\xa6\x96\xec\x05\x98\x4f"
  20262. "\x96\x67\x57\x1f\x20\x86\x1b\x2d"
  20263. "\x69\xe4\x29\x93\x66\x5f\xaf\x6b"
  20264. "\x88\x26\x2c\x67\x02\x4b\x52\xd0"
  20265. "\x83\x7a\x43\x1f\xc0\x71\x15\x25"
  20266. "\x77\x65\x08\x60\x11\x76\x4c\x8d"
  20267. "\xed\xa9\x27\xc6\xb1\x2a\x2c\x6a"
  20268. "\x4a\x97\xf5\xc6\xb7\x70\x42\xd3"
  20269. "\x03\xd1\x24\x95\xec\x6d\xab\x38"
  20270. "\x72\xce\xe2\x8b\x33\xd7\x51\x09"
  20271. "\xdc\x45\xe0\x09\x96\x32\xf3\xc4"
  20272. "\x84\xdc\x73\x73\x2d\x1b\x11\x98"
  20273. "\xc5\x0e\x69\x28\x94\xc7\xb5\x4d"
  20274. "\xc8\x8a\xd0\xaa\x13\x2e\x18\x74"
  20275. "\xdd\xd1\x1e\xf3\x90\xe8\xfc\x9a"
  20276. "\x72\x4a\x0e\xd1\xe4\xfb\x0d\x96"
  20277. "\xd1\x0c\x79\x85\x1b\x1c\xfe\xe1"
  20278. "\x62\x8f\x7a\x73\x32\xab\xc8\x18"
  20279. "\x69\xe3\x34\x30\xdf\x13\xa6\xe5"
  20280. "\xe8\x0e\x67\x7f\x81\x11\xb4\x60"
  20281. "\xc7\xbd\x79\x65\x50\xdc\xc4\x5b"
  20282. "\xde\x39\xa4\x01\x72\x63\xf3\xd1"
  20283. "\x64\x4e\xdf\xfc\x27\x92\x37\x0d"
  20284. "\x57\xcd\x11\x4f\x11\x04\x8e\x1d"
  20285. "\x16\xf7\xcd\x92\x9a\x99\x30\x14"
  20286. "\xf1\x7c\x67\x1b\x1f\x41\x0b\xe8"
  20287. "\x32\xe8\xb8\xc1\x4f\x54\x86\x4f"
  20288. "\xe5\x79\x81\x73\xcd\x43\x59\x68"
  20289. "\x73\x02\x3b\x78\x21\x72\x43\x00"
  20290. "\x49\x17\xf7\x00\xaf\x68\x24\x53"
  20291. "\x05\x0a\xc3\x33\xe0\x33\x3f\x69"
  20292. "\xd2\x84\x2f\x0b\xed\xde\x04\xf4"
  20293. "\x11\x94\x13\x69\x51\x09\x28\xde"
  20294. "\x57\x5c\xef\xdc\x9a\x49\x1c\x17"
  20295. "\x97\xf3\x96\xc1\x7f\x5d\x2e\x7d"
  20296. "\x55\xb8\xb3\x02\x09\xb3\x1f\xe7"
  20297. "\xc9\x8d\xa3\x36\x34\x8a\x77\x13"
  20298. "\x30\x63\x4c\xa5\xcd\xc3\xe0\x7e"
  20299. "\x05\xa1\x7b\x0c\xcb\x74\x47\x31"
  20300. "\x62\x03\x43\xf1\x87\xb4\xb0\x85"
  20301. "\x87\x8e\x4b\x25\xc7\xcf\xae\x4b"
  20302. "\x36\x46\x3e\x62\xbc\x6f\xeb\x5f"
  20303. "\x73\xac\xe6\x07\xee\xc1\xa1\xd6"
  20304. "\xc4\xab\xc9\xd6\x89\x45\xe1\xf1"
  20305. "\x04\x4e\x1a\x6f\xbb\x4f\x3a\xa3"
  20306. "\xa0\xcb\xa3\x0a\xd8\x71\x35\x55"
  20307. "\xe4\xbc\x2e\x04\x06\xe6\xff\x5b"
  20308. "\x1c\xc0\x11\x7c\xc5\x17\xf3\x38"
  20309. "\xcf\xe9\xba\x0f\x0e\xef\x02\xc2"
  20310. "\x8d\xc6\xbc\x4b\x67\x20\x95\xd7"
  20311. "\x2c\x45\x5b\x86\x44\x8c\x6f\x2e"
  20312. "\x7e\x9f\x1c\x77\xba\x6b\x0e\xa3"
  20313. "\x69\xdc\xab\x24\x57\x60\x47\xc1"
  20314. "\xd1\xa5\x9d\x23\xe6\xb1\x37\xfe"
  20315. "\x93\xd2\x4c\x46\xf9\x0c\xc6\xfb"
  20316. "\xd6\x9d\x99\x69\xab\x7a\x07\x0c"
  20317. "\x65\xe7\xc4\x08\x96\xe2\xa5\x01"
  20318. "\x3f\x46\x07\x05\x7e\xe8\x9a\x90"
  20319. "\x50\xdc\xe9\x7a\xea\xa1\x39\x6e"
  20320. "\x66\xe4\x6f\xa5\x5f\xb2\xd9\x5b"
  20321. "\xf5\xdb\x2a\x32\xf0\x11\x6f\x7c"
  20322. "\x26\x10\x8f\x3d\x80\xe9\x58\xf7"
  20323. "\xe0\xa8\x57\xf8\xdb\x0e\xce\x99"
  20324. "\x63\x19\x3d\xd5\xec\x1b\x77\x69"
  20325. "\x98\xf6\xe4\x5f\x67\x17\x4b\x09"
  20326. "\x85\x62\x82\x70\x18\xe2\x9a\x78"
  20327. "\xe2\x62\xbd\xb4\xf1\x42\xc6\xfb"
  20328. "\x08\xd0\xbd\xeb\x4e\x09\xf2\xc8"
  20329. "\x1e\xdc\x3d\x32\x21\x56\x9c\x4f"
  20330. "\x35\xf3\x61\x06\x72\x84\xc4\x32"
  20331. "\xf2\xf1\xfa\x0b\x2f\xc3\xdb\x02"
  20332. "\x04\xc2\xde\x57\x64\x60\x8d\xcf"
  20333. "\xcb\x86\x5d\x97\x3e\xb1\x9c\x01"
  20334. "\xd6\x28\x8f\x99\xbc\x46\xeb\x05"
  20335. "\xaf\x7e\xb8\x21\x2a\x56\x85\x1c"
  20336. "\xb3\x71\xa0\xde\xca\x96\xf1\x78"
  20337. "\x49\xa2\x99\x81\x80\x5c\x01\xf5"
  20338. "\xa0\xa2\x56\x63\xe2\x70\x07\xa5"
  20339. "\x95\xd6\x85\xeb\x36\x9e\xa9\x51"
  20340. "\x66\x56\x5f\x1d\x02\x19\xe2\xf6"
  20341. "\x4f\x73\x38\x09\x75\x64\x48\xe0"
  20342. "\xf1\x7e\x0e\xe8\x9d\xf9\xed\x94"
  20343. "\xfe\x16\x26\x62\x49\x74\xf4\xb0"
  20344. "\xd4\xa9\x6c\xb0\xfd\x53\xe9\x81"
  20345. "\xe0\x7a\xbf\xcf\xb5\xc4\x01\x81"
  20346. "\x79\x99\x77\x01\x3b\xe9\xa2\xb6"
  20347. "\xe6\x6a\x8a\x9e\x56\x1c\x8d\x1e"
  20348. "\x8f\x06\x55\x2c\x6c\xdc\x92\x87"
  20349. "\x64\x3b\x4b\x19\xa1\x13\x64\x1d"
  20350. "\x4a\xe9\xc0\x00\xb8\x95\xef\x6b"
  20351. "\x1a\x86\x6d\x37\x52\x02\xc2\xe0"
  20352. "\xc8\xbb\x42\x0c\x02\x21\x4a\xc9"
  20353. "\xef\xa0\x54\xe4\x5e\x16\x53\x81"
  20354. "\x70\x62\x10\xaf\xde\xb8\xb5\xd3"
  20355. "\xe8\x5e\x6c\xc3\x8a\x3e\x18\x07"
  20356. "\xf2\x2f\x7d\xa7\xe1\x3d\x4e\xb4"
  20357. "\x26\xa7\xa3\x93\x86\xb2\x04\x1e"
  20358. "\x53\x5d\x86\xd6\xde\x65\xca\xe3"
  20359. "\x4e\xc1\xcf\xef\xc8\x70\x1b\x83"
  20360. "\x13\xdd\x18\x8b\x0d\x76\xd2\xf6"
  20361. "\x37\x7a\x93\x7a\x50\x11\x9f\x96"
  20362. "\x86\x25\xfd\xac\xdc\xbe\x18\x93"
  20363. "\x19\x6b\xec\x58\x4f\xb9\x75\xa7"
  20364. "\xdd\x3f\x2f\xec\xc8\x5a\x84\xab"
  20365. "\xd5\xe4\x8a\x07\xf6\x4d\x23\xd6"
  20366. "\x03\xfb\x03\x6a\xea\x66\xbf\xd4"
  20367. "\xb1\x34\xfb\x78\xe9\x55\xdc\x7c"
  20368. "\x3d\x9c\xe5\x9a\xac\xc3\x7a\x80"
  20369. "\x24\x6d\xa0\xef\x25\x7c\xb7\xea"
  20370. "\xce\x4d\x5f\x18\x60\xce\x87\x22"
  20371. "\x66\x2f\xd5\xdd\xdd\x02\x21\x75"
  20372. "\x82\xa0\x1f\x58\xc6\xd3\x62\xf7"
  20373. "\x32\xd8\xaf\x1e\x07\x77\x51\x96"
  20374. "\xd5\x6b\x1e\x7e\x80\x02\xe8\x67"
  20375. "\xea\x17\x0b\x10\xd2\x3f\x28\x25"
  20376. "\x4f\x05\x77\x02\x14\x69\xf0\x2c"
  20377. "\xbe\x0c\xf1\x74\x30\xd1\xb9\x9b"
  20378. "\xfc\x8c\xbb\x04\x16\xd9\xba\xc3"
  20379. "\xbc\x91\x8a\xc4\x30\xa4\xb0\x12"
  20380. "\x4c\x21\x87\xcb\xc9\x1d\x16\x96"
  20381. "\x07\x6f\x23\x54\xb9\x6f\x79\xe5"
  20382. "\x64\xc0\x64\xda\xb1\xae\xdd\x60"
  20383. "\x6c\x1a\x9d\xd3\x04\x8e\x45\xb0"
  20384. "\x92\x61\xd0\x48\x81\xed\x5e\x1d"
  20385. "\xa0\xc9\xa4\x33\xc7\x13\x51\x5d"
  20386. "\x7f\x83\x73\xb6\x70\x18\x65\x3e"
  20387. "\x2f\x0e\x7a\x12\x39\x98\xab\xd8"
  20388. "\x7e\x6f\xa3\xd1\xba\x56\xad\xbd"
  20389. "\xf0\x03\x01\x1c\x85\x35\x9f\xeb"
  20390. "\x19\x63\xa1\xaf\xfe\x2d\x35\x50"
  20391. "\x39\xa0\x65\x7c\x95\x7e\x6b\xfe"
  20392. "\xc1\xac\x07\x7c\x98\x4f\xbe\x57"
  20393. "\xa7\x22\xec\xe2\x7e\x29\x09\x53"
  20394. "\xe8\xbf\xb4\x7e\x3f\x8f\xfc\x14"
  20395. "\xce\x54\xf9\x18\x58\xb5\xff\x44"
  20396. "\x05\x9d\xce\x1b\xb6\x82\x23\xc8"
  20397. "\x2e\xbc\x69\xbb\x4a\x29\x0f\x65"
  20398. "\x94\xf0\x63\x06\x0e\xef\x8c\xbd"
  20399. "\xff\xfd\xb0\x21\x6e\x57\x05\x75"
  20400. "\xda\xd5\xc4\xeb\x8d\x32\xf7\x50"
  20401. "\xd3\x6f\x22\xed\x5f\x8e\xa2\x5b"
  20402. "\x80\x8c\xc8\x78\x40\x24\x4b\x89"
  20403. "\x30\xce\x7a\x97\x0e\xc4\xaf\xef"
  20404. "\x9b\xb4\xcd\x66\x74\x14\x04\x2b"
  20405. "\xf7\xce\x0b\x1c\x6e\xc2\x78\x8c"
  20406. "\xca\xc5\xd0\x1c\x95\x4a\x91\x2d"
  20407. "\xa7\x20\xeb\x86\x52\xb7\x67\xd8"
  20408. "\x0c\xd6\x04\x14\xde\x51\x74\x75"
  20409. "\xe7\x11\xb4\x87\xa3\x3d\x2d\xad"
  20410. "\x4f\xef\xa0\x0f\x70\x00\x6d\x13"
  20411. "\x19\x1d\x41\x50\xe9\xd8\xf0\x32"
  20412. "\x71\xbc\xd3\x11\xf2\xac\xbe\xaf"
  20413. "\x75\x46\x65\x4e\x07\x34\x37\xa3"
  20414. "\x89\xfe\x75\xd4\x70\x4c\xc6\x3f"
  20415. "\x69\x24\x0e\x38\x67\x43\x8c\xde"
  20416. "\x06\xb5\xb8\xe7\xc4\xf0\x41\x8f"
  20417. "\xf0\xbd\x2f\x0b\xb9\x18\xf8\xde"
  20418. "\x64\xb1\xdb\xee\x00\x50\x77\xe1"
  20419. "\xc7\xff\xa6\xfa\xdd\x70\xf4\xe3"
  20420. "\x93\xe9\x77\x35\x3d\x4b\x2f\x2b"
  20421. "\x6d\x55\xf0\xfc\x88\x54\x4e\x89"
  20422. "\xc1\x8a\x23\x31\x2d\x14\x2a\xb8"
  20423. "\x1b\x15\xdd\x9e\x6e\x7b\xda\x05"
  20424. "\x91\x7d\x62\x64\x96\x72\xde\xfc"
  20425. "\xc1\xec\xf0\x23\x51\x6f\xdb\x5b"
  20426. "\x1d\x08\x57\xce\x09\xb8\xf6\xcd"
  20427. "\x8d\x95\xf2\x20\xbf\x0f\x20\x57"
  20428. "\x98\x81\x84\x4f\x15\x5c\x76\xe7"
  20429. "\x3e\x0a\x3a\x6c\xc4\x8a\xbe\x78"
  20430. "\x74\x77\xc3\x09\x4b\x5d\x48\xe4"
  20431. "\xc8\xcb\x0b\xea\x17\x28\xcf\xcf"
  20432. "\x31\x32\x44\xa4\xe5\x0e\x1a\x98"
  20433. "\x94\xc4\xf0\xff\xae\x3e\x44\xe8"
  20434. "\xa5\xb3\xb5\x37\x2f\xe8\xaf\x6f"
  20435. "\x28\xc1\x37\x5f\x31\xd2\xb9\x33"
  20436. "\xb1\xb2\x52\x94\x75\x2c\x29\x59"
  20437. "\x06\xc2\x25\xe8\x71\x65\x4e\xed"
  20438. "\xc0\x9c\xb1\xbb\x25\xdc\x6c\xe7"
  20439. "\x4b\xa5\x7a\x54\x7a\x60\xff\x7a"
  20440. "\xe0\x50\x40\x96\x35\x63\xe4\x0b"
  20441. "\x76\xbd\xa4\x65\x00\x1b\x57\x88"
  20442. "\xae\xed\x39\x88\x42\x11\x3c\xed"
  20443. "\x85\x67\x7d\xb9\x68\x82\xe9\x43"
  20444. "\x3c\x47\x53\xfa\xe8\xf8\x9f\x1f"
  20445. "\x9f\xef\x0f\xf7\x30\xd9\x30\x0e"
  20446. "\xb9\x9f\x69\x18\x2f\x7e\xf8\xf8"
  20447. "\xf8\x8c\x0f\xd4\x02\x4d\xea\xcd"
  20448. "\x0a\x9c\x6f\x71\x6d\x5a\x4c\x60"
  20449. "\xce\x20\x56\x32\xc6\xc5\x99\x1f"
  20450. "\x09\xe6\x4e\x18\x1a\x15\x13\xa8"
  20451. "\x7d\xb1\x6b\xc0\xb2\x6d\xf8\x26"
  20452. "\x66\xf8\x3d\x18\x74\x70\x66\x7a"
  20453. "\x34\x17\xde\xba\x47\xf1\x06\x18"
  20454. "\xcb\xaf\xeb\x4a\x1e\x8f\xa7\x77"
  20455. "\xe0\x3b\x78\x62\x66\xc9\x10\xea"
  20456. "\x1f\xb7\x29\x0a\x45\xa1\x1d\x1e"
  20457. "\x1d\xe2\x65\x61\x50\x9c\xd7\x05"
  20458. "\xf2\x0b\x5b\x12\x61\x02\xc8\xe5"
  20459. "\x63\x4f\x20\x0c\x07\x17\x33\x5e"
  20460. "\x03\x9a\x53\x0f\x2e\x55\xfe\x50"
  20461. "\x43\x7d\xd0\xb6\x7e\x5a\xda\xae"
  20462. "\x58\xef\x15\xa9\x83\xd9\x46\xb1"
  20463. "\x42\xaa\xf5\x02\x6c\xce\x92\x06"
  20464. "\x1b\xdb\x66\x45\x91\x79\xc2\x2d"
  20465. "\xe6\x53\xd3\x14\xfd\xbb\x44\x63"
  20466. "\xc6\xd7\x3d\x7a\x0c\x75\x78\x9d"
  20467. "\x5c\xa6\x39\xb3\xe5\x63\xca\x8b"
  20468. "\xfe\xd3\xef\x60\x83\xf6\x8e\x70"
  20469. "\xb6\x67\xc7\x77\xed\x23\xef\x4c"
  20470. "\xf0\xed\x2d\x07\x59\x6f\xc1\x01"
  20471. "\x34\x37\x08\xab\xd9\x1f\x09\xb1"
  20472. "\xce\x5b\x17\xff\x74\xf8\x9c\xd5"
  20473. "\x2c\x56\x39\x79\x0f\x69\x44\x75"
  20474. "\x58\x27\x01\xc4\xbf\xa7\xa1\x1d"
  20475. "\x90\x17\x77\x86\x5a\x3f\xd9\xd1"
  20476. "\x0e\xa0\x10\xf8\xec\x1e\xa5\x7f"
  20477. "\x5e\x36\xd1\xe3\x04\x2c\x70\xf7"
  20478. "\x8e\xc0\x98\x2f\x6c\x94\x2b\x41"
  20479. "\xb7\x60\x00\xb7\x2e\xb8\x02\x8d"
  20480. "\xb8\xb0\xd3\x86\xba\x1d\xd7\x90"
  20481. "\xd6\xb6\xe1\xfc\xd7\xd8\x28\x06"
  20482. "\x63\x9b\xce\x61\x24\x79\xc0\x70"
  20483. "\x52\xd0\xb6\xd4\x28\x95\x24\x87"
  20484. "\x03\x1f\xb7\x9a\xda\xa3\xfb\x52"
  20485. "\x5b\x68\xe7\x4c\x8c\x24\xe1\x42"
  20486. "\xf7\xd5\xfd\xad\x06\x32\x9f\xba"
  20487. "\xc1\xfc\xdd\xc6\xfc\xfc\xb3\x38"
  20488. "\x74\x56\x58\x40\x02\x37\x52\x2c"
  20489. "\x55\xcc\xb3\x9e\x7a\xe9\xd4\x38"
  20490. "\x41\x5e\x0c\x35\xe2\x11\xd1\x13"
  20491. "\xf8\xb7\x8d\x72\x6b\x22\x2a\xb0"
  20492. "\xdb\x08\xba\x35\xb9\x3f\xc8\xd3"
  20493. "\x24\x90\xec\x58\xd2\x09\xc7\x2d"
  20494. "\xed\x38\x80\x36\x72\x43\x27\x49"
  20495. "\x4a\x80\x8a\xa2\xe8\xd3\xda\x30"
  20496. "\x7d\xb6\x82\x37\x86\x92\x86\x3e"
  20497. "\x08\xb2\x28\x5a\x55\x44\x24\x7d"
  20498. "\x40\x48\x8a\xb6\x89\x58\x08\xa0"
  20499. "\xd6\x6d\x3a\x17\xbf\xf6\x54\xa2"
  20500. "\xf5\xd3\x8c\x0f\x78\x12\x57\x8b"
  20501. "\xd5\xc2\xfd\x58\x5b\x7f\x38\xe3"
  20502. "\xcc\xb7\x7c\x48\xb3\x20\xe8\x81"
  20503. "\x14\x32\x45\x05\xe0\xdb\x9f\x75"
  20504. "\x85\xb4\x6a\xfc\x95\xe3\x54\x22"
  20505. "\x12\xee\x30\xfe\xd8\x30\xef\x34"
  20506. "\x50\xab\x46\x30\x98\x2f\xb7\xc0"
  20507. "\x15\xa2\x83\xb6\xf2\x06\x21\xa2"
  20508. "\xc3\x26\x37\x14\xd1\x4d\xb5\x10"
  20509. "\x52\x76\x4d\x6a\xee\xb5\x2b\x15"
  20510. "\xb7\xf9\x51\xe8\x2a\xaf\xc7\xfa"
  20511. "\x77\xaf\xb0\x05\x4d\xd1\x68\x8e"
  20512. "\x74\x05\x9f\x9d\x93\xa5\x3e\x7f"
  20513. "\x4e\x5f\x9d\xcb\x09\xc7\x83\xe3"
  20514. "\x02\x9d\x27\x1f\xef\x85\x05\x8d"
  20515. "\xec\x55\x88\x0f\x0d\x7c\x4c\xe8"
  20516. "\xa1\x75\xa0\xd8\x06\x47\x14\xef"
  20517. "\xaa\x61\xcf\x26\x15\xad\xd8\xa3"
  20518. "\xaa\x75\xf2\x78\x4a\x5a\x61\xdf"
  20519. "\x8b\xc7\x04\xbc\xb2\x32\xd2\x7e"
  20520. "\x42\xee\xb4\x2f\x51\xff\x7b\x2e"
  20521. "\xd3\x02\xe8\xdc\x5d\x0d\x50\xdc"
  20522. "\xae\xb7\x46\xf9\xa8\xe6\xd0\x16"
  20523. "\xcc\xe6\x2c\x81\xc7\xad\xe9\xf0"
  20524. "\x05\x72\x6d\x3d\x0a\x7a\xa9\x02"
  20525. "\xac\x82\x93\x6e\xb6\x1c\x28\xfc"
  20526. "\x44\x12\xfb\x73\x77\xd4\x13\x39"
  20527. "\x29\x88\x8a\xf3\x5c\xa6\x36\xa0"
  20528. "\x2a\xed\x7e\xb1\x1d\xd6\x4c\x6b"
  20529. "\x41\x01\x18\x5d\x5d\x07\x97\xa6"
  20530. "\x4b\xef\x31\x18\xea\xac\xb1\x84"
  20531. "\x21\xed\xda\x86",
  20532. .rlen = 4100,
  20533. .np = 2,
  20534. .tap = { 4064, 36 },
  20535. },
  20536. };
  20537. static struct cipher_testvec aes_ctr_rfc3686_dec_tv_template[] = {
  20538. { /* From RFC 3686 */
  20539. .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
  20540. "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
  20541. "\x00\x00\x00\x30",
  20542. .klen = 20,
  20543. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  20544. .input = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
  20545. "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
  20546. .ilen = 16,
  20547. .result = "Single block msg",
  20548. .rlen = 16,
  20549. }, {
  20550. .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
  20551. "\x43\xd6\xce\x1f\x32\x53\x91\x63"
  20552. "\x00\x6c\xb6\xdb",
  20553. .klen = 20,
  20554. .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
  20555. .input = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
  20556. "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
  20557. "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
  20558. "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
  20559. .ilen = 32,
  20560. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  20561. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  20562. "\x10\x11\x12\x13\x14\x15\x16\x17"
  20563. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  20564. .rlen = 32,
  20565. }, {
  20566. .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
  20567. "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
  20568. "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
  20569. "\x00\x00\x00\x48",
  20570. .klen = 28,
  20571. .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
  20572. .input = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
  20573. "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
  20574. .ilen = 16,
  20575. .result = "Single block msg",
  20576. .rlen = 16,
  20577. }, {
  20578. .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
  20579. "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
  20580. "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
  20581. "\x00\x96\xb0\x3b",
  20582. .klen = 28,
  20583. .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
  20584. .input = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
  20585. "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
  20586. "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
  20587. "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
  20588. .ilen = 32,
  20589. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  20590. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  20591. "\x10\x11\x12\x13\x14\x15\x16\x17"
  20592. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  20593. .rlen = 32,
  20594. }, {
  20595. .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
  20596. "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
  20597. "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
  20598. "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
  20599. "\x00\x00\x00\x60",
  20600. .klen = 36,
  20601. .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
  20602. .input = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
  20603. "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
  20604. .ilen = 16,
  20605. .result = "Single block msg",
  20606. .rlen = 16,
  20607. }, {
  20608. .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
  20609. "\x07\x96\x36\x58\x79\xef\xf8\x86"
  20610. "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
  20611. "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
  20612. "\x00\xfa\xac\x24",
  20613. .klen = 36,
  20614. .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
  20615. .input = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
  20616. "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
  20617. "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
  20618. "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
  20619. .ilen = 32,
  20620. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  20621. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  20622. "\x10\x11\x12\x13\x14\x15\x16\x17"
  20623. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  20624. .rlen = 32,
  20625. },
  20626. };
  20627. static struct cipher_testvec aes_ofb_enc_tv_template[] = {
  20628. /* From NIST Special Publication 800-38A, Appendix F.5 */
  20629. {
  20630. .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
  20631. "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
  20632. .klen = 16,
  20633. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08"
  20634. "\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  20635. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  20636. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  20637. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  20638. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  20639. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  20640. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  20641. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  20642. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  20643. .ilen = 64,
  20644. .result = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
  20645. "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
  20646. "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5"
  20647. "\x3c\x52\xda\xc5\x4e\xd8\x25"
  20648. "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43"
  20649. "\x44\xf7\xa8\x22\x60\xed\xcc"
  20650. "\x30\x4c\x65\x28\xf6\x59\xc7\x78"
  20651. "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e",
  20652. .rlen = 64,
  20653. }
  20654. };
  20655. static struct cipher_testvec aes_ofb_dec_tv_template[] = {
  20656. /* From NIST Special Publication 800-38A, Appendix F.5 */
  20657. {
  20658. .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
  20659. "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
  20660. .klen = 16,
  20661. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08"
  20662. "\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  20663. .input = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
  20664. "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
  20665. "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5"
  20666. "\x3c\x52\xda\xc5\x4e\xd8\x25"
  20667. "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43"
  20668. "\x44\xf7\xa8\x22\x60\xed\xcc"
  20669. "\x30\x4c\x65\x28\xf6\x59\xc7\x78"
  20670. "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e",
  20671. .ilen = 64,
  20672. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  20673. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  20674. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  20675. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  20676. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  20677. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  20678. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  20679. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  20680. .rlen = 64,
  20681. }
  20682. };
  20683. static struct aead_testvec aes_gcm_enc_tv_template[] = {
  20684. { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
  20685. .key = zeroed_string,
  20686. .klen = 16,
  20687. .result = "\x58\xe2\xfc\xce\xfa\x7e\x30\x61"
  20688. "\x36\x7f\x1d\x57\xa4\xe7\x45\x5a",
  20689. .rlen = 16,
  20690. }, {
  20691. .key = zeroed_string,
  20692. .klen = 16,
  20693. .input = zeroed_string,
  20694. .ilen = 16,
  20695. .result = "\x03\x88\xda\xce\x60\xb6\xa3\x92"
  20696. "\xf3\x28\xc2\xb9\x71\xb2\xfe\x78"
  20697. "\xab\x6e\x47\xd4\x2c\xec\x13\xbd"
  20698. "\xf5\x3a\x67\xb2\x12\x57\xbd\xdf",
  20699. .rlen = 32,
  20700. }, {
  20701. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  20702. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  20703. .klen = 16,
  20704. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  20705. "\xde\xca\xf8\x88",
  20706. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  20707. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  20708. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  20709. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  20710. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  20711. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  20712. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  20713. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  20714. .ilen = 64,
  20715. .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  20716. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  20717. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  20718. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  20719. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  20720. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  20721. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  20722. "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
  20723. "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
  20724. "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
  20725. .rlen = 80,
  20726. }, {
  20727. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  20728. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  20729. .klen = 16,
  20730. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  20731. "\xde\xca\xf8\x88",
  20732. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  20733. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  20734. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  20735. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  20736. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  20737. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  20738. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  20739. "\xba\x63\x7b\x39",
  20740. .ilen = 60,
  20741. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  20742. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  20743. "\xab\xad\xda\xd2",
  20744. .alen = 20,
  20745. .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  20746. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  20747. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  20748. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  20749. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  20750. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  20751. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  20752. "\x3d\x58\xe0\x91"
  20753. "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
  20754. "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
  20755. .rlen = 76,
  20756. }, {
  20757. .key = zeroed_string,
  20758. .klen = 24,
  20759. .result = "\xcd\x33\xb2\x8a\xc7\x73\xf7\x4b"
  20760. "\xa0\x0e\xd1\xf3\x12\x57\x24\x35",
  20761. .rlen = 16,
  20762. }, {
  20763. .key = zeroed_string,
  20764. .klen = 24,
  20765. .input = zeroed_string,
  20766. .ilen = 16,
  20767. .result = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
  20768. "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
  20769. "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
  20770. "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
  20771. .rlen = 32,
  20772. }, {
  20773. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  20774. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  20775. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  20776. .klen = 24,
  20777. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  20778. "\xde\xca\xf8\x88",
  20779. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  20780. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  20781. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  20782. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  20783. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  20784. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  20785. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  20786. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  20787. .ilen = 64,
  20788. .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  20789. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  20790. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  20791. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  20792. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  20793. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  20794. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  20795. "\xcc\xda\x27\x10\xac\xad\xe2\x56"
  20796. "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
  20797. "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
  20798. .rlen = 80,
  20799. }, {
  20800. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  20801. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  20802. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  20803. .klen = 24,
  20804. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  20805. "\xde\xca\xf8\x88",
  20806. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  20807. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  20808. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  20809. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  20810. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  20811. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  20812. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  20813. "\xba\x63\x7b\x39",
  20814. .ilen = 60,
  20815. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  20816. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  20817. "\xab\xad\xda\xd2",
  20818. .alen = 20,
  20819. .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  20820. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  20821. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  20822. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  20823. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  20824. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  20825. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  20826. "\xcc\xda\x27\x10"
  20827. "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
  20828. "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
  20829. .rlen = 76,
  20830. .np = 2,
  20831. .tap = { 32, 28 },
  20832. .anp = 2,
  20833. .atap = { 8, 12 }
  20834. }, {
  20835. .key = zeroed_string,
  20836. .klen = 32,
  20837. .result = "\x53\x0f\x8a\xfb\xc7\x45\x36\xb9"
  20838. "\xa9\x63\xb4\xf1\xc4\xcb\x73\x8b",
  20839. .rlen = 16,
  20840. }
  20841. };
  20842. static struct aead_testvec aes_gcm_dec_tv_template[] = {
  20843. { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
  20844. .key = zeroed_string,
  20845. .klen = 32,
  20846. .input = "\xce\xa7\x40\x3d\x4d\x60\x6b\x6e"
  20847. "\x07\x4e\xc5\xd3\xba\xf3\x9d\x18"
  20848. "\xd0\xd1\xc8\xa7\x99\x99\x6b\xf0"
  20849. "\x26\x5b\x98\xb5\xd4\x8a\xb9\x19",
  20850. .ilen = 32,
  20851. .result = zeroed_string,
  20852. .rlen = 16,
  20853. }, {
  20854. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  20855. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  20856. "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  20857. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  20858. .klen = 32,
  20859. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  20860. "\xde\xca\xf8\x88",
  20861. .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
  20862. "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
  20863. "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
  20864. "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
  20865. "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
  20866. "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
  20867. "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
  20868. "\xbc\xc9\xf6\x62\x89\x80\x15\xad"
  20869. "\xb0\x94\xda\xc5\xd9\x34\x71\xbd"
  20870. "\xec\x1a\x50\x22\x70\xe3\xcc\x6c",
  20871. .ilen = 80,
  20872. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  20873. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  20874. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  20875. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  20876. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  20877. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  20878. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  20879. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  20880. .rlen = 64,
  20881. }, {
  20882. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  20883. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  20884. "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  20885. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  20886. .klen = 32,
  20887. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  20888. "\xde\xca\xf8\x88",
  20889. .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
  20890. "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
  20891. "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
  20892. "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
  20893. "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
  20894. "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
  20895. "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
  20896. "\xbc\xc9\xf6\x62"
  20897. "\x76\xfc\x6e\xce\x0f\x4e\x17\x68"
  20898. "\xcd\xdf\x88\x53\xbb\x2d\x55\x1b",
  20899. .ilen = 76,
  20900. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  20901. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  20902. "\xab\xad\xda\xd2",
  20903. .alen = 20,
  20904. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  20905. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  20906. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  20907. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  20908. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  20909. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  20910. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  20911. "\xba\x63\x7b\x39",
  20912. .rlen = 60,
  20913. .np = 2,
  20914. .tap = { 48, 28 },
  20915. .anp = 3,
  20916. .atap = { 8, 8, 4 }
  20917. }, {
  20918. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  20919. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  20920. .klen = 16,
  20921. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  20922. "\xde\xca\xf8\x88",
  20923. .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  20924. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  20925. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  20926. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  20927. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  20928. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  20929. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  20930. "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
  20931. "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
  20932. "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
  20933. .ilen = 80,
  20934. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  20935. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  20936. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  20937. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  20938. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  20939. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  20940. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  20941. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  20942. .rlen = 64,
  20943. }, {
  20944. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  20945. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  20946. .klen = 16,
  20947. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  20948. "\xde\xca\xf8\x88",
  20949. .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  20950. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  20951. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  20952. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  20953. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  20954. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  20955. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  20956. "\x3d\x58\xe0\x91"
  20957. "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
  20958. "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
  20959. .ilen = 76,
  20960. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  20961. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  20962. "\xab\xad\xda\xd2",
  20963. .alen = 20,
  20964. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  20965. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  20966. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  20967. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  20968. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  20969. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  20970. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  20971. "\xba\x63\x7b\x39",
  20972. .rlen = 60,
  20973. }, {
  20974. .key = zeroed_string,
  20975. .klen = 24,
  20976. .input = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
  20977. "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
  20978. "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
  20979. "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
  20980. .ilen = 32,
  20981. .result = zeroed_string,
  20982. .rlen = 16,
  20983. }, {
  20984. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  20985. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  20986. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  20987. .klen = 24,
  20988. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  20989. "\xde\xca\xf8\x88",
  20990. .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  20991. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  20992. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  20993. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  20994. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  20995. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  20996. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  20997. "\xcc\xda\x27\x10\xac\xad\xe2\x56"
  20998. "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
  20999. "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
  21000. .ilen = 80,
  21001. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  21002. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  21003. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  21004. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  21005. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  21006. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  21007. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  21008. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  21009. .rlen = 64,
  21010. }, {
  21011. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  21012. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  21013. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  21014. .klen = 24,
  21015. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  21016. "\xde\xca\xf8\x88",
  21017. .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  21018. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  21019. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  21020. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  21021. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  21022. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  21023. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  21024. "\xcc\xda\x27\x10"
  21025. "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
  21026. "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
  21027. .ilen = 76,
  21028. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  21029. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  21030. "\xab\xad\xda\xd2",
  21031. .alen = 20,
  21032. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  21033. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  21034. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  21035. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  21036. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  21037. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  21038. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  21039. "\xba\x63\x7b\x39",
  21040. .rlen = 60,
  21041. }
  21042. };
  21043. static struct aead_testvec aes_gcm_rfc4106_enc_tv_template[] = {
  21044. { /* Generated using Crypto++ */
  21045. .key = zeroed_string,
  21046. .klen = 20,
  21047. .iv = zeroed_string,
  21048. .input = zeroed_string,
  21049. .ilen = 16,
  21050. .assoc = zeroed_string,
  21051. .alen = 16,
  21052. .result = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
  21053. "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
  21054. "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
  21055. "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
  21056. .rlen = 32,
  21057. },{
  21058. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  21059. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  21060. "\x00\x00\x00\x00",
  21061. .klen = 20,
  21062. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
  21063. .input = zeroed_string,
  21064. .ilen = 16,
  21065. .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
  21066. "\x00\x00\x00\x00\x00\x00\x00\x01",
  21067. .alen = 16,
  21068. .result = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
  21069. "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
  21070. "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
  21071. "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
  21072. .rlen = 32,
  21073. }, {
  21074. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  21075. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  21076. "\x00\x00\x00\x00",
  21077. .klen = 20,
  21078. .iv = zeroed_string,
  21079. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  21080. "\x01\x01\x01\x01\x01\x01\x01\x01",
  21081. .ilen = 16,
  21082. .assoc = zeroed_string,
  21083. .alen = 16,
  21084. .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
  21085. "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
  21086. "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
  21087. "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
  21088. .rlen = 32,
  21089. }, {
  21090. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  21091. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  21092. "\x00\x00\x00\x00",
  21093. .klen = 20,
  21094. .iv = zeroed_string,
  21095. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  21096. "\x01\x01\x01\x01\x01\x01\x01\x01",
  21097. .ilen = 16,
  21098. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
  21099. "\x00\x00\x00\x00\x00\x00\x00\x00",
  21100. .alen = 16,
  21101. .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
  21102. "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
  21103. "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
  21104. "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
  21105. .rlen = 32,
  21106. }, {
  21107. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  21108. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  21109. "\x00\x00\x00\x00",
  21110. .klen = 20,
  21111. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
  21112. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  21113. "\x01\x01\x01\x01\x01\x01\x01\x01",
  21114. .ilen = 16,
  21115. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
  21116. "\x00\x00\x00\x00\x00\x00\x00\x01",
  21117. .alen = 16,
  21118. .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
  21119. "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
  21120. "\x64\x50\xF9\x32\x13\xFB\x74\x61"
  21121. "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
  21122. .rlen = 32,
  21123. }, {
  21124. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  21125. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  21126. "\x00\x00\x00\x00",
  21127. .klen = 20,
  21128. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
  21129. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  21130. "\x01\x01\x01\x01\x01\x01\x01\x01"
  21131. "\x01\x01\x01\x01\x01\x01\x01\x01"
  21132. "\x01\x01\x01\x01\x01\x01\x01\x01"
  21133. "\x01\x01\x01\x01\x01\x01\x01\x01"
  21134. "\x01\x01\x01\x01\x01\x01\x01\x01"
  21135. "\x01\x01\x01\x01\x01\x01\x01\x01"
  21136. "\x01\x01\x01\x01\x01\x01\x01\x01",
  21137. .ilen = 64,
  21138. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
  21139. "\x00\x00\x00\x00\x00\x00\x00\x01",
  21140. .alen = 16,
  21141. .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
  21142. "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
  21143. "\x98\x14\xA1\x42\x37\x80\xFD\x90"
  21144. "\x68\x12\x01\xA8\x91\x89\xB9\x83"
  21145. "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
  21146. "\x94\x5F\x18\x12\xBA\x27\x09\x39"
  21147. "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
  21148. "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
  21149. "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
  21150. "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
  21151. .rlen = 80,
  21152. }, {
  21153. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  21154. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  21155. "\x00\x00\x00\x00",
  21156. .klen = 20,
  21157. .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
  21158. .input = "\xff\xff\xff\xff\xff\xff\xff\xff"
  21159. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21160. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21161. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21162. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21163. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21164. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21165. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21166. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21167. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21168. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21169. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21170. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21171. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21172. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21173. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21174. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21175. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21176. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21177. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21178. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21179. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21180. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21181. "\xff\xff\xff\xff\xff\xff\xff\xff",
  21182. .ilen = 192,
  21183. .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  21184. "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
  21185. "\x89\xab\xcd\xef",
  21186. .alen = 20,
  21187. .result = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
  21188. "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
  21189. "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
  21190. "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
  21191. "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
  21192. "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
  21193. "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
  21194. "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
  21195. "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
  21196. "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
  21197. "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
  21198. "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
  21199. "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
  21200. "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
  21201. "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
  21202. "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
  21203. "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
  21204. "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
  21205. "\x7E\x13\x06\x82\x08\x17\xA4\x35"
  21206. "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
  21207. "\xA3\x05\x38\x95\x20\x1A\x47\x04"
  21208. "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
  21209. "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
  21210. "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
  21211. "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
  21212. "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
  21213. .rlen = 208,
  21214. }, { /* From draft-mcgrew-gcm-test-01 */
  21215. .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
  21216. "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
  21217. "\x2E\x44\x3B\x68",
  21218. .klen = 20,
  21219. .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
  21220. .input = "\x45\x00\x00\x48\x69\x9A\x00\x00"
  21221. "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
  21222. "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
  21223. "\x38\xD3\x01\x00\x00\x01\x00\x00"
  21224. "\x00\x00\x00\x00\x04\x5F\x73\x69"
  21225. "\x70\x04\x5F\x75\x64\x70\x03\x73"
  21226. "\x69\x70\x09\x63\x79\x62\x65\x72"
  21227. "\x63\x69\x74\x79\x02\x64\x6B\x00"
  21228. "\x00\x21\x00\x01\x01\x02\x02\x01",
  21229. .ilen = 72,
  21230. .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
  21231. "\x00\x00\x00\x00\x49\x56\xED\x7E"
  21232. "\x3B\x24\x4C\xFE",
  21233. .alen = 20,
  21234. .result = "\xFE\xCF\x53\x7E\x72\x9D\x5B\x07"
  21235. "\xDC\x30\xDF\x52\x8D\xD2\x2B\x76"
  21236. "\x8D\x1B\x98\x73\x66\x96\xA6\xFD"
  21237. "\x34\x85\x09\xFA\x13\xCE\xAC\x34"
  21238. "\xCF\xA2\x43\x6F\x14\xA3\xF3\xCF"
  21239. "\x65\x92\x5B\xF1\xF4\xA1\x3C\x5D"
  21240. "\x15\xB2\x1E\x18\x84\xF5\xFF\x62"
  21241. "\x47\xAE\xAB\xB7\x86\xB9\x3B\xCE"
  21242. "\x61\xBC\x17\xD7\x68\xFD\x97\x32"
  21243. "\x45\x90\x18\x14\x8F\x6C\xBE\x72"
  21244. "\x2F\xD0\x47\x96\x56\x2D\xFD\xB4",
  21245. .rlen = 88,
  21246. }, {
  21247. .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
  21248. "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
  21249. "\xCA\xFE\xBA\xBE",
  21250. .klen = 20,
  21251. .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  21252. .input = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
  21253. "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
  21254. "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
  21255. "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
  21256. "\x00\x01\x00\x00\x00\x00\x00\x00"
  21257. "\x03\x73\x69\x70\x09\x63\x79\x62"
  21258. "\x65\x72\x63\x69\x74\x79\x02\x64"
  21259. "\x6B\x00\x00\x01\x00\x01\x00\x01",
  21260. .ilen = 64,
  21261. .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
  21262. "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  21263. .alen = 16,
  21264. .result = "\xDE\xB2\x2C\xD9\xB0\x7C\x72\xC1"
  21265. "\x6E\x3A\x65\xBE\xEB\x8D\xF3\x04"
  21266. "\xA5\xA5\x89\x7D\x33\xAE\x53\x0F"
  21267. "\x1B\xA7\x6D\x5D\x11\x4D\x2A\x5C"
  21268. "\x3D\xE8\x18\x27\xC1\x0E\x9A\x4F"
  21269. "\x51\x33\x0D\x0E\xEC\x41\x66\x42"
  21270. "\xCF\xBB\x85\xA5\xB4\x7E\x48\xA4"
  21271. "\xEC\x3B\x9B\xA9\x5D\x91\x8B\xD1"
  21272. "\x83\xB7\x0D\x3A\xA8\xBC\x6E\xE4"
  21273. "\xC3\x09\xE9\xD8\x5A\x41\xAD\x4A",
  21274. .rlen = 80,
  21275. }, {
  21276. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  21277. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  21278. "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  21279. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  21280. "\x11\x22\x33\x44",
  21281. .klen = 36,
  21282. .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
  21283. .input = "\x45\x00\x00\x30\x69\xA6\x40\x00"
  21284. "\x80\x06\x26\x90\xC0\xA8\x01\x02"
  21285. "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
  21286. "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
  21287. "\x70\x02\x40\x00\x20\xBF\x00\x00"
  21288. "\x02\x04\x05\xB4\x01\x01\x04\x02"
  21289. "\x01\x02\x02\x01",
  21290. .ilen = 52,
  21291. .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
  21292. "\x01\x02\x03\x04\x05\x06\x07\x08",
  21293. .alen = 16,
  21294. .result = "\xFF\x42\x5C\x9B\x72\x45\x99\xDF"
  21295. "\x7A\x3B\xCD\x51\x01\x94\xE0\x0D"
  21296. "\x6A\x78\x10\x7F\x1B\x0B\x1C\xBF"
  21297. "\x06\xEF\xAE\x9D\x65\xA5\xD7\x63"
  21298. "\x74\x8A\x63\x79\x85\x77\x1D\x34"
  21299. "\x7F\x05\x45\x65\x9F\x14\xE9\x9D"
  21300. "\xEF\x84\x2D\x8E\xB3\x35\xF4\xEE"
  21301. "\xCF\xDB\xF8\x31\x82\x4B\x4C\x49"
  21302. "\x15\x95\x6C\x96",
  21303. .rlen = 68,
  21304. }, {
  21305. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  21306. "\x00\x00\x00\x00\x00\x00\x00\x00"
  21307. "\x00\x00\x00\x00",
  21308. .klen = 20,
  21309. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  21310. .input = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
  21311. "\x80\x01\xCB\x7A\x40\x67\x93\x18"
  21312. "\x01\x01\x01\x01\x08\x00\x07\x5C"
  21313. "\x02\x00\x44\x00\x61\x62\x63\x64"
  21314. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  21315. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  21316. "\x75\x76\x77\x61\x62\x63\x64\x65"
  21317. "\x66\x67\x68\x69\x01\x02\x02\x01",
  21318. .ilen = 64,
  21319. .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
  21320. "\x00\x00\x00\x00\x00\x00\x00\x00",
  21321. .alen = 16,
  21322. .result = "\x46\x88\xDA\xF2\xF9\x73\xA3\x92"
  21323. "\x73\x29\x09\xC3\x31\xD5\x6D\x60"
  21324. "\xF6\x94\xAB\xAA\x41\x4B\x5E\x7F"
  21325. "\xF5\xFD\xCD\xFF\xF5\xE9\xA2\x84"
  21326. "\x45\x64\x76\x49\x27\x19\xFF\xB6"
  21327. "\x4D\xE7\xD9\xDC\xA1\xE1\xD8\x94"
  21328. "\xBC\x3B\xD5\x78\x73\xED\x4D\x18"
  21329. "\x1D\x19\xD4\xD5\xC8\xC1\x8A\xF3"
  21330. "\xF8\x21\xD4\x96\xEE\xB0\x96\xE9"
  21331. "\x8A\xD2\xB6\x9E\x47\x99\xC7\x1D",
  21332. .rlen = 80,
  21333. }, {
  21334. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  21335. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  21336. "\x57\x69\x0E\x43",
  21337. .klen = 20,
  21338. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  21339. .input = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
  21340. "\x80\x01\xCB\x7C\x40\x67\x93\x18"
  21341. "\x01\x01\x01\x01\x08\x00\x08\x5C"
  21342. "\x02\x00\x43\x00\x61\x62\x63\x64"
  21343. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  21344. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  21345. "\x75\x76\x77\x61\x62\x63\x64\x65"
  21346. "\x66\x67\x68\x69\x01\x02\x02\x01",
  21347. .ilen = 64,
  21348. .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
  21349. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  21350. "\xA2\xFC\xA1\xA3",
  21351. .alen = 20,
  21352. .result = "\xFB\xA2\xCA\xA4\x85\x3C\xF9\xF0"
  21353. "\xF2\x2C\xB1\x0D\x86\xDD\x83\xB0"
  21354. "\xFE\xC7\x56\x91\xCF\x1A\x04\xB0"
  21355. "\x0D\x11\x38\xEC\x9C\x35\x79\x17"
  21356. "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
  21357. "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
  21358. "\x17\x55\xE6\x66\x2B\x4C\x8D\x0D"
  21359. "\x1F\x5E\x22\x73\x95\x30\x32\x0A"
  21360. "\xE0\xD7\x31\xCC\x97\x8E\xCA\xFA"
  21361. "\xEA\xE8\x8F\x00\xE8\x0D\x6E\x48",
  21362. .rlen = 80,
  21363. }, {
  21364. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  21365. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  21366. "\x57\x69\x0E\x43",
  21367. .klen = 20,
  21368. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  21369. .input = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
  21370. "\x80\x01\x44\x1F\x40\x67\x93\xB6"
  21371. "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
  21372. "\x01\x02\x02\x01",
  21373. .ilen = 28,
  21374. .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
  21375. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  21376. "\xA2\xFC\xA1\xA3",
  21377. .alen = 20,
  21378. .result = "\xFB\xA2\xCA\x84\x5E\x5D\xF9\xF0"
  21379. "\xF2\x2C\x3E\x6E\x86\xDD\x83\x1E"
  21380. "\x1F\xC6\x57\x92\xCD\x1A\xF9\x13"
  21381. "\x0E\x13\x79\xED\x36\x9F\x07\x1F"
  21382. "\x35\xE0\x34\xBE\x95\xF1\x12\xE4"
  21383. "\xE7\xD0\x5D\x35",
  21384. .rlen = 44,
  21385. }, {
  21386. .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
  21387. "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
  21388. "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
  21389. "\xCA\xFE\xBA\xBE",
  21390. .klen = 28,
  21391. .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  21392. .input = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
  21393. "\x40\x06\x78\x80\x0A\x01\x03\x8F"
  21394. "\x0A\x01\x06\x12\x80\x23\x06\xB8"
  21395. "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
  21396. "\x50\x10\x16\xD0\x75\x68\x00\x01",
  21397. .ilen = 40,
  21398. .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
  21399. "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  21400. .alen = 16,
  21401. .result = "\xA5\xB1\xF8\x06\x60\x29\xAE\xA4"
  21402. "\x0E\x59\x8B\x81\x22\xDE\x02\x42"
  21403. "\x09\x38\xB3\xAB\x33\xF8\x28\xE6"
  21404. "\x87\xB8\x85\x8B\x5B\xFB\xDB\xD0"
  21405. "\x31\x5B\x27\x45\x21\x44\xCC\x77"
  21406. "\x95\x45\x7B\x96\x52\x03\x7F\x53"
  21407. "\x18\x02\x7B\x5B\x4C\xD7\xA6\x36",
  21408. .rlen = 56,
  21409. }, {
  21410. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  21411. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  21412. "\xDE\xCA\xF8\x88",
  21413. .klen = 20,
  21414. .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
  21415. .input = "\x45\x00\x00\x49\x33\xBA\x00\x00"
  21416. "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
  21417. "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
  21418. "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
  21419. "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
  21420. "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
  21421. "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
  21422. "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
  21423. "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
  21424. "\x23\x01\x01\x01",
  21425. .ilen = 76,
  21426. .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
  21427. "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
  21428. "\xCE\xFA\xCE\x74",
  21429. .alen = 20,
  21430. .result = "\x18\xA6\xFD\x42\xF7\x2C\xBF\x4A"
  21431. "\xB2\xA2\xEA\x90\x1F\x73\xD8\x14"
  21432. "\xE3\xE7\xF2\x43\xD9\x54\x12\xE1"
  21433. "\xC3\x49\xC1\xD2\xFB\xEC\x16\x8F"
  21434. "\x91\x90\xFE\xEB\xAF\x2C\xB0\x19"
  21435. "\x84\xE6\x58\x63\x96\x5D\x74\x72"
  21436. "\xB7\x9D\xA3\x45\xE0\xE7\x80\x19"
  21437. "\x1F\x0D\x2F\x0E\x0F\x49\x6C\x22"
  21438. "\x6F\x21\x27\xB2\x7D\xB3\x57\x24"
  21439. "\xE7\x84\x5D\x68\x65\x1F\x57\xE6"
  21440. "\x5F\x35\x4F\x75\xFF\x17\x01\x57"
  21441. "\x69\x62\x34\x36",
  21442. .rlen = 92,
  21443. }, {
  21444. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  21445. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  21446. "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  21447. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  21448. "\x73\x61\x6C\x74",
  21449. .klen = 36,
  21450. .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
  21451. .input = "\x45\x08\x00\x28\x73\x2C\x00\x00"
  21452. "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
  21453. "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
  21454. "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
  21455. "\x50\x10\x1F\x64\x6D\x54\x00\x01",
  21456. .ilen = 40,
  21457. .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
  21458. "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
  21459. "\x69\x76\x65\x63",
  21460. .alen = 20,
  21461. .result = "\xF2\xD6\x9E\xCD\xBD\x5A\x0D\x5B"
  21462. "\x8D\x5E\xF3\x8B\xAD\x4D\xA5\x8D"
  21463. "\x1F\x27\x8F\xDE\x98\xEF\x67\x54"
  21464. "\x9D\x52\x4A\x30\x18\xD9\xA5\x7F"
  21465. "\xF4\xD3\xA3\x1C\xE6\x73\x11\x9E"
  21466. "\x45\x16\x26\xC2\x41\x57\x71\xE3"
  21467. "\xB7\xEE\xBC\xA6\x14\xC8\x9B\x35",
  21468. .rlen = 56,
  21469. }, {
  21470. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  21471. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  21472. "\x57\x69\x0E\x43",
  21473. .klen = 20,
  21474. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  21475. .input = "\x45\x00\x00\x49\x33\x3E\x00\x00"
  21476. "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
  21477. "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
  21478. "\x00\x35\xCB\x45\x80\x03\x02\x5B"
  21479. "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
  21480. "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
  21481. "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
  21482. "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
  21483. "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
  21484. "\x15\x01\x01\x01",
  21485. .ilen = 76,
  21486. .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
  21487. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  21488. "\xA2\xFC\xA1\xA3",
  21489. .alen = 20,
  21490. .result = "\xFB\xA2\xCA\xD1\x2F\xC1\xF9\xF0"
  21491. "\x0D\x3C\xEB\xF3\x05\x41\x0D\xB8"
  21492. "\x3D\x77\x84\xB6\x07\x32\x3D\x22"
  21493. "\x0F\x24\xB0\xA9\x7D\x54\x18\x28"
  21494. "\x00\xCA\xDB\x0F\x68\xD9\x9E\xF0"
  21495. "\xE0\xC0\xC8\x9A\xE9\xBE\xA8\x88"
  21496. "\x4E\x52\xD6\x5B\xC1\xAF\xD0\x74"
  21497. "\x0F\x74\x24\x44\x74\x7B\x5B\x39"
  21498. "\xAB\x53\x31\x63\xAA\xD4\x55\x0E"
  21499. "\xE5\x16\x09\x75\xCD\xB6\x08\xC5"
  21500. "\x76\x91\x89\x60\x97\x63\xB8\xE1"
  21501. "\x8C\xAA\x81\xE2",
  21502. .rlen = 92,
  21503. }, {
  21504. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  21505. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  21506. "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  21507. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  21508. "\x73\x61\x6C\x74",
  21509. .klen = 36,
  21510. .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
  21511. .input = "\x63\x69\x73\x63\x6F\x01\x72\x75"
  21512. "\x6C\x65\x73\x01\x74\x68\x65\x01"
  21513. "\x6E\x65\x74\x77\x65\x01\x64\x65"
  21514. "\x66\x69\x6E\x65\x01\x74\x68\x65"
  21515. "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
  21516. "\x67\x69\x65\x73\x01\x74\x68\x61"
  21517. "\x74\x77\x69\x6C\x6C\x01\x64\x65"
  21518. "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
  21519. "\x72\x72\x6F\x77\x01\x02\x02\x01",
  21520. .ilen = 72,
  21521. .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
  21522. "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
  21523. "\x69\x76\x65\x63",
  21524. .alen = 20,
  21525. .result = "\xD4\xB7\xED\x86\xA1\x77\x7F\x2E"
  21526. "\xA1\x3D\x69\x73\xD3\x24\xC6\x9E"
  21527. "\x7B\x43\xF8\x26\xFB\x56\x83\x12"
  21528. "\x26\x50\x8B\xEB\xD2\xDC\xEB\x18"
  21529. "\xD0\xA6\xDF\x10\xE5\x48\x7D\xF0"
  21530. "\x74\x11\x3E\x14\xC6\x41\x02\x4E"
  21531. "\x3E\x67\x73\xD9\x1A\x62\xEE\x42"
  21532. "\x9B\x04\x3A\x10\xE3\xEF\xE6\xB0"
  21533. "\x12\xA4\x93\x63\x41\x23\x64\xF8"
  21534. "\xC0\xCA\xC5\x87\xF2\x49\xE5\x6B"
  21535. "\x11\xE2\x4F\x30\xE4\x4C\xCC\x76",
  21536. .rlen = 88,
  21537. }, {
  21538. .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
  21539. "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
  21540. "\xD9\x66\x42\x67",
  21541. .klen = 20,
  21542. .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
  21543. .input = "\x01\x02\x02\x01",
  21544. .ilen = 4,
  21545. .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
  21546. "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
  21547. .alen = 16,
  21548. .result = "\x43\x7F\x86\x6B\xCB\x3F\x69\x9F"
  21549. "\xE9\xB0\x82\x2B\xAC\x96\x1C\x45"
  21550. "\x04\xBE\xF2\x70",
  21551. .rlen = 20,
  21552. }, {
  21553. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  21554. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  21555. "\xDE\xCA\xF8\x88",
  21556. .klen = 20,
  21557. .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
  21558. .input = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
  21559. "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
  21560. "\x62\x65\x00\x01",
  21561. .ilen = 20,
  21562. .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
  21563. "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
  21564. "\xCE\xFA\xCE\x74",
  21565. .alen = 20,
  21566. .result = "\x29\xC9\xFC\x69\xA1\x97\xD0\x38"
  21567. "\xCC\xDD\x14\xE2\xDD\xFC\xAA\x05"
  21568. "\x43\x33\x21\x64\x41\x25\x03\x52"
  21569. "\x43\x03\xED\x3C\x6C\x5F\x28\x38"
  21570. "\x43\xAF\x8C\x3E",
  21571. .rlen = 36,
  21572. }, {
  21573. .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
  21574. "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
  21575. "\x61\x61\x6E\x64\x64\x6F\x69\x74"
  21576. "\x62\x65\x66\x6F\x72\x65\x69\x61"
  21577. "\x74\x75\x72\x6E",
  21578. .klen = 36,
  21579. .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
  21580. .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
  21581. "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
  21582. "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
  21583. "\x02\x00\x07\x00\x61\x62\x63\x64"
  21584. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  21585. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  21586. "\x01\x02\x02\x01",
  21587. .ilen = 52,
  21588. .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
  21589. "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
  21590. "\x67\x65\x74\x6D",
  21591. .alen = 20,
  21592. .result = "\xF9\x7A\xB2\xAA\x35\x6D\x8E\xDC"
  21593. "\xE1\x76\x44\xAC\x8C\x78\xE2\x5D"
  21594. "\xD2\x4D\xED\xBB\x29\xEB\xF1\xB6"
  21595. "\x4A\x27\x4B\x39\xB4\x9C\x3A\x86"
  21596. "\x4C\xD3\xD7\x8C\xA4\xAE\x68\xA3"
  21597. "\x2B\x42\x45\x8F\xB5\x7D\xBE\x82"
  21598. "\x1D\xCC\x63\xB9\xD0\x93\x7B\xA2"
  21599. "\x94\x5F\x66\x93\x68\x66\x1A\x32"
  21600. "\x9F\xB4\xC0\x53",
  21601. .rlen = 68,
  21602. }, {
  21603. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  21604. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  21605. "\x57\x69\x0E\x43",
  21606. .klen = 20,
  21607. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  21608. .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
  21609. "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
  21610. "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
  21611. "\x02\x00\x07\x00\x61\x62\x63\x64"
  21612. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  21613. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  21614. "\x01\x02\x02\x01",
  21615. .ilen = 52,
  21616. .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
  21617. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  21618. "\xA2\xFC\xA1\xA3",
  21619. .alen = 20,
  21620. .result = "\xFB\xA2\xCA\xA8\xC6\xC5\xF9\xF0"
  21621. "\xF2\x2C\xA5\x4A\x06\x12\x10\xAD"
  21622. "\x3F\x6E\x57\x91\xCF\x1A\xCA\x21"
  21623. "\x0D\x11\x7C\xEC\x9C\x35\x79\x17"
  21624. "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
  21625. "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
  21626. "\x63\x21\x93\x06\x84\xEE\xCA\xDB"
  21627. "\x56\x91\x25\x46\xE7\xA9\x5C\x97"
  21628. "\x40\xD7\xCB\x05",
  21629. .rlen = 68,
  21630. }, {
  21631. .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
  21632. "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
  21633. "\x22\x43\x3C\x64",
  21634. .klen = 20,
  21635. .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
  21636. .input = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
  21637. "\x61\x62\x63\x64\x65\x66\x67\x68"
  21638. "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
  21639. "\x71\x72\x73\x74\x01\x02\x02\x01",
  21640. .ilen = 32,
  21641. .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
  21642. "\x00\x00\x00\x07\x48\x55\xEC\x7D"
  21643. "\x3A\x23\x4B\xFD",
  21644. .alen = 20,
  21645. .result = "\x74\x75\x2E\x8A\xEB\x5D\x87\x3C"
  21646. "\xD7\xC0\xF4\xAC\xC3\x6C\x4B\xFF"
  21647. "\x84\xB7\xD7\xB9\x8F\x0C\xA8\xB6"
  21648. "\xAC\xDA\x68\x94\xBC\x61\x90\x69"
  21649. "\xEF\x9C\xBC\x28\xFE\x1B\x56\xA7"
  21650. "\xC4\xE0\xD5\x8C\x86\xCD\x2B\xC0",
  21651. .rlen = 48,
  21652. }
  21653. };
  21654. static struct aead_testvec aes_gcm_rfc4106_dec_tv_template[] = {
  21655. { /* Generated using Crypto++ */
  21656. .key = zeroed_string,
  21657. .klen = 20,
  21658. .iv = zeroed_string,
  21659. .input = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
  21660. "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
  21661. "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
  21662. "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
  21663. .ilen = 32,
  21664. .assoc = zeroed_string,
  21665. .alen = 16,
  21666. .result = zeroed_string,
  21667. .rlen = 16,
  21668. },{
  21669. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  21670. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  21671. "\x00\x00\x00\x00",
  21672. .klen = 20,
  21673. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
  21674. .input = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
  21675. "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
  21676. "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
  21677. "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
  21678. .ilen = 32,
  21679. .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
  21680. "\x00\x00\x00\x00\x00\x00\x00\x01",
  21681. .alen = 16,
  21682. .result = zeroed_string,
  21683. .rlen = 16,
  21684. }, {
  21685. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  21686. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  21687. "\x00\x00\x00\x00",
  21688. .klen = 20,
  21689. .iv = zeroed_string,
  21690. .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
  21691. "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
  21692. "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
  21693. "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
  21694. .ilen = 32,
  21695. .assoc = zeroed_string,
  21696. .alen = 16,
  21697. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  21698. "\x01\x01\x01\x01\x01\x01\x01\x01",
  21699. .rlen = 16,
  21700. }, {
  21701. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  21702. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  21703. "\x00\x00\x00\x00",
  21704. .klen = 20,
  21705. .iv = zeroed_string,
  21706. .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
  21707. "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
  21708. "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
  21709. "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
  21710. .ilen = 32,
  21711. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
  21712. "\x00\x00\x00\x00\x00\x00\x00\x00",
  21713. .alen = 16,
  21714. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  21715. "\x01\x01\x01\x01\x01\x01\x01\x01",
  21716. .rlen = 16,
  21717. }, {
  21718. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  21719. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  21720. "\x00\x00\x00\x00",
  21721. .klen = 20,
  21722. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
  21723. .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
  21724. "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
  21725. "\x64\x50\xF9\x32\x13\xFB\x74\x61"
  21726. "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
  21727. .ilen = 32,
  21728. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
  21729. "\x00\x00\x00\x00\x00\x00\x00\x01",
  21730. .alen = 16,
  21731. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  21732. "\x01\x01\x01\x01\x01\x01\x01\x01",
  21733. .rlen = 16,
  21734. }, {
  21735. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  21736. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  21737. "\x00\x00\x00\x00",
  21738. .klen = 20,
  21739. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
  21740. .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
  21741. "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
  21742. "\x98\x14\xA1\x42\x37\x80\xFD\x90"
  21743. "\x68\x12\x01\xA8\x91\x89\xB9\x83"
  21744. "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
  21745. "\x94\x5F\x18\x12\xBA\x27\x09\x39"
  21746. "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
  21747. "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
  21748. "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
  21749. "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
  21750. .ilen = 80,
  21751. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
  21752. "\x00\x00\x00\x00\x00\x00\x00\x01",
  21753. .alen = 16,
  21754. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  21755. "\x01\x01\x01\x01\x01\x01\x01\x01"
  21756. "\x01\x01\x01\x01\x01\x01\x01\x01"
  21757. "\x01\x01\x01\x01\x01\x01\x01\x01"
  21758. "\x01\x01\x01\x01\x01\x01\x01\x01"
  21759. "\x01\x01\x01\x01\x01\x01\x01\x01"
  21760. "\x01\x01\x01\x01\x01\x01\x01\x01"
  21761. "\x01\x01\x01\x01\x01\x01\x01\x01",
  21762. .rlen = 64,
  21763. }, {
  21764. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  21765. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  21766. "\x00\x00\x00\x00",
  21767. .klen = 20,
  21768. .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
  21769. .input = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
  21770. "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
  21771. "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
  21772. "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
  21773. "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
  21774. "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
  21775. "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
  21776. "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
  21777. "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
  21778. "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
  21779. "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
  21780. "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
  21781. "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
  21782. "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
  21783. "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
  21784. "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
  21785. "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
  21786. "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
  21787. "\x7E\x13\x06\x82\x08\x17\xA4\x35"
  21788. "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
  21789. "\xA3\x05\x38\x95\x20\x1A\x47\x04"
  21790. "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
  21791. "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
  21792. "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
  21793. "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
  21794. "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
  21795. .ilen = 208,
  21796. .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  21797. "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
  21798. "\x89\xab\xcd\xef",
  21799. .alen = 20,
  21800. .result = "\xff\xff\xff\xff\xff\xff\xff\xff"
  21801. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21802. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21803. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21804. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21805. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21806. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21807. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21808. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21809. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21810. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21811. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21812. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21813. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21814. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21815. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21816. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21817. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21818. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21819. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21820. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21821. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21822. "\xff\xff\xff\xff\xff\xff\xff\xff"
  21823. "\xff\xff\xff\xff\xff\xff\xff\xff",
  21824. .rlen = 192,
  21825. }, {
  21826. .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
  21827. "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
  21828. "\x2E\x44\x3B\x68",
  21829. .klen = 20,
  21830. .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
  21831. .result = "\x45\x00\x00\x48\x69\x9A\x00\x00"
  21832. "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
  21833. "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
  21834. "\x38\xD3\x01\x00\x00\x01\x00\x00"
  21835. "\x00\x00\x00\x00\x04\x5F\x73\x69"
  21836. "\x70\x04\x5F\x75\x64\x70\x03\x73"
  21837. "\x69\x70\x09\x63\x79\x62\x65\x72"
  21838. "\x63\x69\x74\x79\x02\x64\x6B\x00"
  21839. "\x00\x21\x00\x01\x01\x02\x02\x01",
  21840. .rlen = 72,
  21841. .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
  21842. "\x00\x00\x00\x00\x49\x56\xED\x7E"
  21843. "\x3B\x24\x4C\xFE",
  21844. .alen = 20,
  21845. .input = "\xFE\xCF\x53\x7E\x72\x9D\x5B\x07"
  21846. "\xDC\x30\xDF\x52\x8D\xD2\x2B\x76"
  21847. "\x8D\x1B\x98\x73\x66\x96\xA6\xFD"
  21848. "\x34\x85\x09\xFA\x13\xCE\xAC\x34"
  21849. "\xCF\xA2\x43\x6F\x14\xA3\xF3\xCF"
  21850. "\x65\x92\x5B\xF1\xF4\xA1\x3C\x5D"
  21851. "\x15\xB2\x1E\x18\x84\xF5\xFF\x62"
  21852. "\x47\xAE\xAB\xB7\x86\xB9\x3B\xCE"
  21853. "\x61\xBC\x17\xD7\x68\xFD\x97\x32"
  21854. "\x45\x90\x18\x14\x8F\x6C\xBE\x72"
  21855. "\x2F\xD0\x47\x96\x56\x2D\xFD\xB4",
  21856. .ilen = 88,
  21857. }, {
  21858. .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
  21859. "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
  21860. "\xCA\xFE\xBA\xBE",
  21861. .klen = 20,
  21862. .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  21863. .result = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
  21864. "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
  21865. "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
  21866. "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
  21867. "\x00\x01\x00\x00\x00\x00\x00\x00"
  21868. "\x03\x73\x69\x70\x09\x63\x79\x62"
  21869. "\x65\x72\x63\x69\x74\x79\x02\x64"
  21870. "\x6B\x00\x00\x01\x00\x01\x00\x01",
  21871. .rlen = 64,
  21872. .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
  21873. "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  21874. .alen = 16,
  21875. .input = "\xDE\xB2\x2C\xD9\xB0\x7C\x72\xC1"
  21876. "\x6E\x3A\x65\xBE\xEB\x8D\xF3\x04"
  21877. "\xA5\xA5\x89\x7D\x33\xAE\x53\x0F"
  21878. "\x1B\xA7\x6D\x5D\x11\x4D\x2A\x5C"
  21879. "\x3D\xE8\x18\x27\xC1\x0E\x9A\x4F"
  21880. "\x51\x33\x0D\x0E\xEC\x41\x66\x42"
  21881. "\xCF\xBB\x85\xA5\xB4\x7E\x48\xA4"
  21882. "\xEC\x3B\x9B\xA9\x5D\x91\x8B\xD1"
  21883. "\x83\xB7\x0D\x3A\xA8\xBC\x6E\xE4"
  21884. "\xC3\x09\xE9\xD8\x5A\x41\xAD\x4A",
  21885. .ilen = 80,
  21886. }, {
  21887. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  21888. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  21889. "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  21890. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  21891. "\x11\x22\x33\x44",
  21892. .klen = 36,
  21893. .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
  21894. .result = "\x45\x00\x00\x30\x69\xA6\x40\x00"
  21895. "\x80\x06\x26\x90\xC0\xA8\x01\x02"
  21896. "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
  21897. "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
  21898. "\x70\x02\x40\x00\x20\xBF\x00\x00"
  21899. "\x02\x04\x05\xB4\x01\x01\x04\x02"
  21900. "\x01\x02\x02\x01",
  21901. .rlen = 52,
  21902. .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
  21903. "\x01\x02\x03\x04\x05\x06\x07\x08",
  21904. .alen = 16,
  21905. .input = "\xFF\x42\x5C\x9B\x72\x45\x99\xDF"
  21906. "\x7A\x3B\xCD\x51\x01\x94\xE0\x0D"
  21907. "\x6A\x78\x10\x7F\x1B\x0B\x1C\xBF"
  21908. "\x06\xEF\xAE\x9D\x65\xA5\xD7\x63"
  21909. "\x74\x8A\x63\x79\x85\x77\x1D\x34"
  21910. "\x7F\x05\x45\x65\x9F\x14\xE9\x9D"
  21911. "\xEF\x84\x2D\x8E\xB3\x35\xF4\xEE"
  21912. "\xCF\xDB\xF8\x31\x82\x4B\x4C\x49"
  21913. "\x15\x95\x6C\x96",
  21914. .ilen = 68,
  21915. }, {
  21916. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  21917. "\x00\x00\x00\x00\x00\x00\x00\x00"
  21918. "\x00\x00\x00\x00",
  21919. .klen = 20,
  21920. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  21921. .result = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
  21922. "\x80\x01\xCB\x7A\x40\x67\x93\x18"
  21923. "\x01\x01\x01\x01\x08\x00\x07\x5C"
  21924. "\x02\x00\x44\x00\x61\x62\x63\x64"
  21925. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  21926. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  21927. "\x75\x76\x77\x61\x62\x63\x64\x65"
  21928. "\x66\x67\x68\x69\x01\x02\x02\x01",
  21929. .rlen = 64,
  21930. .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
  21931. "\x00\x00\x00\x00\x00\x00\x00\x00",
  21932. .alen = 16,
  21933. .input = "\x46\x88\xDA\xF2\xF9\x73\xA3\x92"
  21934. "\x73\x29\x09\xC3\x31\xD5\x6D\x60"
  21935. "\xF6\x94\xAB\xAA\x41\x4B\x5E\x7F"
  21936. "\xF5\xFD\xCD\xFF\xF5\xE9\xA2\x84"
  21937. "\x45\x64\x76\x49\x27\x19\xFF\xB6"
  21938. "\x4D\xE7\xD9\xDC\xA1\xE1\xD8\x94"
  21939. "\xBC\x3B\xD5\x78\x73\xED\x4D\x18"
  21940. "\x1D\x19\xD4\xD5\xC8\xC1\x8A\xF3"
  21941. "\xF8\x21\xD4\x96\xEE\xB0\x96\xE9"
  21942. "\x8A\xD2\xB6\x9E\x47\x99\xC7\x1D",
  21943. .ilen = 80,
  21944. }, {
  21945. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  21946. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  21947. "\x57\x69\x0E\x43",
  21948. .klen = 20,
  21949. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  21950. .result = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
  21951. "\x80\x01\xCB\x7C\x40\x67\x93\x18"
  21952. "\x01\x01\x01\x01\x08\x00\x08\x5C"
  21953. "\x02\x00\x43\x00\x61\x62\x63\x64"
  21954. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  21955. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  21956. "\x75\x76\x77\x61\x62\x63\x64\x65"
  21957. "\x66\x67\x68\x69\x01\x02\x02\x01",
  21958. .rlen = 64,
  21959. .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
  21960. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  21961. "\xA2\xFC\xA1\xA3",
  21962. .alen = 20,
  21963. .input = "\xFB\xA2\xCA\xA4\x85\x3C\xF9\xF0"
  21964. "\xF2\x2C\xB1\x0D\x86\xDD\x83\xB0"
  21965. "\xFE\xC7\x56\x91\xCF\x1A\x04\xB0"
  21966. "\x0D\x11\x38\xEC\x9C\x35\x79\x17"
  21967. "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
  21968. "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
  21969. "\x17\x55\xE6\x66\x2B\x4C\x8D\x0D"
  21970. "\x1F\x5E\x22\x73\x95\x30\x32\x0A"
  21971. "\xE0\xD7\x31\xCC\x97\x8E\xCA\xFA"
  21972. "\xEA\xE8\x8F\x00\xE8\x0D\x6E\x48",
  21973. .ilen = 80,
  21974. }, {
  21975. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  21976. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  21977. "\x57\x69\x0E\x43",
  21978. .klen = 20,
  21979. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  21980. .result = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
  21981. "\x80\x01\x44\x1F\x40\x67\x93\xB6"
  21982. "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
  21983. "\x01\x02\x02\x01",
  21984. .rlen = 28,
  21985. .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
  21986. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  21987. "\xA2\xFC\xA1\xA3",
  21988. .alen = 20,
  21989. .input = "\xFB\xA2\xCA\x84\x5E\x5D\xF9\xF0"
  21990. "\xF2\x2C\x3E\x6E\x86\xDD\x83\x1E"
  21991. "\x1F\xC6\x57\x92\xCD\x1A\xF9\x13"
  21992. "\x0E\x13\x79\xED\x36\x9F\x07\x1F"
  21993. "\x35\xE0\x34\xBE\x95\xF1\x12\xE4"
  21994. "\xE7\xD0\x5D\x35",
  21995. .ilen = 44,
  21996. }, {
  21997. .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
  21998. "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
  21999. "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
  22000. "\xCA\xFE\xBA\xBE",
  22001. .klen = 28,
  22002. .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  22003. .result = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
  22004. "\x40\x06\x78\x80\x0A\x01\x03\x8F"
  22005. "\x0A\x01\x06\x12\x80\x23\x06\xB8"
  22006. "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
  22007. "\x50\x10\x16\xD0\x75\x68\x00\x01",
  22008. .rlen = 40,
  22009. .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
  22010. "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  22011. .alen = 16,
  22012. .input = "\xA5\xB1\xF8\x06\x60\x29\xAE\xA4"
  22013. "\x0E\x59\x8B\x81\x22\xDE\x02\x42"
  22014. "\x09\x38\xB3\xAB\x33\xF8\x28\xE6"
  22015. "\x87\xB8\x85\x8B\x5B\xFB\xDB\xD0"
  22016. "\x31\x5B\x27\x45\x21\x44\xCC\x77"
  22017. "\x95\x45\x7B\x96\x52\x03\x7F\x53"
  22018. "\x18\x02\x7B\x5B\x4C\xD7\xA6\x36",
  22019. .ilen = 56,
  22020. }, {
  22021. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  22022. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  22023. "\xDE\xCA\xF8\x88",
  22024. .klen = 20,
  22025. .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
  22026. .result = "\x45\x00\x00\x49\x33\xBA\x00\x00"
  22027. "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
  22028. "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
  22029. "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
  22030. "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
  22031. "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
  22032. "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
  22033. "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
  22034. "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
  22035. "\x23\x01\x01\x01",
  22036. .rlen = 76,
  22037. .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
  22038. "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
  22039. "\xCE\xFA\xCE\x74",
  22040. .alen = 20,
  22041. .input = "\x18\xA6\xFD\x42\xF7\x2C\xBF\x4A"
  22042. "\xB2\xA2\xEA\x90\x1F\x73\xD8\x14"
  22043. "\xE3\xE7\xF2\x43\xD9\x54\x12\xE1"
  22044. "\xC3\x49\xC1\xD2\xFB\xEC\x16\x8F"
  22045. "\x91\x90\xFE\xEB\xAF\x2C\xB0\x19"
  22046. "\x84\xE6\x58\x63\x96\x5D\x74\x72"
  22047. "\xB7\x9D\xA3\x45\xE0\xE7\x80\x19"
  22048. "\x1F\x0D\x2F\x0E\x0F\x49\x6C\x22"
  22049. "\x6F\x21\x27\xB2\x7D\xB3\x57\x24"
  22050. "\xE7\x84\x5D\x68\x65\x1F\x57\xE6"
  22051. "\x5F\x35\x4F\x75\xFF\x17\x01\x57"
  22052. "\x69\x62\x34\x36",
  22053. .ilen = 92,
  22054. }, {
  22055. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  22056. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  22057. "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  22058. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  22059. "\x73\x61\x6C\x74",
  22060. .klen = 36,
  22061. .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
  22062. .result = "\x45\x08\x00\x28\x73\x2C\x00\x00"
  22063. "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
  22064. "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
  22065. "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
  22066. "\x50\x10\x1F\x64\x6D\x54\x00\x01",
  22067. .rlen = 40,
  22068. .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
  22069. "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
  22070. "\x69\x76\x65\x63",
  22071. .alen = 20,
  22072. .input = "\xF2\xD6\x9E\xCD\xBD\x5A\x0D\x5B"
  22073. "\x8D\x5E\xF3\x8B\xAD\x4D\xA5\x8D"
  22074. "\x1F\x27\x8F\xDE\x98\xEF\x67\x54"
  22075. "\x9D\x52\x4A\x30\x18\xD9\xA5\x7F"
  22076. "\xF4\xD3\xA3\x1C\xE6\x73\x11\x9E"
  22077. "\x45\x16\x26\xC2\x41\x57\x71\xE3"
  22078. "\xB7\xEE\xBC\xA6\x14\xC8\x9B\x35",
  22079. .ilen = 56,
  22080. }, {
  22081. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  22082. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  22083. "\x57\x69\x0E\x43",
  22084. .klen = 20,
  22085. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  22086. .result = "\x45\x00\x00\x49\x33\x3E\x00\x00"
  22087. "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
  22088. "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
  22089. "\x00\x35\xCB\x45\x80\x03\x02\x5B"
  22090. "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
  22091. "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
  22092. "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
  22093. "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
  22094. "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
  22095. "\x15\x01\x01\x01",
  22096. .rlen = 76,
  22097. .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
  22098. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  22099. "\xA2\xFC\xA1\xA3",
  22100. .alen = 20,
  22101. .input = "\xFB\xA2\xCA\xD1\x2F\xC1\xF9\xF0"
  22102. "\x0D\x3C\xEB\xF3\x05\x41\x0D\xB8"
  22103. "\x3D\x77\x84\xB6\x07\x32\x3D\x22"
  22104. "\x0F\x24\xB0\xA9\x7D\x54\x18\x28"
  22105. "\x00\xCA\xDB\x0F\x68\xD9\x9E\xF0"
  22106. "\xE0\xC0\xC8\x9A\xE9\xBE\xA8\x88"
  22107. "\x4E\x52\xD6\x5B\xC1\xAF\xD0\x74"
  22108. "\x0F\x74\x24\x44\x74\x7B\x5B\x39"
  22109. "\xAB\x53\x31\x63\xAA\xD4\x55\x0E"
  22110. "\xE5\x16\x09\x75\xCD\xB6\x08\xC5"
  22111. "\x76\x91\x89\x60\x97\x63\xB8\xE1"
  22112. "\x8C\xAA\x81\xE2",
  22113. .ilen = 92,
  22114. }, {
  22115. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  22116. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  22117. "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  22118. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  22119. "\x73\x61\x6C\x74",
  22120. .klen = 36,
  22121. .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
  22122. .result = "\x63\x69\x73\x63\x6F\x01\x72\x75"
  22123. "\x6C\x65\x73\x01\x74\x68\x65\x01"
  22124. "\x6E\x65\x74\x77\x65\x01\x64\x65"
  22125. "\x66\x69\x6E\x65\x01\x74\x68\x65"
  22126. "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
  22127. "\x67\x69\x65\x73\x01\x74\x68\x61"
  22128. "\x74\x77\x69\x6C\x6C\x01\x64\x65"
  22129. "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
  22130. "\x72\x72\x6F\x77\x01\x02\x02\x01",
  22131. .rlen = 72,
  22132. .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
  22133. "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
  22134. "\x69\x76\x65\x63",
  22135. .alen = 20,
  22136. .input = "\xD4\xB7\xED\x86\xA1\x77\x7F\x2E"
  22137. "\xA1\x3D\x69\x73\xD3\x24\xC6\x9E"
  22138. "\x7B\x43\xF8\x26\xFB\x56\x83\x12"
  22139. "\x26\x50\x8B\xEB\xD2\xDC\xEB\x18"
  22140. "\xD0\xA6\xDF\x10\xE5\x48\x7D\xF0"
  22141. "\x74\x11\x3E\x14\xC6\x41\x02\x4E"
  22142. "\x3E\x67\x73\xD9\x1A\x62\xEE\x42"
  22143. "\x9B\x04\x3A\x10\xE3\xEF\xE6\xB0"
  22144. "\x12\xA4\x93\x63\x41\x23\x64\xF8"
  22145. "\xC0\xCA\xC5\x87\xF2\x49\xE5\x6B"
  22146. "\x11\xE2\x4F\x30\xE4\x4C\xCC\x76",
  22147. .ilen = 88,
  22148. }, {
  22149. .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
  22150. "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
  22151. "\xD9\x66\x42\x67",
  22152. .klen = 20,
  22153. .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
  22154. .result = "\x01\x02\x02\x01",
  22155. .rlen = 4,
  22156. .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
  22157. "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
  22158. .alen = 16,
  22159. .input = "\x43\x7F\x86\x6B\xCB\x3F\x69\x9F"
  22160. "\xE9\xB0\x82\x2B\xAC\x96\x1C\x45"
  22161. "\x04\xBE\xF2\x70",
  22162. .ilen = 20,
  22163. }, {
  22164. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  22165. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  22166. "\xDE\xCA\xF8\x88",
  22167. .klen = 20,
  22168. .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
  22169. .result = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
  22170. "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
  22171. "\x62\x65\x00\x01",
  22172. .rlen = 20,
  22173. .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
  22174. "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
  22175. "\xCE\xFA\xCE\x74",
  22176. .alen = 20,
  22177. .input = "\x29\xC9\xFC\x69\xA1\x97\xD0\x38"
  22178. "\xCC\xDD\x14\xE2\xDD\xFC\xAA\x05"
  22179. "\x43\x33\x21\x64\x41\x25\x03\x52"
  22180. "\x43\x03\xED\x3C\x6C\x5F\x28\x38"
  22181. "\x43\xAF\x8C\x3E",
  22182. .ilen = 36,
  22183. }, {
  22184. .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
  22185. "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
  22186. "\x61\x61\x6E\x64\x64\x6F\x69\x74"
  22187. "\x62\x65\x66\x6F\x72\x65\x69\x61"
  22188. "\x74\x75\x72\x6E",
  22189. .klen = 36,
  22190. .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
  22191. .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
  22192. "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
  22193. "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
  22194. "\x02\x00\x07\x00\x61\x62\x63\x64"
  22195. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  22196. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  22197. "\x01\x02\x02\x01",
  22198. .rlen = 52,
  22199. .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
  22200. "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
  22201. "\x67\x65\x74\x6D",
  22202. .alen = 20,
  22203. .input = "\xF9\x7A\xB2\xAA\x35\x6D\x8E\xDC"
  22204. "\xE1\x76\x44\xAC\x8C\x78\xE2\x5D"
  22205. "\xD2\x4D\xED\xBB\x29\xEB\xF1\xB6"
  22206. "\x4A\x27\x4B\x39\xB4\x9C\x3A\x86"
  22207. "\x4C\xD3\xD7\x8C\xA4\xAE\x68\xA3"
  22208. "\x2B\x42\x45\x8F\xB5\x7D\xBE\x82"
  22209. "\x1D\xCC\x63\xB9\xD0\x93\x7B\xA2"
  22210. "\x94\x5F\x66\x93\x68\x66\x1A\x32"
  22211. "\x9F\xB4\xC0\x53",
  22212. .ilen = 68,
  22213. }, {
  22214. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  22215. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  22216. "\x57\x69\x0E\x43",
  22217. .klen = 20,
  22218. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  22219. .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
  22220. "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
  22221. "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
  22222. "\x02\x00\x07\x00\x61\x62\x63\x64"
  22223. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  22224. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  22225. "\x01\x02\x02\x01",
  22226. .rlen = 52,
  22227. .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
  22228. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  22229. "\xA2\xFC\xA1\xA3",
  22230. .alen = 20,
  22231. .input = "\xFB\xA2\xCA\xA8\xC6\xC5\xF9\xF0"
  22232. "\xF2\x2C\xA5\x4A\x06\x12\x10\xAD"
  22233. "\x3F\x6E\x57\x91\xCF\x1A\xCA\x21"
  22234. "\x0D\x11\x7C\xEC\x9C\x35\x79\x17"
  22235. "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
  22236. "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
  22237. "\x63\x21\x93\x06\x84\xEE\xCA\xDB"
  22238. "\x56\x91\x25\x46\xE7\xA9\x5C\x97"
  22239. "\x40\xD7\xCB\x05",
  22240. .ilen = 68,
  22241. }, {
  22242. .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
  22243. "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
  22244. "\x22\x43\x3C\x64",
  22245. .klen = 20,
  22246. .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
  22247. .result = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
  22248. "\x61\x62\x63\x64\x65\x66\x67\x68"
  22249. "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
  22250. "\x71\x72\x73\x74\x01\x02\x02\x01",
  22251. .rlen = 32,
  22252. .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
  22253. "\x00\x00\x00\x07\x48\x55\xEC\x7D"
  22254. "\x3A\x23\x4B\xFD",
  22255. .alen = 20,
  22256. .input = "\x74\x75\x2E\x8A\xEB\x5D\x87\x3C"
  22257. "\xD7\xC0\xF4\xAC\xC3\x6C\x4B\xFF"
  22258. "\x84\xB7\xD7\xB9\x8F\x0C\xA8\xB6"
  22259. "\xAC\xDA\x68\x94\xBC\x61\x90\x69"
  22260. "\xEF\x9C\xBC\x28\xFE\x1B\x56\xA7"
  22261. "\xC4\xE0\xD5\x8C\x86\xCD\x2B\xC0",
  22262. .ilen = 48,
  22263. }
  22264. };
  22265. static struct aead_testvec aes_gcm_rfc4543_enc_tv_template[] = {
  22266. { /* From draft-mcgrew-gcm-test-01 */
  22267. .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
  22268. "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
  22269. "\x22\x43\x3c\x64",
  22270. .klen = 20,
  22271. .iv = zeroed_string,
  22272. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07"
  22273. "\x00\x00\x00\x00\x00\x00\x00\x00",
  22274. .alen = 16,
  22275. .input = "\x45\x00\x00\x30\xda\x3a\x00\x00"
  22276. "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
  22277. "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
  22278. "\x02\x00\x07\x00\x61\x62\x63\x64"
  22279. "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
  22280. "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
  22281. "\x01\x02\x02\x01",
  22282. .ilen = 52,
  22283. .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
  22284. "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
  22285. "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
  22286. "\x02\x00\x07\x00\x61\x62\x63\x64"
  22287. "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
  22288. "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
  22289. "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
  22290. "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
  22291. "\xe4\x09\x9a\xaa",
  22292. .rlen = 68,
  22293. }
  22294. };
  22295. static struct aead_testvec aes_gcm_rfc4543_dec_tv_template[] = {
  22296. { /* From draft-mcgrew-gcm-test-01 */
  22297. .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
  22298. "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
  22299. "\x22\x43\x3c\x64",
  22300. .klen = 20,
  22301. .iv = zeroed_string,
  22302. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07"
  22303. "\x00\x00\x00\x00\x00\x00\x00\x00",
  22304. .alen = 16,
  22305. .input = "\x45\x00\x00\x30\xda\x3a\x00\x00"
  22306. "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
  22307. "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
  22308. "\x02\x00\x07\x00\x61\x62\x63\x64"
  22309. "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
  22310. "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
  22311. "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
  22312. "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
  22313. "\xe4\x09\x9a\xaa",
  22314. .ilen = 68,
  22315. .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
  22316. "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
  22317. "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
  22318. "\x02\x00\x07\x00\x61\x62\x63\x64"
  22319. "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
  22320. "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
  22321. "\x01\x02\x02\x01",
  22322. .rlen = 52,
  22323. }, { /* nearly same as previous, but should fail */
  22324. .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
  22325. "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
  22326. "\x22\x43\x3c\x64",
  22327. .klen = 20,
  22328. .iv = zeroed_string,
  22329. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07"
  22330. "\x00\x00\x00\x00\x00\x00\x00\x00",
  22331. .alen = 16,
  22332. .input = "\x45\x00\x00\x30\xda\x3a\x00\x00"
  22333. "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
  22334. "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
  22335. "\x02\x00\x07\x00\x61\x62\x63\x64"
  22336. "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
  22337. "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
  22338. "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
  22339. "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
  22340. "\x00\x00\x00\x00",
  22341. .ilen = 68,
  22342. .novrfy = 1,
  22343. .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
  22344. "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
  22345. "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
  22346. "\x02\x00\x07\x00\x61\x62\x63\x64"
  22347. "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
  22348. "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
  22349. "\x01\x02\x02\x01",
  22350. .rlen = 52,
  22351. },
  22352. };
  22353. static struct aead_testvec aes_ccm_enc_tv_template[] = {
  22354. { /* From RFC 3610 */
  22355. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  22356. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  22357. .klen = 16,
  22358. .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
  22359. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  22360. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  22361. .alen = 8,
  22362. .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  22363. "\x10\x11\x12\x13\x14\x15\x16\x17"
  22364. "\x18\x19\x1a\x1b\x1c\x1d\x1e",
  22365. .ilen = 23,
  22366. .result = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
  22367. "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
  22368. "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
  22369. "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
  22370. .rlen = 31,
  22371. }, {
  22372. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  22373. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  22374. .klen = 16,
  22375. .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
  22376. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  22377. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  22378. "\x08\x09\x0a\x0b",
  22379. .alen = 12,
  22380. .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  22381. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  22382. "\x1c\x1d\x1e\x1f",
  22383. .ilen = 20,
  22384. .result = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
  22385. "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
  22386. "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
  22387. "\x7d\x9c\x2d\x93",
  22388. .rlen = 28,
  22389. }, {
  22390. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  22391. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  22392. .klen = 16,
  22393. .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
  22394. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  22395. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  22396. .alen = 8,
  22397. .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  22398. "\x10\x11\x12\x13\x14\x15\x16\x17"
  22399. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  22400. "\x20",
  22401. .ilen = 25,
  22402. .result = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
  22403. "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
  22404. "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
  22405. "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
  22406. "\x7e\x5f\x4e",
  22407. .rlen = 35,
  22408. }, {
  22409. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  22410. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  22411. .klen = 16,
  22412. .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
  22413. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  22414. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  22415. "\x08\x09\x0a\x0b",
  22416. .alen = 12,
  22417. .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  22418. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  22419. "\x1c\x1d\x1e",
  22420. .ilen = 19,
  22421. .result = "\x07\x34\x25\x94\x15\x77\x85\x15"
  22422. "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
  22423. "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
  22424. "\x4d\x99\x99\x88\xdd",
  22425. .rlen = 29,
  22426. }, {
  22427. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  22428. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  22429. .klen = 16,
  22430. .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
  22431. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  22432. .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
  22433. .alen = 8,
  22434. .input = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
  22435. "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
  22436. "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
  22437. .ilen = 24,
  22438. .result = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
  22439. "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
  22440. "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
  22441. "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
  22442. .rlen = 32,
  22443. }, {
  22444. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  22445. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  22446. .klen = 16,
  22447. .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
  22448. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  22449. .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
  22450. "\x20\xea\x60\xc0",
  22451. .alen = 12,
  22452. .input = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
  22453. "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
  22454. "\x3a\x80\x3b\xa8\x7f",
  22455. .ilen = 21,
  22456. .result = "\x00\x97\x69\xec\xab\xdf\x48\x62"
  22457. "\x55\x94\xc5\x92\x51\xe6\x03\x57"
  22458. "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
  22459. "\x5a\xe0\x70\x45\x51",
  22460. .rlen = 29,
  22461. }, {
  22462. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  22463. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  22464. .klen = 16,
  22465. .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
  22466. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  22467. .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
  22468. .alen = 8,
  22469. .input = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
  22470. "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
  22471. "\x98\x09\xd6\x7d\xbe\xdd\x18",
  22472. .ilen = 23,
  22473. .result = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
  22474. "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
  22475. "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
  22476. "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
  22477. "\xba",
  22478. .rlen = 33,
  22479. }, {
  22480. /* This is taken from FIPS CAVS. */
  22481. .key = "\x83\xac\x54\x66\xc2\xeb\xe5\x05"
  22482. "\x2e\x01\xd1\xfc\x5d\x82\x66\x2e",
  22483. .klen = 16,
  22484. .iv = "\x03\x96\xac\x59\x30\x07\xa1\xe2\xa2\xc7\x55\x24\0\0\0\0",
  22485. .alen = 0,
  22486. .input = "\x19\xc8\x81\xf6\xe9\x86\xff\x93"
  22487. "\x0b\x78\x67\xe5\xbb\xb7\xfc\x6e"
  22488. "\x83\x77\xb3\xa6\x0c\x8c\x9f\x9c"
  22489. "\x35\x2e\xad\xe0\x62\xf9\x91\xa1",
  22490. .ilen = 32,
  22491. .result = "\xab\x6f\xe1\x69\x1d\x19\x99\xa8"
  22492. "\x92\xa0\xc4\x6f\x7e\xe2\x8b\xb1"
  22493. "\x70\xbb\x8c\xa6\x4c\x6e\x97\x8a"
  22494. "\x57\x2b\xbe\x5d\x98\xa6\xb1\x32"
  22495. "\xda\x24\xea\xd9\xa1\x39\x98\xfd"
  22496. "\xa4\xbe\xd9\xf2\x1a\x6d\x22\xa8",
  22497. .rlen = 48,
  22498. }, {
  22499. .key = "\x1e\x2c\x7e\x01\x41\x9a\xef\xc0"
  22500. "\x0d\x58\x96\x6e\x5c\xa2\x4b\xd3",
  22501. .klen = 16,
  22502. .iv = "\x03\x4f\xa3\x19\xd3\x01\x5a\xd8"
  22503. "\x30\x60\x15\x56\x00\x00\x00\x00",
  22504. .assoc = "\xda\xe6\x28\x9c\x45\x2d\xfd\x63"
  22505. "\x5e\xda\x4c\xb6\xe6\xfc\xf9\xb7"
  22506. "\x0c\x56\xcb\xe4\xe0\x05\x7a\xe1"
  22507. "\x0a\x63\x09\x78\xbc\x2c\x55\xde",
  22508. .alen = 32,
  22509. .input = "\x87\xa3\x36\xfd\x96\xb3\x93\x78"
  22510. "\xa9\x28\x63\xba\x12\xa3\x14\x85"
  22511. "\x57\x1e\x06\xc9\x7b\x21\xef\x76"
  22512. "\x7f\x38\x7e\x8e\x29\xa4\x3e\x7e",
  22513. .ilen = 32,
  22514. .result = "\x8a\x1e\x11\xf0\x02\x6b\xe2\x19"
  22515. "\xfc\x70\xc4\x6d\x8e\xb7\x99\xab"
  22516. "\xc5\x4b\xa2\xac\xd3\xf3\x48\xff"
  22517. "\x3b\xb5\xce\x53\xef\xde\xbb\x02"
  22518. "\xa9\x86\x15\x6c\x13\xfe\xda\x0a"
  22519. "\x22\xb8\x29\x3d\xd8\x39\x9a\x23",
  22520. .rlen = 48,
  22521. }, {
  22522. .key = "\xf4\x6b\xc2\x75\x62\xfe\xb4\xe1"
  22523. "\xa3\xf0\xff\xdd\x4e\x4b\x12\x75"
  22524. "\x53\x14\x73\x66\x8d\x88\xf6\x80",
  22525. .klen = 24,
  22526. .iv = "\x03\xa0\x20\x35\x26\xf2\x21\x8d"
  22527. "\x50\x20\xda\xe2\x00\x00\x00\x00",
  22528. .assoc = "\x5b\x9e\x13\x67\x02\x5e\xef\xc1"
  22529. "\x6c\xf9\xd7\x1e\x52\x8f\x7a\x47"
  22530. "\xe9\xd4\xcf\x20\x14\x6e\xf0\x2d"
  22531. "\xd8\x9e\x2b\x56\x10\x23\x56\xe7",
  22532. .alen = 32,
  22533. .result = "\x36\xea\x7a\x70\x08\xdc\x6a\xbc"
  22534. "\xad\x0c\x7a\x63\xf6\x61\xfd\x9b",
  22535. .rlen = 16,
  22536. }, {
  22537. .key = "\x56\xdf\x5c\x8f\x26\x3f\x0e\x42"
  22538. "\xef\x7a\xd3\xce\xfc\x84\x60\x62"
  22539. "\xca\xb4\x40\xaf\x5f\xc9\xc9\x01",
  22540. .klen = 24,
  22541. .iv = "\x03\xd6\x3c\x8c\x86\x84\xb6\xcd"
  22542. "\xef\x09\x2e\x94\x00\x00\x00\x00",
  22543. .assoc = "\x02\x65\x78\x3c\xe9\x21\x30\x91"
  22544. "\xb1\xb9\xda\x76\x9a\x78\x6d\x95"
  22545. "\xf2\x88\x32\xa3\xf2\x50\xcb\x4c"
  22546. "\xe3\x00\x73\x69\x84\x69\x87\x79",
  22547. .alen = 32,
  22548. .input = "\x9f\xd2\x02\x4b\x52\x49\x31\x3c"
  22549. "\x43\x69\x3a\x2d\x8e\x70\xad\x7e"
  22550. "\xe0\xe5\x46\x09\x80\x89\x13\xb2"
  22551. "\x8c\x8b\xd9\x3f\x86\xfb\xb5\x6b",
  22552. .ilen = 32,
  22553. .result = "\x39\xdf\x7c\x3c\x5a\x29\xb9\x62"
  22554. "\x5d\x51\xc2\x16\xd8\xbd\x06\x9f"
  22555. "\x9b\x6a\x09\x70\xc1\x51\x83\xc2"
  22556. "\x66\x88\x1d\x4f\x9a\xda\xe0\x1e"
  22557. "\xc7\x79\x11\x58\xe5\x6b\x20\x40"
  22558. "\x7a\xea\x46\x42\x8b\xe4\x6f\xe1",
  22559. .rlen = 48,
  22560. }, {
  22561. .key = "\xe0\x8d\x99\x71\x60\xd7\x97\x1a"
  22562. "\xbd\x01\x99\xd5\x8a\xdf\x71\x3a"
  22563. "\xd3\xdf\x24\x4b\x5e\x3d\x4b\x4e"
  22564. "\x30\x7a\xb9\xd8\x53\x0a\x5e\x2b",
  22565. .klen = 32,
  22566. .iv = "\x03\x1e\x29\x91\xad\x8e\xc1\x53"
  22567. "\x0a\xcf\x2d\xbe\x00\x00\x00\x00",
  22568. .assoc = "\x19\xb6\x1f\x57\xc4\xf3\xf0\x8b"
  22569. "\x78\x2b\x94\x02\x29\x0f\x42\x27"
  22570. "\x6b\x75\xcb\x98\x34\x08\x7e\x79"
  22571. "\xe4\x3e\x49\x0d\x84\x8b\x22\x87",
  22572. .alen = 32,
  22573. .input = "\xe1\xd9\xd8\x13\xeb\x3a\x75\x3f"
  22574. "\x9d\xbd\x5f\x66\xbe\xdc\xbb\x66"
  22575. "\xbf\x17\x99\x62\x4a\x39\x27\x1f"
  22576. "\x1d\xdc\x24\xae\x19\x2f\x98\x4c",
  22577. .ilen = 32,
  22578. .result = "\x19\xb8\x61\x33\x45\x2b\x43\x96"
  22579. "\x6f\x51\xd0\x20\x30\x7d\x9b\xc6"
  22580. "\x26\x3d\xf8\xc9\x65\x16\xa8\x9f"
  22581. "\xf0\x62\x17\x34\xf2\x1e\x8d\x75"
  22582. "\x4e\x13\xcc\xc0\xc3\x2a\x54\x2d",
  22583. .rlen = 40,
  22584. }, {
  22585. .key = "\x7c\xc8\x18\x3b\x8d\x99\xe0\x7c"
  22586. "\x45\x41\xb8\xbd\x5c\xa7\xc2\x32"
  22587. "\x8a\xb8\x02\x59\xa4\xfe\xa9\x2c"
  22588. "\x09\x75\x9a\x9b\x3c\x9b\x27\x39",
  22589. .klen = 32,
  22590. .iv = "\x03\xf9\xd9\x4e\x63\xb5\x3d\x9d"
  22591. "\x43\xf6\x1e\x50\0\0\0\0",
  22592. .assoc = "\x57\xf5\x6b\x8b\x57\x5c\x3d\x3b"
  22593. "\x13\x02\x01\x0c\x83\x4c\x96\x35"
  22594. "\x8e\xd6\x39\xcf\x7d\x14\x9b\x94"
  22595. "\xb0\x39\x36\xe6\x8f\x57\xe0\x13",
  22596. .alen = 32,
  22597. .input = "\x3b\x6c\x29\x36\xb6\xef\x07\xa6"
  22598. "\x83\x72\x07\x4f\xcf\xfa\x66\x89"
  22599. "\x5f\xca\xb1\xba\xd5\x8f\x2c\x27"
  22600. "\x30\xdb\x75\x09\x93\xd4\x65\xe4",
  22601. .ilen = 32,
  22602. .result = "\xb0\x88\x5a\x33\xaa\xe5\xc7\x1d"
  22603. "\x85\x23\xc7\xc6\x2f\xf4\x1e\x3d"
  22604. "\xcc\x63\x44\x25\x07\x78\x4f\x9e"
  22605. "\x96\xb8\x88\xeb\xbc\x48\x1f\x06"
  22606. "\x39\xaf\x39\xac\xd8\x4a\x80\x39"
  22607. "\x7b\x72\x8a\xf7",
  22608. .rlen = 44,
  22609. }, {
  22610. .key = "\xab\xd0\xe9\x33\x07\x26\xe5\x83"
  22611. "\x8c\x76\x95\xd4\xb6\xdc\xf3\x46"
  22612. "\xf9\x8f\xad\xe3\x02\x13\x83\x77"
  22613. "\x3f\xb0\xf1\xa1\xa1\x22\x0f\x2b",
  22614. .klen = 32,
  22615. .iv = "\x03\x24\xa7\x8b\x07\xcb\xcc\x0e"
  22616. "\xe6\x33\xbf\xf5\x00\x00\x00\x00",
  22617. .assoc = "\xd4\xdb\x30\x1d\x03\xfe\xfd\x5f"
  22618. "\x87\xd4\x8c\xb6\xb6\xf1\x7a\x5d"
  22619. "\xab\x90\x65\x8d\x8e\xca\x4d\x4f"
  22620. "\x16\x0c\x40\x90\x4b\xc7\x36\x73",
  22621. .alen = 32,
  22622. .input = "\xf5\xc6\x7d\x48\xc1\xb7\xe6\x92"
  22623. "\x97\x5a\xca\xc4\xa9\x6d\xf9\x3d"
  22624. "\x6c\xde\xbc\xf1\x90\xea\x6a\xb2"
  22625. "\x35\x86\x36\xaf\x5c\xfe\x4b\x3a",
  22626. .ilen = 32,
  22627. .result = "\x83\x6f\x40\x87\x72\xcf\xc1\x13"
  22628. "\xef\xbb\x80\x21\x04\x6c\x58\x09"
  22629. "\x07\x1b\xfc\xdf\xc0\x3f\x5b\xc7"
  22630. "\xe0\x79\xa8\x6e\x71\x7c\x3f\xcf"
  22631. "\x5c\xda\xb2\x33\xe5\x13\xe2\x0d"
  22632. "\x74\xd1\xef\xb5\x0f\x3a\xb5\xf8",
  22633. .rlen = 48,
  22634. }
  22635. };
  22636. static struct aead_testvec aes_ccm_dec_tv_template[] = {
  22637. { /* From RFC 3610 */
  22638. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  22639. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  22640. .klen = 16,
  22641. .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
  22642. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  22643. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  22644. .alen = 8,
  22645. .input = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
  22646. "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
  22647. "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
  22648. "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
  22649. .ilen = 31,
  22650. .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  22651. "\x10\x11\x12\x13\x14\x15\x16\x17"
  22652. "\x18\x19\x1a\x1b\x1c\x1d\x1e",
  22653. .rlen = 23,
  22654. }, {
  22655. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  22656. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  22657. .klen = 16,
  22658. .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
  22659. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  22660. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  22661. "\x08\x09\x0a\x0b",
  22662. .alen = 12,
  22663. .input = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
  22664. "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
  22665. "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
  22666. "\x7d\x9c\x2d\x93",
  22667. .ilen = 28,
  22668. .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  22669. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  22670. "\x1c\x1d\x1e\x1f",
  22671. .rlen = 20,
  22672. }, {
  22673. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  22674. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  22675. .klen = 16,
  22676. .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
  22677. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  22678. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  22679. .alen = 8,
  22680. .input = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
  22681. "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
  22682. "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
  22683. "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
  22684. "\x7e\x5f\x4e",
  22685. .ilen = 35,
  22686. .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  22687. "\x10\x11\x12\x13\x14\x15\x16\x17"
  22688. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  22689. "\x20",
  22690. .rlen = 25,
  22691. }, {
  22692. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  22693. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  22694. .klen = 16,
  22695. .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
  22696. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  22697. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  22698. "\x08\x09\x0a\x0b",
  22699. .alen = 12,
  22700. .input = "\x07\x34\x25\x94\x15\x77\x85\x15"
  22701. "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
  22702. "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
  22703. "\x4d\x99\x99\x88\xdd",
  22704. .ilen = 29,
  22705. .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  22706. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  22707. "\x1c\x1d\x1e",
  22708. .rlen = 19,
  22709. }, {
  22710. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  22711. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  22712. .klen = 16,
  22713. .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
  22714. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  22715. .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
  22716. .alen = 8,
  22717. .input = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
  22718. "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
  22719. "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
  22720. "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
  22721. .ilen = 32,
  22722. .result = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
  22723. "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
  22724. "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
  22725. .rlen = 24,
  22726. }, {
  22727. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  22728. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  22729. .klen = 16,
  22730. .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
  22731. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  22732. .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
  22733. "\x20\xea\x60\xc0",
  22734. .alen = 12,
  22735. .input = "\x00\x97\x69\xec\xab\xdf\x48\x62"
  22736. "\x55\x94\xc5\x92\x51\xe6\x03\x57"
  22737. "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
  22738. "\x5a\xe0\x70\x45\x51",
  22739. .ilen = 29,
  22740. .result = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
  22741. "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
  22742. "\x3a\x80\x3b\xa8\x7f",
  22743. .rlen = 21,
  22744. }, {
  22745. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  22746. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  22747. .klen = 16,
  22748. .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
  22749. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  22750. .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
  22751. .alen = 8,
  22752. .input = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
  22753. "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
  22754. "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
  22755. "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
  22756. "\xba",
  22757. .ilen = 33,
  22758. .result = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
  22759. "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
  22760. "\x98\x09\xd6\x7d\xbe\xdd\x18",
  22761. .rlen = 23,
  22762. }, {
  22763. /* This is taken from FIPS CAVS. */
  22764. .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
  22765. "\xff\x80\x2e\x48\x7d\x82\xf8\xb9",
  22766. .klen = 16,
  22767. .iv = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab"
  22768. "\xd8\xa6\xb2\xd8\x00\x00\x00\x00",
  22769. .alen = 0,
  22770. .input = "\xd5\xe8\x93\x9f\xc7\x89\x2e\x2b",
  22771. .ilen = 8,
  22772. .result = "\x00",
  22773. .rlen = 0,
  22774. .novrfy = 1,
  22775. }, {
  22776. .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
  22777. "\xff\x80\x2e\x48\x7d\x82\xf8\xb9",
  22778. .klen = 16,
  22779. .iv = "\x03\xaf\x94\x87\x78\x35\x82\x81"
  22780. "\x7f\x88\x94\x68\x00\x00\x00\x00",
  22781. .alen = 0,
  22782. .input = "\x41\x3c\xb8\x87\x73\xcb\xf3\xf3",
  22783. .ilen = 8,
  22784. .result = "\x00",
  22785. .rlen = 0,
  22786. }, {
  22787. .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
  22788. "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8",
  22789. .klen = 16,
  22790. .iv = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab"
  22791. "\xd8\xa6\xb2\xd8\x00\x00\x00\x00",
  22792. .assoc = "\xf3\x94\x87\x78\x35\x82\x81\x7f"
  22793. "\x88\x94\x68\xb1\x78\x6b\x2b\xd6"
  22794. "\x04\x1f\x4e\xed\x78\xd5\x33\x66"
  22795. "\xd8\x94\x99\x91\x81\x54\x62\x57",
  22796. .alen = 32,
  22797. .input = "\xf0\x7c\x29\x02\xae\x1c\x2f\x55"
  22798. "\xd0\xd1\x3d\x1a\xa3\x6d\xe4\x0a"
  22799. "\x86\xb0\x87\x6b\x62\x33\x8c\x34"
  22800. "\xce\xab\x57\xcc\x79\x0b\xe0\x6f"
  22801. "\x5c\x3e\x48\x1f\x6c\x46\xf7\x51"
  22802. "\x8b\x84\x83\x2a\xc1\x05\xb8\xc5",
  22803. .ilen = 48,
  22804. .result = "\x50\x82\x3e\x07\xe2\x1e\xb6\xfb"
  22805. "\x33\xe4\x73\xce\xd2\xfb\x95\x79"
  22806. "\xe8\xb4\xb5\x77\x11\x10\x62\x6f"
  22807. "\x6a\x82\xd1\x13\xec\xf5\xd0\x48",
  22808. .rlen = 32,
  22809. .novrfy = 1,
  22810. }, {
  22811. .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
  22812. "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8",
  22813. .klen = 16,
  22814. .iv = "\x03\x05\xe0\xc9\x0f\xed\x34\xea"
  22815. "\x97\xd4\x3b\xdf\x00\x00\x00\x00",
  22816. .assoc = "\x49\x5c\x50\x1f\x1d\x94\xcc\x81"
  22817. "\xba\xb7\xb6\x03\xaf\xa5\xc1\xa1"
  22818. "\xd8\x5c\x42\x68\xe0\x6c\xda\x89"
  22819. "\x05\xac\x56\xac\x1b\x2a\xd3\x86",
  22820. .alen = 32,
  22821. .input = "\x39\xbe\x7d\x15\x62\x77\xf3\x3c"
  22822. "\xad\x83\x52\x6d\x71\x03\x25\x1c"
  22823. "\xed\x81\x3a\x9a\x16\x7d\x19\x80"
  22824. "\x72\x04\x72\xd0\xf6\xff\x05\x0f"
  22825. "\xb7\x14\x30\x00\x32\x9e\xa0\xa6"
  22826. "\x9e\x5a\x18\xa1\xb8\xfe\xdb\xd3",
  22827. .ilen = 48,
  22828. .result = "\x75\x05\xbe\xc2\xd9\x1e\xde\x60"
  22829. "\x47\x3d\x8c\x7d\xbd\xb5\xd9\xb7"
  22830. "\xf2\xae\x61\x05\x8f\x82\x24\x3f"
  22831. "\x9c\x67\x91\xe1\x38\x4f\xe4\x0c",
  22832. .rlen = 32,
  22833. }, {
  22834. .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
  22835. "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
  22836. "\xa4\x48\x93\x39\x26\x71\x4a\xc6",
  22837. .klen = 24,
  22838. .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
  22839. "\x57\xba\xfd\x9e\x00\x00\x00\x00",
  22840. .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
  22841. "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
  22842. "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
  22843. "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
  22844. .alen = 32,
  22845. .input = "\x71\x99\xfa\xf4\x44\x12\x68\x9b",
  22846. .ilen = 8,
  22847. .result = "\x00",
  22848. .rlen = 0,
  22849. }, {
  22850. .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
  22851. "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
  22852. "\x29\xa0\xba\x9e\x48\x78\xd1\xba",
  22853. .klen = 24,
  22854. .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
  22855. "\x57\xba\xfd\x9e\x00\x00\x00\x00",
  22856. .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
  22857. "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
  22858. "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
  22859. "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
  22860. .alen = 32,
  22861. .input = "\xfb\xe5\x5d\x34\xbe\xe5\xe8\xe7"
  22862. "\x5a\xef\x2f\xbf\x1f\x7f\xd4\xb2"
  22863. "\x66\xca\x61\x1e\x96\x7a\x61\xb3"
  22864. "\x1c\x16\x45\x52\xba\x04\x9c\x9f"
  22865. "\xb1\xd2\x40\xbc\x52\x7c\x6f\xb1",
  22866. .ilen = 40,
  22867. .result = "\x85\x34\x66\x42\xc8\x92\x0f\x36"
  22868. "\x58\xe0\x6b\x91\x3c\x98\x5c\xbb"
  22869. "\x0a\x85\xcc\x02\xad\x7a\x96\xe9"
  22870. "\x65\x43\xa4\xc3\x0f\xdc\x55\x81",
  22871. .rlen = 32,
  22872. }, {
  22873. .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
  22874. "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
  22875. "\x29\xa0\xba\x9e\x48\x78\xd1\xba",
  22876. .klen = 24,
  22877. .iv = "\x03\xd1\xfc\x57\x9c\xfe\xb8\x9c"
  22878. "\xad\x71\xaa\x1f\x00\x00\x00\x00",
  22879. .assoc = "\x86\x67\xa5\xa9\x14\x5f\x0d\xc6"
  22880. "\xff\x14\xc7\x44\xbf\x6c\x3a\xc3"
  22881. "\xff\xb6\x81\xbd\xe2\xd5\x06\xc7"
  22882. "\x3c\xa1\x52\x13\x03\x8a\x23\x3a",
  22883. .alen = 32,
  22884. .input = "\x3f\x66\xb0\x9d\xe5\x4b\x38\x00"
  22885. "\xc6\x0e\x6e\xe5\xd6\x98\xa6\x37"
  22886. "\x8c\x26\x33\xc6\xb2\xa2\x17\xfa"
  22887. "\x64\x19\xc0\x30\xd7\xfc\x14\x6b"
  22888. "\xe3\x33\xc2\x04\xb0\x37\xbe\x3f"
  22889. "\xa9\xb4\x2d\x68\x03\xa3\x44\xef",
  22890. .ilen = 48,
  22891. .result = "\x02\x87\x4d\x28\x80\x6e\xb2\xed"
  22892. "\x99\x2a\xa8\xca\x04\x25\x45\x90"
  22893. "\x1d\xdd\x5a\xd9\xe4\xdb\x9c\x9c"
  22894. "\x49\xe9\x01\xfe\xa7\x80\x6d\x6b",
  22895. .rlen = 32,
  22896. .novrfy = 1,
  22897. }, {
  22898. .key = "\xa4\x4b\x54\x29\x0a\xb8\x6d\x01"
  22899. "\x5b\x80\x2a\xcf\x25\xc4\xb7\x5c"
  22900. "\x20\x2c\xad\x30\xc2\x2b\x41\xfb"
  22901. "\x0e\x85\xbc\x33\xad\x0f\x2b\xff",
  22902. .klen = 32,
  22903. .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
  22904. "\x57\xba\xfd\x9e\x00\x00\x00\x00",
  22905. .alen = 0,
  22906. .input = "\x1f\xb8\x8f\xa3\xdd\x54\x00\xf2",
  22907. .ilen = 8,
  22908. .result = "\x00",
  22909. .rlen = 0,
  22910. }, {
  22911. .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
  22912. "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
  22913. "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
  22914. "\xae\x8f\x11\x4c\xc2\x9c\x4a\xbb",
  22915. .klen = 32,
  22916. .iv = "\x03\x85\x34\x66\x42\xc8\x92\x0f"
  22917. "\x36\x58\xe0\x6b\x00\x00\x00\x00",
  22918. .alen = 0,
  22919. .input = "\x48\x01\x5e\x02\x24\x04\x66\x47"
  22920. "\xa1\xea\x6f\xaf\xe8\xfc\xfb\xdd"
  22921. "\xa5\xa9\x87\x8d\x84\xee\x2e\x77"
  22922. "\xbb\x86\xb9\xf5\x5c\x6c\xff\xf6"
  22923. "\x72\xc3\x8e\xf7\x70\xb1\xb2\x07"
  22924. "\xbc\xa8\xa3\xbd\x83\x7c\x1d\x2a",
  22925. .ilen = 48,
  22926. .result = "\xdc\x56\xf2\x71\xb0\xb1\xa0\x6c"
  22927. "\xf0\x97\x3a\xfb\x6d\xe7\x32\x99"
  22928. "\x3e\xaf\x70\x5e\xb2\x4d\xea\x39"
  22929. "\x89\xd4\x75\x7a\x63\xb1\xda\x93",
  22930. .rlen = 32,
  22931. .novrfy = 1,
  22932. }, {
  22933. .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
  22934. "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
  22935. "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
  22936. "\x0d\x1a\x53\x3b\xb5\xe3\xf8\x8b",
  22937. .klen = 32,
  22938. .iv = "\x03\xcf\x76\x3f\xd9\x95\x75\x8f"
  22939. "\x44\x89\x40\x7b\x00\x00\x00\x00",
  22940. .assoc = "\x8f\x86\x6c\x4d\x1d\xc5\x39\x88"
  22941. "\xc8\xf3\x5c\x52\x10\x63\x6f\x2b"
  22942. "\x8a\x2a\xc5\x6f\x30\x23\x58\x7b"
  22943. "\xfb\x36\x03\x11\xb4\xd9\xf2\xfe",
  22944. .alen = 32,
  22945. .input = "\x48\x58\xd6\xf3\xad\x63\x58\xbf"
  22946. "\xae\xc7\x5e\xae\x83\x8f\x7b\xe4"
  22947. "\x78\x5c\x4c\x67\x71\x89\x94\xbf"
  22948. "\x47\xf1\x63\x7e\x1c\x59\xbd\xc5"
  22949. "\x7f\x44\x0a\x0c\x01\x18\x07\x92"
  22950. "\xe1\xd3\x51\xce\x32\x6d\x0c\x5b",
  22951. .ilen = 48,
  22952. .result = "\xc2\x54\xc8\xde\x78\x87\x77\x40"
  22953. "\x49\x71\xe4\xb7\xe7\xcb\x76\x61"
  22954. "\x0a\x41\xb9\xe9\xc0\x76\x54\xab"
  22955. "\x04\x49\x3b\x19\x93\x57\x25\x5d",
  22956. .rlen = 32,
  22957. },
  22958. };
  22959. /*
  22960. * rfc4309 refers to section 8 of rfc3610 for test vectors, but they all
  22961. * use a 13-byte nonce, we only support an 11-byte nonce. Worse,
  22962. * they use AD lengths which are not valid ESP header lengths.
  22963. *
  22964. * These vectors are copied/generated from the ones for rfc4106 with
  22965. * the key truncated by one byte..
  22966. */
  22967. static struct aead_testvec aes_ccm_rfc4309_enc_tv_template[] = {
  22968. { /* Generated using Crypto++ */
  22969. .key = zeroed_string,
  22970. .klen = 19,
  22971. .iv = zeroed_string,
  22972. .input = zeroed_string,
  22973. .ilen = 16,
  22974. .assoc = zeroed_string,
  22975. .alen = 16,
  22976. .result = "\x2E\x9A\xCA\x6B\xDA\x54\xFC\x6F"
  22977. "\x12\x50\xE8\xDE\x81\x3C\x63\x08"
  22978. "\x1A\x22\xBA\x75\xEE\xD4\xD5\xB5"
  22979. "\x27\x50\x01\xAC\x03\x33\x39\xFB",
  22980. .rlen = 32,
  22981. },{
  22982. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  22983. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  22984. "\x00\x00\x00",
  22985. .klen = 19,
  22986. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
  22987. .input = zeroed_string,
  22988. .ilen = 16,
  22989. .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
  22990. "\x00\x00\x00\x00\x00\x00\x00\x01",
  22991. .alen = 16,
  22992. .result = "\xCF\xB9\x99\x17\xC8\x86\x0E\x7F"
  22993. "\x7E\x76\xF8\xE6\xF8\xCC\x1F\x17"
  22994. "\x6A\xE0\x53\x9F\x4B\x73\x7E\xDA"
  22995. "\x08\x09\x4E\xC4\x1E\xAD\xC6\xB0",
  22996. .rlen = 32,
  22997. }, {
  22998. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  22999. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  23000. "\x00\x00\x00",
  23001. .klen = 19,
  23002. .iv = zeroed_string,
  23003. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  23004. "\x01\x01\x01\x01\x01\x01\x01\x01",
  23005. .ilen = 16,
  23006. .assoc = zeroed_string,
  23007. .alen = 16,
  23008. .result = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
  23009. "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
  23010. "\xA1\xE2\xC2\x42\x2B\x81\x70\x40"
  23011. "\xFD\x7F\x76\xD1\x03\x07\xBB\x0C",
  23012. .rlen = 32,
  23013. }, {
  23014. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  23015. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  23016. "\x00\x00\x00",
  23017. .klen = 19,
  23018. .iv = zeroed_string,
  23019. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  23020. "\x01\x01\x01\x01\x01\x01\x01\x01",
  23021. .ilen = 16,
  23022. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
  23023. "\x00\x00\x00\x00\x00\x00\x00\x00",
  23024. .alen = 16,
  23025. .result = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
  23026. "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
  23027. "\x5B\xC0\x73\xE0\x2B\x73\x68\xC9"
  23028. "\x2D\x8C\x58\xC2\x90\x3D\xB0\x3E",
  23029. .rlen = 32,
  23030. }, {
  23031. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  23032. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  23033. "\x00\x00\x00",
  23034. .klen = 19,
  23035. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
  23036. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  23037. "\x01\x01\x01\x01\x01\x01\x01\x01",
  23038. .ilen = 16,
  23039. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
  23040. "\x00\x00\x00\x00\x00\x00\x00\x01",
  23041. .alen = 16,
  23042. .result = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
  23043. "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
  23044. "\x43\x8E\x76\x57\x3B\xB4\x05\xE8"
  23045. "\xA9\x9B\xBF\x25\xE0\x4F\xC0\xED",
  23046. .rlen = 32,
  23047. }, {
  23048. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  23049. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  23050. "\x00\x00\x00",
  23051. .klen = 19,
  23052. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
  23053. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  23054. "\x01\x01\x01\x01\x01\x01\x01\x01"
  23055. "\x01\x01\x01\x01\x01\x01\x01\x01"
  23056. "\x01\x01\x01\x01\x01\x01\x01\x01"
  23057. "\x01\x01\x01\x01\x01\x01\x01\x01"
  23058. "\x01\x01\x01\x01\x01\x01\x01\x01"
  23059. "\x01\x01\x01\x01\x01\x01\x01\x01"
  23060. "\x01\x01\x01\x01\x01\x01\x01\x01",
  23061. .ilen = 64,
  23062. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
  23063. "\x00\x00\x00\x00\x00\x00\x00\x01",
  23064. .alen = 16,
  23065. .result = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
  23066. "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
  23067. "\x9C\xA4\x97\x83\x3F\x01\xA5\xF4"
  23068. "\x43\x09\xE7\xB8\xE9\xD1\xD7\x02"
  23069. "\x9B\xAB\x39\x18\xEB\x94\x34\x36"
  23070. "\xE6\xC5\xC8\x9B\x00\x81\x9E\x49"
  23071. "\x1D\x78\xE1\x48\xE3\xE9\xEA\x8E"
  23072. "\x3A\x2B\x67\x5D\x35\x6A\x0F\xDB"
  23073. "\x02\x73\xDD\xE7\x30\x4A\x30\x54"
  23074. "\x1A\x9D\x09\xCA\xC8\x1C\x32\x5F",
  23075. .rlen = 80,
  23076. }, {
  23077. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  23078. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  23079. "\x00\x00\x00",
  23080. .klen = 19,
  23081. .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
  23082. .input = "\xff\xff\xff\xff\xff\xff\xff\xff"
  23083. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23084. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23085. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23086. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23087. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23088. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23089. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23090. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23091. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23092. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23093. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23094. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23095. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23096. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23097. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23098. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23099. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23100. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23101. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23102. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23103. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23104. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23105. "\xff\xff\xff\xff\xff\xff\xff\xff",
  23106. .ilen = 192,
  23107. .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  23108. "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
  23109. "\x89\xab\xcd\xef",
  23110. .alen = 20,
  23111. .result = "\x64\x17\xDC\x24\x9D\x92\xBA\x5E"
  23112. "\x7C\x64\x6D\x33\x46\x77\xAC\xB1"
  23113. "\x5C\x9E\xE2\xC7\x27\x11\x3E\x95"
  23114. "\x7D\xBE\x28\xC8\xC1\xCA\x5E\x8C"
  23115. "\xB4\xE2\xDE\x9F\x53\x59\x26\xDB"
  23116. "\x0C\xD4\xE4\x07\x9A\xE6\x3E\x01"
  23117. "\x58\x0D\x3E\x3D\xD5\x21\xEB\x04"
  23118. "\x06\x9D\x5F\xB9\x02\x49\x1A\x2B"
  23119. "\xBA\xF0\x4E\x3B\x85\x50\x5B\x09"
  23120. "\xFE\xEC\xFC\x54\xEC\x0C\xE2\x79"
  23121. "\x8A\x2F\x5F\xD7\x05\x5D\xF1\x6D"
  23122. "\x22\xEB\xD1\x09\x80\x3F\x5A\x70"
  23123. "\xB2\xB9\xD3\x63\x99\xC2\x4D\x1B"
  23124. "\x36\x12\x00\x89\xAA\x5D\x55\xDA"
  23125. "\x1D\x5B\xD8\x3C\x5F\x09\xD2\xE6"
  23126. "\x39\x41\x5C\xF0\xBE\x26\x4E\x5F"
  23127. "\x2B\x50\x44\x52\xC2\x10\x7D\x38"
  23128. "\x82\x64\x83\x0C\xAE\x49\xD0\xE5"
  23129. "\x4F\xE5\x66\x4C\x58\x7A\xEE\x43"
  23130. "\x3B\x51\xFE\xBA\x24\x8A\xFE\xDC"
  23131. "\x19\x6D\x60\x66\x61\xF9\x9A\x3F"
  23132. "\x75\xFC\x38\x53\x5B\xB5\xCD\x52"
  23133. "\x4F\xE5\xE4\xC9\xFE\x10\xCB\x98"
  23134. "\xF0\x06\x5B\x07\xAB\xBB\xF4\x0E"
  23135. "\x2D\xC2\xDD\x5D\xDD\x22\x9A\xCC"
  23136. "\x39\xAB\x63\xA5\x3D\x9C\x51\x8A",
  23137. .rlen = 208,
  23138. }, { /* From draft-mcgrew-gcm-test-01 */
  23139. .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
  23140. "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
  23141. "\x2E\x44\x3B",
  23142. .klen = 19,
  23143. .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
  23144. .input = "\x45\x00\x00\x48\x69\x9A\x00\x00"
  23145. "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
  23146. "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
  23147. "\x38\xD3\x01\x00\x00\x01\x00\x00"
  23148. "\x00\x00\x00\x00\x04\x5F\x73\x69"
  23149. "\x70\x04\x5F\x75\x64\x70\x03\x73"
  23150. "\x69\x70\x09\x63\x79\x62\x65\x72"
  23151. "\x63\x69\x74\x79\x02\x64\x6B\x00"
  23152. "\x00\x21\x00\x01\x01\x02\x02\x01",
  23153. .ilen = 72,
  23154. .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
  23155. "\x00\x00\x00\x00\x49\x56\xED\x7E"
  23156. "\x3B\x24\x4C\xFE",
  23157. .alen = 20,
  23158. .result = "\x89\xBA\x3E\xEF\xE6\xD6\xCF\xDB"
  23159. "\x83\x60\xF5\xBA\x3A\x56\x79\xE6"
  23160. "\x7E\x0C\x53\xCF\x9E\x87\xE0\x4E"
  23161. "\x1A\x26\x01\x24\xC7\x2E\x3D\xBF"
  23162. "\x29\x2C\x91\xC1\xB8\xA8\xCF\xE0"
  23163. "\x39\xF8\x53\x6D\x31\x22\x2B\xBF"
  23164. "\x98\x81\xFC\x34\xEE\x85\x36\xCD"
  23165. "\x26\xDB\x6C\x7A\x0C\x77\x8A\x35"
  23166. "\x18\x85\x54\xB2\xBC\xDD\x3F\x43"
  23167. "\x61\x06\x8A\xDF\x86\x3F\xB4\xAC"
  23168. "\x97\xDC\xBD\xFD\x92\x10\xC5\xFF",
  23169. .rlen = 88,
  23170. }, {
  23171. .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
  23172. "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
  23173. "\xCA\xFE\xBA",
  23174. .klen = 19,
  23175. .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  23176. .input = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
  23177. "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
  23178. "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
  23179. "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
  23180. "\x00\x01\x00\x00\x00\x00\x00\x00"
  23181. "\x03\x73\x69\x70\x09\x63\x79\x62"
  23182. "\x65\x72\x63\x69\x74\x79\x02\x64"
  23183. "\x6B\x00\x00\x01\x00\x01\x00\x01",
  23184. .ilen = 64,
  23185. .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
  23186. "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  23187. .alen = 16,
  23188. .result = "\x4B\xC2\x70\x60\x64\xD2\xF3\xC8"
  23189. "\xE5\x26\x8A\xDE\xB8\x7E\x7D\x16"
  23190. "\x56\xC7\xD2\x88\xBA\x8D\x58\xAF"
  23191. "\xF5\x71\xB6\x37\x84\xA7\xB1\x99"
  23192. "\x51\x5C\x0D\xA0\x27\xDE\xE7\x2D"
  23193. "\xEF\x25\x88\x1F\x1D\x77\x11\xFF"
  23194. "\xDB\xED\xEE\x56\x16\xC5\x5C\x9B"
  23195. "\x00\x62\x1F\x68\x4E\x7C\xA0\x97"
  23196. "\x10\x72\x7E\x53\x13\x3B\x68\xE4"
  23197. "\x30\x99\x91\x79\x09\xEA\xFF\x6A",
  23198. .rlen = 80,
  23199. }, {
  23200. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  23201. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  23202. "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  23203. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  23204. "\x11\x22\x33",
  23205. .klen = 35,
  23206. .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
  23207. .input = "\x45\x00\x00\x30\x69\xA6\x40\x00"
  23208. "\x80\x06\x26\x90\xC0\xA8\x01\x02"
  23209. "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
  23210. "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
  23211. "\x70\x02\x40\x00\x20\xBF\x00\x00"
  23212. "\x02\x04\x05\xB4\x01\x01\x04\x02"
  23213. "\x01\x02\x02\x01",
  23214. .ilen = 52,
  23215. .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
  23216. "\x01\x02\x03\x04\x05\x06\x07\x08",
  23217. .alen = 16,
  23218. .result = "\xD6\x31\x0D\x2B\x3D\x6F\xBD\x2F"
  23219. "\x58\x41\x7E\xFF\x9A\x9E\x09\xB4"
  23220. "\x1A\xF7\xF6\x42\x31\xCD\xBF\xAD"
  23221. "\x27\x0E\x2C\xF2\xDB\x10\xDF\x55"
  23222. "\x8F\x0D\xD7\xAC\x23\xBD\x42\x10"
  23223. "\xD0\xB2\xAF\xD8\x37\xAC\x6B\x0B"
  23224. "\x11\xD4\x0B\x12\xEC\xB4\xB1\x92"
  23225. "\x23\xA6\x10\xB0\x26\xD6\xD9\x26"
  23226. "\x5A\x48\x6A\x3E",
  23227. .rlen = 68,
  23228. }, {
  23229. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  23230. "\x00\x00\x00\x00\x00\x00\x00\x00"
  23231. "\x00\x00\x00",
  23232. .klen = 19,
  23233. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  23234. .input = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
  23235. "\x80\x01\xCB\x7A\x40\x67\x93\x18"
  23236. "\x01\x01\x01\x01\x08\x00\x07\x5C"
  23237. "\x02\x00\x44\x00\x61\x62\x63\x64"
  23238. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  23239. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  23240. "\x75\x76\x77\x61\x62\x63\x64\x65"
  23241. "\x66\x67\x68\x69\x01\x02\x02\x01",
  23242. .ilen = 64,
  23243. .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
  23244. "\x00\x00\x00\x00\x00\x00\x00\x00",
  23245. .alen = 16,
  23246. .result = "\x6B\x9A\xCA\x57\x43\x91\xFC\x6F"
  23247. "\x92\x51\x23\xA4\xC1\x5B\xF0\x10"
  23248. "\xF3\x13\xF4\xF8\xA1\x9A\xB4\xDC"
  23249. "\x89\xC8\xF8\x42\x62\x95\xB7\xCB"
  23250. "\xB8\xF5\x0F\x1B\x2E\x94\xA2\xA7"
  23251. "\xBF\xFB\x8A\x92\x13\x63\xD1\x3C"
  23252. "\x08\xF5\xE8\xA6\xAA\xF6\x34\xF9"
  23253. "\x42\x05\xAF\xB3\xE7\x9A\xFC\xEE"
  23254. "\x36\x25\xC1\x10\x12\x1C\xCA\x82"
  23255. "\xEA\xE6\x63\x5A\x57\x28\xA9\x9A",
  23256. .rlen = 80,
  23257. }, {
  23258. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  23259. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  23260. "\x57\x69\x0E",
  23261. .klen = 19,
  23262. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  23263. .input = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
  23264. "\x80\x01\xCB\x7C\x40\x67\x93\x18"
  23265. "\x01\x01\x01\x01\x08\x00\x08\x5C"
  23266. "\x02\x00\x43\x00\x61\x62\x63\x64"
  23267. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  23268. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  23269. "\x75\x76\x77\x61\x62\x63\x64\x65"
  23270. "\x66\x67\x68\x69\x01\x02\x02\x01",
  23271. .ilen = 64,
  23272. .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
  23273. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  23274. "\xA2\xFC\xA1\xA3",
  23275. .alen = 20,
  23276. .result = "\x6A\x6B\x45\x2B\x7C\x67\x52\xF6"
  23277. "\x10\x60\x40\x62\x6B\x4F\x97\x8E"
  23278. "\x0B\xB2\x22\x97\xCB\x21\xE0\x90"
  23279. "\xA2\xE7\xD1\x41\x30\xE4\x4B\x1B"
  23280. "\x79\x01\x58\x50\x01\x06\xE1\xE0"
  23281. "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
  23282. "\x30\xB8\xE5\xDF\xD7\x12\x56\x75"
  23283. "\xD0\x95\xB7\xB8\x91\x42\xF7\xFD"
  23284. "\x97\x57\xCA\xC1\x20\xD0\x86\xB9"
  23285. "\x66\x9D\xB4\x2B\x96\x22\xAC\x67",
  23286. .rlen = 80,
  23287. }, {
  23288. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  23289. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  23290. "\x57\x69\x0E",
  23291. .klen = 19,
  23292. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  23293. .input = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
  23294. "\x80\x01\x44\x1F\x40\x67\x93\xB6"
  23295. "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
  23296. "\x01\x02\x02\x01",
  23297. .ilen = 28,
  23298. .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
  23299. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  23300. "\xA2\xFC\xA1\xA3",
  23301. .alen = 20,
  23302. .result = "\x6A\x6B\x45\x0B\xA7\x06\x52\xF6"
  23303. "\x10\x60\xCF\x01\x6B\x4F\x97\x20"
  23304. "\xEA\xB3\x23\x94\xC9\x21\x1D\x33"
  23305. "\xA1\xE5\x90\x40\x05\x37\x45\x70"
  23306. "\xB5\xD6\x09\x0A\x23\x73\x33\xF9"
  23307. "\x08\xB4\x22\xE4",
  23308. .rlen = 44,
  23309. }, {
  23310. .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
  23311. "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
  23312. "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
  23313. "\xCA\xFE\xBA",
  23314. .klen = 27,
  23315. .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  23316. .input = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
  23317. "\x40\x06\x78\x80\x0A\x01\x03\x8F"
  23318. "\x0A\x01\x06\x12\x80\x23\x06\xB8"
  23319. "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
  23320. "\x50\x10\x16\xD0\x75\x68\x00\x01",
  23321. .ilen = 40,
  23322. .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
  23323. "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  23324. .alen = 16,
  23325. .result = "\x05\x22\x15\xD1\x52\x56\x85\x04"
  23326. "\xA8\x5C\x5D\x6D\x7E\x6E\xF5\xFA"
  23327. "\xEA\x16\x37\x50\xF3\xDF\x84\x3B"
  23328. "\x2F\x32\x18\x57\x34\x2A\x8C\x23"
  23329. "\x67\xDF\x6D\x35\x7B\x54\x0D\xFB"
  23330. "\x34\xA5\x9F\x6C\x48\x30\x1E\x22"
  23331. "\xFE\xB1\x22\x17\x17\x8A\xB9\x5B",
  23332. .rlen = 56,
  23333. }, {
  23334. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  23335. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  23336. "\xDE\xCA\xF8",
  23337. .klen = 19,
  23338. .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
  23339. .input = "\x45\x00\x00\x49\x33\xBA\x00\x00"
  23340. "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
  23341. "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
  23342. "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
  23343. "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
  23344. "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
  23345. "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
  23346. "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
  23347. "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
  23348. "\x23\x01\x01\x01",
  23349. .ilen = 76,
  23350. .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
  23351. "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
  23352. "\xCE\xFA\xCE\x74",
  23353. .alen = 20,
  23354. .result = "\x92\xD0\x53\x79\x33\x38\xD5\xF3"
  23355. "\x7D\xE4\x7A\x8E\x86\x03\xC9\x90"
  23356. "\x96\x35\xAB\x9C\xFB\xE8\xA3\x76"
  23357. "\xE9\xE9\xE2\xD1\x2E\x11\x0E\x00"
  23358. "\xFA\xCE\xB5\x9E\x02\xA7\x7B\xEA"
  23359. "\x71\x9A\x58\xFB\xA5\x8A\xE1\xB7"
  23360. "\x9C\x39\x9D\xE3\xB5\x6E\x69\xE6"
  23361. "\x63\xC9\xDB\x05\x69\x51\x12\xAD"
  23362. "\x3E\x00\x32\x73\x86\xF2\xEE\xF5"
  23363. "\x0F\xE8\x81\x7E\x84\xD3\xC0\x0D"
  23364. "\x76\xD6\x55\xC6\xB4\xC2\x34\xC7"
  23365. "\x12\x25\x0B\xF9",
  23366. .rlen = 92,
  23367. }, {
  23368. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  23369. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  23370. "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  23371. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  23372. "\x73\x61\x6C",
  23373. .klen = 35,
  23374. .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
  23375. .input = "\x45\x08\x00\x28\x73\x2C\x00\x00"
  23376. "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
  23377. "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
  23378. "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
  23379. "\x50\x10\x1F\x64\x6D\x54\x00\x01",
  23380. .ilen = 40,
  23381. .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
  23382. "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
  23383. "\x69\x76\x65\x63",
  23384. .alen = 20,
  23385. .result = "\xCC\x74\xB7\xD3\xB0\x38\x50\x42"
  23386. "\x2C\x64\x87\x46\x1E\x34\x10\x05"
  23387. "\x29\x6B\xBB\x36\xE9\x69\xAD\x92"
  23388. "\x82\xA1\x10\x6A\xEB\x0F\xDC\x7D"
  23389. "\x08\xBA\xF3\x91\xCA\xAA\x61\xDA"
  23390. "\x62\xF4\x14\x61\x5C\x9D\xB5\xA7"
  23391. "\xEE\xD7\xB9\x7E\x87\x99\x9B\x7D",
  23392. .rlen = 56,
  23393. }, {
  23394. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  23395. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  23396. "\x57\x69\x0E",
  23397. .klen = 19,
  23398. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  23399. .input = "\x45\x00\x00\x49\x33\x3E\x00\x00"
  23400. "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
  23401. "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
  23402. "\x00\x35\xCB\x45\x80\x03\x02\x5B"
  23403. "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
  23404. "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
  23405. "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
  23406. "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
  23407. "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
  23408. "\x15\x01\x01\x01",
  23409. .ilen = 76,
  23410. .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
  23411. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  23412. "\xA2\xFC\xA1\xA3",
  23413. .alen = 20,
  23414. .result = "\x6A\x6B\x45\x5E\xD6\x9A\x52\xF6"
  23415. "\xEF\x70\x1A\x9C\xE8\xD3\x19\x86"
  23416. "\xC8\x02\xF0\xB0\x03\x09\xD9\x02"
  23417. "\xA0\xD2\x59\x04\xD1\x85\x2A\x24"
  23418. "\x1C\x67\x3E\xD8\x68\x72\x06\x94"
  23419. "\x97\xBA\x4F\x76\x8D\xB0\x44\x5B"
  23420. "\x69\xBF\xD5\xE2\x3D\xF1\x0B\x0C"
  23421. "\xC0\xBF\xB1\x8F\x70\x09\x9E\xCE"
  23422. "\xA5\xF2\x55\x58\x84\xFA\xF9\xB5"
  23423. "\x23\xF4\x84\x40\x74\x14\x8A\x6B"
  23424. "\xDB\xD7\x67\xED\xA4\x93\xF3\x47"
  23425. "\xCC\xF7\x46\x6F",
  23426. .rlen = 92,
  23427. }, {
  23428. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  23429. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  23430. "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  23431. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  23432. "\x73\x61\x6C",
  23433. .klen = 35,
  23434. .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
  23435. .input = "\x63\x69\x73\x63\x6F\x01\x72\x75"
  23436. "\x6C\x65\x73\x01\x74\x68\x65\x01"
  23437. "\x6E\x65\x74\x77\x65\x01\x64\x65"
  23438. "\x66\x69\x6E\x65\x01\x74\x68\x65"
  23439. "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
  23440. "\x67\x69\x65\x73\x01\x74\x68\x61"
  23441. "\x74\x77\x69\x6C\x6C\x01\x64\x65"
  23442. "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
  23443. "\x72\x72\x6F\x77\x01\x02\x02\x01",
  23444. .ilen = 72,
  23445. .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
  23446. "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
  23447. "\x69\x76\x65\x63",
  23448. .alen = 20,
  23449. .result = "\xEA\x15\xC4\x98\xAC\x15\x22\x37"
  23450. "\x00\x07\x1D\xBE\x60\x5D\x73\x16"
  23451. "\x4D\x0F\xCC\xCE\x8A\xD0\x49\xD4"
  23452. "\x39\xA3\xD1\xB1\x21\x0A\x92\x1A"
  23453. "\x2C\xCF\x8F\x9D\xC9\x91\x0D\xB4"
  23454. "\x15\xFC\xBC\xA5\xC5\xBF\x54\xE5"
  23455. "\x1C\xC7\x32\x41\x07\x7B\x2C\xB6"
  23456. "\x5C\x23\x7C\x93\xEA\xEF\x23\x1C"
  23457. "\x73\xF4\xE7\x12\x84\x4C\x37\x0A"
  23458. "\x4A\x8F\x06\x37\x48\xF9\xF9\x05"
  23459. "\x55\x13\x40\xC3\xD5\x55\x3A\x3D",
  23460. .rlen = 88,
  23461. }, {
  23462. .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
  23463. "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
  23464. "\xD9\x66\x42",
  23465. .klen = 19,
  23466. .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
  23467. .input = "\x01\x02\x02\x01",
  23468. .ilen = 4,
  23469. .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
  23470. "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
  23471. .alen = 16,
  23472. .result = "\x4C\x72\x63\x30\x2F\xE6\x56\xDD"
  23473. "\xD0\xD8\x60\x9D\x8B\xEF\x85\x90"
  23474. "\xF7\x61\x24\x62",
  23475. .rlen = 20,
  23476. }, {
  23477. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  23478. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  23479. "\xDE\xCA\xF8",
  23480. .klen = 19,
  23481. .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
  23482. .input = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
  23483. "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
  23484. "\x62\x65\x00\x01",
  23485. .ilen = 20,
  23486. .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
  23487. "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
  23488. "\xCE\xFA\xCE\x74",
  23489. .alen = 20,
  23490. .result = "\xA3\xBF\x52\x52\x65\x83\xBA\x81"
  23491. "\x03\x9B\x84\xFC\x44\x8C\xBB\x81"
  23492. "\x36\xE1\x78\xBB\xA5\x49\x3A\xD0"
  23493. "\xF0\x6B\x21\xAF\x98\xC0\x34\xDC"
  23494. "\x17\x17\x65\xAD",
  23495. .rlen = 36,
  23496. }, {
  23497. .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
  23498. "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
  23499. "\x61\x61\x6E\x64\x64\x6F\x69\x74"
  23500. "\x62\x65\x66\x6F\x72\x65\x69\x61"
  23501. "\x74\x75\x72",
  23502. .klen = 35,
  23503. .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
  23504. .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
  23505. "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
  23506. "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
  23507. "\x02\x00\x07\x00\x61\x62\x63\x64"
  23508. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  23509. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  23510. "\x01\x02\x02\x01",
  23511. .ilen = 52,
  23512. .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
  23513. "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
  23514. "\x67\x65\x74\x6D",
  23515. .alen = 20,
  23516. .result = "\x96\xFD\x86\xF8\xD1\x98\xFF\x10"
  23517. "\xAB\x8C\xDA\x8A\x5A\x08\x38\x1A"
  23518. "\x48\x59\x80\x18\x1A\x18\x1A\x04"
  23519. "\xC9\x0D\xE3\xE7\x0E\xA4\x0B\x75"
  23520. "\x92\x9C\x52\x5C\x0B\xFB\xF8\xAF"
  23521. "\x16\xC3\x35\xA8\xE7\xCE\x84\x04"
  23522. "\xEB\x40\x6B\x7A\x8E\x75\xBB\x42"
  23523. "\xE0\x63\x4B\x21\x44\xA2\x2B\x2B"
  23524. "\x39\xDB\xC8\xDC",
  23525. .rlen = 68,
  23526. }, {
  23527. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  23528. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  23529. "\x57\x69\x0E",
  23530. .klen = 19,
  23531. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  23532. .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
  23533. "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
  23534. "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
  23535. "\x02\x00\x07\x00\x61\x62\x63\x64"
  23536. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  23537. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  23538. "\x01\x02\x02\x01",
  23539. .ilen = 52,
  23540. .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
  23541. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  23542. "\xA2\xFC\xA1\xA3",
  23543. .alen = 20,
  23544. .result = "\x6A\x6B\x45\x27\x3F\x9E\x52\xF6"
  23545. "\x10\x60\x54\x25\xEB\x80\x04\x93"
  23546. "\xCA\x1B\x23\x97\xCB\x21\x2E\x01"
  23547. "\xA2\xE7\x95\x41\x30\xE4\x4B\x1B"
  23548. "\x79\x01\x58\x50\x01\x06\xE1\xE0"
  23549. "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
  23550. "\x44\xCC\x90\xBF\x00\x94\x94\x92"
  23551. "\x20\x17\x0C\x1B\x55\xDE\x7E\x68"
  23552. "\xF4\x95\x5D\x4F",
  23553. .rlen = 68,
  23554. }, {
  23555. .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
  23556. "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
  23557. "\x22\x43\x3C",
  23558. .klen = 19,
  23559. .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
  23560. .input = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
  23561. "\x61\x62\x63\x64\x65\x66\x67\x68"
  23562. "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
  23563. "\x71\x72\x73\x74\x01\x02\x02\x01",
  23564. .ilen = 32,
  23565. .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
  23566. "\x00\x00\x00\x07\x48\x55\xEC\x7D"
  23567. "\x3A\x23\x4B\xFD",
  23568. .alen = 20,
  23569. .result = "\x67\xE9\x28\xB3\x1C\xA4\x6D\x02"
  23570. "\xF0\xB5\x37\xB6\x6B\x2F\xF5\x4F"
  23571. "\xF8\xA3\x4C\x53\xB8\x12\x09\xBF"
  23572. "\x58\x7D\xCF\x29\xA3\x41\x68\x6B"
  23573. "\xCE\xE8\x79\x85\x3C\xB0\x3A\x8F"
  23574. "\x16\xB0\xA1\x26\xC9\xBC\xBC\xA6",
  23575. .rlen = 48,
  23576. }
  23577. };
  23578. static struct aead_testvec aes_ccm_rfc4309_dec_tv_template[] = {
  23579. { /* Generated using Crypto++ */
  23580. .key = zeroed_string,
  23581. .klen = 19,
  23582. .iv = zeroed_string,
  23583. .result = zeroed_string,
  23584. .rlen = 16,
  23585. .assoc = zeroed_string,
  23586. .alen = 16,
  23587. .input = "\x2E\x9A\xCA\x6B\xDA\x54\xFC\x6F"
  23588. "\x12\x50\xE8\xDE\x81\x3C\x63\x08"
  23589. "\x1A\x22\xBA\x75\xEE\xD4\xD5\xB5"
  23590. "\x27\x50\x01\xAC\x03\x33\x39\xFB",
  23591. .ilen = 32,
  23592. },{
  23593. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  23594. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  23595. "\x00\x00\x00",
  23596. .klen = 19,
  23597. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
  23598. .result = zeroed_string,
  23599. .rlen = 16,
  23600. .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
  23601. "\x00\x00\x00\x00\x00\x00\x00\x01",
  23602. .alen = 16,
  23603. .input = "\xCF\xB9\x99\x17\xC8\x86\x0E\x7F"
  23604. "\x7E\x76\xF8\xE6\xF8\xCC\x1F\x17"
  23605. "\x6A\xE0\x53\x9F\x4B\x73\x7E\xDA"
  23606. "\x08\x09\x4E\xC4\x1E\xAD\xC6\xB0",
  23607. .ilen = 32,
  23608. }, {
  23609. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  23610. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  23611. "\x00\x00\x00",
  23612. .klen = 19,
  23613. .iv = zeroed_string,
  23614. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  23615. "\x01\x01\x01\x01\x01\x01\x01\x01",
  23616. .rlen = 16,
  23617. .assoc = zeroed_string,
  23618. .alen = 16,
  23619. .input = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
  23620. "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
  23621. "\xA1\xE2\xC2\x42\x2B\x81\x70\x40"
  23622. "\xFD\x7F\x76\xD1\x03\x07\xBB\x0C",
  23623. .ilen = 32,
  23624. }, {
  23625. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  23626. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  23627. "\x00\x00\x00",
  23628. .klen = 19,
  23629. .iv = zeroed_string,
  23630. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  23631. "\x01\x01\x01\x01\x01\x01\x01\x01",
  23632. .rlen = 16,
  23633. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
  23634. "\x00\x00\x00\x00\x00\x00\x00\x00",
  23635. .alen = 16,
  23636. .input = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
  23637. "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
  23638. "\x5B\xC0\x73\xE0\x2B\x73\x68\xC9"
  23639. "\x2D\x8C\x58\xC2\x90\x3D\xB0\x3E",
  23640. .ilen = 32,
  23641. }, {
  23642. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  23643. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  23644. "\x00\x00\x00",
  23645. .klen = 19,
  23646. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
  23647. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  23648. "\x01\x01\x01\x01\x01\x01\x01\x01",
  23649. .rlen = 16,
  23650. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
  23651. "\x00\x00\x00\x00\x00\x00\x00\x01",
  23652. .alen = 16,
  23653. .input = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
  23654. "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
  23655. "\x43\x8E\x76\x57\x3B\xB4\x05\xE8"
  23656. "\xA9\x9B\xBF\x25\xE0\x4F\xC0\xED",
  23657. .ilen = 32,
  23658. }, {
  23659. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  23660. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  23661. "\x00\x00\x00",
  23662. .klen = 19,
  23663. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
  23664. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  23665. "\x01\x01\x01\x01\x01\x01\x01\x01"
  23666. "\x01\x01\x01\x01\x01\x01\x01\x01"
  23667. "\x01\x01\x01\x01\x01\x01\x01\x01"
  23668. "\x01\x01\x01\x01\x01\x01\x01\x01"
  23669. "\x01\x01\x01\x01\x01\x01\x01\x01"
  23670. "\x01\x01\x01\x01\x01\x01\x01\x01"
  23671. "\x01\x01\x01\x01\x01\x01\x01\x01",
  23672. .rlen = 64,
  23673. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
  23674. "\x00\x00\x00\x00\x00\x00\x00\x01",
  23675. .alen = 16,
  23676. .input = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
  23677. "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
  23678. "\x9C\xA4\x97\x83\x3F\x01\xA5\xF4"
  23679. "\x43\x09\xE7\xB8\xE9\xD1\xD7\x02"
  23680. "\x9B\xAB\x39\x18\xEB\x94\x34\x36"
  23681. "\xE6\xC5\xC8\x9B\x00\x81\x9E\x49"
  23682. "\x1D\x78\xE1\x48\xE3\xE9\xEA\x8E"
  23683. "\x3A\x2B\x67\x5D\x35\x6A\x0F\xDB"
  23684. "\x02\x73\xDD\xE7\x30\x4A\x30\x54"
  23685. "\x1A\x9D\x09\xCA\xC8\x1C\x32\x5F",
  23686. .ilen = 80,
  23687. }, {
  23688. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  23689. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  23690. "\x00\x00\x00",
  23691. .klen = 19,
  23692. .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
  23693. .result = "\xff\xff\xff\xff\xff\xff\xff\xff"
  23694. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23695. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23696. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23697. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23698. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23699. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23700. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23701. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23702. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23703. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23704. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23705. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23706. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23707. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23708. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23709. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23710. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23711. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23712. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23713. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23714. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23715. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23716. "\xff\xff\xff\xff\xff\xff\xff\xff",
  23717. .rlen = 192,
  23718. .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  23719. "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
  23720. "\x89\xab\xcd\xef",
  23721. .alen = 20,
  23722. .input = "\x64\x17\xDC\x24\x9D\x92\xBA\x5E"
  23723. "\x7C\x64\x6D\x33\x46\x77\xAC\xB1"
  23724. "\x5C\x9E\xE2\xC7\x27\x11\x3E\x95"
  23725. "\x7D\xBE\x28\xC8\xC1\xCA\x5E\x8C"
  23726. "\xB4\xE2\xDE\x9F\x53\x59\x26\xDB"
  23727. "\x0C\xD4\xE4\x07\x9A\xE6\x3E\x01"
  23728. "\x58\x0D\x3E\x3D\xD5\x21\xEB\x04"
  23729. "\x06\x9D\x5F\xB9\x02\x49\x1A\x2B"
  23730. "\xBA\xF0\x4E\x3B\x85\x50\x5B\x09"
  23731. "\xFE\xEC\xFC\x54\xEC\x0C\xE2\x79"
  23732. "\x8A\x2F\x5F\xD7\x05\x5D\xF1\x6D"
  23733. "\x22\xEB\xD1\x09\x80\x3F\x5A\x70"
  23734. "\xB2\xB9\xD3\x63\x99\xC2\x4D\x1B"
  23735. "\x36\x12\x00\x89\xAA\x5D\x55\xDA"
  23736. "\x1D\x5B\xD8\x3C\x5F\x09\xD2\xE6"
  23737. "\x39\x41\x5C\xF0\xBE\x26\x4E\x5F"
  23738. "\x2B\x50\x44\x52\xC2\x10\x7D\x38"
  23739. "\x82\x64\x83\x0C\xAE\x49\xD0\xE5"
  23740. "\x4F\xE5\x66\x4C\x58\x7A\xEE\x43"
  23741. "\x3B\x51\xFE\xBA\x24\x8A\xFE\xDC"
  23742. "\x19\x6D\x60\x66\x61\xF9\x9A\x3F"
  23743. "\x75\xFC\x38\x53\x5B\xB5\xCD\x52"
  23744. "\x4F\xE5\xE4\xC9\xFE\x10\xCB\x98"
  23745. "\xF0\x06\x5B\x07\xAB\xBB\xF4\x0E"
  23746. "\x2D\xC2\xDD\x5D\xDD\x22\x9A\xCC"
  23747. "\x39\xAB\x63\xA5\x3D\x9C\x51\x8A",
  23748. .ilen = 208,
  23749. }, { /* From draft-mcgrew-gcm-test-01 */
  23750. .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
  23751. "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
  23752. "\x2E\x44\x3B",
  23753. .klen = 19,
  23754. .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
  23755. .result = "\x45\x00\x00\x48\x69\x9A\x00\x00"
  23756. "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
  23757. "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
  23758. "\x38\xD3\x01\x00\x00\x01\x00\x00"
  23759. "\x00\x00\x00\x00\x04\x5F\x73\x69"
  23760. "\x70\x04\x5F\x75\x64\x70\x03\x73"
  23761. "\x69\x70\x09\x63\x79\x62\x65\x72"
  23762. "\x63\x69\x74\x79\x02\x64\x6B\x00"
  23763. "\x00\x21\x00\x01\x01\x02\x02\x01",
  23764. .rlen = 72,
  23765. .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
  23766. "\x00\x00\x00\x00\x49\x56\xED\x7E"
  23767. "\x3B\x24\x4C\xFE",
  23768. .alen = 20,
  23769. .input = "\x89\xBA\x3E\xEF\xE6\xD6\xCF\xDB"
  23770. "\x83\x60\xF5\xBA\x3A\x56\x79\xE6"
  23771. "\x7E\x0C\x53\xCF\x9E\x87\xE0\x4E"
  23772. "\x1A\x26\x01\x24\xC7\x2E\x3D\xBF"
  23773. "\x29\x2C\x91\xC1\xB8\xA8\xCF\xE0"
  23774. "\x39\xF8\x53\x6D\x31\x22\x2B\xBF"
  23775. "\x98\x81\xFC\x34\xEE\x85\x36\xCD"
  23776. "\x26\xDB\x6C\x7A\x0C\x77\x8A\x35"
  23777. "\x18\x85\x54\xB2\xBC\xDD\x3F\x43"
  23778. "\x61\x06\x8A\xDF\x86\x3F\xB4\xAC"
  23779. "\x97\xDC\xBD\xFD\x92\x10\xC5\xFF",
  23780. .ilen = 88,
  23781. }, {
  23782. .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
  23783. "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
  23784. "\xCA\xFE\xBA",
  23785. .klen = 19,
  23786. .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  23787. .result = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
  23788. "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
  23789. "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
  23790. "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
  23791. "\x00\x01\x00\x00\x00\x00\x00\x00"
  23792. "\x03\x73\x69\x70\x09\x63\x79\x62"
  23793. "\x65\x72\x63\x69\x74\x79\x02\x64"
  23794. "\x6B\x00\x00\x01\x00\x01\x00\x01",
  23795. .rlen = 64,
  23796. .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
  23797. "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  23798. .alen = 16,
  23799. .input = "\x4B\xC2\x70\x60\x64\xD2\xF3\xC8"
  23800. "\xE5\x26\x8A\xDE\xB8\x7E\x7D\x16"
  23801. "\x56\xC7\xD2\x88\xBA\x8D\x58\xAF"
  23802. "\xF5\x71\xB6\x37\x84\xA7\xB1\x99"
  23803. "\x51\x5C\x0D\xA0\x27\xDE\xE7\x2D"
  23804. "\xEF\x25\x88\x1F\x1D\x77\x11\xFF"
  23805. "\xDB\xED\xEE\x56\x16\xC5\x5C\x9B"
  23806. "\x00\x62\x1F\x68\x4E\x7C\xA0\x97"
  23807. "\x10\x72\x7E\x53\x13\x3B\x68\xE4"
  23808. "\x30\x99\x91\x79\x09\xEA\xFF\x6A",
  23809. .ilen = 80,
  23810. }, {
  23811. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  23812. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  23813. "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  23814. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  23815. "\x11\x22\x33",
  23816. .klen = 35,
  23817. .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
  23818. .result = "\x45\x00\x00\x30\x69\xA6\x40\x00"
  23819. "\x80\x06\x26\x90\xC0\xA8\x01\x02"
  23820. "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
  23821. "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
  23822. "\x70\x02\x40\x00\x20\xBF\x00\x00"
  23823. "\x02\x04\x05\xB4\x01\x01\x04\x02"
  23824. "\x01\x02\x02\x01",
  23825. .rlen = 52,
  23826. .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
  23827. "\x01\x02\x03\x04\x05\x06\x07\x08",
  23828. .alen = 16,
  23829. .input = "\xD6\x31\x0D\x2B\x3D\x6F\xBD\x2F"
  23830. "\x58\x41\x7E\xFF\x9A\x9E\x09\xB4"
  23831. "\x1A\xF7\xF6\x42\x31\xCD\xBF\xAD"
  23832. "\x27\x0E\x2C\xF2\xDB\x10\xDF\x55"
  23833. "\x8F\x0D\xD7\xAC\x23\xBD\x42\x10"
  23834. "\xD0\xB2\xAF\xD8\x37\xAC\x6B\x0B"
  23835. "\x11\xD4\x0B\x12\xEC\xB4\xB1\x92"
  23836. "\x23\xA6\x10\xB0\x26\xD6\xD9\x26"
  23837. "\x5A\x48\x6A\x3E",
  23838. .ilen = 68,
  23839. }, {
  23840. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  23841. "\x00\x00\x00\x00\x00\x00\x00\x00"
  23842. "\x00\x00\x00",
  23843. .klen = 19,
  23844. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  23845. .result = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
  23846. "\x80\x01\xCB\x7A\x40\x67\x93\x18"
  23847. "\x01\x01\x01\x01\x08\x00\x07\x5C"
  23848. "\x02\x00\x44\x00\x61\x62\x63\x64"
  23849. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  23850. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  23851. "\x75\x76\x77\x61\x62\x63\x64\x65"
  23852. "\x66\x67\x68\x69\x01\x02\x02\x01",
  23853. .rlen = 64,
  23854. .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
  23855. "\x00\x00\x00\x00\x00\x00\x00\x00",
  23856. .alen = 16,
  23857. .input = "\x6B\x9A\xCA\x57\x43\x91\xFC\x6F"
  23858. "\x92\x51\x23\xA4\xC1\x5B\xF0\x10"
  23859. "\xF3\x13\xF4\xF8\xA1\x9A\xB4\xDC"
  23860. "\x89\xC8\xF8\x42\x62\x95\xB7\xCB"
  23861. "\xB8\xF5\x0F\x1B\x2E\x94\xA2\xA7"
  23862. "\xBF\xFB\x8A\x92\x13\x63\xD1\x3C"
  23863. "\x08\xF5\xE8\xA6\xAA\xF6\x34\xF9"
  23864. "\x42\x05\xAF\xB3\xE7\x9A\xFC\xEE"
  23865. "\x36\x25\xC1\x10\x12\x1C\xCA\x82"
  23866. "\xEA\xE6\x63\x5A\x57\x28\xA9\x9A",
  23867. .ilen = 80,
  23868. }, {
  23869. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  23870. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  23871. "\x57\x69\x0E",
  23872. .klen = 19,
  23873. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  23874. .result = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
  23875. "\x80\x01\xCB\x7C\x40\x67\x93\x18"
  23876. "\x01\x01\x01\x01\x08\x00\x08\x5C"
  23877. "\x02\x00\x43\x00\x61\x62\x63\x64"
  23878. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  23879. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  23880. "\x75\x76\x77\x61\x62\x63\x64\x65"
  23881. "\x66\x67\x68\x69\x01\x02\x02\x01",
  23882. .rlen = 64,
  23883. .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
  23884. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  23885. "\xA2\xFC\xA1\xA3",
  23886. .alen = 20,
  23887. .input = "\x6A\x6B\x45\x2B\x7C\x67\x52\xF6"
  23888. "\x10\x60\x40\x62\x6B\x4F\x97\x8E"
  23889. "\x0B\xB2\x22\x97\xCB\x21\xE0\x90"
  23890. "\xA2\xE7\xD1\x41\x30\xE4\x4B\x1B"
  23891. "\x79\x01\x58\x50\x01\x06\xE1\xE0"
  23892. "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
  23893. "\x30\xB8\xE5\xDF\xD7\x12\x56\x75"
  23894. "\xD0\x95\xB7\xB8\x91\x42\xF7\xFD"
  23895. "\x97\x57\xCA\xC1\x20\xD0\x86\xB9"
  23896. "\x66\x9D\xB4\x2B\x96\x22\xAC\x67",
  23897. .ilen = 80,
  23898. }, {
  23899. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  23900. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  23901. "\x57\x69\x0E",
  23902. .klen = 19,
  23903. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  23904. .result = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
  23905. "\x80\x01\x44\x1F\x40\x67\x93\xB6"
  23906. "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
  23907. "\x01\x02\x02\x01",
  23908. .rlen = 28,
  23909. .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
  23910. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  23911. "\xA2\xFC\xA1\xA3",
  23912. .alen = 20,
  23913. .input = "\x6A\x6B\x45\x0B\xA7\x06\x52\xF6"
  23914. "\x10\x60\xCF\x01\x6B\x4F\x97\x20"
  23915. "\xEA\xB3\x23\x94\xC9\x21\x1D\x33"
  23916. "\xA1\xE5\x90\x40\x05\x37\x45\x70"
  23917. "\xB5\xD6\x09\x0A\x23\x73\x33\xF9"
  23918. "\x08\xB4\x22\xE4",
  23919. .ilen = 44,
  23920. }, {
  23921. .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
  23922. "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
  23923. "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
  23924. "\xCA\xFE\xBA",
  23925. .klen = 27,
  23926. .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  23927. .result = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
  23928. "\x40\x06\x78\x80\x0A\x01\x03\x8F"
  23929. "\x0A\x01\x06\x12\x80\x23\x06\xB8"
  23930. "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
  23931. "\x50\x10\x16\xD0\x75\x68\x00\x01",
  23932. .rlen = 40,
  23933. .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
  23934. "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  23935. .alen = 16,
  23936. .input = "\x05\x22\x15\xD1\x52\x56\x85\x04"
  23937. "\xA8\x5C\x5D\x6D\x7E\x6E\xF5\xFA"
  23938. "\xEA\x16\x37\x50\xF3\xDF\x84\x3B"
  23939. "\x2F\x32\x18\x57\x34\x2A\x8C\x23"
  23940. "\x67\xDF\x6D\x35\x7B\x54\x0D\xFB"
  23941. "\x34\xA5\x9F\x6C\x48\x30\x1E\x22"
  23942. "\xFE\xB1\x22\x17\x17\x8A\xB9\x5B",
  23943. .ilen = 56,
  23944. }, {
  23945. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  23946. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  23947. "\xDE\xCA\xF8",
  23948. .klen = 19,
  23949. .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
  23950. .result = "\x45\x00\x00\x49\x33\xBA\x00\x00"
  23951. "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
  23952. "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
  23953. "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
  23954. "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
  23955. "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
  23956. "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
  23957. "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
  23958. "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
  23959. "\x23\x01\x01\x01",
  23960. .rlen = 76,
  23961. .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
  23962. "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
  23963. "\xCE\xFA\xCE\x74",
  23964. .alen = 20,
  23965. .input = "\x92\xD0\x53\x79\x33\x38\xD5\xF3"
  23966. "\x7D\xE4\x7A\x8E\x86\x03\xC9\x90"
  23967. "\x96\x35\xAB\x9C\xFB\xE8\xA3\x76"
  23968. "\xE9\xE9\xE2\xD1\x2E\x11\x0E\x00"
  23969. "\xFA\xCE\xB5\x9E\x02\xA7\x7B\xEA"
  23970. "\x71\x9A\x58\xFB\xA5\x8A\xE1\xB7"
  23971. "\x9C\x39\x9D\xE3\xB5\x6E\x69\xE6"
  23972. "\x63\xC9\xDB\x05\x69\x51\x12\xAD"
  23973. "\x3E\x00\x32\x73\x86\xF2\xEE\xF5"
  23974. "\x0F\xE8\x81\x7E\x84\xD3\xC0\x0D"
  23975. "\x76\xD6\x55\xC6\xB4\xC2\x34\xC7"
  23976. "\x12\x25\x0B\xF9",
  23977. .ilen = 92,
  23978. }, {
  23979. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  23980. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  23981. "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  23982. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  23983. "\x73\x61\x6C",
  23984. .klen = 35,
  23985. .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
  23986. .result = "\x45\x08\x00\x28\x73\x2C\x00\x00"
  23987. "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
  23988. "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
  23989. "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
  23990. "\x50\x10\x1F\x64\x6D\x54\x00\x01",
  23991. .rlen = 40,
  23992. .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
  23993. "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
  23994. "\x69\x76\x65\x63",
  23995. .alen = 20,
  23996. .input = "\xCC\x74\xB7\xD3\xB0\x38\x50\x42"
  23997. "\x2C\x64\x87\x46\x1E\x34\x10\x05"
  23998. "\x29\x6B\xBB\x36\xE9\x69\xAD\x92"
  23999. "\x82\xA1\x10\x6A\xEB\x0F\xDC\x7D"
  24000. "\x08\xBA\xF3\x91\xCA\xAA\x61\xDA"
  24001. "\x62\xF4\x14\x61\x5C\x9D\xB5\xA7"
  24002. "\xEE\xD7\xB9\x7E\x87\x99\x9B\x7D",
  24003. .ilen = 56,
  24004. }, {
  24005. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  24006. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  24007. "\x57\x69\x0E",
  24008. .klen = 19,
  24009. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  24010. .result = "\x45\x00\x00\x49\x33\x3E\x00\x00"
  24011. "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
  24012. "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
  24013. "\x00\x35\xCB\x45\x80\x03\x02\x5B"
  24014. "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
  24015. "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
  24016. "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
  24017. "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
  24018. "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
  24019. "\x15\x01\x01\x01",
  24020. .rlen = 76,
  24021. .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
  24022. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  24023. "\xA2\xFC\xA1\xA3",
  24024. .alen = 20,
  24025. .input = "\x6A\x6B\x45\x5E\xD6\x9A\x52\xF6"
  24026. "\xEF\x70\x1A\x9C\xE8\xD3\x19\x86"
  24027. "\xC8\x02\xF0\xB0\x03\x09\xD9\x02"
  24028. "\xA0\xD2\x59\x04\xD1\x85\x2A\x24"
  24029. "\x1C\x67\x3E\xD8\x68\x72\x06\x94"
  24030. "\x97\xBA\x4F\x76\x8D\xB0\x44\x5B"
  24031. "\x69\xBF\xD5\xE2\x3D\xF1\x0B\x0C"
  24032. "\xC0\xBF\xB1\x8F\x70\x09\x9E\xCE"
  24033. "\xA5\xF2\x55\x58\x84\xFA\xF9\xB5"
  24034. "\x23\xF4\x84\x40\x74\x14\x8A\x6B"
  24035. "\xDB\xD7\x67\xED\xA4\x93\xF3\x47"
  24036. "\xCC\xF7\x46\x6F",
  24037. .ilen = 92,
  24038. }, {
  24039. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  24040. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  24041. "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  24042. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  24043. "\x73\x61\x6C",
  24044. .klen = 35,
  24045. .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
  24046. .result = "\x63\x69\x73\x63\x6F\x01\x72\x75"
  24047. "\x6C\x65\x73\x01\x74\x68\x65\x01"
  24048. "\x6E\x65\x74\x77\x65\x01\x64\x65"
  24049. "\x66\x69\x6E\x65\x01\x74\x68\x65"
  24050. "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
  24051. "\x67\x69\x65\x73\x01\x74\x68\x61"
  24052. "\x74\x77\x69\x6C\x6C\x01\x64\x65"
  24053. "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
  24054. "\x72\x72\x6F\x77\x01\x02\x02\x01",
  24055. .rlen = 72,
  24056. .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
  24057. "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
  24058. "\x69\x76\x65\x63",
  24059. .alen = 20,
  24060. .input = "\xEA\x15\xC4\x98\xAC\x15\x22\x37"
  24061. "\x00\x07\x1D\xBE\x60\x5D\x73\x16"
  24062. "\x4D\x0F\xCC\xCE\x8A\xD0\x49\xD4"
  24063. "\x39\xA3\xD1\xB1\x21\x0A\x92\x1A"
  24064. "\x2C\xCF\x8F\x9D\xC9\x91\x0D\xB4"
  24065. "\x15\xFC\xBC\xA5\xC5\xBF\x54\xE5"
  24066. "\x1C\xC7\x32\x41\x07\x7B\x2C\xB6"
  24067. "\x5C\x23\x7C\x93\xEA\xEF\x23\x1C"
  24068. "\x73\xF4\xE7\x12\x84\x4C\x37\x0A"
  24069. "\x4A\x8F\x06\x37\x48\xF9\xF9\x05"
  24070. "\x55\x13\x40\xC3\xD5\x55\x3A\x3D",
  24071. .ilen = 88,
  24072. }, {
  24073. .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
  24074. "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
  24075. "\xD9\x66\x42",
  24076. .klen = 19,
  24077. .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
  24078. .result = "\x01\x02\x02\x01",
  24079. .rlen = 4,
  24080. .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
  24081. "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
  24082. .alen = 16,
  24083. .input = "\x4C\x72\x63\x30\x2F\xE6\x56\xDD"
  24084. "\xD0\xD8\x60\x9D\x8B\xEF\x85\x90"
  24085. "\xF7\x61\x24\x62",
  24086. .ilen = 20,
  24087. }, {
  24088. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  24089. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  24090. "\xDE\xCA\xF8",
  24091. .klen = 19,
  24092. .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
  24093. .result = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
  24094. "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
  24095. "\x62\x65\x00\x01",
  24096. .rlen = 20,
  24097. .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
  24098. "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
  24099. "\xCE\xFA\xCE\x74",
  24100. .alen = 20,
  24101. .input = "\xA3\xBF\x52\x52\x65\x83\xBA\x81"
  24102. "\x03\x9B\x84\xFC\x44\x8C\xBB\x81"
  24103. "\x36\xE1\x78\xBB\xA5\x49\x3A\xD0"
  24104. "\xF0\x6B\x21\xAF\x98\xC0\x34\xDC"
  24105. "\x17\x17\x65\xAD",
  24106. .ilen = 36,
  24107. }, {
  24108. .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
  24109. "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
  24110. "\x61\x61\x6E\x64\x64\x6F\x69\x74"
  24111. "\x62\x65\x66\x6F\x72\x65\x69\x61"
  24112. "\x74\x75\x72",
  24113. .klen = 35,
  24114. .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
  24115. .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
  24116. "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
  24117. "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
  24118. "\x02\x00\x07\x00\x61\x62\x63\x64"
  24119. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  24120. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  24121. "\x01\x02\x02\x01",
  24122. .rlen = 52,
  24123. .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
  24124. "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
  24125. "\x67\x65\x74\x6D",
  24126. .alen = 20,
  24127. .input = "\x96\xFD\x86\xF8\xD1\x98\xFF\x10"
  24128. "\xAB\x8C\xDA\x8A\x5A\x08\x38\x1A"
  24129. "\x48\x59\x80\x18\x1A\x18\x1A\x04"
  24130. "\xC9\x0D\xE3\xE7\x0E\xA4\x0B\x75"
  24131. "\x92\x9C\x52\x5C\x0B\xFB\xF8\xAF"
  24132. "\x16\xC3\x35\xA8\xE7\xCE\x84\x04"
  24133. "\xEB\x40\x6B\x7A\x8E\x75\xBB\x42"
  24134. "\xE0\x63\x4B\x21\x44\xA2\x2B\x2B"
  24135. "\x39\xDB\xC8\xDC",
  24136. .ilen = 68,
  24137. }, {
  24138. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  24139. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  24140. "\x57\x69\x0E",
  24141. .klen = 19,
  24142. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  24143. .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
  24144. "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
  24145. "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
  24146. "\x02\x00\x07\x00\x61\x62\x63\x64"
  24147. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  24148. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  24149. "\x01\x02\x02\x01",
  24150. .rlen = 52,
  24151. .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
  24152. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  24153. "\xA2\xFC\xA1\xA3",
  24154. .alen = 20,
  24155. .input = "\x6A\x6B\x45\x27\x3F\x9E\x52\xF6"
  24156. "\x10\x60\x54\x25\xEB\x80\x04\x93"
  24157. "\xCA\x1B\x23\x97\xCB\x21\x2E\x01"
  24158. "\xA2\xE7\x95\x41\x30\xE4\x4B\x1B"
  24159. "\x79\x01\x58\x50\x01\x06\xE1\xE0"
  24160. "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
  24161. "\x44\xCC\x90\xBF\x00\x94\x94\x92"
  24162. "\x20\x17\x0C\x1B\x55\xDE\x7E\x68"
  24163. "\xF4\x95\x5D\x4F",
  24164. .ilen = 68,
  24165. }, {
  24166. .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
  24167. "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
  24168. "\x22\x43\x3C",
  24169. .klen = 19,
  24170. .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
  24171. .result = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
  24172. "\x61\x62\x63\x64\x65\x66\x67\x68"
  24173. "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
  24174. "\x71\x72\x73\x74\x01\x02\x02\x01",
  24175. .rlen = 32,
  24176. .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
  24177. "\x00\x00\x00\x07\x48\x55\xEC\x7D"
  24178. "\x3A\x23\x4B\xFD",
  24179. .alen = 20,
  24180. .input = "\x67\xE9\x28\xB3\x1C\xA4\x6D\x02"
  24181. "\xF0\xB5\x37\xB6\x6B\x2F\xF5\x4F"
  24182. "\xF8\xA3\x4C\x53\xB8\x12\x09\xBF"
  24183. "\x58\x7D\xCF\x29\xA3\x41\x68\x6B"
  24184. "\xCE\xE8\x79\x85\x3C\xB0\x3A\x8F"
  24185. "\x16\xB0\xA1\x26\xC9\xBC\xBC\xA6",
  24186. .ilen = 48,
  24187. }
  24188. };
  24189. /*
  24190. * ChaCha20-Poly1305 AEAD test vectors from RFC7539 2.8.2./A.5.
  24191. */
  24192. #define RFC7539_ENC_TEST_VECTORS 2
  24193. #define RFC7539_DEC_TEST_VECTORS 2
  24194. static struct aead_testvec rfc7539_enc_tv_template[] = {
  24195. {
  24196. .key = "\x80\x81\x82\x83\x84\x85\x86\x87"
  24197. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  24198. "\x90\x91\x92\x93\x94\x95\x96\x97"
  24199. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
  24200. .klen = 32,
  24201. .iv = "\x07\x00\x00\x00\x40\x41\x42\x43"
  24202. "\x44\x45\x46\x47",
  24203. .assoc = "\x50\x51\x52\x53\xc0\xc1\xc2\xc3"
  24204. "\xc4\xc5\xc6\xc7",
  24205. .alen = 12,
  24206. .input = "\x4c\x61\x64\x69\x65\x73\x20\x61"
  24207. "\x6e\x64\x20\x47\x65\x6e\x74\x6c"
  24208. "\x65\x6d\x65\x6e\x20\x6f\x66\x20"
  24209. "\x74\x68\x65\x20\x63\x6c\x61\x73"
  24210. "\x73\x20\x6f\x66\x20\x27\x39\x39"
  24211. "\x3a\x20\x49\x66\x20\x49\x20\x63"
  24212. "\x6f\x75\x6c\x64\x20\x6f\x66\x66"
  24213. "\x65\x72\x20\x79\x6f\x75\x20\x6f"
  24214. "\x6e\x6c\x79\x20\x6f\x6e\x65\x20"
  24215. "\x74\x69\x70\x20\x66\x6f\x72\x20"
  24216. "\x74\x68\x65\x20\x66\x75\x74\x75"
  24217. "\x72\x65\x2c\x20\x73\x75\x6e\x73"
  24218. "\x63\x72\x65\x65\x6e\x20\x77\x6f"
  24219. "\x75\x6c\x64\x20\x62\x65\x20\x69"
  24220. "\x74\x2e",
  24221. .ilen = 114,
  24222. .result = "\xd3\x1a\x8d\x34\x64\x8e\x60\xdb"
  24223. "\x7b\x86\xaf\xbc\x53\xef\x7e\xc2"
  24224. "\xa4\xad\xed\x51\x29\x6e\x08\xfe"
  24225. "\xa9\xe2\xb5\xa7\x36\xee\x62\xd6"
  24226. "\x3d\xbe\xa4\x5e\x8c\xa9\x67\x12"
  24227. "\x82\xfa\xfb\x69\xda\x92\x72\x8b"
  24228. "\x1a\x71\xde\x0a\x9e\x06\x0b\x29"
  24229. "\x05\xd6\xa5\xb6\x7e\xcd\x3b\x36"
  24230. "\x92\xdd\xbd\x7f\x2d\x77\x8b\x8c"
  24231. "\x98\x03\xae\xe3\x28\x09\x1b\x58"
  24232. "\xfa\xb3\x24\xe4\xfa\xd6\x75\x94"
  24233. "\x55\x85\x80\x8b\x48\x31\xd7\xbc"
  24234. "\x3f\xf4\xde\xf0\x8e\x4b\x7a\x9d"
  24235. "\xe5\x76\xd2\x65\x86\xce\xc6\x4b"
  24236. "\x61\x16\x1a\xe1\x0b\x59\x4f\x09"
  24237. "\xe2\x6a\x7e\x90\x2e\xcb\xd0\x60"
  24238. "\x06\x91",
  24239. .rlen = 130,
  24240. }, {
  24241. .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
  24242. "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
  24243. "\x47\x39\x17\xc1\x40\x2b\x80\x09"
  24244. "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
  24245. .klen = 32,
  24246. .iv = "\x00\x00\x00\x00\x01\x02\x03\x04"
  24247. "\x05\x06\x07\x08",
  24248. .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
  24249. "\x00\x00\x4e\x91",
  24250. .alen = 12,
  24251. .input = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
  24252. "\x2d\x44\x72\x61\x66\x74\x73\x20"
  24253. "\x61\x72\x65\x20\x64\x72\x61\x66"
  24254. "\x74\x20\x64\x6f\x63\x75\x6d\x65"
  24255. "\x6e\x74\x73\x20\x76\x61\x6c\x69"
  24256. "\x64\x20\x66\x6f\x72\x20\x61\x20"
  24257. "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
  24258. "\x6f\x66\x20\x73\x69\x78\x20\x6d"
  24259. "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
  24260. "\x64\x20\x6d\x61\x79\x20\x62\x65"
  24261. "\x20\x75\x70\x64\x61\x74\x65\x64"
  24262. "\x2c\x20\x72\x65\x70\x6c\x61\x63"
  24263. "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
  24264. "\x62\x73\x6f\x6c\x65\x74\x65\x64"
  24265. "\x20\x62\x79\x20\x6f\x74\x68\x65"
  24266. "\x72\x20\x64\x6f\x63\x75\x6d\x65"
  24267. "\x6e\x74\x73\x20\x61\x74\x20\x61"
  24268. "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
  24269. "\x20\x49\x74\x20\x69\x73\x20\x69"
  24270. "\x6e\x61\x70\x70\x72\x6f\x70\x72"
  24271. "\x69\x61\x74\x65\x20\x74\x6f\x20"
  24272. "\x75\x73\x65\x20\x49\x6e\x74\x65"
  24273. "\x72\x6e\x65\x74\x2d\x44\x72\x61"
  24274. "\x66\x74\x73\x20\x61\x73\x20\x72"
  24275. "\x65\x66\x65\x72\x65\x6e\x63\x65"
  24276. "\x20\x6d\x61\x74\x65\x72\x69\x61"
  24277. "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
  24278. "\x63\x69\x74\x65\x20\x74\x68\x65"
  24279. "\x6d\x20\x6f\x74\x68\x65\x72\x20"
  24280. "\x74\x68\x61\x6e\x20\x61\x73\x20"
  24281. "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
  24282. "\x20\x69\x6e\x20\x70\x72\x6f\x67"
  24283. "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
  24284. "\x9d",
  24285. .ilen = 265,
  24286. .result = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
  24287. "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
  24288. "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
  24289. "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
  24290. "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
  24291. "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
  24292. "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
  24293. "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
  24294. "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
  24295. "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
  24296. "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
  24297. "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
  24298. "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
  24299. "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
  24300. "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
  24301. "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
  24302. "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
  24303. "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
  24304. "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
  24305. "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
  24306. "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
  24307. "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
  24308. "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
  24309. "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
  24310. "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
  24311. "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
  24312. "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
  24313. "\x73\xa6\x72\x76\x27\x09\x7a\x10"
  24314. "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
  24315. "\xfa\x68\xf0\xff\x77\x98\x71\x30"
  24316. "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
  24317. "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
  24318. "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
  24319. "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
  24320. "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
  24321. "\x38",
  24322. .rlen = 281,
  24323. },
  24324. };
  24325. static struct aead_testvec rfc7539_dec_tv_template[] = {
  24326. {
  24327. .key = "\x80\x81\x82\x83\x84\x85\x86\x87"
  24328. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  24329. "\x90\x91\x92\x93\x94\x95\x96\x97"
  24330. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
  24331. .klen = 32,
  24332. .iv = "\x07\x00\x00\x00\x40\x41\x42\x43"
  24333. "\x44\x45\x46\x47",
  24334. .assoc = "\x50\x51\x52\x53\xc0\xc1\xc2\xc3"
  24335. "\xc4\xc5\xc6\xc7",
  24336. .alen = 12,
  24337. .input = "\xd3\x1a\x8d\x34\x64\x8e\x60\xdb"
  24338. "\x7b\x86\xaf\xbc\x53\xef\x7e\xc2"
  24339. "\xa4\xad\xed\x51\x29\x6e\x08\xfe"
  24340. "\xa9\xe2\xb5\xa7\x36\xee\x62\xd6"
  24341. "\x3d\xbe\xa4\x5e\x8c\xa9\x67\x12"
  24342. "\x82\xfa\xfb\x69\xda\x92\x72\x8b"
  24343. "\x1a\x71\xde\x0a\x9e\x06\x0b\x29"
  24344. "\x05\xd6\xa5\xb6\x7e\xcd\x3b\x36"
  24345. "\x92\xdd\xbd\x7f\x2d\x77\x8b\x8c"
  24346. "\x98\x03\xae\xe3\x28\x09\x1b\x58"
  24347. "\xfa\xb3\x24\xe4\xfa\xd6\x75\x94"
  24348. "\x55\x85\x80\x8b\x48\x31\xd7\xbc"
  24349. "\x3f\xf4\xde\xf0\x8e\x4b\x7a\x9d"
  24350. "\xe5\x76\xd2\x65\x86\xce\xc6\x4b"
  24351. "\x61\x16\x1a\xe1\x0b\x59\x4f\x09"
  24352. "\xe2\x6a\x7e\x90\x2e\xcb\xd0\x60"
  24353. "\x06\x91",
  24354. .ilen = 130,
  24355. .result = "\x4c\x61\x64\x69\x65\x73\x20\x61"
  24356. "\x6e\x64\x20\x47\x65\x6e\x74\x6c"
  24357. "\x65\x6d\x65\x6e\x20\x6f\x66\x20"
  24358. "\x74\x68\x65\x20\x63\x6c\x61\x73"
  24359. "\x73\x20\x6f\x66\x20\x27\x39\x39"
  24360. "\x3a\x20\x49\x66\x20\x49\x20\x63"
  24361. "\x6f\x75\x6c\x64\x20\x6f\x66\x66"
  24362. "\x65\x72\x20\x79\x6f\x75\x20\x6f"
  24363. "\x6e\x6c\x79\x20\x6f\x6e\x65\x20"
  24364. "\x74\x69\x70\x20\x66\x6f\x72\x20"
  24365. "\x74\x68\x65\x20\x66\x75\x74\x75"
  24366. "\x72\x65\x2c\x20\x73\x75\x6e\x73"
  24367. "\x63\x72\x65\x65\x6e\x20\x77\x6f"
  24368. "\x75\x6c\x64\x20\x62\x65\x20\x69"
  24369. "\x74\x2e",
  24370. .rlen = 114,
  24371. }, {
  24372. .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
  24373. "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
  24374. "\x47\x39\x17\xc1\x40\x2b\x80\x09"
  24375. "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
  24376. .klen = 32,
  24377. .iv = "\x00\x00\x00\x00\x01\x02\x03\x04"
  24378. "\x05\x06\x07\x08",
  24379. .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
  24380. "\x00\x00\x4e\x91",
  24381. .alen = 12,
  24382. .input = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
  24383. "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
  24384. "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
  24385. "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
  24386. "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
  24387. "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
  24388. "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
  24389. "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
  24390. "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
  24391. "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
  24392. "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
  24393. "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
  24394. "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
  24395. "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
  24396. "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
  24397. "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
  24398. "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
  24399. "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
  24400. "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
  24401. "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
  24402. "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
  24403. "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
  24404. "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
  24405. "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
  24406. "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
  24407. "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
  24408. "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
  24409. "\x73\xa6\x72\x76\x27\x09\x7a\x10"
  24410. "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
  24411. "\xfa\x68\xf0\xff\x77\x98\x71\x30"
  24412. "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
  24413. "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
  24414. "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
  24415. "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
  24416. "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
  24417. "\x38",
  24418. .ilen = 281,
  24419. .result = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
  24420. "\x2d\x44\x72\x61\x66\x74\x73\x20"
  24421. "\x61\x72\x65\x20\x64\x72\x61\x66"
  24422. "\x74\x20\x64\x6f\x63\x75\x6d\x65"
  24423. "\x6e\x74\x73\x20\x76\x61\x6c\x69"
  24424. "\x64\x20\x66\x6f\x72\x20\x61\x20"
  24425. "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
  24426. "\x6f\x66\x20\x73\x69\x78\x20\x6d"
  24427. "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
  24428. "\x64\x20\x6d\x61\x79\x20\x62\x65"
  24429. "\x20\x75\x70\x64\x61\x74\x65\x64"
  24430. "\x2c\x20\x72\x65\x70\x6c\x61\x63"
  24431. "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
  24432. "\x62\x73\x6f\x6c\x65\x74\x65\x64"
  24433. "\x20\x62\x79\x20\x6f\x74\x68\x65"
  24434. "\x72\x20\x64\x6f\x63\x75\x6d\x65"
  24435. "\x6e\x74\x73\x20\x61\x74\x20\x61"
  24436. "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
  24437. "\x20\x49\x74\x20\x69\x73\x20\x69"
  24438. "\x6e\x61\x70\x70\x72\x6f\x70\x72"
  24439. "\x69\x61\x74\x65\x20\x74\x6f\x20"
  24440. "\x75\x73\x65\x20\x49\x6e\x74\x65"
  24441. "\x72\x6e\x65\x74\x2d\x44\x72\x61"
  24442. "\x66\x74\x73\x20\x61\x73\x20\x72"
  24443. "\x65\x66\x65\x72\x65\x6e\x63\x65"
  24444. "\x20\x6d\x61\x74\x65\x72\x69\x61"
  24445. "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
  24446. "\x63\x69\x74\x65\x20\x74\x68\x65"
  24447. "\x6d\x20\x6f\x74\x68\x65\x72\x20"
  24448. "\x74\x68\x61\x6e\x20\x61\x73\x20"
  24449. "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
  24450. "\x20\x69\x6e\x20\x70\x72\x6f\x67"
  24451. "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
  24452. "\x9d",
  24453. .rlen = 265,
  24454. },
  24455. };
  24456. /*
  24457. * draft-irtf-cfrg-chacha20-poly1305
  24458. */
  24459. #define RFC7539ESP_DEC_TEST_VECTORS 1
  24460. #define RFC7539ESP_ENC_TEST_VECTORS 1
  24461. static struct aead_testvec rfc7539esp_enc_tv_template[] = {
  24462. {
  24463. .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
  24464. "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
  24465. "\x47\x39\x17\xc1\x40\x2b\x80\x09"
  24466. "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
  24467. "\x00\x00\x00\x00",
  24468. .klen = 36,
  24469. .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
  24470. .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
  24471. "\x00\x00\x4e\x91\x01\x02\x03\x04"
  24472. "\x05\x06\x07\x08",
  24473. .alen = 20,
  24474. .input = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
  24475. "\x2d\x44\x72\x61\x66\x74\x73\x20"
  24476. "\x61\x72\x65\x20\x64\x72\x61\x66"
  24477. "\x74\x20\x64\x6f\x63\x75\x6d\x65"
  24478. "\x6e\x74\x73\x20\x76\x61\x6c\x69"
  24479. "\x64\x20\x66\x6f\x72\x20\x61\x20"
  24480. "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
  24481. "\x6f\x66\x20\x73\x69\x78\x20\x6d"
  24482. "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
  24483. "\x64\x20\x6d\x61\x79\x20\x62\x65"
  24484. "\x20\x75\x70\x64\x61\x74\x65\x64"
  24485. "\x2c\x20\x72\x65\x70\x6c\x61\x63"
  24486. "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
  24487. "\x62\x73\x6f\x6c\x65\x74\x65\x64"
  24488. "\x20\x62\x79\x20\x6f\x74\x68\x65"
  24489. "\x72\x20\x64\x6f\x63\x75\x6d\x65"
  24490. "\x6e\x74\x73\x20\x61\x74\x20\x61"
  24491. "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
  24492. "\x20\x49\x74\x20\x69\x73\x20\x69"
  24493. "\x6e\x61\x70\x70\x72\x6f\x70\x72"
  24494. "\x69\x61\x74\x65\x20\x74\x6f\x20"
  24495. "\x75\x73\x65\x20\x49\x6e\x74\x65"
  24496. "\x72\x6e\x65\x74\x2d\x44\x72\x61"
  24497. "\x66\x74\x73\x20\x61\x73\x20\x72"
  24498. "\x65\x66\x65\x72\x65\x6e\x63\x65"
  24499. "\x20\x6d\x61\x74\x65\x72\x69\x61"
  24500. "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
  24501. "\x63\x69\x74\x65\x20\x74\x68\x65"
  24502. "\x6d\x20\x6f\x74\x68\x65\x72\x20"
  24503. "\x74\x68\x61\x6e\x20\x61\x73\x20"
  24504. "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
  24505. "\x20\x69\x6e\x20\x70\x72\x6f\x67"
  24506. "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
  24507. "\x9d",
  24508. .ilen = 265,
  24509. .result = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
  24510. "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
  24511. "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
  24512. "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
  24513. "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
  24514. "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
  24515. "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
  24516. "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
  24517. "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
  24518. "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
  24519. "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
  24520. "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
  24521. "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
  24522. "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
  24523. "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
  24524. "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
  24525. "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
  24526. "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
  24527. "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
  24528. "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
  24529. "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
  24530. "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
  24531. "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
  24532. "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
  24533. "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
  24534. "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
  24535. "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
  24536. "\x73\xa6\x72\x76\x27\x09\x7a\x10"
  24537. "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
  24538. "\xfa\x68\xf0\xff\x77\x98\x71\x30"
  24539. "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
  24540. "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
  24541. "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
  24542. "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
  24543. "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
  24544. "\x38",
  24545. .rlen = 281,
  24546. },
  24547. };
  24548. static struct aead_testvec rfc7539esp_dec_tv_template[] = {
  24549. {
  24550. .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
  24551. "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
  24552. "\x47\x39\x17\xc1\x40\x2b\x80\x09"
  24553. "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
  24554. "\x00\x00\x00\x00",
  24555. .klen = 36,
  24556. .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
  24557. .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
  24558. "\x00\x00\x4e\x91\x01\x02\x03\x04"
  24559. "\x05\x06\x07\x08",
  24560. .alen = 20,
  24561. .input = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
  24562. "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
  24563. "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
  24564. "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
  24565. "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
  24566. "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
  24567. "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
  24568. "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
  24569. "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
  24570. "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
  24571. "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
  24572. "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
  24573. "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
  24574. "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
  24575. "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
  24576. "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
  24577. "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
  24578. "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
  24579. "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
  24580. "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
  24581. "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
  24582. "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
  24583. "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
  24584. "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
  24585. "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
  24586. "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
  24587. "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
  24588. "\x73\xa6\x72\x76\x27\x09\x7a\x10"
  24589. "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
  24590. "\xfa\x68\xf0\xff\x77\x98\x71\x30"
  24591. "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
  24592. "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
  24593. "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
  24594. "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
  24595. "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
  24596. "\x38",
  24597. .ilen = 281,
  24598. .result = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
  24599. "\x2d\x44\x72\x61\x66\x74\x73\x20"
  24600. "\x61\x72\x65\x20\x64\x72\x61\x66"
  24601. "\x74\x20\x64\x6f\x63\x75\x6d\x65"
  24602. "\x6e\x74\x73\x20\x76\x61\x6c\x69"
  24603. "\x64\x20\x66\x6f\x72\x20\x61\x20"
  24604. "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
  24605. "\x6f\x66\x20\x73\x69\x78\x20\x6d"
  24606. "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
  24607. "\x64\x20\x6d\x61\x79\x20\x62\x65"
  24608. "\x20\x75\x70\x64\x61\x74\x65\x64"
  24609. "\x2c\x20\x72\x65\x70\x6c\x61\x63"
  24610. "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
  24611. "\x62\x73\x6f\x6c\x65\x74\x65\x64"
  24612. "\x20\x62\x79\x20\x6f\x74\x68\x65"
  24613. "\x72\x20\x64\x6f\x63\x75\x6d\x65"
  24614. "\x6e\x74\x73\x20\x61\x74\x20\x61"
  24615. "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
  24616. "\x20\x49\x74\x20\x69\x73\x20\x69"
  24617. "\x6e\x61\x70\x70\x72\x6f\x70\x72"
  24618. "\x69\x61\x74\x65\x20\x74\x6f\x20"
  24619. "\x75\x73\x65\x20\x49\x6e\x74\x65"
  24620. "\x72\x6e\x65\x74\x2d\x44\x72\x61"
  24621. "\x66\x74\x73\x20\x61\x73\x20\x72"
  24622. "\x65\x66\x65\x72\x65\x6e\x63\x65"
  24623. "\x20\x6d\x61\x74\x65\x72\x69\x61"
  24624. "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
  24625. "\x63\x69\x74\x65\x20\x74\x68\x65"
  24626. "\x6d\x20\x6f\x74\x68\x65\x72\x20"
  24627. "\x74\x68\x61\x6e\x20\x61\x73\x20"
  24628. "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
  24629. "\x20\x69\x6e\x20\x70\x72\x6f\x67"
  24630. "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
  24631. "\x9d",
  24632. .rlen = 265,
  24633. },
  24634. };
  24635. /*
  24636. * All key wrapping test vectors taken from
  24637. * http://csrc.nist.gov/groups/STM/cavp/documents/mac/kwtestvectors.zip
  24638. *
  24639. * Note: as documented in keywrap.c, the ivout for encryption is the first
  24640. * semiblock of the ciphertext from the test vector. For decryption, iv is
  24641. * the first semiblock of the ciphertext.
  24642. */
  24643. static struct cipher_testvec aes_kw_enc_tv_template[] = {
  24644. {
  24645. .key = "\x75\x75\xda\x3a\x93\x60\x7c\xc2"
  24646. "\xbf\xd8\xce\xc7\xaa\xdf\xd9\xa6",
  24647. .klen = 16,
  24648. .input = "\x42\x13\x6d\x3c\x38\x4a\x3e\xea"
  24649. "\xc9\x5a\x06\x6f\xd2\x8f\xed\x3f",
  24650. .ilen = 16,
  24651. .result = "\xf6\x85\x94\x81\x6f\x64\xca\xa3"
  24652. "\xf5\x6f\xab\xea\x25\x48\xf5\xfb",
  24653. .rlen = 16,
  24654. .iv_out = "\x03\x1f\x6b\xd7\xe6\x1e\x64\x3d",
  24655. },
  24656. };
  24657. static struct cipher_testvec aes_kw_dec_tv_template[] = {
  24658. {
  24659. .key = "\x80\xaa\x99\x73\x27\xa4\x80\x6b"
  24660. "\x6a\x7a\x41\xa5\x2b\x86\xc3\x71"
  24661. "\x03\x86\xf9\x32\x78\x6e\xf7\x96"
  24662. "\x76\xfa\xfb\x90\xb8\x26\x3c\x5f",
  24663. .klen = 32,
  24664. .input = "\xd3\x3d\x3d\x97\x7b\xf0\xa9\x15"
  24665. "\x59\xf9\x9c\x8a\xcd\x29\x3d\x43",
  24666. .ilen = 16,
  24667. .result = "\x0a\x25\x6b\xa7\x5c\xfa\x03\xaa"
  24668. "\xa0\x2b\xa9\x42\x03\xf1\x5b\xaa",
  24669. .rlen = 16,
  24670. .iv = "\x42\x3c\x96\x0d\x8a\x2a\xc4\xc1",
  24671. },
  24672. };
  24673. /*
  24674. * ANSI X9.31 Continuous Pseudo-Random Number Generator (AES mode)
  24675. * test vectors, taken from Appendix B.2.9 and B.2.10:
  24676. * http://csrc.nist.gov/groups/STM/cavp/documents/rng/RNGVS.pdf
  24677. * Only AES-128 is supported at this time.
  24678. */
  24679. #define ANSI_CPRNG_AES_TEST_VECTORS 6
  24680. static struct cprng_testvec ansi_cprng_aes_tv_template[] = {
  24681. {
  24682. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  24683. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  24684. .klen = 16,
  24685. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  24686. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xf9",
  24687. .dtlen = 16,
  24688. .v = "\x80\x00\x00\x00\x00\x00\x00\x00"
  24689. "\x00\x00\x00\x00\x00\x00\x00\x00",
  24690. .vlen = 16,
  24691. .result = "\x59\x53\x1e\xd1\x3b\xb0\xc0\x55"
  24692. "\x84\x79\x66\x85\xc1\x2f\x76\x41",
  24693. .rlen = 16,
  24694. .loops = 1,
  24695. }, {
  24696. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  24697. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  24698. .klen = 16,
  24699. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  24700. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfa",
  24701. .dtlen = 16,
  24702. .v = "\xc0\x00\x00\x00\x00\x00\x00\x00"
  24703. "\x00\x00\x00\x00\x00\x00\x00\x00",
  24704. .vlen = 16,
  24705. .result = "\x7c\x22\x2c\xf4\xca\x8f\xa2\x4c"
  24706. "\x1c\x9c\xb6\x41\xa9\xf3\x22\x0d",
  24707. .rlen = 16,
  24708. .loops = 1,
  24709. }, {
  24710. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  24711. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  24712. .klen = 16,
  24713. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  24714. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfb",
  24715. .dtlen = 16,
  24716. .v = "\xe0\x00\x00\x00\x00\x00\x00\x00"
  24717. "\x00\x00\x00\x00\x00\x00\x00\x00",
  24718. .vlen = 16,
  24719. .result = "\x8a\xaa\x00\x39\x66\x67\x5b\xe5"
  24720. "\x29\x14\x28\x81\xa9\x4d\x4e\xc7",
  24721. .rlen = 16,
  24722. .loops = 1,
  24723. }, {
  24724. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  24725. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  24726. .klen = 16,
  24727. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  24728. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfc",
  24729. .dtlen = 16,
  24730. .v = "\xf0\x00\x00\x00\x00\x00\x00\x00"
  24731. "\x00\x00\x00\x00\x00\x00\x00\x00",
  24732. .vlen = 16,
  24733. .result = "\x88\xdd\xa4\x56\x30\x24\x23\xe5"
  24734. "\xf6\x9d\xa5\x7e\x7b\x95\xc7\x3a",
  24735. .rlen = 16,
  24736. .loops = 1,
  24737. }, {
  24738. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  24739. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  24740. .klen = 16,
  24741. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  24742. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfd",
  24743. .dtlen = 16,
  24744. .v = "\xf8\x00\x00\x00\x00\x00\x00\x00"
  24745. "\x00\x00\x00\x00\x00\x00\x00\x00",
  24746. .vlen = 16,
  24747. .result = "\x05\x25\x92\x46\x61\x79\xd2\xcb"
  24748. "\x78\xc4\x0b\x14\x0a\x5a\x9a\xc8",
  24749. .rlen = 16,
  24750. .loops = 1,
  24751. }, { /* Monte Carlo Test */
  24752. .key = "\x9f\x5b\x51\x20\x0b\xf3\x34\xb5"
  24753. "\xd8\x2b\xe8\xc3\x72\x55\xc8\x48",
  24754. .klen = 16,
  24755. .dt = "\x63\x76\xbb\xe5\x29\x02\xba\x3b"
  24756. "\x67\xc9\x25\xfa\x70\x1f\x11\xac",
  24757. .dtlen = 16,
  24758. .v = "\x57\x2c\x8e\x76\x87\x26\x47\x97"
  24759. "\x7e\x74\xfb\xdd\xc4\x95\x01\xd1",
  24760. .vlen = 16,
  24761. .result = "\x48\xe9\xbd\x0d\x06\xee\x18\xfb"
  24762. "\xe4\x57\x90\xd5\xc3\xfc\x9b\x73",
  24763. .rlen = 16,
  24764. .loops = 10000,
  24765. },
  24766. };
  24767. /*
  24768. * SP800-90A DRBG Test vectors from
  24769. * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip
  24770. *
  24771. * Test vectors for DRBG with prediction resistance. All types of DRBGs
  24772. * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and
  24773. * w/o personalization string, w/ and w/o additional input string).
  24774. */
  24775. static struct drbg_testvec drbg_pr_sha256_tv_template[] = {
  24776. {
  24777. .entropy = (unsigned char *)
  24778. "\x72\x88\x4c\xcd\x6c\x85\x57\x70\xf7\x0b\x8b\x86"
  24779. "\xc1\xeb\xd2\x4e\x36\x14\xab\x18\xc4\x9c\xc9\xcf"
  24780. "\x1a\xe8\xf7\x7b\x02\x49\x73\xd7\xf1\x42\x7d\xc6"
  24781. "\x3f\x29\x2d\xec\xd3\x66\x51\x3f\x1d\x8d\x5b\x4e",
  24782. .entropylen = 48,
  24783. .entpra = (unsigned char *)
  24784. "\x38\x9c\x91\xfa\xc2\xa3\x46\x89\x56\x08\x3f\x62"
  24785. "\x73\xd5\x22\xa9\x29\x63\x3a\x1d\xe5\x5d\x5e\x4f"
  24786. "\x67\xb0\x67\x7a\x5e\x9e\x0c\x62",
  24787. .entprb = (unsigned char *)
  24788. "\xb2\x8f\x36\xb2\xf6\x8d\x39\x13\xfa\x6c\x66\xcf"
  24789. "\x62\x8a\x7e\x8c\x12\x33\x71\x9c\x69\xe4\xa5\xf0"
  24790. "\x8c\xee\xeb\x9c\xf5\x31\x98\x31",
  24791. .entprlen = 32,
  24792. .expected = (unsigned char *)
  24793. "\x52\x7b\xa3\xad\x71\x77\xa4\x49\x42\x04\x61\xc7"
  24794. "\xf0\xaf\xa5\xfd\xd3\xb3\x0d\x6a\x61\xba\x35\x49"
  24795. "\xbb\xaa\xaf\xe4\x25\x7d\xb5\x48\xaf\x5c\x18\x3d"
  24796. "\x33\x8d\x9d\x45\xdf\x98\xd5\x94\xa8\xda\x92\xfe"
  24797. "\xc4\x3c\x94\x2a\xcf\x7f\x7b\xf2\xeb\x28\xa9\xf1"
  24798. "\xe0\x86\x30\xa8\xfe\xf2\x48\x90\x91\x0c\x75\xb5"
  24799. "\x3c\x00\xf0\x4d\x09\x4f\x40\xa7\xa2\x8c\x52\xdf"
  24800. "\x52\xef\x17\xbf\x3d\xd1\xa2\x31\xb4\xb8\xdc\xe6"
  24801. "\x5b\x0d\x1f\x78\x36\xb4\xe6\x4b\xa7\x11\x25\xd5"
  24802. "\x94\xc6\x97\x36\xab\xf0\xe5\x31\x28\x6a\xbb\xce"
  24803. "\x30\x81\xa6\x8f\x27\x14\xf8\x1c",
  24804. .expectedlen = 128,
  24805. .addtla = NULL,
  24806. .addtlb = NULL,
  24807. .addtllen = 0,
  24808. .pers = NULL,
  24809. .perslen = 0,
  24810. }, {
  24811. .entropy = (unsigned char *)
  24812. "\x5d\xf2\x14\xbc\xf6\xb5\x4e\x0b\xf0\x0d\x6f\x2d"
  24813. "\xe2\x01\x66\x7b\xd0\xa4\x73\xa4\x21\xdd\xb0\xc0"
  24814. "\x51\x79\x09\xf4\xea\xa9\x08\xfa\xa6\x67\xe0\xe1"
  24815. "\xd1\x88\xa8\xad\xee\x69\x74\xb3\x55\x06\x9b\xf6",
  24816. .entropylen = 48,
  24817. .entpra = (unsigned char *)
  24818. "\xef\x48\x06\xa2\xc2\x45\xf1\x44\xfa\x34\x2c\xeb"
  24819. "\x8d\x78\x3c\x09\x8f\x34\x72\x20\xf2\xe7\xfd\x13"
  24820. "\x76\x0a\xf6\xdc\x3c\xf5\xc0\x15",
  24821. .entprb = (unsigned char *)
  24822. "\x4b\xbe\xe5\x24\xed\x6a\x2d\x0c\xdb\x73\x5e\x09"
  24823. "\xf9\xad\x67\x7c\x51\x47\x8b\x6b\x30\x2a\xc6\xde"
  24824. "\x76\xaa\x55\x04\x8b\x0a\x72\x95",
  24825. .entprlen = 32,
  24826. .expected = (unsigned char *)
  24827. "\x3b\x14\x71\x99\xa1\xda\xa0\x42\xe6\xc8\x85\x32"
  24828. "\x70\x20\x32\x53\x9a\xbe\xd1\x1e\x15\xef\xfb\x4c"
  24829. "\x25\x6e\x19\x3a\xf0\xb9\xcb\xde\xf0\x3b\xc6\x18"
  24830. "\x4d\x85\x5a\x9b\xf1\xe3\xc2\x23\x03\x93\x08\xdb"
  24831. "\xa7\x07\x4b\x33\x78\x40\x4d\xeb\x24\xf5\x6e\x81"
  24832. "\x4a\x1b\x6e\xa3\x94\x52\x43\xb0\xaf\x2e\x21\xf4"
  24833. "\x42\x46\x8e\x90\xed\x34\x21\x75\xea\xda\x67\xb6"
  24834. "\xe4\xf6\xff\xc6\x31\x6c\x9a\x5a\xdb\xb3\x97\x13"
  24835. "\x09\xd3\x20\x98\x33\x2d\x6d\xd7\xb5\x6a\xa8\xa9"
  24836. "\x9a\x5b\xd6\x87\x52\xa1\x89\x2b\x4b\x9c\x64\x60"
  24837. "\x50\x47\xa3\x63\x81\x16\xaf\x19",
  24838. .expectedlen = 128,
  24839. .addtla = (unsigned char *)
  24840. "\xbe\x13\xdb\x2a\xe9\xa8\xfe\x09\x97\xe1\xce\x5d"
  24841. "\xe8\xbb\xc0\x7c\x4f\xcb\x62\x19\x3f\x0f\xd2\xad"
  24842. "\xa9\xd0\x1d\x59\x02\xc4\xff\x70",
  24843. .addtlb = (unsigned char *)
  24844. "\x6f\x96\x13\xe2\xa7\xf5\x6c\xfe\xdf\x66\xe3\x31"
  24845. "\x63\x76\xbf\x20\x27\x06\x49\xf1\xf3\x01\x77\x41"
  24846. "\x9f\xeb\xe4\x38\xfe\x67\x00\xcd",
  24847. .addtllen = 32,
  24848. .pers = NULL,
  24849. .perslen = 0,
  24850. }, {
  24851. .entropy = (unsigned char *)
  24852. "\xc6\x1c\xaf\x83\xa2\x56\x38\xf9\xb0\xbc\xd9\x85"
  24853. "\xf5\x2e\xc4\x46\x9c\xe1\xb9\x40\x98\x70\x10\x72"
  24854. "\xd7\x7d\x15\x85\xa1\x83\x5a\x97\xdf\xc8\xa8\xe8"
  24855. "\x03\x4c\xcb\x70\x35\x8b\x90\x94\x46\x8a\x6e\xa1",
  24856. .entropylen = 48,
  24857. .entpra = (unsigned char *)
  24858. "\xc9\x05\xa4\xcf\x28\x80\x4b\x93\x0f\x8b\xc6\xf9"
  24859. "\x09\x41\x58\x74\xe9\xec\x28\xc7\x53\x0a\x73\x60"
  24860. "\xba\x0a\xde\x57\x5b\x4b\x9f\x29",
  24861. .entprb = (unsigned char *)
  24862. "\x4f\x31\xd2\xeb\xac\xfa\xa8\xe2\x01\x7d\xf3\xbd"
  24863. "\x42\xbd\x20\xa0\x30\x65\x74\xd5\x5d\xd2\xad\xa4"
  24864. "\xa9\xeb\x1f\x4d\xf6\xfd\xb8\x26",
  24865. .entprlen = 32,
  24866. .expected = (unsigned char *)
  24867. "\xf6\x13\x05\xcb\x83\x60\x16\x42\x49\x1d\xc6\x25"
  24868. "\x3b\x8c\x31\xa3\xbe\x8b\xbd\x1c\xe2\xec\x1d\xde"
  24869. "\xbb\xbf\xa1\xac\xa8\x9f\x50\xce\x69\xce\xef\xd5"
  24870. "\xd6\xf2\xef\x6a\xf7\x81\x38\xdf\xbc\xa7\x5a\xb9"
  24871. "\xb2\x42\x65\xab\xe4\x86\x8d\x2d\x9d\x59\x99\x2c"
  24872. "\x5a\x0d\x71\x55\x98\xa4\x45\xc2\x8d\xdb\x05\x5e"
  24873. "\x50\x21\xf7\xcd\xe8\x98\x43\xce\x57\x74\x63\x4c"
  24874. "\xf3\xb1\xa5\x14\x1e\x9e\x01\xeb\x54\xd9\x56\xae"
  24875. "\xbd\xb6\x6f\x1a\x47\x6b\x3b\x44\xe4\xa2\xe9\x3c"
  24876. "\x6c\x83\x12\x30\xb8\x78\x7f\x8e\x54\x82\xd4\xfe"
  24877. "\x90\x35\x0d\x4c\x4d\x85\xe7\x13",
  24878. .expectedlen = 128,
  24879. .addtla = NULL,
  24880. .addtlb = NULL,
  24881. .addtllen = 0,
  24882. .pers = (unsigned char *)
  24883. "\xa5\xbf\xac\x4f\x71\xa1\xbb\x67\x94\xc6\x50\xc7"
  24884. "\x2a\x45\x9e\x10\xa8\xed\xf7\x52\x4f\xfe\x21\x90"
  24885. "\xa4\x1b\xe1\xe2\x53\xcc\x61\x47",
  24886. .perslen = 32,
  24887. }, {
  24888. .entropy = (unsigned char *)
  24889. "\xb6\xc1\x8d\xdf\x99\x54\xbe\x95\x10\x48\xd9\xf6"
  24890. "\xd7\x48\xa8\x73\x2d\x74\xde\x1e\xde\x57\x7e\xf4"
  24891. "\x7b\x7b\x64\xef\x88\x7a\xa8\x10\x4b\xe1\xc1\x87"
  24892. "\xbb\x0b\xe1\x39\x39\x50\xaf\x68\x9c\xa2\xbf\x5e",
  24893. .entropylen = 48,
  24894. .entpra = (unsigned char *)
  24895. "\xdc\x81\x0a\x01\x58\xa7\x2e\xce\xee\x48\x8c\x7c"
  24896. "\x77\x9e\x3c\xf1\x17\x24\x7a\xbb\xab\x9f\xca\x12"
  24897. "\x19\xaf\x97\x2d\x5f\xf9\xff\xfc",
  24898. .entprb = (unsigned char *)
  24899. "\xaf\xfc\x4f\x98\x8b\x93\x95\xc1\xb5\x8b\x7f\x73"
  24900. "\x6d\xa6\xbe\x6d\x33\xeb\x2c\x82\xb1\xaf\xc1\xb6"
  24901. "\xb6\x05\xe2\x44\xaa\xfd\xe7\xdb",
  24902. .entprlen = 32,
  24903. .expected = (unsigned char *)
  24904. "\x51\x79\xde\x1c\x0f\x58\xf3\xf4\xc9\x57\x2e\x31"
  24905. "\xa7\x09\xa1\x53\x64\x63\xa2\xc5\x1d\x84\x88\x65"
  24906. "\x01\x1b\xc6\x16\x3c\x49\x5b\x42\x8e\x53\xf5\x18"
  24907. "\xad\x94\x12\x0d\x4f\x55\xcc\x45\x5c\x98\x0f\x42"
  24908. "\x28\x2f\x47\x11\xf9\xc4\x01\x97\x6b\xa0\x94\x50"
  24909. "\xa9\xd1\x5e\x06\x54\x3f\xdf\xbb\xc4\x98\xee\x8b"
  24910. "\xba\xa9\xfa\x49\xee\x1d\xdc\xfb\x50\xf6\x51\x9f"
  24911. "\x6c\x4a\x9a\x6f\x63\xa2\x7d\xad\xaf\x3a\x24\xa0"
  24912. "\xd9\x9f\x07\xeb\x15\xee\x26\xe0\xd5\x63\x39\xda"
  24913. "\x3c\x59\xd6\x33\x6c\x02\xe8\x05\x71\x46\x68\x44"
  24914. "\x63\x4a\x68\x72\xe9\xf5\x55\xfe",
  24915. .expectedlen = 128,
  24916. .addtla = (unsigned char *)
  24917. "\x15\x20\x2f\xf6\x98\x28\x63\xa2\xc4\x4e\xbb\x6c"
  24918. "\xb2\x25\x92\x61\x79\xc9\x22\xc4\x61\x54\x96\xff"
  24919. "\x4a\x85\xca\x80\xfe\x0d\x1c\xd0",
  24920. .addtlb = (unsigned char *)
  24921. "\xde\x29\x8e\x03\x42\x61\xa3\x28\x5e\xc8\x80\xc2"
  24922. "\x6d\xbf\xad\x13\xe1\x8d\x2a\xc7\xe8\xc7\x18\x89"
  24923. "\x42\x58\x9e\xd6\xcc\xad\x7b\x1e",
  24924. .addtllen = 32,
  24925. .pers = (unsigned char *)
  24926. "\x84\xc3\x73\x9e\xce\xb3\xbc\x89\xf7\x62\xb3\xe1"
  24927. "\xd7\x48\x45\x8a\xa9\xcc\xe9\xed\xd5\x81\x84\x52"
  24928. "\x82\x4c\xdc\x19\xb8\xf8\x92\x5c",
  24929. .perslen = 32,
  24930. },
  24931. };
  24932. static struct drbg_testvec drbg_pr_hmac_sha256_tv_template[] = {
  24933. {
  24934. .entropy = (unsigned char *)
  24935. "\x99\x69\xe5\x4b\x47\x03\xff\x31\x78\x5b\x87\x9a"
  24936. "\x7e\x5c\x0e\xae\x0d\x3e\x30\x95\x59\xe9\xfe\x96"
  24937. "\xb0\x67\x6d\x49\xd5\x91\xea\x4d\x07\xd2\x0d\x46"
  24938. "\xd0\x64\x75\x7d\x30\x23\xca\xc2\x37\x61\x27\xab",
  24939. .entropylen = 48,
  24940. .entpra = (unsigned char *)
  24941. "\xc6\x0f\x29\x99\x10\x0f\x73\x8c\x10\xf7\x47\x92"
  24942. "\x67\x6a\x3f\xc4\xa2\x62\xd1\x37\x21\x79\x80\x46"
  24943. "\xe2\x9a\x29\x51\x81\x56\x9f\x54",
  24944. .entprb = (unsigned char *)
  24945. "\xc1\x1d\x45\x24\xc9\x07\x1b\xd3\x09\x60\x15\xfc"
  24946. "\xf7\xbc\x24\xa6\x07\xf2\x2f\xa0\x65\xc9\x37\x65"
  24947. "\x8a\x2a\x77\xa8\x69\x90\x89\xf4",
  24948. .entprlen = 32,
  24949. .expected = (unsigned char *)
  24950. "\xab\xc0\x15\x85\x60\x94\x80\x3a\x93\x8d\xff\xd2"
  24951. "\x0d\xa9\x48\x43\x87\x0e\xf9\x35\xb8\x2c\xfe\xc1"
  24952. "\x77\x06\xb8\xf5\x51\xb8\x38\x50\x44\x23\x5d\xd4"
  24953. "\x4b\x59\x9f\x94\xb3\x9b\xe7\x8d\xd4\x76\xe0\xcf"
  24954. "\x11\x30\x9c\x99\x5a\x73\x34\xe0\xa7\x8b\x37\xbc"
  24955. "\x95\x86\x23\x50\x86\xfa\x3b\x63\x7b\xa9\x1c\xf8"
  24956. "\xfb\x65\xef\xa2\x2a\x58\x9c\x13\x75\x31\xaa\x7b"
  24957. "\x2d\x4e\x26\x07\xaa\xc2\x72\x92\xb0\x1c\x69\x8e"
  24958. "\x6e\x01\xae\x67\x9e\xb8\x7c\x01\xa8\x9c\x74\x22"
  24959. "\xd4\x37\x2d\x6d\x75\x4a\xba\xbb\x4b\xf8\x96\xfc"
  24960. "\xb1\xcd\x09\xd6\x92\xd0\x28\x3f",
  24961. .expectedlen = 128,
  24962. .addtla = NULL,
  24963. .addtlb = NULL,
  24964. .addtllen = 0,
  24965. .pers = NULL,
  24966. .perslen = 0,
  24967. }, {
  24968. .entropy = (unsigned char *)
  24969. "\xb9\x1f\xe9\xef\xdd\x9b\x7d\x20\xb6\xec\xe0\x2f"
  24970. "\xdb\x76\x24\xce\x41\xc8\x3a\x4a\x12\x7f\x3e\x2f"
  24971. "\xae\x05\x99\xea\xb5\x06\x71\x0d\x0c\x4c\xb4\x05"
  24972. "\x26\xc6\xbd\xf5\x7f\x2a\x3d\xf2\xb5\x49\x7b\xda",
  24973. .entropylen = 48,
  24974. .entpra = (unsigned char *)
  24975. "\xef\x67\x50\x9c\xa7\x7d\xdf\xb7\x2d\x81\x01\xa4"
  24976. "\x62\x81\x6a\x69\x5b\xb3\x37\x45\xa7\x34\x8e\x26"
  24977. "\x46\xd9\x26\xa2\x19\xd4\x94\x43",
  24978. .entprb = (unsigned char *)
  24979. "\x97\x75\x53\x53\xba\xb4\xa6\xb2\x91\x60\x71\x79"
  24980. "\xd1\x6b\x4a\x24\x9a\x34\x66\xcc\x33\xab\x07\x98"
  24981. "\x51\x78\x72\xb2\x79\xfd\x2c\xff",
  24982. .entprlen = 32,
  24983. .expected = (unsigned char *)
  24984. "\x9c\xdc\x63\x8a\x19\x23\x22\x66\x0c\xc5\xb9\xd7"
  24985. "\xfb\x2a\xb0\x31\xe3\x8a\x36\xa8\x5a\xa8\x14\xda"
  24986. "\x1e\xa9\xcc\xfe\xb8\x26\x44\x83\x9f\xf6\xff\xaa"
  24987. "\xc8\x98\xb8\x30\x35\x3b\x3d\x36\xd2\x49\xd4\x40"
  24988. "\x62\x0a\x65\x10\x76\x55\xef\xc0\x95\x9c\xa7\xda"
  24989. "\x3f\xcf\xb7\x7b\xc6\xe1\x28\x52\xfc\x0c\xe2\x37"
  24990. "\x0d\x83\xa7\x51\x4b\x31\x47\x3c\xe1\x3c\xae\x70"
  24991. "\x01\xc8\xa3\xd3\xc2\xac\x77\x9c\xd1\x68\x77\x9b"
  24992. "\x58\x27\x3b\xa5\x0f\xc2\x7a\x8b\x04\x65\x62\xd5"
  24993. "\xe8\xd6\xfe\x2a\xaf\xd3\xd3\xfe\xbd\x18\xfb\xcd"
  24994. "\xcd\x66\xb5\x01\x69\x66\xa0\x3c",
  24995. .expectedlen = 128,
  24996. .addtla = (unsigned char *)
  24997. "\x17\xc1\x56\xcb\xcc\x50\xd6\x03\x7d\x45\x76\xa3"
  24998. "\x75\x76\xc1\x4a\x66\x1b\x2e\xdf\xb0\x2e\x7d\x56"
  24999. "\x6d\x99\x3b\xc6\x58\xda\x03\xf6",
  25000. .addtlb = (unsigned char *)
  25001. "\x7c\x7b\x4a\x4b\x32\x5e\x6f\x67\x34\xf5\x21\x4c"
  25002. "\xf9\x96\xf9\xbf\x1c\x8c\x81\xd3\x9b\x60\x6a\x44"
  25003. "\xc6\x03\xa2\xfb\x13\x20\x19\xb7",
  25004. .addtllen = 32,
  25005. .pers = NULL,
  25006. .perslen = 0,
  25007. }, {
  25008. .entropy = (unsigned char *)
  25009. "\x13\x54\x96\xfc\x1b\x7d\x28\xf3\x18\xc9\xa7\x89"
  25010. "\xb6\xb3\xc8\x72\xac\x00\xd4\x59\x36\x25\x05\xaf"
  25011. "\xa5\xdb\x96\xcb\x3c\x58\x46\x87\xa5\xaa\xbf\x20"
  25012. "\x3b\xfe\x23\x0e\xd1\xc7\x41\x0f\x3f\xc9\xb3\x67",
  25013. .entropylen = 48,
  25014. .entpra = (unsigned char *)
  25015. "\xe2\xbd\xb7\x48\x08\x06\xf3\xe1\x93\x3c\xac\x79"
  25016. "\xa7\x2b\x11\xda\xe3\x2e\xe1\x91\xa5\x02\x19\x57"
  25017. "\x20\x28\xad\xf2\x60\xd7\xcd\x45",
  25018. .entprb = (unsigned char *)
  25019. "\x8b\xd4\x69\xfc\xff\x59\x95\x95\xc6\x51\xde\x71"
  25020. "\x68\x5f\xfc\xf9\x4a\xab\xec\x5a\xcb\xbe\xd3\x66"
  25021. "\x1f\xfa\x74\xd3\xac\xa6\x74\x60",
  25022. .entprlen = 32,
  25023. .expected = (unsigned char *)
  25024. "\x1f\x9e\xaf\xe4\xd2\x46\xb7\x47\x41\x4c\x65\x99"
  25025. "\x01\xe9\x3b\xbb\x83\x0c\x0a\xb0\xc1\x3a\xe2\xb3"
  25026. "\x31\x4e\xeb\x93\x73\xee\x0b\x26\xc2\x63\xa5\x75"
  25027. "\x45\x99\xd4\x5c\x9f\xa1\xd4\x45\x87\x6b\x20\x61"
  25028. "\x40\xea\x78\xa5\x32\xdf\x9e\x66\x17\xaf\xb1\x88"
  25029. "\x9e\x2e\x23\xdd\xc1\xda\x13\x97\x88\xa5\xb6\x5e"
  25030. "\x90\x14\x4e\xef\x13\xab\x5c\xd9\x2c\x97\x9e\x7c"
  25031. "\xd7\xf8\xce\xea\x81\xf5\xcd\x71\x15\x49\x44\xce"
  25032. "\x83\xb6\x05\xfb\x7d\x30\xb5\x57\x2c\x31\x4f\xfc"
  25033. "\xfe\x80\xb6\xc0\x13\x0c\x5b\x9b\x2e\x8f\x3d\xfc"
  25034. "\xc2\xa3\x0c\x11\x1b\x80\x5f\xf3",
  25035. .expectedlen = 128,
  25036. .addtla = NULL,
  25037. .addtlb = NULL,
  25038. .addtllen = 0,
  25039. .pers = (unsigned char *)
  25040. "\x64\xb6\xfc\x60\xbc\x61\x76\x23\x6d\x3f\x4a\x0f"
  25041. "\xe1\xb4\xd5\x20\x9e\x70\xdd\x03\x53\x6d\xbf\xce"
  25042. "\xcd\x56\x80\xbc\xb8\x15\xc8\xaa",
  25043. .perslen = 32,
  25044. }, {
  25045. .entropy = (unsigned char *)
  25046. "\xc7\xcc\xbc\x67\x7e\x21\x66\x1e\x27\x2b\x63\xdd"
  25047. "\x3a\x78\xdc\xdf\x66\x6d\x3f\x24\xae\xcf\x37\x01"
  25048. "\xa9\x0d\x89\x8a\xa7\xdc\x81\x58\xae\xb2\x10\x15"
  25049. "\x7e\x18\x44\x6d\x13\xea\xdf\x37\x85\xfe\x81\xfb",
  25050. .entropylen = 48,
  25051. .entpra = (unsigned char *)
  25052. "\x7b\xa1\x91\x5b\x3c\x04\xc4\x1b\x1d\x19\x2f\x1a"
  25053. "\x18\x81\x60\x3c\x6c\x62\x91\xb7\xe9\xf5\xcb\x96"
  25054. "\xbb\x81\x6a\xcc\xb5\xae\x55\xb6",
  25055. .entprb = (unsigned char *)
  25056. "\x99\x2c\xc7\x78\x7e\x3b\x88\x12\xef\xbe\xd3\xd2"
  25057. "\x7d\x2a\xa5\x86\xda\x8d\x58\x73\x4a\x0a\xb2\x2e"
  25058. "\xbb\x4c\x7e\xe3\x9a\xb6\x81\xc1",
  25059. .entprlen = 32,
  25060. .expected = (unsigned char *)
  25061. "\x95\x6f\x95\xfc\x3b\xb7\xfe\x3e\xd0\x4e\x1a\x14"
  25062. "\x6c\x34\x7f\x7b\x1d\x0d\x63\x5e\x48\x9c\x69\xe6"
  25063. "\x46\x07\xd2\x87\xf3\x86\x52\x3d\x98\x27\x5e\xd7"
  25064. "\x54\xe7\x75\x50\x4f\xfb\x4d\xfd\xac\x2f\x4b\x77"
  25065. "\xcf\x9e\x8e\xcc\x16\xa2\x24\xcd\x53\xde\x3e\xc5"
  25066. "\x55\x5d\xd5\x26\x3f\x89\xdf\xca\x8b\x4e\x1e\xb6"
  25067. "\x88\x78\x63\x5c\xa2\x63\x98\x4e\x6f\x25\x59\xb1"
  25068. "\x5f\x2b\x23\xb0\x4b\xa5\x18\x5d\xc2\x15\x74\x40"
  25069. "\x59\x4c\xb4\x1e\xcf\x9a\x36\xfd\x43\xe2\x03\xb8"
  25070. "\x59\x91\x30\x89\x2a\xc8\x5a\x43\x23\x7c\x73\x72"
  25071. "\xda\x3f\xad\x2b\xba\x00\x6b\xd1",
  25072. .expectedlen = 128,
  25073. .addtla = (unsigned char *)
  25074. "\x18\xe8\x17\xff\xef\x39\xc7\x41\x5c\x73\x03\x03"
  25075. "\xf6\x3d\xe8\x5f\xc8\xab\xe4\xab\x0f\xad\xe8\xd6"
  25076. "\x86\x88\x55\x28\xc1\x69\xdd\x76",
  25077. .addtlb = (unsigned char *)
  25078. "\xac\x07\xfc\xbe\x87\x0e\xd3\xea\x1f\x7e\xb8\xe7"
  25079. "\x9d\xec\xe8\xe7\xbc\xf3\x18\x25\x77\x35\x4a\xaa"
  25080. "\x00\x99\x2a\xdd\x0a\x00\x50\x82",
  25081. .addtllen = 32,
  25082. .pers = (unsigned char *)
  25083. "\xbc\x55\xab\x3c\xf6\x52\xb0\x11\x3d\x7b\x90\xb8"
  25084. "\x24\xc9\x26\x4e\x5a\x1e\x77\x0d\x3d\x58\x4a\xda"
  25085. "\xd1\x81\xe9\xf8\xeb\x30\x8f\x6f",
  25086. .perslen = 32,
  25087. },
  25088. };
  25089. static struct drbg_testvec drbg_pr_ctr_aes128_tv_template[] = {
  25090. {
  25091. .entropy = (unsigned char *)
  25092. "\xd1\x44\xc6\x61\x81\x6d\xca\x9d\x15\x28\x8a\x42"
  25093. "\x94\xd7\x28\x9c\x43\x77\x19\x29\x1a\x6d\xc3\xa2",
  25094. .entropylen = 24,
  25095. .entpra = (unsigned char *)
  25096. "\x96\xd8\x9e\x45\x32\xc9\xd2\x08\x7a\x6d\x97\x15"
  25097. "\xb4\xec\x80\xb1",
  25098. .entprb = (unsigned char *)
  25099. "\x8b\xb6\x72\xb5\x24\x0b\x98\x65\x95\x95\xe9\xc9"
  25100. "\x28\x07\xeb\xc2",
  25101. .entprlen = 16,
  25102. .expected = (unsigned char *)
  25103. "\x70\x19\xd0\x4c\x45\x78\xd6\x68\xa9\x9a\xaa\xfe"
  25104. "\xc1\xdf\x27\x9a\x1c\x0d\x0d\xf7\x24\x75\x46\xcc"
  25105. "\x77\x6b\xdf\x89\xc6\x94\xdc\x74\x50\x10\x70\x18"
  25106. "\x9b\xdc\x96\xb4\x89\x23\x40\x1a\xce\x09\x87\xce"
  25107. "\xd2\xf3\xd5\xe4\x51\x67\x74\x11\x5a\xcc\x8b\x3b"
  25108. "\x8a\xf1\x23\xa8",
  25109. .expectedlen = 64,
  25110. .addtla = NULL,
  25111. .addtlb = NULL,
  25112. .addtllen = 0,
  25113. .pers = NULL,
  25114. .perslen = 0,
  25115. }, {
  25116. .entropy = (unsigned char *)
  25117. "\x8e\x83\xe0\xeb\x37\xea\x3e\x53\x5e\x17\x6e\x77"
  25118. "\xbd\xb1\x53\x90\xfc\xdc\xc1\x3c\x9a\x88\x22\x94",
  25119. .entropylen = 24,
  25120. .entpra = (unsigned char *)
  25121. "\x6a\x85\xe7\x37\xc8\xf1\x04\x31\x98\x4f\xc8\x73"
  25122. "\x67\xd1\x08\xf8",
  25123. .entprb = (unsigned char *)
  25124. "\xd7\xa4\x68\xe2\x12\x74\xc3\xd9\xf1\xb7\x05\xbc"
  25125. "\xd4\xba\x04\x58",
  25126. .entprlen = 16,
  25127. .expected = (unsigned char *)
  25128. "\x78\xd6\xa6\x70\xff\xd1\x82\xf5\xa2\x88\x7f\x6d"
  25129. "\x3d\x8c\x39\xb1\xa8\xcb\x2c\x91\xab\x14\x7e\xbc"
  25130. "\x95\x45\x9f\x24\xb8\x20\xac\x21\x23\xdb\x72\xd7"
  25131. "\x12\x8d\x48\x95\xf3\x19\x0c\x43\xc6\x19\x45\xfc"
  25132. "\x8b\xac\x40\x29\x73\x00\x03\x45\x5e\x12\xff\x0c"
  25133. "\xc1\x02\x41\x82",
  25134. .expectedlen = 64,
  25135. .addtla = (unsigned char *)
  25136. "\xa2\xd9\x38\xcf\x8b\x29\x67\x5b\x65\x62\x6f\xe8"
  25137. "\xeb\xb3\x01\x76",
  25138. .addtlb = (unsigned char *)
  25139. "\x59\x63\x1e\x81\x8a\x14\xa8\xbb\xa1\xb8\x41\x25"
  25140. "\xd0\x7f\xcc\x43",
  25141. .addtllen = 16,
  25142. .pers = NULL,
  25143. .perslen = 0,
  25144. }, {
  25145. .entropy = (unsigned char *)
  25146. "\x04\xd9\x49\xa6\xdc\xe8\x6e\xbb\xf1\x08\x77\x2b"
  25147. "\x9e\x08\xca\x92\x65\x16\xda\x99\xa2\x59\xf3\xe8",
  25148. .entropylen = 24,
  25149. .entpra = (unsigned char *)
  25150. "\x38\x7e\x3f\x6b\x51\x70\x7b\x20\xec\x53\xd0\x66"
  25151. "\xc3\x0f\xe3\xb0",
  25152. .entprb = (unsigned char *)
  25153. "\xe0\x86\xa6\xaa\x5f\x72\x2f\xad\xf7\xef\x06\xb8"
  25154. "\xd6\x9c\x9d\xe8",
  25155. .entprlen = 16,
  25156. .expected = (unsigned char *)
  25157. "\xc9\x0a\xaf\x85\x89\x71\x44\x66\x4f\x25\x0b\x2b"
  25158. "\xde\xd8\xfa\xff\x52\x5a\x1b\x32\x5e\x41\x7a\x10"
  25159. "\x1f\xef\x1e\x62\x23\xe9\x20\x30\xc9\x0d\xad\x69"
  25160. "\xb4\x9c\x5b\xf4\x87\x42\xd5\xae\x5e\x5e\x43\xcc"
  25161. "\xd9\xfd\x0b\x93\x4a\xe3\xd4\x06\x37\x36\x0f\x3f"
  25162. "\x72\x82\x0c\xcf",
  25163. .expectedlen = 64,
  25164. .addtla = NULL,
  25165. .addtlb = NULL,
  25166. .addtllen = 0,
  25167. .pers = (unsigned char *)
  25168. "\xbf\xa4\x9a\x8f\x7b\xd8\xb1\x7a\x9d\xfa\x45\xed"
  25169. "\x21\x52\xb3\xad",
  25170. .perslen = 16,
  25171. }, {
  25172. .entropy = (unsigned char *)
  25173. "\x92\x89\x8f\x31\xfa\x1c\xff\x6d\x18\x2f\x26\x06"
  25174. "\x43\xdf\xf8\x18\xc2\xa4\xd9\x72\xc3\xb9\xb6\x97",
  25175. .entropylen = 24,
  25176. .entpra = (unsigned char *)
  25177. "\x20\x72\x8a\x06\xf8\x6f\x8d\xd4\x41\xe2\x72\xb7"
  25178. "\xc4\x2c\xe8\x10",
  25179. .entprb = (unsigned char *)
  25180. "\x3d\xb0\xf0\x94\xf3\x05\x50\x33\x17\x86\x3e\x22"
  25181. "\x08\xf7\xa5\x01",
  25182. .entprlen = 16,
  25183. .expected = (unsigned char *)
  25184. "\x5a\x35\x39\x87\x0f\x4d\x22\xa4\x09\x24\xee\x71"
  25185. "\xc9\x6f\xac\x72\x0a\xd6\xf0\x88\x82\xd0\x83\x28"
  25186. "\x73\xec\x3f\x93\xd8\xab\x45\x23\xf0\x7e\xac\x45"
  25187. "\x14\x5e\x93\x9f\xb1\xd6\x76\x43\x3d\xb6\xe8\x08"
  25188. "\x88\xf6\xda\x89\x08\x77\x42\xfe\x1a\xf4\x3f\xc4"
  25189. "\x23\xc5\x1f\x68",
  25190. .expectedlen = 64,
  25191. .addtla = (unsigned char *)
  25192. "\x1a\x40\xfa\xe3\xcc\x6c\x7c\xa0\xf8\xda\xba\x59"
  25193. "\x23\x6d\xad\x1d",
  25194. .addtlb = (unsigned char *)
  25195. "\x9f\x72\x76\x6c\xc7\x46\xe5\xed\x2e\x53\x20\x12"
  25196. "\xbc\x59\x31\x8c",
  25197. .addtllen = 16,
  25198. .pers = (unsigned char *)
  25199. "\xea\x65\xee\x60\x26\x4e\x7e\xb6\x0e\x82\x68\xc4"
  25200. "\x37\x3c\x5c\x0b",
  25201. .perslen = 16,
  25202. },
  25203. };
  25204. /*
  25205. * SP800-90A DRBG Test vectors from
  25206. * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip
  25207. *
  25208. * Test vectors for DRBG without prediction resistance. All types of DRBGs
  25209. * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and
  25210. * w/o personalization string, w/ and w/o additional input string).
  25211. */
  25212. static struct drbg_testvec drbg_nopr_sha256_tv_template[] = {
  25213. {
  25214. .entropy = (unsigned char *)
  25215. "\xa6\x5a\xd0\xf3\x45\xdb\x4e\x0e\xff\xe8\x75\xc3"
  25216. "\xa2\xe7\x1f\x42\xc7\x12\x9d\x62\x0f\xf5\xc1\x19"
  25217. "\xa9\xef\x55\xf0\x51\x85\xe0\xfb\x85\x81\xf9\x31"
  25218. "\x75\x17\x27\x6e\x06\xe9\x60\x7d\xdb\xcb\xcc\x2e",
  25219. .entropylen = 48,
  25220. .expected = (unsigned char *)
  25221. "\xd3\xe1\x60\xc3\x5b\x99\xf3\x40\xb2\x62\x82\x64"
  25222. "\xd1\x75\x10\x60\xe0\x04\x5d\xa3\x83\xff\x57\xa5"
  25223. "\x7d\x73\xa6\x73\xd2\xb8\xd8\x0d\xaa\xf6\xa6\xc3"
  25224. "\x5a\x91\xbb\x45\x79\xd7\x3f\xd0\xc8\xfe\xd1\x11"
  25225. "\xb0\x39\x13\x06\x82\x8a\xdf\xed\x52\x8f\x01\x81"
  25226. "\x21\xb3\xfe\xbd\xc3\x43\xe7\x97\xb8\x7d\xbb\x63"
  25227. "\xdb\x13\x33\xde\xd9\xd1\xec\xe1\x77\xcf\xa6\xb7"
  25228. "\x1f\xe8\xab\x1d\xa4\x66\x24\xed\x64\x15\xe5\x1c"
  25229. "\xcd\xe2\xc7\xca\x86\xe2\x83\x99\x0e\xea\xeb\x91"
  25230. "\x12\x04\x15\x52\x8b\x22\x95\x91\x02\x81\xb0\x2d"
  25231. "\xd4\x31\xf4\xc9\xf7\x04\x27\xdf",
  25232. .expectedlen = 128,
  25233. .addtla = NULL,
  25234. .addtlb = NULL,
  25235. .addtllen = 0,
  25236. .pers = NULL,
  25237. .perslen = 0,
  25238. }, {
  25239. .entropy = (unsigned char *)
  25240. "\x73\xd3\xfb\xa3\x94\x5f\x2b\x5f\xb9\x8f\xf6\x9c"
  25241. "\x8a\x93\x17\xae\x19\xc3\x4c\xc3\xd6\xca\xa3\x2d"
  25242. "\x16\xfc\x42\xd2\x2d\xd5\x6f\x56\xcc\x1d\x30\xff"
  25243. "\x9e\x06\x3e\x09\xce\x58\xe6\x9a\x35\xb3\xa6\x56",
  25244. .entropylen = 48,
  25245. .expected = (unsigned char *)
  25246. "\x71\x7b\x93\x46\x1a\x40\xaa\x35\xa4\xaa\xc5\xe7"
  25247. "\x6d\x5b\x5b\x8a\xa0\xdf\x39\x7d\xae\x71\x58\x5b"
  25248. "\x3c\x7c\xb4\xf0\x89\xfa\x4a\x8c\xa9\x5c\x54\xc0"
  25249. "\x40\xdf\xbc\xce\x26\x81\x34\xf8\xba\x7d\x1c\xe8"
  25250. "\xad\x21\xe0\x74\xcf\x48\x84\x30\x1f\xa1\xd5\x4f"
  25251. "\x81\x42\x2f\xf4\xdb\x0b\x23\xf8\x73\x27\xb8\x1d"
  25252. "\x42\xf8\x44\x58\xd8\x5b\x29\x27\x0a\xf8\x69\x59"
  25253. "\xb5\x78\x44\xeb\x9e\xe0\x68\x6f\x42\x9a\xb0\x5b"
  25254. "\xe0\x4e\xcb\x6a\xaa\xe2\xd2\xd5\x33\x25\x3e\xe0"
  25255. "\x6c\xc7\x6a\x07\xa5\x03\x83\x9f\xe2\x8b\xd1\x1c"
  25256. "\x70\xa8\x07\x59\x97\xeb\xf6\xbe",
  25257. .expectedlen = 128,
  25258. .addtla = (unsigned char *)
  25259. "\xf4\xd5\x98\x3d\xa8\xfc\xfa\x37\xb7\x54\x67\x73"
  25260. "\xc7\xc3\xdd\x47\x34\x71\x02\x5d\xc1\xa0\xd3\x10"
  25261. "\xc1\x8b\xbd\xf5\x66\x34\x6f\xdd",
  25262. .addtlb = (unsigned char *)
  25263. "\xf7\x9e\x6a\x56\x0e\x73\xe9\xd9\x7a\xd1\x69\xe0"
  25264. "\x6f\x8c\x55\x1c\x44\xd1\xce\x6f\x28\xcc\xa4\x4d"
  25265. "\xa8\xc0\x85\xd1\x5a\x0c\x59\x40",
  25266. .addtllen = 32,
  25267. .pers = NULL,
  25268. .perslen = 0,
  25269. }, {
  25270. .entropy = (unsigned char *)
  25271. "\x2a\x85\xa9\x8b\xd0\xda\x83\xd6\xad\xab\x9f\xbb"
  25272. "\x54\x31\x15\x95\x1c\x4d\x49\x9f\x6a\x15\xf6\xe4"
  25273. "\x15\x50\x88\x06\x29\x0d\xed\x8d\xb9\x6f\x96\xe1"
  25274. "\x83\x9f\xf7\x88\xda\x84\xbf\x44\x28\xd9\x1d\xaa",
  25275. .entropylen = 48,
  25276. .expected = (unsigned char *)
  25277. "\x2d\x55\xde\xc9\xed\x05\x47\x07\x3d\x04\xfc\x28"
  25278. "\x0f\x92\xf0\x4d\xd8\x00\x32\x47\x0a\x1b\x1c\x4b"
  25279. "\xef\xd9\x97\xa1\x17\x67\xda\x26\x6c\xfe\x76\x46"
  25280. "\x6f\xbc\x6d\x82\x4e\x83\x8a\x98\x66\x6c\x01\xb6"
  25281. "\xe6\x64\xe0\x08\x10\x6f\xd3\x5d\x90\xe7\x0d\x72"
  25282. "\xa6\xa7\xe3\xbb\x98\x11\x12\x56\x23\xc2\x6d\xd1"
  25283. "\xc8\xa8\x7a\x39\xf3\x34\xe3\xb8\xf8\x66\x00\x77"
  25284. "\x7d\xcf\x3c\x3e\xfa\xc9\x0f\xaf\xe0\x24\xfa\xe9"
  25285. "\x84\xf9\x6a\x01\xf6\x35\xdb\x5c\xab\x2a\xef\x4e"
  25286. "\xac\xab\x55\xb8\x9b\xef\x98\x68\xaf\x51\xd8\x16"
  25287. "\xa5\x5e\xae\xf9\x1e\xd2\xdb\xe6",
  25288. .expectedlen = 128,
  25289. .addtla = NULL,
  25290. .addtlb = NULL,
  25291. .addtllen = 0,
  25292. .pers = (unsigned char *)
  25293. "\xa8\x80\xec\x98\x30\x98\x15\xd2\xc6\xc4\x68\xf1"
  25294. "\x3a\x1c\xbf\xce\x6a\x40\x14\xeb\x36\x99\x53\xda"
  25295. "\x57\x6b\xce\xa4\x1c\x66\x3d\xbc",
  25296. .perslen = 32,
  25297. }, {
  25298. .entropy = (unsigned char *)
  25299. "\x69\xed\x82\xa9\xc5\x7b\xbf\xe5\x1d\x2f\xcb\x7a"
  25300. "\xd3\x50\x7d\x96\xb4\xb9\x2b\x50\x77\x51\x27\x74"
  25301. "\x33\x74\xba\xf1\x30\xdf\x8e\xdf\x87\x1d\x87\xbc"
  25302. "\x96\xb2\xc3\xa7\xed\x60\x5e\x61\x4e\x51\x29\x1a",
  25303. .entropylen = 48,
  25304. .expected = (unsigned char *)
  25305. "\xa5\x71\x24\x31\x11\xfe\x13\xe1\xa8\x24\x12\xfb"
  25306. "\x37\xa1\x27\xa5\xab\x77\xa1\x9f\xae\x8f\xaf\x13"
  25307. "\x93\xf7\x53\x85\x91\xb6\x1b\xab\xd4\x6b\xea\xb6"
  25308. "\xef\xda\x4c\x90\x6e\xef\x5f\xde\xe1\xc7\x10\x36"
  25309. "\xd5\x67\xbd\x14\xb6\x89\x21\x0c\xc9\x92\x65\x64"
  25310. "\xd0\xf3\x23\xe0\x7f\xd1\xe8\x75\xc2\x85\x06\xea"
  25311. "\xca\xc0\xcb\x79\x2d\x29\x82\xfc\xaa\x9a\xc6\x95"
  25312. "\x7e\xdc\x88\x65\xba\xec\x0e\x16\x87\xec\xa3\x9e"
  25313. "\xd8\x8c\x80\xab\x3a\x64\xe0\xcb\x0e\x45\x98\xdd"
  25314. "\x7c\x6c\x6c\x26\x11\x13\xc8\xce\xa9\x47\xa6\x06"
  25315. "\x57\xa2\x66\xbb\x2d\x7f\xf3\xc1",
  25316. .expectedlen = 128,
  25317. .addtla = (unsigned char *)
  25318. "\x74\xd3\x6d\xda\xe8\xd6\x86\x5f\x63\x01\xfd\xf2"
  25319. "\x7d\x06\x29\x6d\x94\xd1\x66\xf0\xd2\x72\x67\x4e"
  25320. "\x77\xc5\x3d\x9e\x03\xe3\xa5\x78",
  25321. .addtlb = (unsigned char *)
  25322. "\xf6\xb6\x3d\xf0\x7c\x26\x04\xc5\x8b\xcd\x3e\x6a"
  25323. "\x9f\x9c\x3a\x2e\xdb\x47\x87\xe5\x8e\x00\x5e\x2b"
  25324. "\x74\x7f\xa6\xf6\x80\xcd\x9b\x21",
  25325. .addtllen = 32,
  25326. .pers = (unsigned char *)
  25327. "\x74\xa6\xe0\x08\xf9\x27\xee\x1d\x6e\x3c\x28\x20"
  25328. "\x87\xdd\xd7\x54\x31\x47\x78\x4b\xe5\x6d\xa3\x73"
  25329. "\xa9\x65\xb1\x10\xc1\xdc\x77\x7c",
  25330. .perslen = 32,
  25331. },
  25332. };
  25333. static struct drbg_testvec drbg_nopr_hmac_sha256_tv_template[] = {
  25334. {
  25335. .entropy = (unsigned char *)
  25336. "\xca\x85\x19\x11\x34\x93\x84\xbf\xfe\x89\xde\x1c"
  25337. "\xbd\xc4\x6e\x68\x31\xe4\x4d\x34\xa4\xfb\x93\x5e"
  25338. "\xe2\x85\xdd\x14\xb7\x1a\x74\x88\x65\x9b\xa9\x6c"
  25339. "\x60\x1d\xc6\x9f\xc9\x02\x94\x08\x05\xec\x0c\xa8",
  25340. .entropylen = 48,
  25341. .expected = (unsigned char *)
  25342. "\xe5\x28\xe9\xab\xf2\xde\xce\x54\xd4\x7c\x7e\x75"
  25343. "\xe5\xfe\x30\x21\x49\xf8\x17\xea\x9f\xb4\xbe\xe6"
  25344. "\xf4\x19\x96\x97\xd0\x4d\x5b\x89\xd5\x4f\xbb\x97"
  25345. "\x8a\x15\xb5\xc4\x43\xc9\xec\x21\x03\x6d\x24\x60"
  25346. "\xb6\xf7\x3e\xba\xd0\xdc\x2a\xba\x6e\x62\x4a\xbf"
  25347. "\x07\x74\x5b\xc1\x07\x69\x4b\xb7\x54\x7b\xb0\x99"
  25348. "\x5f\x70\xde\x25\xd6\xb2\x9e\x2d\x30\x11\xbb\x19"
  25349. "\xd2\x76\x76\xc0\x71\x62\xc8\xb5\xcc\xde\x06\x68"
  25350. "\x96\x1d\xf8\x68\x03\x48\x2c\xb3\x7e\xd6\xd5\xc0"
  25351. "\xbb\x8d\x50\xcf\x1f\x50\xd4\x76\xaa\x04\x58\xbd"
  25352. "\xab\xa8\x06\xf4\x8b\xe9\xdc\xb8",
  25353. .expectedlen = 128,
  25354. .addtla = NULL,
  25355. .addtlb = NULL,
  25356. .addtllen = 0,
  25357. .pers = NULL,
  25358. .perslen = 0,
  25359. }, {
  25360. .entropy = (unsigned char *)
  25361. "\xf9\x7a\x3c\xfd\x91\xfa\xa0\x46\xb9\xe6\x1b\x94"
  25362. "\x93\xd4\x36\xc4\x93\x1f\x60\x4b\x22\xf1\x08\x15"
  25363. "\x21\xb3\x41\x91\x51\xe8\xff\x06\x11\xf3\xa7\xd4"
  25364. "\x35\x95\x35\x7d\x58\x12\x0b\xd1\xe2\xdd\x8a\xed",
  25365. .entropylen = 48,
  25366. .expected = (unsigned char *)
  25367. "\xc6\x87\x1c\xff\x08\x24\xfe\x55\xea\x76\x89\xa5"
  25368. "\x22\x29\x88\x67\x30\x45\x0e\x5d\x36\x2d\xa5\xbf"
  25369. "\x59\x0d\xcf\x9a\xcd\x67\xfe\xd4\xcb\x32\x10\x7d"
  25370. "\xf5\xd0\x39\x69\xa6\x6b\x1f\x64\x94\xfd\xf5\xd6"
  25371. "\x3d\x5b\x4d\x0d\x34\xea\x73\x99\xa0\x7d\x01\x16"
  25372. "\x12\x6d\x0d\x51\x8c\x7c\x55\xba\x46\xe1\x2f\x62"
  25373. "\xef\xc8\xfe\x28\xa5\x1c\x9d\x42\x8e\x6d\x37\x1d"
  25374. "\x73\x97\xab\x31\x9f\xc7\x3d\xed\x47\x22\xe5\xb4"
  25375. "\xf3\x00\x04\x03\x2a\x61\x28\xdf\x5e\x74\x97\xec"
  25376. "\xf8\x2c\xa7\xb0\xa5\x0e\x86\x7e\xf6\x72\x8a\x4f"
  25377. "\x50\x9a\x8c\x85\x90\x87\x03\x9c",
  25378. .expectedlen = 128,
  25379. .addtla = (unsigned char *)
  25380. "\x51\x72\x89\xaf\xe4\x44\xa0\xfe\x5e\xd1\xa4\x1d"
  25381. "\xbb\xb5\xeb\x17\x15\x00\x79\xbd\xd3\x1e\x29\xcf"
  25382. "\x2f\xf3\x00\x34\xd8\x26\x8e\x3b",
  25383. .addtlb = (unsigned char *)
  25384. "\x88\x02\x8d\x29\xef\x80\xb4\xe6\xf0\xfe\x12\xf9"
  25385. "\x1d\x74\x49\xfe\x75\x06\x26\x82\xe8\x9c\x57\x14"
  25386. "\x40\xc0\xc9\xb5\x2c\x42\xa6\xe0",
  25387. .addtllen = 32,
  25388. .pers = NULL,
  25389. .perslen = 0,
  25390. }, {
  25391. .entropy = (unsigned char *)
  25392. "\x8d\xf0\x13\xb4\xd1\x03\x52\x30\x73\x91\x7d\xdf"
  25393. "\x6a\x86\x97\x93\x05\x9e\x99\x43\xfc\x86\x54\x54"
  25394. "\x9e\x7a\xb2\x2f\x7c\x29\xf1\x22\xda\x26\x25\xaf"
  25395. "\x2d\xdd\x4a\xbc\xce\x3c\xf4\xfa\x46\x59\xd8\x4e",
  25396. .entropylen = 48,
  25397. .expected = (unsigned char *)
  25398. "\xb9\x1c\xba\x4c\xc8\x4f\xa2\x5d\xf8\x61\x0b\x81"
  25399. "\xb6\x41\x40\x27\x68\xa2\x09\x72\x34\x93\x2e\x37"
  25400. "\xd5\x90\xb1\x15\x4c\xbd\x23\xf9\x74\x52\xe3\x10"
  25401. "\xe2\x91\xc4\x51\x46\x14\x7f\x0d\xa2\xd8\x17\x61"
  25402. "\xfe\x90\xfb\xa6\x4f\x94\x41\x9c\x0f\x66\x2b\x28"
  25403. "\xc1\xed\x94\xda\x48\x7b\xb7\xe7\x3e\xec\x79\x8f"
  25404. "\xbc\xf9\x81\xb7\x91\xd1\xbe\x4f\x17\x7a\x89\x07"
  25405. "\xaa\x3c\x40\x16\x43\xa5\xb6\x2b\x87\xb8\x9d\x66"
  25406. "\xb3\xa6\x0e\x40\xd4\xa8\xe4\xe9\xd8\x2a\xf6\xd2"
  25407. "\x70\x0e\x6f\x53\x5c\xdb\x51\xf7\x5c\x32\x17\x29"
  25408. "\x10\x37\x41\x03\x0c\xcc\x3a\x56",
  25409. .expectedlen = 128,
  25410. .addtla = NULL,
  25411. .addtlb = NULL,
  25412. .addtllen = 0,
  25413. .pers = (unsigned char *)
  25414. "\xb5\x71\xe6\x6d\x7c\x33\x8b\xc0\x7b\x76\xad\x37"
  25415. "\x57\xbb\x2f\x94\x52\xbf\x7e\x07\x43\x7a\xe8\x58"
  25416. "\x1c\xe7\xbc\x7c\x3a\xc6\x51\xa9",
  25417. .perslen = 32,
  25418. }, {
  25419. .entropy = (unsigned char *)
  25420. "\xc2\xa5\x66\xa9\xa1\x81\x7b\x15\xc5\xc3\xb7\x78"
  25421. "\x17\x7a\xc8\x7c\x24\xe7\x97\xbe\x0a\x84\x5f\x11"
  25422. "\xc2\xfe\x39\x9d\xd3\x77\x32\xf2\xcb\x18\x94\xeb"
  25423. "\x2b\x97\xb3\xc5\x6e\x62\x83\x29\x51\x6f\x86\xec",
  25424. .entropylen = 48,
  25425. .expected = (unsigned char *)
  25426. "\xb3\xa3\x69\x8d\x77\x76\x99\xa0\xdd\x9f\xa3\xf0"
  25427. "\xa9\xfa\x57\x83\x2d\x3c\xef\xac\x5d\xf2\x44\x37"
  25428. "\xc6\xd7\x3a\x0f\xe4\x10\x40\xf1\x72\x90\x38\xae"
  25429. "\xf1\xe9\x26\x35\x2e\xa5\x9d\xe1\x20\xbf\xb7\xb0"
  25430. "\x73\x18\x3a\x34\x10\x6e\xfe\xd6\x27\x8f\xf8\xad"
  25431. "\x84\x4b\xa0\x44\x81\x15\xdf\xdd\xf3\x31\x9a\x82"
  25432. "\xde\x6b\xb1\x1d\x80\xbd\x87\x1a\x9a\xcd\x35\xc7"
  25433. "\x36\x45\xe1\x27\x0f\xb9\xfe\x4f\xa8\x8e\xc0\xe4"
  25434. "\x65\x40\x9e\xa0\xcb\xa8\x09\xfe\x2f\x45\xe0\x49"
  25435. "\x43\xa2\xe3\x96\xbb\xb7\xdd\x2f\x4e\x07\x95\x30"
  25436. "\x35\x24\xcc\x9c\xc5\xea\x54\xa1",
  25437. .expectedlen = 128,
  25438. .addtla = (unsigned char *)
  25439. "\x41\x3d\xd8\x3f\xe5\x68\x35\xab\xd4\x78\xcb\x96"
  25440. "\x93\xd6\x76\x35\x90\x1c\x40\x23\x9a\x26\x64\x62"
  25441. "\xd3\x13\x3b\x83\xe4\x9c\x82\x0b",
  25442. .addtlb = (unsigned char *)
  25443. "\xd5\xc4\xa7\x1f\x9d\x6d\x95\xa1\xbe\xdf\x0b\xd2"
  25444. "\x24\x7c\x27\x7d\x1f\x84\xa4\xe5\x7a\x4a\x88\x25"
  25445. "\xb8\x2a\x2d\x09\x7d\xe6\x3e\xf1",
  25446. .addtllen = 32,
  25447. .pers = (unsigned char *)
  25448. "\x13\xce\x4d\x8d\xd2\xdb\x97\x96\xf9\x41\x56\xc8"
  25449. "\xe8\xf0\x76\x9b\x0a\xa1\xc8\x2c\x13\x23\xb6\x15"
  25450. "\x36\x60\x3b\xca\x37\xc9\xee\x29",
  25451. .perslen = 32,
  25452. },
  25453. };
  25454. static struct drbg_testvec drbg_nopr_ctr_aes192_tv_template[] = {
  25455. {
  25456. .entropy = (unsigned char *)
  25457. "\xc3\x5c\x2f\xa2\xa8\x9d\x52\xa1\x1f\xa3\x2a\xa9"
  25458. "\x6c\x95\xb8\xf1\xc9\xa8\xf9\xcb\x24\x5a\x8b\x40"
  25459. "\xf3\xa6\xe5\xa7\xfb\xd9\xd3\xc6\x8e\x27\x7b\xa9"
  25460. "\xac\x9b\xbb\x00",
  25461. .entropylen = 40,
  25462. .expected = (unsigned char *)
  25463. "\x8c\x2e\x72\xab\xfd\x9b\xb8\x28\x4d\xb7\x9e\x17"
  25464. "\xa4\x3a\x31\x46\xcd\x76\x94\xe3\x52\x49\xfc\x33"
  25465. "\x83\x91\x4a\x71\x17\xf4\x13\x68\xe6\xd4\xf1\x48"
  25466. "\xff\x49\xbf\x29\x07\x6b\x50\x15\xc5\x9f\x45\x79"
  25467. "\x45\x66\x2e\x3d\x35\x03\x84\x3f\x4a\xa5\xa3\xdf"
  25468. "\x9a\x9d\xf1\x0d",
  25469. .expectedlen = 64,
  25470. .addtla = NULL,
  25471. .addtlb = NULL,
  25472. .addtllen = 0,
  25473. .pers = NULL,
  25474. .perslen = 0,
  25475. },
  25476. };
  25477. static struct drbg_testvec drbg_nopr_ctr_aes256_tv_template[] = {
  25478. {
  25479. .entropy = (unsigned char *)
  25480. "\x36\x40\x19\x40\xfa\x8b\x1f\xba\x91\xa1\x66\x1f"
  25481. "\x21\x1d\x78\xa0\xb9\x38\x9a\x74\xe5\xbc\xcf\xec"
  25482. "\xe8\xd7\x66\xaf\x1a\x6d\x3b\x14\x49\x6f\x25\xb0"
  25483. "\xf1\x30\x1b\x4f\x50\x1b\xe3\x03\x80\xa1\x37\xeb",
  25484. .entropylen = 48,
  25485. .expected = (unsigned char *)
  25486. "\x58\x62\xeb\x38\xbd\x55\x8d\xd9\x78\xa6\x96\xe6"
  25487. "\xdf\x16\x47\x82\xdd\xd8\x87\xe7\xe9\xa6\xc9\xf3"
  25488. "\xf1\xfb\xaf\xb7\x89\x41\xb5\x35\xa6\x49\x12\xdf"
  25489. "\xd2\x24\xc6\xdc\x74\x54\xe5\x25\x0b\x3d\x97\x16"
  25490. "\x5e\x16\x26\x0c\x2f\xaf\x1c\xc7\x73\x5c\xb7\x5f"
  25491. "\xb4\xf0\x7e\x1d",
  25492. .expectedlen = 64,
  25493. .addtla = NULL,
  25494. .addtlb = NULL,
  25495. .addtllen = 0,
  25496. .pers = NULL,
  25497. .perslen = 0,
  25498. },
  25499. };
  25500. static struct drbg_testvec drbg_nopr_ctr_aes128_tv_template[] = {
  25501. {
  25502. .entropy = (unsigned char *)
  25503. "\x87\xe1\xc5\x32\x99\x7f\x57\xa3\x5c\x28\x6d\xe8"
  25504. "\x64\xbf\xf2\x64\xa3\x9e\x98\xdb\x6c\x10\x78\x7f",
  25505. .entropylen = 24,
  25506. .expected = (unsigned char *)
  25507. "\x2c\x14\x7e\x24\x11\x9a\xd8\xd4\xb2\xed\x61\xc1"
  25508. "\x53\xd0\x50\xc9\x24\xff\x59\x75\x15\xf1\x17\x3a"
  25509. "\x3d\xf4\x4b\x2c\x84\x28\xef\x89\x0e\xb9\xde\xf3"
  25510. "\xe4\x78\x04\xb2\xfd\x9b\x35\x7f\xe1\x3f\x8a\x3e"
  25511. "\x10\xc8\x67\x0a\xf9\xdf\x2d\x6c\x96\xfb\xb2\xb8"
  25512. "\xcb\x2d\xd6\xb0",
  25513. .expectedlen = 64,
  25514. .addtla = NULL,
  25515. .addtlb = NULL,
  25516. .addtllen = 0,
  25517. .pers = NULL,
  25518. .perslen = 0,
  25519. }, {
  25520. .entropy = (unsigned char *)
  25521. "\x71\xbd\xce\x35\x42\x7d\x20\xbf\x58\xcf\x17\x74"
  25522. "\xce\x72\xd8\x33\x34\x50\x2d\x8f\x5b\x14\xc4\xdd",
  25523. .entropylen = 24,
  25524. .expected = (unsigned char *)
  25525. "\x97\x33\xe8\x20\x12\xe2\x7b\xa1\x46\x8f\xf2\x34"
  25526. "\xb3\xc9\xb6\x6b\x20\xb2\x4f\xee\x27\xd8\x0b\x21"
  25527. "\x8c\xff\x63\x73\x69\x29\xfb\xf3\x85\xcd\x88\x8e"
  25528. "\x43\x2c\x71\x8b\xa2\x55\xd2\x0f\x1d\x7f\xe3\xe1"
  25529. "\x2a\xa3\xe9\x2c\x25\x89\xc7\x14\x52\x99\x56\xcc"
  25530. "\xc3\xdf\xb3\x81",
  25531. .expectedlen = 64,
  25532. .addtla = (unsigned char *)
  25533. "\x66\xef\x42\xd6\x9a\x8c\x3d\x6d\x4a\x9e\x95\xa6"
  25534. "\x91\x4d\x81\x56",
  25535. .addtlb = (unsigned char *)
  25536. "\xe3\x18\x83\xd9\x4b\x5e\xc4\xcc\xaa\x61\x2f\xbb"
  25537. "\x4a\x55\xd1\xc6",
  25538. .addtllen = 16,
  25539. .pers = NULL,
  25540. .perslen = 0,
  25541. }, {
  25542. .entropy = (unsigned char *)
  25543. "\xca\x4b\x1e\xfa\x75\xbd\x69\x36\x38\x73\xb8\xf9"
  25544. "\xdb\x4d\x35\x0e\x47\xbf\x6c\x37\x72\xfd\xf7\xa9",
  25545. .entropylen = 24,
  25546. .expected = (unsigned char *)
  25547. "\x59\xc3\x19\x79\x1b\xb1\xf3\x0e\xe9\x34\xae\x6e"
  25548. "\x8b\x1f\xad\x1f\x74\xca\x25\x45\x68\xb8\x7f\x75"
  25549. "\x12\xf8\xf2\xab\x4c\x23\x01\x03\x05\xe1\x70\xee"
  25550. "\x75\xd8\xcb\xeb\x23\x4c\x7a\x23\x6e\x12\x27\xdb"
  25551. "\x6f\x7a\xac\x3c\x44\xb7\x87\x4b\x65\x56\x74\x45"
  25552. "\x34\x30\x0c\x3d",
  25553. .expectedlen = 64,
  25554. .addtla = NULL,
  25555. .addtlb = NULL,
  25556. .addtllen = 0,
  25557. .pers = (unsigned char *)
  25558. "\xeb\xaa\x60\x2c\x4d\xbe\x33\xff\x1b\xef\xbf\x0a"
  25559. "\x0b\xc6\x97\x54",
  25560. .perslen = 16,
  25561. }, {
  25562. .entropy = (unsigned char *)
  25563. "\xc0\x70\x1f\x92\x50\x75\x8f\xcd\xf2\xbe\x73\x98"
  25564. "\x80\xdb\x66\xeb\x14\x68\xb4\xa5\x87\x9c\x2d\xa6",
  25565. .entropylen = 24,
  25566. .expected = (unsigned char *)
  25567. "\x97\xc0\xc0\xe5\xa0\xcc\xf2\x4f\x33\x63\x48\x8a"
  25568. "\xdb\x13\x0a\x35\x89\xbf\x80\x65\x62\xee\x13\x95"
  25569. "\x7c\x33\xd3\x7d\xf4\x07\x77\x7a\x2b\x65\x0b\x5f"
  25570. "\x45\x5c\x13\xf1\x90\x77\x7f\xc5\x04\x3f\xcc\x1a"
  25571. "\x38\xf8\xcd\x1b\xbb\xd5\x57\xd1\x4a\x4c\x2e\x8a"
  25572. "\x2b\x49\x1e\x5c",
  25573. .expectedlen = 64,
  25574. .addtla = (unsigned char *)
  25575. "\xf9\x01\xf8\x16\x7a\x1d\xff\xde\x8e\x3c\x83\xe2"
  25576. "\x44\x85\xe7\xfe",
  25577. .addtlb = (unsigned char *)
  25578. "\x17\x1c\x09\x38\xc2\x38\x9f\x97\x87\x60\x55\xb4"
  25579. "\x82\x16\x62\x7f",
  25580. .addtllen = 16,
  25581. .pers = (unsigned char *)
  25582. "\x80\x08\xae\xe8\xe9\x69\x40\xc5\x08\x73\xc7\x9f"
  25583. "\x8e\xcf\xe0\x02",
  25584. .perslen = 16,
  25585. },
  25586. };
  25587. /* Cast5 test vectors from RFC 2144 */
  25588. #define CAST5_ENC_TEST_VECTORS 4
  25589. #define CAST5_DEC_TEST_VECTORS 4
  25590. #define CAST5_CBC_ENC_TEST_VECTORS 1
  25591. #define CAST5_CBC_DEC_TEST_VECTORS 1
  25592. #define CAST5_CTR_ENC_TEST_VECTORS 2
  25593. #define CAST5_CTR_DEC_TEST_VECTORS 2
  25594. static struct cipher_testvec cast5_enc_tv_template[] = {
  25595. {
  25596. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  25597. "\x23\x45\x67\x89\x34\x56\x78\x9a",
  25598. .klen = 16,
  25599. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  25600. .ilen = 8,
  25601. .result = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
  25602. .rlen = 8,
  25603. }, {
  25604. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  25605. "\x23\x45",
  25606. .klen = 10,
  25607. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  25608. .ilen = 8,
  25609. .result = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
  25610. .rlen = 8,
  25611. }, {
  25612. .key = "\x01\x23\x45\x67\x12",
  25613. .klen = 5,
  25614. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  25615. .ilen = 8,
  25616. .result = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
  25617. .rlen = 8,
  25618. }, { /* Generated from TF test vectors */
  25619. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  25620. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
  25621. .klen = 16,
  25622. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  25623. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  25624. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  25625. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  25626. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  25627. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  25628. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  25629. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  25630. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  25631. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  25632. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  25633. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  25634. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  25635. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  25636. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  25637. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  25638. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  25639. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  25640. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  25641. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  25642. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  25643. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  25644. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  25645. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  25646. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  25647. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  25648. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  25649. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  25650. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  25651. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  25652. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  25653. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  25654. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  25655. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  25656. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  25657. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  25658. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  25659. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  25660. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  25661. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  25662. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  25663. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  25664. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  25665. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  25666. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  25667. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  25668. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  25669. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  25670. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  25671. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  25672. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  25673. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  25674. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  25675. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  25676. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  25677. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  25678. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  25679. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  25680. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  25681. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  25682. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  25683. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  25684. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  25685. .ilen = 496,
  25686. .result = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C"
  25687. "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA"
  25688. "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E"
  25689. "\xD1\x39\x34\x92\x8F\xFA\x14\xF1"
  25690. "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2"
  25691. "\x20\xD9\x42\x06\xC9\x0B\x10\x04"
  25692. "\xF8\x79\xCD\x32\x86\x75\x4C\xB6"
  25693. "\x7B\x1C\x52\xB1\x91\x64\x22\x4B"
  25694. "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F"
  25695. "\x3F\xF4\x43\x96\x73\x0D\xA2\x05"
  25696. "\xDB\xFD\x28\x90\x2C\x56\xB9\x37"
  25697. "\x5B\x69\x0C\xAD\x84\x67\xFF\x15"
  25698. "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A"
  25699. "\xED\x34\x35\x78\x6B\x91\xC9\x32"
  25700. "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39"
  25701. "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2"
  25702. "\x1C\xFD\x0E\x05\x07\xF4\x10\xED"
  25703. "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22"
  25704. "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9"
  25705. "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77"
  25706. "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC"
  25707. "\xBA\x5C\x80\xD1\x91\x65\x51\x1B"
  25708. "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6"
  25709. "\x78\x75\x37\x55\xC1\xF5\x90\x40"
  25710. "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E"
  25711. "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E"
  25712. "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD"
  25713. "\xE0\x69\x77\x50\xC7\x0C\x99\xCA"
  25714. "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C"
  25715. "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9"
  25716. "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48"
  25717. "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9"
  25718. "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6"
  25719. "\x55\xF4\x06\xBB\x49\x53\x8B\x1B"
  25720. "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC"
  25721. "\x93\x85\x90\x0F\x0A\x68\x40\x2A"
  25722. "\x95\xED\x2D\x88\xBF\x71\xD0\xBB"
  25723. "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05"
  25724. "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2"
  25725. "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8"
  25726. "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF"
  25727. "\xDD\x70\x37\x63\xAA\xA5\x83\x20"
  25728. "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6"
  25729. "\x79\x03\xA0\xDA\xA3\x79\x21\xBD"
  25730. "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE"
  25731. "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06"
  25732. "\xBB\xE3\xAB\x06\x21\x82\xB8\x32"
  25733. "\x31\x34\x2A\xA7\x1F\x64\x99\xBF"
  25734. "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48"
  25735. "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59"
  25736. "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF"
  25737. "\xF0\x40\x5F\xCF\xE3\x58\x52\x67"
  25738. "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F"
  25739. "\x58\x56\xDD\x94\x1F\x71\x8D\xF4"
  25740. "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF"
  25741. "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57"
  25742. "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84"
  25743. "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37"
  25744. "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33"
  25745. "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE"
  25746. "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57"
  25747. "\xF5\xBC\x25\xD6\x02\x56\x57\x1C",
  25748. .rlen = 496,
  25749. .also_non_np = 1,
  25750. .np = 3,
  25751. .tap = { 496 - 20, 4, 16 },
  25752. },
  25753. };
  25754. static struct cipher_testvec cast5_dec_tv_template[] = {
  25755. {
  25756. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  25757. "\x23\x45\x67\x89\x34\x56\x78\x9a",
  25758. .klen = 16,
  25759. .input = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
  25760. .ilen = 8,
  25761. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  25762. .rlen = 8,
  25763. }, {
  25764. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  25765. "\x23\x45",
  25766. .klen = 10,
  25767. .input = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
  25768. .ilen = 8,
  25769. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  25770. .rlen = 8,
  25771. }, {
  25772. .key = "\x01\x23\x45\x67\x12",
  25773. .klen = 5,
  25774. .input = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
  25775. .ilen = 8,
  25776. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  25777. .rlen = 8,
  25778. }, { /* Generated from TF test vectors */
  25779. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  25780. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
  25781. .klen = 16,
  25782. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  25783. .input = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C"
  25784. "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA"
  25785. "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E"
  25786. "\xD1\x39\x34\x92\x8F\xFA\x14\xF1"
  25787. "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2"
  25788. "\x20\xD9\x42\x06\xC9\x0B\x10\x04"
  25789. "\xF8\x79\xCD\x32\x86\x75\x4C\xB6"
  25790. "\x7B\x1C\x52\xB1\x91\x64\x22\x4B"
  25791. "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F"
  25792. "\x3F\xF4\x43\x96\x73\x0D\xA2\x05"
  25793. "\xDB\xFD\x28\x90\x2C\x56\xB9\x37"
  25794. "\x5B\x69\x0C\xAD\x84\x67\xFF\x15"
  25795. "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A"
  25796. "\xED\x34\x35\x78\x6B\x91\xC9\x32"
  25797. "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39"
  25798. "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2"
  25799. "\x1C\xFD\x0E\x05\x07\xF4\x10\xED"
  25800. "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22"
  25801. "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9"
  25802. "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77"
  25803. "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC"
  25804. "\xBA\x5C\x80\xD1\x91\x65\x51\x1B"
  25805. "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6"
  25806. "\x78\x75\x37\x55\xC1\xF5\x90\x40"
  25807. "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E"
  25808. "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E"
  25809. "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD"
  25810. "\xE0\x69\x77\x50\xC7\x0C\x99\xCA"
  25811. "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C"
  25812. "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9"
  25813. "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48"
  25814. "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9"
  25815. "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6"
  25816. "\x55\xF4\x06\xBB\x49\x53\x8B\x1B"
  25817. "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC"
  25818. "\x93\x85\x90\x0F\x0A\x68\x40\x2A"
  25819. "\x95\xED\x2D\x88\xBF\x71\xD0\xBB"
  25820. "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05"
  25821. "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2"
  25822. "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8"
  25823. "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF"
  25824. "\xDD\x70\x37\x63\xAA\xA5\x83\x20"
  25825. "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6"
  25826. "\x79\x03\xA0\xDA\xA3\x79\x21\xBD"
  25827. "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE"
  25828. "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06"
  25829. "\xBB\xE3\xAB\x06\x21\x82\xB8\x32"
  25830. "\x31\x34\x2A\xA7\x1F\x64\x99\xBF"
  25831. "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48"
  25832. "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59"
  25833. "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF"
  25834. "\xF0\x40\x5F\xCF\xE3\x58\x52\x67"
  25835. "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F"
  25836. "\x58\x56\xDD\x94\x1F\x71\x8D\xF4"
  25837. "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF"
  25838. "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57"
  25839. "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84"
  25840. "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37"
  25841. "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33"
  25842. "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE"
  25843. "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57"
  25844. "\xF5\xBC\x25\xD6\x02\x56\x57\x1C",
  25845. .ilen = 496,
  25846. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  25847. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  25848. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  25849. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  25850. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  25851. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  25852. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  25853. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  25854. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  25855. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  25856. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  25857. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  25858. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  25859. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  25860. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  25861. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  25862. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  25863. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  25864. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  25865. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  25866. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  25867. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  25868. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  25869. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  25870. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  25871. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  25872. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  25873. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  25874. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  25875. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  25876. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  25877. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  25878. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  25879. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  25880. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  25881. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  25882. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  25883. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  25884. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  25885. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  25886. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  25887. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  25888. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  25889. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  25890. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  25891. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  25892. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  25893. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  25894. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  25895. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  25896. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  25897. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  25898. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  25899. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  25900. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  25901. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  25902. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  25903. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  25904. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  25905. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  25906. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  25907. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  25908. .rlen = 496,
  25909. .also_non_np = 1,
  25910. .np = 3,
  25911. .tap = { 496 - 20, 4, 16 },
  25912. },
  25913. };
  25914. static struct cipher_testvec cast5_cbc_enc_tv_template[] = {
  25915. { /* Generated from TF test vectors */
  25916. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  25917. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
  25918. .klen = 16,
  25919. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  25920. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  25921. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  25922. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  25923. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  25924. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  25925. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  25926. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  25927. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  25928. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  25929. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  25930. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  25931. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  25932. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  25933. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  25934. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  25935. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  25936. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  25937. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  25938. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  25939. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  25940. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  25941. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  25942. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  25943. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  25944. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  25945. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  25946. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  25947. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  25948. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  25949. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  25950. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  25951. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  25952. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  25953. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  25954. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  25955. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  25956. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  25957. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  25958. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  25959. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  25960. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  25961. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  25962. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  25963. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  25964. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  25965. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  25966. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  25967. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  25968. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  25969. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  25970. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  25971. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  25972. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  25973. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  25974. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  25975. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  25976. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  25977. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  25978. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  25979. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  25980. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  25981. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  25982. .ilen = 496,
  25983. .result = "\x05\x28\xCE\x61\x90\x80\xE1\x78"
  25984. "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A"
  25985. "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB"
  25986. "\xDA\xF0\x6E\x77\x14\x47\x82\xBA"
  25987. "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F"
  25988. "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39"
  25989. "\xA7\xFB\x0D\x05\x00\xF3\x58\x67"
  25990. "\x60\xEC\x73\x77\x46\x85\x9B\x6A"
  25991. "\x08\x3E\xBE\x59\xFB\xE4\x96\x34"
  25992. "\xB4\x05\x49\x1A\x97\x43\xAD\xA0"
  25993. "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8"
  25994. "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA"
  25995. "\xA7\xF1\x33\x67\x90\x23\x0D\xEE"
  25996. "\x81\xD5\x78\x4F\xD3\x63\xEA\x46"
  25997. "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10"
  25998. "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D"
  25999. "\x36\x7C\x56\x14\x54\x83\xFA\xA1"
  26000. "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6"
  26001. "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8"
  26002. "\xA7\xD9\x67\x92\x5C\x13\xB4\x71"
  26003. "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C"
  26004. "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37"
  26005. "\xC8\x52\x60\xD9\xE7\xCA\x60\x98"
  26006. "\xED\xCD\xE8\x60\x83\xAD\x34\x4D"
  26007. "\x96\x4A\x99\x2B\xB7\x14\x75\x66"
  26008. "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56"
  26009. "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3"
  26010. "\x18\x38\x09\x9C\x0E\x8B\x86\x07"
  26011. "\x90\x12\x37\x49\x27\x98\x69\x18"
  26012. "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85"
  26013. "\x4B\x22\x97\x07\xB6\x97\xE9\x95"
  26014. "\x0F\x88\x36\xA9\x44\x00\xC6\xE9"
  26015. "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE"
  26016. "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49"
  26017. "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97"
  26018. "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE"
  26019. "\x03\x55\x0E\x02\x41\x4A\x45\x06"
  26020. "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20"
  26021. "\x94\x02\x30\xD2\xFC\x29\xFA\x8E"
  26022. "\x34\xA0\x31\xB8\x34\xBA\xAE\x54"
  26023. "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F"
  26024. "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A"
  26025. "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3"
  26026. "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A"
  26027. "\xB6\x37\x21\x19\x55\xC2\xBD\x99"
  26028. "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2"
  26029. "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2"
  26030. "\x11\xB4\x18\x17\x1A\x65\x92\x56"
  26031. "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1"
  26032. "\x1A\x01\x22\x45\x17\x62\x52\x6C"
  26033. "\x91\x44\xCF\x98\xC7\xC0\x79\x26"
  26034. "\x32\x66\x6F\x23\x7F\x94\x36\x88"
  26035. "\x3C\xC9\xD0\xB7\x45\x30\x31\x86"
  26036. "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B"
  26037. "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86"
  26038. "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA"
  26039. "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9"
  26040. "\x7C\xEF\x53\xB7\x60\x72\x41\xBF"
  26041. "\x29\x00\x87\x02\xAF\x44\x4C\xB7"
  26042. "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7"
  26043. "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6"
  26044. "\x1D\x18\x66\x44\x5B\x8F\x14\xEB",
  26045. .rlen = 496,
  26046. .also_non_np = 1,
  26047. .np = 3,
  26048. .tap = { 496 - 20, 4, 16 },
  26049. },
  26050. };
  26051. static struct cipher_testvec cast5_cbc_dec_tv_template[] = {
  26052. { /* Generated from TF test vectors */
  26053. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  26054. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
  26055. .klen = 16,
  26056. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  26057. .input = "\x05\x28\xCE\x61\x90\x80\xE1\x78"
  26058. "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A"
  26059. "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB"
  26060. "\xDA\xF0\x6E\x77\x14\x47\x82\xBA"
  26061. "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F"
  26062. "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39"
  26063. "\xA7\xFB\x0D\x05\x00\xF3\x58\x67"
  26064. "\x60\xEC\x73\x77\x46\x85\x9B\x6A"
  26065. "\x08\x3E\xBE\x59\xFB\xE4\x96\x34"
  26066. "\xB4\x05\x49\x1A\x97\x43\xAD\xA0"
  26067. "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8"
  26068. "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA"
  26069. "\xA7\xF1\x33\x67\x90\x23\x0D\xEE"
  26070. "\x81\xD5\x78\x4F\xD3\x63\xEA\x46"
  26071. "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10"
  26072. "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D"
  26073. "\x36\x7C\x56\x14\x54\x83\xFA\xA1"
  26074. "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6"
  26075. "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8"
  26076. "\xA7\xD9\x67\x92\x5C\x13\xB4\x71"
  26077. "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C"
  26078. "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37"
  26079. "\xC8\x52\x60\xD9\xE7\xCA\x60\x98"
  26080. "\xED\xCD\xE8\x60\x83\xAD\x34\x4D"
  26081. "\x96\x4A\x99\x2B\xB7\x14\x75\x66"
  26082. "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56"
  26083. "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3"
  26084. "\x18\x38\x09\x9C\x0E\x8B\x86\x07"
  26085. "\x90\x12\x37\x49\x27\x98\x69\x18"
  26086. "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85"
  26087. "\x4B\x22\x97\x07\xB6\x97\xE9\x95"
  26088. "\x0F\x88\x36\xA9\x44\x00\xC6\xE9"
  26089. "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE"
  26090. "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49"
  26091. "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97"
  26092. "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE"
  26093. "\x03\x55\x0E\x02\x41\x4A\x45\x06"
  26094. "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20"
  26095. "\x94\x02\x30\xD2\xFC\x29\xFA\x8E"
  26096. "\x34\xA0\x31\xB8\x34\xBA\xAE\x54"
  26097. "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F"
  26098. "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A"
  26099. "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3"
  26100. "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A"
  26101. "\xB6\x37\x21\x19\x55\xC2\xBD\x99"
  26102. "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2"
  26103. "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2"
  26104. "\x11\xB4\x18\x17\x1A\x65\x92\x56"
  26105. "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1"
  26106. "\x1A\x01\x22\x45\x17\x62\x52\x6C"
  26107. "\x91\x44\xCF\x98\xC7\xC0\x79\x26"
  26108. "\x32\x66\x6F\x23\x7F\x94\x36\x88"
  26109. "\x3C\xC9\xD0\xB7\x45\x30\x31\x86"
  26110. "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B"
  26111. "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86"
  26112. "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA"
  26113. "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9"
  26114. "\x7C\xEF\x53\xB7\x60\x72\x41\xBF"
  26115. "\x29\x00\x87\x02\xAF\x44\x4C\xB7"
  26116. "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7"
  26117. "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6"
  26118. "\x1D\x18\x66\x44\x5B\x8F\x14\xEB",
  26119. .ilen = 496,
  26120. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  26121. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  26122. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  26123. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  26124. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  26125. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  26126. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  26127. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  26128. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  26129. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  26130. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  26131. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  26132. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  26133. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  26134. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  26135. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  26136. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  26137. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  26138. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  26139. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  26140. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  26141. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  26142. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  26143. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  26144. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  26145. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  26146. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  26147. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  26148. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  26149. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  26150. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  26151. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  26152. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  26153. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  26154. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  26155. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  26156. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  26157. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  26158. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  26159. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  26160. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  26161. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  26162. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  26163. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  26164. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  26165. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  26166. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  26167. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  26168. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  26169. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  26170. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  26171. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  26172. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  26173. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  26174. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  26175. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  26176. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  26177. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  26178. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  26179. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  26180. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  26181. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  26182. .rlen = 496,
  26183. .also_non_np = 1,
  26184. .np = 3,
  26185. .tap = { 496 - 20, 4, 16 },
  26186. },
  26187. };
  26188. static struct cipher_testvec cast5_ctr_enc_tv_template[] = {
  26189. { /* Generated from TF test vectors */
  26190. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  26191. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
  26192. .klen = 16,
  26193. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  26194. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  26195. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  26196. "\x3A",
  26197. .ilen = 17,
  26198. .result = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
  26199. "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
  26200. "\x0C",
  26201. .rlen = 17,
  26202. }, { /* Generated from TF test vectors */
  26203. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  26204. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
  26205. .klen = 16,
  26206. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  26207. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  26208. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  26209. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  26210. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  26211. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  26212. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  26213. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  26214. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  26215. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  26216. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  26217. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  26218. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  26219. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  26220. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  26221. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  26222. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  26223. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  26224. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  26225. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  26226. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  26227. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  26228. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  26229. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  26230. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  26231. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  26232. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  26233. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  26234. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  26235. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  26236. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  26237. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  26238. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  26239. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  26240. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  26241. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  26242. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  26243. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  26244. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  26245. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  26246. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  26247. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  26248. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  26249. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  26250. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  26251. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  26252. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  26253. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  26254. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  26255. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  26256. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  26257. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  26258. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  26259. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  26260. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  26261. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  26262. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  26263. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  26264. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  26265. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  26266. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  26267. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  26268. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  26269. .ilen = 496,
  26270. .result = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
  26271. "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
  26272. "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F"
  26273. "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF"
  26274. "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44"
  26275. "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C"
  26276. "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF"
  26277. "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B"
  26278. "\x64\xB0\x7B\x86\x29\x1D\x9F\x17"
  26279. "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3"
  26280. "\x88\x18\x52\x56\x48\x58\xD1\x6B"
  26281. "\xE8\x74\x6E\x48\xB0\x2E\x69\x63"
  26282. "\x32\xAA\xAC\x26\x55\x45\x94\xDE"
  26283. "\x30\x26\x26\xE6\x08\x82\x2F\x5F"
  26284. "\xA7\x15\x94\x07\x75\x2D\xC6\x3A"
  26285. "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56"
  26286. "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B"
  26287. "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7"
  26288. "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5"
  26289. "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F"
  26290. "\x3B\x29\xF9\xB4\x32\x62\x69\xBF"
  26291. "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3"
  26292. "\x44\x67\x90\x20\xAC\x41\xDF\x43"
  26293. "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB"
  26294. "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60"
  26295. "\xC7\xC9\x71\x34\x44\xCE\x05\xFD"
  26296. "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C"
  26297. "\xAE\x59\x0F\x07\x88\x79\x53\x26"
  26298. "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62"
  26299. "\xD0\x82\x65\x66\xE4\x2A\x29\x1C"
  26300. "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9"
  26301. "\xED\xC4\x13\x52\x75\xDC\xE4\xF9"
  26302. "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA"
  26303. "\x49\xA1\x86\x86\x37\x5C\x6B\x3D"
  26304. "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8"
  26305. "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0"
  26306. "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2"
  26307. "\x23\xD3\xC7\x27\x15\x04\x2C\x27"
  26308. "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D"
  26309. "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14"
  26310. "\x4B\x78\xC4\xDE\x07\x6A\x12\x02"
  26311. "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02"
  26312. "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18"
  26313. "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06"
  26314. "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E"
  26315. "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66"
  26316. "\x16\xB5\xC8\x45\x21\x37\xBD\x24"
  26317. "\xA9\xD5\x36\x12\x9F\x6E\x67\x80"
  26318. "\x87\x54\xD5\xAF\x97\xE1\x15\xA7"
  26319. "\x11\xF0\x63\x7B\xE1\x44\x14\x1C"
  26320. "\x06\x32\x05\x8C\x6C\xDB\x9B\x36"
  26321. "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C"
  26322. "\x76\x36\x43\xE8\x16\x60\xB5\xF3"
  26323. "\xDF\x5A\xC6\xA5\x69\x78\x59\x51"
  26324. "\x54\x68\x65\x06\x84\xDE\x3D\xAE"
  26325. "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6"
  26326. "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE"
  26327. "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B"
  26328. "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1"
  26329. "\x91\x01\xD7\x21\x23\x28\x1E\xCC"
  26330. "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA"
  26331. "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13",
  26332. .rlen = 496,
  26333. .also_non_np = 1,
  26334. .np = 3,
  26335. .tap = { 496 - 20, 4, 16 },
  26336. },
  26337. };
  26338. static struct cipher_testvec cast5_ctr_dec_tv_template[] = {
  26339. { /* Generated from TF test vectors */
  26340. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  26341. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
  26342. .klen = 16,
  26343. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  26344. .input = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
  26345. "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
  26346. "\x0C",
  26347. .ilen = 17,
  26348. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  26349. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  26350. "\x3A",
  26351. .rlen = 17,
  26352. }, { /* Generated from TF test vectors */
  26353. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  26354. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
  26355. .klen = 16,
  26356. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  26357. .input = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
  26358. "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
  26359. "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F"
  26360. "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF"
  26361. "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44"
  26362. "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C"
  26363. "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF"
  26364. "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B"
  26365. "\x64\xB0\x7B\x86\x29\x1D\x9F\x17"
  26366. "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3"
  26367. "\x88\x18\x52\x56\x48\x58\xD1\x6B"
  26368. "\xE8\x74\x6E\x48\xB0\x2E\x69\x63"
  26369. "\x32\xAA\xAC\x26\x55\x45\x94\xDE"
  26370. "\x30\x26\x26\xE6\x08\x82\x2F\x5F"
  26371. "\xA7\x15\x94\x07\x75\x2D\xC6\x3A"
  26372. "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56"
  26373. "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B"
  26374. "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7"
  26375. "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5"
  26376. "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F"
  26377. "\x3B\x29\xF9\xB4\x32\x62\x69\xBF"
  26378. "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3"
  26379. "\x44\x67\x90\x20\xAC\x41\xDF\x43"
  26380. "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB"
  26381. "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60"
  26382. "\xC7\xC9\x71\x34\x44\xCE\x05\xFD"
  26383. "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C"
  26384. "\xAE\x59\x0F\x07\x88\x79\x53\x26"
  26385. "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62"
  26386. "\xD0\x82\x65\x66\xE4\x2A\x29\x1C"
  26387. "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9"
  26388. "\xED\xC4\x13\x52\x75\xDC\xE4\xF9"
  26389. "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA"
  26390. "\x49\xA1\x86\x86\x37\x5C\x6B\x3D"
  26391. "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8"
  26392. "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0"
  26393. "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2"
  26394. "\x23\xD3\xC7\x27\x15\x04\x2C\x27"
  26395. "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D"
  26396. "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14"
  26397. "\x4B\x78\xC4\xDE\x07\x6A\x12\x02"
  26398. "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02"
  26399. "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18"
  26400. "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06"
  26401. "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E"
  26402. "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66"
  26403. "\x16\xB5\xC8\x45\x21\x37\xBD\x24"
  26404. "\xA9\xD5\x36\x12\x9F\x6E\x67\x80"
  26405. "\x87\x54\xD5\xAF\x97\xE1\x15\xA7"
  26406. "\x11\xF0\x63\x7B\xE1\x44\x14\x1C"
  26407. "\x06\x32\x05\x8C\x6C\xDB\x9B\x36"
  26408. "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C"
  26409. "\x76\x36\x43\xE8\x16\x60\xB5\xF3"
  26410. "\xDF\x5A\xC6\xA5\x69\x78\x59\x51"
  26411. "\x54\x68\x65\x06\x84\xDE\x3D\xAE"
  26412. "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6"
  26413. "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE"
  26414. "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B"
  26415. "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1"
  26416. "\x91\x01\xD7\x21\x23\x28\x1E\xCC"
  26417. "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA"
  26418. "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13",
  26419. .ilen = 496,
  26420. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  26421. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  26422. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  26423. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  26424. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  26425. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  26426. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  26427. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  26428. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  26429. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  26430. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  26431. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  26432. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  26433. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  26434. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  26435. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  26436. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  26437. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  26438. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  26439. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  26440. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  26441. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  26442. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  26443. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  26444. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  26445. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  26446. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  26447. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  26448. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  26449. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  26450. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  26451. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  26452. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  26453. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  26454. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  26455. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  26456. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  26457. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  26458. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  26459. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  26460. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  26461. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  26462. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  26463. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  26464. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  26465. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  26466. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  26467. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  26468. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  26469. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  26470. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  26471. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  26472. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  26473. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  26474. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  26475. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  26476. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  26477. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  26478. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  26479. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  26480. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  26481. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  26482. .rlen = 496,
  26483. .also_non_np = 1,
  26484. .np = 3,
  26485. .tap = { 496 - 20, 4, 16 },
  26486. },
  26487. };
  26488. /*
  26489. * ARC4 test vectors from OpenSSL
  26490. */
  26491. #define ARC4_ENC_TEST_VECTORS 7
  26492. #define ARC4_DEC_TEST_VECTORS 7
  26493. static struct cipher_testvec arc4_enc_tv_template[] = {
  26494. {
  26495. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  26496. .klen = 8,
  26497. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  26498. .ilen = 8,
  26499. .result = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
  26500. .rlen = 8,
  26501. }, {
  26502. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  26503. .klen = 8,
  26504. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  26505. .ilen = 8,
  26506. .result = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
  26507. .rlen = 8,
  26508. }, {
  26509. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  26510. .klen = 8,
  26511. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  26512. .ilen = 8,
  26513. .result = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
  26514. .rlen = 8,
  26515. }, {
  26516. .key = "\xef\x01\x23\x45",
  26517. .klen = 4,
  26518. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  26519. "\x00\x00\x00\x00\x00\x00\x00\x00"
  26520. "\x00\x00\x00\x00",
  26521. .ilen = 20,
  26522. .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  26523. "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
  26524. "\x36\xb6\x78\x58",
  26525. .rlen = 20,
  26526. }, {
  26527. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  26528. .klen = 8,
  26529. .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  26530. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  26531. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  26532. "\x12\x34\x56\x78",
  26533. .ilen = 28,
  26534. .result = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
  26535. "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
  26536. "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
  26537. "\x40\x01\x1e\xcf",
  26538. .rlen = 28,
  26539. }, {
  26540. .key = "\xef\x01\x23\x45",
  26541. .klen = 4,
  26542. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  26543. "\x00\x00",
  26544. .ilen = 10,
  26545. .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  26546. "\xbd\x61",
  26547. .rlen = 10,
  26548. }, {
  26549. .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
  26550. "\x00\x00\x00\x00\x00\x00\x00\x00",
  26551. .klen = 16,
  26552. .input = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
  26553. .ilen = 8,
  26554. .result = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
  26555. .rlen = 8,
  26556. },
  26557. };
  26558. static struct cipher_testvec arc4_dec_tv_template[] = {
  26559. {
  26560. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  26561. .klen = 8,
  26562. .input = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
  26563. .ilen = 8,
  26564. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  26565. .rlen = 8,
  26566. }, {
  26567. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  26568. .klen = 8,
  26569. .input = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
  26570. .ilen = 8,
  26571. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  26572. .rlen = 8,
  26573. }, {
  26574. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  26575. .klen = 8,
  26576. .input = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
  26577. .ilen = 8,
  26578. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  26579. .rlen = 8,
  26580. }, {
  26581. .key = "\xef\x01\x23\x45",
  26582. .klen = 4,
  26583. .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  26584. "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
  26585. "\x36\xb6\x78\x58",
  26586. .ilen = 20,
  26587. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  26588. "\x00\x00\x00\x00\x00\x00\x00\x00"
  26589. "\x00\x00\x00\x00",
  26590. .rlen = 20,
  26591. }, {
  26592. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  26593. .klen = 8,
  26594. .input = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
  26595. "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
  26596. "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
  26597. "\x40\x01\x1e\xcf",
  26598. .ilen = 28,
  26599. .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  26600. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  26601. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  26602. "\x12\x34\x56\x78",
  26603. .rlen = 28,
  26604. }, {
  26605. .key = "\xef\x01\x23\x45",
  26606. .klen = 4,
  26607. .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  26608. "\xbd\x61",
  26609. .ilen = 10,
  26610. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  26611. "\x00\x00",
  26612. .rlen = 10,
  26613. }, {
  26614. .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
  26615. "\x00\x00\x00\x00\x00\x00\x00\x00",
  26616. .klen = 16,
  26617. .input = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
  26618. .ilen = 8,
  26619. .result = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
  26620. .rlen = 8,
  26621. },
  26622. };
  26623. /*
  26624. * TEA test vectors
  26625. */
  26626. #define TEA_ENC_TEST_VECTORS 4
  26627. #define TEA_DEC_TEST_VECTORS 4
  26628. static struct cipher_testvec tea_enc_tv_template[] = {
  26629. {
  26630. .key = zeroed_string,
  26631. .klen = 16,
  26632. .input = zeroed_string,
  26633. .ilen = 8,
  26634. .result = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
  26635. .rlen = 8,
  26636. }, {
  26637. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  26638. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  26639. .klen = 16,
  26640. .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  26641. .ilen = 8,
  26642. .result = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
  26643. .rlen = 8,
  26644. }, {
  26645. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  26646. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  26647. .klen = 16,
  26648. .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  26649. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  26650. .ilen = 16,
  26651. .result = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
  26652. "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
  26653. .rlen = 16,
  26654. }, {
  26655. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  26656. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  26657. .klen = 16,
  26658. .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
  26659. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  26660. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  26661. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  26662. .ilen = 32,
  26663. .result = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
  26664. "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
  26665. "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
  26666. "\x07\x89\x73\xc2\x45\x92\xc6\x90",
  26667. .rlen = 32,
  26668. }
  26669. };
  26670. static struct cipher_testvec tea_dec_tv_template[] = {
  26671. {
  26672. .key = zeroed_string,
  26673. .klen = 16,
  26674. .input = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
  26675. .ilen = 8,
  26676. .result = zeroed_string,
  26677. .rlen = 8,
  26678. }, {
  26679. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  26680. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  26681. .klen = 16,
  26682. .input = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
  26683. .ilen = 8,
  26684. .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  26685. .rlen = 8,
  26686. }, {
  26687. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  26688. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  26689. .klen = 16,
  26690. .input = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
  26691. "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
  26692. .ilen = 16,
  26693. .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  26694. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  26695. .rlen = 16,
  26696. }, {
  26697. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  26698. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  26699. .klen = 16,
  26700. .input = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
  26701. "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
  26702. "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
  26703. "\x07\x89\x73\xc2\x45\x92\xc6\x90",
  26704. .ilen = 32,
  26705. .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
  26706. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  26707. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  26708. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  26709. .rlen = 32,
  26710. }
  26711. };
  26712. /*
  26713. * XTEA test vectors
  26714. */
  26715. #define XTEA_ENC_TEST_VECTORS 4
  26716. #define XTEA_DEC_TEST_VECTORS 4
  26717. static struct cipher_testvec xtea_enc_tv_template[] = {
  26718. {
  26719. .key = zeroed_string,
  26720. .klen = 16,
  26721. .input = zeroed_string,
  26722. .ilen = 8,
  26723. .result = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
  26724. .rlen = 8,
  26725. }, {
  26726. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  26727. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  26728. .klen = 16,
  26729. .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  26730. .ilen = 8,
  26731. .result = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
  26732. .rlen = 8,
  26733. }, {
  26734. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  26735. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  26736. .klen = 16,
  26737. .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  26738. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  26739. .ilen = 16,
  26740. .result = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
  26741. "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
  26742. .rlen = 16,
  26743. }, {
  26744. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  26745. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  26746. .klen = 16,
  26747. .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
  26748. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  26749. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  26750. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  26751. .ilen = 32,
  26752. .result = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
  26753. "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
  26754. "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
  26755. "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
  26756. .rlen = 32,
  26757. }
  26758. };
  26759. static struct cipher_testvec xtea_dec_tv_template[] = {
  26760. {
  26761. .key = zeroed_string,
  26762. .klen = 16,
  26763. .input = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
  26764. .ilen = 8,
  26765. .result = zeroed_string,
  26766. .rlen = 8,
  26767. }, {
  26768. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  26769. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  26770. .klen = 16,
  26771. .input = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
  26772. .ilen = 8,
  26773. .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  26774. .rlen = 8,
  26775. }, {
  26776. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  26777. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  26778. .klen = 16,
  26779. .input = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
  26780. "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
  26781. .ilen = 16,
  26782. .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  26783. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  26784. .rlen = 16,
  26785. }, {
  26786. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  26787. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  26788. .klen = 16,
  26789. .input = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
  26790. "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
  26791. "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
  26792. "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
  26793. .ilen = 32,
  26794. .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
  26795. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  26796. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  26797. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  26798. .rlen = 32,
  26799. }
  26800. };
  26801. /*
  26802. * KHAZAD test vectors.
  26803. */
  26804. #define KHAZAD_ENC_TEST_VECTORS 5
  26805. #define KHAZAD_DEC_TEST_VECTORS 5
  26806. static struct cipher_testvec khazad_enc_tv_template[] = {
  26807. {
  26808. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  26809. "\x00\x00\x00\x00\x00\x00\x00\x00",
  26810. .klen = 16,
  26811. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  26812. .ilen = 8,
  26813. .result = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
  26814. .rlen = 8,
  26815. }, {
  26816. .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
  26817. "\x38\x38\x38\x38\x38\x38\x38\x38",
  26818. .klen = 16,
  26819. .input = "\x38\x38\x38\x38\x38\x38\x38\x38",
  26820. .ilen = 8,
  26821. .result = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
  26822. .rlen = 8,
  26823. }, {
  26824. .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
  26825. "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  26826. .klen = 16,
  26827. .input = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  26828. .ilen = 8,
  26829. .result = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
  26830. .rlen = 8,
  26831. }, {
  26832. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  26833. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  26834. .klen = 16,
  26835. .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  26836. .ilen = 8,
  26837. .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  26838. .rlen = 8,
  26839. }, {
  26840. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  26841. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  26842. .klen = 16,
  26843. .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  26844. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  26845. .ilen = 16,
  26846. .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
  26847. "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  26848. .rlen = 16,
  26849. },
  26850. };
  26851. static struct cipher_testvec khazad_dec_tv_template[] = {
  26852. {
  26853. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  26854. "\x00\x00\x00\x00\x00\x00\x00\x00",
  26855. .klen = 16,
  26856. .input = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
  26857. .ilen = 8,
  26858. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  26859. .rlen = 8,
  26860. }, {
  26861. .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
  26862. "\x38\x38\x38\x38\x38\x38\x38\x38",
  26863. .klen = 16,
  26864. .input = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
  26865. .ilen = 8,
  26866. .result = "\x38\x38\x38\x38\x38\x38\x38\x38",
  26867. .rlen = 8,
  26868. }, {
  26869. .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
  26870. "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  26871. .klen = 16,
  26872. .input = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
  26873. .ilen = 8,
  26874. .result = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  26875. .rlen = 8,
  26876. }, {
  26877. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  26878. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  26879. .klen = 16,
  26880. .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  26881. .ilen = 8,
  26882. .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  26883. .rlen = 8,
  26884. }, {
  26885. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  26886. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  26887. .klen = 16,
  26888. .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
  26889. "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  26890. .ilen = 16,
  26891. .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  26892. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  26893. .rlen = 16,
  26894. },
  26895. };
  26896. /*
  26897. * Anubis test vectors.
  26898. */
  26899. #define ANUBIS_ENC_TEST_VECTORS 5
  26900. #define ANUBIS_DEC_TEST_VECTORS 5
  26901. #define ANUBIS_CBC_ENC_TEST_VECTORS 2
  26902. #define ANUBIS_CBC_DEC_TEST_VECTORS 2
  26903. static struct cipher_testvec anubis_enc_tv_template[] = {
  26904. {
  26905. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  26906. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  26907. .klen = 16,
  26908. .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  26909. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  26910. .ilen = 16,
  26911. .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  26912. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
  26913. .rlen = 16,
  26914. }, {
  26915. .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
  26916. "\x03\x03\x03\x03\x03\x03\x03\x03"
  26917. "\x03\x03\x03\x03",
  26918. .klen = 20,
  26919. .input = "\x03\x03\x03\x03\x03\x03\x03\x03"
  26920. "\x03\x03\x03\x03\x03\x03\x03\x03",
  26921. .ilen = 16,
  26922. .result = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
  26923. "\x87\x41\x6f\x82\x0a\x98\x64\xae",
  26924. .rlen = 16,
  26925. }, {
  26926. .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
  26927. "\x24\x24\x24\x24\x24\x24\x24\x24"
  26928. "\x24\x24\x24\x24\x24\x24\x24\x24"
  26929. "\x24\x24\x24\x24",
  26930. .klen = 28,
  26931. .input = "\x24\x24\x24\x24\x24\x24\x24\x24"
  26932. "\x24\x24\x24\x24\x24\x24\x24\x24",
  26933. .ilen = 16,
  26934. .result = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
  26935. "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
  26936. .rlen = 16,
  26937. }, {
  26938. .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
  26939. "\x25\x25\x25\x25\x25\x25\x25\x25"
  26940. "\x25\x25\x25\x25\x25\x25\x25\x25"
  26941. "\x25\x25\x25\x25\x25\x25\x25\x25",
  26942. .klen = 32,
  26943. .input = "\x25\x25\x25\x25\x25\x25\x25\x25"
  26944. "\x25\x25\x25\x25\x25\x25\x25\x25",
  26945. .ilen = 16,
  26946. .result = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
  26947. "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
  26948. .rlen = 16,
  26949. }, {
  26950. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  26951. "\x35\x35\x35\x35\x35\x35\x35\x35"
  26952. "\x35\x35\x35\x35\x35\x35\x35\x35"
  26953. "\x35\x35\x35\x35\x35\x35\x35\x35"
  26954. "\x35\x35\x35\x35\x35\x35\x35\x35",
  26955. .klen = 40,
  26956. .input = "\x35\x35\x35\x35\x35\x35\x35\x35"
  26957. "\x35\x35\x35\x35\x35\x35\x35\x35",
  26958. .ilen = 16,
  26959. .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  26960. "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
  26961. .rlen = 16,
  26962. },
  26963. };
  26964. static struct cipher_testvec anubis_dec_tv_template[] = {
  26965. {
  26966. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  26967. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  26968. .klen = 16,
  26969. .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  26970. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
  26971. .ilen = 16,
  26972. .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  26973. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  26974. .rlen = 16,
  26975. }, {
  26976. .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
  26977. "\x03\x03\x03\x03\x03\x03\x03\x03"
  26978. "\x03\x03\x03\x03",
  26979. .klen = 20,
  26980. .input = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
  26981. "\x87\x41\x6f\x82\x0a\x98\x64\xae",
  26982. .ilen = 16,
  26983. .result = "\x03\x03\x03\x03\x03\x03\x03\x03"
  26984. "\x03\x03\x03\x03\x03\x03\x03\x03",
  26985. .rlen = 16,
  26986. }, {
  26987. .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
  26988. "\x24\x24\x24\x24\x24\x24\x24\x24"
  26989. "\x24\x24\x24\x24\x24\x24\x24\x24"
  26990. "\x24\x24\x24\x24",
  26991. .klen = 28,
  26992. .input = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
  26993. "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
  26994. .ilen = 16,
  26995. .result = "\x24\x24\x24\x24\x24\x24\x24\x24"
  26996. "\x24\x24\x24\x24\x24\x24\x24\x24",
  26997. .rlen = 16,
  26998. }, {
  26999. .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
  27000. "\x25\x25\x25\x25\x25\x25\x25\x25"
  27001. "\x25\x25\x25\x25\x25\x25\x25\x25"
  27002. "\x25\x25\x25\x25\x25\x25\x25\x25",
  27003. .klen = 32,
  27004. .input = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
  27005. "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
  27006. .ilen = 16,
  27007. .result = "\x25\x25\x25\x25\x25\x25\x25\x25"
  27008. "\x25\x25\x25\x25\x25\x25\x25\x25",
  27009. .rlen = 16,
  27010. }, {
  27011. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  27012. "\x35\x35\x35\x35\x35\x35\x35\x35"
  27013. "\x35\x35\x35\x35\x35\x35\x35\x35"
  27014. "\x35\x35\x35\x35\x35\x35\x35\x35"
  27015. "\x35\x35\x35\x35\x35\x35\x35\x35",
  27016. .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  27017. "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
  27018. .klen = 40,
  27019. .ilen = 16,
  27020. .result = "\x35\x35\x35\x35\x35\x35\x35\x35"
  27021. "\x35\x35\x35\x35\x35\x35\x35\x35",
  27022. .rlen = 16,
  27023. },
  27024. };
  27025. static struct cipher_testvec anubis_cbc_enc_tv_template[] = {
  27026. {
  27027. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  27028. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  27029. .klen = 16,
  27030. .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  27031. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  27032. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  27033. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  27034. .ilen = 32,
  27035. .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  27036. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
  27037. "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
  27038. "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
  27039. .rlen = 32,
  27040. }, {
  27041. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  27042. "\x35\x35\x35\x35\x35\x35\x35\x35"
  27043. "\x35\x35\x35\x35\x35\x35\x35\x35"
  27044. "\x35\x35\x35\x35\x35\x35\x35\x35"
  27045. "\x35\x35\x35\x35\x35\x35\x35\x35",
  27046. .klen = 40,
  27047. .input = "\x35\x35\x35\x35\x35\x35\x35\x35"
  27048. "\x35\x35\x35\x35\x35\x35\x35\x35"
  27049. "\x35\x35\x35\x35\x35\x35\x35\x35"
  27050. "\x35\x35\x35\x35\x35\x35\x35\x35",
  27051. .ilen = 32,
  27052. .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  27053. "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
  27054. "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
  27055. "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
  27056. .rlen = 32,
  27057. },
  27058. };
  27059. static struct cipher_testvec anubis_cbc_dec_tv_template[] = {
  27060. {
  27061. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  27062. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  27063. .klen = 16,
  27064. .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  27065. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
  27066. "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
  27067. "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
  27068. .ilen = 32,
  27069. .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  27070. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  27071. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  27072. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  27073. .rlen = 32,
  27074. }, {
  27075. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  27076. "\x35\x35\x35\x35\x35\x35\x35\x35"
  27077. "\x35\x35\x35\x35\x35\x35\x35\x35"
  27078. "\x35\x35\x35\x35\x35\x35\x35\x35"
  27079. "\x35\x35\x35\x35\x35\x35\x35\x35",
  27080. .klen = 40,
  27081. .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  27082. "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
  27083. "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
  27084. "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
  27085. .ilen = 32,
  27086. .result = "\x35\x35\x35\x35\x35\x35\x35\x35"
  27087. "\x35\x35\x35\x35\x35\x35\x35\x35"
  27088. "\x35\x35\x35\x35\x35\x35\x35\x35"
  27089. "\x35\x35\x35\x35\x35\x35\x35\x35",
  27090. .rlen = 32,
  27091. },
  27092. };
  27093. /*
  27094. * XETA test vectors
  27095. */
  27096. #define XETA_ENC_TEST_VECTORS 4
  27097. #define XETA_DEC_TEST_VECTORS 4
  27098. static struct cipher_testvec xeta_enc_tv_template[] = {
  27099. {
  27100. .key = zeroed_string,
  27101. .klen = 16,
  27102. .input = zeroed_string,
  27103. .ilen = 8,
  27104. .result = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
  27105. .rlen = 8,
  27106. }, {
  27107. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  27108. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  27109. .klen = 16,
  27110. .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  27111. .ilen = 8,
  27112. .result = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
  27113. .rlen = 8,
  27114. }, {
  27115. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  27116. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  27117. .klen = 16,
  27118. .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  27119. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  27120. .ilen = 16,
  27121. .result = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
  27122. "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
  27123. .rlen = 16,
  27124. }, {
  27125. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  27126. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  27127. .klen = 16,
  27128. .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
  27129. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  27130. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  27131. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  27132. .ilen = 32,
  27133. .result = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
  27134. "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
  27135. "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
  27136. "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
  27137. .rlen = 32,
  27138. }
  27139. };
  27140. static struct cipher_testvec xeta_dec_tv_template[] = {
  27141. {
  27142. .key = zeroed_string,
  27143. .klen = 16,
  27144. .input = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
  27145. .ilen = 8,
  27146. .result = zeroed_string,
  27147. .rlen = 8,
  27148. }, {
  27149. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  27150. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  27151. .klen = 16,
  27152. .input = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
  27153. .ilen = 8,
  27154. .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  27155. .rlen = 8,
  27156. }, {
  27157. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  27158. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  27159. .klen = 16,
  27160. .input = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
  27161. "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
  27162. .ilen = 16,
  27163. .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  27164. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  27165. .rlen = 16,
  27166. }, {
  27167. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  27168. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  27169. .klen = 16,
  27170. .input = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
  27171. "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
  27172. "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
  27173. "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
  27174. .ilen = 32,
  27175. .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
  27176. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  27177. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  27178. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  27179. .rlen = 32,
  27180. }
  27181. };
  27182. /*
  27183. * FCrypt test vectors
  27184. */
  27185. #define FCRYPT_ENC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_enc_tv_template)
  27186. #define FCRYPT_DEC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_dec_tv_template)
  27187. static struct cipher_testvec fcrypt_pcbc_enc_tv_template[] = {
  27188. { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
  27189. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  27190. .klen = 8,
  27191. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  27192. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  27193. .ilen = 8,
  27194. .result = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
  27195. .rlen = 8,
  27196. }, {
  27197. .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
  27198. .klen = 8,
  27199. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  27200. .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
  27201. .ilen = 8,
  27202. .result = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
  27203. .rlen = 8,
  27204. }, { /* From Arla */
  27205. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  27206. .klen = 8,
  27207. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  27208. .input = "The quick brown fox jumps over the lazy dogs.\0\0",
  27209. .ilen = 48,
  27210. .result = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
  27211. "\xee\xac\x98\x62\x44\x51\xe4\x84"
  27212. "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
  27213. "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
  27214. "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
  27215. "\xf8\x91\x3c\xac\x44\x22\x92\xef",
  27216. .rlen = 48,
  27217. }, {
  27218. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  27219. .klen = 8,
  27220. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  27221. .input = "The quick brown fox jumps over the lazy dogs.\0\0",
  27222. .ilen = 48,
  27223. .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  27224. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  27225. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  27226. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  27227. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  27228. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  27229. .rlen = 48,
  27230. }, { /* split-page version */
  27231. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  27232. .klen = 8,
  27233. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  27234. .input = "The quick brown fox jumps over the lazy dogs.\0\0",
  27235. .ilen = 48,
  27236. .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  27237. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  27238. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  27239. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  27240. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  27241. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  27242. .rlen = 48,
  27243. .np = 2,
  27244. .tap = { 20, 28 },
  27245. }
  27246. };
  27247. static struct cipher_testvec fcrypt_pcbc_dec_tv_template[] = {
  27248. { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
  27249. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  27250. .klen = 8,
  27251. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  27252. .input = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
  27253. .ilen = 8,
  27254. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  27255. .rlen = 8,
  27256. }, {
  27257. .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
  27258. .klen = 8,
  27259. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  27260. .input = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
  27261. .ilen = 8,
  27262. .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
  27263. .rlen = 8,
  27264. }, { /* From Arla */
  27265. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  27266. .klen = 8,
  27267. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  27268. .input = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
  27269. "\xee\xac\x98\x62\x44\x51\xe4\x84"
  27270. "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
  27271. "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
  27272. "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
  27273. "\xf8\x91\x3c\xac\x44\x22\x92\xef",
  27274. .ilen = 48,
  27275. .result = "The quick brown fox jumps over the lazy dogs.\0\0",
  27276. .rlen = 48,
  27277. }, {
  27278. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  27279. .klen = 8,
  27280. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  27281. .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  27282. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  27283. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  27284. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  27285. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  27286. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  27287. .ilen = 48,
  27288. .result = "The quick brown fox jumps over the lazy dogs.\0\0",
  27289. .rlen = 48,
  27290. }, { /* split-page version */
  27291. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  27292. .klen = 8,
  27293. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  27294. .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  27295. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  27296. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  27297. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  27298. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  27299. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  27300. .ilen = 48,
  27301. .result = "The quick brown fox jumps over the lazy dogs.\0\0",
  27302. .rlen = 48,
  27303. .np = 2,
  27304. .tap = { 20, 28 },
  27305. }
  27306. };
  27307. /*
  27308. * CAMELLIA test vectors.
  27309. */
  27310. #define CAMELLIA_ENC_TEST_VECTORS 4
  27311. #define CAMELLIA_DEC_TEST_VECTORS 4
  27312. #define CAMELLIA_CBC_ENC_TEST_VECTORS 3
  27313. #define CAMELLIA_CBC_DEC_TEST_VECTORS 3
  27314. #define CAMELLIA_CTR_ENC_TEST_VECTORS 2
  27315. #define CAMELLIA_CTR_DEC_TEST_VECTORS 2
  27316. #define CAMELLIA_LRW_ENC_TEST_VECTORS 8
  27317. #define CAMELLIA_LRW_DEC_TEST_VECTORS 8
  27318. #define CAMELLIA_XTS_ENC_TEST_VECTORS 5
  27319. #define CAMELLIA_XTS_DEC_TEST_VECTORS 5
  27320. static struct cipher_testvec camellia_enc_tv_template[] = {
  27321. {
  27322. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  27323. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  27324. .klen = 16,
  27325. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  27326. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  27327. .ilen = 16,
  27328. .result = "\x67\x67\x31\x38\x54\x96\x69\x73"
  27329. "\x08\x57\x06\x56\x48\xea\xbe\x43",
  27330. .rlen = 16,
  27331. }, {
  27332. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  27333. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  27334. "\x00\x11\x22\x33\x44\x55\x66\x77",
  27335. .klen = 24,
  27336. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  27337. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  27338. .ilen = 16,
  27339. .result = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
  27340. "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
  27341. .rlen = 16,
  27342. }, {
  27343. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  27344. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  27345. "\x00\x11\x22\x33\x44\x55\x66\x77"
  27346. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  27347. .klen = 32,
  27348. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  27349. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  27350. .ilen = 16,
  27351. .result = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
  27352. "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
  27353. .rlen = 16,
  27354. }, { /* Generated with Crypto++ */
  27355. .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
  27356. "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
  27357. "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
  27358. "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
  27359. .klen = 32,
  27360. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  27361. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  27362. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  27363. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  27364. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  27365. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  27366. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  27367. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  27368. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  27369. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  27370. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  27371. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  27372. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  27373. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  27374. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  27375. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  27376. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  27377. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  27378. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  27379. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  27380. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  27381. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  27382. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  27383. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  27384. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  27385. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  27386. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  27387. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  27388. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  27389. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  27390. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  27391. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  27392. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  27393. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  27394. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  27395. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  27396. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  27397. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  27398. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  27399. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  27400. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  27401. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  27402. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  27403. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  27404. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  27405. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  27406. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  27407. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  27408. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  27409. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  27410. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  27411. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  27412. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  27413. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  27414. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  27415. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  27416. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  27417. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  27418. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  27419. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  27420. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  27421. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  27422. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
  27423. "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
  27424. "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
  27425. "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
  27426. "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
  27427. "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
  27428. "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
  27429. "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
  27430. "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
  27431. "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
  27432. "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
  27433. "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
  27434. "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
  27435. "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
  27436. "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
  27437. "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
  27438. "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
  27439. "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
  27440. "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
  27441. "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
  27442. "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
  27443. "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
  27444. "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
  27445. "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
  27446. "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
  27447. "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
  27448. "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
  27449. "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
  27450. "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
  27451. "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
  27452. "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
  27453. "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
  27454. "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
  27455. "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
  27456. "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
  27457. "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
  27458. "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
  27459. "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
  27460. "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
  27461. "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
  27462. "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
  27463. "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
  27464. "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
  27465. "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
  27466. "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
  27467. "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
  27468. "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
  27469. "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
  27470. "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
  27471. "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
  27472. "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
  27473. "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
  27474. "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
  27475. "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
  27476. "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
  27477. "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
  27478. "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
  27479. "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
  27480. "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
  27481. "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
  27482. "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
  27483. "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
  27484. "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
  27485. "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
  27486. .ilen = 1008,
  27487. .result = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA"
  27488. "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7"
  27489. "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04"
  27490. "\xB3\xC2\xB9\x03\xAA\x91\x56\x29"
  27491. "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9"
  27492. "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A"
  27493. "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8"
  27494. "\x01\x9B\x17\x0A\x29\xE7\x61\x28"
  27495. "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B"
  27496. "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B"
  27497. "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E"
  27498. "\x83\x54\xAE\x7C\x82\x46\x10\xC9"
  27499. "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC"
  27500. "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4"
  27501. "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C"
  27502. "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB"
  27503. "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98"
  27504. "\x9F\x32\xBA\xA2\x18\xCF\x55\x43"
  27505. "\xFE\x80\x8F\x60\xCF\x05\x30\x9B"
  27506. "\x70\x50\x1E\x9C\x08\x87\xE6\x20"
  27507. "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2"
  27508. "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6"
  27509. "\xB8\x30\x86\x3B\x0F\x94\x1E\x79"
  27510. "\x13\x94\x35\xA2\xB1\x35\x5B\x05"
  27511. "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE"
  27512. "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A"
  27513. "\xF5\x33\xC8\x19\x45\x14\x44\x5D"
  27514. "\xFE\x94\x7B\xBB\x63\x13\x57\xC3"
  27515. "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A"
  27516. "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF"
  27517. "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8"
  27518. "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C"
  27519. "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB"
  27520. "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74"
  27521. "\x60\x64\x0D\x1C\x80\xD1\x20\x9E"
  27522. "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96"
  27523. "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B"
  27524. "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01"
  27525. "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E"
  27526. "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B"
  27527. "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D"
  27528. "\x5B\x55\x23\xB7\x40\x31\xDE\xEE"
  27529. "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42"
  27530. "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3"
  27531. "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF"
  27532. "\x63\xA9\xF0\x6A\x08\x46\xBD\x48"
  27533. "\x83\x06\xAB\x82\x99\x01\x16\x1A"
  27534. "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F"
  27535. "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC"
  27536. "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B"
  27537. "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0"
  27538. "\xCD\xB6\x45\xB2\x29\x2E\x34\x23"
  27539. "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F"
  27540. "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA"
  27541. "\x74\x83\x29\x05\xE8\xC4\x4D\x01"
  27542. "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99"
  27543. "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30"
  27544. "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C"
  27545. "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3"
  27546. "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44"
  27547. "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4"
  27548. "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB"
  27549. "\xA4\xAD\xCF\x5D\xD4\x58\xC9\xCD"
  27550. "\xF7\x90\x68\xCF\xC9\x11\x52\x3E"
  27551. "\xE8\xA1\xA3\x78\x8B\xD0\xAC\x0A"
  27552. "\xD4\xC9\xA3\xA5\x55\x30\xC8\x3E"
  27553. "\xED\x28\x39\xE9\x63\xED\x41\x70"
  27554. "\x51\xE3\xC4\xA0\xFC\xD5\x43\xCB"
  27555. "\x4D\x65\xC8\xFD\x3A\x91\x8F\x60"
  27556. "\x8A\xA6\x6D\x9D\x3E\x01\x23\x4B"
  27557. "\x50\x47\xC9\xDC\x9B\xDE\x37\xC5"
  27558. "\xBF\x67\xB1\x6B\x78\x38\xD5\x7E"
  27559. "\xB6\xFF\x67\x83\x3B\x6E\xBE\x23"
  27560. "\x45\xFA\x1D\x69\x44\xFD\xC6\xB9"
  27561. "\xD0\x4A\x92\xD1\xBE\xF6\x4A\xB7"
  27562. "\xCA\xA8\xA2\x9E\x13\x87\x57\x92"
  27563. "\x64\x7C\x85\x0B\xB3\x29\x37\xD8"
  27564. "\xE6\xAA\xAF\xC4\x03\x67\xA3\xBF"
  27565. "\x2E\x45\x83\xB6\xD8\x54\x00\x89"
  27566. "\xF6\xBC\x3A\x7A\x88\x58\x51\xED"
  27567. "\xF4\x4E\x01\xA5\xC3\x2E\xD9\x42"
  27568. "\xBD\x6E\x0D\x0B\x21\xB0\x1A\xCC"
  27569. "\xA4\xD3\x3F\xDC\x9B\x81\xD8\xF1"
  27570. "\xEA\x7A\x6A\xB7\x07\xC9\x6D\x91"
  27571. "\x6D\x3A\xF5\x5F\xA6\xFF\x87\x1E"
  27572. "\x3F\xDD\xC0\x72\xEA\xAC\x08\x15"
  27573. "\x21\xE6\xC6\xB6\x0D\xD8\x51\x86"
  27574. "\x2A\x03\x73\xF7\x29\xD4\xC4\xE4"
  27575. "\x7F\x95\x10\xF7\xAB\x3F\x92\x23"
  27576. "\xD3\xCE\x9C\x2E\x46\x3B\x63\x43"
  27577. "\xBB\xC2\x82\x7A\x83\xD5\x55\xE2"
  27578. "\xE7\x9B\x2F\x92\xAF\xFD\x81\x56"
  27579. "\x79\xFD\x3E\xF9\x46\xE0\x25\xD4"
  27580. "\x38\xDE\xBC\x2C\xC4\x7A\x2A\x8F"
  27581. "\x94\x4F\xD0\xAD\x9B\x37\x18\xD4"
  27582. "\x0E\x4D\x0F\x02\x3A\xDC\x5A\xA2"
  27583. "\x39\x25\x55\x20\x5A\xA6\x02\x9F"
  27584. "\xE6\x77\x21\x77\xE5\x4B\x7B\x0B"
  27585. "\x30\xF8\x5F\x33\x0F\x49\xCD\xFF"
  27586. "\xF2\xE4\x35\xF9\xF0\x63\xC3\x7E"
  27587. "\xF1\xA6\x73\xB4\xDF\xE7\xBB\x78"
  27588. "\xFF\x21\xA9\xF3\xF3\xCF\x5D\xBA"
  27589. "\xED\x87\x98\xAC\xFE\x48\x97\x6D"
  27590. "\xA6\x7F\x69\x31\xB1\xC4\xFF\x14"
  27591. "\xC6\x76\xD4\x10\xDD\xF6\x49\x2C"
  27592. "\x9C\xC8\x6D\x76\xC0\x8F\x5F\x55"
  27593. "\x2F\x3C\x8A\x30\xAA\xC3\x16\x55"
  27594. "\xC6\xFC\x8D\x8B\xB9\xE5\x80\x6C"
  27595. "\xC8\x7E\xBD\x65\x58\x36\xD5\xBC"
  27596. "\xF0\x33\x52\x29\x70\xF9\x5C\xE9"
  27597. "\xAC\x1F\xB5\x73\x56\x66\x54\xAF"
  27598. "\x1B\x8F\x7D\xED\xAB\x03\xCE\xE3"
  27599. "\xAE\x47\xB6\x69\x86\xE9\x01\x31"
  27600. "\x83\x18\x3D\xF4\x74\x7B\xF9\x42"
  27601. "\x4C\xFD\x75\x4A\x6D\xF0\x03\xA6"
  27602. "\x2B\x20\x63\xDA\x49\x65\x5E\x8B"
  27603. "\xC0\x19\xE3\x8D\xD9\xF3\xB0\x34"
  27604. "\xD3\x52\xFC\x68\x00\x43\x1B\x37"
  27605. "\x31\x93\x51\x1C\x63\x97\x70\xB0"
  27606. "\x99\x78\x83\x13\xFD\xCF\x53\x81"
  27607. "\x36\x46\xB5\x42\x52\x2F\x32\xEB"
  27608. "\x4A\x3D\xF1\x8F\x1C\x54\x2E\xFC"
  27609. "\x41\x75\x5A\x8C\x8E\x6F\xE7\x1A"
  27610. "\xAE\xEF\x3E\x82\x12\x0B\x74\x72"
  27611. "\xF8\xB2\xAA\x7A\xD6\xFF\xFA\x55"
  27612. "\x33\x1A\xBB\xD3\xA2\x7E\x97\x66",
  27613. .rlen = 1008,
  27614. .also_non_np = 1,
  27615. .np = 3,
  27616. .tap = { 1008 - 20, 4, 16 },
  27617. },
  27618. };
  27619. static struct cipher_testvec camellia_dec_tv_template[] = {
  27620. {
  27621. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  27622. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  27623. .klen = 16,
  27624. .input = "\x67\x67\x31\x38\x54\x96\x69\x73"
  27625. "\x08\x57\x06\x56\x48\xea\xbe\x43",
  27626. .ilen = 16,
  27627. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  27628. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  27629. .rlen = 16,
  27630. }, {
  27631. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  27632. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  27633. "\x00\x11\x22\x33\x44\x55\x66\x77",
  27634. .klen = 24,
  27635. .input = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
  27636. "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
  27637. .ilen = 16,
  27638. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  27639. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  27640. .rlen = 16,
  27641. }, {
  27642. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  27643. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  27644. "\x00\x11\x22\x33\x44\x55\x66\x77"
  27645. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  27646. .klen = 32,
  27647. .input = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
  27648. "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
  27649. .ilen = 16,
  27650. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  27651. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  27652. .rlen = 16,
  27653. }, { /* Generated with Crypto++ */
  27654. .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
  27655. "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
  27656. "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
  27657. "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
  27658. .klen = 32,
  27659. .input = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA"
  27660. "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7"
  27661. "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04"
  27662. "\xB3\xC2\xB9\x03\xAA\x91\x56\x29"
  27663. "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9"
  27664. "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A"
  27665. "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8"
  27666. "\x01\x9B\x17\x0A\x29\xE7\x61\x28"
  27667. "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B"
  27668. "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B"
  27669. "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E"
  27670. "\x83\x54\xAE\x7C\x82\x46\x10\xC9"
  27671. "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC"
  27672. "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4"
  27673. "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C"
  27674. "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB"
  27675. "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98"
  27676. "\x9F\x32\xBA\xA2\x18\xCF\x55\x43"
  27677. "\xFE\x80\x8F\x60\xCF\x05\x30\x9B"
  27678. "\x70\x50\x1E\x9C\x08\x87\xE6\x20"
  27679. "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2"
  27680. "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6"
  27681. "\xB8\x30\x86\x3B\x0F\x94\x1E\x79"
  27682. "\x13\x94\x35\xA2\xB1\x35\x5B\x05"
  27683. "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE"
  27684. "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A"
  27685. "\xF5\x33\xC8\x19\x45\x14\x44\x5D"
  27686. "\xFE\x94\x7B\xBB\x63\x13\x57\xC3"
  27687. "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A"
  27688. "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF"
  27689. "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8"
  27690. "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C"
  27691. "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB"
  27692. "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74"
  27693. "\x60\x64\x0D\x1C\x80\xD1\x20\x9E"
  27694. "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96"
  27695. "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B"
  27696. "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01"
  27697. "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E"
  27698. "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B"
  27699. "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D"
  27700. "\x5B\x55\x23\xB7\x40\x31\xDE\xEE"
  27701. "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42"
  27702. "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3"
  27703. "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF"
  27704. "\x63\xA9\xF0\x6A\x08\x46\xBD\x48"
  27705. "\x83\x06\xAB\x82\x99\x01\x16\x1A"
  27706. "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F"
  27707. "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC"
  27708. "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B"
  27709. "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0"
  27710. "\xCD\xB6\x45\xB2\x29\x2E\x34\x23"
  27711. "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F"
  27712. "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA"
  27713. "\x74\x83\x29\x05\xE8\xC4\x4D\x01"
  27714. "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99"
  27715. "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30"
  27716. "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C"
  27717. "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3"
  27718. "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44"
  27719. "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4"
  27720. "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB"
  27721. "\xA4\xAD\xCF\x5D\xD4\x58\xC9\xCD"
  27722. "\xF7\x90\x68\xCF\xC9\x11\x52\x3E"
  27723. "\xE8\xA1\xA3\x78\x8B\xD0\xAC\x0A"
  27724. "\xD4\xC9\xA3\xA5\x55\x30\xC8\x3E"
  27725. "\xED\x28\x39\xE9\x63\xED\x41\x70"
  27726. "\x51\xE3\xC4\xA0\xFC\xD5\x43\xCB"
  27727. "\x4D\x65\xC8\xFD\x3A\x91\x8F\x60"
  27728. "\x8A\xA6\x6D\x9D\x3E\x01\x23\x4B"
  27729. "\x50\x47\xC9\xDC\x9B\xDE\x37\xC5"
  27730. "\xBF\x67\xB1\x6B\x78\x38\xD5\x7E"
  27731. "\xB6\xFF\x67\x83\x3B\x6E\xBE\x23"
  27732. "\x45\xFA\x1D\x69\x44\xFD\xC6\xB9"
  27733. "\xD0\x4A\x92\xD1\xBE\xF6\x4A\xB7"
  27734. "\xCA\xA8\xA2\x9E\x13\x87\x57\x92"
  27735. "\x64\x7C\x85\x0B\xB3\x29\x37\xD8"
  27736. "\xE6\xAA\xAF\xC4\x03\x67\xA3\xBF"
  27737. "\x2E\x45\x83\xB6\xD8\x54\x00\x89"
  27738. "\xF6\xBC\x3A\x7A\x88\x58\x51\xED"
  27739. "\xF4\x4E\x01\xA5\xC3\x2E\xD9\x42"
  27740. "\xBD\x6E\x0D\x0B\x21\xB0\x1A\xCC"
  27741. "\xA4\xD3\x3F\xDC\x9B\x81\xD8\xF1"
  27742. "\xEA\x7A\x6A\xB7\x07\xC9\x6D\x91"
  27743. "\x6D\x3A\xF5\x5F\xA6\xFF\x87\x1E"
  27744. "\x3F\xDD\xC0\x72\xEA\xAC\x08\x15"
  27745. "\x21\xE6\xC6\xB6\x0D\xD8\x51\x86"
  27746. "\x2A\x03\x73\xF7\x29\xD4\xC4\xE4"
  27747. "\x7F\x95\x10\xF7\xAB\x3F\x92\x23"
  27748. "\xD3\xCE\x9C\x2E\x46\x3B\x63\x43"
  27749. "\xBB\xC2\x82\x7A\x83\xD5\x55\xE2"
  27750. "\xE7\x9B\x2F\x92\xAF\xFD\x81\x56"
  27751. "\x79\xFD\x3E\xF9\x46\xE0\x25\xD4"
  27752. "\x38\xDE\xBC\x2C\xC4\x7A\x2A\x8F"
  27753. "\x94\x4F\xD0\xAD\x9B\x37\x18\xD4"
  27754. "\x0E\x4D\x0F\x02\x3A\xDC\x5A\xA2"
  27755. "\x39\x25\x55\x20\x5A\xA6\x02\x9F"
  27756. "\xE6\x77\x21\x77\xE5\x4B\x7B\x0B"
  27757. "\x30\xF8\x5F\x33\x0F\x49\xCD\xFF"
  27758. "\xF2\xE4\x35\xF9\xF0\x63\xC3\x7E"
  27759. "\xF1\xA6\x73\xB4\xDF\xE7\xBB\x78"
  27760. "\xFF\x21\xA9\xF3\xF3\xCF\x5D\xBA"
  27761. "\xED\x87\x98\xAC\xFE\x48\x97\x6D"
  27762. "\xA6\x7F\x69\x31\xB1\xC4\xFF\x14"
  27763. "\xC6\x76\xD4\x10\xDD\xF6\x49\x2C"
  27764. "\x9C\xC8\x6D\x76\xC0\x8F\x5F\x55"
  27765. "\x2F\x3C\x8A\x30\xAA\xC3\x16\x55"
  27766. "\xC6\xFC\x8D\x8B\xB9\xE5\x80\x6C"
  27767. "\xC8\x7E\xBD\x65\x58\x36\xD5\xBC"
  27768. "\xF0\x33\x52\x29\x70\xF9\x5C\xE9"
  27769. "\xAC\x1F\xB5\x73\x56\x66\x54\xAF"
  27770. "\x1B\x8F\x7D\xED\xAB\x03\xCE\xE3"
  27771. "\xAE\x47\xB6\x69\x86\xE9\x01\x31"
  27772. "\x83\x18\x3D\xF4\x74\x7B\xF9\x42"
  27773. "\x4C\xFD\x75\x4A\x6D\xF0\x03\xA6"
  27774. "\x2B\x20\x63\xDA\x49\x65\x5E\x8B"
  27775. "\xC0\x19\xE3\x8D\xD9\xF3\xB0\x34"
  27776. "\xD3\x52\xFC\x68\x00\x43\x1B\x37"
  27777. "\x31\x93\x51\x1C\x63\x97\x70\xB0"
  27778. "\x99\x78\x83\x13\xFD\xCF\x53\x81"
  27779. "\x36\x46\xB5\x42\x52\x2F\x32\xEB"
  27780. "\x4A\x3D\xF1\x8F\x1C\x54\x2E\xFC"
  27781. "\x41\x75\x5A\x8C\x8E\x6F\xE7\x1A"
  27782. "\xAE\xEF\x3E\x82\x12\x0B\x74\x72"
  27783. "\xF8\xB2\xAA\x7A\xD6\xFF\xFA\x55"
  27784. "\x33\x1A\xBB\xD3\xA2\x7E\x97\x66",
  27785. .ilen = 1008,
  27786. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  27787. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  27788. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  27789. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  27790. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  27791. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  27792. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  27793. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  27794. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  27795. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  27796. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  27797. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  27798. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  27799. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  27800. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  27801. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  27802. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  27803. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  27804. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  27805. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  27806. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  27807. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  27808. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  27809. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  27810. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  27811. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  27812. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  27813. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  27814. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  27815. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  27816. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  27817. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  27818. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  27819. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  27820. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  27821. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  27822. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  27823. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  27824. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  27825. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  27826. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  27827. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  27828. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  27829. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  27830. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  27831. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  27832. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  27833. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  27834. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  27835. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  27836. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  27837. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  27838. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  27839. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  27840. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  27841. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  27842. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  27843. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  27844. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  27845. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  27846. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  27847. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  27848. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
  27849. "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
  27850. "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
  27851. "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
  27852. "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
  27853. "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
  27854. "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
  27855. "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
  27856. "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
  27857. "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
  27858. "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
  27859. "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
  27860. "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
  27861. "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
  27862. "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
  27863. "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
  27864. "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
  27865. "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
  27866. "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
  27867. "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
  27868. "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
  27869. "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
  27870. "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
  27871. "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
  27872. "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
  27873. "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
  27874. "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
  27875. "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
  27876. "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
  27877. "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
  27878. "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
  27879. "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
  27880. "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
  27881. "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
  27882. "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
  27883. "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
  27884. "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
  27885. "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
  27886. "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
  27887. "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
  27888. "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
  27889. "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
  27890. "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
  27891. "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
  27892. "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
  27893. "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
  27894. "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
  27895. "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
  27896. "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
  27897. "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
  27898. "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
  27899. "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
  27900. "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
  27901. "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
  27902. "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
  27903. "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
  27904. "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
  27905. "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
  27906. "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
  27907. "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
  27908. "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
  27909. "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
  27910. "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
  27911. "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
  27912. .rlen = 1008,
  27913. .also_non_np = 1,
  27914. .np = 3,
  27915. .tap = { 1008 - 20, 4, 16 },
  27916. },
  27917. };
  27918. static struct cipher_testvec camellia_cbc_enc_tv_template[] = {
  27919. {
  27920. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  27921. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  27922. .klen = 16,
  27923. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  27924. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  27925. .input = "Single block msg",
  27926. .ilen = 16,
  27927. .result = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
  27928. "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
  27929. .rlen = 16,
  27930. }, {
  27931. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  27932. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  27933. .klen = 16,
  27934. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  27935. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  27936. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  27937. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  27938. "\x10\x11\x12\x13\x14\x15\x16\x17"
  27939. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  27940. .ilen = 32,
  27941. .result = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
  27942. "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
  27943. "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
  27944. "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
  27945. .rlen = 32,
  27946. }, { /* Generated with Crypto++ */
  27947. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  27948. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  27949. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  27950. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  27951. .klen = 32,
  27952. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  27953. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  27954. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  27955. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  27956. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  27957. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  27958. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  27959. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  27960. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  27961. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  27962. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  27963. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  27964. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  27965. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  27966. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  27967. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  27968. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  27969. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  27970. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  27971. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  27972. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  27973. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  27974. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  27975. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  27976. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  27977. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  27978. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  27979. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  27980. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  27981. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  27982. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  27983. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  27984. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  27985. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  27986. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  27987. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  27988. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  27989. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  27990. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  27991. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  27992. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  27993. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  27994. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  27995. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  27996. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  27997. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  27998. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  27999. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  28000. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  28001. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  28002. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  28003. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  28004. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  28005. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  28006. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  28007. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  28008. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  28009. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  28010. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  28011. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  28012. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  28013. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  28014. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  28015. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  28016. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
  28017. "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
  28018. "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
  28019. "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
  28020. "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
  28021. "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
  28022. "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
  28023. "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
  28024. "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
  28025. "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
  28026. "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
  28027. "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
  28028. "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
  28029. "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
  28030. "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
  28031. "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
  28032. "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
  28033. "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
  28034. "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
  28035. "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
  28036. "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
  28037. "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
  28038. "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
  28039. "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
  28040. "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
  28041. "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
  28042. "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
  28043. "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
  28044. "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
  28045. "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
  28046. "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
  28047. "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
  28048. "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
  28049. "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
  28050. "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
  28051. "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
  28052. "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
  28053. "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
  28054. "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
  28055. "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
  28056. "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
  28057. "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
  28058. "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
  28059. "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
  28060. "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
  28061. "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
  28062. "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
  28063. "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
  28064. "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
  28065. "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
  28066. "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
  28067. "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
  28068. "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
  28069. "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
  28070. "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
  28071. "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
  28072. "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
  28073. "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
  28074. "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
  28075. "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
  28076. "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
  28077. "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
  28078. "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
  28079. "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
  28080. .ilen = 1008,
  28081. .result = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77"
  28082. "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40"
  28083. "\x88\x39\xE3\xFD\x94\x4B\x25\x58"
  28084. "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B"
  28085. "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27"
  28086. "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01"
  28087. "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83"
  28088. "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E"
  28089. "\x56\xC8\x18\x3D\x79\x86\x97\xEF"
  28090. "\x57\x0E\x63\xA1\xC1\x41\x48\xB8"
  28091. "\x98\xB7\x51\x6D\x18\xF6\x19\x82"
  28092. "\x37\x49\x88\xA4\xEF\x91\x21\x47"
  28093. "\x03\x28\xEA\x42\xF4\xFB\x7A\x58"
  28094. "\x28\x90\x77\x46\xD8\xD2\x35\x16"
  28095. "\x44\xA9\x9E\x49\x52\x2A\xE4\x16"
  28096. "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6"
  28097. "\xCF\x76\x91\x89\x8A\x94\x39\xFA"
  28098. "\x6B\x5F\x63\x53\x74\x43\x91\xF5"
  28099. "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F"
  28100. "\x9D\x32\x84\xEB\x56\x28\xD6\x06"
  28101. "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62"
  28102. "\x32\xCC\x86\xC8\x36\x67\x5E\x7E"
  28103. "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF"
  28104. "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A"
  28105. "\x9B\x78\x62\x3B\x02\x28\x60\xB3"
  28106. "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47"
  28107. "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28"
  28108. "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70"
  28109. "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94"
  28110. "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C"
  28111. "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0"
  28112. "\x5D\x51\x54\x9A\x53\xA0\xF9\x32"
  28113. "\xBD\x31\x54\x14\x7B\x33\xEE\x17"
  28114. "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2"
  28115. "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2"
  28116. "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E"
  28117. "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4"
  28118. "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE"
  28119. "\x40\x78\x91\x95\xC4\x2F\xA3\xE8"
  28120. "\x18\xC7\x07\xA6\xC8\xC0\x66\x33"
  28121. "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3"
  28122. "\x40\xF5\x40\x54\xF1\x84\x8C\xEA"
  28123. "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8"
  28124. "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4"
  28125. "\xF8\x17\x99\x8D\x58\x2D\x72\x44"
  28126. "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82"
  28127. "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7"
  28128. "\x68\xA3\xB8\xA5\x93\x74\x2E\x85"
  28129. "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF"
  28130. "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B"
  28131. "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18"
  28132. "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B"
  28133. "\x38\xB8\x48\x36\x66\x4E\x20\x43"
  28134. "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52"
  28135. "\xD7\xDC\xB2\x67\x63\x14\x25\xCD"
  28136. "\xB1\x13\x4B\xDE\x8C\x59\x21\x84"
  28137. "\x81\x8D\x97\x23\x45\x33\x7C\xF3"
  28138. "\xC5\xBC\x79\x95\xAA\x84\x68\x31"
  28139. "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA"
  28140. "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97"
  28141. "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36"
  28142. "\x5F\x74\x8C\x86\x5B\x71\xD0\x20"
  28143. "\x78\x1A\x7F\x18\x8C\xD9\xCD\xF5"
  28144. "\x21\x41\x56\x72\x13\xE1\x86\x07"
  28145. "\x07\x26\xF3\x4F\x7B\xEA\xB5\x18"
  28146. "\xFE\x94\x2D\x9F\xE0\x72\x18\x65"
  28147. "\xB2\xA5\x63\x48\xB4\x13\x22\xF7"
  28148. "\x25\xF1\x80\xA8\x7F\x54\x86\x7B"
  28149. "\x39\xAE\x95\x0C\x09\x32\x22\x2D"
  28150. "\x4D\x73\x39\x0C\x09\x2C\x7C\x10"
  28151. "\xD0\x4B\x53\xF6\x90\xC5\x99\x2F"
  28152. "\x15\xE1\x7F\xC6\xC5\x7A\x52\x14"
  28153. "\x65\xEE\x93\x54\xD0\x66\x15\x3C"
  28154. "\x4C\x68\xFD\x64\x0F\xF9\x10\x39"
  28155. "\x46\x7A\xDD\x97\x20\xEE\xC7\xD2"
  28156. "\x98\x4A\xB6\xE6\xF5\xA8\x1F\x4F"
  28157. "\xDB\xAB\x6D\xD5\x9B\x34\x16\x97"
  28158. "\x2F\x64\xE5\x37\xEF\x0E\xA1\xE9"
  28159. "\xBE\x31\x31\x96\x8B\x40\x18\x75"
  28160. "\x11\x75\x14\x32\xA5\x2D\x1B\x6B"
  28161. "\xDB\x59\xEB\xFA\x3D\x8E\x7C\xC4"
  28162. "\xDE\x68\xC8\x9F\xC9\x99\xE3\xC6"
  28163. "\x71\xB0\x12\x57\x89\x0D\xC0\x2B"
  28164. "\x9F\x12\x6A\x04\x67\xF1\x95\x31"
  28165. "\x59\xFD\x84\x95\x2C\x9C\x5B\xEC"
  28166. "\x09\xB0\x43\x96\x4A\x64\x80\x40"
  28167. "\xB9\x72\x19\xDD\x70\x42\xFA\xB1"
  28168. "\x4A\x2C\x0C\x0A\x60\x6E\xE3\x7C"
  28169. "\x37\x5A\xBE\xA4\x62\xCF\x29\xAB"
  28170. "\x7F\x4D\xA6\xB3\xE2\xB6\x64\xC6"
  28171. "\x33\x0B\xF3\xD5\x01\x38\x74\xA4"
  28172. "\x67\x1E\x75\x68\xC3\xAD\x76\xE9"
  28173. "\xE9\xBC\xF0\xEB\xD8\xFD\x31\x8A"
  28174. "\x5F\xC9\x18\x94\x4B\x86\x66\xFC"
  28175. "\xBD\x0B\x3D\xB3\x9F\xFA\x1F\xD9"
  28176. "\x78\xC4\xE3\x24\x1C\x67\xA2\xF8"
  28177. "\x43\xBC\x76\x75\xBF\x6C\x05\xB3"
  28178. "\x32\xE8\x7C\x80\xDB\xC7\xB6\x61"
  28179. "\x1A\x3E\x2B\xA7\x25\xED\x8F\xA0"
  28180. "\x00\x4B\xF8\x90\xCA\xD8\xFB\x12"
  28181. "\xAC\x1F\x18\xE9\xD2\x5E\xA2\x8E"
  28182. "\xE4\x84\x6B\x9D\xEB\x1E\x6B\xA3"
  28183. "\x7B\xDC\xCE\x15\x97\x27\xB2\x65"
  28184. "\xBC\x0E\x47\xAB\x55\x13\x53\xAB"
  28185. "\x0E\x34\x55\x02\x5F\x27\xC5\x89"
  28186. "\xDF\xC5\x70\xC4\xDD\x76\x82\xEE"
  28187. "\x68\xA6\x09\xB0\xE5\x5E\xF1\x0C"
  28188. "\xE3\xF3\x09\x9B\xFE\x65\x4B\xB8"
  28189. "\x30\xEC\xD5\x7C\x6A\xEC\x1D\xD2"
  28190. "\x93\xB7\xA1\x1A\x02\xD4\xC0\xD6"
  28191. "\x8D\x4D\x83\x9A\xED\x29\x4E\x14"
  28192. "\x86\xD5\x3C\x1A\xD5\xB9\x0A\x6A"
  28193. "\x72\x22\xD5\x92\x38\xF1\xA1\x86"
  28194. "\xB2\x41\x51\xCA\x4E\xAB\x8F\xD3"
  28195. "\x80\x56\xC3\xD7\x65\xE1\xB3\x86"
  28196. "\xCB\xCE\x98\xA1\xD4\x59\x1C\x06"
  28197. "\x01\xED\xF8\x29\x91\x19\x5C\x9A"
  28198. "\xEE\x28\x1B\x48\xD7\x32\xEF\x9F"
  28199. "\x6C\x2B\x66\x4E\x78\xD5\x8B\x72"
  28200. "\x80\xE7\x29\xDC\x23\x55\x98\x54"
  28201. "\xB1\xFF\x3E\x95\x56\xA8\x78\x78"
  28202. "\xEF\xC4\xA5\x11\x2D\x2B\xD8\x93"
  28203. "\x30\x6E\x7E\x51\xBB\x42\x5F\x03"
  28204. "\x43\x94\x23\x7E\xEE\xF0\xA5\x79"
  28205. "\x55\x01\xD4\x58\xB2\xF2\x85\x49"
  28206. "\x70\xC5\xB9\x0B\x3B\x7A\x6E\x6C",
  28207. .rlen = 1008,
  28208. .also_non_np = 1,
  28209. .np = 3,
  28210. .tap = { 1008 - 20, 4, 16 },
  28211. },
  28212. };
  28213. static struct cipher_testvec camellia_cbc_dec_tv_template[] = {
  28214. {
  28215. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  28216. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  28217. .klen = 16,
  28218. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  28219. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  28220. .input = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
  28221. "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
  28222. .ilen = 16,
  28223. .result = "Single block msg",
  28224. .rlen = 16,
  28225. }, {
  28226. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  28227. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  28228. .klen = 16,
  28229. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  28230. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  28231. .input = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
  28232. "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
  28233. "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
  28234. "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
  28235. .ilen = 32,
  28236. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  28237. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  28238. "\x10\x11\x12\x13\x14\x15\x16\x17"
  28239. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  28240. .rlen = 32,
  28241. }, { /* Generated with Crypto++ */
  28242. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  28243. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  28244. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  28245. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  28246. .klen = 32,
  28247. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  28248. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  28249. .input = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77"
  28250. "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40"
  28251. "\x88\x39\xE3\xFD\x94\x4B\x25\x58"
  28252. "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B"
  28253. "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27"
  28254. "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01"
  28255. "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83"
  28256. "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E"
  28257. "\x56\xC8\x18\x3D\x79\x86\x97\xEF"
  28258. "\x57\x0E\x63\xA1\xC1\x41\x48\xB8"
  28259. "\x98\xB7\x51\x6D\x18\xF6\x19\x82"
  28260. "\x37\x49\x88\xA4\xEF\x91\x21\x47"
  28261. "\x03\x28\xEA\x42\xF4\xFB\x7A\x58"
  28262. "\x28\x90\x77\x46\xD8\xD2\x35\x16"
  28263. "\x44\xA9\x9E\x49\x52\x2A\xE4\x16"
  28264. "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6"
  28265. "\xCF\x76\x91\x89\x8A\x94\x39\xFA"
  28266. "\x6B\x5F\x63\x53\x74\x43\x91\xF5"
  28267. "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F"
  28268. "\x9D\x32\x84\xEB\x56\x28\xD6\x06"
  28269. "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62"
  28270. "\x32\xCC\x86\xC8\x36\x67\x5E\x7E"
  28271. "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF"
  28272. "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A"
  28273. "\x9B\x78\x62\x3B\x02\x28\x60\xB3"
  28274. "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47"
  28275. "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28"
  28276. "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70"
  28277. "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94"
  28278. "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C"
  28279. "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0"
  28280. "\x5D\x51\x54\x9A\x53\xA0\xF9\x32"
  28281. "\xBD\x31\x54\x14\x7B\x33\xEE\x17"
  28282. "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2"
  28283. "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2"
  28284. "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E"
  28285. "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4"
  28286. "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE"
  28287. "\x40\x78\x91\x95\xC4\x2F\xA3\xE8"
  28288. "\x18\xC7\x07\xA6\xC8\xC0\x66\x33"
  28289. "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3"
  28290. "\x40\xF5\x40\x54\xF1\x84\x8C\xEA"
  28291. "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8"
  28292. "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4"
  28293. "\xF8\x17\x99\x8D\x58\x2D\x72\x44"
  28294. "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82"
  28295. "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7"
  28296. "\x68\xA3\xB8\xA5\x93\x74\x2E\x85"
  28297. "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF"
  28298. "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B"
  28299. "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18"
  28300. "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B"
  28301. "\x38\xB8\x48\x36\x66\x4E\x20\x43"
  28302. "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52"
  28303. "\xD7\xDC\xB2\x67\x63\x14\x25\xCD"
  28304. "\xB1\x13\x4B\xDE\x8C\x59\x21\x84"
  28305. "\x81\x8D\x97\x23\x45\x33\x7C\xF3"
  28306. "\xC5\xBC\x79\x95\xAA\x84\x68\x31"
  28307. "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA"
  28308. "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97"
  28309. "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36"
  28310. "\x5F\x74\x8C\x86\x5B\x71\xD0\x20"
  28311. "\x78\x1A\x7F\x18\x8C\xD9\xCD\xF5"
  28312. "\x21\x41\x56\x72\x13\xE1\x86\x07"
  28313. "\x07\x26\xF3\x4F\x7B\xEA\xB5\x18"
  28314. "\xFE\x94\x2D\x9F\xE0\x72\x18\x65"
  28315. "\xB2\xA5\x63\x48\xB4\x13\x22\xF7"
  28316. "\x25\xF1\x80\xA8\x7F\x54\x86\x7B"
  28317. "\x39\xAE\x95\x0C\x09\x32\x22\x2D"
  28318. "\x4D\x73\x39\x0C\x09\x2C\x7C\x10"
  28319. "\xD0\x4B\x53\xF6\x90\xC5\x99\x2F"
  28320. "\x15\xE1\x7F\xC6\xC5\x7A\x52\x14"
  28321. "\x65\xEE\x93\x54\xD0\x66\x15\x3C"
  28322. "\x4C\x68\xFD\x64\x0F\xF9\x10\x39"
  28323. "\x46\x7A\xDD\x97\x20\xEE\xC7\xD2"
  28324. "\x98\x4A\xB6\xE6\xF5\xA8\x1F\x4F"
  28325. "\xDB\xAB\x6D\xD5\x9B\x34\x16\x97"
  28326. "\x2F\x64\xE5\x37\xEF\x0E\xA1\xE9"
  28327. "\xBE\x31\x31\x96\x8B\x40\x18\x75"
  28328. "\x11\x75\x14\x32\xA5\x2D\x1B\x6B"
  28329. "\xDB\x59\xEB\xFA\x3D\x8E\x7C\xC4"
  28330. "\xDE\x68\xC8\x9F\xC9\x99\xE3\xC6"
  28331. "\x71\xB0\x12\x57\x89\x0D\xC0\x2B"
  28332. "\x9F\x12\x6A\x04\x67\xF1\x95\x31"
  28333. "\x59\xFD\x84\x95\x2C\x9C\x5B\xEC"
  28334. "\x09\xB0\x43\x96\x4A\x64\x80\x40"
  28335. "\xB9\x72\x19\xDD\x70\x42\xFA\xB1"
  28336. "\x4A\x2C\x0C\x0A\x60\x6E\xE3\x7C"
  28337. "\x37\x5A\xBE\xA4\x62\xCF\x29\xAB"
  28338. "\x7F\x4D\xA6\xB3\xE2\xB6\x64\xC6"
  28339. "\x33\x0B\xF3\xD5\x01\x38\x74\xA4"
  28340. "\x67\x1E\x75\x68\xC3\xAD\x76\xE9"
  28341. "\xE9\xBC\xF0\xEB\xD8\xFD\x31\x8A"
  28342. "\x5F\xC9\x18\x94\x4B\x86\x66\xFC"
  28343. "\xBD\x0B\x3D\xB3\x9F\xFA\x1F\xD9"
  28344. "\x78\xC4\xE3\x24\x1C\x67\xA2\xF8"
  28345. "\x43\xBC\x76\x75\xBF\x6C\x05\xB3"
  28346. "\x32\xE8\x7C\x80\xDB\xC7\xB6\x61"
  28347. "\x1A\x3E\x2B\xA7\x25\xED\x8F\xA0"
  28348. "\x00\x4B\xF8\x90\xCA\xD8\xFB\x12"
  28349. "\xAC\x1F\x18\xE9\xD2\x5E\xA2\x8E"
  28350. "\xE4\x84\x6B\x9D\xEB\x1E\x6B\xA3"
  28351. "\x7B\xDC\xCE\x15\x97\x27\xB2\x65"
  28352. "\xBC\x0E\x47\xAB\x55\x13\x53\xAB"
  28353. "\x0E\x34\x55\x02\x5F\x27\xC5\x89"
  28354. "\xDF\xC5\x70\xC4\xDD\x76\x82\xEE"
  28355. "\x68\xA6\x09\xB0\xE5\x5E\xF1\x0C"
  28356. "\xE3\xF3\x09\x9B\xFE\x65\x4B\xB8"
  28357. "\x30\xEC\xD5\x7C\x6A\xEC\x1D\xD2"
  28358. "\x93\xB7\xA1\x1A\x02\xD4\xC0\xD6"
  28359. "\x8D\x4D\x83\x9A\xED\x29\x4E\x14"
  28360. "\x86\xD5\x3C\x1A\xD5\xB9\x0A\x6A"
  28361. "\x72\x22\xD5\x92\x38\xF1\xA1\x86"
  28362. "\xB2\x41\x51\xCA\x4E\xAB\x8F\xD3"
  28363. "\x80\x56\xC3\xD7\x65\xE1\xB3\x86"
  28364. "\xCB\xCE\x98\xA1\xD4\x59\x1C\x06"
  28365. "\x01\xED\xF8\x29\x91\x19\x5C\x9A"
  28366. "\xEE\x28\x1B\x48\xD7\x32\xEF\x9F"
  28367. "\x6C\x2B\x66\x4E\x78\xD5\x8B\x72"
  28368. "\x80\xE7\x29\xDC\x23\x55\x98\x54"
  28369. "\xB1\xFF\x3E\x95\x56\xA8\x78\x78"
  28370. "\xEF\xC4\xA5\x11\x2D\x2B\xD8\x93"
  28371. "\x30\x6E\x7E\x51\xBB\x42\x5F\x03"
  28372. "\x43\x94\x23\x7E\xEE\xF0\xA5\x79"
  28373. "\x55\x01\xD4\x58\xB2\xF2\x85\x49"
  28374. "\x70\xC5\xB9\x0B\x3B\x7A\x6E\x6C",
  28375. .ilen = 1008,
  28376. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  28377. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  28378. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  28379. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  28380. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  28381. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  28382. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  28383. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  28384. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  28385. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  28386. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  28387. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  28388. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  28389. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  28390. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  28391. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  28392. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  28393. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  28394. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  28395. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  28396. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  28397. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  28398. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  28399. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  28400. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  28401. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  28402. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  28403. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  28404. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  28405. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  28406. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  28407. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  28408. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  28409. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  28410. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  28411. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  28412. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  28413. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  28414. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  28415. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  28416. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  28417. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  28418. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  28419. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  28420. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  28421. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  28422. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  28423. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  28424. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  28425. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  28426. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  28427. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  28428. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  28429. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  28430. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  28431. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  28432. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  28433. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  28434. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  28435. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  28436. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  28437. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  28438. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
  28439. "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
  28440. "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
  28441. "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
  28442. "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
  28443. "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
  28444. "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
  28445. "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
  28446. "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
  28447. "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
  28448. "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
  28449. "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
  28450. "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
  28451. "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
  28452. "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
  28453. "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
  28454. "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
  28455. "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
  28456. "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
  28457. "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
  28458. "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
  28459. "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
  28460. "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
  28461. "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
  28462. "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
  28463. "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
  28464. "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
  28465. "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
  28466. "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
  28467. "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
  28468. "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
  28469. "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
  28470. "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
  28471. "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
  28472. "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
  28473. "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
  28474. "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
  28475. "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
  28476. "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
  28477. "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
  28478. "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
  28479. "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
  28480. "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
  28481. "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
  28482. "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
  28483. "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
  28484. "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
  28485. "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
  28486. "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
  28487. "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
  28488. "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
  28489. "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
  28490. "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
  28491. "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
  28492. "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
  28493. "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
  28494. "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
  28495. "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
  28496. "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
  28497. "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
  28498. "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
  28499. "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
  28500. "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
  28501. "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
  28502. .rlen = 1008,
  28503. .also_non_np = 1,
  28504. .np = 3,
  28505. .tap = { 1008 - 20, 4, 16 },
  28506. },
  28507. };
  28508. static struct cipher_testvec camellia_ctr_enc_tv_template[] = {
  28509. { /* Generated with Crypto++ */
  28510. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  28511. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  28512. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  28513. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  28514. .klen = 32,
  28515. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  28516. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  28517. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  28518. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  28519. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  28520. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  28521. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  28522. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  28523. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  28524. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  28525. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  28526. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  28527. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  28528. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  28529. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  28530. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  28531. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  28532. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  28533. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  28534. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  28535. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  28536. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  28537. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  28538. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  28539. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  28540. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  28541. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  28542. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  28543. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  28544. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  28545. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  28546. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  28547. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  28548. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  28549. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  28550. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  28551. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  28552. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  28553. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  28554. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  28555. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  28556. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  28557. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  28558. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  28559. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  28560. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  28561. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  28562. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  28563. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  28564. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  28565. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  28566. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  28567. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  28568. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  28569. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  28570. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  28571. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  28572. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  28573. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  28574. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  28575. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  28576. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  28577. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  28578. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  28579. .ilen = 496,
  28580. .result = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
  28581. "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
  28582. "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
  28583. "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
  28584. "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
  28585. "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
  28586. "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
  28587. "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
  28588. "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
  28589. "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
  28590. "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
  28591. "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
  28592. "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
  28593. "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
  28594. "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
  28595. "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
  28596. "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
  28597. "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
  28598. "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
  28599. "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
  28600. "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
  28601. "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
  28602. "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
  28603. "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
  28604. "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
  28605. "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
  28606. "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
  28607. "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
  28608. "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
  28609. "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
  28610. "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
  28611. "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
  28612. "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
  28613. "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
  28614. "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
  28615. "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
  28616. "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
  28617. "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
  28618. "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
  28619. "\x79\xA2\x99\x28\x93\x1B\x00\x57"
  28620. "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
  28621. "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
  28622. "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
  28623. "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
  28624. "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
  28625. "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
  28626. "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
  28627. "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
  28628. "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
  28629. "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
  28630. "\x76\x44\x45\xF3\x24\x11\x57\x98"
  28631. "\x9A\x86\xB4\x12\x80\x28\x86\x20"
  28632. "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
  28633. "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
  28634. "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
  28635. "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
  28636. "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
  28637. "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
  28638. "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
  28639. "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
  28640. "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
  28641. "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D",
  28642. .rlen = 496,
  28643. }, { /* Generated with Crypto++ */
  28644. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  28645. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  28646. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  28647. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  28648. .klen = 32,
  28649. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  28650. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  28651. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  28652. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  28653. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  28654. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  28655. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  28656. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  28657. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  28658. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  28659. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  28660. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  28661. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  28662. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  28663. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  28664. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  28665. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  28666. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  28667. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  28668. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  28669. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  28670. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  28671. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  28672. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  28673. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  28674. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  28675. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  28676. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  28677. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  28678. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  28679. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  28680. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  28681. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  28682. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  28683. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  28684. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  28685. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  28686. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  28687. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  28688. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  28689. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  28690. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  28691. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  28692. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  28693. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  28694. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  28695. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  28696. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  28697. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  28698. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  28699. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  28700. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  28701. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  28702. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  28703. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  28704. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  28705. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  28706. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  28707. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  28708. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  28709. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  28710. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  28711. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  28712. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  28713. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
  28714. "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
  28715. "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
  28716. "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
  28717. "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
  28718. "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
  28719. "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
  28720. "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
  28721. "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
  28722. "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
  28723. "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
  28724. "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
  28725. "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
  28726. "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
  28727. "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
  28728. "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
  28729. "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
  28730. "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
  28731. "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
  28732. "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
  28733. "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
  28734. "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
  28735. "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
  28736. "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
  28737. "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
  28738. "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
  28739. "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
  28740. "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
  28741. "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
  28742. "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
  28743. "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
  28744. "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
  28745. "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
  28746. "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
  28747. "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
  28748. "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
  28749. "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
  28750. "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
  28751. "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
  28752. "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
  28753. "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
  28754. "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
  28755. "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
  28756. "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
  28757. "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
  28758. "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
  28759. "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
  28760. "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
  28761. "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
  28762. "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
  28763. "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
  28764. "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
  28765. "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
  28766. "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
  28767. "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
  28768. "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
  28769. "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
  28770. "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
  28771. "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
  28772. "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
  28773. "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
  28774. "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
  28775. "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
  28776. "\x72\x09\xA0\x14\xAB\x42\xD9\x4D"
  28777. "\xE4\x7B\x12",
  28778. .ilen = 1011,
  28779. .result = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
  28780. "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
  28781. "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
  28782. "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
  28783. "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
  28784. "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
  28785. "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
  28786. "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
  28787. "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
  28788. "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
  28789. "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
  28790. "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
  28791. "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
  28792. "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
  28793. "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
  28794. "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
  28795. "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
  28796. "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
  28797. "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
  28798. "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
  28799. "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
  28800. "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
  28801. "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
  28802. "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
  28803. "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
  28804. "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
  28805. "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
  28806. "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
  28807. "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
  28808. "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
  28809. "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
  28810. "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
  28811. "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
  28812. "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
  28813. "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
  28814. "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
  28815. "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
  28816. "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
  28817. "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
  28818. "\x79\xA2\x99\x28\x93\x1B\x00\x57"
  28819. "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
  28820. "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
  28821. "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
  28822. "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
  28823. "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
  28824. "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
  28825. "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
  28826. "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
  28827. "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
  28828. "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
  28829. "\x76\x44\x45\xF3\x24\x11\x57\x98"
  28830. "\x9A\x86\xB4\x12\x80\x28\x86\x20"
  28831. "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
  28832. "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
  28833. "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
  28834. "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
  28835. "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
  28836. "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
  28837. "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
  28838. "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
  28839. "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
  28840. "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D"
  28841. "\x93\x11\x1C\xE9\xD2\x9F\x6E\x90"
  28842. "\xE5\x41\x4A\xE2\x3C\x45\x29\x35"
  28843. "\xEC\xD6\x47\x50\xCB\x7B\xA2\x32"
  28844. "\xF7\x8B\x62\xF1\xE3\x9A\xFE\xC7"
  28845. "\x1D\x8C\x02\x72\x68\x09\xE9\xB6"
  28846. "\x4A\x80\xE6\xB1\x56\xDF\x90\xD4"
  28847. "\x93\x74\xA4\xCE\x20\x23\xBF\x48"
  28848. "\xA5\xDE\x1B\xFA\x40\x69\x31\x98"
  28849. "\x62\x6E\xA5\xC7\xBF\x0C\x62\xE5"
  28850. "\x6D\xE1\x93\xF1\x83\x10\x1C\xCA"
  28851. "\xF6\x5C\x19\xF8\x90\x78\xCB\xE4"
  28852. "\x0B\x3A\xB5\xF8\x43\x86\xD3\x3F"
  28853. "\xBA\x83\x34\x3C\x42\xCC\x7D\x28"
  28854. "\x29\x63\x4F\xD8\x02\x17\xC5\x07"
  28855. "\x2C\xA4\xAC\x79\xCB\xC3\xA9\x09"
  28856. "\x81\x45\x18\xED\xE4\xCB\x42\x3B"
  28857. "\x87\x2D\x23\xDC\xC5\xBA\x45\xBD"
  28858. "\x92\xE5\x02\x97\x96\xCE\xAD\xEC"
  28859. "\xBA\xD8\x76\xF8\xCA\xC1\x31\xEC"
  28860. "\x1E\x4F\x3F\x83\xF8\x33\xE8\x6E"
  28861. "\xCC\xF8\x5F\xDD\x65\x50\x99\x69"
  28862. "\xAF\x48\xCE\xA5\xBA\xB6\x14\x9F"
  28863. "\x05\x93\xB2\xE6\x59\xC8\x28\xFE"
  28864. "\x8F\x37\xF9\x64\xB9\xA5\x56\x8F"
  28865. "\xF1\x1B\x90\xEF\xAE\xEB\xFC\x09"
  28866. "\x11\x7A\xF2\x19\x0A\x0A\x9A\x3C"
  28867. "\xE2\x5E\x29\xFA\x31\x9B\xC1\x74"
  28868. "\x1E\x10\x3E\x07\xA9\x31\x6D\xF8"
  28869. "\x81\xF5\xD5\x8A\x04\x23\x51\xAC"
  28870. "\xA2\xE2\x63\xFD\x27\x1F\x79\x5B"
  28871. "\x1F\xE8\xDA\x11\x49\x4D\x1C\xBA"
  28872. "\x54\xCC\x0F\xBA\x92\x69\xE5\xCB"
  28873. "\x41\x1A\x67\xA6\x40\x82\x70\x8C"
  28874. "\x19\x79\x08\xA4\x51\x20\x7D\xC9"
  28875. "\x12\x27\xAE\x20\x0D\x2C\xA1\x6D"
  28876. "\xF4\x55\xD4\xE7\xE6\xD4\x28\x08"
  28877. "\x00\x70\x12\x56\x56\x50\xAD\x14"
  28878. "\x5C\x3E\xA2\xD1\x36\x3F\x36\x48"
  28879. "\xED\xB1\x57\x3E\x5D\x15\xF6\x1E"
  28880. "\x53\xE9\xA4\x3E\xED\x7D\xCF\x7D"
  28881. "\x29\xAF\xF3\x1E\x51\xA8\x9F\x85"
  28882. "\x8B\xF0\xBB\xCE\xCC\x39\xC3\x64"
  28883. "\x4B\xF2\xAD\x70\x19\xD4\x44\x8F"
  28884. "\x91\x76\xE8\x15\x66\x34\x9F\xF6"
  28885. "\x0F\x15\xA4\xA8\x24\xF8\x58\xB1"
  28886. "\x38\x46\x47\xC7\x9B\xCA\xE9\x42"
  28887. "\x44\xAA\xE6\xB5\x9C\x91\xA4\xD3"
  28888. "\x16\xA0\xED\x42\xBE\xB5\x06\x19"
  28889. "\xBE\x67\xE8\xBC\x22\x32\xA4\x1E"
  28890. "\x93\xEB\xBE\xE9\xE1\x93\xE5\x31"
  28891. "\x3A\xA2\x75\xDF\xE3\x6B\xE7\xCC"
  28892. "\xB4\x70\x20\xE0\x6D\x82\x7C\xC8"
  28893. "\x94\x5C\x5E\x37\x18\xAD\xED\x8B"
  28894. "\x44\x86\xCA\x5E\x07\xB7\x70\x8D"
  28895. "\x40\x48\x19\x73\x7C\x78\x64\x0B"
  28896. "\xDB\x01\xCA\xAE\x63\x19\xE9\xD1"
  28897. "\x6B\x2C\x84\x10\x45\x42\x2E\xC3"
  28898. "\xDF\x7F\xAA\xE8\x87\x1B\x63\x46"
  28899. "\x74\x28\x9D\x05\x30\x20\x62\x41"
  28900. "\xC0\x9F\x2C\x36\x2B\x78\xD7\x26"
  28901. "\xDF\x58\x51\xED\xFA\xDC\x87\x79"
  28902. "\xBF\x8C\xBF\xC4\x0F\xE5\x05\xDA"
  28903. "\x45\xE3\x35\x0D\x69\x91\x54\x1C"
  28904. "\xE7\x2C\x49\x08\x8B\x72\xFA\x5C"
  28905. "\xF1\x6B\xD9",
  28906. .rlen = 1011,
  28907. .also_non_np = 1,
  28908. .np = 2,
  28909. .tap = { 1011 - 16, 16 },
  28910. }, { /* Generated with Crypto++ */
  28911. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  28912. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  28913. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  28914. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  28915. .klen = 32,
  28916. .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
  28917. "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
  28918. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  28919. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  28920. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  28921. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  28922. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  28923. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  28924. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  28925. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  28926. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  28927. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  28928. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  28929. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  28930. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  28931. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  28932. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  28933. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  28934. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  28935. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  28936. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  28937. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  28938. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  28939. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  28940. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  28941. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  28942. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  28943. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  28944. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  28945. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  28946. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  28947. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  28948. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  28949. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  28950. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  28951. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  28952. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  28953. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  28954. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  28955. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  28956. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  28957. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  28958. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  28959. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  28960. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  28961. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  28962. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  28963. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  28964. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  28965. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  28966. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  28967. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  28968. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  28969. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  28970. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  28971. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  28972. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  28973. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  28974. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  28975. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  28976. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  28977. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  28978. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  28979. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  28980. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
  28981. "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
  28982. "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
  28983. "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
  28984. "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
  28985. "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
  28986. "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
  28987. "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
  28988. "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
  28989. "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
  28990. "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
  28991. "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
  28992. "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
  28993. "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
  28994. "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
  28995. "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
  28996. "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
  28997. "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
  28998. "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
  28999. "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
  29000. "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
  29001. "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
  29002. "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
  29003. "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
  29004. "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
  29005. "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
  29006. "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
  29007. "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
  29008. "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
  29009. "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
  29010. "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
  29011. "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
  29012. "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
  29013. "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
  29014. "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
  29015. "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
  29016. "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
  29017. "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
  29018. "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
  29019. "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
  29020. "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
  29021. "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
  29022. "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
  29023. "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
  29024. "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
  29025. "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
  29026. "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
  29027. "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
  29028. "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
  29029. "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
  29030. "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
  29031. "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
  29032. "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
  29033. "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
  29034. "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
  29035. "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
  29036. "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
  29037. "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
  29038. "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
  29039. "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
  29040. "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
  29041. "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
  29042. "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
  29043. "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
  29044. .ilen = 1008,
  29045. .result = "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9"
  29046. "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E"
  29047. "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB"
  29048. "\xF7\xC4\x27\x04\x51\x87\xD7\x6F"
  29049. "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4"
  29050. "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48"
  29051. "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A"
  29052. "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B"
  29053. "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07"
  29054. "\x2C\x56\x07\x5E\x37\x30\x60\xA9"
  29055. "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64"
  29056. "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43"
  29057. "\x23\x35\x95\x91\x80\x8A\xC7\xCF"
  29058. "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B"
  29059. "\x05\x19\x48\xE2\x62\xBA\x4F\xF2"
  29060. "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10"
  29061. "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD"
  29062. "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96"
  29063. "\xD9\x0F\x90\x5A\x78\x76\x4D\x77"
  29064. "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD"
  29065. "\xE4\xE8\x20\x2D\x15\x0A\x63\x49"
  29066. "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78"
  29067. "\x28\x07\x09\x1B\x03\x94\x1D\x4B"
  29068. "\x82\x28\x1E\x1D\x95\xBA\xAC\x85"
  29069. "\x71\x6E\x3C\x18\x4B\x77\x74\x79"
  29070. "\xBF\x67\x0A\x53\x3C\x94\xD9\x60"
  29071. "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D"
  29072. "\x27\xD5\x47\xF9\xC3\x4B\x27\x29"
  29073. "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC"
  29074. "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B"
  29075. "\x70\x1C\x84\x81\x72\x4D\xB4\x98"
  29076. "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2"
  29077. "\xFF\xF5\x71\x07\xCD\x90\x23\x13"
  29078. "\x19\xD7\x79\x36\x6C\x9D\x55\x8B"
  29079. "\x93\x78\x86\x05\x69\x46\xD0\xC5"
  29080. "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE"
  29081. "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C"
  29082. "\x83\x4B\xD8\x75\x9C\x18\x04\x7B"
  29083. "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B"
  29084. "\xCC\x01\x45\x90\xA6\x43\x05\x0C"
  29085. "\x6C\x4F\x62\x77\x57\x97\x9F\xEE"
  29086. "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E"
  29087. "\x2C\x43\x98\xFB\x13\x65\x73\xE4"
  29088. "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99"
  29089. "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32"
  29090. "\x17\xC2\xCC\x20\xA1\x19\x26\xAA"
  29091. "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF"
  29092. "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56"
  29093. "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24"
  29094. "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54"
  29095. "\x10\x7F\x50\xDE\x69\x77\xD5\x37"
  29096. "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53"
  29097. "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57"
  29098. "\x3A\xE6\x75\xFE\x89\x00\x6E\x48"
  29099. "\xFB\x99\x17\x2C\xF6\x64\x40\x95"
  29100. "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD"
  29101. "\x52\x05\x24\x34\xF9\x0E\xC8\x64"
  29102. "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE"
  29103. "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22"
  29104. "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E"
  29105. "\x12\xA8\x01\x64\x16\x0B\x26\x5A"
  29106. "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C"
  29107. "\xCF\xF5\xD5\xB7\x7A\x34\x23\xB6"
  29108. "\xAA\x9E\xA8\x98\xA2\xF8\x3D\xD3"
  29109. "\x3F\x23\x69\x63\x56\x96\x45\xD6"
  29110. "\x74\x23\x1D\x5C\x63\xCC\xD8\x78"
  29111. "\x16\xE2\x9C\xD2\x80\x02\xF2\x28"
  29112. "\x69\x2F\xC4\xA8\x15\x15\x24\x3B"
  29113. "\xCB\xF0\x14\xE4\x62\xC8\xF3\xD1"
  29114. "\x03\x58\x1B\x33\x77\x74\x1F\xB4"
  29115. "\x07\x86\xF2\x21\xB7\x41\xAE\xBF"
  29116. "\x25\xC2\xFF\x51\xEF\xEA\xCE\xC4"
  29117. "\x5F\xD9\xB8\x18\x6A\xF0\x0F\x0D"
  29118. "\xF8\x04\xBB\x6D\x62\x33\x87\x26"
  29119. "\x4F\x2F\x14\x6E\xDC\xDB\x66\x09"
  29120. "\x2A\xEF\x7D\x84\x10\xAC\x82\x5E"
  29121. "\xD2\xE4\xAD\x74\x7A\x6D\xCC\x3A"
  29122. "\x7B\x62\xD8\xD6\x07\x2D\xF7\xDF"
  29123. "\x9B\xB3\x82\xCF\x9C\x1D\x76\x5C"
  29124. "\xAC\x7B\xD4\x9B\x45\xA1\x64\x11"
  29125. "\x66\xF1\xA7\x0B\xF9\xDD\x00\xDD"
  29126. "\xA4\x45\x3D\x3E\x03\xC9\x2E\xCB"
  29127. "\xC3\x14\x84\x72\xFD\x41\xDC\xBD"
  29128. "\x75\xBE\xA8\xE5\x16\x48\x64\x39"
  29129. "\xCA\xF3\xE6\xDC\x25\x24\xF1\x6D"
  29130. "\xB2\x8D\xC5\x38\x54\xD3\x5D\x6D"
  29131. "\x0B\x29\x10\x15\x0E\x13\x3B\xAC"
  29132. "\x7E\xCC\x9E\x3E\x18\x48\xA6\x02"
  29133. "\xEF\x03\xB2\x2E\xE3\xD2\x70\x21"
  29134. "\xB4\x19\x26\xBE\x3A\x3D\x05\xE0"
  29135. "\xF8\x09\xAF\xE4\x31\x26\x92\x2F"
  29136. "\x8F\x55\xAC\xED\x0B\xB2\xA5\x34"
  29137. "\xBE\x50\xB1\x02\x22\x96\xE3\x40"
  29138. "\x7B\x70\x50\x6E\x3B\xD5\xE5\xA0"
  29139. "\x8E\xA2\xAD\x14\x60\x5C\x7A\x2B"
  29140. "\x3D\x1B\x7F\xC1\xC0\x2C\x56\x36"
  29141. "\xD2\x0A\x32\x06\x97\x34\xB9\xF4"
  29142. "\x6F\x9F\x7E\x80\xD0\x9D\xF7\x6A"
  29143. "\x21\xC1\xA2\x6A\xB1\x96\x5B\x4D"
  29144. "\x7A\x15\x6C\xC4\x4E\xB8\xE0\x9E"
  29145. "\x6C\x50\xF3\x9C\xC9\xB5\x23\xB7"
  29146. "\xF1\xD4\x29\x4A\x23\xC4\xAD\x1E"
  29147. "\x2C\x07\xD2\x43\x5F\x57\x93\xCA"
  29148. "\x85\xF9\x9F\xAD\x4C\xF1\xE4\xB1"
  29149. "\x1A\x8E\x28\xA4\xB6\x52\x77\x7E"
  29150. "\x68\xC6\x47\xB9\x76\xCC\x65\x5F"
  29151. "\x0B\xF9\x67\x93\xD8\x0E\x9A\x37"
  29152. "\x5F\x41\xED\x64\x6C\xAD\x5F\xED"
  29153. "\x3F\x8D\xFB\x8E\x1E\xA0\xE4\x1F"
  29154. "\xC2\xC7\xED\x18\x43\xE1\x20\x86"
  29155. "\x5D\xBC\x30\x70\x22\xA1\xDC\x53"
  29156. "\x10\x3A\x8D\x47\x82\xCD\x7F\x59"
  29157. "\x03\x2D\x6D\xF5\xE7\x79\xD4\x07"
  29158. "\x68\x2A\xA5\x42\x19\x4D\xAF\xF5"
  29159. "\xED\x47\x83\xBC\x5F\x62\x84\xDA"
  29160. "\xDA\x41\xFF\xB0\x1D\x64\xA3\xC8"
  29161. "\xBD\x4E\xE0\xB8\x7F\xEE\x55\x0A"
  29162. "\x4E\x61\xB2\x51\xF6\x9C\x95\xF6"
  29163. "\x92\xBB\xF6\xC5\xF0\x09\x86\xDE"
  29164. "\x37\x9E\x29\xF9\x2A\x18\x73\x0D"
  29165. "\xDC\x7E\x6B\x7B\x1B\x43\x8C\xEA"
  29166. "\x13\xC8\x1A\x47\x0A\x2D\x6D\x56"
  29167. "\xCD\xD2\xE7\x53\x1A\xAB\x1C\x3C"
  29168. "\xC5\x9B\x03\x70\x29\x2A\x49\x09"
  29169. "\x67\xA1\xEA\xD6\x3A\x5B\xBF\x71"
  29170. "\x1D\x48\x64\x6C\xFB\xC0\x9E\x36",
  29171. .rlen = 1008,
  29172. },
  29173. };
  29174. static struct cipher_testvec camellia_ctr_dec_tv_template[] = {
  29175. { /* Generated with Crypto++ */
  29176. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  29177. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  29178. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  29179. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  29180. .klen = 32,
  29181. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  29182. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  29183. .input = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
  29184. "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
  29185. "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
  29186. "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
  29187. "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
  29188. "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
  29189. "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
  29190. "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
  29191. "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
  29192. "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
  29193. "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
  29194. "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
  29195. "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
  29196. "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
  29197. "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
  29198. "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
  29199. "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
  29200. "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
  29201. "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
  29202. "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
  29203. "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
  29204. "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
  29205. "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
  29206. "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
  29207. "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
  29208. "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
  29209. "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
  29210. "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
  29211. "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
  29212. "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
  29213. "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
  29214. "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
  29215. "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
  29216. "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
  29217. "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
  29218. "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
  29219. "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
  29220. "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
  29221. "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
  29222. "\x79\xA2\x99\x28\x93\x1B\x00\x57"
  29223. "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
  29224. "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
  29225. "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
  29226. "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
  29227. "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
  29228. "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
  29229. "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
  29230. "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
  29231. "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
  29232. "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
  29233. "\x76\x44\x45\xF3\x24\x11\x57\x98"
  29234. "\x9A\x86\xB4\x12\x80\x28\x86\x20"
  29235. "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
  29236. "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
  29237. "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
  29238. "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
  29239. "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
  29240. "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
  29241. "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
  29242. "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
  29243. "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
  29244. "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D",
  29245. .ilen = 496,
  29246. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  29247. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  29248. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  29249. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  29250. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  29251. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  29252. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  29253. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  29254. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  29255. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  29256. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  29257. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  29258. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  29259. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  29260. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  29261. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  29262. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  29263. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  29264. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  29265. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  29266. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  29267. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  29268. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  29269. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  29270. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  29271. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  29272. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  29273. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  29274. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  29275. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  29276. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  29277. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  29278. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  29279. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  29280. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  29281. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  29282. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  29283. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  29284. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  29285. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  29286. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  29287. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  29288. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  29289. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  29290. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  29291. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  29292. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  29293. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  29294. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  29295. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  29296. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  29297. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  29298. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  29299. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  29300. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  29301. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  29302. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  29303. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  29304. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  29305. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  29306. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  29307. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  29308. .rlen = 496,
  29309. }, { /* Generated with Crypto++ */
  29310. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  29311. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  29312. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  29313. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  29314. .klen = 32,
  29315. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  29316. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  29317. .input = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
  29318. "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
  29319. "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
  29320. "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
  29321. "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
  29322. "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
  29323. "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
  29324. "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
  29325. "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
  29326. "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
  29327. "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
  29328. "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
  29329. "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
  29330. "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
  29331. "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
  29332. "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
  29333. "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
  29334. "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
  29335. "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
  29336. "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
  29337. "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
  29338. "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
  29339. "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
  29340. "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
  29341. "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
  29342. "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
  29343. "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
  29344. "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
  29345. "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
  29346. "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
  29347. "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
  29348. "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
  29349. "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
  29350. "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
  29351. "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
  29352. "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
  29353. "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
  29354. "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
  29355. "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
  29356. "\x79\xA2\x99\x28\x93\x1B\x00\x57"
  29357. "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
  29358. "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
  29359. "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
  29360. "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
  29361. "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
  29362. "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
  29363. "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
  29364. "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
  29365. "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
  29366. "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
  29367. "\x76\x44\x45\xF3\x24\x11\x57\x98"
  29368. "\x9A\x86\xB4\x12\x80\x28\x86\x20"
  29369. "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
  29370. "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
  29371. "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
  29372. "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
  29373. "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
  29374. "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
  29375. "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
  29376. "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
  29377. "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
  29378. "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D"
  29379. "\x93\x11\x1C\xE9\xD2\x9F\x6E\x90"
  29380. "\xE5\x41\x4A\xE2\x3C\x45\x29\x35"
  29381. "\xEC\xD6\x47\x50\xCB\x7B\xA2\x32"
  29382. "\xF7\x8B\x62\xF1\xE3\x9A\xFE\xC7"
  29383. "\x1D\x8C\x02\x72\x68\x09\xE9\xB6"
  29384. "\x4A\x80\xE6\xB1\x56\xDF\x90\xD4"
  29385. "\x93\x74\xA4\xCE\x20\x23\xBF\x48"
  29386. "\xA5\xDE\x1B\xFA\x40\x69\x31\x98"
  29387. "\x62\x6E\xA5\xC7\xBF\x0C\x62\xE5"
  29388. "\x6D\xE1\x93\xF1\x83\x10\x1C\xCA"
  29389. "\xF6\x5C\x19\xF8\x90\x78\xCB\xE4"
  29390. "\x0B\x3A\xB5\xF8\x43\x86\xD3\x3F"
  29391. "\xBA\x83\x34\x3C\x42\xCC\x7D\x28"
  29392. "\x29\x63\x4F\xD8\x02\x17\xC5\x07"
  29393. "\x2C\xA4\xAC\x79\xCB\xC3\xA9\x09"
  29394. "\x81\x45\x18\xED\xE4\xCB\x42\x3B"
  29395. "\x87\x2D\x23\xDC\xC5\xBA\x45\xBD"
  29396. "\x92\xE5\x02\x97\x96\xCE\xAD\xEC"
  29397. "\xBA\xD8\x76\xF8\xCA\xC1\x31\xEC"
  29398. "\x1E\x4F\x3F\x83\xF8\x33\xE8\x6E"
  29399. "\xCC\xF8\x5F\xDD\x65\x50\x99\x69"
  29400. "\xAF\x48\xCE\xA5\xBA\xB6\x14\x9F"
  29401. "\x05\x93\xB2\xE6\x59\xC8\x28\xFE"
  29402. "\x8F\x37\xF9\x64\xB9\xA5\x56\x8F"
  29403. "\xF1\x1B\x90\xEF\xAE\xEB\xFC\x09"
  29404. "\x11\x7A\xF2\x19\x0A\x0A\x9A\x3C"
  29405. "\xE2\x5E\x29\xFA\x31\x9B\xC1\x74"
  29406. "\x1E\x10\x3E\x07\xA9\x31\x6D\xF8"
  29407. "\x81\xF5\xD5\x8A\x04\x23\x51\xAC"
  29408. "\xA2\xE2\x63\xFD\x27\x1F\x79\x5B"
  29409. "\x1F\xE8\xDA\x11\x49\x4D\x1C\xBA"
  29410. "\x54\xCC\x0F\xBA\x92\x69\xE5\xCB"
  29411. "\x41\x1A\x67\xA6\x40\x82\x70\x8C"
  29412. "\x19\x79\x08\xA4\x51\x20\x7D\xC9"
  29413. "\x12\x27\xAE\x20\x0D\x2C\xA1\x6D"
  29414. "\xF4\x55\xD4\xE7\xE6\xD4\x28\x08"
  29415. "\x00\x70\x12\x56\x56\x50\xAD\x14"
  29416. "\x5C\x3E\xA2\xD1\x36\x3F\x36\x48"
  29417. "\xED\xB1\x57\x3E\x5D\x15\xF6\x1E"
  29418. "\x53\xE9\xA4\x3E\xED\x7D\xCF\x7D"
  29419. "\x29\xAF\xF3\x1E\x51\xA8\x9F\x85"
  29420. "\x8B\xF0\xBB\xCE\xCC\x39\xC3\x64"
  29421. "\x4B\xF2\xAD\x70\x19\xD4\x44\x8F"
  29422. "\x91\x76\xE8\x15\x66\x34\x9F\xF6"
  29423. "\x0F\x15\xA4\xA8\x24\xF8\x58\xB1"
  29424. "\x38\x46\x47\xC7\x9B\xCA\xE9\x42"
  29425. "\x44\xAA\xE6\xB5\x9C\x91\xA4\xD3"
  29426. "\x16\xA0\xED\x42\xBE\xB5\x06\x19"
  29427. "\xBE\x67\xE8\xBC\x22\x32\xA4\x1E"
  29428. "\x93\xEB\xBE\xE9\xE1\x93\xE5\x31"
  29429. "\x3A\xA2\x75\xDF\xE3\x6B\xE7\xCC"
  29430. "\xB4\x70\x20\xE0\x6D\x82\x7C\xC8"
  29431. "\x94\x5C\x5E\x37\x18\xAD\xED\x8B"
  29432. "\x44\x86\xCA\x5E\x07\xB7\x70\x8D"
  29433. "\x40\x48\x19\x73\x7C\x78\x64\x0B"
  29434. "\xDB\x01\xCA\xAE\x63\x19\xE9\xD1"
  29435. "\x6B\x2C\x84\x10\x45\x42\x2E\xC3"
  29436. "\xDF\x7F\xAA\xE8\x87\x1B\x63\x46"
  29437. "\x74\x28\x9D\x05\x30\x20\x62\x41"
  29438. "\xC0\x9F\x2C\x36\x2B\x78\xD7\x26"
  29439. "\xDF\x58\x51\xED\xFA\xDC\x87\x79"
  29440. "\xBF\x8C\xBF\xC4\x0F\xE5\x05\xDA"
  29441. "\x45\xE3\x35\x0D\x69\x91\x54\x1C"
  29442. "\xE7\x2C\x49\x08\x8B\x72\xFA\x5C"
  29443. "\xF1\x6B\xD9",
  29444. .ilen = 1011,
  29445. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  29446. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  29447. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  29448. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  29449. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  29450. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  29451. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  29452. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  29453. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  29454. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  29455. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  29456. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  29457. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  29458. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  29459. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  29460. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  29461. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  29462. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  29463. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  29464. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  29465. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  29466. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  29467. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  29468. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  29469. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  29470. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  29471. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  29472. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  29473. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  29474. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  29475. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  29476. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  29477. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  29478. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  29479. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  29480. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  29481. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  29482. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  29483. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  29484. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  29485. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  29486. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  29487. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  29488. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  29489. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  29490. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  29491. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  29492. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  29493. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  29494. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  29495. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  29496. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  29497. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  29498. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  29499. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  29500. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  29501. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  29502. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  29503. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  29504. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  29505. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  29506. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  29507. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
  29508. "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
  29509. "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
  29510. "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
  29511. "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
  29512. "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
  29513. "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
  29514. "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
  29515. "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
  29516. "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
  29517. "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
  29518. "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
  29519. "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
  29520. "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
  29521. "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
  29522. "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
  29523. "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
  29524. "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
  29525. "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
  29526. "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
  29527. "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
  29528. "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
  29529. "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
  29530. "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
  29531. "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
  29532. "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
  29533. "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
  29534. "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
  29535. "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
  29536. "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
  29537. "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
  29538. "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
  29539. "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
  29540. "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
  29541. "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
  29542. "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
  29543. "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
  29544. "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
  29545. "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
  29546. "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
  29547. "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
  29548. "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
  29549. "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
  29550. "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
  29551. "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
  29552. "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
  29553. "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
  29554. "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
  29555. "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
  29556. "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
  29557. "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
  29558. "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
  29559. "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
  29560. "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
  29561. "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
  29562. "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
  29563. "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
  29564. "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
  29565. "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
  29566. "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
  29567. "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
  29568. "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
  29569. "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
  29570. "\x72\x09\xA0\x14\xAB\x42\xD9\x4D"
  29571. "\xE4\x7B\x12",
  29572. .rlen = 1011,
  29573. .also_non_np = 1,
  29574. .np = 2,
  29575. .tap = { 1011 - 16, 16 },
  29576. }, { /* Generated with Crypto++ */
  29577. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  29578. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  29579. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  29580. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  29581. .klen = 32,
  29582. .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
  29583. "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
  29584. .input = "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9"
  29585. "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E"
  29586. "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB"
  29587. "\xF7\xC4\x27\x04\x51\x87\xD7\x6F"
  29588. "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4"
  29589. "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48"
  29590. "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A"
  29591. "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B"
  29592. "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07"
  29593. "\x2C\x56\x07\x5E\x37\x30\x60\xA9"
  29594. "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64"
  29595. "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43"
  29596. "\x23\x35\x95\x91\x80\x8A\xC7\xCF"
  29597. "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B"
  29598. "\x05\x19\x48\xE2\x62\xBA\x4F\xF2"
  29599. "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10"
  29600. "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD"
  29601. "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96"
  29602. "\xD9\x0F\x90\x5A\x78\x76\x4D\x77"
  29603. "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD"
  29604. "\xE4\xE8\x20\x2D\x15\x0A\x63\x49"
  29605. "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78"
  29606. "\x28\x07\x09\x1B\x03\x94\x1D\x4B"
  29607. "\x82\x28\x1E\x1D\x95\xBA\xAC\x85"
  29608. "\x71\x6E\x3C\x18\x4B\x77\x74\x79"
  29609. "\xBF\x67\x0A\x53\x3C\x94\xD9\x60"
  29610. "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D"
  29611. "\x27\xD5\x47\xF9\xC3\x4B\x27\x29"
  29612. "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC"
  29613. "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B"
  29614. "\x70\x1C\x84\x81\x72\x4D\xB4\x98"
  29615. "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2"
  29616. "\xFF\xF5\x71\x07\xCD\x90\x23\x13"
  29617. "\x19\xD7\x79\x36\x6C\x9D\x55\x8B"
  29618. "\x93\x78\x86\x05\x69\x46\xD0\xC5"
  29619. "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE"
  29620. "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C"
  29621. "\x83\x4B\xD8\x75\x9C\x18\x04\x7B"
  29622. "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B"
  29623. "\xCC\x01\x45\x90\xA6\x43\x05\x0C"
  29624. "\x6C\x4F\x62\x77\x57\x97\x9F\xEE"
  29625. "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E"
  29626. "\x2C\x43\x98\xFB\x13\x65\x73\xE4"
  29627. "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99"
  29628. "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32"
  29629. "\x17\xC2\xCC\x20\xA1\x19\x26\xAA"
  29630. "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF"
  29631. "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56"
  29632. "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24"
  29633. "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54"
  29634. "\x10\x7F\x50\xDE\x69\x77\xD5\x37"
  29635. "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53"
  29636. "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57"
  29637. "\x3A\xE6\x75\xFE\x89\x00\x6E\x48"
  29638. "\xFB\x99\x17\x2C\xF6\x64\x40\x95"
  29639. "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD"
  29640. "\x52\x05\x24\x34\xF9\x0E\xC8\x64"
  29641. "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE"
  29642. "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22"
  29643. "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E"
  29644. "\x12\xA8\x01\x64\x16\x0B\x26\x5A"
  29645. "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C"
  29646. "\xCF\xF5\xD5\xB7\x7A\x34\x23\xB6"
  29647. "\xAA\x9E\xA8\x98\xA2\xF8\x3D\xD3"
  29648. "\x3F\x23\x69\x63\x56\x96\x45\xD6"
  29649. "\x74\x23\x1D\x5C\x63\xCC\xD8\x78"
  29650. "\x16\xE2\x9C\xD2\x80\x02\xF2\x28"
  29651. "\x69\x2F\xC4\xA8\x15\x15\x24\x3B"
  29652. "\xCB\xF0\x14\xE4\x62\xC8\xF3\xD1"
  29653. "\x03\x58\x1B\x33\x77\x74\x1F\xB4"
  29654. "\x07\x86\xF2\x21\xB7\x41\xAE\xBF"
  29655. "\x25\xC2\xFF\x51\xEF\xEA\xCE\xC4"
  29656. "\x5F\xD9\xB8\x18\x6A\xF0\x0F\x0D"
  29657. "\xF8\x04\xBB\x6D\x62\x33\x87\x26"
  29658. "\x4F\x2F\x14\x6E\xDC\xDB\x66\x09"
  29659. "\x2A\xEF\x7D\x84\x10\xAC\x82\x5E"
  29660. "\xD2\xE4\xAD\x74\x7A\x6D\xCC\x3A"
  29661. "\x7B\x62\xD8\xD6\x07\x2D\xF7\xDF"
  29662. "\x9B\xB3\x82\xCF\x9C\x1D\x76\x5C"
  29663. "\xAC\x7B\xD4\x9B\x45\xA1\x64\x11"
  29664. "\x66\xF1\xA7\x0B\xF9\xDD\x00\xDD"
  29665. "\xA4\x45\x3D\x3E\x03\xC9\x2E\xCB"
  29666. "\xC3\x14\x84\x72\xFD\x41\xDC\xBD"
  29667. "\x75\xBE\xA8\xE5\x16\x48\x64\x39"
  29668. "\xCA\xF3\xE6\xDC\x25\x24\xF1\x6D"
  29669. "\xB2\x8D\xC5\x38\x54\xD3\x5D\x6D"
  29670. "\x0B\x29\x10\x15\x0E\x13\x3B\xAC"
  29671. "\x7E\xCC\x9E\x3E\x18\x48\xA6\x02"
  29672. "\xEF\x03\xB2\x2E\xE3\xD2\x70\x21"
  29673. "\xB4\x19\x26\xBE\x3A\x3D\x05\xE0"
  29674. "\xF8\x09\xAF\xE4\x31\x26\x92\x2F"
  29675. "\x8F\x55\xAC\xED\x0B\xB2\xA5\x34"
  29676. "\xBE\x50\xB1\x02\x22\x96\xE3\x40"
  29677. "\x7B\x70\x50\x6E\x3B\xD5\xE5\xA0"
  29678. "\x8E\xA2\xAD\x14\x60\x5C\x7A\x2B"
  29679. "\x3D\x1B\x7F\xC1\xC0\x2C\x56\x36"
  29680. "\xD2\x0A\x32\x06\x97\x34\xB9\xF4"
  29681. "\x6F\x9F\x7E\x80\xD0\x9D\xF7\x6A"
  29682. "\x21\xC1\xA2\x6A\xB1\x96\x5B\x4D"
  29683. "\x7A\x15\x6C\xC4\x4E\xB8\xE0\x9E"
  29684. "\x6C\x50\xF3\x9C\xC9\xB5\x23\xB7"
  29685. "\xF1\xD4\x29\x4A\x23\xC4\xAD\x1E"
  29686. "\x2C\x07\xD2\x43\x5F\x57\x93\xCA"
  29687. "\x85\xF9\x9F\xAD\x4C\xF1\xE4\xB1"
  29688. "\x1A\x8E\x28\xA4\xB6\x52\x77\x7E"
  29689. "\x68\xC6\x47\xB9\x76\xCC\x65\x5F"
  29690. "\x0B\xF9\x67\x93\xD8\x0E\x9A\x37"
  29691. "\x5F\x41\xED\x64\x6C\xAD\x5F\xED"
  29692. "\x3F\x8D\xFB\x8E\x1E\xA0\xE4\x1F"
  29693. "\xC2\xC7\xED\x18\x43\xE1\x20\x86"
  29694. "\x5D\xBC\x30\x70\x22\xA1\xDC\x53"
  29695. "\x10\x3A\x8D\x47\x82\xCD\x7F\x59"
  29696. "\x03\x2D\x6D\xF5\xE7\x79\xD4\x07"
  29697. "\x68\x2A\xA5\x42\x19\x4D\xAF\xF5"
  29698. "\xED\x47\x83\xBC\x5F\x62\x84\xDA"
  29699. "\xDA\x41\xFF\xB0\x1D\x64\xA3\xC8"
  29700. "\xBD\x4E\xE0\xB8\x7F\xEE\x55\x0A"
  29701. "\x4E\x61\xB2\x51\xF6\x9C\x95\xF6"
  29702. "\x92\xBB\xF6\xC5\xF0\x09\x86\xDE"
  29703. "\x37\x9E\x29\xF9\x2A\x18\x73\x0D"
  29704. "\xDC\x7E\x6B\x7B\x1B\x43\x8C\xEA"
  29705. "\x13\xC8\x1A\x47\x0A\x2D\x6D\x56"
  29706. "\xCD\xD2\xE7\x53\x1A\xAB\x1C\x3C"
  29707. "\xC5\x9B\x03\x70\x29\x2A\x49\x09"
  29708. "\x67\xA1\xEA\xD6\x3A\x5B\xBF\x71"
  29709. "\x1D\x48\x64\x6C\xFB\xC0\x9E\x36",
  29710. .ilen = 1008,
  29711. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  29712. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  29713. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  29714. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  29715. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  29716. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  29717. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  29718. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  29719. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  29720. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  29721. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  29722. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  29723. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  29724. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  29725. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  29726. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  29727. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  29728. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  29729. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  29730. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  29731. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  29732. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  29733. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  29734. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  29735. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  29736. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  29737. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  29738. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  29739. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  29740. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  29741. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  29742. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  29743. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  29744. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  29745. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  29746. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  29747. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  29748. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  29749. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  29750. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  29751. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  29752. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  29753. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  29754. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  29755. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  29756. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  29757. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  29758. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  29759. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  29760. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  29761. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  29762. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  29763. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  29764. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  29765. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  29766. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  29767. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  29768. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  29769. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  29770. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  29771. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  29772. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  29773. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
  29774. "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
  29775. "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
  29776. "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
  29777. "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
  29778. "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
  29779. "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
  29780. "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
  29781. "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
  29782. "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
  29783. "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
  29784. "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
  29785. "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
  29786. "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
  29787. "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
  29788. "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
  29789. "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
  29790. "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
  29791. "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
  29792. "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
  29793. "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
  29794. "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
  29795. "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
  29796. "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
  29797. "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
  29798. "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
  29799. "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
  29800. "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
  29801. "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
  29802. "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
  29803. "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
  29804. "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
  29805. "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
  29806. "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
  29807. "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
  29808. "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
  29809. "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
  29810. "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
  29811. "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
  29812. "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
  29813. "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
  29814. "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
  29815. "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
  29816. "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
  29817. "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
  29818. "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
  29819. "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
  29820. "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
  29821. "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
  29822. "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
  29823. "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
  29824. "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
  29825. "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
  29826. "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
  29827. "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
  29828. "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
  29829. "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
  29830. "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
  29831. "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
  29832. "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
  29833. "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
  29834. "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
  29835. "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
  29836. "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
  29837. .rlen = 1008,
  29838. },
  29839. };
  29840. static struct cipher_testvec camellia_lrw_enc_tv_template[] = {
  29841. /* Generated from AES-LRW test vectors */
  29842. {
  29843. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  29844. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  29845. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  29846. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  29847. .klen = 32,
  29848. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  29849. "\x00\x00\x00\x00\x00\x00\x00\x01",
  29850. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  29851. "\x38\x39\x41\x42\x43\x44\x45\x46",
  29852. .ilen = 16,
  29853. .result = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31"
  29854. "\x97\xcc\x72\xbe\x99\x17\xeb\x3e",
  29855. .rlen = 16,
  29856. }, {
  29857. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  29858. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  29859. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  29860. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  29861. .klen = 32,
  29862. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  29863. "\x00\x00\x00\x00\x00\x00\x00\x02",
  29864. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  29865. "\x38\x39\x41\x42\x43\x44\x45\x46",
  29866. .ilen = 16,
  29867. .result = "\x73\x09\xb7\x50\xb6\x77\x30\x50"
  29868. "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a",
  29869. .rlen = 16,
  29870. }, {
  29871. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  29872. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  29873. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  29874. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  29875. .klen = 32,
  29876. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  29877. "\x00\x00\x00\x02\x00\x00\x00\x00",
  29878. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  29879. "\x38\x39\x41\x42\x43\x44\x45\x46",
  29880. .ilen = 16,
  29881. .result = "\x90\xae\x83\xe0\x22\xb9\x60\x91"
  29882. "\xfa\xa9\xb7\x98\xe3\xed\x87\x01",
  29883. .rlen = 16,
  29884. }, {
  29885. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  29886. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  29887. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  29888. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  29889. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  29890. .klen = 40,
  29891. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  29892. "\x00\x00\x00\x00\x00\x00\x00\x01",
  29893. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  29894. "\x38\x39\x41\x42\x43\x44\x45\x46",
  29895. .ilen = 16,
  29896. .result = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0"
  29897. "\xd8\x83\xef\xd9\x07\x16\x5f\x35",
  29898. .rlen = 16,
  29899. }, {
  29900. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  29901. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  29902. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  29903. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  29904. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  29905. .klen = 40,
  29906. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  29907. "\x00\x00\x00\x02\x00\x00\x00\x00",
  29908. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  29909. "\x38\x39\x41\x42\x43\x44\x45\x46",
  29910. .ilen = 16,
  29911. .result = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e"
  29912. "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15",
  29913. .rlen = 16,
  29914. }, {
  29915. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  29916. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  29917. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  29918. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  29919. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  29920. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  29921. .klen = 48,
  29922. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  29923. "\x00\x00\x00\x00\x00\x00\x00\x01",
  29924. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  29925. "\x38\x39\x41\x42\x43\x44\x45\x46",
  29926. .ilen = 16,
  29927. .result = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9"
  29928. "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d",
  29929. .rlen = 16,
  29930. }, {
  29931. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  29932. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  29933. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  29934. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  29935. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  29936. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  29937. .klen = 48,
  29938. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  29939. "\x00\x00\x00\x02\x00\x00\x00\x00",
  29940. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  29941. "\x38\x39\x41\x42\x43\x44\x45\x46",
  29942. .ilen = 16,
  29943. .result = "\x04\xab\x28\x37\x31\x7a\x26\xab"
  29944. "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff",
  29945. .rlen = 16,
  29946. }, {
  29947. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  29948. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  29949. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  29950. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  29951. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  29952. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  29953. .klen = 48,
  29954. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  29955. "\x00\x00\x00\x00\x00\x00\x00\x01",
  29956. .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  29957. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  29958. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  29959. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  29960. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  29961. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  29962. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  29963. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  29964. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  29965. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  29966. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  29967. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  29968. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  29969. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  29970. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  29971. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  29972. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  29973. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  29974. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  29975. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  29976. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  29977. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  29978. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  29979. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  29980. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  29981. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  29982. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  29983. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  29984. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  29985. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  29986. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  29987. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  29988. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  29989. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  29990. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  29991. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  29992. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  29993. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  29994. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  29995. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  29996. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  29997. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  29998. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  29999. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  30000. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  30001. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  30002. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  30003. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  30004. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  30005. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  30006. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  30007. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  30008. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  30009. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  30010. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  30011. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  30012. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  30013. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  30014. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  30015. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  30016. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  30017. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  30018. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  30019. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  30020. .ilen = 512,
  30021. .result = "\x90\x69\x8e\xf2\x14\x86\x59\xf9"
  30022. "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96"
  30023. "\x67\x76\xac\x2c\xd2\x63\x18\x93"
  30024. "\x13\xf8\xf1\xf6\x71\x77\xb3\xee"
  30025. "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f"
  30026. "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06"
  30027. "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1"
  30028. "\x62\xdd\x78\x81\xea\x1d\xef\x04"
  30029. "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1"
  30030. "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2"
  30031. "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0"
  30032. "\x40\x41\x69\xaa\x71\xc0\x37\xec"
  30033. "\x39\xf3\xf2\xec\x82\xc3\x88\x79"
  30034. "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80"
  30035. "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c"
  30036. "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1"
  30037. "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12"
  30038. "\x6f\x75\xc7\x80\x99\x50\x84\xcf"
  30039. "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e"
  30040. "\xb9\xb3\xde\x7a\x93\x14\x12\xa2"
  30041. "\xf7\x43\xb3\x9d\x1a\x87\x65\x91"
  30042. "\x42\x08\x40\x82\x06\x1c\x2d\x55"
  30043. "\x6e\x48\xd5\x74\x07\x6e\x9d\x80"
  30044. "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74"
  30045. "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c"
  30046. "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9"
  30047. "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83"
  30048. "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b"
  30049. "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0"
  30050. "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1"
  30051. "\xed\x14\xa9\x57\x19\x63\x40\x04"
  30052. "\x24\xeb\x6e\x19\xd1\x3d\x70\x78"
  30053. "\xeb\xda\x55\x70\x2c\x4f\x41\x5b"
  30054. "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3"
  30055. "\x21\xec\xd7\xd2\x55\x32\x7c\x2e"
  30056. "\x3c\x48\x8e\xb4\x85\x35\x47\xfe"
  30057. "\xe2\x88\x79\x98\x6a\xc9\x8d\xff"
  30058. "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd"
  30059. "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99"
  30060. "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75"
  30061. "\x23\x52\x76\xc3\x50\x6e\x66\xf8"
  30062. "\xa2\xe2\xce\xba\x40\x21\x3f\xc9"
  30063. "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf"
  30064. "\xd3\xdf\x57\x59\x83\xb8\xe1\x85"
  30065. "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f"
  30066. "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a"
  30067. "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76"
  30068. "\x2f\x1c\x1a\x30\xed\x95\x2a\x44"
  30069. "\x35\xa5\x83\x04\x84\x01\x99\x56"
  30070. "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd"
  30071. "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c"
  30072. "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d"
  30073. "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77"
  30074. "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b"
  30075. "\x30\xed\x1a\x50\x19\xef\xc4\x2c"
  30076. "\x02\xd9\xc5\xd3\x11\x33\x37\xe5"
  30077. "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d"
  30078. "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96"
  30079. "\x91\xc3\x94\x24\xa5\x12\xa2\x37"
  30080. "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe"
  30081. "\x79\x92\x3e\xe6\x1b\x49\x57\x5d"
  30082. "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1"
  30083. "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9"
  30084. "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95",
  30085. .rlen = 512,
  30086. .also_non_np = 1,
  30087. .np = 3,
  30088. .tap = { 512 - 20, 4, 16 },
  30089. },
  30090. };
  30091. static struct cipher_testvec camellia_lrw_dec_tv_template[] = {
  30092. /* Generated from AES-LRW test vectors */
  30093. /* same as enc vectors with input and result reversed */
  30094. {
  30095. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  30096. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  30097. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  30098. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  30099. .klen = 32,
  30100. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  30101. "\x00\x00\x00\x00\x00\x00\x00\x01",
  30102. .input = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31"
  30103. "\x97\xcc\x72\xbe\x99\x17\xeb\x3e",
  30104. .ilen = 16,
  30105. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  30106. "\x38\x39\x41\x42\x43\x44\x45\x46",
  30107. .rlen = 16,
  30108. }, {
  30109. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  30110. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  30111. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  30112. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  30113. .klen = 32,
  30114. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  30115. "\x00\x00\x00\x00\x00\x00\x00\x02",
  30116. .input = "\x73\x09\xb7\x50\xb6\x77\x30\x50"
  30117. "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a",
  30118. .ilen = 16,
  30119. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  30120. "\x38\x39\x41\x42\x43\x44\x45\x46",
  30121. .rlen = 16,
  30122. }, {
  30123. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  30124. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  30125. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  30126. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  30127. .klen = 32,
  30128. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  30129. "\x00\x00\x00\x02\x00\x00\x00\x00",
  30130. .input = "\x90\xae\x83\xe0\x22\xb9\x60\x91"
  30131. "\xfa\xa9\xb7\x98\xe3\xed\x87\x01",
  30132. .ilen = 16,
  30133. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  30134. "\x38\x39\x41\x42\x43\x44\x45\x46",
  30135. .rlen = 16,
  30136. }, {
  30137. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  30138. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  30139. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  30140. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  30141. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  30142. .klen = 40,
  30143. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  30144. "\x00\x00\x00\x00\x00\x00\x00\x01",
  30145. .input = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0"
  30146. "\xd8\x83\xef\xd9\x07\x16\x5f\x35",
  30147. .ilen = 16,
  30148. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  30149. "\x38\x39\x41\x42\x43\x44\x45\x46",
  30150. .rlen = 16,
  30151. }, {
  30152. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  30153. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  30154. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  30155. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  30156. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  30157. .klen = 40,
  30158. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  30159. "\x00\x00\x00\x02\x00\x00\x00\x00",
  30160. .input = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e"
  30161. "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15",
  30162. .ilen = 16,
  30163. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  30164. "\x38\x39\x41\x42\x43\x44\x45\x46",
  30165. .rlen = 16,
  30166. }, {
  30167. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  30168. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  30169. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  30170. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  30171. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  30172. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  30173. .klen = 48,
  30174. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  30175. "\x00\x00\x00\x00\x00\x00\x00\x01",
  30176. .input = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9"
  30177. "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d",
  30178. .ilen = 16,
  30179. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  30180. "\x38\x39\x41\x42\x43\x44\x45\x46",
  30181. .rlen = 16,
  30182. }, {
  30183. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  30184. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  30185. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  30186. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  30187. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  30188. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  30189. .klen = 48,
  30190. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  30191. "\x00\x00\x00\x02\x00\x00\x00\x00",
  30192. .input = "\x04\xab\x28\x37\x31\x7a\x26\xab"
  30193. "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff",
  30194. .ilen = 16,
  30195. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  30196. "\x38\x39\x41\x42\x43\x44\x45\x46",
  30197. .rlen = 16,
  30198. }, {
  30199. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  30200. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  30201. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  30202. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  30203. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  30204. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  30205. .klen = 48,
  30206. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  30207. "\x00\x00\x00\x00\x00\x00\x00\x01",
  30208. .input = "\x90\x69\x8e\xf2\x14\x86\x59\xf9"
  30209. "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96"
  30210. "\x67\x76\xac\x2c\xd2\x63\x18\x93"
  30211. "\x13\xf8\xf1\xf6\x71\x77\xb3\xee"
  30212. "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f"
  30213. "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06"
  30214. "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1"
  30215. "\x62\xdd\x78\x81\xea\x1d\xef\x04"
  30216. "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1"
  30217. "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2"
  30218. "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0"
  30219. "\x40\x41\x69\xaa\x71\xc0\x37\xec"
  30220. "\x39\xf3\xf2\xec\x82\xc3\x88\x79"
  30221. "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80"
  30222. "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c"
  30223. "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1"
  30224. "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12"
  30225. "\x6f\x75\xc7\x80\x99\x50\x84\xcf"
  30226. "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e"
  30227. "\xb9\xb3\xde\x7a\x93\x14\x12\xa2"
  30228. "\xf7\x43\xb3\x9d\x1a\x87\x65\x91"
  30229. "\x42\x08\x40\x82\x06\x1c\x2d\x55"
  30230. "\x6e\x48\xd5\x74\x07\x6e\x9d\x80"
  30231. "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74"
  30232. "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c"
  30233. "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9"
  30234. "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83"
  30235. "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b"
  30236. "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0"
  30237. "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1"
  30238. "\xed\x14\xa9\x57\x19\x63\x40\x04"
  30239. "\x24\xeb\x6e\x19\xd1\x3d\x70\x78"
  30240. "\xeb\xda\x55\x70\x2c\x4f\x41\x5b"
  30241. "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3"
  30242. "\x21\xec\xd7\xd2\x55\x32\x7c\x2e"
  30243. "\x3c\x48\x8e\xb4\x85\x35\x47\xfe"
  30244. "\xe2\x88\x79\x98\x6a\xc9\x8d\xff"
  30245. "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd"
  30246. "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99"
  30247. "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75"
  30248. "\x23\x52\x76\xc3\x50\x6e\x66\xf8"
  30249. "\xa2\xe2\xce\xba\x40\x21\x3f\xc9"
  30250. "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf"
  30251. "\xd3\xdf\x57\x59\x83\xb8\xe1\x85"
  30252. "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f"
  30253. "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a"
  30254. "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76"
  30255. "\x2f\x1c\x1a\x30\xed\x95\x2a\x44"
  30256. "\x35\xa5\x83\x04\x84\x01\x99\x56"
  30257. "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd"
  30258. "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c"
  30259. "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d"
  30260. "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77"
  30261. "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b"
  30262. "\x30\xed\x1a\x50\x19\xef\xc4\x2c"
  30263. "\x02\xd9\xc5\xd3\x11\x33\x37\xe5"
  30264. "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d"
  30265. "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96"
  30266. "\x91\xc3\x94\x24\xa5\x12\xa2\x37"
  30267. "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe"
  30268. "\x79\x92\x3e\xe6\x1b\x49\x57\x5d"
  30269. "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1"
  30270. "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9"
  30271. "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95",
  30272. .ilen = 512,
  30273. .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  30274. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  30275. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  30276. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  30277. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  30278. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  30279. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  30280. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  30281. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  30282. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  30283. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  30284. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  30285. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  30286. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  30287. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  30288. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  30289. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  30290. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  30291. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  30292. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  30293. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  30294. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  30295. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  30296. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  30297. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  30298. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  30299. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  30300. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  30301. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  30302. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  30303. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  30304. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  30305. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  30306. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  30307. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  30308. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  30309. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  30310. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  30311. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  30312. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  30313. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  30314. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  30315. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  30316. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  30317. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  30318. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  30319. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  30320. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  30321. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  30322. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  30323. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  30324. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  30325. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  30326. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  30327. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  30328. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  30329. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  30330. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  30331. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  30332. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  30333. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  30334. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  30335. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  30336. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  30337. .rlen = 512,
  30338. .also_non_np = 1,
  30339. .np = 3,
  30340. .tap = { 512 - 20, 4, 16 },
  30341. },
  30342. };
  30343. static struct cipher_testvec camellia_xts_enc_tv_template[] = {
  30344. /* Generated from AES-XTS test vectors */
  30345. {
  30346. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  30347. "\x00\x00\x00\x00\x00\x00\x00\x00"
  30348. "\x00\x00\x00\x00\x00\x00\x00\x00"
  30349. "\x00\x00\x00\x00\x00\x00\x00\x00",
  30350. .klen = 32,
  30351. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  30352. "\x00\x00\x00\x00\x00\x00\x00\x00",
  30353. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  30354. "\x00\x00\x00\x00\x00\x00\x00\x00"
  30355. "\x00\x00\x00\x00\x00\x00\x00\x00"
  30356. "\x00\x00\x00\x00\x00\x00\x00\x00",
  30357. .ilen = 32,
  30358. .result = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41"
  30359. "\xdc\xca\xfa\x09\xba\x74\xb9\x05"
  30360. "\x78\xba\xa4\xf8\x67\x4d\x7e\xad"
  30361. "\x20\x18\xf5\x0c\x41\x16\x2a\x61",
  30362. .rlen = 32,
  30363. }, {
  30364. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  30365. "\x11\x11\x11\x11\x11\x11\x11\x11"
  30366. "\x22\x22\x22\x22\x22\x22\x22\x22"
  30367. "\x22\x22\x22\x22\x22\x22\x22\x22",
  30368. .klen = 32,
  30369. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  30370. "\x00\x00\x00\x00\x00\x00\x00\x00",
  30371. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  30372. "\x44\x44\x44\x44\x44\x44\x44\x44"
  30373. "\x44\x44\x44\x44\x44\x44\x44\x44"
  30374. "\x44\x44\x44\x44\x44\x44\x44\x44",
  30375. .ilen = 32,
  30376. .result = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86"
  30377. "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f"
  30378. "\xb5\x37\x06\xff\xbd\xd4\x91\x70"
  30379. "\x80\x1f\xb2\x39\x10\x89\x44\xf5",
  30380. .rlen = 32,
  30381. }, {
  30382. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  30383. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  30384. "\x22\x22\x22\x22\x22\x22\x22\x22"
  30385. "\x22\x22\x22\x22\x22\x22\x22\x22",
  30386. .klen = 32,
  30387. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  30388. "\x00\x00\x00\x00\x00\x00\x00\x00",
  30389. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  30390. "\x44\x44\x44\x44\x44\x44\x44\x44"
  30391. "\x44\x44\x44\x44\x44\x44\x44\x44"
  30392. "\x44\x44\x44\x44\x44\x44\x44\x44",
  30393. .ilen = 32,
  30394. .result = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e"
  30395. "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7"
  30396. "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a"
  30397. "\x35\x3c\x6b\xb5\x61\x1c\x79\x38",
  30398. .rlen = 32,
  30399. }, {
  30400. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  30401. "\x23\x53\x60\x28\x74\x71\x35\x26"
  30402. "\x31\x41\x59\x26\x53\x58\x97\x93"
  30403. "\x23\x84\x62\x64\x33\x83\x27\x95",
  30404. .klen = 32,
  30405. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  30406. "\x00\x00\x00\x00\x00\x00\x00\x00",
  30407. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  30408. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  30409. "\x10\x11\x12\x13\x14\x15\x16\x17"
  30410. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  30411. "\x20\x21\x22\x23\x24\x25\x26\x27"
  30412. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  30413. "\x30\x31\x32\x33\x34\x35\x36\x37"
  30414. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  30415. "\x40\x41\x42\x43\x44\x45\x46\x47"
  30416. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  30417. "\x50\x51\x52\x53\x54\x55\x56\x57"
  30418. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  30419. "\x60\x61\x62\x63\x64\x65\x66\x67"
  30420. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  30421. "\x70\x71\x72\x73\x74\x75\x76\x77"
  30422. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  30423. "\x80\x81\x82\x83\x84\x85\x86\x87"
  30424. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  30425. "\x90\x91\x92\x93\x94\x95\x96\x97"
  30426. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  30427. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  30428. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  30429. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  30430. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  30431. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  30432. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  30433. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  30434. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  30435. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  30436. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  30437. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  30438. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  30439. "\x00\x01\x02\x03\x04\x05\x06\x07"
  30440. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  30441. "\x10\x11\x12\x13\x14\x15\x16\x17"
  30442. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  30443. "\x20\x21\x22\x23\x24\x25\x26\x27"
  30444. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  30445. "\x30\x31\x32\x33\x34\x35\x36\x37"
  30446. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  30447. "\x40\x41\x42\x43\x44\x45\x46\x47"
  30448. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  30449. "\x50\x51\x52\x53\x54\x55\x56\x57"
  30450. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  30451. "\x60\x61\x62\x63\x64\x65\x66\x67"
  30452. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  30453. "\x70\x71\x72\x73\x74\x75\x76\x77"
  30454. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  30455. "\x80\x81\x82\x83\x84\x85\x86\x87"
  30456. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  30457. "\x90\x91\x92\x93\x94\x95\x96\x97"
  30458. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  30459. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  30460. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  30461. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  30462. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  30463. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  30464. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  30465. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  30466. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  30467. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  30468. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  30469. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  30470. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  30471. .ilen = 512,
  30472. .result = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33"
  30473. "\x60\xc3\xe9\x47\x90\xb7\x50\x57"
  30474. "\xa3\xad\x81\x2f\xf5\x22\x96\x02"
  30475. "\xaa\x7f\xea\xac\x29\x78\xca\x2a"
  30476. "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73"
  30477. "\x09\x66\xad\x72\x0e\x4d\x5d\x77"
  30478. "\xbc\xb8\x76\x80\x37\x59\xa9\x01"
  30479. "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d"
  30480. "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01"
  30481. "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8"
  30482. "\x08\xda\x76\x00\x65\xcf\x7b\x31"
  30483. "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e"
  30484. "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5"
  30485. "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04"
  30486. "\xfb\x54\xdd\x29\x27\xc2\x65\x17"
  30487. "\x36\x88\xb0\x85\x8d\x73\x7e\x4b"
  30488. "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4"
  30489. "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f"
  30490. "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3"
  30491. "\x6c\xee\xac\xdc\x45\x58\xca\x5b"
  30492. "\x70\x0e\x6a\x12\x86\x82\x79\x9f"
  30493. "\x16\xd4\x9d\x67\xcd\x70\x65\x26"
  30494. "\x21\x72\x1e\xa1\x94\x8a\x83\x0c"
  30495. "\x92\x42\x58\x5e\xa2\xc5\x31\xf3"
  30496. "\x7b\xd1\x31\xd4\x15\x80\x31\x61"
  30497. "\x5c\x53\x10\xdd\xea\xc8\x83\x5c"
  30498. "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05"
  30499. "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5"
  30500. "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9"
  30501. "\x16\x31\xb2\x47\x91\x67\xaa\x28"
  30502. "\x2c\x29\x85\xa3\xf7\xf2\x24\x93"
  30503. "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc"
  30504. "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec"
  30505. "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e"
  30506. "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66"
  30507. "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7"
  30508. "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d"
  30509. "\xf8\x89\xcd\x20\x27\x84\x5d\x5c"
  30510. "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3"
  30511. "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7"
  30512. "\x3f\x43\xcc\x86\x71\x34\x6a\xd9"
  30513. "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe"
  30514. "\x18\x41\xdc\x9e\x2e\x75\x20\x3e"
  30515. "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c"
  30516. "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71"
  30517. "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e"
  30518. "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9"
  30519. "\x34\xb8\x27\x74\x08\xda\xf2\x4a"
  30520. "\x23\x5b\x9f\x55\x3a\x57\x82\x52"
  30521. "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc"
  30522. "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49"
  30523. "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2"
  30524. "\x96\x0b\x35\x84\x05\x0d\xd6\x2a"
  30525. "\xea\x5a\xbf\x69\xde\xee\x4f\x8f"
  30526. "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8"
  30527. "\x96\xef\x0f\x0e\xec\xc7\xa6\x74"
  30528. "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15"
  30529. "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1"
  30530. "\x5b\xb6\x71\xda\xb0\x0c\xba\x26"
  30531. "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d"
  30532. "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33"
  30533. "\xcc\x06\xdb\xe7\x82\x29\x63\xd1"
  30534. "\x52\x84\x4f\xee\x27\xe8\x02\xd4"
  30535. "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a",
  30536. .rlen = 512,
  30537. }, {
  30538. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  30539. "\x23\x53\x60\x28\x74\x71\x35\x26"
  30540. "\x62\x49\x77\x57\x24\x70\x93\x69"
  30541. "\x99\x59\x57\x49\x66\x96\x76\x27"
  30542. "\x31\x41\x59\x26\x53\x58\x97\x93"
  30543. "\x23\x84\x62\x64\x33\x83\x27\x95"
  30544. "\x02\x88\x41\x97\x16\x93\x99\x37"
  30545. "\x51\x05\x82\x09\x74\x94\x45\x92",
  30546. .klen = 64,
  30547. .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
  30548. "\x00\x00\x00\x00\x00\x00\x00\x00",
  30549. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  30550. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  30551. "\x10\x11\x12\x13\x14\x15\x16\x17"
  30552. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  30553. "\x20\x21\x22\x23\x24\x25\x26\x27"
  30554. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  30555. "\x30\x31\x32\x33\x34\x35\x36\x37"
  30556. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  30557. "\x40\x41\x42\x43\x44\x45\x46\x47"
  30558. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  30559. "\x50\x51\x52\x53\x54\x55\x56\x57"
  30560. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  30561. "\x60\x61\x62\x63\x64\x65\x66\x67"
  30562. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  30563. "\x70\x71\x72\x73\x74\x75\x76\x77"
  30564. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  30565. "\x80\x81\x82\x83\x84\x85\x86\x87"
  30566. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  30567. "\x90\x91\x92\x93\x94\x95\x96\x97"
  30568. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  30569. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  30570. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  30571. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  30572. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  30573. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  30574. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  30575. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  30576. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  30577. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  30578. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  30579. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  30580. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  30581. "\x00\x01\x02\x03\x04\x05\x06\x07"
  30582. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  30583. "\x10\x11\x12\x13\x14\x15\x16\x17"
  30584. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  30585. "\x20\x21\x22\x23\x24\x25\x26\x27"
  30586. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  30587. "\x30\x31\x32\x33\x34\x35\x36\x37"
  30588. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  30589. "\x40\x41\x42\x43\x44\x45\x46\x47"
  30590. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  30591. "\x50\x51\x52\x53\x54\x55\x56\x57"
  30592. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  30593. "\x60\x61\x62\x63\x64\x65\x66\x67"
  30594. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  30595. "\x70\x71\x72\x73\x74\x75\x76\x77"
  30596. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  30597. "\x80\x81\x82\x83\x84\x85\x86\x87"
  30598. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  30599. "\x90\x91\x92\x93\x94\x95\x96\x97"
  30600. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  30601. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  30602. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  30603. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  30604. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  30605. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  30606. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  30607. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  30608. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  30609. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  30610. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  30611. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  30612. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  30613. .ilen = 512,
  30614. .result = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28"
  30615. "\x9a\x7f\x6e\x57\x55\xb8\x07\x88"
  30616. "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b"
  30617. "\xf1\x74\xac\x96\x05\x7b\x32\xca"
  30618. "\xd1\x4e\xf1\x58\x29\x16\x24\x6c"
  30619. "\xf2\xb3\xe4\x88\x84\xac\x4d\xee"
  30620. "\x97\x07\x82\xf0\x07\x12\x38\x0a"
  30621. "\x67\x62\xaf\xfd\x85\x9f\x0a\x55"
  30622. "\xa5\x20\xc5\x60\xe4\x68\x53\xa4"
  30623. "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c"
  30624. "\x1c\x01\x4f\x55\xa9\x13\xeb\x25"
  30625. "\x21\x87\xbc\xd3\xe7\x67\x4f\x38"
  30626. "\xa8\x14\x25\x71\xe9\x2e\x4c\x21"
  30627. "\x41\x82\x0c\x45\x39\x35\xa8\x75"
  30628. "\x03\x29\x01\x84\x8c\xab\x48\xbe"
  30629. "\x11\x56\x22\x67\xb7\x67\x1a\x09"
  30630. "\xa1\x72\x25\x41\x3c\x39\x65\x80"
  30631. "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d"
  30632. "\xdd\x16\x8b\x63\x70\x4e\xc5\x17"
  30633. "\x21\xe0\x84\x51\x4b\x6f\x05\x52"
  30634. "\xe3\x63\x34\xfa\xa4\xaf\x33\x20"
  30635. "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76"
  30636. "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b"
  30637. "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0"
  30638. "\xb8\x8a\x13\x88\x71\xf4\x11\xa5"
  30639. "\xe9\xa9\x10\x33\xe0\xbe\x49\x89"
  30640. "\x41\x22\xf5\x9d\x80\x3e\x3b\x76"
  30641. "\x01\x16\x50\x6e\x7c\x6a\x81\xe9"
  30642. "\x13\x2c\xde\xb2\x5f\x79\xba\xb2"
  30643. "\xb1\x75\xae\xd2\x07\x98\x4b\x69"
  30644. "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98"
  30645. "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a"
  30646. "\x0d\x23\xb1\x79\x25\x13\x4b\xe5"
  30647. "\xaf\x93\x20\x5c\x7f\x06\x7a\x34"
  30648. "\x0b\x78\xe3\x67\x26\xe0\xad\x95"
  30649. "\xc5\x4e\x26\x22\xcf\x73\x77\x62"
  30650. "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9"
  30651. "\xef\x38\x52\x18\x0e\x29\x7e\xef"
  30652. "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2"
  30653. "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d"
  30654. "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe"
  30655. "\x96\xcd\x41\x10\x78\x4e\x0c\xc9"
  30656. "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab"
  30657. "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa"
  30658. "\x9d\x70\xbe\x4c\xa8\x98\x89\x01"
  30659. "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa"
  30660. "\x89\xf5\x14\x79\x18\x8f\x3b\x0d"
  30661. "\x21\x17\xf8\x59\x15\x24\x64\x22"
  30662. "\x57\x48\x80\xd5\x3d\x92\x30\x07"
  30663. "\xd9\xa1\x4a\x23\x16\x43\x48\x0e"
  30664. "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa"
  30665. "\x49\xbc\x7e\x68\x6e\xa8\x46\x95"
  30666. "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d"
  30667. "\x6b\x84\xf3\x00\xba\x52\x05\x02"
  30668. "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3"
  30669. "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d"
  30670. "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0"
  30671. "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66"
  30672. "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89"
  30673. "\xf5\x21\x0f\x02\x48\x83\x74\xbf"
  30674. "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b"
  30675. "\xb1\x02\x0a\x5c\x79\x19\x3b\x75"
  30676. "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e"
  30677. "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95",
  30678. .rlen = 512,
  30679. .also_non_np = 1,
  30680. .np = 3,
  30681. .tap = { 512 - 20, 4, 16 },
  30682. },
  30683. };
  30684. static struct cipher_testvec camellia_xts_dec_tv_template[] = {
  30685. /* Generated from AES-XTS test vectors */
  30686. /* same as enc vectors with input and result reversed */
  30687. {
  30688. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  30689. "\x00\x00\x00\x00\x00\x00\x00\x00"
  30690. "\x00\x00\x00\x00\x00\x00\x00\x00"
  30691. "\x00\x00\x00\x00\x00\x00\x00\x00",
  30692. .klen = 32,
  30693. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  30694. "\x00\x00\x00\x00\x00\x00\x00\x00",
  30695. .input = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41"
  30696. "\xdc\xca\xfa\x09\xba\x74\xb9\x05"
  30697. "\x78\xba\xa4\xf8\x67\x4d\x7e\xad"
  30698. "\x20\x18\xf5\x0c\x41\x16\x2a\x61",
  30699. .ilen = 32,
  30700. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  30701. "\x00\x00\x00\x00\x00\x00\x00\x00"
  30702. "\x00\x00\x00\x00\x00\x00\x00\x00"
  30703. "\x00\x00\x00\x00\x00\x00\x00\x00",
  30704. .rlen = 32,
  30705. }, {
  30706. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  30707. "\x11\x11\x11\x11\x11\x11\x11\x11"
  30708. "\x22\x22\x22\x22\x22\x22\x22\x22"
  30709. "\x22\x22\x22\x22\x22\x22\x22\x22",
  30710. .klen = 32,
  30711. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  30712. "\x00\x00\x00\x00\x00\x00\x00\x00",
  30713. .input = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86"
  30714. "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f"
  30715. "\xb5\x37\x06\xff\xbd\xd4\x91\x70"
  30716. "\x80\x1f\xb2\x39\x10\x89\x44\xf5",
  30717. .ilen = 32,
  30718. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  30719. "\x44\x44\x44\x44\x44\x44\x44\x44"
  30720. "\x44\x44\x44\x44\x44\x44\x44\x44"
  30721. "\x44\x44\x44\x44\x44\x44\x44\x44",
  30722. .rlen = 32,
  30723. }, {
  30724. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  30725. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  30726. "\x22\x22\x22\x22\x22\x22\x22\x22"
  30727. "\x22\x22\x22\x22\x22\x22\x22\x22",
  30728. .klen = 32,
  30729. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  30730. "\x00\x00\x00\x00\x00\x00\x00\x00",
  30731. .input = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e"
  30732. "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7"
  30733. "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a"
  30734. "\x35\x3c\x6b\xb5\x61\x1c\x79\x38",
  30735. .ilen = 32,
  30736. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  30737. "\x44\x44\x44\x44\x44\x44\x44\x44"
  30738. "\x44\x44\x44\x44\x44\x44\x44\x44"
  30739. "\x44\x44\x44\x44\x44\x44\x44\x44",
  30740. .rlen = 32,
  30741. }, {
  30742. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  30743. "\x23\x53\x60\x28\x74\x71\x35\x26"
  30744. "\x31\x41\x59\x26\x53\x58\x97\x93"
  30745. "\x23\x84\x62\x64\x33\x83\x27\x95",
  30746. .klen = 32,
  30747. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  30748. "\x00\x00\x00\x00\x00\x00\x00\x00",
  30749. .input = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33"
  30750. "\x60\xc3\xe9\x47\x90\xb7\x50\x57"
  30751. "\xa3\xad\x81\x2f\xf5\x22\x96\x02"
  30752. "\xaa\x7f\xea\xac\x29\x78\xca\x2a"
  30753. "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73"
  30754. "\x09\x66\xad\x72\x0e\x4d\x5d\x77"
  30755. "\xbc\xb8\x76\x80\x37\x59\xa9\x01"
  30756. "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d"
  30757. "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01"
  30758. "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8"
  30759. "\x08\xda\x76\x00\x65\xcf\x7b\x31"
  30760. "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e"
  30761. "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5"
  30762. "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04"
  30763. "\xfb\x54\xdd\x29\x27\xc2\x65\x17"
  30764. "\x36\x88\xb0\x85\x8d\x73\x7e\x4b"
  30765. "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4"
  30766. "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f"
  30767. "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3"
  30768. "\x6c\xee\xac\xdc\x45\x58\xca\x5b"
  30769. "\x70\x0e\x6a\x12\x86\x82\x79\x9f"
  30770. "\x16\xd4\x9d\x67\xcd\x70\x65\x26"
  30771. "\x21\x72\x1e\xa1\x94\x8a\x83\x0c"
  30772. "\x92\x42\x58\x5e\xa2\xc5\x31\xf3"
  30773. "\x7b\xd1\x31\xd4\x15\x80\x31\x61"
  30774. "\x5c\x53\x10\xdd\xea\xc8\x83\x5c"
  30775. "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05"
  30776. "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5"
  30777. "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9"
  30778. "\x16\x31\xb2\x47\x91\x67\xaa\x28"
  30779. "\x2c\x29\x85\xa3\xf7\xf2\x24\x93"
  30780. "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc"
  30781. "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec"
  30782. "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e"
  30783. "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66"
  30784. "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7"
  30785. "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d"
  30786. "\xf8\x89\xcd\x20\x27\x84\x5d\x5c"
  30787. "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3"
  30788. "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7"
  30789. "\x3f\x43\xcc\x86\x71\x34\x6a\xd9"
  30790. "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe"
  30791. "\x18\x41\xdc\x9e\x2e\x75\x20\x3e"
  30792. "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c"
  30793. "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71"
  30794. "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e"
  30795. "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9"
  30796. "\x34\xb8\x27\x74\x08\xda\xf2\x4a"
  30797. "\x23\x5b\x9f\x55\x3a\x57\x82\x52"
  30798. "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc"
  30799. "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49"
  30800. "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2"
  30801. "\x96\x0b\x35\x84\x05\x0d\xd6\x2a"
  30802. "\xea\x5a\xbf\x69\xde\xee\x4f\x8f"
  30803. "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8"
  30804. "\x96\xef\x0f\x0e\xec\xc7\xa6\x74"
  30805. "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15"
  30806. "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1"
  30807. "\x5b\xb6\x71\xda\xb0\x0c\xba\x26"
  30808. "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d"
  30809. "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33"
  30810. "\xcc\x06\xdb\xe7\x82\x29\x63\xd1"
  30811. "\x52\x84\x4f\xee\x27\xe8\x02\xd4"
  30812. "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a",
  30813. .ilen = 512,
  30814. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  30815. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  30816. "\x10\x11\x12\x13\x14\x15\x16\x17"
  30817. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  30818. "\x20\x21\x22\x23\x24\x25\x26\x27"
  30819. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  30820. "\x30\x31\x32\x33\x34\x35\x36\x37"
  30821. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  30822. "\x40\x41\x42\x43\x44\x45\x46\x47"
  30823. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  30824. "\x50\x51\x52\x53\x54\x55\x56\x57"
  30825. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  30826. "\x60\x61\x62\x63\x64\x65\x66\x67"
  30827. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  30828. "\x70\x71\x72\x73\x74\x75\x76\x77"
  30829. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  30830. "\x80\x81\x82\x83\x84\x85\x86\x87"
  30831. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  30832. "\x90\x91\x92\x93\x94\x95\x96\x97"
  30833. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  30834. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  30835. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  30836. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  30837. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  30838. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  30839. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  30840. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  30841. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  30842. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  30843. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  30844. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  30845. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  30846. "\x00\x01\x02\x03\x04\x05\x06\x07"
  30847. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  30848. "\x10\x11\x12\x13\x14\x15\x16\x17"
  30849. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  30850. "\x20\x21\x22\x23\x24\x25\x26\x27"
  30851. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  30852. "\x30\x31\x32\x33\x34\x35\x36\x37"
  30853. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  30854. "\x40\x41\x42\x43\x44\x45\x46\x47"
  30855. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  30856. "\x50\x51\x52\x53\x54\x55\x56\x57"
  30857. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  30858. "\x60\x61\x62\x63\x64\x65\x66\x67"
  30859. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  30860. "\x70\x71\x72\x73\x74\x75\x76\x77"
  30861. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  30862. "\x80\x81\x82\x83\x84\x85\x86\x87"
  30863. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  30864. "\x90\x91\x92\x93\x94\x95\x96\x97"
  30865. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  30866. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  30867. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  30868. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  30869. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  30870. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  30871. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  30872. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  30873. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  30874. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  30875. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  30876. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  30877. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  30878. .rlen = 512,
  30879. }, {
  30880. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  30881. "\x23\x53\x60\x28\x74\x71\x35\x26"
  30882. "\x62\x49\x77\x57\x24\x70\x93\x69"
  30883. "\x99\x59\x57\x49\x66\x96\x76\x27"
  30884. "\x31\x41\x59\x26\x53\x58\x97\x93"
  30885. "\x23\x84\x62\x64\x33\x83\x27\x95"
  30886. "\x02\x88\x41\x97\x16\x93\x99\x37"
  30887. "\x51\x05\x82\x09\x74\x94\x45\x92",
  30888. .klen = 64,
  30889. .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
  30890. "\x00\x00\x00\x00\x00\x00\x00\x00",
  30891. .input = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28"
  30892. "\x9a\x7f\x6e\x57\x55\xb8\x07\x88"
  30893. "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b"
  30894. "\xf1\x74\xac\x96\x05\x7b\x32\xca"
  30895. "\xd1\x4e\xf1\x58\x29\x16\x24\x6c"
  30896. "\xf2\xb3\xe4\x88\x84\xac\x4d\xee"
  30897. "\x97\x07\x82\xf0\x07\x12\x38\x0a"
  30898. "\x67\x62\xaf\xfd\x85\x9f\x0a\x55"
  30899. "\xa5\x20\xc5\x60\xe4\x68\x53\xa4"
  30900. "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c"
  30901. "\x1c\x01\x4f\x55\xa9\x13\xeb\x25"
  30902. "\x21\x87\xbc\xd3\xe7\x67\x4f\x38"
  30903. "\xa8\x14\x25\x71\xe9\x2e\x4c\x21"
  30904. "\x41\x82\x0c\x45\x39\x35\xa8\x75"
  30905. "\x03\x29\x01\x84\x8c\xab\x48\xbe"
  30906. "\x11\x56\x22\x67\xb7\x67\x1a\x09"
  30907. "\xa1\x72\x25\x41\x3c\x39\x65\x80"
  30908. "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d"
  30909. "\xdd\x16\x8b\x63\x70\x4e\xc5\x17"
  30910. "\x21\xe0\x84\x51\x4b\x6f\x05\x52"
  30911. "\xe3\x63\x34\xfa\xa4\xaf\x33\x20"
  30912. "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76"
  30913. "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b"
  30914. "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0"
  30915. "\xb8\x8a\x13\x88\x71\xf4\x11\xa5"
  30916. "\xe9\xa9\x10\x33\xe0\xbe\x49\x89"
  30917. "\x41\x22\xf5\x9d\x80\x3e\x3b\x76"
  30918. "\x01\x16\x50\x6e\x7c\x6a\x81\xe9"
  30919. "\x13\x2c\xde\xb2\x5f\x79\xba\xb2"
  30920. "\xb1\x75\xae\xd2\x07\x98\x4b\x69"
  30921. "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98"
  30922. "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a"
  30923. "\x0d\x23\xb1\x79\x25\x13\x4b\xe5"
  30924. "\xaf\x93\x20\x5c\x7f\x06\x7a\x34"
  30925. "\x0b\x78\xe3\x67\x26\xe0\xad\x95"
  30926. "\xc5\x4e\x26\x22\xcf\x73\x77\x62"
  30927. "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9"
  30928. "\xef\x38\x52\x18\x0e\x29\x7e\xef"
  30929. "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2"
  30930. "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d"
  30931. "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe"
  30932. "\x96\xcd\x41\x10\x78\x4e\x0c\xc9"
  30933. "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab"
  30934. "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa"
  30935. "\x9d\x70\xbe\x4c\xa8\x98\x89\x01"
  30936. "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa"
  30937. "\x89\xf5\x14\x79\x18\x8f\x3b\x0d"
  30938. "\x21\x17\xf8\x59\x15\x24\x64\x22"
  30939. "\x57\x48\x80\xd5\x3d\x92\x30\x07"
  30940. "\xd9\xa1\x4a\x23\x16\x43\x48\x0e"
  30941. "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa"
  30942. "\x49\xbc\x7e\x68\x6e\xa8\x46\x95"
  30943. "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d"
  30944. "\x6b\x84\xf3\x00\xba\x52\x05\x02"
  30945. "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3"
  30946. "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d"
  30947. "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0"
  30948. "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66"
  30949. "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89"
  30950. "\xf5\x21\x0f\x02\x48\x83\x74\xbf"
  30951. "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b"
  30952. "\xb1\x02\x0a\x5c\x79\x19\x3b\x75"
  30953. "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e"
  30954. "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95",
  30955. .ilen = 512,
  30956. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  30957. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  30958. "\x10\x11\x12\x13\x14\x15\x16\x17"
  30959. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  30960. "\x20\x21\x22\x23\x24\x25\x26\x27"
  30961. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  30962. "\x30\x31\x32\x33\x34\x35\x36\x37"
  30963. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  30964. "\x40\x41\x42\x43\x44\x45\x46\x47"
  30965. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  30966. "\x50\x51\x52\x53\x54\x55\x56\x57"
  30967. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  30968. "\x60\x61\x62\x63\x64\x65\x66\x67"
  30969. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  30970. "\x70\x71\x72\x73\x74\x75\x76\x77"
  30971. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  30972. "\x80\x81\x82\x83\x84\x85\x86\x87"
  30973. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  30974. "\x90\x91\x92\x93\x94\x95\x96\x97"
  30975. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  30976. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  30977. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  30978. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  30979. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  30980. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  30981. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  30982. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  30983. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  30984. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  30985. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  30986. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  30987. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  30988. "\x00\x01\x02\x03\x04\x05\x06\x07"
  30989. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  30990. "\x10\x11\x12\x13\x14\x15\x16\x17"
  30991. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  30992. "\x20\x21\x22\x23\x24\x25\x26\x27"
  30993. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  30994. "\x30\x31\x32\x33\x34\x35\x36\x37"
  30995. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  30996. "\x40\x41\x42\x43\x44\x45\x46\x47"
  30997. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  30998. "\x50\x51\x52\x53\x54\x55\x56\x57"
  30999. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  31000. "\x60\x61\x62\x63\x64\x65\x66\x67"
  31001. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  31002. "\x70\x71\x72\x73\x74\x75\x76\x77"
  31003. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  31004. "\x80\x81\x82\x83\x84\x85\x86\x87"
  31005. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  31006. "\x90\x91\x92\x93\x94\x95\x96\x97"
  31007. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  31008. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  31009. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  31010. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  31011. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  31012. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  31013. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  31014. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  31015. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  31016. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  31017. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  31018. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  31019. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  31020. .rlen = 512,
  31021. .also_non_np = 1,
  31022. .np = 3,
  31023. .tap = { 512 - 20, 4, 16 },
  31024. },
  31025. };
  31026. /*
  31027. * SEED test vectors
  31028. */
  31029. #define SEED_ENC_TEST_VECTORS 4
  31030. #define SEED_DEC_TEST_VECTORS 4
  31031. static struct cipher_testvec seed_enc_tv_template[] = {
  31032. {
  31033. .key = zeroed_string,
  31034. .klen = 16,
  31035. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  31036. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  31037. .ilen = 16,
  31038. .result = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
  31039. "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
  31040. .rlen = 16,
  31041. }, {
  31042. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  31043. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  31044. .klen = 16,
  31045. .input = zeroed_string,
  31046. .ilen = 16,
  31047. .result = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
  31048. "\x84\x48\x35\x97\xe4\x37\x0f\x43",
  31049. .rlen = 16,
  31050. }, {
  31051. .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
  31052. "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
  31053. .klen = 16,
  31054. .input = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
  31055. "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
  31056. .ilen = 16,
  31057. .result = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
  31058. "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
  31059. .rlen = 16,
  31060. }, {
  31061. .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
  31062. "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
  31063. .klen = 16,
  31064. .input = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
  31065. "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
  31066. .ilen = 16,
  31067. .result = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
  31068. "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
  31069. .rlen = 16,
  31070. }
  31071. };
  31072. static struct cipher_testvec seed_dec_tv_template[] = {
  31073. {
  31074. .key = zeroed_string,
  31075. .klen = 16,
  31076. .input = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
  31077. "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
  31078. .ilen = 16,
  31079. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  31080. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  31081. .rlen = 16,
  31082. }, {
  31083. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  31084. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  31085. .klen = 16,
  31086. .input = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
  31087. "\x84\x48\x35\x97\xe4\x37\x0f\x43",
  31088. .ilen = 16,
  31089. .result = zeroed_string,
  31090. .rlen = 16,
  31091. }, {
  31092. .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
  31093. "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
  31094. .klen = 16,
  31095. .input = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
  31096. "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
  31097. .ilen = 16,
  31098. .result = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
  31099. "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
  31100. .rlen = 16,
  31101. }, {
  31102. .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
  31103. "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
  31104. .klen = 16,
  31105. .input = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
  31106. "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
  31107. .ilen = 16,
  31108. .result = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
  31109. "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
  31110. .rlen = 16,
  31111. }
  31112. };
  31113. #define SALSA20_STREAM_ENC_TEST_VECTORS 5
  31114. static struct cipher_testvec salsa20_stream_enc_tv_template[] = {
  31115. /*
  31116. * Testvectors from verified.test-vectors submitted to ECRYPT.
  31117. * They are truncated to size 39, 64, 111, 129 to test a variety
  31118. * of input length.
  31119. */
  31120. { /* Set 3, vector 0 */
  31121. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  31122. "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
  31123. .klen = 16,
  31124. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  31125. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31126. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31127. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31128. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31129. "\x00\x00\x00\x00\x00\x00\x00",
  31130. .ilen = 39,
  31131. .result = "\x2D\xD5\xC3\xF7\xBA\x2B\x20\xF7"
  31132. "\x68\x02\x41\x0C\x68\x86\x88\x89"
  31133. "\x5A\xD8\xC1\xBD\x4E\xA6\xC9\xB1"
  31134. "\x40\xFB\x9B\x90\xE2\x10\x49\xBF"
  31135. "\x58\x3F\x52\x79\x70\xEB\xC1",
  31136. .rlen = 39,
  31137. }, { /* Set 5, vector 0 */
  31138. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31139. "\x00\x00\x00\x00\x00\x00\x00\x00",
  31140. .klen = 16,
  31141. .iv = "\x80\x00\x00\x00\x00\x00\x00\x00",
  31142. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31143. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31144. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31145. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31146. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31147. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31148. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31149. "\x00\x00\x00\x00\x00\x00\x00\x00",
  31150. .ilen = 64,
  31151. .result = "\xB6\x6C\x1E\x44\x46\xDD\x95\x57"
  31152. "\xE5\x78\xE2\x23\xB0\xB7\x68\x01"
  31153. "\x7B\x23\xB2\x67\xBB\x02\x34\xAE"
  31154. "\x46\x26\xBF\x44\x3F\x21\x97\x76"
  31155. "\x43\x6F\xB1\x9F\xD0\xE8\x86\x6F"
  31156. "\xCD\x0D\xE9\xA9\x53\x8F\x4A\x09"
  31157. "\xCA\x9A\xC0\x73\x2E\x30\xBC\xF9"
  31158. "\x8E\x4F\x13\xE4\xB9\xE2\x01\xD9",
  31159. .rlen = 64,
  31160. }, { /* Set 3, vector 27 */
  31161. .key = "\x1B\x1C\x1D\x1E\x1F\x20\x21\x22"
  31162. "\x23\x24\x25\x26\x27\x28\x29\x2A"
  31163. "\x2B\x2C\x2D\x2E\x2F\x30\x31\x32"
  31164. "\x33\x34\x35\x36\x37\x38\x39\x3A",
  31165. .klen = 32,
  31166. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  31167. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31168. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31169. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31170. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31171. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31172. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31173. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31174. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31175. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31176. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31177. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31178. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31179. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31180. "\x00\x00\x00\x00\x00\x00\x00",
  31181. .ilen = 111,
  31182. .result = "\xAE\x39\x50\x8E\xAC\x9A\xEC\xE7"
  31183. "\xBF\x97\xBB\x20\xB9\xDE\xE4\x1F"
  31184. "\x87\xD9\x47\xF8\x28\x91\x35\x98"
  31185. "\xDB\x72\xCC\x23\x29\x48\x56\x5E"
  31186. "\x83\x7E\x0B\xF3\x7D\x5D\x38\x7B"
  31187. "\x2D\x71\x02\xB4\x3B\xB5\xD8\x23"
  31188. "\xB0\x4A\xDF\x3C\xEC\xB6\xD9\x3B"
  31189. "\x9B\xA7\x52\xBE\xC5\xD4\x50\x59"
  31190. "\x15\x14\xB4\x0E\x40\xE6\x53\xD1"
  31191. "\x83\x9C\x5B\xA0\x92\x29\x6B\x5E"
  31192. "\x96\x5B\x1E\x2F\xD3\xAC\xC1\x92"
  31193. "\xB1\x41\x3F\x19\x2F\xC4\x3B\xC6"
  31194. "\x95\x46\x45\x54\xE9\x75\x03\x08"
  31195. "\x44\xAF\xE5\x8A\x81\x12\x09",
  31196. .rlen = 111,
  31197. }, { /* Set 5, vector 27 */
  31198. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31199. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31200. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31201. "\x00\x00\x00\x00\x00\x00\x00\x00",
  31202. .klen = 32,
  31203. .iv = "\x00\x00\x00\x10\x00\x00\x00\x00",
  31204. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31205. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31206. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31207. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31208. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31209. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31210. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31211. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31212. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31213. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31214. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31215. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31216. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31217. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31218. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31219. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31220. "\x00",
  31221. .ilen = 129,
  31222. .result = "\xD2\xDB\x1A\x5C\xF1\xC1\xAC\xDB"
  31223. "\xE8\x1A\x7A\x43\x40\xEF\x53\x43"
  31224. "\x5E\x7F\x4B\x1A\x50\x52\x3F\x8D"
  31225. "\x28\x3D\xCF\x85\x1D\x69\x6E\x60"
  31226. "\xF2\xDE\x74\x56\x18\x1B\x84\x10"
  31227. "\xD4\x62\xBA\x60\x50\xF0\x61\xF2"
  31228. "\x1C\x78\x7F\xC1\x24\x34\xAF\x58"
  31229. "\xBF\x2C\x59\xCA\x90\x77\xF3\xB0"
  31230. "\x5B\x4A\xDF\x89\xCE\x2C\x2F\xFC"
  31231. "\x67\xF0\xE3\x45\xE8\xB3\xB3\x75"
  31232. "\xA0\x95\x71\xA1\x29\x39\x94\xCA"
  31233. "\x45\x2F\xBD\xCB\x10\xB6\xBE\x9F"
  31234. "\x8E\xF9\xB2\x01\x0A\x5A\x0A\xB7"
  31235. "\x6B\x9D\x70\x8E\x4B\xD6\x2F\xCD"
  31236. "\x2E\x40\x48\x75\xE9\xE2\x21\x45"
  31237. "\x0B\xC9\xB6\xB5\x66\xBC\x9A\x59"
  31238. "\x5A",
  31239. .rlen = 129,
  31240. }, { /* large test vector generated using Crypto++ */
  31241. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  31242. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  31243. "\x10\x11\x12\x13\x14\x15\x16\x17"
  31244. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  31245. .klen = 32,
  31246. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31247. "\x00\x00\x00\x00\x00\x00\x00\x00",
  31248. .input =
  31249. "\x00\x01\x02\x03\x04\x05\x06\x07"
  31250. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  31251. "\x10\x11\x12\x13\x14\x15\x16\x17"
  31252. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  31253. "\x20\x21\x22\x23\x24\x25\x26\x27"
  31254. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  31255. "\x30\x31\x32\x33\x34\x35\x36\x37"
  31256. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  31257. "\x40\x41\x42\x43\x44\x45\x46\x47"
  31258. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  31259. "\x50\x51\x52\x53\x54\x55\x56\x57"
  31260. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  31261. "\x60\x61\x62\x63\x64\x65\x66\x67"
  31262. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  31263. "\x70\x71\x72\x73\x74\x75\x76\x77"
  31264. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  31265. "\x80\x81\x82\x83\x84\x85\x86\x87"
  31266. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  31267. "\x90\x91\x92\x93\x94\x95\x96\x97"
  31268. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  31269. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  31270. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  31271. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  31272. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  31273. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  31274. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  31275. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  31276. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  31277. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  31278. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  31279. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  31280. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  31281. "\x00\x03\x06\x09\x0c\x0f\x12\x15"
  31282. "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
  31283. "\x30\x33\x36\x39\x3c\x3f\x42\x45"
  31284. "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
  31285. "\x60\x63\x66\x69\x6c\x6f\x72\x75"
  31286. "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
  31287. "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
  31288. "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
  31289. "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
  31290. "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
  31291. "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
  31292. "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
  31293. "\x20\x23\x26\x29\x2c\x2f\x32\x35"
  31294. "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
  31295. "\x50\x53\x56\x59\x5c\x5f\x62\x65"
  31296. "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
  31297. "\x80\x83\x86\x89\x8c\x8f\x92\x95"
  31298. "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
  31299. "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
  31300. "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
  31301. "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
  31302. "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
  31303. "\x10\x13\x16\x19\x1c\x1f\x22\x25"
  31304. "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
  31305. "\x40\x43\x46\x49\x4c\x4f\x52\x55"
  31306. "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
  31307. "\x70\x73\x76\x79\x7c\x7f\x82\x85"
  31308. "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
  31309. "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
  31310. "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
  31311. "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
  31312. "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
  31313. "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
  31314. "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
  31315. "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
  31316. "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
  31317. "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
  31318. "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
  31319. "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
  31320. "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
  31321. "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
  31322. "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
  31323. "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
  31324. "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
  31325. "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
  31326. "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
  31327. "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
  31328. "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
  31329. "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
  31330. "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
  31331. "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
  31332. "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
  31333. "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
  31334. "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
  31335. "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
  31336. "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
  31337. "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
  31338. "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
  31339. "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
  31340. "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
  31341. "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
  31342. "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
  31343. "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
  31344. "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
  31345. "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
  31346. "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
  31347. "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
  31348. "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
  31349. "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
  31350. "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
  31351. "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
  31352. "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
  31353. "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
  31354. "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
  31355. "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
  31356. "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
  31357. "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
  31358. "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
  31359. "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
  31360. "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
  31361. "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
  31362. "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
  31363. "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
  31364. "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
  31365. "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
  31366. "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
  31367. "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
  31368. "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
  31369. "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
  31370. "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
  31371. "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
  31372. "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
  31373. "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
  31374. "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
  31375. "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
  31376. "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
  31377. "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
  31378. "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
  31379. "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
  31380. "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
  31381. "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
  31382. "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
  31383. "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
  31384. "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
  31385. "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
  31386. "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
  31387. "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
  31388. "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
  31389. "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
  31390. "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
  31391. "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
  31392. "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
  31393. "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
  31394. "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
  31395. "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
  31396. "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
  31397. "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
  31398. "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
  31399. "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
  31400. "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
  31401. "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
  31402. "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
  31403. "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
  31404. "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
  31405. "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
  31406. "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
  31407. "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
  31408. "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
  31409. "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
  31410. "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
  31411. "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
  31412. "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
  31413. "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
  31414. "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
  31415. "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
  31416. "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
  31417. "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
  31418. "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
  31419. "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
  31420. "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
  31421. "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
  31422. "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
  31423. "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
  31424. "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
  31425. "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
  31426. "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
  31427. "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
  31428. "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
  31429. "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
  31430. "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
  31431. "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
  31432. "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
  31433. "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
  31434. "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
  31435. "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
  31436. "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
  31437. "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
  31438. "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
  31439. "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
  31440. "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
  31441. "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
  31442. "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
  31443. "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
  31444. "\x38\x45\x52\x5f\x6c\x79\x86\x93"
  31445. "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
  31446. "\x08\x15\x22\x2f\x3c\x49\x56\x63"
  31447. "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
  31448. "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
  31449. "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
  31450. "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
  31451. "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
  31452. "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
  31453. "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
  31454. "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
  31455. "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
  31456. "\x18\x25\x32\x3f\x4c\x59\x66\x73"
  31457. "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
  31458. "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
  31459. "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
  31460. "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
  31461. "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
  31462. "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
  31463. "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
  31464. "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
  31465. "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
  31466. "\x28\x35\x42\x4f\x5c\x69\x76\x83"
  31467. "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
  31468. "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
  31469. "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
  31470. "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
  31471. "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
  31472. "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
  31473. "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
  31474. "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
  31475. "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
  31476. "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
  31477. "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
  31478. "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
  31479. "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
  31480. "\x48\x57\x66\x75\x84\x93\xa2\xb1"
  31481. "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
  31482. "\x38\x47\x56\x65\x74\x83\x92\xa1"
  31483. "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
  31484. "\x28\x37\x46\x55\x64\x73\x82\x91"
  31485. "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
  31486. "\x18\x27\x36\x45\x54\x63\x72\x81"
  31487. "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
  31488. "\x08\x17\x26\x35\x44\x53\x62\x71"
  31489. "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
  31490. "\xf8\x07\x16\x25\x34\x43\x52\x61"
  31491. "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
  31492. "\xe8\xf7\x06\x15\x24\x33\x42\x51"
  31493. "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
  31494. "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
  31495. "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
  31496. "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
  31497. "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
  31498. "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
  31499. "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
  31500. "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
  31501. "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
  31502. "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
  31503. "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
  31504. "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
  31505. "\x00\x11\x22\x33\x44\x55\x66\x77"
  31506. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
  31507. "\x10\x21\x32\x43\x54\x65\x76\x87"
  31508. "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
  31509. "\x20\x31\x42\x53\x64\x75\x86\x97"
  31510. "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
  31511. "\x30\x41\x52\x63\x74\x85\x96\xa7"
  31512. "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
  31513. "\x40\x51\x62\x73\x84\x95\xa6\xb7"
  31514. "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
  31515. "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
  31516. "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
  31517. "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
  31518. "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
  31519. "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
  31520. "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
  31521. "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
  31522. "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
  31523. "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
  31524. "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
  31525. "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
  31526. "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
  31527. "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
  31528. "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
  31529. "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
  31530. "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
  31531. "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
  31532. "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
  31533. "\xe0\xf1\x02\x13\x24\x35\x46\x57"
  31534. "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
  31535. "\xf0\x01\x12\x23\x34\x45\x56\x67"
  31536. "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
  31537. "\x00\x13\x26\x39\x4c\x5f\x72\x85"
  31538. "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
  31539. "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
  31540. "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
  31541. "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
  31542. "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
  31543. "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
  31544. "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
  31545. "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
  31546. "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
  31547. "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
  31548. "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
  31549. "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
  31550. "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
  31551. "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
  31552. "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
  31553. "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
  31554. "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
  31555. "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
  31556. "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
  31557. "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
  31558. "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
  31559. "\x10\x23\x36\x49\x5c\x6f\x82\x95"
  31560. "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
  31561. "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
  31562. "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
  31563. "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
  31564. "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
  31565. "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
  31566. "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
  31567. "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
  31568. "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
  31569. "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
  31570. "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
  31571. "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
  31572. "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
  31573. "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
  31574. "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
  31575. "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
  31576. "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
  31577. "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
  31578. "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
  31579. "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
  31580. "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
  31581. "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
  31582. "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
  31583. "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
  31584. "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
  31585. "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
  31586. "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
  31587. "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
  31588. "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
  31589. "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
  31590. "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
  31591. "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
  31592. "\x18\x2d\x42\x57\x6c\x81\x96\xab"
  31593. "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
  31594. "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
  31595. "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
  31596. "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
  31597. "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
  31598. "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
  31599. "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
  31600. "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
  31601. "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
  31602. "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
  31603. "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
  31604. "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
  31605. "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
  31606. "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
  31607. "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
  31608. "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
  31609. "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
  31610. "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
  31611. "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
  31612. "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
  31613. "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
  31614. "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
  31615. "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
  31616. "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
  31617. "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
  31618. "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
  31619. "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
  31620. "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
  31621. "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
  31622. "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
  31623. "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
  31624. "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
  31625. "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
  31626. "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
  31627. "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
  31628. "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
  31629. "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
  31630. "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
  31631. "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
  31632. "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
  31633. "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
  31634. "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
  31635. "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
  31636. "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
  31637. "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
  31638. "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
  31639. "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
  31640. "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
  31641. "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
  31642. "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
  31643. "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
  31644. "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
  31645. "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
  31646. "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
  31647. "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
  31648. "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
  31649. "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
  31650. "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
  31651. "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
  31652. "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
  31653. "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
  31654. "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
  31655. "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
  31656. "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
  31657. "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
  31658. "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
  31659. "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
  31660. "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
  31661. "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
  31662. "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
  31663. "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
  31664. "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
  31665. "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
  31666. "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
  31667. "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
  31668. "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
  31669. "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
  31670. "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
  31671. "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
  31672. "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
  31673. "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
  31674. "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
  31675. "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
  31676. "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
  31677. "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
  31678. "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
  31679. "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
  31680. "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
  31681. "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
  31682. "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
  31683. "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
  31684. "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
  31685. "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
  31686. "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
  31687. "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
  31688. "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
  31689. "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
  31690. "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
  31691. "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
  31692. "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
  31693. "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
  31694. "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
  31695. "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
  31696. "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
  31697. "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
  31698. "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
  31699. "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
  31700. "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
  31701. "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
  31702. "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
  31703. "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
  31704. "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
  31705. "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
  31706. "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
  31707. "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
  31708. "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
  31709. "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
  31710. "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
  31711. "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
  31712. "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
  31713. "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
  31714. "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
  31715. "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
  31716. "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
  31717. "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
  31718. "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
  31719. "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
  31720. "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
  31721. "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
  31722. "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
  31723. "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
  31724. "\x78\x95\xb2\xcf\xec\x09\x26\x43"
  31725. "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
  31726. "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
  31727. "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
  31728. "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
  31729. "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
  31730. "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
  31731. "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
  31732. "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
  31733. "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
  31734. "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
  31735. "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
  31736. "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
  31737. "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
  31738. "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
  31739. "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
  31740. "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
  31741. "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
  31742. "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
  31743. "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
  31744. "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
  31745. "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
  31746. "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
  31747. "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
  31748. "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
  31749. "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
  31750. "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
  31751. "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
  31752. "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
  31753. "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
  31754. "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
  31755. "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
  31756. "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
  31757. "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
  31758. "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
  31759. "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
  31760. "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
  31761. "\x00\x21\x42\x63",
  31762. .ilen = 4100,
  31763. .result =
  31764. "\xb5\x81\xf5\x64\x18\x73\xe3\xf0"
  31765. "\x4c\x13\xf2\x77\x18\x60\x65\x5e"
  31766. "\x29\x01\xce\x98\x55\x53\xf9\x0c"
  31767. "\x2a\x08\xd5\x09\xb3\x57\x55\x56"
  31768. "\xc5\xe9\x56\x90\xcb\x6a\xa3\xc0"
  31769. "\xff\xc4\x79\xb4\xd2\x97\x5d\xc4"
  31770. "\x43\xd1\xfe\x94\x7b\x88\x06\x5a"
  31771. "\xb2\x9e\x2c\xfc\x44\x03\xb7\x90"
  31772. "\xa0\xc1\xba\x6a\x33\xb8\xc7\xb2"
  31773. "\x9d\xe1\x12\x4f\xc0\x64\xd4\x01"
  31774. "\xfe\x8c\x7a\x66\xf7\xe6\x5a\x91"
  31775. "\xbb\xde\x56\x86\xab\x65\x21\x30"
  31776. "\x00\x84\x65\x24\xa5\x7d\x85\xb4"
  31777. "\xe3\x17\xed\x3a\xb7\x6f\xb4\x0b"
  31778. "\x0b\xaf\x15\xae\x5a\x8f\xf2\x0c"
  31779. "\x2f\x27\xf4\x09\xd8\xd2\x96\xb7"
  31780. "\x71\xf2\xc5\x99\x4d\x7e\x7f\x75"
  31781. "\x77\x89\x30\x8b\x59\xdb\xa2\xb2"
  31782. "\xa0\xf3\x19\x39\x2b\xc5\x7e\x3f"
  31783. "\x4f\xd9\xd3\x56\x28\x97\x44\xdc"
  31784. "\xc0\x8b\x77\x24\xd9\x52\xe7\xc5"
  31785. "\xaf\xf6\x7d\x59\xb2\x44\x05\x1d"
  31786. "\xb1\xb0\x11\xa5\x0f\xec\x33\xe1"
  31787. "\x6d\x1b\x4e\x1f\xff\x57\x91\xb4"
  31788. "\x5b\x9a\x96\xc5\x53\xbc\xae\x20"
  31789. "\x3c\xbb\x14\xe2\xe8\x22\x33\xc1"
  31790. "\x5e\x76\x9e\x46\x99\xf6\x2a\x15"
  31791. "\xc6\x97\x02\xa0\x66\x43\xd1\xa6"
  31792. "\x31\xa6\x9f\xfb\xf4\xd3\x69\xe5"
  31793. "\xcd\x76\x95\xb8\x7a\x82\x7f\x21"
  31794. "\x45\xff\x3f\xce\x55\xf6\x95\x10"
  31795. "\x08\x77\x10\x43\xc6\xf3\x09\xe5"
  31796. "\x68\xe7\x3c\xad\x00\x52\x45\x0d"
  31797. "\xfe\x2d\xc6\xc2\x94\x8c\x12\x1d"
  31798. "\xe6\x25\xae\x98\x12\x8e\x19\x9c"
  31799. "\x81\x68\xb1\x11\xf6\x69\xda\xe3"
  31800. "\x62\x08\x18\x7a\x25\x49\x28\xac"
  31801. "\xba\x71\x12\x0b\xe4\xa2\xe5\xc7"
  31802. "\x5d\x8e\xec\x49\x40\x21\xbf\x5a"
  31803. "\x98\xf3\x02\x68\x55\x03\x7f\x8a"
  31804. "\xe5\x94\x0c\x32\x5c\x07\x82\x63"
  31805. "\xaf\x6f\x91\x40\x84\x8e\x52\x25"
  31806. "\xd0\xb0\x29\x53\x05\xe2\x50\x7a"
  31807. "\x34\xeb\xc9\x46\x20\xa8\x3d\xde"
  31808. "\x7f\x16\x5f\x36\xc5\x2e\xdc\xd1"
  31809. "\x15\x47\xc7\x50\x40\x6d\x91\xc5"
  31810. "\xe7\x93\x95\x1a\xd3\x57\xbc\x52"
  31811. "\x33\xee\x14\x19\x22\x52\x89\xa7"
  31812. "\x4a\x25\x56\x77\x4b\xca\xcf\x0a"
  31813. "\xe1\xf5\x35\x85\x30\x7e\x59\x4a"
  31814. "\xbd\x14\x5b\xdf\xe3\x46\xcb\xac"
  31815. "\x1f\x6c\x96\x0e\xf4\x81\xd1\x99"
  31816. "\xca\x88\x63\x3d\x02\x58\x6b\xa9"
  31817. "\xe5\x9f\xb3\x00\xb2\x54\xc6\x74"
  31818. "\x1c\xbf\x46\xab\x97\xcc\xf8\x54"
  31819. "\x04\x07\x08\x52\xe6\xc0\xda\x93"
  31820. "\x74\x7d\x93\x99\x5d\x78\x68\xa6"
  31821. "\x2e\x6b\xd3\x6a\x69\xcc\x12\x6b"
  31822. "\xd4\xc7\xa5\xc6\xe7\xf6\x03\x04"
  31823. "\x5d\xcd\x61\x5e\x17\x40\xdc\xd1"
  31824. "\x5c\xf5\x08\xdf\x5c\x90\x85\xa4"
  31825. "\xaf\xf6\x78\xbb\x0d\xf1\xf4\xa4"
  31826. "\x54\x26\x72\x9e\x61\xfa\x86\xcf"
  31827. "\xe8\x9e\xa1\xe0\xc7\x48\x23\xae"
  31828. "\x5a\x90\xae\x75\x0a\x74\x18\x89"
  31829. "\x05\xb1\x92\xb2\x7f\xd0\x1b\xa6"
  31830. "\x62\x07\x25\x01\xc7\xc2\x4f\xf9"
  31831. "\xe8\xfe\x63\x95\x80\x07\xb4\x26"
  31832. "\xcc\xd1\x26\xb6\xc4\x3f\x9e\xcb"
  31833. "\x8e\x3b\x2e\x44\x16\xd3\x10\x9a"
  31834. "\x95\x08\xeb\xc8\xcb\xeb\xbf\x6f"
  31835. "\x0b\xcd\x1f\xc8\xca\x86\xaa\xec"
  31836. "\x33\xe6\x69\xf4\x45\x25\x86\x3a"
  31837. "\x22\x94\x4f\x00\x23\x6a\x44\xc2"
  31838. "\x49\x97\x33\xab\x36\x14\x0a\x70"
  31839. "\x24\xc3\xbe\x04\x3b\x79\xa0\xf9"
  31840. "\xb8\xe7\x76\x29\x22\x83\xd7\xf2"
  31841. "\x94\xf4\x41\x49\xba\x5f\x7b\x07"
  31842. "\xb5\xfb\xdb\x03\x1a\x9f\xb6\x4c"
  31843. "\xc2\x2e\x37\x40\x49\xc3\x38\x16"
  31844. "\xe2\x4f\x77\x82\xb0\x68\x4c\x71"
  31845. "\x1d\x57\x61\x9c\xd9\x4e\x54\x99"
  31846. "\x47\x13\x28\x73\x3c\xbb\x00\x90"
  31847. "\xf3\x4d\xc9\x0e\xfd\xe7\xb1\x71"
  31848. "\xd3\x15\x79\xbf\xcc\x26\x2f\xbd"
  31849. "\xad\x6c\x50\x69\x6c\x3e\x6d\x80"
  31850. "\x9a\xea\x78\xaf\x19\xb2\x0d\x4d"
  31851. "\xad\x04\x07\xae\x22\x90\x4a\x93"
  31852. "\x32\x0e\x36\x9b\x1b\x46\xba\x3b"
  31853. "\xb4\xac\xc6\xd1\xa2\x31\x53\x3b"
  31854. "\x2a\x3d\x45\xfe\x03\x61\x10\x85"
  31855. "\x17\x69\xa6\x78\xcc\x6c\x87\x49"
  31856. "\x53\xf9\x80\x10\xde\x80\xa2\x41"
  31857. "\x6a\xc3\x32\x02\xad\x6d\x3c\x56"
  31858. "\x00\x71\x51\x06\xa7\xbd\xfb\xef"
  31859. "\x3c\xb5\x9f\xfc\x48\x7d\x53\x7c"
  31860. "\x66\xb0\x49\x23\xc4\x47\x10\x0e"
  31861. "\xe5\x6c\x74\x13\xe6\xc5\x3f\xaa"
  31862. "\xde\xff\x07\x44\xdd\x56\x1b\xad"
  31863. "\x09\x77\xfb\x5b\x12\xb8\x0d\x38"
  31864. "\x17\x37\x35\x7b\x9b\xbc\xfe\xd4"
  31865. "\x7e\x8b\xda\x7e\x5b\x04\xa7\x22"
  31866. "\xa7\x31\xa1\x20\x86\xc7\x1b\x99"
  31867. "\xdb\xd1\x89\xf4\x94\xa3\x53\x69"
  31868. "\x8d\xe7\xe8\x74\x11\x8d\x74\xd6"
  31869. "\x07\x37\x91\x9f\xfd\x67\x50\x3a"
  31870. "\xc9\xe1\xf4\x36\xd5\xa0\x47\xd1"
  31871. "\xf9\xe5\x39\xa3\x31\xac\x07\x36"
  31872. "\x23\xf8\x66\x18\x14\x28\x34\x0f"
  31873. "\xb8\xd0\xe7\x29\xb3\x04\x4b\x55"
  31874. "\x01\x41\xb2\x75\x8d\xcb\x96\x85"
  31875. "\x3a\xfb\xab\x2b\x9e\xfa\x58\x20"
  31876. "\x44\x1f\xc0\x14\x22\x75\x61\xe8"
  31877. "\xaa\x19\xcf\xf1\x82\x56\xf4\xd7"
  31878. "\x78\x7b\x3d\x5f\xb3\x9e\x0b\x8a"
  31879. "\x57\x50\xdb\x17\x41\x65\x4d\xa3"
  31880. "\x02\xc9\x9c\x9c\x53\xfb\x39\x39"
  31881. "\x9b\x1d\x72\x24\xda\xb7\x39\xbe"
  31882. "\x13\x3b\xfa\x29\xda\x9e\x54\x64"
  31883. "\x6e\xba\xd8\xa1\xcb\xb3\x36\xfa"
  31884. "\xcb\x47\x85\xe9\x61\x38\xbc\xbe"
  31885. "\xc5\x00\x38\x2a\x54\xf7\xc4\xb9"
  31886. "\xb3\xd3\x7b\xa0\xa0\xf8\x72\x7f"
  31887. "\x8c\x8e\x82\x0e\xc6\x1c\x75\x9d"
  31888. "\xca\x8e\x61\x87\xde\xad\x80\xd2"
  31889. "\xf5\xf9\x80\xef\x15\x75\xaf\xf5"
  31890. "\x80\xfb\xff\x6d\x1e\x25\xb7\x40"
  31891. "\x61\x6a\x39\x5a\x6a\xb5\x31\xab"
  31892. "\x97\x8a\x19\x89\x44\x40\xc0\xa6"
  31893. "\xb4\x4e\x30\x32\x7b\x13\xe7\x67"
  31894. "\xa9\x8b\x57\x04\xc2\x01\xa6\xf4"
  31895. "\x28\x99\xad\x2c\x76\xa3\x78\xc2"
  31896. "\x4a\xe6\xca\x5c\x50\x6a\xc1\xb0"
  31897. "\x62\x4b\x10\x8e\x7c\x17\x43\xb3"
  31898. "\x17\x66\x1c\x3e\x8d\x69\xf0\x5a"
  31899. "\x71\xf5\x97\xdc\xd1\x45\xdd\x28"
  31900. "\xf3\x5d\xdf\x53\x7b\x11\xe5\xbc"
  31901. "\x4c\xdb\x1b\x51\x6b\xe9\xfb\x3d"
  31902. "\xc1\xc3\x2c\xb9\x71\xf5\xb6\xb2"
  31903. "\x13\x36\x79\x80\x53\xe8\xd3\xa6"
  31904. "\x0a\xaf\xfd\x56\x97\xf7\x40\x8e"
  31905. "\x45\xce\xf8\xb0\x9e\x5c\x33\x82"
  31906. "\xb0\x44\x56\xfc\x05\x09\xe9\x2a"
  31907. "\xac\x26\x80\x14\x1d\xc8\x3a\x35"
  31908. "\x4c\x82\x97\xfd\x76\xb7\xa9\x0a"
  31909. "\x35\x58\x79\x8e\x0f\x66\xea\xaf"
  31910. "\x51\x6c\x09\xa9\x6e\x9b\xcb\x9a"
  31911. "\x31\x47\xa0\x2f\x7c\x71\xb4\x4a"
  31912. "\x11\xaa\x8c\x66\xc5\x64\xe6\x3a"
  31913. "\x54\xda\x24\x6a\xc4\x41\x65\x46"
  31914. "\x82\xa0\x0a\x0f\x5f\xfb\x25\xd0"
  31915. "\x2c\x91\xa7\xee\xc4\x81\x07\x86"
  31916. "\x75\x5e\x33\x69\x97\xe4\x2c\xa8"
  31917. "\x9d\x9f\x0b\x6a\xbe\xad\x98\xda"
  31918. "\x6d\x94\x41\xda\x2c\x1e\x89\xc4"
  31919. "\xc2\xaf\x1e\x00\x05\x0b\x83\x60"
  31920. "\xbd\x43\xea\x15\x23\x7f\xb9\xac"
  31921. "\xee\x4f\x2c\xaf\x2a\xf3\xdf\xd0"
  31922. "\xf3\x19\x31\xbb\x4a\x74\x84\x17"
  31923. "\x52\x32\x2c\x7d\x61\xe4\xcb\xeb"
  31924. "\x80\x38\x15\x52\xcb\x6f\xea\xe5"
  31925. "\x73\x9c\xd9\x24\x69\xc6\x95\x32"
  31926. "\x21\xc8\x11\xe4\xdc\x36\xd7\x93"
  31927. "\x38\x66\xfb\xb2\x7f\x3a\xb9\xaf"
  31928. "\x31\xdd\x93\x75\x78\x8a\x2c\x94"
  31929. "\x87\x1a\x58\xec\x9e\x7d\x4d\xba"
  31930. "\xe1\xe5\x4d\xfc\xbc\xa4\x2a\x14"
  31931. "\xef\xcc\xa7\xec\xab\x43\x09\x18"
  31932. "\xd3\xab\x68\xd1\x07\x99\x44\x47"
  31933. "\xd6\x83\x85\x3b\x30\xea\xa9\x6b"
  31934. "\x63\xea\xc4\x07\xfb\x43\x2f\xa4"
  31935. "\xaa\xb0\xab\x03\x89\xce\x3f\x8c"
  31936. "\x02\x7c\x86\x54\xbc\x88\xaf\x75"
  31937. "\xd2\xdc\x63\x17\xd3\x26\xf6\x96"
  31938. "\xa9\x3c\xf1\x61\x8c\x11\x18\xcc"
  31939. "\xd6\xea\x5b\xe2\xcd\xf0\xf1\xb2"
  31940. "\xe5\x35\x90\x1f\x85\x4c\x76\x5b"
  31941. "\x66\xce\x44\xa4\x32\x9f\xe6\x7b"
  31942. "\x71\x6e\x9f\x58\x15\x67\x72\x87"
  31943. "\x64\x8e\x3a\x44\x45\xd4\x76\xfa"
  31944. "\xc2\xf6\xef\x85\x05\x18\x7a\x9b"
  31945. "\xba\x41\x54\xac\xf0\xfc\x59\x12"
  31946. "\x3f\xdf\xa0\xe5\x8a\x65\xfd\x3a"
  31947. "\x62\x8d\x83\x2c\x03\xbe\x05\x76"
  31948. "\x2e\x53\x49\x97\x94\x33\xae\x40"
  31949. "\x81\x15\xdb\x6e\xad\xaa\xf5\x4b"
  31950. "\xe3\x98\x70\xdf\xe0\x7c\xcd\xdb"
  31951. "\x02\xd4\x7d\x2f\xc1\xe6\xb4\xf3"
  31952. "\xd7\x0d\x7a\xd9\x23\x9e\x87\x2d"
  31953. "\xce\x87\xad\xcc\x72\x05\x00\x29"
  31954. "\xdc\x73\x7f\x64\xc1\x15\x0e\xc2"
  31955. "\xdf\xa7\x5f\xeb\x41\xa1\xcd\xef"
  31956. "\x5c\x50\x79\x2a\x56\x56\x71\x8c"
  31957. "\xac\xc0\x79\x50\x69\xca\x59\x32"
  31958. "\x65\xf2\x54\xe4\x52\x38\x76\xd1"
  31959. "\x5e\xde\x26\x9e\xfb\x75\x2e\x11"
  31960. "\xb5\x10\xf4\x17\x73\xf5\x89\xc7"
  31961. "\x4f\x43\x5c\x8e\x7c\xb9\x05\x52"
  31962. "\x24\x40\x99\xfe\x9b\x85\x0b\x6c"
  31963. "\x22\x3e\x8b\xae\x86\xa1\xd2\x79"
  31964. "\x05\x68\x6b\xab\xe3\x41\x49\xed"
  31965. "\x15\xa1\x8d\x40\x2d\x61\xdf\x1a"
  31966. "\x59\xc9\x26\x8b\xef\x30\x4c\x88"
  31967. "\x4b\x10\xf8\x8d\xa6\x92\x9f\x4b"
  31968. "\xf3\xc4\x53\x0b\x89\x5d\x28\x92"
  31969. "\xcf\x78\xb2\xc0\x5d\xed\x7e\xfc"
  31970. "\xc0\x12\x23\x5f\x5a\x78\x86\x43"
  31971. "\x6e\x27\xf7\x5a\xa7\x6a\xed\x19"
  31972. "\x04\xf0\xb3\x12\xd1\xbd\x0e\x89"
  31973. "\x6e\xbc\x96\xa8\xd8\x49\x39\x9f"
  31974. "\x7e\x67\xf0\x2e\x3e\x01\xa9\xba"
  31975. "\xec\x8b\x62\x8e\xcb\x4a\x70\x43"
  31976. "\xc7\xc2\xc4\xca\x82\x03\x73\xe9"
  31977. "\x11\xdf\xcf\x54\xea\xc9\xb0\x95"
  31978. "\x51\xc0\x13\x3d\x92\x05\xfa\xf4"
  31979. "\xa9\x34\xc8\xce\x6c\x3d\x54\xcc"
  31980. "\xc4\xaf\xf1\xdc\x11\x44\x26\xa2"
  31981. "\xaf\xf1\x85\x75\x7d\x03\x61\x68"
  31982. "\x4e\x78\xc6\x92\x7d\x86\x7d\x77"
  31983. "\xdc\x71\x72\xdb\xc6\xae\xa1\xcb"
  31984. "\x70\x9a\x0b\x19\xbe\x4a\x6c\x2a"
  31985. "\xe2\xba\x6c\x64\x9a\x13\x28\xdf"
  31986. "\x85\x75\xe6\x43\xf6\x87\x08\x68"
  31987. "\x6e\xba\x6e\x79\x9f\x04\xbc\x23"
  31988. "\x50\xf6\x33\x5c\x1f\x24\x25\xbe"
  31989. "\x33\x47\x80\x45\x56\xa3\xa7\xd7"
  31990. "\x7a\xb1\x34\x0b\x90\x3c\x9c\xad"
  31991. "\x44\x5f\x9e\x0e\x9d\xd4\xbd\x93"
  31992. "\x5e\xfa\x3c\xe0\xb0\xd9\xed\xf3"
  31993. "\xd6\x2e\xff\x24\xd8\x71\x6c\xed"
  31994. "\xaf\x55\xeb\x22\xac\x93\x68\x32"
  31995. "\x05\x5b\x47\xdd\xc6\x4a\xcb\xc7"
  31996. "\x10\xe1\x3c\x92\x1a\xf3\x23\x78"
  31997. "\x2b\xa1\xd2\x80\xf4\x12\xb1\x20"
  31998. "\x8f\xff\x26\x35\xdd\xfb\xc7\x4e"
  31999. "\x78\xf1\x2d\x50\x12\x77\xa8\x60"
  32000. "\x7c\x0f\xf5\x16\x2f\x63\x70\x2a"
  32001. "\xc0\x96\x80\x4e\x0a\xb4\x93\x35"
  32002. "\x5d\x1d\x3f\x56\xf7\x2f\xbb\x90"
  32003. "\x11\x16\x8f\xa2\xec\x47\xbe\xac"
  32004. "\x56\x01\x26\x56\xb1\x8c\xb2\x10"
  32005. "\xf9\x1a\xca\xf5\xd1\xb7\x39\x20"
  32006. "\x63\xf1\x69\x20\x4f\x13\x12\x1f"
  32007. "\x5b\x65\xfc\x98\xf7\xc4\x7a\xbe"
  32008. "\xf7\x26\x4d\x2b\x84\x7b\x42\xad"
  32009. "\xd8\x7a\x0a\xb4\xd8\x74\xbf\xc1"
  32010. "\xf0\x6e\xb4\x29\xa3\xbb\xca\x46"
  32011. "\x67\x70\x6a\x2d\xce\x0e\xa2\x8a"
  32012. "\xa9\x87\xbf\x05\xc4\xc1\x04\xa3"
  32013. "\xab\xd4\x45\x43\x8c\xb6\x02\xb0"
  32014. "\x41\xc8\xfc\x44\x3d\x59\xaa\x2e"
  32015. "\x44\x21\x2a\x8d\x88\x9d\x57\xf4"
  32016. "\xa0\x02\x77\xb8\xa6\xa0\xe6\x75"
  32017. "\x5c\x82\x65\x3e\x03\x5c\x29\x8f"
  32018. "\x38\x55\xab\x33\x26\xef\x9f\x43"
  32019. "\x52\xfd\x68\xaf\x36\xb4\xbb\x9a"
  32020. "\x58\x09\x09\x1b\xc3\x65\x46\x46"
  32021. "\x1d\xa7\x94\x18\x23\x50\x2c\xca"
  32022. "\x2c\x55\x19\x97\x01\x9d\x93\x3b"
  32023. "\x63\x86\xf2\x03\x67\x45\xd2\x72"
  32024. "\x28\x52\x6c\xf4\xe3\x1c\xb5\x11"
  32025. "\x13\xf1\xeb\x21\xc7\xd9\x56\x82"
  32026. "\x2b\x82\x39\xbd\x69\x54\xed\x62"
  32027. "\xc3\xe2\xde\x73\xd4\x6a\x12\xae"
  32028. "\x13\x21\x7f\x4b\x5b\xfc\xbf\xe8"
  32029. "\x2b\xbe\x56\xba\x68\x8b\x9a\xb1"
  32030. "\x6e\xfa\xbf\x7e\x5a\x4b\xf1\xac"
  32031. "\x98\x65\x85\xd1\x93\x53\xd3\x7b"
  32032. "\x09\xdd\x4b\x10\x6d\x84\xb0\x13"
  32033. "\x65\xbd\xcf\x52\x09\xc4\x85\xe2"
  32034. "\x84\x74\x15\x65\xb7\xf7\x51\xaf"
  32035. "\x55\xad\xa4\xd1\x22\x54\x70\x94"
  32036. "\xa0\x1c\x90\x41\xfd\x99\xd7\x5a"
  32037. "\x31\xef\xaa\x25\xd0\x7f\x4f\xea"
  32038. "\x1d\x55\x42\xe5\x49\xb0\xd0\x46"
  32039. "\x62\x36\x43\xb2\x82\x15\x75\x50"
  32040. "\xa4\x72\xeb\x54\x27\x1f\x8a\xe4"
  32041. "\x7d\xe9\x66\xc5\xf1\x53\xa4\xd1"
  32042. "\x0c\xeb\xb8\xf8\xbc\xd4\xe2\xe7"
  32043. "\xe1\xf8\x4b\xcb\xa9\xa1\xaf\x15"
  32044. "\x83\xcb\x72\xd0\x33\x79\x00\x2d"
  32045. "\x9f\xd7\xf1\x2e\x1e\x10\xe4\x45"
  32046. "\xc0\x75\x3a\x39\xea\x68\xf7\x5d"
  32047. "\x1b\x73\x8f\xe9\x8e\x0f\x72\x47"
  32048. "\xae\x35\x0a\x31\x7a\x14\x4d\x4a"
  32049. "\x6f\x47\xf7\x7e\x91\x6e\x74\x8b"
  32050. "\x26\x47\xf9\xc3\xf9\xde\x70\xf5"
  32051. "\x61\xab\xa9\x27\x9f\x82\xe4\x9c"
  32052. "\x89\x91\x3f\x2e\x6a\xfd\xb5\x49"
  32053. "\xe9\xfd\x59\x14\x36\x49\x40\x6d"
  32054. "\x32\xd8\x85\x42\xf3\xa5\xdf\x0c"
  32055. "\xa8\x27\xd7\x54\xe2\x63\x2f\xf2"
  32056. "\x7e\x8b\x8b\xe7\xf1\x9a\x95\x35"
  32057. "\x43\xdc\x3a\xe4\xb6\xf4\xd0\xdf"
  32058. "\x9c\xcb\x94\xf3\x21\xa0\x77\x50"
  32059. "\xe2\xc6\xc4\xc6\x5f\x09\x64\x5b"
  32060. "\x92\x90\xd8\xe1\xd1\xed\x4b\x42"
  32061. "\xd7\x37\xaf\x65\x3d\x11\x39\xb6"
  32062. "\x24\x8a\x60\xae\xd6\x1e\xbf\x0e"
  32063. "\x0d\xd7\xdc\x96\x0e\x65\x75\x4e"
  32064. "\x29\x06\x9d\xa4\x51\x3a\x10\x63"
  32065. "\x8f\x17\x07\xd5\x8e\x3c\xf4\x28"
  32066. "\x00\x5a\x5b\x05\x19\xd8\xc0\x6c"
  32067. "\xe5\x15\xe4\x9c\x9d\x71\x9d\x5e"
  32068. "\x94\x29\x1a\xa7\x80\xfa\x0e\x33"
  32069. "\x03\xdd\xb7\x3e\x9a\xa9\x26\x18"
  32070. "\x37\xa9\x64\x08\x4d\x94\x5a\x88"
  32071. "\xca\x35\xce\x81\x02\xe3\x1f\x1b"
  32072. "\x89\x1a\x77\x85\xe3\x41\x6d\x32"
  32073. "\x42\x19\x23\x7d\xc8\x73\xee\x25"
  32074. "\x85\x0d\xf8\x31\x25\x79\x1b\x6f"
  32075. "\x79\x25\xd2\xd8\xd4\x23\xfd\xf7"
  32076. "\x82\x36\x6a\x0c\x46\x22\x15\xe9"
  32077. "\xff\x72\x41\x91\x91\x7d\x3a\xb7"
  32078. "\xdd\x65\x99\x70\xf6\x8d\x84\xf8"
  32079. "\x67\x15\x20\x11\xd6\xb2\x55\x7b"
  32080. "\xdb\x87\xee\xef\x55\x89\x2a\x59"
  32081. "\x2b\x07\x8f\x43\x8a\x59\x3c\x01"
  32082. "\x8b\x65\x54\xa1\x66\xd5\x38\xbd"
  32083. "\xc6\x30\xa9\xcc\x49\xb6\xa8\x1b"
  32084. "\xb8\xc0\x0e\xe3\x45\x28\xe2\xff"
  32085. "\x41\x9f\x7e\x7c\xd1\xae\x9e\x25"
  32086. "\x3f\x4c\x7c\x7c\xf4\xa8\x26\x4d"
  32087. "\x5c\xfd\x4b\x27\x18\xf9\x61\x76"
  32088. "\x48\xba\x0c\x6b\xa9\x4d\xfc\xf5"
  32089. "\x3b\x35\x7e\x2f\x4a\xa9\xc2\x9a"
  32090. "\xae\xab\x86\x09\x89\xc9\xc2\x40"
  32091. "\x39\x2c\x81\xb3\xb8\x17\x67\xc2"
  32092. "\x0d\x32\x4a\x3a\x67\x81\xd7\x1a"
  32093. "\x34\x52\xc5\xdb\x0a\xf5\x63\x39"
  32094. "\xea\x1f\xe1\x7c\xa1\x9e\xc1\x35"
  32095. "\xe3\xb1\x18\x45\x67\xf9\x22\x38"
  32096. "\x95\xd9\x34\x34\x86\xc6\x41\x94"
  32097. "\x15\xf9\x5b\x41\xa6\x87\x8b\xf8"
  32098. "\xd5\xe1\x1b\xe2\x5b\xf3\x86\x10"
  32099. "\xff\xe6\xae\x69\x76\xbc\x0d\xb4"
  32100. "\x09\x90\x0c\xa2\x65\x0c\xad\x74"
  32101. "\xf5\xd7\xff\xda\xc1\xce\x85\xbe"
  32102. "\x00\xa7\xff\x4d\x2f\x65\xd3\x8c"
  32103. "\x86\x2d\x05\xe8\xed\x3e\x6b\x8b"
  32104. "\x0f\x3d\x83\x8c\xf1\x1d\x5b\x96"
  32105. "\x2e\xb1\x9c\xc2\x98\xe1\x70\xb9"
  32106. "\xba\x5c\x8a\x43\xd6\x34\xa7\x2d"
  32107. "\xc9\x92\xae\xf2\xa5\x7b\x05\x49"
  32108. "\xa7\x33\x34\x86\xca\xe4\x96\x23"
  32109. "\x76\x5b\xf2\xc6\xf1\x51\x28\x42"
  32110. "\x7b\xcc\x76\x8f\xfa\xa2\xad\x31"
  32111. "\xd4\xd6\x7a\x6d\x25\x25\x54\xe4"
  32112. "\x3f\x50\x59\xe1\x5c\x05\xb7\x27"
  32113. "\x48\xbf\x07\xec\x1b\x13\xbe\x2b"
  32114. "\xa1\x57\x2b\xd5\xab\xd7\xd0\x4c"
  32115. "\x1e\xcb\x71\x9b\xc5\x90\x85\xd3"
  32116. "\xde\x59\xec\x71\xeb\x89\xbb\xd0"
  32117. "\x09\x50\xe1\x16\x3f\xfd\x1c\x34"
  32118. "\xc3\x1c\xa1\x10\x77\x53\x98\xef"
  32119. "\xf2\xfd\xa5\x01\x59\xc2\x9b\x26"
  32120. "\xc7\x42\xd9\x49\xda\x58\x2b\x6e"
  32121. "\x9f\x53\x19\x76\x7e\xd9\xc9\x0e"
  32122. "\x68\xc8\x7f\x51\x22\x42\xef\x49"
  32123. "\xa4\x55\xb6\x36\xac\x09\xc7\x31"
  32124. "\x88\x15\x4b\x2e\x8f\x3a\x08\xf7"
  32125. "\xd8\xf7\xa8\xc5\xa9\x33\xa6\x45"
  32126. "\xe4\xc4\x94\x76\xf3\x0d\x8f\x7e"
  32127. "\xc8\xf6\xbc\x23\x0a\xb6\x4c\xd3"
  32128. "\x6a\xcd\x36\xc2\x90\x5c\x5c\x3c"
  32129. "\x65\x7b\xc2\xd6\xcc\xe6\x0d\x87"
  32130. "\x73\x2e\x71\x79\x16\x06\x63\x28"
  32131. "\x09\x15\xd8\x89\x38\x38\x3d\xb5"
  32132. "\x42\x1c\x08\x24\xf7\x2a\xd2\x9d"
  32133. "\xc8\xca\xef\xf9\x27\xd8\x07\x86"
  32134. "\xf7\x43\x0b\x55\x15\x3f\x9f\x83"
  32135. "\xef\xdc\x49\x9d\x2a\xc1\x54\x62"
  32136. "\xbd\x9b\x66\x55\x9f\xb7\x12\xf3"
  32137. "\x1b\x4d\x9d\x2a\x5c\xed\x87\x75"
  32138. "\x87\x26\xec\x61\x2c\xb4\x0f\x89"
  32139. "\xb0\xfb\x2e\x68\x5d\x15\xc7\x8d"
  32140. "\x2e\xc0\xd9\xec\xaf\x4f\xd2\x25"
  32141. "\x29\xe8\xd2\x26\x2b\x67\xe9\xfc"
  32142. "\x2b\xa8\x67\x96\x12\x1f\x5b\x96"
  32143. "\xc6\x14\x53\xaf\x44\xea\xd6\xe2"
  32144. "\x94\x98\xe4\x12\x93\x4c\x92\xe0"
  32145. "\x18\xa5\x8d\x2d\xe4\x71\x3c\x47"
  32146. "\x4c\xf7\xe6\x47\x9e\xc0\x68\xdf"
  32147. "\xd4\xf5\x5a\x74\xb1\x2b\x29\x03"
  32148. "\x19\x07\xaf\x90\x62\x5c\x68\x98"
  32149. "\x48\x16\x11\x02\x9d\xee\xb4\x9b"
  32150. "\xe5\x42\x7f\x08\xfd\x16\x32\x0b"
  32151. "\xd0\xb3\xfa\x2b\xb7\x99\xf9\x29"
  32152. "\xcd\x20\x45\x9f\xb3\x1a\x5d\xa2"
  32153. "\xaf\x4d\xe0\xbd\x42\x0d\xbc\x74"
  32154. "\x99\x9c\x8e\x53\x1a\xb4\x3e\xbd"
  32155. "\xa2\x9a\x2d\xf7\xf8\x39\x0f\x67"
  32156. "\x63\xfc\x6b\xc0\xaf\xb3\x4b\x4f"
  32157. "\x55\xc4\xcf\xa7\xc8\x04\x11\x3e"
  32158. "\x14\x32\xbb\x1b\x38\x77\xd6\x7f"
  32159. "\x54\x4c\xdf\x75\xf3\x07\x2d\x33"
  32160. "\x9b\xa8\x20\xe1\x7b\x12\xb5\xf3"
  32161. "\xef\x2f\xce\x72\xe5\x24\x60\xc1"
  32162. "\x30\xe2\xab\xa1\x8e\x11\x09\xa8"
  32163. "\x21\x33\x44\xfe\x7f\x35\x32\x93"
  32164. "\x39\xa7\xad\x8b\x79\x06\xb2\xcb"
  32165. "\x4e\xa9\x5f\xc7\xba\x74\x29\xec"
  32166. "\x93\xa0\x4e\x54\x93\xc0\xbc\x55"
  32167. "\x64\xf0\x48\xe5\x57\x99\xee\x75"
  32168. "\xd6\x79\x0f\x66\xb7\xc6\x57\x76"
  32169. "\xf7\xb7\xf3\x9c\xc5\x60\xe8\x7f"
  32170. "\x83\x76\xd6\x0e\xaa\xe6\x90\x39"
  32171. "\x1d\xa6\x32\x6a\x34\xe3\x55\xf8"
  32172. "\x58\xa0\x58\x7d\x33\xe0\x22\x39"
  32173. "\x44\x64\x87\x86\x5a\x2f\xa7\x7e"
  32174. "\x0f\x38\xea\xb0\x30\xcc\x61\xa5"
  32175. "\x6a\x32\xae\x1e\xf7\xe9\xd0\xa9"
  32176. "\x0c\x32\x4b\xb5\x49\x28\xab\x85"
  32177. "\x2f\x8e\x01\x36\x38\x52\xd0\xba"
  32178. "\xd6\x02\x78\xf8\x0e\x3e\x9c\x8b"
  32179. "\x6b\x45\x99\x3f\x5c\xfe\x58\xf1"
  32180. "\x5c\x94\x04\xe1\xf5\x18\x6d\x51"
  32181. "\xb2\x5d\x18\x20\xb6\xc2\x9a\x42"
  32182. "\x1d\xb3\xab\x3c\xb6\x3a\x13\x03"
  32183. "\xb2\x46\x82\x4f\xfc\x64\xbc\x4f"
  32184. "\xca\xfa\x9c\xc0\xd5\xa7\xbd\x11"
  32185. "\xb7\xe4\x5a\xf6\x6f\x4d\x4d\x54"
  32186. "\xea\xa4\x98\x66\xd4\x22\x3b\xd3"
  32187. "\x8f\x34\x47\xd9\x7c\xf4\x72\x3b"
  32188. "\x4d\x02\x77\xf6\xd6\xdd\x08\x0a"
  32189. "\x81\xe1\x86\x89\x3e\x56\x10\x3c"
  32190. "\xba\xd7\x81\x8c\x08\xbc\x8b\xe2"
  32191. "\x53\xec\xa7\x89\xee\xc8\x56\xb5"
  32192. "\x36\x2c\xb2\x03\xba\x99\xdd\x7c"
  32193. "\x48\xa0\xb0\xbc\x91\x33\xe9\xa8"
  32194. "\xcb\xcd\xcf\x59\x5f\x1f\x15\xe2"
  32195. "\x56\xf5\x4e\x01\x35\x27\x45\x77"
  32196. "\x47\xc8\xbc\xcb\x7e\x39\xc1\x97"
  32197. "\x28\xd3\x84\xfc\x2c\x3e\xc8\xad"
  32198. "\x9c\xf8\x8a\x61\x9c\x28\xaa\xc5"
  32199. "\x99\x20\x43\x85\x9d\xa5\xe2\x8b"
  32200. "\xb8\xae\xeb\xd0\x32\x0d\x52\x78"
  32201. "\x09\x56\x3f\xc7\xd8\x7e\x26\xfc"
  32202. "\x37\xfb\x6f\x04\xfc\xfa\x92\x10"
  32203. "\xac\xf8\x3e\x21\xdc\x8c\x21\x16"
  32204. "\x7d\x67\x6e\xf6\xcd\xda\xb6\x98"
  32205. "\x23\xab\x23\x3c\xb2\x10\xa0\x53"
  32206. "\x5a\x56\x9f\xc5\xd0\xff\xbb\xe4"
  32207. "\x98\x3c\x69\x1e\xdb\x38\x8f\x7e"
  32208. "\x0f\xd2\x98\x88\x81\x8b\x45\x67"
  32209. "\xea\x33\xf1\xeb\xe9\x97\x55\x2e"
  32210. "\xd9\xaa\xeb\x5a\xec\xda\xe1\x68"
  32211. "\xa8\x9d\x3c\x84\x7c\x05\x3d\x62"
  32212. "\x87\x8f\x03\x21\x28\x95\x0c\x89"
  32213. "\x25\x22\x4a\xb0\x93\xa9\x50\xa2"
  32214. "\x2f\x57\x6e\x18\x42\x19\x54\x0c"
  32215. "\x55\x67\xc6\x11\x49\xf4\x5c\xd2"
  32216. "\xe9\x3d\xdd\x8b\x48\x71\x21\x00"
  32217. "\xc3\x9a\x6c\x85\x74\x28\x83\x4a"
  32218. "\x1b\x31\x05\xe1\x06\x92\xe7\xda"
  32219. "\x85\x73\x78\x45\x20\x7f\xae\x13"
  32220. "\x7c\x33\x06\x22\xf4\x83\xf9\x35"
  32221. "\x3f\x6c\x71\xa8\x4e\x48\xbe\x9b"
  32222. "\xce\x8a\xba\xda\xbe\x28\x08\xf7"
  32223. "\xe2\x14\x8c\x71\xea\x72\xf9\x33"
  32224. "\xf2\x88\x3f\xd7\xbb\x69\x6c\x29"
  32225. "\x19\xdc\x84\xce\x1f\x12\x4f\xc8"
  32226. "\xaf\xa5\x04\xba\x5a\xab\xb0\xd9"
  32227. "\x14\x1f\x6c\x68\x98\x39\x89\x7a"
  32228. "\xd9\xd8\x2f\xdf\xa8\x47\x4a\x25"
  32229. "\xe2\xfb\x33\xf4\x59\x78\xe1\x68"
  32230. "\x85\xcf\xfe\x59\x20\xd4\x05\x1d"
  32231. "\x80\x99\xae\xbc\xca\xae\x0f\x2f"
  32232. "\x65\x43\x34\x8e\x7e\xac\xd3\x93"
  32233. "\x2f\xac\x6d\x14\x3d\x02\x07\x70"
  32234. "\x9d\xa4\xf3\x1b\x5c\x36\xfc\x01"
  32235. "\x73\x34\x85\x0c\x6c\xd6\xf1\xbd"
  32236. "\x3f\xdf\xee\xf5\xd9\xba\x56\xef"
  32237. "\xf4\x9b\x6b\xee\x9f\x5a\x78\x6d"
  32238. "\x32\x19\xf4\xf7\xf8\x4c\x69\x0b"
  32239. "\x4b\xbc\xbb\xb7\xf2\x85\xaf\x70"
  32240. "\x75\x24\x6c\x54\xa7\x0e\x4d\x1d"
  32241. "\x01\xbf\x08\xac\xcf\x7f\x2c\xe3"
  32242. "\x14\x89\x5e\x70\x5a\x99\x92\xcd"
  32243. "\x01\x84\xc8\xd2\xab\xe5\x4f\x58"
  32244. "\xe7\x0f\x2f\x0e\xff\x68\xea\xfd"
  32245. "\x15\xb3\x17\xe6\xb0\xe7\x85\xd8"
  32246. "\x23\x2e\x05\xc7\xc9\xc4\x46\x1f"
  32247. "\xe1\x9e\x49\x20\x23\x24\x4d\x7e"
  32248. "\x29\x65\xff\xf4\xb6\xfd\x1a\x85"
  32249. "\xc4\x16\xec\xfc\xea\x7b\xd6\x2c"
  32250. "\x43\xf8\xb7\xbf\x79\xc0\x85\xcd"
  32251. "\xef\xe1\x98\xd3\xa5\xf7\x90\x8c"
  32252. "\xe9\x7f\x80\x6b\xd2\xac\x4c\x30"
  32253. "\xa7\xc6\x61\x6c\xd2\xf9\x2c\xff"
  32254. "\x30\xbc\x22\x81\x7d\x93\x12\xe4"
  32255. "\x0a\xcd\xaf\xdd\xe8\xab\x0a\x1e"
  32256. "\x13\xa4\x27\xc3\x5f\xf7\x4b\xbb"
  32257. "\x37\x09\x4b\x91\x6f\x92\x4f\xaf"
  32258. "\x52\xee\xdf\xef\x09\x6f\xf7\x5c"
  32259. "\x6e\x12\x17\x72\x63\x57\xc7\xba"
  32260. "\x3b\x6b\x38\x32\x73\x1b\x9c\x80"
  32261. "\xc1\x7a\xc6\xcf\xcd\x35\xc0\x6b"
  32262. "\x31\x1a\x6b\xe9\xd8\x2c\x29\x3f"
  32263. "\x96\xfb\xb6\xcd\x13\x91\x3b\xc2"
  32264. "\xd2\xa3\x31\x8d\xa4\xcd\x57\xcd"
  32265. "\x13\x3d\x64\xfd\x06\xce\xe6\xdc"
  32266. "\x0c\x24\x43\x31\x40\x57\xf1\x72"
  32267. "\x17\xe3\x3a\x63\x6d\x35\xcf\x5d"
  32268. "\x97\x40\x59\xdd\xf7\x3c\x02\xf7"
  32269. "\x1c\x7e\x05\xbb\xa9\x0d\x01\xb1"
  32270. "\x8e\xc0\x30\xa9\x53\x24\xc9\x89"
  32271. "\x84\x6d\xaa\xd0\xcd\x91\xc2\x4d"
  32272. "\x91\xb0\x89\xe2\xbf\x83\x44\xaa"
  32273. "\x28\x72\x23\xa0\xc2\xad\xad\x1c"
  32274. "\xfc\x3f\x09\x7a\x0b\xdc\xc5\x1b"
  32275. "\x87\x13\xc6\x5b\x59\x8d\xf2\xc8"
  32276. "\xaf\xdf\x11\x95",
  32277. .rlen = 4100,
  32278. .np = 2,
  32279. .tap = { 4064, 36 },
  32280. },
  32281. };
  32282. #define CHACHA20_ENC_TEST_VECTORS 4
  32283. static struct cipher_testvec chacha20_enc_tv_template[] = {
  32284. { /* RFC7539 A.2. Test Vector #1 */
  32285. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  32286. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32287. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32288. "\x00\x00\x00\x00\x00\x00\x00\x00",
  32289. .klen = 32,
  32290. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  32291. "\x00\x00\x00\x00\x00\x00\x00\x00",
  32292. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  32293. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32294. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32295. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32296. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32297. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32298. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32299. "\x00\x00\x00\x00\x00\x00\x00\x00",
  32300. .ilen = 64,
  32301. .result = "\x76\xb8\xe0\xad\xa0\xf1\x3d\x90"
  32302. "\x40\x5d\x6a\xe5\x53\x86\xbd\x28"
  32303. "\xbd\xd2\x19\xb8\xa0\x8d\xed\x1a"
  32304. "\xa8\x36\xef\xcc\x8b\x77\x0d\xc7"
  32305. "\xda\x41\x59\x7c\x51\x57\x48\x8d"
  32306. "\x77\x24\xe0\x3f\xb8\xd8\x4a\x37"
  32307. "\x6a\x43\xb8\xf4\x15\x18\xa1\x1c"
  32308. "\xc3\x87\xb6\x69\xb2\xee\x65\x86",
  32309. .rlen = 64,
  32310. }, { /* RFC7539 A.2. Test Vector #2 */
  32311. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  32312. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32313. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32314. "\x00\x00\x00\x00\x00\x00\x00\x01",
  32315. .klen = 32,
  32316. .iv = "\x01\x00\x00\x00\x00\x00\x00\x00"
  32317. "\x00\x00\x00\x00\x00\x00\x00\x02",
  32318. .input = "\x41\x6e\x79\x20\x73\x75\x62\x6d"
  32319. "\x69\x73\x73\x69\x6f\x6e\x20\x74"
  32320. "\x6f\x20\x74\x68\x65\x20\x49\x45"
  32321. "\x54\x46\x20\x69\x6e\x74\x65\x6e"
  32322. "\x64\x65\x64\x20\x62\x79\x20\x74"
  32323. "\x68\x65\x20\x43\x6f\x6e\x74\x72"
  32324. "\x69\x62\x75\x74\x6f\x72\x20\x66"
  32325. "\x6f\x72\x20\x70\x75\x62\x6c\x69"
  32326. "\x63\x61\x74\x69\x6f\x6e\x20\x61"
  32327. "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
  32328. "\x20\x70\x61\x72\x74\x20\x6f\x66"
  32329. "\x20\x61\x6e\x20\x49\x45\x54\x46"
  32330. "\x20\x49\x6e\x74\x65\x72\x6e\x65"
  32331. "\x74\x2d\x44\x72\x61\x66\x74\x20"
  32332. "\x6f\x72\x20\x52\x46\x43\x20\x61"
  32333. "\x6e\x64\x20\x61\x6e\x79\x20\x73"
  32334. "\x74\x61\x74\x65\x6d\x65\x6e\x74"
  32335. "\x20\x6d\x61\x64\x65\x20\x77\x69"
  32336. "\x74\x68\x69\x6e\x20\x74\x68\x65"
  32337. "\x20\x63\x6f\x6e\x74\x65\x78\x74"
  32338. "\x20\x6f\x66\x20\x61\x6e\x20\x49"
  32339. "\x45\x54\x46\x20\x61\x63\x74\x69"
  32340. "\x76\x69\x74\x79\x20\x69\x73\x20"
  32341. "\x63\x6f\x6e\x73\x69\x64\x65\x72"
  32342. "\x65\x64\x20\x61\x6e\x20\x22\x49"
  32343. "\x45\x54\x46\x20\x43\x6f\x6e\x74"
  32344. "\x72\x69\x62\x75\x74\x69\x6f\x6e"
  32345. "\x22\x2e\x20\x53\x75\x63\x68\x20"
  32346. "\x73\x74\x61\x74\x65\x6d\x65\x6e"
  32347. "\x74\x73\x20\x69\x6e\x63\x6c\x75"
  32348. "\x64\x65\x20\x6f\x72\x61\x6c\x20"
  32349. "\x73\x74\x61\x74\x65\x6d\x65\x6e"
  32350. "\x74\x73\x20\x69\x6e\x20\x49\x45"
  32351. "\x54\x46\x20\x73\x65\x73\x73\x69"
  32352. "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
  32353. "\x77\x65\x6c\x6c\x20\x61\x73\x20"
  32354. "\x77\x72\x69\x74\x74\x65\x6e\x20"
  32355. "\x61\x6e\x64\x20\x65\x6c\x65\x63"
  32356. "\x74\x72\x6f\x6e\x69\x63\x20\x63"
  32357. "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
  32358. "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
  32359. "\x64\x65\x20\x61\x74\x20\x61\x6e"
  32360. "\x79\x20\x74\x69\x6d\x65\x20\x6f"
  32361. "\x72\x20\x70\x6c\x61\x63\x65\x2c"
  32362. "\x20\x77\x68\x69\x63\x68\x20\x61"
  32363. "\x72\x65\x20\x61\x64\x64\x72\x65"
  32364. "\x73\x73\x65\x64\x20\x74\x6f",
  32365. .ilen = 375,
  32366. .result = "\xa3\xfb\xf0\x7d\xf3\xfa\x2f\xde"
  32367. "\x4f\x37\x6c\xa2\x3e\x82\x73\x70"
  32368. "\x41\x60\x5d\x9f\x4f\x4f\x57\xbd"
  32369. "\x8c\xff\x2c\x1d\x4b\x79\x55\xec"
  32370. "\x2a\x97\x94\x8b\xd3\x72\x29\x15"
  32371. "\xc8\xf3\xd3\x37\xf7\xd3\x70\x05"
  32372. "\x0e\x9e\x96\xd6\x47\xb7\xc3\x9f"
  32373. "\x56\xe0\x31\xca\x5e\xb6\x25\x0d"
  32374. "\x40\x42\xe0\x27\x85\xec\xec\xfa"
  32375. "\x4b\x4b\xb5\xe8\xea\xd0\x44\x0e"
  32376. "\x20\xb6\xe8\xdb\x09\xd8\x81\xa7"
  32377. "\xc6\x13\x2f\x42\x0e\x52\x79\x50"
  32378. "\x42\xbd\xfa\x77\x73\xd8\xa9\x05"
  32379. "\x14\x47\xb3\x29\x1c\xe1\x41\x1c"
  32380. "\x68\x04\x65\x55\x2a\xa6\xc4\x05"
  32381. "\xb7\x76\x4d\x5e\x87\xbe\xa8\x5a"
  32382. "\xd0\x0f\x84\x49\xed\x8f\x72\xd0"
  32383. "\xd6\x62\xab\x05\x26\x91\xca\x66"
  32384. "\x42\x4b\xc8\x6d\x2d\xf8\x0e\xa4"
  32385. "\x1f\x43\xab\xf9\x37\xd3\x25\x9d"
  32386. "\xc4\xb2\xd0\xdf\xb4\x8a\x6c\x91"
  32387. "\x39\xdd\xd7\xf7\x69\x66\xe9\x28"
  32388. "\xe6\x35\x55\x3b\xa7\x6c\x5c\x87"
  32389. "\x9d\x7b\x35\xd4\x9e\xb2\xe6\x2b"
  32390. "\x08\x71\xcd\xac\x63\x89\x39\xe2"
  32391. "\x5e\x8a\x1e\x0e\xf9\xd5\x28\x0f"
  32392. "\xa8\xca\x32\x8b\x35\x1c\x3c\x76"
  32393. "\x59\x89\xcb\xcf\x3d\xaa\x8b\x6c"
  32394. "\xcc\x3a\xaf\x9f\x39\x79\xc9\x2b"
  32395. "\x37\x20\xfc\x88\xdc\x95\xed\x84"
  32396. "\xa1\xbe\x05\x9c\x64\x99\xb9\xfd"
  32397. "\xa2\x36\xe7\xe8\x18\xb0\x4b\x0b"
  32398. "\xc3\x9c\x1e\x87\x6b\x19\x3b\xfe"
  32399. "\x55\x69\x75\x3f\x88\x12\x8c\xc0"
  32400. "\x8a\xaa\x9b\x63\xd1\xa1\x6f\x80"
  32401. "\xef\x25\x54\xd7\x18\x9c\x41\x1f"
  32402. "\x58\x69\xca\x52\xc5\xb8\x3f\xa3"
  32403. "\x6f\xf2\x16\xb9\xc1\xd3\x00\x62"
  32404. "\xbe\xbc\xfd\x2d\xc5\xbc\xe0\x91"
  32405. "\x19\x34\xfd\xa7\x9a\x86\xf6\xe6"
  32406. "\x98\xce\xd7\x59\xc3\xff\x9b\x64"
  32407. "\x77\x33\x8f\x3d\xa4\xf9\xcd\x85"
  32408. "\x14\xea\x99\x82\xcc\xaf\xb3\x41"
  32409. "\xb2\x38\x4d\xd9\x02\xf3\xd1\xab"
  32410. "\x7a\xc6\x1d\xd2\x9c\x6f\x21\xba"
  32411. "\x5b\x86\x2f\x37\x30\xe3\x7c\xfd"
  32412. "\xc4\xfd\x80\x6c\x22\xf2\x21",
  32413. .rlen = 375,
  32414. }, { /* RFC7539 A.2. Test Vector #3 */
  32415. .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
  32416. "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
  32417. "\x47\x39\x17\xc1\x40\x2b\x80\x09"
  32418. "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
  32419. .klen = 32,
  32420. .iv = "\x2a\x00\x00\x00\x00\x00\x00\x00"
  32421. "\x00\x00\x00\x00\x00\x00\x00\x02",
  32422. .input = "\x27\x54\x77\x61\x73\x20\x62\x72"
  32423. "\x69\x6c\x6c\x69\x67\x2c\x20\x61"
  32424. "\x6e\x64\x20\x74\x68\x65\x20\x73"
  32425. "\x6c\x69\x74\x68\x79\x20\x74\x6f"
  32426. "\x76\x65\x73\x0a\x44\x69\x64\x20"
  32427. "\x67\x79\x72\x65\x20\x61\x6e\x64"
  32428. "\x20\x67\x69\x6d\x62\x6c\x65\x20"
  32429. "\x69\x6e\x20\x74\x68\x65\x20\x77"
  32430. "\x61\x62\x65\x3a\x0a\x41\x6c\x6c"
  32431. "\x20\x6d\x69\x6d\x73\x79\x20\x77"
  32432. "\x65\x72\x65\x20\x74\x68\x65\x20"
  32433. "\x62\x6f\x72\x6f\x67\x6f\x76\x65"
  32434. "\x73\x2c\x0a\x41\x6e\x64\x20\x74"
  32435. "\x68\x65\x20\x6d\x6f\x6d\x65\x20"
  32436. "\x72\x61\x74\x68\x73\x20\x6f\x75"
  32437. "\x74\x67\x72\x61\x62\x65\x2e",
  32438. .ilen = 127,
  32439. .result = "\x62\xe6\x34\x7f\x95\xed\x87\xa4"
  32440. "\x5f\xfa\xe7\x42\x6f\x27\xa1\xdf"
  32441. "\x5f\xb6\x91\x10\x04\x4c\x0d\x73"
  32442. "\x11\x8e\xff\xa9\x5b\x01\xe5\xcf"
  32443. "\x16\x6d\x3d\xf2\xd7\x21\xca\xf9"
  32444. "\xb2\x1e\x5f\xb1\x4c\x61\x68\x71"
  32445. "\xfd\x84\xc5\x4f\x9d\x65\xb2\x83"
  32446. "\x19\x6c\x7f\xe4\xf6\x05\x53\xeb"
  32447. "\xf3\x9c\x64\x02\xc4\x22\x34\xe3"
  32448. "\x2a\x35\x6b\x3e\x76\x43\x12\xa6"
  32449. "\x1a\x55\x32\x05\x57\x16\xea\xd6"
  32450. "\x96\x25\x68\xf8\x7d\x3f\x3f\x77"
  32451. "\x04\xc6\xa8\xd1\xbc\xd1\xbf\x4d"
  32452. "\x50\xd6\x15\x4b\x6d\xa7\x31\xb1"
  32453. "\x87\xb5\x8d\xfd\x72\x8a\xfa\x36"
  32454. "\x75\x7a\x79\x7a\xc1\x88\xd1",
  32455. .rlen = 127,
  32456. }, { /* Self-made test vector for long data */
  32457. .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
  32458. "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
  32459. "\x47\x39\x17\xc1\x40\x2b\x80\x09"
  32460. "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
  32461. .klen = 32,
  32462. .iv = "\x1c\x00\x00\x00\x00\x00\x00\x00"
  32463. "\x00\x00\x00\x00\x00\x00\x00\x01",
  32464. .input = "\x49\xee\xe0\xdc\x24\x90\x40\xcd"
  32465. "\xc5\x40\x8f\x47\x05\xbc\xdd\x81"
  32466. "\x47\xc6\x8d\xe6\xb1\x8f\xd7\xcb"
  32467. "\x09\x0e\x6e\x22\x48\x1f\xbf\xb8"
  32468. "\x5c\xf7\x1e\x8a\xc1\x23\xf2\xd4"
  32469. "\x19\x4b\x01\x0f\x4e\xa4\x43\xce"
  32470. "\x01\xc6\x67\xda\x03\x91\x18\x90"
  32471. "\xa5\xa4\x8e\x45\x03\xb3\x2d\xac"
  32472. "\x74\x92\xd3\x53\x47\xc8\xdd\x25"
  32473. "\x53\x6c\x02\x03\x87\x0d\x11\x0c"
  32474. "\x58\xe3\x12\x18\xfd\x2a\x5b\x40"
  32475. "\x0c\x30\xf0\xb8\x3f\x43\xce\xae"
  32476. "\x65\x3a\x7d\x7c\xf4\x54\xaa\xcc"
  32477. "\x33\x97\xc3\x77\xba\xc5\x70\xde"
  32478. "\xd7\xd5\x13\xa5\x65\xc4\x5f\x0f"
  32479. "\x46\x1a\x0d\x97\xb5\xf3\xbb\x3c"
  32480. "\x84\x0f\x2b\xc5\xaa\xea\xf2\x6c"
  32481. "\xc9\xb5\x0c\xee\x15\xf3\x7d\xbe"
  32482. "\x9f\x7b\x5a\xa6\xae\x4f\x83\xb6"
  32483. "\x79\x49\x41\xf4\x58\x18\xcb\x86"
  32484. "\x7f\x30\x0e\xf8\x7d\x44\x36\xea"
  32485. "\x75\xeb\x88\x84\x40\x3c\xad\x4f"
  32486. "\x6f\x31\x6b\xaa\x5d\xe5\xa5\xc5"
  32487. "\x21\x66\xe9\xa7\xe3\xb2\x15\x88"
  32488. "\x78\xf6\x79\xa1\x59\x47\x12\x4e"
  32489. "\x9f\x9f\x64\x1a\xa0\x22\x5b\x08"
  32490. "\xbe\x7c\x36\xc2\x2b\x66\x33\x1b"
  32491. "\xdd\x60\x71\xf7\x47\x8c\x61\xc3"
  32492. "\xda\x8a\x78\x1e\x16\xfa\x1e\x86"
  32493. "\x81\xa6\x17\x2a\xa7\xb5\xc2\xe7"
  32494. "\xa4\xc7\x42\xf1\xcf\x6a\xca\xb4"
  32495. "\x45\xcf\xf3\x93\xf0\xe7\xea\xf6"
  32496. "\xf4\xe6\x33\x43\x84\x93\xa5\x67"
  32497. "\x9b\x16\x58\x58\x80\x0f\x2b\x5c"
  32498. "\x24\x74\x75\x7f\x95\x81\xb7\x30"
  32499. "\x7a\x33\xa7\xf7\x94\x87\x32\x27"
  32500. "\x10\x5d\x14\x4c\x43\x29\xdd\x26"
  32501. "\xbd\x3e\x3c\x0e\xfe\x0e\xa5\x10"
  32502. "\xea\x6b\x64\xfd\x73\xc6\xed\xec"
  32503. "\xa8\xc9\xbf\xb3\xba\x0b\x4d\x07"
  32504. "\x70\xfc\x16\xfd\x79\x1e\xd7\xc5"
  32505. "\x49\x4e\x1c\x8b\x8d\x79\x1b\xb1"
  32506. "\xec\xca\x60\x09\x4c\x6a\xd5\x09"
  32507. "\x49\x46\x00\x88\x22\x8d\xce\xea"
  32508. "\xb1\x17\x11\xde\x42\xd2\x23\xc1"
  32509. "\x72\x11\xf5\x50\x73\x04\x40\x47"
  32510. "\xf9\x5d\xe7\xa7\x26\xb1\x7e\xb0"
  32511. "\x3f\x58\xc1\x52\xab\x12\x67\x9d"
  32512. "\x3f\x43\x4b\x68\xd4\x9c\x68\x38"
  32513. "\x07\x8a\x2d\x3e\xf3\xaf\x6a\x4b"
  32514. "\xf9\xe5\x31\x69\x22\xf9\xa6\x69"
  32515. "\xc6\x9c\x96\x9a\x12\x35\x95\x1d"
  32516. "\x95\xd5\xdd\xbe\xbf\x93\x53\x24"
  32517. "\xfd\xeb\xc2\x0a\x64\xb0\x77\x00"
  32518. "\x6f\x88\xc4\x37\x18\x69\x7c\xd7"
  32519. "\x41\x92\x55\x4c\x03\xa1\x9a\x4b"
  32520. "\x15\xe5\xdf\x7f\x37\x33\x72\xc1"
  32521. "\x8b\x10\x67\xa3\x01\x57\x94\x25"
  32522. "\x7b\x38\x71\x7e\xdd\x1e\xcc\x73"
  32523. "\x55\xd2\x8e\xeb\x07\xdd\xf1\xda"
  32524. "\x58\xb1\x47\x90\xfe\x42\x21\x72"
  32525. "\xa3\x54\x7a\xa0\x40\xec\x9f\xdd"
  32526. "\xc6\x84\x6e\xca\xae\xe3\x68\xb4"
  32527. "\x9d\xe4\x78\xff\x57\xf2\xf8\x1b"
  32528. "\x03\xa1\x31\xd9\xde\x8d\xf5\x22"
  32529. "\x9c\xdd\x20\xa4\x1e\x27\xb1\x76"
  32530. "\x4f\x44\x55\xe2\x9b\xa1\x9c\xfe"
  32531. "\x54\xf7\x27\x1b\xf4\xde\x02\xf5"
  32532. "\x1b\x55\x48\x5c\xdc\x21\x4b\x9e"
  32533. "\x4b\x6e\xed\x46\x23\xdc\x65\xb2"
  32534. "\xcf\x79\x5f\x28\xe0\x9e\x8b\xe7"
  32535. "\x4c\x9d\x8a\xff\xc1\xa6\x28\xb8"
  32536. "\x65\x69\x8a\x45\x29\xef\x74\x85"
  32537. "\xde\x79\xc7\x08\xae\x30\xb0\xf4"
  32538. "\xa3\x1d\x51\x41\xab\xce\xcb\xf6"
  32539. "\xb5\xd8\x6d\xe0\x85\xe1\x98\xb3"
  32540. "\x43\xbb\x86\x83\x0a\xa0\xf5\xb7"
  32541. "\x04\x0b\xfa\x71\x1f\xb0\xf6\xd9"
  32542. "\x13\x00\x15\xf0\xc7\xeb\x0d\x5a"
  32543. "\x9f\xd7\xb9\x6c\x65\x14\x22\x45"
  32544. "\x6e\x45\x32\x3e\x7e\x60\x1a\x12"
  32545. "\x97\x82\x14\xfb\xaa\x04\x22\xfa"
  32546. "\xa0\xe5\x7e\x8c\x78\x02\x48\x5d"
  32547. "\x78\x33\x5a\x7c\xad\xdb\x29\xce"
  32548. "\xbb\x8b\x61\xa4\xb7\x42\xe2\xac"
  32549. "\x8b\x1a\xd9\x2f\x0b\x8b\x62\x21"
  32550. "\x83\x35\x7e\xad\x73\xc2\xb5\x6c"
  32551. "\x10\x26\x38\x07\xe5\xc7\x36\x80"
  32552. "\xe2\x23\x12\x61\xf5\x48\x4b\x2b"
  32553. "\xc5\xdf\x15\xd9\x87\x01\xaa\xac"
  32554. "\x1e\x7c\xad\x73\x78\x18\x63\xe0"
  32555. "\x8b\x9f\x81\xd8\x12\x6a\x28\x10"
  32556. "\xbe\x04\x68\x8a\x09\x7c\x1b\x1c"
  32557. "\x83\x66\x80\x47\x80\xe8\xfd\x35"
  32558. "\x1c\x97\x6f\xae\x49\x10\x66\xcc"
  32559. "\xc6\xd8\xcc\x3a\x84\x91\x20\x77"
  32560. "\x72\xe4\x24\xd2\x37\x9f\xc5\xc9"
  32561. "\x25\x94\x10\x5f\x40\x00\x64\x99"
  32562. "\xdc\xae\xd7\x21\x09\x78\x50\x15"
  32563. "\xac\x5f\xc6\x2c\xa2\x0b\xa9\x39"
  32564. "\x87\x6e\x6d\xab\xde\x08\x51\x16"
  32565. "\xc7\x13\xe9\xea\xed\x06\x8e\x2c"
  32566. "\xf8\x37\x8c\xf0\xa6\x96\x8d\x43"
  32567. "\xb6\x98\x37\xb2\x43\xed\xde\xdf"
  32568. "\x89\x1a\xe7\xeb\x9d\xa1\x7b\x0b"
  32569. "\x77\xb0\xe2\x75\xc0\xf1\x98\xd9"
  32570. "\x80\x55\xc9\x34\x91\xd1\x59\xe8"
  32571. "\x4b\x0f\xc1\xa9\x4b\x7a\x84\x06"
  32572. "\x20\xa8\x5d\xfa\xd1\xde\x70\x56"
  32573. "\x2f\x9e\x91\x9c\x20\xb3\x24\xd8"
  32574. "\x84\x3d\xe1\x8c\x7e\x62\x52\xe5"
  32575. "\x44\x4b\x9f\xc2\x93\x03\xea\x2b"
  32576. "\x59\xc5\xfa\x3f\x91\x2b\xbb\x23"
  32577. "\xf5\xb2\x7b\xf5\x38\xaf\xb3\xee"
  32578. "\x63\xdc\x7b\xd1\xff\xaa\x8b\xab"
  32579. "\x82\x6b\x37\x04\xeb\x74\xbe\x79"
  32580. "\xb9\x83\x90\xef\x20\x59\x46\xff"
  32581. "\xe9\x97\x3e\x2f\xee\xb6\x64\x18"
  32582. "\x38\x4c\x7a\x4a\xf9\x61\xe8\x9a"
  32583. "\xa1\xb5\x01\xa6\x47\xd3\x11\xd4"
  32584. "\xce\xd3\x91\x49\x88\xc7\xb8\x4d"
  32585. "\xb1\xb9\x07\x6d\x16\x72\xae\x46"
  32586. "\x5e\x03\xa1\x4b\xb6\x02\x30\xa8"
  32587. "\x3d\xa9\x07\x2a\x7c\x19\xe7\x62"
  32588. "\x87\xe3\x82\x2f\x6f\xe1\x09\xd9"
  32589. "\x94\x97\xea\xdd\x58\x9e\xae\x76"
  32590. "\x7e\x35\xe5\xb4\xda\x7e\xf4\xde"
  32591. "\xf7\x32\x87\xcd\x93\xbf\x11\x56"
  32592. "\x11\xbe\x08\x74\xe1\x69\xad\xe2"
  32593. "\xd7\xf8\x86\x75\x8a\x3c\xa4\xbe"
  32594. "\x70\xa7\x1b\xfc\x0b\x44\x2a\x76"
  32595. "\x35\xea\x5d\x85\x81\xaf\x85\xeb"
  32596. "\xa0\x1c\x61\xc2\xf7\x4f\xa5\xdc"
  32597. "\x02\x7f\xf6\x95\x40\x6e\x8a\x9a"
  32598. "\xf3\x5d\x25\x6e\x14\x3a\x22\xc9"
  32599. "\x37\x1c\xeb\x46\x54\x3f\xa5\x91"
  32600. "\xc2\xb5\x8c\xfe\x53\x08\x97\x32"
  32601. "\x1b\xb2\x30\x27\xfe\x25\x5d\xdc"
  32602. "\x08\x87\xd0\xe5\x94\x1a\xd4\xf1"
  32603. "\xfe\xd6\xb4\xa3\xe6\x74\x81\x3c"
  32604. "\x1b\xb7\x31\xa7\x22\xfd\xd4\xdd"
  32605. "\x20\x4e\x7c\x51\xb0\x60\x73\xb8"
  32606. "\x9c\xac\x91\x90\x7e\x01\xb0\xe1"
  32607. "\x8a\x2f\x75\x1c\x53\x2a\x98\x2a"
  32608. "\x06\x52\x95\x52\xb2\xe9\x25\x2e"
  32609. "\x4c\xe2\x5a\x00\xb2\x13\x81\x03"
  32610. "\x77\x66\x0d\xa5\x99\xda\x4e\x8c"
  32611. "\xac\xf3\x13\x53\x27\x45\xaf\x64"
  32612. "\x46\xdc\xea\x23\xda\x97\xd1\xab"
  32613. "\x7d\x6c\x30\x96\x1f\xbc\x06\x34"
  32614. "\x18\x0b\x5e\x21\x35\x11\x8d\x4c"
  32615. "\xe0\x2d\xe9\x50\x16\x74\x81\xa8"
  32616. "\xb4\x34\xb9\x72\x42\xa6\xcc\xbc"
  32617. "\xca\x34\x83\x27\x10\x5b\x68\x45"
  32618. "\x8f\x52\x22\x0c\x55\x3d\x29\x7c"
  32619. "\xe3\xc0\x66\x05\x42\x91\x5f\x58"
  32620. "\xfe\x4a\x62\xd9\x8c\xa9\x04\x19"
  32621. "\x04\xa9\x08\x4b\x57\xfc\x67\x53"
  32622. "\x08\x7c\xbc\x66\x8a\xb0\xb6\x9f"
  32623. "\x92\xd6\x41\x7c\x5b\x2a\x00\x79"
  32624. "\x72",
  32625. .ilen = 1281,
  32626. .result = "\x45\xe8\xe0\xb6\x9c\xca\xfd\x87"
  32627. "\xe8\x1d\x37\x96\x8a\xe3\x40\x35"
  32628. "\xcf\x5e\x3a\x46\x3d\xfb\xd0\x69"
  32629. "\xde\xaf\x7a\xd5\x0d\xe9\x52\xec"
  32630. "\xc2\x82\xe5\x3e\x7d\xb2\x4a\xd9"
  32631. "\xbb\xc3\x9f\xc0\x5d\xac\x93\x8d"
  32632. "\x0e\x6f\xd3\xd7\xfb\x6a\x0d\xce"
  32633. "\x92\x2c\xf7\xbb\x93\x57\xcc\xee"
  32634. "\x42\x72\x6f\xc8\x4b\xd2\x76\xbf"
  32635. "\xa0\xe3\x7a\x39\xf9\x5c\x8e\xfd"
  32636. "\xa1\x1d\x41\xe5\x08\xc1\x1c\x11"
  32637. "\x92\xfd\x39\x5c\x51\xd0\x2f\x66"
  32638. "\x33\x4a\x71\x15\xfe\xee\x12\x54"
  32639. "\x8c\x8f\x34\xd8\x50\x3c\x18\xa6"
  32640. "\xc5\xe1\x46\x8a\xfb\x5f\x7e\x25"
  32641. "\x9b\xe2\xc3\x66\x41\x2b\xb3\xa5"
  32642. "\x57\x0e\x94\x17\x26\x39\xbb\x54"
  32643. "\xae\x2e\x6f\x42\xfb\x4d\x89\x6f"
  32644. "\x9d\xf1\x16\x2e\xe3\xe7\xfc\xe3"
  32645. "\xb2\x4b\x2b\xa6\x7c\x04\x69\x3a"
  32646. "\x70\x5a\xa7\xf1\x31\x64\x19\xca"
  32647. "\x45\x79\xd8\x58\x23\x61\xaf\xc2"
  32648. "\x52\x05\xc3\x0b\xc1\x64\x7c\x81"
  32649. "\xd9\x11\xcf\xff\x02\x3d\x51\x84"
  32650. "\x01\xac\xc6\x2e\x34\x2b\x09\x3a"
  32651. "\xa8\x5d\x98\x0e\x89\xd9\xef\x8f"
  32652. "\xd9\xd7\x7d\xdd\x63\x47\x46\x7d"
  32653. "\xa1\xda\x0b\x53\x7d\x79\xcd\xc9"
  32654. "\x86\xdd\x6b\x13\xa1\x9a\x70\xdd"
  32655. "\x5c\xa1\x69\x3c\xe4\x5d\xe3\x8c"
  32656. "\xe5\xf4\x87\x9c\x10\xcf\x0f\x0b"
  32657. "\xc8\x43\xdc\xf8\x1d\x62\x5e\x5b"
  32658. "\xe2\x03\x06\xc5\x71\xb6\x48\xa5"
  32659. "\xf0\x0f\x2d\xd5\xa2\x73\x55\x8f"
  32660. "\x01\xa7\x59\x80\x5f\x11\x6c\x40"
  32661. "\xff\xb1\xf2\xc6\x7e\x01\xbb\x1c"
  32662. "\x69\x9c\xc9\x3f\x71\x5f\x07\x7e"
  32663. "\xdf\x6f\x99\xca\x9c\xfd\xf9\xb9"
  32664. "\x49\xe7\xcc\x91\xd5\x9b\x8f\x03"
  32665. "\xae\xe7\x61\x32\xef\x41\x6c\x75"
  32666. "\x84\x9b\x8c\xce\x1d\x6b\x93\x21"
  32667. "\x41\xec\xc6\xad\x8e\x0c\x48\xa8"
  32668. "\xe2\xf5\x57\xde\xf7\x38\xfd\x4a"
  32669. "\x6f\xa7\x4a\xf9\xac\x7d\xb1\x85"
  32670. "\x7d\x6c\x95\x0a\x5a\xcf\x68\xd2"
  32671. "\xe0\x7a\x26\xd9\xc1\x6d\x3e\xc6"
  32672. "\x37\xbd\xbe\x24\x36\x77\x9f\x1b"
  32673. "\xc1\x22\xf3\x79\xae\x95\x78\x66"
  32674. "\x97\x11\xc0\x1a\xf1\xe8\x0d\x38"
  32675. "\x09\xc2\xee\xb7\xd3\x46\x7b\x59"
  32676. "\x77\x23\xe8\xb4\x92\x3d\x78\xbe"
  32677. "\xe2\x25\x63\xa5\x2a\x06\x70\x92"
  32678. "\x32\x63\xf9\x19\x21\x68\xe1\x0b"
  32679. "\x9a\xd0\xee\x21\xdb\x1f\xe0\xde"
  32680. "\x3e\x64\x02\x4d\x0e\xe0\x0a\xa9"
  32681. "\xed\x19\x8c\xa8\xbf\xe3\x2e\x75"
  32682. "\x24\x2b\xb0\xe5\x82\x6a\x1e\x6f"
  32683. "\x71\x2a\x3a\x60\xed\x06\x0d\x17"
  32684. "\xa2\xdb\x29\x1d\xae\xb2\xc4\xfb"
  32685. "\x94\x04\xd8\x58\xfc\xc4\x04\x4e"
  32686. "\xee\xc7\xc1\x0f\xe9\x9b\x63\x2d"
  32687. "\x02\x3e\x02\x67\xe5\xd8\xbb\x79"
  32688. "\xdf\xd2\xeb\x50\xe9\x0a\x02\x46"
  32689. "\xdf\x68\xcf\xe7\x2b\x0a\x56\xd6"
  32690. "\xf7\xbc\x44\xad\xb8\xb5\x5f\xeb"
  32691. "\xbc\x74\x6b\xe8\x7e\xb0\x60\xc6"
  32692. "\x0d\x96\x09\xbb\x19\xba\xe0\x3c"
  32693. "\xc4\x6c\xbf\x0f\x58\xc0\x55\x62"
  32694. "\x23\xa0\xff\xb5\x1c\xfd\x18\xe1"
  32695. "\xcf\x6d\xd3\x52\xb4\xce\xa6\xfa"
  32696. "\xaa\xfb\x1b\x0b\x42\x6d\x79\x42"
  32697. "\x48\x70\x5b\x0e\xdd\x3a\xc9\x69"
  32698. "\x8b\x73\x67\xf6\x95\xdb\x8c\xfb"
  32699. "\xfd\xb5\x08\x47\x42\x84\x9a\xfa"
  32700. "\xcc\x67\xb2\x3c\xb6\xfd\xd8\x32"
  32701. "\xd6\x04\xb6\x4a\xea\x53\x4b\xf5"
  32702. "\x94\x16\xad\xf0\x10\x2e\x2d\xb4"
  32703. "\x8b\xab\xe5\x89\xc7\x39\x12\xf3"
  32704. "\x8d\xb5\x96\x0b\x87\x5d\xa7\x7c"
  32705. "\xb0\xc2\xf6\x2e\x57\x97\x2c\xdc"
  32706. "\x54\x1c\x34\x72\xde\x0c\x68\x39"
  32707. "\x9d\x32\xa5\x75\x92\x13\x32\xea"
  32708. "\x90\x27\xbd\x5b\x1d\xb9\x21\x02"
  32709. "\x1c\xcc\xba\x97\x5e\x49\x58\xe8"
  32710. "\xac\x8b\xf3\xce\x3c\xf0\x00\xe9"
  32711. "\x6c\xae\xe9\x77\xdf\xf4\x02\xcd"
  32712. "\x55\x25\x89\x9e\x90\xf3\x6b\x8f"
  32713. "\xb7\xd6\x47\x98\x26\x2f\x31\x2f"
  32714. "\x8d\xbf\x54\xcd\x99\xeb\x80\xd7"
  32715. "\xac\xc3\x08\xc2\xa6\x32\xf1\x24"
  32716. "\x76\x7c\x4f\x78\x53\x55\xfb\x00"
  32717. "\x8a\xd6\x52\x53\x25\x45\xfb\x0a"
  32718. "\x6b\xb9\xbe\x3c\x5e\x11\xcc\x6a"
  32719. "\xdd\xfc\xa7\xc4\x79\x4d\xbd\xfb"
  32720. "\xce\x3a\xf1\x7a\xda\xeb\xfe\x64"
  32721. "\x28\x3d\x0f\xee\x80\xba\x0c\xf8"
  32722. "\xe9\x5b\x3a\xd4\xae\xc9\xf3\x0e"
  32723. "\xe8\x5d\xc5\x5c\x0b\x20\x20\xee"
  32724. "\x40\x0d\xde\x07\xa7\x14\xb4\x90"
  32725. "\xb6\xbd\x3b\xae\x7d\x2b\xa7\xc7"
  32726. "\xdc\x0b\x4c\x5d\x65\xb0\xd2\xc5"
  32727. "\x79\x61\x23\xe0\xa2\x99\x73\x55"
  32728. "\xad\xc6\xfb\xc7\x54\xb5\x98\x1f"
  32729. "\x8c\x86\xc2\x3f\xbe\x5e\xea\x64"
  32730. "\xa3\x60\x18\x9f\x80\xaf\x52\x74"
  32731. "\x1a\xfe\x22\xc2\x92\x67\x40\x02"
  32732. "\x08\xee\x67\x5b\x67\xe0\x3d\xde"
  32733. "\x7a\xaf\x8e\x28\xf3\x5e\x0e\xf4"
  32734. "\x48\x56\xaa\x85\x22\xd8\x36\xed"
  32735. "\x3b\x3d\x68\x69\x30\xbc\x71\x23"
  32736. "\xb1\x6e\x61\x03\x89\x44\x03\xf4"
  32737. "\x32\xaa\x4c\x40\x9f\x69\xfb\x70"
  32738. "\x91\xcc\x1f\x11\xbd\x76\x67\xe6"
  32739. "\x10\x8b\x29\x39\x68\xea\x4e\x6d"
  32740. "\xae\xfb\x40\xcf\xe2\xd0\x0d\x8d"
  32741. "\x6f\xed\x9b\x8d\x64\x7a\x94\x8e"
  32742. "\x32\x38\x78\xeb\x7d\x5f\xf9\x4d"
  32743. "\x13\xbe\x21\xea\x16\xe7\x5c\xee"
  32744. "\xcd\xf6\x5f\xc6\x45\xb2\x8f\x2b"
  32745. "\xb5\x93\x3e\x45\xdb\xfd\xa2\x6a"
  32746. "\xec\x83\x92\x99\x87\x47\xe0\x7c"
  32747. "\xa2\x7b\xc4\x2a\xcd\xc0\x81\x03"
  32748. "\x98\xb0\x87\xb6\x86\x13\x64\x33"
  32749. "\x4c\xd7\x99\xbf\xdb\x7b\x6e\xaa"
  32750. "\x76\xcc\xa0\x74\x1b\xa3\x6e\x83"
  32751. "\xd4\xba\x7a\x84\x9d\x91\x71\xcd"
  32752. "\x60\x2d\x56\xfd\x26\x35\xcb\xeb"
  32753. "\xac\xe9\xee\xa4\xfc\x18\x5b\x91"
  32754. "\xd5\xfe\x84\x45\xe0\xc7\xfd\x11"
  32755. "\xe9\x00\xb6\x54\xdf\xe1\x94\xde"
  32756. "\x2b\x70\x9f\x94\x7f\x15\x0e\x83"
  32757. "\x63\x10\xb3\xf5\xea\xd3\xe8\xd1"
  32758. "\xa5\xfc\x17\x19\x68\x9a\xbc\x17"
  32759. "\x30\x43\x0a\x1a\x33\x92\xd4\x2a"
  32760. "\x2e\x68\x99\xbc\x49\xf0\x68\xe3"
  32761. "\xf0\x1f\xcb\xcc\xfa\xbb\x05\x56"
  32762. "\x46\x84\x8b\x69\x83\x64\xc5\xe0"
  32763. "\xc5\x52\x99\x07\x3c\xa6\x5c\xaf"
  32764. "\xa3\xde\xd7\xdb\x43\xe6\xb7\x76"
  32765. "\x4e\x4d\xd6\x71\x60\x63\x4a\x0c"
  32766. "\x5f\xae\x25\x84\x22\x90\x5f\x26"
  32767. "\x61\x4d\x8f\xaf\xc9\x22\xf2\x05"
  32768. "\xcf\xc1\xdc\x68\xe5\x57\x8e\x24"
  32769. "\x1b\x30\x59\xca\xd7\x0d\xc3\xd3"
  32770. "\x52\x9e\x09\x3e\x0e\xaf\xdb\x5f"
  32771. "\xc7\x2b\xde\x3a\xfd\xad\x93\x04"
  32772. "\x74\x06\x89\x0e\x90\xeb\x85\xff"
  32773. "\xe6\x3c\x12\x42\xf4\xfa\x80\x75"
  32774. "\x5e\x4e\xd7\x2f\x93\x0b\x34\x41"
  32775. "\x02\x85\x68\xd0\x03\x12\xde\x92"
  32776. "\x54\x7a\x7e\xfb\x55\xe7\x88\xfb"
  32777. "\xa4\xa9\xf2\xd1\xc6\x70\x06\x37"
  32778. "\x25\xee\xa7\x6e\xd9\x89\x86\x50"
  32779. "\x2e\x07\xdb\xfb\x2a\x86\x45\x0e"
  32780. "\x91\xf4\x7c\xbb\x12\x60\xe8\x3f"
  32781. "\x71\xbe\x8f\x9d\x26\xef\xd9\x89"
  32782. "\xc4\x8f\xd8\xc5\x73\xd8\x84\xaa"
  32783. "\x2f\xad\x22\x1e\x7e\xcf\xa2\x08"
  32784. "\x23\x45\x89\x42\xa0\x30\xeb\xbf"
  32785. "\xa1\xed\xad\xd5\x76\xfa\x24\x8f"
  32786. "\x98",
  32787. .rlen = 1281,
  32788. },
  32789. };
  32790. /*
  32791. * CTS (Cipher Text Stealing) mode tests
  32792. */
  32793. #define CTS_MODE_ENC_TEST_VECTORS 6
  32794. #define CTS_MODE_DEC_TEST_VECTORS 6
  32795. static struct cipher_testvec cts_mode_enc_tv_template[] = {
  32796. { /* from rfc3962 */
  32797. .klen = 16,
  32798. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  32799. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  32800. .ilen = 17,
  32801. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  32802. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  32803. "\x20",
  32804. .rlen = 17,
  32805. .result = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
  32806. "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
  32807. "\x97",
  32808. }, {
  32809. .klen = 16,
  32810. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  32811. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  32812. .ilen = 31,
  32813. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  32814. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  32815. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  32816. "\x20\x47\x61\x75\x27\x73\x20",
  32817. .rlen = 31,
  32818. .result = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
  32819. "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
  32820. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  32821. "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
  32822. }, {
  32823. .klen = 16,
  32824. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  32825. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  32826. .ilen = 32,
  32827. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  32828. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  32829. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  32830. "\x20\x47\x61\x75\x27\x73\x20\x43",
  32831. .rlen = 32,
  32832. .result = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  32833. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  32834. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  32835. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
  32836. }, {
  32837. .klen = 16,
  32838. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  32839. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  32840. .ilen = 47,
  32841. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  32842. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  32843. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  32844. "\x20\x47\x61\x75\x27\x73\x20\x43"
  32845. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  32846. "\x70\x6c\x65\x61\x73\x65\x2c",
  32847. .rlen = 47,
  32848. .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  32849. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  32850. "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
  32851. "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
  32852. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  32853. "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
  32854. }, {
  32855. .klen = 16,
  32856. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  32857. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  32858. .ilen = 48,
  32859. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  32860. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  32861. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  32862. "\x20\x47\x61\x75\x27\x73\x20\x43"
  32863. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  32864. "\x70\x6c\x65\x61\x73\x65\x2c\x20",
  32865. .rlen = 48,
  32866. .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  32867. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  32868. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  32869. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
  32870. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  32871. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
  32872. }, {
  32873. .klen = 16,
  32874. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  32875. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  32876. .ilen = 64,
  32877. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  32878. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  32879. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  32880. "\x20\x47\x61\x75\x27\x73\x20\x43"
  32881. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  32882. "\x70\x6c\x65\x61\x73\x65\x2c\x20"
  32883. "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
  32884. "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
  32885. .rlen = 64,
  32886. .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  32887. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  32888. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  32889. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  32890. "\x48\x07\xef\xe8\x36\xee\x89\xa5"
  32891. "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
  32892. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  32893. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
  32894. }
  32895. };
  32896. static struct cipher_testvec cts_mode_dec_tv_template[] = {
  32897. { /* from rfc3962 */
  32898. .klen = 16,
  32899. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  32900. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  32901. .rlen = 17,
  32902. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  32903. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  32904. "\x20",
  32905. .ilen = 17,
  32906. .input = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
  32907. "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
  32908. "\x97",
  32909. }, {
  32910. .klen = 16,
  32911. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  32912. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  32913. .rlen = 31,
  32914. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  32915. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  32916. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  32917. "\x20\x47\x61\x75\x27\x73\x20",
  32918. .ilen = 31,
  32919. .input = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
  32920. "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
  32921. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  32922. "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
  32923. }, {
  32924. .klen = 16,
  32925. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  32926. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  32927. .rlen = 32,
  32928. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  32929. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  32930. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  32931. "\x20\x47\x61\x75\x27\x73\x20\x43",
  32932. .ilen = 32,
  32933. .input = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  32934. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  32935. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  32936. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
  32937. }, {
  32938. .klen = 16,
  32939. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  32940. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  32941. .rlen = 47,
  32942. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  32943. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  32944. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  32945. "\x20\x47\x61\x75\x27\x73\x20\x43"
  32946. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  32947. "\x70\x6c\x65\x61\x73\x65\x2c",
  32948. .ilen = 47,
  32949. .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  32950. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  32951. "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
  32952. "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
  32953. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  32954. "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
  32955. }, {
  32956. .klen = 16,
  32957. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  32958. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  32959. .rlen = 48,
  32960. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  32961. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  32962. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  32963. "\x20\x47\x61\x75\x27\x73\x20\x43"
  32964. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  32965. "\x70\x6c\x65\x61\x73\x65\x2c\x20",
  32966. .ilen = 48,
  32967. .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  32968. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  32969. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  32970. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
  32971. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  32972. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
  32973. }, {
  32974. .klen = 16,
  32975. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  32976. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  32977. .rlen = 64,
  32978. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  32979. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  32980. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  32981. "\x20\x47\x61\x75\x27\x73\x20\x43"
  32982. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  32983. "\x70\x6c\x65\x61\x73\x65\x2c\x20"
  32984. "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
  32985. "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
  32986. .ilen = 64,
  32987. .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  32988. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  32989. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  32990. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  32991. "\x48\x07\xef\xe8\x36\xee\x89\xa5"
  32992. "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
  32993. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  32994. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
  32995. }
  32996. };
  32997. /*
  32998. * Compression stuff.
  32999. */
  33000. #define COMP_BUF_SIZE 512
  33001. struct comp_testvec {
  33002. int inlen, outlen;
  33003. char input[COMP_BUF_SIZE];
  33004. char output[COMP_BUF_SIZE];
  33005. };
  33006. /*
  33007. * Deflate test vectors (null-terminated strings).
  33008. * Params: winbits=-11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL.
  33009. */
  33010. #define DEFLATE_COMP_TEST_VECTORS 2
  33011. #define DEFLATE_DECOMP_TEST_VECTORS 2
  33012. static struct comp_testvec deflate_comp_tv_template[] = {
  33013. {
  33014. .inlen = 70,
  33015. .outlen = 38,
  33016. .input = "Join us now and share the software "
  33017. "Join us now and share the software ",
  33018. .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  33019. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  33020. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  33021. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  33022. "\x71\xbc\x08\x2b\x01\x00",
  33023. }, {
  33024. .inlen = 191,
  33025. .outlen = 122,
  33026. .input = "This document describes a compression method based on the DEFLATE"
  33027. "compression algorithm. This document defines the application of "
  33028. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  33029. .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  33030. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  33031. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  33032. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  33033. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  33034. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  33035. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  33036. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  33037. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  33038. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  33039. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  33040. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  33041. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  33042. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  33043. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  33044. "\xfa\x02",
  33045. },
  33046. };
  33047. static struct comp_testvec deflate_decomp_tv_template[] = {
  33048. {
  33049. .inlen = 122,
  33050. .outlen = 191,
  33051. .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  33052. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  33053. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  33054. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  33055. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  33056. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  33057. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  33058. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  33059. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  33060. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  33061. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  33062. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  33063. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  33064. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  33065. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  33066. "\xfa\x02",
  33067. .output = "This document describes a compression method based on the DEFLATE"
  33068. "compression algorithm. This document defines the application of "
  33069. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  33070. }, {
  33071. .inlen = 38,
  33072. .outlen = 70,
  33073. .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  33074. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  33075. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  33076. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  33077. "\x71\xbc\x08\x2b\x01\x00",
  33078. .output = "Join us now and share the software "
  33079. "Join us now and share the software ",
  33080. },
  33081. };
  33082. /*
  33083. * LZO test vectors (null-terminated strings).
  33084. */
  33085. #define LZO_COMP_TEST_VECTORS 2
  33086. #define LZO_DECOMP_TEST_VECTORS 2
  33087. static struct comp_testvec lzo_comp_tv_template[] = {
  33088. {
  33089. .inlen = 70,
  33090. .outlen = 57,
  33091. .input = "Join us now and share the software "
  33092. "Join us now and share the software ",
  33093. .output = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
  33094. "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
  33095. "\x64\x20\x73\x68\x61\x72\x65\x20"
  33096. "\x74\x68\x65\x20\x73\x6f\x66\x74"
  33097. "\x77\x70\x01\x32\x88\x00\x0c\x65"
  33098. "\x20\x74\x68\x65\x20\x73\x6f\x66"
  33099. "\x74\x77\x61\x72\x65\x20\x11\x00"
  33100. "\x00",
  33101. }, {
  33102. .inlen = 159,
  33103. .outlen = 131,
  33104. .input = "This document describes a compression method based on the LZO "
  33105. "compression algorithm. This document defines the application of "
  33106. "the LZO algorithm used in UBIFS.",
  33107. .output = "\x00\x2c\x54\x68\x69\x73\x20\x64"
  33108. "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
  33109. "\x64\x65\x73\x63\x72\x69\x62\x65"
  33110. "\x73\x20\x61\x20\x63\x6f\x6d\x70"
  33111. "\x72\x65\x73\x73\x69\x6f\x6e\x20"
  33112. "\x6d\x65\x74\x68\x6f\x64\x20\x62"
  33113. "\x61\x73\x65\x64\x20\x6f\x6e\x20"
  33114. "\x74\x68\x65\x20\x4c\x5a\x4f\x20"
  33115. "\x2a\x8c\x00\x09\x61\x6c\x67\x6f"
  33116. "\x72\x69\x74\x68\x6d\x2e\x20\x20"
  33117. "\x2e\x54\x01\x03\x66\x69\x6e\x65"
  33118. "\x73\x20\x74\x06\x05\x61\x70\x70"
  33119. "\x6c\x69\x63\x61\x74\x76\x0a\x6f"
  33120. "\x66\x88\x02\x60\x09\x27\xf0\x00"
  33121. "\x0c\x20\x75\x73\x65\x64\x20\x69"
  33122. "\x6e\x20\x55\x42\x49\x46\x53\x2e"
  33123. "\x11\x00\x00",
  33124. },
  33125. };
  33126. static struct comp_testvec lzo_decomp_tv_template[] = {
  33127. {
  33128. .inlen = 133,
  33129. .outlen = 159,
  33130. .input = "\x00\x2b\x54\x68\x69\x73\x20\x64"
  33131. "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
  33132. "\x64\x65\x73\x63\x72\x69\x62\x65"
  33133. "\x73\x20\x61\x20\x63\x6f\x6d\x70"
  33134. "\x72\x65\x73\x73\x69\x6f\x6e\x20"
  33135. "\x6d\x65\x74\x68\x6f\x64\x20\x62"
  33136. "\x61\x73\x65\x64\x20\x6f\x6e\x20"
  33137. "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
  33138. "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
  33139. "\x69\x74\x68\x6d\x2e\x20\x20\x54"
  33140. "\x68\x69\x73\x2a\x54\x01\x02\x66"
  33141. "\x69\x6e\x65\x73\x94\x06\x05\x61"
  33142. "\x70\x70\x6c\x69\x63\x61\x74\x76"
  33143. "\x0a\x6f\x66\x88\x02\x60\x09\x27"
  33144. "\xf0\x00\x0c\x20\x75\x73\x65\x64"
  33145. "\x20\x69\x6e\x20\x55\x42\x49\x46"
  33146. "\x53\x2e\x11\x00\x00",
  33147. .output = "This document describes a compression method based on the LZO "
  33148. "compression algorithm. This document defines the application of "
  33149. "the LZO algorithm used in UBIFS.",
  33150. }, {
  33151. .inlen = 46,
  33152. .outlen = 70,
  33153. .input = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
  33154. "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
  33155. "\x64\x20\x73\x68\x61\x72\x65\x20"
  33156. "\x74\x68\x65\x20\x73\x6f\x66\x74"
  33157. "\x77\x70\x01\x01\x4a\x6f\x69\x6e"
  33158. "\x3d\x88\x00\x11\x00\x00",
  33159. .output = "Join us now and share the software "
  33160. "Join us now and share the software ",
  33161. },
  33162. };
  33163. /*
  33164. * Michael MIC test vectors from IEEE 802.11i
  33165. */
  33166. #define MICHAEL_MIC_TEST_VECTORS 6
  33167. static struct hash_testvec michael_mic_tv_template[] = {
  33168. {
  33169. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  33170. .ksize = 8,
  33171. .plaintext = zeroed_string,
  33172. .psize = 0,
  33173. .digest = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
  33174. },
  33175. {
  33176. .key = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
  33177. .ksize = 8,
  33178. .plaintext = "M",
  33179. .psize = 1,
  33180. .digest = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
  33181. },
  33182. {
  33183. .key = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
  33184. .ksize = 8,
  33185. .plaintext = "Mi",
  33186. .psize = 2,
  33187. .digest = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
  33188. },
  33189. {
  33190. .key = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
  33191. .ksize = 8,
  33192. .plaintext = "Mic",
  33193. .psize = 3,
  33194. .digest = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
  33195. },
  33196. {
  33197. .key = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
  33198. .ksize = 8,
  33199. .plaintext = "Mich",
  33200. .psize = 4,
  33201. .digest = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
  33202. },
  33203. {
  33204. .key = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
  33205. .ksize = 8,
  33206. .plaintext = "Michael",
  33207. .psize = 7,
  33208. .digest = "\x0a\x94\x2b\x12\x4e\xca\xa5\x46",
  33209. }
  33210. };
  33211. /*
  33212. * CRC32 test vectors
  33213. */
  33214. #define CRC32_TEST_VECTORS 14
  33215. static struct hash_testvec crc32_tv_template[] = {
  33216. {
  33217. .key = "\x87\xa9\xcb\xed",
  33218. .ksize = 4,
  33219. .psize = 0,
  33220. .digest = "\x87\xa9\xcb\xed",
  33221. },
  33222. {
  33223. .key = "\xff\xff\xff\xff",
  33224. .ksize = 4,
  33225. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  33226. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  33227. "\x11\x12\x13\x14\x15\x16\x17\x18"
  33228. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  33229. "\x21\x22\x23\x24\x25\x26\x27\x28",
  33230. .psize = 40,
  33231. .digest = "\x3a\xdf\x4b\xb0",
  33232. },
  33233. {
  33234. .key = "\xff\xff\xff\xff",
  33235. .ksize = 4,
  33236. .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  33237. "\x31\x32\x33\x34\x35\x36\x37\x38"
  33238. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  33239. "\x41\x42\x43\x44\x45\x46\x47\x48"
  33240. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
  33241. .psize = 40,
  33242. .digest = "\xa9\x7a\x7f\x7b",
  33243. },
  33244. {
  33245. .key = "\xff\xff\xff\xff",
  33246. .ksize = 4,
  33247. .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
  33248. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  33249. "\x61\x62\x63\x64\x65\x66\x67\x68"
  33250. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  33251. "\x71\x72\x73\x74\x75\x76\x77\x78",
  33252. .psize = 40,
  33253. .digest = "\xba\xd3\xf8\x1c",
  33254. },
  33255. {
  33256. .key = "\xff\xff\xff\xff",
  33257. .ksize = 4,
  33258. .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  33259. "\x81\x82\x83\x84\x85\x86\x87\x88"
  33260. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  33261. "\x91\x92\x93\x94\x95\x96\x97\x98"
  33262. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
  33263. .psize = 40,
  33264. .digest = "\xa8\xa9\xc2\x02",
  33265. },
  33266. {
  33267. .key = "\xff\xff\xff\xff",
  33268. .ksize = 4,
  33269. .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  33270. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  33271. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  33272. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  33273. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
  33274. .psize = 40,
  33275. .digest = "\x27\xf0\x57\xe2",
  33276. },
  33277. {
  33278. .key = "\xff\xff\xff\xff",
  33279. .ksize = 4,
  33280. .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  33281. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  33282. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  33283. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  33284. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  33285. .psize = 40,
  33286. .digest = "\x49\x78\x10\x08",
  33287. },
  33288. {
  33289. .key = "\x80\xea\xd3\xf1",
  33290. .ksize = 4,
  33291. .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  33292. "\x31\x32\x33\x34\x35\x36\x37\x38"
  33293. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  33294. "\x41\x42\x43\x44\x45\x46\x47\x48"
  33295. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
  33296. .psize = 40,
  33297. .digest = "\x9a\xb1\xdc\xf0",
  33298. },
  33299. {
  33300. .key = "\xf3\x4a\x1d\x5d",
  33301. .ksize = 4,
  33302. .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
  33303. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  33304. "\x61\x62\x63\x64\x65\x66\x67\x68"
  33305. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  33306. "\x71\x72\x73\x74\x75\x76\x77\x78",
  33307. .psize = 40,
  33308. .digest = "\xb4\x97\xcc\xd4",
  33309. },
  33310. {
  33311. .key = "\x2e\x80\x04\x59",
  33312. .ksize = 4,
  33313. .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  33314. "\x81\x82\x83\x84\x85\x86\x87\x88"
  33315. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  33316. "\x91\x92\x93\x94\x95\x96\x97\x98"
  33317. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
  33318. .psize = 40,
  33319. .digest = "\x67\x9b\xfa\x79",
  33320. },
  33321. {
  33322. .key = "\xa6\xcc\x19\x85",
  33323. .ksize = 4,
  33324. .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  33325. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  33326. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  33327. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  33328. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
  33329. .psize = 40,
  33330. .digest = "\x24\xb5\x16\xef",
  33331. },
  33332. {
  33333. .key = "\x41\xfc\xfe\x2d",
  33334. .ksize = 4,
  33335. .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  33336. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  33337. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  33338. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  33339. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  33340. .psize = 40,
  33341. .digest = "\x15\x94\x80\x39",
  33342. },
  33343. {
  33344. .key = "\xff\xff\xff\xff",
  33345. .ksize = 4,
  33346. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  33347. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  33348. "\x11\x12\x13\x14\x15\x16\x17\x18"
  33349. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  33350. "\x21\x22\x23\x24\x25\x26\x27\x28"
  33351. "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  33352. "\x31\x32\x33\x34\x35\x36\x37\x38"
  33353. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  33354. "\x41\x42\x43\x44\x45\x46\x47\x48"
  33355. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
  33356. "\x51\x52\x53\x54\x55\x56\x57\x58"
  33357. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  33358. "\x61\x62\x63\x64\x65\x66\x67\x68"
  33359. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  33360. "\x71\x72\x73\x74\x75\x76\x77\x78"
  33361. "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  33362. "\x81\x82\x83\x84\x85\x86\x87\x88"
  33363. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  33364. "\x91\x92\x93\x94\x95\x96\x97\x98"
  33365. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
  33366. "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  33367. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  33368. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  33369. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  33370. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
  33371. "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  33372. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  33373. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  33374. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  33375. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  33376. .psize = 240,
  33377. .digest = "\x6c\xc6\x56\xde",
  33378. .np = 2,
  33379. .tap = { 31, 209 }
  33380. }, {
  33381. .key = "\xff\xff\xff\xff",
  33382. .ksize = 4,
  33383. .plaintext = "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
  33384. "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
  33385. "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
  33386. "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
  33387. "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
  33388. "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
  33389. "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
  33390. "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
  33391. "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
  33392. "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
  33393. "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
  33394. "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
  33395. "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
  33396. "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
  33397. "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
  33398. "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
  33399. "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
  33400. "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
  33401. "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
  33402. "\x58\xef\x63\xfa\x91\x05\x9c\x33"
  33403. "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
  33404. "\x19\xb0\x47\xde\x52\xe9\x80\x17"
  33405. "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
  33406. "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
  33407. "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
  33408. "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
  33409. "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
  33410. "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
  33411. "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
  33412. "\x86\x1d\x91\x28\xbf\x33\xca\x61"
  33413. "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
  33414. "\x47\xde\x75\x0c\x80\x17\xae\x22"
  33415. "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
  33416. "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
  33417. "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
  33418. "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
  33419. "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
  33420. "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
  33421. "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
  33422. "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
  33423. "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
  33424. "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
  33425. "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
  33426. "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
  33427. "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
  33428. "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
  33429. "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
  33430. "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
  33431. "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
  33432. "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
  33433. "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
  33434. "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
  33435. "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
  33436. "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
  33437. "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
  33438. "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
  33439. "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
  33440. "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
  33441. "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
  33442. "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
  33443. "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
  33444. "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
  33445. "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
  33446. "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
  33447. "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
  33448. "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
  33449. "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
  33450. "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
  33451. "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
  33452. "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
  33453. "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
  33454. "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
  33455. "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
  33456. "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
  33457. "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
  33458. "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
  33459. "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
  33460. "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
  33461. "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
  33462. "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
  33463. "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
  33464. "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
  33465. "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
  33466. "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
  33467. "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
  33468. "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
  33469. "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
  33470. "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
  33471. "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
  33472. "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
  33473. "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
  33474. "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
  33475. "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
  33476. "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
  33477. "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
  33478. "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
  33479. "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
  33480. "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
  33481. "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
  33482. "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
  33483. "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
  33484. "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
  33485. "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
  33486. "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
  33487. "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
  33488. "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
  33489. "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
  33490. "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
  33491. "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
  33492. "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
  33493. "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
  33494. "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
  33495. "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
  33496. "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
  33497. "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
  33498. "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
  33499. "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
  33500. "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
  33501. "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
  33502. "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
  33503. "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
  33504. "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
  33505. "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
  33506. "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
  33507. "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
  33508. "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
  33509. "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
  33510. "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
  33511. "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
  33512. "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
  33513. "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
  33514. "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
  33515. "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
  33516. "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
  33517. "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
  33518. "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
  33519. "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
  33520. "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
  33521. "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
  33522. "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
  33523. "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
  33524. "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
  33525. "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
  33526. "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
  33527. "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
  33528. "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
  33529. "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
  33530. "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
  33531. "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
  33532. "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
  33533. "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
  33534. "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
  33535. "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
  33536. "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
  33537. "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
  33538. "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
  33539. "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
  33540. "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
  33541. "\x47\xde\x52\xe9\x80\x17\x8b\x22"
  33542. "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
  33543. "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
  33544. "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
  33545. "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
  33546. "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
  33547. "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
  33548. "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
  33549. "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
  33550. "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
  33551. "\x75\x0c\x80\x17\xae\x22\xb9\x50"
  33552. "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
  33553. "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
  33554. "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
  33555. "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
  33556. "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
  33557. "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
  33558. "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
  33559. "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
  33560. "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
  33561. "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
  33562. "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
  33563. "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
  33564. "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
  33565. "\x48\xdf\x53\xea\x81\x18\x8c\x23"
  33566. "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
  33567. "\x09\xa0\x37\xce\x42\xd9\x70\x07"
  33568. "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
  33569. "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
  33570. "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
  33571. "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
  33572. "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
  33573. "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
  33574. "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
  33575. "\x76\x0d\x81\x18\xaf\x23\xba\x51"
  33576. "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
  33577. "\x37\xce\x65\xfc\x70\x07\x9e\x12"
  33578. "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
  33579. "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
  33580. "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
  33581. "\xff\x73\x0a\xa1\x15\xac\x43\xda"
  33582. "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
  33583. "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
  33584. "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
  33585. "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
  33586. "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
  33587. "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
  33588. "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
  33589. "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
  33590. "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
  33591. "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
  33592. "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
  33593. "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
  33594. "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
  33595. "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
  33596. "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
  33597. "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
  33598. "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
  33599. "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
  33600. "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
  33601. "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
  33602. "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
  33603. "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
  33604. "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
  33605. "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
  33606. "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
  33607. "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
  33608. "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
  33609. "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
  33610. "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
  33611. "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
  33612. "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
  33613. "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
  33614. "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
  33615. "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
  33616. "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
  33617. "\xef\x86\x1d\x91\x28\xbf\x33\xca"
  33618. "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
  33619. "\xd3\x47\xde\x75\x0c\x80\x17\xae"
  33620. "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
  33621. "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
  33622. "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
  33623. "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
  33624. "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
  33625. "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
  33626. "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
  33627. "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
  33628. "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
  33629. "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
  33630. "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
  33631. "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
  33632. "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
  33633. "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
  33634. "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
  33635. "\x67\xfe\x95\x09\xa0\x37\xce\x42"
  33636. "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
  33637. "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
  33638. "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
  33639. .psize = 2048,
  33640. .digest = "\xfb\x3a\x7a\xda",
  33641. }
  33642. };
  33643. /*
  33644. * CRC32C test vectors
  33645. */
  33646. #define CRC32C_TEST_VECTORS 15
  33647. static struct hash_testvec crc32c_tv_template[] = {
  33648. {
  33649. .psize = 0,
  33650. .digest = "\x00\x00\x00\x00",
  33651. },
  33652. {
  33653. .key = "\x87\xa9\xcb\xed",
  33654. .ksize = 4,
  33655. .psize = 0,
  33656. .digest = "\x78\x56\x34\x12",
  33657. },
  33658. {
  33659. .key = "\xff\xff\xff\xff",
  33660. .ksize = 4,
  33661. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  33662. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  33663. "\x11\x12\x13\x14\x15\x16\x17\x18"
  33664. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  33665. "\x21\x22\x23\x24\x25\x26\x27\x28",
  33666. .psize = 40,
  33667. .digest = "\x7f\x15\x2c\x0e",
  33668. },
  33669. {
  33670. .key = "\xff\xff\xff\xff",
  33671. .ksize = 4,
  33672. .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  33673. "\x31\x32\x33\x34\x35\x36\x37\x38"
  33674. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  33675. "\x41\x42\x43\x44\x45\x46\x47\x48"
  33676. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
  33677. .psize = 40,
  33678. .digest = "\xf6\xeb\x80\xe9",
  33679. },
  33680. {
  33681. .key = "\xff\xff\xff\xff",
  33682. .ksize = 4,
  33683. .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
  33684. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  33685. "\x61\x62\x63\x64\x65\x66\x67\x68"
  33686. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  33687. "\x71\x72\x73\x74\x75\x76\x77\x78",
  33688. .psize = 40,
  33689. .digest = "\xed\xbd\x74\xde",
  33690. },
  33691. {
  33692. .key = "\xff\xff\xff\xff",
  33693. .ksize = 4,
  33694. .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  33695. "\x81\x82\x83\x84\x85\x86\x87\x88"
  33696. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  33697. "\x91\x92\x93\x94\x95\x96\x97\x98"
  33698. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
  33699. .psize = 40,
  33700. .digest = "\x62\xc8\x79\xd5",
  33701. },
  33702. {
  33703. .key = "\xff\xff\xff\xff",
  33704. .ksize = 4,
  33705. .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  33706. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  33707. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  33708. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  33709. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
  33710. .psize = 40,
  33711. .digest = "\xd0\x9a\x97\xba",
  33712. },
  33713. {
  33714. .key = "\xff\xff\xff\xff",
  33715. .ksize = 4,
  33716. .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  33717. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  33718. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  33719. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  33720. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  33721. .psize = 40,
  33722. .digest = "\x13\xd9\x29\x2b",
  33723. },
  33724. {
  33725. .key = "\x80\xea\xd3\xf1",
  33726. .ksize = 4,
  33727. .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  33728. "\x31\x32\x33\x34\x35\x36\x37\x38"
  33729. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  33730. "\x41\x42\x43\x44\x45\x46\x47\x48"
  33731. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
  33732. .psize = 40,
  33733. .digest = "\x0c\xb5\xe2\xa2",
  33734. },
  33735. {
  33736. .key = "\xf3\x4a\x1d\x5d",
  33737. .ksize = 4,
  33738. .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
  33739. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  33740. "\x61\x62\x63\x64\x65\x66\x67\x68"
  33741. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  33742. "\x71\x72\x73\x74\x75\x76\x77\x78",
  33743. .psize = 40,
  33744. .digest = "\xd1\x7f\xfb\xa6",
  33745. },
  33746. {
  33747. .key = "\x2e\x80\x04\x59",
  33748. .ksize = 4,
  33749. .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  33750. "\x81\x82\x83\x84\x85\x86\x87\x88"
  33751. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  33752. "\x91\x92\x93\x94\x95\x96\x97\x98"
  33753. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
  33754. .psize = 40,
  33755. .digest = "\x59\x33\xe6\x7a",
  33756. },
  33757. {
  33758. .key = "\xa6\xcc\x19\x85",
  33759. .ksize = 4,
  33760. .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  33761. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  33762. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  33763. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  33764. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
  33765. .psize = 40,
  33766. .digest = "\xbe\x03\x01\xd2",
  33767. },
  33768. {
  33769. .key = "\x41\xfc\xfe\x2d",
  33770. .ksize = 4,
  33771. .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  33772. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  33773. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  33774. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  33775. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  33776. .psize = 40,
  33777. .digest = "\x75\xd3\xc5\x24",
  33778. },
  33779. {
  33780. .key = "\xff\xff\xff\xff",
  33781. .ksize = 4,
  33782. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  33783. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  33784. "\x11\x12\x13\x14\x15\x16\x17\x18"
  33785. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  33786. "\x21\x22\x23\x24\x25\x26\x27\x28"
  33787. "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  33788. "\x31\x32\x33\x34\x35\x36\x37\x38"
  33789. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  33790. "\x41\x42\x43\x44\x45\x46\x47\x48"
  33791. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
  33792. "\x51\x52\x53\x54\x55\x56\x57\x58"
  33793. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  33794. "\x61\x62\x63\x64\x65\x66\x67\x68"
  33795. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  33796. "\x71\x72\x73\x74\x75\x76\x77\x78"
  33797. "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  33798. "\x81\x82\x83\x84\x85\x86\x87\x88"
  33799. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  33800. "\x91\x92\x93\x94\x95\x96\x97\x98"
  33801. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
  33802. "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  33803. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  33804. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  33805. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  33806. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
  33807. "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  33808. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  33809. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  33810. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  33811. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  33812. .psize = 240,
  33813. .digest = "\x75\xd3\xc5\x24",
  33814. .np = 2,
  33815. .tap = { 31, 209 }
  33816. }, {
  33817. .key = "\xff\xff\xff\xff",
  33818. .ksize = 4,
  33819. .plaintext = "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
  33820. "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
  33821. "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
  33822. "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
  33823. "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
  33824. "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
  33825. "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
  33826. "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
  33827. "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
  33828. "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
  33829. "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
  33830. "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
  33831. "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
  33832. "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
  33833. "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
  33834. "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
  33835. "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
  33836. "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
  33837. "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
  33838. "\x58\xef\x63\xfa\x91\x05\x9c\x33"
  33839. "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
  33840. "\x19\xb0\x47\xde\x52\xe9\x80\x17"
  33841. "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
  33842. "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
  33843. "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
  33844. "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
  33845. "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
  33846. "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
  33847. "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
  33848. "\x86\x1d\x91\x28\xbf\x33\xca\x61"
  33849. "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
  33850. "\x47\xde\x75\x0c\x80\x17\xae\x22"
  33851. "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
  33852. "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
  33853. "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
  33854. "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
  33855. "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
  33856. "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
  33857. "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
  33858. "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
  33859. "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
  33860. "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
  33861. "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
  33862. "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
  33863. "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
  33864. "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
  33865. "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
  33866. "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
  33867. "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
  33868. "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
  33869. "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
  33870. "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
  33871. "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
  33872. "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
  33873. "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
  33874. "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
  33875. "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
  33876. "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
  33877. "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
  33878. "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
  33879. "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
  33880. "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
  33881. "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
  33882. "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
  33883. "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
  33884. "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
  33885. "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
  33886. "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
  33887. "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
  33888. "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
  33889. "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
  33890. "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
  33891. "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
  33892. "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
  33893. "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
  33894. "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
  33895. "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
  33896. "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
  33897. "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
  33898. "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
  33899. "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
  33900. "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
  33901. "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
  33902. "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
  33903. "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
  33904. "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
  33905. "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
  33906. "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
  33907. "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
  33908. "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
  33909. "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
  33910. "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
  33911. "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
  33912. "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
  33913. "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
  33914. "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
  33915. "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
  33916. "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
  33917. "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
  33918. "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
  33919. "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
  33920. "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
  33921. "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
  33922. "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
  33923. "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
  33924. "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
  33925. "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
  33926. "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
  33927. "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
  33928. "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
  33929. "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
  33930. "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
  33931. "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
  33932. "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
  33933. "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
  33934. "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
  33935. "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
  33936. "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
  33937. "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
  33938. "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
  33939. "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
  33940. "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
  33941. "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
  33942. "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
  33943. "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
  33944. "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
  33945. "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
  33946. "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
  33947. "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
  33948. "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
  33949. "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
  33950. "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
  33951. "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
  33952. "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
  33953. "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
  33954. "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
  33955. "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
  33956. "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
  33957. "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
  33958. "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
  33959. "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
  33960. "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
  33961. "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
  33962. "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
  33963. "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
  33964. "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
  33965. "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
  33966. "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
  33967. "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
  33968. "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
  33969. "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
  33970. "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
  33971. "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
  33972. "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
  33973. "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
  33974. "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
  33975. "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
  33976. "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
  33977. "\x47\xde\x52\xe9\x80\x17\x8b\x22"
  33978. "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
  33979. "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
  33980. "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
  33981. "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
  33982. "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
  33983. "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
  33984. "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
  33985. "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
  33986. "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
  33987. "\x75\x0c\x80\x17\xae\x22\xb9\x50"
  33988. "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
  33989. "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
  33990. "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
  33991. "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
  33992. "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
  33993. "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
  33994. "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
  33995. "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
  33996. "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
  33997. "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
  33998. "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
  33999. "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
  34000. "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
  34001. "\x48\xdf\x53\xea\x81\x18\x8c\x23"
  34002. "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
  34003. "\x09\xa0\x37\xce\x42\xd9\x70\x07"
  34004. "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
  34005. "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
  34006. "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
  34007. "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
  34008. "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
  34009. "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
  34010. "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
  34011. "\x76\x0d\x81\x18\xaf\x23\xba\x51"
  34012. "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
  34013. "\x37\xce\x65\xfc\x70\x07\x9e\x12"
  34014. "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
  34015. "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
  34016. "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
  34017. "\xff\x73\x0a\xa1\x15\xac\x43\xda"
  34018. "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
  34019. "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
  34020. "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
  34021. "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
  34022. "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
  34023. "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
  34024. "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
  34025. "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
  34026. "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
  34027. "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
  34028. "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
  34029. "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
  34030. "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
  34031. "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
  34032. "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
  34033. "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
  34034. "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
  34035. "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
  34036. "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
  34037. "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
  34038. "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
  34039. "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
  34040. "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
  34041. "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
  34042. "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
  34043. "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
  34044. "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
  34045. "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
  34046. "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
  34047. "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
  34048. "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
  34049. "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
  34050. "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
  34051. "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
  34052. "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
  34053. "\xef\x86\x1d\x91\x28\xbf\x33\xca"
  34054. "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
  34055. "\xd3\x47\xde\x75\x0c\x80\x17\xae"
  34056. "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
  34057. "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
  34058. "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
  34059. "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
  34060. "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
  34061. "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
  34062. "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
  34063. "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
  34064. "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
  34065. "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
  34066. "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
  34067. "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
  34068. "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
  34069. "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
  34070. "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
  34071. "\x67\xfe\x95\x09\xa0\x37\xce\x42"
  34072. "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
  34073. "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
  34074. "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
  34075. .psize = 2048,
  34076. .digest = "\xec\x26\x4d\x95",
  34077. }
  34078. };
  34079. /*
  34080. * Blakcifn CRC test vectors
  34081. */
  34082. #define BFIN_CRC_TEST_VECTORS 6
  34083. static struct hash_testvec bfin_crc_tv_template[] = {
  34084. {
  34085. .psize = 0,
  34086. .digest = "\x00\x00\x00\x00",
  34087. },
  34088. {
  34089. .key = "\x87\xa9\xcb\xed",
  34090. .ksize = 4,
  34091. .psize = 0,
  34092. .digest = "\x87\xa9\xcb\xed",
  34093. },
  34094. {
  34095. .key = "\xff\xff\xff\xff",
  34096. .ksize = 4,
  34097. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  34098. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  34099. "\x11\x12\x13\x14\x15\x16\x17\x18"
  34100. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  34101. "\x21\x22\x23\x24\x25\x26\x27\x28",
  34102. .psize = 40,
  34103. .digest = "\x84\x0c\x8d\xa2",
  34104. },
  34105. {
  34106. .key = "\xff\xff\xff\xff",
  34107. .ksize = 4,
  34108. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  34109. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  34110. "\x11\x12\x13\x14\x15\x16\x17\x18"
  34111. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  34112. "\x21\x22\x23\x24\x25\x26",
  34113. .psize = 38,
  34114. .digest = "\x8c\x58\xec\xb7",
  34115. },
  34116. {
  34117. .key = "\xff\xff\xff\xff",
  34118. .ksize = 4,
  34119. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  34120. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  34121. "\x11\x12\x13\x14\x15\x16\x17\x18"
  34122. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  34123. "\x21\x22\x23\x24\x25\x26\x27",
  34124. .psize = 39,
  34125. .digest = "\xdc\x50\x28\x7b",
  34126. },
  34127. {
  34128. .key = "\xff\xff\xff\xff",
  34129. .ksize = 4,
  34130. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  34131. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  34132. "\x11\x12\x13\x14\x15\x16\x17\x18"
  34133. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  34134. "\x21\x22\x23\x24\x25\x26\x27\x28"
  34135. "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  34136. "\x31\x32\x33\x34\x35\x36\x37\x38"
  34137. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  34138. "\x41\x42\x43\x44\x45\x46\x47\x48"
  34139. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
  34140. "\x51\x52\x53\x54\x55\x56\x57\x58"
  34141. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  34142. "\x61\x62\x63\x64\x65\x66\x67\x68"
  34143. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  34144. "\x71\x72\x73\x74\x75\x76\x77\x78"
  34145. "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  34146. "\x81\x82\x83\x84\x85\x86\x87\x88"
  34147. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  34148. "\x91\x92\x93\x94\x95\x96\x97\x98"
  34149. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
  34150. "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  34151. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  34152. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  34153. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  34154. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
  34155. "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  34156. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  34157. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  34158. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  34159. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  34160. .psize = 240,
  34161. .digest = "\x10\x19\x4a\x5c",
  34162. .np = 2,
  34163. .tap = { 31, 209 }
  34164. },
  34165. };
  34166. #define LZ4_COMP_TEST_VECTORS 1
  34167. #define LZ4_DECOMP_TEST_VECTORS 1
  34168. static struct comp_testvec lz4_comp_tv_template[] = {
  34169. {
  34170. .inlen = 70,
  34171. .outlen = 45,
  34172. .input = "Join us now and share the software "
  34173. "Join us now and share the software ",
  34174. .output = "\xf0\x10\x4a\x6f\x69\x6e\x20\x75"
  34175. "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
  34176. "\x64\x20\x73\x68\x61\x72\x65\x20"
  34177. "\x74\x68\x65\x20\x73\x6f\x66\x74"
  34178. "\x77\x0d\x00\x0f\x23\x00\x0b\x50"
  34179. "\x77\x61\x72\x65\x20",
  34180. },
  34181. };
  34182. static struct comp_testvec lz4_decomp_tv_template[] = {
  34183. {
  34184. .inlen = 45,
  34185. .outlen = 70,
  34186. .input = "\xf0\x10\x4a\x6f\x69\x6e\x20\x75"
  34187. "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
  34188. "\x64\x20\x73\x68\x61\x72\x65\x20"
  34189. "\x74\x68\x65\x20\x73\x6f\x66\x74"
  34190. "\x77\x0d\x00\x0f\x23\x00\x0b\x50"
  34191. "\x77\x61\x72\x65\x20",
  34192. .output = "Join us now and share the software "
  34193. "Join us now and share the software ",
  34194. },
  34195. };
  34196. #define LZ4HC_COMP_TEST_VECTORS 1
  34197. #define LZ4HC_DECOMP_TEST_VECTORS 1
  34198. static struct comp_testvec lz4hc_comp_tv_template[] = {
  34199. {
  34200. .inlen = 70,
  34201. .outlen = 45,
  34202. .input = "Join us now and share the software "
  34203. "Join us now and share the software ",
  34204. .output = "\xf0\x10\x4a\x6f\x69\x6e\x20\x75"
  34205. "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
  34206. "\x64\x20\x73\x68\x61\x72\x65\x20"
  34207. "\x74\x68\x65\x20\x73\x6f\x66\x74"
  34208. "\x77\x0d\x00\x0f\x23\x00\x0b\x50"
  34209. "\x77\x61\x72\x65\x20",
  34210. },
  34211. };
  34212. static struct comp_testvec lz4hc_decomp_tv_template[] = {
  34213. {
  34214. .inlen = 45,
  34215. .outlen = 70,
  34216. .input = "\xf0\x10\x4a\x6f\x69\x6e\x20\x75"
  34217. "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
  34218. "\x64\x20\x73\x68\x61\x72\x65\x20"
  34219. "\x74\x68\x65\x20\x73\x6f\x66\x74"
  34220. "\x77\x0d\x00\x0f\x23\x00\x0b\x50"
  34221. "\x77\x61\x72\x65\x20",
  34222. .output = "Join us now and share the software "
  34223. "Join us now and share the software ",
  34224. },
  34225. };
  34226. #endif /* _CRYPTO_TESTMGR_H */