testmgr.h 1.3 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997
  1. /*
  2. * Algorithm testing framework and tests.
  3. *
  4. * Copyright (c) 2002 James Morris <[email protected]>
  5. * Copyright (c) 2002 Jean-Francois Dive <[email protected]>
  6. * Copyright (c) 2007 Nokia Siemens Networks
  7. * Copyright (c) 2008 Herbert Xu <[email protected]>
  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 ([email protected])
  13. * Adrian Hoban <[email protected]>
  14. * Gabriele Paoloni <[email protected]>
  15. * Tadeusz Struk ([email protected])
  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 1088
  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 short tap[MAX_TAP];
  37. unsigned short psize;
  38. unsigned short np;
  39. unsigned short 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. }, { /* Regression test for overflow in AVX2 implementation */
  4421. .plaintext = "\xff\xff\xff\xff\xff\xff\xff\xff"
  4422. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4423. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4424. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4425. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4426. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4427. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4428. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4429. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4430. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4431. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4432. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4433. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4434. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4435. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4436. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4437. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4438. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4439. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4440. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4441. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4442. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4443. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4444. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4445. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4446. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4447. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4448. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4449. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4450. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4451. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4452. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4453. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4454. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4455. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4456. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4457. "\xff\xff\xff\xff\xff\xff\xff\xff"
  4458. "\xff\xff\xff\xff",
  4459. .psize = 300,
  4460. .digest = "\xfb\x5e\x96\xd8\x61\xd5\xc7\xc8"
  4461. "\x78\xe5\x87\xcc\x2d\x5a\x22\xe1",
  4462. }
  4463. };
  4464. /* NHPoly1305 test vectors from https://github.com/google/adiantum */
  4465. static struct hash_testvec nhpoly1305_tv_template[] = {
  4466. {
  4467. .key = "\xd2\x5d\x4c\xdd\x8d\x2b\x7f\x7a"
  4468. "\xd9\xbe\x71\xec\xd1\x83\x52\xe3"
  4469. "\xe1\xad\xd7\x5c\x0a\x75\x9d\xec"
  4470. "\x1d\x13\x7e\x5d\x71\x07\xc9\xe4"
  4471. "\x57\x2d\x44\x68\xcf\xd8\xd6\xc5"
  4472. "\x39\x69\x7d\x32\x75\x51\x4f\x7e"
  4473. "\xb2\x4c\xc6\x90\x51\x6e\xd9\xd6"
  4474. "\xa5\x8b\x2d\xf1\x94\xf9\xf7\x5e"
  4475. "\x2c\x84\x7b\x41\x0f\x88\x50\x89"
  4476. "\x30\xd9\xa1\x38\x46\x6c\xc0\x4f"
  4477. "\xe8\xdf\xdc\x66\xab\x24\x43\x41"
  4478. "\x91\x55\x29\x65\x86\x28\x5e\x45"
  4479. "\xd5\x2d\xb7\x80\x08\x9a\xc3\xd4"
  4480. "\x9a\x77\x0a\xd4\xef\x3e\xe6\x3f"
  4481. "\x6f\x2f\x9b\x3a\x7d\x12\x1e\x80"
  4482. "\x6c\x44\xa2\x25\xe1\xf6\x60\xe9"
  4483. "\x0d\xaf\xc5\x3c\xa5\x79\xae\x64"
  4484. "\xbc\xa0\x39\xa3\x4d\x10\xe5\x4d"
  4485. "\xd5\xe7\x89\x7a\x13\xee\x06\x78"
  4486. "\xdc\xa4\xdc\x14\x27\xe6\x49\x38"
  4487. "\xd0\xe0\x45\x25\x36\xc5\xf4\x79"
  4488. "\x2e\x9a\x98\x04\xe4\x2b\x46\x52"
  4489. "\x7c\x33\xca\xe2\x56\x51\x50\xe2"
  4490. "\xa5\x9a\xae\x18\x6a\x13\xf8\xd2"
  4491. "\x21\x31\x66\x02\xe2\xda\x8d\x7e"
  4492. "\x41\x19\xb2\x61\xee\x48\x8f\xf1"
  4493. "\x65\x24\x2e\x1e\x68\xce\x05\xd9"
  4494. "\x2a\xcf\xa5\x3a\x57\xdd\x35\x91"
  4495. "\x93\x01\xca\x95\xfc\x2b\x36\x04"
  4496. "\xe6\x96\x97\x28\xf6\x31\xfe\xa3"
  4497. "\x9d\xf6\x6a\x1e\x80\x8d\xdc\xec"
  4498. "\xaf\x66\x11\x13\x02\x88\xd5\x27"
  4499. "\x33\xb4\x1a\xcd\xa3\xf6\xde\x31"
  4500. "\x8e\xc0\x0e\x6c\xd8\x5a\x97\x5e"
  4501. "\xdd\xfd\x60\x69\x38\x46\x3f\x90"
  4502. "\x5e\x97\xd3\x32\x76\xc7\x82\x49"
  4503. "\xfe\xba\x06\x5f\x2f\xa2\xfd\xff"
  4504. "\x80\x05\x40\xe4\x33\x03\xfb\x10"
  4505. "\xc0\xde\x65\x8c\xc9\x8d\x3a\x9d"
  4506. "\xb5\x7b\x36\x4b\xb5\x0c\xcf\x00"
  4507. "\x9c\x87\xe4\x49\xad\x90\xda\x4a"
  4508. "\xdd\xbd\xff\xe2\x32\x57\xd6\x78"
  4509. "\x36\x39\x6c\xd3\x5b\x9b\x88\x59"
  4510. "\x2d\xf0\x46\xe4\x13\x0e\x2b\x35"
  4511. "\x0d\x0f\x73\x8a\x4f\x26\x84\x75"
  4512. "\x88\x3c\xc5\x58\x66\x18\x1a\xb4"
  4513. "\x64\x51\x34\x27\x1b\xa4\x11\xc9"
  4514. "\x6d\x91\x8a\xfa\x32\x60\x9d\xd7"
  4515. "\x87\xe5\xaa\x43\x72\xf8\xda\xd1"
  4516. "\x48\x44\x13\x61\xdc\x8c\x76\x17"
  4517. "\x0c\x85\x4e\xf3\xdd\xa2\x42\xd2"
  4518. "\x74\xc1\x30\x1b\xeb\x35\x31\x29"
  4519. "\x5b\xd7\x4c\x94\x46\x35\xa1\x23"
  4520. "\x50\xf2\xa2\x8e\x7e\x4f\x23\x4f"
  4521. "\x51\xff\xe2\xc9\xa3\x7d\x56\x8b"
  4522. "\x41\xf2\xd0\xc5\x57\x7e\x59\xac"
  4523. "\xbb\x65\xf3\xfe\xf7\x17\xef\x63"
  4524. "\x7c\x6f\x23\xdd\x22\x8e\xed\x84"
  4525. "\x0e\x3b\x09\xb3\xf3\xf4\x8f\xcd"
  4526. "\x37\xa8\xe1\xa7\x30\xdb\xb1\xa2"
  4527. "\x9c\xa2\xdf\x34\x17\x3e\x68\x44"
  4528. "\xd0\xde\x03\x50\xd1\x48\x6b\x20"
  4529. "\xe2\x63\x45\xa5\xea\x87\xc2\x42"
  4530. "\x95\x03\x49\x05\xed\xe0\x90\x29"
  4531. "\x1a\xb8\xcf\x9b\x43\xcf\x29\x7a"
  4532. "\x63\x17\x41\x9f\xe0\xc9\x10\xfd"
  4533. "\x2c\x56\x8c\x08\x55\xb4\xa9\x27"
  4534. "\x0f\x23\xb1\x05\x6a\x12\x46\xc7"
  4535. "\xe1\xfe\x28\x93\x93\xd7\x2f\xdc"
  4536. "\x98\x30\xdb\x75\x8a\xbe\x97\x7a"
  4537. "\x02\xfb\x8c\xba\xbe\x25\x09\xbe"
  4538. "\xce\xcb\xa2\xef\x79\x4d\x0e\x9d"
  4539. "\x1b\x9d\xb6\x39\x34\x38\xfa\x07"
  4540. "\xec\xe8\xfc\x32\x85\x1d\xf7\x85"
  4541. "\x63\xc3\x3c\xc0\x02\x75\xd7\x3f"
  4542. "\xb2\x68\x60\x66\x65\x81\xc6\xb1"
  4543. "\x42\x65\x4b\x4b\x28\xd7\xc7\xaa"
  4544. "\x9b\xd2\xdc\x1b\x01\xe0\x26\x39"
  4545. "\x01\xc1\x52\x14\xd1\x3f\xb7\xe6"
  4546. "\x61\x41\xc7\x93\xd2\xa2\x67\xc6"
  4547. "\xf7\x11\xb5\xf5\xea\xdd\x19\xfb"
  4548. "\x4d\x21\x12\xd6\x7d\xf1\x10\xb0"
  4549. "\x89\x07\xc7\x5a\x52\x73\x70\x2f"
  4550. "\x32\xef\x65\x2b\x12\xb2\xf0\xf5"
  4551. "\x20\xe0\x90\x59\x7e\x64\xf1\x4c"
  4552. "\x41\xb3\xa5\x91\x08\xe6\x5e\x5f"
  4553. "\x05\x56\x76\xb4\xb0\xcd\x70\x53"
  4554. "\x10\x48\x9c\xff\xc2\x69\x55\x24"
  4555. "\x87\xef\x84\xea\xfb\xa7\xbf\xa0"
  4556. "\x91\x04\xad\x4f\x8b\x57\x54\x4b"
  4557. "\xb6\xe9\xd1\xac\x37\x2f\x1d\x2e"
  4558. "\xab\xa5\xa4\xe8\xff\xfb\xd9\x39"
  4559. "\x2f\xb7\xac\xd1\xfe\x0b\x9a\x80"
  4560. "\x0f\xb6\xf4\x36\x39\x90\x51\xe3"
  4561. "\x0a\x2f\xb6\x45\x76\x89\xcd\x61"
  4562. "\xfe\x48\x5f\x75\x1d\x13\x00\x62"
  4563. "\x80\x24\x47\xe7\xbc\x37\xd7\xe3"
  4564. "\x15\xe8\x68\x22\xaf\x80\x6f\x4b"
  4565. "\xa8\x9f\x01\x10\x48\x14\xc3\x02"
  4566. "\x52\xd2\xc7\x75\x9b\x52\x6d\x30"
  4567. "\xac\x13\x85\xc8\xf7\xa3\x58\x4b"
  4568. "\x49\xf7\x1c\x45\x55\x8c\x39\x9a"
  4569. "\x99\x6d\x97\x27\x27\xe6\xab\xdd"
  4570. "\x2c\x42\x1b\x35\xdd\x9d\x73\xbb"
  4571. "\x6c\xf3\x64\xf1\xfb\xb9\xf7\xe6"
  4572. "\x4a\x3c\xc0\x92\xc0\x2e\xb7\x1a"
  4573. "\xbe\xab\xb3\x5a\xe5\xea\xb1\x48"
  4574. "\x58\x13\x53\x90\xfd\xc3\x8e\x54"
  4575. "\xf9\x18\x16\x73\xe8\xcb\x6d\x39"
  4576. "\x0e\xd7\xe0\xfe\xb6\x9f\x43\x97"
  4577. "\xe8\xd0\x85\x56\x83\x3e\x98\x68"
  4578. "\x7f\xbd\x95\xa8\x9a\x61\x21\x8f"
  4579. "\x06\x98\x34\xa6\xc8\xd6\x1d\xf3"
  4580. "\x3d\x43\xa4\x9a\x8c\xe5\xd3\x5a"
  4581. "\x32\xa2\x04\x22\xa4\x19\x1a\x46"
  4582. "\x42\x7e\x4d\xe5\xe0\xe6\x0e\xca"
  4583. "\xd5\x58\x9d\x2c\xaf\xda\x33\x5c"
  4584. "\xb0\x79\x9e\xc9\xfc\xca\xf0\x2f"
  4585. "\xa8\xb2\x77\xeb\x7a\xa2\xdd\x37"
  4586. "\x35\x83\x07\xd6\x02\x1a\xb6\x6c"
  4587. "\x24\xe2\x59\x08\x0e\xfd\x3e\x46"
  4588. "\xec\x40\x93\xf4\x00\x26\x4f\x2a"
  4589. "\xff\x47\x2f\xeb\x02\x92\x26\x5b"
  4590. "\x53\x17\xc2\x8d\x2a\xc7\xa3\x1b"
  4591. "\xcd\xbc\xa7\xe8\xd1\x76\xe3\x80"
  4592. "\x21\xca\x5d\x3b\xe4\x9c\x8f\xa9"
  4593. "\x5b\x7f\x29\x7f\x7c\xd8\xed\x6d"
  4594. "\x8c\xb2\x86\x85\xe7\x77\xf2\x85"
  4595. "\xab\x38\xa9\x9d\xc1\x4e\xc5\x64"
  4596. "\x33\x73\x8b\x59\x03\xad\x05\xdf"
  4597. "\x25\x98\x31\xde\xef\x13\xf1\x9b"
  4598. "\x3c\x91\x9d\x7b\xb1\xfa\xe6\xbf"
  4599. "\x5b\xed\xa5\x55\xe6\xea\x6c\x74"
  4600. "\xf4\xb9\xe4\x45\x64\x72\x81\xc2"
  4601. "\x4c\x28\xd4\xcd\xac\xe2\xde\xf9"
  4602. "\xeb\x5c\xeb\x61\x60\x5a\xe5\x28",
  4603. .ksize = 1088,
  4604. .plaintext = "",
  4605. .psize = 0,
  4606. .digest = "\x00\x00\x00\x00\x00\x00\x00\x00"
  4607. "\x00\x00\x00\x00\x00\x00\x00\x00",
  4608. }, {
  4609. .key = "\x29\x21\x43\xcb\xcb\x13\x07\xde"
  4610. "\xbf\x48\xdf\x8a\x7f\xa2\x84\xde"
  4611. "\x72\x23\x9d\xf5\xf0\x07\xf2\x4c"
  4612. "\x20\x3a\x93\xb9\xcd\x5d\xfe\xcb"
  4613. "\x99\x2c\x2b\x58\xc6\x50\x5f\x94"
  4614. "\x56\xc3\x7c\x0d\x02\x3f\xb8\x5e"
  4615. "\x7b\xc0\x6c\x51\x34\x76\xc0\x0e"
  4616. "\xc6\x22\xc8\x9e\x92\xa0\x21\xc9"
  4617. "\x85\x5c\x7c\xf8\xe2\x64\x47\xc9"
  4618. "\xe4\xa2\x57\x93\xf8\xa2\x69\xcd"
  4619. "\x62\x98\x99\xf4\xd7\x7b\x14\xb1"
  4620. "\xd8\x05\xff\x04\x15\xc9\xe1\x6e"
  4621. "\x9b\xe6\x50\x6b\x0b\x3f\x22\x1f"
  4622. "\x08\xde\x0c\x5b\x08\x7e\xc6\x2f"
  4623. "\x6c\xed\xd6\xb2\x15\xa4\xb3\xf9"
  4624. "\xa7\x46\x38\x2a\xea\x69\xa5\xde"
  4625. "\x02\xc3\x96\x89\x4d\x55\x3b\xed"
  4626. "\x3d\x3a\x85\x77\xbf\x97\x45\x5c"
  4627. "\x9e\x02\x69\xe2\x1b\x68\xbe\x96"
  4628. "\xfb\x64\x6f\x0f\xf6\x06\x40\x67"
  4629. "\xfa\x04\xe3\x55\xfa\xbe\xa4\x60"
  4630. "\xef\x21\x66\x97\xe6\x9d\x5c\x1f"
  4631. "\x62\x37\xaa\x31\xde\xe4\x9c\x28"
  4632. "\x95\xe0\x22\x86\xf4\x4d\xf3\x07"
  4633. "\xfd\x5f\x3a\x54\x2c\x51\x80\x71"
  4634. "\xba\x78\x69\x5b\x65\xab\x1f\x81"
  4635. "\xed\x3b\xff\x34\xa3\xfb\xbc\x73"
  4636. "\x66\x7d\x13\x7f\xdf\x6e\xe2\xe2"
  4637. "\xeb\x4f\x6c\xda\x7d\x33\x57\xd0"
  4638. "\xd3\x7c\x95\x4f\x33\x58\x21\xc7"
  4639. "\xc0\xe5\x6f\x42\x26\xc6\x1f\x5e"
  4640. "\x85\x1b\x98\x9a\xa2\x1e\x55\x77"
  4641. "\x23\xdf\x81\x5e\x79\x55\x05\xfc"
  4642. "\xfb\xda\xee\xba\x5a\xba\xf7\x77"
  4643. "\x7f\x0e\xd3\xe1\x37\xfe\x8d\x2b"
  4644. "\xd5\x3f\xfb\xd0\xc0\x3c\x0b\x3f"
  4645. "\xcf\x3c\x14\xcf\xfb\x46\x72\x4c"
  4646. "\x1f\x39\xe2\xda\x03\x71\x6d\x23"
  4647. "\xef\x93\xcd\x39\xd9\x37\x80\x4d"
  4648. "\x65\x61\xd1\x2c\x03\xa9\x47\x72"
  4649. "\x4d\x1e\x0e\x16\x33\x0f\x21\x17"
  4650. "\xec\x92\xea\x6f\x37\x22\xa4\xd8"
  4651. "\x03\x33\x9e\xd8\x03\x69\x9a\xe8"
  4652. "\xb2\x57\xaf\x78\x99\x05\x12\xab"
  4653. "\x48\x90\x80\xf0\x12\x9b\x20\x64"
  4654. "\x7a\x1d\x47\x5f\xba\x3c\xf9\xc3"
  4655. "\x0a\x0d\x8d\xa1\xf9\x1b\x82\x13"
  4656. "\x3e\x0d\xec\x0a\x83\xc0\x65\xe1"
  4657. "\xe9\x95\xff\x97\xd6\xf2\xe4\xd5"
  4658. "\x86\xc0\x1f\x29\x27\x63\xd7\xde"
  4659. "\xb7\x0a\x07\x99\x04\x2d\xa3\x89"
  4660. "\xa2\x43\xcf\xf3\xe1\x43\xac\x4a"
  4661. "\x06\x97\xd0\x05\x4f\x87\xfa\xf9"
  4662. "\x9b\xbf\x52\x70\xbd\xbc\x6c\xf3"
  4663. "\x03\x13\x60\x41\x28\x09\xec\xcc"
  4664. "\xb1\x1a\xec\xd6\xfb\x6f\x2a\x89"
  4665. "\x5d\x0b\x53\x9c\x59\xc1\x84\x21"
  4666. "\x33\x51\x47\x19\x31\x9c\xd4\x0a"
  4667. "\x4d\x04\xec\x50\x90\x61\xbd\xbc"
  4668. "\x7e\xc8\xd9\x6c\x98\x1d\x45\x41"
  4669. "\x17\x5e\x97\x1c\xc5\xa8\xe8\xea"
  4670. "\x46\x58\x53\xf7\x17\xd5\xad\x11"
  4671. "\xc8\x54\xf5\x7a\x33\x90\xf5\x19"
  4672. "\xba\x36\xb4\xfc\x52\xa5\x72\x3d"
  4673. "\x14\xbb\x55\xa7\xe9\xe3\x12\xf7"
  4674. "\x1c\x30\xa2\x82\x03\xbf\x53\x91"
  4675. "\x2e\x60\x41\x9f\x5b\x69\x39\xf6"
  4676. "\x4d\xc8\xf8\x46\x7a\x7f\xa4\x98"
  4677. "\x36\xff\x06\xcb\xca\xe7\x33\xf2"
  4678. "\xc0\x4a\xf4\x3c\x14\x44\x5f\x6b"
  4679. "\x75\xef\x02\x36\x75\x08\x14\xfd"
  4680. "\x10\x8e\xa5\x58\xd0\x30\x46\x49"
  4681. "\xaf\x3a\xf8\x40\x3d\x35\xdb\x84"
  4682. "\x11\x2e\x97\x6a\xb7\x87\x7f\xad"
  4683. "\xf1\xfa\xa5\x63\x60\xd8\x5e\xbf"
  4684. "\x41\x78\x49\xcf\x77\xbb\x56\xbb"
  4685. "\x7d\x01\x67\x05\x22\xc8\x8f\x41"
  4686. "\xba\x81\xd2\xca\x2c\x38\xac\x76"
  4687. "\x06\xc1\x1a\xc2\xce\xac\x90\x67"
  4688. "\x57\x3e\x20\x12\x5b\xd9\x97\x58"
  4689. "\x65\x05\xb7\x04\x61\x7e\xd8\x3a"
  4690. "\xbf\x55\x3b\x13\xe9\x34\x5a\x37"
  4691. "\x36\xcb\x94\x45\xc5\x32\xb3\xa0"
  4692. "\x0c\x3e\x49\xc5\xd3\xed\xa7\xf0"
  4693. "\x1c\x69\xcc\xea\xcc\x83\xc9\x16"
  4694. "\x95\x72\x4b\xf4\x89\xd5\xb9\x10"
  4695. "\xf6\x2d\x60\x15\xea\x3c\x06\x66"
  4696. "\x9f\x82\xad\x17\xce\xd2\xa4\x48"
  4697. "\x7c\x65\xd9\xf8\x02\x4d\x9b\x4c"
  4698. "\x89\x06\x3a\x34\x85\x48\x89\x86"
  4699. "\xf9\x24\xa9\x54\x72\xdb\x44\x95"
  4700. "\xc7\x44\x1c\x19\x11\x4c\x04\xdc"
  4701. "\x13\xb9\x67\xc8\xc3\x3a\x6a\x50"
  4702. "\xfa\xd1\xfb\xe1\x88\xb6\xf1\xa3"
  4703. "\xc5\x3b\xdc\x38\x45\x16\x26\x02"
  4704. "\x3b\xb8\x8f\x8b\x58\x7d\x23\x04"
  4705. "\x50\x6b\x81\x9f\xae\x66\xac\x6f"
  4706. "\xcf\x2a\x9d\xf1\xfd\x1d\x57\x07"
  4707. "\xbe\x58\xeb\x77\x0c\xe3\xc2\x19"
  4708. "\x14\x74\x1b\x51\x1c\x4f\x41\xf3"
  4709. "\x32\x89\xb3\xe7\xde\x62\xf6\x5f"
  4710. "\xc7\x6a\x4a\x2a\x5b\x0f\x5f\x87"
  4711. "\x9c\x08\xb9\x02\x88\xc8\x29\xb7"
  4712. "\x94\x52\xfa\x52\xfe\xaa\x50\x10"
  4713. "\xba\x48\x75\x5e\x11\x1b\xe6\x39"
  4714. "\xd7\x82\x2c\x87\xf1\x1e\xa4\x38"
  4715. "\x72\x3e\x51\xe7\xd8\x3e\x5b\x7b"
  4716. "\x31\x16\x89\xba\xd6\xad\x18\x5e"
  4717. "\xba\xf8\x12\xb3\xf4\x6c\x47\x30"
  4718. "\xc0\x38\x58\xb3\x10\x8d\x58\x5d"
  4719. "\xb4\xfb\x19\x7e\x41\xc3\x66\xb8"
  4720. "\xd6\x72\x84\xe1\x1a\xc2\x71\x4c"
  4721. "\x0d\x4a\x21\x7a\xab\xa2\xc0\x36"
  4722. "\x15\xc5\xe9\x46\xd7\x29\x17\x76"
  4723. "\x5e\x47\x36\x7f\x72\x05\xa7\xcc"
  4724. "\x36\x63\xf9\x47\x7d\xe6\x07\x3c"
  4725. "\x8b\x79\x1d\x96\x61\x8d\x90\x65"
  4726. "\x7c\xf5\xeb\x4e\x6e\x09\x59\x6d"
  4727. "\x62\x50\x1b\x0f\xe0\xdc\x78\xf2"
  4728. "\x5b\x83\x1a\xa1\x11\x75\xfd\x18"
  4729. "\xd7\xe2\x8d\x65\x14\x21\xce\xbe"
  4730. "\xb5\x87\xe3\x0a\xda\x24\x0a\x64"
  4731. "\xa9\x9f\x03\x8d\x46\x5d\x24\x1a"
  4732. "\x8a\x0c\x42\x01\xca\xb1\x5f\x7c"
  4733. "\xa5\xac\x32\x4a\xb8\x07\x91\x18"
  4734. "\x6f\xb0\x71\x3c\xc9\xb1\xa8\xf8"
  4735. "\x5f\x69\xa5\xa1\xca\x9e\x7a\xaa"
  4736. "\xac\xe9\xc7\x47\x41\x75\x25\xc3"
  4737. "\x73\xe2\x0b\xdd\x6d\x52\x71\xbe"
  4738. "\xc5\xdc\xb4\xe7\x01\x26\x53\x77"
  4739. "\x86\x90\x85\x68\x6b\x7b\x03\x53"
  4740. "\xda\x52\x52\x51\x68\xc8\xf3\xec"
  4741. "\x6c\xd5\x03\x7a\xa3\x0e\xb4\x02"
  4742. "\x5f\x1a\xab\xee\xca\x67\x29\x7b"
  4743. "\xbd\x96\x59\xb3\x8b\x32\x7a\x92"
  4744. "\x9f\xd8\x25\x2b\xdf\xc0\x4c\xda",
  4745. .ksize = 1088,
  4746. .plaintext = "\xbc\xda\x81\xa8\x78\x79\x1c\xbf"
  4747. "\x77\x53\xba\x4c\x30\x5b\xb8\x33",
  4748. .psize = 16,
  4749. .digest = "\x04\xbf\x7f\x6a\xce\x72\xea\x6a"
  4750. "\x79\xdb\xb0\xc9\x60\xf6\x12\xcc",
  4751. .np = 6,
  4752. .tap = { 4, 4, 1, 1, 1, 5 },
  4753. }, {
  4754. .key = "\x65\x4d\xe3\xf8\xd2\x4c\xac\x28"
  4755. "\x68\xf5\xb3\x81\x71\x4b\xa1\xfa"
  4756. "\x04\x0e\xd3\x81\x36\xbe\x0c\x81"
  4757. "\x5e\xaf\xbc\x3a\xa4\xc0\x8e\x8b"
  4758. "\x55\x63\xd3\x52\x97\x88\xd6\x19"
  4759. "\xbc\x96\xdf\x49\xff\x04\x63\xf5"
  4760. "\x0c\x11\x13\xaa\x9e\x1f\x5a\xf7"
  4761. "\xdd\xbd\x37\x80\xc3\xd0\xbe\xa7"
  4762. "\x05\xc8\x3c\x98\x1e\x05\x3c\x84"
  4763. "\x39\x61\xc4\xed\xed\x71\x1b\xc4"
  4764. "\x74\x45\x2c\xa1\x56\x70\x97\xfd"
  4765. "\x44\x18\x07\x7d\xca\x60\x1f\x73"
  4766. "\x3b\x6d\x21\xcb\x61\x87\x70\x25"
  4767. "\x46\x21\xf1\x1f\x21\x91\x31\x2d"
  4768. "\x5d\xcc\xb7\xd1\x84\x3e\x3d\xdb"
  4769. "\x03\x53\x2a\x82\xa6\x9a\x95\xbc"
  4770. "\x1a\x1e\x0a\x5e\x07\x43\xab\x43"
  4771. "\xaf\x92\x82\x06\x91\x04\x09\xf4"
  4772. "\x17\x0a\x9a\x2c\x54\xdb\xb8\xf4"
  4773. "\xd0\xf0\x10\x66\x24\x8d\xcd\xda"
  4774. "\xfe\x0e\x45\x9d\x6f\xc4\x4e\xf4"
  4775. "\x96\xaf\x13\xdc\xa9\xd4\x8c\xc4"
  4776. "\xc8\x57\x39\x3c\xc2\xd3\x0a\x76"
  4777. "\x4a\x1f\x75\x83\x44\xc7\xd1\x39"
  4778. "\xd8\xb5\x41\xba\x73\x87\xfa\x96"
  4779. "\xc7\x18\x53\xfb\x9b\xda\xa0\x97"
  4780. "\x1d\xee\x60\x85\x9e\x14\xc3\xce"
  4781. "\xc4\x05\x29\x3b\x95\x30\xa3\xd1"
  4782. "\x9f\x82\x6a\x04\xf5\xa7\x75\x57"
  4783. "\x82\x04\xfe\x71\x51\x71\xb1\x49"
  4784. "\x50\xf8\xe0\x96\xf1\xfa\xa8\x88"
  4785. "\x3f\xa0\x86\x20\xd4\x60\x79\x59"
  4786. "\x17\x2d\xd1\x09\xf4\xec\x05\x57"
  4787. "\xcf\x62\x7e\x0e\x7e\x60\x78\xe6"
  4788. "\x08\x60\x29\xd8\xd5\x08\x1a\x24"
  4789. "\xc4\x6c\x24\xe7\x92\x08\x3d\x8a"
  4790. "\x98\x7a\xcf\x99\x0a\x65\x0e\xdc"
  4791. "\x8c\x8a\xbe\x92\x82\x91\xcc\x62"
  4792. "\x30\xb6\xf4\x3f\xc6\x8a\x7f\x12"
  4793. "\x4a\x8a\x49\xfa\x3f\x5c\xd4\x5a"
  4794. "\xa6\x82\xa3\xe6\xaa\x34\x76\xb2"
  4795. "\xab\x0a\x30\xef\x6c\x77\x58\x3f"
  4796. "\x05\x6b\xcc\x5c\xae\xdc\xd7\xb9"
  4797. "\x51\x7e\x8d\x32\x5b\x24\x25\xbe"
  4798. "\x2b\x24\x01\xcf\x80\xda\x16\xd8"
  4799. "\x90\x72\x2c\xad\x34\x8d\x0c\x74"
  4800. "\x02\xcb\xfd\xcf\x6e\xef\x97\xb5"
  4801. "\x4c\xf2\x68\xca\xde\x43\x9e\x8a"
  4802. "\xc5\x5f\x31\x7f\x14\x71\x38\xec"
  4803. "\xbd\x98\xe5\x71\xc4\xb5\xdb\xef"
  4804. "\x59\xd2\xca\xc0\xc1\x86\x75\x01"
  4805. "\xd4\x15\x0d\x6f\xa4\xf7\x7b\x37"
  4806. "\x47\xda\x18\x93\x63\xda\xbe\x9e"
  4807. "\x07\xfb\xb2\x83\xd5\xc4\x34\x55"
  4808. "\xee\x73\xa1\x42\x96\xf9\x66\x41"
  4809. "\xa4\xcc\xd2\x93\x6e\xe1\x0a\xbb"
  4810. "\xd2\xdd\x18\x23\xe6\x6b\x98\x0b"
  4811. "\x8a\x83\x59\x2c\xc3\xa6\x59\x5b"
  4812. "\x01\x22\x59\xf7\xdc\xb0\x87\x7e"
  4813. "\xdb\x7d\xf4\x71\x41\xab\xbd\xee"
  4814. "\x79\xbe\x3c\x01\x76\x0b\x2d\x0a"
  4815. "\x42\xc9\x77\x8c\xbb\x54\x95\x60"
  4816. "\x43\x2e\xe0\x17\x52\xbd\x90\xc9"
  4817. "\xc2\x2c\xdd\x90\x24\x22\x76\x40"
  4818. "\x5c\xb9\x41\xc9\xa1\xd5\xbd\xe3"
  4819. "\x44\xe0\xa4\xab\xcc\xb8\xe2\x32"
  4820. "\x02\x15\x04\x1f\x8c\xec\x5d\x14"
  4821. "\xac\x18\xaa\xef\x6e\x33\x19\x6e"
  4822. "\xde\xfe\x19\xdb\xeb\x61\xca\x18"
  4823. "\xad\xd8\x3d\xbf\x09\x11\xc7\xa5"
  4824. "\x86\x0b\x0f\xe5\x3e\xde\xe8\xd9"
  4825. "\x0a\x69\x9e\x4c\x20\xff\xf9\xc5"
  4826. "\xfa\xf8\xf3\x7f\xa5\x01\x4b\x5e"
  4827. "\x0f\xf0\x3b\x68\xf0\x46\x8c\x2a"
  4828. "\x7a\xc1\x8f\xa0\xfe\x6a\x5b\x44"
  4829. "\x70\x5c\xcc\x92\x2c\x6f\x0f\xbd"
  4830. "\x25\x3e\xb7\x8e\x73\x58\xda\xc9"
  4831. "\xa5\xaa\x9e\xf3\x9b\xfd\x37\x3e"
  4832. "\xe2\x88\xa4\x7b\xc8\x5c\xa8\x93"
  4833. "\x0e\xe7\x9a\x9c\x2e\x95\x18\x9f"
  4834. "\xc8\x45\x0c\x88\x9e\x53\x4f\x3a"
  4835. "\x76\xc1\x35\xfa\x17\xd8\xac\xa0"
  4836. "\x0c\x2d\x47\x2e\x4f\x69\x9b\xf7"
  4837. "\xd0\xb6\x96\x0c\x19\xb3\x08\x01"
  4838. "\x65\x7a\x1f\xc7\x31\x86\xdb\xc8"
  4839. "\xc1\x99\x8f\xf8\x08\x4a\x9d\x23"
  4840. "\x22\xa8\xcf\x27\x01\x01\x88\x93"
  4841. "\x9c\x86\x45\xbd\xe0\x51\xca\x52"
  4842. "\x84\xba\xfe\x03\xf7\xda\xc5\xce"
  4843. "\x3e\x77\x75\x86\xaf\x84\xc8\x05"
  4844. "\x44\x01\x0f\x02\xf3\x58\xb0\x06"
  4845. "\x5a\xd7\x12\x30\x8d\xdf\x1f\x1f"
  4846. "\x0a\xe6\xd2\xea\xf6\x3a\x7a\x99"
  4847. "\x63\xe8\xd2\xc1\x4a\x45\x8b\x40"
  4848. "\x4d\x0a\xa9\x76\x92\xb3\xda\x87"
  4849. "\x36\x33\xf0\x78\xc3\x2f\x5f\x02"
  4850. "\x1a\x6a\x2c\x32\xcd\x76\xbf\xbd"
  4851. "\x5a\x26\x20\x28\x8c\x8c\xbc\x52"
  4852. "\x3d\x0a\xc9\xcb\xab\xa4\x21\xb0"
  4853. "\x54\x40\x81\x44\xc7\xd6\x1c\x11"
  4854. "\x44\xc6\x02\x92\x14\x5a\xbf\x1a"
  4855. "\x09\x8a\x18\xad\xcd\x64\x3d\x53"
  4856. "\x4a\xb6\xa5\x1b\x57\x0e\xef\xe0"
  4857. "\x8c\x44\x5f\x7d\xbd\x6c\xfd\x60"
  4858. "\xae\x02\x24\xb6\x99\xdd\x8c\xaf"
  4859. "\x59\x39\x75\x3c\xd1\x54\x7b\x86"
  4860. "\xcc\x99\xd9\x28\x0c\xb0\x94\x62"
  4861. "\xf9\x51\xd1\x19\x96\x2d\x66\xf5"
  4862. "\x55\xcf\x9e\x59\xe2\x6b\x2c\x08"
  4863. "\xc0\x54\x48\x24\x45\xc3\x8c\x73"
  4864. "\xea\x27\x6e\x66\x7d\x1d\x0e\x6e"
  4865. "\x13\xe8\x56\x65\x3a\xb0\x81\x5c"
  4866. "\xf0\xe8\xd8\x00\x6b\xcd\x8f\xad"
  4867. "\xdd\x53\xf3\xa4\x6c\x43\xd6\x31"
  4868. "\xaf\xd2\x76\x1e\x91\x12\xdb\x3c"
  4869. "\x8c\xc2\x81\xf0\x49\xdb\xe2\x6b"
  4870. "\x76\x62\x0a\x04\xe4\xaa\x8a\x7c"
  4871. "\x08\x0b\x5d\xd0\xee\x1d\xfb\xc4"
  4872. "\x02\x75\x42\xd6\xba\xa7\x22\xa8"
  4873. "\x47\x29\xb7\x85\x6d\x93\x3a\xdb"
  4874. "\x00\x53\x0b\xa2\xeb\xf8\xfe\x01"
  4875. "\x6f\x8a\x31\xd6\x17\x05\x6f\x67"
  4876. "\x88\x95\x32\xfe\x4f\xa6\x4b\xf8"
  4877. "\x03\xe4\xcd\x9a\x18\xe8\x4e\x2d"
  4878. "\xf7\x97\x9a\x0c\x7d\x9f\x7e\x44"
  4879. "\x69\x51\xe0\x32\x6b\x62\x86\x8f"
  4880. "\xa6\x8e\x0b\x21\x96\xe5\xaf\x77"
  4881. "\xc0\x83\xdf\xa5\x0e\xd0\xa1\x04"
  4882. "\xaf\xc1\x10\xcb\x5a\x40\xe4\xe3"
  4883. "\x38\x7e\x07\xe8\x4d\xfa\xed\xc5"
  4884. "\xf0\x37\xdf\xbb\x8a\xcf\x3d\xdc"
  4885. "\x61\xd2\xc6\x2b\xff\x07\xc9\x2f"
  4886. "\x0c\x2d\x5c\x07\xa8\x35\x6a\xfc"
  4887. "\xae\x09\x03\x45\x74\x51\x4d\xc4"
  4888. "\xb8\x23\x87\x4a\x99\x27\x20\x87"
  4889. "\x62\x44\x0a\x4a\xce\x78\x47\x22",
  4890. .ksize = 1088,
  4891. .plaintext = "\x8e\xb0\x4c\xde\x9c\x4a\x04\x5a"
  4892. "\xf6\xa9\x7f\x45\x25\xa5\x7b\x3a"
  4893. "\xbc\x4d\x73\x39\x81\xb5\xbd\x3d"
  4894. "\x21\x6f\xd7\x37\x50\x3c\x7b\x28"
  4895. "\xd1\x03\x3a\x17\xed\x7b\x7c\x2a"
  4896. "\x16\xbc\xdf\x19\x89\x52\x71\x31"
  4897. "\xb6\xc0\xfd\xb5\xd3\xba\x96\x99"
  4898. "\xb6\x34\x0b\xd0\x99\x93\xfc\x1a"
  4899. "\x01\x3c\x85\xc6\x9b\x78\x5c\x8b"
  4900. "\xfe\xae\xd2\xbf\xb2\x6f\xf9\xed"
  4901. "\xc8\x25\x17\xfe\x10\x3b\x7d\xda"
  4902. "\xf4\x8d\x35\x4b\x7c\x7b\x82\xe7"
  4903. "\xc2\xb3\xee\x60\x4a\x03\x86\xc9"
  4904. "\x4e\xb5\xc4\xbe\xd2\xbd\x66\xf1"
  4905. "\x13\xf1\x09\xab\x5d\xca\x63\x1f"
  4906. "\xfc\xfb\x57\x2a\xfc\xca\x66\xd8"
  4907. "\x77\x84\x38\x23\x1d\xac\xd3\xb3"
  4908. "\x7a\xad\x4c\x70\xfa\x9c\xc9\x61"
  4909. "\xa6\x1b\xba\x33\x4b\x4e\x33\xec"
  4910. "\xa0\xa1\x64\x39\x40\x05\x1c\xc2"
  4911. "\x3f\x49\x9d\xae\xf2\xc5\xf2\xc5"
  4912. "\xfe\xe8\xf4\xc2\xf9\x96\x2d\x28"
  4913. "\x92\x30\x44\xbc\xd2\x7f\xe1\x6e"
  4914. "\x62\x02\x8f\x3d\x1c\x80\xda\x0e"
  4915. "\x6a\x90\x7e\x75\xff\xec\x3e\xc4"
  4916. "\xcd\x16\x34\x3b\x05\x6d\x4d\x20"
  4917. "\x1c\x7b\xf5\x57\x4f\xfa\x3d\xac"
  4918. "\xd0\x13\x55\xe8\xb3\xe1\x1b\x78"
  4919. "\x30\xe6\x9f\x84\xd4\x69\xd1\x08"
  4920. "\x12\x77\xa7\x4a\xbd\xc0\xf2\xd2"
  4921. "\x78\xdd\xa3\x81\x12\xcb\x6c\x14"
  4922. "\x90\x61\xe2\x84\xc6\x2b\x16\xcc"
  4923. "\x40\x99\x50\x88\x01\x09\x64\x4f"
  4924. "\x0a\x80\xbe\x61\xae\x46\xc9\x0a"
  4925. "\x5d\xe0\xfb\x72\x7a\x1a\xdd\x61"
  4926. "\x63\x20\x05\xa0\x4a\xf0\x60\x69"
  4927. "\x7f\x92\xbc\xbf\x4e\x39\x4d\xdd"
  4928. "\x74\xd1\xb7\xc0\x5a\x34\xb7\xae"
  4929. "\x76\x65\x2e\xbc\x36\xb9\x04\x95"
  4930. "\x42\xe9\x6f\xca\x78\xb3\x72\x07"
  4931. "\xa3\xba\x02\x94\x67\x4c\xb1\xd7"
  4932. "\xe9\x30\x0d\xf0\x3b\xb8\x10\x6d"
  4933. "\xea\x2b\x21\xbf\x74\x59\x82\x97"
  4934. "\x85\xaa\xf1\xd7\x54\x39\xeb\x05"
  4935. "\xbd\xf3\x40\xa0\x97\xe6\x74\xfe"
  4936. "\xb4\x82\x5b\xb1\x36\xcb\xe8\x0d"
  4937. "\xce\x14\xd9\xdf\xf1\x94\x22\xcd"
  4938. "\xd6\x00\xba\x04\x4c\x05\x0c\xc0"
  4939. "\xd1\x5a\xeb\x52\xd5\xa8\x8e\xc8"
  4940. "\x97\xa1\xaa\xc1\xea\xc1\xbe\x7c"
  4941. "\x36\xb3\x36\xa0\xc6\x76\x66\xc5"
  4942. "\xe2\xaf\xd6\x5c\xe2\xdb\x2c\xb3"
  4943. "\x6c\xb9\x99\x7f\xff\x9f\x03\x24"
  4944. "\xe1\x51\x44\x66\xd8\x0c\x5d\x7f"
  4945. "\x5c\x85\x22\x2a\xcf\x6d\x79\x28"
  4946. "\xab\x98\x01\x72\xfe\x80\x87\x5f"
  4947. "\x46\xba\xef\x81\x24\xee\xbf\xb0"
  4948. "\x24\x74\xa3\x65\x97\x12\xc4\xaf"
  4949. "\x8b\xa0\x39\xda\x8a\x7e\x74\x6e"
  4950. "\x1b\x42\xb4\x44\x37\xfc\x59\xfd"
  4951. "\x86\xed\xfb\x8c\x66\x33\xda\x63"
  4952. "\x75\xeb\xe1\xa4\x85\x4f\x50\x8f"
  4953. "\x83\x66\x0d\xd3\x37\xfa\xe6\x9c"
  4954. "\x4f\x30\x87\x35\x18\xe3\x0b\xb7"
  4955. "\x6e\x64\x54\xcd\x70\xb3\xde\x54"
  4956. "\xb7\x1d\xe6\x4c\x4d\x55\x12\x12"
  4957. "\xaf\x5f\x7f\x5e\xee\x9d\xe8\x8e"
  4958. "\x32\x9d\x4e\x75\xeb\xc6\xdd\xaa"
  4959. "\x48\x82\xa4\x3f\x3c\xd7\xd3\xa8"
  4960. "\x63\x9e\x64\xfe\xe3\x97\x00\x62"
  4961. "\xe5\x40\x5d\xc3\xad\x72\xe1\x28"
  4962. "\x18\x50\xb7\x75\xef\xcd\x23\xbf"
  4963. "\x3f\xc0\x51\x36\xf8\x41\xc3\x08"
  4964. "\xcb\xf1\x8d\x38\x34\xbd\x48\x45"
  4965. "\x75\xed\xbc\x65\x7b\xb5\x0c\x9b"
  4966. "\xd7\x67\x7d\x27\xb4\xc4\x80\xd7"
  4967. "\xa9\xb9\xc7\x4a\x97\xaa\xda\xc8"
  4968. "\x3c\x74\xcf\x36\x8f\xe4\x41\xe3"
  4969. "\xd4\xd3\x26\xa7\xf3\x23\x9d\x8f"
  4970. "\x6c\x20\x05\x32\x3e\xe0\xc3\xc8"
  4971. "\x56\x3f\xa7\x09\xb7\xfb\xc7\xf7"
  4972. "\xbe\x2a\xdd\x0f\x06\x7b\x0d\xdd"
  4973. "\xb0\xb4\x86\x17\xfd\xb9\x04\xe5"
  4974. "\xc0\x64\x5d\xad\x2a\x36\x38\xdb"
  4975. "\x24\xaf\x5b\xff\xca\xf9\x41\xe8"
  4976. "\xf9\x2f\x1e\x5e\xf9\xf5\xd5\xf2"
  4977. "\xb2\x88\xca\xc9\xa1\x31\xe2\xe8"
  4978. "\x10\x95\x65\xbf\xf1\x11\x61\x7a"
  4979. "\x30\x1a\x54\x90\xea\xd2\x30\xf6"
  4980. "\xa5\xad\x60\xf9\x4d\x84\x21\x1b"
  4981. "\xe4\x42\x22\xc8\x12\x4b\xb0\x58"
  4982. "\x3e\x9c\x2d\x32\x95\x0a\x8e\xb0"
  4983. "\x0a\x7e\x77\x2f\xe8\x97\x31\x6a"
  4984. "\xf5\x59\xb4\x26\xe6\x37\x12\xc9"
  4985. "\xcb\xa0\x58\x33\x6f\xd5\x55\x55"
  4986. "\x3c\xa1\x33\xb1\x0b\x7e\x2e\xb4"
  4987. "\x43\x2a\x84\x39\xf0\x9c\xf4\x69"
  4988. "\x4f\x1e\x79\xa6\x15\x1b\x87\xbb"
  4989. "\xdb\x9b\xe0\xf1\x0b\xba\xe3\x6e"
  4990. "\xcc\x2f\x49\x19\x22\x29\xfc\x71"
  4991. "\xbb\x77\x38\x18\x61\xaf\x85\x76"
  4992. "\xeb\xd1\x09\xcc\x86\x04\x20\x9a"
  4993. "\x66\x53\x2f\x44\x8b\xc6\xa3\xd2"
  4994. "\x5f\xc7\x79\x82\x66\xa8\x6e\x75"
  4995. "\x7d\x94\xd1\x86\x75\x0f\xa5\x4f"
  4996. "\x3c\x7a\x33\xce\xd1\x6e\x9d\x7b"
  4997. "\x1f\x91\x37\xb8\x37\x80\xfb\xe0"
  4998. "\x52\x26\xd0\x9a\xd4\x48\x02\x41"
  4999. "\x05\xe3\x5a\x94\xf1\x65\x61\x19"
  5000. "\xb8\x88\x4e\x2b\xea\xba\x8b\x58"
  5001. "\x8b\x42\x01\x00\xa8\xfe\x00\x5c"
  5002. "\xfe\x1c\xee\x31\x15\x69\xfa\xb3"
  5003. "\x9b\x5f\x22\x8e\x0d\x2c\xe3\xa5"
  5004. "\x21\xb9\x99\x8a\x8e\x94\x5a\xef"
  5005. "\x13\x3e\x99\x96\x79\x6e\xd5\x42"
  5006. "\x36\x03\xa9\xe2\xca\x65\x4e\x8a"
  5007. "\x8a\x30\xd2\x7d\x74\xe7\xf0\xaa"
  5008. "\x23\x26\xdd\xcb\x82\x39\xfc\x9d"
  5009. "\x51\x76\x21\x80\xa2\xbe\x93\x03"
  5010. "\x47\xb0\xc1\xb6\xdc\x63\xfd\x9f"
  5011. "\xca\x9d\xa5\xca\x27\x85\xe2\xd8"
  5012. "\x15\x5b\x7e\x14\x7a\xc4\x89\xcc"
  5013. "\x74\x14\x4b\x46\xd2\xce\xac\x39"
  5014. "\x6b\x6a\x5a\xa4\x0e\xe3\x7b\x15"
  5015. "\x94\x4b\x0f\x74\xcb\x0c\x7f\xa9"
  5016. "\xbe\x09\x39\xa3\xdd\x56\x5c\xc7"
  5017. "\x99\x56\x65\x39\xf4\x0b\x7d\x87"
  5018. "\xec\xaa\xe3\x4d\x22\x65\x39\x4e",
  5019. .psize = 1024,
  5020. .digest = "\x64\x3a\xbc\xc3\x3f\x74\x40\x51"
  5021. "\x6e\x56\x01\x1a\x51\xec\x36\xde",
  5022. .np = 8,
  5023. .tap = { 64, 203, 267, 28, 263, 62, 54, 83 },
  5024. }, {
  5025. .key = "\x1b\x82\x2e\x1b\x17\x23\xb9\x6d"
  5026. "\xdc\x9c\xda\x99\x07\xe3\x5f\xd8"
  5027. "\xd2\xf8\x43\x80\x8d\x86\x7d\x80"
  5028. "\x1a\xd0\xcc\x13\xb9\x11\x05\x3f"
  5029. "\x7e\xcf\x7e\x80\x0e\xd8\x25\x48"
  5030. "\x8b\xaa\x63\x83\x92\xd0\x72\xf5"
  5031. "\x4f\x67\x7e\x50\x18\x25\xa4\xd1"
  5032. "\xe0\x7e\x1e\xba\xd8\xa7\x6e\xdb"
  5033. "\x1a\xcc\x0d\xfe\x9f\x6d\x22\x35"
  5034. "\xe1\xe6\xe0\xa8\x7b\x9c\xb1\x66"
  5035. "\xa3\xf8\xff\x4d\x90\x84\x28\xbc"
  5036. "\xdc\x19\xc7\x91\x49\xfc\xf6\x33"
  5037. "\xc9\x6e\x65\x7f\x28\x6f\x68\x2e"
  5038. "\xdf\x1a\x75\xe9\xc2\x0c\x96\xb9"
  5039. "\x31\x22\xc4\x07\xc6\x0a\x2f\xfd"
  5040. "\x36\x06\x5f\x5c\xc5\xb1\x3a\xf4"
  5041. "\x5e\x48\xa4\x45\x2b\x88\xa7\xee"
  5042. "\xa9\x8b\x52\xcc\x99\xd9\x2f\xb8"
  5043. "\xa4\x58\x0a\x13\xeb\x71\x5a\xfa"
  5044. "\xe5\x5e\xbe\xf2\x64\xad\x75\xbc"
  5045. "\x0b\x5b\x34\x13\x3b\x23\x13\x9a"
  5046. "\x69\x30\x1e\x9a\xb8\x03\xb8\x8b"
  5047. "\x3e\x46\x18\x6d\x38\xd9\xb3\xd8"
  5048. "\xbf\xf1\xd0\x28\xe6\x51\x57\x80"
  5049. "\x5e\x99\xfb\xd0\xce\x1e\x83\xf7"
  5050. "\xe9\x07\x5a\x63\xa9\xef\xce\xa5"
  5051. "\xfb\x3f\x37\x17\xfc\x0b\x37\x0e"
  5052. "\xbb\x4b\x21\x62\xb7\x83\x0e\xa9"
  5053. "\x9e\xb0\xc4\xad\x47\xbe\x35\xe7"
  5054. "\x51\xb2\xf2\xac\x2b\x65\x7b\x48"
  5055. "\xe3\x3f\x5f\xb6\x09\x04\x0c\x58"
  5056. "\xce\x99\xa9\x15\x2f\x4e\xc1\xf2"
  5057. "\x24\x48\xc0\xd8\x6c\xd3\x76\x17"
  5058. "\x83\x5d\xe6\xe3\xfd\x01\x8e\xf7"
  5059. "\x42\xa5\x04\x29\x30\xdf\xf9\x00"
  5060. "\x4a\xdc\x71\x22\x1a\x33\x15\xb6"
  5061. "\xd7\x72\xfb\x9a\xb8\xeb\x2b\x38"
  5062. "\xea\xa8\x61\xa8\x90\x11\x9d\x73"
  5063. "\x2e\x6c\xce\x81\x54\x5a\x9f\xcd"
  5064. "\xcf\xd5\xbd\x26\x5d\x66\xdb\xfb"
  5065. "\xdc\x1e\x7c\x10\xfe\x58\x82\x10"
  5066. "\x16\x24\x01\xce\x67\x55\x51\xd1"
  5067. "\xdd\x6b\x44\xa3\x20\x8e\xa9\xa6"
  5068. "\x06\xa8\x29\x77\x6e\x00\x38\x5b"
  5069. "\xde\x4d\x58\xd8\x1f\x34\xdf\xf9"
  5070. "\x2c\xac\x3e\xad\xfb\x92\x0d\x72"
  5071. "\x39\xa4\xac\x44\x10\xc0\x43\xc4"
  5072. "\xa4\x77\x3b\xfc\xc4\x0d\x37\xd3"
  5073. "\x05\x84\xda\x53\x71\xf8\x80\xd3"
  5074. "\x34\x44\xdb\x09\xb4\x2b\x8e\xe3"
  5075. "\x00\x75\x50\x9e\x43\x22\x00\x0b"
  5076. "\x7c\x70\xab\xd4\x41\xf1\x93\xcd"
  5077. "\x25\x2d\x84\x74\xb5\xf2\x92\xcd"
  5078. "\x0a\x28\xea\x9a\x49\x02\x96\xcb"
  5079. "\x85\x9e\x2f\x33\x03\x86\x1d\xdc"
  5080. "\x1d\x31\xd5\xfc\x9d\xaa\xc5\xe9"
  5081. "\x9a\xc4\x57\xf5\x35\xed\xf4\x4b"
  5082. "\x3d\x34\xc2\x29\x13\x86\x36\x42"
  5083. "\x5d\xbf\x90\x86\x13\x77\xe5\xc3"
  5084. "\x62\xb4\xfe\x0b\x70\x39\x35\x65"
  5085. "\x02\xea\xf6\xce\x57\x0c\xbb\x74"
  5086. "\x29\xe3\xfd\x60\x90\xfd\x10\x38"
  5087. "\xd5\x4e\x86\xbd\x37\x70\xf0\x97"
  5088. "\xa6\xab\x3b\x83\x64\x52\xca\x66"
  5089. "\x2f\xf9\xa4\xca\x3a\x55\x6b\xb0"
  5090. "\xe8\x3a\x34\xdb\x9e\x48\x50\x2f"
  5091. "\x3b\xef\xfd\x08\x2d\x5f\xc1\x37"
  5092. "\x5d\xbe\x73\xe4\xd8\xe9\xac\xca"
  5093. "\x8a\xaa\x48\x7c\x5c\xf4\xa6\x96"
  5094. "\x5f\xfa\x70\xa6\xb7\x8b\x50\xcb"
  5095. "\xa6\xf5\xa9\xbd\x7b\x75\x4c\x22"
  5096. "\x0b\x19\x40\x2e\xc9\x39\x39\x32"
  5097. "\x83\x03\xa8\xa4\x98\xe6\x8e\x16"
  5098. "\xb9\xde\x08\xc5\xfc\xbf\xad\x39"
  5099. "\xa8\xc7\x93\x6c\x6f\x23\xaf\xc1"
  5100. "\xab\xe1\xdf\xbb\x39\xae\x93\x29"
  5101. "\x0e\x7d\x80\x8d\x3e\x65\xf3\xfd"
  5102. "\x96\x06\x65\x90\xa1\x28\x64\x4b"
  5103. "\x69\xf9\xa8\x84\x27\x50\xfc\x87"
  5104. "\xf7\xbf\x55\x8e\x56\x13\x58\x7b"
  5105. "\x85\xb4\x6a\x72\x0f\x40\xf1\x4f"
  5106. "\x83\x81\x1f\x76\xde\x15\x64\x7a"
  5107. "\x7a\x80\xe4\xc7\x5e\x63\x01\x91"
  5108. "\xd7\x6b\xea\x0b\x9b\xa2\x99\x3b"
  5109. "\x6c\x88\xd8\xfd\x59\x3c\x8d\x22"
  5110. "\x86\x56\xbe\xab\xa1\x37\x08\x01"
  5111. "\x50\x85\x69\x29\xee\x9f\xdf\x21"
  5112. "\x3e\x20\x20\xf5\xb0\xbb\x6b\xd0"
  5113. "\x9c\x41\x38\xec\x54\x6f\x2d\xbd"
  5114. "\x0f\xe1\xbd\xf1\x2b\x6e\x60\x56"
  5115. "\x29\xe5\x7a\x70\x1c\xe2\xfc\x97"
  5116. "\x82\x68\x67\xd9\x3d\x1f\xfb\xd8"
  5117. "\x07\x9f\xbf\x96\x74\xba\x6a\x0e"
  5118. "\x10\x48\x20\xd8\x13\x1e\xb5\x44"
  5119. "\xf2\xcc\xb1\x8b\xfb\xbb\xec\xd7"
  5120. "\x37\x70\x1f\x7c\x55\xd2\x4b\xb9"
  5121. "\xfd\x70\x5e\xa3\x91\x73\x63\x52"
  5122. "\x13\x47\x5a\x06\xfb\x01\x67\xa5"
  5123. "\xc0\xd0\x49\x19\x56\x66\x9a\x77"
  5124. "\x64\xaf\x8c\x25\x91\x52\x87\x0e"
  5125. "\x18\xf3\x5f\x97\xfd\x71\x13\xf8"
  5126. "\x05\xa5\x39\xcc\x65\xd3\xcc\x63"
  5127. "\x5b\xdb\x5f\x7e\x5f\x6e\xad\xc4"
  5128. "\xf4\xa0\xc5\xc2\x2b\x4d\x97\x38"
  5129. "\x4f\xbc\xfa\x33\x17\xb4\x47\xb9"
  5130. "\x43\x24\x15\x8d\xd2\xed\x80\x68"
  5131. "\x84\xdb\x04\x80\xca\x5e\x6a\x35"
  5132. "\x2c\x2c\xe7\xc5\x03\x5f\x54\xb0"
  5133. "\x5e\x4f\x1d\x40\x54\x3d\x78\x9a"
  5134. "\xac\xda\x80\x27\x4d\x15\x4c\x1a"
  5135. "\x6e\x80\xc9\xc4\x3b\x84\x0e\xd9"
  5136. "\x2e\x93\x01\x8c\xc3\xc8\x91\x4b"
  5137. "\xb3\xaa\x07\x04\x68\x5b\x93\xa5"
  5138. "\xe7\xc4\x9d\xe7\x07\xee\xf5\x3b"
  5139. "\x40\x89\xcc\x60\x34\x9d\xb4\x06"
  5140. "\x1b\xef\x92\xe6\xc1\x2a\x7d\x0f"
  5141. "\x81\xaa\x56\xe3\xd7\xed\xa7\xd4"
  5142. "\xa7\x3a\x49\xc4\xad\x81\x5c\x83"
  5143. "\x55\x8e\x91\x54\xb7\x7d\x65\xa5"
  5144. "\x06\x16\xd5\x9a\x16\xc1\xb0\xa2"
  5145. "\x06\xd8\x98\x47\x73\x7e\x73\xa0"
  5146. "\xb8\x23\xb1\x52\xbf\x68\x74\x5d"
  5147. "\x0b\xcb\xfa\x8c\x46\xe3\x24\xe6"
  5148. "\xab\xd4\x69\x8d\x8c\xf2\x8a\x59"
  5149. "\xbe\x48\x46\x50\x8c\x9a\xe8\xe3"
  5150. "\x31\x55\x0a\x06\xed\x4f\xf8\xb7"
  5151. "\x4f\xe3\x85\x17\x30\xbd\xd5\x20"
  5152. "\xe7\x5b\xb2\x32\xcf\x6b\x16\x44"
  5153. "\xd2\xf5\x7e\xd7\xd1\x2f\xee\x64"
  5154. "\x3e\x9d\x10\xef\x27\x35\x43\x64"
  5155. "\x67\xfb\x7a\x7b\xe0\x62\x31\x9a"
  5156. "\x4d\xdf\xa5\xab\xc0\x20\xbb\x01"
  5157. "\xe9\x7b\x54\xf1\xde\xb2\x79\x50"
  5158. "\x6c\x4b\x91\xdb\x7f\xbb\x50\xc1"
  5159. "\x55\x44\x38\x9a\xe0\x9f\xe8\x29"
  5160. "\x6f\x15\xf8\x4e\xa6\xec\xa0\x60",
  5161. .ksize = 1088,
  5162. .plaintext = "\x15\x68\x9e\x2f\xad\x15\x52\xdf"
  5163. "\xf0\x42\x62\x24\x2a\x2d\xea\xbf"
  5164. "\xc7\xf3\xb4\x1a\xf5\xed\xb2\x08"
  5165. "\x15\x60\x1c\x00\x77\xbf\x0b\x0e"
  5166. "\xb7\x2c\xcf\x32\x3a\xc7\x01\x77"
  5167. "\xef\xa6\x75\xd0\x29\xc7\x68\x20"
  5168. "\xb2\x92\x25\xbf\x12\x34\xe9\xa4"
  5169. "\xfd\x32\x7b\x3f\x7c\xbd\xa5\x02"
  5170. "\x38\x41\xde\xc9\xc1\x09\xd9\xfc"
  5171. "\x6e\x78\x22\x83\x18\xf7\x50\x8d"
  5172. "\x8f\x9c\x2d\x02\xa5\x30\xac\xff"
  5173. "\xea\x63\x2e\x80\x37\x83\xb0\x58"
  5174. "\xda\x2f\xef\x21\x55\xba\x7b\xb1"
  5175. "\xb6\xed\xf5\xd2\x4d\xaa\x8c\xa9"
  5176. "\xdd\xdb\x0f\xb4\xce\xc1\x9a\xb1"
  5177. "\xc1\xdc\xbd\xab\x86\xc2\xdf\x0b"
  5178. "\xe1\x2c\xf9\xbe\xf6\xd8\xda\x62"
  5179. "\x72\xdd\x98\x09\x52\xc0\xc4\xb6"
  5180. "\x7b\x17\x5c\xf5\xd8\x4b\x88\xd6"
  5181. "\x6b\xbf\x84\x4a\x3f\xf5\x4d\xd2"
  5182. "\x94\xe2\x9c\xff\xc7\x3c\xd9\xc8"
  5183. "\x37\x38\xbc\x8c\xf3\xe7\xb7\xd0"
  5184. "\x1d\x78\xc4\x39\x07\xc8\x5e\x79"
  5185. "\xb6\x5a\x90\x5b\x6e\x97\xc9\xd4"
  5186. "\x82\x9c\xf3\x83\x7a\xe7\x97\xfc"
  5187. "\x1d\xbb\xef\xdb\xce\xe0\x82\xad"
  5188. "\xca\x07\x6c\x54\x62\x6f\x81\xe6"
  5189. "\x7a\x5a\x96\x6e\x80\x3a\xa2\x37"
  5190. "\x6f\xc6\xa4\x29\xc3\x9e\x19\x94"
  5191. "\x9f\xb0\x3e\x38\xfb\x3c\x2b\x7d"
  5192. "\xaa\xb8\x74\xda\x54\x23\x51\x12"
  5193. "\x4b\x96\x36\x8f\x91\x4f\x19\x37"
  5194. "\x83\xc9\xdd\xc7\x1a\x32\x2d\xab"
  5195. "\xc7\x89\xe2\x07\x47\x6c\xe8\xa6"
  5196. "\x70\x6b\x8e\x0c\xda\x5c\x6a\x59"
  5197. "\x27\x33\x0e\xe1\xe1\x20\xe8\xc8"
  5198. "\xae\xdc\xd0\xe3\x6d\xa8\xa6\x06"
  5199. "\x41\xb4\xd4\xd4\xcf\x91\x3e\x06"
  5200. "\xb0\x9a\xf7\xf1\xaa\xa6\x23\x92"
  5201. "\x10\x86\xf0\x94\xd1\x7c\x2e\x07"
  5202. "\x30\xfb\xc5\xd8\xf3\x12\xa9\xe8"
  5203. "\x22\x1c\x97\x1a\xad\x96\xb0\xa1"
  5204. "\x72\x6a\x6b\xb4\xfd\xf7\xe8\xfa"
  5205. "\xe2\x74\xd8\x65\x8d\x35\x17\x4b"
  5206. "\x00\x23\x5c\x8c\x70\xad\x71\xa2"
  5207. "\xca\xc5\x6c\x59\xbf\xb4\xc0\x6d"
  5208. "\x86\x98\x3e\x19\x5a\x90\x92\xb1"
  5209. "\x66\x57\x6a\x91\x68\x7c\xbc\xf3"
  5210. "\xf1\xdb\x94\xf8\x48\xf1\x36\xd8"
  5211. "\x78\xac\x1c\xa9\xcc\xd6\x27\xba"
  5212. "\x91\x54\x22\xf5\xe6\x05\x3f\xcc"
  5213. "\xc2\x8f\x2c\x3b\x2b\xc3\x2b\x2b"
  5214. "\x3b\xb8\xb6\x29\xb7\x2f\x94\xb6"
  5215. "\x7b\xfc\x94\x3e\xd0\x7a\x41\x59"
  5216. "\x7b\x1f\x9a\x09\xa6\xed\x4a\x82"
  5217. "\x9d\x34\x1c\xbd\x4e\x1c\x3a\x66"
  5218. "\x80\x74\x0e\x9a\x4f\x55\x54\x47"
  5219. "\x16\xba\x2a\x0a\x03\x35\x99\xa3"
  5220. "\x5c\x63\x8d\xa2\x72\x8b\x17\x15"
  5221. "\x68\x39\x73\xeb\xec\xf2\xe8\xf5"
  5222. "\x95\x32\x27\xd6\xc4\xfe\xb0\x51"
  5223. "\xd5\x0c\x50\xc5\xcd\x6d\x16\xb3"
  5224. "\xa3\x1e\x95\x69\xad\x78\x95\x06"
  5225. "\xb9\x46\xf2\x6d\x24\x5a\x99\x76"
  5226. "\x73\x6a\x91\xa6\xac\x12\xe1\x28"
  5227. "\x79\xbc\x08\x4e\x97\x00\x98\x63"
  5228. "\x07\x1c\x4e\xd1\x68\xf3\xb3\x81"
  5229. "\xa8\xa6\x5f\xf1\x01\xc9\xc1\xaf"
  5230. "\x3a\x96\xf9\x9d\xb5\x5a\x5f\x8f"
  5231. "\x7e\xc1\x7e\x77\x0a\x40\xc8\x8e"
  5232. "\xfc\x0e\xed\xe1\x0d\xb0\xe5\x5e"
  5233. "\x5e\x6f\xf5\x7f\xab\x33\x7d\xcd"
  5234. "\xf0\x09\x4b\xb2\x11\x37\xdc\x65"
  5235. "\x97\x32\x62\x71\x3a\x29\x54\xb9"
  5236. "\xc7\xa4\xbf\x75\x0f\xf9\x40\xa9"
  5237. "\x8d\xd7\x8b\xa7\xe0\x9a\xbe\x15"
  5238. "\xc6\xda\xd8\x00\x14\x69\x1a\xaf"
  5239. "\x5f\x79\xc3\xf5\xbb\x6c\x2a\x9d"
  5240. "\xdd\x3c\x5f\x97\x21\xe1\x3a\x03"
  5241. "\x84\x6a\xe9\x76\x11\x1f\xd3\xd5"
  5242. "\xf0\x54\x20\x4d\xc2\x91\xc3\xa4"
  5243. "\x36\x25\xbe\x1b\x2a\x06\xb7\xf3"
  5244. "\xd1\xd0\x55\x29\x81\x4c\x83\xa3"
  5245. "\xa6\x84\x1e\x5c\xd1\xd0\x6c\x90"
  5246. "\xa4\x11\xf0\xd7\x63\x6a\x48\x05"
  5247. "\xbc\x48\x18\x53\xcd\xb0\x8d\xdb"
  5248. "\xdc\xfe\x55\x11\x5c\x51\xb3\xab"
  5249. "\xab\x63\x3e\x31\x5a\x8b\x93\x63"
  5250. "\x34\xa9\xba\x2b\x69\x1a\xc0\xe3"
  5251. "\xcb\x41\xbc\xd7\xf5\x7f\x82\x3e"
  5252. "\x01\xa3\x3c\x72\xf4\xfe\xdf\xbe"
  5253. "\xb1\x67\x17\x2b\x37\x60\x0d\xca"
  5254. "\x6f\xc3\x94\x2c\xd2\x92\x6d\x9d"
  5255. "\x75\x18\x77\xaa\x29\x38\x96\xed"
  5256. "\x0e\x20\x70\x92\xd5\xd0\xb4\x00"
  5257. "\xc0\x31\xf2\xc9\x43\x0e\x75\x1d"
  5258. "\x4b\x64\xf2\x1f\xf2\x29\x6c\x7b"
  5259. "\x7f\xec\x59\x7d\x8c\x0d\xd4\xd3"
  5260. "\xac\x53\x4c\xa3\xde\x42\x92\x95"
  5261. "\x6d\xa3\x4f\xd0\xe6\x3d\xe7\xec"
  5262. "\x7a\x4d\x68\xf1\xfe\x67\x66\x09"
  5263. "\x83\x22\xb1\x98\x43\x8c\xab\xb8"
  5264. "\x45\xe6\x6d\xdf\x5e\x50\x71\xce"
  5265. "\xf5\x4e\x40\x93\x2b\xfa\x86\x0e"
  5266. "\xe8\x30\xbd\x82\xcc\x1c\x9c\x5f"
  5267. "\xad\xfd\x08\x31\xbe\x52\xe7\xe6"
  5268. "\xf2\x06\x01\x62\x25\x15\x99\x74"
  5269. "\x33\x51\x52\x57\x3f\x57\x87\x61"
  5270. "\xb9\x7f\x29\x3d\xcd\x92\x5e\xa6"
  5271. "\x5c\x3b\xf1\xed\x5f\xeb\x82\xed"
  5272. "\x56\x7b\x61\xe7\xfd\x02\x47\x0e"
  5273. "\x2a\x15\xa4\xce\x43\x86\x9b\xe1"
  5274. "\x2b\x4c\x2a\xd9\x42\x97\xf7\x9a"
  5275. "\xe5\x47\x46\x48\xd3\x55\x6f\x4d"
  5276. "\xd9\xeb\x4b\xdd\x7b\x21\x2f\xb3"
  5277. "\xa8\x36\x28\xdf\xca\xf1\xf6\xd9"
  5278. "\x10\xf6\x1c\xfd\x2e\x0c\x27\xe0"
  5279. "\x01\xb3\xff\x6d\x47\x08\x4d\xd4"
  5280. "\x00\x25\xee\x55\x4a\xe9\xe8\x5b"
  5281. "\xd8\xf7\x56\x12\xd4\x50\xb2\xe5"
  5282. "\x51\x6f\x34\x63\x69\xd2\x4e\x96"
  5283. "\x4e\xbc\x79\xbf\x18\xae\xc6\x13"
  5284. "\x80\x92\x77\xb0\xb4\x0f\x29\x94"
  5285. "\x6f\x4c\xbb\x53\x11\x36\xc3\x9f"
  5286. "\x42\x8e\x96\x8a\x91\xc8\xe9\xfc"
  5287. "\xfe\xbf\x7c\x2d\x6f\xf9\xb8\x44"
  5288. "\x89\x1b\x09\x53\x0a\x2a\x92\xc3"
  5289. "\x54\x7a\x3a\xf9\xe2\xe4\x75\x87"
  5290. "\xa0\x5e\x4b\x03\x7a\x0d\x8a\xf4"
  5291. "\x55\x59\x94\x2b\x63\x96\x0e\xf5",
  5292. .psize = 1040,
  5293. .digest = "\xb5\xb9\x08\xb3\x24\x3e\x03\xf0"
  5294. "\xd6\x0b\x57\xbc\x0a\x6d\x89\x59",
  5295. }, {
  5296. .key = "\xf6\x34\x42\x71\x35\x52\x8b\x58"
  5297. "\x02\x3a\x8e\x4a\x8d\x41\x13\xe9"
  5298. "\x7f\xba\xb9\x55\x9d\x73\x4d\xf8"
  5299. "\x3f\x5d\x73\x15\xff\xd3\x9e\x7f"
  5300. "\x20\x2a\x6a\xa8\xd1\xf0\x8f\x12"
  5301. "\x6b\x02\xd8\x6c\xde\xba\x80\x22"
  5302. "\x19\x37\xc8\xd0\x4e\x89\x17\x7c"
  5303. "\x7c\xdd\x88\xfd\x41\xc0\x04\xb7"
  5304. "\x1d\xac\x19\xe3\x20\xc7\x16\xcf"
  5305. "\x58\xee\x1d\x7a\x61\x69\xa9\x12"
  5306. "\x4b\xef\x4f\xb6\x38\xdd\x78\xf8"
  5307. "\x28\xee\x70\x08\xc7\x7c\xcc\xc8"
  5308. "\x1e\x41\xf5\x80\x86\x70\xd0\xf0"
  5309. "\xa3\x87\x6b\x0a\x00\xd2\x41\x28"
  5310. "\x74\x26\xf1\x24\xf3\xd0\x28\x77"
  5311. "\xd7\xcd\xf6\x2d\x61\xf4\xa2\x13"
  5312. "\x77\xb4\x6f\xa0\xf4\xfb\xd6\xb5"
  5313. "\x38\x9d\x5a\x0c\x51\xaf\xad\x63"
  5314. "\x27\x67\x8c\x01\xea\x42\x1a\x66"
  5315. "\xda\x16\x7c\x3c\x30\x0c\x66\x53"
  5316. "\x1c\x88\xa4\x5c\xb2\xe3\x78\x0a"
  5317. "\x13\x05\x6d\xe2\xaf\xb3\xe4\x75"
  5318. "\x00\x99\x58\xee\x76\x09\x64\xaa"
  5319. "\xbb\x2e\xb1\x81\xec\xd8\x0e\xd3"
  5320. "\x0c\x33\x5d\xb7\x98\xef\x36\xb6"
  5321. "\xd2\x65\x69\x41\x70\x12\xdc\x25"
  5322. "\x41\x03\x99\x81\x41\x19\x62\x13"
  5323. "\xd1\x0a\x29\xc5\x8c\xe0\x4c\xf3"
  5324. "\xd6\xef\x4c\xf4\x1d\x83\x2e\x6d"
  5325. "\x8e\x14\x87\xed\x80\xe0\xaa\xd3"
  5326. "\x08\x04\x73\x1a\x84\x40\xf5\x64"
  5327. "\xbd\x61\x32\x65\x40\x42\xfb\xb0"
  5328. "\x40\xf6\x40\x8d\xc7\x7f\x14\xd0"
  5329. "\x83\x99\xaa\x36\x7e\x60\xc6\xbf"
  5330. "\x13\x8a\xf9\x21\xe4\x7e\x68\x87"
  5331. "\xf3\x33\x86\xb4\xe0\x23\x7e\x0a"
  5332. "\x21\xb1\xf5\xad\x67\x3c\x9c\x9d"
  5333. "\x09\xab\xaf\x5f\xba\xe0\xd0\x82"
  5334. "\x48\x22\x70\xb5\x6d\x53\xd6\x0e"
  5335. "\xde\x64\x92\x41\xb0\xd3\xfb\xda"
  5336. "\x21\xfe\xab\xea\x20\xc4\x03\x58"
  5337. "\x18\x2e\x7d\x2f\x03\xa9\x47\x66"
  5338. "\xdf\x7b\xa4\x6b\x34\x6b\x55\x9c"
  5339. "\x4f\xd7\x9c\x47\xfb\xa9\x42\xec"
  5340. "\x5a\x12\xfd\xfe\x76\xa0\x92\x9d"
  5341. "\xfe\x1e\x16\xdd\x24\x2a\xe4\x27"
  5342. "\xd5\xa9\xf2\x05\x4f\x83\xa2\xaf"
  5343. "\xfe\xee\x83\x7a\xad\xde\xdf\x9a"
  5344. "\x80\xd5\x81\x14\x93\x16\x7e\x46"
  5345. "\x47\xc2\x14\xef\x49\x6e\xb9\xdb"
  5346. "\x40\xe8\x06\x6f\x9c\x2a\xfd\x62"
  5347. "\x06\x46\xfd\x15\x1d\x36\x61\x6f"
  5348. "\x77\x77\x5e\x64\xce\x78\x1b\x85"
  5349. "\xbf\x50\x9a\xfd\x67\xa6\x1a\x65"
  5350. "\xad\x5b\x33\x30\xf1\x71\xaa\xd9"
  5351. "\x23\x0d\x92\x24\x5f\xae\x57\xb0"
  5352. "\x24\x37\x0a\x94\x12\xfb\xb5\xb1"
  5353. "\xd3\xb8\x1d\x12\x29\xb0\x80\x24"
  5354. "\x2d\x47\x9f\x96\x1f\x95\xf1\xb1"
  5355. "\xda\x35\xf6\x29\xe0\xe1\x23\x96"
  5356. "\xc7\xe8\x22\x9b\x7c\xac\xf9\x41"
  5357. "\x39\x01\xe5\x73\x15\x5e\x99\xec"
  5358. "\xb4\xc1\xf4\xe7\xa7\x97\x6a\xd5"
  5359. "\x90\x9a\xa0\x1d\xf3\x5a\x8b\x5f"
  5360. "\xdf\x01\x52\xa4\x93\x31\x97\xb0"
  5361. "\x93\x24\xb5\xbc\xb2\x14\x24\x98"
  5362. "\x4a\x8f\x19\x85\xc3\x2d\x0f\x74"
  5363. "\x9d\x16\x13\x80\x5e\x59\x62\x62"
  5364. "\x25\xe0\xd1\x2f\x64\xef\xba\xac"
  5365. "\xcd\x09\x07\x15\x8a\xcf\x73\xb5"
  5366. "\x8b\xc9\xd8\x24\xb0\x53\xd5\x6f"
  5367. "\xe1\x2b\x77\xb1\xc5\xe4\xa7\x0e"
  5368. "\x18\x45\xab\x36\x03\x59\xa8\xbd"
  5369. "\x43\xf0\xd8\x2c\x1a\x69\x96\xbb"
  5370. "\x13\xdf\x6c\x33\x77\xdf\x25\x34"
  5371. "\x5b\xa5\x5b\x8c\xf9\x51\x05\xd4"
  5372. "\x8b\x8b\x44\x87\x49\xfc\xa0\x8f"
  5373. "\x45\x15\x5b\x40\x42\xc4\x09\x92"
  5374. "\x98\x0c\x4d\xf4\x26\x37\x1b\x13"
  5375. "\x76\x01\x93\x8d\x4f\xe6\xed\x18"
  5376. "\xd0\x79\x7b\x3f\x44\x50\xcb\xee"
  5377. "\xf7\x4a\xc9\x9e\xe0\x96\x74\xa7"
  5378. "\xe6\x93\xb2\x53\xca\x55\xa8\xdc"
  5379. "\x1e\x68\x07\x87\xb7\x2e\xc1\x08"
  5380. "\xb2\xa4\x5b\xaf\xc6\xdb\x5c\x66"
  5381. "\x41\x1c\x51\xd9\xb0\x07\x00\x0d"
  5382. "\xf0\x4c\xdc\x93\xde\xa9\x1e\x8e"
  5383. "\xd3\x22\x62\xd8\x8b\x88\x2c\xea"
  5384. "\x5e\xf1\x6e\x14\x40\xc7\xbe\xaa"
  5385. "\x42\x28\xd0\x26\x30\x78\x01\x9b"
  5386. "\x83\x07\xbc\x94\xc7\x57\xa2\x9f"
  5387. "\x03\x07\xff\x16\xff\x3c\x6e\x48"
  5388. "\x0a\xd0\xdd\x4c\xf6\x64\x9a\xf1"
  5389. "\xcd\x30\x12\x82\x2c\x38\xd3\x26"
  5390. "\x83\xdb\xab\x3e\xc6\xf8\xe6\xfa"
  5391. "\x77\x0a\x78\x82\x75\xf8\x63\x51"
  5392. "\x59\xd0\x8d\x24\x9f\x25\xe6\xa3"
  5393. "\x4c\xbc\x34\xfc\xe3\x10\xc7\x62"
  5394. "\xd4\x23\xc8\x3d\xa7\xc6\xa6\x0a"
  5395. "\x4f\x7e\x29\x9d\x6d\xbe\xb5\xf1"
  5396. "\xdf\xa4\x53\xfa\xc0\x23\x0f\x37"
  5397. "\x84\x68\xd0\xb5\xc8\xc6\xae\xf8"
  5398. "\xb7\x8d\xb3\x16\xfe\x8f\x87\xad"
  5399. "\xd0\xc1\x08\xee\x12\x1c\x9b\x1d"
  5400. "\x90\xf8\xd1\x63\xa4\x92\x3c\xf0"
  5401. "\xc7\x34\xd8\xf1\x14\xed\xa3\xbc"
  5402. "\x17\x7e\xd4\x62\x42\x54\x57\x2c"
  5403. "\x3e\x7a\x35\x35\x17\x0f\x0b\x7f"
  5404. "\x81\xa1\x3f\xd0\xcd\xc8\x3b\x96"
  5405. "\xe9\xe0\x4a\x04\xe1\xb6\x3c\xa1"
  5406. "\xd6\xca\xc4\xbd\xb6\xb5\x95\x34"
  5407. "\x12\x9d\xc5\x96\xf2\xdf\xba\x54"
  5408. "\x76\xd1\xb2\x6b\x3b\x39\xe0\xb9"
  5409. "\x18\x62\xfb\xf7\xfc\x12\xf1\x5f"
  5410. "\x7e\xc7\xe3\x59\x4c\xa6\xc2\x3d"
  5411. "\x40\x15\xf9\xa3\x95\x64\x4c\x74"
  5412. "\x8b\x73\x77\x33\x07\xa7\x04\x1d"
  5413. "\x33\x5a\x7e\x8f\xbd\x86\x01\x4f"
  5414. "\x3e\xb9\x27\x6f\xe2\x41\xf7\x09"
  5415. "\x67\xfd\x29\x28\xc5\xe4\xf6\x18"
  5416. "\x4c\x1b\x49\xb2\x9c\x5b\xf6\x81"
  5417. "\x4f\xbb\x5c\xcc\x0b\xdf\x84\x23"
  5418. "\x58\xd6\x28\x34\x93\x3a\x25\x97"
  5419. "\xdf\xb2\xc3\x9e\x97\x38\x0b\x7d"
  5420. "\x10\xb3\x54\x35\x23\x8c\x64\xee"
  5421. "\xf0\xd8\x66\xff\x8b\x22\xd2\x5b"
  5422. "\x05\x16\x3c\x89\xf7\xb1\x75\xaf"
  5423. "\xc0\xae\x6a\x4f\x3f\xaf\x9a\xf4"
  5424. "\xf4\x9a\x24\xd9\x80\x82\xc0\x12"
  5425. "\xde\x96\xd1\xbe\x15\x0b\x8d\x6a"
  5426. "\xd7\x12\xe4\x85\x9f\x83\xc9\xc3"
  5427. "\xff\x0b\xb5\xaf\x3b\xd8\x6d\x67"
  5428. "\x81\x45\xe6\xac\xec\xc1\x7b\x16"
  5429. "\x18\x0a\xce\x4b\xc0\x2e\x76\xbc"
  5430. "\x1b\xfa\xb4\x34\xb8\xfc\x3e\xc8"
  5431. "\x5d\x90\x71\x6d\x7a\x79\xef\x06",
  5432. .ksize = 1088,
  5433. .plaintext = "\xaa\x5d\x54\xcb\xea\x1e\x46\x0f"
  5434. "\x45\x87\x70\x51\x8a\x66\x7a\x33"
  5435. "\xb4\x18\xff\xa9\x82\xf9\x45\x4b"
  5436. "\x93\xae\x2e\x7f\xab\x98\xfe\xbf"
  5437. "\x01\xee\xe5\xa0\x37\x8f\x57\xa6"
  5438. "\xb0\x76\x0d\xa4\xd6\x28\x2b\x5d"
  5439. "\xe1\x03\xd6\x1c\x6f\x34\x0d\xe7"
  5440. "\x61\x2d\x2e\xe5\xae\x5d\x47\xc7"
  5441. "\x80\x4b\x18\x8f\xa8\x99\xbc\x28"
  5442. "\xed\x1d\x9d\x86\x7d\xd7\x41\xd1"
  5443. "\xe0\x2b\xe1\x8c\x93\x2a\xa7\x80"
  5444. "\xe1\x07\xa0\xa9\x9f\x8c\x8d\x1a"
  5445. "\x55\xfc\x6b\x24\x7a\xbd\x3e\x51"
  5446. "\x68\x4b\x26\x59\xc8\xa7\x16\xd9"
  5447. "\xb9\x61\x13\xde\x8b\x63\x1c\xf6"
  5448. "\x60\x01\xfb\x08\xb3\x5b\x0a\xbf"
  5449. "\x34\x73\xda\x87\x87\x3d\x6f\x97"
  5450. "\x4a\x0c\xa3\x58\x20\xa2\xc0\x81"
  5451. "\x5b\x8c\xef\xa9\xc2\x01\x1e\x64"
  5452. "\x83\x8c\xbc\x03\xb6\xd0\x29\x9f"
  5453. "\x54\xe2\xce\x8b\xc2\x07\x85\x78"
  5454. "\x25\x38\x96\x4c\xb4\xbe\x17\x4a"
  5455. "\x65\xa6\xfa\x52\x9d\x66\x9d\x65"
  5456. "\x4a\xd1\x01\x01\xf0\xcb\x13\xcc"
  5457. "\xa5\x82\xf3\xf2\x66\xcd\x3f\x9d"
  5458. "\xd1\xaa\xe4\x67\xea\xf2\xad\x88"
  5459. "\x56\x76\xa7\x9b\x59\x3c\xb1\x5d"
  5460. "\x78\xfd\x69\x79\x74\x78\x43\x26"
  5461. "\x7b\xde\x3f\xf1\xf5\x4e\x14\xd9"
  5462. "\x15\xf5\x75\xb5\x2e\x19\xf3\x0c"
  5463. "\x48\x72\xd6\x71\x6d\x03\x6e\xaa"
  5464. "\xa7\x08\xf9\xaa\x70\xa3\x0f\x4d"
  5465. "\x12\x8a\xdd\xe3\x39\x73\x7e\xa7"
  5466. "\xea\x1f\x6d\x06\x26\x2a\xf2\xc5"
  5467. "\x52\xb4\xbf\xfd\x52\x0c\x06\x60"
  5468. "\x90\xd1\xb2\x7b\x56\xae\xac\x58"
  5469. "\x5a\x6b\x50\x2a\xf5\xe0\x30\x3c"
  5470. "\x2a\x98\x0f\x1b\x5b\x0a\x84\x6c"
  5471. "\x31\xae\x92\xe2\xd4\xbb\x7f\x59"
  5472. "\x26\x10\xb9\x89\x37\x68\x26\xbf"
  5473. "\x41\xc8\x49\xc4\x70\x35\x7d\xff"
  5474. "\x2d\x7f\xf6\x8a\x93\x68\x8c\x78"
  5475. "\x0d\x53\xce\x7d\xff\x7d\xfb\xae"
  5476. "\x13\x1b\x75\xc4\x78\xd7\x71\xd8"
  5477. "\xea\xd3\xf4\x9d\x95\x64\x8e\xb4"
  5478. "\xde\xb8\xe4\xa6\x68\xc8\xae\x73"
  5479. "\x58\xaf\xa8\xb0\x5a\x20\xde\x87"
  5480. "\x43\xb9\x0f\xe3\xad\x41\x4b\xd5"
  5481. "\xb7\xad\x16\x00\xa6\xff\xf6\x74"
  5482. "\xbf\x8c\x9f\xb3\x58\x1b\xb6\x55"
  5483. "\xa9\x90\x56\x28\xf0\xb5\x13\x4e"
  5484. "\x9e\xf7\x25\x86\xe0\x07\x7b\x98"
  5485. "\xd8\x60\x5d\x38\x95\x3c\xe4\x22"
  5486. "\x16\x2f\xb2\xa2\xaf\xe8\x90\x17"
  5487. "\xec\x11\x83\x1a\xf4\xa9\x26\xda"
  5488. "\x39\x72\xf5\x94\x61\x05\x51\xec"
  5489. "\xa8\x30\x8b\x2c\x13\xd0\x72\xac"
  5490. "\xb9\xd2\xa0\x4c\x4b\x78\xe8\x6e"
  5491. "\x04\x85\xe9\x04\x49\x82\x91\xff"
  5492. "\x89\xe5\xab\x4c\xaa\x37\x03\x12"
  5493. "\xca\x8b\x74\x10\xfd\x9e\xd9\x7b"
  5494. "\xcb\xdb\x82\x6e\xce\x2e\x33\x39"
  5495. "\xce\xd2\x84\x6e\x34\x71\x51\x6e"
  5496. "\x0d\xd6\x01\x87\xc7\xfa\x0a\xd3"
  5497. "\xad\x36\xf3\x4c\x9f\x96\x5e\x62"
  5498. "\x62\x54\xc3\x03\x78\xd6\xab\xdd"
  5499. "\x89\x73\x55\x25\x30\xf8\xa7\xe6"
  5500. "\x4f\x11\x0c\x7c\x0a\xa1\x2b\x7b"
  5501. "\x3d\x0d\xde\x81\xd4\x9d\x0b\xae"
  5502. "\xdf\x00\xf9\x4c\xb6\x90\x8e\x16"
  5503. "\xcb\x11\xc8\xd1\x2e\x73\x13\x75"
  5504. "\x75\x3e\xaa\xf5\xee\x02\xb3\x18"
  5505. "\xa6\x2d\xf5\x3b\x51\xd1\x1f\x47"
  5506. "\x6b\x2c\xdb\xc4\x10\xe0\xc8\xba"
  5507. "\x9d\xac\xb1\x9d\x75\xd5\x41\x0e"
  5508. "\x7e\xbe\x18\x5b\xa4\x1f\xf8\x22"
  5509. "\x4c\xc1\x68\xda\x6d\x51\x34\x6c"
  5510. "\x19\x59\xec\xb5\xb1\xec\xa7\x03"
  5511. "\xca\x54\x99\x63\x05\x6c\xb1\xac"
  5512. "\x9c\x31\xd6\xdb\xba\x7b\x14\x12"
  5513. "\x7a\xc3\x2f\xbf\x8d\xdc\x37\x46"
  5514. "\xdb\xd2\xbc\xd4\x2f\xab\x30\xd5"
  5515. "\xed\x34\x99\x8e\x83\x3e\xbe\x4c"
  5516. "\x86\x79\x58\xe0\x33\x8d\x9a\xb8"
  5517. "\xa9\xa6\x90\x46\xa2\x02\xb8\xdd"
  5518. "\xf5\xf9\x1a\x5c\x8c\x01\xaa\x6e"
  5519. "\xb4\x22\x12\xf5\x0c\x1b\x9b\x7a"
  5520. "\xc3\x80\xf3\x06\x00\x5f\x30\xd5"
  5521. "\x06\xdb\x7d\x82\xc2\xd4\x0b\x4c"
  5522. "\x5f\xe9\xc5\xf5\xdf\x97\x12\xbf"
  5523. "\x56\xaf\x9b\x69\xcd\xee\x30\xb4"
  5524. "\xa8\x71\xff\x3e\x7d\x73\x7a\xb4"
  5525. "\x0d\xa5\x46\x7a\xf3\xf4\x15\x87"
  5526. "\x5d\x93\x2b\x8c\x37\x64\xb5\xdd"
  5527. "\x48\xd1\xe5\x8c\xae\xd4\xf1\x76"
  5528. "\xda\xf4\xba\x9e\x25\x0e\xad\xa3"
  5529. "\x0d\x08\x7c\xa8\x82\x16\x8d\x90"
  5530. "\x56\x40\x16\x84\xe7\x22\x53\x3a"
  5531. "\x58\xbc\xb9\x8f\x33\xc8\xc2\x84"
  5532. "\x22\xe6\x0d\xe7\xb3\xdc\x5d\xdf"
  5533. "\xd7\x2a\x36\xe4\x16\x06\x07\xd2"
  5534. "\x97\x60\xb2\xf5\x5e\x14\xc9\xfd"
  5535. "\x8b\x05\xd1\xce\xee\x9a\x65\x99"
  5536. "\xb7\xae\x19\xb7\xc8\xbc\xd5\xa2"
  5537. "\x7b\x95\xe1\xcc\xba\x0d\xdc\x8a"
  5538. "\x1d\x59\x52\x50\xaa\x16\x02\x82"
  5539. "\xdf\x61\x33\x2e\x44\xce\x49\xc7"
  5540. "\xe5\xc6\x2e\x76\xcf\x80\x52\xf0"
  5541. "\x3d\x17\x34\x47\x3f\xd3\x80\x48"
  5542. "\xa2\xba\xd5\xc7\x7b\x02\x28\xdb"
  5543. "\xac\x44\xc7\x6e\x05\x5c\xc2\x79"
  5544. "\xb3\x7d\x6a\x47\x77\x66\xf1\x38"
  5545. "\xf0\xf5\x4f\x27\x1a\x31\xca\x6c"
  5546. "\x72\x95\x92\x8e\x3f\xb0\xec\x1d"
  5547. "\xc7\x2a\xff\x73\xee\xdf\x55\x80"
  5548. "\x93\xd2\xbd\x34\xd3\x9f\x00\x51"
  5549. "\xfb\x2e\x41\xba\x6c\x5a\x7c\x17"
  5550. "\x7f\xe6\x70\xac\x8d\x39\x3f\x77"
  5551. "\xe2\x23\xac\x8f\x72\x4e\xe4\x53"
  5552. "\xcc\xf1\x1b\xf1\x35\xfe\x52\xa4"
  5553. "\xd6\xb8\x40\x6b\xc1\xfd\xa0\xa1"
  5554. "\xf5\x46\x65\xc2\x50\xbb\x43\xe2"
  5555. "\xd1\x43\x28\x34\x74\xf5\x87\xa0"
  5556. "\xf2\x5e\x27\x3b\x59\x2b\x3e\x49"
  5557. "\xdf\x46\xee\xaf\x71\xd7\x32\x36"
  5558. "\xc7\x14\x0b\x58\x6e\x3e\x2d\x41"
  5559. "\xfa\x75\x66\x3a\x54\xe0\xb2\xb9"
  5560. "\xaf\xdd\x04\x80\x15\x19\x3f\x6f"
  5561. "\xce\x12\xb4\xd8\xe8\x89\x3c\x05"
  5562. "\x30\xeb\xf3\x3d\xcd\x27\xec\xdc"
  5563. "\x56\x70\x12\xcf\x78\x2b\x77\xbf"
  5564. "\x22\xf0\x1b\x17\x9c\xcc\xd6\x1b"
  5565. "\x2d\x3d\xa0\x3b\xd8\xc9\x70\xa4"
  5566. "\x7a\x3e\x07\xb9\x06\xc3\xfa\xb0"
  5567. "\x33\xee\xc1\xd8\xf6\xe0\xf0\xb2"
  5568. "\x61\x12\x69\xb0\x5f\x28\x99\xda"
  5569. "\xc3\x61\x48\xfa\x07\x16\x03\xc4"
  5570. "\xa8\xe1\x3c\xe8\x0e\x64\x15\x30"
  5571. "\xc1\x9d\x84\x2f\x73\x98\x0e\x3a"
  5572. "\xf2\x86\x21\xa4\x9e\x1d\xb5\x86"
  5573. "\x16\xdb\x2b\x9a\x06\x64\x8e\x79"
  5574. "\x8d\x76\x3e\xc3\xc2\x64\x44\xe3"
  5575. "\xda\xbc\x1a\x52\xd7\x61\x03\x65"
  5576. "\x54\x32\x77\x01\xed\x9d\x8a\x43"
  5577. "\x25\x24\xe3\xc1\xbe\xb8\x2f\xcb"
  5578. "\x89\x14\x64\xab\xf6\xa0\x6e\x02"
  5579. "\x57\xe4\x7d\xa9\x4e\x9a\x03\x36"
  5580. "\xad\xf1\xb1\xfc\x0b\xe6\x79\x51"
  5581. "\x9f\x81\x77\xc4\x14\x78\x9d\xbf"
  5582. "\xb6\xd6\xa3\x8c\xba\x0b\x26\xe7"
  5583. "\xc8\xb9\x5c\xcc\xe1\x5f\xd5\xc6"
  5584. "\xc4\xca\xc2\xa3\x45\xba\x94\x13"
  5585. "\xb2\x8f\xc3\x54\x01\x09\xe7\x8b"
  5586. "\xda\x2a\x0a\x11\x02\x43\xcb\x57"
  5587. "\xc9\xcc\xb5\x5c\xab\xc4\xec\x54"
  5588. "\x00\x06\x34\xe1\x6e\x03\x89\x7c"
  5589. "\xc6\xfb\x6a\xc7\x60\x43\xd6\xc5"
  5590. "\xb5\x68\x72\x89\x8f\x42\xc3\x74"
  5591. "\xbd\x25\xaa\x9f\x67\xb5\xdf\x26"
  5592. "\x20\xe8\xb7\x01\x3c\xe4\x77\xce"
  5593. "\xc4\x65\xa7\x23\x79\xea\x33\xc7"
  5594. "\x82\x14\x5c\x82\xf2\x4e\x3d\xf6"
  5595. "\xc6\x4a\x0e\x29\xbb\xec\x44\xcd"
  5596. "\x2f\xd1\x4f\x21\x71\xa9\xce\x0f"
  5597. "\x5c\xf2\x72\x5c\x08\x2e\x21\xd2"
  5598. "\xc3\x29\x13\xd8\xac\xc3\xda\x13"
  5599. "\x1a\x9d\xa7\x71\x1d\x27\x1d\x27"
  5600. "\x1d\xea\xab\x44\x79\xad\xe5\xeb"
  5601. "\xef\x1f\x22\x0a\x44\x4f\xcb\x87"
  5602. "\xa7\x58\x71\x0e\x66\xf8\x60\xbf"
  5603. "\x60\x74\x4a\xb4\xec\x2e\xfe\xd3"
  5604. "\xf5\xb8\xfe\x46\x08\x50\x99\x6c"
  5605. "\x66\xa5\xa8\x34\x44\xb5\xe5\xf0"
  5606. "\xdd\x2c\x67\x4e\x35\x96\x8e\x67"
  5607. "\x48\x3f\x5f\x37\x44\x60\x51\x2e"
  5608. "\x14\x91\x5e\x57\xc3\x0e\x79\x77"
  5609. "\x2f\x03\xf4\xe2\x1c\x72\xbf\x85"
  5610. "\x5d\xd3\x17\xdf\x6c\xc5\x70\x24"
  5611. "\x42\xdf\x51\x4e\x2a\xb2\xd2\x5b"
  5612. "\x9e\x69\x83\x41\x11\xfe\x73\x22"
  5613. "\xde\x8a\x9e\xd8\x8a\xfb\x20\x38"
  5614. "\xd8\x47\x6f\xd5\xed\x8f\x41\xfd"
  5615. "\x13\x7a\x18\x03\x7d\x0f\xcd\x7d"
  5616. "\xa6\x7d\x31\x9e\xf1\x8f\x30\xa3"
  5617. "\x8b\x4c\x24\xb7\xf5\x48\xd7\xd9"
  5618. "\x12\xe7\x84\x97\x5c\x31\x6d\xfb"
  5619. "\xdf\xf3\xd3\xd1\xd5\x0c\x30\x06"
  5620. "\x01\x6a\xbc\x6c\x78\x7b\xa6\x50"
  5621. "\xfa\x0f\x3c\x42\x2d\xa5\xa3\x3b"
  5622. "\xcf\x62\x50\xff\x71\x6d\xe7\xda"
  5623. "\x27\xab\xc6\x67\x16\x65\x68\x64"
  5624. "\xc7\xd5\x5f\x81\xa9\xf6\x65\xb3"
  5625. "\x5e\x43\x91\x16\xcd\x3d\x55\x37"
  5626. "\x55\xb3\xf0\x28\xc5\x54\x19\xc0"
  5627. "\xe0\xd6\x2a\x61\xd4\xc8\x72\x51"
  5628. "\xe9\xa1\x7b\x48\x21\xad\x44\x09"
  5629. "\xe4\x01\x61\x3c\x8a\x5b\xf9\xa1"
  5630. "\x6e\x1b\xdf\xc0\x04\xa8\x8b\xf2"
  5631. "\x21\xbe\x34\x7b\xfc\xa1\xcd\xc9"
  5632. "\xa9\x96\xf4\xa4\x4c\xf7\x4e\x8f"
  5633. "\x84\xcc\xd3\xa8\x92\x77\x8f\x36"
  5634. "\xe2\x2e\x8c\x33\xe8\x84\xa6\x0c"
  5635. "\x6c\x8a\xda\x14\x32\xc2\x96\xff"
  5636. "\xc6\x4a\xc2\x9b\x30\x7f\xd1\x29"
  5637. "\xc0\xd5\x78\x41\x00\x80\x80\x03"
  5638. "\x2a\xb1\xde\x26\x03\x48\x49\xee"
  5639. "\x57\x14\x76\x51\x3c\x36\x5d\x0a"
  5640. "\x5c\x9f\xe8\xd8\x53\xdb\x4f\xd4"
  5641. "\x38\xbf\x66\xc9\x75\x12\x18\x75"
  5642. "\x34\x2d\x93\x22\x96\x51\x24\x6e"
  5643. "\x4e\xd9\x30\xea\x67\xff\x92\x1c"
  5644. "\x16\x26\xe9\xb5\x33\xab\x8c\x22"
  5645. "\x47\xdb\xa0\x2c\x08\xf0\x12\x69"
  5646. "\x7e\x93\x52\xda\xa5\xe5\xca\xc1"
  5647. "\x0f\x55\x2a\xbd\x09\x30\x88\x1b"
  5648. "\x9c\xc6\x9f\xe6\xdb\xa6\x92\xeb"
  5649. "\xf4\xbd\x5c\xc4\xdb\xc6\x71\x09"
  5650. "\xab\x5e\x48\x0c\xed\x6f\xda\x8e"
  5651. "\x8d\x0c\x98\x71\x7d\x10\xd0\x9c"
  5652. "\x20\x9b\x79\x53\x26\x5d\xb9\x85"
  5653. "\x8a\x31\xb8\xc5\x1c\x97\xde\x88"
  5654. "\x61\x55\x7f\x7c\x21\x06\xea\xc4"
  5655. "\x5f\xaf\xf2\xf0\xd5\x5e\x7d\xb4"
  5656. "\x6e\xcf\xe9\xae\x1b\x0e\x11\x80"
  5657. "\xc1\x9a\x74\x7e\x52\x6f\xa0\xb7"
  5658. "\x24\xcd\x8d\x0a\x11\x40\x63\x72"
  5659. "\xfa\xe2\xc5\xb3\x94\xef\x29\xa2"
  5660. "\x1a\x23\x43\x04\x37\x55\x0d\xe9"
  5661. "\x83\xb2\x29\x51\x49\x64\xa0\xbd"
  5662. "\xde\x73\xfd\xa5\x7c\x95\x70\x62"
  5663. "\x58\xdc\xe2\xd0\xbf\x98\xf5\x8a"
  5664. "\x6a\xfd\xce\xa8\x0e\x42\x2a\xeb"
  5665. "\xd2\xff\x83\x27\x53\x5c\xa0\x6e"
  5666. "\x93\xef\xe2\xb9\x5d\x35\xd6\x98"
  5667. "\xf6\x71\x19\x7a\x54\xa1\xa7\xe8"
  5668. "\x09\xfe\xf6\x9e\xc7\xbd\x3e\x29"
  5669. "\xbd\x6b\x17\xf4\xe7\x3e\x10\x5c"
  5670. "\xc1\xd2\x59\x4f\x4b\x12\x1a\x5b"
  5671. "\x50\x80\x59\xb9\xec\x13\x66\xa8"
  5672. "\xd2\x31\x7b\x6a\x61\x22\xdd\x7d"
  5673. "\x61\xee\x87\x16\x46\x9f\xf9\xc7"
  5674. "\x41\xee\x74\xf8\xd0\x96\x2c\x76"
  5675. "\x2a\xac\x7d\x6e\x9f\x0e\x7f\x95"
  5676. "\xfe\x50\x16\xb2\x23\xca\x62\xd5"
  5677. "\x68\xcf\x07\x3f\x3f\x97\x85\x2a"
  5678. "\x0c\x25\x45\xba\xdb\x32\xcb\x83"
  5679. "\x8c\x4f\xe0\x6d\x9a\x99\xf9\xc9"
  5680. "\xda\xd4\x19\x31\xc1\x7c\x6d\xd9"
  5681. "\x9c\x56\xd3\xec\xc1\x81\x4c\xed"
  5682. "\x28\x9d\x87\xeb\x19\xd7\x1a\x4f"
  5683. "\x04\x6a\xcb\x1f\xcf\x1f\xa2\x16"
  5684. "\xfc\x2a\x0d\xa1\x14\x2d\xfa\xc5"
  5685. "\x5a\xd2\xc5\xf9\x19\x7c\x20\x1f"
  5686. "\x2d\x10\xc0\x66\x7c\xd9\x2d\xe5"
  5687. "\x88\x70\x59\xa7\x85\xd5\x2e\x7c"
  5688. "\x5c\xe3\xb7\x12\xd6\x97\x3f\x29",
  5689. .psize = 2048,
  5690. .digest = "\x37\x90\x92\xc2\xeb\x01\x87\xd9"
  5691. "\x95\xc7\x91\xc3\x17\x8b\x38\x52",
  5692. }
  5693. };
  5694. /*
  5695. * DES test vectors.
  5696. */
  5697. #define DES_ENC_TEST_VECTORS 11
  5698. #define DES_DEC_TEST_VECTORS 5
  5699. #define DES_CBC_ENC_TEST_VECTORS 6
  5700. #define DES_CBC_DEC_TEST_VECTORS 5
  5701. #define DES_CTR_ENC_TEST_VECTORS 2
  5702. #define DES_CTR_DEC_TEST_VECTORS 2
  5703. #define DES3_EDE_ENC_TEST_VECTORS 4
  5704. #define DES3_EDE_DEC_TEST_VECTORS 4
  5705. #define DES3_EDE_CBC_ENC_TEST_VECTORS 2
  5706. #define DES3_EDE_CBC_DEC_TEST_VECTORS 2
  5707. #define DES3_EDE_CTR_ENC_TEST_VECTORS 2
  5708. #define DES3_EDE_CTR_DEC_TEST_VECTORS 2
  5709. static struct cipher_testvec des_enc_tv_template[] = {
  5710. { /* From Applied Cryptography */
  5711. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  5712. .klen = 8,
  5713. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  5714. .ilen = 8,
  5715. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  5716. .rlen = 8,
  5717. }, { /* Same key, different plaintext block */
  5718. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  5719. .klen = 8,
  5720. .input = "\x22\x33\x44\x55\x66\x77\x88\x99",
  5721. .ilen = 8,
  5722. .result = "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  5723. .rlen = 8,
  5724. }, { /* Sbox test from NBS */
  5725. .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
  5726. .klen = 8,
  5727. .input = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
  5728. .ilen = 8,
  5729. .result = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  5730. .rlen = 8,
  5731. }, { /* Three blocks */
  5732. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  5733. .klen = 8,
  5734. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  5735. "\x22\x33\x44\x55\x66\x77\x88\x99"
  5736. "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
  5737. .ilen = 24,
  5738. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  5739. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
  5740. "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
  5741. .rlen = 24,
  5742. }, { /* Weak key */
  5743. .fail = true,
  5744. .wk = 1,
  5745. .key = "\x01\x01\x01\x01\x01\x01\x01\x01",
  5746. .klen = 8,
  5747. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  5748. .ilen = 8,
  5749. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  5750. .rlen = 8,
  5751. }, { /* Two blocks -- for testing encryption across pages */
  5752. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  5753. .klen = 8,
  5754. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  5755. "\x22\x33\x44\x55\x66\x77\x88\x99",
  5756. .ilen = 16,
  5757. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  5758. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  5759. .rlen = 16,
  5760. .np = 2,
  5761. .tap = { 8, 8 }
  5762. }, { /* Four blocks -- for testing encryption with chunking */
  5763. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  5764. .klen = 8,
  5765. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  5766. "\x22\x33\x44\x55\x66\x77\x88\x99"
  5767. "\xca\xfe\xba\xbe\xfe\xed\xbe\xef"
  5768. "\x22\x33\x44\x55\x66\x77\x88\x99",
  5769. .ilen = 32,
  5770. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  5771. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
  5772. "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90"
  5773. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  5774. .rlen = 32,
  5775. .np = 3,
  5776. .tap = { 14, 10, 8 }
  5777. }, {
  5778. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  5779. .klen = 8,
  5780. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  5781. "\x22\x33\x44\x55\x66\x77\x88\x99"
  5782. "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
  5783. .ilen = 24,
  5784. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  5785. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
  5786. "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
  5787. .rlen = 24,
  5788. .np = 4,
  5789. .tap = { 2, 1, 3, 18 }
  5790. }, {
  5791. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  5792. .klen = 8,
  5793. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  5794. "\x22\x33\x44\x55\x66\x77\x88\x99",
  5795. .ilen = 16,
  5796. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  5797. "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
  5798. .rlen = 16,
  5799. .np = 5,
  5800. .tap = { 2, 2, 2, 2, 8 }
  5801. }, {
  5802. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  5803. .klen = 8,
  5804. .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  5805. .ilen = 8,
  5806. .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  5807. .rlen = 8,
  5808. .np = 8,
  5809. .tap = { 1, 1, 1, 1, 1, 1, 1, 1 }
  5810. }, { /* Generated with Crypto++ */
  5811. .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
  5812. .klen = 8,
  5813. .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  5814. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  5815. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  5816. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  5817. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  5818. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  5819. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  5820. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  5821. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  5822. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  5823. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  5824. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  5825. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  5826. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  5827. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  5828. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  5829. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  5830. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  5831. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  5832. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  5833. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  5834. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  5835. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  5836. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  5837. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  5838. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  5839. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  5840. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  5841. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  5842. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  5843. "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
  5844. .ilen = 248,
  5845. .result = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57"
  5846. "\x92\xB9\x77\xFF\x2F\x47\x58\xDD"
  5847. "\xD7\x8A\x91\x95\x26\x33\x78\xB2"
  5848. "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF"
  5849. "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3"
  5850. "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55"
  5851. "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD"
  5852. "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8"
  5853. "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9"
  5854. "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94"
  5855. "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4"
  5856. "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC"
  5857. "\x73\x58\x11\x1F\x81\xD7\x21\x1A"
  5858. "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5"
  5859. "\x2E\x51\x16\xCA\x09\x89\x54\x62"
  5860. "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4"
  5861. "\x62\xF0\x02\x58\x83\xAF\x30\x87"
  5862. "\x85\x3F\x01\xCD\x8E\x58\x42\xC4"
  5863. "\x41\x73\xE0\x15\x0A\xE6\x2E\x80"
  5864. "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2"
  5865. "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E"
  5866. "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F"
  5867. "\x14\xA0\x66\xAB\x79\x39\xD0\x8E"
  5868. "\xE9\x95\x61\x74\x12\xED\x07\xD7"
  5869. "\xDD\x95\xDC\x7B\x57\x25\x27\x9C"
  5870. "\x51\x96\x16\xF7\x94\x61\xB8\x87"
  5871. "\xF0\x21\x1B\x32\xFB\x07\x0F\x29"
  5872. "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9"
  5873. "\x46\x31\x4C\x5E\x2E\x95\x61\xEF"
  5874. "\xE1\x58\x39\x09\xB4\x8B\x40\xAC"
  5875. "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A",
  5876. .rlen = 248,
  5877. .also_non_np = 1,
  5878. .np = 3,
  5879. .tap = { 248 - 10, 2, 8 },
  5880. },
  5881. };
  5882. static struct cipher_testvec des_dec_tv_template[] = {
  5883. { /* From Applied Cryptography */
  5884. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  5885. .klen = 8,
  5886. .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
  5887. .ilen = 8,
  5888. .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
  5889. .rlen = 8,
  5890. }, { /* Sbox test from NBS */
  5891. .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
  5892. .klen = 8,
  5893. .input = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  5894. .ilen = 8,
  5895. .result = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
  5896. .rlen = 8,
  5897. }, { /* Two blocks, for chunking test */
  5898. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  5899. .klen = 8,
  5900. .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  5901. "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  5902. .ilen = 16,
  5903. .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  5904. "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
  5905. .rlen = 16,
  5906. .np = 2,
  5907. .tap = { 8, 8 }
  5908. }, {
  5909. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  5910. .klen = 8,
  5911. .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
  5912. "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
  5913. .ilen = 16,
  5914. .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
  5915. "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
  5916. .rlen = 16,
  5917. .np = 3,
  5918. .tap = { 3, 12, 1 }
  5919. }, { /* Generated with Crypto++ */
  5920. .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
  5921. .klen = 8,
  5922. .input = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57"
  5923. "\x92\xB9\x77\xFF\x2F\x47\x58\xDD"
  5924. "\xD7\x8A\x91\x95\x26\x33\x78\xB2"
  5925. "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF"
  5926. "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3"
  5927. "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55"
  5928. "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD"
  5929. "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8"
  5930. "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9"
  5931. "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94"
  5932. "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4"
  5933. "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC"
  5934. "\x73\x58\x11\x1F\x81\xD7\x21\x1A"
  5935. "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5"
  5936. "\x2E\x51\x16\xCA\x09\x89\x54\x62"
  5937. "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4"
  5938. "\x62\xF0\x02\x58\x83\xAF\x30\x87"
  5939. "\x85\x3F\x01\xCD\x8E\x58\x42\xC4"
  5940. "\x41\x73\xE0\x15\x0A\xE6\x2E\x80"
  5941. "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2"
  5942. "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E"
  5943. "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F"
  5944. "\x14\xA0\x66\xAB\x79\x39\xD0\x8E"
  5945. "\xE9\x95\x61\x74\x12\xED\x07\xD7"
  5946. "\xDD\x95\xDC\x7B\x57\x25\x27\x9C"
  5947. "\x51\x96\x16\xF7\x94\x61\xB8\x87"
  5948. "\xF0\x21\x1B\x32\xFB\x07\x0F\x29"
  5949. "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9"
  5950. "\x46\x31\x4C\x5E\x2E\x95\x61\xEF"
  5951. "\xE1\x58\x39\x09\xB4\x8B\x40\xAC"
  5952. "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A",
  5953. .ilen = 248,
  5954. .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  5955. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  5956. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  5957. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  5958. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  5959. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  5960. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  5961. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  5962. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  5963. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  5964. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  5965. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  5966. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  5967. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  5968. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  5969. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  5970. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  5971. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  5972. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  5973. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  5974. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  5975. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  5976. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  5977. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  5978. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  5979. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  5980. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  5981. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  5982. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  5983. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  5984. "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
  5985. .rlen = 248,
  5986. .also_non_np = 1,
  5987. .np = 3,
  5988. .tap = { 248 - 10, 2, 8 },
  5989. },
  5990. };
  5991. static struct cipher_testvec des_cbc_enc_tv_template[] = {
  5992. { /* From OpenSSL */
  5993. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  5994. .klen = 8,
  5995. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  5996. .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
  5997. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  5998. "\x68\x65\x20\x74\x69\x6d\x65\x20",
  5999. .ilen = 24,
  6000. .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
  6001. "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
  6002. "\x46\x8e\x91\x15\x78\x88\xba\x68",
  6003. .rlen = 24,
  6004. }, { /* FIPS Pub 81 */
  6005. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6006. .klen = 8,
  6007. .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
  6008. .input = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
  6009. .ilen = 8,
  6010. .result = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  6011. .rlen = 8,
  6012. }, {
  6013. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6014. .klen = 8,
  6015. .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  6016. .input = "\x68\x65\x20\x74\x69\x6d\x65\x20",
  6017. .ilen = 8,
  6018. .result = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  6019. .rlen = 8,
  6020. }, {
  6021. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6022. .klen = 8,
  6023. .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  6024. .input = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
  6025. .ilen = 8,
  6026. .result = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
  6027. .rlen = 8,
  6028. }, { /* Copy of openssl vector for chunk testing */
  6029. /* From OpenSSL */
  6030. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6031. .klen = 8,
  6032. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  6033. .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
  6034. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  6035. "\x68\x65\x20\x74\x69\x6d\x65\x20",
  6036. .ilen = 24,
  6037. .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
  6038. "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
  6039. "\x46\x8e\x91\x15\x78\x88\xba\x68",
  6040. .rlen = 24,
  6041. .np = 2,
  6042. .tap = { 13, 11 }
  6043. }, { /* Generated with Crypto++ */
  6044. .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
  6045. .klen = 8,
  6046. .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
  6047. .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  6048. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  6049. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  6050. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  6051. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  6052. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  6053. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  6054. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  6055. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  6056. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  6057. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  6058. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  6059. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  6060. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  6061. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  6062. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  6063. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  6064. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  6065. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  6066. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  6067. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  6068. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  6069. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  6070. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  6071. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  6072. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  6073. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  6074. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  6075. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  6076. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  6077. "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
  6078. .ilen = 248,
  6079. .result = "\x71\xCC\x56\x1C\x87\x2C\x43\x20"
  6080. "\x1C\x20\x13\x09\xF9\x2B\x40\x47"
  6081. "\x99\x10\xD1\x1B\x65\x33\x33\xBA"
  6082. "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4"
  6083. "\x5A\x0C\x12\x96\x32\x57\xAA\x26"
  6084. "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E"
  6085. "\x81\x72\x74\xDE\x30\x19\x69\x49"
  6086. "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1"
  6087. "\xE8\x6D\x0D\x05\x83\xA5\x12\x08"
  6088. "\x47\xF8\x88\x03\x86\x51\x3C\xEF"
  6089. "\xE7\x11\x73\x4D\x44\x2B\xE2\x16"
  6090. "\xE8\xA5\x06\x50\x66\x70\x0E\x14"
  6091. "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F"
  6092. "\x56\xB6\xA7\x44\xDB\x86\xAB\x69"
  6093. "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE"
  6094. "\x49\x90\x88\x6A\x09\x8F\x76\x59"
  6095. "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A"
  6096. "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B"
  6097. "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63"
  6098. "\x80\x02\x61\x2F\xE3\x46\xB6\xB5"
  6099. "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F"
  6100. "\x20\xCF\xD2\x47\x4E\x39\x65\xB3"
  6101. "\x11\x87\xA2\x6C\x49\x7E\x36\xC7"
  6102. "\x62\x8B\x48\x0D\x6A\x64\x00\xBD"
  6103. "\x71\x91\x8C\xE9\x70\x19\x01\x4F"
  6104. "\x4E\x68\x23\xBA\xDA\x24\x2E\x45"
  6105. "\x02\x14\x33\x21\xAE\x58\x4B\xCF"
  6106. "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93"
  6107. "\xD7\x07\x8A\xD7\x18\x92\x36\x8C"
  6108. "\x82\xA9\xBD\x6A\x31\x91\x39\x11"
  6109. "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63",
  6110. .rlen = 248,
  6111. .also_non_np = 1,
  6112. .np = 3,
  6113. .tap = { 248 - 10, 2, 8 },
  6114. },
  6115. };
  6116. static struct cipher_testvec des_cbc_dec_tv_template[] = {
  6117. { /* FIPS Pub 81 */
  6118. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6119. .klen = 8,
  6120. .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
  6121. .input = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  6122. .ilen = 8,
  6123. .result = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
  6124. .rlen = 8,
  6125. }, {
  6126. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6127. .klen = 8,
  6128. .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
  6129. .input = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  6130. .ilen = 8,
  6131. .result = "\x68\x65\x20\x74\x69\x6d\x65\x20",
  6132. .rlen = 8,
  6133. }, {
  6134. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6135. .klen = 8,
  6136. .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  6137. .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
  6138. .ilen = 8,
  6139. .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
  6140. .rlen = 8,
  6141. }, { /* Copy of above, for chunk testing */
  6142. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  6143. .klen = 8,
  6144. .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
  6145. .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
  6146. .ilen = 8,
  6147. .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
  6148. .rlen = 8,
  6149. .np = 2,
  6150. .tap = { 4, 4 }
  6151. }, { /* Generated with Crypto++ */
  6152. .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
  6153. .klen = 8,
  6154. .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
  6155. .input = "\x71\xCC\x56\x1C\x87\x2C\x43\x20"
  6156. "\x1C\x20\x13\x09\xF9\x2B\x40\x47"
  6157. "\x99\x10\xD1\x1B\x65\x33\x33\xBA"
  6158. "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4"
  6159. "\x5A\x0C\x12\x96\x32\x57\xAA\x26"
  6160. "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E"
  6161. "\x81\x72\x74\xDE\x30\x19\x69\x49"
  6162. "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1"
  6163. "\xE8\x6D\x0D\x05\x83\xA5\x12\x08"
  6164. "\x47\xF8\x88\x03\x86\x51\x3C\xEF"
  6165. "\xE7\x11\x73\x4D\x44\x2B\xE2\x16"
  6166. "\xE8\xA5\x06\x50\x66\x70\x0E\x14"
  6167. "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F"
  6168. "\x56\xB6\xA7\x44\xDB\x86\xAB\x69"
  6169. "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE"
  6170. "\x49\x90\x88\x6A\x09\x8F\x76\x59"
  6171. "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A"
  6172. "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B"
  6173. "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63"
  6174. "\x80\x02\x61\x2F\xE3\x46\xB6\xB5"
  6175. "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F"
  6176. "\x20\xCF\xD2\x47\x4E\x39\x65\xB3"
  6177. "\x11\x87\xA2\x6C\x49\x7E\x36\xC7"
  6178. "\x62\x8B\x48\x0D\x6A\x64\x00\xBD"
  6179. "\x71\x91\x8C\xE9\x70\x19\x01\x4F"
  6180. "\x4E\x68\x23\xBA\xDA\x24\x2E\x45"
  6181. "\x02\x14\x33\x21\xAE\x58\x4B\xCF"
  6182. "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93"
  6183. "\xD7\x07\x8A\xD7\x18\x92\x36\x8C"
  6184. "\x82\xA9\xBD\x6A\x31\x91\x39\x11"
  6185. "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63",
  6186. .ilen = 248,
  6187. .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  6188. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  6189. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  6190. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  6191. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  6192. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  6193. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  6194. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  6195. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  6196. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  6197. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  6198. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  6199. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  6200. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  6201. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  6202. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  6203. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  6204. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  6205. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  6206. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  6207. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  6208. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  6209. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  6210. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  6211. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  6212. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  6213. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  6214. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  6215. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  6216. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  6217. "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
  6218. .rlen = 248,
  6219. .also_non_np = 1,
  6220. .np = 3,
  6221. .tap = { 248 - 10, 2, 8 },
  6222. },
  6223. };
  6224. static struct cipher_testvec des_ctr_enc_tv_template[] = {
  6225. { /* Generated with Crypto++ */
  6226. .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
  6227. .klen = 8,
  6228. .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
  6229. .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  6230. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  6231. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  6232. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  6233. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  6234. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  6235. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  6236. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  6237. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  6238. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  6239. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  6240. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  6241. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  6242. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  6243. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  6244. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  6245. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  6246. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  6247. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  6248. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  6249. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  6250. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  6251. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  6252. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  6253. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  6254. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  6255. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  6256. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  6257. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  6258. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  6259. "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
  6260. .ilen = 248,
  6261. .result = "\x2F\x96\x06\x0F\x50\xC9\x68\x03"
  6262. "\x0F\x31\xD4\x64\xA5\x29\x77\x35"
  6263. "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E"
  6264. "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02"
  6265. "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C"
  6266. "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47"
  6267. "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B"
  6268. "\xC8\x0F\x85\xDC\x03\x13\xA9\x04"
  6269. "\x19\x40\xBE\xBE\x5C\x49\x4A\x69"
  6270. "\xED\xE8\xE1\x9E\x14\x43\x74\xDE"
  6271. "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB"
  6272. "\xBE\x4C\x91\x43\x22\x65\x72\x48"
  6273. "\xE2\x12\xED\x88\xAC\xA7\xC9\x91"
  6274. "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F"
  6275. "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA"
  6276. "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C"
  6277. "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31"
  6278. "\xB7\x30\x1C\x21\x38\xFB\x68\x8C"
  6279. "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12"
  6280. "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86"
  6281. "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B"
  6282. "\x96\x28\x72\x6B\xF3\x30\xA9\xEB"
  6283. "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7"
  6284. "\xC0\xEF\x07\xB7\x77\x2C\x00\x05"
  6285. "\x46\xBD\xFE\x53\x81\x8B\xA4\x03"
  6286. "\x20\x0F\xDB\x78\x0B\x1F\x53\x04"
  6287. "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E"
  6288. "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2"
  6289. "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD"
  6290. "\x19\x7F\x99\x19\x53\xCE\x1D\x14"
  6291. "\x69\x74\xA1\x06\x46\x0F\x4E\x75",
  6292. .rlen = 248,
  6293. .also_non_np = 1,
  6294. .np = 3,
  6295. .tap = { 248 - 10, 2, 8 },
  6296. }, { /* Generated with Crypto++ */
  6297. .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
  6298. .klen = 8,
  6299. .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
  6300. .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  6301. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  6302. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  6303. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  6304. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  6305. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  6306. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  6307. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  6308. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  6309. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  6310. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  6311. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  6312. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  6313. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  6314. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  6315. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  6316. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  6317. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  6318. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  6319. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  6320. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  6321. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  6322. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  6323. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  6324. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  6325. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  6326. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  6327. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  6328. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  6329. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  6330. "\xC6\x2F\xBB\x24\x8D\x19\x82",
  6331. .ilen = 247,
  6332. .result = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3"
  6333. "\xF4\x10\xCC\x21\x99\xEB\xDC\x15"
  6334. "\x19\x13\x93\x27\x9D\xB6\x6F\x45"
  6335. "\x17\x55\x61\x72\xC8\xD3\x7F\xA5"
  6336. "\x32\xD0\xD3\x02\x15\xA4\x05\x23"
  6337. "\x9C\x23\x61\x60\x77\x7B\x6C\x95"
  6338. "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D"
  6339. "\xC8\x47\xD5\x94\xE7\x53\xC8\x23"
  6340. "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12"
  6341. "\xA4\x42\x15\x34\xF7\x5F\xDC\x58"
  6342. "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6"
  6343. "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8"
  6344. "\x02\x82\xBB\x16\xB8\xDC\xB5\x58"
  6345. "\xC3\x2D\x79\xE4\x25\x79\x43\xF9"
  6346. "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E"
  6347. "\x04\x25\x79\xFD\x27\xFB\xC4\xEA"
  6348. "\x32\x94\x48\x92\xF3\x68\x1A\x7F"
  6349. "\x36\x33\x43\x79\xF7\xCA\xC2\x38"
  6350. "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C"
  6351. "\x40\x57\x3E\xED\x00\x9F\x22\x6E"
  6352. "\x80\x99\x0B\xCC\x40\x63\x46\x8A"
  6353. "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9"
  6354. "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D"
  6355. "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C"
  6356. "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A"
  6357. "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E"
  6358. "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0"
  6359. "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7"
  6360. "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94"
  6361. "\xA5\xA6\xE7\xB0\x51\x36\x52\x37"
  6362. "\x91\x45\x05\x3E\x58\xBF\x32",
  6363. .rlen = 247,
  6364. .also_non_np = 1,
  6365. .np = 2,
  6366. .tap = { 247 - 8, 8 },
  6367. },
  6368. };
  6369. static struct cipher_testvec des_ctr_dec_tv_template[] = {
  6370. { /* Generated with Crypto++ */
  6371. .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
  6372. .klen = 8,
  6373. .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
  6374. .input = "\x2F\x96\x06\x0F\x50\xC9\x68\x03"
  6375. "\x0F\x31\xD4\x64\xA5\x29\x77\x35"
  6376. "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E"
  6377. "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02"
  6378. "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C"
  6379. "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47"
  6380. "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B"
  6381. "\xC8\x0F\x85\xDC\x03\x13\xA9\x04"
  6382. "\x19\x40\xBE\xBE\x5C\x49\x4A\x69"
  6383. "\xED\xE8\xE1\x9E\x14\x43\x74\xDE"
  6384. "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB"
  6385. "\xBE\x4C\x91\x43\x22\x65\x72\x48"
  6386. "\xE2\x12\xED\x88\xAC\xA7\xC9\x91"
  6387. "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F"
  6388. "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA"
  6389. "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C"
  6390. "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31"
  6391. "\xB7\x30\x1C\x21\x38\xFB\x68\x8C"
  6392. "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12"
  6393. "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86"
  6394. "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B"
  6395. "\x96\x28\x72\x6B\xF3\x30\xA9\xEB"
  6396. "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7"
  6397. "\xC0\xEF\x07\xB7\x77\x2C\x00\x05"
  6398. "\x46\xBD\xFE\x53\x81\x8B\xA4\x03"
  6399. "\x20\x0F\xDB\x78\x0B\x1F\x53\x04"
  6400. "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E"
  6401. "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2"
  6402. "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD"
  6403. "\x19\x7F\x99\x19\x53\xCE\x1D\x14"
  6404. "\x69\x74\xA1\x06\x46\x0F\x4E\x75",
  6405. .ilen = 248,
  6406. .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  6407. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  6408. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  6409. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  6410. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  6411. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  6412. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  6413. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  6414. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  6415. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  6416. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  6417. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  6418. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  6419. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  6420. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  6421. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  6422. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  6423. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  6424. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  6425. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  6426. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  6427. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  6428. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  6429. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  6430. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  6431. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  6432. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  6433. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  6434. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  6435. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  6436. "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
  6437. .rlen = 248,
  6438. .also_non_np = 1,
  6439. .np = 3,
  6440. .tap = { 248 - 10, 2, 8 },
  6441. }, { /* Generated with Crypto++ */
  6442. .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
  6443. .klen = 8,
  6444. .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
  6445. .input = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3"
  6446. "\xF4\x10\xCC\x21\x99\xEB\xDC\x15"
  6447. "\x19\x13\x93\x27\x9D\xB6\x6F\x45"
  6448. "\x17\x55\x61\x72\xC8\xD3\x7F\xA5"
  6449. "\x32\xD0\xD3\x02\x15\xA4\x05\x23"
  6450. "\x9C\x23\x61\x60\x77\x7B\x6C\x95"
  6451. "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D"
  6452. "\xC8\x47\xD5\x94\xE7\x53\xC8\x23"
  6453. "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12"
  6454. "\xA4\x42\x15\x34\xF7\x5F\xDC\x58"
  6455. "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6"
  6456. "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8"
  6457. "\x02\x82\xBB\x16\xB8\xDC\xB5\x58"
  6458. "\xC3\x2D\x79\xE4\x25\x79\x43\xF9"
  6459. "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E"
  6460. "\x04\x25\x79\xFD\x27\xFB\xC4\xEA"
  6461. "\x32\x94\x48\x92\xF3\x68\x1A\x7F"
  6462. "\x36\x33\x43\x79\xF7\xCA\xC2\x38"
  6463. "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C"
  6464. "\x40\x57\x3E\xED\x00\x9F\x22\x6E"
  6465. "\x80\x99\x0B\xCC\x40\x63\x46\x8A"
  6466. "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9"
  6467. "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D"
  6468. "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C"
  6469. "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A"
  6470. "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E"
  6471. "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0"
  6472. "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7"
  6473. "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94"
  6474. "\xA5\xA6\xE7\xB0\x51\x36\x52\x37"
  6475. "\x91\x45\x05\x3E\x58\xBF\x32",
  6476. .ilen = 247,
  6477. .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  6478. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  6479. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  6480. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  6481. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  6482. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  6483. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  6484. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  6485. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  6486. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  6487. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  6488. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  6489. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  6490. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  6491. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  6492. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  6493. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  6494. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  6495. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  6496. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  6497. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  6498. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  6499. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  6500. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  6501. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  6502. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  6503. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  6504. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  6505. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  6506. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  6507. "\xC6\x2F\xBB\x24\x8D\x19\x82",
  6508. .rlen = 247,
  6509. .also_non_np = 1,
  6510. .np = 2,
  6511. .tap = { 247 - 8, 8 },
  6512. },
  6513. };
  6514. static struct cipher_testvec des3_ede_enc_tv_template[] = {
  6515. { /* These are from openssl */
  6516. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  6517. "\x55\x55\x55\x55\x55\x55\x55\x55"
  6518. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  6519. .klen = 24,
  6520. .input = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
  6521. .ilen = 8,
  6522. .result = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
  6523. .rlen = 8,
  6524. }, {
  6525. .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
  6526. "\x86\x02\x87\x66\x59\x08\x21\x98"
  6527. "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
  6528. .klen = 24,
  6529. .input = "\x73\x71\x75\x69\x67\x67\x6c\x65",
  6530. .ilen = 8,
  6531. .result = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
  6532. .rlen = 8,
  6533. }, {
  6534. .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
  6535. "\x91\x07\xd0\x15\x89\x19\x01\x01"
  6536. "\x19\x07\x92\x10\x98\x1a\x01\x01",
  6537. .klen = 24,
  6538. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6539. .ilen = 8,
  6540. .result = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
  6541. .rlen = 8,
  6542. }, { /* Generated with Crypto++ */
  6543. .key = "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67"
  6544. "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D"
  6545. "\xCE\xEB\xB4\x51\x72\xB4\x51\x72",
  6546. .klen = 24,
  6547. .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
  6548. "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
  6549. "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
  6550. "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
  6551. "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
  6552. "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
  6553. "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
  6554. "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
  6555. "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
  6556. "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
  6557. "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
  6558. "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
  6559. "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
  6560. "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
  6561. "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
  6562. "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
  6563. "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
  6564. "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
  6565. "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
  6566. "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
  6567. "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
  6568. "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
  6569. "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
  6570. "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
  6571. "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
  6572. "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
  6573. "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
  6574. "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
  6575. "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
  6576. "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
  6577. "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
  6578. "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
  6579. "\x50\x3B\x82\x15\x99\x60\xCB\x52"
  6580. "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
  6581. "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
  6582. "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
  6583. "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
  6584. "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
  6585. "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
  6586. "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
  6587. "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
  6588. "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
  6589. "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
  6590. "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
  6591. "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
  6592. "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
  6593. "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
  6594. "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
  6595. "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
  6596. "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
  6597. "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
  6598. "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
  6599. "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
  6600. "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
  6601. "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
  6602. "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
  6603. "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
  6604. "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
  6605. "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
  6606. "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
  6607. "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
  6608. "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
  6609. .ilen = 496,
  6610. .result = "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA"
  6611. "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4"
  6612. "\x81\x01\x04\x00\x76\xFA\xED\xD3"
  6613. "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64"
  6614. "\xCA\x4E\x90\xE0\xC0\x63\x28\x92"
  6615. "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77"
  6616. "\x69\x56\xD0\x19\xAD\x00\x2D\x97"
  6617. "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2"
  6618. "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B"
  6619. "\xEA\x32\x56\xE4\x0B\xAF\x27\x36"
  6620. "\xAF\x08\xB9\x61\xB7\x48\x23\x27"
  6621. "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7"
  6622. "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6"
  6623. "\x9D\xDA\x04\x59\xE2\x09\x48\x7E"
  6624. "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E"
  6625. "\x0D\x19\xFA\x33\x0F\xEE\x36\x68"
  6626. "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA"
  6627. "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16"
  6628. "\x45\x86\x50\x01\x70\x35\x99\x92"
  6629. "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B"
  6630. "\xD2\x04\x84\x90\xC4\x27\xDF\x0A"
  6631. "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA"
  6632. "\xB3\x18\x5C\xC3\x93\x63\x5A\x68"
  6633. "\x77\x02\xBA\xED\x62\x71\xB1\xD9"
  6634. "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E"
  6635. "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4"
  6636. "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70"
  6637. "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD"
  6638. "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1"
  6639. "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2"
  6640. "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52"
  6641. "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3"
  6642. "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F"
  6643. "\xDB\xEA\x84\x13\x26\x6C\x85\x4E"
  6644. "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06"
  6645. "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2"
  6646. "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C"
  6647. "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5"
  6648. "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7"
  6649. "\xD1\x17\x25\x08\xF9\xA9\xA6\x67"
  6650. "\x38\x80\xD1\x22\xAB\x1A\xD7\x26"
  6651. "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57"
  6652. "\x31\xEC\xC9\xED\xDB\x79\xC0\x48"
  6653. "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E"
  6654. "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC"
  6655. "\x58\xC8\xDE\x51\x4E\x17\x15\x11"
  6656. "\x66\x58\xB6\x90\xDC\xDF\xA1\x49"
  6657. "\xCA\x79\xE9\x31\x31\x42\xDC\x56"
  6658. "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19"
  6659. "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90"
  6660. "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B"
  6661. "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46"
  6662. "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84"
  6663. "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA"
  6664. "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F"
  6665. "\xE4\x82\x77\xCE\x87\xC0\x09\xF0"
  6666. "\xD6\x10\x9E\x34\xE1\x0C\x67\x55"
  6667. "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA"
  6668. "\xF2\x7B\xBE\x75\x07\x42\x9D\x99"
  6669. "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6"
  6670. "\x93\x03\xD7\x51\x09\xFA\xBE\x68"
  6671. "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63",
  6672. .rlen = 496,
  6673. .also_non_np = 1,
  6674. .np = 3,
  6675. .tap = { 496 - 20, 4, 16 },
  6676. },
  6677. };
  6678. static struct cipher_testvec des3_ede_dec_tv_template[] = {
  6679. { /* These are from openssl */
  6680. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  6681. "\x55\x55\x55\x55\x55\x55\x55\x55"
  6682. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  6683. .klen = 24,
  6684. .input = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
  6685. .ilen = 8,
  6686. .result = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
  6687. .rlen = 8,
  6688. }, {
  6689. .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
  6690. "\x86\x02\x87\x66\x59\x08\x21\x98"
  6691. "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
  6692. .klen = 24,
  6693. .input = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
  6694. .ilen = 8,
  6695. .result = "\x73\x71\x75\x69\x67\x67\x6c\x65",
  6696. .rlen = 8,
  6697. }, {
  6698. .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
  6699. "\x91\x07\xd0\x15\x89\x19\x01\x01"
  6700. "\x19\x07\x92\x10\x98\x1a\x01\x01",
  6701. .klen = 24,
  6702. .input = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
  6703. .ilen = 8,
  6704. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  6705. .rlen = 8,
  6706. }, { /* Generated with Crypto++ */
  6707. .key = "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67"
  6708. "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D"
  6709. "\xCE\xEB\xB4\x51\x72\xB4\x51\x72",
  6710. .klen = 24,
  6711. .input = "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA"
  6712. "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4"
  6713. "\x81\x01\x04\x00\x76\xFA\xED\xD3"
  6714. "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64"
  6715. "\xCA\x4E\x90\xE0\xC0\x63\x28\x92"
  6716. "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77"
  6717. "\x69\x56\xD0\x19\xAD\x00\x2D\x97"
  6718. "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2"
  6719. "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B"
  6720. "\xEA\x32\x56\xE4\x0B\xAF\x27\x36"
  6721. "\xAF\x08\xB9\x61\xB7\x48\x23\x27"
  6722. "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7"
  6723. "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6"
  6724. "\x9D\xDA\x04\x59\xE2\x09\x48\x7E"
  6725. "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E"
  6726. "\x0D\x19\xFA\x33\x0F\xEE\x36\x68"
  6727. "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA"
  6728. "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16"
  6729. "\x45\x86\x50\x01\x70\x35\x99\x92"
  6730. "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B"
  6731. "\xD2\x04\x84\x90\xC4\x27\xDF\x0A"
  6732. "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA"
  6733. "\xB3\x18\x5C\xC3\x93\x63\x5A\x68"
  6734. "\x77\x02\xBA\xED\x62\x71\xB1\xD9"
  6735. "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E"
  6736. "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4"
  6737. "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70"
  6738. "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD"
  6739. "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1"
  6740. "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2"
  6741. "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52"
  6742. "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3"
  6743. "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F"
  6744. "\xDB\xEA\x84\x13\x26\x6C\x85\x4E"
  6745. "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06"
  6746. "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2"
  6747. "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C"
  6748. "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5"
  6749. "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7"
  6750. "\xD1\x17\x25\x08\xF9\xA9\xA6\x67"
  6751. "\x38\x80\xD1\x22\xAB\x1A\xD7\x26"
  6752. "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57"
  6753. "\x31\xEC\xC9\xED\xDB\x79\xC0\x48"
  6754. "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E"
  6755. "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC"
  6756. "\x58\xC8\xDE\x51\x4E\x17\x15\x11"
  6757. "\x66\x58\xB6\x90\xDC\xDF\xA1\x49"
  6758. "\xCA\x79\xE9\x31\x31\x42\xDC\x56"
  6759. "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19"
  6760. "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90"
  6761. "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B"
  6762. "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46"
  6763. "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84"
  6764. "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA"
  6765. "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F"
  6766. "\xE4\x82\x77\xCE\x87\xC0\x09\xF0"
  6767. "\xD6\x10\x9E\x34\xE1\x0C\x67\x55"
  6768. "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA"
  6769. "\xF2\x7B\xBE\x75\x07\x42\x9D\x99"
  6770. "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6"
  6771. "\x93\x03\xD7\x51\x09\xFA\xBE\x68"
  6772. "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63",
  6773. .ilen = 496,
  6774. .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
  6775. "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
  6776. "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
  6777. "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
  6778. "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
  6779. "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
  6780. "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
  6781. "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
  6782. "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
  6783. "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
  6784. "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
  6785. "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
  6786. "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
  6787. "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
  6788. "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
  6789. "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
  6790. "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
  6791. "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
  6792. "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
  6793. "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
  6794. "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
  6795. "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
  6796. "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
  6797. "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
  6798. "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
  6799. "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
  6800. "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
  6801. "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
  6802. "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
  6803. "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
  6804. "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
  6805. "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
  6806. "\x50\x3B\x82\x15\x99\x60\xCB\x52"
  6807. "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
  6808. "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
  6809. "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
  6810. "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
  6811. "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
  6812. "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
  6813. "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
  6814. "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
  6815. "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
  6816. "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
  6817. "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
  6818. "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
  6819. "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
  6820. "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
  6821. "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
  6822. "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
  6823. "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
  6824. "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
  6825. "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
  6826. "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
  6827. "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
  6828. "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
  6829. "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
  6830. "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
  6831. "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
  6832. "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
  6833. "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
  6834. "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
  6835. "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
  6836. .rlen = 496,
  6837. .also_non_np = 1,
  6838. .np = 3,
  6839. .tap = { 496 - 20, 4, 16 },
  6840. },
  6841. };
  6842. static struct cipher_testvec des3_ede_cbc_enc_tv_template[] = {
  6843. { /* Generated from openssl */
  6844. .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
  6845. "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
  6846. "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
  6847. .klen = 24,
  6848. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  6849. .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  6850. "\x53\x20\x63\x65\x65\x72\x73\x74"
  6851. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  6852. "\x20\x79\x65\x53\x72\x63\x74\x65"
  6853. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  6854. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  6855. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  6856. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  6857. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  6858. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  6859. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  6860. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  6861. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  6862. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  6863. "\x63\x65\x65\x72\x73\x74\x54\x20"
  6864. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  6865. .ilen = 128,
  6866. .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
  6867. "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
  6868. "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
  6869. "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
  6870. "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
  6871. "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
  6872. "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
  6873. "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
  6874. "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
  6875. "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
  6876. "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
  6877. "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
  6878. "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
  6879. "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
  6880. "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
  6881. "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
  6882. .rlen = 128,
  6883. }, { /* Generated with Crypto++ */
  6884. .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
  6885. "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
  6886. "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
  6887. .klen = 24,
  6888. .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
  6889. "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
  6890. .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
  6891. "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
  6892. "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
  6893. "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
  6894. "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
  6895. "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
  6896. "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
  6897. "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
  6898. "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
  6899. "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
  6900. "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
  6901. "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
  6902. "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
  6903. "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
  6904. "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
  6905. "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
  6906. "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
  6907. "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
  6908. "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
  6909. "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
  6910. "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
  6911. "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
  6912. "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
  6913. "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
  6914. "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
  6915. "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
  6916. "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
  6917. "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
  6918. "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
  6919. "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
  6920. "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
  6921. "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
  6922. "\x50\x3B\x82\x15\x99\x60\xCB\x52"
  6923. "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
  6924. "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
  6925. "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
  6926. "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
  6927. "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
  6928. "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
  6929. "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
  6930. "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
  6931. "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
  6932. "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
  6933. "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
  6934. "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
  6935. "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
  6936. "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
  6937. "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
  6938. "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
  6939. "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
  6940. "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
  6941. "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
  6942. "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
  6943. "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
  6944. "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
  6945. "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
  6946. "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
  6947. "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
  6948. "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
  6949. "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
  6950. "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
  6951. "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
  6952. .ilen = 496,
  6953. .result = "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84"
  6954. "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5"
  6955. "\x1E\x68\x8E\x85\x12\x86\x1D\x38"
  6956. "\x1C\x91\x40\xCC\x69\x6A\xD5\x35"
  6957. "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF"
  6958. "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C"
  6959. "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37"
  6960. "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90"
  6961. "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B"
  6962. "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B"
  6963. "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9"
  6964. "\xE6\xA5\xAD\x25\xE6\x17\x69\x63"
  6965. "\x11\x35\x61\x94\x88\x7B\x1C\x48"
  6966. "\xF1\x24\x20\x29\x6B\x93\x1A\x8E"
  6967. "\x43\x03\x89\xD8\xB1\xDA\x47\x7B"
  6968. "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB"
  6969. "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8"
  6970. "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73"
  6971. "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6"
  6972. "\x67\x88\xA5\x20\x6F\x5F\x97\xC7"
  6973. "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7"
  6974. "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7"
  6975. "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E"
  6976. "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6"
  6977. "\xEE\xFE\x55\xA3\x29\x65\xE0\x12"
  6978. "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96"
  6979. "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF"
  6980. "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE"
  6981. "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99"
  6982. "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D"
  6983. "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6"
  6984. "\x2B\x1C\xD5\xFB\x96\x24\x60\x60"
  6985. "\x54\x40\xB8\x62\xA4\xF8\x46\x95"
  6986. "\x73\x28\xA3\xA6\x16\x2B\x17\xE7"
  6987. "\x7A\xF8\x62\x54\x3B\x64\x69\xE1"
  6988. "\x71\x34\x29\x5B\x4E\x05\x9B\xFA"
  6989. "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59"
  6990. "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2"
  6991. "\x3B\x8E\x71\x69\x6A\x91\xB6\x65"
  6992. "\x32\x09\xB8\xE4\x09\x1F\xEA\x39"
  6993. "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0"
  6994. "\x73\x50\x08\x56\x20\x9B\x94\x23"
  6995. "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F"
  6996. "\x41\x5B\xCC\xE2\x18\xAE\x62\x89"
  6997. "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5"
  6998. "\x25\xC9\x48\x97\xB5\xD3\x17\xD5"
  6999. "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B"
  7000. "\x57\x08\xAE\x91\xF2\xB7\x57\x89"
  7001. "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF"
  7002. "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02"
  7003. "\xD4\x56\x42\x79\x79\x7F\x2A\x77"
  7004. "\x25\xE9\x7D\xC1\x88\x19\x2B\x49"
  7005. "\x6F\x46\x59\xAB\x56\x1F\x61\xE0"
  7006. "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12"
  7007. "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8"
  7008. "\x21\x85\x1A\x62\x7E\x34\xBB\xEB"
  7009. "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5"
  7010. "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38"
  7011. "\x02\x80\xA3\x28\x22\x75\xE1\xE9"
  7012. "\x90\xE9\xFA\x4B\x00\x10\xAC\x58"
  7013. "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F"
  7014. "\x95\x63\x73\xA2\x44\xAC\xF8\xA5",
  7015. .rlen = 496,
  7016. .also_non_np = 1,
  7017. .np = 3,
  7018. .tap = { 496 - 20, 4, 16 },
  7019. },
  7020. };
  7021. static struct cipher_testvec des3_ede_cbc_dec_tv_template[] = {
  7022. { /* Generated from openssl */
  7023. .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
  7024. "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
  7025. "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
  7026. .klen = 24,
  7027. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  7028. .input = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
  7029. "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
  7030. "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
  7031. "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
  7032. "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
  7033. "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
  7034. "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
  7035. "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
  7036. "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
  7037. "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
  7038. "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
  7039. "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
  7040. "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
  7041. "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
  7042. "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
  7043. "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
  7044. .ilen = 128,
  7045. .result = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  7046. "\x53\x20\x63\x65\x65\x72\x73\x74"
  7047. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  7048. "\x20\x79\x65\x53\x72\x63\x74\x65"
  7049. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  7050. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  7051. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  7052. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  7053. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  7054. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  7055. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  7056. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  7057. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  7058. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  7059. "\x63\x65\x65\x72\x73\x74\x54\x20"
  7060. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  7061. .rlen = 128,
  7062. }, { /* Generated with Crypto++ */
  7063. .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
  7064. "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
  7065. "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
  7066. .klen = 24,
  7067. .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
  7068. "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
  7069. .input = "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84"
  7070. "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5"
  7071. "\x1E\x68\x8E\x85\x12\x86\x1D\x38"
  7072. "\x1C\x91\x40\xCC\x69\x6A\xD5\x35"
  7073. "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF"
  7074. "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C"
  7075. "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37"
  7076. "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90"
  7077. "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B"
  7078. "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B"
  7079. "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9"
  7080. "\xE6\xA5\xAD\x25\xE6\x17\x69\x63"
  7081. "\x11\x35\x61\x94\x88\x7B\x1C\x48"
  7082. "\xF1\x24\x20\x29\x6B\x93\x1A\x8E"
  7083. "\x43\x03\x89\xD8\xB1\xDA\x47\x7B"
  7084. "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB"
  7085. "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8"
  7086. "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73"
  7087. "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6"
  7088. "\x67\x88\xA5\x20\x6F\x5F\x97\xC7"
  7089. "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7"
  7090. "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7"
  7091. "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E"
  7092. "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6"
  7093. "\xEE\xFE\x55\xA3\x29\x65\xE0\x12"
  7094. "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96"
  7095. "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF"
  7096. "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE"
  7097. "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99"
  7098. "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D"
  7099. "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6"
  7100. "\x2B\x1C\xD5\xFB\x96\x24\x60\x60"
  7101. "\x54\x40\xB8\x62\xA4\xF8\x46\x95"
  7102. "\x73\x28\xA3\xA6\x16\x2B\x17\xE7"
  7103. "\x7A\xF8\x62\x54\x3B\x64\x69\xE1"
  7104. "\x71\x34\x29\x5B\x4E\x05\x9B\xFA"
  7105. "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59"
  7106. "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2"
  7107. "\x3B\x8E\x71\x69\x6A\x91\xB6\x65"
  7108. "\x32\x09\xB8\xE4\x09\x1F\xEA\x39"
  7109. "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0"
  7110. "\x73\x50\x08\x56\x20\x9B\x94\x23"
  7111. "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F"
  7112. "\x41\x5B\xCC\xE2\x18\xAE\x62\x89"
  7113. "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5"
  7114. "\x25\xC9\x48\x97\xB5\xD3\x17\xD5"
  7115. "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B"
  7116. "\x57\x08\xAE\x91\xF2\xB7\x57\x89"
  7117. "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF"
  7118. "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02"
  7119. "\xD4\x56\x42\x79\x79\x7F\x2A\x77"
  7120. "\x25\xE9\x7D\xC1\x88\x19\x2B\x49"
  7121. "\x6F\x46\x59\xAB\x56\x1F\x61\xE0"
  7122. "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12"
  7123. "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8"
  7124. "\x21\x85\x1A\x62\x7E\x34\xBB\xEB"
  7125. "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5"
  7126. "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38"
  7127. "\x02\x80\xA3\x28\x22\x75\xE1\xE9"
  7128. "\x90\xE9\xFA\x4B\x00\x10\xAC\x58"
  7129. "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F"
  7130. "\x95\x63\x73\xA2\x44\xAC\xF8\xA5",
  7131. .ilen = 496,
  7132. .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
  7133. "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
  7134. "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
  7135. "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
  7136. "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
  7137. "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
  7138. "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
  7139. "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
  7140. "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
  7141. "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
  7142. "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
  7143. "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
  7144. "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
  7145. "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
  7146. "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
  7147. "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
  7148. "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
  7149. "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
  7150. "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
  7151. "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
  7152. "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
  7153. "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
  7154. "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
  7155. "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
  7156. "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
  7157. "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
  7158. "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
  7159. "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
  7160. "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
  7161. "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
  7162. "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
  7163. "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
  7164. "\x50\x3B\x82\x15\x99\x60\xCB\x52"
  7165. "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
  7166. "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
  7167. "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
  7168. "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
  7169. "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
  7170. "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
  7171. "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
  7172. "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
  7173. "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
  7174. "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
  7175. "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
  7176. "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
  7177. "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
  7178. "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
  7179. "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
  7180. "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
  7181. "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
  7182. "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
  7183. "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
  7184. "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
  7185. "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
  7186. "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
  7187. "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
  7188. "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
  7189. "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
  7190. "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
  7191. "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
  7192. "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
  7193. "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
  7194. .rlen = 496,
  7195. .also_non_np = 1,
  7196. .np = 3,
  7197. .tap = { 496 - 20, 4, 16 },
  7198. },
  7199. };
  7200. static struct cipher_testvec des3_ede_ctr_enc_tv_template[] = {
  7201. { /* Generated with Crypto++ */
  7202. .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
  7203. "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
  7204. "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
  7205. .klen = 24,
  7206. .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
  7207. "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
  7208. .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
  7209. "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
  7210. "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
  7211. "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
  7212. "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
  7213. "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
  7214. "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
  7215. "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
  7216. "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
  7217. "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
  7218. "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
  7219. "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
  7220. "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
  7221. "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
  7222. "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
  7223. "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
  7224. "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
  7225. "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
  7226. "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
  7227. "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
  7228. "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
  7229. "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
  7230. "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
  7231. "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
  7232. "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
  7233. "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
  7234. "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
  7235. "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
  7236. "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
  7237. "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
  7238. "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
  7239. "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
  7240. "\x50\x3B\x82\x15\x99\x60\xCB\x52"
  7241. "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
  7242. "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
  7243. "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
  7244. "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
  7245. "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
  7246. "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
  7247. "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
  7248. "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
  7249. "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
  7250. "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
  7251. "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
  7252. "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
  7253. "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
  7254. "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
  7255. "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
  7256. "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
  7257. "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
  7258. "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
  7259. "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
  7260. "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
  7261. "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
  7262. "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
  7263. "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
  7264. "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
  7265. "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
  7266. "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
  7267. "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
  7268. "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
  7269. "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
  7270. .ilen = 496,
  7271. .result = "\x07\xC2\x08\x20\x72\x1F\x49\xEF"
  7272. "\x19\xCD\x6F\x32\x53\x05\x22\x15"
  7273. "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9"
  7274. "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4"
  7275. "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE"
  7276. "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E"
  7277. "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C"
  7278. "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA"
  7279. "\x13\x78\xDC\x89\x12\x12\x43\xFA"
  7280. "\xF6\x12\xEF\x8D\x87\x62\x78\x83"
  7281. "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B"
  7282. "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03"
  7283. "\xBF\x45\x73\xD4\xE5\x59\x95\xD1"
  7284. "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F"
  7285. "\xA4\xD2\x39\x80\xAA\x50\x23\xF0"
  7286. "\x74\x88\x3D\xA8\x6A\x18\x79\x3B"
  7287. "\xC4\x96\x6C\x8D\x22\x40\x92\x6E"
  7288. "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7"
  7289. "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC"
  7290. "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA"
  7291. "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B"
  7292. "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B"
  7293. "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D"
  7294. "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01"
  7295. "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0"
  7296. "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA"
  7297. "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA"
  7298. "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2"
  7299. "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F"
  7300. "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9"
  7301. "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C"
  7302. "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4"
  7303. "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08"
  7304. "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D"
  7305. "\x14\x28\x0C\xCF\x99\x13\x7A\xF1"
  7306. "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1"
  7307. "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E"
  7308. "\x83\x37\x4F\x1F\x48\x30\xED\x04"
  7309. "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C"
  7310. "\x41\x8F\x63\x37\x78\x2F\x86\xA6"
  7311. "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67"
  7312. "\x52\x71\xC3\x8E\xF8\x26\x93\x72"
  7313. "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A"
  7314. "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C"
  7315. "\x52\xBC\x8B\x05\x56\xB2\xBC\x31"
  7316. "\x9B\x74\xB9\x29\x29\x96\x9A\x50"
  7317. "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4"
  7318. "\xD3\x05\x7E\x59\x55\xC3\xF4\x90"
  7319. "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1"
  7320. "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC"
  7321. "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA"
  7322. "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65"
  7323. "\x32\xDC\x48\xC4\xF2\x00\x6B\x77"
  7324. "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A"
  7325. "\xA5\x3A\x62\xC8\x91\xB1\x03\x65"
  7326. "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC"
  7327. "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0"
  7328. "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0"
  7329. "\x40\x77\x72\xC2\xEA\x0E\x3A\x78"
  7330. "\x46\xB9\x91\xB6\xE7\x3D\x51\x42"
  7331. "\xFD\x51\xB0\xC6\x2C\x63\x13\x78"
  7332. "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34",
  7333. .rlen = 496,
  7334. .also_non_np = 1,
  7335. .np = 3,
  7336. .tap = { 496 - 20, 4, 16 },
  7337. }, { /* Generated with Crypto++ */
  7338. .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
  7339. "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
  7340. "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
  7341. .klen = 24,
  7342. .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
  7343. "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
  7344. .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
  7345. "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
  7346. "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
  7347. "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
  7348. "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
  7349. "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
  7350. "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
  7351. "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
  7352. "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
  7353. "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
  7354. "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
  7355. "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
  7356. "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
  7357. "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
  7358. "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
  7359. "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
  7360. "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
  7361. "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
  7362. "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
  7363. "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
  7364. "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
  7365. "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
  7366. "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
  7367. "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
  7368. "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
  7369. "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
  7370. "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
  7371. "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
  7372. "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
  7373. "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
  7374. "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
  7375. "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
  7376. "\x50\x3B\x82\x15\x99\x60\xCB\x52"
  7377. "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
  7378. "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
  7379. "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
  7380. "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
  7381. "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
  7382. "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
  7383. "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
  7384. "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
  7385. "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
  7386. "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
  7387. "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
  7388. "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
  7389. "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
  7390. "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
  7391. "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
  7392. "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
  7393. "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
  7394. "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
  7395. "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
  7396. "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
  7397. "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
  7398. "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
  7399. "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
  7400. "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
  7401. "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
  7402. "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
  7403. "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
  7404. "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
  7405. "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47"
  7406. "\x2E\xB1\x18",
  7407. .ilen = 499,
  7408. .result = "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4"
  7409. "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7"
  7410. "\x94\x9D\x1B\xFF\x8E\x95\x57\x89"
  7411. "\x8C\x2E\x33\x70\x43\x61\xE6\xD2"
  7412. "\x82\x33\x63\xB6\xC4\x34\x5E\xF8"
  7413. "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA"
  7414. "\x7C\xA0\x55\x89\x2E\xE1\x85\x25"
  7415. "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF"
  7416. "\x08\x2E\x69\xD4\x54\xDE\x22\x84"
  7417. "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05"
  7418. "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F"
  7419. "\x58\x5C\x46\xEA\x07\x40\xDA\xE1"
  7420. "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54"
  7421. "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5"
  7422. "\x97\x5D\x61\x78\x2E\x46\xEC\x6A"
  7423. "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29"
  7424. "\x9F\x17\x33\x24\xD8\xB9\xB2\x05"
  7425. "\x93\x88\xEA\xF7\xA0\x70\x69\x49"
  7426. "\x88\x6B\x73\x40\x41\x8D\xD9\xD9"
  7427. "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A"
  7428. "\x66\xE1\xDA\xED\x10\xFF\x69\x1D"
  7429. "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2"
  7430. "\x45\x54\x8B\xA3\x70\x23\xB4\x5E"
  7431. "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2"
  7432. "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2"
  7433. "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8"
  7434. "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0"
  7435. "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E"
  7436. "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71"
  7437. "\xCE\x05\x49\x89\xBA\xD6\x72\xE7"
  7438. "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02"
  7439. "\xD6\x43\x22\xAF\xA2\xE4\x80\x85"
  7440. "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF"
  7441. "\x5C\x82\x2E\x98\x0D\x30\x41\x6B"
  7442. "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D"
  7443. "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58"
  7444. "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40"
  7445. "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC"
  7446. "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B"
  7447. "\xC6\x12\x13\x4F\xCB\x35\xBA\x35"
  7448. "\xDD\x7A\x36\x9C\x12\x57\x55\x83"
  7449. "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C"
  7450. "\x38\xCF\xBD\x79\x5B\x13\x4D\x97"
  7451. "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4"
  7452. "\x98\xE2\xBD\x77\x6B\x53\x39\x1A"
  7453. "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69"
  7454. "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15"
  7455. "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F"
  7456. "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F"
  7457. "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA"
  7458. "\x8A\x19\x08\xE1\x08\x48\x59\x51"
  7459. "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F"
  7460. "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA"
  7461. "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4"
  7462. "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED"
  7463. "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75"
  7464. "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4"
  7465. "\x97\x73\x28\xDE\xCF\xAF\x82\xBD"
  7466. "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42"
  7467. "\x42\x39\x7C\x53\xA4\xD4\xDD\x40"
  7468. "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7"
  7469. "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B"
  7470. "\xF2\x79\xD9",
  7471. .rlen = 499,
  7472. .also_non_np = 1,
  7473. .np = 2,
  7474. .tap = { 499 - 16, 16 },
  7475. },
  7476. };
  7477. static struct cipher_testvec des3_ede_ctr_dec_tv_template[] = {
  7478. { /* Generated with Crypto++ */
  7479. .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
  7480. "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
  7481. "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
  7482. .klen = 24,
  7483. .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
  7484. "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
  7485. .input = "\x07\xC2\x08\x20\x72\x1F\x49\xEF"
  7486. "\x19\xCD\x6F\x32\x53\x05\x22\x15"
  7487. "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9"
  7488. "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4"
  7489. "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE"
  7490. "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E"
  7491. "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C"
  7492. "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA"
  7493. "\x13\x78\xDC\x89\x12\x12\x43\xFA"
  7494. "\xF6\x12\xEF\x8D\x87\x62\x78\x83"
  7495. "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B"
  7496. "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03"
  7497. "\xBF\x45\x73\xD4\xE5\x59\x95\xD1"
  7498. "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F"
  7499. "\xA4\xD2\x39\x80\xAA\x50\x23\xF0"
  7500. "\x74\x88\x3D\xA8\x6A\x18\x79\x3B"
  7501. "\xC4\x96\x6C\x8D\x22\x40\x92\x6E"
  7502. "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7"
  7503. "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC"
  7504. "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA"
  7505. "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B"
  7506. "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B"
  7507. "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D"
  7508. "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01"
  7509. "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0"
  7510. "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA"
  7511. "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA"
  7512. "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2"
  7513. "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F"
  7514. "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9"
  7515. "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C"
  7516. "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4"
  7517. "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08"
  7518. "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D"
  7519. "\x14\x28\x0C\xCF\x99\x13\x7A\xF1"
  7520. "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1"
  7521. "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E"
  7522. "\x83\x37\x4F\x1F\x48\x30\xED\x04"
  7523. "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C"
  7524. "\x41\x8F\x63\x37\x78\x2F\x86\xA6"
  7525. "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67"
  7526. "\x52\x71\xC3\x8E\xF8\x26\x93\x72"
  7527. "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A"
  7528. "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C"
  7529. "\x52\xBC\x8B\x05\x56\xB2\xBC\x31"
  7530. "\x9B\x74\xB9\x29\x29\x96\x9A\x50"
  7531. "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4"
  7532. "\xD3\x05\x7E\x59\x55\xC3\xF4\x90"
  7533. "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1"
  7534. "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC"
  7535. "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA"
  7536. "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65"
  7537. "\x32\xDC\x48\xC4\xF2\x00\x6B\x77"
  7538. "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A"
  7539. "\xA5\x3A\x62\xC8\x91\xB1\x03\x65"
  7540. "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC"
  7541. "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0"
  7542. "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0"
  7543. "\x40\x77\x72\xC2\xEA\x0E\x3A\x78"
  7544. "\x46\xB9\x91\xB6\xE7\x3D\x51\x42"
  7545. "\xFD\x51\xB0\xC6\x2C\x63\x13\x78"
  7546. "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34",
  7547. .ilen = 496,
  7548. .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
  7549. "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
  7550. "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
  7551. "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
  7552. "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
  7553. "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
  7554. "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
  7555. "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
  7556. "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
  7557. "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
  7558. "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
  7559. "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
  7560. "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
  7561. "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
  7562. "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
  7563. "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
  7564. "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
  7565. "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
  7566. "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
  7567. "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
  7568. "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
  7569. "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
  7570. "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
  7571. "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
  7572. "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
  7573. "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
  7574. "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
  7575. "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
  7576. "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
  7577. "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
  7578. "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
  7579. "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
  7580. "\x50\x3B\x82\x15\x99\x60\xCB\x52"
  7581. "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
  7582. "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
  7583. "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
  7584. "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
  7585. "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
  7586. "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
  7587. "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
  7588. "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
  7589. "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
  7590. "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
  7591. "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
  7592. "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
  7593. "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
  7594. "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
  7595. "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
  7596. "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
  7597. "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
  7598. "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
  7599. "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
  7600. "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
  7601. "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
  7602. "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
  7603. "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
  7604. "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
  7605. "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
  7606. "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
  7607. "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
  7608. "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
  7609. "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
  7610. .rlen = 496,
  7611. .also_non_np = 1,
  7612. .np = 3,
  7613. .tap = { 496 - 20, 4, 16 },
  7614. }, { /* Generated with Crypto++ */
  7615. .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
  7616. "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
  7617. "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
  7618. .klen = 24,
  7619. .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
  7620. "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
  7621. .input = "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4"
  7622. "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7"
  7623. "\x94\x9D\x1B\xFF\x8E\x95\x57\x89"
  7624. "\x8C\x2E\x33\x70\x43\x61\xE6\xD2"
  7625. "\x82\x33\x63\xB6\xC4\x34\x5E\xF8"
  7626. "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA"
  7627. "\x7C\xA0\x55\x89\x2E\xE1\x85\x25"
  7628. "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF"
  7629. "\x08\x2E\x69\xD4\x54\xDE\x22\x84"
  7630. "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05"
  7631. "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F"
  7632. "\x58\x5C\x46\xEA\x07\x40\xDA\xE1"
  7633. "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54"
  7634. "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5"
  7635. "\x97\x5D\x61\x78\x2E\x46\xEC\x6A"
  7636. "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29"
  7637. "\x9F\x17\x33\x24\xD8\xB9\xB2\x05"
  7638. "\x93\x88\xEA\xF7\xA0\x70\x69\x49"
  7639. "\x88\x6B\x73\x40\x41\x8D\xD9\xD9"
  7640. "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A"
  7641. "\x66\xE1\xDA\xED\x10\xFF\x69\x1D"
  7642. "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2"
  7643. "\x45\x54\x8B\xA3\x70\x23\xB4\x5E"
  7644. "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2"
  7645. "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2"
  7646. "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8"
  7647. "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0"
  7648. "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E"
  7649. "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71"
  7650. "\xCE\x05\x49\x89\xBA\xD6\x72\xE7"
  7651. "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02"
  7652. "\xD6\x43\x22\xAF\xA2\xE4\x80\x85"
  7653. "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF"
  7654. "\x5C\x82\x2E\x98\x0D\x30\x41\x6B"
  7655. "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D"
  7656. "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58"
  7657. "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40"
  7658. "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC"
  7659. "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B"
  7660. "\xC6\x12\x13\x4F\xCB\x35\xBA\x35"
  7661. "\xDD\x7A\x36\x9C\x12\x57\x55\x83"
  7662. "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C"
  7663. "\x38\xCF\xBD\x79\x5B\x13\x4D\x97"
  7664. "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4"
  7665. "\x98\xE2\xBD\x77\x6B\x53\x39\x1A"
  7666. "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69"
  7667. "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15"
  7668. "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F"
  7669. "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F"
  7670. "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA"
  7671. "\x8A\x19\x08\xE1\x08\x48\x59\x51"
  7672. "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F"
  7673. "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA"
  7674. "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4"
  7675. "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED"
  7676. "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75"
  7677. "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4"
  7678. "\x97\x73\x28\xDE\xCF\xAF\x82\xBD"
  7679. "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42"
  7680. "\x42\x39\x7C\x53\xA4\xD4\xDD\x40"
  7681. "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7"
  7682. "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B"
  7683. "\xF2\x79\xD9",
  7684. .ilen = 499,
  7685. .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
  7686. "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
  7687. "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
  7688. "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
  7689. "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
  7690. "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
  7691. "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
  7692. "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
  7693. "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
  7694. "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
  7695. "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
  7696. "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
  7697. "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
  7698. "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
  7699. "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
  7700. "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
  7701. "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
  7702. "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
  7703. "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
  7704. "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
  7705. "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
  7706. "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
  7707. "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
  7708. "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
  7709. "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
  7710. "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
  7711. "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
  7712. "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
  7713. "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
  7714. "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
  7715. "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
  7716. "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
  7717. "\x50\x3B\x82\x15\x99\x60\xCB\x52"
  7718. "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
  7719. "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
  7720. "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
  7721. "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
  7722. "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
  7723. "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
  7724. "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
  7725. "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
  7726. "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
  7727. "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
  7728. "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
  7729. "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
  7730. "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
  7731. "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
  7732. "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
  7733. "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
  7734. "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
  7735. "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
  7736. "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
  7737. "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
  7738. "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
  7739. "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
  7740. "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
  7741. "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
  7742. "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
  7743. "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
  7744. "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
  7745. "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
  7746. "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47"
  7747. "\x2E\xB1\x18",
  7748. .rlen = 499,
  7749. .also_non_np = 1,
  7750. .np = 2,
  7751. .tap = { 499 - 16, 16 },
  7752. },
  7753. };
  7754. /*
  7755. * Blowfish test vectors.
  7756. */
  7757. #define BF_ENC_TEST_VECTORS 7
  7758. #define BF_DEC_TEST_VECTORS 7
  7759. #define BF_CBC_ENC_TEST_VECTORS 2
  7760. #define BF_CBC_DEC_TEST_VECTORS 2
  7761. #define BF_CTR_ENC_TEST_VECTORS 2
  7762. #define BF_CTR_DEC_TEST_VECTORS 2
  7763. static struct cipher_testvec bf_enc_tv_template[] = {
  7764. { /* DES test vectors from OpenSSL */
  7765. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7766. .klen = 8,
  7767. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7768. .ilen = 8,
  7769. .result = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
  7770. .rlen = 8,
  7771. }, {
  7772. .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
  7773. .klen = 8,
  7774. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  7775. .ilen = 8,
  7776. .result = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
  7777. .rlen = 8,
  7778. }, {
  7779. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7780. .klen = 8,
  7781. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7782. .ilen = 8,
  7783. .result = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
  7784. .rlen = 8,
  7785. }, { /* Vary the keylength... */
  7786. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  7787. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
  7788. .klen = 16,
  7789. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7790. .ilen = 8,
  7791. .result = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
  7792. .rlen = 8,
  7793. }, {
  7794. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  7795. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  7796. "\x00\x11\x22\x33\x44",
  7797. .klen = 21,
  7798. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7799. .ilen = 8,
  7800. .result = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
  7801. .rlen = 8,
  7802. }, { /* Generated with bf488 */
  7803. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  7804. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  7805. "\x00\x11\x22\x33\x44\x55\x66\x77"
  7806. "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
  7807. "\x58\x40\x23\x64\x1a\xba\x61\x76"
  7808. "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
  7809. "\xff\xff\xff\xff\xff\xff\xff\xff",
  7810. .klen = 56,
  7811. .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7812. .ilen = 8,
  7813. .result = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
  7814. .rlen = 8,
  7815. }, { /* Generated with Crypto++ */
  7816. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  7817. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  7818. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  7819. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  7820. .klen = 32,
  7821. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  7822. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  7823. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  7824. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  7825. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  7826. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  7827. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  7828. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  7829. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  7830. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  7831. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  7832. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  7833. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  7834. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  7835. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  7836. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  7837. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  7838. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  7839. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  7840. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  7841. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  7842. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  7843. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  7844. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  7845. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  7846. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  7847. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  7848. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  7849. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  7850. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  7851. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  7852. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  7853. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  7854. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  7855. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  7856. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  7857. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  7858. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  7859. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  7860. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  7861. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  7862. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  7863. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  7864. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  7865. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  7866. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  7867. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  7868. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  7869. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  7870. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  7871. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  7872. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  7873. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  7874. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  7875. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  7876. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  7877. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  7878. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  7879. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  7880. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  7881. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  7882. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  7883. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
  7884. .ilen = 504,
  7885. .result = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F"
  7886. "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D"
  7887. "\xD7\x87\xA1\xF2\xDF\x51\x71\x26"
  7888. "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40"
  7889. "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B"
  7890. "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9"
  7891. "\xCD\xF3\x88\x39\x39\x7A\xDF\x19"
  7892. "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86"
  7893. "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5"
  7894. "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D"
  7895. "\x6E\x66\xAF\x38\x6C\xD3\x13\xED"
  7896. "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A"
  7897. "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B"
  7898. "\x9D\x5B\x54\x65\x4F\x16\x8A\x97"
  7899. "\xF3\xF6\xD4\xAA\x87\x36\x77\x72"
  7900. "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D"
  7901. "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F"
  7902. "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8"
  7903. "\x47\x82\x98\x23\x33\x36\xBC\x1B"
  7904. "\x36\xE7\xF6\xCF\x97\x37\x16\xC0"
  7905. "\x87\x31\x8B\xB0\xDB\x19\x42\xA5"
  7906. "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9"
  7907. "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71"
  7908. "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B"
  7909. "\x60\x00\x55\x57\x06\x8B\xD5\xB3"
  7910. "\x86\x30\x78\xDA\x33\x9A\x9D\xCC"
  7911. "\xBA\x0B\x81\x06\x77\x43\xC7\xC9"
  7912. "\xDB\x37\x60\x11\x45\x59\x6D\x2D"
  7913. "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C"
  7914. "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B"
  7915. "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9"
  7916. "\x98\xE4\x7F\xC3\x6E\x51\x24\x70"
  7917. "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3"
  7918. "\xE0\x8A\x44\xA2\x5C\x94\x74\x34"
  7919. "\x37\x52\x7C\x03\xE8\x8E\x97\xE1"
  7920. "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F"
  7921. "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45"
  7922. "\x55\xC5\xA7\xA3\x19\x80\x28\x51"
  7923. "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB"
  7924. "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC"
  7925. "\x3E\x42\x14\x49\x88\x51\xBF\x68"
  7926. "\x45\x75\x27\x1B\x0A\x72\xED\xAF"
  7927. "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3"
  7928. "\x34\xDD\x91\x19\x42\x3A\xCB\xDA"
  7929. "\x38\xFA\x3C\x93\x62\xF2\xE3\x81"
  7930. "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09"
  7931. "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2"
  7932. "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E"
  7933. "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC"
  7934. "\x36\x56\x6E\x85\x73\xD7\x52\xBA"
  7935. "\x35\x5E\x32\x89\x5D\x42\xF5\x36"
  7936. "\x52\x8D\x46\x7D\xC8\x71\xAD\x33"
  7937. "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC"
  7938. "\xFE\x88\xE6\x16\xE4\xC8\x13\x00"
  7939. "\x3C\xDA\x59\x32\x38\x19\xD5\xEB"
  7940. "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C"
  7941. "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B"
  7942. "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29"
  7943. "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D"
  7944. "\xC9\x0D\x59\x82\x27\x57\x9D\x42"
  7945. "\x54\x59\x09\xA5\x3D\xC5\x84\x68"
  7946. "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5"
  7947. "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4",
  7948. .rlen = 504,
  7949. .also_non_np = 1,
  7950. .np = 3,
  7951. .tap = { 504 - 10, 2, 8 },
  7952. },
  7953. };
  7954. static struct cipher_testvec bf_dec_tv_template[] = {
  7955. { /* DES test vectors from OpenSSL */
  7956. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7957. .klen = 8,
  7958. .input = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
  7959. .ilen = 8,
  7960. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  7961. .rlen = 8,
  7962. }, {
  7963. .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
  7964. .klen = 8,
  7965. .input = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
  7966. .ilen = 8,
  7967. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  7968. .rlen = 8,
  7969. }, {
  7970. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  7971. .klen = 8,
  7972. .input = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
  7973. .ilen = 8,
  7974. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7975. .rlen = 8,
  7976. }, { /* Vary the keylength... */
  7977. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  7978. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
  7979. .klen = 16,
  7980. .input = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
  7981. .ilen = 8,
  7982. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7983. .rlen = 8,
  7984. }, {
  7985. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  7986. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  7987. "\x00\x11\x22\x33\x44",
  7988. .klen = 21,
  7989. .input = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
  7990. .ilen = 8,
  7991. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  7992. .rlen = 8,
  7993. }, { /* Generated with bf488, using OpenSSL, Libgcrypt and Nettle */
  7994. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
  7995. "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
  7996. "\x00\x11\x22\x33\x44\x55\x66\x77"
  7997. "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
  7998. "\x58\x40\x23\x64\x1a\xba\x61\x76"
  7999. "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
  8000. "\xff\xff\xff\xff\xff\xff\xff\xff",
  8001. .klen = 56,
  8002. .input = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
  8003. .ilen = 8,
  8004. .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  8005. .rlen = 8,
  8006. }, { /* Generated with Crypto++ */
  8007. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  8008. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  8009. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  8010. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  8011. .klen = 32,
  8012. .input = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F"
  8013. "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D"
  8014. "\xD7\x87\xA1\xF2\xDF\x51\x71\x26"
  8015. "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40"
  8016. "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B"
  8017. "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9"
  8018. "\xCD\xF3\x88\x39\x39\x7A\xDF\x19"
  8019. "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86"
  8020. "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5"
  8021. "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D"
  8022. "\x6E\x66\xAF\x38\x6C\xD3\x13\xED"
  8023. "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A"
  8024. "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B"
  8025. "\x9D\x5B\x54\x65\x4F\x16\x8A\x97"
  8026. "\xF3\xF6\xD4\xAA\x87\x36\x77\x72"
  8027. "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D"
  8028. "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F"
  8029. "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8"
  8030. "\x47\x82\x98\x23\x33\x36\xBC\x1B"
  8031. "\x36\xE7\xF6\xCF\x97\x37\x16\xC0"
  8032. "\x87\x31\x8B\xB0\xDB\x19\x42\xA5"
  8033. "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9"
  8034. "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71"
  8035. "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B"
  8036. "\x60\x00\x55\x57\x06\x8B\xD5\xB3"
  8037. "\x86\x30\x78\xDA\x33\x9A\x9D\xCC"
  8038. "\xBA\x0B\x81\x06\x77\x43\xC7\xC9"
  8039. "\xDB\x37\x60\x11\x45\x59\x6D\x2D"
  8040. "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C"
  8041. "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B"
  8042. "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9"
  8043. "\x98\xE4\x7F\xC3\x6E\x51\x24\x70"
  8044. "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3"
  8045. "\xE0\x8A\x44\xA2\x5C\x94\x74\x34"
  8046. "\x37\x52\x7C\x03\xE8\x8E\x97\xE1"
  8047. "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F"
  8048. "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45"
  8049. "\x55\xC5\xA7\xA3\x19\x80\x28\x51"
  8050. "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB"
  8051. "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC"
  8052. "\x3E\x42\x14\x49\x88\x51\xBF\x68"
  8053. "\x45\x75\x27\x1B\x0A\x72\xED\xAF"
  8054. "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3"
  8055. "\x34\xDD\x91\x19\x42\x3A\xCB\xDA"
  8056. "\x38\xFA\x3C\x93\x62\xF2\xE3\x81"
  8057. "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09"
  8058. "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2"
  8059. "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E"
  8060. "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC"
  8061. "\x36\x56\x6E\x85\x73\xD7\x52\xBA"
  8062. "\x35\x5E\x32\x89\x5D\x42\xF5\x36"
  8063. "\x52\x8D\x46\x7D\xC8\x71\xAD\x33"
  8064. "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC"
  8065. "\xFE\x88\xE6\x16\xE4\xC8\x13\x00"
  8066. "\x3C\xDA\x59\x32\x38\x19\xD5\xEB"
  8067. "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C"
  8068. "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B"
  8069. "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29"
  8070. "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D"
  8071. "\xC9\x0D\x59\x82\x27\x57\x9D\x42"
  8072. "\x54\x59\x09\xA5\x3D\xC5\x84\x68"
  8073. "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5"
  8074. "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4",
  8075. .ilen = 504,
  8076. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  8077. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  8078. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  8079. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  8080. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  8081. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  8082. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  8083. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  8084. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  8085. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  8086. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  8087. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  8088. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  8089. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  8090. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  8091. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  8092. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  8093. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  8094. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  8095. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  8096. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  8097. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  8098. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  8099. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  8100. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  8101. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  8102. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  8103. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  8104. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  8105. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  8106. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  8107. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  8108. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  8109. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  8110. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  8111. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  8112. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  8113. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  8114. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  8115. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  8116. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  8117. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  8118. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  8119. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  8120. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  8121. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  8122. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  8123. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  8124. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  8125. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  8126. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  8127. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  8128. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  8129. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  8130. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  8131. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  8132. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  8133. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  8134. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  8135. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  8136. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  8137. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  8138. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
  8139. .rlen = 504,
  8140. .also_non_np = 1,
  8141. .np = 3,
  8142. .tap = { 504 - 10, 2, 8 },
  8143. },
  8144. };
  8145. static struct cipher_testvec bf_cbc_enc_tv_template[] = {
  8146. { /* From OpenSSL */
  8147. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  8148. "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  8149. .klen = 16,
  8150. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  8151. .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
  8152. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  8153. "\x68\x65\x20\x74\x69\x6d\x65\x20"
  8154. "\x66\x6f\x72\x20\x00\x00\x00\x00",
  8155. .ilen = 32,
  8156. .result = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
  8157. "\x05\xb1\x56\xe2\x74\x03\x97\x93"
  8158. "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
  8159. "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
  8160. .rlen = 32,
  8161. }, { /* Generated with Crypto++ */
  8162. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  8163. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  8164. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  8165. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  8166. .klen = 32,
  8167. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  8168. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  8169. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  8170. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  8171. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  8172. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  8173. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  8174. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  8175. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  8176. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  8177. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  8178. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  8179. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  8180. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  8181. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  8182. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  8183. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  8184. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  8185. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  8186. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  8187. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  8188. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  8189. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  8190. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  8191. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  8192. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  8193. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  8194. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  8195. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  8196. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  8197. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  8198. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  8199. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  8200. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  8201. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  8202. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  8203. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  8204. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  8205. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  8206. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  8207. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  8208. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  8209. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  8210. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  8211. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  8212. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  8213. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  8214. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  8215. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  8216. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  8217. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  8218. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  8219. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  8220. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  8221. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  8222. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  8223. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  8224. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  8225. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  8226. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  8227. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  8228. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  8229. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  8230. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
  8231. .ilen = 504,
  8232. .result = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06"
  8233. "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62"
  8234. "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E"
  8235. "\x1B\xD9\x02\xB6\x48\xB0\x87\x25"
  8236. "\x01\x9C\x93\x63\x51\x60\x82\xD2"
  8237. "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD"
  8238. "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F"
  8239. "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69"
  8240. "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5"
  8241. "\x43\x29\x9D\x94\xF4\x2F\x0A\x65"
  8242. "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A"
  8243. "\x60\xD3\x52\xA8\xED\x91\xDF\xE1"
  8244. "\x91\x73\x7C\x28\xA1\x14\xC3\x4C"
  8245. "\x82\x72\x4B\x7D\x7D\x32\xD5\x19"
  8246. "\xE8\xB8\x6B\x30\x21\x09\x0E\x27"
  8247. "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6"
  8248. "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13"
  8249. "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69"
  8250. "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C"
  8251. "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40"
  8252. "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43"
  8253. "\x65\xFE\x15\x40\xD0\x62\x41\x02"
  8254. "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE"
  8255. "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C"
  8256. "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B"
  8257. "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A"
  8258. "\xC2\x6D\xBD\x5E\x89\x95\x86\x43"
  8259. "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24"
  8260. "\x04\xF0\x86\x08\x78\x18\x42\xE0"
  8261. "\x39\x1B\x22\x9E\x89\x4C\x04\x6B"
  8262. "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7"
  8263. "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC"
  8264. "\xF0\x51\xCC\x93\x68\xFC\xE9\x19"
  8265. "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC"
  8266. "\x97\x18\x92\xFF\x15\x11\xCE\xED"
  8267. "\x04\x41\x05\xA3\x92\xFF\x3B\xE6"
  8268. "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04"
  8269. "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68"
  8270. "\xEF\xB3\x61\x18\xDB\x83\x9B\x39"
  8271. "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02"
  8272. "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35"
  8273. "\x75\x6F\x06\x81\x0A\x97\x4D\xF0"
  8274. "\x43\x12\x73\x77\xDB\x91\x83\x5B"
  8275. "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50"
  8276. "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F"
  8277. "\x7E\x12\x40\xB2\x3E\x19\x23\xF1"
  8278. "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87"
  8279. "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88"
  8280. "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A"
  8281. "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76"
  8282. "\x14\x48\x2E\xDE\x2A\x44\x5E\x45"
  8283. "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A"
  8284. "\xED\x73\xD3\x79\xF7\x38\x1D\xD0"
  8285. "\xC5\xF8\x69\x83\x28\x84\x87\x56"
  8286. "\x3F\xAE\x81\x04\x79\x1F\xD1\x09"
  8287. "\xC5\xE5\x05\x0D\x64\x16\xCE\x42"
  8288. "\xC5\xF8\xDB\x57\x89\x33\x22\xFC"
  8289. "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90"
  8290. "\x02\xBA\x55\x1E\x24\x3E\x02\x1D"
  8291. "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51"
  8292. "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9"
  8293. "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0"
  8294. "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4",
  8295. .rlen = 504,
  8296. .also_non_np = 1,
  8297. .np = 3,
  8298. .tap = { 504 - 10, 2, 8 },
  8299. },
  8300. };
  8301. static struct cipher_testvec bf_cbc_dec_tv_template[] = {
  8302. { /* From OpenSSL */
  8303. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  8304. "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  8305. .klen = 16,
  8306. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  8307. .input = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
  8308. "\x05\xb1\x56\xe2\x74\x03\x97\x93"
  8309. "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
  8310. "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
  8311. .ilen = 32,
  8312. .result = "\x37\x36\x35\x34\x33\x32\x31\x20"
  8313. "\x4e\x6f\x77\x20\x69\x73\x20\x74"
  8314. "\x68\x65\x20\x74\x69\x6d\x65\x20"
  8315. "\x66\x6f\x72\x20\x00\x00\x00\x00",
  8316. .rlen = 32,
  8317. }, { /* Generated with Crypto++ */
  8318. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  8319. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  8320. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  8321. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  8322. .klen = 32,
  8323. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  8324. .input = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06"
  8325. "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62"
  8326. "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E"
  8327. "\x1B\xD9\x02\xB6\x48\xB0\x87\x25"
  8328. "\x01\x9C\x93\x63\x51\x60\x82\xD2"
  8329. "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD"
  8330. "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F"
  8331. "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69"
  8332. "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5"
  8333. "\x43\x29\x9D\x94\xF4\x2F\x0A\x65"
  8334. "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A"
  8335. "\x60\xD3\x52\xA8\xED\x91\xDF\xE1"
  8336. "\x91\x73\x7C\x28\xA1\x14\xC3\x4C"
  8337. "\x82\x72\x4B\x7D\x7D\x32\xD5\x19"
  8338. "\xE8\xB8\x6B\x30\x21\x09\x0E\x27"
  8339. "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6"
  8340. "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13"
  8341. "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69"
  8342. "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C"
  8343. "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40"
  8344. "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43"
  8345. "\x65\xFE\x15\x40\xD0\x62\x41\x02"
  8346. "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE"
  8347. "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C"
  8348. "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B"
  8349. "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A"
  8350. "\xC2\x6D\xBD\x5E\x89\x95\x86\x43"
  8351. "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24"
  8352. "\x04\xF0\x86\x08\x78\x18\x42\xE0"
  8353. "\x39\x1B\x22\x9E\x89\x4C\x04\x6B"
  8354. "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7"
  8355. "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC"
  8356. "\xF0\x51\xCC\x93\x68\xFC\xE9\x19"
  8357. "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC"
  8358. "\x97\x18\x92\xFF\x15\x11\xCE\xED"
  8359. "\x04\x41\x05\xA3\x92\xFF\x3B\xE6"
  8360. "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04"
  8361. "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68"
  8362. "\xEF\xB3\x61\x18\xDB\x83\x9B\x39"
  8363. "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02"
  8364. "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35"
  8365. "\x75\x6F\x06\x81\x0A\x97\x4D\xF0"
  8366. "\x43\x12\x73\x77\xDB\x91\x83\x5B"
  8367. "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50"
  8368. "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F"
  8369. "\x7E\x12\x40\xB2\x3E\x19\x23\xF1"
  8370. "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87"
  8371. "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88"
  8372. "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A"
  8373. "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76"
  8374. "\x14\x48\x2E\xDE\x2A\x44\x5E\x45"
  8375. "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A"
  8376. "\xED\x73\xD3\x79\xF7\x38\x1D\xD0"
  8377. "\xC5\xF8\x69\x83\x28\x84\x87\x56"
  8378. "\x3F\xAE\x81\x04\x79\x1F\xD1\x09"
  8379. "\xC5\xE5\x05\x0D\x64\x16\xCE\x42"
  8380. "\xC5\xF8\xDB\x57\x89\x33\x22\xFC"
  8381. "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90"
  8382. "\x02\xBA\x55\x1E\x24\x3E\x02\x1D"
  8383. "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51"
  8384. "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9"
  8385. "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0"
  8386. "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4",
  8387. .ilen = 504,
  8388. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  8389. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  8390. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  8391. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  8392. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  8393. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  8394. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  8395. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  8396. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  8397. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  8398. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  8399. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  8400. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  8401. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  8402. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  8403. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  8404. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  8405. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  8406. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  8407. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  8408. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  8409. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  8410. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  8411. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  8412. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  8413. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  8414. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  8415. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  8416. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  8417. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  8418. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  8419. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  8420. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  8421. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  8422. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  8423. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  8424. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  8425. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  8426. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  8427. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  8428. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  8429. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  8430. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  8431. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  8432. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  8433. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  8434. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  8435. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  8436. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  8437. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  8438. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  8439. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  8440. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  8441. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  8442. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  8443. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  8444. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  8445. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  8446. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  8447. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  8448. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  8449. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  8450. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
  8451. .rlen = 504,
  8452. .also_non_np = 1,
  8453. .np = 3,
  8454. .tap = { 504 - 10, 2, 8 },
  8455. },
  8456. };
  8457. static struct cipher_testvec bf_ctr_enc_tv_template[] = {
  8458. { /* Generated with Crypto++ */
  8459. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  8460. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  8461. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  8462. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  8463. .klen = 32,
  8464. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  8465. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  8466. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  8467. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  8468. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  8469. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  8470. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  8471. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  8472. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  8473. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  8474. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  8475. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  8476. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  8477. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  8478. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  8479. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  8480. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  8481. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  8482. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  8483. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  8484. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  8485. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  8486. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  8487. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  8488. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  8489. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  8490. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  8491. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  8492. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  8493. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  8494. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  8495. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  8496. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  8497. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  8498. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  8499. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  8500. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  8501. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  8502. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  8503. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  8504. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  8505. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  8506. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  8507. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  8508. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  8509. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  8510. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  8511. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  8512. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  8513. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  8514. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  8515. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  8516. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  8517. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  8518. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  8519. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  8520. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  8521. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  8522. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  8523. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  8524. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  8525. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  8526. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  8527. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
  8528. .ilen = 504,
  8529. .result = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
  8530. "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
  8531. "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
  8532. "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
  8533. "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
  8534. "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
  8535. "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
  8536. "\x97\xEB\x98\x75\xC4\x73\x45\x83"
  8537. "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
  8538. "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
  8539. "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
  8540. "\x13\xD2\x96\x68\x69\x10\x67\x0C"
  8541. "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
  8542. "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
  8543. "\x88\x09\x40\x59\xBD\x12\x64\xB5"
  8544. "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
  8545. "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
  8546. "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
  8547. "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
  8548. "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
  8549. "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
  8550. "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
  8551. "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
  8552. "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
  8553. "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
  8554. "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
  8555. "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
  8556. "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
  8557. "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
  8558. "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
  8559. "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
  8560. "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
  8561. "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
  8562. "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
  8563. "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
  8564. "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
  8565. "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
  8566. "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
  8567. "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
  8568. "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
  8569. "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
  8570. "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
  8571. "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
  8572. "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
  8573. "\x82\x63\x11\xB3\x54\x49\x00\x08"
  8574. "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
  8575. "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
  8576. "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
  8577. "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
  8578. "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
  8579. "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
  8580. "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
  8581. "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
  8582. "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
  8583. "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
  8584. "\x91\x04\x94\x99\x03\x3B\x42\x6D"
  8585. "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
  8586. "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
  8587. "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
  8588. "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
  8589. "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
  8590. "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
  8591. "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29",
  8592. .rlen = 504,
  8593. }, { /* Generated with Crypto++ */
  8594. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  8595. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  8596. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  8597. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  8598. .klen = 32,
  8599. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  8600. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  8601. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  8602. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  8603. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  8604. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  8605. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  8606. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  8607. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  8608. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  8609. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  8610. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  8611. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  8612. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  8613. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  8614. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  8615. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  8616. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  8617. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  8618. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  8619. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  8620. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  8621. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  8622. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  8623. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  8624. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  8625. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  8626. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  8627. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  8628. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  8629. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  8630. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  8631. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  8632. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  8633. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  8634. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  8635. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  8636. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  8637. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  8638. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  8639. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  8640. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  8641. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  8642. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  8643. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  8644. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  8645. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  8646. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  8647. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  8648. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  8649. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  8650. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  8651. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  8652. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  8653. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  8654. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  8655. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  8656. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  8657. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  8658. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  8659. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  8660. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  8661. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  8662. "\x2B\xC2\x59\xF0\x64\xFB\x92",
  8663. .ilen = 503,
  8664. .result = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
  8665. "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
  8666. "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
  8667. "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
  8668. "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
  8669. "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
  8670. "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
  8671. "\x97\xEB\x98\x75\xC4\x73\x45\x83"
  8672. "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
  8673. "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
  8674. "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
  8675. "\x13\xD2\x96\x68\x69\x10\x67\x0C"
  8676. "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
  8677. "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
  8678. "\x88\x09\x40\x59\xBD\x12\x64\xB5"
  8679. "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
  8680. "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
  8681. "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
  8682. "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
  8683. "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
  8684. "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
  8685. "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
  8686. "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
  8687. "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
  8688. "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
  8689. "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
  8690. "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
  8691. "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
  8692. "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
  8693. "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
  8694. "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
  8695. "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
  8696. "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
  8697. "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
  8698. "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
  8699. "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
  8700. "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
  8701. "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
  8702. "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
  8703. "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
  8704. "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
  8705. "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
  8706. "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
  8707. "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
  8708. "\x82\x63\x11\xB3\x54\x49\x00\x08"
  8709. "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
  8710. "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
  8711. "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
  8712. "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
  8713. "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
  8714. "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
  8715. "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
  8716. "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
  8717. "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
  8718. "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
  8719. "\x91\x04\x94\x99\x03\x3B\x42\x6D"
  8720. "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
  8721. "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
  8722. "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
  8723. "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
  8724. "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
  8725. "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
  8726. "\xF3\x71\xEF\xEB\x4E\xBB\x4D",
  8727. .rlen = 503,
  8728. .also_non_np = 1,
  8729. .np = 2,
  8730. .tap = { 503 - 8, 8 },
  8731. }, { /* Generated with Crypto++ */
  8732. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  8733. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  8734. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  8735. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  8736. .klen = 32,
  8737. .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
  8738. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  8739. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  8740. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  8741. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  8742. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  8743. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  8744. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  8745. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  8746. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  8747. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  8748. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  8749. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  8750. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  8751. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  8752. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  8753. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  8754. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  8755. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  8756. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  8757. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  8758. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  8759. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  8760. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  8761. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  8762. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  8763. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  8764. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  8765. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  8766. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  8767. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  8768. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  8769. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  8770. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  8771. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  8772. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  8773. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  8774. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  8775. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  8776. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  8777. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  8778. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  8779. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  8780. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  8781. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  8782. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  8783. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  8784. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  8785. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  8786. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  8787. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  8788. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  8789. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  8790. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  8791. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  8792. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  8793. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  8794. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  8795. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  8796. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  8797. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  8798. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  8799. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  8800. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
  8801. .ilen = 504,
  8802. .result = "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D"
  8803. "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82"
  8804. "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F"
  8805. "\x25\xF9\x27\x21\xF2\xD2\x9A\x01"
  8806. "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE"
  8807. "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2"
  8808. "\x62\x44\x72\xB9\x5D\xC0\xF8\x37"
  8809. "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2"
  8810. "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18"
  8811. "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60"
  8812. "\xF8\x98\xA2\x39\x81\x23\x6C\xA9"
  8813. "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44"
  8814. "\x2A\x67\x7A\x88\x28\xDC\x36\x83"
  8815. "\x18\xD7\x48\x43\x17\x2B\x1B\xE6"
  8816. "\x0B\x82\x59\x14\x26\x67\x08\x09"
  8817. "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A"
  8818. "\xCD\x22\x94\x42\xF5\xBA\x74\x7E"
  8819. "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E"
  8820. "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8"
  8821. "\xF4\xCC\x19\x76\xAB\x48\x29\xAA"
  8822. "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21"
  8823. "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F"
  8824. "\x59\x28\x1A\xE4\x18\x16\xA0\x29"
  8825. "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E"
  8826. "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D"
  8827. "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD"
  8828. "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31"
  8829. "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB"
  8830. "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8"
  8831. "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F"
  8832. "\xC5\xE9\x09\x08\xDD\x22\x77\x42"
  8833. "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C"
  8834. "\xF0\xFF\x15\x8E\x84\x86\xC0\x10"
  8835. "\x0F\x8D\x33\x06\xB8\x72\xA4\x47"
  8836. "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B"
  8837. "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2"
  8838. "\x63\x66\x07\x6D\x3F\x6C\x51\x7C"
  8839. "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D"
  8840. "\xB4\x19\xD8\x19\x45\x66\x27\x02"
  8841. "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D"
  8842. "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1"
  8843. "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7"
  8844. "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53"
  8845. "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3"
  8846. "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8"
  8847. "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A"
  8848. "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E"
  8849. "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37"
  8850. "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22"
  8851. "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9"
  8852. "\x91\x51\x4E\x71\xF2\x98\x85\x16"
  8853. "\x25\x7A\x76\x8A\x51\x0E\x65\x14"
  8854. "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A"
  8855. "\xE1\xCF\x41\x72\x14\x29\x4C\xF0"
  8856. "\x20\xD9\x9A\xC5\x66\xA4\x03\x76"
  8857. "\x5B\xA4\x15\x4F\x0E\x64\x39\x40"
  8858. "\x25\xF9\x20\x22\xF5\x88\xF5\xBA"
  8859. "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24"
  8860. "\x4B\x92\x71\xD9\x2F\x77\xA7\x95"
  8861. "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB"
  8862. "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0"
  8863. "\x16\x4C\x18\x6B\xF2\x69\xA0\x07"
  8864. "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E",
  8865. .rlen = 504,
  8866. },
  8867. };
  8868. static struct cipher_testvec bf_ctr_dec_tv_template[] = {
  8869. { /* Generated with Crypto++ */
  8870. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  8871. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  8872. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  8873. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  8874. .klen = 32,
  8875. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  8876. .input = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
  8877. "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
  8878. "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
  8879. "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
  8880. "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
  8881. "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
  8882. "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
  8883. "\x97\xEB\x98\x75\xC4\x73\x45\x83"
  8884. "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
  8885. "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
  8886. "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
  8887. "\x13\xD2\x96\x68\x69\x10\x67\x0C"
  8888. "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
  8889. "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
  8890. "\x88\x09\x40\x59\xBD\x12\x64\xB5"
  8891. "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
  8892. "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
  8893. "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
  8894. "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
  8895. "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
  8896. "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
  8897. "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
  8898. "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
  8899. "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
  8900. "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
  8901. "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
  8902. "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
  8903. "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
  8904. "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
  8905. "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
  8906. "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
  8907. "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
  8908. "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
  8909. "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
  8910. "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
  8911. "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
  8912. "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
  8913. "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
  8914. "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
  8915. "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
  8916. "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
  8917. "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
  8918. "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
  8919. "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
  8920. "\x82\x63\x11\xB3\x54\x49\x00\x08"
  8921. "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
  8922. "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
  8923. "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
  8924. "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
  8925. "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
  8926. "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
  8927. "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
  8928. "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
  8929. "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
  8930. "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
  8931. "\x91\x04\x94\x99\x03\x3B\x42\x6D"
  8932. "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
  8933. "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
  8934. "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
  8935. "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
  8936. "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
  8937. "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
  8938. "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29",
  8939. .ilen = 504,
  8940. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  8941. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  8942. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  8943. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  8944. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  8945. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  8946. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  8947. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  8948. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  8949. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  8950. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  8951. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  8952. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  8953. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  8954. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  8955. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  8956. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  8957. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  8958. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  8959. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  8960. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  8961. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  8962. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  8963. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  8964. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  8965. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  8966. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  8967. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  8968. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  8969. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  8970. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  8971. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  8972. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  8973. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  8974. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  8975. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  8976. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  8977. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  8978. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  8979. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  8980. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  8981. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  8982. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  8983. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  8984. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  8985. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  8986. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  8987. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  8988. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  8989. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  8990. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  8991. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  8992. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  8993. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  8994. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  8995. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  8996. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  8997. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  8998. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  8999. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  9000. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  9001. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  9002. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
  9003. .rlen = 504,
  9004. }, { /* Generated with Crypto++ */
  9005. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  9006. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  9007. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  9008. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  9009. .klen = 32,
  9010. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  9011. .input = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
  9012. "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
  9013. "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
  9014. "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
  9015. "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
  9016. "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
  9017. "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
  9018. "\x97\xEB\x98\x75\xC4\x73\x45\x83"
  9019. "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
  9020. "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
  9021. "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
  9022. "\x13\xD2\x96\x68\x69\x10\x67\x0C"
  9023. "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
  9024. "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
  9025. "\x88\x09\x40\x59\xBD\x12\x64\xB5"
  9026. "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
  9027. "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
  9028. "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
  9029. "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
  9030. "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
  9031. "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
  9032. "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
  9033. "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
  9034. "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
  9035. "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
  9036. "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
  9037. "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
  9038. "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
  9039. "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
  9040. "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
  9041. "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
  9042. "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
  9043. "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
  9044. "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
  9045. "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
  9046. "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
  9047. "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
  9048. "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
  9049. "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
  9050. "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
  9051. "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
  9052. "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
  9053. "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
  9054. "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
  9055. "\x82\x63\x11\xB3\x54\x49\x00\x08"
  9056. "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
  9057. "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
  9058. "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
  9059. "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
  9060. "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
  9061. "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
  9062. "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
  9063. "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
  9064. "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
  9065. "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
  9066. "\x91\x04\x94\x99\x03\x3B\x42\x6D"
  9067. "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
  9068. "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
  9069. "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
  9070. "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
  9071. "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
  9072. "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
  9073. "\xF3\x71\xEF\xEB\x4E\xBB\x4D",
  9074. .ilen = 503,
  9075. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  9076. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  9077. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  9078. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  9079. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  9080. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  9081. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  9082. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  9083. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  9084. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  9085. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  9086. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  9087. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  9088. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  9089. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  9090. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  9091. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  9092. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  9093. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  9094. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  9095. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  9096. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  9097. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  9098. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  9099. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  9100. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  9101. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  9102. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  9103. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  9104. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  9105. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  9106. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  9107. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  9108. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  9109. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  9110. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  9111. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  9112. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  9113. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  9114. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  9115. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  9116. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  9117. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  9118. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  9119. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  9120. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  9121. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  9122. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  9123. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  9124. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  9125. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  9126. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  9127. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  9128. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  9129. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  9130. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  9131. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  9132. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  9133. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  9134. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  9135. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  9136. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  9137. "\x2B\xC2\x59\xF0\x64\xFB\x92",
  9138. .rlen = 503,
  9139. .also_non_np = 1,
  9140. .np = 2,
  9141. .tap = { 503 - 8, 8 },
  9142. }, { /* Generated with Crypto++ */
  9143. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  9144. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  9145. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  9146. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  9147. .klen = 32,
  9148. .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
  9149. .input = "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D"
  9150. "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82"
  9151. "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F"
  9152. "\x25\xF9\x27\x21\xF2\xD2\x9A\x01"
  9153. "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE"
  9154. "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2"
  9155. "\x62\x44\x72\xB9\x5D\xC0\xF8\x37"
  9156. "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2"
  9157. "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18"
  9158. "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60"
  9159. "\xF8\x98\xA2\x39\x81\x23\x6C\xA9"
  9160. "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44"
  9161. "\x2A\x67\x7A\x88\x28\xDC\x36\x83"
  9162. "\x18\xD7\x48\x43\x17\x2B\x1B\xE6"
  9163. "\x0B\x82\x59\x14\x26\x67\x08\x09"
  9164. "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A"
  9165. "\xCD\x22\x94\x42\xF5\xBA\x74\x7E"
  9166. "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E"
  9167. "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8"
  9168. "\xF4\xCC\x19\x76\xAB\x48\x29\xAA"
  9169. "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21"
  9170. "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F"
  9171. "\x59\x28\x1A\xE4\x18\x16\xA0\x29"
  9172. "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E"
  9173. "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D"
  9174. "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD"
  9175. "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31"
  9176. "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB"
  9177. "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8"
  9178. "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F"
  9179. "\xC5\xE9\x09\x08\xDD\x22\x77\x42"
  9180. "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C"
  9181. "\xF0\xFF\x15\x8E\x84\x86\xC0\x10"
  9182. "\x0F\x8D\x33\x06\xB8\x72\xA4\x47"
  9183. "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B"
  9184. "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2"
  9185. "\x63\x66\x07\x6D\x3F\x6C\x51\x7C"
  9186. "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D"
  9187. "\xB4\x19\xD8\x19\x45\x66\x27\x02"
  9188. "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D"
  9189. "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1"
  9190. "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7"
  9191. "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53"
  9192. "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3"
  9193. "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8"
  9194. "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A"
  9195. "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E"
  9196. "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37"
  9197. "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22"
  9198. "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9"
  9199. "\x91\x51\x4E\x71\xF2\x98\x85\x16"
  9200. "\x25\x7A\x76\x8A\x51\x0E\x65\x14"
  9201. "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A"
  9202. "\xE1\xCF\x41\x72\x14\x29\x4C\xF0"
  9203. "\x20\xD9\x9A\xC5\x66\xA4\x03\x76"
  9204. "\x5B\xA4\x15\x4F\x0E\x64\x39\x40"
  9205. "\x25\xF9\x20\x22\xF5\x88\xF5\xBA"
  9206. "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24"
  9207. "\x4B\x92\x71\xD9\x2F\x77\xA7\x95"
  9208. "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB"
  9209. "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0"
  9210. "\x16\x4C\x18\x6B\xF2\x69\xA0\x07"
  9211. "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E",
  9212. .ilen = 504,
  9213. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  9214. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  9215. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  9216. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  9217. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  9218. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  9219. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  9220. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  9221. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  9222. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  9223. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  9224. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  9225. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  9226. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  9227. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  9228. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  9229. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  9230. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  9231. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  9232. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  9233. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  9234. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  9235. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  9236. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  9237. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  9238. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  9239. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  9240. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  9241. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  9242. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  9243. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  9244. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  9245. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  9246. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  9247. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  9248. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  9249. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  9250. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  9251. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  9252. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  9253. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  9254. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  9255. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  9256. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  9257. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  9258. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  9259. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  9260. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  9261. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  9262. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  9263. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  9264. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  9265. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  9266. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  9267. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  9268. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  9269. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  9270. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  9271. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  9272. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  9273. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  9274. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  9275. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
  9276. .rlen = 504,
  9277. },
  9278. };
  9279. /*
  9280. * Twofish test vectors.
  9281. */
  9282. #define TF_ENC_TEST_VECTORS 4
  9283. #define TF_DEC_TEST_VECTORS 4
  9284. #define TF_CBC_ENC_TEST_VECTORS 5
  9285. #define TF_CBC_DEC_TEST_VECTORS 5
  9286. #define TF_CTR_ENC_TEST_VECTORS 2
  9287. #define TF_CTR_DEC_TEST_VECTORS 2
  9288. #define TF_LRW_ENC_TEST_VECTORS 8
  9289. #define TF_LRW_DEC_TEST_VECTORS 8
  9290. #define TF_XTS_ENC_TEST_VECTORS 5
  9291. #define TF_XTS_DEC_TEST_VECTORS 5
  9292. static struct cipher_testvec tf_enc_tv_template[] = {
  9293. {
  9294. .key = zeroed_string,
  9295. .klen = 16,
  9296. .input = zeroed_string,
  9297. .ilen = 16,
  9298. .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  9299. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  9300. .rlen = 16,
  9301. }, {
  9302. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  9303. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  9304. "\x00\x11\x22\x33\x44\x55\x66\x77",
  9305. .klen = 24,
  9306. .input = zeroed_string,
  9307. .ilen = 16,
  9308. .result = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
  9309. "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
  9310. .rlen = 16,
  9311. }, {
  9312. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  9313. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  9314. "\x00\x11\x22\x33\x44\x55\x66\x77"
  9315. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  9316. .klen = 32,
  9317. .input = zeroed_string,
  9318. .ilen = 16,
  9319. .result = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
  9320. "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
  9321. .rlen = 16,
  9322. }, { /* Generated with Crypto++ */
  9323. .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
  9324. "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
  9325. "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
  9326. "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
  9327. .klen = 32,
  9328. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  9329. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  9330. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  9331. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  9332. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  9333. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  9334. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  9335. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  9336. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  9337. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  9338. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  9339. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  9340. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  9341. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  9342. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  9343. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  9344. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  9345. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  9346. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  9347. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  9348. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  9349. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  9350. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  9351. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  9352. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  9353. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  9354. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  9355. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  9356. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  9357. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  9358. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  9359. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  9360. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  9361. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  9362. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  9363. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  9364. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  9365. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  9366. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  9367. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  9368. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  9369. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  9370. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  9371. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  9372. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  9373. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  9374. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  9375. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  9376. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  9377. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  9378. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  9379. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  9380. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  9381. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  9382. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  9383. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  9384. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  9385. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  9386. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  9387. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  9388. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  9389. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  9390. .ilen = 496,
  9391. .result = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF"
  9392. "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC"
  9393. "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D"
  9394. "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14"
  9395. "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5"
  9396. "\xDF\xFA\xC7\xE8\x09\x50\x76\x08"
  9397. "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05"
  9398. "\x89\xF6\x82\xF0\xD3\xDB\x06\x02"
  9399. "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43"
  9400. "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40"
  9401. "\x80\x27\x88\xBA\x2C\x74\x42\xE0"
  9402. "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A"
  9403. "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A"
  9404. "\x91\x75\x47\xBC\x67\x21\x4E\xF9"
  9405. "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C"
  9406. "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22"
  9407. "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C"
  9408. "\xC6\x24\x42\xB8\x23\x66\x80\xA9"
  9409. "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63"
  9410. "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3"
  9411. "\x33\x62\x70\xE2\x1B\x86\x7A\xA1"
  9412. "\x51\x4A\x16\xFE\x29\x63\x7E\xD0"
  9413. "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8"
  9414. "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66"
  9415. "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B"
  9416. "\xB6\x41\x42\x64\x43\xEE\x6E\x7C"
  9417. "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F"
  9418. "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97"
  9419. "\x66\xA3\x96\x0F\x1C\x25\x60\xF5"
  9420. "\x3C\x2E\x32\x69\x0E\x82\xFF\x27"
  9421. "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C"
  9422. "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A"
  9423. "\x1B\x42\x1F\x5B\x29\x19\x96\x13"
  9424. "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B"
  9425. "\x81\x77\x6D\xF4\xA0\x01\x42\xEC"
  9426. "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB"
  9427. "\x83\x54\xDF\x0F\x86\xB7\xEA\x40"
  9428. "\x46\x39\xF7\x2A\x89\x8D\x4E\x96"
  9429. "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D"
  9430. "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16"
  9431. "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D"
  9432. "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41"
  9433. "\xC6\xBD\x36\xEF\xED\x29\x50\x6D"
  9434. "\x10\xEF\x26\xE8\xA8\x93\x11\x3F"
  9435. "\x2D\x1F\x88\x20\x77\x45\xF5\x66"
  9436. "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81"
  9437. "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C"
  9438. "\xB2\x10\x7A\xCA\x05\x25\x59\xDB"
  9439. "\xC7\x28\xF5\x20\x35\x52\x9E\x62"
  9440. "\xF8\x88\x24\x1C\x4D\x84\x12\x39"
  9441. "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC"
  9442. "\x87\x66\xE6\xC0\x6B\x31\x9A\x66"
  9443. "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F"
  9444. "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD"
  9445. "\xA3\x63\xE2\x71\x4F\x03\x94\x87"
  9446. "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F"
  9447. "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D"
  9448. "\x84\x9B\x2A\xE9\x55\xDD\x46\x91"
  9449. "\x15\x33\xF3\x2B\x9B\x46\x97\x00"
  9450. "\xF0\x29\xD8\x59\x5D\x33\x37\xF9"
  9451. "\x58\x33\x9B\x78\xC7\x58\x48\x6B"
  9452. "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5",
  9453. .rlen = 496,
  9454. .also_non_np = 1,
  9455. .np = 3,
  9456. .tap = { 496 - 20, 4, 16 },
  9457. },
  9458. };
  9459. static struct cipher_testvec tf_dec_tv_template[] = {
  9460. {
  9461. .key = zeroed_string,
  9462. .klen = 16,
  9463. .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  9464. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  9465. .ilen = 16,
  9466. .result = zeroed_string,
  9467. .rlen = 16,
  9468. }, {
  9469. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  9470. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  9471. "\x00\x11\x22\x33\x44\x55\x66\x77",
  9472. .klen = 24,
  9473. .input = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
  9474. "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
  9475. .ilen = 16,
  9476. .result = zeroed_string,
  9477. .rlen = 16,
  9478. }, {
  9479. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  9480. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  9481. "\x00\x11\x22\x33\x44\x55\x66\x77"
  9482. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  9483. .klen = 32,
  9484. .input = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
  9485. "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
  9486. .ilen = 16,
  9487. .result = zeroed_string,
  9488. .rlen = 16,
  9489. }, { /* Generated with Crypto++ */
  9490. .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
  9491. "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
  9492. "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
  9493. "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
  9494. .klen = 32,
  9495. .input = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF"
  9496. "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC"
  9497. "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D"
  9498. "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14"
  9499. "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5"
  9500. "\xDF\xFA\xC7\xE8\x09\x50\x76\x08"
  9501. "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05"
  9502. "\x89\xF6\x82\xF0\xD3\xDB\x06\x02"
  9503. "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43"
  9504. "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40"
  9505. "\x80\x27\x88\xBA\x2C\x74\x42\xE0"
  9506. "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A"
  9507. "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A"
  9508. "\x91\x75\x47\xBC\x67\x21\x4E\xF9"
  9509. "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C"
  9510. "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22"
  9511. "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C"
  9512. "\xC6\x24\x42\xB8\x23\x66\x80\xA9"
  9513. "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63"
  9514. "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3"
  9515. "\x33\x62\x70\xE2\x1B\x86\x7A\xA1"
  9516. "\x51\x4A\x16\xFE\x29\x63\x7E\xD0"
  9517. "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8"
  9518. "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66"
  9519. "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B"
  9520. "\xB6\x41\x42\x64\x43\xEE\x6E\x7C"
  9521. "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F"
  9522. "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97"
  9523. "\x66\xA3\x96\x0F\x1C\x25\x60\xF5"
  9524. "\x3C\x2E\x32\x69\x0E\x82\xFF\x27"
  9525. "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C"
  9526. "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A"
  9527. "\x1B\x42\x1F\x5B\x29\x19\x96\x13"
  9528. "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B"
  9529. "\x81\x77\x6D\xF4\xA0\x01\x42\xEC"
  9530. "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB"
  9531. "\x83\x54\xDF\x0F\x86\xB7\xEA\x40"
  9532. "\x46\x39\xF7\x2A\x89\x8D\x4E\x96"
  9533. "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D"
  9534. "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16"
  9535. "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D"
  9536. "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41"
  9537. "\xC6\xBD\x36\xEF\xED\x29\x50\x6D"
  9538. "\x10\xEF\x26\xE8\xA8\x93\x11\x3F"
  9539. "\x2D\x1F\x88\x20\x77\x45\xF5\x66"
  9540. "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81"
  9541. "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C"
  9542. "\xB2\x10\x7A\xCA\x05\x25\x59\xDB"
  9543. "\xC7\x28\xF5\x20\x35\x52\x9E\x62"
  9544. "\xF8\x88\x24\x1C\x4D\x84\x12\x39"
  9545. "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC"
  9546. "\x87\x66\xE6\xC0\x6B\x31\x9A\x66"
  9547. "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F"
  9548. "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD"
  9549. "\xA3\x63\xE2\x71\x4F\x03\x94\x87"
  9550. "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F"
  9551. "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D"
  9552. "\x84\x9B\x2A\xE9\x55\xDD\x46\x91"
  9553. "\x15\x33\xF3\x2B\x9B\x46\x97\x00"
  9554. "\xF0\x29\xD8\x59\x5D\x33\x37\xF9"
  9555. "\x58\x33\x9B\x78\xC7\x58\x48\x6B"
  9556. "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5",
  9557. .ilen = 496,
  9558. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  9559. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  9560. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  9561. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  9562. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  9563. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  9564. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  9565. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  9566. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  9567. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  9568. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  9569. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  9570. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  9571. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  9572. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  9573. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  9574. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  9575. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  9576. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  9577. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  9578. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  9579. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  9580. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  9581. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  9582. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  9583. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  9584. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  9585. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  9586. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  9587. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  9588. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  9589. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  9590. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  9591. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  9592. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  9593. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  9594. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  9595. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  9596. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  9597. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  9598. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  9599. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  9600. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  9601. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  9602. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  9603. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  9604. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  9605. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  9606. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  9607. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  9608. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  9609. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  9610. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  9611. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  9612. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  9613. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  9614. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  9615. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  9616. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  9617. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  9618. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  9619. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  9620. .rlen = 496,
  9621. .also_non_np = 1,
  9622. .np = 3,
  9623. .tap = { 496 - 20, 4, 16 },
  9624. },
  9625. };
  9626. static struct cipher_testvec tf_cbc_enc_tv_template[] = {
  9627. { /* Generated with Nettle */
  9628. .key = zeroed_string,
  9629. .klen = 16,
  9630. .iv = zeroed_string,
  9631. .input = zeroed_string,
  9632. .ilen = 16,
  9633. .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  9634. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  9635. .rlen = 16,
  9636. }, {
  9637. .key = zeroed_string,
  9638. .klen = 16,
  9639. .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  9640. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  9641. .input = zeroed_string,
  9642. .ilen = 16,
  9643. .result = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  9644. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  9645. .rlen = 16,
  9646. }, {
  9647. .key = zeroed_string,
  9648. .klen = 16,
  9649. .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  9650. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  9651. .input = zeroed_string,
  9652. .ilen = 16,
  9653. .result = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  9654. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  9655. .rlen = 16,
  9656. }, {
  9657. .key = zeroed_string,
  9658. .klen = 16,
  9659. .iv = zeroed_string,
  9660. .input = zeroed_string,
  9661. .ilen = 48,
  9662. .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  9663. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
  9664. "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  9665. "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
  9666. "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  9667. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  9668. .rlen = 48,
  9669. }, { /* Generated with Crypto++ */
  9670. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  9671. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  9672. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  9673. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  9674. .klen = 32,
  9675. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  9676. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  9677. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  9678. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  9679. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  9680. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  9681. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  9682. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  9683. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  9684. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  9685. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  9686. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  9687. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  9688. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  9689. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  9690. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  9691. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  9692. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  9693. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  9694. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  9695. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  9696. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  9697. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  9698. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  9699. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  9700. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  9701. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  9702. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  9703. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  9704. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  9705. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  9706. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  9707. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  9708. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  9709. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  9710. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  9711. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  9712. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  9713. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  9714. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  9715. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  9716. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  9717. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  9718. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  9719. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  9720. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  9721. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  9722. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  9723. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  9724. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  9725. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  9726. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  9727. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  9728. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  9729. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  9730. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  9731. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  9732. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  9733. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  9734. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  9735. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  9736. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  9737. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  9738. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  9739. .ilen = 496,
  9740. .result = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1"
  9741. "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5"
  9742. "\x26\x1B\x05\x0C\x05\x12\x3F\xC0"
  9743. "\xF9\x1C\x02\x28\x40\x96\x6F\xD0"
  9744. "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE"
  9745. "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC"
  9746. "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3"
  9747. "\xB1\xD3\x44\x65\xDF\xE7\x63\x38"
  9748. "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8"
  9749. "\x43\xFC\xFE\x18\xB5\x11\x6D\x31"
  9750. "\x81\x8B\x0D\x75\xF6\x80\xEC\x84"
  9751. "\x04\xB9\xE6\x09\x63\xED\x39\xDB"
  9752. "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD"
  9753. "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63"
  9754. "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80"
  9755. "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68"
  9756. "\x45\xDD\xC8\x83\x1D\x41\x96\x0D"
  9757. "\x91\x2E\x05\xD3\x59\x82\xE0\x43"
  9758. "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF"
  9759. "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C"
  9760. "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3"
  9761. "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC"
  9762. "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF"
  9763. "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38"
  9764. "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34"
  9765. "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60"
  9766. "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7"
  9767. "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8"
  9768. "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25"
  9769. "\x94\x70\x74\x0E\x1D\xC5\xBC\x12"
  9770. "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55"
  9771. "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3"
  9772. "\x75\x42\x62\x04\x31\x1F\x95\x7C"
  9773. "\x66\x1A\x97\xDC\x2F\x40\x5C\x39"
  9774. "\x78\xE6\x02\xDB\x49\xE1\xC6\x47"
  9775. "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93"
  9776. "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7"
  9777. "\xC2\x89\xF3\x91\x88\x83\x3D\xF0"
  9778. "\x29\xA2\xCD\xB5\x79\x16\xC2\x40"
  9779. "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4"
  9780. "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B"
  9781. "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF"
  9782. "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA"
  9783. "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C"
  9784. "\x78\xB6\xC9\xBF\xF9\x78\x57\x88"
  9785. "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8"
  9786. "\xEE\xC4\xBE\x7B\x55\x59\x00\x48"
  9787. "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C"
  9788. "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE"
  9789. "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D"
  9790. "\xBC\x68\x9C\x91\x2A\x59\x57\x04"
  9791. "\xED\x1A\x1E\x00\xB1\x85\x92\x04"
  9792. "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7"
  9793. "\x4C\x3E\xB0\xE7\x86\x62\x68\x91"
  9794. "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93"
  9795. "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64"
  9796. "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD"
  9797. "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1"
  9798. "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39"
  9799. "\x69\xA1\x62\xBD\x49\x3A\x9D\x91"
  9800. "\x30\x70\x56\xA4\x37\xDD\x7C\xC0"
  9801. "\x0A\xA3\x30\x10\x26\x25\x41\x2C",
  9802. .rlen = 496,
  9803. .also_non_np = 1,
  9804. .np = 3,
  9805. .tap = { 496 - 20, 4, 16 },
  9806. },
  9807. };
  9808. static struct cipher_testvec tf_cbc_dec_tv_template[] = {
  9809. { /* Reverse of the first four above */
  9810. .key = zeroed_string,
  9811. .klen = 16,
  9812. .iv = zeroed_string,
  9813. .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  9814. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  9815. .ilen = 16,
  9816. .result = zeroed_string,
  9817. .rlen = 16,
  9818. }, {
  9819. .key = zeroed_string,
  9820. .klen = 16,
  9821. .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  9822. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
  9823. .input = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  9824. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  9825. .ilen = 16,
  9826. .result = zeroed_string,
  9827. .rlen = 16,
  9828. }, {
  9829. .key = zeroed_string,
  9830. .klen = 16,
  9831. .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  9832. "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
  9833. .input = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  9834. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  9835. .ilen = 16,
  9836. .result = zeroed_string,
  9837. .rlen = 16,
  9838. }, {
  9839. .key = zeroed_string,
  9840. .klen = 16,
  9841. .iv = zeroed_string,
  9842. .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
  9843. "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
  9844. "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
  9845. "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
  9846. "\x05\xef\x8c\x61\xa8\x11\x58\x26"
  9847. "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
  9848. .ilen = 48,
  9849. .result = zeroed_string,
  9850. .rlen = 48,
  9851. }, { /* Generated with Crypto++ */
  9852. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  9853. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  9854. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  9855. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  9856. .klen = 32,
  9857. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  9858. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  9859. .input = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1"
  9860. "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5"
  9861. "\x26\x1B\x05\x0C\x05\x12\x3F\xC0"
  9862. "\xF9\x1C\x02\x28\x40\x96\x6F\xD0"
  9863. "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE"
  9864. "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC"
  9865. "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3"
  9866. "\xB1\xD3\x44\x65\xDF\xE7\x63\x38"
  9867. "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8"
  9868. "\x43\xFC\xFE\x18\xB5\x11\x6D\x31"
  9869. "\x81\x8B\x0D\x75\xF6\x80\xEC\x84"
  9870. "\x04\xB9\xE6\x09\x63\xED\x39\xDB"
  9871. "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD"
  9872. "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63"
  9873. "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80"
  9874. "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68"
  9875. "\x45\xDD\xC8\x83\x1D\x41\x96\x0D"
  9876. "\x91\x2E\x05\xD3\x59\x82\xE0\x43"
  9877. "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF"
  9878. "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C"
  9879. "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3"
  9880. "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC"
  9881. "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF"
  9882. "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38"
  9883. "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34"
  9884. "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60"
  9885. "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7"
  9886. "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8"
  9887. "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25"
  9888. "\x94\x70\x74\x0E\x1D\xC5\xBC\x12"
  9889. "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55"
  9890. "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3"
  9891. "\x75\x42\x62\x04\x31\x1F\x95\x7C"
  9892. "\x66\x1A\x97\xDC\x2F\x40\x5C\x39"
  9893. "\x78\xE6\x02\xDB\x49\xE1\xC6\x47"
  9894. "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93"
  9895. "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7"
  9896. "\xC2\x89\xF3\x91\x88\x83\x3D\xF0"
  9897. "\x29\xA2\xCD\xB5\x79\x16\xC2\x40"
  9898. "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4"
  9899. "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B"
  9900. "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF"
  9901. "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA"
  9902. "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C"
  9903. "\x78\xB6\xC9\xBF\xF9\x78\x57\x88"
  9904. "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8"
  9905. "\xEE\xC4\xBE\x7B\x55\x59\x00\x48"
  9906. "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C"
  9907. "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE"
  9908. "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D"
  9909. "\xBC\x68\x9C\x91\x2A\x59\x57\x04"
  9910. "\xED\x1A\x1E\x00\xB1\x85\x92\x04"
  9911. "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7"
  9912. "\x4C\x3E\xB0\xE7\x86\x62\x68\x91"
  9913. "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93"
  9914. "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64"
  9915. "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD"
  9916. "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1"
  9917. "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39"
  9918. "\x69\xA1\x62\xBD\x49\x3A\x9D\x91"
  9919. "\x30\x70\x56\xA4\x37\xDD\x7C\xC0"
  9920. "\x0A\xA3\x30\x10\x26\x25\x41\x2C",
  9921. .ilen = 496,
  9922. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  9923. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  9924. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  9925. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  9926. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  9927. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  9928. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  9929. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  9930. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  9931. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  9932. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  9933. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  9934. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  9935. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  9936. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  9937. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  9938. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  9939. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  9940. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  9941. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  9942. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  9943. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  9944. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  9945. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  9946. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  9947. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  9948. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  9949. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  9950. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  9951. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  9952. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  9953. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  9954. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  9955. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  9956. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  9957. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  9958. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  9959. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  9960. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  9961. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  9962. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  9963. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  9964. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  9965. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  9966. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  9967. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  9968. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  9969. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  9970. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  9971. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  9972. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  9973. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  9974. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  9975. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  9976. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  9977. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  9978. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  9979. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  9980. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  9981. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  9982. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  9983. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  9984. .rlen = 496,
  9985. .also_non_np = 1,
  9986. .np = 3,
  9987. .tap = { 496 - 20, 4, 16 },
  9988. },
  9989. };
  9990. static struct cipher_testvec tf_ctr_enc_tv_template[] = {
  9991. { /* Generated with Crypto++ */
  9992. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  9993. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  9994. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  9995. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  9996. .klen = 32,
  9997. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  9998. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  9999. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  10000. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  10001. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  10002. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  10003. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  10004. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  10005. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  10006. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  10007. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  10008. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  10009. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  10010. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  10011. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  10012. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  10013. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  10014. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  10015. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  10016. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  10017. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  10018. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  10019. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  10020. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  10021. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  10022. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  10023. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  10024. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  10025. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  10026. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  10027. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  10028. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  10029. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  10030. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  10031. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  10032. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  10033. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  10034. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  10035. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  10036. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  10037. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  10038. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  10039. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  10040. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  10041. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  10042. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  10043. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  10044. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  10045. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  10046. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  10047. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  10048. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  10049. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  10050. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  10051. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  10052. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  10053. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  10054. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  10055. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  10056. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  10057. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  10058. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  10059. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  10060. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  10061. .ilen = 496,
  10062. .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
  10063. "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
  10064. "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
  10065. "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
  10066. "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
  10067. "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
  10068. "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
  10069. "\x01\x41\x21\x12\x38\xAB\x52\x4F"
  10070. "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
  10071. "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
  10072. "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
  10073. "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
  10074. "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
  10075. "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
  10076. "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
  10077. "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
  10078. "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
  10079. "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
  10080. "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
  10081. "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
  10082. "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
  10083. "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
  10084. "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
  10085. "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
  10086. "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
  10087. "\x23\x61\x48\xEA\x80\x04\x27\xAA"
  10088. "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
  10089. "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
  10090. "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
  10091. "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
  10092. "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
  10093. "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
  10094. "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
  10095. "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
  10096. "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
  10097. "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
  10098. "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
  10099. "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
  10100. "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
  10101. "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
  10102. "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
  10103. "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
  10104. "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
  10105. "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
  10106. "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
  10107. "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
  10108. "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
  10109. "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
  10110. "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
  10111. "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
  10112. "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
  10113. "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
  10114. "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
  10115. "\x11\xE9\x43\x83\x76\xAA\x53\x37"
  10116. "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
  10117. "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
  10118. "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
  10119. "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
  10120. "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
  10121. "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
  10122. "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
  10123. "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF",
  10124. .rlen = 496,
  10125. }, { /* Generated with Crypto++ */
  10126. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  10127. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  10128. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  10129. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  10130. .klen = 32,
  10131. .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
  10132. "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
  10133. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  10134. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  10135. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  10136. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  10137. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  10138. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  10139. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  10140. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  10141. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  10142. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  10143. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  10144. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  10145. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  10146. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  10147. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  10148. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  10149. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  10150. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  10151. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  10152. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  10153. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  10154. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  10155. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  10156. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  10157. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  10158. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  10159. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  10160. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  10161. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  10162. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  10163. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  10164. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  10165. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  10166. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  10167. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  10168. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  10169. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  10170. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  10171. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  10172. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  10173. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  10174. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  10175. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  10176. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  10177. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  10178. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  10179. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  10180. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  10181. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  10182. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  10183. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  10184. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  10185. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  10186. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  10187. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  10188. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  10189. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  10190. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  10191. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  10192. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  10193. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  10194. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  10195. .ilen = 496,
  10196. .result = "\xEB\x44\xAF\x49\x27\xB8\xFB\x44"
  10197. "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C"
  10198. "\x53\xC8\x16\x38\xDE\x40\x4F\x91"
  10199. "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA"
  10200. "\x88\x7E\x89\xE9\x67\x2B\x83\xA2"
  10201. "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B"
  10202. "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3"
  10203. "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33"
  10204. "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E"
  10205. "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0"
  10206. "\x64\x89\x9F\x6A\x27\x96\x07\xA6"
  10207. "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01"
  10208. "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34"
  10209. "\x39\x18\x09\xA4\x82\x59\x78\xE7"
  10210. "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2"
  10211. "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3"
  10212. "\xE6\x87\x31\x9E\x16\x85\xAD\xB1"
  10213. "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E"
  10214. "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3"
  10215. "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF"
  10216. "\x89\x16\x4D\x2D\xA2\x26\x33\x72"
  10217. "\x18\x33\x7E\xD6\xD2\x16\xA4\x54"
  10218. "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB"
  10219. "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2"
  10220. "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19"
  10221. "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E"
  10222. "\xAC\x00\xE3\x50\x63\x4A\x80\x9A"
  10223. "\x05\xBC\x50\x39\xD3\x32\xD9\x0D"
  10224. "\xE3\x20\x0D\x75\x54\xEC\xE6\x31"
  10225. "\x14\xB9\x3A\x59\x00\x43\x37\x8E"
  10226. "\x8C\x5A\x79\x62\x14\x76\x8A\xAE"
  10227. "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D"
  10228. "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60"
  10229. "\xC9\x87\xB1\x79\x1E\xA5\x86\x68"
  10230. "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73"
  10231. "\xD0\xDA\x75\x77\x9E\x05\x27\xF1"
  10232. "\x08\xA9\x66\x64\x6C\xBC\x82\x17"
  10233. "\x2C\x23\x5F\x62\x4D\x02\x1A\x58"
  10234. "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF"
  10235. "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83"
  10236. "\x95\x87\x13\x57\x60\xD7\xB5\xB1"
  10237. "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D"
  10238. "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF"
  10239. "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A"
  10240. "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8"
  10241. "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0"
  10242. "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC"
  10243. "\xDE\x55\x1B\x50\x14\x53\x44\x17"
  10244. "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A"
  10245. "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B"
  10246. "\x1A\x09\x97\xA9\xB6\x97\x79\x06"
  10247. "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1"
  10248. "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5"
  10249. "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D"
  10250. "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23"
  10251. "\x41\x67\xA1\x24\x99\x7E\xCC\x9B"
  10252. "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A"
  10253. "\xF4\x78\xFD\x79\x62\x63\x4F\x14"
  10254. "\xD6\x11\x11\x04\x05\x5F\x7E\xEA"
  10255. "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54"
  10256. "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B"
  10257. "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D",
  10258. .rlen = 496,
  10259. }, { /* Generated with Crypto++ */
  10260. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  10261. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  10262. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  10263. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  10264. .klen = 32,
  10265. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  10266. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  10267. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  10268. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  10269. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  10270. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  10271. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  10272. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  10273. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  10274. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  10275. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  10276. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  10277. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  10278. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  10279. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  10280. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  10281. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  10282. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  10283. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  10284. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  10285. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  10286. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  10287. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  10288. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  10289. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  10290. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  10291. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  10292. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  10293. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  10294. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  10295. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  10296. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  10297. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  10298. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  10299. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  10300. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  10301. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  10302. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  10303. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  10304. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  10305. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  10306. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  10307. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  10308. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  10309. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  10310. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  10311. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  10312. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  10313. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  10314. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  10315. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  10316. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  10317. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  10318. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  10319. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  10320. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  10321. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  10322. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  10323. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  10324. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  10325. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  10326. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  10327. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  10328. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  10329. "\x2B\xC2\x59",
  10330. .ilen = 499,
  10331. .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
  10332. "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
  10333. "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
  10334. "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
  10335. "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
  10336. "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
  10337. "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
  10338. "\x01\x41\x21\x12\x38\xAB\x52\x4F"
  10339. "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
  10340. "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
  10341. "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
  10342. "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
  10343. "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
  10344. "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
  10345. "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
  10346. "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
  10347. "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
  10348. "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
  10349. "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
  10350. "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
  10351. "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
  10352. "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
  10353. "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
  10354. "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
  10355. "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
  10356. "\x23\x61\x48\xEA\x80\x04\x27\xAA"
  10357. "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
  10358. "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
  10359. "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
  10360. "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
  10361. "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
  10362. "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
  10363. "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
  10364. "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
  10365. "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
  10366. "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
  10367. "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
  10368. "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
  10369. "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
  10370. "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
  10371. "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
  10372. "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
  10373. "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
  10374. "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
  10375. "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
  10376. "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
  10377. "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
  10378. "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
  10379. "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
  10380. "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
  10381. "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
  10382. "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
  10383. "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
  10384. "\x11\xE9\x43\x83\x76\xAA\x53\x37"
  10385. "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
  10386. "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
  10387. "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
  10388. "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
  10389. "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
  10390. "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
  10391. "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
  10392. "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF"
  10393. "\x6C\x82\x9D",
  10394. .rlen = 499,
  10395. .also_non_np = 1,
  10396. .np = 2,
  10397. .tap = { 499 - 16, 16 },
  10398. },
  10399. };
  10400. static struct cipher_testvec tf_ctr_dec_tv_template[] = {
  10401. { /* Generated with Crypto++ */
  10402. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  10403. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  10404. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  10405. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  10406. .klen = 32,
  10407. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  10408. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  10409. .input = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
  10410. "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
  10411. "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
  10412. "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
  10413. "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
  10414. "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
  10415. "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
  10416. "\x01\x41\x21\x12\x38\xAB\x52\x4F"
  10417. "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
  10418. "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
  10419. "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
  10420. "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
  10421. "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
  10422. "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
  10423. "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
  10424. "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
  10425. "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
  10426. "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
  10427. "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
  10428. "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
  10429. "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
  10430. "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
  10431. "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
  10432. "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
  10433. "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
  10434. "\x23\x61\x48\xEA\x80\x04\x27\xAA"
  10435. "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
  10436. "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
  10437. "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
  10438. "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
  10439. "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
  10440. "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
  10441. "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
  10442. "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
  10443. "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
  10444. "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
  10445. "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
  10446. "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
  10447. "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
  10448. "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
  10449. "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
  10450. "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
  10451. "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
  10452. "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
  10453. "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
  10454. "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
  10455. "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
  10456. "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
  10457. "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
  10458. "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
  10459. "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
  10460. "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
  10461. "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
  10462. "\x11\xE9\x43\x83\x76\xAA\x53\x37"
  10463. "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
  10464. "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
  10465. "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
  10466. "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
  10467. "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
  10468. "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
  10469. "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
  10470. "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF",
  10471. .ilen = 496,
  10472. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  10473. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  10474. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  10475. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  10476. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  10477. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  10478. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  10479. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  10480. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  10481. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  10482. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  10483. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  10484. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  10485. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  10486. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  10487. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  10488. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  10489. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  10490. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  10491. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  10492. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  10493. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  10494. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  10495. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  10496. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  10497. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  10498. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  10499. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  10500. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  10501. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  10502. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  10503. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  10504. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  10505. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  10506. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  10507. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  10508. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  10509. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  10510. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  10511. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  10512. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  10513. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  10514. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  10515. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  10516. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  10517. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  10518. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  10519. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  10520. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  10521. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  10522. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  10523. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  10524. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  10525. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  10526. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  10527. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  10528. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  10529. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  10530. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  10531. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  10532. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  10533. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  10534. .rlen = 496,
  10535. }, { /* Generated with Crypto++ */
  10536. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  10537. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  10538. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  10539. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  10540. .klen = 32,
  10541. .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
  10542. "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
  10543. .input = "\xEB\x44\xAF\x49\x27\xB8\xFB\x44"
  10544. "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C"
  10545. "\x53\xC8\x16\x38\xDE\x40\x4F\x91"
  10546. "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA"
  10547. "\x88\x7E\x89\xE9\x67\x2B\x83\xA2"
  10548. "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B"
  10549. "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3"
  10550. "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33"
  10551. "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E"
  10552. "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0"
  10553. "\x64\x89\x9F\x6A\x27\x96\x07\xA6"
  10554. "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01"
  10555. "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34"
  10556. "\x39\x18\x09\xA4\x82\x59\x78\xE7"
  10557. "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2"
  10558. "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3"
  10559. "\xE6\x87\x31\x9E\x16\x85\xAD\xB1"
  10560. "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E"
  10561. "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3"
  10562. "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF"
  10563. "\x89\x16\x4D\x2D\xA2\x26\x33\x72"
  10564. "\x18\x33\x7E\xD6\xD2\x16\xA4\x54"
  10565. "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB"
  10566. "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2"
  10567. "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19"
  10568. "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E"
  10569. "\xAC\x00\xE3\x50\x63\x4A\x80\x9A"
  10570. "\x05\xBC\x50\x39\xD3\x32\xD9\x0D"
  10571. "\xE3\x20\x0D\x75\x54\xEC\xE6\x31"
  10572. "\x14\xB9\x3A\x59\x00\x43\x37\x8E"
  10573. "\x8C\x5A\x79\x62\x14\x76\x8A\xAE"
  10574. "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D"
  10575. "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60"
  10576. "\xC9\x87\xB1\x79\x1E\xA5\x86\x68"
  10577. "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73"
  10578. "\xD0\xDA\x75\x77\x9E\x05\x27\xF1"
  10579. "\x08\xA9\x66\x64\x6C\xBC\x82\x17"
  10580. "\x2C\x23\x5F\x62\x4D\x02\x1A\x58"
  10581. "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF"
  10582. "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83"
  10583. "\x95\x87\x13\x57\x60\xD7\xB5\xB1"
  10584. "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D"
  10585. "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF"
  10586. "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A"
  10587. "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8"
  10588. "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0"
  10589. "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC"
  10590. "\xDE\x55\x1B\x50\x14\x53\x44\x17"
  10591. "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A"
  10592. "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B"
  10593. "\x1A\x09\x97\xA9\xB6\x97\x79\x06"
  10594. "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1"
  10595. "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5"
  10596. "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D"
  10597. "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23"
  10598. "\x41\x67\xA1\x24\x99\x7E\xCC\x9B"
  10599. "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A"
  10600. "\xF4\x78\xFD\x79\x62\x63\x4F\x14"
  10601. "\xD6\x11\x11\x04\x05\x5F\x7E\xEA"
  10602. "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54"
  10603. "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B"
  10604. "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D",
  10605. .ilen = 496,
  10606. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  10607. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  10608. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  10609. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  10610. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  10611. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  10612. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  10613. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  10614. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  10615. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  10616. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  10617. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  10618. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  10619. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  10620. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  10621. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  10622. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  10623. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  10624. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  10625. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  10626. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  10627. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  10628. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  10629. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  10630. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  10631. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  10632. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  10633. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  10634. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  10635. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  10636. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  10637. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  10638. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  10639. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  10640. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  10641. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  10642. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  10643. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  10644. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  10645. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  10646. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  10647. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  10648. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  10649. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  10650. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  10651. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  10652. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  10653. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  10654. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  10655. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  10656. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  10657. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  10658. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  10659. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  10660. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  10661. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  10662. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  10663. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  10664. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  10665. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  10666. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  10667. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  10668. .rlen = 496,
  10669. }, { /* Generated with Crypto++ */
  10670. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  10671. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  10672. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  10673. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  10674. .klen = 32,
  10675. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  10676. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  10677. .input = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
  10678. "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
  10679. "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
  10680. "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
  10681. "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
  10682. "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
  10683. "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
  10684. "\x01\x41\x21\x12\x38\xAB\x52\x4F"
  10685. "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
  10686. "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
  10687. "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
  10688. "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
  10689. "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
  10690. "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
  10691. "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
  10692. "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
  10693. "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
  10694. "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
  10695. "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
  10696. "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
  10697. "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
  10698. "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
  10699. "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
  10700. "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
  10701. "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
  10702. "\x23\x61\x48\xEA\x80\x04\x27\xAA"
  10703. "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
  10704. "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
  10705. "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
  10706. "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
  10707. "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
  10708. "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
  10709. "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
  10710. "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
  10711. "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
  10712. "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
  10713. "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
  10714. "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
  10715. "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
  10716. "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
  10717. "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
  10718. "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
  10719. "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
  10720. "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
  10721. "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
  10722. "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
  10723. "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
  10724. "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
  10725. "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
  10726. "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
  10727. "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
  10728. "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
  10729. "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
  10730. "\x11\xE9\x43\x83\x76\xAA\x53\x37"
  10731. "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
  10732. "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
  10733. "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
  10734. "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
  10735. "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
  10736. "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
  10737. "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
  10738. "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF"
  10739. "\x6C\x82\x9D",
  10740. .ilen = 499,
  10741. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  10742. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  10743. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  10744. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  10745. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  10746. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  10747. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  10748. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  10749. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  10750. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  10751. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  10752. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  10753. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  10754. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  10755. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  10756. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  10757. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  10758. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  10759. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  10760. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  10761. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  10762. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  10763. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  10764. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  10765. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  10766. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  10767. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  10768. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  10769. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  10770. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  10771. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  10772. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  10773. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  10774. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  10775. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  10776. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  10777. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  10778. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  10779. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  10780. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  10781. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  10782. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  10783. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  10784. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  10785. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  10786. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  10787. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  10788. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  10789. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  10790. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  10791. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  10792. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  10793. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  10794. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  10795. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  10796. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  10797. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  10798. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  10799. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  10800. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  10801. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  10802. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  10803. "\x2B\xC2\x59",
  10804. .rlen = 499,
  10805. .also_non_np = 1,
  10806. .np = 2,
  10807. .tap = { 499 - 16, 16 },
  10808. },
  10809. };
  10810. static struct cipher_testvec tf_lrw_enc_tv_template[] = {
  10811. /* Generated from AES-LRW test vectors */
  10812. {
  10813. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  10814. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  10815. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  10816. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  10817. .klen = 32,
  10818. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  10819. "\x00\x00\x00\x00\x00\x00\x00\x01",
  10820. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  10821. "\x38\x39\x41\x42\x43\x44\x45\x46",
  10822. .ilen = 16,
  10823. .result = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b"
  10824. "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee",
  10825. .rlen = 16,
  10826. }, {
  10827. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  10828. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  10829. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  10830. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  10831. .klen = 32,
  10832. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  10833. "\x00\x00\x00\x00\x00\x00\x00\x02",
  10834. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  10835. "\x38\x39\x41\x42\x43\x44\x45\x46",
  10836. .ilen = 16,
  10837. .result = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9"
  10838. "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd",
  10839. .rlen = 16,
  10840. }, {
  10841. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  10842. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  10843. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  10844. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  10845. .klen = 32,
  10846. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  10847. "\x00\x00\x00\x02\x00\x00\x00\x00",
  10848. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  10849. "\x38\x39\x41\x42\x43\x44\x45\x46",
  10850. .ilen = 16,
  10851. .result = "\x85\xa7\x56\x67\x08\xfa\x42\xe1"
  10852. "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4",
  10853. .rlen = 16,
  10854. }, {
  10855. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  10856. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  10857. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  10858. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  10859. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  10860. .klen = 40,
  10861. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  10862. "\x00\x00\x00\x00\x00\x00\x00\x01",
  10863. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  10864. "\x38\x39\x41\x42\x43\x44\x45\x46",
  10865. .ilen = 16,
  10866. .result = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c"
  10867. "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5",
  10868. .rlen = 16,
  10869. }, {
  10870. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  10871. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  10872. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  10873. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  10874. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  10875. .klen = 40,
  10876. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  10877. "\x00\x00\x00\x02\x00\x00\x00\x00",
  10878. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  10879. "\x38\x39\x41\x42\x43\x44\x45\x46",
  10880. .ilen = 16,
  10881. .result = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a"
  10882. "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4",
  10883. .rlen = 16,
  10884. }, {
  10885. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  10886. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  10887. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  10888. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  10889. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  10890. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  10891. .klen = 48,
  10892. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  10893. "\x00\x00\x00\x00\x00\x00\x00\x01",
  10894. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  10895. "\x38\x39\x41\x42\x43\x44\x45\x46",
  10896. .ilen = 16,
  10897. .result = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58"
  10898. "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76",
  10899. .rlen = 16,
  10900. }, {
  10901. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  10902. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  10903. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  10904. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  10905. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  10906. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  10907. .klen = 48,
  10908. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  10909. "\x00\x00\x00\x02\x00\x00\x00\x00",
  10910. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  10911. "\x38\x39\x41\x42\x43\x44\x45\x46",
  10912. .ilen = 16,
  10913. .result = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75"
  10914. "\x17\x66\x5e\x0c\x14\xa1\x3d\x40",
  10915. .rlen = 16,
  10916. }, {
  10917. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  10918. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  10919. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  10920. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  10921. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  10922. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  10923. .klen = 48,
  10924. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  10925. "\x00\x00\x00\x00\x00\x00\x00\x01",
  10926. .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  10927. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  10928. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  10929. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  10930. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  10931. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  10932. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  10933. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  10934. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  10935. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  10936. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  10937. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  10938. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  10939. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  10940. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  10941. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  10942. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  10943. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  10944. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  10945. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  10946. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  10947. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  10948. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  10949. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  10950. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  10951. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  10952. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  10953. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  10954. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  10955. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  10956. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  10957. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  10958. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  10959. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  10960. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  10961. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  10962. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  10963. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  10964. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  10965. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  10966. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  10967. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  10968. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  10969. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  10970. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  10971. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  10972. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  10973. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  10974. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  10975. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  10976. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  10977. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  10978. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  10979. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  10980. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  10981. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  10982. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  10983. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  10984. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  10985. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  10986. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  10987. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  10988. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  10989. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  10990. .ilen = 512,
  10991. .result = "\x30\x38\xeb\xaf\x12\x43\x1a\x89"
  10992. "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9"
  10993. "\x08\xc3\x0d\xdd\x95\xab\x19\x96"
  10994. "\x27\x52\x41\xc3\xca\xfb\xf6\xee"
  10995. "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a"
  10996. "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45"
  10997. "\x42\xe9\x29\xc0\xb4\x07\xb4\x31"
  10998. "\x66\x77\x72\xb5\xb6\xb3\x57\x46"
  10999. "\x34\x9a\xfe\x03\xaf\x6b\x36\x07"
  11000. "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d"
  11001. "\xfb\x6d\x82\x51\xb6\x98\xd0\x71"
  11002. "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d"
  11003. "\x72\x2b\x54\x13\xe3\x6d\x79\x37"
  11004. "\xa9\x39\x2c\xdf\x21\xab\x87\xd5"
  11005. "\xee\xef\x9a\x12\x50\x39\x2e\x1b"
  11006. "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac"
  11007. "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08"
  11008. "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25"
  11009. "\x31\x9d\xef\xb1\x1d\x27\x55\x04"
  11010. "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a"
  11011. "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb"
  11012. "\x26\xbe\x4f\x27\x04\x42\xd1\x44"
  11013. "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf"
  11014. "\x1d\x28\x14\xfd\xb1\x1a\x34\x18"
  11015. "\xf5\x1e\x28\x69\x95\x6a\x5a\xba"
  11016. "\x8e\xb2\x58\x1d\x28\x17\x13\x3d"
  11017. "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8"
  11018. "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b"
  11019. "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a"
  11020. "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a"
  11021. "\x63\xa5\x99\x82\x09\x72\x8f\xc6"
  11022. "\xa4\x62\x24\x69\x8c\x2d\x26\x00"
  11023. "\x99\x83\x91\xd6\xc6\xcf\x57\x67"
  11024. "\x38\xea\xf2\xfc\x29\xe0\x73\x39"
  11025. "\xf9\x13\x94\x6d\xe2\x58\x28\x75"
  11026. "\x3e\xae\x71\x90\x07\x70\x1c\x38"
  11027. "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef"
  11028. "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22"
  11029. "\x82\x09\xe3\x18\x3f\x4f\x48\xfc"
  11030. "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b"
  11031. "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e"
  11032. "\xc3\xac\x4a\xed\xe7\x82\xef\x31"
  11033. "\x1f\x1a\x51\x1e\x29\x60\xc8\x98"
  11034. "\x93\x51\x1d\x3d\x62\x59\x83\x82"
  11035. "\x0c\xf1\xd7\x8d\xac\x33\x44\x81"
  11036. "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4"
  11037. "\xec\xdc\x24\xfd\x0e\x1a\x79\x94"
  11038. "\x34\xb0\x62\xfa\x98\x49\x26\x1f"
  11039. "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe"
  11040. "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc"
  11041. "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c"
  11042. "\xdb\xf6\x21\x80\xf7\x5a\x37\x15"
  11043. "\x0c\xe3\x36\xc8\x74\x75\x20\x91"
  11044. "\xdf\x52\x2d\x0c\xe7\x45\xff\x46"
  11045. "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6"
  11046. "\x26\xa2\x5d\x7d\x61\xbf\x10\x46"
  11047. "\x57\x8d\x05\x96\x70\x0b\xd6\x41"
  11048. "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd"
  11049. "\x5f\x92\x81\x6e\x35\x03\xd4\x72"
  11050. "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23"
  11051. "\x45\x5d\xec\x72\xc1\x52\xef\x2e"
  11052. "\x81\x00\xd3\xfe\x4c\x3c\x05\x61"
  11053. "\x80\x18\xc4\x6c\x03\xd3\xb7\xba"
  11054. "\x11\xd7\xb8\x6e\xea\xe1\x80\x30",
  11055. .rlen = 512,
  11056. .also_non_np = 1,
  11057. .np = 3,
  11058. .tap = { 512 - 20, 4, 16 },
  11059. },
  11060. };
  11061. static struct cipher_testvec tf_lrw_dec_tv_template[] = {
  11062. /* Generated from AES-LRW test vectors */
  11063. /* same as enc vectors with input and result reversed */
  11064. {
  11065. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  11066. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  11067. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  11068. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  11069. .klen = 32,
  11070. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  11071. "\x00\x00\x00\x00\x00\x00\x00\x01",
  11072. .input = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b"
  11073. "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee",
  11074. .ilen = 16,
  11075. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  11076. "\x38\x39\x41\x42\x43\x44\x45\x46",
  11077. .rlen = 16,
  11078. }, {
  11079. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  11080. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  11081. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  11082. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  11083. .klen = 32,
  11084. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  11085. "\x00\x00\x00\x00\x00\x00\x00\x02",
  11086. .input = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9"
  11087. "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd",
  11088. .ilen = 16,
  11089. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  11090. "\x38\x39\x41\x42\x43\x44\x45\x46",
  11091. .rlen = 16,
  11092. }, {
  11093. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  11094. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  11095. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  11096. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  11097. .klen = 32,
  11098. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  11099. "\x00\x00\x00\x02\x00\x00\x00\x00",
  11100. .input = "\x85\xa7\x56\x67\x08\xfa\x42\xe1"
  11101. "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4",
  11102. .ilen = 16,
  11103. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  11104. "\x38\x39\x41\x42\x43\x44\x45\x46",
  11105. .rlen = 16,
  11106. }, {
  11107. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  11108. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  11109. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  11110. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  11111. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  11112. .klen = 40,
  11113. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  11114. "\x00\x00\x00\x00\x00\x00\x00\x01",
  11115. .input = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c"
  11116. "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5",
  11117. .ilen = 16,
  11118. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  11119. "\x38\x39\x41\x42\x43\x44\x45\x46",
  11120. .rlen = 16,
  11121. }, {
  11122. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  11123. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  11124. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  11125. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  11126. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  11127. .klen = 40,
  11128. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  11129. "\x00\x00\x00\x02\x00\x00\x00\x00",
  11130. .input = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a"
  11131. "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4",
  11132. .ilen = 16,
  11133. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  11134. "\x38\x39\x41\x42\x43\x44\x45\x46",
  11135. .rlen = 16,
  11136. }, {
  11137. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  11138. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  11139. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  11140. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  11141. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  11142. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  11143. .klen = 48,
  11144. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  11145. "\x00\x00\x00\x00\x00\x00\x00\x01",
  11146. .input = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58"
  11147. "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76",
  11148. .ilen = 16,
  11149. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  11150. "\x38\x39\x41\x42\x43\x44\x45\x46",
  11151. .rlen = 16,
  11152. }, {
  11153. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  11154. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  11155. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  11156. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  11157. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  11158. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  11159. .klen = 48,
  11160. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  11161. "\x00\x00\x00\x02\x00\x00\x00\x00",
  11162. .input = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75"
  11163. "\x17\x66\x5e\x0c\x14\xa1\x3d\x40",
  11164. .ilen = 16,
  11165. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  11166. "\x38\x39\x41\x42\x43\x44\x45\x46",
  11167. .rlen = 16,
  11168. }, {
  11169. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  11170. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  11171. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  11172. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  11173. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  11174. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  11175. .klen = 48,
  11176. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  11177. "\x00\x00\x00\x00\x00\x00\x00\x01",
  11178. .input = "\x30\x38\xeb\xaf\x12\x43\x1a\x89"
  11179. "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9"
  11180. "\x08\xc3\x0d\xdd\x95\xab\x19\x96"
  11181. "\x27\x52\x41\xc3\xca\xfb\xf6\xee"
  11182. "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a"
  11183. "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45"
  11184. "\x42\xe9\x29\xc0\xb4\x07\xb4\x31"
  11185. "\x66\x77\x72\xb5\xb6\xb3\x57\x46"
  11186. "\x34\x9a\xfe\x03\xaf\x6b\x36\x07"
  11187. "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d"
  11188. "\xfb\x6d\x82\x51\xb6\x98\xd0\x71"
  11189. "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d"
  11190. "\x72\x2b\x54\x13\xe3\x6d\x79\x37"
  11191. "\xa9\x39\x2c\xdf\x21\xab\x87\xd5"
  11192. "\xee\xef\x9a\x12\x50\x39\x2e\x1b"
  11193. "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac"
  11194. "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08"
  11195. "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25"
  11196. "\x31\x9d\xef\xb1\x1d\x27\x55\x04"
  11197. "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a"
  11198. "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb"
  11199. "\x26\xbe\x4f\x27\x04\x42\xd1\x44"
  11200. "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf"
  11201. "\x1d\x28\x14\xfd\xb1\x1a\x34\x18"
  11202. "\xf5\x1e\x28\x69\x95\x6a\x5a\xba"
  11203. "\x8e\xb2\x58\x1d\x28\x17\x13\x3d"
  11204. "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8"
  11205. "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b"
  11206. "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a"
  11207. "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a"
  11208. "\x63\xa5\x99\x82\x09\x72\x8f\xc6"
  11209. "\xa4\x62\x24\x69\x8c\x2d\x26\x00"
  11210. "\x99\x83\x91\xd6\xc6\xcf\x57\x67"
  11211. "\x38\xea\xf2\xfc\x29\xe0\x73\x39"
  11212. "\xf9\x13\x94\x6d\xe2\x58\x28\x75"
  11213. "\x3e\xae\x71\x90\x07\x70\x1c\x38"
  11214. "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef"
  11215. "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22"
  11216. "\x82\x09\xe3\x18\x3f\x4f\x48\xfc"
  11217. "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b"
  11218. "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e"
  11219. "\xc3\xac\x4a\xed\xe7\x82\xef\x31"
  11220. "\x1f\x1a\x51\x1e\x29\x60\xc8\x98"
  11221. "\x93\x51\x1d\x3d\x62\x59\x83\x82"
  11222. "\x0c\xf1\xd7\x8d\xac\x33\x44\x81"
  11223. "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4"
  11224. "\xec\xdc\x24\xfd\x0e\x1a\x79\x94"
  11225. "\x34\xb0\x62\xfa\x98\x49\x26\x1f"
  11226. "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe"
  11227. "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc"
  11228. "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c"
  11229. "\xdb\xf6\x21\x80\xf7\x5a\x37\x15"
  11230. "\x0c\xe3\x36\xc8\x74\x75\x20\x91"
  11231. "\xdf\x52\x2d\x0c\xe7\x45\xff\x46"
  11232. "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6"
  11233. "\x26\xa2\x5d\x7d\x61\xbf\x10\x46"
  11234. "\x57\x8d\x05\x96\x70\x0b\xd6\x41"
  11235. "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd"
  11236. "\x5f\x92\x81\x6e\x35\x03\xd4\x72"
  11237. "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23"
  11238. "\x45\x5d\xec\x72\xc1\x52\xef\x2e"
  11239. "\x81\x00\xd3\xfe\x4c\x3c\x05\x61"
  11240. "\x80\x18\xc4\x6c\x03\xd3\xb7\xba"
  11241. "\x11\xd7\xb8\x6e\xea\xe1\x80\x30",
  11242. .ilen = 512,
  11243. .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  11244. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  11245. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  11246. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  11247. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  11248. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  11249. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  11250. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  11251. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  11252. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  11253. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  11254. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  11255. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  11256. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  11257. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  11258. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  11259. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  11260. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  11261. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  11262. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  11263. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  11264. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  11265. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  11266. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  11267. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  11268. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  11269. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  11270. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  11271. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  11272. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  11273. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  11274. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  11275. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  11276. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  11277. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  11278. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  11279. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  11280. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  11281. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  11282. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  11283. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  11284. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  11285. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  11286. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  11287. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  11288. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  11289. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  11290. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  11291. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  11292. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  11293. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  11294. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  11295. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  11296. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  11297. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  11298. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  11299. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  11300. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  11301. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  11302. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  11303. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  11304. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  11305. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  11306. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  11307. .rlen = 512,
  11308. .also_non_np = 1,
  11309. .np = 3,
  11310. .tap = { 512 - 20, 4, 16 },
  11311. },
  11312. };
  11313. static struct cipher_testvec tf_xts_enc_tv_template[] = {
  11314. /* Generated from AES-XTS test vectors */
  11315. {
  11316. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  11317. "\x00\x00\x00\x00\x00\x00\x00\x00"
  11318. "\x00\x00\x00\x00\x00\x00\x00\x00"
  11319. "\x00\x00\x00\x00\x00\x00\x00\x00",
  11320. .klen = 32,
  11321. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  11322. "\x00\x00\x00\x00\x00\x00\x00\x00",
  11323. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  11324. "\x00\x00\x00\x00\x00\x00\x00\x00"
  11325. "\x00\x00\x00\x00\x00\x00\x00\x00"
  11326. "\x00\x00\x00\x00\x00\x00\x00\x00",
  11327. .ilen = 32,
  11328. .result = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac"
  11329. "\x30\x74\xe4\x44\x52\x77\x97\x43"
  11330. "\xa7\x60\xb2\x45\x2e\xf9\x00\x90"
  11331. "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0",
  11332. .rlen = 32,
  11333. }, {
  11334. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  11335. "\x11\x11\x11\x11\x11\x11\x11\x11"
  11336. "\x22\x22\x22\x22\x22\x22\x22\x22"
  11337. "\x22\x22\x22\x22\x22\x22\x22\x22",
  11338. .klen = 32,
  11339. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  11340. "\x00\x00\x00\x00\x00\x00\x00\x00",
  11341. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  11342. "\x44\x44\x44\x44\x44\x44\x44\x44"
  11343. "\x44\x44\x44\x44\x44\x44\x44\x44"
  11344. "\x44\x44\x44\x44\x44\x44\x44\x44",
  11345. .ilen = 32,
  11346. .result = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f"
  11347. "\x32\xd3\xbd\x36\x05\x15\x44\x2c"
  11348. "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5"
  11349. "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9",
  11350. .rlen = 32,
  11351. }, {
  11352. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  11353. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  11354. "\x22\x22\x22\x22\x22\x22\x22\x22"
  11355. "\x22\x22\x22\x22\x22\x22\x22\x22",
  11356. .klen = 32,
  11357. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  11358. "\x00\x00\x00\x00\x00\x00\x00\x00",
  11359. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  11360. "\x44\x44\x44\x44\x44\x44\x44\x44"
  11361. "\x44\x44\x44\x44\x44\x44\x44\x44"
  11362. "\x44\x44\x44\x44\x44\x44\x44\x44",
  11363. .ilen = 32,
  11364. .result = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde"
  11365. "\x40\x0c\x89\x56\xf6\x4d\xa7\x07"
  11366. "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2"
  11367. "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea",
  11368. .rlen = 32,
  11369. }, {
  11370. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  11371. "\x23\x53\x60\x28\x74\x71\x35\x26"
  11372. "\x31\x41\x59\x26\x53\x58\x97\x93"
  11373. "\x23\x84\x62\x64\x33\x83\x27\x95",
  11374. .klen = 32,
  11375. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  11376. "\x00\x00\x00\x00\x00\x00\x00\x00",
  11377. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  11378. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  11379. "\x10\x11\x12\x13\x14\x15\x16\x17"
  11380. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  11381. "\x20\x21\x22\x23\x24\x25\x26\x27"
  11382. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  11383. "\x30\x31\x32\x33\x34\x35\x36\x37"
  11384. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  11385. "\x40\x41\x42\x43\x44\x45\x46\x47"
  11386. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  11387. "\x50\x51\x52\x53\x54\x55\x56\x57"
  11388. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  11389. "\x60\x61\x62\x63\x64\x65\x66\x67"
  11390. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  11391. "\x70\x71\x72\x73\x74\x75\x76\x77"
  11392. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  11393. "\x80\x81\x82\x83\x84\x85\x86\x87"
  11394. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  11395. "\x90\x91\x92\x93\x94\x95\x96\x97"
  11396. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  11397. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  11398. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  11399. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  11400. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  11401. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  11402. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  11403. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  11404. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  11405. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  11406. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  11407. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  11408. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  11409. "\x00\x01\x02\x03\x04\x05\x06\x07"
  11410. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  11411. "\x10\x11\x12\x13\x14\x15\x16\x17"
  11412. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  11413. "\x20\x21\x22\x23\x24\x25\x26\x27"
  11414. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  11415. "\x30\x31\x32\x33\x34\x35\x36\x37"
  11416. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  11417. "\x40\x41\x42\x43\x44\x45\x46\x47"
  11418. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  11419. "\x50\x51\x52\x53\x54\x55\x56\x57"
  11420. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  11421. "\x60\x61\x62\x63\x64\x65\x66\x67"
  11422. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  11423. "\x70\x71\x72\x73\x74\x75\x76\x77"
  11424. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  11425. "\x80\x81\x82\x83\x84\x85\x86\x87"
  11426. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  11427. "\x90\x91\x92\x93\x94\x95\x96\x97"
  11428. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  11429. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  11430. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  11431. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  11432. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  11433. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  11434. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  11435. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  11436. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  11437. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  11438. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  11439. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  11440. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  11441. .ilen = 512,
  11442. .result = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c"
  11443. "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0"
  11444. "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58"
  11445. "\xb8\x2d\xb9\x5d\x58\x07\x66\x50"
  11446. "\xea\x35\x35\x8c\xb2\x46\x61\x06"
  11447. "\x5d\x65\xfc\x57\x8f\x69\x74\xab"
  11448. "\x8a\x06\x69\xb5\x6c\xda\x66\xc7"
  11449. "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2"
  11450. "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3"
  11451. "\x32\x36\x7c\x97\x6b\x4e\x8a\x50"
  11452. "\xe4\x91\x83\x96\x8f\xf4\x94\x1a"
  11453. "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f"
  11454. "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e"
  11455. "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53"
  11456. "\x01\x73\x68\x32\x25\x19\xfa\xfb"
  11457. "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31"
  11458. "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6"
  11459. "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11"
  11460. "\x39\x80\x39\x09\x97\x65\xf2\x83"
  11461. "\xae\xe6\xa1\x6f\x47\xb8\x49\xde"
  11462. "\x99\x36\x20\x7d\x97\x3b\xec\xfa"
  11463. "\xb4\x33\x6e\x7a\xc7\x46\x84\x49"
  11464. "\x91\xcd\xe1\x57\x0d\xed\x40\x08"
  11465. "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6"
  11466. "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47"
  11467. "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a"
  11468. "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12"
  11469. "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3"
  11470. "\xca\x1c\xa3\x8e\xed\x39\x28\xb5"
  11471. "\x10\x1b\x4b\x08\x42\x00\x4a\xd3"
  11472. "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4"
  11473. "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d"
  11474. "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20"
  11475. "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24"
  11476. "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47"
  11477. "\x24\x65\x63\x7e\xbd\x8c\xe6\x52"
  11478. "\x7d\xef\x33\x53\x63\xec\xaa\x0b"
  11479. "\x64\x15\xa9\xa6\x1f\x10\x00\x38"
  11480. "\x35\xa8\xe7\xbe\x23\x70\x22\xe0"
  11481. "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50"
  11482. "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c"
  11483. "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71"
  11484. "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e"
  11485. "\x7a\x74\x85\xa9\x6a\x90\xab\x2c"
  11486. "\x38\x51\xbc\x1f\x43\x4a\x56\x1c"
  11487. "\xf8\x47\x03\x4e\x67\xa8\x1f\x99"
  11488. "\x04\x39\x73\x32\xb2\x86\x79\xe7"
  11489. "\x14\x28\x70\xb8\xe2\x7d\x69\x85"
  11490. "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6"
  11491. "\x09\x0f\x75\xf7\xb6\x81\xd2\x11"
  11492. "\x20\x9c\xa1\xee\x11\x44\x79\xd0"
  11493. "\xb2\x34\x77\xda\x10\x9a\x6f\x6f"
  11494. "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd"
  11495. "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac"
  11496. "\xfe\x2f\x85\x00\x44\xdf\x33\x16"
  11497. "\x35\xb6\xa3\xd3\x70\xdf\x69\x35"
  11498. "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e"
  11499. "\x5a\x14\x30\xd0\x55\x3e\x4f\x64"
  11500. "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26"
  11501. "\x75\xae\xf6\xb5\x23\x0b\x17\x31"
  11502. "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f"
  11503. "\x43\xc4\x46\x24\x22\x4f\x8f\x7e"
  11504. "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb"
  11505. "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a",
  11506. .rlen = 512,
  11507. }, {
  11508. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  11509. "\x23\x53\x60\x28\x74\x71\x35\x26"
  11510. "\x62\x49\x77\x57\x24\x70\x93\x69"
  11511. "\x99\x59\x57\x49\x66\x96\x76\x27"
  11512. "\x31\x41\x59\x26\x53\x58\x97\x93"
  11513. "\x23\x84\x62\x64\x33\x83\x27\x95"
  11514. "\x02\x88\x41\x97\x16\x93\x99\x37"
  11515. "\x51\x05\x82\x09\x74\x94\x45\x92",
  11516. .klen = 64,
  11517. .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
  11518. "\x00\x00\x00\x00\x00\x00\x00\x00",
  11519. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  11520. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  11521. "\x10\x11\x12\x13\x14\x15\x16\x17"
  11522. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  11523. "\x20\x21\x22\x23\x24\x25\x26\x27"
  11524. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  11525. "\x30\x31\x32\x33\x34\x35\x36\x37"
  11526. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  11527. "\x40\x41\x42\x43\x44\x45\x46\x47"
  11528. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  11529. "\x50\x51\x52\x53\x54\x55\x56\x57"
  11530. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  11531. "\x60\x61\x62\x63\x64\x65\x66\x67"
  11532. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  11533. "\x70\x71\x72\x73\x74\x75\x76\x77"
  11534. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  11535. "\x80\x81\x82\x83\x84\x85\x86\x87"
  11536. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  11537. "\x90\x91\x92\x93\x94\x95\x96\x97"
  11538. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  11539. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  11540. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  11541. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  11542. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  11543. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  11544. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  11545. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  11546. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  11547. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  11548. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  11549. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  11550. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  11551. "\x00\x01\x02\x03\x04\x05\x06\x07"
  11552. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  11553. "\x10\x11\x12\x13\x14\x15\x16\x17"
  11554. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  11555. "\x20\x21\x22\x23\x24\x25\x26\x27"
  11556. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  11557. "\x30\x31\x32\x33\x34\x35\x36\x37"
  11558. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  11559. "\x40\x41\x42\x43\x44\x45\x46\x47"
  11560. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  11561. "\x50\x51\x52\x53\x54\x55\x56\x57"
  11562. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  11563. "\x60\x61\x62\x63\x64\x65\x66\x67"
  11564. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  11565. "\x70\x71\x72\x73\x74\x75\x76\x77"
  11566. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  11567. "\x80\x81\x82\x83\x84\x85\x86\x87"
  11568. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  11569. "\x90\x91\x92\x93\x94\x95\x96\x97"
  11570. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  11571. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  11572. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  11573. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  11574. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  11575. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  11576. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  11577. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  11578. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  11579. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  11580. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  11581. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  11582. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  11583. .ilen = 512,
  11584. .result = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1"
  11585. "\x35\x39\x71\x88\x76\x1e\xc9\xea"
  11586. "\x86\xad\xf3\x14\x48\x3d\x5e\xe9"
  11587. "\xe9\x2d\xb2\x56\x59\x35\x9d\xec"
  11588. "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f"
  11589. "\xce\xf4\xa9\x21\x0b\x5f\x96\xec"
  11590. "\xcb\xf9\x57\x68\x33\x88\x39\xbf"
  11591. "\x2f\xbb\x59\x03\xbd\x66\x8b\x11"
  11592. "\x11\x65\x51\x2e\xb8\x67\x05\xd1"
  11593. "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3"
  11594. "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5"
  11595. "\x85\xdc\x46\xe6\xf0\x24\xeb\x93"
  11596. "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03"
  11597. "\x22\xc8\x3a\x4f\xb4\x19\x91\x09"
  11598. "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53"
  11599. "\x72\x60\x79\xcb\x0e\x32\x8a\x77"
  11600. "\xd5\xed\xdb\x33\xd7\x62\x16\x69"
  11601. "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d"
  11602. "\x69\x35\x61\x86\xf8\x86\xb9\x89"
  11603. "\x6e\x59\x35\xac\xf6\x6b\x33\xa0"
  11604. "\xea\xef\x96\x62\xd8\xa9\xcf\x56"
  11605. "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73"
  11606. "\x3d\x94\x4a\x49\x42\x6d\x08\x60"
  11607. "\xa1\xea\xab\xb6\x88\x13\x94\xb8"
  11608. "\x51\x98\xdb\x35\x85\xdf\xf6\xb9"
  11609. "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72"
  11610. "\xb8\xb2\x6c\x02\x43\x35\x22\x2a"
  11611. "\x31\xed\xcd\x16\x19\xdf\x62\x0f"
  11612. "\x29\xcf\x87\x04\xec\x02\x4f\xe4"
  11613. "\xa2\xed\x73\xc6\x69\xd3\x7e\x89"
  11614. "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25"
  11615. "\xed\xcc\x60\x5d\x61\x20\xc1\x97"
  11616. "\x56\x91\x57\x28\xbe\x71\x0d\xcd"
  11617. "\xde\xc4\x9e\x55\x91\xbe\xd1\x28"
  11618. "\x9b\x90\xeb\x73\xf3\x68\x51\xc6"
  11619. "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27"
  11620. "\xc0\x60\x5e\x33\xd6\xa7\x20\xea"
  11621. "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47"
  11622. "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42"
  11623. "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0"
  11624. "\xad\x12\x32\x31\x03\xf7\x21\xbe"
  11625. "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd"
  11626. "\xd8\x81\x77\xa9\x49\x98\x6c\x09"
  11627. "\xc5\xa3\x61\x12\x62\x85\x6b\xcd"
  11628. "\xb3\xf4\x20\x0c\x41\xc4\x05\x37"
  11629. "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e"
  11630. "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb"
  11631. "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8"
  11632. "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0"
  11633. "\x93\x4a\x2f\xda\x7b\xe0\x20\x54"
  11634. "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75"
  11635. "\xb9\x07\x67\xcc\xc8\xe7\x21\x15"
  11636. "\xa7\xc8\x98\xff\x4b\x80\x1c\x12"
  11637. "\xa8\x54\xe1\x38\x52\xe6\x74\x81"
  11638. "\x97\x47\xa1\x41\x0e\xc0\x50\xe3"
  11639. "\x55\x0e\xc3\xa7\x70\x77\xce\x07"
  11640. "\xed\x8c\x88\xe6\xa1\x5b\x14\xec"
  11641. "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa"
  11642. "\xe5\x2f\x5a\xff\xc8\x05\xee\x27"
  11643. "\x35\x61\xbf\x0b\x19\x78\x9b\xd2"
  11644. "\x04\xc7\x05\xb1\x79\xb4\xff\x5f"
  11645. "\xf3\xea\x67\x52\x78\xc2\xce\x70"
  11646. "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97"
  11647. "\x37\x30\xe1\x91\x8d\xb3\x2a\xff",
  11648. .rlen = 512,
  11649. .also_non_np = 1,
  11650. .np = 3,
  11651. .tap = { 512 - 20, 4, 16 },
  11652. },
  11653. };
  11654. static struct cipher_testvec tf_xts_dec_tv_template[] = {
  11655. /* Generated from AES-XTS test vectors */
  11656. /* same as enc vectors with input and result reversed */
  11657. {
  11658. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  11659. "\x00\x00\x00\x00\x00\x00\x00\x00"
  11660. "\x00\x00\x00\x00\x00\x00\x00\x00"
  11661. "\x00\x00\x00\x00\x00\x00\x00\x00",
  11662. .klen = 32,
  11663. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  11664. "\x00\x00\x00\x00\x00\x00\x00\x00",
  11665. .input = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac"
  11666. "\x30\x74\xe4\x44\x52\x77\x97\x43"
  11667. "\xa7\x60\xb2\x45\x2e\xf9\x00\x90"
  11668. "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0",
  11669. .ilen = 32,
  11670. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  11671. "\x00\x00\x00\x00\x00\x00\x00\x00"
  11672. "\x00\x00\x00\x00\x00\x00\x00\x00"
  11673. "\x00\x00\x00\x00\x00\x00\x00\x00",
  11674. .rlen = 32,
  11675. }, {
  11676. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  11677. "\x11\x11\x11\x11\x11\x11\x11\x11"
  11678. "\x22\x22\x22\x22\x22\x22\x22\x22"
  11679. "\x22\x22\x22\x22\x22\x22\x22\x22",
  11680. .klen = 32,
  11681. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  11682. "\x00\x00\x00\x00\x00\x00\x00\x00",
  11683. .input = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f"
  11684. "\x32\xd3\xbd\x36\x05\x15\x44\x2c"
  11685. "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5"
  11686. "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9",
  11687. .ilen = 32,
  11688. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  11689. "\x44\x44\x44\x44\x44\x44\x44\x44"
  11690. "\x44\x44\x44\x44\x44\x44\x44\x44"
  11691. "\x44\x44\x44\x44\x44\x44\x44\x44",
  11692. .rlen = 32,
  11693. }, {
  11694. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  11695. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  11696. "\x22\x22\x22\x22\x22\x22\x22\x22"
  11697. "\x22\x22\x22\x22\x22\x22\x22\x22",
  11698. .klen = 32,
  11699. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  11700. "\x00\x00\x00\x00\x00\x00\x00\x00",
  11701. .input = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde"
  11702. "\x40\x0c\x89\x56\xf6\x4d\xa7\x07"
  11703. "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2"
  11704. "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea",
  11705. .ilen = 32,
  11706. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  11707. "\x44\x44\x44\x44\x44\x44\x44\x44"
  11708. "\x44\x44\x44\x44\x44\x44\x44\x44"
  11709. "\x44\x44\x44\x44\x44\x44\x44\x44",
  11710. .rlen = 32,
  11711. }, {
  11712. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  11713. "\x23\x53\x60\x28\x74\x71\x35\x26"
  11714. "\x31\x41\x59\x26\x53\x58\x97\x93"
  11715. "\x23\x84\x62\x64\x33\x83\x27\x95",
  11716. .klen = 32,
  11717. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  11718. "\x00\x00\x00\x00\x00\x00\x00\x00",
  11719. .input = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c"
  11720. "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0"
  11721. "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58"
  11722. "\xb8\x2d\xb9\x5d\x58\x07\x66\x50"
  11723. "\xea\x35\x35\x8c\xb2\x46\x61\x06"
  11724. "\x5d\x65\xfc\x57\x8f\x69\x74\xab"
  11725. "\x8a\x06\x69\xb5\x6c\xda\x66\xc7"
  11726. "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2"
  11727. "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3"
  11728. "\x32\x36\x7c\x97\x6b\x4e\x8a\x50"
  11729. "\xe4\x91\x83\x96\x8f\xf4\x94\x1a"
  11730. "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f"
  11731. "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e"
  11732. "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53"
  11733. "\x01\x73\x68\x32\x25\x19\xfa\xfb"
  11734. "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31"
  11735. "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6"
  11736. "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11"
  11737. "\x39\x80\x39\x09\x97\x65\xf2\x83"
  11738. "\xae\xe6\xa1\x6f\x47\xb8\x49\xde"
  11739. "\x99\x36\x20\x7d\x97\x3b\xec\xfa"
  11740. "\xb4\x33\x6e\x7a\xc7\x46\x84\x49"
  11741. "\x91\xcd\xe1\x57\x0d\xed\x40\x08"
  11742. "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6"
  11743. "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47"
  11744. "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a"
  11745. "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12"
  11746. "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3"
  11747. "\xca\x1c\xa3\x8e\xed\x39\x28\xb5"
  11748. "\x10\x1b\x4b\x08\x42\x00\x4a\xd3"
  11749. "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4"
  11750. "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d"
  11751. "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20"
  11752. "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24"
  11753. "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47"
  11754. "\x24\x65\x63\x7e\xbd\x8c\xe6\x52"
  11755. "\x7d\xef\x33\x53\x63\xec\xaa\x0b"
  11756. "\x64\x15\xa9\xa6\x1f\x10\x00\x38"
  11757. "\x35\xa8\xe7\xbe\x23\x70\x22\xe0"
  11758. "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50"
  11759. "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c"
  11760. "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71"
  11761. "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e"
  11762. "\x7a\x74\x85\xa9\x6a\x90\xab\x2c"
  11763. "\x38\x51\xbc\x1f\x43\x4a\x56\x1c"
  11764. "\xf8\x47\x03\x4e\x67\xa8\x1f\x99"
  11765. "\x04\x39\x73\x32\xb2\x86\x79\xe7"
  11766. "\x14\x28\x70\xb8\xe2\x7d\x69\x85"
  11767. "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6"
  11768. "\x09\x0f\x75\xf7\xb6\x81\xd2\x11"
  11769. "\x20\x9c\xa1\xee\x11\x44\x79\xd0"
  11770. "\xb2\x34\x77\xda\x10\x9a\x6f\x6f"
  11771. "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd"
  11772. "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac"
  11773. "\xfe\x2f\x85\x00\x44\xdf\x33\x16"
  11774. "\x35\xb6\xa3\xd3\x70\xdf\x69\x35"
  11775. "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e"
  11776. "\x5a\x14\x30\xd0\x55\x3e\x4f\x64"
  11777. "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26"
  11778. "\x75\xae\xf6\xb5\x23\x0b\x17\x31"
  11779. "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f"
  11780. "\x43\xc4\x46\x24\x22\x4f\x8f\x7e"
  11781. "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb"
  11782. "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a",
  11783. .ilen = 512,
  11784. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  11785. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  11786. "\x10\x11\x12\x13\x14\x15\x16\x17"
  11787. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  11788. "\x20\x21\x22\x23\x24\x25\x26\x27"
  11789. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  11790. "\x30\x31\x32\x33\x34\x35\x36\x37"
  11791. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  11792. "\x40\x41\x42\x43\x44\x45\x46\x47"
  11793. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  11794. "\x50\x51\x52\x53\x54\x55\x56\x57"
  11795. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  11796. "\x60\x61\x62\x63\x64\x65\x66\x67"
  11797. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  11798. "\x70\x71\x72\x73\x74\x75\x76\x77"
  11799. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  11800. "\x80\x81\x82\x83\x84\x85\x86\x87"
  11801. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  11802. "\x90\x91\x92\x93\x94\x95\x96\x97"
  11803. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  11804. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  11805. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  11806. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  11807. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  11808. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  11809. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  11810. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  11811. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  11812. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  11813. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  11814. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  11815. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  11816. "\x00\x01\x02\x03\x04\x05\x06\x07"
  11817. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  11818. "\x10\x11\x12\x13\x14\x15\x16\x17"
  11819. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  11820. "\x20\x21\x22\x23\x24\x25\x26\x27"
  11821. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  11822. "\x30\x31\x32\x33\x34\x35\x36\x37"
  11823. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  11824. "\x40\x41\x42\x43\x44\x45\x46\x47"
  11825. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  11826. "\x50\x51\x52\x53\x54\x55\x56\x57"
  11827. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  11828. "\x60\x61\x62\x63\x64\x65\x66\x67"
  11829. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  11830. "\x70\x71\x72\x73\x74\x75\x76\x77"
  11831. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  11832. "\x80\x81\x82\x83\x84\x85\x86\x87"
  11833. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  11834. "\x90\x91\x92\x93\x94\x95\x96\x97"
  11835. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  11836. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  11837. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  11838. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  11839. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  11840. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  11841. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  11842. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  11843. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  11844. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  11845. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  11846. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  11847. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  11848. .rlen = 512,
  11849. }, {
  11850. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  11851. "\x23\x53\x60\x28\x74\x71\x35\x26"
  11852. "\x62\x49\x77\x57\x24\x70\x93\x69"
  11853. "\x99\x59\x57\x49\x66\x96\x76\x27"
  11854. "\x31\x41\x59\x26\x53\x58\x97\x93"
  11855. "\x23\x84\x62\x64\x33\x83\x27\x95"
  11856. "\x02\x88\x41\x97\x16\x93\x99\x37"
  11857. "\x51\x05\x82\x09\x74\x94\x45\x92",
  11858. .klen = 64,
  11859. .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
  11860. "\x00\x00\x00\x00\x00\x00\x00\x00",
  11861. .input = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1"
  11862. "\x35\x39\x71\x88\x76\x1e\xc9\xea"
  11863. "\x86\xad\xf3\x14\x48\x3d\x5e\xe9"
  11864. "\xe9\x2d\xb2\x56\x59\x35\x9d\xec"
  11865. "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f"
  11866. "\xce\xf4\xa9\x21\x0b\x5f\x96\xec"
  11867. "\xcb\xf9\x57\x68\x33\x88\x39\xbf"
  11868. "\x2f\xbb\x59\x03\xbd\x66\x8b\x11"
  11869. "\x11\x65\x51\x2e\xb8\x67\x05\xd1"
  11870. "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3"
  11871. "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5"
  11872. "\x85\xdc\x46\xe6\xf0\x24\xeb\x93"
  11873. "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03"
  11874. "\x22\xc8\x3a\x4f\xb4\x19\x91\x09"
  11875. "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53"
  11876. "\x72\x60\x79\xcb\x0e\x32\x8a\x77"
  11877. "\xd5\xed\xdb\x33\xd7\x62\x16\x69"
  11878. "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d"
  11879. "\x69\x35\x61\x86\xf8\x86\xb9\x89"
  11880. "\x6e\x59\x35\xac\xf6\x6b\x33\xa0"
  11881. "\xea\xef\x96\x62\xd8\xa9\xcf\x56"
  11882. "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73"
  11883. "\x3d\x94\x4a\x49\x42\x6d\x08\x60"
  11884. "\xa1\xea\xab\xb6\x88\x13\x94\xb8"
  11885. "\x51\x98\xdb\x35\x85\xdf\xf6\xb9"
  11886. "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72"
  11887. "\xb8\xb2\x6c\x02\x43\x35\x22\x2a"
  11888. "\x31\xed\xcd\x16\x19\xdf\x62\x0f"
  11889. "\x29\xcf\x87\x04\xec\x02\x4f\xe4"
  11890. "\xa2\xed\x73\xc6\x69\xd3\x7e\x89"
  11891. "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25"
  11892. "\xed\xcc\x60\x5d\x61\x20\xc1\x97"
  11893. "\x56\x91\x57\x28\xbe\x71\x0d\xcd"
  11894. "\xde\xc4\x9e\x55\x91\xbe\xd1\x28"
  11895. "\x9b\x90\xeb\x73\xf3\x68\x51\xc6"
  11896. "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27"
  11897. "\xc0\x60\x5e\x33\xd6\xa7\x20\xea"
  11898. "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47"
  11899. "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42"
  11900. "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0"
  11901. "\xad\x12\x32\x31\x03\xf7\x21\xbe"
  11902. "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd"
  11903. "\xd8\x81\x77\xa9\x49\x98\x6c\x09"
  11904. "\xc5\xa3\x61\x12\x62\x85\x6b\xcd"
  11905. "\xb3\xf4\x20\x0c\x41\xc4\x05\x37"
  11906. "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e"
  11907. "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb"
  11908. "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8"
  11909. "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0"
  11910. "\x93\x4a\x2f\xda\x7b\xe0\x20\x54"
  11911. "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75"
  11912. "\xb9\x07\x67\xcc\xc8\xe7\x21\x15"
  11913. "\xa7\xc8\x98\xff\x4b\x80\x1c\x12"
  11914. "\xa8\x54\xe1\x38\x52\xe6\x74\x81"
  11915. "\x97\x47\xa1\x41\x0e\xc0\x50\xe3"
  11916. "\x55\x0e\xc3\xa7\x70\x77\xce\x07"
  11917. "\xed\x8c\x88\xe6\xa1\x5b\x14\xec"
  11918. "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa"
  11919. "\xe5\x2f\x5a\xff\xc8\x05\xee\x27"
  11920. "\x35\x61\xbf\x0b\x19\x78\x9b\xd2"
  11921. "\x04\xc7\x05\xb1\x79\xb4\xff\x5f"
  11922. "\xf3\xea\x67\x52\x78\xc2\xce\x70"
  11923. "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97"
  11924. "\x37\x30\xe1\x91\x8d\xb3\x2a\xff",
  11925. .ilen = 512,
  11926. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  11927. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  11928. "\x10\x11\x12\x13\x14\x15\x16\x17"
  11929. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  11930. "\x20\x21\x22\x23\x24\x25\x26\x27"
  11931. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  11932. "\x30\x31\x32\x33\x34\x35\x36\x37"
  11933. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  11934. "\x40\x41\x42\x43\x44\x45\x46\x47"
  11935. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  11936. "\x50\x51\x52\x53\x54\x55\x56\x57"
  11937. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  11938. "\x60\x61\x62\x63\x64\x65\x66\x67"
  11939. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  11940. "\x70\x71\x72\x73\x74\x75\x76\x77"
  11941. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  11942. "\x80\x81\x82\x83\x84\x85\x86\x87"
  11943. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  11944. "\x90\x91\x92\x93\x94\x95\x96\x97"
  11945. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  11946. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  11947. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  11948. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  11949. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  11950. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  11951. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  11952. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  11953. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  11954. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  11955. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  11956. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  11957. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  11958. "\x00\x01\x02\x03\x04\x05\x06\x07"
  11959. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  11960. "\x10\x11\x12\x13\x14\x15\x16\x17"
  11961. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  11962. "\x20\x21\x22\x23\x24\x25\x26\x27"
  11963. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  11964. "\x30\x31\x32\x33\x34\x35\x36\x37"
  11965. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  11966. "\x40\x41\x42\x43\x44\x45\x46\x47"
  11967. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  11968. "\x50\x51\x52\x53\x54\x55\x56\x57"
  11969. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  11970. "\x60\x61\x62\x63\x64\x65\x66\x67"
  11971. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  11972. "\x70\x71\x72\x73\x74\x75\x76\x77"
  11973. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  11974. "\x80\x81\x82\x83\x84\x85\x86\x87"
  11975. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  11976. "\x90\x91\x92\x93\x94\x95\x96\x97"
  11977. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  11978. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  11979. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  11980. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  11981. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  11982. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  11983. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  11984. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  11985. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  11986. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  11987. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  11988. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  11989. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  11990. .rlen = 512,
  11991. .also_non_np = 1,
  11992. .np = 3,
  11993. .tap = { 512 - 20, 4, 16 },
  11994. },
  11995. };
  11996. /*
  11997. * Serpent test vectors. These are backwards because Serpent writes
  11998. * octet sequences in right-to-left mode.
  11999. */
  12000. #define SERPENT_ENC_TEST_VECTORS 5
  12001. #define SERPENT_DEC_TEST_VECTORS 5
  12002. #define TNEPRES_ENC_TEST_VECTORS 4
  12003. #define TNEPRES_DEC_TEST_VECTORS 4
  12004. #define SERPENT_CBC_ENC_TEST_VECTORS 1
  12005. #define SERPENT_CBC_DEC_TEST_VECTORS 1
  12006. #define SERPENT_CTR_ENC_TEST_VECTORS 2
  12007. #define SERPENT_CTR_DEC_TEST_VECTORS 2
  12008. #define SERPENT_LRW_ENC_TEST_VECTORS 8
  12009. #define SERPENT_LRW_DEC_TEST_VECTORS 8
  12010. #define SERPENT_XTS_ENC_TEST_VECTORS 5
  12011. #define SERPENT_XTS_DEC_TEST_VECTORS 5
  12012. static struct cipher_testvec serpent_enc_tv_template[] = {
  12013. {
  12014. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  12015. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  12016. .ilen = 16,
  12017. .result = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
  12018. "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
  12019. .rlen = 16,
  12020. }, {
  12021. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  12022. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  12023. .klen = 16,
  12024. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  12025. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  12026. .ilen = 16,
  12027. .result = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
  12028. "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
  12029. .rlen = 16,
  12030. }, {
  12031. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  12032. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  12033. "\x10\x11\x12\x13\x14\x15\x16\x17"
  12034. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  12035. .klen = 32,
  12036. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  12037. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  12038. .ilen = 16,
  12039. .result = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
  12040. "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
  12041. .rlen = 16,
  12042. }, {
  12043. .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
  12044. .klen = 16,
  12045. .input = zeroed_string,
  12046. .ilen = 16,
  12047. .result = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
  12048. "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
  12049. .rlen = 16,
  12050. }, { /* Generated with Crypto++ */
  12051. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  12052. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  12053. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  12054. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  12055. .klen = 32,
  12056. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  12057. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  12058. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  12059. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  12060. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  12061. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  12062. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  12063. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  12064. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  12065. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  12066. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  12067. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  12068. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  12069. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  12070. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  12071. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  12072. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  12073. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  12074. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  12075. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  12076. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  12077. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  12078. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  12079. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  12080. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  12081. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  12082. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  12083. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  12084. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  12085. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  12086. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  12087. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  12088. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  12089. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  12090. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  12091. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  12092. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  12093. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  12094. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  12095. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  12096. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  12097. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  12098. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  12099. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  12100. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  12101. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  12102. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  12103. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  12104. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  12105. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  12106. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  12107. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  12108. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  12109. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  12110. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  12111. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  12112. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  12113. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  12114. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  12115. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  12116. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  12117. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  12118. .ilen = 496,
  12119. .result = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB"
  12120. "\xB1\x80\x10\x43\xDE\x62\x70\xBD"
  12121. "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7"
  12122. "\x0C\xD1\xBB\x29\x25\x14\x4C\x22"
  12123. "\x77\xA6\x38\x00\xDB\xB9\xE2\x07"
  12124. "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39"
  12125. "\x99\x34\x89\x5B\x54\xE9\x12\x13"
  12126. "\x3B\x04\xE5\x12\x42\xC5\x79\xAB"
  12127. "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6"
  12128. "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA"
  12129. "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A"
  12130. "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87"
  12131. "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5"
  12132. "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73"
  12133. "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD"
  12134. "\x69\xDA\x7A\x01\xF5\x6A\x70\x39"
  12135. "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39"
  12136. "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6"
  12137. "\xB6\x31\x36\x34\x38\x3C\x1D\x69"
  12138. "\x9F\x47\x28\x9A\x1D\x96\x70\x54"
  12139. "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A"
  12140. "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A"
  12141. "\x23\x9C\x9B\x79\xC7\x75\xC8\x39"
  12142. "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D"
  12143. "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B"
  12144. "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F"
  12145. "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8"
  12146. "\xEF\x50\x22\x20\x93\x30\xBE\xE2"
  12147. "\x38\x05\x65\xAF\xBA\xB6\xE4\x72"
  12148. "\xA9\xEE\x05\x42\x88\xBD\x9D\x49"
  12149. "\xAD\x93\xCA\x4D\x45\x11\x43\x4D"
  12150. "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4"
  12151. "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD"
  12152. "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6"
  12153. "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69"
  12154. "\x73\x65\x65\x51\xD6\x0B\x4E\x8C"
  12155. "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B"
  12156. "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39"
  12157. "\xE8\x10\x93\x16\xC8\x68\x4C\x60"
  12158. "\x87\x70\x14\xD0\x01\x57\xCB\x42"
  12159. "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7"
  12160. "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE"
  12161. "\xFD\x72\xEC\xD7\x6F\x97\x14\x90"
  12162. "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE"
  12163. "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B"
  12164. "\x71\x80\x05\x35\x3F\x40\x0B\x21"
  12165. "\x76\xE5\xEF\x42\x6C\xDB\x31\x05"
  12166. "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2"
  12167. "\x49\x03\x5E\x77\x2E\x20\xBA\xA1"
  12168. "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E"
  12169. "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F"
  12170. "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6"
  12171. "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1"
  12172. "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00"
  12173. "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF"
  12174. "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45"
  12175. "\x91\x76\xE7\x6E\x65\x3D\x15\x86"
  12176. "\x10\xF8\xDB\x66\x97\x7C\x43\x4D"
  12177. "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A"
  12178. "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02"
  12179. "\x75\x55\x9B\xFF\x36\x73\xAB\x7C"
  12180. "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7",
  12181. .rlen = 496,
  12182. .also_non_np = 1,
  12183. .np = 3,
  12184. .tap = { 496 - 20, 4, 16 },
  12185. },
  12186. };
  12187. static struct cipher_testvec tnepres_enc_tv_template[] = {
  12188. { /* KeySize=128, PT=0, I=1 */
  12189. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  12190. "\x00\x00\x00\x00\x00\x00\x00\x00",
  12191. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  12192. "\x00\x00\x00\x00\x00\x00\x00\x00",
  12193. .klen = 16,
  12194. .ilen = 16,
  12195. .result = "\x49\xaf\xbf\xad\x9d\x5a\x34\x05"
  12196. "\x2c\xd8\xff\xa5\x98\x6b\xd2\xdd",
  12197. .rlen = 16,
  12198. }, { /* KeySize=192, PT=0, I=1 */
  12199. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  12200. "\x00\x00\x00\x00\x00\x00\x00\x00"
  12201. "\x00\x00\x00\x00\x00\x00\x00\x00",
  12202. .klen = 24,
  12203. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  12204. "\x00\x00\x00\x00\x00\x00\x00\x00",
  12205. .ilen = 16,
  12206. .result = "\xe7\x8e\x54\x02\xc7\x19\x55\x68"
  12207. "\xac\x36\x78\xf7\xa3\xf6\x0c\x66",
  12208. .rlen = 16,
  12209. }, { /* KeySize=256, PT=0, I=1 */
  12210. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  12211. "\x00\x00\x00\x00\x00\x00\x00\x00"
  12212. "\x00\x00\x00\x00\x00\x00\x00\x00"
  12213. "\x00\x00\x00\x00\x00\x00\x00\x00",
  12214. .klen = 32,
  12215. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  12216. "\x00\x00\x00\x00\x00\x00\x00\x00",
  12217. .ilen = 16,
  12218. .result = "\xab\xed\x96\xe7\x66\xbf\x28\xcb"
  12219. "\xc0\xeb\xd2\x1a\x82\xef\x08\x19",
  12220. .rlen = 16,
  12221. }, { /* KeySize=256, I=257 */
  12222. .key = "\x1f\x1e\x1d\x1c\x1b\x1a\x19\x18"
  12223. "\x17\x16\x15\x14\x13\x12\x11\x10"
  12224. "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
  12225. "\x07\x06\x05\x04\x03\x02\x01\x00",
  12226. .klen = 32,
  12227. .input = "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
  12228. "\x07\x06\x05\x04\x03\x02\x01\x00",
  12229. .ilen = 16,
  12230. .result = "\x5c\xe7\x1c\x70\xd2\x88\x2e\x5b"
  12231. "\xb8\x32\xe4\x33\xf8\x9f\x26\xde",
  12232. .rlen = 16,
  12233. },
  12234. };
  12235. static struct cipher_testvec serpent_dec_tv_template[] = {
  12236. {
  12237. .input = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
  12238. "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
  12239. .ilen = 16,
  12240. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  12241. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  12242. .rlen = 16,
  12243. }, {
  12244. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  12245. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  12246. .klen = 16,
  12247. .input = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
  12248. "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
  12249. .ilen = 16,
  12250. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  12251. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  12252. .rlen = 16,
  12253. }, {
  12254. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  12255. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  12256. "\x10\x11\x12\x13\x14\x15\x16\x17"
  12257. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  12258. .klen = 32,
  12259. .input = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
  12260. "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
  12261. .ilen = 16,
  12262. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  12263. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  12264. .rlen = 16,
  12265. }, {
  12266. .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
  12267. .klen = 16,
  12268. .input = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
  12269. "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
  12270. .ilen = 16,
  12271. .result = zeroed_string,
  12272. .rlen = 16,
  12273. }, { /* Generated with Crypto++ */
  12274. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  12275. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  12276. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  12277. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  12278. .klen = 32,
  12279. .input = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB"
  12280. "\xB1\x80\x10\x43\xDE\x62\x70\xBD"
  12281. "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7"
  12282. "\x0C\xD1\xBB\x29\x25\x14\x4C\x22"
  12283. "\x77\xA6\x38\x00\xDB\xB9\xE2\x07"
  12284. "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39"
  12285. "\x99\x34\x89\x5B\x54\xE9\x12\x13"
  12286. "\x3B\x04\xE5\x12\x42\xC5\x79\xAB"
  12287. "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6"
  12288. "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA"
  12289. "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A"
  12290. "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87"
  12291. "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5"
  12292. "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73"
  12293. "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD"
  12294. "\x69\xDA\x7A\x01\xF5\x6A\x70\x39"
  12295. "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39"
  12296. "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6"
  12297. "\xB6\x31\x36\x34\x38\x3C\x1D\x69"
  12298. "\x9F\x47\x28\x9A\x1D\x96\x70\x54"
  12299. "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A"
  12300. "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A"
  12301. "\x23\x9C\x9B\x79\xC7\x75\xC8\x39"
  12302. "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D"
  12303. "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B"
  12304. "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F"
  12305. "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8"
  12306. "\xEF\x50\x22\x20\x93\x30\xBE\xE2"
  12307. "\x38\x05\x65\xAF\xBA\xB6\xE4\x72"
  12308. "\xA9\xEE\x05\x42\x88\xBD\x9D\x49"
  12309. "\xAD\x93\xCA\x4D\x45\x11\x43\x4D"
  12310. "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4"
  12311. "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD"
  12312. "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6"
  12313. "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69"
  12314. "\x73\x65\x65\x51\xD6\x0B\x4E\x8C"
  12315. "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B"
  12316. "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39"
  12317. "\xE8\x10\x93\x16\xC8\x68\x4C\x60"
  12318. "\x87\x70\x14\xD0\x01\x57\xCB\x42"
  12319. "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7"
  12320. "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE"
  12321. "\xFD\x72\xEC\xD7\x6F\x97\x14\x90"
  12322. "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE"
  12323. "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B"
  12324. "\x71\x80\x05\x35\x3F\x40\x0B\x21"
  12325. "\x76\xE5\xEF\x42\x6C\xDB\x31\x05"
  12326. "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2"
  12327. "\x49\x03\x5E\x77\x2E\x20\xBA\xA1"
  12328. "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E"
  12329. "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F"
  12330. "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6"
  12331. "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1"
  12332. "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00"
  12333. "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF"
  12334. "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45"
  12335. "\x91\x76\xE7\x6E\x65\x3D\x15\x86"
  12336. "\x10\xF8\xDB\x66\x97\x7C\x43\x4D"
  12337. "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A"
  12338. "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02"
  12339. "\x75\x55\x9B\xFF\x36\x73\xAB\x7C"
  12340. "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7",
  12341. .ilen = 496,
  12342. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  12343. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  12344. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  12345. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  12346. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  12347. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  12348. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  12349. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  12350. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  12351. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  12352. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  12353. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  12354. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  12355. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  12356. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  12357. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  12358. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  12359. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  12360. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  12361. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  12362. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  12363. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  12364. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  12365. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  12366. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  12367. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  12368. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  12369. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  12370. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  12371. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  12372. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  12373. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  12374. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  12375. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  12376. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  12377. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  12378. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  12379. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  12380. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  12381. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  12382. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  12383. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  12384. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  12385. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  12386. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  12387. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  12388. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  12389. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  12390. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  12391. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  12392. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  12393. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  12394. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  12395. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  12396. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  12397. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  12398. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  12399. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  12400. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  12401. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  12402. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  12403. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  12404. .rlen = 496,
  12405. .also_non_np = 1,
  12406. .np = 3,
  12407. .tap = { 496 - 20, 4, 16 },
  12408. },
  12409. };
  12410. static struct cipher_testvec tnepres_dec_tv_template[] = {
  12411. {
  12412. .input = "\x41\xcc\x6b\x31\x59\x31\x45\x97"
  12413. "\x6d\x6f\xbb\x38\x4b\x37\x21\x28",
  12414. .ilen = 16,
  12415. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  12416. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  12417. .rlen = 16,
  12418. }, {
  12419. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  12420. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  12421. .klen = 16,
  12422. .input = "\xea\xf4\xd7\xfc\xd8\x01\x34\x47"
  12423. "\x81\x45\x0b\xfa\x0c\xd6\xad\x6e",
  12424. .ilen = 16,
  12425. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  12426. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  12427. .rlen = 16,
  12428. }, {
  12429. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  12430. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  12431. "\x10\x11\x12\x13\x14\x15\x16\x17"
  12432. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  12433. .klen = 32,
  12434. .input = "\x64\xa9\x1a\x37\xed\x9f\xe7\x49"
  12435. "\xa8\x4e\x76\xd6\xf5\x0d\x78\xee",
  12436. .ilen = 16,
  12437. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  12438. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  12439. .rlen = 16,
  12440. }, { /* KeySize=128, I=121 */
  12441. .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
  12442. .klen = 16,
  12443. .input = "\x3d\xda\xbf\xc0\x06\xda\xab\x06"
  12444. "\x46\x2a\xf4\xef\x81\x54\x4e\x26",
  12445. .ilen = 16,
  12446. .result = zeroed_string,
  12447. .rlen = 16,
  12448. },
  12449. };
  12450. static struct cipher_testvec serpent_cbc_enc_tv_template[] = {
  12451. { /* Generated with Crypto++ */
  12452. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  12453. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  12454. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  12455. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  12456. .klen = 32,
  12457. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  12458. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  12459. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  12460. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  12461. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  12462. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  12463. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  12464. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  12465. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  12466. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  12467. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  12468. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  12469. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  12470. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  12471. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  12472. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  12473. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  12474. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  12475. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  12476. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  12477. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  12478. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  12479. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  12480. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  12481. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  12482. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  12483. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  12484. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  12485. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  12486. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  12487. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  12488. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  12489. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  12490. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  12491. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  12492. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  12493. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  12494. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  12495. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  12496. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  12497. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  12498. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  12499. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  12500. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  12501. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  12502. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  12503. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  12504. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  12505. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  12506. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  12507. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  12508. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  12509. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  12510. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  12511. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  12512. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  12513. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  12514. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  12515. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  12516. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  12517. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  12518. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  12519. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  12520. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  12521. .ilen = 496,
  12522. .result = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C"
  12523. "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E"
  12524. "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD"
  12525. "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C"
  12526. "\x38\x63\x35\x7E\x79\x18\x0A\xE8"
  12527. "\x67\x06\x76\xD5\xFF\x22\x2F\xDA"
  12528. "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97"
  12529. "\xFE\x53\x75\x35\x97\x7F\x51\xEA"
  12530. "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7"
  12531. "\x62\x67\xFF\x04\xC2\x18\x22\x5F"
  12532. "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E"
  12533. "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41"
  12534. "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB"
  12535. "\x72\x84\xF8\x0A\x3F\x38\x5E\x91"
  12536. "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2"
  12537. "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB"
  12538. "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A"
  12539. "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C"
  12540. "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A"
  12541. "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC"
  12542. "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97"
  12543. "\x5A\x5E\x7E\x96\x52\x20\xDC\x25"
  12544. "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C"
  12545. "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B"
  12546. "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9"
  12547. "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5"
  12548. "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B"
  12549. "\xA1\xC0\x12\x54\x4E\xC9\x20\x92"
  12550. "\x11\x00\x10\x4E\xB3\x7C\xCA\x63"
  12551. "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7"
  12552. "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D"
  12553. "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7"
  12554. "\x81\x92\x66\x67\x15\x1E\x39\x98"
  12555. "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A"
  12556. "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05"
  12557. "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B"
  12558. "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C"
  12559. "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3"
  12560. "\x96\xC6\x66\x49\xDA\x0D\x71\xAC"
  12561. "\x04\x05\x46\xD3\x90\x0F\x64\x64"
  12562. "\x01\x66\x2C\x62\x5D\x34\xD1\xCB"
  12563. "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97"
  12564. "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D"
  12565. "\x62\xA6\x19\x28\x9E\x26\xB4\x3F"
  12566. "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0"
  12567. "\x7D\xE9\x95\x45\x86\xED\xB1\xE0"
  12568. "\x8D\xE9\xC5\x86\x13\x24\x28\x7D"
  12569. "\x74\xEF\xCA\x50\x12\x7E\x64\x8F"
  12570. "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7"
  12571. "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA"
  12572. "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2"
  12573. "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E"
  12574. "\xE6\x75\x0D\x54\x64\x11\xA3\x3A"
  12575. "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E"
  12576. "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4"
  12577. "\xBA\x23\x2D\x8D\x29\x07\x12\xCF"
  12578. "\x34\xCD\x72\x7F\x01\x30\xE7\xA0"
  12579. "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2"
  12580. "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4"
  12581. "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF"
  12582. "\xFC\x66\xAA\x37\xF2\x37\x39\x6B"
  12583. "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1",
  12584. .rlen = 496,
  12585. .also_non_np = 1,
  12586. .np = 3,
  12587. .tap = { 496 - 20, 4, 16 },
  12588. },
  12589. };
  12590. static struct cipher_testvec serpent_cbc_dec_tv_template[] = {
  12591. { /* Generated with Crypto++ */
  12592. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  12593. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  12594. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  12595. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  12596. .klen = 32,
  12597. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  12598. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  12599. .input = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C"
  12600. "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E"
  12601. "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD"
  12602. "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C"
  12603. "\x38\x63\x35\x7E\x79\x18\x0A\xE8"
  12604. "\x67\x06\x76\xD5\xFF\x22\x2F\xDA"
  12605. "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97"
  12606. "\xFE\x53\x75\x35\x97\x7F\x51\xEA"
  12607. "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7"
  12608. "\x62\x67\xFF\x04\xC2\x18\x22\x5F"
  12609. "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E"
  12610. "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41"
  12611. "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB"
  12612. "\x72\x84\xF8\x0A\x3F\x38\x5E\x91"
  12613. "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2"
  12614. "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB"
  12615. "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A"
  12616. "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C"
  12617. "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A"
  12618. "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC"
  12619. "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97"
  12620. "\x5A\x5E\x7E\x96\x52\x20\xDC\x25"
  12621. "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C"
  12622. "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B"
  12623. "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9"
  12624. "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5"
  12625. "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B"
  12626. "\xA1\xC0\x12\x54\x4E\xC9\x20\x92"
  12627. "\x11\x00\x10\x4E\xB3\x7C\xCA\x63"
  12628. "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7"
  12629. "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D"
  12630. "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7"
  12631. "\x81\x92\x66\x67\x15\x1E\x39\x98"
  12632. "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A"
  12633. "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05"
  12634. "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B"
  12635. "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C"
  12636. "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3"
  12637. "\x96\xC6\x66\x49\xDA\x0D\x71\xAC"
  12638. "\x04\x05\x46\xD3\x90\x0F\x64\x64"
  12639. "\x01\x66\x2C\x62\x5D\x34\xD1\xCB"
  12640. "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97"
  12641. "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D"
  12642. "\x62\xA6\x19\x28\x9E\x26\xB4\x3F"
  12643. "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0"
  12644. "\x7D\xE9\x95\x45\x86\xED\xB1\xE0"
  12645. "\x8D\xE9\xC5\x86\x13\x24\x28\x7D"
  12646. "\x74\xEF\xCA\x50\x12\x7E\x64\x8F"
  12647. "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7"
  12648. "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA"
  12649. "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2"
  12650. "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E"
  12651. "\xE6\x75\x0D\x54\x64\x11\xA3\x3A"
  12652. "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E"
  12653. "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4"
  12654. "\xBA\x23\x2D\x8D\x29\x07\x12\xCF"
  12655. "\x34\xCD\x72\x7F\x01\x30\xE7\xA0"
  12656. "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2"
  12657. "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4"
  12658. "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF"
  12659. "\xFC\x66\xAA\x37\xF2\x37\x39\x6B"
  12660. "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1",
  12661. .ilen = 496,
  12662. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  12663. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  12664. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  12665. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  12666. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  12667. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  12668. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  12669. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  12670. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  12671. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  12672. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  12673. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  12674. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  12675. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  12676. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  12677. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  12678. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  12679. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  12680. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  12681. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  12682. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  12683. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  12684. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  12685. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  12686. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  12687. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  12688. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  12689. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  12690. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  12691. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  12692. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  12693. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  12694. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  12695. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  12696. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  12697. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  12698. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  12699. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  12700. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  12701. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  12702. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  12703. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  12704. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  12705. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  12706. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  12707. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  12708. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  12709. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  12710. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  12711. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  12712. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  12713. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  12714. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  12715. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  12716. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  12717. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  12718. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  12719. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  12720. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  12721. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  12722. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  12723. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  12724. .rlen = 496,
  12725. .also_non_np = 1,
  12726. .np = 3,
  12727. .tap = { 496 - 20, 4, 16 },
  12728. },
  12729. };
  12730. static struct cipher_testvec serpent_ctr_enc_tv_template[] = {
  12731. { /* Generated with Crypto++ */
  12732. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  12733. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  12734. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  12735. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  12736. .klen = 32,
  12737. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  12738. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  12739. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  12740. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  12741. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  12742. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  12743. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  12744. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  12745. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  12746. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  12747. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  12748. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  12749. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  12750. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  12751. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  12752. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  12753. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  12754. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  12755. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  12756. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  12757. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  12758. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  12759. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  12760. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  12761. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  12762. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  12763. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  12764. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  12765. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  12766. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  12767. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  12768. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  12769. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  12770. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  12771. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  12772. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  12773. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  12774. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  12775. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  12776. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  12777. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  12778. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  12779. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  12780. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  12781. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  12782. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  12783. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  12784. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  12785. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  12786. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  12787. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  12788. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  12789. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  12790. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  12791. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  12792. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  12793. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  12794. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  12795. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  12796. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  12797. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  12798. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  12799. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  12800. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  12801. .ilen = 496,
  12802. .result = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
  12803. "\x37\x69\xE3\x3A\x22\x85\x48\x46"
  12804. "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
  12805. "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
  12806. "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
  12807. "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
  12808. "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
  12809. "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
  12810. "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
  12811. "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
  12812. "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
  12813. "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
  12814. "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
  12815. "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
  12816. "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
  12817. "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
  12818. "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
  12819. "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
  12820. "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
  12821. "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
  12822. "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
  12823. "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
  12824. "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
  12825. "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
  12826. "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
  12827. "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
  12828. "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
  12829. "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
  12830. "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
  12831. "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
  12832. "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
  12833. "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
  12834. "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
  12835. "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
  12836. "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
  12837. "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
  12838. "\x07\x97\x38\x4B\x5C\x56\x98\x67"
  12839. "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
  12840. "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
  12841. "\x18\x06\x15\x9D\x5A\x10\x13\x37"
  12842. "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
  12843. "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
  12844. "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
  12845. "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
  12846. "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
  12847. "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
  12848. "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
  12849. "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
  12850. "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
  12851. "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
  12852. "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
  12853. "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
  12854. "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
  12855. "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
  12856. "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
  12857. "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
  12858. "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
  12859. "\x90\x47\x40\x92\xE6\x69\xD1\x96"
  12860. "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
  12861. "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
  12862. "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
  12863. "\x40\x53\x77\x8C\x15\xF8\x8D\x13",
  12864. .rlen = 496,
  12865. }, { /* Generated with Crypto++ */
  12866. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  12867. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  12868. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  12869. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  12870. .klen = 32,
  12871. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  12872. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  12873. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  12874. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  12875. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  12876. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  12877. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  12878. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  12879. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  12880. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  12881. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  12882. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  12883. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  12884. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  12885. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  12886. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  12887. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  12888. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  12889. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  12890. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  12891. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  12892. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  12893. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  12894. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  12895. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  12896. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  12897. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  12898. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  12899. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  12900. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  12901. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  12902. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  12903. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  12904. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  12905. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  12906. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  12907. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  12908. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  12909. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  12910. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  12911. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  12912. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  12913. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  12914. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  12915. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  12916. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  12917. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  12918. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  12919. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  12920. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  12921. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  12922. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  12923. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  12924. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  12925. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  12926. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  12927. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  12928. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  12929. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  12930. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  12931. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  12932. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  12933. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  12934. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  12935. "\x2B\xC2\x59",
  12936. .ilen = 499,
  12937. .result = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
  12938. "\x37\x69\xE3\x3A\x22\x85\x48\x46"
  12939. "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
  12940. "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
  12941. "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
  12942. "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
  12943. "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
  12944. "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
  12945. "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
  12946. "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
  12947. "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
  12948. "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
  12949. "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
  12950. "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
  12951. "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
  12952. "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
  12953. "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
  12954. "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
  12955. "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
  12956. "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
  12957. "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
  12958. "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
  12959. "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
  12960. "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
  12961. "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
  12962. "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
  12963. "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
  12964. "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
  12965. "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
  12966. "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
  12967. "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
  12968. "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
  12969. "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
  12970. "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
  12971. "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
  12972. "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
  12973. "\x07\x97\x38\x4B\x5C\x56\x98\x67"
  12974. "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
  12975. "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
  12976. "\x18\x06\x15\x9D\x5A\x10\x13\x37"
  12977. "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
  12978. "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
  12979. "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
  12980. "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
  12981. "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
  12982. "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
  12983. "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
  12984. "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
  12985. "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
  12986. "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
  12987. "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
  12988. "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
  12989. "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
  12990. "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
  12991. "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
  12992. "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
  12993. "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
  12994. "\x90\x47\x40\x92\xE6\x69\xD1\x96"
  12995. "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
  12996. "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
  12997. "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
  12998. "\x40\x53\x77\x8C\x15\xF8\x8D\x13"
  12999. "\x38\xE2\xE5",
  13000. .rlen = 499,
  13001. .also_non_np = 1,
  13002. .np = 2,
  13003. .tap = { 499 - 16, 16 },
  13004. }, { /* Generated with Crypto++ */
  13005. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  13006. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  13007. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  13008. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  13009. .klen = 32,
  13010. .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
  13011. "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
  13012. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  13013. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  13014. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  13015. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  13016. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  13017. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  13018. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  13019. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  13020. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  13021. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  13022. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  13023. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  13024. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  13025. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  13026. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  13027. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  13028. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  13029. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  13030. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  13031. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  13032. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  13033. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  13034. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  13035. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  13036. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  13037. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  13038. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  13039. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  13040. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  13041. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  13042. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  13043. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  13044. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  13045. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  13046. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  13047. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  13048. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  13049. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  13050. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  13051. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  13052. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  13053. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  13054. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  13055. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  13056. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  13057. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  13058. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  13059. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  13060. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  13061. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  13062. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  13063. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  13064. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  13065. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  13066. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  13067. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  13068. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  13069. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  13070. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  13071. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  13072. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  13073. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  13074. .ilen = 496,
  13075. .result = "\x06\x9A\xF8\xB4\x53\x88\x62\xFC"
  13076. "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D"
  13077. "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC"
  13078. "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A"
  13079. "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E"
  13080. "\x71\x28\x06\x4F\xE8\x08\x39\xDA"
  13081. "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69"
  13082. "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B"
  13083. "\x9F\x3E\x39\x79\xF0\xCD\x64\x35"
  13084. "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B"
  13085. "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18"
  13086. "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2"
  13087. "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47"
  13088. "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2"
  13089. "\x7D\xE2\x43\x81\x86\x72\x2E\xB1"
  13090. "\x39\xF6\x95\xE1\x1F\xCB\x76\x33"
  13091. "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F"
  13092. "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C"
  13093. "\x70\xFE\x52\xAA\x93\x3C\xC4\x46"
  13094. "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE"
  13095. "\x25\x92\xB2\x63\xBD\x49\x77\xB4"
  13096. "\x22\xA4\x6A\xD5\x04\xE0\x45\x58"
  13097. "\x1C\x34\x96\x7C\x03\x0C\x13\xA2"
  13098. "\x05\x22\xE2\xCB\x5A\x35\x03\x09"
  13099. "\x40\xD2\x82\x05\xCA\x58\x73\xF2"
  13100. "\x29\x5E\x01\x47\x13\x32\x78\xBE"
  13101. "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C"
  13102. "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1"
  13103. "\x38\x35\x11\x26\x4A\xB4\x06\x32"
  13104. "\xFA\xD2\x07\x77\xB3\x74\x98\x80"
  13105. "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF"
  13106. "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F"
  13107. "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65"
  13108. "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA"
  13109. "\xD6\x9B\xC9\x6D\x58\x40\x81\x02"
  13110. "\x73\x44\x4E\x43\x6E\x37\xBB\x11"
  13111. "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA"
  13112. "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8"
  13113. "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B"
  13114. "\x07\xB5\x82\x3A\xC4\xE8\x42\x51"
  13115. "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F"
  13116. "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7"
  13117. "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F"
  13118. "\xBF\xF9\xAC\x59\x50\xA8\x08\x70"
  13119. "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2"
  13120. "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD"
  13121. "\xC1\x03\x9A\xAA\x89\x8B\x32\x46"
  13122. "\x5B\x18\x27\xBA\x46\xAA\x64\xDE"
  13123. "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB"
  13124. "\x7E\xDA\xEC\x30\x17\x19\xF8\x80"
  13125. "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28"
  13126. "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE"
  13127. "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8"
  13128. "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B"
  13129. "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E"
  13130. "\xDC\x34\x27\x89\x98\xCE\x1C\xA2"
  13131. "\xD8\xB8\x90\xBE\xEC\x72\x28\x13"
  13132. "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50"
  13133. "\xB7\x99\x65\x8A\xC9\xC6\x21\x34"
  13134. "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17"
  13135. "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0"
  13136. "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20",
  13137. .rlen = 496,
  13138. },
  13139. };
  13140. static struct cipher_testvec serpent_ctr_dec_tv_template[] = {
  13141. { /* Generated with Crypto++ */
  13142. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  13143. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  13144. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  13145. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  13146. .klen = 32,
  13147. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  13148. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  13149. .input = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
  13150. "\x37\x69\xE3\x3A\x22\x85\x48\x46"
  13151. "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
  13152. "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
  13153. "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
  13154. "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
  13155. "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
  13156. "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
  13157. "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
  13158. "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
  13159. "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
  13160. "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
  13161. "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
  13162. "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
  13163. "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
  13164. "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
  13165. "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
  13166. "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
  13167. "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
  13168. "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
  13169. "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
  13170. "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
  13171. "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
  13172. "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
  13173. "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
  13174. "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
  13175. "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
  13176. "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
  13177. "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
  13178. "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
  13179. "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
  13180. "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
  13181. "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
  13182. "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
  13183. "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
  13184. "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
  13185. "\x07\x97\x38\x4B\x5C\x56\x98\x67"
  13186. "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
  13187. "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
  13188. "\x18\x06\x15\x9D\x5A\x10\x13\x37"
  13189. "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
  13190. "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
  13191. "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
  13192. "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
  13193. "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
  13194. "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
  13195. "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
  13196. "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
  13197. "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
  13198. "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
  13199. "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
  13200. "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
  13201. "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
  13202. "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
  13203. "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
  13204. "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
  13205. "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
  13206. "\x90\x47\x40\x92\xE6\x69\xD1\x96"
  13207. "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
  13208. "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
  13209. "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
  13210. "\x40\x53\x77\x8C\x15\xF8\x8D\x13",
  13211. .ilen = 496,
  13212. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  13213. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  13214. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  13215. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  13216. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  13217. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  13218. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  13219. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  13220. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  13221. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  13222. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  13223. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  13224. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  13225. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  13226. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  13227. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  13228. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  13229. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  13230. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  13231. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  13232. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  13233. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  13234. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  13235. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  13236. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  13237. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  13238. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  13239. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  13240. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  13241. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  13242. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  13243. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  13244. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  13245. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  13246. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  13247. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  13248. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  13249. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  13250. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  13251. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  13252. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  13253. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  13254. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  13255. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  13256. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  13257. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  13258. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  13259. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  13260. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  13261. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  13262. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  13263. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  13264. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  13265. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  13266. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  13267. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  13268. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  13269. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  13270. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  13271. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  13272. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  13273. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  13274. .rlen = 496,
  13275. }, { /* Generated with Crypto++ */
  13276. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  13277. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  13278. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  13279. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  13280. .klen = 32,
  13281. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  13282. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  13283. .input = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
  13284. "\x37\x69\xE3\x3A\x22\x85\x48\x46"
  13285. "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
  13286. "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
  13287. "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
  13288. "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
  13289. "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
  13290. "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
  13291. "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
  13292. "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
  13293. "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
  13294. "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
  13295. "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
  13296. "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
  13297. "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
  13298. "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
  13299. "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
  13300. "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
  13301. "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
  13302. "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
  13303. "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
  13304. "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
  13305. "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
  13306. "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
  13307. "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
  13308. "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
  13309. "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
  13310. "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
  13311. "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
  13312. "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
  13313. "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
  13314. "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
  13315. "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
  13316. "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
  13317. "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
  13318. "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
  13319. "\x07\x97\x38\x4B\x5C\x56\x98\x67"
  13320. "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
  13321. "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
  13322. "\x18\x06\x15\x9D\x5A\x10\x13\x37"
  13323. "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
  13324. "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
  13325. "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
  13326. "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
  13327. "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
  13328. "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
  13329. "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
  13330. "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
  13331. "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
  13332. "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
  13333. "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
  13334. "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
  13335. "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
  13336. "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
  13337. "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
  13338. "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
  13339. "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
  13340. "\x90\x47\x40\x92\xE6\x69\xD1\x96"
  13341. "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
  13342. "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
  13343. "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
  13344. "\x40\x53\x77\x8C\x15\xF8\x8D\x13"
  13345. "\x38\xE2\xE5",
  13346. .ilen = 499,
  13347. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  13348. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  13349. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  13350. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  13351. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  13352. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  13353. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  13354. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  13355. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  13356. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  13357. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  13358. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  13359. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  13360. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  13361. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  13362. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  13363. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  13364. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  13365. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  13366. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  13367. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  13368. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  13369. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  13370. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  13371. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  13372. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  13373. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  13374. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  13375. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  13376. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  13377. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  13378. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  13379. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  13380. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  13381. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  13382. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  13383. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  13384. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  13385. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  13386. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  13387. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  13388. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  13389. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  13390. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  13391. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  13392. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  13393. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  13394. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  13395. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  13396. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  13397. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  13398. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  13399. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  13400. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  13401. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  13402. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  13403. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  13404. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  13405. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  13406. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  13407. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  13408. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  13409. "\x2B\xC2\x59",
  13410. .rlen = 499,
  13411. .also_non_np = 1,
  13412. .np = 2,
  13413. .tap = { 499 - 16, 16 },
  13414. }, { /* Generated with Crypto++ */
  13415. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  13416. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  13417. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  13418. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  13419. .klen = 32,
  13420. .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
  13421. "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
  13422. .input = "\x06\x9A\xF8\xB4\x53\x88\x62\xFC"
  13423. "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D"
  13424. "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC"
  13425. "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A"
  13426. "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E"
  13427. "\x71\x28\x06\x4F\xE8\x08\x39\xDA"
  13428. "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69"
  13429. "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B"
  13430. "\x9F\x3E\x39\x79\xF0\xCD\x64\x35"
  13431. "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B"
  13432. "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18"
  13433. "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2"
  13434. "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47"
  13435. "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2"
  13436. "\x7D\xE2\x43\x81\x86\x72\x2E\xB1"
  13437. "\x39\xF6\x95\xE1\x1F\xCB\x76\x33"
  13438. "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F"
  13439. "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C"
  13440. "\x70\xFE\x52\xAA\x93\x3C\xC4\x46"
  13441. "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE"
  13442. "\x25\x92\xB2\x63\xBD\x49\x77\xB4"
  13443. "\x22\xA4\x6A\xD5\x04\xE0\x45\x58"
  13444. "\x1C\x34\x96\x7C\x03\x0C\x13\xA2"
  13445. "\x05\x22\xE2\xCB\x5A\x35\x03\x09"
  13446. "\x40\xD2\x82\x05\xCA\x58\x73\xF2"
  13447. "\x29\x5E\x01\x47\x13\x32\x78\xBE"
  13448. "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C"
  13449. "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1"
  13450. "\x38\x35\x11\x26\x4A\xB4\x06\x32"
  13451. "\xFA\xD2\x07\x77\xB3\x74\x98\x80"
  13452. "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF"
  13453. "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F"
  13454. "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65"
  13455. "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA"
  13456. "\xD6\x9B\xC9\x6D\x58\x40\x81\x02"
  13457. "\x73\x44\x4E\x43\x6E\x37\xBB\x11"
  13458. "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA"
  13459. "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8"
  13460. "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B"
  13461. "\x07\xB5\x82\x3A\xC4\xE8\x42\x51"
  13462. "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F"
  13463. "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7"
  13464. "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F"
  13465. "\xBF\xF9\xAC\x59\x50\xA8\x08\x70"
  13466. "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2"
  13467. "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD"
  13468. "\xC1\x03\x9A\xAA\x89\x8B\x32\x46"
  13469. "\x5B\x18\x27\xBA\x46\xAA\x64\xDE"
  13470. "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB"
  13471. "\x7E\xDA\xEC\x30\x17\x19\xF8\x80"
  13472. "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28"
  13473. "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE"
  13474. "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8"
  13475. "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B"
  13476. "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E"
  13477. "\xDC\x34\x27\x89\x98\xCE\x1C\xA2"
  13478. "\xD8\xB8\x90\xBE\xEC\x72\x28\x13"
  13479. "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50"
  13480. "\xB7\x99\x65\x8A\xC9\xC6\x21\x34"
  13481. "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17"
  13482. "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0"
  13483. "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20",
  13484. .ilen = 496,
  13485. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  13486. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  13487. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  13488. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  13489. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  13490. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  13491. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  13492. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  13493. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  13494. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  13495. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  13496. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  13497. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  13498. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  13499. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  13500. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  13501. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  13502. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  13503. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  13504. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  13505. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  13506. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  13507. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  13508. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  13509. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  13510. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  13511. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  13512. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  13513. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  13514. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  13515. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  13516. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  13517. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  13518. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  13519. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  13520. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  13521. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  13522. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  13523. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  13524. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  13525. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  13526. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  13527. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  13528. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  13529. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  13530. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  13531. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  13532. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  13533. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  13534. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  13535. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  13536. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  13537. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  13538. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  13539. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  13540. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  13541. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  13542. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  13543. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  13544. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  13545. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  13546. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  13547. .rlen = 496,
  13548. },
  13549. };
  13550. static struct cipher_testvec serpent_lrw_enc_tv_template[] = {
  13551. /* Generated from AES-LRW test vectors */
  13552. {
  13553. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  13554. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  13555. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  13556. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  13557. .klen = 32,
  13558. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13559. "\x00\x00\x00\x00\x00\x00\x00\x01",
  13560. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  13561. "\x38\x39\x41\x42\x43\x44\x45\x46",
  13562. .ilen = 16,
  13563. .result = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79"
  13564. "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a",
  13565. .rlen = 16,
  13566. }, {
  13567. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  13568. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  13569. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  13570. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  13571. .klen = 32,
  13572. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13573. "\x00\x00\x00\x00\x00\x00\x00\x02",
  13574. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  13575. "\x38\x39\x41\x42\x43\x44\x45\x46",
  13576. .ilen = 16,
  13577. .result = "\xfd\xb2\x66\x98\x80\x96\x55\xad"
  13578. "\x08\x94\x54\x9c\x21\x7c\x69\xe3",
  13579. .rlen = 16,
  13580. }, {
  13581. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  13582. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  13583. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  13584. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  13585. .klen = 32,
  13586. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13587. "\x00\x00\x00\x02\x00\x00\x00\x00",
  13588. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  13589. "\x38\x39\x41\x42\x43\x44\x45\x46",
  13590. .ilen = 16,
  13591. .result = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34"
  13592. "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c",
  13593. .rlen = 16,
  13594. }, {
  13595. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  13596. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  13597. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  13598. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  13599. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  13600. .klen = 40,
  13601. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13602. "\x00\x00\x00\x00\x00\x00\x00\x01",
  13603. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  13604. "\x38\x39\x41\x42\x43\x44\x45\x46",
  13605. .ilen = 16,
  13606. .result = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc"
  13607. "\x5d\x45\x95\x30\x8f\xff\x2f\x1b",
  13608. .rlen = 16,
  13609. }, {
  13610. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  13611. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  13612. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  13613. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  13614. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  13615. .klen = 40,
  13616. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13617. "\x00\x00\x00\x02\x00\x00\x00\x00",
  13618. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  13619. "\x38\x39\x41\x42\x43\x44\x45\x46",
  13620. .ilen = 16,
  13621. .result = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f"
  13622. "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26",
  13623. .rlen = 16,
  13624. }, {
  13625. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  13626. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  13627. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  13628. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  13629. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  13630. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  13631. .klen = 48,
  13632. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13633. "\x00\x00\x00\x00\x00\x00\x00\x01",
  13634. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  13635. "\x38\x39\x41\x42\x43\x44\x45\x46",
  13636. .ilen = 16,
  13637. .result = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c"
  13638. "\x2e\x18\xe6\x99\xcd\xd3\x15\x68",
  13639. .rlen = 16,
  13640. }, {
  13641. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  13642. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  13643. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  13644. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  13645. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  13646. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  13647. .klen = 48,
  13648. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13649. "\x00\x00\x00\x02\x00\x00\x00\x00",
  13650. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  13651. "\x38\x39\x41\x42\x43\x44\x45\x46",
  13652. .ilen = 16,
  13653. .result = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6"
  13654. "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf",
  13655. .rlen = 16,
  13656. }, {
  13657. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  13658. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  13659. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  13660. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  13661. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  13662. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  13663. .klen = 48,
  13664. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13665. "\x00\x00\x00\x00\x00\x00\x00\x01",
  13666. .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  13667. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  13668. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  13669. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  13670. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  13671. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  13672. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  13673. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  13674. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  13675. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  13676. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  13677. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  13678. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  13679. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  13680. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  13681. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  13682. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  13683. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  13684. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  13685. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  13686. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  13687. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  13688. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  13689. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  13690. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  13691. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  13692. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  13693. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  13694. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  13695. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  13696. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  13697. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  13698. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  13699. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  13700. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  13701. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  13702. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  13703. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  13704. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  13705. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  13706. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  13707. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  13708. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  13709. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  13710. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  13711. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  13712. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  13713. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  13714. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  13715. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  13716. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  13717. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  13718. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  13719. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  13720. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  13721. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  13722. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  13723. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  13724. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  13725. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  13726. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  13727. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  13728. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  13729. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  13730. .ilen = 512,
  13731. .result = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74"
  13732. "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d"
  13733. "\x82\xec\xf1\x5f\x03\x6d\x02\x58"
  13734. "\x90\x67\xfc\xdd\x8d\xe1\x38\x08"
  13735. "\x7b\xc9\x9b\x4b\x04\x09\x50\x15"
  13736. "\xce\xab\xda\x33\x30\x20\x12\xfa"
  13737. "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9"
  13738. "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c"
  13739. "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22"
  13740. "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b"
  13741. "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5"
  13742. "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5"
  13743. "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b"
  13744. "\x89\x58\x7c\x9a\xae\x26\xe8\xb7"
  13745. "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d"
  13746. "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47"
  13747. "\x5f\x03\x8b\xdd\x94\xd1\xee\x12"
  13748. "\xa7\x83\x80\xf2\xc1\x15\x74\x4f"
  13749. "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f"
  13750. "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52"
  13751. "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98"
  13752. "\x04\xd6\xdd\x4c\x00\x64\xd9\x54"
  13753. "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8"
  13754. "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b"
  13755. "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9"
  13756. "\x04\xc3\x6f\x17\x66\xa9\x1f\x59"
  13757. "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b"
  13758. "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43"
  13759. "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb"
  13760. "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49"
  13761. "\xb3\xac\x5d\xcf\x31\xa0\x27\x26"
  13762. "\x21\xbe\x94\x2e\x19\xea\xf4\xee"
  13763. "\xb5\x13\x89\xf7\x94\x0b\xef\x59"
  13764. "\x44\xc5\x78\x8b\x3c\x3b\x71\x20"
  13765. "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2"
  13766. "\xb4\x11\x0e\x2c\x61\xa1\x52\x46"
  13767. "\x18\x11\x16\xc6\x86\x44\xa7\xaf"
  13768. "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b"
  13769. "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea"
  13770. "\x3f\x0e\x90\xd6\x8f\x83\x30\x64"
  13771. "\xb5\x51\x2d\x08\x3c\xcd\x99\x36"
  13772. "\x96\xd4\xb1\xb5\x48\x30\xca\x48"
  13773. "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d"
  13774. "\x12\x33\x2f\xc0\xe8\xda\xec\x8a"
  13775. "\xe1\x88\x72\x63\xde\x20\xa3\xe1"
  13776. "\x8e\xac\x84\x37\x35\xf5\xf7\x3f"
  13777. "\x00\x02\x0e\xe4\xc1\x53\x68\x3f"
  13778. "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d"
  13779. "\x7c\x83\xd0\xbd\xaa\x97\x35\x36"
  13780. "\x98\x88\x59\x5d\xe7\x24\xe3\x90"
  13781. "\x9d\x30\x47\xa7\xc3\x60\x35\xf4"
  13782. "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b"
  13783. "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d"
  13784. "\x49\x5a\x3c\x8a\xa3\x01\xae\x25"
  13785. "\x42\xab\xd2\x87\x1b\x35\xd6\xd2"
  13786. "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39"
  13787. "\x1c\x58\xa2\xb4\xd0\x78\x55\x72"
  13788. "\x76\x59\xea\xd9\xd7\x6e\x63\x8b"
  13789. "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68"
  13790. "\x86\x28\xd1\xbb\x54\x8d\x66\xad"
  13791. "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd"
  13792. "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a"
  13793. "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd"
  13794. "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7",
  13795. .rlen = 512,
  13796. .also_non_np = 1,
  13797. .np = 3,
  13798. .tap = { 512 - 20, 4, 16 },
  13799. },
  13800. };
  13801. static struct cipher_testvec serpent_lrw_dec_tv_template[] = {
  13802. /* Generated from AES-LRW test vectors */
  13803. /* same as enc vectors with input and result reversed */
  13804. {
  13805. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  13806. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  13807. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  13808. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  13809. .klen = 32,
  13810. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13811. "\x00\x00\x00\x00\x00\x00\x00\x01",
  13812. .input = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79"
  13813. "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a",
  13814. .ilen = 16,
  13815. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  13816. "\x38\x39\x41\x42\x43\x44\x45\x46",
  13817. .rlen = 16,
  13818. }, {
  13819. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  13820. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  13821. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  13822. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  13823. .klen = 32,
  13824. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13825. "\x00\x00\x00\x00\x00\x00\x00\x02",
  13826. .input = "\xfd\xb2\x66\x98\x80\x96\x55\xad"
  13827. "\x08\x94\x54\x9c\x21\x7c\x69\xe3",
  13828. .ilen = 16,
  13829. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  13830. "\x38\x39\x41\x42\x43\x44\x45\x46",
  13831. .rlen = 16,
  13832. }, {
  13833. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  13834. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  13835. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  13836. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  13837. .klen = 32,
  13838. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13839. "\x00\x00\x00\x02\x00\x00\x00\x00",
  13840. .input = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34"
  13841. "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c",
  13842. .ilen = 16,
  13843. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  13844. "\x38\x39\x41\x42\x43\x44\x45\x46",
  13845. .rlen = 16,
  13846. }, {
  13847. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  13848. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  13849. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  13850. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  13851. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  13852. .klen = 40,
  13853. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13854. "\x00\x00\x00\x00\x00\x00\x00\x01",
  13855. .input = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc"
  13856. "\x5d\x45\x95\x30\x8f\xff\x2f\x1b",
  13857. .ilen = 16,
  13858. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  13859. "\x38\x39\x41\x42\x43\x44\x45\x46",
  13860. .rlen = 16,
  13861. }, {
  13862. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  13863. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  13864. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  13865. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  13866. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  13867. .klen = 40,
  13868. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13869. "\x00\x00\x00\x02\x00\x00\x00\x00",
  13870. .input = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f"
  13871. "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26",
  13872. .ilen = 16,
  13873. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  13874. "\x38\x39\x41\x42\x43\x44\x45\x46",
  13875. .rlen = 16,
  13876. }, {
  13877. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  13878. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  13879. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  13880. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  13881. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  13882. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  13883. .klen = 48,
  13884. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13885. "\x00\x00\x00\x00\x00\x00\x00\x01",
  13886. .input = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c"
  13887. "\x2e\x18\xe6\x99\xcd\xd3\x15\x68",
  13888. .ilen = 16,
  13889. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  13890. "\x38\x39\x41\x42\x43\x44\x45\x46",
  13891. .rlen = 16,
  13892. }, {
  13893. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  13894. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  13895. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  13896. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  13897. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  13898. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  13899. .klen = 48,
  13900. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13901. "\x00\x00\x00\x02\x00\x00\x00\x00",
  13902. .input = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6"
  13903. "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf",
  13904. .ilen = 16,
  13905. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  13906. "\x38\x39\x41\x42\x43\x44\x45\x46",
  13907. .rlen = 16,
  13908. }, {
  13909. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  13910. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  13911. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  13912. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  13913. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  13914. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  13915. .klen = 48,
  13916. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  13917. "\x00\x00\x00\x00\x00\x00\x00\x01",
  13918. .input = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74"
  13919. "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d"
  13920. "\x82\xec\xf1\x5f\x03\x6d\x02\x58"
  13921. "\x90\x67\xfc\xdd\x8d\xe1\x38\x08"
  13922. "\x7b\xc9\x9b\x4b\x04\x09\x50\x15"
  13923. "\xce\xab\xda\x33\x30\x20\x12\xfa"
  13924. "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9"
  13925. "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c"
  13926. "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22"
  13927. "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b"
  13928. "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5"
  13929. "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5"
  13930. "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b"
  13931. "\x89\x58\x7c\x9a\xae\x26\xe8\xb7"
  13932. "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d"
  13933. "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47"
  13934. "\x5f\x03\x8b\xdd\x94\xd1\xee\x12"
  13935. "\xa7\x83\x80\xf2\xc1\x15\x74\x4f"
  13936. "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f"
  13937. "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52"
  13938. "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98"
  13939. "\x04\xd6\xdd\x4c\x00\x64\xd9\x54"
  13940. "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8"
  13941. "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b"
  13942. "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9"
  13943. "\x04\xc3\x6f\x17\x66\xa9\x1f\x59"
  13944. "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b"
  13945. "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43"
  13946. "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb"
  13947. "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49"
  13948. "\xb3\xac\x5d\xcf\x31\xa0\x27\x26"
  13949. "\x21\xbe\x94\x2e\x19\xea\xf4\xee"
  13950. "\xb5\x13\x89\xf7\x94\x0b\xef\x59"
  13951. "\x44\xc5\x78\x8b\x3c\x3b\x71\x20"
  13952. "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2"
  13953. "\xb4\x11\x0e\x2c\x61\xa1\x52\x46"
  13954. "\x18\x11\x16\xc6\x86\x44\xa7\xaf"
  13955. "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b"
  13956. "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea"
  13957. "\x3f\x0e\x90\xd6\x8f\x83\x30\x64"
  13958. "\xb5\x51\x2d\x08\x3c\xcd\x99\x36"
  13959. "\x96\xd4\xb1\xb5\x48\x30\xca\x48"
  13960. "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d"
  13961. "\x12\x33\x2f\xc0\xe8\xda\xec\x8a"
  13962. "\xe1\x88\x72\x63\xde\x20\xa3\xe1"
  13963. "\x8e\xac\x84\x37\x35\xf5\xf7\x3f"
  13964. "\x00\x02\x0e\xe4\xc1\x53\x68\x3f"
  13965. "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d"
  13966. "\x7c\x83\xd0\xbd\xaa\x97\x35\x36"
  13967. "\x98\x88\x59\x5d\xe7\x24\xe3\x90"
  13968. "\x9d\x30\x47\xa7\xc3\x60\x35\xf4"
  13969. "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b"
  13970. "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d"
  13971. "\x49\x5a\x3c\x8a\xa3\x01\xae\x25"
  13972. "\x42\xab\xd2\x87\x1b\x35\xd6\xd2"
  13973. "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39"
  13974. "\x1c\x58\xa2\xb4\xd0\x78\x55\x72"
  13975. "\x76\x59\xea\xd9\xd7\x6e\x63\x8b"
  13976. "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68"
  13977. "\x86\x28\xd1\xbb\x54\x8d\x66\xad"
  13978. "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd"
  13979. "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a"
  13980. "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd"
  13981. "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7",
  13982. .ilen = 512,
  13983. .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  13984. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  13985. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  13986. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  13987. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  13988. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  13989. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  13990. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  13991. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  13992. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  13993. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  13994. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  13995. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  13996. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  13997. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  13998. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  13999. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  14000. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  14001. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  14002. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  14003. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  14004. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  14005. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  14006. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  14007. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  14008. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  14009. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  14010. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  14011. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  14012. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  14013. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  14014. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  14015. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  14016. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  14017. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  14018. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  14019. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  14020. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  14021. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  14022. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  14023. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  14024. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  14025. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  14026. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  14027. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  14028. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  14029. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  14030. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  14031. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  14032. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  14033. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  14034. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  14035. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  14036. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  14037. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  14038. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  14039. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  14040. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  14041. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  14042. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  14043. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  14044. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  14045. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  14046. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  14047. .rlen = 512,
  14048. .also_non_np = 1,
  14049. .np = 3,
  14050. .tap = { 512 - 20, 4, 16 },
  14051. },
  14052. };
  14053. static struct cipher_testvec serpent_xts_enc_tv_template[] = {
  14054. /* Generated from AES-XTS test vectors */
  14055. {
  14056. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  14057. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14058. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14059. "\x00\x00\x00\x00\x00\x00\x00\x00",
  14060. .klen = 32,
  14061. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  14062. "\x00\x00\x00\x00\x00\x00\x00\x00",
  14063. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  14064. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14065. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14066. "\x00\x00\x00\x00\x00\x00\x00\x00",
  14067. .ilen = 32,
  14068. .result = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64"
  14069. "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4"
  14070. "\x6a\x31\xc5\xf3\x00\xca\xb9\x16"
  14071. "\xde\xe2\x77\x66\xf7\xfe\x62\x08",
  14072. .rlen = 32,
  14073. }, {
  14074. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  14075. "\x11\x11\x11\x11\x11\x11\x11\x11"
  14076. "\x22\x22\x22\x22\x22\x22\x22\x22"
  14077. "\x22\x22\x22\x22\x22\x22\x22\x22",
  14078. .klen = 32,
  14079. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  14080. "\x00\x00\x00\x00\x00\x00\x00\x00",
  14081. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  14082. "\x44\x44\x44\x44\x44\x44\x44\x44"
  14083. "\x44\x44\x44\x44\x44\x44\x44\x44"
  14084. "\x44\x44\x44\x44\x44\x44\x44\x44",
  14085. .ilen = 32,
  14086. .result = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98"
  14087. "\x41\x86\x12\xaf\xb3\xd7\x68\x13"
  14088. "\xed\x81\xcd\x06\x87\x43\x1a\xbb"
  14089. "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe",
  14090. .rlen = 32,
  14091. }, {
  14092. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  14093. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  14094. "\x22\x22\x22\x22\x22\x22\x22\x22"
  14095. "\x22\x22\x22\x22\x22\x22\x22\x22",
  14096. .klen = 32,
  14097. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  14098. "\x00\x00\x00\x00\x00\x00\x00\x00",
  14099. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  14100. "\x44\x44\x44\x44\x44\x44\x44\x44"
  14101. "\x44\x44\x44\x44\x44\x44\x44\x44"
  14102. "\x44\x44\x44\x44\x44\x44\x44\x44",
  14103. .ilen = 32,
  14104. .result = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61"
  14105. "\xb6\x1c\x81\x8f\x2c\x87\x60\x89"
  14106. "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86"
  14107. "\xc1\x68\x45\xaa\x00\xe9\x24\xc5",
  14108. .rlen = 32,
  14109. }, {
  14110. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  14111. "\x23\x53\x60\x28\x74\x71\x35\x26"
  14112. "\x31\x41\x59\x26\x53\x58\x97\x93"
  14113. "\x23\x84\x62\x64\x33\x83\x27\x95",
  14114. .klen = 32,
  14115. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  14116. "\x00\x00\x00\x00\x00\x00\x00\x00",
  14117. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  14118. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  14119. "\x10\x11\x12\x13\x14\x15\x16\x17"
  14120. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  14121. "\x20\x21\x22\x23\x24\x25\x26\x27"
  14122. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  14123. "\x30\x31\x32\x33\x34\x35\x36\x37"
  14124. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  14125. "\x40\x41\x42\x43\x44\x45\x46\x47"
  14126. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  14127. "\x50\x51\x52\x53\x54\x55\x56\x57"
  14128. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  14129. "\x60\x61\x62\x63\x64\x65\x66\x67"
  14130. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  14131. "\x70\x71\x72\x73\x74\x75\x76\x77"
  14132. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  14133. "\x80\x81\x82\x83\x84\x85\x86\x87"
  14134. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  14135. "\x90\x91\x92\x93\x94\x95\x96\x97"
  14136. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  14137. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  14138. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  14139. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  14140. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  14141. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  14142. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  14143. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  14144. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  14145. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  14146. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  14147. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  14148. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  14149. "\x00\x01\x02\x03\x04\x05\x06\x07"
  14150. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  14151. "\x10\x11\x12\x13\x14\x15\x16\x17"
  14152. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  14153. "\x20\x21\x22\x23\x24\x25\x26\x27"
  14154. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  14155. "\x30\x31\x32\x33\x34\x35\x36\x37"
  14156. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  14157. "\x40\x41\x42\x43\x44\x45\x46\x47"
  14158. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  14159. "\x50\x51\x52\x53\x54\x55\x56\x57"
  14160. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  14161. "\x60\x61\x62\x63\x64\x65\x66\x67"
  14162. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  14163. "\x70\x71\x72\x73\x74\x75\x76\x77"
  14164. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  14165. "\x80\x81\x82\x83\x84\x85\x86\x87"
  14166. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  14167. "\x90\x91\x92\x93\x94\x95\x96\x97"
  14168. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  14169. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  14170. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  14171. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  14172. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  14173. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  14174. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  14175. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  14176. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  14177. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  14178. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  14179. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  14180. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  14181. .ilen = 512,
  14182. .result = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b"
  14183. "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53"
  14184. "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e"
  14185. "\x28\xca\xb0\x22\xb3\x85\x75\xf4"
  14186. "\x00\x5c\x75\x14\x06\xd6\x25\x82"
  14187. "\xe6\xcb\x08\xf7\x29\x90\x23\x8e"
  14188. "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3"
  14189. "\x80\x51\x67\xb5\x0b\x85\x69\xe8"
  14190. "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3"
  14191. "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0"
  14192. "\x63\x5a\x16\x0f\xf0\xce\x66\x1f"
  14193. "\x2c\x21\x07\xf1\xa4\x03\xa3\x44"
  14194. "\x41\x61\x87\x5d\x6b\xb3\xef\xd4"
  14195. "\xfc\xaa\x32\x7e\x55\x58\x04\x41"
  14196. "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a"
  14197. "\x55\x79\x4b\x6f\xcf\x89\xb9\x19"
  14198. "\xe5\x54\x13\x15\xb2\x1a\xfa\x15"
  14199. "\xc2\xf0\x06\x59\xfa\xa0\x25\x05"
  14200. "\x58\xfa\x43\x91\x16\x85\x40\xbb"
  14201. "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08"
  14202. "\xcd\x22\x22\x41\x11\x9f\x6c\x7c"
  14203. "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7"
  14204. "\xa0\x42\xa8\xde\xfc\xa3\xca\x98"
  14205. "\x4b\x43\xb1\xce\x4b\xbf\x01\x67"
  14206. "\x6e\x29\x60\xbd\x10\x14\x84\x82"
  14207. "\x83\x82\x0c\x63\x73\x92\x02\x7c"
  14208. "\x55\x37\x20\x80\x17\x51\xc8\xbc"
  14209. "\x46\x02\xcb\x38\x07\x6d\xe2\x85"
  14210. "\xaa\x29\xaf\x24\x58\x0d\xf0\x75"
  14211. "\x08\x0a\xa5\x34\x25\x16\xf3\x74"
  14212. "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29"
  14213. "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c"
  14214. "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e"
  14215. "\x8c\x2b\x4f\x54\x76\x47\x53\x8e"
  14216. "\xe8\x00\xec\x92\xb9\x55\xe6\xa2"
  14217. "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87"
  14218. "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21"
  14219. "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19"
  14220. "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9"
  14221. "\x94\x4e\x63\xc7\xae\xfc\xed\x47"
  14222. "\xe2\xfe\x7a\x63\x77\xfe\x97\x82"
  14223. "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80"
  14224. "\xec\x69\x41\xec\xa7\x8a\xe0\x2f"
  14225. "\xe3\x49\x26\xa2\x41\xb2\x08\x0f"
  14226. "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e"
  14227. "\x43\x42\x35\xd0\xcf\xec\x77\x67"
  14228. "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e"
  14229. "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50"
  14230. "\xab\x6c\x6b\xff\xea\x00\x67\xaa"
  14231. "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76"
  14232. "\x2b\x77\x3f\xbe\x12\x75\xfb\x92"
  14233. "\xc6\x89\x67\x4d\xca\xf7\xd4\x50"
  14234. "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6"
  14235. "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5"
  14236. "\x86\xad\x51\xcc\xd5\x96\xb8\xdc"
  14237. "\x03\x57\xe6\x98\x52\x2f\x61\x62"
  14238. "\xc4\x5c\x9c\x36\x71\x07\xfb\x94"
  14239. "\xe3\x02\xc4\x2b\x08\x75\xc7\x35"
  14240. "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1"
  14241. "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e"
  14242. "\x76\x87\x19\x04\x1a\x2f\x38\x3e"
  14243. "\xef\x91\x64\x1d\x18\x07\x4e\x31"
  14244. "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c"
  14245. "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd",
  14246. .rlen = 512,
  14247. }, {
  14248. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  14249. "\x23\x53\x60\x28\x74\x71\x35\x26"
  14250. "\x62\x49\x77\x57\x24\x70\x93\x69"
  14251. "\x99\x59\x57\x49\x66\x96\x76\x27"
  14252. "\x31\x41\x59\x26\x53\x58\x97\x93"
  14253. "\x23\x84\x62\x64\x33\x83\x27\x95"
  14254. "\x02\x88\x41\x97\x16\x93\x99\x37"
  14255. "\x51\x05\x82\x09\x74\x94\x45\x92",
  14256. .klen = 64,
  14257. .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
  14258. "\x00\x00\x00\x00\x00\x00\x00\x00",
  14259. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  14260. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  14261. "\x10\x11\x12\x13\x14\x15\x16\x17"
  14262. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  14263. "\x20\x21\x22\x23\x24\x25\x26\x27"
  14264. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  14265. "\x30\x31\x32\x33\x34\x35\x36\x37"
  14266. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  14267. "\x40\x41\x42\x43\x44\x45\x46\x47"
  14268. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  14269. "\x50\x51\x52\x53\x54\x55\x56\x57"
  14270. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  14271. "\x60\x61\x62\x63\x64\x65\x66\x67"
  14272. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  14273. "\x70\x71\x72\x73\x74\x75\x76\x77"
  14274. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  14275. "\x80\x81\x82\x83\x84\x85\x86\x87"
  14276. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  14277. "\x90\x91\x92\x93\x94\x95\x96\x97"
  14278. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  14279. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  14280. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  14281. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  14282. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  14283. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  14284. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  14285. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  14286. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  14287. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  14288. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  14289. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  14290. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  14291. "\x00\x01\x02\x03\x04\x05\x06\x07"
  14292. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  14293. "\x10\x11\x12\x13\x14\x15\x16\x17"
  14294. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  14295. "\x20\x21\x22\x23\x24\x25\x26\x27"
  14296. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  14297. "\x30\x31\x32\x33\x34\x35\x36\x37"
  14298. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  14299. "\x40\x41\x42\x43\x44\x45\x46\x47"
  14300. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  14301. "\x50\x51\x52\x53\x54\x55\x56\x57"
  14302. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  14303. "\x60\x61\x62\x63\x64\x65\x66\x67"
  14304. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  14305. "\x70\x71\x72\x73\x74\x75\x76\x77"
  14306. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  14307. "\x80\x81\x82\x83\x84\x85\x86\x87"
  14308. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  14309. "\x90\x91\x92\x93\x94\x95\x96\x97"
  14310. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  14311. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  14312. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  14313. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  14314. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  14315. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  14316. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  14317. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  14318. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  14319. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  14320. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  14321. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  14322. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  14323. .ilen = 512,
  14324. .result = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32"
  14325. "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f"
  14326. "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b"
  14327. "\x80\x1b\x82\xcb\x01\x59\x91\x7f"
  14328. "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3"
  14329. "\x34\xfd\xe6\x11\xf9\x33\x45\x12"
  14330. "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23"
  14331. "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7"
  14332. "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0"
  14333. "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78"
  14334. "\xcd\xec\x7d\xdc\x19\x9c\x72\x64"
  14335. "\x63\x0b\x38\x2e\x76\xdd\x2d\x36"
  14336. "\x49\xb0\x1d\xea\x78\x9e\x00\xca"
  14337. "\x20\xcc\x1b\x1e\x98\x74\xab\xed"
  14338. "\x79\xf7\xd0\x6c\xd8\x93\x80\x29"
  14339. "\xac\xa5\x5e\x34\xa9\xab\xa0\x55"
  14340. "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46"
  14341. "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae"
  14342. "\x25\x42\x17\xbf\x76\x8f\x1c\x3d"
  14343. "\xec\x9a\xda\x64\x96\xb5\x61\xff"
  14344. "\x99\xeb\x12\x96\x85\x82\x9d\xd5"
  14345. "\x81\x85\x14\xa8\x59\xac\x8c\x94"
  14346. "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba"
  14347. "\x82\xc6\x4d\xca\x86\xea\x53\x28"
  14348. "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79"
  14349. "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff"
  14350. "\x05\xca\x81\x7b\xda\xa2\xde\x63"
  14351. "\x3a\x10\xbe\xc2\xac\x32\xc4\x05"
  14352. "\x47\x7e\xef\x67\xe2\x5f\x5b\xae"
  14353. "\xed\xf1\x70\x34\x16\x9a\x07\x7b"
  14354. "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a"
  14355. "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd"
  14356. "\x93\x1f\x06\xba\xd4\x9a\x22\x69"
  14357. "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c"
  14358. "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6"
  14359. "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32"
  14360. "\xfd\x43\x7d\xda\x42\x51\x87\x43"
  14361. "\x9d\xf9\xef\xf4\x30\x97\xf8\x09"
  14362. "\x88\xfc\x3f\x93\x70\xc1\x4a\xec"
  14363. "\x27\x5f\x11\xac\x71\xc7\x48\x46"
  14364. "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56"
  14365. "\x0d\x4e\xb0\x32\x76\xce\x86\x81"
  14366. "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24"
  14367. "\xaf\xf7\x9a\xde\xff\x18\xac\x14"
  14368. "\x90\xc5\x01\x39\x34\x0f\x24\xf3"
  14369. "\x13\x2f\x5e\x4f\x30\x9a\x36\x40"
  14370. "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23"
  14371. "\x50\x88\x97\x40\x69\xb1\x37\xf5"
  14372. "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8"
  14373. "\x7b\x10\x20\xb9\x2b\x46\x83\x5b"
  14374. "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2"
  14375. "\x72\xb0\x97\x4e\x89\xb3\x48\x00"
  14376. "\xc1\x16\x73\x50\x77\xba\xa6\x65"
  14377. "\x20\x2d\xb0\x02\x27\x89\xda\x99"
  14378. "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6"
  14379. "\x2a\xda\x09\x12\x11\xaf\xe6\x57"
  14380. "\x01\x04\x8a\xff\x86\x8b\xac\xf8"
  14381. "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76"
  14382. "\xa3\x0e\x33\x74\x40\x18\x39\x72"
  14383. "\x66\x50\x31\xfd\x70\xdf\xe8\x51"
  14384. "\x96\x21\x36\xb2\x9b\xfa\x85\xd1"
  14385. "\x30\x05\xc8\x92\x98\x80\xff\x7a"
  14386. "\xaf\x43\x0b\xc5\x20\x41\x92\x20"
  14387. "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1",
  14388. .rlen = 512,
  14389. .also_non_np = 1,
  14390. .np = 3,
  14391. .tap = { 512 - 20, 4, 16 },
  14392. },
  14393. };
  14394. static struct cipher_testvec serpent_xts_dec_tv_template[] = {
  14395. /* Generated from AES-XTS test vectors */
  14396. /* same as enc vectors with input and result reversed */
  14397. {
  14398. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  14399. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14400. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14401. "\x00\x00\x00\x00\x00\x00\x00\x00",
  14402. .klen = 32,
  14403. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  14404. "\x00\x00\x00\x00\x00\x00\x00\x00",
  14405. .input = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64"
  14406. "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4"
  14407. "\x6a\x31\xc5\xf3\x00\xca\xb9\x16"
  14408. "\xde\xe2\x77\x66\xf7\xfe\x62\x08",
  14409. .ilen = 32,
  14410. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  14411. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14412. "\x00\x00\x00\x00\x00\x00\x00\x00"
  14413. "\x00\x00\x00\x00\x00\x00\x00\x00",
  14414. .rlen = 32,
  14415. }, {
  14416. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  14417. "\x11\x11\x11\x11\x11\x11\x11\x11"
  14418. "\x22\x22\x22\x22\x22\x22\x22\x22"
  14419. "\x22\x22\x22\x22\x22\x22\x22\x22",
  14420. .klen = 32,
  14421. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  14422. "\x00\x00\x00\x00\x00\x00\x00\x00",
  14423. .input = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98"
  14424. "\x41\x86\x12\xaf\xb3\xd7\x68\x13"
  14425. "\xed\x81\xcd\x06\x87\x43\x1a\xbb"
  14426. "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe",
  14427. .ilen = 32,
  14428. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  14429. "\x44\x44\x44\x44\x44\x44\x44\x44"
  14430. "\x44\x44\x44\x44\x44\x44\x44\x44"
  14431. "\x44\x44\x44\x44\x44\x44\x44\x44",
  14432. .rlen = 32,
  14433. }, {
  14434. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  14435. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  14436. "\x22\x22\x22\x22\x22\x22\x22\x22"
  14437. "\x22\x22\x22\x22\x22\x22\x22\x22",
  14438. .klen = 32,
  14439. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  14440. "\x00\x00\x00\x00\x00\x00\x00\x00",
  14441. .input = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61"
  14442. "\xb6\x1c\x81\x8f\x2c\x87\x60\x89"
  14443. "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86"
  14444. "\xc1\x68\x45\xaa\x00\xe9\x24\xc5",
  14445. .ilen = 32,
  14446. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  14447. "\x44\x44\x44\x44\x44\x44\x44\x44"
  14448. "\x44\x44\x44\x44\x44\x44\x44\x44"
  14449. "\x44\x44\x44\x44\x44\x44\x44\x44",
  14450. .rlen = 32,
  14451. }, {
  14452. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  14453. "\x23\x53\x60\x28\x74\x71\x35\x26"
  14454. "\x31\x41\x59\x26\x53\x58\x97\x93"
  14455. "\x23\x84\x62\x64\x33\x83\x27\x95",
  14456. .klen = 32,
  14457. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  14458. "\x00\x00\x00\x00\x00\x00\x00\x00",
  14459. .input = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b"
  14460. "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53"
  14461. "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e"
  14462. "\x28\xca\xb0\x22\xb3\x85\x75\xf4"
  14463. "\x00\x5c\x75\x14\x06\xd6\x25\x82"
  14464. "\xe6\xcb\x08\xf7\x29\x90\x23\x8e"
  14465. "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3"
  14466. "\x80\x51\x67\xb5\x0b\x85\x69\xe8"
  14467. "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3"
  14468. "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0"
  14469. "\x63\x5a\x16\x0f\xf0\xce\x66\x1f"
  14470. "\x2c\x21\x07\xf1\xa4\x03\xa3\x44"
  14471. "\x41\x61\x87\x5d\x6b\xb3\xef\xd4"
  14472. "\xfc\xaa\x32\x7e\x55\x58\x04\x41"
  14473. "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a"
  14474. "\x55\x79\x4b\x6f\xcf\x89\xb9\x19"
  14475. "\xe5\x54\x13\x15\xb2\x1a\xfa\x15"
  14476. "\xc2\xf0\x06\x59\xfa\xa0\x25\x05"
  14477. "\x58\xfa\x43\x91\x16\x85\x40\xbb"
  14478. "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08"
  14479. "\xcd\x22\x22\x41\x11\x9f\x6c\x7c"
  14480. "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7"
  14481. "\xa0\x42\xa8\xde\xfc\xa3\xca\x98"
  14482. "\x4b\x43\xb1\xce\x4b\xbf\x01\x67"
  14483. "\x6e\x29\x60\xbd\x10\x14\x84\x82"
  14484. "\x83\x82\x0c\x63\x73\x92\x02\x7c"
  14485. "\x55\x37\x20\x80\x17\x51\xc8\xbc"
  14486. "\x46\x02\xcb\x38\x07\x6d\xe2\x85"
  14487. "\xaa\x29\xaf\x24\x58\x0d\xf0\x75"
  14488. "\x08\x0a\xa5\x34\x25\x16\xf3\x74"
  14489. "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29"
  14490. "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c"
  14491. "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e"
  14492. "\x8c\x2b\x4f\x54\x76\x47\x53\x8e"
  14493. "\xe8\x00\xec\x92\xb9\x55\xe6\xa2"
  14494. "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87"
  14495. "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21"
  14496. "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19"
  14497. "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9"
  14498. "\x94\x4e\x63\xc7\xae\xfc\xed\x47"
  14499. "\xe2\xfe\x7a\x63\x77\xfe\x97\x82"
  14500. "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80"
  14501. "\xec\x69\x41\xec\xa7\x8a\xe0\x2f"
  14502. "\xe3\x49\x26\xa2\x41\xb2\x08\x0f"
  14503. "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e"
  14504. "\x43\x42\x35\xd0\xcf\xec\x77\x67"
  14505. "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e"
  14506. "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50"
  14507. "\xab\x6c\x6b\xff\xea\x00\x67\xaa"
  14508. "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76"
  14509. "\x2b\x77\x3f\xbe\x12\x75\xfb\x92"
  14510. "\xc6\x89\x67\x4d\xca\xf7\xd4\x50"
  14511. "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6"
  14512. "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5"
  14513. "\x86\xad\x51\xcc\xd5\x96\xb8\xdc"
  14514. "\x03\x57\xe6\x98\x52\x2f\x61\x62"
  14515. "\xc4\x5c\x9c\x36\x71\x07\xfb\x94"
  14516. "\xe3\x02\xc4\x2b\x08\x75\xc7\x35"
  14517. "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1"
  14518. "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e"
  14519. "\x76\x87\x19\x04\x1a\x2f\x38\x3e"
  14520. "\xef\x91\x64\x1d\x18\x07\x4e\x31"
  14521. "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c"
  14522. "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd",
  14523. .ilen = 512,
  14524. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  14525. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  14526. "\x10\x11\x12\x13\x14\x15\x16\x17"
  14527. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  14528. "\x20\x21\x22\x23\x24\x25\x26\x27"
  14529. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  14530. "\x30\x31\x32\x33\x34\x35\x36\x37"
  14531. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  14532. "\x40\x41\x42\x43\x44\x45\x46\x47"
  14533. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  14534. "\x50\x51\x52\x53\x54\x55\x56\x57"
  14535. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  14536. "\x60\x61\x62\x63\x64\x65\x66\x67"
  14537. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  14538. "\x70\x71\x72\x73\x74\x75\x76\x77"
  14539. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  14540. "\x80\x81\x82\x83\x84\x85\x86\x87"
  14541. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  14542. "\x90\x91\x92\x93\x94\x95\x96\x97"
  14543. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  14544. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  14545. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  14546. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  14547. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  14548. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  14549. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  14550. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  14551. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  14552. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  14553. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  14554. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  14555. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  14556. "\x00\x01\x02\x03\x04\x05\x06\x07"
  14557. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  14558. "\x10\x11\x12\x13\x14\x15\x16\x17"
  14559. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  14560. "\x20\x21\x22\x23\x24\x25\x26\x27"
  14561. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  14562. "\x30\x31\x32\x33\x34\x35\x36\x37"
  14563. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  14564. "\x40\x41\x42\x43\x44\x45\x46\x47"
  14565. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  14566. "\x50\x51\x52\x53\x54\x55\x56\x57"
  14567. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  14568. "\x60\x61\x62\x63\x64\x65\x66\x67"
  14569. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  14570. "\x70\x71\x72\x73\x74\x75\x76\x77"
  14571. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  14572. "\x80\x81\x82\x83\x84\x85\x86\x87"
  14573. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  14574. "\x90\x91\x92\x93\x94\x95\x96\x97"
  14575. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  14576. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  14577. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  14578. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  14579. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  14580. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  14581. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  14582. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  14583. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  14584. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  14585. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  14586. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  14587. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  14588. .rlen = 512,
  14589. }, {
  14590. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  14591. "\x23\x53\x60\x28\x74\x71\x35\x26"
  14592. "\x62\x49\x77\x57\x24\x70\x93\x69"
  14593. "\x99\x59\x57\x49\x66\x96\x76\x27"
  14594. "\x31\x41\x59\x26\x53\x58\x97\x93"
  14595. "\x23\x84\x62\x64\x33\x83\x27\x95"
  14596. "\x02\x88\x41\x97\x16\x93\x99\x37"
  14597. "\x51\x05\x82\x09\x74\x94\x45\x92",
  14598. .klen = 64,
  14599. .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
  14600. "\x00\x00\x00\x00\x00\x00\x00\x00",
  14601. .input = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32"
  14602. "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f"
  14603. "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b"
  14604. "\x80\x1b\x82\xcb\x01\x59\x91\x7f"
  14605. "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3"
  14606. "\x34\xfd\xe6\x11\xf9\x33\x45\x12"
  14607. "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23"
  14608. "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7"
  14609. "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0"
  14610. "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78"
  14611. "\xcd\xec\x7d\xdc\x19\x9c\x72\x64"
  14612. "\x63\x0b\x38\x2e\x76\xdd\x2d\x36"
  14613. "\x49\xb0\x1d\xea\x78\x9e\x00\xca"
  14614. "\x20\xcc\x1b\x1e\x98\x74\xab\xed"
  14615. "\x79\xf7\xd0\x6c\xd8\x93\x80\x29"
  14616. "\xac\xa5\x5e\x34\xa9\xab\xa0\x55"
  14617. "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46"
  14618. "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae"
  14619. "\x25\x42\x17\xbf\x76\x8f\x1c\x3d"
  14620. "\xec\x9a\xda\x64\x96\xb5\x61\xff"
  14621. "\x99\xeb\x12\x96\x85\x82\x9d\xd5"
  14622. "\x81\x85\x14\xa8\x59\xac\x8c\x94"
  14623. "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba"
  14624. "\x82\xc6\x4d\xca\x86\xea\x53\x28"
  14625. "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79"
  14626. "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff"
  14627. "\x05\xca\x81\x7b\xda\xa2\xde\x63"
  14628. "\x3a\x10\xbe\xc2\xac\x32\xc4\x05"
  14629. "\x47\x7e\xef\x67\xe2\x5f\x5b\xae"
  14630. "\xed\xf1\x70\x34\x16\x9a\x07\x7b"
  14631. "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a"
  14632. "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd"
  14633. "\x93\x1f\x06\xba\xd4\x9a\x22\x69"
  14634. "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c"
  14635. "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6"
  14636. "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32"
  14637. "\xfd\x43\x7d\xda\x42\x51\x87\x43"
  14638. "\x9d\xf9\xef\xf4\x30\x97\xf8\x09"
  14639. "\x88\xfc\x3f\x93\x70\xc1\x4a\xec"
  14640. "\x27\x5f\x11\xac\x71\xc7\x48\x46"
  14641. "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56"
  14642. "\x0d\x4e\xb0\x32\x76\xce\x86\x81"
  14643. "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24"
  14644. "\xaf\xf7\x9a\xde\xff\x18\xac\x14"
  14645. "\x90\xc5\x01\x39\x34\x0f\x24\xf3"
  14646. "\x13\x2f\x5e\x4f\x30\x9a\x36\x40"
  14647. "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23"
  14648. "\x50\x88\x97\x40\x69\xb1\x37\xf5"
  14649. "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8"
  14650. "\x7b\x10\x20\xb9\x2b\x46\x83\x5b"
  14651. "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2"
  14652. "\x72\xb0\x97\x4e\x89\xb3\x48\x00"
  14653. "\xc1\x16\x73\x50\x77\xba\xa6\x65"
  14654. "\x20\x2d\xb0\x02\x27\x89\xda\x99"
  14655. "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6"
  14656. "\x2a\xda\x09\x12\x11\xaf\xe6\x57"
  14657. "\x01\x04\x8a\xff\x86\x8b\xac\xf8"
  14658. "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76"
  14659. "\xa3\x0e\x33\x74\x40\x18\x39\x72"
  14660. "\x66\x50\x31\xfd\x70\xdf\xe8\x51"
  14661. "\x96\x21\x36\xb2\x9b\xfa\x85\xd1"
  14662. "\x30\x05\xc8\x92\x98\x80\xff\x7a"
  14663. "\xaf\x43\x0b\xc5\x20\x41\x92\x20"
  14664. "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1",
  14665. .ilen = 512,
  14666. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  14667. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  14668. "\x10\x11\x12\x13\x14\x15\x16\x17"
  14669. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  14670. "\x20\x21\x22\x23\x24\x25\x26\x27"
  14671. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  14672. "\x30\x31\x32\x33\x34\x35\x36\x37"
  14673. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  14674. "\x40\x41\x42\x43\x44\x45\x46\x47"
  14675. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  14676. "\x50\x51\x52\x53\x54\x55\x56\x57"
  14677. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  14678. "\x60\x61\x62\x63\x64\x65\x66\x67"
  14679. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  14680. "\x70\x71\x72\x73\x74\x75\x76\x77"
  14681. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  14682. "\x80\x81\x82\x83\x84\x85\x86\x87"
  14683. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  14684. "\x90\x91\x92\x93\x94\x95\x96\x97"
  14685. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  14686. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  14687. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  14688. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  14689. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  14690. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  14691. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  14692. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  14693. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  14694. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  14695. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  14696. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  14697. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  14698. "\x00\x01\x02\x03\x04\x05\x06\x07"
  14699. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  14700. "\x10\x11\x12\x13\x14\x15\x16\x17"
  14701. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  14702. "\x20\x21\x22\x23\x24\x25\x26\x27"
  14703. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  14704. "\x30\x31\x32\x33\x34\x35\x36\x37"
  14705. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  14706. "\x40\x41\x42\x43\x44\x45\x46\x47"
  14707. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  14708. "\x50\x51\x52\x53\x54\x55\x56\x57"
  14709. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  14710. "\x60\x61\x62\x63\x64\x65\x66\x67"
  14711. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  14712. "\x70\x71\x72\x73\x74\x75\x76\x77"
  14713. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  14714. "\x80\x81\x82\x83\x84\x85\x86\x87"
  14715. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  14716. "\x90\x91\x92\x93\x94\x95\x96\x97"
  14717. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  14718. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  14719. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  14720. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  14721. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  14722. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  14723. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  14724. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  14725. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  14726. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  14727. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  14728. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  14729. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  14730. .rlen = 512,
  14731. .also_non_np = 1,
  14732. .np = 3,
  14733. .tap = { 512 - 20, 4, 16 },
  14734. },
  14735. };
  14736. /* Cast6 test vectors from RFC 2612 */
  14737. #define CAST6_ENC_TEST_VECTORS 4
  14738. #define CAST6_DEC_TEST_VECTORS 4
  14739. #define CAST6_CBC_ENC_TEST_VECTORS 1
  14740. #define CAST6_CBC_DEC_TEST_VECTORS 1
  14741. #define CAST6_CTR_ENC_TEST_VECTORS 2
  14742. #define CAST6_CTR_DEC_TEST_VECTORS 2
  14743. #define CAST6_LRW_ENC_TEST_VECTORS 1
  14744. #define CAST6_LRW_DEC_TEST_VECTORS 1
  14745. #define CAST6_XTS_ENC_TEST_VECTORS 1
  14746. #define CAST6_XTS_DEC_TEST_VECTORS 1
  14747. static struct cipher_testvec cast6_enc_tv_template[] = {
  14748. {
  14749. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  14750. "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
  14751. .klen = 16,
  14752. .input = zeroed_string,
  14753. .ilen = 16,
  14754. .result = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
  14755. "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
  14756. .rlen = 16,
  14757. }, {
  14758. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  14759. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  14760. "\xba\xc7\x7a\x77\x17\x94\x28\x63",
  14761. .klen = 24,
  14762. .input = zeroed_string,
  14763. .ilen = 16,
  14764. .result = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
  14765. "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
  14766. .rlen = 16,
  14767. }, {
  14768. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  14769. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  14770. "\x8d\x7c\x47\xce\x26\x49\x08\x46"
  14771. "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
  14772. .klen = 32,
  14773. .input = zeroed_string,
  14774. .ilen = 16,
  14775. .result = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
  14776. "\xc9\x87\x01\x36\x55\x33\x17\xfa",
  14777. .rlen = 16,
  14778. }, { /* Generated from TF test vectors */
  14779. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  14780. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  14781. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  14782. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  14783. .klen = 32,
  14784. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  14785. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  14786. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  14787. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  14788. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  14789. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  14790. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  14791. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  14792. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  14793. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  14794. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  14795. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  14796. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  14797. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  14798. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  14799. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  14800. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  14801. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  14802. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  14803. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  14804. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  14805. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  14806. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  14807. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  14808. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  14809. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  14810. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  14811. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  14812. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  14813. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  14814. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  14815. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  14816. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  14817. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  14818. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  14819. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  14820. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  14821. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  14822. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  14823. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  14824. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  14825. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  14826. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  14827. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  14828. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  14829. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  14830. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  14831. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  14832. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  14833. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  14834. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  14835. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  14836. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  14837. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  14838. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  14839. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  14840. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  14841. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  14842. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  14843. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  14844. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  14845. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  14846. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  14847. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  14848. .ilen = 496,
  14849. .result = "\xC3\x70\x22\x32\xF5\x80\xCB\x54"
  14850. "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6"
  14851. "\xB6\xB9\xC5\xA4\x91\x55\x14\x97"
  14852. "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA"
  14853. "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE"
  14854. "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C"
  14855. "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C"
  14856. "\xD0\x6A\x99\x10\x72\xF8\x47\x62"
  14857. "\x81\x42\xF8\xD8\xF5\xBB\x94\x08"
  14858. "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E"
  14859. "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58"
  14860. "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12"
  14861. "\x5A\x72\x85\x47\x8B\xEC\x9F\x26"
  14862. "\x84\xB6\xED\x10\x33\x63\x9B\x5F"
  14863. "\x4D\x53\xEE\x94\x45\x8B\x60\x58"
  14864. "\x86\x20\xF9\x1E\x82\x08\x3E\x58"
  14865. "\x60\x1B\x34\x19\x02\xBE\x4E\x09"
  14866. "\xBB\x7C\x15\xCC\x60\x27\x55\x7A"
  14867. "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3"
  14868. "\xF1\xDD\xA7\x07\xA3\x12\x85\x28"
  14869. "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A"
  14870. "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43"
  14871. "\x92\xE4\x7C\x26\x69\x4D\x83\x68"
  14872. "\x14\x96\x42\x47\xBD\xA9\xE4\x8A"
  14873. "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E"
  14874. "\x91\x51\xB5\x36\x08\xDE\x1C\x06"
  14875. "\x03\xBD\xDE\x81\x26\xF7\x99\xC2"
  14876. "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF"
  14877. "\xC1\xF5\x27\x05\xB8\x02\x57\x72"
  14878. "\xE6\x42\x13\x0B\xC6\x47\x05\x74"
  14879. "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9"
  14880. "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C"
  14881. "\x98\x82\x67\x67\xB4\xD7\xD3\x43"
  14882. "\x23\x08\x02\xB7\x9B\x99\x05\xFB"
  14883. "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6"
  14884. "\x2E\x49\x58\xD0\xA8\x57\x29\x7F"
  14885. "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67"
  14886. "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D"
  14887. "\x17\xE2\x58\x2B\x88\x0D\x68\x62"
  14888. "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62"
  14889. "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08"
  14890. "\xEB\x84\x1D\x25\xA7\x38\x94\x06"
  14891. "\x93\x9D\xF8\xFE\x88\x71\xE7\x84"
  14892. "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29"
  14893. "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB"
  14894. "\x8E\x75\x3D\x73\xEB\x6A\xED\x29"
  14895. "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA"
  14896. "\x41\xE2\x10\x4C\x01\x8B\x69\x2B"
  14897. "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B"
  14898. "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6"
  14899. "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06"
  14900. "\x59\x28\x1D\x86\x43\x04\x5D\x3B"
  14901. "\x99\x4C\x04\x5A\x21\x17\x8B\x76"
  14902. "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3"
  14903. "\x65\xA2\x58\x2A\xC5\x66\x24\xBF"
  14904. "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8"
  14905. "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9"
  14906. "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E"
  14907. "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1"
  14908. "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C"
  14909. "\x84\x52\x6D\x68\xDE\xC6\x64\xB2"
  14910. "\x11\x74\x93\x57\xB4\x7E\xC6\x00",
  14911. .rlen = 496,
  14912. .also_non_np = 1,
  14913. .np = 3,
  14914. .tap = { 496 - 20, 4, 16 },
  14915. },
  14916. };
  14917. static struct cipher_testvec cast6_dec_tv_template[] = {
  14918. {
  14919. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  14920. "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
  14921. .klen = 16,
  14922. .input = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
  14923. "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
  14924. .ilen = 16,
  14925. .result = zeroed_string,
  14926. .rlen = 16,
  14927. }, {
  14928. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  14929. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  14930. "\xba\xc7\x7a\x77\x17\x94\x28\x63",
  14931. .klen = 24,
  14932. .input = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
  14933. "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
  14934. .ilen = 16,
  14935. .result = zeroed_string,
  14936. .rlen = 16,
  14937. }, {
  14938. .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
  14939. "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
  14940. "\x8d\x7c\x47\xce\x26\x49\x08\x46"
  14941. "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
  14942. .klen = 32,
  14943. .input = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
  14944. "\xc9\x87\x01\x36\x55\x33\x17\xfa",
  14945. .ilen = 16,
  14946. .result = zeroed_string,
  14947. .rlen = 16,
  14948. }, { /* Generated from TF test vectors */
  14949. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  14950. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  14951. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  14952. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  14953. .klen = 32,
  14954. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  14955. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  14956. .input = "\xC3\x70\x22\x32\xF5\x80\xCB\x54"
  14957. "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6"
  14958. "\xB6\xB9\xC5\xA4\x91\x55\x14\x97"
  14959. "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA"
  14960. "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE"
  14961. "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C"
  14962. "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C"
  14963. "\xD0\x6A\x99\x10\x72\xF8\x47\x62"
  14964. "\x81\x42\xF8\xD8\xF5\xBB\x94\x08"
  14965. "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E"
  14966. "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58"
  14967. "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12"
  14968. "\x5A\x72\x85\x47\x8B\xEC\x9F\x26"
  14969. "\x84\xB6\xED\x10\x33\x63\x9B\x5F"
  14970. "\x4D\x53\xEE\x94\x45\x8B\x60\x58"
  14971. "\x86\x20\xF9\x1E\x82\x08\x3E\x58"
  14972. "\x60\x1B\x34\x19\x02\xBE\x4E\x09"
  14973. "\xBB\x7C\x15\xCC\x60\x27\x55\x7A"
  14974. "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3"
  14975. "\xF1\xDD\xA7\x07\xA3\x12\x85\x28"
  14976. "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A"
  14977. "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43"
  14978. "\x92\xE4\x7C\x26\x69\x4D\x83\x68"
  14979. "\x14\x96\x42\x47\xBD\xA9\xE4\x8A"
  14980. "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E"
  14981. "\x91\x51\xB5\x36\x08\xDE\x1C\x06"
  14982. "\x03\xBD\xDE\x81\x26\xF7\x99\xC2"
  14983. "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF"
  14984. "\xC1\xF5\x27\x05\xB8\x02\x57\x72"
  14985. "\xE6\x42\x13\x0B\xC6\x47\x05\x74"
  14986. "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9"
  14987. "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C"
  14988. "\x98\x82\x67\x67\xB4\xD7\xD3\x43"
  14989. "\x23\x08\x02\xB7\x9B\x99\x05\xFB"
  14990. "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6"
  14991. "\x2E\x49\x58\xD0\xA8\x57\x29\x7F"
  14992. "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67"
  14993. "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D"
  14994. "\x17\xE2\x58\x2B\x88\x0D\x68\x62"
  14995. "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62"
  14996. "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08"
  14997. "\xEB\x84\x1D\x25\xA7\x38\x94\x06"
  14998. "\x93\x9D\xF8\xFE\x88\x71\xE7\x84"
  14999. "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29"
  15000. "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB"
  15001. "\x8E\x75\x3D\x73\xEB\x6A\xED\x29"
  15002. "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA"
  15003. "\x41\xE2\x10\x4C\x01\x8B\x69\x2B"
  15004. "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B"
  15005. "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6"
  15006. "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06"
  15007. "\x59\x28\x1D\x86\x43\x04\x5D\x3B"
  15008. "\x99\x4C\x04\x5A\x21\x17\x8B\x76"
  15009. "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3"
  15010. "\x65\xA2\x58\x2A\xC5\x66\x24\xBF"
  15011. "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8"
  15012. "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9"
  15013. "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E"
  15014. "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1"
  15015. "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C"
  15016. "\x84\x52\x6D\x68\xDE\xC6\x64\xB2"
  15017. "\x11\x74\x93\x57\xB4\x7E\xC6\x00",
  15018. .ilen = 496,
  15019. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  15020. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  15021. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  15022. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  15023. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  15024. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  15025. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  15026. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  15027. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  15028. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  15029. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  15030. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  15031. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  15032. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  15033. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  15034. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  15035. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  15036. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  15037. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  15038. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  15039. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  15040. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  15041. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  15042. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  15043. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  15044. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  15045. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  15046. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  15047. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  15048. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  15049. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  15050. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  15051. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  15052. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  15053. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  15054. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  15055. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  15056. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  15057. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  15058. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  15059. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  15060. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  15061. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  15062. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  15063. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  15064. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  15065. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  15066. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  15067. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  15068. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  15069. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  15070. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  15071. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  15072. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  15073. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  15074. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  15075. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  15076. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  15077. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  15078. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  15079. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  15080. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  15081. .rlen = 496,
  15082. .also_non_np = 1,
  15083. .np = 3,
  15084. .tap = { 496 - 20, 4, 16 },
  15085. },
  15086. };
  15087. static struct cipher_testvec cast6_cbc_enc_tv_template[] = {
  15088. { /* Generated from TF test vectors */
  15089. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  15090. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  15091. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  15092. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  15093. .klen = 32,
  15094. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  15095. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  15096. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  15097. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  15098. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  15099. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  15100. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  15101. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  15102. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  15103. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  15104. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  15105. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  15106. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  15107. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  15108. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  15109. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  15110. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  15111. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  15112. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  15113. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  15114. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  15115. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  15116. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  15117. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  15118. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  15119. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  15120. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  15121. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  15122. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  15123. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  15124. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  15125. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  15126. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  15127. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  15128. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  15129. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  15130. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  15131. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  15132. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  15133. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  15134. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  15135. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  15136. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  15137. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  15138. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  15139. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  15140. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  15141. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  15142. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  15143. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  15144. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  15145. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  15146. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  15147. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  15148. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  15149. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  15150. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  15151. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  15152. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  15153. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  15154. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  15155. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  15156. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  15157. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  15158. .ilen = 496,
  15159. .result = "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2"
  15160. "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F"
  15161. "\xA0\x73\xB3\x70\xC3\x68\x64\x70"
  15162. "\xAD\x33\x02\xFB\x88\x74\xAA\x78"
  15163. "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F"
  15164. "\x7E\x6F\xDF\x05\x13\x76\xA6\x72"
  15165. "\xB7\x13\x09\x0F\x7D\x38\xDF\x25"
  15166. "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0"
  15167. "\x57\x95\xE1\x21\x26\x10\x9A\x21"
  15168. "\xA1\x8A\x51\x05\xD1\xB1\x78\x35"
  15169. "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF"
  15170. "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B"
  15171. "\x23\x16\x47\x72\x81\x13\x3A\x72"
  15172. "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8"
  15173. "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E"
  15174. "\xA3\x63\x98\x7D\x35\xE4\xD9\x83"
  15175. "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3"
  15176. "\x41\x1A\x93\x8D\x76\x31\x9F\xF2"
  15177. "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9"
  15178. "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1"
  15179. "\x21\x9C\x1A\xCA\x65\xDE\x44\x03"
  15180. "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37"
  15181. "\x53\x50\x23\xA4\x81\x6E\xDA\xFB"
  15182. "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8"
  15183. "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7"
  15184. "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3"
  15185. "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2"
  15186. "\xC1\x03\xE6\x5A\x37\xD8\x64\x18"
  15187. "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB"
  15188. "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4"
  15189. "\x89\x05\x81\x6E\x71\x4F\xC3\x28"
  15190. "\x10\xC1\x62\xC4\x41\xE9\xD2\x39"
  15191. "\xF3\x22\x39\x12\x2C\xC2\x95\x2D"
  15192. "\xBF\x93\x58\x4B\x04\xD1\x8D\x57"
  15193. "\xAE\xEB\x60\x03\x56\x35\xAD\x5A"
  15194. "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8"
  15195. "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E"
  15196. "\x07\x09\x82\xBA\xF0\x80\x8A\xD0"
  15197. "\xA0\x3F\x6A\xE9\x24\x87\x19\x65"
  15198. "\x73\x3F\x12\x91\x47\x54\xBA\x39"
  15199. "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF"
  15200. "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76"
  15201. "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47"
  15202. "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1"
  15203. "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12"
  15204. "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D"
  15205. "\x23\xFA\x7D\x77\xB8\x46\x75\xFE"
  15206. "\x4F\x10\xD3\x09\x60\xA1\x36\x96"
  15207. "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14"
  15208. "\x80\x21\x83\x58\x3C\x76\xFD\x28"
  15209. "\x1D\xF9\x93\x13\xD7\x0E\x62\x14"
  15210. "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C"
  15211. "\x68\x93\x44\x70\xDF\xCF\x4A\x51"
  15212. "\x0B\x81\x29\x41\xE5\x62\x4D\x36"
  15213. "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09"
  15214. "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6"
  15215. "\x01\x91\xB4\x27\xDA\x59\xD6\x17"
  15216. "\x56\x4D\x82\x62\x37\xA3\x48\x01"
  15217. "\x99\x91\x77\xB2\x08\x6B\x2C\x37"
  15218. "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3"
  15219. "\x4D\x59\x7D\xC5\x28\x69\xFA\x92"
  15220. "\x22\x46\x89\x2D\x0F\x2B\x08\x24",
  15221. .rlen = 496,
  15222. .also_non_np = 1,
  15223. .np = 3,
  15224. .tap = { 496 - 20, 4, 16 },
  15225. },
  15226. };
  15227. static struct cipher_testvec cast6_cbc_dec_tv_template[] = {
  15228. { /* Generated from TF test vectors */
  15229. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  15230. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  15231. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  15232. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  15233. .klen = 32,
  15234. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  15235. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  15236. .input = "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2"
  15237. "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F"
  15238. "\xA0\x73\xB3\x70\xC3\x68\x64\x70"
  15239. "\xAD\x33\x02\xFB\x88\x74\xAA\x78"
  15240. "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F"
  15241. "\x7E\x6F\xDF\x05\x13\x76\xA6\x72"
  15242. "\xB7\x13\x09\x0F\x7D\x38\xDF\x25"
  15243. "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0"
  15244. "\x57\x95\xE1\x21\x26\x10\x9A\x21"
  15245. "\xA1\x8A\x51\x05\xD1\xB1\x78\x35"
  15246. "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF"
  15247. "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B"
  15248. "\x23\x16\x47\x72\x81\x13\x3A\x72"
  15249. "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8"
  15250. "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E"
  15251. "\xA3\x63\x98\x7D\x35\xE4\xD9\x83"
  15252. "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3"
  15253. "\x41\x1A\x93\x8D\x76\x31\x9F\xF2"
  15254. "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9"
  15255. "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1"
  15256. "\x21\x9C\x1A\xCA\x65\xDE\x44\x03"
  15257. "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37"
  15258. "\x53\x50\x23\xA4\x81\x6E\xDA\xFB"
  15259. "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8"
  15260. "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7"
  15261. "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3"
  15262. "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2"
  15263. "\xC1\x03\xE6\x5A\x37\xD8\x64\x18"
  15264. "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB"
  15265. "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4"
  15266. "\x89\x05\x81\x6E\x71\x4F\xC3\x28"
  15267. "\x10\xC1\x62\xC4\x41\xE9\xD2\x39"
  15268. "\xF3\x22\x39\x12\x2C\xC2\x95\x2D"
  15269. "\xBF\x93\x58\x4B\x04\xD1\x8D\x57"
  15270. "\xAE\xEB\x60\x03\x56\x35\xAD\x5A"
  15271. "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8"
  15272. "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E"
  15273. "\x07\x09\x82\xBA\xF0\x80\x8A\xD0"
  15274. "\xA0\x3F\x6A\xE9\x24\x87\x19\x65"
  15275. "\x73\x3F\x12\x91\x47\x54\xBA\x39"
  15276. "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF"
  15277. "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76"
  15278. "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47"
  15279. "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1"
  15280. "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12"
  15281. "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D"
  15282. "\x23\xFA\x7D\x77\xB8\x46\x75\xFE"
  15283. "\x4F\x10\xD3\x09\x60\xA1\x36\x96"
  15284. "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14"
  15285. "\x80\x21\x83\x58\x3C\x76\xFD\x28"
  15286. "\x1D\xF9\x93\x13\xD7\x0E\x62\x14"
  15287. "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C"
  15288. "\x68\x93\x44\x70\xDF\xCF\x4A\x51"
  15289. "\x0B\x81\x29\x41\xE5\x62\x4D\x36"
  15290. "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09"
  15291. "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6"
  15292. "\x01\x91\xB4\x27\xDA\x59\xD6\x17"
  15293. "\x56\x4D\x82\x62\x37\xA3\x48\x01"
  15294. "\x99\x91\x77\xB2\x08\x6B\x2C\x37"
  15295. "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3"
  15296. "\x4D\x59\x7D\xC5\x28\x69\xFA\x92"
  15297. "\x22\x46\x89\x2D\x0F\x2B\x08\x24",
  15298. .ilen = 496,
  15299. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  15300. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  15301. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  15302. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  15303. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  15304. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  15305. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  15306. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  15307. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  15308. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  15309. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  15310. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  15311. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  15312. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  15313. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  15314. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  15315. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  15316. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  15317. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  15318. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  15319. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  15320. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  15321. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  15322. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  15323. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  15324. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  15325. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  15326. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  15327. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  15328. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  15329. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  15330. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  15331. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  15332. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  15333. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  15334. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  15335. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  15336. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  15337. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  15338. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  15339. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  15340. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  15341. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  15342. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  15343. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  15344. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  15345. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  15346. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  15347. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  15348. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  15349. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  15350. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  15351. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  15352. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  15353. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  15354. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  15355. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  15356. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  15357. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  15358. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  15359. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  15360. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  15361. .rlen = 496,
  15362. .also_non_np = 1,
  15363. .np = 3,
  15364. .tap = { 496 - 20, 4, 16 },
  15365. },
  15366. };
  15367. static struct cipher_testvec cast6_ctr_enc_tv_template[] = {
  15368. { /* Generated from TF test vectors */
  15369. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  15370. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  15371. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  15372. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  15373. .klen = 32,
  15374. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  15375. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  15376. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  15377. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  15378. "\x3A",
  15379. .ilen = 17,
  15380. .result = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
  15381. "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
  15382. "\x57",
  15383. .rlen = 17,
  15384. }, { /* Generated from TF test vectors */
  15385. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  15386. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  15387. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  15388. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  15389. .klen = 32,
  15390. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  15391. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  15392. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  15393. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  15394. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  15395. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  15396. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  15397. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  15398. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  15399. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  15400. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  15401. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  15402. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  15403. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  15404. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  15405. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  15406. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  15407. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  15408. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  15409. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  15410. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  15411. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  15412. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  15413. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  15414. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  15415. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  15416. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  15417. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  15418. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  15419. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  15420. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  15421. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  15422. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  15423. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  15424. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  15425. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  15426. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  15427. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  15428. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  15429. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  15430. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  15431. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  15432. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  15433. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  15434. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  15435. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  15436. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  15437. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  15438. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  15439. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  15440. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  15441. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  15442. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  15443. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  15444. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  15445. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  15446. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  15447. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  15448. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  15449. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  15450. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  15451. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  15452. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  15453. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  15454. .ilen = 496,
  15455. .result = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
  15456. "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
  15457. "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7"
  15458. "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56"
  15459. "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8"
  15460. "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3"
  15461. "\xE3\xF3\xFA\xC2\x23\x55\x98\x20"
  15462. "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5"
  15463. "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30"
  15464. "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D"
  15465. "\x66\x45\xEE\xC8\x19\xBE\x50\xF0"
  15466. "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9"
  15467. "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5"
  15468. "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C"
  15469. "\x81\xDF\x82\x12\xC7\x4C\x1B\x07"
  15470. "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA"
  15471. "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6"
  15472. "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5"
  15473. "\x49\x61\x22\x52\x64\x8C\x46\x41"
  15474. "\x1F\x48\x5F\x4F\xA2\x89\x36\x17"
  15475. "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0"
  15476. "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3"
  15477. "\x00\x14\x15\x59\xC1\x30\x64\xAF"
  15478. "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C"
  15479. "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4"
  15480. "\x02\x37\xC4\x69\xEF\x36\xC1\xF3"
  15481. "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0"
  15482. "\x51\x73\xA3\x22\x42\x41\xAB\xD2"
  15483. "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA"
  15484. "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF"
  15485. "\xC9\x3F\x07\x87\x42\x4B\x3A\x54"
  15486. "\x34\x8E\x37\xA3\x03\x6F\x65\x66"
  15487. "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD"
  15488. "\x61\xB4\x2B\x80\xA3\x98\x13\xF5"
  15489. "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8"
  15490. "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D"
  15491. "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE"
  15492. "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A"
  15493. "\x60\x40\x38\x90\x20\x46\xC7\xB3"
  15494. "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4"
  15495. "\x11\x41\x76\x6B\xB3\x60\x82\x3C"
  15496. "\x84\xFB\x08\x2E\x92\x25\xCB\x79"
  15497. "\x6F\x58\xC5\x94\x00\x00\x47\xB6"
  15498. "\x9E\xDC\x0F\x29\x70\x46\x20\x76"
  15499. "\x65\x75\x66\x5C\x00\x96\xB3\xE1"
  15500. "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45"
  15501. "\x73\xFC\x91\xAB\x79\x41\x23\x14"
  15502. "\x13\xB6\x72\x6C\x46\xB3\x03\x11"
  15503. "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32"
  15504. "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7"
  15505. "\x15\x48\x44\x99\x09\xF6\xE0\xD7"
  15506. "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2"
  15507. "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2"
  15508. "\x12\x53\x35\x9C\xF9\xE7\x35\x5D"
  15509. "\x81\xE4\x86\x42\xC3\x58\xFB\xF0"
  15510. "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F"
  15511. "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4"
  15512. "\x19\x35\x88\x22\x45\x59\x0E\x8F"
  15513. "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41"
  15514. "\x9B\x66\x8D\x32\xBA\x81\x34\x87"
  15515. "\x0E\x74\x33\x30\x62\xB9\x89\xDF"
  15516. "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB",
  15517. .rlen = 496,
  15518. .also_non_np = 1,
  15519. .np = 3,
  15520. .tap = { 496 - 20, 4, 16 },
  15521. },
  15522. };
  15523. static struct cipher_testvec cast6_ctr_dec_tv_template[] = {
  15524. { /* Generated from TF test vectors */
  15525. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  15526. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  15527. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  15528. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  15529. .klen = 32,
  15530. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  15531. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  15532. .input = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
  15533. "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
  15534. "\x57",
  15535. .ilen = 17,
  15536. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  15537. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  15538. "\x3A",
  15539. .rlen = 17,
  15540. }, { /* Generated from TF test vectors */
  15541. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  15542. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  15543. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  15544. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  15545. .klen = 32,
  15546. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  15547. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  15548. .input = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
  15549. "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
  15550. "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7"
  15551. "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56"
  15552. "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8"
  15553. "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3"
  15554. "\xE3\xF3\xFA\xC2\x23\x55\x98\x20"
  15555. "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5"
  15556. "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30"
  15557. "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D"
  15558. "\x66\x45\xEE\xC8\x19\xBE\x50\xF0"
  15559. "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9"
  15560. "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5"
  15561. "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C"
  15562. "\x81\xDF\x82\x12\xC7\x4C\x1B\x07"
  15563. "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA"
  15564. "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6"
  15565. "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5"
  15566. "\x49\x61\x22\x52\x64\x8C\x46\x41"
  15567. "\x1F\x48\x5F\x4F\xA2\x89\x36\x17"
  15568. "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0"
  15569. "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3"
  15570. "\x00\x14\x15\x59\xC1\x30\x64\xAF"
  15571. "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C"
  15572. "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4"
  15573. "\x02\x37\xC4\x69\xEF\x36\xC1\xF3"
  15574. "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0"
  15575. "\x51\x73\xA3\x22\x42\x41\xAB\xD2"
  15576. "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA"
  15577. "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF"
  15578. "\xC9\x3F\x07\x87\x42\x4B\x3A\x54"
  15579. "\x34\x8E\x37\xA3\x03\x6F\x65\x66"
  15580. "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD"
  15581. "\x61\xB4\x2B\x80\xA3\x98\x13\xF5"
  15582. "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8"
  15583. "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D"
  15584. "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE"
  15585. "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A"
  15586. "\x60\x40\x38\x90\x20\x46\xC7\xB3"
  15587. "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4"
  15588. "\x11\x41\x76\x6B\xB3\x60\x82\x3C"
  15589. "\x84\xFB\x08\x2E\x92\x25\xCB\x79"
  15590. "\x6F\x58\xC5\x94\x00\x00\x47\xB6"
  15591. "\x9E\xDC\x0F\x29\x70\x46\x20\x76"
  15592. "\x65\x75\x66\x5C\x00\x96\xB3\xE1"
  15593. "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45"
  15594. "\x73\xFC\x91\xAB\x79\x41\x23\x14"
  15595. "\x13\xB6\x72\x6C\x46\xB3\x03\x11"
  15596. "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32"
  15597. "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7"
  15598. "\x15\x48\x44\x99\x09\xF6\xE0\xD7"
  15599. "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2"
  15600. "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2"
  15601. "\x12\x53\x35\x9C\xF9\xE7\x35\x5D"
  15602. "\x81\xE4\x86\x42\xC3\x58\xFB\xF0"
  15603. "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F"
  15604. "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4"
  15605. "\x19\x35\x88\x22\x45\x59\x0E\x8F"
  15606. "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41"
  15607. "\x9B\x66\x8D\x32\xBA\x81\x34\x87"
  15608. "\x0E\x74\x33\x30\x62\xB9\x89\xDF"
  15609. "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB",
  15610. .ilen = 496,
  15611. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  15612. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  15613. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  15614. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  15615. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  15616. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  15617. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  15618. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  15619. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  15620. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  15621. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  15622. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  15623. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  15624. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  15625. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  15626. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  15627. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  15628. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  15629. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  15630. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  15631. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  15632. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  15633. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  15634. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  15635. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  15636. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  15637. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  15638. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  15639. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  15640. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  15641. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  15642. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  15643. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  15644. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  15645. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  15646. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  15647. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  15648. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  15649. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  15650. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  15651. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  15652. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  15653. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  15654. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  15655. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  15656. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  15657. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  15658. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  15659. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  15660. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  15661. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  15662. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  15663. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  15664. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  15665. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  15666. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  15667. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  15668. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  15669. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  15670. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  15671. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  15672. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  15673. .rlen = 496,
  15674. .also_non_np = 1,
  15675. .np = 3,
  15676. .tap = { 496 - 20, 4, 16 },
  15677. },
  15678. };
  15679. static struct cipher_testvec cast6_lrw_enc_tv_template[] = {
  15680. { /* Generated from TF test vectors */
  15681. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  15682. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  15683. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  15684. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  15685. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  15686. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  15687. .klen = 48,
  15688. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  15689. "\x00\x00\x00\x00\x00\x00\x00\x01",
  15690. .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  15691. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  15692. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  15693. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  15694. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  15695. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  15696. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  15697. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  15698. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  15699. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  15700. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  15701. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  15702. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  15703. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  15704. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  15705. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  15706. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  15707. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  15708. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  15709. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  15710. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  15711. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  15712. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  15713. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  15714. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  15715. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  15716. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  15717. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  15718. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  15719. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  15720. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  15721. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  15722. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  15723. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  15724. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  15725. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  15726. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  15727. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  15728. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  15729. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  15730. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  15731. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  15732. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  15733. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  15734. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  15735. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  15736. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  15737. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  15738. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  15739. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  15740. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  15741. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  15742. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  15743. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  15744. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  15745. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  15746. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  15747. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  15748. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  15749. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  15750. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  15751. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  15752. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  15753. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  15754. .ilen = 512,
  15755. .result = "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF"
  15756. "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB"
  15757. "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA"
  15758. "\x58\xB6\x73\xF0\xD7\x52\x34\xEF"
  15759. "\xFB\x3E\x96\x81\xB7\x71\x34\xA4"
  15760. "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1"
  15761. "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7"
  15762. "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B"
  15763. "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08"
  15764. "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D"
  15765. "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE"
  15766. "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA"
  15767. "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D"
  15768. "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28"
  15769. "\x80\x1D\xF0\x30\xBA\x62\x77\x7D"
  15770. "\xDB\x15\x69\xDF\xFA\x2A\x81\x64"
  15771. "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30"
  15772. "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7"
  15773. "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B"
  15774. "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61"
  15775. "\x5E\xDB\xFC\x11\x74\x25\x96\x65"
  15776. "\xE8\xE2\x34\x57\x77\x15\x5E\x70"
  15777. "\xFF\x10\x90\xC3\x64\xF0\x11\x0A"
  15778. "\x63\x3A\xD3\x55\x92\x15\x4B\x0C"
  15779. "\xC7\x08\x89\x17\x3B\x99\xAD\x63"
  15780. "\xE7\x06\xDF\x52\xBC\x15\x64\x45"
  15781. "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9"
  15782. "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23"
  15783. "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E"
  15784. "\xBD\xAB\x60\x1A\x51\x17\x54\x27"
  15785. "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19"
  15786. "\x2F\x6F\x20\xA7\x47\xED\x74\x6C"
  15787. "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F"
  15788. "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1"
  15789. "\x07\x16\xDE\x76\xCC\x5E\x94\x02"
  15790. "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F"
  15791. "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7"
  15792. "\x6E\x21\x58\x36\x06\xDE\xB3\xD4"
  15793. "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23"
  15794. "\x51\x21\x2B\x32\x68\xAA\xF8\xA8"
  15795. "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7"
  15796. "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25"
  15797. "\x30\xC7\x10\x3F\x97\x27\x01\x8E"
  15798. "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB"
  15799. "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8"
  15800. "\x22\xE2\xE6\x92\xA7\x5F\x11\x32"
  15801. "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54"
  15802. "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC"
  15803. "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5"
  15804. "\x96\x3D\x69\x91\x20\x4E\xF2\x61"
  15805. "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A"
  15806. "\x78\x39\xB0\xE0\xCF\x12\x56\xD6"
  15807. "\x05\xDC\xF9\x19\x66\x44\x1D\xF9"
  15808. "\x82\x37\xD4\xC2\x60\xB6\x31\xDF"
  15809. "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D"
  15810. "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9"
  15811. "\x9B\x8D\xA7\x00\x86\x25\xB6\x14"
  15812. "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3"
  15813. "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6"
  15814. "\x15\xB7\x94\x7D\x4E\x70\x4C\x75"
  15815. "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A"
  15816. "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5"
  15817. "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7"
  15818. "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46",
  15819. .rlen = 512,
  15820. .also_non_np = 1,
  15821. .np = 3,
  15822. .tap = { 512 - 20, 4, 16 },
  15823. },
  15824. };
  15825. static struct cipher_testvec cast6_lrw_dec_tv_template[] = {
  15826. { /* Generated from TF test vectors */
  15827. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  15828. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  15829. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  15830. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  15831. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  15832. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  15833. .klen = 48,
  15834. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  15835. "\x00\x00\x00\x00\x00\x00\x00\x01",
  15836. .input = "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF"
  15837. "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB"
  15838. "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA"
  15839. "\x58\xB6\x73\xF0\xD7\x52\x34\xEF"
  15840. "\xFB\x3E\x96\x81\xB7\x71\x34\xA4"
  15841. "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1"
  15842. "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7"
  15843. "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B"
  15844. "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08"
  15845. "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D"
  15846. "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE"
  15847. "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA"
  15848. "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D"
  15849. "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28"
  15850. "\x80\x1D\xF0\x30\xBA\x62\x77\x7D"
  15851. "\xDB\x15\x69\xDF\xFA\x2A\x81\x64"
  15852. "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30"
  15853. "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7"
  15854. "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B"
  15855. "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61"
  15856. "\x5E\xDB\xFC\x11\x74\x25\x96\x65"
  15857. "\xE8\xE2\x34\x57\x77\x15\x5E\x70"
  15858. "\xFF\x10\x90\xC3\x64\xF0\x11\x0A"
  15859. "\x63\x3A\xD3\x55\x92\x15\x4B\x0C"
  15860. "\xC7\x08\x89\x17\x3B\x99\xAD\x63"
  15861. "\xE7\x06\xDF\x52\xBC\x15\x64\x45"
  15862. "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9"
  15863. "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23"
  15864. "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E"
  15865. "\xBD\xAB\x60\x1A\x51\x17\x54\x27"
  15866. "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19"
  15867. "\x2F\x6F\x20\xA7\x47\xED\x74\x6C"
  15868. "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F"
  15869. "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1"
  15870. "\x07\x16\xDE\x76\xCC\x5E\x94\x02"
  15871. "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F"
  15872. "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7"
  15873. "\x6E\x21\x58\x36\x06\xDE\xB3\xD4"
  15874. "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23"
  15875. "\x51\x21\x2B\x32\x68\xAA\xF8\xA8"
  15876. "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7"
  15877. "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25"
  15878. "\x30\xC7\x10\x3F\x97\x27\x01\x8E"
  15879. "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB"
  15880. "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8"
  15881. "\x22\xE2\xE6\x92\xA7\x5F\x11\x32"
  15882. "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54"
  15883. "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC"
  15884. "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5"
  15885. "\x96\x3D\x69\x91\x20\x4E\xF2\x61"
  15886. "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A"
  15887. "\x78\x39\xB0\xE0\xCF\x12\x56\xD6"
  15888. "\x05\xDC\xF9\x19\x66\x44\x1D\xF9"
  15889. "\x82\x37\xD4\xC2\x60\xB6\x31\xDF"
  15890. "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D"
  15891. "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9"
  15892. "\x9B\x8D\xA7\x00\x86\x25\xB6\x14"
  15893. "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3"
  15894. "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6"
  15895. "\x15\xB7\x94\x7D\x4E\x70\x4C\x75"
  15896. "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A"
  15897. "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5"
  15898. "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7"
  15899. "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46",
  15900. .ilen = 512,
  15901. .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  15902. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  15903. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  15904. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  15905. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  15906. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  15907. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  15908. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  15909. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  15910. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  15911. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  15912. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  15913. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  15914. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  15915. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  15916. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  15917. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  15918. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  15919. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  15920. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  15921. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  15922. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  15923. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  15924. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  15925. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  15926. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  15927. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  15928. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  15929. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  15930. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  15931. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  15932. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  15933. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  15934. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  15935. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  15936. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  15937. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  15938. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  15939. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  15940. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  15941. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  15942. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  15943. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  15944. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  15945. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  15946. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  15947. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  15948. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  15949. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  15950. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  15951. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  15952. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  15953. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  15954. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  15955. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  15956. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  15957. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  15958. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  15959. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  15960. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  15961. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  15962. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  15963. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  15964. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  15965. .rlen = 512,
  15966. .also_non_np = 1,
  15967. .np = 3,
  15968. .tap = { 512 - 20, 4, 16 },
  15969. },
  15970. };
  15971. static struct cipher_testvec cast6_xts_enc_tv_template[] = {
  15972. { /* Generated from TF test vectors */
  15973. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  15974. "\x23\x53\x60\x28\x74\x71\x35\x26"
  15975. "\x62\x49\x77\x57\x24\x70\x93\x69"
  15976. "\x99\x59\x57\x49\x66\x96\x76\x27"
  15977. "\x31\x41\x59\x26\x53\x58\x97\x93"
  15978. "\x23\x84\x62\x64\x33\x83\x27\x95"
  15979. "\x02\x88\x41\x97\x16\x93\x99\x37"
  15980. "\x51\x05\x82\x09\x74\x94\x45\x92",
  15981. .klen = 64,
  15982. .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
  15983. "\x00\x00\x00\x00\x00\x00\x00\x00",
  15984. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  15985. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  15986. "\x10\x11\x12\x13\x14\x15\x16\x17"
  15987. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  15988. "\x20\x21\x22\x23\x24\x25\x26\x27"
  15989. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  15990. "\x30\x31\x32\x33\x34\x35\x36\x37"
  15991. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  15992. "\x40\x41\x42\x43\x44\x45\x46\x47"
  15993. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  15994. "\x50\x51\x52\x53\x54\x55\x56\x57"
  15995. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  15996. "\x60\x61\x62\x63\x64\x65\x66\x67"
  15997. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  15998. "\x70\x71\x72\x73\x74\x75\x76\x77"
  15999. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  16000. "\x80\x81\x82\x83\x84\x85\x86\x87"
  16001. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  16002. "\x90\x91\x92\x93\x94\x95\x96\x97"
  16003. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  16004. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  16005. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  16006. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  16007. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  16008. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  16009. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  16010. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  16011. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  16012. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  16013. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  16014. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  16015. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  16016. "\x00\x01\x02\x03\x04\x05\x06\x07"
  16017. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  16018. "\x10\x11\x12\x13\x14\x15\x16\x17"
  16019. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  16020. "\x20\x21\x22\x23\x24\x25\x26\x27"
  16021. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  16022. "\x30\x31\x32\x33\x34\x35\x36\x37"
  16023. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  16024. "\x40\x41\x42\x43\x44\x45\x46\x47"
  16025. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  16026. "\x50\x51\x52\x53\x54\x55\x56\x57"
  16027. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  16028. "\x60\x61\x62\x63\x64\x65\x66\x67"
  16029. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  16030. "\x70\x71\x72\x73\x74\x75\x76\x77"
  16031. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  16032. "\x80\x81\x82\x83\x84\x85\x86\x87"
  16033. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  16034. "\x90\x91\x92\x93\x94\x95\x96\x97"
  16035. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  16036. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  16037. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  16038. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  16039. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  16040. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  16041. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  16042. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  16043. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  16044. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  16045. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  16046. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  16047. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  16048. .ilen = 512,
  16049. .result = "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78"
  16050. "\x88\x5A\x4F\x8D\x82\x76\x52\x6D"
  16051. "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6"
  16052. "\xE2\xC5\x62\x8D\x61\xA1\x01\xED"
  16053. "\xD9\x38\x01\xC1\x43\x63\x4E\x88"
  16054. "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71"
  16055. "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13"
  16056. "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81"
  16057. "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6"
  16058. "\x60\x54\x09\x32\xFE\x6A\x76\x2E"
  16059. "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D"
  16060. "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB"
  16061. "\xB8\x25\x70\xF8\x40\xBC\x90\x1B"
  16062. "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD"
  16063. "\xD3\x3B\xCF\x60\xA1\x78\x94\x57"
  16064. "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98"
  16065. "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA"
  16066. "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67"
  16067. "\x05\xDD\x1D\x58\x6E\x2F\x95\x08"
  16068. "\x3A\xF8\x78\x76\x82\x56\xA7\xEC"
  16069. "\x51\x4B\x85\x77\xC2\x4C\x4A\x34"
  16070. "\x71\x38\x17\x91\x44\xE8\xFC\x65"
  16071. "\x99\x0D\x52\x91\xEE\xF8\xEF\x27"
  16072. "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4"
  16073. "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D"
  16074. "\x59\x22\x9B\x29\x5C\x18\xF0\xC3"
  16075. "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1"
  16076. "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3"
  16077. "\x91\x3B\x49\x73\x18\xAB\xD4\xC9"
  16078. "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A"
  16079. "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E"
  16080. "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24"
  16081. "\xE6\x87\xEA\xFE\x96\x25\x67\x8E"
  16082. "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C"
  16083. "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9"
  16084. "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97"
  16085. "\x49\xF7\x04\xCB\xEF\x84\x98\x33"
  16086. "\xAF\x38\xD3\x04\x1C\x24\x71\x38"
  16087. "\xC7\x71\xDD\x43\x0D\x12\x4A\x18"
  16088. "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95"
  16089. "\x02\x43\x5D\xCE\x19\xCC\xCD\x66"
  16090. "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C"
  16091. "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB"
  16092. "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B"
  16093. "\x30\x45\xA9\xB7\xAF\x80\x64\x6F"
  16094. "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE"
  16095. "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE"
  16096. "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8"
  16097. "\x97\xA3\xE1\x6F\x38\x24\x34\x88"
  16098. "\xCE\xBD\x32\x52\xE0\x00\x6C\x94"
  16099. "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F"
  16100. "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59"
  16101. "\x34\x39\xA8\x35\x12\xB7\xBC\xAC"
  16102. "\xEA\x52\x9C\x78\x02\x6D\x92\x36"
  16103. "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83"
  16104. "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64"
  16105. "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3"
  16106. "\xB0\xEB\x31\xE4\x69\x95\xAB\x35"
  16107. "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82"
  16108. "\xF8\xD9\x47\x82\xA9\x82\x03\x91"
  16109. "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F"
  16110. "\x45\x72\x80\x17\x81\xBD\x9D\x62"
  16111. "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC"
  16112. "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9",
  16113. .rlen = 512,
  16114. .also_non_np = 1,
  16115. .np = 3,
  16116. .tap = { 512 - 20, 4, 16 },
  16117. },
  16118. };
  16119. static struct cipher_testvec cast6_xts_dec_tv_template[] = {
  16120. { /* Generated from TF test vectors */
  16121. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  16122. "\x23\x53\x60\x28\x74\x71\x35\x26"
  16123. "\x62\x49\x77\x57\x24\x70\x93\x69"
  16124. "\x99\x59\x57\x49\x66\x96\x76\x27"
  16125. "\x31\x41\x59\x26\x53\x58\x97\x93"
  16126. "\x23\x84\x62\x64\x33\x83\x27\x95"
  16127. "\x02\x88\x41\x97\x16\x93\x99\x37"
  16128. "\x51\x05\x82\x09\x74\x94\x45\x92",
  16129. .klen = 64,
  16130. .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
  16131. "\x00\x00\x00\x00\x00\x00\x00\x00",
  16132. .input = "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78"
  16133. "\x88\x5A\x4F\x8D\x82\x76\x52\x6D"
  16134. "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6"
  16135. "\xE2\xC5\x62\x8D\x61\xA1\x01\xED"
  16136. "\xD9\x38\x01\xC1\x43\x63\x4E\x88"
  16137. "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71"
  16138. "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13"
  16139. "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81"
  16140. "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6"
  16141. "\x60\x54\x09\x32\xFE\x6A\x76\x2E"
  16142. "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D"
  16143. "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB"
  16144. "\xB8\x25\x70\xF8\x40\xBC\x90\x1B"
  16145. "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD"
  16146. "\xD3\x3B\xCF\x60\xA1\x78\x94\x57"
  16147. "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98"
  16148. "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA"
  16149. "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67"
  16150. "\x05\xDD\x1D\x58\x6E\x2F\x95\x08"
  16151. "\x3A\xF8\x78\x76\x82\x56\xA7\xEC"
  16152. "\x51\x4B\x85\x77\xC2\x4C\x4A\x34"
  16153. "\x71\x38\x17\x91\x44\xE8\xFC\x65"
  16154. "\x99\x0D\x52\x91\xEE\xF8\xEF\x27"
  16155. "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4"
  16156. "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D"
  16157. "\x59\x22\x9B\x29\x5C\x18\xF0\xC3"
  16158. "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1"
  16159. "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3"
  16160. "\x91\x3B\x49\x73\x18\xAB\xD4\xC9"
  16161. "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A"
  16162. "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E"
  16163. "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24"
  16164. "\xE6\x87\xEA\xFE\x96\x25\x67\x8E"
  16165. "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C"
  16166. "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9"
  16167. "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97"
  16168. "\x49\xF7\x04\xCB\xEF\x84\x98\x33"
  16169. "\xAF\x38\xD3\x04\x1C\x24\x71\x38"
  16170. "\xC7\x71\xDD\x43\x0D\x12\x4A\x18"
  16171. "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95"
  16172. "\x02\x43\x5D\xCE\x19\xCC\xCD\x66"
  16173. "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C"
  16174. "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB"
  16175. "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B"
  16176. "\x30\x45\xA9\xB7\xAF\x80\x64\x6F"
  16177. "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE"
  16178. "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE"
  16179. "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8"
  16180. "\x97\xA3\xE1\x6F\x38\x24\x34\x88"
  16181. "\xCE\xBD\x32\x52\xE0\x00\x6C\x94"
  16182. "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F"
  16183. "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59"
  16184. "\x34\x39\xA8\x35\x12\xB7\xBC\xAC"
  16185. "\xEA\x52\x9C\x78\x02\x6D\x92\x36"
  16186. "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83"
  16187. "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64"
  16188. "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3"
  16189. "\xB0\xEB\x31\xE4\x69\x95\xAB\x35"
  16190. "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82"
  16191. "\xF8\xD9\x47\x82\xA9\x82\x03\x91"
  16192. "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F"
  16193. "\x45\x72\x80\x17\x81\xBD\x9D\x62"
  16194. "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC"
  16195. "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9",
  16196. .ilen = 512,
  16197. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  16198. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  16199. "\x10\x11\x12\x13\x14\x15\x16\x17"
  16200. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  16201. "\x20\x21\x22\x23\x24\x25\x26\x27"
  16202. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  16203. "\x30\x31\x32\x33\x34\x35\x36\x37"
  16204. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  16205. "\x40\x41\x42\x43\x44\x45\x46\x47"
  16206. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  16207. "\x50\x51\x52\x53\x54\x55\x56\x57"
  16208. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  16209. "\x60\x61\x62\x63\x64\x65\x66\x67"
  16210. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  16211. "\x70\x71\x72\x73\x74\x75\x76\x77"
  16212. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  16213. "\x80\x81\x82\x83\x84\x85\x86\x87"
  16214. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  16215. "\x90\x91\x92\x93\x94\x95\x96\x97"
  16216. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  16217. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  16218. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  16219. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  16220. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  16221. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  16222. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  16223. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  16224. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  16225. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  16226. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  16227. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  16228. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  16229. "\x00\x01\x02\x03\x04\x05\x06\x07"
  16230. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  16231. "\x10\x11\x12\x13\x14\x15\x16\x17"
  16232. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  16233. "\x20\x21\x22\x23\x24\x25\x26\x27"
  16234. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  16235. "\x30\x31\x32\x33\x34\x35\x36\x37"
  16236. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  16237. "\x40\x41\x42\x43\x44\x45\x46\x47"
  16238. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  16239. "\x50\x51\x52\x53\x54\x55\x56\x57"
  16240. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  16241. "\x60\x61\x62\x63\x64\x65\x66\x67"
  16242. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  16243. "\x70\x71\x72\x73\x74\x75\x76\x77"
  16244. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  16245. "\x80\x81\x82\x83\x84\x85\x86\x87"
  16246. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  16247. "\x90\x91\x92\x93\x94\x95\x96\x97"
  16248. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  16249. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  16250. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  16251. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  16252. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  16253. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  16254. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  16255. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  16256. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  16257. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  16258. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  16259. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  16260. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  16261. .rlen = 512,
  16262. .also_non_np = 1,
  16263. .np = 3,
  16264. .tap = { 512 - 20, 4, 16 },
  16265. },
  16266. };
  16267. /*
  16268. * AES test vectors.
  16269. */
  16270. #define AES_ENC_TEST_VECTORS 4
  16271. #define AES_DEC_TEST_VECTORS 4
  16272. #define AES_CBC_ENC_TEST_VECTORS 5
  16273. #define AES_CBC_DEC_TEST_VECTORS 5
  16274. #define HMAC_MD5_ECB_CIPHER_NULL_ENC_TEST_VECTORS 2
  16275. #define HMAC_MD5_ECB_CIPHER_NULL_DEC_TEST_VECTORS 2
  16276. #define HMAC_SHA1_ECB_CIPHER_NULL_ENC_TEST_VEC 2
  16277. #define HMAC_SHA1_ECB_CIPHER_NULL_DEC_TEST_VEC 2
  16278. #define HMAC_SHA1_AES_CBC_ENC_TEST_VEC 7
  16279. #define HMAC_SHA256_AES_CBC_ENC_TEST_VEC 7
  16280. #define HMAC_SHA512_AES_CBC_ENC_TEST_VEC 7
  16281. #define AES_LRW_ENC_TEST_VECTORS 8
  16282. #define AES_LRW_DEC_TEST_VECTORS 8
  16283. #define AES_XTS_ENC_TEST_VECTORS 5
  16284. #define AES_XTS_DEC_TEST_VECTORS 5
  16285. #define AES_CTR_ENC_TEST_VECTORS 5
  16286. #define AES_CTR_DEC_TEST_VECTORS 5
  16287. #define AES_OFB_ENC_TEST_VECTORS 1
  16288. #define AES_OFB_DEC_TEST_VECTORS 1
  16289. #define AES_CTR_3686_ENC_TEST_VECTORS 7
  16290. #define AES_CTR_3686_DEC_TEST_VECTORS 6
  16291. #define AES_GCM_ENC_TEST_VECTORS 9
  16292. #define AES_GCM_DEC_TEST_VECTORS 8
  16293. #define AES_GCM_4106_ENC_TEST_VECTORS 23
  16294. #define AES_GCM_4106_DEC_TEST_VECTORS 23
  16295. #define AES_GCM_4543_ENC_TEST_VECTORS 1
  16296. #define AES_GCM_4543_DEC_TEST_VECTORS 2
  16297. #define AES_CCM_ENC_TEST_VECTORS 8
  16298. #define AES_CCM_DEC_TEST_VECTORS 7
  16299. #define AES_CCM_4309_ENC_TEST_VECTORS 7
  16300. #define AES_CCM_4309_DEC_TEST_VECTORS 10
  16301. static struct cipher_testvec aes_enc_tv_template[] = {
  16302. { /* From FIPS-197 */
  16303. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  16304. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  16305. .klen = 16,
  16306. .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
  16307. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  16308. .ilen = 16,
  16309. .result = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
  16310. "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
  16311. .rlen = 16,
  16312. }, {
  16313. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  16314. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  16315. "\x10\x11\x12\x13\x14\x15\x16\x17",
  16316. .klen = 24,
  16317. .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
  16318. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  16319. .ilen = 16,
  16320. .result = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
  16321. "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
  16322. .rlen = 16,
  16323. }, {
  16324. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  16325. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  16326. "\x10\x11\x12\x13\x14\x15\x16\x17"
  16327. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  16328. .klen = 32,
  16329. .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
  16330. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  16331. .ilen = 16,
  16332. .result = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
  16333. "\xea\xfc\x49\x90\x4b\x49\x60\x89",
  16334. .rlen = 16,
  16335. }, { /* Generated with Crypto++ */
  16336. .key = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32"
  16337. "\x55\x0F\x32\x55\x78\x9B\xBE\x78"
  16338. "\x9B\xBE\xE1\x04\x27\xE1\x04\x27"
  16339. "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6",
  16340. .klen = 32,
  16341. .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  16342. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  16343. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  16344. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  16345. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  16346. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  16347. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  16348. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  16349. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  16350. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  16351. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  16352. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  16353. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  16354. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  16355. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  16356. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  16357. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  16358. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  16359. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  16360. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  16361. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  16362. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  16363. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  16364. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  16365. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  16366. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  16367. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  16368. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  16369. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  16370. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  16371. "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
  16372. "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
  16373. "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
  16374. "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
  16375. "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
  16376. "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
  16377. "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
  16378. "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
  16379. "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
  16380. "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
  16381. "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
  16382. "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
  16383. "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
  16384. "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
  16385. "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
  16386. "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
  16387. "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
  16388. "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
  16389. "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
  16390. "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
  16391. "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
  16392. "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
  16393. "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
  16394. "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
  16395. "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
  16396. "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
  16397. "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
  16398. "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
  16399. "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
  16400. "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
  16401. "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
  16402. "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
  16403. .ilen = 496,
  16404. .result = "\x71\x73\xF7\xDB\x24\x93\x21\x6D"
  16405. "\x61\x1E\xBB\x63\x42\x79\xDB\x64"
  16406. "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B"
  16407. "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F"
  16408. "\x5E\x06\xF0\x5F\x31\x51\x18\x37"
  16409. "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1"
  16410. "\xDD\x8D\x22\x65\x2B\x00\x50\xCE"
  16411. "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA"
  16412. "\x78\x69\x7F\xAE\x8F\x8B\x69\x37"
  16413. "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09"
  16414. "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8"
  16415. "\x81\x82\x27\xFA\x45\x9C\x29\xA4"
  16416. "\x22\x8B\x78\x69\x5B\x46\xF9\x39"
  16417. "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C"
  16418. "\x41\x72\x51\x97\x1D\x07\x49\xA0"
  16419. "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03"
  16420. "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64"
  16421. "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA"
  16422. "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F"
  16423. "\xE1\x8B\x22\x17\x59\x0C\x47\x89"
  16424. "\x33\xA1\xD6\x47\x03\x19\x4F\xA8"
  16425. "\x67\x69\xF0\x5B\xF0\x20\xAD\x06"
  16426. "\x27\x81\x92\xD8\xC5\xBA\x98\x12"
  16427. "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD"
  16428. "\x12\x2F\x07\x32\xEE\x39\xAF\x64"
  16429. "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E"
  16430. "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68"
  16431. "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC"
  16432. "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F"
  16433. "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C"
  16434. "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B"
  16435. "\x25\xFB\x26\x81\xE0\x2F\xF0\x96"
  16436. "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64"
  16437. "\x63\x29\x4C\x8E\x18\x13\xC5\xBF"
  16438. "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29"
  16439. "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1"
  16440. "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1"
  16441. "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA"
  16442. "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50"
  16443. "\x31\xCB\x69\x3F\x96\x15\xD6\xF5"
  16444. "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10"
  16445. "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A"
  16446. "\xDC\x6A\x80\x34\x73\x97\x1B\xC5"
  16447. "\xCA\x26\x16\x77\x0E\x60\xAB\x89"
  16448. "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4"
  16449. "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70"
  16450. "\x42\x71\x51\x78\x70\xB3\xE0\x3D"
  16451. "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92"
  16452. "\x11\x08\x42\x4F\xE5\xAD\x26\x92"
  16453. "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47"
  16454. "\x22\xC1\x95\xC1\x63\x7F\xCB\x03"
  16455. "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA"
  16456. "\x35\xA2\xFD\x45\x52\x39\x13\x6F"
  16457. "\xC1\x53\xF3\x53\xDF\x33\x84\xD7"
  16458. "\xD2\xC8\x37\xB0\x75\xE3\x41\x46"
  16459. "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5"
  16460. "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD"
  16461. "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F"
  16462. "\x40\x86\x7F\x51\xE1\x11\x9C\xCB"
  16463. "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF"
  16464. "\x09\x79\xA0\x43\x5C\x0D\x08\x58"
  16465. "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9",
  16466. .rlen = 496,
  16467. .also_non_np = 1,
  16468. .np = 3,
  16469. .tap = { 496 - 20, 4, 16 },
  16470. },
  16471. };
  16472. static struct cipher_testvec aes_dec_tv_template[] = {
  16473. { /* From FIPS-197 */
  16474. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  16475. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  16476. .klen = 16,
  16477. .input = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
  16478. "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
  16479. .ilen = 16,
  16480. .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
  16481. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  16482. .rlen = 16,
  16483. }, {
  16484. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  16485. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  16486. "\x10\x11\x12\x13\x14\x15\x16\x17",
  16487. .klen = 24,
  16488. .input = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
  16489. "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
  16490. .ilen = 16,
  16491. .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
  16492. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  16493. .rlen = 16,
  16494. }, {
  16495. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  16496. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  16497. "\x10\x11\x12\x13\x14\x15\x16\x17"
  16498. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  16499. .klen = 32,
  16500. .input = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
  16501. "\xea\xfc\x49\x90\x4b\x49\x60\x89",
  16502. .ilen = 16,
  16503. .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
  16504. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  16505. .rlen = 16,
  16506. }, { /* Generated with Crypto++ */
  16507. .key = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32"
  16508. "\x55\x0F\x32\x55\x78\x9B\xBE\x78"
  16509. "\x9B\xBE\xE1\x04\x27\xE1\x04\x27"
  16510. "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6",
  16511. .klen = 32,
  16512. .input = "\x71\x73\xF7\xDB\x24\x93\x21\x6D"
  16513. "\x61\x1E\xBB\x63\x42\x79\xDB\x64"
  16514. "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B"
  16515. "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F"
  16516. "\x5E\x06\xF0\x5F\x31\x51\x18\x37"
  16517. "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1"
  16518. "\xDD\x8D\x22\x65\x2B\x00\x50\xCE"
  16519. "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA"
  16520. "\x78\x69\x7F\xAE\x8F\x8B\x69\x37"
  16521. "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09"
  16522. "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8"
  16523. "\x81\x82\x27\xFA\x45\x9C\x29\xA4"
  16524. "\x22\x8B\x78\x69\x5B\x46\xF9\x39"
  16525. "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C"
  16526. "\x41\x72\x51\x97\x1D\x07\x49\xA0"
  16527. "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03"
  16528. "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64"
  16529. "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA"
  16530. "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F"
  16531. "\xE1\x8B\x22\x17\x59\x0C\x47\x89"
  16532. "\x33\xA1\xD6\x47\x03\x19\x4F\xA8"
  16533. "\x67\x69\xF0\x5B\xF0\x20\xAD\x06"
  16534. "\x27\x81\x92\xD8\xC5\xBA\x98\x12"
  16535. "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD"
  16536. "\x12\x2F\x07\x32\xEE\x39\xAF\x64"
  16537. "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E"
  16538. "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68"
  16539. "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC"
  16540. "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F"
  16541. "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C"
  16542. "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B"
  16543. "\x25\xFB\x26\x81\xE0\x2F\xF0\x96"
  16544. "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64"
  16545. "\x63\x29\x4C\x8E\x18\x13\xC5\xBF"
  16546. "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29"
  16547. "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1"
  16548. "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1"
  16549. "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA"
  16550. "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50"
  16551. "\x31\xCB\x69\x3F\x96\x15\xD6\xF5"
  16552. "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10"
  16553. "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A"
  16554. "\xDC\x6A\x80\x34\x73\x97\x1B\xC5"
  16555. "\xCA\x26\x16\x77\x0E\x60\xAB\x89"
  16556. "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4"
  16557. "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70"
  16558. "\x42\x71\x51\x78\x70\xB3\xE0\x3D"
  16559. "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92"
  16560. "\x11\x08\x42\x4F\xE5\xAD\x26\x92"
  16561. "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47"
  16562. "\x22\xC1\x95\xC1\x63\x7F\xCB\x03"
  16563. "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA"
  16564. "\x35\xA2\xFD\x45\x52\x39\x13\x6F"
  16565. "\xC1\x53\xF3\x53\xDF\x33\x84\xD7"
  16566. "\xD2\xC8\x37\xB0\x75\xE3\x41\x46"
  16567. "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5"
  16568. "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD"
  16569. "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F"
  16570. "\x40\x86\x7F\x51\xE1\x11\x9C\xCB"
  16571. "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF"
  16572. "\x09\x79\xA0\x43\x5C\x0D\x08\x58"
  16573. "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9",
  16574. .ilen = 496,
  16575. .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  16576. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  16577. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  16578. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  16579. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  16580. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  16581. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  16582. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  16583. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  16584. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  16585. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  16586. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  16587. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  16588. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  16589. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  16590. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  16591. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  16592. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  16593. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  16594. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  16595. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  16596. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  16597. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  16598. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  16599. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  16600. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  16601. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  16602. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  16603. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  16604. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  16605. "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
  16606. "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
  16607. "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
  16608. "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
  16609. "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
  16610. "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
  16611. "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
  16612. "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
  16613. "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
  16614. "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
  16615. "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
  16616. "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
  16617. "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
  16618. "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
  16619. "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
  16620. "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
  16621. "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
  16622. "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
  16623. "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
  16624. "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
  16625. "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
  16626. "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
  16627. "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
  16628. "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
  16629. "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
  16630. "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
  16631. "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
  16632. "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
  16633. "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
  16634. "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
  16635. "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
  16636. "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
  16637. .rlen = 496,
  16638. .also_non_np = 1,
  16639. .np = 3,
  16640. .tap = { 496 - 20, 4, 16 },
  16641. },
  16642. };
  16643. static struct cipher_testvec aes_cbc_enc_tv_template[] = {
  16644. { /* From RFC 3602 */
  16645. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  16646. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  16647. .klen = 16,
  16648. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  16649. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  16650. .input = "Single block msg",
  16651. .ilen = 16,
  16652. .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
  16653. "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
  16654. .rlen = 16,
  16655. .also_non_np = 1,
  16656. .np = 8,
  16657. .tap = { 3, 2, 3, 2, 3, 1, 1, 1 },
  16658. }, {
  16659. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  16660. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  16661. .klen = 16,
  16662. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  16663. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  16664. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  16665. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  16666. "\x10\x11\x12\x13\x14\x15\x16\x17"
  16667. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  16668. .ilen = 32,
  16669. .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
  16670. "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
  16671. "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
  16672. "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
  16673. .rlen = 32,
  16674. }, { /* From NIST SP800-38A */
  16675. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  16676. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  16677. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  16678. .klen = 24,
  16679. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  16680. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  16681. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  16682. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  16683. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  16684. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  16685. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  16686. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  16687. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  16688. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  16689. .ilen = 64,
  16690. .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
  16691. "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
  16692. "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
  16693. "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
  16694. "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
  16695. "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
  16696. "\x08\xb0\xe2\x79\x88\x59\x88\x81"
  16697. "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
  16698. .rlen = 64,
  16699. }, {
  16700. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  16701. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  16702. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  16703. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  16704. .klen = 32,
  16705. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  16706. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  16707. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  16708. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  16709. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  16710. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  16711. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  16712. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  16713. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  16714. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  16715. .ilen = 64,
  16716. .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
  16717. "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
  16718. "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
  16719. "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
  16720. "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
  16721. "\xa5\x30\xe2\x63\x04\x23\x14\x61"
  16722. "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
  16723. "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
  16724. .rlen = 64,
  16725. }, { /* Generated with Crypto++ */
  16726. .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
  16727. "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
  16728. "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
  16729. "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
  16730. .klen = 32,
  16731. .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
  16732. "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
  16733. .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  16734. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  16735. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  16736. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  16737. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  16738. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  16739. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  16740. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  16741. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  16742. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  16743. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  16744. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  16745. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  16746. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  16747. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  16748. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  16749. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  16750. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  16751. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  16752. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  16753. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  16754. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  16755. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  16756. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  16757. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  16758. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  16759. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  16760. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  16761. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  16762. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  16763. "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
  16764. "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
  16765. "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
  16766. "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
  16767. "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
  16768. "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
  16769. "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
  16770. "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
  16771. "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
  16772. "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
  16773. "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
  16774. "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
  16775. "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
  16776. "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
  16777. "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
  16778. "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
  16779. "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
  16780. "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
  16781. "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
  16782. "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
  16783. "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
  16784. "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
  16785. "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
  16786. "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
  16787. "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
  16788. "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
  16789. "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
  16790. "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
  16791. "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
  16792. "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
  16793. "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
  16794. "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
  16795. .ilen = 496,
  16796. .result = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F"
  16797. "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF"
  16798. "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F"
  16799. "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8"
  16800. "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0"
  16801. "\x11\x15\xFF\x6D\x1E\x82\x04\xA6"
  16802. "\xB1\x74\xD1\x08\x13\xFD\x90\x7C"
  16803. "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F"
  16804. "\x0A\x70\xF1\x88\x07\xCF\x21\x26"
  16805. "\x40\x40\x8A\xF5\x53\xF7\x24\x4F"
  16806. "\x83\x38\x43\x5F\x08\x99\xEB\xE3"
  16807. "\xDC\x02\x64\x67\x50\x6E\x15\xC3"
  16808. "\x01\x1A\xA0\x81\x13\x65\xA6\x73"
  16809. "\x71\xA6\x3B\x91\x83\x77\xBE\xFA"
  16810. "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3"
  16811. "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F"
  16812. "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F"
  16813. "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43"
  16814. "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40"
  16815. "\x03\xA8\x6C\x50\x42\x9F\x77\x59"
  16816. "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99"
  16817. "\x16\x24\x02\x07\x48\xAE\xF2\x31"
  16818. "\x34\x0E\xC3\x85\xFE\x1C\x95\x99"
  16819. "\x87\x58\x98\x8B\xE7\xC6\xC5\x70"
  16820. "\x73\x81\x07\x7C\x56\x2F\xD8\x1B"
  16821. "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F"
  16822. "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98"
  16823. "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04"
  16824. "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5"
  16825. "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD"
  16826. "\xF1\xE3\x3D\x98\x50\x02\x77\x9E"
  16827. "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66"
  16828. "\x20\x02\x23\xDA\xDF\xA0\x89\xF6"
  16829. "\xD8\xF3\x45\x24\x53\x6F\x16\x77"
  16830. "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78"
  16831. "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3"
  16832. "\x57\xBC\x0B\x9F\x43\x51\x28\x4F"
  16833. "\x07\x50\x6C\x68\x12\x07\xCF\xFA"
  16834. "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C"
  16835. "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD"
  16836. "\x22\x39\x7B\x16\x03\x01\x69\xAF"
  16837. "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5"
  16838. "\x03\xB4\x2F\x51\x8A\x56\x17\x2B"
  16839. "\x88\x42\x6D\x40\x68\x8F\xD0\x11"
  16840. "\x19\xF9\x1F\x43\x79\x95\x31\xFA"
  16841. "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC"
  16842. "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC"
  16843. "\x8D\x53\x6E\x72\x68\xA3\xC7\x63"
  16844. "\x43\x2B\x78\xE0\x04\x29\x8F\x72"
  16845. "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD"
  16846. "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D"
  16847. "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44"
  16848. "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61"
  16849. "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC"
  16850. "\x58\x08\x15\xAB\x12\xAB\x17\x4A"
  16851. "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB"
  16852. "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F"
  16853. "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61"
  16854. "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD"
  16855. "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A"
  16856. "\xE0\x1F\x91\xF8\x82\x96\x2D\x65"
  16857. "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02",
  16858. .rlen = 496,
  16859. .also_non_np = 1,
  16860. .np = 3,
  16861. .tap = { 496 - 20, 4, 16 },
  16862. },
  16863. };
  16864. static struct cipher_testvec aes_cbc_dec_tv_template[] = {
  16865. { /* From RFC 3602 */
  16866. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  16867. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  16868. .klen = 16,
  16869. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  16870. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  16871. .input = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
  16872. "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
  16873. .ilen = 16,
  16874. .result = "Single block msg",
  16875. .rlen = 16,
  16876. .also_non_np = 1,
  16877. .np = 8,
  16878. .tap = { 3, 2, 3, 2, 3, 1, 1, 1 },
  16879. }, {
  16880. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  16881. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  16882. .klen = 16,
  16883. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  16884. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  16885. .input = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
  16886. "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
  16887. "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
  16888. "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
  16889. .ilen = 32,
  16890. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  16891. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  16892. "\x10\x11\x12\x13\x14\x15\x16\x17"
  16893. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  16894. .rlen = 32,
  16895. }, { /* From NIST SP800-38A */
  16896. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  16897. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  16898. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  16899. .klen = 24,
  16900. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  16901. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  16902. .input = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
  16903. "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
  16904. "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
  16905. "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
  16906. "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
  16907. "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
  16908. "\x08\xb0\xe2\x79\x88\x59\x88\x81"
  16909. "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
  16910. .ilen = 64,
  16911. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  16912. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  16913. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  16914. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  16915. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  16916. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  16917. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  16918. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  16919. .rlen = 64,
  16920. }, {
  16921. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  16922. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  16923. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  16924. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  16925. .klen = 32,
  16926. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  16927. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  16928. .input = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
  16929. "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
  16930. "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
  16931. "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
  16932. "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
  16933. "\xa5\x30\xe2\x63\x04\x23\x14\x61"
  16934. "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
  16935. "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
  16936. .ilen = 64,
  16937. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  16938. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  16939. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  16940. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  16941. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  16942. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  16943. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  16944. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  16945. .rlen = 64,
  16946. }, { /* Generated with Crypto++ */
  16947. .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
  16948. "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
  16949. "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
  16950. "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
  16951. .klen = 32,
  16952. .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
  16953. "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
  16954. .input = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F"
  16955. "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF"
  16956. "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F"
  16957. "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8"
  16958. "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0"
  16959. "\x11\x15\xFF\x6D\x1E\x82\x04\xA6"
  16960. "\xB1\x74\xD1\x08\x13\xFD\x90\x7C"
  16961. "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F"
  16962. "\x0A\x70\xF1\x88\x07\xCF\x21\x26"
  16963. "\x40\x40\x8A\xF5\x53\xF7\x24\x4F"
  16964. "\x83\x38\x43\x5F\x08\x99\xEB\xE3"
  16965. "\xDC\x02\x64\x67\x50\x6E\x15\xC3"
  16966. "\x01\x1A\xA0\x81\x13\x65\xA6\x73"
  16967. "\x71\xA6\x3B\x91\x83\x77\xBE\xFA"
  16968. "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3"
  16969. "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F"
  16970. "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F"
  16971. "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43"
  16972. "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40"
  16973. "\x03\xA8\x6C\x50\x42\x9F\x77\x59"
  16974. "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99"
  16975. "\x16\x24\x02\x07\x48\xAE\xF2\x31"
  16976. "\x34\x0E\xC3\x85\xFE\x1C\x95\x99"
  16977. "\x87\x58\x98\x8B\xE7\xC6\xC5\x70"
  16978. "\x73\x81\x07\x7C\x56\x2F\xD8\x1B"
  16979. "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F"
  16980. "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98"
  16981. "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04"
  16982. "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5"
  16983. "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD"
  16984. "\xF1\xE3\x3D\x98\x50\x02\x77\x9E"
  16985. "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66"
  16986. "\x20\x02\x23\xDA\xDF\xA0\x89\xF6"
  16987. "\xD8\xF3\x45\x24\x53\x6F\x16\x77"
  16988. "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78"
  16989. "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3"
  16990. "\x57\xBC\x0B\x9F\x43\x51\x28\x4F"
  16991. "\x07\x50\x6C\x68\x12\x07\xCF\xFA"
  16992. "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C"
  16993. "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD"
  16994. "\x22\x39\x7B\x16\x03\x01\x69\xAF"
  16995. "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5"
  16996. "\x03\xB4\x2F\x51\x8A\x56\x17\x2B"
  16997. "\x88\x42\x6D\x40\x68\x8F\xD0\x11"
  16998. "\x19\xF9\x1F\x43\x79\x95\x31\xFA"
  16999. "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC"
  17000. "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC"
  17001. "\x8D\x53\x6E\x72\x68\xA3\xC7\x63"
  17002. "\x43\x2B\x78\xE0\x04\x29\x8F\x72"
  17003. "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD"
  17004. "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D"
  17005. "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44"
  17006. "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61"
  17007. "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC"
  17008. "\x58\x08\x15\xAB\x12\xAB\x17\x4A"
  17009. "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB"
  17010. "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F"
  17011. "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61"
  17012. "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD"
  17013. "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A"
  17014. "\xE0\x1F\x91\xF8\x82\x96\x2D\x65"
  17015. "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02",
  17016. .ilen = 496,
  17017. .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  17018. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  17019. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  17020. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  17021. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  17022. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  17023. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  17024. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  17025. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  17026. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  17027. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  17028. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  17029. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  17030. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  17031. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  17032. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  17033. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  17034. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  17035. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  17036. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  17037. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  17038. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  17039. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  17040. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  17041. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  17042. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  17043. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  17044. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  17045. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  17046. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  17047. "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
  17048. "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
  17049. "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
  17050. "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
  17051. "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
  17052. "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
  17053. "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
  17054. "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
  17055. "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
  17056. "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
  17057. "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
  17058. "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
  17059. "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
  17060. "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
  17061. "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
  17062. "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
  17063. "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
  17064. "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
  17065. "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
  17066. "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
  17067. "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
  17068. "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
  17069. "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
  17070. "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
  17071. "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
  17072. "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
  17073. "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
  17074. "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
  17075. "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
  17076. "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
  17077. "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
  17078. "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
  17079. .rlen = 496,
  17080. .also_non_np = 1,
  17081. .np = 3,
  17082. .tap = { 496 - 20, 4, 16 },
  17083. },
  17084. };
  17085. static struct aead_testvec hmac_md5_ecb_cipher_null_enc_tv_template[] = {
  17086. { /* Input data from RFC 2410 Case 1 */
  17087. #ifdef __LITTLE_ENDIAN
  17088. .key = "\x08\x00" /* rta length */
  17089. "\x01\x00" /* rta type */
  17090. #else
  17091. .key = "\x00\x08" /* rta length */
  17092. "\x00\x01" /* rta type */
  17093. #endif
  17094. "\x00\x00\x00\x00" /* enc key length */
  17095. "\x00\x00\x00\x00\x00\x00\x00\x00"
  17096. "\x00\x00\x00\x00\x00\x00\x00\x00",
  17097. .klen = 8 + 16 + 0,
  17098. .iv = "",
  17099. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  17100. .ilen = 8,
  17101. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  17102. "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a"
  17103. "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae",
  17104. .rlen = 8 + 16,
  17105. }, { /* Input data from RFC 2410 Case 2 */
  17106. #ifdef __LITTLE_ENDIAN
  17107. .key = "\x08\x00" /* rta length */
  17108. "\x01\x00" /* rta type */
  17109. #else
  17110. .key = "\x00\x08" /* rta length */
  17111. "\x00\x01" /* rta type */
  17112. #endif
  17113. "\x00\x00\x00\x00" /* enc key length */
  17114. "\x00\x00\x00\x00\x00\x00\x00\x00"
  17115. "\x00\x00\x00\x00\x00\x00\x00\x00",
  17116. .klen = 8 + 16 + 0,
  17117. .iv = "",
  17118. .input = "Network Security People Have A Strange Sense Of Humor",
  17119. .ilen = 53,
  17120. .result = "Network Security People Have A Strange Sense Of Humor"
  17121. "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a"
  17122. "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23",
  17123. .rlen = 53 + 16,
  17124. },
  17125. };
  17126. static struct aead_testvec hmac_md5_ecb_cipher_null_dec_tv_template[] = {
  17127. {
  17128. #ifdef __LITTLE_ENDIAN
  17129. .key = "\x08\x00" /* rta length */
  17130. "\x01\x00" /* rta type */
  17131. #else
  17132. .key = "\x00\x08" /* rta length */
  17133. "\x00\x01" /* rta type */
  17134. #endif
  17135. "\x00\x00\x00\x00" /* enc key length */
  17136. "\x00\x00\x00\x00\x00\x00\x00\x00"
  17137. "\x00\x00\x00\x00\x00\x00\x00\x00",
  17138. .klen = 8 + 16 + 0,
  17139. .iv = "",
  17140. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  17141. "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a"
  17142. "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae",
  17143. .ilen = 8 + 16,
  17144. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  17145. .rlen = 8,
  17146. }, {
  17147. #ifdef __LITTLE_ENDIAN
  17148. .key = "\x08\x00" /* rta length */
  17149. "\x01\x00" /* rta type */
  17150. #else
  17151. .key = "\x00\x08" /* rta length */
  17152. "\x00\x01" /* rta type */
  17153. #endif
  17154. "\x00\x00\x00\x00" /* enc key length */
  17155. "\x00\x00\x00\x00\x00\x00\x00\x00"
  17156. "\x00\x00\x00\x00\x00\x00\x00\x00",
  17157. .klen = 8 + 16 + 0,
  17158. .iv = "",
  17159. .input = "Network Security People Have A Strange Sense Of Humor"
  17160. "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a"
  17161. "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23",
  17162. .ilen = 53 + 16,
  17163. .result = "Network Security People Have A Strange Sense Of Humor",
  17164. .rlen = 53,
  17165. },
  17166. };
  17167. static struct aead_testvec hmac_sha1_aes_cbc_enc_tv_temp[] = {
  17168. { /* RFC 3602 Case 1 */
  17169. #ifdef __LITTLE_ENDIAN
  17170. .key = "\x08\x00" /* rta length */
  17171. "\x01\x00" /* rta type */
  17172. #else
  17173. .key = "\x00\x08" /* rta length */
  17174. "\x00\x01" /* rta type */
  17175. #endif
  17176. "\x00\x00\x00\x10" /* enc key length */
  17177. "\x00\x00\x00\x00\x00\x00\x00\x00"
  17178. "\x00\x00\x00\x00\x00\x00\x00\x00"
  17179. "\x00\x00\x00\x00"
  17180. "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  17181. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  17182. .klen = 8 + 20 + 16,
  17183. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  17184. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  17185. .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  17186. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  17187. .alen = 16,
  17188. .input = "Single block msg",
  17189. .ilen = 16,
  17190. .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
  17191. "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
  17192. "\x1b\x13\xcb\xaf\x89\x5e\xe1\x2c"
  17193. "\x13\xc5\x2e\xa3\xcc\xed\xdc\xb5"
  17194. "\x03\x71\xa2\x06",
  17195. .rlen = 16 + 20,
  17196. }, { /* RFC 3602 Case 2 */
  17197. #ifdef __LITTLE_ENDIAN
  17198. .key = "\x08\x00" /* rta length */
  17199. "\x01\x00" /* rta type */
  17200. #else
  17201. .key = "\x00\x08" /* rta length */
  17202. "\x00\x01" /* rta type */
  17203. #endif
  17204. "\x00\x00\x00\x10" /* enc key length */
  17205. "\x20\x21\x22\x23\x24\x25\x26\x27"
  17206. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  17207. "\x30\x31\x32\x33"
  17208. "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  17209. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  17210. .klen = 8 + 20 + 16,
  17211. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  17212. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  17213. .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  17214. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  17215. .alen = 16,
  17216. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  17217. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  17218. "\x10\x11\x12\x13\x14\x15\x16\x17"
  17219. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  17220. .ilen = 32,
  17221. .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
  17222. "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
  17223. "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
  17224. "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
  17225. "\xad\x9b\x4c\x5c\x85\xe1\xda\xae"
  17226. "\xee\x81\x4e\xd7\xdb\x74\xcf\x58"
  17227. "\x65\x39\xf8\xde",
  17228. .rlen = 32 + 20,
  17229. }, { /* RFC 3602 Case 3 */
  17230. #ifdef __LITTLE_ENDIAN
  17231. .key = "\x08\x00" /* rta length */
  17232. "\x01\x00" /* rta type */
  17233. #else
  17234. .key = "\x00\x08" /* rta length */
  17235. "\x00\x01" /* rta type */
  17236. #endif
  17237. "\x00\x00\x00\x10" /* enc key length */
  17238. "\x11\x22\x33\x44\x55\x66\x77\x88"
  17239. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  17240. "\x22\x33\x44\x55"
  17241. "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
  17242. "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
  17243. .klen = 8 + 20 + 16,
  17244. .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
  17245. "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
  17246. .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
  17247. "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
  17248. .alen = 16,
  17249. .input = "This is a 48-byte message (exactly 3 AES blocks)",
  17250. .ilen = 48,
  17251. .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
  17252. "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
  17253. "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
  17254. "\x50\x69\x39\x27\x67\x72\xf8\xd5"
  17255. "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
  17256. "\x85\x79\x69\x5d\x83\xba\x26\x84"
  17257. "\xc2\xec\x0c\xf8\x7f\x05\xba\xca"
  17258. "\xff\xee\x4c\xd0\x93\xe6\x36\x7f"
  17259. "\x8d\x62\xf2\x1e",
  17260. .rlen = 48 + 20,
  17261. }, { /* RFC 3602 Case 4 */
  17262. #ifdef __LITTLE_ENDIAN
  17263. .key = "\x08\x00" /* rta length */
  17264. "\x01\x00" /* rta type */
  17265. #else
  17266. .key = "\x00\x08" /* rta length */
  17267. "\x00\x01" /* rta type */
  17268. #endif
  17269. "\x00\x00\x00\x10" /* enc key length */
  17270. "\x11\x22\x33\x44\x55\x66\x77\x88"
  17271. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  17272. "\x22\x33\x44\x55"
  17273. "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
  17274. "\xbc\x46\x90\x3d\xba\x29\x03\x49",
  17275. .klen = 8 + 20 + 16,
  17276. .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
  17277. "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
  17278. .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
  17279. "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
  17280. .alen = 16,
  17281. .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  17282. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  17283. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  17284. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  17285. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  17286. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  17287. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  17288. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
  17289. .ilen = 64,
  17290. .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
  17291. "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
  17292. "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
  17293. "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
  17294. "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
  17295. "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
  17296. "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
  17297. "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
  17298. "\x1c\x45\x57\xa9\x56\xcb\xa9\x2d"
  17299. "\x18\xac\xf1\xc7\x5d\xd1\xcd\x0d"
  17300. "\x1d\xbe\xc6\xe9",
  17301. .rlen = 64 + 20,
  17302. }, { /* RFC 3602 Case 5 */
  17303. #ifdef __LITTLE_ENDIAN
  17304. .key = "\x08\x00" /* rta length */
  17305. "\x01\x00" /* rta type */
  17306. #else
  17307. .key = "\x00\x08" /* rta length */
  17308. "\x00\x01" /* rta type */
  17309. #endif
  17310. "\x00\x00\x00\x10" /* enc key length */
  17311. "\x11\x22\x33\x44\x55\x66\x77\x88"
  17312. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  17313. "\x22\x33\x44\x55"
  17314. "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
  17315. "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
  17316. .klen = 8 + 20 + 16,
  17317. .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
  17318. "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
  17319. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
  17320. "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
  17321. "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
  17322. .alen = 24,
  17323. .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
  17324. "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
  17325. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  17326. "\x10\x11\x12\x13\x14\x15\x16\x17"
  17327. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  17328. "\x20\x21\x22\x23\x24\x25\x26\x27"
  17329. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  17330. "\x30\x31\x32\x33\x34\x35\x36\x37"
  17331. "\x01\x02\x03\x04\x05\x06\x07\x08"
  17332. "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
  17333. .ilen = 80,
  17334. .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
  17335. "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
  17336. "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
  17337. "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
  17338. "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
  17339. "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
  17340. "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
  17341. "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
  17342. "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
  17343. "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
  17344. "\x58\xc6\x84\x75\xe4\xe9\x6b\x0c"
  17345. "\xe1\xc5\x0b\x73\x4d\x82\x55\xa8"
  17346. "\x85\xe1\x59\xf7",
  17347. .rlen = 80 + 20,
  17348. }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
  17349. #ifdef __LITTLE_ENDIAN
  17350. .key = "\x08\x00" /* rta length */
  17351. "\x01\x00" /* rta type */
  17352. #else
  17353. .key = "\x00\x08" /* rta length */
  17354. "\x00\x01" /* rta type */
  17355. #endif
  17356. "\x00\x00\x00\x18" /* enc key length */
  17357. "\x11\x22\x33\x44\x55\x66\x77\x88"
  17358. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  17359. "\x22\x33\x44\x55"
  17360. "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  17361. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  17362. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  17363. .klen = 8 + 20 + 24,
  17364. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  17365. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  17366. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  17367. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  17368. .alen = 16,
  17369. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  17370. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  17371. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  17372. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  17373. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  17374. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  17375. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  17376. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  17377. .ilen = 64,
  17378. .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
  17379. "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
  17380. "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
  17381. "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
  17382. "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
  17383. "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
  17384. "\x08\xb0\xe2\x79\x88\x59\x88\x81"
  17385. "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
  17386. "\x73\xe3\x19\x3f\x8b\xc9\xc6\xf4"
  17387. "\x5a\xf1\x5b\xa8\x98\x07\xc5\x36"
  17388. "\x47\x4c\xfc\x36",
  17389. .rlen = 64 + 20,
  17390. }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
  17391. #ifdef __LITTLE_ENDIAN
  17392. .key = "\x08\x00" /* rta length */
  17393. "\x01\x00" /* rta type */
  17394. #else
  17395. .key = "\x00\x08" /* rta length */
  17396. "\x00\x01" /* rta type */
  17397. #endif
  17398. "\x00\x00\x00\x20" /* enc key length */
  17399. "\x11\x22\x33\x44\x55\x66\x77\x88"
  17400. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  17401. "\x22\x33\x44\x55"
  17402. "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  17403. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  17404. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  17405. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  17406. .klen = 8 + 20 + 32,
  17407. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  17408. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  17409. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  17410. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  17411. .alen = 16,
  17412. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  17413. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  17414. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  17415. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  17416. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  17417. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  17418. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  17419. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  17420. .ilen = 64,
  17421. .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
  17422. "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
  17423. "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
  17424. "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
  17425. "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
  17426. "\xa5\x30\xe2\x63\x04\x23\x14\x61"
  17427. "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
  17428. "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
  17429. "\xa3\xe8\x9b\x17\xe3\xf4\x7f\xde"
  17430. "\x1b\x9f\xc6\x81\x26\x43\x4a\x87"
  17431. "\x51\xee\xd6\x4e",
  17432. .rlen = 64 + 20,
  17433. },
  17434. };
  17435. static struct aead_testvec hmac_sha1_ecb_cipher_null_enc_tv_temp[] = {
  17436. { /* Input data from RFC 2410 Case 1 */
  17437. #ifdef __LITTLE_ENDIAN
  17438. .key = "\x08\x00" /* rta length */
  17439. "\x01\x00" /* rta type */
  17440. #else
  17441. .key = "\x00\x08" /* rta length */
  17442. "\x00\x01" /* rta type */
  17443. #endif
  17444. "\x00\x00\x00\x00" /* enc key length */
  17445. "\x00\x00\x00\x00\x00\x00\x00\x00"
  17446. "\x00\x00\x00\x00\x00\x00\x00\x00"
  17447. "\x00\x00\x00\x00",
  17448. .klen = 8 + 20 + 0,
  17449. .iv = "",
  17450. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  17451. .ilen = 8,
  17452. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  17453. "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab"
  17454. "\x99\x5e\x19\x04\xd1\x72\xef\xb8"
  17455. "\x8c\x5e\xe4\x08",
  17456. .rlen = 8 + 20,
  17457. }, { /* Input data from RFC 2410 Case 2 */
  17458. #ifdef __LITTLE_ENDIAN
  17459. .key = "\x08\x00" /* rta length */
  17460. "\x01\x00" /* rta type */
  17461. #else
  17462. .key = "\x00\x08" /* rta length */
  17463. "\x00\x01" /* rta type */
  17464. #endif
  17465. "\x00\x00\x00\x00" /* enc key length */
  17466. "\x00\x00\x00\x00\x00\x00\x00\x00"
  17467. "\x00\x00\x00\x00\x00\x00\x00\x00"
  17468. "\x00\x00\x00\x00",
  17469. .klen = 8 + 20 + 0,
  17470. .iv = "",
  17471. .input = "Network Security People Have A Strange Sense Of Humor",
  17472. .ilen = 53,
  17473. .result = "Network Security People Have A Strange Sense Of Humor"
  17474. "\x75\x6f\x42\x1e\xf8\x50\x21\xd2"
  17475. "\x65\x47\xee\x8e\x1a\xef\x16\xf6"
  17476. "\x91\x56\xe4\xd6",
  17477. .rlen = 53 + 20,
  17478. },
  17479. };
  17480. static struct aead_testvec hmac_sha1_ecb_cipher_null_dec_tv_temp[] = {
  17481. {
  17482. #ifdef __LITTLE_ENDIAN
  17483. .key = "\x08\x00" /* rta length */
  17484. "\x01\x00" /* rta type */
  17485. #else
  17486. .key = "\x00\x08" /* rta length */
  17487. "\x00\x01" /* rta type */
  17488. #endif
  17489. "\x00\x00\x00\x00" /* enc key length */
  17490. "\x00\x00\x00\x00\x00\x00\x00\x00"
  17491. "\x00\x00\x00\x00\x00\x00\x00\x00"
  17492. "\x00\x00\x00\x00",
  17493. .klen = 8 + 20 + 0,
  17494. .iv = "",
  17495. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  17496. "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab"
  17497. "\x99\x5e\x19\x04\xd1\x72\xef\xb8"
  17498. "\x8c\x5e\xe4\x08",
  17499. .ilen = 8 + 20,
  17500. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  17501. .rlen = 8,
  17502. }, {
  17503. #ifdef __LITTLE_ENDIAN
  17504. .key = "\x08\x00" /* rta length */
  17505. "\x01\x00" /* rta type */
  17506. #else
  17507. .key = "\x00\x08" /* rta length */
  17508. "\x00\x01" /* rta type */
  17509. #endif
  17510. "\x00\x00\x00\x00" /* enc key length */
  17511. "\x00\x00\x00\x00\x00\x00\x00\x00"
  17512. "\x00\x00\x00\x00\x00\x00\x00\x00"
  17513. "\x00\x00\x00\x00",
  17514. .klen = 8 + 20 + 0,
  17515. .iv = "",
  17516. .input = "Network Security People Have A Strange Sense Of Humor"
  17517. "\x75\x6f\x42\x1e\xf8\x50\x21\xd2"
  17518. "\x65\x47\xee\x8e\x1a\xef\x16\xf6"
  17519. "\x91\x56\xe4\xd6",
  17520. .ilen = 53 + 20,
  17521. .result = "Network Security People Have A Strange Sense Of Humor",
  17522. .rlen = 53,
  17523. },
  17524. };
  17525. static struct aead_testvec hmac_sha256_aes_cbc_enc_tv_temp[] = {
  17526. { /* RFC 3602 Case 1 */
  17527. #ifdef __LITTLE_ENDIAN
  17528. .key = "\x08\x00" /* rta length */
  17529. "\x01\x00" /* rta type */
  17530. #else
  17531. .key = "\x00\x08" /* rta length */
  17532. "\x00\x01" /* rta type */
  17533. #endif
  17534. "\x00\x00\x00\x10" /* enc key length */
  17535. "\x00\x00\x00\x00\x00\x00\x00\x00"
  17536. "\x00\x00\x00\x00\x00\x00\x00\x00"
  17537. "\x00\x00\x00\x00\x00\x00\x00\x00"
  17538. "\x00\x00\x00\x00\x00\x00\x00\x00"
  17539. "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  17540. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  17541. .klen = 8 + 32 + 16,
  17542. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  17543. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  17544. .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  17545. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  17546. .alen = 16,
  17547. .input = "Single block msg",
  17548. .ilen = 16,
  17549. .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
  17550. "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
  17551. "\xcc\xde\x2d\x6a\xae\xf1\x0b\xcc"
  17552. "\x38\x06\x38\x51\xb4\xb8\xf3\x5b"
  17553. "\x5c\x34\xa6\xa3\x6e\x0b\x05\xe5"
  17554. "\x6a\x6d\x44\xaa\x26\xa8\x44\xa5",
  17555. .rlen = 16 + 32,
  17556. }, { /* RFC 3602 Case 2 */
  17557. #ifdef __LITTLE_ENDIAN
  17558. .key = "\x08\x00" /* rta length */
  17559. "\x01\x00" /* rta type */
  17560. #else
  17561. .key = "\x00\x08" /* rta length */
  17562. "\x00\x01" /* rta type */
  17563. #endif
  17564. "\x00\x00\x00\x10" /* enc key length */
  17565. "\x20\x21\x22\x23\x24\x25\x26\x27"
  17566. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  17567. "\x30\x31\x32\x33\x34\x35\x36\x37"
  17568. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  17569. "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  17570. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  17571. .klen = 8 + 32 + 16,
  17572. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  17573. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  17574. .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  17575. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  17576. .alen = 16,
  17577. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  17578. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  17579. "\x10\x11\x12\x13\x14\x15\x16\x17"
  17580. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  17581. .ilen = 32,
  17582. .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
  17583. "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
  17584. "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
  17585. "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
  17586. "\xf5\x33\x53\xf3\x68\x85\x2a\x99"
  17587. "\x0e\x06\x58\x8f\xba\xf6\x06\xda"
  17588. "\x49\x69\x0d\x5b\xd4\x36\x06\x62"
  17589. "\x35\x5e\x54\x58\x53\x4d\xdf\xbf",
  17590. .rlen = 32 + 32,
  17591. }, { /* RFC 3602 Case 3 */
  17592. #ifdef __LITTLE_ENDIAN
  17593. .key = "\x08\x00" /* rta length */
  17594. "\x01\x00" /* rta type */
  17595. #else
  17596. .key = "\x00\x08" /* rta length */
  17597. "\x00\x01" /* rta type */
  17598. #endif
  17599. "\x00\x00\x00\x10" /* enc key length */
  17600. "\x11\x22\x33\x44\x55\x66\x77\x88"
  17601. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  17602. "\x22\x33\x44\x55\x66\x77\x88\x99"
  17603. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  17604. "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
  17605. "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
  17606. .klen = 8 + 32 + 16,
  17607. .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
  17608. "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
  17609. .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
  17610. "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
  17611. .alen = 16,
  17612. .input = "This is a 48-byte message (exactly 3 AES blocks)",
  17613. .ilen = 48,
  17614. .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
  17615. "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
  17616. "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
  17617. "\x50\x69\x39\x27\x67\x72\xf8\xd5"
  17618. "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
  17619. "\x85\x79\x69\x5d\x83\xba\x26\x84"
  17620. "\x68\xb9\x3e\x90\x38\xa0\x88\x01"
  17621. "\xe7\xc6\xce\x10\x31\x2f\x9b\x1d"
  17622. "\x24\x78\xfb\xbe\x02\xe0\x4f\x40"
  17623. "\x10\xbd\xaa\xc6\xa7\x79\xe0\x1a",
  17624. .rlen = 48 + 32,
  17625. }, { /* RFC 3602 Case 4 */
  17626. #ifdef __LITTLE_ENDIAN
  17627. .key = "\x08\x00" /* rta length */
  17628. "\x01\x00" /* rta type */
  17629. #else
  17630. .key = "\x00\x08" /* rta length */
  17631. "\x00\x01" /* rta type */
  17632. #endif
  17633. "\x00\x00\x00\x10" /* enc key length */
  17634. "\x11\x22\x33\x44\x55\x66\x77\x88"
  17635. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  17636. "\x22\x33\x44\x55\x66\x77\x88\x99"
  17637. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  17638. "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
  17639. "\xbc\x46\x90\x3d\xba\x29\x03\x49",
  17640. .klen = 8 + 32 + 16,
  17641. .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
  17642. "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
  17643. .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
  17644. "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
  17645. .alen = 16,
  17646. .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  17647. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  17648. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  17649. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  17650. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  17651. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  17652. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  17653. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
  17654. .ilen = 64,
  17655. .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
  17656. "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
  17657. "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
  17658. "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
  17659. "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
  17660. "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
  17661. "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
  17662. "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
  17663. "\x7a\x1b\xd4\x3c\xdb\x17\x95\xe2"
  17664. "\xe0\x93\xec\xc9\x9f\xf7\xce\xd8"
  17665. "\x3f\x54\xe2\x49\x39\xe3\x71\x25"
  17666. "\x2b\x6c\xe9\x5d\xec\xec\x2b\x64",
  17667. .rlen = 64 + 32,
  17668. }, { /* RFC 3602 Case 5 */
  17669. #ifdef __LITTLE_ENDIAN
  17670. .key = "\x08\x00" /* rta length */
  17671. "\x01\x00" /* rta type */
  17672. #else
  17673. .key = "\x00\x08" /* rta length */
  17674. "\x00\x01" /* rta type */
  17675. #endif
  17676. "\x00\x00\x00\x10" /* enc key length */
  17677. "\x11\x22\x33\x44\x55\x66\x77\x88"
  17678. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  17679. "\x22\x33\x44\x55\x66\x77\x88\x99"
  17680. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  17681. "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
  17682. "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
  17683. .klen = 8 + 32 + 16,
  17684. .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
  17685. "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
  17686. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
  17687. "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
  17688. "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
  17689. .alen = 24,
  17690. .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
  17691. "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
  17692. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  17693. "\x10\x11\x12\x13\x14\x15\x16\x17"
  17694. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  17695. "\x20\x21\x22\x23\x24\x25\x26\x27"
  17696. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  17697. "\x30\x31\x32\x33\x34\x35\x36\x37"
  17698. "\x01\x02\x03\x04\x05\x06\x07\x08"
  17699. "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
  17700. .ilen = 80,
  17701. .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
  17702. "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
  17703. "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
  17704. "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
  17705. "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
  17706. "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
  17707. "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
  17708. "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
  17709. "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
  17710. "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
  17711. "\xbb\xd4\x0f\xbe\xa3\x3b\x4c\xb8"
  17712. "\x3a\xd2\xe1\x03\x86\xa5\x59\xb7"
  17713. "\x73\xc3\x46\x20\x2c\xb1\xef\x68"
  17714. "\xbb\x8a\x32\x7e\x12\x8c\x69\xcf",
  17715. .rlen = 80 + 32,
  17716. }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
  17717. #ifdef __LITTLE_ENDIAN
  17718. .key = "\x08\x00" /* rta length */
  17719. "\x01\x00" /* rta type */
  17720. #else
  17721. .key = "\x00\x08" /* rta length */
  17722. "\x00\x01" /* rta type */
  17723. #endif
  17724. "\x00\x00\x00\x18" /* enc key length */
  17725. "\x11\x22\x33\x44\x55\x66\x77\x88"
  17726. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  17727. "\x22\x33\x44\x55\x66\x77\x88\x99"
  17728. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  17729. "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  17730. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  17731. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  17732. .klen = 8 + 32 + 24,
  17733. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  17734. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  17735. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  17736. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  17737. .alen = 16,
  17738. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  17739. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  17740. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  17741. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  17742. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  17743. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  17744. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  17745. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  17746. .ilen = 64,
  17747. .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
  17748. "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
  17749. "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
  17750. "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
  17751. "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
  17752. "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
  17753. "\x08\xb0\xe2\x79\x88\x59\x88\x81"
  17754. "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
  17755. "\x2f\xee\x5f\xdb\x66\xfe\x79\x09"
  17756. "\x61\x81\x31\xea\x5b\x3d\x8e\xfb"
  17757. "\xca\x71\x85\x93\xf7\x85\x55\x8b"
  17758. "\x7a\xe4\x94\xca\x8b\xba\x19\x33",
  17759. .rlen = 64 + 32,
  17760. }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
  17761. #ifdef __LITTLE_ENDIAN
  17762. .key = "\x08\x00" /* rta length */
  17763. "\x01\x00" /* rta type */
  17764. #else
  17765. .key = "\x00\x08" /* rta length */
  17766. "\x00\x01" /* rta type */
  17767. #endif
  17768. "\x00\x00\x00\x20" /* enc key length */
  17769. "\x11\x22\x33\x44\x55\x66\x77\x88"
  17770. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  17771. "\x22\x33\x44\x55\x66\x77\x88\x99"
  17772. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  17773. "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  17774. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  17775. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  17776. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  17777. .klen = 8 + 32 + 32,
  17778. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  17779. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  17780. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  17781. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  17782. .alen = 16,
  17783. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  17784. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  17785. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  17786. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  17787. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  17788. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  17789. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  17790. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  17791. .ilen = 64,
  17792. .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
  17793. "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
  17794. "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
  17795. "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
  17796. "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
  17797. "\xa5\x30\xe2\x63\x04\x23\x14\x61"
  17798. "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
  17799. "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
  17800. "\x24\x29\xed\xc2\x31\x49\xdb\xb1"
  17801. "\x8f\x74\xbd\x17\x92\x03\xbe\x8f"
  17802. "\xf3\x61\xde\x1c\xe9\xdb\xcd\xd0"
  17803. "\xcc\xce\xe9\x85\x57\xcf\x6f\x5f",
  17804. .rlen = 64 + 32,
  17805. },
  17806. };
  17807. static struct aead_testvec hmac_sha512_aes_cbc_enc_tv_temp[] = {
  17808. { /* RFC 3602 Case 1 */
  17809. #ifdef __LITTLE_ENDIAN
  17810. .key = "\x08\x00" /* rta length */
  17811. "\x01\x00" /* rta type */
  17812. #else
  17813. .key = "\x00\x08" /* rta length */
  17814. "\x00\x01" /* rta type */
  17815. #endif
  17816. "\x00\x00\x00\x10" /* enc key length */
  17817. "\x00\x00\x00\x00\x00\x00\x00\x00"
  17818. "\x00\x00\x00\x00\x00\x00\x00\x00"
  17819. "\x00\x00\x00\x00\x00\x00\x00\x00"
  17820. "\x00\x00\x00\x00\x00\x00\x00\x00"
  17821. "\x00\x00\x00\x00\x00\x00\x00\x00"
  17822. "\x00\x00\x00\x00\x00\x00\x00\x00"
  17823. "\x00\x00\x00\x00\x00\x00\x00\x00"
  17824. "\x00\x00\x00\x00\x00\x00\x00\x00"
  17825. "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  17826. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  17827. .klen = 8 + 64 + 16,
  17828. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  17829. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  17830. .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  17831. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  17832. .alen = 16,
  17833. .input = "Single block msg",
  17834. .ilen = 16,
  17835. .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
  17836. "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
  17837. "\x3f\xdc\xad\x90\x03\x63\x5e\x68"
  17838. "\xc3\x13\xdd\xa4\x5c\x4d\x54\xa7"
  17839. "\x19\x6e\x03\x75\x2b\xa1\x62\xce"
  17840. "\xe0\xc6\x96\x75\xb2\x14\xca\x96"
  17841. "\xec\xbd\x50\x08\x07\x64\x1a\x49"
  17842. "\xe8\x9a\x7c\x06\x3d\xcb\xff\xb2"
  17843. "\xfa\x20\x89\xdd\x9c\xac\x9e\x16"
  17844. "\x18\x8a\xa0\x6d\x01\x6c\xa3\x3a",
  17845. .rlen = 16 + 64,
  17846. }, { /* RFC 3602 Case 2 */
  17847. #ifdef __LITTLE_ENDIAN
  17848. .key = "\x08\x00" /* rta length */
  17849. "\x01\x00" /* rta type */
  17850. #else
  17851. .key = "\x00\x08" /* rta length */
  17852. "\x00\x01" /* rta type */
  17853. #endif
  17854. "\x00\x00\x00\x10" /* enc key length */
  17855. "\x20\x21\x22\x23\x24\x25\x26\x27"
  17856. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  17857. "\x30\x31\x32\x33\x34\x35\x36\x37"
  17858. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  17859. "\x40\x41\x42\x43\x44\x45\x46\x47"
  17860. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  17861. "\x50\x51\x52\x53\x54\x55\x56\x57"
  17862. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  17863. "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  17864. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  17865. .klen = 8 + 64 + 16,
  17866. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  17867. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  17868. .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  17869. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  17870. .alen = 16,
  17871. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  17872. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  17873. "\x10\x11\x12\x13\x14\x15\x16\x17"
  17874. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  17875. .ilen = 32,
  17876. .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
  17877. "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
  17878. "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
  17879. "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
  17880. "\xda\xb2\x0c\xb2\x26\xc4\xd5\xef"
  17881. "\x60\x38\xa4\x5e\x9a\x8c\x1b\x41"
  17882. "\x03\x9f\xc4\x64\x7f\x01\x42\x9b"
  17883. "\x0e\x1b\xea\xef\xbc\x88\x19\x5e"
  17884. "\x31\x7e\xc2\x95\xfc\x09\x32\x0a"
  17885. "\x46\x32\x7c\x41\x9c\x59\x3e\xe9"
  17886. "\x8f\x9f\xd4\x31\xd6\x22\xbd\xf8"
  17887. "\xf7\x0a\x94\xe5\xa9\xc3\xf6\x9d",
  17888. .rlen = 32 + 64,
  17889. }, { /* RFC 3602 Case 3 */
  17890. #ifdef __LITTLE_ENDIAN
  17891. .key = "\x08\x00" /* rta length */
  17892. "\x01\x00" /* rta type */
  17893. #else
  17894. .key = "\x00\x08" /* rta length */
  17895. "\x00\x01" /* rta type */
  17896. #endif
  17897. "\x00\x00\x00\x10" /* enc key length */
  17898. "\x11\x22\x33\x44\x55\x66\x77\x88"
  17899. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  17900. "\x22\x33\x44\x55\x66\x77\x88\x99"
  17901. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  17902. "\x33\x44\x55\x66\x77\x88\x99\xaa"
  17903. "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
  17904. "\x44\x55\x66\x77\x88\x99\xaa\xbb"
  17905. "\xcc\xdd\xee\xff\x11\x22\x33\x44"
  17906. "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
  17907. "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
  17908. .klen = 8 + 64 + 16,
  17909. .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
  17910. "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
  17911. .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
  17912. "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
  17913. .alen = 16,
  17914. .input = "This is a 48-byte message (exactly 3 AES blocks)",
  17915. .ilen = 48,
  17916. .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
  17917. "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
  17918. "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
  17919. "\x50\x69\x39\x27\x67\x72\xf8\xd5"
  17920. "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
  17921. "\x85\x79\x69\x5d\x83\xba\x26\x84"
  17922. "\x64\x19\x17\x5b\x57\xe0\x21\x0f"
  17923. "\xca\xdb\xa1\x26\x38\x14\xa2\x69"
  17924. "\xdb\x54\x67\x80\xc0\x54\xe0\xfd"
  17925. "\x3e\x91\xe7\x91\x7f\x13\x38\x44"
  17926. "\xb7\xb1\xd6\xc8\x7d\x48\x8d\x41"
  17927. "\x08\xea\x29\x6c\x74\x67\x3f\xb0"
  17928. "\xac\x7f\x5c\x1d\xf5\xee\x22\x66"
  17929. "\x27\xa6\xb6\x13\xba\xba\xf0\xc2",
  17930. .rlen = 48 + 64,
  17931. }, { /* RFC 3602 Case 4 */
  17932. #ifdef __LITTLE_ENDIAN
  17933. .key = "\x08\x00" /* rta length */
  17934. "\x01\x00" /* rta type */
  17935. #else
  17936. .key = "\x00\x08" /* rta length */
  17937. "\x00\x01" /* rta type */
  17938. #endif
  17939. "\x00\x00\x00\x10" /* enc key length */
  17940. "\x11\x22\x33\x44\x55\x66\x77\x88"
  17941. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  17942. "\x22\x33\x44\x55\x66\x77\x88\x99"
  17943. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  17944. "\x33\x44\x55\x66\x77\x88\x99\xaa"
  17945. "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
  17946. "\x44\x55\x66\x77\x88\x99\xaa\xbb"
  17947. "\xcc\xdd\xee\xff\x11\x22\x33\x44"
  17948. "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
  17949. "\xbc\x46\x90\x3d\xba\x29\x03\x49",
  17950. .klen = 8 + 64 + 16,
  17951. .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
  17952. "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
  17953. .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
  17954. "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
  17955. .alen = 16,
  17956. .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  17957. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  17958. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  17959. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  17960. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  17961. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  17962. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  17963. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
  17964. .ilen = 64,
  17965. .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
  17966. "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
  17967. "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
  17968. "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
  17969. "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
  17970. "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
  17971. "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
  17972. "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
  17973. "\x82\xcd\x42\x28\x21\x20\x15\xcc"
  17974. "\xb7\xb2\x48\x40\xc7\x64\x41\x3a"
  17975. "\x61\x32\x82\x85\xcf\x27\xed\xb4"
  17976. "\xe4\x68\xa2\xf5\x79\x26\x27\xb2"
  17977. "\x51\x67\x6a\xc4\xf0\x66\x55\x50"
  17978. "\xbc\x6f\xed\xd5\x8d\xde\x23\x7c"
  17979. "\x62\x98\x14\xd7\x2f\x37\x8d\xdf"
  17980. "\xf4\x33\x80\xeb\x8e\xb4\xa4\xda",
  17981. .rlen = 64 + 64,
  17982. }, { /* RFC 3602 Case 5 */
  17983. #ifdef __LITTLE_ENDIAN
  17984. .key = "\x08\x00" /* rta length */
  17985. "\x01\x00" /* rta type */
  17986. #else
  17987. .key = "\x00\x08" /* rta length */
  17988. "\x00\x01" /* rta type */
  17989. #endif
  17990. "\x00\x00\x00\x10" /* enc key length */
  17991. "\x11\x22\x33\x44\x55\x66\x77\x88"
  17992. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  17993. "\x22\x33\x44\x55\x66\x77\x88\x99"
  17994. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  17995. "\x33\x44\x55\x66\x77\x88\x99\xaa"
  17996. "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
  17997. "\x44\x55\x66\x77\x88\x99\xaa\xbb"
  17998. "\xcc\xdd\xee\xff\x11\x22\x33\x44"
  17999. "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
  18000. "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
  18001. .klen = 8 + 64 + 16,
  18002. .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
  18003. "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
  18004. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
  18005. "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
  18006. "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
  18007. .alen = 24,
  18008. .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
  18009. "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
  18010. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  18011. "\x10\x11\x12\x13\x14\x15\x16\x17"
  18012. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  18013. "\x20\x21\x22\x23\x24\x25\x26\x27"
  18014. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  18015. "\x30\x31\x32\x33\x34\x35\x36\x37"
  18016. "\x01\x02\x03\x04\x05\x06\x07\x08"
  18017. "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
  18018. .ilen = 80,
  18019. .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
  18020. "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
  18021. "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
  18022. "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
  18023. "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
  18024. "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
  18025. "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
  18026. "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
  18027. "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
  18028. "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
  18029. "\x74\x84\x94\xe2\xd7\x7a\xf9\xbf"
  18030. "\x00\x8a\xa2\xd5\xb7\xf3\x60\xcf"
  18031. "\xa0\x47\xdf\x4e\x09\xf4\xb1\x7f"
  18032. "\x14\xd9\x3d\x53\x8e\x12\xb3\x00"
  18033. "\x4c\x0a\x4e\x32\x40\x43\x88\xce"
  18034. "\x92\x26\xc1\x76\x20\x11\xeb\xba"
  18035. "\x62\x4f\x9a\x62\x25\xc3\x75\x80"
  18036. "\xb7\x0a\x17\xf5\xd7\x94\xb4\x14",
  18037. .rlen = 80 + 64,
  18038. }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
  18039. #ifdef __LITTLE_ENDIAN
  18040. .key = "\x08\x00" /* rta length */
  18041. "\x01\x00" /* rta type */
  18042. #else
  18043. .key = "\x00\x08" /* rta length */
  18044. "\x00\x01" /* rta type */
  18045. #endif
  18046. "\x00\x00\x00\x18" /* enc key length */
  18047. "\x11\x22\x33\x44\x55\x66\x77\x88"
  18048. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  18049. "\x22\x33\x44\x55\x66\x77\x88\x99"
  18050. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  18051. "\x33\x44\x55\x66\x77\x88\x99\xaa"
  18052. "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
  18053. "\x44\x55\x66\x77\x88\x99\xaa\xbb"
  18054. "\xcc\xdd\xee\xff\x11\x22\x33\x44"
  18055. "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  18056. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  18057. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  18058. .klen = 8 + 64 + 24,
  18059. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  18060. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  18061. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  18062. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  18063. .alen = 16,
  18064. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  18065. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  18066. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  18067. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  18068. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  18069. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  18070. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  18071. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  18072. .ilen = 64,
  18073. .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
  18074. "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
  18075. "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
  18076. "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
  18077. "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
  18078. "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
  18079. "\x08\xb0\xe2\x79\x88\x59\x88\x81"
  18080. "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
  18081. "\x77\x4b\x69\x9d\x3a\x0d\xb4\x99"
  18082. "\x8f\xc6\x8e\x0e\x72\x58\xe3\x56"
  18083. "\xbb\x21\xd2\x7d\x93\x11\x17\x91"
  18084. "\xc4\x83\xfd\x0a\xea\x71\xfe\x77"
  18085. "\xae\x6f\x0a\xa5\xf0\xcf\xe1\x35"
  18086. "\xba\x03\xd5\x32\xfa\x5f\x41\x58"
  18087. "\x8d\x43\x98\xa7\x94\x16\x07\x02"
  18088. "\x0f\xb6\x81\x50\x28\x95\x2e\x75",
  18089. .rlen = 64 + 64,
  18090. }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
  18091. #ifdef __LITTLE_ENDIAN
  18092. .key = "\x08\x00" /* rta length */
  18093. "\x01\x00" /* rta type */
  18094. #else
  18095. .key = "\x00\x08" /* rta length */
  18096. "\x00\x01" /* rta type */
  18097. #endif
  18098. "\x00\x00\x00\x20" /* enc key length */
  18099. "\x11\x22\x33\x44\x55\x66\x77\x88"
  18100. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  18101. "\x22\x33\x44\x55\x66\x77\x88\x99"
  18102. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  18103. "\x33\x44\x55\x66\x77\x88\x99\xaa"
  18104. "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
  18105. "\x44\x55\x66\x77\x88\x99\xaa\xbb"
  18106. "\xcc\xdd\xee\xff\x11\x22\x33\x44"
  18107. "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  18108. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  18109. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  18110. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  18111. .klen = 8 + 64 + 32,
  18112. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
  18113. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  18114. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  18115. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  18116. .alen = 16,
  18117. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  18118. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  18119. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  18120. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  18121. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  18122. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  18123. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  18124. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  18125. .ilen = 64,
  18126. .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
  18127. "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
  18128. "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
  18129. "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
  18130. "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
  18131. "\xa5\x30\xe2\x63\x04\x23\x14\x61"
  18132. "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
  18133. "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
  18134. "\xb2\x27\x69\x7f\x45\x64\x79\x2b"
  18135. "\xb7\xb8\x4c\xd4\x75\x94\x68\x40"
  18136. "\x2a\xea\x91\xc7\x3f\x7c\xed\x7b"
  18137. "\x95\x2c\x9b\xa8\xf5\xe5\x52\x8d"
  18138. "\x6b\xe1\xae\xf1\x74\xfa\x0d\x0c"
  18139. "\xe3\x8d\x64\xc3\x8d\xff\x7c\x8c"
  18140. "\xdb\xbf\xa0\xb4\x01\xa2\xa8\xa2"
  18141. "\x2c\xb1\x62\x2c\x10\xca\xf1\x21",
  18142. .rlen = 64 + 64,
  18143. },
  18144. };
  18145. #define HMAC_SHA1_DES_CBC_ENC_TEST_VEC 1
  18146. static struct aead_testvec hmac_sha1_des_cbc_enc_tv_temp[] = {
  18147. { /*Generated with cryptopp*/
  18148. #ifdef __LITTLE_ENDIAN
  18149. .key = "\x08\x00" /* rta length */
  18150. "\x01\x00" /* rta type */
  18151. #else
  18152. .key = "\x00\x08" /* rta length */
  18153. "\x00\x01" /* rta type */
  18154. #endif
  18155. "\x00\x00\x00\x08" /* enc key length */
  18156. "\x11\x22\x33\x44\x55\x66\x77\x88"
  18157. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  18158. "\x22\x33\x44\x55"
  18159. "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
  18160. .klen = 8 + 20 + 8,
  18161. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  18162. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
  18163. "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  18164. .alen = 16,
  18165. .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  18166. "\x53\x20\x63\x65\x65\x72\x73\x74"
  18167. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  18168. "\x20\x79\x65\x53\x72\x63\x74\x65"
  18169. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  18170. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  18171. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  18172. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  18173. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  18174. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  18175. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  18176. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  18177. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  18178. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  18179. "\x63\x65\x65\x72\x73\x74\x54\x20"
  18180. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  18181. .ilen = 128,
  18182. .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
  18183. "\x54\x31\x85\x37\xed\x6b\x01\x8d"
  18184. "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
  18185. "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
  18186. "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
  18187. "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
  18188. "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
  18189. "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
  18190. "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
  18191. "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
  18192. "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
  18193. "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
  18194. "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
  18195. "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
  18196. "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
  18197. "\x53\xba\xe1\x76\xe3\x82\x07\x86"
  18198. "\x95\x16\x20\x09\xf5\x95\x19\xfd"
  18199. "\x3c\xc7\xe0\x42\xc0\x14\x69\xfa"
  18200. "\x5c\x44\xa9\x37",
  18201. .rlen = 128 + 20,
  18202. },
  18203. };
  18204. #define HMAC_SHA224_DES_CBC_ENC_TEST_VEC 1
  18205. static struct aead_testvec hmac_sha224_des_cbc_enc_tv_temp[] = {
  18206. { /*Generated with cryptopp*/
  18207. #ifdef __LITTLE_ENDIAN
  18208. .key = "\x08\x00" /* rta length */
  18209. "\x01\x00" /* rta type */
  18210. #else
  18211. .key = "\x00\x08" /* rta length */
  18212. "\x00\x01" /* rta type */
  18213. #endif
  18214. "\x00\x00\x00\x08" /* enc key length */
  18215. "\x11\x22\x33\x44\x55\x66\x77\x88"
  18216. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  18217. "\x22\x33\x44\x55\x66\x77\x88\x99"
  18218. "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
  18219. .klen = 8 + 24 + 8,
  18220. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  18221. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
  18222. "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  18223. .alen = 16,
  18224. .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  18225. "\x53\x20\x63\x65\x65\x72\x73\x74"
  18226. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  18227. "\x20\x79\x65\x53\x72\x63\x74\x65"
  18228. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  18229. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  18230. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  18231. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  18232. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  18233. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  18234. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  18235. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  18236. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  18237. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  18238. "\x63\x65\x65\x72\x73\x74\x54\x20"
  18239. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  18240. .ilen = 128,
  18241. .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
  18242. "\x54\x31\x85\x37\xed\x6b\x01\x8d"
  18243. "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
  18244. "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
  18245. "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
  18246. "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
  18247. "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
  18248. "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
  18249. "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
  18250. "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
  18251. "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
  18252. "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
  18253. "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
  18254. "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
  18255. "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
  18256. "\x53\xba\xe1\x76\xe3\x82\x07\x86"
  18257. "\x9c\x2d\x7e\xee\x20\x34\x55\x0a"
  18258. "\xce\xb5\x4e\x64\x53\xe7\xbf\x91"
  18259. "\xab\xd4\xd9\xda\xc9\x12\xae\xf7",
  18260. .rlen = 128 + 24,
  18261. },
  18262. };
  18263. #define HMAC_SHA256_DES_CBC_ENC_TEST_VEC 1
  18264. static struct aead_testvec hmac_sha256_des_cbc_enc_tv_temp[] = {
  18265. { /*Generated with cryptopp*/
  18266. #ifdef __LITTLE_ENDIAN
  18267. .key = "\x08\x00" /* rta length */
  18268. "\x01\x00" /* rta type */
  18269. #else
  18270. .key = "\x00\x08" /* rta length */
  18271. "\x00\x01" /* rta type */
  18272. #endif
  18273. "\x00\x00\x00\x08" /* enc key length */
  18274. "\x11\x22\x33\x44\x55\x66\x77\x88"
  18275. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  18276. "\x22\x33\x44\x55\x66\x77\x88\x99"
  18277. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  18278. "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
  18279. .klen = 8 + 32 + 8,
  18280. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  18281. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
  18282. "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  18283. .alen = 16,
  18284. .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  18285. "\x53\x20\x63\x65\x65\x72\x73\x74"
  18286. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  18287. "\x20\x79\x65\x53\x72\x63\x74\x65"
  18288. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  18289. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  18290. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  18291. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  18292. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  18293. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  18294. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  18295. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  18296. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  18297. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  18298. "\x63\x65\x65\x72\x73\x74\x54\x20"
  18299. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  18300. .ilen = 128,
  18301. .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
  18302. "\x54\x31\x85\x37\xed\x6b\x01\x8d"
  18303. "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
  18304. "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
  18305. "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
  18306. "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
  18307. "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
  18308. "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
  18309. "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
  18310. "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
  18311. "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
  18312. "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
  18313. "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
  18314. "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
  18315. "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
  18316. "\x53\xba\xe1\x76\xe3\x82\x07\x86"
  18317. "\xc6\x58\xa1\x60\x70\x91\x39\x36"
  18318. "\x50\xf6\x5d\xab\x4b\x51\x4e\x5e"
  18319. "\xde\x63\xde\x76\x52\xde\x9f\xba"
  18320. "\x90\xcf\x15\xf2\xbb\x6e\x84\x00",
  18321. .rlen = 128 + 32,
  18322. },
  18323. };
  18324. #define HMAC_SHA384_DES_CBC_ENC_TEST_VEC 1
  18325. static struct aead_testvec hmac_sha384_des_cbc_enc_tv_temp[] = {
  18326. { /*Generated with cryptopp*/
  18327. #ifdef __LITTLE_ENDIAN
  18328. .key = "\x08\x00" /* rta length */
  18329. "\x01\x00" /* rta type */
  18330. #else
  18331. .key = "\x00\x08" /* rta length */
  18332. "\x00\x01" /* rta type */
  18333. #endif
  18334. "\x00\x00\x00\x08" /* enc key length */
  18335. "\x11\x22\x33\x44\x55\x66\x77\x88"
  18336. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  18337. "\x22\x33\x44\x55\x66\x77\x88\x99"
  18338. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  18339. "\x33\x44\x55\x66\x77\x88\x99\xaa"
  18340. "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
  18341. "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
  18342. .klen = 8 + 48 + 8,
  18343. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  18344. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
  18345. "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  18346. .alen = 16,
  18347. .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  18348. "\x53\x20\x63\x65\x65\x72\x73\x74"
  18349. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  18350. "\x20\x79\x65\x53\x72\x63\x74\x65"
  18351. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  18352. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  18353. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  18354. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  18355. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  18356. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  18357. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  18358. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  18359. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  18360. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  18361. "\x63\x65\x65\x72\x73\x74\x54\x20"
  18362. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  18363. .ilen = 128,
  18364. .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
  18365. "\x54\x31\x85\x37\xed\x6b\x01\x8d"
  18366. "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
  18367. "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
  18368. "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
  18369. "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
  18370. "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
  18371. "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
  18372. "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
  18373. "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
  18374. "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
  18375. "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
  18376. "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
  18377. "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
  18378. "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
  18379. "\x53\xba\xe1\x76\xe3\x82\x07\x86"
  18380. "\xa8\x8e\x9c\x74\x8c\x2b\x99\xa0"
  18381. "\xc8\x8c\xef\x25\x07\x83\x11\x3a"
  18382. "\x31\x8d\xbe\x3b\x6a\xd7\x96\xfe"
  18383. "\x5e\x67\xb5\x74\xe7\xe7\x85\x61"
  18384. "\x6a\x95\x26\x75\xcc\x53\x89\xf3"
  18385. "\x74\xc9\x2a\x76\x20\xa2\x64\x62",
  18386. .rlen = 128 + 48,
  18387. },
  18388. };
  18389. #define HMAC_SHA512_DES_CBC_ENC_TEST_VEC 1
  18390. static struct aead_testvec hmac_sha512_des_cbc_enc_tv_temp[] = {
  18391. { /*Generated with cryptopp*/
  18392. #ifdef __LITTLE_ENDIAN
  18393. .key = "\x08\x00" /* rta length */
  18394. "\x01\x00" /* rta type */
  18395. #else
  18396. .key = "\x00\x08" /* rta length */
  18397. "\x00\x01" /* rta type */
  18398. #endif
  18399. "\x00\x00\x00\x08" /* enc key length */
  18400. "\x11\x22\x33\x44\x55\x66\x77\x88"
  18401. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  18402. "\x22\x33\x44\x55\x66\x77\x88\x99"
  18403. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  18404. "\x33\x44\x55\x66\x77\x88\x99\xaa"
  18405. "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
  18406. "\x44\x55\x66\x77\x88\x99\xaa\xbb"
  18407. "\xcc\xdd\xee\xff\x11\x22\x33\x44"
  18408. "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
  18409. .klen = 8 + 64 + 8,
  18410. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  18411. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
  18412. "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  18413. .alen = 16,
  18414. .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  18415. "\x53\x20\x63\x65\x65\x72\x73\x74"
  18416. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  18417. "\x20\x79\x65\x53\x72\x63\x74\x65"
  18418. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  18419. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  18420. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  18421. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  18422. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  18423. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  18424. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  18425. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  18426. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  18427. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  18428. "\x63\x65\x65\x72\x73\x74\x54\x20"
  18429. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  18430. .ilen = 128,
  18431. .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
  18432. "\x54\x31\x85\x37\xed\x6b\x01\x8d"
  18433. "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
  18434. "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
  18435. "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
  18436. "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
  18437. "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
  18438. "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
  18439. "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
  18440. "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
  18441. "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
  18442. "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
  18443. "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
  18444. "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
  18445. "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
  18446. "\x53\xba\xe1\x76\xe3\x82\x07\x86"
  18447. "\xc6\x2c\x73\x88\xb0\x9d\x5f\x3e"
  18448. "\x5b\x78\xca\x0e\xab\x8a\xa3\xbb"
  18449. "\xd9\x1d\xc3\xe3\x05\xac\x76\xfb"
  18450. "\x58\x83\xda\x67\xfb\x21\x24\xa2"
  18451. "\xb1\xa7\xd7\x66\xa6\x8d\xa6\x93"
  18452. "\x97\xe2\xe3\xb8\xaa\x48\x85\xee"
  18453. "\x8c\xf6\x07\x95\x1f\xa6\x6c\x96"
  18454. "\x99\xc7\x5c\x8d\xd8\xb5\x68\x7b",
  18455. .rlen = 128 + 64,
  18456. },
  18457. };
  18458. #define HMAC_SHA1_DES3_EDE_CBC_ENC_TEST_VEC 1
  18459. static struct aead_testvec hmac_sha1_des3_ede_cbc_enc_tv_temp[] = {
  18460. { /*Generated with cryptopp*/
  18461. #ifdef __LITTLE_ENDIAN
  18462. .key = "\x08\x00" /* rta length */
  18463. "\x01\x00" /* rta type */
  18464. #else
  18465. .key = "\x00\x08" /* rta length */
  18466. "\x00\x01" /* rta type */
  18467. #endif
  18468. "\x00\x00\x00\x18" /* enc key length */
  18469. "\x11\x22\x33\x44\x55\x66\x77\x88"
  18470. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  18471. "\x22\x33\x44\x55"
  18472. "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
  18473. "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
  18474. "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
  18475. .klen = 8 + 20 + 24,
  18476. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  18477. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
  18478. "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  18479. .alen = 16,
  18480. .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  18481. "\x53\x20\x63\x65\x65\x72\x73\x74"
  18482. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  18483. "\x20\x79\x65\x53\x72\x63\x74\x65"
  18484. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  18485. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  18486. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  18487. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  18488. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  18489. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  18490. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  18491. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  18492. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  18493. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  18494. "\x63\x65\x65\x72\x73\x74\x54\x20"
  18495. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  18496. .ilen = 128,
  18497. .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
  18498. "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
  18499. "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
  18500. "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
  18501. "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
  18502. "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
  18503. "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
  18504. "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
  18505. "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
  18506. "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
  18507. "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
  18508. "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
  18509. "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
  18510. "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
  18511. "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
  18512. "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
  18513. "\x67\x6d\xb1\xf5\xb8\x10\xdc\xc6"
  18514. "\x75\x86\x96\x6b\xb1\xc5\xe4\xcf"
  18515. "\xd1\x60\x91\xb3",
  18516. .rlen = 128 + 20,
  18517. },
  18518. };
  18519. #define HMAC_SHA224_DES3_EDE_CBC_ENC_TEST_VEC 1
  18520. static struct aead_testvec hmac_sha224_des3_ede_cbc_enc_tv_temp[] = {
  18521. { /*Generated with cryptopp*/
  18522. #ifdef __LITTLE_ENDIAN
  18523. .key = "\x08\x00" /* rta length */
  18524. "\x01\x00" /* rta type */
  18525. #else
  18526. .key = "\x00\x08" /* rta length */
  18527. "\x00\x01" /* rta type */
  18528. #endif
  18529. "\x00\x00\x00\x18" /* enc key length */
  18530. "\x11\x22\x33\x44\x55\x66\x77\x88"
  18531. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  18532. "\x22\x33\x44\x55\x66\x77\x88\x99"
  18533. "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
  18534. "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
  18535. "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
  18536. .klen = 8 + 24 + 24,
  18537. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  18538. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
  18539. "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  18540. .alen = 16,
  18541. .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  18542. "\x53\x20\x63\x65\x65\x72\x73\x74"
  18543. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  18544. "\x20\x79\x65\x53\x72\x63\x74\x65"
  18545. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  18546. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  18547. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  18548. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  18549. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  18550. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  18551. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  18552. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  18553. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  18554. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  18555. "\x63\x65\x65\x72\x73\x74\x54\x20"
  18556. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  18557. .ilen = 128,
  18558. .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
  18559. "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
  18560. "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
  18561. "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
  18562. "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
  18563. "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
  18564. "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
  18565. "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
  18566. "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
  18567. "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
  18568. "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
  18569. "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
  18570. "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
  18571. "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
  18572. "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
  18573. "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
  18574. "\x15\x24\x7f\x5a\x45\x4a\x66\xce"
  18575. "\x2b\x0b\x93\x99\x2f\x9d\x0c\x6c"
  18576. "\x56\x1f\xe1\xa6\x41\xb2\x4c\xd0",
  18577. .rlen = 128 + 24,
  18578. },
  18579. };
  18580. #define HMAC_SHA256_DES3_EDE_CBC_ENC_TEST_VEC 1
  18581. static struct aead_testvec hmac_sha256_des3_ede_cbc_enc_tv_temp[] = {
  18582. { /*Generated with cryptopp*/
  18583. #ifdef __LITTLE_ENDIAN
  18584. .key = "\x08\x00" /* rta length */
  18585. "\x01\x00" /* rta type */
  18586. #else
  18587. .key = "\x00\x08" /* rta length */
  18588. "\x00\x01" /* rta type */
  18589. #endif
  18590. "\x00\x00\x00\x18" /* enc key length */
  18591. "\x11\x22\x33\x44\x55\x66\x77\x88"
  18592. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  18593. "\x22\x33\x44\x55\x66\x77\x88\x99"
  18594. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  18595. "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
  18596. "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
  18597. "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
  18598. .klen = 8 + 32 + 24,
  18599. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  18600. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
  18601. "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  18602. .alen = 16,
  18603. .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  18604. "\x53\x20\x63\x65\x65\x72\x73\x74"
  18605. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  18606. "\x20\x79\x65\x53\x72\x63\x74\x65"
  18607. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  18608. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  18609. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  18610. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  18611. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  18612. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  18613. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  18614. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  18615. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  18616. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  18617. "\x63\x65\x65\x72\x73\x74\x54\x20"
  18618. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  18619. .ilen = 128,
  18620. .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
  18621. "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
  18622. "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
  18623. "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
  18624. "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
  18625. "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
  18626. "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
  18627. "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
  18628. "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
  18629. "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
  18630. "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
  18631. "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
  18632. "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
  18633. "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
  18634. "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
  18635. "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
  18636. "\x73\xb0\xea\x9f\xe8\x18\x80\xd6"
  18637. "\x56\x38\x44\xc0\xdb\xe3\x4f\x71"
  18638. "\xf7\xce\xd1\xd3\xf8\xbd\x3e\x4f"
  18639. "\xca\x43\x95\xdf\x80\x61\x81\xa9",
  18640. .rlen = 128 + 32,
  18641. },
  18642. };
  18643. #define HMAC_SHA384_DES3_EDE_CBC_ENC_TEST_VEC 1
  18644. static struct aead_testvec hmac_sha384_des3_ede_cbc_enc_tv_temp[] = {
  18645. { /*Generated with cryptopp*/
  18646. #ifdef __LITTLE_ENDIAN
  18647. .key = "\x08\x00" /* rta length */
  18648. "\x01\x00" /* rta type */
  18649. #else
  18650. .key = "\x00\x08" /* rta length */
  18651. "\x00\x01" /* rta type */
  18652. #endif
  18653. "\x00\x00\x00\x18" /* enc key length */
  18654. "\x11\x22\x33\x44\x55\x66\x77\x88"
  18655. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  18656. "\x22\x33\x44\x55\x66\x77\x88\x99"
  18657. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  18658. "\x33\x44\x55\x66\x77\x88\x99\xaa"
  18659. "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
  18660. "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
  18661. "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
  18662. "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
  18663. .klen = 8 + 48 + 24,
  18664. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  18665. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
  18666. "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  18667. .alen = 16,
  18668. .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  18669. "\x53\x20\x63\x65\x65\x72\x73\x74"
  18670. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  18671. "\x20\x79\x65\x53\x72\x63\x74\x65"
  18672. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  18673. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  18674. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  18675. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  18676. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  18677. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  18678. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  18679. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  18680. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  18681. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  18682. "\x63\x65\x65\x72\x73\x74\x54\x20"
  18683. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  18684. .ilen = 128,
  18685. .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
  18686. "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
  18687. "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
  18688. "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
  18689. "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
  18690. "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
  18691. "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
  18692. "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
  18693. "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
  18694. "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
  18695. "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
  18696. "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
  18697. "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
  18698. "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
  18699. "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
  18700. "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
  18701. "\x6d\x77\xfc\x80\x9d\x8a\x9c\xb7"
  18702. "\x70\xe7\x93\xbf\x73\xe6\x9f\x83"
  18703. "\x99\x62\x23\xe6\x5b\xd0\xda\x18"
  18704. "\xa4\x32\x8a\x0b\x46\xd7\xf0\x39"
  18705. "\x36\x5d\x13\x2f\x86\x10\x78\xd6"
  18706. "\xd6\xbe\x5c\xb9\x15\x89\xf9\x1b",
  18707. .rlen = 128 + 48,
  18708. },
  18709. };
  18710. #define HMAC_SHA512_DES3_EDE_CBC_ENC_TEST_VEC 1
  18711. static struct aead_testvec hmac_sha512_des3_ede_cbc_enc_tv_temp[] = {
  18712. { /*Generated with cryptopp*/
  18713. #ifdef __LITTLE_ENDIAN
  18714. .key = "\x08\x00" /* rta length */
  18715. "\x01\x00" /* rta type */
  18716. #else
  18717. .key = "\x00\x08" /* rta length */
  18718. "\x00\x01" /* rta type */
  18719. #endif
  18720. "\x00\x00\x00\x18" /* enc key length */
  18721. "\x11\x22\x33\x44\x55\x66\x77\x88"
  18722. "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
  18723. "\x22\x33\x44\x55\x66\x77\x88\x99"
  18724. "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
  18725. "\x33\x44\x55\x66\x77\x88\x99\xaa"
  18726. "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
  18727. "\x44\x55\x66\x77\x88\x99\xaa\xbb"
  18728. "\xcc\xdd\xee\xff\x11\x22\x33\x44"
  18729. "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
  18730. "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
  18731. "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
  18732. .klen = 8 + 64 + 24,
  18733. .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  18734. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
  18735. "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
  18736. .alen = 16,
  18737. .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
  18738. "\x53\x20\x63\x65\x65\x72\x73\x74"
  18739. "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
  18740. "\x20\x79\x65\x53\x72\x63\x74\x65"
  18741. "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
  18742. "\x79\x6e\x53\x20\x63\x65\x65\x72"
  18743. "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
  18744. "\x6e\x61\x20\x79\x65\x53\x72\x63"
  18745. "\x74\x65\x20\x73\x6f\x54\x20\x6f"
  18746. "\x61\x4d\x79\x6e\x53\x20\x63\x65"
  18747. "\x65\x72\x73\x74\x54\x20\x6f\x6f"
  18748. "\x4d\x20\x6e\x61\x20\x79\x65\x53"
  18749. "\x72\x63\x74\x65\x20\x73\x6f\x54"
  18750. "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
  18751. "\x63\x65\x65\x72\x73\x74\x54\x20"
  18752. "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
  18753. .ilen = 128,
  18754. .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
  18755. "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
  18756. "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
  18757. "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
  18758. "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
  18759. "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
  18760. "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
  18761. "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
  18762. "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
  18763. "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
  18764. "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
  18765. "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
  18766. "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
  18767. "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
  18768. "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
  18769. "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
  18770. "\x41\xb5\x1f\xbb\xbd\x4e\xb8\x32"
  18771. "\x22\x86\x4e\x57\x1b\x2a\xd8\x6e"
  18772. "\xa9\xfb\xc8\xf3\xbf\x2d\xae\x2b"
  18773. "\x3b\xbc\x41\xe8\x38\xbb\xf1\x60"
  18774. "\x4c\x68\xa9\x4e\x8c\x73\xa7\xc0"
  18775. "\x2a\x74\xd4\x65\x12\xcb\x55\xf2"
  18776. "\xd5\x02\x6d\xe6\xaf\xc9\x2f\xf2"
  18777. "\x57\xaa\x85\xf7\xf3\x6a\xcb\xdb",
  18778. .rlen = 128 + 64,
  18779. },
  18780. };
  18781. static struct cipher_testvec aes_lrw_enc_tv_template[] = {
  18782. /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
  18783. { /* LRW-32-AES 1 */
  18784. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  18785. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  18786. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  18787. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  18788. .klen = 32,
  18789. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  18790. "\x00\x00\x00\x00\x00\x00\x00\x01",
  18791. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  18792. "\x38\x39\x41\x42\x43\x44\x45\x46",
  18793. .ilen = 16,
  18794. .result = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
  18795. "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
  18796. .rlen = 16,
  18797. }, { /* LRW-32-AES 2 */
  18798. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  18799. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  18800. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  18801. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  18802. .klen = 32,
  18803. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  18804. "\x00\x00\x00\x00\x00\x00\x00\x02",
  18805. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  18806. "\x38\x39\x41\x42\x43\x44\x45\x46",
  18807. .ilen = 16,
  18808. .result = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
  18809. "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
  18810. .rlen = 16,
  18811. }, { /* LRW-32-AES 3 */
  18812. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  18813. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  18814. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  18815. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  18816. .klen = 32,
  18817. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  18818. "\x00\x00\x00\x02\x00\x00\x00\x00",
  18819. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  18820. "\x38\x39\x41\x42\x43\x44\x45\x46",
  18821. .ilen = 16,
  18822. .result = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
  18823. "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
  18824. .rlen = 16,
  18825. }, { /* LRW-32-AES 4 */
  18826. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  18827. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  18828. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  18829. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  18830. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  18831. .klen = 40,
  18832. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  18833. "\x00\x00\x00\x00\x00\x00\x00\x01",
  18834. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  18835. "\x38\x39\x41\x42\x43\x44\x45\x46",
  18836. .ilen = 16,
  18837. .result = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
  18838. "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
  18839. .rlen = 16,
  18840. }, { /* LRW-32-AES 5 */
  18841. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  18842. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  18843. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  18844. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  18845. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  18846. .klen = 40,
  18847. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  18848. "\x00\x00\x00\x02\x00\x00\x00\x00",
  18849. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  18850. "\x38\x39\x41\x42\x43\x44\x45\x46",
  18851. .ilen = 16,
  18852. .result = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
  18853. "\xc8\x60\x48\x02\x87\xe3\x34\x06",
  18854. .rlen = 16,
  18855. }, { /* LRW-32-AES 6 */
  18856. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  18857. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  18858. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  18859. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  18860. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  18861. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  18862. .klen = 48,
  18863. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  18864. "\x00\x00\x00\x00\x00\x00\x00\x01",
  18865. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  18866. "\x38\x39\x41\x42\x43\x44\x45\x46",
  18867. .ilen = 16,
  18868. .result = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
  18869. "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
  18870. .rlen = 16,
  18871. }, { /* LRW-32-AES 7 */
  18872. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  18873. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  18874. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  18875. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  18876. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  18877. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  18878. .klen = 48,
  18879. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  18880. "\x00\x00\x00\x02\x00\x00\x00\x00",
  18881. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  18882. "\x38\x39\x41\x42\x43\x44\x45\x46",
  18883. .ilen = 16,
  18884. .result = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
  18885. "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
  18886. .rlen = 16,
  18887. }, {
  18888. /* http://www.mail-archive.com/[email protected]/msg00173.html */
  18889. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  18890. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  18891. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  18892. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  18893. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  18894. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  18895. .klen = 48,
  18896. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  18897. "\x00\x00\x00\x00\x00\x00\x00\x01",
  18898. .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  18899. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  18900. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  18901. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  18902. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  18903. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  18904. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  18905. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  18906. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  18907. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  18908. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  18909. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  18910. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  18911. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  18912. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  18913. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  18914. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  18915. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  18916. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  18917. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  18918. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  18919. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  18920. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  18921. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  18922. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  18923. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  18924. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  18925. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  18926. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  18927. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  18928. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  18929. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  18930. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  18931. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  18932. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  18933. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  18934. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  18935. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  18936. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  18937. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  18938. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  18939. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  18940. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  18941. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  18942. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  18943. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  18944. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  18945. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  18946. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  18947. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  18948. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  18949. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  18950. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  18951. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  18952. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  18953. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  18954. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  18955. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  18956. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  18957. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  18958. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  18959. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  18960. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  18961. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  18962. .ilen = 512,
  18963. .result = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
  18964. "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
  18965. "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
  18966. "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
  18967. "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
  18968. "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
  18969. "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
  18970. "\xe8\x58\x46\x97\x39\x51\x07\xde"
  18971. "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
  18972. "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
  18973. "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
  18974. "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
  18975. "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
  18976. "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
  18977. "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
  18978. "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
  18979. "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
  18980. "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
  18981. "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
  18982. "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
  18983. "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
  18984. "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
  18985. "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
  18986. "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
  18987. "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
  18988. "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
  18989. "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
  18990. "\x41\x30\x58\xc5\x62\x74\x52\x1d"
  18991. "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
  18992. "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
  18993. "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
  18994. "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
  18995. "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
  18996. "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
  18997. "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
  18998. "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
  18999. "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
  19000. "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
  19001. "\xb8\x79\x78\x97\x94\xff\x72\x13"
  19002. "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
  19003. "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
  19004. "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
  19005. "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
  19006. "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
  19007. "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
  19008. "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
  19009. "\x1e\x86\x53\x11\x53\x94\x00\xee"
  19010. "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
  19011. "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
  19012. "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
  19013. "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
  19014. "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
  19015. "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
  19016. "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
  19017. "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
  19018. "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
  19019. "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
  19020. "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
  19021. "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
  19022. "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
  19023. "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
  19024. "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
  19025. "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
  19026. "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
  19027. .rlen = 512,
  19028. .also_non_np = 1,
  19029. .np = 3,
  19030. .tap = { 512 - 20, 4, 16 },
  19031. }
  19032. };
  19033. static struct cipher_testvec aes_lrw_dec_tv_template[] = {
  19034. /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
  19035. /* same as enc vectors with input and result reversed */
  19036. { /* LRW-32-AES 1 */
  19037. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  19038. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  19039. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  19040. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  19041. .klen = 32,
  19042. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  19043. "\x00\x00\x00\x00\x00\x00\x00\x01",
  19044. .input = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
  19045. "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
  19046. .ilen = 16,
  19047. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  19048. "\x38\x39\x41\x42\x43\x44\x45\x46",
  19049. .rlen = 16,
  19050. }, { /* LRW-32-AES 2 */
  19051. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  19052. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  19053. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  19054. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  19055. .klen = 32,
  19056. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  19057. "\x00\x00\x00\x00\x00\x00\x00\x02",
  19058. .input = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
  19059. "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
  19060. .ilen = 16,
  19061. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  19062. "\x38\x39\x41\x42\x43\x44\x45\x46",
  19063. .rlen = 16,
  19064. }, { /* LRW-32-AES 3 */
  19065. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  19066. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  19067. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  19068. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  19069. .klen = 32,
  19070. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  19071. "\x00\x00\x00\x02\x00\x00\x00\x00",
  19072. .input = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
  19073. "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
  19074. .ilen = 16,
  19075. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  19076. "\x38\x39\x41\x42\x43\x44\x45\x46",
  19077. .rlen = 16,
  19078. }, { /* LRW-32-AES 4 */
  19079. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  19080. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  19081. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  19082. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  19083. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  19084. .klen = 40,
  19085. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  19086. "\x00\x00\x00\x00\x00\x00\x00\x01",
  19087. .input = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
  19088. "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
  19089. .ilen = 16,
  19090. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  19091. "\x38\x39\x41\x42\x43\x44\x45\x46",
  19092. .rlen = 16,
  19093. }, { /* LRW-32-AES 5 */
  19094. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  19095. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  19096. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  19097. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  19098. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  19099. .klen = 40,
  19100. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  19101. "\x00\x00\x00\x02\x00\x00\x00\x00",
  19102. .input = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
  19103. "\xc8\x60\x48\x02\x87\xe3\x34\x06",
  19104. .ilen = 16,
  19105. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  19106. "\x38\x39\x41\x42\x43\x44\x45\x46",
  19107. .rlen = 16,
  19108. }, { /* LRW-32-AES 6 */
  19109. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  19110. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  19111. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  19112. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  19113. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  19114. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  19115. .klen = 48,
  19116. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  19117. "\x00\x00\x00\x00\x00\x00\x00\x01",
  19118. .input = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
  19119. "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
  19120. .ilen = 16,
  19121. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  19122. "\x38\x39\x41\x42\x43\x44\x45\x46",
  19123. .rlen = 16,
  19124. }, { /* LRW-32-AES 7 */
  19125. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  19126. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  19127. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  19128. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  19129. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  19130. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  19131. .klen = 48,
  19132. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  19133. "\x00\x00\x00\x02\x00\x00\x00\x00",
  19134. .input = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
  19135. "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
  19136. .ilen = 16,
  19137. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  19138. "\x38\x39\x41\x42\x43\x44\x45\x46",
  19139. .rlen = 16,
  19140. }, {
  19141. /* http://www.mail-archive.com/[email protected]/msg00173.html */
  19142. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  19143. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  19144. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  19145. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  19146. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  19147. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  19148. .klen = 48,
  19149. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  19150. "\x00\x00\x00\x00\x00\x00\x00\x01",
  19151. .input = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
  19152. "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
  19153. "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
  19154. "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
  19155. "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
  19156. "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
  19157. "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
  19158. "\xe8\x58\x46\x97\x39\x51\x07\xde"
  19159. "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
  19160. "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
  19161. "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
  19162. "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
  19163. "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
  19164. "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
  19165. "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
  19166. "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
  19167. "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
  19168. "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
  19169. "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
  19170. "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
  19171. "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
  19172. "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
  19173. "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
  19174. "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
  19175. "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
  19176. "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
  19177. "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
  19178. "\x41\x30\x58\xc5\x62\x74\x52\x1d"
  19179. "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
  19180. "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
  19181. "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
  19182. "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
  19183. "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
  19184. "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
  19185. "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
  19186. "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
  19187. "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
  19188. "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
  19189. "\xb8\x79\x78\x97\x94\xff\x72\x13"
  19190. "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
  19191. "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
  19192. "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
  19193. "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
  19194. "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
  19195. "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
  19196. "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
  19197. "\x1e\x86\x53\x11\x53\x94\x00\xee"
  19198. "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
  19199. "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
  19200. "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
  19201. "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
  19202. "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
  19203. "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
  19204. "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
  19205. "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
  19206. "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
  19207. "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
  19208. "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
  19209. "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
  19210. "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
  19211. "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
  19212. "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
  19213. "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
  19214. "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
  19215. .ilen = 512,
  19216. .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  19217. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  19218. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  19219. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  19220. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  19221. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  19222. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  19223. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  19224. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  19225. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  19226. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  19227. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  19228. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  19229. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  19230. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  19231. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  19232. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  19233. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  19234. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  19235. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  19236. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  19237. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  19238. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  19239. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  19240. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  19241. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  19242. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  19243. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  19244. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  19245. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  19246. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  19247. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  19248. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  19249. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  19250. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  19251. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  19252. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  19253. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  19254. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  19255. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  19256. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  19257. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  19258. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  19259. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  19260. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  19261. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  19262. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  19263. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  19264. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  19265. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  19266. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  19267. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  19268. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  19269. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  19270. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  19271. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  19272. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  19273. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  19274. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  19275. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  19276. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  19277. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  19278. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  19279. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  19280. .rlen = 512,
  19281. .also_non_np = 1,
  19282. .np = 3,
  19283. .tap = { 512 - 20, 4, 16 },
  19284. }
  19285. };
  19286. static struct cipher_testvec aes_xts_enc_tv_template[] = {
  19287. /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
  19288. { /* XTS-AES 1 */
  19289. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  19290. "\x00\x00\x00\x00\x00\x00\x00\x00"
  19291. "\x00\x00\x00\x00\x00\x00\x00\x00"
  19292. "\x00\x00\x00\x00\x00\x00\x00\x00",
  19293. .klen = 32,
  19294. .fips_skip = 1,
  19295. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  19296. "\x00\x00\x00\x00\x00\x00\x00\x00",
  19297. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  19298. "\x00\x00\x00\x00\x00\x00\x00\x00"
  19299. "\x00\x00\x00\x00\x00\x00\x00\x00"
  19300. "\x00\x00\x00\x00\x00\x00\x00\x00",
  19301. .ilen = 32,
  19302. .result = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
  19303. "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
  19304. "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
  19305. "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
  19306. .rlen = 32,
  19307. }, { /* XTS-AES 2 */
  19308. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  19309. "\x11\x11\x11\x11\x11\x11\x11\x11"
  19310. "\x22\x22\x22\x22\x22\x22\x22\x22"
  19311. "\x22\x22\x22\x22\x22\x22\x22\x22",
  19312. .klen = 32,
  19313. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  19314. "\x00\x00\x00\x00\x00\x00\x00\x00",
  19315. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  19316. "\x44\x44\x44\x44\x44\x44\x44\x44"
  19317. "\x44\x44\x44\x44\x44\x44\x44\x44"
  19318. "\x44\x44\x44\x44\x44\x44\x44\x44",
  19319. .ilen = 32,
  19320. .result = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
  19321. "\x39\x33\x40\x38\xac\xef\x83\x8b"
  19322. "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
  19323. "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
  19324. .rlen = 32,
  19325. }, { /* XTS-AES 3 */
  19326. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  19327. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  19328. "\x22\x22\x22\x22\x22\x22\x22\x22"
  19329. "\x22\x22\x22\x22\x22\x22\x22\x22",
  19330. .klen = 32,
  19331. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  19332. "\x00\x00\x00\x00\x00\x00\x00\x00",
  19333. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  19334. "\x44\x44\x44\x44\x44\x44\x44\x44"
  19335. "\x44\x44\x44\x44\x44\x44\x44\x44"
  19336. "\x44\x44\x44\x44\x44\x44\x44\x44",
  19337. .ilen = 32,
  19338. .result = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
  19339. "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
  19340. "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
  19341. "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
  19342. .rlen = 32,
  19343. }, { /* XTS-AES 4 */
  19344. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  19345. "\x23\x53\x60\x28\x74\x71\x35\x26"
  19346. "\x31\x41\x59\x26\x53\x58\x97\x93"
  19347. "\x23\x84\x62\x64\x33\x83\x27\x95",
  19348. .klen = 32,
  19349. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  19350. "\x00\x00\x00\x00\x00\x00\x00\x00",
  19351. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  19352. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  19353. "\x10\x11\x12\x13\x14\x15\x16\x17"
  19354. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  19355. "\x20\x21\x22\x23\x24\x25\x26\x27"
  19356. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  19357. "\x30\x31\x32\x33\x34\x35\x36\x37"
  19358. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  19359. "\x40\x41\x42\x43\x44\x45\x46\x47"
  19360. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  19361. "\x50\x51\x52\x53\x54\x55\x56\x57"
  19362. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  19363. "\x60\x61\x62\x63\x64\x65\x66\x67"
  19364. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  19365. "\x70\x71\x72\x73\x74\x75\x76\x77"
  19366. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  19367. "\x80\x81\x82\x83\x84\x85\x86\x87"
  19368. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  19369. "\x90\x91\x92\x93\x94\x95\x96\x97"
  19370. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  19371. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  19372. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  19373. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  19374. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  19375. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  19376. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  19377. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  19378. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  19379. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  19380. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  19381. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  19382. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  19383. "\x00\x01\x02\x03\x04\x05\x06\x07"
  19384. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  19385. "\x10\x11\x12\x13\x14\x15\x16\x17"
  19386. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  19387. "\x20\x21\x22\x23\x24\x25\x26\x27"
  19388. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  19389. "\x30\x31\x32\x33\x34\x35\x36\x37"
  19390. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  19391. "\x40\x41\x42\x43\x44\x45\x46\x47"
  19392. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  19393. "\x50\x51\x52\x53\x54\x55\x56\x57"
  19394. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  19395. "\x60\x61\x62\x63\x64\x65\x66\x67"
  19396. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  19397. "\x70\x71\x72\x73\x74\x75\x76\x77"
  19398. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  19399. "\x80\x81\x82\x83\x84\x85\x86\x87"
  19400. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  19401. "\x90\x91\x92\x93\x94\x95\x96\x97"
  19402. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  19403. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  19404. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  19405. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  19406. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  19407. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  19408. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  19409. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  19410. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  19411. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  19412. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  19413. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  19414. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  19415. .ilen = 512,
  19416. .result = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
  19417. "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
  19418. "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
  19419. "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
  19420. "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
  19421. "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
  19422. "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
  19423. "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
  19424. "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
  19425. "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
  19426. "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
  19427. "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
  19428. "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
  19429. "\x22\x97\x61\x46\xae\x20\xce\x84"
  19430. "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
  19431. "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
  19432. "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
  19433. "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
  19434. "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
  19435. "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
  19436. "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
  19437. "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
  19438. "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
  19439. "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
  19440. "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
  19441. "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
  19442. "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
  19443. "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
  19444. "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
  19445. "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
  19446. "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
  19447. "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
  19448. "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
  19449. "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
  19450. "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
  19451. "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
  19452. "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
  19453. "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
  19454. "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
  19455. "\x55\xef\x52\x97\xca\x67\xe9\xf3"
  19456. "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
  19457. "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
  19458. "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
  19459. "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
  19460. "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
  19461. "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
  19462. "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
  19463. "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
  19464. "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
  19465. "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
  19466. "\x18\x84\x69\x77\xae\x11\x9f\x7a"
  19467. "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
  19468. "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
  19469. "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
  19470. "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
  19471. "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
  19472. "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
  19473. "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
  19474. "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
  19475. "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
  19476. "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
  19477. "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
  19478. "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
  19479. "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
  19480. .rlen = 512,
  19481. }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */
  19482. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  19483. "\x23\x53\x60\x28\x74\x71\x35\x26"
  19484. "\x62\x49\x77\x57\x24\x70\x93\x69"
  19485. "\x99\x59\x57\x49\x66\x96\x76\x27"
  19486. "\x31\x41\x59\x26\x53\x58\x97\x93"
  19487. "\x23\x84\x62\x64\x33\x83\x27\x95"
  19488. "\x02\x88\x41\x97\x16\x93\x99\x37"
  19489. "\x51\x05\x82\x09\x74\x94\x45\x92",
  19490. .klen = 64,
  19491. .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
  19492. "\x00\x00\x00\x00\x00\x00\x00\x00",
  19493. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  19494. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  19495. "\x10\x11\x12\x13\x14\x15\x16\x17"
  19496. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  19497. "\x20\x21\x22\x23\x24\x25\x26\x27"
  19498. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  19499. "\x30\x31\x32\x33\x34\x35\x36\x37"
  19500. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  19501. "\x40\x41\x42\x43\x44\x45\x46\x47"
  19502. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  19503. "\x50\x51\x52\x53\x54\x55\x56\x57"
  19504. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  19505. "\x60\x61\x62\x63\x64\x65\x66\x67"
  19506. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  19507. "\x70\x71\x72\x73\x74\x75\x76\x77"
  19508. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  19509. "\x80\x81\x82\x83\x84\x85\x86\x87"
  19510. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  19511. "\x90\x91\x92\x93\x94\x95\x96\x97"
  19512. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  19513. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  19514. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  19515. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  19516. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  19517. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  19518. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  19519. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  19520. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  19521. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  19522. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  19523. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  19524. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  19525. "\x00\x01\x02\x03\x04\x05\x06\x07"
  19526. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  19527. "\x10\x11\x12\x13\x14\x15\x16\x17"
  19528. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  19529. "\x20\x21\x22\x23\x24\x25\x26\x27"
  19530. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  19531. "\x30\x31\x32\x33\x34\x35\x36\x37"
  19532. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  19533. "\x40\x41\x42\x43\x44\x45\x46\x47"
  19534. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  19535. "\x50\x51\x52\x53\x54\x55\x56\x57"
  19536. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  19537. "\x60\x61\x62\x63\x64\x65\x66\x67"
  19538. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  19539. "\x70\x71\x72\x73\x74\x75\x76\x77"
  19540. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  19541. "\x80\x81\x82\x83\x84\x85\x86\x87"
  19542. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  19543. "\x90\x91\x92\x93\x94\x95\x96\x97"
  19544. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  19545. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  19546. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  19547. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  19548. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  19549. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  19550. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  19551. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  19552. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  19553. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  19554. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  19555. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  19556. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  19557. .ilen = 512,
  19558. .result = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86"
  19559. "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b"
  19560. "\xea\x00\x80\x3f\x5e\x48\x23\x57"
  19561. "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b"
  19562. "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d"
  19563. "\x66\xb3\x17\xf9\xac\x68\x3f\x44"
  19564. "\x68\x0a\x86\xac\x35\xad\xfc\x33"
  19565. "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd"
  19566. "\x57\x76\x92\x6c\x49\xa3\x09\x5e"
  19567. "\xb1\x08\xfd\x10\x98\xba\xec\x70"
  19568. "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2"
  19569. "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0"
  19570. "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89"
  19571. "\xae\xba\x12\x29\x61\xd0\x3a\x75"
  19572. "\x71\x23\xe9\x87\x0f\x8a\xcf\x10"
  19573. "\x00\x02\x08\x87\x89\x14\x29\xca"
  19574. "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03"
  19575. "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d"
  19576. "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd"
  19577. "\x12\x0c\x0f\x74\x18\xda\xe3\xd0"
  19578. "\xb5\x78\x1c\x34\x80\x3f\xa7\x54"
  19579. "\x21\xc7\x90\xdf\xe1\xde\x18\x34"
  19580. "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c"
  19581. "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f"
  19582. "\x93\xec\x05\xc5\x2e\x04\x93\xef"
  19583. "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a"
  19584. "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50"
  19585. "\x84\x14\x73\xd1\xa8\xcc\x81\xec"
  19586. "\x58\x3e\x96\x45\xe0\x7b\x8d\x96"
  19587. "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6"
  19588. "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb"
  19589. "\x17\xb6\xba\x02\x46\x9a\x02\x0a"
  19590. "\x84\xe1\x8e\x8f\x84\x25\x20\x70"
  19591. "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f"
  19592. "\xbc\x48\x14\x57\x77\x8f\x61\x60"
  19593. "\x15\xe1\x32\x7a\x02\xb1\x40\xf1"
  19594. "\x50\x5e\xb3\x09\x32\x6d\x68\x37"
  19595. "\x8f\x83\x74\x59\x5c\x84\x9d\x84"
  19596. "\xf4\xc3\x33\xec\x44\x23\x88\x51"
  19597. "\x43\xcb\x47\xbd\x71\xc5\xed\xae"
  19598. "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe"
  19599. "\xc9\xde\x24\x4f\xbe\x15\x99\x2b"
  19600. "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f"
  19601. "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29"
  19602. "\xa9\xab\xc3\xd4\xd8\x93\x92\x72"
  19603. "\x84\xc5\x87\x54\xcc\xe2\x94\x52"
  19604. "\x9f\x86\x14\xdc\xd2\xab\xa9\x91"
  19605. "\x92\x5f\xed\xc4\xae\x74\xff\xac"
  19606. "\x6e\x33\x3b\x93\xeb\x4a\xff\x04"
  19607. "\x79\xda\x9a\x41\x0e\x44\x50\xe0"
  19608. "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00"
  19609. "\x57\x5d\xa4\x01\xfc\x07\x05\x9f"
  19610. "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33"
  19611. "\x94\x30\x54\xff\x84\x01\x14\x93"
  19612. "\xc2\x7b\x34\x29\xea\xed\xb4\xed"
  19613. "\x53\x76\x44\x1a\x77\xed\x43\x85"
  19614. "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2"
  19615. "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a"
  19616. "\xab\x1c\xbb\x4c\x15\x50\xbe\x97"
  19617. "\xf7\xab\x40\x66\x19\x3c\x4c\xaa"
  19618. "\x77\x3d\xad\x38\x01\x4b\xd2\x09"
  19619. "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54"
  19620. "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70"
  19621. "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51",
  19622. .rlen = 512,
  19623. .also_non_np = 1,
  19624. .np = 3,
  19625. .tap = { 512 - 20, 4, 16 },
  19626. }
  19627. };
  19628. static struct cipher_testvec aes_xts_dec_tv_template[] = {
  19629. /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
  19630. { /* XTS-AES 1 */
  19631. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  19632. "\x00\x00\x00\x00\x00\x00\x00\x00"
  19633. "\x00\x00\x00\x00\x00\x00\x00\x00"
  19634. "\x00\x00\x00\x00\x00\x00\x00\x00",
  19635. .klen = 32,
  19636. .fips_skip = 1,
  19637. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  19638. "\x00\x00\x00\x00\x00\x00\x00\x00",
  19639. .input = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
  19640. "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
  19641. "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
  19642. "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
  19643. .ilen = 32,
  19644. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  19645. "\x00\x00\x00\x00\x00\x00\x00\x00"
  19646. "\x00\x00\x00\x00\x00\x00\x00\x00"
  19647. "\x00\x00\x00\x00\x00\x00\x00\x00",
  19648. .rlen = 32,
  19649. }, { /* XTS-AES 2 */
  19650. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  19651. "\x11\x11\x11\x11\x11\x11\x11\x11"
  19652. "\x22\x22\x22\x22\x22\x22\x22\x22"
  19653. "\x22\x22\x22\x22\x22\x22\x22\x22",
  19654. .klen = 32,
  19655. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  19656. "\x00\x00\x00\x00\x00\x00\x00\x00",
  19657. .input = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
  19658. "\x39\x33\x40\x38\xac\xef\x83\x8b"
  19659. "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
  19660. "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
  19661. .ilen = 32,
  19662. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  19663. "\x44\x44\x44\x44\x44\x44\x44\x44"
  19664. "\x44\x44\x44\x44\x44\x44\x44\x44"
  19665. "\x44\x44\x44\x44\x44\x44\x44\x44",
  19666. .rlen = 32,
  19667. }, { /* XTS-AES 3 */
  19668. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  19669. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  19670. "\x22\x22\x22\x22\x22\x22\x22\x22"
  19671. "\x22\x22\x22\x22\x22\x22\x22\x22",
  19672. .klen = 32,
  19673. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  19674. "\x00\x00\x00\x00\x00\x00\x00\x00",
  19675. .input = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
  19676. "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
  19677. "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
  19678. "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
  19679. .ilen = 32,
  19680. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  19681. "\x44\x44\x44\x44\x44\x44\x44\x44"
  19682. "\x44\x44\x44\x44\x44\x44\x44\x44"
  19683. "\x44\x44\x44\x44\x44\x44\x44\x44",
  19684. .rlen = 32,
  19685. }, { /* XTS-AES 4 */
  19686. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  19687. "\x23\x53\x60\x28\x74\x71\x35\x26"
  19688. "\x31\x41\x59\x26\x53\x58\x97\x93"
  19689. "\x23\x84\x62\x64\x33\x83\x27\x95",
  19690. .klen = 32,
  19691. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  19692. "\x00\x00\x00\x00\x00\x00\x00\x00",
  19693. .input = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
  19694. "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
  19695. "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
  19696. "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
  19697. "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
  19698. "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
  19699. "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
  19700. "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
  19701. "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
  19702. "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
  19703. "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
  19704. "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
  19705. "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
  19706. "\x22\x97\x61\x46\xae\x20\xce\x84"
  19707. "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
  19708. "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
  19709. "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
  19710. "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
  19711. "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
  19712. "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
  19713. "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
  19714. "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
  19715. "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
  19716. "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
  19717. "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
  19718. "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
  19719. "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
  19720. "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
  19721. "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
  19722. "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
  19723. "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
  19724. "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
  19725. "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
  19726. "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
  19727. "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
  19728. "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
  19729. "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
  19730. "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
  19731. "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
  19732. "\x55\xef\x52\x97\xca\x67\xe9\xf3"
  19733. "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
  19734. "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
  19735. "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
  19736. "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
  19737. "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
  19738. "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
  19739. "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
  19740. "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
  19741. "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
  19742. "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
  19743. "\x18\x84\x69\x77\xae\x11\x9f\x7a"
  19744. "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
  19745. "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
  19746. "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
  19747. "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
  19748. "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
  19749. "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
  19750. "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
  19751. "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
  19752. "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
  19753. "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
  19754. "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
  19755. "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
  19756. "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
  19757. .ilen = 512,
  19758. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  19759. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  19760. "\x10\x11\x12\x13\x14\x15\x16\x17"
  19761. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  19762. "\x20\x21\x22\x23\x24\x25\x26\x27"
  19763. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  19764. "\x30\x31\x32\x33\x34\x35\x36\x37"
  19765. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  19766. "\x40\x41\x42\x43\x44\x45\x46\x47"
  19767. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  19768. "\x50\x51\x52\x53\x54\x55\x56\x57"
  19769. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  19770. "\x60\x61\x62\x63\x64\x65\x66\x67"
  19771. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  19772. "\x70\x71\x72\x73\x74\x75\x76\x77"
  19773. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  19774. "\x80\x81\x82\x83\x84\x85\x86\x87"
  19775. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  19776. "\x90\x91\x92\x93\x94\x95\x96\x97"
  19777. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  19778. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  19779. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  19780. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  19781. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  19782. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  19783. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  19784. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  19785. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  19786. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  19787. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  19788. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  19789. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  19790. "\x00\x01\x02\x03\x04\x05\x06\x07"
  19791. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  19792. "\x10\x11\x12\x13\x14\x15\x16\x17"
  19793. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  19794. "\x20\x21\x22\x23\x24\x25\x26\x27"
  19795. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  19796. "\x30\x31\x32\x33\x34\x35\x36\x37"
  19797. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  19798. "\x40\x41\x42\x43\x44\x45\x46\x47"
  19799. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  19800. "\x50\x51\x52\x53\x54\x55\x56\x57"
  19801. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  19802. "\x60\x61\x62\x63\x64\x65\x66\x67"
  19803. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  19804. "\x70\x71\x72\x73\x74\x75\x76\x77"
  19805. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  19806. "\x80\x81\x82\x83\x84\x85\x86\x87"
  19807. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  19808. "\x90\x91\x92\x93\x94\x95\x96\x97"
  19809. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  19810. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  19811. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  19812. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  19813. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  19814. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  19815. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  19816. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  19817. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  19818. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  19819. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  19820. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  19821. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  19822. .rlen = 512,
  19823. }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */
  19824. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  19825. "\x23\x53\x60\x28\x74\x71\x35\x26"
  19826. "\x62\x49\x77\x57\x24\x70\x93\x69"
  19827. "\x99\x59\x57\x49\x66\x96\x76\x27"
  19828. "\x31\x41\x59\x26\x53\x58\x97\x93"
  19829. "\x23\x84\x62\x64\x33\x83\x27\x95"
  19830. "\x02\x88\x41\x97\x16\x93\x99\x37"
  19831. "\x51\x05\x82\x09\x74\x94\x45\x92",
  19832. .klen = 64,
  19833. .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
  19834. "\x00\x00\x00\x00\x00\x00\x00\x00",
  19835. .input = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86"
  19836. "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b"
  19837. "\xea\x00\x80\x3f\x5e\x48\x23\x57"
  19838. "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b"
  19839. "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d"
  19840. "\x66\xb3\x17\xf9\xac\x68\x3f\x44"
  19841. "\x68\x0a\x86\xac\x35\xad\xfc\x33"
  19842. "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd"
  19843. "\x57\x76\x92\x6c\x49\xa3\x09\x5e"
  19844. "\xb1\x08\xfd\x10\x98\xba\xec\x70"
  19845. "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2"
  19846. "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0"
  19847. "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89"
  19848. "\xae\xba\x12\x29\x61\xd0\x3a\x75"
  19849. "\x71\x23\xe9\x87\x0f\x8a\xcf\x10"
  19850. "\x00\x02\x08\x87\x89\x14\x29\xca"
  19851. "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03"
  19852. "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d"
  19853. "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd"
  19854. "\x12\x0c\x0f\x74\x18\xda\xe3\xd0"
  19855. "\xb5\x78\x1c\x34\x80\x3f\xa7\x54"
  19856. "\x21\xc7\x90\xdf\xe1\xde\x18\x34"
  19857. "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c"
  19858. "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f"
  19859. "\x93\xec\x05\xc5\x2e\x04\x93\xef"
  19860. "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a"
  19861. "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50"
  19862. "\x84\x14\x73\xd1\xa8\xcc\x81\xec"
  19863. "\x58\x3e\x96\x45\xe0\x7b\x8d\x96"
  19864. "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6"
  19865. "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb"
  19866. "\x17\xb6\xba\x02\x46\x9a\x02\x0a"
  19867. "\x84\xe1\x8e\x8f\x84\x25\x20\x70"
  19868. "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f"
  19869. "\xbc\x48\x14\x57\x77\x8f\x61\x60"
  19870. "\x15\xe1\x32\x7a\x02\xb1\x40\xf1"
  19871. "\x50\x5e\xb3\x09\x32\x6d\x68\x37"
  19872. "\x8f\x83\x74\x59\x5c\x84\x9d\x84"
  19873. "\xf4\xc3\x33\xec\x44\x23\x88\x51"
  19874. "\x43\xcb\x47\xbd\x71\xc5\xed\xae"
  19875. "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe"
  19876. "\xc9\xde\x24\x4f\xbe\x15\x99\x2b"
  19877. "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f"
  19878. "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29"
  19879. "\xa9\xab\xc3\xd4\xd8\x93\x92\x72"
  19880. "\x84\xc5\x87\x54\xcc\xe2\x94\x52"
  19881. "\x9f\x86\x14\xdc\xd2\xab\xa9\x91"
  19882. "\x92\x5f\xed\xc4\xae\x74\xff\xac"
  19883. "\x6e\x33\x3b\x93\xeb\x4a\xff\x04"
  19884. "\x79\xda\x9a\x41\x0e\x44\x50\xe0"
  19885. "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00"
  19886. "\x57\x5d\xa4\x01\xfc\x07\x05\x9f"
  19887. "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33"
  19888. "\x94\x30\x54\xff\x84\x01\x14\x93"
  19889. "\xc2\x7b\x34\x29\xea\xed\xb4\xed"
  19890. "\x53\x76\x44\x1a\x77\xed\x43\x85"
  19891. "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2"
  19892. "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a"
  19893. "\xab\x1c\xbb\x4c\x15\x50\xbe\x97"
  19894. "\xf7\xab\x40\x66\x19\x3c\x4c\xaa"
  19895. "\x77\x3d\xad\x38\x01\x4b\xd2\x09"
  19896. "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54"
  19897. "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70"
  19898. "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51",
  19899. .ilen = 512,
  19900. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  19901. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  19902. "\x10\x11\x12\x13\x14\x15\x16\x17"
  19903. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  19904. "\x20\x21\x22\x23\x24\x25\x26\x27"
  19905. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  19906. "\x30\x31\x32\x33\x34\x35\x36\x37"
  19907. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  19908. "\x40\x41\x42\x43\x44\x45\x46\x47"
  19909. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  19910. "\x50\x51\x52\x53\x54\x55\x56\x57"
  19911. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  19912. "\x60\x61\x62\x63\x64\x65\x66\x67"
  19913. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  19914. "\x70\x71\x72\x73\x74\x75\x76\x77"
  19915. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  19916. "\x80\x81\x82\x83\x84\x85\x86\x87"
  19917. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  19918. "\x90\x91\x92\x93\x94\x95\x96\x97"
  19919. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  19920. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  19921. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  19922. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  19923. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  19924. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  19925. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  19926. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  19927. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  19928. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  19929. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  19930. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  19931. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  19932. "\x00\x01\x02\x03\x04\x05\x06\x07"
  19933. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  19934. "\x10\x11\x12\x13\x14\x15\x16\x17"
  19935. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  19936. "\x20\x21\x22\x23\x24\x25\x26\x27"
  19937. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  19938. "\x30\x31\x32\x33\x34\x35\x36\x37"
  19939. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  19940. "\x40\x41\x42\x43\x44\x45\x46\x47"
  19941. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  19942. "\x50\x51\x52\x53\x54\x55\x56\x57"
  19943. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  19944. "\x60\x61\x62\x63\x64\x65\x66\x67"
  19945. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  19946. "\x70\x71\x72\x73\x74\x75\x76\x77"
  19947. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  19948. "\x80\x81\x82\x83\x84\x85\x86\x87"
  19949. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  19950. "\x90\x91\x92\x93\x94\x95\x96\x97"
  19951. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  19952. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  19953. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  19954. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  19955. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  19956. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  19957. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  19958. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  19959. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  19960. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  19961. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  19962. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  19963. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  19964. .rlen = 512,
  19965. .also_non_np = 1,
  19966. .np = 3,
  19967. .tap = { 512 - 20, 4, 16 },
  19968. }
  19969. };
  19970. static struct cipher_testvec aes_ctr_enc_tv_template[] = {
  19971. { /* From NIST Special Publication 800-38A, Appendix F.5 */
  19972. .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
  19973. "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
  19974. .klen = 16,
  19975. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  19976. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  19977. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  19978. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  19979. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  19980. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  19981. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  19982. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  19983. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  19984. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  19985. .ilen = 64,
  19986. .result = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
  19987. "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
  19988. "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
  19989. "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
  19990. "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
  19991. "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
  19992. "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
  19993. "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
  19994. .rlen = 64,
  19995. }, {
  19996. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  19997. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  19998. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  19999. .klen = 24,
  20000. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  20001. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  20002. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  20003. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  20004. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  20005. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  20006. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  20007. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  20008. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  20009. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  20010. .ilen = 64,
  20011. .result = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
  20012. "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
  20013. "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
  20014. "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
  20015. "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
  20016. "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
  20017. "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
  20018. "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
  20019. .rlen = 64,
  20020. }, {
  20021. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  20022. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  20023. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  20024. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  20025. .klen = 32,
  20026. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  20027. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  20028. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  20029. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  20030. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  20031. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  20032. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  20033. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  20034. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  20035. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  20036. .ilen = 64,
  20037. .result = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
  20038. "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
  20039. "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
  20040. "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
  20041. "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
  20042. "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
  20043. "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
  20044. "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
  20045. .rlen = 64,
  20046. }, { /* Generated with Crypto++ */
  20047. .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
  20048. "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
  20049. "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
  20050. "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
  20051. .klen = 32,
  20052. .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
  20053. "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
  20054. .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  20055. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  20056. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  20057. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  20058. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  20059. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  20060. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  20061. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  20062. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  20063. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  20064. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  20065. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  20066. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  20067. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  20068. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  20069. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  20070. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  20071. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  20072. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  20073. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  20074. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  20075. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  20076. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  20077. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  20078. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  20079. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  20080. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  20081. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  20082. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  20083. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  20084. "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
  20085. "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
  20086. "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
  20087. "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
  20088. "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
  20089. "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
  20090. "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
  20091. "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
  20092. "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
  20093. "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
  20094. "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
  20095. "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
  20096. "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
  20097. "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
  20098. "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
  20099. "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
  20100. "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
  20101. "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
  20102. "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
  20103. "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
  20104. "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
  20105. "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
  20106. "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
  20107. "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
  20108. "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
  20109. "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
  20110. "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
  20111. "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
  20112. "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
  20113. "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
  20114. "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
  20115. "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
  20116. .ilen = 496,
  20117. .result = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF"
  20118. "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53"
  20119. "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9"
  20120. "\x69\x95\x35\x98\x8D\x4D\x8C\xC1"
  20121. "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2"
  20122. "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE"
  20123. "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB"
  20124. "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB"
  20125. "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81"
  20126. "\x47\x61\x12\x4D\xC2\x8C\xFA\x78"
  20127. "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC"
  20128. "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B"
  20129. "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D"
  20130. "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74"
  20131. "\x32\x41\x1F\x31\x9C\x08\xA2\x5D"
  20132. "\x67\xEB\x72\x1D\xF8\xE7\x70\x54"
  20133. "\x34\x4B\x31\x69\x84\x66\x96\x44"
  20134. "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9"
  20135. "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF"
  20136. "\x16\x5C\x5F\x79\x34\x52\x54\xFE"
  20137. "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06"
  20138. "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B"
  20139. "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC"
  20140. "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD"
  20141. "\x3C\x98\x08\x12\xEC\xAA\x9E\x11"
  20142. "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72"
  20143. "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56"
  20144. "\xD5\x45\x16\xD2\xAF\x13\x66\xF7"
  20145. "\x8C\x67\xAC\x79\xB2\xAF\x56\x27"
  20146. "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1"
  20147. "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4"
  20148. "\x42\xC8\x21\x08\x16\xF7\x01\xD7"
  20149. "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4"
  20150. "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3"
  20151. "\x35\x1C\x82\xB9\x10\xF9\x42\xA1"
  20152. "\xFC\x74\x9B\x44\x4F\x25\x02\xE3"
  20153. "\x08\xF5\xD4\x32\x39\x08\x11\xE8"
  20154. "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B"
  20155. "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E"
  20156. "\x0D\x07\x19\xDB\x67\xD7\x98\x91"
  20157. "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33"
  20158. "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA"
  20159. "\x85\x99\x22\xE8\x91\x38\x70\x83"
  20160. "\x93\x01\x24\x6C\xFA\x9A\xB9\x07"
  20161. "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16"
  20162. "\x2F\x69\xEE\x84\x36\x44\x76\x98"
  20163. "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B"
  20164. "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D"
  20165. "\xAC\xED\x18\x1F\x50\xA4\xF5\x98"
  20166. "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6"
  20167. "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3"
  20168. "\x1B\x39\x72\xD5\x26\xCA\x04\xE0"
  20169. "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C"
  20170. "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA"
  20171. "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D"
  20172. "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC"
  20173. "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63"
  20174. "\xEF\xDC\xC9\x79\x10\x26\xE8\x61"
  20175. "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63"
  20176. "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B"
  20177. "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE"
  20178. "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51",
  20179. .rlen = 496,
  20180. .also_non_np = 1,
  20181. .np = 3,
  20182. .tap = { 496 - 20, 4, 16 },
  20183. }, { /* Generated with Crypto++ */
  20184. .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
  20185. "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
  20186. "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
  20187. "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
  20188. .klen = 32,
  20189. .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
  20190. "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
  20191. .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  20192. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  20193. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  20194. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  20195. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  20196. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  20197. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  20198. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  20199. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  20200. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  20201. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  20202. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  20203. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  20204. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  20205. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  20206. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  20207. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  20208. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  20209. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  20210. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  20211. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  20212. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  20213. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  20214. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  20215. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  20216. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  20217. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  20218. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  20219. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  20220. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  20221. "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
  20222. "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
  20223. "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
  20224. "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
  20225. "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
  20226. "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
  20227. "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
  20228. "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
  20229. "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
  20230. "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
  20231. "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
  20232. "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
  20233. "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
  20234. "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
  20235. "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
  20236. "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
  20237. "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
  20238. "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
  20239. "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
  20240. "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
  20241. "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
  20242. "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
  20243. "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
  20244. "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
  20245. "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
  20246. "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
  20247. "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
  20248. "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
  20249. "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
  20250. "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
  20251. "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
  20252. "\xED\x56\xBF\x28\xB4\x1D\x86\x12"
  20253. "\x7B\xE4\x4D",
  20254. .ilen = 499,
  20255. .result = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2"
  20256. "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5"
  20257. "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44"
  20258. "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE"
  20259. "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F"
  20260. "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E"
  20261. "\x76\xEA\x06\x32\x23\xF3\x59\x2E"
  20262. "\x75\xDE\x71\x86\x3C\x98\x23\x44"
  20263. "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD"
  20264. "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04"
  20265. "\x70\x8B\x92\x55\x23\xE9\x6A\x3A"
  20266. "\x78\x7A\x1B\x10\x85\x52\x9C\x12"
  20267. "\xE4\x55\x81\x21\xCE\x53\xD0\x3B"
  20268. "\x63\x77\x2C\x74\xD1\xF5\x60\xF3"
  20269. "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD"
  20270. "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E"
  20271. "\xA8\x28\x69\x65\x31\xE1\x45\x83"
  20272. "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21"
  20273. "\xCD\x5D\x0F\x15\xB7\x93\x07\x26"
  20274. "\xB0\x65\x6D\x91\x90\x23\x7A\xC6"
  20275. "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E"
  20276. "\xC6\x91\x83\x20\x92\x4D\x63\x7A"
  20277. "\x45\x18\x18\x74\x19\xAD\x71\x01"
  20278. "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46"
  20279. "\xC9\x73\x7A\xF9\x02\x95\xF4\x07"
  20280. "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C"
  20281. "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8"
  20282. "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D"
  20283. "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7"
  20284. "\xE8\x61\xE5\x95\x52\x1E\x3E\x49"
  20285. "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD"
  20286. "\xDD\x15\x3B\x20\x59\x24\xFF\xB0"
  20287. "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5"
  20288. "\x15\xF0\x61\x4F\xAE\x89\x10\x58"
  20289. "\x5A\x33\x95\x52\x2A\xB5\x77\x9C"
  20290. "\xA5\x43\x80\x40\x27\x2D\xAE\xD9"
  20291. "\x3F\xE0\x80\x94\x78\x79\xCB\x7E"
  20292. "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE"
  20293. "\x0B\x05\x2A\x82\x99\x58\xBB\x7A"
  20294. "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93"
  20295. "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70"
  20296. "\x16\xAE\x35\xC5\x52\x0F\x46\x1F"
  20297. "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F"
  20298. "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6"
  20299. "\xF6\xB8\x32\xCD\xD6\x85\x73\x60"
  20300. "\x59\x20\xE7\x55\x0E\x91\xE2\x0C"
  20301. "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2"
  20302. "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D"
  20303. "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7"
  20304. "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D"
  20305. "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4"
  20306. "\xFB\x81\x5D\xF7\x96\x96\xD4\x50"
  20307. "\x89\xA7\xF6\xB9\x67\x76\x40\x9E"
  20308. "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F"
  20309. "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D"
  20310. "\x87\x52\xA4\x91\xA9\xD7\xA9\x51"
  20311. "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D"
  20312. "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D"
  20313. "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37"
  20314. "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A"
  20315. "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11"
  20316. "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76"
  20317. "\xFB\xF2\x3F",
  20318. .rlen = 499,
  20319. .also_non_np = 1,
  20320. .np = 2,
  20321. .tap = { 499 - 16, 16 },
  20322. },
  20323. };
  20324. static struct cipher_testvec aes_ctr_dec_tv_template[] = {
  20325. { /* From NIST Special Publication 800-38A, Appendix F.5 */
  20326. .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
  20327. "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
  20328. .klen = 16,
  20329. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  20330. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  20331. .input = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
  20332. "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
  20333. "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
  20334. "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
  20335. "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
  20336. "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
  20337. "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
  20338. "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
  20339. .ilen = 64,
  20340. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  20341. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  20342. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  20343. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  20344. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  20345. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  20346. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  20347. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  20348. .rlen = 64,
  20349. }, {
  20350. .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
  20351. "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
  20352. "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
  20353. .klen = 24,
  20354. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  20355. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  20356. .input = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
  20357. "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
  20358. "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
  20359. "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
  20360. "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
  20361. "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
  20362. "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
  20363. "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
  20364. .ilen = 64,
  20365. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  20366. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  20367. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  20368. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  20369. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  20370. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  20371. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  20372. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  20373. .rlen = 64,
  20374. }, {
  20375. .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
  20376. "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
  20377. "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
  20378. "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
  20379. .klen = 32,
  20380. .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  20381. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  20382. .input = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
  20383. "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
  20384. "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
  20385. "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
  20386. "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
  20387. "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
  20388. "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
  20389. "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
  20390. .ilen = 64,
  20391. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  20392. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  20393. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  20394. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  20395. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  20396. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  20397. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  20398. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  20399. .rlen = 64,
  20400. }, { /* Generated with Crypto++ */
  20401. .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
  20402. "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
  20403. "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
  20404. "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
  20405. .klen = 32,
  20406. .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
  20407. "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
  20408. .input = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF"
  20409. "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53"
  20410. "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9"
  20411. "\x69\x95\x35\x98\x8D\x4D\x8C\xC1"
  20412. "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2"
  20413. "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE"
  20414. "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB"
  20415. "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB"
  20416. "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81"
  20417. "\x47\x61\x12\x4D\xC2\x8C\xFA\x78"
  20418. "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC"
  20419. "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B"
  20420. "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D"
  20421. "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74"
  20422. "\x32\x41\x1F\x31\x9C\x08\xA2\x5D"
  20423. "\x67\xEB\x72\x1D\xF8\xE7\x70\x54"
  20424. "\x34\x4B\x31\x69\x84\x66\x96\x44"
  20425. "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9"
  20426. "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF"
  20427. "\x16\x5C\x5F\x79\x34\x52\x54\xFE"
  20428. "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06"
  20429. "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B"
  20430. "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC"
  20431. "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD"
  20432. "\x3C\x98\x08\x12\xEC\xAA\x9E\x11"
  20433. "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72"
  20434. "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56"
  20435. "\xD5\x45\x16\xD2\xAF\x13\x66\xF7"
  20436. "\x8C\x67\xAC\x79\xB2\xAF\x56\x27"
  20437. "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1"
  20438. "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4"
  20439. "\x42\xC8\x21\x08\x16\xF7\x01\xD7"
  20440. "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4"
  20441. "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3"
  20442. "\x35\x1C\x82\xB9\x10\xF9\x42\xA1"
  20443. "\xFC\x74\x9B\x44\x4F\x25\x02\xE3"
  20444. "\x08\xF5\xD4\x32\x39\x08\x11\xE8"
  20445. "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B"
  20446. "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E"
  20447. "\x0D\x07\x19\xDB\x67\xD7\x98\x91"
  20448. "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33"
  20449. "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA"
  20450. "\x85\x99\x22\xE8\x91\x38\x70\x83"
  20451. "\x93\x01\x24\x6C\xFA\x9A\xB9\x07"
  20452. "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16"
  20453. "\x2F\x69\xEE\x84\x36\x44\x76\x98"
  20454. "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B"
  20455. "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D"
  20456. "\xAC\xED\x18\x1F\x50\xA4\xF5\x98"
  20457. "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6"
  20458. "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3"
  20459. "\x1B\x39\x72\xD5\x26\xCA\x04\xE0"
  20460. "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C"
  20461. "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA"
  20462. "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D"
  20463. "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC"
  20464. "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63"
  20465. "\xEF\xDC\xC9\x79\x10\x26\xE8\x61"
  20466. "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63"
  20467. "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B"
  20468. "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE"
  20469. "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51",
  20470. .ilen = 496,
  20471. .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  20472. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  20473. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  20474. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  20475. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  20476. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  20477. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  20478. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  20479. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  20480. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  20481. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  20482. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  20483. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  20484. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  20485. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  20486. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  20487. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  20488. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  20489. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  20490. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  20491. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  20492. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  20493. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  20494. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  20495. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  20496. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  20497. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  20498. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  20499. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  20500. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  20501. "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
  20502. "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
  20503. "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
  20504. "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
  20505. "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
  20506. "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
  20507. "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
  20508. "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
  20509. "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
  20510. "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
  20511. "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
  20512. "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
  20513. "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
  20514. "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
  20515. "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
  20516. "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
  20517. "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
  20518. "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
  20519. "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
  20520. "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
  20521. "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
  20522. "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
  20523. "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
  20524. "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
  20525. "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
  20526. "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
  20527. "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
  20528. "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
  20529. "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
  20530. "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
  20531. "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
  20532. "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
  20533. .rlen = 496,
  20534. .also_non_np = 1,
  20535. .np = 3,
  20536. .tap = { 496 - 20, 4, 16 },
  20537. }, { /* Generated with Crypto++ */
  20538. .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
  20539. "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
  20540. "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
  20541. "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
  20542. .klen = 32,
  20543. .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
  20544. "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
  20545. .input = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2"
  20546. "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5"
  20547. "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44"
  20548. "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE"
  20549. "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F"
  20550. "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E"
  20551. "\x76\xEA\x06\x32\x23\xF3\x59\x2E"
  20552. "\x75\xDE\x71\x86\x3C\x98\x23\x44"
  20553. "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD"
  20554. "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04"
  20555. "\x70\x8B\x92\x55\x23\xE9\x6A\x3A"
  20556. "\x78\x7A\x1B\x10\x85\x52\x9C\x12"
  20557. "\xE4\x55\x81\x21\xCE\x53\xD0\x3B"
  20558. "\x63\x77\x2C\x74\xD1\xF5\x60\xF3"
  20559. "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD"
  20560. "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E"
  20561. "\xA8\x28\x69\x65\x31\xE1\x45\x83"
  20562. "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21"
  20563. "\xCD\x5D\x0F\x15\xB7\x93\x07\x26"
  20564. "\xB0\x65\x6D\x91\x90\x23\x7A\xC6"
  20565. "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E"
  20566. "\xC6\x91\x83\x20\x92\x4D\x63\x7A"
  20567. "\x45\x18\x18\x74\x19\xAD\x71\x01"
  20568. "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46"
  20569. "\xC9\x73\x7A\xF9\x02\x95\xF4\x07"
  20570. "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C"
  20571. "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8"
  20572. "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D"
  20573. "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7"
  20574. "\xE8\x61\xE5\x95\x52\x1E\x3E\x49"
  20575. "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD"
  20576. "\xDD\x15\x3B\x20\x59\x24\xFF\xB0"
  20577. "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5"
  20578. "\x15\xF0\x61\x4F\xAE\x89\x10\x58"
  20579. "\x5A\x33\x95\x52\x2A\xB5\x77\x9C"
  20580. "\xA5\x43\x80\x40\x27\x2D\xAE\xD9"
  20581. "\x3F\xE0\x80\x94\x78\x79\xCB\x7E"
  20582. "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE"
  20583. "\x0B\x05\x2A\x82\x99\x58\xBB\x7A"
  20584. "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93"
  20585. "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70"
  20586. "\x16\xAE\x35\xC5\x52\x0F\x46\x1F"
  20587. "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F"
  20588. "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6"
  20589. "\xF6\xB8\x32\xCD\xD6\x85\x73\x60"
  20590. "\x59\x20\xE7\x55\x0E\x91\xE2\x0C"
  20591. "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2"
  20592. "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D"
  20593. "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7"
  20594. "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D"
  20595. "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4"
  20596. "\xFB\x81\x5D\xF7\x96\x96\xD4\x50"
  20597. "\x89\xA7\xF6\xB9\x67\x76\x40\x9E"
  20598. "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F"
  20599. "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D"
  20600. "\x87\x52\xA4\x91\xA9\xD7\xA9\x51"
  20601. "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D"
  20602. "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D"
  20603. "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37"
  20604. "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A"
  20605. "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11"
  20606. "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76"
  20607. "\xFB\xF2\x3F",
  20608. .ilen = 499,
  20609. .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
  20610. "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
  20611. "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
  20612. "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
  20613. "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
  20614. "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
  20615. "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
  20616. "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
  20617. "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
  20618. "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
  20619. "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
  20620. "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
  20621. "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
  20622. "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
  20623. "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
  20624. "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
  20625. "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
  20626. "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
  20627. "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
  20628. "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
  20629. "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
  20630. "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
  20631. "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
  20632. "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
  20633. "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
  20634. "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
  20635. "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
  20636. "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
  20637. "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
  20638. "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
  20639. "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
  20640. "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
  20641. "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
  20642. "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
  20643. "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
  20644. "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
  20645. "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
  20646. "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
  20647. "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
  20648. "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
  20649. "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
  20650. "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
  20651. "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
  20652. "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
  20653. "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
  20654. "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
  20655. "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
  20656. "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
  20657. "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
  20658. "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
  20659. "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
  20660. "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
  20661. "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
  20662. "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
  20663. "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
  20664. "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
  20665. "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
  20666. "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
  20667. "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
  20668. "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
  20669. "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
  20670. "\xED\x56\xBF\x28\xB4\x1D\x86\x12"
  20671. "\x7B\xE4\x4D",
  20672. .rlen = 499,
  20673. .also_non_np = 1,
  20674. .np = 2,
  20675. .tap = { 499 - 16, 16 },
  20676. },
  20677. };
  20678. static struct cipher_testvec aes_ctr_rfc3686_enc_tv_template[] = {
  20679. { /* From RFC 3686 */
  20680. .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
  20681. "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
  20682. "\x00\x00\x00\x30",
  20683. .klen = 20,
  20684. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  20685. .input = "Single block msg",
  20686. .ilen = 16,
  20687. .result = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
  20688. "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
  20689. .rlen = 16,
  20690. }, {
  20691. .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
  20692. "\x43\xd6\xce\x1f\x32\x53\x91\x63"
  20693. "\x00\x6c\xb6\xdb",
  20694. .klen = 20,
  20695. .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
  20696. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  20697. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  20698. "\x10\x11\x12\x13\x14\x15\x16\x17"
  20699. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  20700. .ilen = 32,
  20701. .result = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
  20702. "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
  20703. "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
  20704. "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
  20705. .rlen = 32,
  20706. }, {
  20707. .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
  20708. "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
  20709. "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
  20710. "\x00\x00\x00\x48",
  20711. .klen = 28,
  20712. .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
  20713. .input = "Single block msg",
  20714. .ilen = 16,
  20715. .result = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
  20716. "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
  20717. .rlen = 16,
  20718. }, {
  20719. .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
  20720. "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
  20721. "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
  20722. "\x00\x96\xb0\x3b",
  20723. .klen = 28,
  20724. .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
  20725. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  20726. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  20727. "\x10\x11\x12\x13\x14\x15\x16\x17"
  20728. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  20729. .ilen = 32,
  20730. .result = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
  20731. "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
  20732. "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
  20733. "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
  20734. .rlen = 32,
  20735. }, {
  20736. .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
  20737. "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
  20738. "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
  20739. "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
  20740. "\x00\x00\x00\x60",
  20741. .klen = 36,
  20742. .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
  20743. .input = "Single block msg",
  20744. .ilen = 16,
  20745. .result = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
  20746. "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
  20747. .rlen = 16,
  20748. }, {
  20749. .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
  20750. "\x07\x96\x36\x58\x79\xef\xf8\x86"
  20751. "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
  20752. "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
  20753. "\x00\xfa\xac\x24",
  20754. .klen = 36,
  20755. .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
  20756. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  20757. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  20758. "\x10\x11\x12\x13\x14\x15\x16\x17"
  20759. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  20760. .ilen = 32,
  20761. .result = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
  20762. "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
  20763. "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
  20764. "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
  20765. .rlen = 32,
  20766. }, {
  20767. // generated using Crypto++
  20768. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  20769. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  20770. "\x10\x11\x12\x13\x14\x15\x16\x17"
  20771. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  20772. "\x00\x00\x00\x00",
  20773. .klen = 32 + 4,
  20774. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  20775. .input =
  20776. "\x00\x01\x02\x03\x04\x05\x06\x07"
  20777. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  20778. "\x10\x11\x12\x13\x14\x15\x16\x17"
  20779. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  20780. "\x20\x21\x22\x23\x24\x25\x26\x27"
  20781. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  20782. "\x30\x31\x32\x33\x34\x35\x36\x37"
  20783. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  20784. "\x40\x41\x42\x43\x44\x45\x46\x47"
  20785. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  20786. "\x50\x51\x52\x53\x54\x55\x56\x57"
  20787. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  20788. "\x60\x61\x62\x63\x64\x65\x66\x67"
  20789. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  20790. "\x70\x71\x72\x73\x74\x75\x76\x77"
  20791. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  20792. "\x80\x81\x82\x83\x84\x85\x86\x87"
  20793. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  20794. "\x90\x91\x92\x93\x94\x95\x96\x97"
  20795. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  20796. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  20797. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  20798. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  20799. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  20800. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  20801. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  20802. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  20803. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  20804. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  20805. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  20806. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  20807. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  20808. "\x00\x03\x06\x09\x0c\x0f\x12\x15"
  20809. "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
  20810. "\x30\x33\x36\x39\x3c\x3f\x42\x45"
  20811. "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
  20812. "\x60\x63\x66\x69\x6c\x6f\x72\x75"
  20813. "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
  20814. "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
  20815. "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
  20816. "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
  20817. "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
  20818. "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
  20819. "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
  20820. "\x20\x23\x26\x29\x2c\x2f\x32\x35"
  20821. "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
  20822. "\x50\x53\x56\x59\x5c\x5f\x62\x65"
  20823. "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
  20824. "\x80\x83\x86\x89\x8c\x8f\x92\x95"
  20825. "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
  20826. "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
  20827. "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
  20828. "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
  20829. "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
  20830. "\x10\x13\x16\x19\x1c\x1f\x22\x25"
  20831. "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
  20832. "\x40\x43\x46\x49\x4c\x4f\x52\x55"
  20833. "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
  20834. "\x70\x73\x76\x79\x7c\x7f\x82\x85"
  20835. "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
  20836. "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
  20837. "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
  20838. "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
  20839. "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
  20840. "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
  20841. "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
  20842. "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
  20843. "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
  20844. "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
  20845. "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
  20846. "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
  20847. "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
  20848. "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
  20849. "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
  20850. "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
  20851. "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
  20852. "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
  20853. "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
  20854. "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
  20855. "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
  20856. "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
  20857. "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
  20858. "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
  20859. "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
  20860. "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
  20861. "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
  20862. "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
  20863. "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
  20864. "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
  20865. "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
  20866. "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
  20867. "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
  20868. "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
  20869. "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
  20870. "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
  20871. "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
  20872. "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
  20873. "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
  20874. "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
  20875. "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
  20876. "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
  20877. "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
  20878. "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
  20879. "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
  20880. "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
  20881. "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
  20882. "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
  20883. "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
  20884. "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
  20885. "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
  20886. "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
  20887. "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
  20888. "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
  20889. "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
  20890. "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
  20891. "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
  20892. "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
  20893. "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
  20894. "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
  20895. "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
  20896. "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
  20897. "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
  20898. "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
  20899. "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
  20900. "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
  20901. "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
  20902. "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
  20903. "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
  20904. "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
  20905. "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
  20906. "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
  20907. "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
  20908. "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
  20909. "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
  20910. "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
  20911. "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
  20912. "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
  20913. "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
  20914. "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
  20915. "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
  20916. "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
  20917. "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
  20918. "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
  20919. "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
  20920. "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
  20921. "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
  20922. "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
  20923. "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
  20924. "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
  20925. "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
  20926. "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
  20927. "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
  20928. "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
  20929. "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
  20930. "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
  20931. "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
  20932. "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
  20933. "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
  20934. "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
  20935. "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
  20936. "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
  20937. "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
  20938. "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
  20939. "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
  20940. "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
  20941. "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
  20942. "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
  20943. "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
  20944. "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
  20945. "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
  20946. "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
  20947. "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
  20948. "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
  20949. "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
  20950. "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
  20951. "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
  20952. "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
  20953. "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
  20954. "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
  20955. "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
  20956. "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
  20957. "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
  20958. "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
  20959. "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
  20960. "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
  20961. "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
  20962. "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
  20963. "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
  20964. "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
  20965. "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
  20966. "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
  20967. "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
  20968. "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
  20969. "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
  20970. "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
  20971. "\x38\x45\x52\x5f\x6c\x79\x86\x93"
  20972. "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
  20973. "\x08\x15\x22\x2f\x3c\x49\x56\x63"
  20974. "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
  20975. "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
  20976. "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
  20977. "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
  20978. "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
  20979. "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
  20980. "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
  20981. "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
  20982. "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
  20983. "\x18\x25\x32\x3f\x4c\x59\x66\x73"
  20984. "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
  20985. "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
  20986. "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
  20987. "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
  20988. "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
  20989. "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
  20990. "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
  20991. "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
  20992. "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
  20993. "\x28\x35\x42\x4f\x5c\x69\x76\x83"
  20994. "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
  20995. "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
  20996. "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
  20997. "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
  20998. "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
  20999. "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
  21000. "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
  21001. "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
  21002. "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
  21003. "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
  21004. "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
  21005. "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
  21006. "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
  21007. "\x48\x57\x66\x75\x84\x93\xa2\xb1"
  21008. "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
  21009. "\x38\x47\x56\x65\x74\x83\x92\xa1"
  21010. "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
  21011. "\x28\x37\x46\x55\x64\x73\x82\x91"
  21012. "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
  21013. "\x18\x27\x36\x45\x54\x63\x72\x81"
  21014. "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
  21015. "\x08\x17\x26\x35\x44\x53\x62\x71"
  21016. "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
  21017. "\xf8\x07\x16\x25\x34\x43\x52\x61"
  21018. "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
  21019. "\xe8\xf7\x06\x15\x24\x33\x42\x51"
  21020. "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
  21021. "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
  21022. "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
  21023. "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
  21024. "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
  21025. "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
  21026. "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
  21027. "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
  21028. "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
  21029. "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
  21030. "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
  21031. "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
  21032. "\x00\x11\x22\x33\x44\x55\x66\x77"
  21033. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
  21034. "\x10\x21\x32\x43\x54\x65\x76\x87"
  21035. "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
  21036. "\x20\x31\x42\x53\x64\x75\x86\x97"
  21037. "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
  21038. "\x30\x41\x52\x63\x74\x85\x96\xa7"
  21039. "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
  21040. "\x40\x51\x62\x73\x84\x95\xa6\xb7"
  21041. "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
  21042. "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
  21043. "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
  21044. "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
  21045. "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
  21046. "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
  21047. "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
  21048. "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
  21049. "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
  21050. "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
  21051. "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
  21052. "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
  21053. "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
  21054. "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
  21055. "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
  21056. "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
  21057. "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
  21058. "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
  21059. "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
  21060. "\xe0\xf1\x02\x13\x24\x35\x46\x57"
  21061. "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
  21062. "\xf0\x01\x12\x23\x34\x45\x56\x67"
  21063. "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
  21064. "\x00\x13\x26\x39\x4c\x5f\x72\x85"
  21065. "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
  21066. "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
  21067. "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
  21068. "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
  21069. "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
  21070. "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
  21071. "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
  21072. "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
  21073. "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
  21074. "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
  21075. "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
  21076. "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
  21077. "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
  21078. "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
  21079. "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
  21080. "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
  21081. "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
  21082. "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
  21083. "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
  21084. "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
  21085. "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
  21086. "\x10\x23\x36\x49\x5c\x6f\x82\x95"
  21087. "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
  21088. "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
  21089. "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
  21090. "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
  21091. "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
  21092. "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
  21093. "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
  21094. "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
  21095. "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
  21096. "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
  21097. "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
  21098. "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
  21099. "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
  21100. "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
  21101. "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
  21102. "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
  21103. "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
  21104. "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
  21105. "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
  21106. "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
  21107. "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
  21108. "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
  21109. "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
  21110. "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
  21111. "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
  21112. "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
  21113. "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
  21114. "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
  21115. "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
  21116. "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
  21117. "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
  21118. "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
  21119. "\x18\x2d\x42\x57\x6c\x81\x96\xab"
  21120. "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
  21121. "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
  21122. "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
  21123. "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
  21124. "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
  21125. "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
  21126. "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
  21127. "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
  21128. "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
  21129. "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
  21130. "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
  21131. "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
  21132. "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
  21133. "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
  21134. "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
  21135. "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
  21136. "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
  21137. "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
  21138. "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
  21139. "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
  21140. "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
  21141. "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
  21142. "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
  21143. "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
  21144. "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
  21145. "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
  21146. "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
  21147. "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
  21148. "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
  21149. "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
  21150. "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
  21151. "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
  21152. "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
  21153. "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
  21154. "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
  21155. "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
  21156. "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
  21157. "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
  21158. "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
  21159. "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
  21160. "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
  21161. "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
  21162. "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
  21163. "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
  21164. "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
  21165. "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
  21166. "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
  21167. "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
  21168. "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
  21169. "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
  21170. "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
  21171. "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
  21172. "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
  21173. "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
  21174. "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
  21175. "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
  21176. "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
  21177. "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
  21178. "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
  21179. "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
  21180. "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
  21181. "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
  21182. "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
  21183. "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
  21184. "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
  21185. "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
  21186. "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
  21187. "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
  21188. "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
  21189. "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
  21190. "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
  21191. "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
  21192. "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
  21193. "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
  21194. "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
  21195. "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
  21196. "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
  21197. "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
  21198. "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
  21199. "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
  21200. "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
  21201. "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
  21202. "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
  21203. "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
  21204. "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
  21205. "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
  21206. "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
  21207. "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
  21208. "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
  21209. "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
  21210. "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
  21211. "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
  21212. "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
  21213. "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
  21214. "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
  21215. "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
  21216. "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
  21217. "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
  21218. "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
  21219. "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
  21220. "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
  21221. "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
  21222. "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
  21223. "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
  21224. "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
  21225. "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
  21226. "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
  21227. "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
  21228. "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
  21229. "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
  21230. "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
  21231. "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
  21232. "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
  21233. "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
  21234. "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
  21235. "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
  21236. "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
  21237. "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
  21238. "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
  21239. "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
  21240. "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
  21241. "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
  21242. "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
  21243. "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
  21244. "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
  21245. "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
  21246. "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
  21247. "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
  21248. "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
  21249. "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
  21250. "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
  21251. "\x78\x95\xb2\xcf\xec\x09\x26\x43"
  21252. "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
  21253. "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
  21254. "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
  21255. "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
  21256. "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
  21257. "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
  21258. "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
  21259. "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
  21260. "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
  21261. "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
  21262. "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
  21263. "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
  21264. "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
  21265. "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
  21266. "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
  21267. "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
  21268. "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
  21269. "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
  21270. "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
  21271. "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
  21272. "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
  21273. "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
  21274. "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
  21275. "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
  21276. "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
  21277. "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
  21278. "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
  21279. "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
  21280. "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
  21281. "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
  21282. "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
  21283. "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
  21284. "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
  21285. "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
  21286. "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
  21287. "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
  21288. "\x00\x21\x42\x63",
  21289. .ilen = 4100,
  21290. .result =
  21291. "\xf0\x5c\x74\xad\x4e\xbc\x99\xe2"
  21292. "\xae\xff\x91\x3a\x44\xcf\x38\x32"
  21293. "\x1e\xad\xa7\xcd\xa1\x39\x95\xaa"
  21294. "\x10\xb1\xb3\x2e\x04\x31\x8f\x86"
  21295. "\xf2\x62\x74\x70\x0c\xa4\x46\x08"
  21296. "\xa8\xb7\x99\xa8\xe9\xd2\x73\x79"
  21297. "\x7e\x6e\xd4\x8f\x1e\xc7\x8e\x31"
  21298. "\x0b\xfa\x4b\xce\xfd\xf3\x57\x71"
  21299. "\xe9\x46\x03\xa5\x3d\x34\x00\xe2"
  21300. "\x18\xff\x75\x6d\x06\x2d\x00\xab"
  21301. "\xb9\x3e\x6c\x59\xc5\x84\x06\xb5"
  21302. "\x8b\xd0\x89\x9c\x4a\x79\x16\xc6"
  21303. "\x3d\x74\x54\xfa\x44\xcd\x23\x26"
  21304. "\x5c\xcf\x7e\x28\x92\x32\xbf\xdf"
  21305. "\xa7\x20\x3c\x74\x58\x2a\x9a\xde"
  21306. "\x61\x00\x1c\x4f\xff\x59\xc4\x22"
  21307. "\xac\x3c\xd0\xe8\x6c\xf9\x97\x1b"
  21308. "\x58\x9b\xad\x71\xe8\xa9\xb5\x0d"
  21309. "\xee\x2f\x04\x1f\x7f\xbc\x99\xee"
  21310. "\x84\xff\x42\x60\xdc\x3a\x18\xa5"
  21311. "\x81\xf9\xef\xdc\x7a\x0f\x65\x41"
  21312. "\x2f\xa3\xd3\xf9\xc2\xcb\xc0\x4d"
  21313. "\x8f\xd3\x76\x96\xad\x49\x6d\x38"
  21314. "\x3d\x39\x0b\x6c\x80\xb7\x54\x69"
  21315. "\xf0\x2c\x90\x02\x29\x0d\x1c\x12"
  21316. "\xad\x55\xc3\x8b\x68\xd9\xcc\xb3"
  21317. "\xb2\x64\x33\x90\x5e\xca\x4b\xe2"
  21318. "\xfb\x75\xdc\x63\xf7\x9f\x82\x74"
  21319. "\xf0\xc9\xaa\x7f\xe9\x2a\x9b\x33"
  21320. "\xbc\x88\x00\x7f\xca\xb2\x1f\x14"
  21321. "\xdb\xc5\x8e\x7b\x11\x3c\x3e\x08"
  21322. "\xf3\x83\xe8\xe0\x94\x86\x2e\x92"
  21323. "\x78\x6b\x01\xc9\xc7\x83\xba\x21"
  21324. "\x6a\x25\x15\x33\x4e\x45\x08\xec"
  21325. "\x35\xdb\xe0\x6e\x31\x51\x79\xa9"
  21326. "\x42\x44\x65\xc1\xa0\xf1\xf9\x2a"
  21327. "\x70\xd5\xb6\xc6\xc1\x8c\x39\xfc"
  21328. "\x25\xa6\x55\xd9\xdd\x2d\x4c\xec"
  21329. "\x49\xc6\xeb\x0e\xa8\x25\x2a\x16"
  21330. "\x1b\x66\x84\xda\xe2\x92\xe5\xc0"
  21331. "\xc8\x53\x07\xaf\x80\x84\xec\xfd"
  21332. "\xcd\xd1\x6e\xcd\x6f\x6a\xf5\x36"
  21333. "\xc5\x15\xe5\x25\x7d\x77\xd1\x1a"
  21334. "\x93\x36\xa9\xcf\x7c\xa4\x54\x4a"
  21335. "\x06\x51\x48\x4e\xf6\x59\x87\xd2"
  21336. "\x04\x02\xef\xd3\x44\xde\x76\x31"
  21337. "\xb3\x34\x17\x1b\x9d\x66\x11\x9f"
  21338. "\x1e\xcc\x17\xe9\xc7\x3c\x1b\xe7"
  21339. "\xcb\x50\x08\xfc\xdc\x2b\x24\xdb"
  21340. "\x65\x83\xd0\x3b\xe3\x30\xea\x94"
  21341. "\x6c\xe7\xe8\x35\x32\xc7\xdb\x64"
  21342. "\xb4\x01\xab\x36\x2c\x77\x13\xaf"
  21343. "\xf8\x2b\x88\x3f\x54\x39\xc4\x44"
  21344. "\xfe\xef\x6f\x68\x34\xbe\x0f\x05"
  21345. "\x16\x6d\xf6\x0a\x30\xe7\xe3\xed"
  21346. "\xc4\xde\x3c\x1b\x13\xd8\xdb\xfe"
  21347. "\x41\x62\xe5\x28\xd4\x8d\xa3\xc7"
  21348. "\x93\x97\xc6\x48\x45\x1d\x9f\x83"
  21349. "\xdf\x4b\x40\x3e\x42\x25\x87\x80"
  21350. "\x4c\x7d\xa8\xd4\x98\x23\x95\x75"
  21351. "\x41\x8c\xda\x41\x9b\xd4\xa7\x06"
  21352. "\xb5\xf1\x71\x09\x53\xbe\xca\xbf"
  21353. "\x32\x03\xed\xf0\x50\x1c\x56\x39"
  21354. "\x5b\xa4\x75\x18\xf7\x9b\x58\xef"
  21355. "\x53\xfc\x2a\x38\x23\x15\x75\xcd"
  21356. "\x45\xe5\x5a\x82\x55\xba\x21\xfa"
  21357. "\xd4\xbd\xc6\x94\x7c\xc5\x80\x12"
  21358. "\xf7\x4b\x32\xc4\x9a\x82\xd8\x28"
  21359. "\x8f\xd9\xc2\x0f\x60\x03\xbe\x5e"
  21360. "\x21\xd6\x5f\x58\xbf\x5c\xb1\x32"
  21361. "\x82\x8d\xa9\xe5\xf2\x66\x1a\xc0"
  21362. "\xa0\xbc\x58\x2f\x71\xf5\x2f\xed"
  21363. "\xd1\x26\xb9\xd8\x49\x5a\x07\x19"
  21364. "\x01\x7c\x59\xb0\xf8\xa4\xb7\xd3"
  21365. "\x7b\x1a\x8c\x38\xf4\x50\xa4\x59"
  21366. "\xb0\xcc\x41\x0b\x88\x7f\xe5\x31"
  21367. "\xb3\x42\xba\xa2\x7e\xd4\x32\x71"
  21368. "\x45\x87\x48\xa9\xc2\xf2\x89\xb3"
  21369. "\xe4\xa7\x7e\x52\x15\x61\xfa\xfe"
  21370. "\xc9\xdd\x81\xeb\x13\xab\xab\xc3"
  21371. "\x98\x59\xd8\x16\x3d\x14\x7a\x1c"
  21372. "\x3c\x41\x9a\x16\x16\x9b\xd2\xd2"
  21373. "\x69\x3a\x29\x23\xac\x86\x32\xa5"
  21374. "\x48\x9c\x9e\xf3\x47\x77\x81\x70"
  21375. "\x24\xe8\x85\xd2\xf5\xb5\xfa\xff"
  21376. "\x59\x6a\xd3\x50\x59\x43\x59\xde"
  21377. "\xd9\xf1\x55\xa5\x0c\xc3\x1a\x1a"
  21378. "\x18\x34\x0d\x1a\x63\x33\xed\x10"
  21379. "\xe0\x1d\x2a\x18\xd2\xc0\x54\xa8"
  21380. "\xca\xb5\x9a\xd3\xdd\xca\x45\x84"
  21381. "\x50\xe7\x0f\xfe\xa4\x99\x5a\xbe"
  21382. "\x43\x2d\x9a\xcb\x92\x3f\x5a\x1d"
  21383. "\x85\xd8\xc9\xdf\x68\xc9\x12\x80"
  21384. "\x56\x0c\xdc\x00\xdc\x3a\x7d\x9d"
  21385. "\xa3\xa2\xe8\x4d\xbf\xf9\x70\xa0"
  21386. "\xa4\x13\x4f\x6b\xaf\x0a\x89\x7f"
  21387. "\xda\xf0\xbf\x9b\xc8\x1d\xe5\xf8"
  21388. "\x2e\x8b\x07\xb5\x73\x1b\xcc\xa2"
  21389. "\xa6\xad\x30\xbc\x78\x3c\x5b\x10"
  21390. "\xfa\x5e\x62\x2d\x9e\x64\xb3\x33"
  21391. "\xce\xf9\x1f\x86\xe7\x8b\xa2\xb8"
  21392. "\xe8\x99\x57\x8c\x11\xed\x66\xd9"
  21393. "\x3c\x72\xb9\xc3\xe6\x4e\x17\x3a"
  21394. "\x6a\xcb\x42\x24\x06\xed\x3e\x4e"
  21395. "\xa3\xe8\x6a\x94\xda\x0d\x4e\xd5"
  21396. "\x14\x19\xcf\xb6\x26\xd8\x2e\xcc"
  21397. "\x64\x76\x38\x49\x4d\xfe\x30\x6d"
  21398. "\xe4\xc8\x8c\x7b\xc4\xe0\x35\xba"
  21399. "\x22\x6e\x76\xe1\x1a\xf2\x53\xc3"
  21400. "\x28\xa2\x82\x1f\x61\x69\xad\xc1"
  21401. "\x7b\x28\x4b\x1e\x6c\x85\x95\x9b"
  21402. "\x51\xb5\x17\x7f\x12\x69\x8c\x24"
  21403. "\xd5\xc7\x5a\x5a\x11\x54\xff\x5a"
  21404. "\xf7\x16\xc3\x91\xa6\xf0\xdc\x0a"
  21405. "\xb6\xa7\x4a\x0d\x7a\x58\xfe\xa5"
  21406. "\xf5\xcb\x8f\x7b\x0e\xea\x57\xe7"
  21407. "\xbd\x79\xd6\x1c\x88\x23\x6c\xf2"
  21408. "\x4d\x29\x77\x53\x35\x6a\x00\x8d"
  21409. "\xcd\xa3\x58\xbe\x77\x99\x18\xf8"
  21410. "\xe6\xe1\x8f\xe9\x37\x8f\xe3\xe2"
  21411. "\x5a\x8a\x93\x25\xaf\xf3\x78\x80"
  21412. "\xbe\xa6\x1b\xc6\xac\x8b\x1c\x91"
  21413. "\x58\xe1\x9f\x89\x35\x9d\x1d\x21"
  21414. "\x29\x9f\xf4\x99\x02\x27\x0f\xa8"
  21415. "\x4f\x79\x94\x2b\x33\x2c\xda\xa2"
  21416. "\x26\x39\x83\x94\xef\x27\xd8\x53"
  21417. "\x8f\x66\x0d\xe4\x41\x7d\x34\xcd"
  21418. "\x43\x7c\x95\x0a\x53\xef\x66\xda"
  21419. "\x7e\x9b\xf3\x93\xaf\xd0\x73\x71"
  21420. "\xba\x40\x9b\x74\xf8\xd7\xd7\x41"
  21421. "\x6d\xaf\x72\x9c\x8d\x21\x87\x3c"
  21422. "\xfd\x0a\x90\xa9\x47\x96\x9e\xd3"
  21423. "\x88\xee\x73\xcf\x66\x2f\x52\x56"
  21424. "\x6d\xa9\x80\x4c\xe2\x6f\x62\x88"
  21425. "\x3f\x0e\x54\x17\x48\x80\x5d\xd3"
  21426. "\xc3\xda\x25\x3d\xa1\xc8\xcb\x9f"
  21427. "\x9b\x70\xb3\xa1\xeb\x04\x52\xa1"
  21428. "\xf2\x22\x0f\xfc\xc8\x18\xfa\xf9"
  21429. "\x85\x9c\xf1\xac\xeb\x0c\x02\x46"
  21430. "\x75\xd2\xf5\x2c\xe3\xd2\x59\x94"
  21431. "\x12\xf3\x3c\xfc\xd7\x92\xfa\x36"
  21432. "\xba\x61\x34\x38\x7c\xda\x48\x3e"
  21433. "\x08\xc9\x39\x23\x5e\x02\x2c\x1a"
  21434. "\x18\x7e\xb4\xd9\xfd\x9e\x40\x02"
  21435. "\xb1\x33\x37\x32\xe7\xde\xd6\xd0"
  21436. "\x7c\x58\x65\x4b\xf8\x34\x27\x9c"
  21437. "\x44\xb4\xbd\xe9\xe9\x4c\x78\x7d"
  21438. "\x4b\x9f\xce\xb1\xcd\x47\xa5\x37"
  21439. "\xe5\x6d\xbd\xb9\x43\x94\x0a\xd4"
  21440. "\xd6\xf9\x04\x5f\xb5\x66\x6c\x1a"
  21441. "\x35\x12\xe3\x36\x28\x27\x36\x58"
  21442. "\x01\x2b\x79\xe4\xba\x6d\x10\x7d"
  21443. "\x65\xdf\x84\x95\xf4\xd5\xb6\x8f"
  21444. "\x2b\x9f\x96\x00\x86\x60\xf0\x21"
  21445. "\x76\xa8\x6a\x8c\x28\x1c\xb3\x6b"
  21446. "\x97\xd7\xb6\x53\x2a\xcc\xab\x40"
  21447. "\x9d\x62\x79\x58\x52\xe6\x65\xb7"
  21448. "\xab\x55\x67\x9c\x89\x7c\x03\xb0"
  21449. "\x73\x59\xc5\x81\xf5\x18\x17\x5c"
  21450. "\x89\xf3\x78\x35\x44\x62\x78\x72"
  21451. "\xd0\x96\xeb\x31\xe7\x87\x77\x14"
  21452. "\x99\x51\xf2\x59\x26\x9e\xb5\xa6"
  21453. "\x45\xfe\x6e\xbd\x07\x4c\x94\x5a"
  21454. "\xa5\x7d\xfc\xf1\x2b\x77\xe2\xfe"
  21455. "\x17\xd4\x84\xa0\xac\xb5\xc7\xda"
  21456. "\xa9\x1a\xb6\xf3\x74\x11\xb4\x9d"
  21457. "\xfb\x79\x2e\x04\x2d\x50\x28\x83"
  21458. "\xbf\xc6\x52\xd3\x34\xd6\xe8\x7a"
  21459. "\xb6\xea\xe7\xa8\x6c\x15\x1e\x2c"
  21460. "\x57\xbc\x48\x4e\x5f\x5c\xb6\x92"
  21461. "\xd2\x49\x77\x81\x6d\x90\x70\xae"
  21462. "\x98\xa1\x03\x0d\x6b\xb9\x77\x14"
  21463. "\xf1\x4e\x23\xd3\xf8\x68\xbd\xc2"
  21464. "\xfe\x04\xb7\x5c\xc5\x17\x60\x8f"
  21465. "\x65\x54\xa4\x7a\x42\xdc\x18\x0d"
  21466. "\xb5\xcf\x0f\xd3\xc7\x91\x66\x1b"
  21467. "\x45\x42\x27\x75\x50\xe5\xee\xb8"
  21468. "\x7f\x33\x2c\xba\x4a\x92\x4d\x2c"
  21469. "\x3c\xe3\x0d\x80\x01\xba\x0d\x29"
  21470. "\xd8\x3c\xe9\x13\x16\x57\xe6\xea"
  21471. "\x94\x52\xe7\x00\x4d\x30\xb0\x0f"
  21472. "\x35\xb8\xb8\xa7\xb1\xb5\x3b\x44"
  21473. "\xe1\x2f\xfd\x88\xed\x43\xe7\x52"
  21474. "\x10\x93\xb3\x8a\x30\x6b\x0a\xf7"
  21475. "\x23\xc6\x50\x9d\x4a\xb0\xde\xc3"
  21476. "\xdc\x9b\x2f\x01\x56\x36\x09\xc5"
  21477. "\x2f\x6b\xfe\xf1\xd8\x27\x45\x03"
  21478. "\x30\x5e\x5c\x5b\xb4\x62\x0e\x1a"
  21479. "\xa9\x21\x2b\x92\x94\x87\x62\x57"
  21480. "\x4c\x10\x74\x1a\xf1\x0a\xc5\x84"
  21481. "\x3b\x9e\x72\x02\xd7\xcc\x09\x56"
  21482. "\xbd\x54\xc1\xf0\xc3\xe3\xb3\xf8"
  21483. "\xd2\x0d\x61\xcb\xef\xce\x0d\x05"
  21484. "\xb0\x98\xd9\x8e\x4f\xf9\xbc\x93"
  21485. "\xa6\xea\xc8\xcf\x10\x53\x4b\xf1"
  21486. "\xec\xfc\x89\xf9\x64\xb0\x22\xbf"
  21487. "\x9e\x55\x46\x9f\x7c\x50\x8e\x84"
  21488. "\x54\x20\x98\xd7\x6c\x40\x1e\xdb"
  21489. "\x69\x34\x78\x61\x24\x21\x9c\x8a"
  21490. "\xb3\x62\x31\x8b\x6e\xf5\x2a\x35"
  21491. "\x86\x13\xb1\x6c\x64\x2e\x41\xa5"
  21492. "\x05\xf2\x42\xba\xd2\x3a\x0d\x8e"
  21493. "\x8a\x59\x94\x3c\xcf\x36\x27\x82"
  21494. "\xc2\x45\xee\x58\xcd\x88\xb4\xec"
  21495. "\xde\xb2\x96\x0a\xaf\x38\x6f\x88"
  21496. "\xd7\xd8\xe1\xdf\xb9\x96\xa9\x0a"
  21497. "\xb1\x95\x28\x86\x20\xe9\x17\x49"
  21498. "\xa2\x29\x38\xaa\xa5\xe9\x6e\xf1"
  21499. "\x19\x27\xc0\xd5\x2a\x22\xc3\x0b"
  21500. "\xdb\x7c\x73\x10\xb9\xba\x89\x76"
  21501. "\x54\xae\x7d\x71\xb3\x93\xf6\x32"
  21502. "\xe6\x47\x43\x55\xac\xa0\x0d\xc2"
  21503. "\x93\x27\x4a\x8e\x0e\x74\x15\xc7"
  21504. "\x0b\x85\xd9\x0c\xa9\x30\x7a\x3e"
  21505. "\xea\x8f\x85\x6d\x3a\x12\x4f\x72"
  21506. "\x69\x58\x7a\x80\xbb\xb5\x97\xf3"
  21507. "\xcf\x70\xd2\x5d\xdd\x4d\x21\x79"
  21508. "\x54\x4d\xe4\x05\xe8\xbd\xc2\x62"
  21509. "\xb1\x3b\x77\x1c\xd6\x5c\xf3\xa0"
  21510. "\x79\x00\xa8\x6c\x29\xd9\x18\x24"
  21511. "\x36\xa2\x46\xc0\x96\x65\x7f\xbd"
  21512. "\x2a\xed\x36\x16\x0c\xaa\x9f\xf4"
  21513. "\xc5\xb4\xe2\x12\xed\x69\xed\x4f"
  21514. "\x26\x2c\x39\x52\x89\x98\xe7\x2c"
  21515. "\x99\xa4\x9e\xa3\x9b\x99\x46\x7a"
  21516. "\x3a\xdc\xa8\x59\xa3\xdb\xc3\x3b"
  21517. "\x95\x0d\x3b\x09\x6e\xee\x83\x5d"
  21518. "\x32\x4d\xed\xab\xfa\x98\x14\x4e"
  21519. "\xc3\x15\x45\x53\x61\xc4\x93\xbd"
  21520. "\x90\xf4\x99\x95\x4c\xe6\x76\x92"
  21521. "\x29\x90\x46\x30\x92\x69\x7d\x13"
  21522. "\xf2\xa5\xcd\x69\x49\x44\xb2\x0f"
  21523. "\x63\x40\x36\x5f\x09\xe2\x78\xf8"
  21524. "\x91\xe3\xe2\xfa\x10\xf7\xc8\x24"
  21525. "\xa8\x89\x32\x5c\x37\x25\x1d\xb2"
  21526. "\xea\x17\x8a\x0a\xa9\x64\xc3\x7c"
  21527. "\x3c\x7c\xbd\xc6\x79\x34\xe7\xe2"
  21528. "\x85\x8e\xbf\xf8\xde\x92\xa0\xae"
  21529. "\x20\xc4\xf6\xbb\x1f\x38\x19\x0e"
  21530. "\xe8\x79\x9c\xa1\x23\xe9\x54\x7e"
  21531. "\x37\x2f\xe2\x94\x32\xaf\xa0\x23"
  21532. "\x49\xe4\xc0\xb3\xac\x00\x8f\x36"
  21533. "\x05\xc4\xa6\x96\xec\x05\x98\x4f"
  21534. "\x96\x67\x57\x1f\x20\x86\x1b\x2d"
  21535. "\x69\xe4\x29\x93\x66\x5f\xaf\x6b"
  21536. "\x88\x26\x2c\x67\x02\x4b\x52\xd0"
  21537. "\x83\x7a\x43\x1f\xc0\x71\x15\x25"
  21538. "\x77\x65\x08\x60\x11\x76\x4c\x8d"
  21539. "\xed\xa9\x27\xc6\xb1\x2a\x2c\x6a"
  21540. "\x4a\x97\xf5\xc6\xb7\x70\x42\xd3"
  21541. "\x03\xd1\x24\x95\xec\x6d\xab\x38"
  21542. "\x72\xce\xe2\x8b\x33\xd7\x51\x09"
  21543. "\xdc\x45\xe0\x09\x96\x32\xf3\xc4"
  21544. "\x84\xdc\x73\x73\x2d\x1b\x11\x98"
  21545. "\xc5\x0e\x69\x28\x94\xc7\xb5\x4d"
  21546. "\xc8\x8a\xd0\xaa\x13\x2e\x18\x74"
  21547. "\xdd\xd1\x1e\xf3\x90\xe8\xfc\x9a"
  21548. "\x72\x4a\x0e\xd1\xe4\xfb\x0d\x96"
  21549. "\xd1\x0c\x79\x85\x1b\x1c\xfe\xe1"
  21550. "\x62\x8f\x7a\x73\x32\xab\xc8\x18"
  21551. "\x69\xe3\x34\x30\xdf\x13\xa6\xe5"
  21552. "\xe8\x0e\x67\x7f\x81\x11\xb4\x60"
  21553. "\xc7\xbd\x79\x65\x50\xdc\xc4\x5b"
  21554. "\xde\x39\xa4\x01\x72\x63\xf3\xd1"
  21555. "\x64\x4e\xdf\xfc\x27\x92\x37\x0d"
  21556. "\x57\xcd\x11\x4f\x11\x04\x8e\x1d"
  21557. "\x16\xf7\xcd\x92\x9a\x99\x30\x14"
  21558. "\xf1\x7c\x67\x1b\x1f\x41\x0b\xe8"
  21559. "\x32\xe8\xb8\xc1\x4f\x54\x86\x4f"
  21560. "\xe5\x79\x81\x73\xcd\x43\x59\x68"
  21561. "\x73\x02\x3b\x78\x21\x72\x43\x00"
  21562. "\x49\x17\xf7\x00\xaf\x68\x24\x53"
  21563. "\x05\x0a\xc3\x33\xe0\x33\x3f\x69"
  21564. "\xd2\x84\x2f\x0b\xed\xde\x04\xf4"
  21565. "\x11\x94\x13\x69\x51\x09\x28\xde"
  21566. "\x57\x5c\xef\xdc\x9a\x49\x1c\x17"
  21567. "\x97\xf3\x96\xc1\x7f\x5d\x2e\x7d"
  21568. "\x55\xb8\xb3\x02\x09\xb3\x1f\xe7"
  21569. "\xc9\x8d\xa3\x36\x34\x8a\x77\x13"
  21570. "\x30\x63\x4c\xa5\xcd\xc3\xe0\x7e"
  21571. "\x05\xa1\x7b\x0c\xcb\x74\x47\x31"
  21572. "\x62\x03\x43\xf1\x87\xb4\xb0\x85"
  21573. "\x87\x8e\x4b\x25\xc7\xcf\xae\x4b"
  21574. "\x36\x46\x3e\x62\xbc\x6f\xeb\x5f"
  21575. "\x73\xac\xe6\x07\xee\xc1\xa1\xd6"
  21576. "\xc4\xab\xc9\xd6\x89\x45\xe1\xf1"
  21577. "\x04\x4e\x1a\x6f\xbb\x4f\x3a\xa3"
  21578. "\xa0\xcb\xa3\x0a\xd8\x71\x35\x55"
  21579. "\xe4\xbc\x2e\x04\x06\xe6\xff\x5b"
  21580. "\x1c\xc0\x11\x7c\xc5\x17\xf3\x38"
  21581. "\xcf\xe9\xba\x0f\x0e\xef\x02\xc2"
  21582. "\x8d\xc6\xbc\x4b\x67\x20\x95\xd7"
  21583. "\x2c\x45\x5b\x86\x44\x8c\x6f\x2e"
  21584. "\x7e\x9f\x1c\x77\xba\x6b\x0e\xa3"
  21585. "\x69\xdc\xab\x24\x57\x60\x47\xc1"
  21586. "\xd1\xa5\x9d\x23\xe6\xb1\x37\xfe"
  21587. "\x93\xd2\x4c\x46\xf9\x0c\xc6\xfb"
  21588. "\xd6\x9d\x99\x69\xab\x7a\x07\x0c"
  21589. "\x65\xe7\xc4\x08\x96\xe2\xa5\x01"
  21590. "\x3f\x46\x07\x05\x7e\xe8\x9a\x90"
  21591. "\x50\xdc\xe9\x7a\xea\xa1\x39\x6e"
  21592. "\x66\xe4\x6f\xa5\x5f\xb2\xd9\x5b"
  21593. "\xf5\xdb\x2a\x32\xf0\x11\x6f\x7c"
  21594. "\x26\x10\x8f\x3d\x80\xe9\x58\xf7"
  21595. "\xe0\xa8\x57\xf8\xdb\x0e\xce\x99"
  21596. "\x63\x19\x3d\xd5\xec\x1b\x77\x69"
  21597. "\x98\xf6\xe4\x5f\x67\x17\x4b\x09"
  21598. "\x85\x62\x82\x70\x18\xe2\x9a\x78"
  21599. "\xe2\x62\xbd\xb4\xf1\x42\xc6\xfb"
  21600. "\x08\xd0\xbd\xeb\x4e\x09\xf2\xc8"
  21601. "\x1e\xdc\x3d\x32\x21\x56\x9c\x4f"
  21602. "\x35\xf3\x61\x06\x72\x84\xc4\x32"
  21603. "\xf2\xf1\xfa\x0b\x2f\xc3\xdb\x02"
  21604. "\x04\xc2\xde\x57\x64\x60\x8d\xcf"
  21605. "\xcb\x86\x5d\x97\x3e\xb1\x9c\x01"
  21606. "\xd6\x28\x8f\x99\xbc\x46\xeb\x05"
  21607. "\xaf\x7e\xb8\x21\x2a\x56\x85\x1c"
  21608. "\xb3\x71\xa0\xde\xca\x96\xf1\x78"
  21609. "\x49\xa2\x99\x81\x80\x5c\x01\xf5"
  21610. "\xa0\xa2\x56\x63\xe2\x70\x07\xa5"
  21611. "\x95\xd6\x85\xeb\x36\x9e\xa9\x51"
  21612. "\x66\x56\x5f\x1d\x02\x19\xe2\xf6"
  21613. "\x4f\x73\x38\x09\x75\x64\x48\xe0"
  21614. "\xf1\x7e\x0e\xe8\x9d\xf9\xed\x94"
  21615. "\xfe\x16\x26\x62\x49\x74\xf4\xb0"
  21616. "\xd4\xa9\x6c\xb0\xfd\x53\xe9\x81"
  21617. "\xe0\x7a\xbf\xcf\xb5\xc4\x01\x81"
  21618. "\x79\x99\x77\x01\x3b\xe9\xa2\xb6"
  21619. "\xe6\x6a\x8a\x9e\x56\x1c\x8d\x1e"
  21620. "\x8f\x06\x55\x2c\x6c\xdc\x92\x87"
  21621. "\x64\x3b\x4b\x19\xa1\x13\x64\x1d"
  21622. "\x4a\xe9\xc0\x00\xb8\x95\xef\x6b"
  21623. "\x1a\x86\x6d\x37\x52\x02\xc2\xe0"
  21624. "\xc8\xbb\x42\x0c\x02\x21\x4a\xc9"
  21625. "\xef\xa0\x54\xe4\x5e\x16\x53\x81"
  21626. "\x70\x62\x10\xaf\xde\xb8\xb5\xd3"
  21627. "\xe8\x5e\x6c\xc3\x8a\x3e\x18\x07"
  21628. "\xf2\x2f\x7d\xa7\xe1\x3d\x4e\xb4"
  21629. "\x26\xa7\xa3\x93\x86\xb2\x04\x1e"
  21630. "\x53\x5d\x86\xd6\xde\x65\xca\xe3"
  21631. "\x4e\xc1\xcf\xef\xc8\x70\x1b\x83"
  21632. "\x13\xdd\x18\x8b\x0d\x76\xd2\xf6"
  21633. "\x37\x7a\x93\x7a\x50\x11\x9f\x96"
  21634. "\x86\x25\xfd\xac\xdc\xbe\x18\x93"
  21635. "\x19\x6b\xec\x58\x4f\xb9\x75\xa7"
  21636. "\xdd\x3f\x2f\xec\xc8\x5a\x84\xab"
  21637. "\xd5\xe4\x8a\x07\xf6\x4d\x23\xd6"
  21638. "\x03\xfb\x03\x6a\xea\x66\xbf\xd4"
  21639. "\xb1\x34\xfb\x78\xe9\x55\xdc\x7c"
  21640. "\x3d\x9c\xe5\x9a\xac\xc3\x7a\x80"
  21641. "\x24\x6d\xa0\xef\x25\x7c\xb7\xea"
  21642. "\xce\x4d\x5f\x18\x60\xce\x87\x22"
  21643. "\x66\x2f\xd5\xdd\xdd\x02\x21\x75"
  21644. "\x82\xa0\x1f\x58\xc6\xd3\x62\xf7"
  21645. "\x32\xd8\xaf\x1e\x07\x77\x51\x96"
  21646. "\xd5\x6b\x1e\x7e\x80\x02\xe8\x67"
  21647. "\xea\x17\x0b\x10\xd2\x3f\x28\x25"
  21648. "\x4f\x05\x77\x02\x14\x69\xf0\x2c"
  21649. "\xbe\x0c\xf1\x74\x30\xd1\xb9\x9b"
  21650. "\xfc\x8c\xbb\x04\x16\xd9\xba\xc3"
  21651. "\xbc\x91\x8a\xc4\x30\xa4\xb0\x12"
  21652. "\x4c\x21\x87\xcb\xc9\x1d\x16\x96"
  21653. "\x07\x6f\x23\x54\xb9\x6f\x79\xe5"
  21654. "\x64\xc0\x64\xda\xb1\xae\xdd\x60"
  21655. "\x6c\x1a\x9d\xd3\x04\x8e\x45\xb0"
  21656. "\x92\x61\xd0\x48\x81\xed\x5e\x1d"
  21657. "\xa0\xc9\xa4\x33\xc7\x13\x51\x5d"
  21658. "\x7f\x83\x73\xb6\x70\x18\x65\x3e"
  21659. "\x2f\x0e\x7a\x12\x39\x98\xab\xd8"
  21660. "\x7e\x6f\xa3\xd1\xba\x56\xad\xbd"
  21661. "\xf0\x03\x01\x1c\x85\x35\x9f\xeb"
  21662. "\x19\x63\xa1\xaf\xfe\x2d\x35\x50"
  21663. "\x39\xa0\x65\x7c\x95\x7e\x6b\xfe"
  21664. "\xc1\xac\x07\x7c\x98\x4f\xbe\x57"
  21665. "\xa7\x22\xec\xe2\x7e\x29\x09\x53"
  21666. "\xe8\xbf\xb4\x7e\x3f\x8f\xfc\x14"
  21667. "\xce\x54\xf9\x18\x58\xb5\xff\x44"
  21668. "\x05\x9d\xce\x1b\xb6\x82\x23\xc8"
  21669. "\x2e\xbc\x69\xbb\x4a\x29\x0f\x65"
  21670. "\x94\xf0\x63\x06\x0e\xef\x8c\xbd"
  21671. "\xff\xfd\xb0\x21\x6e\x57\x05\x75"
  21672. "\xda\xd5\xc4\xeb\x8d\x32\xf7\x50"
  21673. "\xd3\x6f\x22\xed\x5f\x8e\xa2\x5b"
  21674. "\x80\x8c\xc8\x78\x40\x24\x4b\x89"
  21675. "\x30\xce\x7a\x97\x0e\xc4\xaf\xef"
  21676. "\x9b\xb4\xcd\x66\x74\x14\x04\x2b"
  21677. "\xf7\xce\x0b\x1c\x6e\xc2\x78\x8c"
  21678. "\xca\xc5\xd0\x1c\x95\x4a\x91\x2d"
  21679. "\xa7\x20\xeb\x86\x52\xb7\x67\xd8"
  21680. "\x0c\xd6\x04\x14\xde\x51\x74\x75"
  21681. "\xe7\x11\xb4\x87\xa3\x3d\x2d\xad"
  21682. "\x4f\xef\xa0\x0f\x70\x00\x6d\x13"
  21683. "\x19\x1d\x41\x50\xe9\xd8\xf0\x32"
  21684. "\x71\xbc\xd3\x11\xf2\xac\xbe\xaf"
  21685. "\x75\x46\x65\x4e\x07\x34\x37\xa3"
  21686. "\x89\xfe\x75\xd4\x70\x4c\xc6\x3f"
  21687. "\x69\x24\x0e\x38\x67\x43\x8c\xde"
  21688. "\x06\xb5\xb8\xe7\xc4\xf0\x41\x8f"
  21689. "\xf0\xbd\x2f\x0b\xb9\x18\xf8\xde"
  21690. "\x64\xb1\xdb\xee\x00\x50\x77\xe1"
  21691. "\xc7\xff\xa6\xfa\xdd\x70\xf4\xe3"
  21692. "\x93\xe9\x77\x35\x3d\x4b\x2f\x2b"
  21693. "\x6d\x55\xf0\xfc\x88\x54\x4e\x89"
  21694. "\xc1\x8a\x23\x31\x2d\x14\x2a\xb8"
  21695. "\x1b\x15\xdd\x9e\x6e\x7b\xda\x05"
  21696. "\x91\x7d\x62\x64\x96\x72\xde\xfc"
  21697. "\xc1\xec\xf0\x23\x51\x6f\xdb\x5b"
  21698. "\x1d\x08\x57\xce\x09\xb8\xf6\xcd"
  21699. "\x8d\x95\xf2\x20\xbf\x0f\x20\x57"
  21700. "\x98\x81\x84\x4f\x15\x5c\x76\xe7"
  21701. "\x3e\x0a\x3a\x6c\xc4\x8a\xbe\x78"
  21702. "\x74\x77\xc3\x09\x4b\x5d\x48\xe4"
  21703. "\xc8\xcb\x0b\xea\x17\x28\xcf\xcf"
  21704. "\x31\x32\x44\xa4\xe5\x0e\x1a\x98"
  21705. "\x94\xc4\xf0\xff\xae\x3e\x44\xe8"
  21706. "\xa5\xb3\xb5\x37\x2f\xe8\xaf\x6f"
  21707. "\x28\xc1\x37\x5f\x31\xd2\xb9\x33"
  21708. "\xb1\xb2\x52\x94\x75\x2c\x29\x59"
  21709. "\x06\xc2\x25\xe8\x71\x65\x4e\xed"
  21710. "\xc0\x9c\xb1\xbb\x25\xdc\x6c\xe7"
  21711. "\x4b\xa5\x7a\x54\x7a\x60\xff\x7a"
  21712. "\xe0\x50\x40\x96\x35\x63\xe4\x0b"
  21713. "\x76\xbd\xa4\x65\x00\x1b\x57\x88"
  21714. "\xae\xed\x39\x88\x42\x11\x3c\xed"
  21715. "\x85\x67\x7d\xb9\x68\x82\xe9\x43"
  21716. "\x3c\x47\x53\xfa\xe8\xf8\x9f\x1f"
  21717. "\x9f\xef\x0f\xf7\x30\xd9\x30\x0e"
  21718. "\xb9\x9f\x69\x18\x2f\x7e\xf8\xf8"
  21719. "\xf8\x8c\x0f\xd4\x02\x4d\xea\xcd"
  21720. "\x0a\x9c\x6f\x71\x6d\x5a\x4c\x60"
  21721. "\xce\x20\x56\x32\xc6\xc5\x99\x1f"
  21722. "\x09\xe6\x4e\x18\x1a\x15\x13\xa8"
  21723. "\x7d\xb1\x6b\xc0\xb2\x6d\xf8\x26"
  21724. "\x66\xf8\x3d\x18\x74\x70\x66\x7a"
  21725. "\x34\x17\xde\xba\x47\xf1\x06\x18"
  21726. "\xcb\xaf\xeb\x4a\x1e\x8f\xa7\x77"
  21727. "\xe0\x3b\x78\x62\x66\xc9\x10\xea"
  21728. "\x1f\xb7\x29\x0a\x45\xa1\x1d\x1e"
  21729. "\x1d\xe2\x65\x61\x50\x9c\xd7\x05"
  21730. "\xf2\x0b\x5b\x12\x61\x02\xc8\xe5"
  21731. "\x63\x4f\x20\x0c\x07\x17\x33\x5e"
  21732. "\x03\x9a\x53\x0f\x2e\x55\xfe\x50"
  21733. "\x43\x7d\xd0\xb6\x7e\x5a\xda\xae"
  21734. "\x58\xef\x15\xa9\x83\xd9\x46\xb1"
  21735. "\x42\xaa\xf5\x02\x6c\xce\x92\x06"
  21736. "\x1b\xdb\x66\x45\x91\x79\xc2\x2d"
  21737. "\xe6\x53\xd3\x14\xfd\xbb\x44\x63"
  21738. "\xc6\xd7\x3d\x7a\x0c\x75\x78\x9d"
  21739. "\x5c\xa6\x39\xb3\xe5\x63\xca\x8b"
  21740. "\xfe\xd3\xef\x60\x83\xf6\x8e\x70"
  21741. "\xb6\x67\xc7\x77\xed\x23\xef\x4c"
  21742. "\xf0\xed\x2d\x07\x59\x6f\xc1\x01"
  21743. "\x34\x37\x08\xab\xd9\x1f\x09\xb1"
  21744. "\xce\x5b\x17\xff\x74\xf8\x9c\xd5"
  21745. "\x2c\x56\x39\x79\x0f\x69\x44\x75"
  21746. "\x58\x27\x01\xc4\xbf\xa7\xa1\x1d"
  21747. "\x90\x17\x77\x86\x5a\x3f\xd9\xd1"
  21748. "\x0e\xa0\x10\xf8\xec\x1e\xa5\x7f"
  21749. "\x5e\x36\xd1\xe3\x04\x2c\x70\xf7"
  21750. "\x8e\xc0\x98\x2f\x6c\x94\x2b\x41"
  21751. "\xb7\x60\x00\xb7\x2e\xb8\x02\x8d"
  21752. "\xb8\xb0\xd3\x86\xba\x1d\xd7\x90"
  21753. "\xd6\xb6\xe1\xfc\xd7\xd8\x28\x06"
  21754. "\x63\x9b\xce\x61\x24\x79\xc0\x70"
  21755. "\x52\xd0\xb6\xd4\x28\x95\x24\x87"
  21756. "\x03\x1f\xb7\x9a\xda\xa3\xfb\x52"
  21757. "\x5b\x68\xe7\x4c\x8c\x24\xe1\x42"
  21758. "\xf7\xd5\xfd\xad\x06\x32\x9f\xba"
  21759. "\xc1\xfc\xdd\xc6\xfc\xfc\xb3\x38"
  21760. "\x74\x56\x58\x40\x02\x37\x52\x2c"
  21761. "\x55\xcc\xb3\x9e\x7a\xe9\xd4\x38"
  21762. "\x41\x5e\x0c\x35\xe2\x11\xd1\x13"
  21763. "\xf8\xb7\x8d\x72\x6b\x22\x2a\xb0"
  21764. "\xdb\x08\xba\x35\xb9\x3f\xc8\xd3"
  21765. "\x24\x90\xec\x58\xd2\x09\xc7\x2d"
  21766. "\xed\x38\x80\x36\x72\x43\x27\x49"
  21767. "\x4a\x80\x8a\xa2\xe8\xd3\xda\x30"
  21768. "\x7d\xb6\x82\x37\x86\x92\x86\x3e"
  21769. "\x08\xb2\x28\x5a\x55\x44\x24\x7d"
  21770. "\x40\x48\x8a\xb6\x89\x58\x08\xa0"
  21771. "\xd6\x6d\x3a\x17\xbf\xf6\x54\xa2"
  21772. "\xf5\xd3\x8c\x0f\x78\x12\x57\x8b"
  21773. "\xd5\xc2\xfd\x58\x5b\x7f\x38\xe3"
  21774. "\xcc\xb7\x7c\x48\xb3\x20\xe8\x81"
  21775. "\x14\x32\x45\x05\xe0\xdb\x9f\x75"
  21776. "\x85\xb4\x6a\xfc\x95\xe3\x54\x22"
  21777. "\x12\xee\x30\xfe\xd8\x30\xef\x34"
  21778. "\x50\xab\x46\x30\x98\x2f\xb7\xc0"
  21779. "\x15\xa2\x83\xb6\xf2\x06\x21\xa2"
  21780. "\xc3\x26\x37\x14\xd1\x4d\xb5\x10"
  21781. "\x52\x76\x4d\x6a\xee\xb5\x2b\x15"
  21782. "\xb7\xf9\x51\xe8\x2a\xaf\xc7\xfa"
  21783. "\x77\xaf\xb0\x05\x4d\xd1\x68\x8e"
  21784. "\x74\x05\x9f\x9d\x93\xa5\x3e\x7f"
  21785. "\x4e\x5f\x9d\xcb\x09\xc7\x83\xe3"
  21786. "\x02\x9d\x27\x1f\xef\x85\x05\x8d"
  21787. "\xec\x55\x88\x0f\x0d\x7c\x4c\xe8"
  21788. "\xa1\x75\xa0\xd8\x06\x47\x14\xef"
  21789. "\xaa\x61\xcf\x26\x15\xad\xd8\xa3"
  21790. "\xaa\x75\xf2\x78\x4a\x5a\x61\xdf"
  21791. "\x8b\xc7\x04\xbc\xb2\x32\xd2\x7e"
  21792. "\x42\xee\xb4\x2f\x51\xff\x7b\x2e"
  21793. "\xd3\x02\xe8\xdc\x5d\x0d\x50\xdc"
  21794. "\xae\xb7\x46\xf9\xa8\xe6\xd0\x16"
  21795. "\xcc\xe6\x2c\x81\xc7\xad\xe9\xf0"
  21796. "\x05\x72\x6d\x3d\x0a\x7a\xa9\x02"
  21797. "\xac\x82\x93\x6e\xb6\x1c\x28\xfc"
  21798. "\x44\x12\xfb\x73\x77\xd4\x13\x39"
  21799. "\x29\x88\x8a\xf3\x5c\xa6\x36\xa0"
  21800. "\x2a\xed\x7e\xb1\x1d\xd6\x4c\x6b"
  21801. "\x41\x01\x18\x5d\x5d\x07\x97\xa6"
  21802. "\x4b\xef\x31\x18\xea\xac\xb1\x84"
  21803. "\x21\xed\xda\x86",
  21804. .rlen = 4100,
  21805. .np = 2,
  21806. .tap = { 4064, 36 },
  21807. },
  21808. };
  21809. static struct cipher_testvec aes_ctr_rfc3686_dec_tv_template[] = {
  21810. { /* From RFC 3686 */
  21811. .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
  21812. "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
  21813. "\x00\x00\x00\x30",
  21814. .klen = 20,
  21815. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  21816. .input = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
  21817. "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
  21818. .ilen = 16,
  21819. .result = "Single block msg",
  21820. .rlen = 16,
  21821. }, {
  21822. .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
  21823. "\x43\xd6\xce\x1f\x32\x53\x91\x63"
  21824. "\x00\x6c\xb6\xdb",
  21825. .klen = 20,
  21826. .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
  21827. .input = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
  21828. "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
  21829. "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
  21830. "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
  21831. .ilen = 32,
  21832. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  21833. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  21834. "\x10\x11\x12\x13\x14\x15\x16\x17"
  21835. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  21836. .rlen = 32,
  21837. }, {
  21838. .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
  21839. "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
  21840. "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
  21841. "\x00\x00\x00\x48",
  21842. .klen = 28,
  21843. .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
  21844. .input = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
  21845. "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
  21846. .ilen = 16,
  21847. .result = "Single block msg",
  21848. .rlen = 16,
  21849. }, {
  21850. .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
  21851. "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
  21852. "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
  21853. "\x00\x96\xb0\x3b",
  21854. .klen = 28,
  21855. .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
  21856. .input = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
  21857. "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
  21858. "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
  21859. "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
  21860. .ilen = 32,
  21861. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  21862. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  21863. "\x10\x11\x12\x13\x14\x15\x16\x17"
  21864. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  21865. .rlen = 32,
  21866. }, {
  21867. .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
  21868. "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
  21869. "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
  21870. "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
  21871. "\x00\x00\x00\x60",
  21872. .klen = 36,
  21873. .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
  21874. .input = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
  21875. "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
  21876. .ilen = 16,
  21877. .result = "Single block msg",
  21878. .rlen = 16,
  21879. }, {
  21880. .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
  21881. "\x07\x96\x36\x58\x79\xef\xf8\x86"
  21882. "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
  21883. "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
  21884. "\x00\xfa\xac\x24",
  21885. .klen = 36,
  21886. .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
  21887. .input = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
  21888. "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
  21889. "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
  21890. "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
  21891. .ilen = 32,
  21892. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  21893. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  21894. "\x10\x11\x12\x13\x14\x15\x16\x17"
  21895. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  21896. .rlen = 32,
  21897. },
  21898. };
  21899. static struct cipher_testvec aes_ofb_enc_tv_template[] = {
  21900. /* From NIST Special Publication 800-38A, Appendix F.5 */
  21901. {
  21902. .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
  21903. "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
  21904. .klen = 16,
  21905. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08"
  21906. "\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  21907. .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  21908. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  21909. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  21910. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  21911. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  21912. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  21913. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  21914. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  21915. .ilen = 64,
  21916. .result = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
  21917. "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
  21918. "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5"
  21919. "\x3c\x52\xda\xc5\x4e\xd8\x25"
  21920. "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43"
  21921. "\x44\xf7\xa8\x22\x60\xed\xcc"
  21922. "\x30\x4c\x65\x28\xf6\x59\xc7\x78"
  21923. "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e",
  21924. .rlen = 64,
  21925. }
  21926. };
  21927. static struct cipher_testvec aes_ofb_dec_tv_template[] = {
  21928. /* From NIST Special Publication 800-38A, Appendix F.5 */
  21929. {
  21930. .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
  21931. "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
  21932. .klen = 16,
  21933. .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08"
  21934. "\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  21935. .input = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
  21936. "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
  21937. "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5"
  21938. "\x3c\x52\xda\xc5\x4e\xd8\x25"
  21939. "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43"
  21940. "\x44\xf7\xa8\x22\x60\xed\xcc"
  21941. "\x30\x4c\x65\x28\xf6\x59\xc7\x78"
  21942. "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e",
  21943. .ilen = 64,
  21944. .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
  21945. "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
  21946. "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
  21947. "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
  21948. "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
  21949. "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
  21950. "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
  21951. "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
  21952. .rlen = 64,
  21953. }
  21954. };
  21955. static struct aead_testvec aes_gcm_enc_tv_template[] = {
  21956. { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
  21957. .key = zeroed_string,
  21958. .klen = 16,
  21959. .result = "\x58\xe2\xfc\xce\xfa\x7e\x30\x61"
  21960. "\x36\x7f\x1d\x57\xa4\xe7\x45\x5a",
  21961. .rlen = 16,
  21962. }, {
  21963. .key = zeroed_string,
  21964. .klen = 16,
  21965. .input = zeroed_string,
  21966. .ilen = 16,
  21967. .result = "\x03\x88\xda\xce\x60\xb6\xa3\x92"
  21968. "\xf3\x28\xc2\xb9\x71\xb2\xfe\x78"
  21969. "\xab\x6e\x47\xd4\x2c\xec\x13\xbd"
  21970. "\xf5\x3a\x67\xb2\x12\x57\xbd\xdf",
  21971. .rlen = 32,
  21972. }, {
  21973. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  21974. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  21975. .klen = 16,
  21976. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  21977. "\xde\xca\xf8\x88",
  21978. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  21979. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  21980. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  21981. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  21982. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  21983. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  21984. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  21985. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  21986. .ilen = 64,
  21987. .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  21988. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  21989. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  21990. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  21991. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  21992. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  21993. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  21994. "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
  21995. "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
  21996. "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
  21997. .rlen = 80,
  21998. }, {
  21999. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  22000. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  22001. .klen = 16,
  22002. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  22003. "\xde\xca\xf8\x88",
  22004. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  22005. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  22006. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  22007. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  22008. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  22009. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  22010. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  22011. "\xba\x63\x7b\x39",
  22012. .ilen = 60,
  22013. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  22014. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  22015. "\xab\xad\xda\xd2",
  22016. .alen = 20,
  22017. .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  22018. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  22019. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  22020. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  22021. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  22022. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  22023. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  22024. "\x3d\x58\xe0\x91"
  22025. "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
  22026. "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
  22027. .rlen = 76,
  22028. }, {
  22029. .key = zeroed_string,
  22030. .klen = 24,
  22031. .result = "\xcd\x33\xb2\x8a\xc7\x73\xf7\x4b"
  22032. "\xa0\x0e\xd1\xf3\x12\x57\x24\x35",
  22033. .rlen = 16,
  22034. }, {
  22035. .key = zeroed_string,
  22036. .klen = 24,
  22037. .input = zeroed_string,
  22038. .ilen = 16,
  22039. .result = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
  22040. "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
  22041. "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
  22042. "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
  22043. .rlen = 32,
  22044. }, {
  22045. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  22046. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  22047. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  22048. .klen = 24,
  22049. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  22050. "\xde\xca\xf8\x88",
  22051. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  22052. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  22053. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  22054. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  22055. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  22056. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  22057. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  22058. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  22059. .ilen = 64,
  22060. .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  22061. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  22062. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  22063. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  22064. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  22065. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  22066. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  22067. "\xcc\xda\x27\x10\xac\xad\xe2\x56"
  22068. "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
  22069. "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
  22070. .rlen = 80,
  22071. }, {
  22072. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  22073. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  22074. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  22075. .klen = 24,
  22076. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  22077. "\xde\xca\xf8\x88",
  22078. .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  22079. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  22080. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  22081. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  22082. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  22083. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  22084. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  22085. "\xba\x63\x7b\x39",
  22086. .ilen = 60,
  22087. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  22088. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  22089. "\xab\xad\xda\xd2",
  22090. .alen = 20,
  22091. .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  22092. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  22093. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  22094. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  22095. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  22096. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  22097. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  22098. "\xcc\xda\x27\x10"
  22099. "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
  22100. "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
  22101. .rlen = 76,
  22102. .np = 2,
  22103. .tap = { 32, 28 },
  22104. .anp = 2,
  22105. .atap = { 8, 12 }
  22106. }, {
  22107. .key = zeroed_string,
  22108. .klen = 32,
  22109. .result = "\x53\x0f\x8a\xfb\xc7\x45\x36\xb9"
  22110. "\xa9\x63\xb4\xf1\xc4\xcb\x73\x8b",
  22111. .rlen = 16,
  22112. }
  22113. };
  22114. static struct aead_testvec aes_gcm_dec_tv_template[] = {
  22115. { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
  22116. .key = zeroed_string,
  22117. .klen = 32,
  22118. .input = "\xce\xa7\x40\x3d\x4d\x60\x6b\x6e"
  22119. "\x07\x4e\xc5\xd3\xba\xf3\x9d\x18"
  22120. "\xd0\xd1\xc8\xa7\x99\x99\x6b\xf0"
  22121. "\x26\x5b\x98\xb5\xd4\x8a\xb9\x19",
  22122. .ilen = 32,
  22123. .result = zeroed_string,
  22124. .rlen = 16,
  22125. }, {
  22126. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  22127. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  22128. "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  22129. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  22130. .klen = 32,
  22131. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  22132. "\xde\xca\xf8\x88",
  22133. .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
  22134. "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
  22135. "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
  22136. "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
  22137. "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
  22138. "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
  22139. "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
  22140. "\xbc\xc9\xf6\x62\x89\x80\x15\xad"
  22141. "\xb0\x94\xda\xc5\xd9\x34\x71\xbd"
  22142. "\xec\x1a\x50\x22\x70\xe3\xcc\x6c",
  22143. .ilen = 80,
  22144. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  22145. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  22146. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  22147. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  22148. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  22149. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  22150. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  22151. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  22152. .rlen = 64,
  22153. }, {
  22154. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  22155. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  22156. "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  22157. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  22158. .klen = 32,
  22159. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  22160. "\xde\xca\xf8\x88",
  22161. .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
  22162. "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
  22163. "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
  22164. "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
  22165. "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
  22166. "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
  22167. "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
  22168. "\xbc\xc9\xf6\x62"
  22169. "\x76\xfc\x6e\xce\x0f\x4e\x17\x68"
  22170. "\xcd\xdf\x88\x53\xbb\x2d\x55\x1b",
  22171. .ilen = 76,
  22172. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  22173. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  22174. "\xab\xad\xda\xd2",
  22175. .alen = 20,
  22176. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  22177. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  22178. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  22179. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  22180. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  22181. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  22182. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  22183. "\xba\x63\x7b\x39",
  22184. .rlen = 60,
  22185. .np = 2,
  22186. .tap = { 48, 28 },
  22187. .anp = 3,
  22188. .atap = { 8, 8, 4 }
  22189. }, {
  22190. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  22191. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  22192. .klen = 16,
  22193. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  22194. "\xde\xca\xf8\x88",
  22195. .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  22196. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  22197. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  22198. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  22199. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  22200. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  22201. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  22202. "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
  22203. "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
  22204. "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
  22205. .ilen = 80,
  22206. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  22207. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  22208. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  22209. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  22210. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  22211. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  22212. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  22213. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  22214. .rlen = 64,
  22215. }, {
  22216. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  22217. "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
  22218. .klen = 16,
  22219. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  22220. "\xde\xca\xf8\x88",
  22221. .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
  22222. "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
  22223. "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
  22224. "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
  22225. "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
  22226. "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
  22227. "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
  22228. "\x3d\x58\xe0\x91"
  22229. "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
  22230. "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
  22231. .ilen = 76,
  22232. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  22233. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  22234. "\xab\xad\xda\xd2",
  22235. .alen = 20,
  22236. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  22237. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  22238. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  22239. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  22240. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  22241. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  22242. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  22243. "\xba\x63\x7b\x39",
  22244. .rlen = 60,
  22245. }, {
  22246. .key = zeroed_string,
  22247. .klen = 24,
  22248. .input = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
  22249. "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
  22250. "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
  22251. "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
  22252. .ilen = 32,
  22253. .result = zeroed_string,
  22254. .rlen = 16,
  22255. }, {
  22256. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  22257. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  22258. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  22259. .klen = 24,
  22260. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  22261. "\xde\xca\xf8\x88",
  22262. .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  22263. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  22264. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  22265. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  22266. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  22267. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  22268. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  22269. "\xcc\xda\x27\x10\xac\xad\xe2\x56"
  22270. "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
  22271. "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
  22272. .ilen = 80,
  22273. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  22274. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  22275. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  22276. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  22277. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  22278. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  22279. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  22280. "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
  22281. .rlen = 64,
  22282. }, {
  22283. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  22284. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  22285. "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
  22286. .klen = 24,
  22287. .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
  22288. "\xde\xca\xf8\x88",
  22289. .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
  22290. "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
  22291. "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
  22292. "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
  22293. "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
  22294. "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
  22295. "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
  22296. "\xcc\xda\x27\x10"
  22297. "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
  22298. "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
  22299. .ilen = 76,
  22300. .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  22301. "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
  22302. "\xab\xad\xda\xd2",
  22303. .alen = 20,
  22304. .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
  22305. "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
  22306. "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
  22307. "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
  22308. "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
  22309. "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
  22310. "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
  22311. "\xba\x63\x7b\x39",
  22312. .rlen = 60,
  22313. }
  22314. };
  22315. static struct aead_testvec aes_gcm_rfc4106_enc_tv_template[] = {
  22316. { /* Generated using Crypto++ */
  22317. .key = zeroed_string,
  22318. .klen = 20,
  22319. .iv = zeroed_string,
  22320. .input = zeroed_string,
  22321. .ilen = 16,
  22322. .assoc = zeroed_string,
  22323. .alen = 16,
  22324. .result = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
  22325. "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
  22326. "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
  22327. "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
  22328. .rlen = 32,
  22329. },{
  22330. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  22331. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  22332. "\x00\x00\x00\x00",
  22333. .klen = 20,
  22334. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
  22335. .input = zeroed_string,
  22336. .ilen = 16,
  22337. .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
  22338. "\x00\x00\x00\x00\x00\x00\x00\x01",
  22339. .alen = 16,
  22340. .result = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
  22341. "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
  22342. "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
  22343. "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
  22344. .rlen = 32,
  22345. }, {
  22346. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  22347. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  22348. "\x00\x00\x00\x00",
  22349. .klen = 20,
  22350. .iv = zeroed_string,
  22351. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  22352. "\x01\x01\x01\x01\x01\x01\x01\x01",
  22353. .ilen = 16,
  22354. .assoc = zeroed_string,
  22355. .alen = 16,
  22356. .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
  22357. "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
  22358. "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
  22359. "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
  22360. .rlen = 32,
  22361. }, {
  22362. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  22363. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  22364. "\x00\x00\x00\x00",
  22365. .klen = 20,
  22366. .iv = zeroed_string,
  22367. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  22368. "\x01\x01\x01\x01\x01\x01\x01\x01",
  22369. .ilen = 16,
  22370. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
  22371. "\x00\x00\x00\x00\x00\x00\x00\x00",
  22372. .alen = 16,
  22373. .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
  22374. "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
  22375. "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
  22376. "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
  22377. .rlen = 32,
  22378. }, {
  22379. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  22380. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  22381. "\x00\x00\x00\x00",
  22382. .klen = 20,
  22383. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
  22384. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  22385. "\x01\x01\x01\x01\x01\x01\x01\x01",
  22386. .ilen = 16,
  22387. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
  22388. "\x00\x00\x00\x00\x00\x00\x00\x01",
  22389. .alen = 16,
  22390. .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
  22391. "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
  22392. "\x64\x50\xF9\x32\x13\xFB\x74\x61"
  22393. "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
  22394. .rlen = 32,
  22395. }, {
  22396. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  22397. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  22398. "\x00\x00\x00\x00",
  22399. .klen = 20,
  22400. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
  22401. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  22402. "\x01\x01\x01\x01\x01\x01\x01\x01"
  22403. "\x01\x01\x01\x01\x01\x01\x01\x01"
  22404. "\x01\x01\x01\x01\x01\x01\x01\x01"
  22405. "\x01\x01\x01\x01\x01\x01\x01\x01"
  22406. "\x01\x01\x01\x01\x01\x01\x01\x01"
  22407. "\x01\x01\x01\x01\x01\x01\x01\x01"
  22408. "\x01\x01\x01\x01\x01\x01\x01\x01",
  22409. .ilen = 64,
  22410. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
  22411. "\x00\x00\x00\x00\x00\x00\x00\x01",
  22412. .alen = 16,
  22413. .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
  22414. "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
  22415. "\x98\x14\xA1\x42\x37\x80\xFD\x90"
  22416. "\x68\x12\x01\xA8\x91\x89\xB9\x83"
  22417. "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
  22418. "\x94\x5F\x18\x12\xBA\x27\x09\x39"
  22419. "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
  22420. "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
  22421. "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
  22422. "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
  22423. .rlen = 80,
  22424. }, {
  22425. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  22426. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  22427. "\x00\x00\x00\x00",
  22428. .klen = 20,
  22429. .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
  22430. .input = "\xff\xff\xff\xff\xff\xff\xff\xff"
  22431. "\xff\xff\xff\xff\xff\xff\xff\xff"
  22432. "\xff\xff\xff\xff\xff\xff\xff\xff"
  22433. "\xff\xff\xff\xff\xff\xff\xff\xff"
  22434. "\xff\xff\xff\xff\xff\xff\xff\xff"
  22435. "\xff\xff\xff\xff\xff\xff\xff\xff"
  22436. "\xff\xff\xff\xff\xff\xff\xff\xff"
  22437. "\xff\xff\xff\xff\xff\xff\xff\xff"
  22438. "\xff\xff\xff\xff\xff\xff\xff\xff"
  22439. "\xff\xff\xff\xff\xff\xff\xff\xff"
  22440. "\xff\xff\xff\xff\xff\xff\xff\xff"
  22441. "\xff\xff\xff\xff\xff\xff\xff\xff"
  22442. "\xff\xff\xff\xff\xff\xff\xff\xff"
  22443. "\xff\xff\xff\xff\xff\xff\xff\xff"
  22444. "\xff\xff\xff\xff\xff\xff\xff\xff"
  22445. "\xff\xff\xff\xff\xff\xff\xff\xff"
  22446. "\xff\xff\xff\xff\xff\xff\xff\xff"
  22447. "\xff\xff\xff\xff\xff\xff\xff\xff"
  22448. "\xff\xff\xff\xff\xff\xff\xff\xff"
  22449. "\xff\xff\xff\xff\xff\xff\xff\xff"
  22450. "\xff\xff\xff\xff\xff\xff\xff\xff"
  22451. "\xff\xff\xff\xff\xff\xff\xff\xff"
  22452. "\xff\xff\xff\xff\xff\xff\xff\xff"
  22453. "\xff\xff\xff\xff\xff\xff\xff\xff",
  22454. .ilen = 192,
  22455. .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  22456. "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
  22457. "\x89\xab\xcd\xef",
  22458. .alen = 20,
  22459. .result = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
  22460. "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
  22461. "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
  22462. "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
  22463. "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
  22464. "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
  22465. "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
  22466. "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
  22467. "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
  22468. "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
  22469. "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
  22470. "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
  22471. "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
  22472. "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
  22473. "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
  22474. "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
  22475. "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
  22476. "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
  22477. "\x7E\x13\x06\x82\x08\x17\xA4\x35"
  22478. "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
  22479. "\xA3\x05\x38\x95\x20\x1A\x47\x04"
  22480. "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
  22481. "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
  22482. "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
  22483. "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
  22484. "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
  22485. .rlen = 208,
  22486. }, { /* From draft-mcgrew-gcm-test-01 */
  22487. .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
  22488. "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
  22489. "\x2E\x44\x3B\x68",
  22490. .klen = 20,
  22491. .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
  22492. .input = "\x45\x00\x00\x48\x69\x9A\x00\x00"
  22493. "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
  22494. "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
  22495. "\x38\xD3\x01\x00\x00\x01\x00\x00"
  22496. "\x00\x00\x00\x00\x04\x5F\x73\x69"
  22497. "\x70\x04\x5F\x75\x64\x70\x03\x73"
  22498. "\x69\x70\x09\x63\x79\x62\x65\x72"
  22499. "\x63\x69\x74\x79\x02\x64\x6B\x00"
  22500. "\x00\x21\x00\x01\x01\x02\x02\x01",
  22501. .ilen = 72,
  22502. .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
  22503. "\x00\x00\x00\x00\x49\x56\xED\x7E"
  22504. "\x3B\x24\x4C\xFE",
  22505. .alen = 20,
  22506. .result = "\xFE\xCF\x53\x7E\x72\x9D\x5B\x07"
  22507. "\xDC\x30\xDF\x52\x8D\xD2\x2B\x76"
  22508. "\x8D\x1B\x98\x73\x66\x96\xA6\xFD"
  22509. "\x34\x85\x09\xFA\x13\xCE\xAC\x34"
  22510. "\xCF\xA2\x43\x6F\x14\xA3\xF3\xCF"
  22511. "\x65\x92\x5B\xF1\xF4\xA1\x3C\x5D"
  22512. "\x15\xB2\x1E\x18\x84\xF5\xFF\x62"
  22513. "\x47\xAE\xAB\xB7\x86\xB9\x3B\xCE"
  22514. "\x61\xBC\x17\xD7\x68\xFD\x97\x32"
  22515. "\x45\x90\x18\x14\x8F\x6C\xBE\x72"
  22516. "\x2F\xD0\x47\x96\x56\x2D\xFD\xB4",
  22517. .rlen = 88,
  22518. }, {
  22519. .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
  22520. "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
  22521. "\xCA\xFE\xBA\xBE",
  22522. .klen = 20,
  22523. .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  22524. .input = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
  22525. "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
  22526. "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
  22527. "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
  22528. "\x00\x01\x00\x00\x00\x00\x00\x00"
  22529. "\x03\x73\x69\x70\x09\x63\x79\x62"
  22530. "\x65\x72\x63\x69\x74\x79\x02\x64"
  22531. "\x6B\x00\x00\x01\x00\x01\x00\x01",
  22532. .ilen = 64,
  22533. .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
  22534. "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  22535. .alen = 16,
  22536. .result = "\xDE\xB2\x2C\xD9\xB0\x7C\x72\xC1"
  22537. "\x6E\x3A\x65\xBE\xEB\x8D\xF3\x04"
  22538. "\xA5\xA5\x89\x7D\x33\xAE\x53\x0F"
  22539. "\x1B\xA7\x6D\x5D\x11\x4D\x2A\x5C"
  22540. "\x3D\xE8\x18\x27\xC1\x0E\x9A\x4F"
  22541. "\x51\x33\x0D\x0E\xEC\x41\x66\x42"
  22542. "\xCF\xBB\x85\xA5\xB4\x7E\x48\xA4"
  22543. "\xEC\x3B\x9B\xA9\x5D\x91\x8B\xD1"
  22544. "\x83\xB7\x0D\x3A\xA8\xBC\x6E\xE4"
  22545. "\xC3\x09\xE9\xD8\x5A\x41\xAD\x4A",
  22546. .rlen = 80,
  22547. }, {
  22548. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  22549. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  22550. "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  22551. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  22552. "\x11\x22\x33\x44",
  22553. .klen = 36,
  22554. .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
  22555. .input = "\x45\x00\x00\x30\x69\xA6\x40\x00"
  22556. "\x80\x06\x26\x90\xC0\xA8\x01\x02"
  22557. "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
  22558. "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
  22559. "\x70\x02\x40\x00\x20\xBF\x00\x00"
  22560. "\x02\x04\x05\xB4\x01\x01\x04\x02"
  22561. "\x01\x02\x02\x01",
  22562. .ilen = 52,
  22563. .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
  22564. "\x01\x02\x03\x04\x05\x06\x07\x08",
  22565. .alen = 16,
  22566. .result = "\xFF\x42\x5C\x9B\x72\x45\x99\xDF"
  22567. "\x7A\x3B\xCD\x51\x01\x94\xE0\x0D"
  22568. "\x6A\x78\x10\x7F\x1B\x0B\x1C\xBF"
  22569. "\x06\xEF\xAE\x9D\x65\xA5\xD7\x63"
  22570. "\x74\x8A\x63\x79\x85\x77\x1D\x34"
  22571. "\x7F\x05\x45\x65\x9F\x14\xE9\x9D"
  22572. "\xEF\x84\x2D\x8E\xB3\x35\xF4\xEE"
  22573. "\xCF\xDB\xF8\x31\x82\x4B\x4C\x49"
  22574. "\x15\x95\x6C\x96",
  22575. .rlen = 68,
  22576. }, {
  22577. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  22578. "\x00\x00\x00\x00\x00\x00\x00\x00"
  22579. "\x00\x00\x00\x00",
  22580. .klen = 20,
  22581. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  22582. .input = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
  22583. "\x80\x01\xCB\x7A\x40\x67\x93\x18"
  22584. "\x01\x01\x01\x01\x08\x00\x07\x5C"
  22585. "\x02\x00\x44\x00\x61\x62\x63\x64"
  22586. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  22587. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  22588. "\x75\x76\x77\x61\x62\x63\x64\x65"
  22589. "\x66\x67\x68\x69\x01\x02\x02\x01",
  22590. .ilen = 64,
  22591. .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
  22592. "\x00\x00\x00\x00\x00\x00\x00\x00",
  22593. .alen = 16,
  22594. .result = "\x46\x88\xDA\xF2\xF9\x73\xA3\x92"
  22595. "\x73\x29\x09\xC3\x31\xD5\x6D\x60"
  22596. "\xF6\x94\xAB\xAA\x41\x4B\x5E\x7F"
  22597. "\xF5\xFD\xCD\xFF\xF5\xE9\xA2\x84"
  22598. "\x45\x64\x76\x49\x27\x19\xFF\xB6"
  22599. "\x4D\xE7\xD9\xDC\xA1\xE1\xD8\x94"
  22600. "\xBC\x3B\xD5\x78\x73\xED\x4D\x18"
  22601. "\x1D\x19\xD4\xD5\xC8\xC1\x8A\xF3"
  22602. "\xF8\x21\xD4\x96\xEE\xB0\x96\xE9"
  22603. "\x8A\xD2\xB6\x9E\x47\x99\xC7\x1D",
  22604. .rlen = 80,
  22605. }, {
  22606. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  22607. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  22608. "\x57\x69\x0E\x43",
  22609. .klen = 20,
  22610. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  22611. .input = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
  22612. "\x80\x01\xCB\x7C\x40\x67\x93\x18"
  22613. "\x01\x01\x01\x01\x08\x00\x08\x5C"
  22614. "\x02\x00\x43\x00\x61\x62\x63\x64"
  22615. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  22616. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  22617. "\x75\x76\x77\x61\x62\x63\x64\x65"
  22618. "\x66\x67\x68\x69\x01\x02\x02\x01",
  22619. .ilen = 64,
  22620. .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
  22621. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  22622. "\xA2\xFC\xA1\xA3",
  22623. .alen = 20,
  22624. .result = "\xFB\xA2\xCA\xA4\x85\x3C\xF9\xF0"
  22625. "\xF2\x2C\xB1\x0D\x86\xDD\x83\xB0"
  22626. "\xFE\xC7\x56\x91\xCF\x1A\x04\xB0"
  22627. "\x0D\x11\x38\xEC\x9C\x35\x79\x17"
  22628. "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
  22629. "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
  22630. "\x17\x55\xE6\x66\x2B\x4C\x8D\x0D"
  22631. "\x1F\x5E\x22\x73\x95\x30\x32\x0A"
  22632. "\xE0\xD7\x31\xCC\x97\x8E\xCA\xFA"
  22633. "\xEA\xE8\x8F\x00\xE8\x0D\x6E\x48",
  22634. .rlen = 80,
  22635. }, {
  22636. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  22637. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  22638. "\x57\x69\x0E\x43",
  22639. .klen = 20,
  22640. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  22641. .input = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
  22642. "\x80\x01\x44\x1F\x40\x67\x93\xB6"
  22643. "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
  22644. "\x01\x02\x02\x01",
  22645. .ilen = 28,
  22646. .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
  22647. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  22648. "\xA2\xFC\xA1\xA3",
  22649. .alen = 20,
  22650. .result = "\xFB\xA2\xCA\x84\x5E\x5D\xF9\xF0"
  22651. "\xF2\x2C\x3E\x6E\x86\xDD\x83\x1E"
  22652. "\x1F\xC6\x57\x92\xCD\x1A\xF9\x13"
  22653. "\x0E\x13\x79\xED\x36\x9F\x07\x1F"
  22654. "\x35\xE0\x34\xBE\x95\xF1\x12\xE4"
  22655. "\xE7\xD0\x5D\x35",
  22656. .rlen = 44,
  22657. }, {
  22658. .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
  22659. "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
  22660. "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
  22661. "\xCA\xFE\xBA\xBE",
  22662. .klen = 28,
  22663. .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  22664. .input = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
  22665. "\x40\x06\x78\x80\x0A\x01\x03\x8F"
  22666. "\x0A\x01\x06\x12\x80\x23\x06\xB8"
  22667. "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
  22668. "\x50\x10\x16\xD0\x75\x68\x00\x01",
  22669. .ilen = 40,
  22670. .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
  22671. "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  22672. .alen = 16,
  22673. .result = "\xA5\xB1\xF8\x06\x60\x29\xAE\xA4"
  22674. "\x0E\x59\x8B\x81\x22\xDE\x02\x42"
  22675. "\x09\x38\xB3\xAB\x33\xF8\x28\xE6"
  22676. "\x87\xB8\x85\x8B\x5B\xFB\xDB\xD0"
  22677. "\x31\x5B\x27\x45\x21\x44\xCC\x77"
  22678. "\x95\x45\x7B\x96\x52\x03\x7F\x53"
  22679. "\x18\x02\x7B\x5B\x4C\xD7\xA6\x36",
  22680. .rlen = 56,
  22681. }, {
  22682. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  22683. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  22684. "\xDE\xCA\xF8\x88",
  22685. .klen = 20,
  22686. .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
  22687. .input = "\x45\x00\x00\x49\x33\xBA\x00\x00"
  22688. "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
  22689. "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
  22690. "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
  22691. "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
  22692. "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
  22693. "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
  22694. "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
  22695. "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
  22696. "\x23\x01\x01\x01",
  22697. .ilen = 76,
  22698. .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
  22699. "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
  22700. "\xCE\xFA\xCE\x74",
  22701. .alen = 20,
  22702. .result = "\x18\xA6\xFD\x42\xF7\x2C\xBF\x4A"
  22703. "\xB2\xA2\xEA\x90\x1F\x73\xD8\x14"
  22704. "\xE3\xE7\xF2\x43\xD9\x54\x12\xE1"
  22705. "\xC3\x49\xC1\xD2\xFB\xEC\x16\x8F"
  22706. "\x91\x90\xFE\xEB\xAF\x2C\xB0\x19"
  22707. "\x84\xE6\x58\x63\x96\x5D\x74\x72"
  22708. "\xB7\x9D\xA3\x45\xE0\xE7\x80\x19"
  22709. "\x1F\x0D\x2F\x0E\x0F\x49\x6C\x22"
  22710. "\x6F\x21\x27\xB2\x7D\xB3\x57\x24"
  22711. "\xE7\x84\x5D\x68\x65\x1F\x57\xE6"
  22712. "\x5F\x35\x4F\x75\xFF\x17\x01\x57"
  22713. "\x69\x62\x34\x36",
  22714. .rlen = 92,
  22715. }, {
  22716. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  22717. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  22718. "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  22719. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  22720. "\x73\x61\x6C\x74",
  22721. .klen = 36,
  22722. .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
  22723. .input = "\x45\x08\x00\x28\x73\x2C\x00\x00"
  22724. "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
  22725. "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
  22726. "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
  22727. "\x50\x10\x1F\x64\x6D\x54\x00\x01",
  22728. .ilen = 40,
  22729. .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
  22730. "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
  22731. "\x69\x76\x65\x63",
  22732. .alen = 20,
  22733. .result = "\xF2\xD6\x9E\xCD\xBD\x5A\x0D\x5B"
  22734. "\x8D\x5E\xF3\x8B\xAD\x4D\xA5\x8D"
  22735. "\x1F\x27\x8F\xDE\x98\xEF\x67\x54"
  22736. "\x9D\x52\x4A\x30\x18\xD9\xA5\x7F"
  22737. "\xF4\xD3\xA3\x1C\xE6\x73\x11\x9E"
  22738. "\x45\x16\x26\xC2\x41\x57\x71\xE3"
  22739. "\xB7\xEE\xBC\xA6\x14\xC8\x9B\x35",
  22740. .rlen = 56,
  22741. }, {
  22742. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  22743. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  22744. "\x57\x69\x0E\x43",
  22745. .klen = 20,
  22746. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  22747. .input = "\x45\x00\x00\x49\x33\x3E\x00\x00"
  22748. "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
  22749. "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
  22750. "\x00\x35\xCB\x45\x80\x03\x02\x5B"
  22751. "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
  22752. "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
  22753. "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
  22754. "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
  22755. "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
  22756. "\x15\x01\x01\x01",
  22757. .ilen = 76,
  22758. .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
  22759. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  22760. "\xA2\xFC\xA1\xA3",
  22761. .alen = 20,
  22762. .result = "\xFB\xA2\xCA\xD1\x2F\xC1\xF9\xF0"
  22763. "\x0D\x3C\xEB\xF3\x05\x41\x0D\xB8"
  22764. "\x3D\x77\x84\xB6\x07\x32\x3D\x22"
  22765. "\x0F\x24\xB0\xA9\x7D\x54\x18\x28"
  22766. "\x00\xCA\xDB\x0F\x68\xD9\x9E\xF0"
  22767. "\xE0\xC0\xC8\x9A\xE9\xBE\xA8\x88"
  22768. "\x4E\x52\xD6\x5B\xC1\xAF\xD0\x74"
  22769. "\x0F\x74\x24\x44\x74\x7B\x5B\x39"
  22770. "\xAB\x53\x31\x63\xAA\xD4\x55\x0E"
  22771. "\xE5\x16\x09\x75\xCD\xB6\x08\xC5"
  22772. "\x76\x91\x89\x60\x97\x63\xB8\xE1"
  22773. "\x8C\xAA\x81\xE2",
  22774. .rlen = 92,
  22775. }, {
  22776. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  22777. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  22778. "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  22779. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  22780. "\x73\x61\x6C\x74",
  22781. .klen = 36,
  22782. .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
  22783. .input = "\x63\x69\x73\x63\x6F\x01\x72\x75"
  22784. "\x6C\x65\x73\x01\x74\x68\x65\x01"
  22785. "\x6E\x65\x74\x77\x65\x01\x64\x65"
  22786. "\x66\x69\x6E\x65\x01\x74\x68\x65"
  22787. "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
  22788. "\x67\x69\x65\x73\x01\x74\x68\x61"
  22789. "\x74\x77\x69\x6C\x6C\x01\x64\x65"
  22790. "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
  22791. "\x72\x72\x6F\x77\x01\x02\x02\x01",
  22792. .ilen = 72,
  22793. .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
  22794. "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
  22795. "\x69\x76\x65\x63",
  22796. .alen = 20,
  22797. .result = "\xD4\xB7\xED\x86\xA1\x77\x7F\x2E"
  22798. "\xA1\x3D\x69\x73\xD3\x24\xC6\x9E"
  22799. "\x7B\x43\xF8\x26\xFB\x56\x83\x12"
  22800. "\x26\x50\x8B\xEB\xD2\xDC\xEB\x18"
  22801. "\xD0\xA6\xDF\x10\xE5\x48\x7D\xF0"
  22802. "\x74\x11\x3E\x14\xC6\x41\x02\x4E"
  22803. "\x3E\x67\x73\xD9\x1A\x62\xEE\x42"
  22804. "\x9B\x04\x3A\x10\xE3\xEF\xE6\xB0"
  22805. "\x12\xA4\x93\x63\x41\x23\x64\xF8"
  22806. "\xC0\xCA\xC5\x87\xF2\x49\xE5\x6B"
  22807. "\x11\xE2\x4F\x30\xE4\x4C\xCC\x76",
  22808. .rlen = 88,
  22809. }, {
  22810. .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
  22811. "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
  22812. "\xD9\x66\x42\x67",
  22813. .klen = 20,
  22814. .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
  22815. .input = "\x01\x02\x02\x01",
  22816. .ilen = 4,
  22817. .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
  22818. "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
  22819. .alen = 16,
  22820. .result = "\x43\x7F\x86\x6B\xCB\x3F\x69\x9F"
  22821. "\xE9\xB0\x82\x2B\xAC\x96\x1C\x45"
  22822. "\x04\xBE\xF2\x70",
  22823. .rlen = 20,
  22824. }, {
  22825. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  22826. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  22827. "\xDE\xCA\xF8\x88",
  22828. .klen = 20,
  22829. .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
  22830. .input = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
  22831. "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
  22832. "\x62\x65\x00\x01",
  22833. .ilen = 20,
  22834. .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
  22835. "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
  22836. "\xCE\xFA\xCE\x74",
  22837. .alen = 20,
  22838. .result = "\x29\xC9\xFC\x69\xA1\x97\xD0\x38"
  22839. "\xCC\xDD\x14\xE2\xDD\xFC\xAA\x05"
  22840. "\x43\x33\x21\x64\x41\x25\x03\x52"
  22841. "\x43\x03\xED\x3C\x6C\x5F\x28\x38"
  22842. "\x43\xAF\x8C\x3E",
  22843. .rlen = 36,
  22844. }, {
  22845. .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
  22846. "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
  22847. "\x61\x61\x6E\x64\x64\x6F\x69\x74"
  22848. "\x62\x65\x66\x6F\x72\x65\x69\x61"
  22849. "\x74\x75\x72\x6E",
  22850. .klen = 36,
  22851. .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
  22852. .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
  22853. "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
  22854. "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
  22855. "\x02\x00\x07\x00\x61\x62\x63\x64"
  22856. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  22857. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  22858. "\x01\x02\x02\x01",
  22859. .ilen = 52,
  22860. .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
  22861. "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
  22862. "\x67\x65\x74\x6D",
  22863. .alen = 20,
  22864. .result = "\xF9\x7A\xB2\xAA\x35\x6D\x8E\xDC"
  22865. "\xE1\x76\x44\xAC\x8C\x78\xE2\x5D"
  22866. "\xD2\x4D\xED\xBB\x29\xEB\xF1\xB6"
  22867. "\x4A\x27\x4B\x39\xB4\x9C\x3A\x86"
  22868. "\x4C\xD3\xD7\x8C\xA4\xAE\x68\xA3"
  22869. "\x2B\x42\x45\x8F\xB5\x7D\xBE\x82"
  22870. "\x1D\xCC\x63\xB9\xD0\x93\x7B\xA2"
  22871. "\x94\x5F\x66\x93\x68\x66\x1A\x32"
  22872. "\x9F\xB4\xC0\x53",
  22873. .rlen = 68,
  22874. }, {
  22875. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  22876. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  22877. "\x57\x69\x0E\x43",
  22878. .klen = 20,
  22879. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  22880. .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
  22881. "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
  22882. "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
  22883. "\x02\x00\x07\x00\x61\x62\x63\x64"
  22884. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  22885. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  22886. "\x01\x02\x02\x01",
  22887. .ilen = 52,
  22888. .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
  22889. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  22890. "\xA2\xFC\xA1\xA3",
  22891. .alen = 20,
  22892. .result = "\xFB\xA2\xCA\xA8\xC6\xC5\xF9\xF0"
  22893. "\xF2\x2C\xA5\x4A\x06\x12\x10\xAD"
  22894. "\x3F\x6E\x57\x91\xCF\x1A\xCA\x21"
  22895. "\x0D\x11\x7C\xEC\x9C\x35\x79\x17"
  22896. "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
  22897. "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
  22898. "\x63\x21\x93\x06\x84\xEE\xCA\xDB"
  22899. "\x56\x91\x25\x46\xE7\xA9\x5C\x97"
  22900. "\x40\xD7\xCB\x05",
  22901. .rlen = 68,
  22902. }, {
  22903. .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
  22904. "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
  22905. "\x22\x43\x3C\x64",
  22906. .klen = 20,
  22907. .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
  22908. .input = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
  22909. "\x61\x62\x63\x64\x65\x66\x67\x68"
  22910. "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
  22911. "\x71\x72\x73\x74\x01\x02\x02\x01",
  22912. .ilen = 32,
  22913. .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
  22914. "\x00\x00\x00\x07\x48\x55\xEC\x7D"
  22915. "\x3A\x23\x4B\xFD",
  22916. .alen = 20,
  22917. .result = "\x74\x75\x2E\x8A\xEB\x5D\x87\x3C"
  22918. "\xD7\xC0\xF4\xAC\xC3\x6C\x4B\xFF"
  22919. "\x84\xB7\xD7\xB9\x8F\x0C\xA8\xB6"
  22920. "\xAC\xDA\x68\x94\xBC\x61\x90\x69"
  22921. "\xEF\x9C\xBC\x28\xFE\x1B\x56\xA7"
  22922. "\xC4\xE0\xD5\x8C\x86\xCD\x2B\xC0",
  22923. .rlen = 48,
  22924. }
  22925. };
  22926. static struct aead_testvec aes_gcm_rfc4106_dec_tv_template[] = {
  22927. { /* Generated using Crypto++ */
  22928. .key = zeroed_string,
  22929. .klen = 20,
  22930. .iv = zeroed_string,
  22931. .input = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
  22932. "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
  22933. "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
  22934. "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
  22935. .ilen = 32,
  22936. .assoc = zeroed_string,
  22937. .alen = 16,
  22938. .result = zeroed_string,
  22939. .rlen = 16,
  22940. },{
  22941. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  22942. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  22943. "\x00\x00\x00\x00",
  22944. .klen = 20,
  22945. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
  22946. .input = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
  22947. "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
  22948. "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
  22949. "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
  22950. .ilen = 32,
  22951. .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
  22952. "\x00\x00\x00\x00\x00\x00\x00\x01",
  22953. .alen = 16,
  22954. .result = zeroed_string,
  22955. .rlen = 16,
  22956. }, {
  22957. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  22958. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  22959. "\x00\x00\x00\x00",
  22960. .klen = 20,
  22961. .iv = zeroed_string,
  22962. .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
  22963. "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
  22964. "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
  22965. "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
  22966. .ilen = 32,
  22967. .assoc = zeroed_string,
  22968. .alen = 16,
  22969. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  22970. "\x01\x01\x01\x01\x01\x01\x01\x01",
  22971. .rlen = 16,
  22972. }, {
  22973. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  22974. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  22975. "\x00\x00\x00\x00",
  22976. .klen = 20,
  22977. .iv = zeroed_string,
  22978. .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
  22979. "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
  22980. "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
  22981. "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
  22982. .ilen = 32,
  22983. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
  22984. "\x00\x00\x00\x00\x00\x00\x00\x00",
  22985. .alen = 16,
  22986. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  22987. "\x01\x01\x01\x01\x01\x01\x01\x01",
  22988. .rlen = 16,
  22989. }, {
  22990. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  22991. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  22992. "\x00\x00\x00\x00",
  22993. .klen = 20,
  22994. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
  22995. .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
  22996. "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
  22997. "\x64\x50\xF9\x32\x13\xFB\x74\x61"
  22998. "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
  22999. .ilen = 32,
  23000. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
  23001. "\x00\x00\x00\x00\x00\x00\x00\x01",
  23002. .alen = 16,
  23003. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  23004. "\x01\x01\x01\x01\x01\x01\x01\x01",
  23005. .rlen = 16,
  23006. }, {
  23007. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  23008. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  23009. "\x00\x00\x00\x00",
  23010. .klen = 20,
  23011. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
  23012. .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
  23013. "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
  23014. "\x98\x14\xA1\x42\x37\x80\xFD\x90"
  23015. "\x68\x12\x01\xA8\x91\x89\xB9\x83"
  23016. "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
  23017. "\x94\x5F\x18\x12\xBA\x27\x09\x39"
  23018. "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
  23019. "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
  23020. "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
  23021. "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
  23022. .ilen = 80,
  23023. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
  23024. "\x00\x00\x00\x00\x00\x00\x00\x01",
  23025. .alen = 16,
  23026. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  23027. "\x01\x01\x01\x01\x01\x01\x01\x01"
  23028. "\x01\x01\x01\x01\x01\x01\x01\x01"
  23029. "\x01\x01\x01\x01\x01\x01\x01\x01"
  23030. "\x01\x01\x01\x01\x01\x01\x01\x01"
  23031. "\x01\x01\x01\x01\x01\x01\x01\x01"
  23032. "\x01\x01\x01\x01\x01\x01\x01\x01"
  23033. "\x01\x01\x01\x01\x01\x01\x01\x01",
  23034. .rlen = 64,
  23035. }, {
  23036. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  23037. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  23038. "\x00\x00\x00\x00",
  23039. .klen = 20,
  23040. .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
  23041. .input = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
  23042. "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
  23043. "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
  23044. "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
  23045. "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
  23046. "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
  23047. "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
  23048. "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
  23049. "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
  23050. "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
  23051. "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
  23052. "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
  23053. "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
  23054. "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
  23055. "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
  23056. "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
  23057. "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
  23058. "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
  23059. "\x7E\x13\x06\x82\x08\x17\xA4\x35"
  23060. "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
  23061. "\xA3\x05\x38\x95\x20\x1A\x47\x04"
  23062. "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
  23063. "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
  23064. "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
  23065. "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
  23066. "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
  23067. .ilen = 208,
  23068. .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  23069. "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
  23070. "\x89\xab\xcd\xef",
  23071. .alen = 20,
  23072. .result = "\xff\xff\xff\xff\xff\xff\xff\xff"
  23073. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23074. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23075. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23076. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23077. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23078. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23079. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23080. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23081. "\xff\xff\xff\xff\xff\xff\xff\xff"
  23082. "\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. .rlen = 192,
  23097. }, {
  23098. .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
  23099. "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
  23100. "\x2E\x44\x3B\x68",
  23101. .klen = 20,
  23102. .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
  23103. .result = "\x45\x00\x00\x48\x69\x9A\x00\x00"
  23104. "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
  23105. "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
  23106. "\x38\xD3\x01\x00\x00\x01\x00\x00"
  23107. "\x00\x00\x00\x00\x04\x5F\x73\x69"
  23108. "\x70\x04\x5F\x75\x64\x70\x03\x73"
  23109. "\x69\x70\x09\x63\x79\x62\x65\x72"
  23110. "\x63\x69\x74\x79\x02\x64\x6B\x00"
  23111. "\x00\x21\x00\x01\x01\x02\x02\x01",
  23112. .rlen = 72,
  23113. .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
  23114. "\x00\x00\x00\x00\x49\x56\xED\x7E"
  23115. "\x3B\x24\x4C\xFE",
  23116. .alen = 20,
  23117. .input = "\xFE\xCF\x53\x7E\x72\x9D\x5B\x07"
  23118. "\xDC\x30\xDF\x52\x8D\xD2\x2B\x76"
  23119. "\x8D\x1B\x98\x73\x66\x96\xA6\xFD"
  23120. "\x34\x85\x09\xFA\x13\xCE\xAC\x34"
  23121. "\xCF\xA2\x43\x6F\x14\xA3\xF3\xCF"
  23122. "\x65\x92\x5B\xF1\xF4\xA1\x3C\x5D"
  23123. "\x15\xB2\x1E\x18\x84\xF5\xFF\x62"
  23124. "\x47\xAE\xAB\xB7\x86\xB9\x3B\xCE"
  23125. "\x61\xBC\x17\xD7\x68\xFD\x97\x32"
  23126. "\x45\x90\x18\x14\x8F\x6C\xBE\x72"
  23127. "\x2F\xD0\x47\x96\x56\x2D\xFD\xB4",
  23128. .ilen = 88,
  23129. }, {
  23130. .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
  23131. "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
  23132. "\xCA\xFE\xBA\xBE",
  23133. .klen = 20,
  23134. .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  23135. .result = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
  23136. "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
  23137. "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
  23138. "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
  23139. "\x00\x01\x00\x00\x00\x00\x00\x00"
  23140. "\x03\x73\x69\x70\x09\x63\x79\x62"
  23141. "\x65\x72\x63\x69\x74\x79\x02\x64"
  23142. "\x6B\x00\x00\x01\x00\x01\x00\x01",
  23143. .rlen = 64,
  23144. .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
  23145. "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  23146. .alen = 16,
  23147. .input = "\xDE\xB2\x2C\xD9\xB0\x7C\x72\xC1"
  23148. "\x6E\x3A\x65\xBE\xEB\x8D\xF3\x04"
  23149. "\xA5\xA5\x89\x7D\x33\xAE\x53\x0F"
  23150. "\x1B\xA7\x6D\x5D\x11\x4D\x2A\x5C"
  23151. "\x3D\xE8\x18\x27\xC1\x0E\x9A\x4F"
  23152. "\x51\x33\x0D\x0E\xEC\x41\x66\x42"
  23153. "\xCF\xBB\x85\xA5\xB4\x7E\x48\xA4"
  23154. "\xEC\x3B\x9B\xA9\x5D\x91\x8B\xD1"
  23155. "\x83\xB7\x0D\x3A\xA8\xBC\x6E\xE4"
  23156. "\xC3\x09\xE9\xD8\x5A\x41\xAD\x4A",
  23157. .ilen = 80,
  23158. }, {
  23159. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  23160. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  23161. "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  23162. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  23163. "\x11\x22\x33\x44",
  23164. .klen = 36,
  23165. .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
  23166. .result = "\x45\x00\x00\x30\x69\xA6\x40\x00"
  23167. "\x80\x06\x26\x90\xC0\xA8\x01\x02"
  23168. "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
  23169. "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
  23170. "\x70\x02\x40\x00\x20\xBF\x00\x00"
  23171. "\x02\x04\x05\xB4\x01\x01\x04\x02"
  23172. "\x01\x02\x02\x01",
  23173. .rlen = 52,
  23174. .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
  23175. "\x01\x02\x03\x04\x05\x06\x07\x08",
  23176. .alen = 16,
  23177. .input = "\xFF\x42\x5C\x9B\x72\x45\x99\xDF"
  23178. "\x7A\x3B\xCD\x51\x01\x94\xE0\x0D"
  23179. "\x6A\x78\x10\x7F\x1B\x0B\x1C\xBF"
  23180. "\x06\xEF\xAE\x9D\x65\xA5\xD7\x63"
  23181. "\x74\x8A\x63\x79\x85\x77\x1D\x34"
  23182. "\x7F\x05\x45\x65\x9F\x14\xE9\x9D"
  23183. "\xEF\x84\x2D\x8E\xB3\x35\xF4\xEE"
  23184. "\xCF\xDB\xF8\x31\x82\x4B\x4C\x49"
  23185. "\x15\x95\x6C\x96",
  23186. .ilen = 68,
  23187. }, {
  23188. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  23189. "\x00\x00\x00\x00\x00\x00\x00\x00"
  23190. "\x00\x00\x00\x00",
  23191. .klen = 20,
  23192. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  23193. .result = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
  23194. "\x80\x01\xCB\x7A\x40\x67\x93\x18"
  23195. "\x01\x01\x01\x01\x08\x00\x07\x5C"
  23196. "\x02\x00\x44\x00\x61\x62\x63\x64"
  23197. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  23198. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  23199. "\x75\x76\x77\x61\x62\x63\x64\x65"
  23200. "\x66\x67\x68\x69\x01\x02\x02\x01",
  23201. .rlen = 64,
  23202. .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
  23203. "\x00\x00\x00\x00\x00\x00\x00\x00",
  23204. .alen = 16,
  23205. .input = "\x46\x88\xDA\xF2\xF9\x73\xA3\x92"
  23206. "\x73\x29\x09\xC3\x31\xD5\x6D\x60"
  23207. "\xF6\x94\xAB\xAA\x41\x4B\x5E\x7F"
  23208. "\xF5\xFD\xCD\xFF\xF5\xE9\xA2\x84"
  23209. "\x45\x64\x76\x49\x27\x19\xFF\xB6"
  23210. "\x4D\xE7\xD9\xDC\xA1\xE1\xD8\x94"
  23211. "\xBC\x3B\xD5\x78\x73\xED\x4D\x18"
  23212. "\x1D\x19\xD4\xD5\xC8\xC1\x8A\xF3"
  23213. "\xF8\x21\xD4\x96\xEE\xB0\x96\xE9"
  23214. "\x8A\xD2\xB6\x9E\x47\x99\xC7\x1D",
  23215. .ilen = 80,
  23216. }, {
  23217. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  23218. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  23219. "\x57\x69\x0E\x43",
  23220. .klen = 20,
  23221. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  23222. .result = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
  23223. "\x80\x01\xCB\x7C\x40\x67\x93\x18"
  23224. "\x01\x01\x01\x01\x08\x00\x08\x5C"
  23225. "\x02\x00\x43\x00\x61\x62\x63\x64"
  23226. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  23227. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  23228. "\x75\x76\x77\x61\x62\x63\x64\x65"
  23229. "\x66\x67\x68\x69\x01\x02\x02\x01",
  23230. .rlen = 64,
  23231. .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
  23232. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  23233. "\xA2\xFC\xA1\xA3",
  23234. .alen = 20,
  23235. .input = "\xFB\xA2\xCA\xA4\x85\x3C\xF9\xF0"
  23236. "\xF2\x2C\xB1\x0D\x86\xDD\x83\xB0"
  23237. "\xFE\xC7\x56\x91\xCF\x1A\x04\xB0"
  23238. "\x0D\x11\x38\xEC\x9C\x35\x79\x17"
  23239. "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
  23240. "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
  23241. "\x17\x55\xE6\x66\x2B\x4C\x8D\x0D"
  23242. "\x1F\x5E\x22\x73\x95\x30\x32\x0A"
  23243. "\xE0\xD7\x31\xCC\x97\x8E\xCA\xFA"
  23244. "\xEA\xE8\x8F\x00\xE8\x0D\x6E\x48",
  23245. .ilen = 80,
  23246. }, {
  23247. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  23248. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  23249. "\x57\x69\x0E\x43",
  23250. .klen = 20,
  23251. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  23252. .result = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
  23253. "\x80\x01\x44\x1F\x40\x67\x93\xB6"
  23254. "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
  23255. "\x01\x02\x02\x01",
  23256. .rlen = 28,
  23257. .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
  23258. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  23259. "\xA2\xFC\xA1\xA3",
  23260. .alen = 20,
  23261. .input = "\xFB\xA2\xCA\x84\x5E\x5D\xF9\xF0"
  23262. "\xF2\x2C\x3E\x6E\x86\xDD\x83\x1E"
  23263. "\x1F\xC6\x57\x92\xCD\x1A\xF9\x13"
  23264. "\x0E\x13\x79\xED\x36\x9F\x07\x1F"
  23265. "\x35\xE0\x34\xBE\x95\xF1\x12\xE4"
  23266. "\xE7\xD0\x5D\x35",
  23267. .ilen = 44,
  23268. }, {
  23269. .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
  23270. "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
  23271. "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
  23272. "\xCA\xFE\xBA\xBE",
  23273. .klen = 28,
  23274. .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  23275. .result = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
  23276. "\x40\x06\x78\x80\x0A\x01\x03\x8F"
  23277. "\x0A\x01\x06\x12\x80\x23\x06\xB8"
  23278. "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
  23279. "\x50\x10\x16\xD0\x75\x68\x00\x01",
  23280. .rlen = 40,
  23281. .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
  23282. "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  23283. .alen = 16,
  23284. .input = "\xA5\xB1\xF8\x06\x60\x29\xAE\xA4"
  23285. "\x0E\x59\x8B\x81\x22\xDE\x02\x42"
  23286. "\x09\x38\xB3\xAB\x33\xF8\x28\xE6"
  23287. "\x87\xB8\x85\x8B\x5B\xFB\xDB\xD0"
  23288. "\x31\x5B\x27\x45\x21\x44\xCC\x77"
  23289. "\x95\x45\x7B\x96\x52\x03\x7F\x53"
  23290. "\x18\x02\x7B\x5B\x4C\xD7\xA6\x36",
  23291. .ilen = 56,
  23292. }, {
  23293. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  23294. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  23295. "\xDE\xCA\xF8\x88",
  23296. .klen = 20,
  23297. .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
  23298. .result = "\x45\x00\x00\x49\x33\xBA\x00\x00"
  23299. "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
  23300. "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
  23301. "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
  23302. "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
  23303. "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
  23304. "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
  23305. "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
  23306. "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
  23307. "\x23\x01\x01\x01",
  23308. .rlen = 76,
  23309. .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
  23310. "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
  23311. "\xCE\xFA\xCE\x74",
  23312. .alen = 20,
  23313. .input = "\x18\xA6\xFD\x42\xF7\x2C\xBF\x4A"
  23314. "\xB2\xA2\xEA\x90\x1F\x73\xD8\x14"
  23315. "\xE3\xE7\xF2\x43\xD9\x54\x12\xE1"
  23316. "\xC3\x49\xC1\xD2\xFB\xEC\x16\x8F"
  23317. "\x91\x90\xFE\xEB\xAF\x2C\xB0\x19"
  23318. "\x84\xE6\x58\x63\x96\x5D\x74\x72"
  23319. "\xB7\x9D\xA3\x45\xE0\xE7\x80\x19"
  23320. "\x1F\x0D\x2F\x0E\x0F\x49\x6C\x22"
  23321. "\x6F\x21\x27\xB2\x7D\xB3\x57\x24"
  23322. "\xE7\x84\x5D\x68\x65\x1F\x57\xE6"
  23323. "\x5F\x35\x4F\x75\xFF\x17\x01\x57"
  23324. "\x69\x62\x34\x36",
  23325. .ilen = 92,
  23326. }, {
  23327. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  23328. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  23329. "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  23330. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  23331. "\x73\x61\x6C\x74",
  23332. .klen = 36,
  23333. .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
  23334. .result = "\x45\x08\x00\x28\x73\x2C\x00\x00"
  23335. "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
  23336. "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
  23337. "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
  23338. "\x50\x10\x1F\x64\x6D\x54\x00\x01",
  23339. .rlen = 40,
  23340. .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
  23341. "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
  23342. "\x69\x76\x65\x63",
  23343. .alen = 20,
  23344. .input = "\xF2\xD6\x9E\xCD\xBD\x5A\x0D\x5B"
  23345. "\x8D\x5E\xF3\x8B\xAD\x4D\xA5\x8D"
  23346. "\x1F\x27\x8F\xDE\x98\xEF\x67\x54"
  23347. "\x9D\x52\x4A\x30\x18\xD9\xA5\x7F"
  23348. "\xF4\xD3\xA3\x1C\xE6\x73\x11\x9E"
  23349. "\x45\x16\x26\xC2\x41\x57\x71\xE3"
  23350. "\xB7\xEE\xBC\xA6\x14\xC8\x9B\x35",
  23351. .ilen = 56,
  23352. }, {
  23353. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  23354. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  23355. "\x57\x69\x0E\x43",
  23356. .klen = 20,
  23357. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  23358. .result = "\x45\x00\x00\x49\x33\x3E\x00\x00"
  23359. "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
  23360. "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
  23361. "\x00\x35\xCB\x45\x80\x03\x02\x5B"
  23362. "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
  23363. "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
  23364. "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
  23365. "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
  23366. "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
  23367. "\x15\x01\x01\x01",
  23368. .rlen = 76,
  23369. .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
  23370. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  23371. "\xA2\xFC\xA1\xA3",
  23372. .alen = 20,
  23373. .input = "\xFB\xA2\xCA\xD1\x2F\xC1\xF9\xF0"
  23374. "\x0D\x3C\xEB\xF3\x05\x41\x0D\xB8"
  23375. "\x3D\x77\x84\xB6\x07\x32\x3D\x22"
  23376. "\x0F\x24\xB0\xA9\x7D\x54\x18\x28"
  23377. "\x00\xCA\xDB\x0F\x68\xD9\x9E\xF0"
  23378. "\xE0\xC0\xC8\x9A\xE9\xBE\xA8\x88"
  23379. "\x4E\x52\xD6\x5B\xC1\xAF\xD0\x74"
  23380. "\x0F\x74\x24\x44\x74\x7B\x5B\x39"
  23381. "\xAB\x53\x31\x63\xAA\xD4\x55\x0E"
  23382. "\xE5\x16\x09\x75\xCD\xB6\x08\xC5"
  23383. "\x76\x91\x89\x60\x97\x63\xB8\xE1"
  23384. "\x8C\xAA\x81\xE2",
  23385. .ilen = 92,
  23386. }, {
  23387. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  23388. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  23389. "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  23390. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  23391. "\x73\x61\x6C\x74",
  23392. .klen = 36,
  23393. .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
  23394. .result = "\x63\x69\x73\x63\x6F\x01\x72\x75"
  23395. "\x6C\x65\x73\x01\x74\x68\x65\x01"
  23396. "\x6E\x65\x74\x77\x65\x01\x64\x65"
  23397. "\x66\x69\x6E\x65\x01\x74\x68\x65"
  23398. "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
  23399. "\x67\x69\x65\x73\x01\x74\x68\x61"
  23400. "\x74\x77\x69\x6C\x6C\x01\x64\x65"
  23401. "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
  23402. "\x72\x72\x6F\x77\x01\x02\x02\x01",
  23403. .rlen = 72,
  23404. .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
  23405. "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
  23406. "\x69\x76\x65\x63",
  23407. .alen = 20,
  23408. .input = "\xD4\xB7\xED\x86\xA1\x77\x7F\x2E"
  23409. "\xA1\x3D\x69\x73\xD3\x24\xC6\x9E"
  23410. "\x7B\x43\xF8\x26\xFB\x56\x83\x12"
  23411. "\x26\x50\x8B\xEB\xD2\xDC\xEB\x18"
  23412. "\xD0\xA6\xDF\x10\xE5\x48\x7D\xF0"
  23413. "\x74\x11\x3E\x14\xC6\x41\x02\x4E"
  23414. "\x3E\x67\x73\xD9\x1A\x62\xEE\x42"
  23415. "\x9B\x04\x3A\x10\xE3\xEF\xE6\xB0"
  23416. "\x12\xA4\x93\x63\x41\x23\x64\xF8"
  23417. "\xC0\xCA\xC5\x87\xF2\x49\xE5\x6B"
  23418. "\x11\xE2\x4F\x30\xE4\x4C\xCC\x76",
  23419. .ilen = 88,
  23420. }, {
  23421. .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
  23422. "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
  23423. "\xD9\x66\x42\x67",
  23424. .klen = 20,
  23425. .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
  23426. .result = "\x01\x02\x02\x01",
  23427. .rlen = 4,
  23428. .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
  23429. "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
  23430. .alen = 16,
  23431. .input = "\x43\x7F\x86\x6B\xCB\x3F\x69\x9F"
  23432. "\xE9\xB0\x82\x2B\xAC\x96\x1C\x45"
  23433. "\x04\xBE\xF2\x70",
  23434. .ilen = 20,
  23435. }, {
  23436. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  23437. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  23438. "\xDE\xCA\xF8\x88",
  23439. .klen = 20,
  23440. .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
  23441. .result = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
  23442. "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
  23443. "\x62\x65\x00\x01",
  23444. .rlen = 20,
  23445. .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
  23446. "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
  23447. "\xCE\xFA\xCE\x74",
  23448. .alen = 20,
  23449. .input = "\x29\xC9\xFC\x69\xA1\x97\xD0\x38"
  23450. "\xCC\xDD\x14\xE2\xDD\xFC\xAA\x05"
  23451. "\x43\x33\x21\x64\x41\x25\x03\x52"
  23452. "\x43\x03\xED\x3C\x6C\x5F\x28\x38"
  23453. "\x43\xAF\x8C\x3E",
  23454. .ilen = 36,
  23455. }, {
  23456. .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
  23457. "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
  23458. "\x61\x61\x6E\x64\x64\x6F\x69\x74"
  23459. "\x62\x65\x66\x6F\x72\x65\x69\x61"
  23460. "\x74\x75\x72\x6E",
  23461. .klen = 36,
  23462. .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
  23463. .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
  23464. "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
  23465. "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
  23466. "\x02\x00\x07\x00\x61\x62\x63\x64"
  23467. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  23468. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  23469. "\x01\x02\x02\x01",
  23470. .rlen = 52,
  23471. .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
  23472. "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
  23473. "\x67\x65\x74\x6D",
  23474. .alen = 20,
  23475. .input = "\xF9\x7A\xB2\xAA\x35\x6D\x8E\xDC"
  23476. "\xE1\x76\x44\xAC\x8C\x78\xE2\x5D"
  23477. "\xD2\x4D\xED\xBB\x29\xEB\xF1\xB6"
  23478. "\x4A\x27\x4B\x39\xB4\x9C\x3A\x86"
  23479. "\x4C\xD3\xD7\x8C\xA4\xAE\x68\xA3"
  23480. "\x2B\x42\x45\x8F\xB5\x7D\xBE\x82"
  23481. "\x1D\xCC\x63\xB9\xD0\x93\x7B\xA2"
  23482. "\x94\x5F\x66\x93\x68\x66\x1A\x32"
  23483. "\x9F\xB4\xC0\x53",
  23484. .ilen = 68,
  23485. }, {
  23486. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  23487. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  23488. "\x57\x69\x0E\x43",
  23489. .klen = 20,
  23490. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  23491. .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
  23492. "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
  23493. "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
  23494. "\x02\x00\x07\x00\x61\x62\x63\x64"
  23495. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  23496. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  23497. "\x01\x02\x02\x01",
  23498. .rlen = 52,
  23499. .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
  23500. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  23501. "\xA2\xFC\xA1\xA3",
  23502. .alen = 20,
  23503. .input = "\xFB\xA2\xCA\xA8\xC6\xC5\xF9\xF0"
  23504. "\xF2\x2C\xA5\x4A\x06\x12\x10\xAD"
  23505. "\x3F\x6E\x57\x91\xCF\x1A\xCA\x21"
  23506. "\x0D\x11\x7C\xEC\x9C\x35\x79\x17"
  23507. "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
  23508. "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
  23509. "\x63\x21\x93\x06\x84\xEE\xCA\xDB"
  23510. "\x56\x91\x25\x46\xE7\xA9\x5C\x97"
  23511. "\x40\xD7\xCB\x05",
  23512. .ilen = 68,
  23513. }, {
  23514. .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
  23515. "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
  23516. "\x22\x43\x3C\x64",
  23517. .klen = 20,
  23518. .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
  23519. .result = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
  23520. "\x61\x62\x63\x64\x65\x66\x67\x68"
  23521. "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
  23522. "\x71\x72\x73\x74\x01\x02\x02\x01",
  23523. .rlen = 32,
  23524. .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
  23525. "\x00\x00\x00\x07\x48\x55\xEC\x7D"
  23526. "\x3A\x23\x4B\xFD",
  23527. .alen = 20,
  23528. .input = "\x74\x75\x2E\x8A\xEB\x5D\x87\x3C"
  23529. "\xD7\xC0\xF4\xAC\xC3\x6C\x4B\xFF"
  23530. "\x84\xB7\xD7\xB9\x8F\x0C\xA8\xB6"
  23531. "\xAC\xDA\x68\x94\xBC\x61\x90\x69"
  23532. "\xEF\x9C\xBC\x28\xFE\x1B\x56\xA7"
  23533. "\xC4\xE0\xD5\x8C\x86\xCD\x2B\xC0",
  23534. .ilen = 48,
  23535. }
  23536. };
  23537. static struct aead_testvec aes_gcm_rfc4543_enc_tv_template[] = {
  23538. { /* From draft-mcgrew-gcm-test-01 */
  23539. .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
  23540. "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
  23541. "\x22\x43\x3c\x64",
  23542. .klen = 20,
  23543. .iv = zeroed_string,
  23544. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07"
  23545. "\x00\x00\x00\x00\x00\x00\x00\x00",
  23546. .alen = 16,
  23547. .input = "\x45\x00\x00\x30\xda\x3a\x00\x00"
  23548. "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
  23549. "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
  23550. "\x02\x00\x07\x00\x61\x62\x63\x64"
  23551. "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
  23552. "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
  23553. "\x01\x02\x02\x01",
  23554. .ilen = 52,
  23555. .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
  23556. "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
  23557. "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
  23558. "\x02\x00\x07\x00\x61\x62\x63\x64"
  23559. "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
  23560. "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
  23561. "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
  23562. "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
  23563. "\xe4\x09\x9a\xaa",
  23564. .rlen = 68,
  23565. }
  23566. };
  23567. static struct aead_testvec aes_gcm_rfc4543_dec_tv_template[] = {
  23568. { /* From draft-mcgrew-gcm-test-01 */
  23569. .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
  23570. "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
  23571. "\x22\x43\x3c\x64",
  23572. .klen = 20,
  23573. .iv = zeroed_string,
  23574. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07"
  23575. "\x00\x00\x00\x00\x00\x00\x00\x00",
  23576. .alen = 16,
  23577. .input = "\x45\x00\x00\x30\xda\x3a\x00\x00"
  23578. "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
  23579. "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
  23580. "\x02\x00\x07\x00\x61\x62\x63\x64"
  23581. "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
  23582. "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
  23583. "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
  23584. "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
  23585. "\xe4\x09\x9a\xaa",
  23586. .ilen = 68,
  23587. .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
  23588. "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
  23589. "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
  23590. "\x02\x00\x07\x00\x61\x62\x63\x64"
  23591. "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
  23592. "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
  23593. "\x01\x02\x02\x01",
  23594. .rlen = 52,
  23595. }, { /* nearly same as previous, but should fail */
  23596. .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
  23597. "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
  23598. "\x22\x43\x3c\x64",
  23599. .klen = 20,
  23600. .iv = zeroed_string,
  23601. .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07"
  23602. "\x00\x00\x00\x00\x00\x00\x00\x00",
  23603. .alen = 16,
  23604. .input = "\x45\x00\x00\x30\xda\x3a\x00\x00"
  23605. "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
  23606. "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
  23607. "\x02\x00\x07\x00\x61\x62\x63\x64"
  23608. "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
  23609. "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
  23610. "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
  23611. "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
  23612. "\x00\x00\x00\x00",
  23613. .ilen = 68,
  23614. .novrfy = 1,
  23615. .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
  23616. "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
  23617. "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
  23618. "\x02\x00\x07\x00\x61\x62\x63\x64"
  23619. "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
  23620. "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
  23621. "\x01\x02\x02\x01",
  23622. .rlen = 52,
  23623. },
  23624. };
  23625. static struct aead_testvec aes_ccm_enc_tv_template[] = {
  23626. { /* From RFC 3610 */
  23627. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  23628. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  23629. .klen = 16,
  23630. .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
  23631. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  23632. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  23633. .alen = 8,
  23634. .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  23635. "\x10\x11\x12\x13\x14\x15\x16\x17"
  23636. "\x18\x19\x1a\x1b\x1c\x1d\x1e",
  23637. .ilen = 23,
  23638. .result = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
  23639. "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
  23640. "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
  23641. "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
  23642. .rlen = 31,
  23643. }, {
  23644. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  23645. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  23646. .klen = 16,
  23647. .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
  23648. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  23649. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  23650. "\x08\x09\x0a\x0b",
  23651. .alen = 12,
  23652. .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  23653. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  23654. "\x1c\x1d\x1e\x1f",
  23655. .ilen = 20,
  23656. .result = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
  23657. "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
  23658. "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
  23659. "\x7d\x9c\x2d\x93",
  23660. .rlen = 28,
  23661. }, {
  23662. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  23663. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  23664. .klen = 16,
  23665. .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
  23666. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  23667. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  23668. .alen = 8,
  23669. .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  23670. "\x10\x11\x12\x13\x14\x15\x16\x17"
  23671. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  23672. "\x20",
  23673. .ilen = 25,
  23674. .result = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
  23675. "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
  23676. "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
  23677. "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
  23678. "\x7e\x5f\x4e",
  23679. .rlen = 35,
  23680. }, {
  23681. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  23682. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  23683. .klen = 16,
  23684. .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
  23685. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  23686. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  23687. "\x08\x09\x0a\x0b",
  23688. .alen = 12,
  23689. .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  23690. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  23691. "\x1c\x1d\x1e",
  23692. .ilen = 19,
  23693. .result = "\x07\x34\x25\x94\x15\x77\x85\x15"
  23694. "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
  23695. "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
  23696. "\x4d\x99\x99\x88\xdd",
  23697. .rlen = 29,
  23698. }, {
  23699. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  23700. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  23701. .klen = 16,
  23702. .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
  23703. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  23704. .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
  23705. .alen = 8,
  23706. .input = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
  23707. "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
  23708. "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
  23709. .ilen = 24,
  23710. .result = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
  23711. "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
  23712. "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
  23713. "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
  23714. .rlen = 32,
  23715. }, {
  23716. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  23717. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  23718. .klen = 16,
  23719. .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
  23720. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  23721. .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
  23722. "\x20\xea\x60\xc0",
  23723. .alen = 12,
  23724. .input = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
  23725. "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
  23726. "\x3a\x80\x3b\xa8\x7f",
  23727. .ilen = 21,
  23728. .result = "\x00\x97\x69\xec\xab\xdf\x48\x62"
  23729. "\x55\x94\xc5\x92\x51\xe6\x03\x57"
  23730. "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
  23731. "\x5a\xe0\x70\x45\x51",
  23732. .rlen = 29,
  23733. }, {
  23734. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  23735. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  23736. .klen = 16,
  23737. .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
  23738. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  23739. .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
  23740. .alen = 8,
  23741. .input = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
  23742. "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
  23743. "\x98\x09\xd6\x7d\xbe\xdd\x18",
  23744. .ilen = 23,
  23745. .result = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
  23746. "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
  23747. "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
  23748. "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
  23749. "\xba",
  23750. .rlen = 33,
  23751. }, {
  23752. /* This is taken from FIPS CAVS. */
  23753. .key = "\x83\xac\x54\x66\xc2\xeb\xe5\x05"
  23754. "\x2e\x01\xd1\xfc\x5d\x82\x66\x2e",
  23755. .klen = 16,
  23756. .iv = "\x03\x96\xac\x59\x30\x07\xa1\xe2\xa2\xc7\x55\x24\0\0\0\0",
  23757. .alen = 0,
  23758. .input = "\x19\xc8\x81\xf6\xe9\x86\xff\x93"
  23759. "\x0b\x78\x67\xe5\xbb\xb7\xfc\x6e"
  23760. "\x83\x77\xb3\xa6\x0c\x8c\x9f\x9c"
  23761. "\x35\x2e\xad\xe0\x62\xf9\x91\xa1",
  23762. .ilen = 32,
  23763. .result = "\xab\x6f\xe1\x69\x1d\x19\x99\xa8"
  23764. "\x92\xa0\xc4\x6f\x7e\xe2\x8b\xb1"
  23765. "\x70\xbb\x8c\xa6\x4c\x6e\x97\x8a"
  23766. "\x57\x2b\xbe\x5d\x98\xa6\xb1\x32"
  23767. "\xda\x24\xea\xd9\xa1\x39\x98\xfd"
  23768. "\xa4\xbe\xd9\xf2\x1a\x6d\x22\xa8",
  23769. .rlen = 48,
  23770. }, {
  23771. .key = "\x1e\x2c\x7e\x01\x41\x9a\xef\xc0"
  23772. "\x0d\x58\x96\x6e\x5c\xa2\x4b\xd3",
  23773. .klen = 16,
  23774. .iv = "\x03\x4f\xa3\x19\xd3\x01\x5a\xd8"
  23775. "\x30\x60\x15\x56\x00\x00\x00\x00",
  23776. .assoc = "\xda\xe6\x28\x9c\x45\x2d\xfd\x63"
  23777. "\x5e\xda\x4c\xb6\xe6\xfc\xf9\xb7"
  23778. "\x0c\x56\xcb\xe4\xe0\x05\x7a\xe1"
  23779. "\x0a\x63\x09\x78\xbc\x2c\x55\xde",
  23780. .alen = 32,
  23781. .input = "\x87\xa3\x36\xfd\x96\xb3\x93\x78"
  23782. "\xa9\x28\x63\xba\x12\xa3\x14\x85"
  23783. "\x57\x1e\x06\xc9\x7b\x21\xef\x76"
  23784. "\x7f\x38\x7e\x8e\x29\xa4\x3e\x7e",
  23785. .ilen = 32,
  23786. .result = "\x8a\x1e\x11\xf0\x02\x6b\xe2\x19"
  23787. "\xfc\x70\xc4\x6d\x8e\xb7\x99\xab"
  23788. "\xc5\x4b\xa2\xac\xd3\xf3\x48\xff"
  23789. "\x3b\xb5\xce\x53\xef\xde\xbb\x02"
  23790. "\xa9\x86\x15\x6c\x13\xfe\xda\x0a"
  23791. "\x22\xb8\x29\x3d\xd8\x39\x9a\x23",
  23792. .rlen = 48,
  23793. }, {
  23794. .key = "\xf4\x6b\xc2\x75\x62\xfe\xb4\xe1"
  23795. "\xa3\xf0\xff\xdd\x4e\x4b\x12\x75"
  23796. "\x53\x14\x73\x66\x8d\x88\xf6\x80",
  23797. .klen = 24,
  23798. .iv = "\x03\xa0\x20\x35\x26\xf2\x21\x8d"
  23799. "\x50\x20\xda\xe2\x00\x00\x00\x00",
  23800. .assoc = "\x5b\x9e\x13\x67\x02\x5e\xef\xc1"
  23801. "\x6c\xf9\xd7\x1e\x52\x8f\x7a\x47"
  23802. "\xe9\xd4\xcf\x20\x14\x6e\xf0\x2d"
  23803. "\xd8\x9e\x2b\x56\x10\x23\x56\xe7",
  23804. .alen = 32,
  23805. .result = "\x36\xea\x7a\x70\x08\xdc\x6a\xbc"
  23806. "\xad\x0c\x7a\x63\xf6\x61\xfd\x9b",
  23807. .rlen = 16,
  23808. }, {
  23809. .key = "\x56\xdf\x5c\x8f\x26\x3f\x0e\x42"
  23810. "\xef\x7a\xd3\xce\xfc\x84\x60\x62"
  23811. "\xca\xb4\x40\xaf\x5f\xc9\xc9\x01",
  23812. .klen = 24,
  23813. .iv = "\x03\xd6\x3c\x8c\x86\x84\xb6\xcd"
  23814. "\xef\x09\x2e\x94\x00\x00\x00\x00",
  23815. .assoc = "\x02\x65\x78\x3c\xe9\x21\x30\x91"
  23816. "\xb1\xb9\xda\x76\x9a\x78\x6d\x95"
  23817. "\xf2\x88\x32\xa3\xf2\x50\xcb\x4c"
  23818. "\xe3\x00\x73\x69\x84\x69\x87\x79",
  23819. .alen = 32,
  23820. .input = "\x9f\xd2\x02\x4b\x52\x49\x31\x3c"
  23821. "\x43\x69\x3a\x2d\x8e\x70\xad\x7e"
  23822. "\xe0\xe5\x46\x09\x80\x89\x13\xb2"
  23823. "\x8c\x8b\xd9\x3f\x86\xfb\xb5\x6b",
  23824. .ilen = 32,
  23825. .result = "\x39\xdf\x7c\x3c\x5a\x29\xb9\x62"
  23826. "\x5d\x51\xc2\x16\xd8\xbd\x06\x9f"
  23827. "\x9b\x6a\x09\x70\xc1\x51\x83\xc2"
  23828. "\x66\x88\x1d\x4f\x9a\xda\xe0\x1e"
  23829. "\xc7\x79\x11\x58\xe5\x6b\x20\x40"
  23830. "\x7a\xea\x46\x42\x8b\xe4\x6f\xe1",
  23831. .rlen = 48,
  23832. }, {
  23833. .key = "\xe0\x8d\x99\x71\x60\xd7\x97\x1a"
  23834. "\xbd\x01\x99\xd5\x8a\xdf\x71\x3a"
  23835. "\xd3\xdf\x24\x4b\x5e\x3d\x4b\x4e"
  23836. "\x30\x7a\xb9\xd8\x53\x0a\x5e\x2b",
  23837. .klen = 32,
  23838. .iv = "\x03\x1e\x29\x91\xad\x8e\xc1\x53"
  23839. "\x0a\xcf\x2d\xbe\x00\x00\x00\x00",
  23840. .assoc = "\x19\xb6\x1f\x57\xc4\xf3\xf0\x8b"
  23841. "\x78\x2b\x94\x02\x29\x0f\x42\x27"
  23842. "\x6b\x75\xcb\x98\x34\x08\x7e\x79"
  23843. "\xe4\x3e\x49\x0d\x84\x8b\x22\x87",
  23844. .alen = 32,
  23845. .input = "\xe1\xd9\xd8\x13\xeb\x3a\x75\x3f"
  23846. "\x9d\xbd\x5f\x66\xbe\xdc\xbb\x66"
  23847. "\xbf\x17\x99\x62\x4a\x39\x27\x1f"
  23848. "\x1d\xdc\x24\xae\x19\x2f\x98\x4c",
  23849. .ilen = 32,
  23850. .result = "\x19\xb8\x61\x33\x45\x2b\x43\x96"
  23851. "\x6f\x51\xd0\x20\x30\x7d\x9b\xc6"
  23852. "\x26\x3d\xf8\xc9\x65\x16\xa8\x9f"
  23853. "\xf0\x62\x17\x34\xf2\x1e\x8d\x75"
  23854. "\x4e\x13\xcc\xc0\xc3\x2a\x54\x2d",
  23855. .rlen = 40,
  23856. }, {
  23857. .key = "\x7c\xc8\x18\x3b\x8d\x99\xe0\x7c"
  23858. "\x45\x41\xb8\xbd\x5c\xa7\xc2\x32"
  23859. "\x8a\xb8\x02\x59\xa4\xfe\xa9\x2c"
  23860. "\x09\x75\x9a\x9b\x3c\x9b\x27\x39",
  23861. .klen = 32,
  23862. .iv = "\x03\xf9\xd9\x4e\x63\xb5\x3d\x9d"
  23863. "\x43\xf6\x1e\x50\0\0\0\0",
  23864. .assoc = "\x57\xf5\x6b\x8b\x57\x5c\x3d\x3b"
  23865. "\x13\x02\x01\x0c\x83\x4c\x96\x35"
  23866. "\x8e\xd6\x39\xcf\x7d\x14\x9b\x94"
  23867. "\xb0\x39\x36\xe6\x8f\x57\xe0\x13",
  23868. .alen = 32,
  23869. .input = "\x3b\x6c\x29\x36\xb6\xef\x07\xa6"
  23870. "\x83\x72\x07\x4f\xcf\xfa\x66\x89"
  23871. "\x5f\xca\xb1\xba\xd5\x8f\x2c\x27"
  23872. "\x30\xdb\x75\x09\x93\xd4\x65\xe4",
  23873. .ilen = 32,
  23874. .result = "\xb0\x88\x5a\x33\xaa\xe5\xc7\x1d"
  23875. "\x85\x23\xc7\xc6\x2f\xf4\x1e\x3d"
  23876. "\xcc\x63\x44\x25\x07\x78\x4f\x9e"
  23877. "\x96\xb8\x88\xeb\xbc\x48\x1f\x06"
  23878. "\x39\xaf\x39\xac\xd8\x4a\x80\x39"
  23879. "\x7b\x72\x8a\xf7",
  23880. .rlen = 44,
  23881. }, {
  23882. .key = "\xab\xd0\xe9\x33\x07\x26\xe5\x83"
  23883. "\x8c\x76\x95\xd4\xb6\xdc\xf3\x46"
  23884. "\xf9\x8f\xad\xe3\x02\x13\x83\x77"
  23885. "\x3f\xb0\xf1\xa1\xa1\x22\x0f\x2b",
  23886. .klen = 32,
  23887. .iv = "\x03\x24\xa7\x8b\x07\xcb\xcc\x0e"
  23888. "\xe6\x33\xbf\xf5\x00\x00\x00\x00",
  23889. .assoc = "\xd4\xdb\x30\x1d\x03\xfe\xfd\x5f"
  23890. "\x87\xd4\x8c\xb6\xb6\xf1\x7a\x5d"
  23891. "\xab\x90\x65\x8d\x8e\xca\x4d\x4f"
  23892. "\x16\x0c\x40\x90\x4b\xc7\x36\x73",
  23893. .alen = 32,
  23894. .input = "\xf5\xc6\x7d\x48\xc1\xb7\xe6\x92"
  23895. "\x97\x5a\xca\xc4\xa9\x6d\xf9\x3d"
  23896. "\x6c\xde\xbc\xf1\x90\xea\x6a\xb2"
  23897. "\x35\x86\x36\xaf\x5c\xfe\x4b\x3a",
  23898. .ilen = 32,
  23899. .result = "\x83\x6f\x40\x87\x72\xcf\xc1\x13"
  23900. "\xef\xbb\x80\x21\x04\x6c\x58\x09"
  23901. "\x07\x1b\xfc\xdf\xc0\x3f\x5b\xc7"
  23902. "\xe0\x79\xa8\x6e\x71\x7c\x3f\xcf"
  23903. "\x5c\xda\xb2\x33\xe5\x13\xe2\x0d"
  23904. "\x74\xd1\xef\xb5\x0f\x3a\xb5\xf8",
  23905. .rlen = 48,
  23906. }
  23907. };
  23908. static struct aead_testvec aes_ccm_dec_tv_template[] = {
  23909. { /* From RFC 3610 */
  23910. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  23911. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  23912. .klen = 16,
  23913. .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
  23914. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  23915. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  23916. .alen = 8,
  23917. .input = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
  23918. "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
  23919. "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
  23920. "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
  23921. .ilen = 31,
  23922. .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  23923. "\x10\x11\x12\x13\x14\x15\x16\x17"
  23924. "\x18\x19\x1a\x1b\x1c\x1d\x1e",
  23925. .rlen = 23,
  23926. }, {
  23927. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  23928. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  23929. .klen = 16,
  23930. .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
  23931. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  23932. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  23933. "\x08\x09\x0a\x0b",
  23934. .alen = 12,
  23935. .input = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
  23936. "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
  23937. "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
  23938. "\x7d\x9c\x2d\x93",
  23939. .ilen = 28,
  23940. .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  23941. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  23942. "\x1c\x1d\x1e\x1f",
  23943. .rlen = 20,
  23944. }, {
  23945. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  23946. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  23947. .klen = 16,
  23948. .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
  23949. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  23950. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
  23951. .alen = 8,
  23952. .input = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
  23953. "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
  23954. "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
  23955. "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
  23956. "\x7e\x5f\x4e",
  23957. .ilen = 35,
  23958. .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  23959. "\x10\x11\x12\x13\x14\x15\x16\x17"
  23960. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  23961. "\x20",
  23962. .rlen = 25,
  23963. }, {
  23964. .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  23965. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
  23966. .klen = 16,
  23967. .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
  23968. "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
  23969. .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
  23970. "\x08\x09\x0a\x0b",
  23971. .alen = 12,
  23972. .input = "\x07\x34\x25\x94\x15\x77\x85\x15"
  23973. "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
  23974. "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
  23975. "\x4d\x99\x99\x88\xdd",
  23976. .ilen = 29,
  23977. .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
  23978. "\x14\x15\x16\x17\x18\x19\x1a\x1b"
  23979. "\x1c\x1d\x1e",
  23980. .rlen = 19,
  23981. }, {
  23982. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  23983. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  23984. .klen = 16,
  23985. .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
  23986. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  23987. .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
  23988. .alen = 8,
  23989. .input = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
  23990. "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
  23991. "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
  23992. "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
  23993. .ilen = 32,
  23994. .result = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
  23995. "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
  23996. "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
  23997. .rlen = 24,
  23998. }, {
  23999. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  24000. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  24001. .klen = 16,
  24002. .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
  24003. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  24004. .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
  24005. "\x20\xea\x60\xc0",
  24006. .alen = 12,
  24007. .input = "\x00\x97\x69\xec\xab\xdf\x48\x62"
  24008. "\x55\x94\xc5\x92\x51\xe6\x03\x57"
  24009. "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
  24010. "\x5a\xe0\x70\x45\x51",
  24011. .ilen = 29,
  24012. .result = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
  24013. "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
  24014. "\x3a\x80\x3b\xa8\x7f",
  24015. .rlen = 21,
  24016. }, {
  24017. .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
  24018. "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
  24019. .klen = 16,
  24020. .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
  24021. "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
  24022. .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
  24023. .alen = 8,
  24024. .input = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
  24025. "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
  24026. "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
  24027. "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
  24028. "\xba",
  24029. .ilen = 33,
  24030. .result = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
  24031. "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
  24032. "\x98\x09\xd6\x7d\xbe\xdd\x18",
  24033. .rlen = 23,
  24034. }, {
  24035. /* This is taken from FIPS CAVS. */
  24036. .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
  24037. "\xff\x80\x2e\x48\x7d\x82\xf8\xb9",
  24038. .klen = 16,
  24039. .iv = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab"
  24040. "\xd8\xa6\xb2\xd8\x00\x00\x00\x00",
  24041. .alen = 0,
  24042. .input = "\xd5\xe8\x93\x9f\xc7\x89\x2e\x2b",
  24043. .ilen = 8,
  24044. .result = "\x00",
  24045. .rlen = 0,
  24046. .novrfy = 1,
  24047. }, {
  24048. .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
  24049. "\xff\x80\x2e\x48\x7d\x82\xf8\xb9",
  24050. .klen = 16,
  24051. .iv = "\x03\xaf\x94\x87\x78\x35\x82\x81"
  24052. "\x7f\x88\x94\x68\x00\x00\x00\x00",
  24053. .alen = 0,
  24054. .input = "\x41\x3c\xb8\x87\x73\xcb\xf3\xf3",
  24055. .ilen = 8,
  24056. .result = "\x00",
  24057. .rlen = 0,
  24058. }, {
  24059. .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
  24060. "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8",
  24061. .klen = 16,
  24062. .iv = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab"
  24063. "\xd8\xa6\xb2\xd8\x00\x00\x00\x00",
  24064. .assoc = "\xf3\x94\x87\x78\x35\x82\x81\x7f"
  24065. "\x88\x94\x68\xb1\x78\x6b\x2b\xd6"
  24066. "\x04\x1f\x4e\xed\x78\xd5\x33\x66"
  24067. "\xd8\x94\x99\x91\x81\x54\x62\x57",
  24068. .alen = 32,
  24069. .input = "\xf0\x7c\x29\x02\xae\x1c\x2f\x55"
  24070. "\xd0\xd1\x3d\x1a\xa3\x6d\xe4\x0a"
  24071. "\x86\xb0\x87\x6b\x62\x33\x8c\x34"
  24072. "\xce\xab\x57\xcc\x79\x0b\xe0\x6f"
  24073. "\x5c\x3e\x48\x1f\x6c\x46\xf7\x51"
  24074. "\x8b\x84\x83\x2a\xc1\x05\xb8\xc5",
  24075. .ilen = 48,
  24076. .result = "\x50\x82\x3e\x07\xe2\x1e\xb6\xfb"
  24077. "\x33\xe4\x73\xce\xd2\xfb\x95\x79"
  24078. "\xe8\xb4\xb5\x77\x11\x10\x62\x6f"
  24079. "\x6a\x82\xd1\x13\xec\xf5\xd0\x48",
  24080. .rlen = 32,
  24081. .novrfy = 1,
  24082. }, {
  24083. .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
  24084. "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8",
  24085. .klen = 16,
  24086. .iv = "\x03\x05\xe0\xc9\x0f\xed\x34\xea"
  24087. "\x97\xd4\x3b\xdf\x00\x00\x00\x00",
  24088. .assoc = "\x49\x5c\x50\x1f\x1d\x94\xcc\x81"
  24089. "\xba\xb7\xb6\x03\xaf\xa5\xc1\xa1"
  24090. "\xd8\x5c\x42\x68\xe0\x6c\xda\x89"
  24091. "\x05\xac\x56\xac\x1b\x2a\xd3\x86",
  24092. .alen = 32,
  24093. .input = "\x39\xbe\x7d\x15\x62\x77\xf3\x3c"
  24094. "\xad\x83\x52\x6d\x71\x03\x25\x1c"
  24095. "\xed\x81\x3a\x9a\x16\x7d\x19\x80"
  24096. "\x72\x04\x72\xd0\xf6\xff\x05\x0f"
  24097. "\xb7\x14\x30\x00\x32\x9e\xa0\xa6"
  24098. "\x9e\x5a\x18\xa1\xb8\xfe\xdb\xd3",
  24099. .ilen = 48,
  24100. .result = "\x75\x05\xbe\xc2\xd9\x1e\xde\x60"
  24101. "\x47\x3d\x8c\x7d\xbd\xb5\xd9\xb7"
  24102. "\xf2\xae\x61\x05\x8f\x82\x24\x3f"
  24103. "\x9c\x67\x91\xe1\x38\x4f\xe4\x0c",
  24104. .rlen = 32,
  24105. }, {
  24106. .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
  24107. "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
  24108. "\xa4\x48\x93\x39\x26\x71\x4a\xc6",
  24109. .klen = 24,
  24110. .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
  24111. "\x57\xba\xfd\x9e\x00\x00\x00\x00",
  24112. .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
  24113. "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
  24114. "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
  24115. "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
  24116. .alen = 32,
  24117. .input = "\x71\x99\xfa\xf4\x44\x12\x68\x9b",
  24118. .ilen = 8,
  24119. .result = "\x00",
  24120. .rlen = 0,
  24121. }, {
  24122. .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
  24123. "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
  24124. "\x29\xa0\xba\x9e\x48\x78\xd1\xba",
  24125. .klen = 24,
  24126. .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
  24127. "\x57\xba\xfd\x9e\x00\x00\x00\x00",
  24128. .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
  24129. "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
  24130. "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
  24131. "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
  24132. .alen = 32,
  24133. .input = "\xfb\xe5\x5d\x34\xbe\xe5\xe8\xe7"
  24134. "\x5a\xef\x2f\xbf\x1f\x7f\xd4\xb2"
  24135. "\x66\xca\x61\x1e\x96\x7a\x61\xb3"
  24136. "\x1c\x16\x45\x52\xba\x04\x9c\x9f"
  24137. "\xb1\xd2\x40\xbc\x52\x7c\x6f\xb1",
  24138. .ilen = 40,
  24139. .result = "\x85\x34\x66\x42\xc8\x92\x0f\x36"
  24140. "\x58\xe0\x6b\x91\x3c\x98\x5c\xbb"
  24141. "\x0a\x85\xcc\x02\xad\x7a\x96\xe9"
  24142. "\x65\x43\xa4\xc3\x0f\xdc\x55\x81",
  24143. .rlen = 32,
  24144. }, {
  24145. .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
  24146. "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
  24147. "\x29\xa0\xba\x9e\x48\x78\xd1\xba",
  24148. .klen = 24,
  24149. .iv = "\x03\xd1\xfc\x57\x9c\xfe\xb8\x9c"
  24150. "\xad\x71\xaa\x1f\x00\x00\x00\x00",
  24151. .assoc = "\x86\x67\xa5\xa9\x14\x5f\x0d\xc6"
  24152. "\xff\x14\xc7\x44\xbf\x6c\x3a\xc3"
  24153. "\xff\xb6\x81\xbd\xe2\xd5\x06\xc7"
  24154. "\x3c\xa1\x52\x13\x03\x8a\x23\x3a",
  24155. .alen = 32,
  24156. .input = "\x3f\x66\xb0\x9d\xe5\x4b\x38\x00"
  24157. "\xc6\x0e\x6e\xe5\xd6\x98\xa6\x37"
  24158. "\x8c\x26\x33\xc6\xb2\xa2\x17\xfa"
  24159. "\x64\x19\xc0\x30\xd7\xfc\x14\x6b"
  24160. "\xe3\x33\xc2\x04\xb0\x37\xbe\x3f"
  24161. "\xa9\xb4\x2d\x68\x03\xa3\x44\xef",
  24162. .ilen = 48,
  24163. .result = "\x02\x87\x4d\x28\x80\x6e\xb2\xed"
  24164. "\x99\x2a\xa8\xca\x04\x25\x45\x90"
  24165. "\x1d\xdd\x5a\xd9\xe4\xdb\x9c\x9c"
  24166. "\x49\xe9\x01\xfe\xa7\x80\x6d\x6b",
  24167. .rlen = 32,
  24168. .novrfy = 1,
  24169. }, {
  24170. .key = "\xa4\x4b\x54\x29\x0a\xb8\x6d\x01"
  24171. "\x5b\x80\x2a\xcf\x25\xc4\xb7\x5c"
  24172. "\x20\x2c\xad\x30\xc2\x2b\x41\xfb"
  24173. "\x0e\x85\xbc\x33\xad\x0f\x2b\xff",
  24174. .klen = 32,
  24175. .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
  24176. "\x57\xba\xfd\x9e\x00\x00\x00\x00",
  24177. .alen = 0,
  24178. .input = "\x1f\xb8\x8f\xa3\xdd\x54\x00\xf2",
  24179. .ilen = 8,
  24180. .result = "\x00",
  24181. .rlen = 0,
  24182. }, {
  24183. .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
  24184. "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
  24185. "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
  24186. "\xae\x8f\x11\x4c\xc2\x9c\x4a\xbb",
  24187. .klen = 32,
  24188. .iv = "\x03\x85\x34\x66\x42\xc8\x92\x0f"
  24189. "\x36\x58\xe0\x6b\x00\x00\x00\x00",
  24190. .alen = 0,
  24191. .input = "\x48\x01\x5e\x02\x24\x04\x66\x47"
  24192. "\xa1\xea\x6f\xaf\xe8\xfc\xfb\xdd"
  24193. "\xa5\xa9\x87\x8d\x84\xee\x2e\x77"
  24194. "\xbb\x86\xb9\xf5\x5c\x6c\xff\xf6"
  24195. "\x72\xc3\x8e\xf7\x70\xb1\xb2\x07"
  24196. "\xbc\xa8\xa3\xbd\x83\x7c\x1d\x2a",
  24197. .ilen = 48,
  24198. .result = "\xdc\x56\xf2\x71\xb0\xb1\xa0\x6c"
  24199. "\xf0\x97\x3a\xfb\x6d\xe7\x32\x99"
  24200. "\x3e\xaf\x70\x5e\xb2\x4d\xea\x39"
  24201. "\x89\xd4\x75\x7a\x63\xb1\xda\x93",
  24202. .rlen = 32,
  24203. .novrfy = 1,
  24204. }, {
  24205. .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
  24206. "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
  24207. "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
  24208. "\x0d\x1a\x53\x3b\xb5\xe3\xf8\x8b",
  24209. .klen = 32,
  24210. .iv = "\x03\xcf\x76\x3f\xd9\x95\x75\x8f"
  24211. "\x44\x89\x40\x7b\x00\x00\x00\x00",
  24212. .assoc = "\x8f\x86\x6c\x4d\x1d\xc5\x39\x88"
  24213. "\xc8\xf3\x5c\x52\x10\x63\x6f\x2b"
  24214. "\x8a\x2a\xc5\x6f\x30\x23\x58\x7b"
  24215. "\xfb\x36\x03\x11\xb4\xd9\xf2\xfe",
  24216. .alen = 32,
  24217. .input = "\x48\x58\xd6\xf3\xad\x63\x58\xbf"
  24218. "\xae\xc7\x5e\xae\x83\x8f\x7b\xe4"
  24219. "\x78\x5c\x4c\x67\x71\x89\x94\xbf"
  24220. "\x47\xf1\x63\x7e\x1c\x59\xbd\xc5"
  24221. "\x7f\x44\x0a\x0c\x01\x18\x07\x92"
  24222. "\xe1\xd3\x51\xce\x32\x6d\x0c\x5b",
  24223. .ilen = 48,
  24224. .result = "\xc2\x54\xc8\xde\x78\x87\x77\x40"
  24225. "\x49\x71\xe4\xb7\xe7\xcb\x76\x61"
  24226. "\x0a\x41\xb9\xe9\xc0\x76\x54\xab"
  24227. "\x04\x49\x3b\x19\x93\x57\x25\x5d",
  24228. .rlen = 32,
  24229. },
  24230. };
  24231. /*
  24232. * rfc4309 refers to section 8 of rfc3610 for test vectors, but they all
  24233. * use a 13-byte nonce, we only support an 11-byte nonce. Worse,
  24234. * they use AD lengths which are not valid ESP header lengths.
  24235. *
  24236. * These vectors are copied/generated from the ones for rfc4106 with
  24237. * the key truncated by one byte..
  24238. */
  24239. static struct aead_testvec aes_ccm_rfc4309_enc_tv_template[] = {
  24240. { /* Generated using Crypto++ */
  24241. .key = zeroed_string,
  24242. .klen = 19,
  24243. .iv = zeroed_string,
  24244. .input = zeroed_string,
  24245. .ilen = 16,
  24246. .assoc = zeroed_string,
  24247. .alen = 16,
  24248. .result = "\x2E\x9A\xCA\x6B\xDA\x54\xFC\x6F"
  24249. "\x12\x50\xE8\xDE\x81\x3C\x63\x08"
  24250. "\x1A\x22\xBA\x75\xEE\xD4\xD5\xB5"
  24251. "\x27\x50\x01\xAC\x03\x33\x39\xFB",
  24252. .rlen = 32,
  24253. },{
  24254. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  24255. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  24256. "\x00\x00\x00",
  24257. .klen = 19,
  24258. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
  24259. .input = zeroed_string,
  24260. .ilen = 16,
  24261. .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
  24262. "\x00\x00\x00\x00\x00\x00\x00\x01",
  24263. .alen = 16,
  24264. .result = "\xCF\xB9\x99\x17\xC8\x86\x0E\x7F"
  24265. "\x7E\x76\xF8\xE6\xF8\xCC\x1F\x17"
  24266. "\x6A\xE0\x53\x9F\x4B\x73\x7E\xDA"
  24267. "\x08\x09\x4E\xC4\x1E\xAD\xC6\xB0",
  24268. .rlen = 32,
  24269. }, {
  24270. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  24271. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  24272. "\x00\x00\x00",
  24273. .klen = 19,
  24274. .iv = zeroed_string,
  24275. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  24276. "\x01\x01\x01\x01\x01\x01\x01\x01",
  24277. .ilen = 16,
  24278. .assoc = zeroed_string,
  24279. .alen = 16,
  24280. .result = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
  24281. "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
  24282. "\xA1\xE2\xC2\x42\x2B\x81\x70\x40"
  24283. "\xFD\x7F\x76\xD1\x03\x07\xBB\x0C",
  24284. .rlen = 32,
  24285. }, {
  24286. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  24287. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  24288. "\x00\x00\x00",
  24289. .klen = 19,
  24290. .iv = zeroed_string,
  24291. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  24292. "\x01\x01\x01\x01\x01\x01\x01\x01",
  24293. .ilen = 16,
  24294. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
  24295. "\x00\x00\x00\x00\x00\x00\x00\x00",
  24296. .alen = 16,
  24297. .result = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
  24298. "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
  24299. "\x5B\xC0\x73\xE0\x2B\x73\x68\xC9"
  24300. "\x2D\x8C\x58\xC2\x90\x3D\xB0\x3E",
  24301. .rlen = 32,
  24302. }, {
  24303. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  24304. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  24305. "\x00\x00\x00",
  24306. .klen = 19,
  24307. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
  24308. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  24309. "\x01\x01\x01\x01\x01\x01\x01\x01",
  24310. .ilen = 16,
  24311. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
  24312. "\x00\x00\x00\x00\x00\x00\x00\x01",
  24313. .alen = 16,
  24314. .result = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
  24315. "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
  24316. "\x43\x8E\x76\x57\x3B\xB4\x05\xE8"
  24317. "\xA9\x9B\xBF\x25\xE0\x4F\xC0\xED",
  24318. .rlen = 32,
  24319. }, {
  24320. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  24321. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  24322. "\x00\x00\x00",
  24323. .klen = 19,
  24324. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
  24325. .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
  24326. "\x01\x01\x01\x01\x01\x01\x01\x01"
  24327. "\x01\x01\x01\x01\x01\x01\x01\x01"
  24328. "\x01\x01\x01\x01\x01\x01\x01\x01"
  24329. "\x01\x01\x01\x01\x01\x01\x01\x01"
  24330. "\x01\x01\x01\x01\x01\x01\x01\x01"
  24331. "\x01\x01\x01\x01\x01\x01\x01\x01"
  24332. "\x01\x01\x01\x01\x01\x01\x01\x01",
  24333. .ilen = 64,
  24334. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
  24335. "\x00\x00\x00\x00\x00\x00\x00\x01",
  24336. .alen = 16,
  24337. .result = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
  24338. "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
  24339. "\x9C\xA4\x97\x83\x3F\x01\xA5\xF4"
  24340. "\x43\x09\xE7\xB8\xE9\xD1\xD7\x02"
  24341. "\x9B\xAB\x39\x18\xEB\x94\x34\x36"
  24342. "\xE6\xC5\xC8\x9B\x00\x81\x9E\x49"
  24343. "\x1D\x78\xE1\x48\xE3\xE9\xEA\x8E"
  24344. "\x3A\x2B\x67\x5D\x35\x6A\x0F\xDB"
  24345. "\x02\x73\xDD\xE7\x30\x4A\x30\x54"
  24346. "\x1A\x9D\x09\xCA\xC8\x1C\x32\x5F",
  24347. .rlen = 80,
  24348. }, {
  24349. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  24350. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  24351. "\x00\x00\x00",
  24352. .klen = 19,
  24353. .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
  24354. .input = "\xff\xff\xff\xff\xff\xff\xff\xff"
  24355. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24356. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24357. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24358. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24359. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24360. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24361. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24362. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24363. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24364. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24365. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24366. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24367. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24368. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24369. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24370. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24371. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24372. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24373. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24374. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24375. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24376. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24377. "\xff\xff\xff\xff\xff\xff\xff\xff",
  24378. .ilen = 192,
  24379. .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  24380. "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
  24381. "\x89\xab\xcd\xef",
  24382. .alen = 20,
  24383. .result = "\x64\x17\xDC\x24\x9D\x92\xBA\x5E"
  24384. "\x7C\x64\x6D\x33\x46\x77\xAC\xB1"
  24385. "\x5C\x9E\xE2\xC7\x27\x11\x3E\x95"
  24386. "\x7D\xBE\x28\xC8\xC1\xCA\x5E\x8C"
  24387. "\xB4\xE2\xDE\x9F\x53\x59\x26\xDB"
  24388. "\x0C\xD4\xE4\x07\x9A\xE6\x3E\x01"
  24389. "\x58\x0D\x3E\x3D\xD5\x21\xEB\x04"
  24390. "\x06\x9D\x5F\xB9\x02\x49\x1A\x2B"
  24391. "\xBA\xF0\x4E\x3B\x85\x50\x5B\x09"
  24392. "\xFE\xEC\xFC\x54\xEC\x0C\xE2\x79"
  24393. "\x8A\x2F\x5F\xD7\x05\x5D\xF1\x6D"
  24394. "\x22\xEB\xD1\x09\x80\x3F\x5A\x70"
  24395. "\xB2\xB9\xD3\x63\x99\xC2\x4D\x1B"
  24396. "\x36\x12\x00\x89\xAA\x5D\x55\xDA"
  24397. "\x1D\x5B\xD8\x3C\x5F\x09\xD2\xE6"
  24398. "\x39\x41\x5C\xF0\xBE\x26\x4E\x5F"
  24399. "\x2B\x50\x44\x52\xC2\x10\x7D\x38"
  24400. "\x82\x64\x83\x0C\xAE\x49\xD0\xE5"
  24401. "\x4F\xE5\x66\x4C\x58\x7A\xEE\x43"
  24402. "\x3B\x51\xFE\xBA\x24\x8A\xFE\xDC"
  24403. "\x19\x6D\x60\x66\x61\xF9\x9A\x3F"
  24404. "\x75\xFC\x38\x53\x5B\xB5\xCD\x52"
  24405. "\x4F\xE5\xE4\xC9\xFE\x10\xCB\x98"
  24406. "\xF0\x06\x5B\x07\xAB\xBB\xF4\x0E"
  24407. "\x2D\xC2\xDD\x5D\xDD\x22\x9A\xCC"
  24408. "\x39\xAB\x63\xA5\x3D\x9C\x51\x8A",
  24409. .rlen = 208,
  24410. }, { /* From draft-mcgrew-gcm-test-01 */
  24411. .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
  24412. "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
  24413. "\x2E\x44\x3B",
  24414. .klen = 19,
  24415. .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
  24416. .input = "\x45\x00\x00\x48\x69\x9A\x00\x00"
  24417. "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
  24418. "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
  24419. "\x38\xD3\x01\x00\x00\x01\x00\x00"
  24420. "\x00\x00\x00\x00\x04\x5F\x73\x69"
  24421. "\x70\x04\x5F\x75\x64\x70\x03\x73"
  24422. "\x69\x70\x09\x63\x79\x62\x65\x72"
  24423. "\x63\x69\x74\x79\x02\x64\x6B\x00"
  24424. "\x00\x21\x00\x01\x01\x02\x02\x01",
  24425. .ilen = 72,
  24426. .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
  24427. "\x00\x00\x00\x00\x49\x56\xED\x7E"
  24428. "\x3B\x24\x4C\xFE",
  24429. .alen = 20,
  24430. .result = "\x89\xBA\x3E\xEF\xE6\xD6\xCF\xDB"
  24431. "\x83\x60\xF5\xBA\x3A\x56\x79\xE6"
  24432. "\x7E\x0C\x53\xCF\x9E\x87\xE0\x4E"
  24433. "\x1A\x26\x01\x24\xC7\x2E\x3D\xBF"
  24434. "\x29\x2C\x91\xC1\xB8\xA8\xCF\xE0"
  24435. "\x39\xF8\x53\x6D\x31\x22\x2B\xBF"
  24436. "\x98\x81\xFC\x34\xEE\x85\x36\xCD"
  24437. "\x26\xDB\x6C\x7A\x0C\x77\x8A\x35"
  24438. "\x18\x85\x54\xB2\xBC\xDD\x3F\x43"
  24439. "\x61\x06\x8A\xDF\x86\x3F\xB4\xAC"
  24440. "\x97\xDC\xBD\xFD\x92\x10\xC5\xFF",
  24441. .rlen = 88,
  24442. }, {
  24443. .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
  24444. "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
  24445. "\xCA\xFE\xBA",
  24446. .klen = 19,
  24447. .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  24448. .input = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
  24449. "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
  24450. "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
  24451. "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
  24452. "\x00\x01\x00\x00\x00\x00\x00\x00"
  24453. "\x03\x73\x69\x70\x09\x63\x79\x62"
  24454. "\x65\x72\x63\x69\x74\x79\x02\x64"
  24455. "\x6B\x00\x00\x01\x00\x01\x00\x01",
  24456. .ilen = 64,
  24457. .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
  24458. "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  24459. .alen = 16,
  24460. .result = "\x4B\xC2\x70\x60\x64\xD2\xF3\xC8"
  24461. "\xE5\x26\x8A\xDE\xB8\x7E\x7D\x16"
  24462. "\x56\xC7\xD2\x88\xBA\x8D\x58\xAF"
  24463. "\xF5\x71\xB6\x37\x84\xA7\xB1\x99"
  24464. "\x51\x5C\x0D\xA0\x27\xDE\xE7\x2D"
  24465. "\xEF\x25\x88\x1F\x1D\x77\x11\xFF"
  24466. "\xDB\xED\xEE\x56\x16\xC5\x5C\x9B"
  24467. "\x00\x62\x1F\x68\x4E\x7C\xA0\x97"
  24468. "\x10\x72\x7E\x53\x13\x3B\x68\xE4"
  24469. "\x30\x99\x91\x79\x09\xEA\xFF\x6A",
  24470. .rlen = 80,
  24471. }, {
  24472. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  24473. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  24474. "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  24475. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  24476. "\x11\x22\x33",
  24477. .klen = 35,
  24478. .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
  24479. .input = "\x45\x00\x00\x30\x69\xA6\x40\x00"
  24480. "\x80\x06\x26\x90\xC0\xA8\x01\x02"
  24481. "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
  24482. "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
  24483. "\x70\x02\x40\x00\x20\xBF\x00\x00"
  24484. "\x02\x04\x05\xB4\x01\x01\x04\x02"
  24485. "\x01\x02\x02\x01",
  24486. .ilen = 52,
  24487. .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
  24488. "\x01\x02\x03\x04\x05\x06\x07\x08",
  24489. .alen = 16,
  24490. .result = "\xD6\x31\x0D\x2B\x3D\x6F\xBD\x2F"
  24491. "\x58\x41\x7E\xFF\x9A\x9E\x09\xB4"
  24492. "\x1A\xF7\xF6\x42\x31\xCD\xBF\xAD"
  24493. "\x27\x0E\x2C\xF2\xDB\x10\xDF\x55"
  24494. "\x8F\x0D\xD7\xAC\x23\xBD\x42\x10"
  24495. "\xD0\xB2\xAF\xD8\x37\xAC\x6B\x0B"
  24496. "\x11\xD4\x0B\x12\xEC\xB4\xB1\x92"
  24497. "\x23\xA6\x10\xB0\x26\xD6\xD9\x26"
  24498. "\x5A\x48\x6A\x3E",
  24499. .rlen = 68,
  24500. }, {
  24501. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  24502. "\x00\x00\x00\x00\x00\x00\x00\x00"
  24503. "\x00\x00\x00",
  24504. .klen = 19,
  24505. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  24506. .input = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
  24507. "\x80\x01\xCB\x7A\x40\x67\x93\x18"
  24508. "\x01\x01\x01\x01\x08\x00\x07\x5C"
  24509. "\x02\x00\x44\x00\x61\x62\x63\x64"
  24510. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  24511. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  24512. "\x75\x76\x77\x61\x62\x63\x64\x65"
  24513. "\x66\x67\x68\x69\x01\x02\x02\x01",
  24514. .ilen = 64,
  24515. .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
  24516. "\x00\x00\x00\x00\x00\x00\x00\x00",
  24517. .alen = 16,
  24518. .result = "\x6B\x9A\xCA\x57\x43\x91\xFC\x6F"
  24519. "\x92\x51\x23\xA4\xC1\x5B\xF0\x10"
  24520. "\xF3\x13\xF4\xF8\xA1\x9A\xB4\xDC"
  24521. "\x89\xC8\xF8\x42\x62\x95\xB7\xCB"
  24522. "\xB8\xF5\x0F\x1B\x2E\x94\xA2\xA7"
  24523. "\xBF\xFB\x8A\x92\x13\x63\xD1\x3C"
  24524. "\x08\xF5\xE8\xA6\xAA\xF6\x34\xF9"
  24525. "\x42\x05\xAF\xB3\xE7\x9A\xFC\xEE"
  24526. "\x36\x25\xC1\x10\x12\x1C\xCA\x82"
  24527. "\xEA\xE6\x63\x5A\x57\x28\xA9\x9A",
  24528. .rlen = 80,
  24529. }, {
  24530. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  24531. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  24532. "\x57\x69\x0E",
  24533. .klen = 19,
  24534. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  24535. .input = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
  24536. "\x80\x01\xCB\x7C\x40\x67\x93\x18"
  24537. "\x01\x01\x01\x01\x08\x00\x08\x5C"
  24538. "\x02\x00\x43\x00\x61\x62\x63\x64"
  24539. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  24540. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  24541. "\x75\x76\x77\x61\x62\x63\x64\x65"
  24542. "\x66\x67\x68\x69\x01\x02\x02\x01",
  24543. .ilen = 64,
  24544. .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
  24545. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  24546. "\xA2\xFC\xA1\xA3",
  24547. .alen = 20,
  24548. .result = "\x6A\x6B\x45\x2B\x7C\x67\x52\xF6"
  24549. "\x10\x60\x40\x62\x6B\x4F\x97\x8E"
  24550. "\x0B\xB2\x22\x97\xCB\x21\xE0\x90"
  24551. "\xA2\xE7\xD1\x41\x30\xE4\x4B\x1B"
  24552. "\x79\x01\x58\x50\x01\x06\xE1\xE0"
  24553. "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
  24554. "\x30\xB8\xE5\xDF\xD7\x12\x56\x75"
  24555. "\xD0\x95\xB7\xB8\x91\x42\xF7\xFD"
  24556. "\x97\x57\xCA\xC1\x20\xD0\x86\xB9"
  24557. "\x66\x9D\xB4\x2B\x96\x22\xAC\x67",
  24558. .rlen = 80,
  24559. }, {
  24560. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  24561. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  24562. "\x57\x69\x0E",
  24563. .klen = 19,
  24564. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  24565. .input = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
  24566. "\x80\x01\x44\x1F\x40\x67\x93\xB6"
  24567. "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
  24568. "\x01\x02\x02\x01",
  24569. .ilen = 28,
  24570. .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
  24571. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  24572. "\xA2\xFC\xA1\xA3",
  24573. .alen = 20,
  24574. .result = "\x6A\x6B\x45\x0B\xA7\x06\x52\xF6"
  24575. "\x10\x60\xCF\x01\x6B\x4F\x97\x20"
  24576. "\xEA\xB3\x23\x94\xC9\x21\x1D\x33"
  24577. "\xA1\xE5\x90\x40\x05\x37\x45\x70"
  24578. "\xB5\xD6\x09\x0A\x23\x73\x33\xF9"
  24579. "\x08\xB4\x22\xE4",
  24580. .rlen = 44,
  24581. }, {
  24582. .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
  24583. "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
  24584. "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
  24585. "\xCA\xFE\xBA",
  24586. .klen = 27,
  24587. .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  24588. .input = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
  24589. "\x40\x06\x78\x80\x0A\x01\x03\x8F"
  24590. "\x0A\x01\x06\x12\x80\x23\x06\xB8"
  24591. "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
  24592. "\x50\x10\x16\xD0\x75\x68\x00\x01",
  24593. .ilen = 40,
  24594. .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
  24595. "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  24596. .alen = 16,
  24597. .result = "\x05\x22\x15\xD1\x52\x56\x85\x04"
  24598. "\xA8\x5C\x5D\x6D\x7E\x6E\xF5\xFA"
  24599. "\xEA\x16\x37\x50\xF3\xDF\x84\x3B"
  24600. "\x2F\x32\x18\x57\x34\x2A\x8C\x23"
  24601. "\x67\xDF\x6D\x35\x7B\x54\x0D\xFB"
  24602. "\x34\xA5\x9F\x6C\x48\x30\x1E\x22"
  24603. "\xFE\xB1\x22\x17\x17\x8A\xB9\x5B",
  24604. .rlen = 56,
  24605. }, {
  24606. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  24607. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  24608. "\xDE\xCA\xF8",
  24609. .klen = 19,
  24610. .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
  24611. .input = "\x45\x00\x00\x49\x33\xBA\x00\x00"
  24612. "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
  24613. "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
  24614. "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
  24615. "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
  24616. "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
  24617. "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
  24618. "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
  24619. "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
  24620. "\x23\x01\x01\x01",
  24621. .ilen = 76,
  24622. .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
  24623. "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
  24624. "\xCE\xFA\xCE\x74",
  24625. .alen = 20,
  24626. .result = "\x92\xD0\x53\x79\x33\x38\xD5\xF3"
  24627. "\x7D\xE4\x7A\x8E\x86\x03\xC9\x90"
  24628. "\x96\x35\xAB\x9C\xFB\xE8\xA3\x76"
  24629. "\xE9\xE9\xE2\xD1\x2E\x11\x0E\x00"
  24630. "\xFA\xCE\xB5\x9E\x02\xA7\x7B\xEA"
  24631. "\x71\x9A\x58\xFB\xA5\x8A\xE1\xB7"
  24632. "\x9C\x39\x9D\xE3\xB5\x6E\x69\xE6"
  24633. "\x63\xC9\xDB\x05\x69\x51\x12\xAD"
  24634. "\x3E\x00\x32\x73\x86\xF2\xEE\xF5"
  24635. "\x0F\xE8\x81\x7E\x84\xD3\xC0\x0D"
  24636. "\x76\xD6\x55\xC6\xB4\xC2\x34\xC7"
  24637. "\x12\x25\x0B\xF9",
  24638. .rlen = 92,
  24639. }, {
  24640. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  24641. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  24642. "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  24643. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  24644. "\x73\x61\x6C",
  24645. .klen = 35,
  24646. .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
  24647. .input = "\x45\x08\x00\x28\x73\x2C\x00\x00"
  24648. "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
  24649. "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
  24650. "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
  24651. "\x50\x10\x1F\x64\x6D\x54\x00\x01",
  24652. .ilen = 40,
  24653. .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
  24654. "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
  24655. "\x69\x76\x65\x63",
  24656. .alen = 20,
  24657. .result = "\xCC\x74\xB7\xD3\xB0\x38\x50\x42"
  24658. "\x2C\x64\x87\x46\x1E\x34\x10\x05"
  24659. "\x29\x6B\xBB\x36\xE9\x69\xAD\x92"
  24660. "\x82\xA1\x10\x6A\xEB\x0F\xDC\x7D"
  24661. "\x08\xBA\xF3\x91\xCA\xAA\x61\xDA"
  24662. "\x62\xF4\x14\x61\x5C\x9D\xB5\xA7"
  24663. "\xEE\xD7\xB9\x7E\x87\x99\x9B\x7D",
  24664. .rlen = 56,
  24665. }, {
  24666. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  24667. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  24668. "\x57\x69\x0E",
  24669. .klen = 19,
  24670. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  24671. .input = "\x45\x00\x00\x49\x33\x3E\x00\x00"
  24672. "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
  24673. "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
  24674. "\x00\x35\xCB\x45\x80\x03\x02\x5B"
  24675. "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
  24676. "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
  24677. "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
  24678. "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
  24679. "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
  24680. "\x15\x01\x01\x01",
  24681. .ilen = 76,
  24682. .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
  24683. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  24684. "\xA2\xFC\xA1\xA3",
  24685. .alen = 20,
  24686. .result = "\x6A\x6B\x45\x5E\xD6\x9A\x52\xF6"
  24687. "\xEF\x70\x1A\x9C\xE8\xD3\x19\x86"
  24688. "\xC8\x02\xF0\xB0\x03\x09\xD9\x02"
  24689. "\xA0\xD2\x59\x04\xD1\x85\x2A\x24"
  24690. "\x1C\x67\x3E\xD8\x68\x72\x06\x94"
  24691. "\x97\xBA\x4F\x76\x8D\xB0\x44\x5B"
  24692. "\x69\xBF\xD5\xE2\x3D\xF1\x0B\x0C"
  24693. "\xC0\xBF\xB1\x8F\x70\x09\x9E\xCE"
  24694. "\xA5\xF2\x55\x58\x84\xFA\xF9\xB5"
  24695. "\x23\xF4\x84\x40\x74\x14\x8A\x6B"
  24696. "\xDB\xD7\x67\xED\xA4\x93\xF3\x47"
  24697. "\xCC\xF7\x46\x6F",
  24698. .rlen = 92,
  24699. }, {
  24700. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  24701. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  24702. "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  24703. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  24704. "\x73\x61\x6C",
  24705. .klen = 35,
  24706. .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
  24707. .input = "\x63\x69\x73\x63\x6F\x01\x72\x75"
  24708. "\x6C\x65\x73\x01\x74\x68\x65\x01"
  24709. "\x6E\x65\x74\x77\x65\x01\x64\x65"
  24710. "\x66\x69\x6E\x65\x01\x74\x68\x65"
  24711. "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
  24712. "\x67\x69\x65\x73\x01\x74\x68\x61"
  24713. "\x74\x77\x69\x6C\x6C\x01\x64\x65"
  24714. "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
  24715. "\x72\x72\x6F\x77\x01\x02\x02\x01",
  24716. .ilen = 72,
  24717. .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
  24718. "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
  24719. "\x69\x76\x65\x63",
  24720. .alen = 20,
  24721. .result = "\xEA\x15\xC4\x98\xAC\x15\x22\x37"
  24722. "\x00\x07\x1D\xBE\x60\x5D\x73\x16"
  24723. "\x4D\x0F\xCC\xCE\x8A\xD0\x49\xD4"
  24724. "\x39\xA3\xD1\xB1\x21\x0A\x92\x1A"
  24725. "\x2C\xCF\x8F\x9D\xC9\x91\x0D\xB4"
  24726. "\x15\xFC\xBC\xA5\xC5\xBF\x54\xE5"
  24727. "\x1C\xC7\x32\x41\x07\x7B\x2C\xB6"
  24728. "\x5C\x23\x7C\x93\xEA\xEF\x23\x1C"
  24729. "\x73\xF4\xE7\x12\x84\x4C\x37\x0A"
  24730. "\x4A\x8F\x06\x37\x48\xF9\xF9\x05"
  24731. "\x55\x13\x40\xC3\xD5\x55\x3A\x3D",
  24732. .rlen = 88,
  24733. }, {
  24734. .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
  24735. "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
  24736. "\xD9\x66\x42",
  24737. .klen = 19,
  24738. .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
  24739. .input = "\x01\x02\x02\x01",
  24740. .ilen = 4,
  24741. .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
  24742. "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
  24743. .alen = 16,
  24744. .result = "\x4C\x72\x63\x30\x2F\xE6\x56\xDD"
  24745. "\xD0\xD8\x60\x9D\x8B\xEF\x85\x90"
  24746. "\xF7\x61\x24\x62",
  24747. .rlen = 20,
  24748. }, {
  24749. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  24750. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  24751. "\xDE\xCA\xF8",
  24752. .klen = 19,
  24753. .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
  24754. .input = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
  24755. "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
  24756. "\x62\x65\x00\x01",
  24757. .ilen = 20,
  24758. .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
  24759. "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
  24760. "\xCE\xFA\xCE\x74",
  24761. .alen = 20,
  24762. .result = "\xA3\xBF\x52\x52\x65\x83\xBA\x81"
  24763. "\x03\x9B\x84\xFC\x44\x8C\xBB\x81"
  24764. "\x36\xE1\x78\xBB\xA5\x49\x3A\xD0"
  24765. "\xF0\x6B\x21\xAF\x98\xC0\x34\xDC"
  24766. "\x17\x17\x65\xAD",
  24767. .rlen = 36,
  24768. }, {
  24769. .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
  24770. "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
  24771. "\x61\x61\x6E\x64\x64\x6F\x69\x74"
  24772. "\x62\x65\x66\x6F\x72\x65\x69\x61"
  24773. "\x74\x75\x72",
  24774. .klen = 35,
  24775. .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
  24776. .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
  24777. "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
  24778. "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
  24779. "\x02\x00\x07\x00\x61\x62\x63\x64"
  24780. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  24781. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  24782. "\x01\x02\x02\x01",
  24783. .ilen = 52,
  24784. .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
  24785. "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
  24786. "\x67\x65\x74\x6D",
  24787. .alen = 20,
  24788. .result = "\x96\xFD\x86\xF8\xD1\x98\xFF\x10"
  24789. "\xAB\x8C\xDA\x8A\x5A\x08\x38\x1A"
  24790. "\x48\x59\x80\x18\x1A\x18\x1A\x04"
  24791. "\xC9\x0D\xE3\xE7\x0E\xA4\x0B\x75"
  24792. "\x92\x9C\x52\x5C\x0B\xFB\xF8\xAF"
  24793. "\x16\xC3\x35\xA8\xE7\xCE\x84\x04"
  24794. "\xEB\x40\x6B\x7A\x8E\x75\xBB\x42"
  24795. "\xE0\x63\x4B\x21\x44\xA2\x2B\x2B"
  24796. "\x39\xDB\xC8\xDC",
  24797. .rlen = 68,
  24798. }, {
  24799. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  24800. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  24801. "\x57\x69\x0E",
  24802. .klen = 19,
  24803. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  24804. .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
  24805. "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
  24806. "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
  24807. "\x02\x00\x07\x00\x61\x62\x63\x64"
  24808. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  24809. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  24810. "\x01\x02\x02\x01",
  24811. .ilen = 52,
  24812. .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
  24813. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  24814. "\xA2\xFC\xA1\xA3",
  24815. .alen = 20,
  24816. .result = "\x6A\x6B\x45\x27\x3F\x9E\x52\xF6"
  24817. "\x10\x60\x54\x25\xEB\x80\x04\x93"
  24818. "\xCA\x1B\x23\x97\xCB\x21\x2E\x01"
  24819. "\xA2\xE7\x95\x41\x30\xE4\x4B\x1B"
  24820. "\x79\x01\x58\x50\x01\x06\xE1\xE0"
  24821. "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
  24822. "\x44\xCC\x90\xBF\x00\x94\x94\x92"
  24823. "\x20\x17\x0C\x1B\x55\xDE\x7E\x68"
  24824. "\xF4\x95\x5D\x4F",
  24825. .rlen = 68,
  24826. }, {
  24827. .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
  24828. "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
  24829. "\x22\x43\x3C",
  24830. .klen = 19,
  24831. .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
  24832. .input = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
  24833. "\x61\x62\x63\x64\x65\x66\x67\x68"
  24834. "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
  24835. "\x71\x72\x73\x74\x01\x02\x02\x01",
  24836. .ilen = 32,
  24837. .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
  24838. "\x00\x00\x00\x07\x48\x55\xEC\x7D"
  24839. "\x3A\x23\x4B\xFD",
  24840. .alen = 20,
  24841. .result = "\x67\xE9\x28\xB3\x1C\xA4\x6D\x02"
  24842. "\xF0\xB5\x37\xB6\x6B\x2F\xF5\x4F"
  24843. "\xF8\xA3\x4C\x53\xB8\x12\x09\xBF"
  24844. "\x58\x7D\xCF\x29\xA3\x41\x68\x6B"
  24845. "\xCE\xE8\x79\x85\x3C\xB0\x3A\x8F"
  24846. "\x16\xB0\xA1\x26\xC9\xBC\xBC\xA6",
  24847. .rlen = 48,
  24848. }
  24849. };
  24850. static struct aead_testvec aes_ccm_rfc4309_dec_tv_template[] = {
  24851. { /* Generated using Crypto++ */
  24852. .key = zeroed_string,
  24853. .klen = 19,
  24854. .iv = zeroed_string,
  24855. .result = zeroed_string,
  24856. .rlen = 16,
  24857. .assoc = zeroed_string,
  24858. .alen = 16,
  24859. .input = "\x2E\x9A\xCA\x6B\xDA\x54\xFC\x6F"
  24860. "\x12\x50\xE8\xDE\x81\x3C\x63\x08"
  24861. "\x1A\x22\xBA\x75\xEE\xD4\xD5\xB5"
  24862. "\x27\x50\x01\xAC\x03\x33\x39\xFB",
  24863. .ilen = 32,
  24864. },{
  24865. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  24866. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  24867. "\x00\x00\x00",
  24868. .klen = 19,
  24869. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
  24870. .result = zeroed_string,
  24871. .rlen = 16,
  24872. .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
  24873. "\x00\x00\x00\x00\x00\x00\x00\x01",
  24874. .alen = 16,
  24875. .input = "\xCF\xB9\x99\x17\xC8\x86\x0E\x7F"
  24876. "\x7E\x76\xF8\xE6\xF8\xCC\x1F\x17"
  24877. "\x6A\xE0\x53\x9F\x4B\x73\x7E\xDA"
  24878. "\x08\x09\x4E\xC4\x1E\xAD\xC6\xB0",
  24879. .ilen = 32,
  24880. }, {
  24881. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  24882. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  24883. "\x00\x00\x00",
  24884. .klen = 19,
  24885. .iv = zeroed_string,
  24886. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  24887. "\x01\x01\x01\x01\x01\x01\x01\x01",
  24888. .rlen = 16,
  24889. .assoc = zeroed_string,
  24890. .alen = 16,
  24891. .input = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
  24892. "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
  24893. "\xA1\xE2\xC2\x42\x2B\x81\x70\x40"
  24894. "\xFD\x7F\x76\xD1\x03\x07\xBB\x0C",
  24895. .ilen = 32,
  24896. }, {
  24897. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  24898. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  24899. "\x00\x00\x00",
  24900. .klen = 19,
  24901. .iv = zeroed_string,
  24902. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  24903. "\x01\x01\x01\x01\x01\x01\x01\x01",
  24904. .rlen = 16,
  24905. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
  24906. "\x00\x00\x00\x00\x00\x00\x00\x00",
  24907. .alen = 16,
  24908. .input = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
  24909. "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
  24910. "\x5B\xC0\x73\xE0\x2B\x73\x68\xC9"
  24911. "\x2D\x8C\x58\xC2\x90\x3D\xB0\x3E",
  24912. .ilen = 32,
  24913. }, {
  24914. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  24915. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  24916. "\x00\x00\x00",
  24917. .klen = 19,
  24918. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
  24919. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  24920. "\x01\x01\x01\x01\x01\x01\x01\x01",
  24921. .rlen = 16,
  24922. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
  24923. "\x00\x00\x00\x00\x00\x00\x00\x01",
  24924. .alen = 16,
  24925. .input = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
  24926. "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
  24927. "\x43\x8E\x76\x57\x3B\xB4\x05\xE8"
  24928. "\xA9\x9B\xBF\x25\xE0\x4F\xC0\xED",
  24929. .ilen = 32,
  24930. }, {
  24931. .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
  24932. "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
  24933. "\x00\x00\x00",
  24934. .klen = 19,
  24935. .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
  24936. .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
  24937. "\x01\x01\x01\x01\x01\x01\x01\x01"
  24938. "\x01\x01\x01\x01\x01\x01\x01\x01"
  24939. "\x01\x01\x01\x01\x01\x01\x01\x01"
  24940. "\x01\x01\x01\x01\x01\x01\x01\x01"
  24941. "\x01\x01\x01\x01\x01\x01\x01\x01"
  24942. "\x01\x01\x01\x01\x01\x01\x01\x01"
  24943. "\x01\x01\x01\x01\x01\x01\x01\x01",
  24944. .rlen = 64,
  24945. .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
  24946. "\x00\x00\x00\x00\x00\x00\x00\x01",
  24947. .alen = 16,
  24948. .input = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
  24949. "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
  24950. "\x9C\xA4\x97\x83\x3F\x01\xA5\xF4"
  24951. "\x43\x09\xE7\xB8\xE9\xD1\xD7\x02"
  24952. "\x9B\xAB\x39\x18\xEB\x94\x34\x36"
  24953. "\xE6\xC5\xC8\x9B\x00\x81\x9E\x49"
  24954. "\x1D\x78\xE1\x48\xE3\xE9\xEA\x8E"
  24955. "\x3A\x2B\x67\x5D\x35\x6A\x0F\xDB"
  24956. "\x02\x73\xDD\xE7\x30\x4A\x30\x54"
  24957. "\x1A\x9D\x09\xCA\xC8\x1C\x32\x5F",
  24958. .ilen = 80,
  24959. }, {
  24960. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  24961. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  24962. "\x00\x00\x00",
  24963. .klen = 19,
  24964. .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
  24965. .result = "\xff\xff\xff\xff\xff\xff\xff\xff"
  24966. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24967. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24968. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24969. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24970. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24971. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24972. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24973. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24974. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24975. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24976. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24977. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24978. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24979. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24980. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24981. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24982. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24983. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24984. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24985. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24986. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24987. "\xff\xff\xff\xff\xff\xff\xff\xff"
  24988. "\xff\xff\xff\xff\xff\xff\xff\xff",
  24989. .rlen = 192,
  24990. .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
  24991. "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
  24992. "\x89\xab\xcd\xef",
  24993. .alen = 20,
  24994. .input = "\x64\x17\xDC\x24\x9D\x92\xBA\x5E"
  24995. "\x7C\x64\x6D\x33\x46\x77\xAC\xB1"
  24996. "\x5C\x9E\xE2\xC7\x27\x11\x3E\x95"
  24997. "\x7D\xBE\x28\xC8\xC1\xCA\x5E\x8C"
  24998. "\xB4\xE2\xDE\x9F\x53\x59\x26\xDB"
  24999. "\x0C\xD4\xE4\x07\x9A\xE6\x3E\x01"
  25000. "\x58\x0D\x3E\x3D\xD5\x21\xEB\x04"
  25001. "\x06\x9D\x5F\xB9\x02\x49\x1A\x2B"
  25002. "\xBA\xF0\x4E\x3B\x85\x50\x5B\x09"
  25003. "\xFE\xEC\xFC\x54\xEC\x0C\xE2\x79"
  25004. "\x8A\x2F\x5F\xD7\x05\x5D\xF1\x6D"
  25005. "\x22\xEB\xD1\x09\x80\x3F\x5A\x70"
  25006. "\xB2\xB9\xD3\x63\x99\xC2\x4D\x1B"
  25007. "\x36\x12\x00\x89\xAA\x5D\x55\xDA"
  25008. "\x1D\x5B\xD8\x3C\x5F\x09\xD2\xE6"
  25009. "\x39\x41\x5C\xF0\xBE\x26\x4E\x5F"
  25010. "\x2B\x50\x44\x52\xC2\x10\x7D\x38"
  25011. "\x82\x64\x83\x0C\xAE\x49\xD0\xE5"
  25012. "\x4F\xE5\x66\x4C\x58\x7A\xEE\x43"
  25013. "\x3B\x51\xFE\xBA\x24\x8A\xFE\xDC"
  25014. "\x19\x6D\x60\x66\x61\xF9\x9A\x3F"
  25015. "\x75\xFC\x38\x53\x5B\xB5\xCD\x52"
  25016. "\x4F\xE5\xE4\xC9\xFE\x10\xCB\x98"
  25017. "\xF0\x06\x5B\x07\xAB\xBB\xF4\x0E"
  25018. "\x2D\xC2\xDD\x5D\xDD\x22\x9A\xCC"
  25019. "\x39\xAB\x63\xA5\x3D\x9C\x51\x8A",
  25020. .ilen = 208,
  25021. }, { /* From draft-mcgrew-gcm-test-01 */
  25022. .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
  25023. "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
  25024. "\x2E\x44\x3B",
  25025. .klen = 19,
  25026. .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
  25027. .result = "\x45\x00\x00\x48\x69\x9A\x00\x00"
  25028. "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
  25029. "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
  25030. "\x38\xD3\x01\x00\x00\x01\x00\x00"
  25031. "\x00\x00\x00\x00\x04\x5F\x73\x69"
  25032. "\x70\x04\x5F\x75\x64\x70\x03\x73"
  25033. "\x69\x70\x09\x63\x79\x62\x65\x72"
  25034. "\x63\x69\x74\x79\x02\x64\x6B\x00"
  25035. "\x00\x21\x00\x01\x01\x02\x02\x01",
  25036. .rlen = 72,
  25037. .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
  25038. "\x00\x00\x00\x00\x49\x56\xED\x7E"
  25039. "\x3B\x24\x4C\xFE",
  25040. .alen = 20,
  25041. .input = "\x89\xBA\x3E\xEF\xE6\xD6\xCF\xDB"
  25042. "\x83\x60\xF5\xBA\x3A\x56\x79\xE6"
  25043. "\x7E\x0C\x53\xCF\x9E\x87\xE0\x4E"
  25044. "\x1A\x26\x01\x24\xC7\x2E\x3D\xBF"
  25045. "\x29\x2C\x91\xC1\xB8\xA8\xCF\xE0"
  25046. "\x39\xF8\x53\x6D\x31\x22\x2B\xBF"
  25047. "\x98\x81\xFC\x34\xEE\x85\x36\xCD"
  25048. "\x26\xDB\x6C\x7A\x0C\x77\x8A\x35"
  25049. "\x18\x85\x54\xB2\xBC\xDD\x3F\x43"
  25050. "\x61\x06\x8A\xDF\x86\x3F\xB4\xAC"
  25051. "\x97\xDC\xBD\xFD\x92\x10\xC5\xFF",
  25052. .ilen = 88,
  25053. }, {
  25054. .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
  25055. "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
  25056. "\xCA\xFE\xBA",
  25057. .klen = 19,
  25058. .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  25059. .result = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
  25060. "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
  25061. "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
  25062. "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
  25063. "\x00\x01\x00\x00\x00\x00\x00\x00"
  25064. "\x03\x73\x69\x70\x09\x63\x79\x62"
  25065. "\x65\x72\x63\x69\x74\x79\x02\x64"
  25066. "\x6B\x00\x00\x01\x00\x01\x00\x01",
  25067. .rlen = 64,
  25068. .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
  25069. "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  25070. .alen = 16,
  25071. .input = "\x4B\xC2\x70\x60\x64\xD2\xF3\xC8"
  25072. "\xE5\x26\x8A\xDE\xB8\x7E\x7D\x16"
  25073. "\x56\xC7\xD2\x88\xBA\x8D\x58\xAF"
  25074. "\xF5\x71\xB6\x37\x84\xA7\xB1\x99"
  25075. "\x51\x5C\x0D\xA0\x27\xDE\xE7\x2D"
  25076. "\xEF\x25\x88\x1F\x1D\x77\x11\xFF"
  25077. "\xDB\xED\xEE\x56\x16\xC5\x5C\x9B"
  25078. "\x00\x62\x1F\x68\x4E\x7C\xA0\x97"
  25079. "\x10\x72\x7E\x53\x13\x3B\x68\xE4"
  25080. "\x30\x99\x91\x79\x09\xEA\xFF\x6A",
  25081. .ilen = 80,
  25082. }, {
  25083. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  25084. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  25085. "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  25086. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  25087. "\x11\x22\x33",
  25088. .klen = 35,
  25089. .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
  25090. .result = "\x45\x00\x00\x30\x69\xA6\x40\x00"
  25091. "\x80\x06\x26\x90\xC0\xA8\x01\x02"
  25092. "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
  25093. "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
  25094. "\x70\x02\x40\x00\x20\xBF\x00\x00"
  25095. "\x02\x04\x05\xB4\x01\x01\x04\x02"
  25096. "\x01\x02\x02\x01",
  25097. .rlen = 52,
  25098. .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
  25099. "\x01\x02\x03\x04\x05\x06\x07\x08",
  25100. .alen = 16,
  25101. .input = "\xD6\x31\x0D\x2B\x3D\x6F\xBD\x2F"
  25102. "\x58\x41\x7E\xFF\x9A\x9E\x09\xB4"
  25103. "\x1A\xF7\xF6\x42\x31\xCD\xBF\xAD"
  25104. "\x27\x0E\x2C\xF2\xDB\x10\xDF\x55"
  25105. "\x8F\x0D\xD7\xAC\x23\xBD\x42\x10"
  25106. "\xD0\xB2\xAF\xD8\x37\xAC\x6B\x0B"
  25107. "\x11\xD4\x0B\x12\xEC\xB4\xB1\x92"
  25108. "\x23\xA6\x10\xB0\x26\xD6\xD9\x26"
  25109. "\x5A\x48\x6A\x3E",
  25110. .ilen = 68,
  25111. }, {
  25112. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  25113. "\x00\x00\x00\x00\x00\x00\x00\x00"
  25114. "\x00\x00\x00",
  25115. .klen = 19,
  25116. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  25117. .result = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
  25118. "\x80\x01\xCB\x7A\x40\x67\x93\x18"
  25119. "\x01\x01\x01\x01\x08\x00\x07\x5C"
  25120. "\x02\x00\x44\x00\x61\x62\x63\x64"
  25121. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  25122. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  25123. "\x75\x76\x77\x61\x62\x63\x64\x65"
  25124. "\x66\x67\x68\x69\x01\x02\x02\x01",
  25125. .rlen = 64,
  25126. .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
  25127. "\x00\x00\x00\x00\x00\x00\x00\x00",
  25128. .alen = 16,
  25129. .input = "\x6B\x9A\xCA\x57\x43\x91\xFC\x6F"
  25130. "\x92\x51\x23\xA4\xC1\x5B\xF0\x10"
  25131. "\xF3\x13\xF4\xF8\xA1\x9A\xB4\xDC"
  25132. "\x89\xC8\xF8\x42\x62\x95\xB7\xCB"
  25133. "\xB8\xF5\x0F\x1B\x2E\x94\xA2\xA7"
  25134. "\xBF\xFB\x8A\x92\x13\x63\xD1\x3C"
  25135. "\x08\xF5\xE8\xA6\xAA\xF6\x34\xF9"
  25136. "\x42\x05\xAF\xB3\xE7\x9A\xFC\xEE"
  25137. "\x36\x25\xC1\x10\x12\x1C\xCA\x82"
  25138. "\xEA\xE6\x63\x5A\x57\x28\xA9\x9A",
  25139. .ilen = 80,
  25140. }, {
  25141. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  25142. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  25143. "\x57\x69\x0E",
  25144. .klen = 19,
  25145. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  25146. .result = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
  25147. "\x80\x01\xCB\x7C\x40\x67\x93\x18"
  25148. "\x01\x01\x01\x01\x08\x00\x08\x5C"
  25149. "\x02\x00\x43\x00\x61\x62\x63\x64"
  25150. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  25151. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  25152. "\x75\x76\x77\x61\x62\x63\x64\x65"
  25153. "\x66\x67\x68\x69\x01\x02\x02\x01",
  25154. .rlen = 64,
  25155. .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
  25156. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  25157. "\xA2\xFC\xA1\xA3",
  25158. .alen = 20,
  25159. .input = "\x6A\x6B\x45\x2B\x7C\x67\x52\xF6"
  25160. "\x10\x60\x40\x62\x6B\x4F\x97\x8E"
  25161. "\x0B\xB2\x22\x97\xCB\x21\xE0\x90"
  25162. "\xA2\xE7\xD1\x41\x30\xE4\x4B\x1B"
  25163. "\x79\x01\x58\x50\x01\x06\xE1\xE0"
  25164. "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
  25165. "\x30\xB8\xE5\xDF\xD7\x12\x56\x75"
  25166. "\xD0\x95\xB7\xB8\x91\x42\xF7\xFD"
  25167. "\x97\x57\xCA\xC1\x20\xD0\x86\xB9"
  25168. "\x66\x9D\xB4\x2B\x96\x22\xAC\x67",
  25169. .ilen = 80,
  25170. }, {
  25171. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  25172. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  25173. "\x57\x69\x0E",
  25174. .klen = 19,
  25175. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  25176. .result = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
  25177. "\x80\x01\x44\x1F\x40\x67\x93\xB6"
  25178. "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
  25179. "\x01\x02\x02\x01",
  25180. .rlen = 28,
  25181. .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
  25182. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  25183. "\xA2\xFC\xA1\xA3",
  25184. .alen = 20,
  25185. .input = "\x6A\x6B\x45\x0B\xA7\x06\x52\xF6"
  25186. "\x10\x60\xCF\x01\x6B\x4F\x97\x20"
  25187. "\xEA\xB3\x23\x94\xC9\x21\x1D\x33"
  25188. "\xA1\xE5\x90\x40\x05\x37\x45\x70"
  25189. "\xB5\xD6\x09\x0A\x23\x73\x33\xF9"
  25190. "\x08\xB4\x22\xE4",
  25191. .ilen = 44,
  25192. }, {
  25193. .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
  25194. "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
  25195. "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
  25196. "\xCA\xFE\xBA",
  25197. .klen = 27,
  25198. .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  25199. .result = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
  25200. "\x40\x06\x78\x80\x0A\x01\x03\x8F"
  25201. "\x0A\x01\x06\x12\x80\x23\x06\xB8"
  25202. "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
  25203. "\x50\x10\x16\xD0\x75\x68\x00\x01",
  25204. .rlen = 40,
  25205. .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
  25206. "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
  25207. .alen = 16,
  25208. .input = "\x05\x22\x15\xD1\x52\x56\x85\x04"
  25209. "\xA8\x5C\x5D\x6D\x7E\x6E\xF5\xFA"
  25210. "\xEA\x16\x37\x50\xF3\xDF\x84\x3B"
  25211. "\x2F\x32\x18\x57\x34\x2A\x8C\x23"
  25212. "\x67\xDF\x6D\x35\x7B\x54\x0D\xFB"
  25213. "\x34\xA5\x9F\x6C\x48\x30\x1E\x22"
  25214. "\xFE\xB1\x22\x17\x17\x8A\xB9\x5B",
  25215. .ilen = 56,
  25216. }, {
  25217. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  25218. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  25219. "\xDE\xCA\xF8",
  25220. .klen = 19,
  25221. .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
  25222. .result = "\x45\x00\x00\x49\x33\xBA\x00\x00"
  25223. "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
  25224. "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
  25225. "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
  25226. "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
  25227. "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
  25228. "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
  25229. "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
  25230. "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
  25231. "\x23\x01\x01\x01",
  25232. .rlen = 76,
  25233. .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
  25234. "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
  25235. "\xCE\xFA\xCE\x74",
  25236. .alen = 20,
  25237. .input = "\x92\xD0\x53\x79\x33\x38\xD5\xF3"
  25238. "\x7D\xE4\x7A\x8E\x86\x03\xC9\x90"
  25239. "\x96\x35\xAB\x9C\xFB\xE8\xA3\x76"
  25240. "\xE9\xE9\xE2\xD1\x2E\x11\x0E\x00"
  25241. "\xFA\xCE\xB5\x9E\x02\xA7\x7B\xEA"
  25242. "\x71\x9A\x58\xFB\xA5\x8A\xE1\xB7"
  25243. "\x9C\x39\x9D\xE3\xB5\x6E\x69\xE6"
  25244. "\x63\xC9\xDB\x05\x69\x51\x12\xAD"
  25245. "\x3E\x00\x32\x73\x86\xF2\xEE\xF5"
  25246. "\x0F\xE8\x81\x7E\x84\xD3\xC0\x0D"
  25247. "\x76\xD6\x55\xC6\xB4\xC2\x34\xC7"
  25248. "\x12\x25\x0B\xF9",
  25249. .ilen = 92,
  25250. }, {
  25251. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  25252. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  25253. "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  25254. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  25255. "\x73\x61\x6C",
  25256. .klen = 35,
  25257. .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
  25258. .result = "\x45\x08\x00\x28\x73\x2C\x00\x00"
  25259. "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
  25260. "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
  25261. "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
  25262. "\x50\x10\x1F\x64\x6D\x54\x00\x01",
  25263. .rlen = 40,
  25264. .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
  25265. "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
  25266. "\x69\x76\x65\x63",
  25267. .alen = 20,
  25268. .input = "\xCC\x74\xB7\xD3\xB0\x38\x50\x42"
  25269. "\x2C\x64\x87\x46\x1E\x34\x10\x05"
  25270. "\x29\x6B\xBB\x36\xE9\x69\xAD\x92"
  25271. "\x82\xA1\x10\x6A\xEB\x0F\xDC\x7D"
  25272. "\x08\xBA\xF3\x91\xCA\xAA\x61\xDA"
  25273. "\x62\xF4\x14\x61\x5C\x9D\xB5\xA7"
  25274. "\xEE\xD7\xB9\x7E\x87\x99\x9B\x7D",
  25275. .ilen = 56,
  25276. }, {
  25277. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  25278. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  25279. "\x57\x69\x0E",
  25280. .klen = 19,
  25281. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  25282. .result = "\x45\x00\x00\x49\x33\x3E\x00\x00"
  25283. "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
  25284. "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
  25285. "\x00\x35\xCB\x45\x80\x03\x02\x5B"
  25286. "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
  25287. "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
  25288. "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
  25289. "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
  25290. "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
  25291. "\x15\x01\x01\x01",
  25292. .rlen = 76,
  25293. .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
  25294. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  25295. "\xA2\xFC\xA1\xA3",
  25296. .alen = 20,
  25297. .input = "\x6A\x6B\x45\x5E\xD6\x9A\x52\xF6"
  25298. "\xEF\x70\x1A\x9C\xE8\xD3\x19\x86"
  25299. "\xC8\x02\xF0\xB0\x03\x09\xD9\x02"
  25300. "\xA0\xD2\x59\x04\xD1\x85\x2A\x24"
  25301. "\x1C\x67\x3E\xD8\x68\x72\x06\x94"
  25302. "\x97\xBA\x4F\x76\x8D\xB0\x44\x5B"
  25303. "\x69\xBF\xD5\xE2\x3D\xF1\x0B\x0C"
  25304. "\xC0\xBF\xB1\x8F\x70\x09\x9E\xCE"
  25305. "\xA5\xF2\x55\x58\x84\xFA\xF9\xB5"
  25306. "\x23\xF4\x84\x40\x74\x14\x8A\x6B"
  25307. "\xDB\xD7\x67\xED\xA4\x93\xF3\x47"
  25308. "\xCC\xF7\x46\x6F",
  25309. .ilen = 92,
  25310. }, {
  25311. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  25312. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  25313. "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  25314. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  25315. "\x73\x61\x6C",
  25316. .klen = 35,
  25317. .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
  25318. .result = "\x63\x69\x73\x63\x6F\x01\x72\x75"
  25319. "\x6C\x65\x73\x01\x74\x68\x65\x01"
  25320. "\x6E\x65\x74\x77\x65\x01\x64\x65"
  25321. "\x66\x69\x6E\x65\x01\x74\x68\x65"
  25322. "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
  25323. "\x67\x69\x65\x73\x01\x74\x68\x61"
  25324. "\x74\x77\x69\x6C\x6C\x01\x64\x65"
  25325. "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
  25326. "\x72\x72\x6F\x77\x01\x02\x02\x01",
  25327. .rlen = 72,
  25328. .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
  25329. "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
  25330. "\x69\x76\x65\x63",
  25331. .alen = 20,
  25332. .input = "\xEA\x15\xC4\x98\xAC\x15\x22\x37"
  25333. "\x00\x07\x1D\xBE\x60\x5D\x73\x16"
  25334. "\x4D\x0F\xCC\xCE\x8A\xD0\x49\xD4"
  25335. "\x39\xA3\xD1\xB1\x21\x0A\x92\x1A"
  25336. "\x2C\xCF\x8F\x9D\xC9\x91\x0D\xB4"
  25337. "\x15\xFC\xBC\xA5\xC5\xBF\x54\xE5"
  25338. "\x1C\xC7\x32\x41\x07\x7B\x2C\xB6"
  25339. "\x5C\x23\x7C\x93\xEA\xEF\x23\x1C"
  25340. "\x73\xF4\xE7\x12\x84\x4C\x37\x0A"
  25341. "\x4A\x8F\x06\x37\x48\xF9\xF9\x05"
  25342. "\x55\x13\x40\xC3\xD5\x55\x3A\x3D",
  25343. .ilen = 88,
  25344. }, {
  25345. .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
  25346. "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
  25347. "\xD9\x66\x42",
  25348. .klen = 19,
  25349. .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
  25350. .result = "\x01\x02\x02\x01",
  25351. .rlen = 4,
  25352. .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
  25353. "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
  25354. .alen = 16,
  25355. .input = "\x4C\x72\x63\x30\x2F\xE6\x56\xDD"
  25356. "\xD0\xD8\x60\x9D\x8B\xEF\x85\x90"
  25357. "\xF7\x61\x24\x62",
  25358. .ilen = 20,
  25359. }, {
  25360. .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
  25361. "\x34\x45\x56\x67\x78\x89\x9A\xAB"
  25362. "\xDE\xCA\xF8",
  25363. .klen = 19,
  25364. .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
  25365. .result = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
  25366. "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
  25367. "\x62\x65\x00\x01",
  25368. .rlen = 20,
  25369. .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
  25370. "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
  25371. "\xCE\xFA\xCE\x74",
  25372. .alen = 20,
  25373. .input = "\xA3\xBF\x52\x52\x65\x83\xBA\x81"
  25374. "\x03\x9B\x84\xFC\x44\x8C\xBB\x81"
  25375. "\x36\xE1\x78\xBB\xA5\x49\x3A\xD0"
  25376. "\xF0\x6B\x21\xAF\x98\xC0\x34\xDC"
  25377. "\x17\x17\x65\xAD",
  25378. .ilen = 36,
  25379. }, {
  25380. .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
  25381. "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
  25382. "\x61\x61\x6E\x64\x64\x6F\x69\x74"
  25383. "\x62\x65\x66\x6F\x72\x65\x69\x61"
  25384. "\x74\x75\x72",
  25385. .klen = 35,
  25386. .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
  25387. .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
  25388. "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
  25389. "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
  25390. "\x02\x00\x07\x00\x61\x62\x63\x64"
  25391. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  25392. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  25393. "\x01\x02\x02\x01",
  25394. .rlen = 52,
  25395. .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
  25396. "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
  25397. "\x67\x65\x74\x6D",
  25398. .alen = 20,
  25399. .input = "\x96\xFD\x86\xF8\xD1\x98\xFF\x10"
  25400. "\xAB\x8C\xDA\x8A\x5A\x08\x38\x1A"
  25401. "\x48\x59\x80\x18\x1A\x18\x1A\x04"
  25402. "\xC9\x0D\xE3\xE7\x0E\xA4\x0B\x75"
  25403. "\x92\x9C\x52\x5C\x0B\xFB\xF8\xAF"
  25404. "\x16\xC3\x35\xA8\xE7\xCE\x84\x04"
  25405. "\xEB\x40\x6B\x7A\x8E\x75\xBB\x42"
  25406. "\xE0\x63\x4B\x21\x44\xA2\x2B\x2B"
  25407. "\x39\xDB\xC8\xDC",
  25408. .ilen = 68,
  25409. }, {
  25410. .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
  25411. "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
  25412. "\x57\x69\x0E",
  25413. .klen = 19,
  25414. .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
  25415. .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
  25416. "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
  25417. "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
  25418. "\x02\x00\x07\x00\x61\x62\x63\x64"
  25419. "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
  25420. "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
  25421. "\x01\x02\x02\x01",
  25422. .rlen = 52,
  25423. .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
  25424. "\x10\x10\x10\x10\x4E\x28\x00\x00"
  25425. "\xA2\xFC\xA1\xA3",
  25426. .alen = 20,
  25427. .input = "\x6A\x6B\x45\x27\x3F\x9E\x52\xF6"
  25428. "\x10\x60\x54\x25\xEB\x80\x04\x93"
  25429. "\xCA\x1B\x23\x97\xCB\x21\x2E\x01"
  25430. "\xA2\xE7\x95\x41\x30\xE4\x4B\x1B"
  25431. "\x79\x01\x58\x50\x01\x06\xE1\xE0"
  25432. "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
  25433. "\x44\xCC\x90\xBF\x00\x94\x94\x92"
  25434. "\x20\x17\x0C\x1B\x55\xDE\x7E\x68"
  25435. "\xF4\x95\x5D\x4F",
  25436. .ilen = 68,
  25437. }, {
  25438. .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
  25439. "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
  25440. "\x22\x43\x3C",
  25441. .klen = 19,
  25442. .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
  25443. .result = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
  25444. "\x61\x62\x63\x64\x65\x66\x67\x68"
  25445. "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
  25446. "\x71\x72\x73\x74\x01\x02\x02\x01",
  25447. .rlen = 32,
  25448. .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
  25449. "\x00\x00\x00\x07\x48\x55\xEC\x7D"
  25450. "\x3A\x23\x4B\xFD",
  25451. .alen = 20,
  25452. .input = "\x67\xE9\x28\xB3\x1C\xA4\x6D\x02"
  25453. "\xF0\xB5\x37\xB6\x6B\x2F\xF5\x4F"
  25454. "\xF8\xA3\x4C\x53\xB8\x12\x09\xBF"
  25455. "\x58\x7D\xCF\x29\xA3\x41\x68\x6B"
  25456. "\xCE\xE8\x79\x85\x3C\xB0\x3A\x8F"
  25457. "\x16\xB0\xA1\x26\xC9\xBC\xBC\xA6",
  25458. .ilen = 48,
  25459. }
  25460. };
  25461. /*
  25462. * ChaCha20-Poly1305 AEAD test vectors from RFC7539 2.8.2./A.5.
  25463. */
  25464. #define RFC7539_ENC_TEST_VECTORS 2
  25465. #define RFC7539_DEC_TEST_VECTORS 2
  25466. static struct aead_testvec rfc7539_enc_tv_template[] = {
  25467. {
  25468. .key = "\x80\x81\x82\x83\x84\x85\x86\x87"
  25469. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  25470. "\x90\x91\x92\x93\x94\x95\x96\x97"
  25471. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
  25472. .klen = 32,
  25473. .iv = "\x07\x00\x00\x00\x40\x41\x42\x43"
  25474. "\x44\x45\x46\x47",
  25475. .assoc = "\x50\x51\x52\x53\xc0\xc1\xc2\xc3"
  25476. "\xc4\xc5\xc6\xc7",
  25477. .alen = 12,
  25478. .input = "\x4c\x61\x64\x69\x65\x73\x20\x61"
  25479. "\x6e\x64\x20\x47\x65\x6e\x74\x6c"
  25480. "\x65\x6d\x65\x6e\x20\x6f\x66\x20"
  25481. "\x74\x68\x65\x20\x63\x6c\x61\x73"
  25482. "\x73\x20\x6f\x66\x20\x27\x39\x39"
  25483. "\x3a\x20\x49\x66\x20\x49\x20\x63"
  25484. "\x6f\x75\x6c\x64\x20\x6f\x66\x66"
  25485. "\x65\x72\x20\x79\x6f\x75\x20\x6f"
  25486. "\x6e\x6c\x79\x20\x6f\x6e\x65\x20"
  25487. "\x74\x69\x70\x20\x66\x6f\x72\x20"
  25488. "\x74\x68\x65\x20\x66\x75\x74\x75"
  25489. "\x72\x65\x2c\x20\x73\x75\x6e\x73"
  25490. "\x63\x72\x65\x65\x6e\x20\x77\x6f"
  25491. "\x75\x6c\x64\x20\x62\x65\x20\x69"
  25492. "\x74\x2e",
  25493. .ilen = 114,
  25494. .result = "\xd3\x1a\x8d\x34\x64\x8e\x60\xdb"
  25495. "\x7b\x86\xaf\xbc\x53\xef\x7e\xc2"
  25496. "\xa4\xad\xed\x51\x29\x6e\x08\xfe"
  25497. "\xa9\xe2\xb5\xa7\x36\xee\x62\xd6"
  25498. "\x3d\xbe\xa4\x5e\x8c\xa9\x67\x12"
  25499. "\x82\xfa\xfb\x69\xda\x92\x72\x8b"
  25500. "\x1a\x71\xde\x0a\x9e\x06\x0b\x29"
  25501. "\x05\xd6\xa5\xb6\x7e\xcd\x3b\x36"
  25502. "\x92\xdd\xbd\x7f\x2d\x77\x8b\x8c"
  25503. "\x98\x03\xae\xe3\x28\x09\x1b\x58"
  25504. "\xfa\xb3\x24\xe4\xfa\xd6\x75\x94"
  25505. "\x55\x85\x80\x8b\x48\x31\xd7\xbc"
  25506. "\x3f\xf4\xde\xf0\x8e\x4b\x7a\x9d"
  25507. "\xe5\x76\xd2\x65\x86\xce\xc6\x4b"
  25508. "\x61\x16\x1a\xe1\x0b\x59\x4f\x09"
  25509. "\xe2\x6a\x7e\x90\x2e\xcb\xd0\x60"
  25510. "\x06\x91",
  25511. .rlen = 130,
  25512. }, {
  25513. .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
  25514. "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
  25515. "\x47\x39\x17\xc1\x40\x2b\x80\x09"
  25516. "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
  25517. .klen = 32,
  25518. .iv = "\x00\x00\x00\x00\x01\x02\x03\x04"
  25519. "\x05\x06\x07\x08",
  25520. .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
  25521. "\x00\x00\x4e\x91",
  25522. .alen = 12,
  25523. .input = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
  25524. "\x2d\x44\x72\x61\x66\x74\x73\x20"
  25525. "\x61\x72\x65\x20\x64\x72\x61\x66"
  25526. "\x74\x20\x64\x6f\x63\x75\x6d\x65"
  25527. "\x6e\x74\x73\x20\x76\x61\x6c\x69"
  25528. "\x64\x20\x66\x6f\x72\x20\x61\x20"
  25529. "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
  25530. "\x6f\x66\x20\x73\x69\x78\x20\x6d"
  25531. "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
  25532. "\x64\x20\x6d\x61\x79\x20\x62\x65"
  25533. "\x20\x75\x70\x64\x61\x74\x65\x64"
  25534. "\x2c\x20\x72\x65\x70\x6c\x61\x63"
  25535. "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
  25536. "\x62\x73\x6f\x6c\x65\x74\x65\x64"
  25537. "\x20\x62\x79\x20\x6f\x74\x68\x65"
  25538. "\x72\x20\x64\x6f\x63\x75\x6d\x65"
  25539. "\x6e\x74\x73\x20\x61\x74\x20\x61"
  25540. "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
  25541. "\x20\x49\x74\x20\x69\x73\x20\x69"
  25542. "\x6e\x61\x70\x70\x72\x6f\x70\x72"
  25543. "\x69\x61\x74\x65\x20\x74\x6f\x20"
  25544. "\x75\x73\x65\x20\x49\x6e\x74\x65"
  25545. "\x72\x6e\x65\x74\x2d\x44\x72\x61"
  25546. "\x66\x74\x73\x20\x61\x73\x20\x72"
  25547. "\x65\x66\x65\x72\x65\x6e\x63\x65"
  25548. "\x20\x6d\x61\x74\x65\x72\x69\x61"
  25549. "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
  25550. "\x63\x69\x74\x65\x20\x74\x68\x65"
  25551. "\x6d\x20\x6f\x74\x68\x65\x72\x20"
  25552. "\x74\x68\x61\x6e\x20\x61\x73\x20"
  25553. "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
  25554. "\x20\x69\x6e\x20\x70\x72\x6f\x67"
  25555. "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
  25556. "\x9d",
  25557. .ilen = 265,
  25558. .result = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
  25559. "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
  25560. "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
  25561. "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
  25562. "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
  25563. "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
  25564. "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
  25565. "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
  25566. "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
  25567. "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
  25568. "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
  25569. "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
  25570. "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
  25571. "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
  25572. "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
  25573. "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
  25574. "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
  25575. "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
  25576. "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
  25577. "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
  25578. "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
  25579. "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
  25580. "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
  25581. "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
  25582. "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
  25583. "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
  25584. "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
  25585. "\x73\xa6\x72\x76\x27\x09\x7a\x10"
  25586. "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
  25587. "\xfa\x68\xf0\xff\x77\x98\x71\x30"
  25588. "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
  25589. "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
  25590. "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
  25591. "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
  25592. "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
  25593. "\x38",
  25594. .rlen = 281,
  25595. },
  25596. };
  25597. static struct aead_testvec rfc7539_dec_tv_template[] = {
  25598. {
  25599. .key = "\x80\x81\x82\x83\x84\x85\x86\x87"
  25600. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  25601. "\x90\x91\x92\x93\x94\x95\x96\x97"
  25602. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
  25603. .klen = 32,
  25604. .iv = "\x07\x00\x00\x00\x40\x41\x42\x43"
  25605. "\x44\x45\x46\x47",
  25606. .assoc = "\x50\x51\x52\x53\xc0\xc1\xc2\xc3"
  25607. "\xc4\xc5\xc6\xc7",
  25608. .alen = 12,
  25609. .input = "\xd3\x1a\x8d\x34\x64\x8e\x60\xdb"
  25610. "\x7b\x86\xaf\xbc\x53\xef\x7e\xc2"
  25611. "\xa4\xad\xed\x51\x29\x6e\x08\xfe"
  25612. "\xa9\xe2\xb5\xa7\x36\xee\x62\xd6"
  25613. "\x3d\xbe\xa4\x5e\x8c\xa9\x67\x12"
  25614. "\x82\xfa\xfb\x69\xda\x92\x72\x8b"
  25615. "\x1a\x71\xde\x0a\x9e\x06\x0b\x29"
  25616. "\x05\xd6\xa5\xb6\x7e\xcd\x3b\x36"
  25617. "\x92\xdd\xbd\x7f\x2d\x77\x8b\x8c"
  25618. "\x98\x03\xae\xe3\x28\x09\x1b\x58"
  25619. "\xfa\xb3\x24\xe4\xfa\xd6\x75\x94"
  25620. "\x55\x85\x80\x8b\x48\x31\xd7\xbc"
  25621. "\x3f\xf4\xde\xf0\x8e\x4b\x7a\x9d"
  25622. "\xe5\x76\xd2\x65\x86\xce\xc6\x4b"
  25623. "\x61\x16\x1a\xe1\x0b\x59\x4f\x09"
  25624. "\xe2\x6a\x7e\x90\x2e\xcb\xd0\x60"
  25625. "\x06\x91",
  25626. .ilen = 130,
  25627. .result = "\x4c\x61\x64\x69\x65\x73\x20\x61"
  25628. "\x6e\x64\x20\x47\x65\x6e\x74\x6c"
  25629. "\x65\x6d\x65\x6e\x20\x6f\x66\x20"
  25630. "\x74\x68\x65\x20\x63\x6c\x61\x73"
  25631. "\x73\x20\x6f\x66\x20\x27\x39\x39"
  25632. "\x3a\x20\x49\x66\x20\x49\x20\x63"
  25633. "\x6f\x75\x6c\x64\x20\x6f\x66\x66"
  25634. "\x65\x72\x20\x79\x6f\x75\x20\x6f"
  25635. "\x6e\x6c\x79\x20\x6f\x6e\x65\x20"
  25636. "\x74\x69\x70\x20\x66\x6f\x72\x20"
  25637. "\x74\x68\x65\x20\x66\x75\x74\x75"
  25638. "\x72\x65\x2c\x20\x73\x75\x6e\x73"
  25639. "\x63\x72\x65\x65\x6e\x20\x77\x6f"
  25640. "\x75\x6c\x64\x20\x62\x65\x20\x69"
  25641. "\x74\x2e",
  25642. .rlen = 114,
  25643. }, {
  25644. .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
  25645. "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
  25646. "\x47\x39\x17\xc1\x40\x2b\x80\x09"
  25647. "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
  25648. .klen = 32,
  25649. .iv = "\x00\x00\x00\x00\x01\x02\x03\x04"
  25650. "\x05\x06\x07\x08",
  25651. .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
  25652. "\x00\x00\x4e\x91",
  25653. .alen = 12,
  25654. .input = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
  25655. "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
  25656. "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
  25657. "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
  25658. "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
  25659. "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
  25660. "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
  25661. "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
  25662. "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
  25663. "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
  25664. "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
  25665. "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
  25666. "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
  25667. "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
  25668. "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
  25669. "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
  25670. "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
  25671. "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
  25672. "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
  25673. "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
  25674. "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
  25675. "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
  25676. "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
  25677. "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
  25678. "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
  25679. "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
  25680. "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
  25681. "\x73\xa6\x72\x76\x27\x09\x7a\x10"
  25682. "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
  25683. "\xfa\x68\xf0\xff\x77\x98\x71\x30"
  25684. "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
  25685. "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
  25686. "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
  25687. "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
  25688. "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
  25689. "\x38",
  25690. .ilen = 281,
  25691. .result = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
  25692. "\x2d\x44\x72\x61\x66\x74\x73\x20"
  25693. "\x61\x72\x65\x20\x64\x72\x61\x66"
  25694. "\x74\x20\x64\x6f\x63\x75\x6d\x65"
  25695. "\x6e\x74\x73\x20\x76\x61\x6c\x69"
  25696. "\x64\x20\x66\x6f\x72\x20\x61\x20"
  25697. "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
  25698. "\x6f\x66\x20\x73\x69\x78\x20\x6d"
  25699. "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
  25700. "\x64\x20\x6d\x61\x79\x20\x62\x65"
  25701. "\x20\x75\x70\x64\x61\x74\x65\x64"
  25702. "\x2c\x20\x72\x65\x70\x6c\x61\x63"
  25703. "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
  25704. "\x62\x73\x6f\x6c\x65\x74\x65\x64"
  25705. "\x20\x62\x79\x20\x6f\x74\x68\x65"
  25706. "\x72\x20\x64\x6f\x63\x75\x6d\x65"
  25707. "\x6e\x74\x73\x20\x61\x74\x20\x61"
  25708. "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
  25709. "\x20\x49\x74\x20\x69\x73\x20\x69"
  25710. "\x6e\x61\x70\x70\x72\x6f\x70\x72"
  25711. "\x69\x61\x74\x65\x20\x74\x6f\x20"
  25712. "\x75\x73\x65\x20\x49\x6e\x74\x65"
  25713. "\x72\x6e\x65\x74\x2d\x44\x72\x61"
  25714. "\x66\x74\x73\x20\x61\x73\x20\x72"
  25715. "\x65\x66\x65\x72\x65\x6e\x63\x65"
  25716. "\x20\x6d\x61\x74\x65\x72\x69\x61"
  25717. "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
  25718. "\x63\x69\x74\x65\x20\x74\x68\x65"
  25719. "\x6d\x20\x6f\x74\x68\x65\x72\x20"
  25720. "\x74\x68\x61\x6e\x20\x61\x73\x20"
  25721. "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
  25722. "\x20\x69\x6e\x20\x70\x72\x6f\x67"
  25723. "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
  25724. "\x9d",
  25725. .rlen = 265,
  25726. },
  25727. };
  25728. /*
  25729. * draft-irtf-cfrg-chacha20-poly1305
  25730. */
  25731. #define RFC7539ESP_DEC_TEST_VECTORS 1
  25732. #define RFC7539ESP_ENC_TEST_VECTORS 1
  25733. static struct aead_testvec rfc7539esp_enc_tv_template[] = {
  25734. {
  25735. .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
  25736. "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
  25737. "\x47\x39\x17\xc1\x40\x2b\x80\x09"
  25738. "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
  25739. "\x00\x00\x00\x00",
  25740. .klen = 36,
  25741. .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
  25742. .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
  25743. "\x00\x00\x4e\x91\x01\x02\x03\x04"
  25744. "\x05\x06\x07\x08",
  25745. .alen = 20,
  25746. .input = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
  25747. "\x2d\x44\x72\x61\x66\x74\x73\x20"
  25748. "\x61\x72\x65\x20\x64\x72\x61\x66"
  25749. "\x74\x20\x64\x6f\x63\x75\x6d\x65"
  25750. "\x6e\x74\x73\x20\x76\x61\x6c\x69"
  25751. "\x64\x20\x66\x6f\x72\x20\x61\x20"
  25752. "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
  25753. "\x6f\x66\x20\x73\x69\x78\x20\x6d"
  25754. "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
  25755. "\x64\x20\x6d\x61\x79\x20\x62\x65"
  25756. "\x20\x75\x70\x64\x61\x74\x65\x64"
  25757. "\x2c\x20\x72\x65\x70\x6c\x61\x63"
  25758. "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
  25759. "\x62\x73\x6f\x6c\x65\x74\x65\x64"
  25760. "\x20\x62\x79\x20\x6f\x74\x68\x65"
  25761. "\x72\x20\x64\x6f\x63\x75\x6d\x65"
  25762. "\x6e\x74\x73\x20\x61\x74\x20\x61"
  25763. "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
  25764. "\x20\x49\x74\x20\x69\x73\x20\x69"
  25765. "\x6e\x61\x70\x70\x72\x6f\x70\x72"
  25766. "\x69\x61\x74\x65\x20\x74\x6f\x20"
  25767. "\x75\x73\x65\x20\x49\x6e\x74\x65"
  25768. "\x72\x6e\x65\x74\x2d\x44\x72\x61"
  25769. "\x66\x74\x73\x20\x61\x73\x20\x72"
  25770. "\x65\x66\x65\x72\x65\x6e\x63\x65"
  25771. "\x20\x6d\x61\x74\x65\x72\x69\x61"
  25772. "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
  25773. "\x63\x69\x74\x65\x20\x74\x68\x65"
  25774. "\x6d\x20\x6f\x74\x68\x65\x72\x20"
  25775. "\x74\x68\x61\x6e\x20\x61\x73\x20"
  25776. "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
  25777. "\x20\x69\x6e\x20\x70\x72\x6f\x67"
  25778. "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
  25779. "\x9d",
  25780. .ilen = 265,
  25781. .result = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
  25782. "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
  25783. "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
  25784. "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
  25785. "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
  25786. "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
  25787. "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
  25788. "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
  25789. "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
  25790. "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
  25791. "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
  25792. "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
  25793. "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
  25794. "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
  25795. "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
  25796. "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
  25797. "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
  25798. "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
  25799. "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
  25800. "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
  25801. "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
  25802. "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
  25803. "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
  25804. "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
  25805. "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
  25806. "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
  25807. "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
  25808. "\x73\xa6\x72\x76\x27\x09\x7a\x10"
  25809. "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
  25810. "\xfa\x68\xf0\xff\x77\x98\x71\x30"
  25811. "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
  25812. "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
  25813. "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
  25814. "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
  25815. "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
  25816. "\x38",
  25817. .rlen = 281,
  25818. },
  25819. };
  25820. static struct aead_testvec rfc7539esp_dec_tv_template[] = {
  25821. {
  25822. .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
  25823. "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
  25824. "\x47\x39\x17\xc1\x40\x2b\x80\x09"
  25825. "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
  25826. "\x00\x00\x00\x00",
  25827. .klen = 36,
  25828. .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
  25829. .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
  25830. "\x00\x00\x4e\x91\x01\x02\x03\x04"
  25831. "\x05\x06\x07\x08",
  25832. .alen = 20,
  25833. .input = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
  25834. "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
  25835. "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
  25836. "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
  25837. "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
  25838. "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
  25839. "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
  25840. "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
  25841. "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
  25842. "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
  25843. "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
  25844. "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
  25845. "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
  25846. "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
  25847. "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
  25848. "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
  25849. "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
  25850. "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
  25851. "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
  25852. "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
  25853. "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
  25854. "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
  25855. "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
  25856. "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
  25857. "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
  25858. "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
  25859. "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
  25860. "\x73\xa6\x72\x76\x27\x09\x7a\x10"
  25861. "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
  25862. "\xfa\x68\xf0\xff\x77\x98\x71\x30"
  25863. "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
  25864. "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
  25865. "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
  25866. "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
  25867. "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
  25868. "\x38",
  25869. .ilen = 281,
  25870. .result = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
  25871. "\x2d\x44\x72\x61\x66\x74\x73\x20"
  25872. "\x61\x72\x65\x20\x64\x72\x61\x66"
  25873. "\x74\x20\x64\x6f\x63\x75\x6d\x65"
  25874. "\x6e\x74\x73\x20\x76\x61\x6c\x69"
  25875. "\x64\x20\x66\x6f\x72\x20\x61\x20"
  25876. "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
  25877. "\x6f\x66\x20\x73\x69\x78\x20\x6d"
  25878. "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
  25879. "\x64\x20\x6d\x61\x79\x20\x62\x65"
  25880. "\x20\x75\x70\x64\x61\x74\x65\x64"
  25881. "\x2c\x20\x72\x65\x70\x6c\x61\x63"
  25882. "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
  25883. "\x62\x73\x6f\x6c\x65\x74\x65\x64"
  25884. "\x20\x62\x79\x20\x6f\x74\x68\x65"
  25885. "\x72\x20\x64\x6f\x63\x75\x6d\x65"
  25886. "\x6e\x74\x73\x20\x61\x74\x20\x61"
  25887. "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
  25888. "\x20\x49\x74\x20\x69\x73\x20\x69"
  25889. "\x6e\x61\x70\x70\x72\x6f\x70\x72"
  25890. "\x69\x61\x74\x65\x20\x74\x6f\x20"
  25891. "\x75\x73\x65\x20\x49\x6e\x74\x65"
  25892. "\x72\x6e\x65\x74\x2d\x44\x72\x61"
  25893. "\x66\x74\x73\x20\x61\x73\x20\x72"
  25894. "\x65\x66\x65\x72\x65\x6e\x63\x65"
  25895. "\x20\x6d\x61\x74\x65\x72\x69\x61"
  25896. "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
  25897. "\x63\x69\x74\x65\x20\x74\x68\x65"
  25898. "\x6d\x20\x6f\x74\x68\x65\x72\x20"
  25899. "\x74\x68\x61\x6e\x20\x61\x73\x20"
  25900. "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
  25901. "\x20\x69\x6e\x20\x70\x72\x6f\x67"
  25902. "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
  25903. "\x9d",
  25904. .rlen = 265,
  25905. },
  25906. };
  25907. /*
  25908. * All key wrapping test vectors taken from
  25909. * http://csrc.nist.gov/groups/STM/cavp/documents/mac/kwtestvectors.zip
  25910. *
  25911. * Note: as documented in keywrap.c, the ivout for encryption is the first
  25912. * semiblock of the ciphertext from the test vector. For decryption, iv is
  25913. * the first semiblock of the ciphertext.
  25914. */
  25915. static struct cipher_testvec aes_kw_enc_tv_template[] = {
  25916. {
  25917. .key = "\x75\x75\xda\x3a\x93\x60\x7c\xc2"
  25918. "\xbf\xd8\xce\xc7\xaa\xdf\xd9\xa6",
  25919. .klen = 16,
  25920. .input = "\x42\x13\x6d\x3c\x38\x4a\x3e\xea"
  25921. "\xc9\x5a\x06\x6f\xd2\x8f\xed\x3f",
  25922. .ilen = 16,
  25923. .result = "\xf6\x85\x94\x81\x6f\x64\xca\xa3"
  25924. "\xf5\x6f\xab\xea\x25\x48\xf5\xfb",
  25925. .rlen = 16,
  25926. .iv_out = "\x03\x1f\x6b\xd7\xe6\x1e\x64\x3d",
  25927. },
  25928. };
  25929. static struct cipher_testvec aes_kw_dec_tv_template[] = {
  25930. {
  25931. .key = "\x80\xaa\x99\x73\x27\xa4\x80\x6b"
  25932. "\x6a\x7a\x41\xa5\x2b\x86\xc3\x71"
  25933. "\x03\x86\xf9\x32\x78\x6e\xf7\x96"
  25934. "\x76\xfa\xfb\x90\xb8\x26\x3c\x5f",
  25935. .klen = 32,
  25936. .input = "\xd3\x3d\x3d\x97\x7b\xf0\xa9\x15"
  25937. "\x59\xf9\x9c\x8a\xcd\x29\x3d\x43",
  25938. .ilen = 16,
  25939. .result = "\x0a\x25\x6b\xa7\x5c\xfa\x03\xaa"
  25940. "\xa0\x2b\xa9\x42\x03\xf1\x5b\xaa",
  25941. .rlen = 16,
  25942. .iv = "\x42\x3c\x96\x0d\x8a\x2a\xc4\xc1",
  25943. },
  25944. };
  25945. /*
  25946. * ANSI X9.31 Continuous Pseudo-Random Number Generator (AES mode)
  25947. * test vectors, taken from Appendix B.2.9 and B.2.10:
  25948. * http://csrc.nist.gov/groups/STM/cavp/documents/rng/RNGVS.pdf
  25949. * Only AES-128 is supported at this time.
  25950. */
  25951. #define ANSI_CPRNG_AES_TEST_VECTORS 6
  25952. static struct cprng_testvec ansi_cprng_aes_tv_template[] = {
  25953. {
  25954. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  25955. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  25956. .klen = 16,
  25957. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  25958. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xf9",
  25959. .dtlen = 16,
  25960. .v = "\x80\x00\x00\x00\x00\x00\x00\x00"
  25961. "\x00\x00\x00\x00\x00\x00\x00\x00",
  25962. .vlen = 16,
  25963. .result = "\x59\x53\x1e\xd1\x3b\xb0\xc0\x55"
  25964. "\x84\x79\x66\x85\xc1\x2f\x76\x41",
  25965. .rlen = 16,
  25966. .loops = 1,
  25967. }, {
  25968. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  25969. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  25970. .klen = 16,
  25971. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  25972. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfa",
  25973. .dtlen = 16,
  25974. .v = "\xc0\x00\x00\x00\x00\x00\x00\x00"
  25975. "\x00\x00\x00\x00\x00\x00\x00\x00",
  25976. .vlen = 16,
  25977. .result = "\x7c\x22\x2c\xf4\xca\x8f\xa2\x4c"
  25978. "\x1c\x9c\xb6\x41\xa9\xf3\x22\x0d",
  25979. .rlen = 16,
  25980. .loops = 1,
  25981. }, {
  25982. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  25983. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  25984. .klen = 16,
  25985. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  25986. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfb",
  25987. .dtlen = 16,
  25988. .v = "\xe0\x00\x00\x00\x00\x00\x00\x00"
  25989. "\x00\x00\x00\x00\x00\x00\x00\x00",
  25990. .vlen = 16,
  25991. .result = "\x8a\xaa\x00\x39\x66\x67\x5b\xe5"
  25992. "\x29\x14\x28\x81\xa9\x4d\x4e\xc7",
  25993. .rlen = 16,
  25994. .loops = 1,
  25995. }, {
  25996. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  25997. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  25998. .klen = 16,
  25999. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  26000. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfc",
  26001. .dtlen = 16,
  26002. .v = "\xf0\x00\x00\x00\x00\x00\x00\x00"
  26003. "\x00\x00\x00\x00\x00\x00\x00\x00",
  26004. .vlen = 16,
  26005. .result = "\x88\xdd\xa4\x56\x30\x24\x23\xe5"
  26006. "\xf6\x9d\xa5\x7e\x7b\x95\xc7\x3a",
  26007. .rlen = 16,
  26008. .loops = 1,
  26009. }, {
  26010. .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
  26011. "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
  26012. .klen = 16,
  26013. .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
  26014. "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfd",
  26015. .dtlen = 16,
  26016. .v = "\xf8\x00\x00\x00\x00\x00\x00\x00"
  26017. "\x00\x00\x00\x00\x00\x00\x00\x00",
  26018. .vlen = 16,
  26019. .result = "\x05\x25\x92\x46\x61\x79\xd2\xcb"
  26020. "\x78\xc4\x0b\x14\x0a\x5a\x9a\xc8",
  26021. .rlen = 16,
  26022. .loops = 1,
  26023. }, { /* Monte Carlo Test */
  26024. .key = "\x9f\x5b\x51\x20\x0b\xf3\x34\xb5"
  26025. "\xd8\x2b\xe8\xc3\x72\x55\xc8\x48",
  26026. .klen = 16,
  26027. .dt = "\x63\x76\xbb\xe5\x29\x02\xba\x3b"
  26028. "\x67\xc9\x25\xfa\x70\x1f\x11\xac",
  26029. .dtlen = 16,
  26030. .v = "\x57\x2c\x8e\x76\x87\x26\x47\x97"
  26031. "\x7e\x74\xfb\xdd\xc4\x95\x01\xd1",
  26032. .vlen = 16,
  26033. .result = "\x48\xe9\xbd\x0d\x06\xee\x18\xfb"
  26034. "\xe4\x57\x90\xd5\xc3\xfc\x9b\x73",
  26035. .rlen = 16,
  26036. .loops = 10000,
  26037. },
  26038. };
  26039. /*
  26040. * SP800-90A DRBG Test vectors from
  26041. * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip
  26042. *
  26043. * Test vectors for DRBG with prediction resistance. All types of DRBGs
  26044. * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and
  26045. * w/o personalization string, w/ and w/o additional input string).
  26046. */
  26047. static struct drbg_testvec drbg_pr_sha256_tv_template[] = {
  26048. {
  26049. .entropy = (unsigned char *)
  26050. "\x72\x88\x4c\xcd\x6c\x85\x57\x70\xf7\x0b\x8b\x86"
  26051. "\xc1\xeb\xd2\x4e\x36\x14\xab\x18\xc4\x9c\xc9\xcf"
  26052. "\x1a\xe8\xf7\x7b\x02\x49\x73\xd7\xf1\x42\x7d\xc6"
  26053. "\x3f\x29\x2d\xec\xd3\x66\x51\x3f\x1d\x8d\x5b\x4e",
  26054. .entropylen = 48,
  26055. .entpra = (unsigned char *)
  26056. "\x38\x9c\x91\xfa\xc2\xa3\x46\x89\x56\x08\x3f\x62"
  26057. "\x73\xd5\x22\xa9\x29\x63\x3a\x1d\xe5\x5d\x5e\x4f"
  26058. "\x67\xb0\x67\x7a\x5e\x9e\x0c\x62",
  26059. .entprb = (unsigned char *)
  26060. "\xb2\x8f\x36\xb2\xf6\x8d\x39\x13\xfa\x6c\x66\xcf"
  26061. "\x62\x8a\x7e\x8c\x12\x33\x71\x9c\x69\xe4\xa5\xf0"
  26062. "\x8c\xee\xeb\x9c\xf5\x31\x98\x31",
  26063. .entprlen = 32,
  26064. .expected = (unsigned char *)
  26065. "\x52\x7b\xa3\xad\x71\x77\xa4\x49\x42\x04\x61\xc7"
  26066. "\xf0\xaf\xa5\xfd\xd3\xb3\x0d\x6a\x61\xba\x35\x49"
  26067. "\xbb\xaa\xaf\xe4\x25\x7d\xb5\x48\xaf\x5c\x18\x3d"
  26068. "\x33\x8d\x9d\x45\xdf\x98\xd5\x94\xa8\xda\x92\xfe"
  26069. "\xc4\x3c\x94\x2a\xcf\x7f\x7b\xf2\xeb\x28\xa9\xf1"
  26070. "\xe0\x86\x30\xa8\xfe\xf2\x48\x90\x91\x0c\x75\xb5"
  26071. "\x3c\x00\xf0\x4d\x09\x4f\x40\xa7\xa2\x8c\x52\xdf"
  26072. "\x52\xef\x17\xbf\x3d\xd1\xa2\x31\xb4\xb8\xdc\xe6"
  26073. "\x5b\x0d\x1f\x78\x36\xb4\xe6\x4b\xa7\x11\x25\xd5"
  26074. "\x94\xc6\x97\x36\xab\xf0\xe5\x31\x28\x6a\xbb\xce"
  26075. "\x30\x81\xa6\x8f\x27\x14\xf8\x1c",
  26076. .expectedlen = 128,
  26077. .addtla = NULL,
  26078. .addtlb = NULL,
  26079. .addtllen = 0,
  26080. .pers = NULL,
  26081. .perslen = 0,
  26082. }, {
  26083. .entropy = (unsigned char *)
  26084. "\x5d\xf2\x14\xbc\xf6\xb5\x4e\x0b\xf0\x0d\x6f\x2d"
  26085. "\xe2\x01\x66\x7b\xd0\xa4\x73\xa4\x21\xdd\xb0\xc0"
  26086. "\x51\x79\x09\xf4\xea\xa9\x08\xfa\xa6\x67\xe0\xe1"
  26087. "\xd1\x88\xa8\xad\xee\x69\x74\xb3\x55\x06\x9b\xf6",
  26088. .entropylen = 48,
  26089. .entpra = (unsigned char *)
  26090. "\xef\x48\x06\xa2\xc2\x45\xf1\x44\xfa\x34\x2c\xeb"
  26091. "\x8d\x78\x3c\x09\x8f\x34\x72\x20\xf2\xe7\xfd\x13"
  26092. "\x76\x0a\xf6\xdc\x3c\xf5\xc0\x15",
  26093. .entprb = (unsigned char *)
  26094. "\x4b\xbe\xe5\x24\xed\x6a\x2d\x0c\xdb\x73\x5e\x09"
  26095. "\xf9\xad\x67\x7c\x51\x47\x8b\x6b\x30\x2a\xc6\xde"
  26096. "\x76\xaa\x55\x04\x8b\x0a\x72\x95",
  26097. .entprlen = 32,
  26098. .expected = (unsigned char *)
  26099. "\x3b\x14\x71\x99\xa1\xda\xa0\x42\xe6\xc8\x85\x32"
  26100. "\x70\x20\x32\x53\x9a\xbe\xd1\x1e\x15\xef\xfb\x4c"
  26101. "\x25\x6e\x19\x3a\xf0\xb9\xcb\xde\xf0\x3b\xc6\x18"
  26102. "\x4d\x85\x5a\x9b\xf1\xe3\xc2\x23\x03\x93\x08\xdb"
  26103. "\xa7\x07\x4b\x33\x78\x40\x4d\xeb\x24\xf5\x6e\x81"
  26104. "\x4a\x1b\x6e\xa3\x94\x52\x43\xb0\xaf\x2e\x21\xf4"
  26105. "\x42\x46\x8e\x90\xed\x34\x21\x75\xea\xda\x67\xb6"
  26106. "\xe4\xf6\xff\xc6\x31\x6c\x9a\x5a\xdb\xb3\x97\x13"
  26107. "\x09\xd3\x20\x98\x33\x2d\x6d\xd7\xb5\x6a\xa8\xa9"
  26108. "\x9a\x5b\xd6\x87\x52\xa1\x89\x2b\x4b\x9c\x64\x60"
  26109. "\x50\x47\xa3\x63\x81\x16\xaf\x19",
  26110. .expectedlen = 128,
  26111. .addtla = (unsigned char *)
  26112. "\xbe\x13\xdb\x2a\xe9\xa8\xfe\x09\x97\xe1\xce\x5d"
  26113. "\xe8\xbb\xc0\x7c\x4f\xcb\x62\x19\x3f\x0f\xd2\xad"
  26114. "\xa9\xd0\x1d\x59\x02\xc4\xff\x70",
  26115. .addtlb = (unsigned char *)
  26116. "\x6f\x96\x13\xe2\xa7\xf5\x6c\xfe\xdf\x66\xe3\x31"
  26117. "\x63\x76\xbf\x20\x27\x06\x49\xf1\xf3\x01\x77\x41"
  26118. "\x9f\xeb\xe4\x38\xfe\x67\x00\xcd",
  26119. .addtllen = 32,
  26120. .pers = NULL,
  26121. .perslen = 0,
  26122. }, {
  26123. .entropy = (unsigned char *)
  26124. "\xc6\x1c\xaf\x83\xa2\x56\x38\xf9\xb0\xbc\xd9\x85"
  26125. "\xf5\x2e\xc4\x46\x9c\xe1\xb9\x40\x98\x70\x10\x72"
  26126. "\xd7\x7d\x15\x85\xa1\x83\x5a\x97\xdf\xc8\xa8\xe8"
  26127. "\x03\x4c\xcb\x70\x35\x8b\x90\x94\x46\x8a\x6e\xa1",
  26128. .entropylen = 48,
  26129. .entpra = (unsigned char *)
  26130. "\xc9\x05\xa4\xcf\x28\x80\x4b\x93\x0f\x8b\xc6\xf9"
  26131. "\x09\x41\x58\x74\xe9\xec\x28\xc7\x53\x0a\x73\x60"
  26132. "\xba\x0a\xde\x57\x5b\x4b\x9f\x29",
  26133. .entprb = (unsigned char *)
  26134. "\x4f\x31\xd2\xeb\xac\xfa\xa8\xe2\x01\x7d\xf3\xbd"
  26135. "\x42\xbd\x20\xa0\x30\x65\x74\xd5\x5d\xd2\xad\xa4"
  26136. "\xa9\xeb\x1f\x4d\xf6\xfd\xb8\x26",
  26137. .entprlen = 32,
  26138. .expected = (unsigned char *)
  26139. "\xf6\x13\x05\xcb\x83\x60\x16\x42\x49\x1d\xc6\x25"
  26140. "\x3b\x8c\x31\xa3\xbe\x8b\xbd\x1c\xe2\xec\x1d\xde"
  26141. "\xbb\xbf\xa1\xac\xa8\x9f\x50\xce\x69\xce\xef\xd5"
  26142. "\xd6\xf2\xef\x6a\xf7\x81\x38\xdf\xbc\xa7\x5a\xb9"
  26143. "\xb2\x42\x65\xab\xe4\x86\x8d\x2d\x9d\x59\x99\x2c"
  26144. "\x5a\x0d\x71\x55\x98\xa4\x45\xc2\x8d\xdb\x05\x5e"
  26145. "\x50\x21\xf7\xcd\xe8\x98\x43\xce\x57\x74\x63\x4c"
  26146. "\xf3\xb1\xa5\x14\x1e\x9e\x01\xeb\x54\xd9\x56\xae"
  26147. "\xbd\xb6\x6f\x1a\x47\x6b\x3b\x44\xe4\xa2\xe9\x3c"
  26148. "\x6c\x83\x12\x30\xb8\x78\x7f\x8e\x54\x82\xd4\xfe"
  26149. "\x90\x35\x0d\x4c\x4d\x85\xe7\x13",
  26150. .expectedlen = 128,
  26151. .addtla = NULL,
  26152. .addtlb = NULL,
  26153. .addtllen = 0,
  26154. .pers = (unsigned char *)
  26155. "\xa5\xbf\xac\x4f\x71\xa1\xbb\x67\x94\xc6\x50\xc7"
  26156. "\x2a\x45\x9e\x10\xa8\xed\xf7\x52\x4f\xfe\x21\x90"
  26157. "\xa4\x1b\xe1\xe2\x53\xcc\x61\x47",
  26158. .perslen = 32,
  26159. }, {
  26160. .entropy = (unsigned char *)
  26161. "\xb6\xc1\x8d\xdf\x99\x54\xbe\x95\x10\x48\xd9\xf6"
  26162. "\xd7\x48\xa8\x73\x2d\x74\xde\x1e\xde\x57\x7e\xf4"
  26163. "\x7b\x7b\x64\xef\x88\x7a\xa8\x10\x4b\xe1\xc1\x87"
  26164. "\xbb\x0b\xe1\x39\x39\x50\xaf\x68\x9c\xa2\xbf\x5e",
  26165. .entropylen = 48,
  26166. .entpra = (unsigned char *)
  26167. "\xdc\x81\x0a\x01\x58\xa7\x2e\xce\xee\x48\x8c\x7c"
  26168. "\x77\x9e\x3c\xf1\x17\x24\x7a\xbb\xab\x9f\xca\x12"
  26169. "\x19\xaf\x97\x2d\x5f\xf9\xff\xfc",
  26170. .entprb = (unsigned char *)
  26171. "\xaf\xfc\x4f\x98\x8b\x93\x95\xc1\xb5\x8b\x7f\x73"
  26172. "\x6d\xa6\xbe\x6d\x33\xeb\x2c\x82\xb1\xaf\xc1\xb6"
  26173. "\xb6\x05\xe2\x44\xaa\xfd\xe7\xdb",
  26174. .entprlen = 32,
  26175. .expected = (unsigned char *)
  26176. "\x51\x79\xde\x1c\x0f\x58\xf3\xf4\xc9\x57\x2e\x31"
  26177. "\xa7\x09\xa1\x53\x64\x63\xa2\xc5\x1d\x84\x88\x65"
  26178. "\x01\x1b\xc6\x16\x3c\x49\x5b\x42\x8e\x53\xf5\x18"
  26179. "\xad\x94\x12\x0d\x4f\x55\xcc\x45\x5c\x98\x0f\x42"
  26180. "\x28\x2f\x47\x11\xf9\xc4\x01\x97\x6b\xa0\x94\x50"
  26181. "\xa9\xd1\x5e\x06\x54\x3f\xdf\xbb\xc4\x98\xee\x8b"
  26182. "\xba\xa9\xfa\x49\xee\x1d\xdc\xfb\x50\xf6\x51\x9f"
  26183. "\x6c\x4a\x9a\x6f\x63\xa2\x7d\xad\xaf\x3a\x24\xa0"
  26184. "\xd9\x9f\x07\xeb\x15\xee\x26\xe0\xd5\x63\x39\xda"
  26185. "\x3c\x59\xd6\x33\x6c\x02\xe8\x05\x71\x46\x68\x44"
  26186. "\x63\x4a\x68\x72\xe9\xf5\x55\xfe",
  26187. .expectedlen = 128,
  26188. .addtla = (unsigned char *)
  26189. "\x15\x20\x2f\xf6\x98\x28\x63\xa2\xc4\x4e\xbb\x6c"
  26190. "\xb2\x25\x92\x61\x79\xc9\x22\xc4\x61\x54\x96\xff"
  26191. "\x4a\x85\xca\x80\xfe\x0d\x1c\xd0",
  26192. .addtlb = (unsigned char *)
  26193. "\xde\x29\x8e\x03\x42\x61\xa3\x28\x5e\xc8\x80\xc2"
  26194. "\x6d\xbf\xad\x13\xe1\x8d\x2a\xc7\xe8\xc7\x18\x89"
  26195. "\x42\x58\x9e\xd6\xcc\xad\x7b\x1e",
  26196. .addtllen = 32,
  26197. .pers = (unsigned char *)
  26198. "\x84\xc3\x73\x9e\xce\xb3\xbc\x89\xf7\x62\xb3\xe1"
  26199. "\xd7\x48\x45\x8a\xa9\xcc\xe9\xed\xd5\x81\x84\x52"
  26200. "\x82\x4c\xdc\x19\xb8\xf8\x92\x5c",
  26201. .perslen = 32,
  26202. },
  26203. };
  26204. static struct drbg_testvec drbg_pr_hmac_sha256_tv_template[] = {
  26205. {
  26206. .entropy = (unsigned char *)
  26207. "\x99\x69\xe5\x4b\x47\x03\xff\x31\x78\x5b\x87\x9a"
  26208. "\x7e\x5c\x0e\xae\x0d\x3e\x30\x95\x59\xe9\xfe\x96"
  26209. "\xb0\x67\x6d\x49\xd5\x91\xea\x4d\x07\xd2\x0d\x46"
  26210. "\xd0\x64\x75\x7d\x30\x23\xca\xc2\x37\x61\x27\xab",
  26211. .entropylen = 48,
  26212. .entpra = (unsigned char *)
  26213. "\xc6\x0f\x29\x99\x10\x0f\x73\x8c\x10\xf7\x47\x92"
  26214. "\x67\x6a\x3f\xc4\xa2\x62\xd1\x37\x21\x79\x80\x46"
  26215. "\xe2\x9a\x29\x51\x81\x56\x9f\x54",
  26216. .entprb = (unsigned char *)
  26217. "\xc1\x1d\x45\x24\xc9\x07\x1b\xd3\x09\x60\x15\xfc"
  26218. "\xf7\xbc\x24\xa6\x07\xf2\x2f\xa0\x65\xc9\x37\x65"
  26219. "\x8a\x2a\x77\xa8\x69\x90\x89\xf4",
  26220. .entprlen = 32,
  26221. .expected = (unsigned char *)
  26222. "\xab\xc0\x15\x85\x60\x94\x80\x3a\x93\x8d\xff\xd2"
  26223. "\x0d\xa9\x48\x43\x87\x0e\xf9\x35\xb8\x2c\xfe\xc1"
  26224. "\x77\x06\xb8\xf5\x51\xb8\x38\x50\x44\x23\x5d\xd4"
  26225. "\x4b\x59\x9f\x94\xb3\x9b\xe7\x8d\xd4\x76\xe0\xcf"
  26226. "\x11\x30\x9c\x99\x5a\x73\x34\xe0\xa7\x8b\x37\xbc"
  26227. "\x95\x86\x23\x50\x86\xfa\x3b\x63\x7b\xa9\x1c\xf8"
  26228. "\xfb\x65\xef\xa2\x2a\x58\x9c\x13\x75\x31\xaa\x7b"
  26229. "\x2d\x4e\x26\x07\xaa\xc2\x72\x92\xb0\x1c\x69\x8e"
  26230. "\x6e\x01\xae\x67\x9e\xb8\x7c\x01\xa8\x9c\x74\x22"
  26231. "\xd4\x37\x2d\x6d\x75\x4a\xba\xbb\x4b\xf8\x96\xfc"
  26232. "\xb1\xcd\x09\xd6\x92\xd0\x28\x3f",
  26233. .expectedlen = 128,
  26234. .addtla = NULL,
  26235. .addtlb = NULL,
  26236. .addtllen = 0,
  26237. .pers = NULL,
  26238. .perslen = 0,
  26239. }, {
  26240. .entropy = (unsigned char *)
  26241. "\xb9\x1f\xe9\xef\xdd\x9b\x7d\x20\xb6\xec\xe0\x2f"
  26242. "\xdb\x76\x24\xce\x41\xc8\x3a\x4a\x12\x7f\x3e\x2f"
  26243. "\xae\x05\x99\xea\xb5\x06\x71\x0d\x0c\x4c\xb4\x05"
  26244. "\x26\xc6\xbd\xf5\x7f\x2a\x3d\xf2\xb5\x49\x7b\xda",
  26245. .entropylen = 48,
  26246. .entpra = (unsigned char *)
  26247. "\xef\x67\x50\x9c\xa7\x7d\xdf\xb7\x2d\x81\x01\xa4"
  26248. "\x62\x81\x6a\x69\x5b\xb3\x37\x45\xa7\x34\x8e\x26"
  26249. "\x46\xd9\x26\xa2\x19\xd4\x94\x43",
  26250. .entprb = (unsigned char *)
  26251. "\x97\x75\x53\x53\xba\xb4\xa6\xb2\x91\x60\x71\x79"
  26252. "\xd1\x6b\x4a\x24\x9a\x34\x66\xcc\x33\xab\x07\x98"
  26253. "\x51\x78\x72\xb2\x79\xfd\x2c\xff",
  26254. .entprlen = 32,
  26255. .expected = (unsigned char *)
  26256. "\x9c\xdc\x63\x8a\x19\x23\x22\x66\x0c\xc5\xb9\xd7"
  26257. "\xfb\x2a\xb0\x31\xe3\x8a\x36\xa8\x5a\xa8\x14\xda"
  26258. "\x1e\xa9\xcc\xfe\xb8\x26\x44\x83\x9f\xf6\xff\xaa"
  26259. "\xc8\x98\xb8\x30\x35\x3b\x3d\x36\xd2\x49\xd4\x40"
  26260. "\x62\x0a\x65\x10\x76\x55\xef\xc0\x95\x9c\xa7\xda"
  26261. "\x3f\xcf\xb7\x7b\xc6\xe1\x28\x52\xfc\x0c\xe2\x37"
  26262. "\x0d\x83\xa7\x51\x4b\x31\x47\x3c\xe1\x3c\xae\x70"
  26263. "\x01\xc8\xa3\xd3\xc2\xac\x77\x9c\xd1\x68\x77\x9b"
  26264. "\x58\x27\x3b\xa5\x0f\xc2\x7a\x8b\x04\x65\x62\xd5"
  26265. "\xe8\xd6\xfe\x2a\xaf\xd3\xd3\xfe\xbd\x18\xfb\xcd"
  26266. "\xcd\x66\xb5\x01\x69\x66\xa0\x3c",
  26267. .expectedlen = 128,
  26268. .addtla = (unsigned char *)
  26269. "\x17\xc1\x56\xcb\xcc\x50\xd6\x03\x7d\x45\x76\xa3"
  26270. "\x75\x76\xc1\x4a\x66\x1b\x2e\xdf\xb0\x2e\x7d\x56"
  26271. "\x6d\x99\x3b\xc6\x58\xda\x03\xf6",
  26272. .addtlb = (unsigned char *)
  26273. "\x7c\x7b\x4a\x4b\x32\x5e\x6f\x67\x34\xf5\x21\x4c"
  26274. "\xf9\x96\xf9\xbf\x1c\x8c\x81\xd3\x9b\x60\x6a\x44"
  26275. "\xc6\x03\xa2\xfb\x13\x20\x19\xb7",
  26276. .addtllen = 32,
  26277. .pers = NULL,
  26278. .perslen = 0,
  26279. }, {
  26280. .entropy = (unsigned char *)
  26281. "\x13\x54\x96\xfc\x1b\x7d\x28\xf3\x18\xc9\xa7\x89"
  26282. "\xb6\xb3\xc8\x72\xac\x00\xd4\x59\x36\x25\x05\xaf"
  26283. "\xa5\xdb\x96\xcb\x3c\x58\x46\x87\xa5\xaa\xbf\x20"
  26284. "\x3b\xfe\x23\x0e\xd1\xc7\x41\x0f\x3f\xc9\xb3\x67",
  26285. .entropylen = 48,
  26286. .entpra = (unsigned char *)
  26287. "\xe2\xbd\xb7\x48\x08\x06\xf3\xe1\x93\x3c\xac\x79"
  26288. "\xa7\x2b\x11\xda\xe3\x2e\xe1\x91\xa5\x02\x19\x57"
  26289. "\x20\x28\xad\xf2\x60\xd7\xcd\x45",
  26290. .entprb = (unsigned char *)
  26291. "\x8b\xd4\x69\xfc\xff\x59\x95\x95\xc6\x51\xde\x71"
  26292. "\x68\x5f\xfc\xf9\x4a\xab\xec\x5a\xcb\xbe\xd3\x66"
  26293. "\x1f\xfa\x74\xd3\xac\xa6\x74\x60",
  26294. .entprlen = 32,
  26295. .expected = (unsigned char *)
  26296. "\x1f\x9e\xaf\xe4\xd2\x46\xb7\x47\x41\x4c\x65\x99"
  26297. "\x01\xe9\x3b\xbb\x83\x0c\x0a\xb0\xc1\x3a\xe2\xb3"
  26298. "\x31\x4e\xeb\x93\x73\xee\x0b\x26\xc2\x63\xa5\x75"
  26299. "\x45\x99\xd4\x5c\x9f\xa1\xd4\x45\x87\x6b\x20\x61"
  26300. "\x40\xea\x78\xa5\x32\xdf\x9e\x66\x17\xaf\xb1\x88"
  26301. "\x9e\x2e\x23\xdd\xc1\xda\x13\x97\x88\xa5\xb6\x5e"
  26302. "\x90\x14\x4e\xef\x13\xab\x5c\xd9\x2c\x97\x9e\x7c"
  26303. "\xd7\xf8\xce\xea\x81\xf5\xcd\x71\x15\x49\x44\xce"
  26304. "\x83\xb6\x05\xfb\x7d\x30\xb5\x57\x2c\x31\x4f\xfc"
  26305. "\xfe\x80\xb6\xc0\x13\x0c\x5b\x9b\x2e\x8f\x3d\xfc"
  26306. "\xc2\xa3\x0c\x11\x1b\x80\x5f\xf3",
  26307. .expectedlen = 128,
  26308. .addtla = NULL,
  26309. .addtlb = NULL,
  26310. .addtllen = 0,
  26311. .pers = (unsigned char *)
  26312. "\x64\xb6\xfc\x60\xbc\x61\x76\x23\x6d\x3f\x4a\x0f"
  26313. "\xe1\xb4\xd5\x20\x9e\x70\xdd\x03\x53\x6d\xbf\xce"
  26314. "\xcd\x56\x80\xbc\xb8\x15\xc8\xaa",
  26315. .perslen = 32,
  26316. }, {
  26317. .entropy = (unsigned char *)
  26318. "\xc7\xcc\xbc\x67\x7e\x21\x66\x1e\x27\x2b\x63\xdd"
  26319. "\x3a\x78\xdc\xdf\x66\x6d\x3f\x24\xae\xcf\x37\x01"
  26320. "\xa9\x0d\x89\x8a\xa7\xdc\x81\x58\xae\xb2\x10\x15"
  26321. "\x7e\x18\x44\x6d\x13\xea\xdf\x37\x85\xfe\x81\xfb",
  26322. .entropylen = 48,
  26323. .entpra = (unsigned char *)
  26324. "\x7b\xa1\x91\x5b\x3c\x04\xc4\x1b\x1d\x19\x2f\x1a"
  26325. "\x18\x81\x60\x3c\x6c\x62\x91\xb7\xe9\xf5\xcb\x96"
  26326. "\xbb\x81\x6a\xcc\xb5\xae\x55\xb6",
  26327. .entprb = (unsigned char *)
  26328. "\x99\x2c\xc7\x78\x7e\x3b\x88\x12\xef\xbe\xd3\xd2"
  26329. "\x7d\x2a\xa5\x86\xda\x8d\x58\x73\x4a\x0a\xb2\x2e"
  26330. "\xbb\x4c\x7e\xe3\x9a\xb6\x81\xc1",
  26331. .entprlen = 32,
  26332. .expected = (unsigned char *)
  26333. "\x95\x6f\x95\xfc\x3b\xb7\xfe\x3e\xd0\x4e\x1a\x14"
  26334. "\x6c\x34\x7f\x7b\x1d\x0d\x63\x5e\x48\x9c\x69\xe6"
  26335. "\x46\x07\xd2\x87\xf3\x86\x52\x3d\x98\x27\x5e\xd7"
  26336. "\x54\xe7\x75\x50\x4f\xfb\x4d\xfd\xac\x2f\x4b\x77"
  26337. "\xcf\x9e\x8e\xcc\x16\xa2\x24\xcd\x53\xde\x3e\xc5"
  26338. "\x55\x5d\xd5\x26\x3f\x89\xdf\xca\x8b\x4e\x1e\xb6"
  26339. "\x88\x78\x63\x5c\xa2\x63\x98\x4e\x6f\x25\x59\xb1"
  26340. "\x5f\x2b\x23\xb0\x4b\xa5\x18\x5d\xc2\x15\x74\x40"
  26341. "\x59\x4c\xb4\x1e\xcf\x9a\x36\xfd\x43\xe2\x03\xb8"
  26342. "\x59\x91\x30\x89\x2a\xc8\x5a\x43\x23\x7c\x73\x72"
  26343. "\xda\x3f\xad\x2b\xba\x00\x6b\xd1",
  26344. .expectedlen = 128,
  26345. .addtla = (unsigned char *)
  26346. "\x18\xe8\x17\xff\xef\x39\xc7\x41\x5c\x73\x03\x03"
  26347. "\xf6\x3d\xe8\x5f\xc8\xab\xe4\xab\x0f\xad\xe8\xd6"
  26348. "\x86\x88\x55\x28\xc1\x69\xdd\x76",
  26349. .addtlb = (unsigned char *)
  26350. "\xac\x07\xfc\xbe\x87\x0e\xd3\xea\x1f\x7e\xb8\xe7"
  26351. "\x9d\xec\xe8\xe7\xbc\xf3\x18\x25\x77\x35\x4a\xaa"
  26352. "\x00\x99\x2a\xdd\x0a\x00\x50\x82",
  26353. .addtllen = 32,
  26354. .pers = (unsigned char *)
  26355. "\xbc\x55\xab\x3c\xf6\x52\xb0\x11\x3d\x7b\x90\xb8"
  26356. "\x24\xc9\x26\x4e\x5a\x1e\x77\x0d\x3d\x58\x4a\xda"
  26357. "\xd1\x81\xe9\xf8\xeb\x30\x8f\x6f",
  26358. .perslen = 32,
  26359. },
  26360. };
  26361. static struct drbg_testvec drbg_pr_ctr_aes128_tv_template[] = {
  26362. {
  26363. .entropy = (unsigned char *)
  26364. "\xd1\x44\xc6\x61\x81\x6d\xca\x9d\x15\x28\x8a\x42"
  26365. "\x94\xd7\x28\x9c\x43\x77\x19\x29\x1a\x6d\xc3\xa2",
  26366. .entropylen = 24,
  26367. .entpra = (unsigned char *)
  26368. "\x96\xd8\x9e\x45\x32\xc9\xd2\x08\x7a\x6d\x97\x15"
  26369. "\xb4\xec\x80\xb1",
  26370. .entprb = (unsigned char *)
  26371. "\x8b\xb6\x72\xb5\x24\x0b\x98\x65\x95\x95\xe9\xc9"
  26372. "\x28\x07\xeb\xc2",
  26373. .entprlen = 16,
  26374. .expected = (unsigned char *)
  26375. "\x70\x19\xd0\x4c\x45\x78\xd6\x68\xa9\x9a\xaa\xfe"
  26376. "\xc1\xdf\x27\x9a\x1c\x0d\x0d\xf7\x24\x75\x46\xcc"
  26377. "\x77\x6b\xdf\x89\xc6\x94\xdc\x74\x50\x10\x70\x18"
  26378. "\x9b\xdc\x96\xb4\x89\x23\x40\x1a\xce\x09\x87\xce"
  26379. "\xd2\xf3\xd5\xe4\x51\x67\x74\x11\x5a\xcc\x8b\x3b"
  26380. "\x8a\xf1\x23\xa8",
  26381. .expectedlen = 64,
  26382. .addtla = NULL,
  26383. .addtlb = NULL,
  26384. .addtllen = 0,
  26385. .pers = NULL,
  26386. .perslen = 0,
  26387. }, {
  26388. .entropy = (unsigned char *)
  26389. "\x8e\x83\xe0\xeb\x37\xea\x3e\x53\x5e\x17\x6e\x77"
  26390. "\xbd\xb1\x53\x90\xfc\xdc\xc1\x3c\x9a\x88\x22\x94",
  26391. .entropylen = 24,
  26392. .entpra = (unsigned char *)
  26393. "\x6a\x85\xe7\x37\xc8\xf1\x04\x31\x98\x4f\xc8\x73"
  26394. "\x67\xd1\x08\xf8",
  26395. .entprb = (unsigned char *)
  26396. "\xd7\xa4\x68\xe2\x12\x74\xc3\xd9\xf1\xb7\x05\xbc"
  26397. "\xd4\xba\x04\x58",
  26398. .entprlen = 16,
  26399. .expected = (unsigned char *)
  26400. "\x78\xd6\xa6\x70\xff\xd1\x82\xf5\xa2\x88\x7f\x6d"
  26401. "\x3d\x8c\x39\xb1\xa8\xcb\x2c\x91\xab\x14\x7e\xbc"
  26402. "\x95\x45\x9f\x24\xb8\x20\xac\x21\x23\xdb\x72\xd7"
  26403. "\x12\x8d\x48\x95\xf3\x19\x0c\x43\xc6\x19\x45\xfc"
  26404. "\x8b\xac\x40\x29\x73\x00\x03\x45\x5e\x12\xff\x0c"
  26405. "\xc1\x02\x41\x82",
  26406. .expectedlen = 64,
  26407. .addtla = (unsigned char *)
  26408. "\xa2\xd9\x38\xcf\x8b\x29\x67\x5b\x65\x62\x6f\xe8"
  26409. "\xeb\xb3\x01\x76",
  26410. .addtlb = (unsigned char *)
  26411. "\x59\x63\x1e\x81\x8a\x14\xa8\xbb\xa1\xb8\x41\x25"
  26412. "\xd0\x7f\xcc\x43",
  26413. .addtllen = 16,
  26414. .pers = NULL,
  26415. .perslen = 0,
  26416. }, {
  26417. .entropy = (unsigned char *)
  26418. "\x04\xd9\x49\xa6\xdc\xe8\x6e\xbb\xf1\x08\x77\x2b"
  26419. "\x9e\x08\xca\x92\x65\x16\xda\x99\xa2\x59\xf3\xe8",
  26420. .entropylen = 24,
  26421. .entpra = (unsigned char *)
  26422. "\x38\x7e\x3f\x6b\x51\x70\x7b\x20\xec\x53\xd0\x66"
  26423. "\xc3\x0f\xe3\xb0",
  26424. .entprb = (unsigned char *)
  26425. "\xe0\x86\xa6\xaa\x5f\x72\x2f\xad\xf7\xef\x06\xb8"
  26426. "\xd6\x9c\x9d\xe8",
  26427. .entprlen = 16,
  26428. .expected = (unsigned char *)
  26429. "\xc9\x0a\xaf\x85\x89\x71\x44\x66\x4f\x25\x0b\x2b"
  26430. "\xde\xd8\xfa\xff\x52\x5a\x1b\x32\x5e\x41\x7a\x10"
  26431. "\x1f\xef\x1e\x62\x23\xe9\x20\x30\xc9\x0d\xad\x69"
  26432. "\xb4\x9c\x5b\xf4\x87\x42\xd5\xae\x5e\x5e\x43\xcc"
  26433. "\xd9\xfd\x0b\x93\x4a\xe3\xd4\x06\x37\x36\x0f\x3f"
  26434. "\x72\x82\x0c\xcf",
  26435. .expectedlen = 64,
  26436. .addtla = NULL,
  26437. .addtlb = NULL,
  26438. .addtllen = 0,
  26439. .pers = (unsigned char *)
  26440. "\xbf\xa4\x9a\x8f\x7b\xd8\xb1\x7a\x9d\xfa\x45\xed"
  26441. "\x21\x52\xb3\xad",
  26442. .perslen = 16,
  26443. }, {
  26444. .entropy = (unsigned char *)
  26445. "\x92\x89\x8f\x31\xfa\x1c\xff\x6d\x18\x2f\x26\x06"
  26446. "\x43\xdf\xf8\x18\xc2\xa4\xd9\x72\xc3\xb9\xb6\x97",
  26447. .entropylen = 24,
  26448. .entpra = (unsigned char *)
  26449. "\x20\x72\x8a\x06\xf8\x6f\x8d\xd4\x41\xe2\x72\xb7"
  26450. "\xc4\x2c\xe8\x10",
  26451. .entprb = (unsigned char *)
  26452. "\x3d\xb0\xf0\x94\xf3\x05\x50\x33\x17\x86\x3e\x22"
  26453. "\x08\xf7\xa5\x01",
  26454. .entprlen = 16,
  26455. .expected = (unsigned char *)
  26456. "\x5a\x35\x39\x87\x0f\x4d\x22\xa4\x09\x24\xee\x71"
  26457. "\xc9\x6f\xac\x72\x0a\xd6\xf0\x88\x82\xd0\x83\x28"
  26458. "\x73\xec\x3f\x93\xd8\xab\x45\x23\xf0\x7e\xac\x45"
  26459. "\x14\x5e\x93\x9f\xb1\xd6\x76\x43\x3d\xb6\xe8\x08"
  26460. "\x88\xf6\xda\x89\x08\x77\x42\xfe\x1a\xf4\x3f\xc4"
  26461. "\x23\xc5\x1f\x68",
  26462. .expectedlen = 64,
  26463. .addtla = (unsigned char *)
  26464. "\x1a\x40\xfa\xe3\xcc\x6c\x7c\xa0\xf8\xda\xba\x59"
  26465. "\x23\x6d\xad\x1d",
  26466. .addtlb = (unsigned char *)
  26467. "\x9f\x72\x76\x6c\xc7\x46\xe5\xed\x2e\x53\x20\x12"
  26468. "\xbc\x59\x31\x8c",
  26469. .addtllen = 16,
  26470. .pers = (unsigned char *)
  26471. "\xea\x65\xee\x60\x26\x4e\x7e\xb6\x0e\x82\x68\xc4"
  26472. "\x37\x3c\x5c\x0b",
  26473. .perslen = 16,
  26474. },
  26475. };
  26476. /*
  26477. * SP800-90A DRBG Test vectors from
  26478. * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip
  26479. *
  26480. * Test vectors for DRBG without prediction resistance. All types of DRBGs
  26481. * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and
  26482. * w/o personalization string, w/ and w/o additional input string).
  26483. */
  26484. static struct drbg_testvec drbg_nopr_sha256_tv_template[] = {
  26485. {
  26486. .entropy = (unsigned char *)
  26487. "\xa6\x5a\xd0\xf3\x45\xdb\x4e\x0e\xff\xe8\x75\xc3"
  26488. "\xa2\xe7\x1f\x42\xc7\x12\x9d\x62\x0f\xf5\xc1\x19"
  26489. "\xa9\xef\x55\xf0\x51\x85\xe0\xfb\x85\x81\xf9\x31"
  26490. "\x75\x17\x27\x6e\x06\xe9\x60\x7d\xdb\xcb\xcc\x2e",
  26491. .entropylen = 48,
  26492. .expected = (unsigned char *)
  26493. "\xd3\xe1\x60\xc3\x5b\x99\xf3\x40\xb2\x62\x82\x64"
  26494. "\xd1\x75\x10\x60\xe0\x04\x5d\xa3\x83\xff\x57\xa5"
  26495. "\x7d\x73\xa6\x73\xd2\xb8\xd8\x0d\xaa\xf6\xa6\xc3"
  26496. "\x5a\x91\xbb\x45\x79\xd7\x3f\xd0\xc8\xfe\xd1\x11"
  26497. "\xb0\x39\x13\x06\x82\x8a\xdf\xed\x52\x8f\x01\x81"
  26498. "\x21\xb3\xfe\xbd\xc3\x43\xe7\x97\xb8\x7d\xbb\x63"
  26499. "\xdb\x13\x33\xde\xd9\xd1\xec\xe1\x77\xcf\xa6\xb7"
  26500. "\x1f\xe8\xab\x1d\xa4\x66\x24\xed\x64\x15\xe5\x1c"
  26501. "\xcd\xe2\xc7\xca\x86\xe2\x83\x99\x0e\xea\xeb\x91"
  26502. "\x12\x04\x15\x52\x8b\x22\x95\x91\x02\x81\xb0\x2d"
  26503. "\xd4\x31\xf4\xc9\xf7\x04\x27\xdf",
  26504. .expectedlen = 128,
  26505. .addtla = NULL,
  26506. .addtlb = NULL,
  26507. .addtllen = 0,
  26508. .pers = NULL,
  26509. .perslen = 0,
  26510. }, {
  26511. .entropy = (unsigned char *)
  26512. "\x73\xd3\xfb\xa3\x94\x5f\x2b\x5f\xb9\x8f\xf6\x9c"
  26513. "\x8a\x93\x17\xae\x19\xc3\x4c\xc3\xd6\xca\xa3\x2d"
  26514. "\x16\xfc\x42\xd2\x2d\xd5\x6f\x56\xcc\x1d\x30\xff"
  26515. "\x9e\x06\x3e\x09\xce\x58\xe6\x9a\x35\xb3\xa6\x56",
  26516. .entropylen = 48,
  26517. .expected = (unsigned char *)
  26518. "\x71\x7b\x93\x46\x1a\x40\xaa\x35\xa4\xaa\xc5\xe7"
  26519. "\x6d\x5b\x5b\x8a\xa0\xdf\x39\x7d\xae\x71\x58\x5b"
  26520. "\x3c\x7c\xb4\xf0\x89\xfa\x4a\x8c\xa9\x5c\x54\xc0"
  26521. "\x40\xdf\xbc\xce\x26\x81\x34\xf8\xba\x7d\x1c\xe8"
  26522. "\xad\x21\xe0\x74\xcf\x48\x84\x30\x1f\xa1\xd5\x4f"
  26523. "\x81\x42\x2f\xf4\xdb\x0b\x23\xf8\x73\x27\xb8\x1d"
  26524. "\x42\xf8\x44\x58\xd8\x5b\x29\x27\x0a\xf8\x69\x59"
  26525. "\xb5\x78\x44\xeb\x9e\xe0\x68\x6f\x42\x9a\xb0\x5b"
  26526. "\xe0\x4e\xcb\x6a\xaa\xe2\xd2\xd5\x33\x25\x3e\xe0"
  26527. "\x6c\xc7\x6a\x07\xa5\x03\x83\x9f\xe2\x8b\xd1\x1c"
  26528. "\x70\xa8\x07\x59\x97\xeb\xf6\xbe",
  26529. .expectedlen = 128,
  26530. .addtla = (unsigned char *)
  26531. "\xf4\xd5\x98\x3d\xa8\xfc\xfa\x37\xb7\x54\x67\x73"
  26532. "\xc7\xc3\xdd\x47\x34\x71\x02\x5d\xc1\xa0\xd3\x10"
  26533. "\xc1\x8b\xbd\xf5\x66\x34\x6f\xdd",
  26534. .addtlb = (unsigned char *)
  26535. "\xf7\x9e\x6a\x56\x0e\x73\xe9\xd9\x7a\xd1\x69\xe0"
  26536. "\x6f\x8c\x55\x1c\x44\xd1\xce\x6f\x28\xcc\xa4\x4d"
  26537. "\xa8\xc0\x85\xd1\x5a\x0c\x59\x40",
  26538. .addtllen = 32,
  26539. .pers = NULL,
  26540. .perslen = 0,
  26541. }, {
  26542. .entropy = (unsigned char *)
  26543. "\x2a\x85\xa9\x8b\xd0\xda\x83\xd6\xad\xab\x9f\xbb"
  26544. "\x54\x31\x15\x95\x1c\x4d\x49\x9f\x6a\x15\xf6\xe4"
  26545. "\x15\x50\x88\x06\x29\x0d\xed\x8d\xb9\x6f\x96\xe1"
  26546. "\x83\x9f\xf7\x88\xda\x84\xbf\x44\x28\xd9\x1d\xaa",
  26547. .entropylen = 48,
  26548. .expected = (unsigned char *)
  26549. "\x2d\x55\xde\xc9\xed\x05\x47\x07\x3d\x04\xfc\x28"
  26550. "\x0f\x92\xf0\x4d\xd8\x00\x32\x47\x0a\x1b\x1c\x4b"
  26551. "\xef\xd9\x97\xa1\x17\x67\xda\x26\x6c\xfe\x76\x46"
  26552. "\x6f\xbc\x6d\x82\x4e\x83\x8a\x98\x66\x6c\x01\xb6"
  26553. "\xe6\x64\xe0\x08\x10\x6f\xd3\x5d\x90\xe7\x0d\x72"
  26554. "\xa6\xa7\xe3\xbb\x98\x11\x12\x56\x23\xc2\x6d\xd1"
  26555. "\xc8\xa8\x7a\x39\xf3\x34\xe3\xb8\xf8\x66\x00\x77"
  26556. "\x7d\xcf\x3c\x3e\xfa\xc9\x0f\xaf\xe0\x24\xfa\xe9"
  26557. "\x84\xf9\x6a\x01\xf6\x35\xdb\x5c\xab\x2a\xef\x4e"
  26558. "\xac\xab\x55\xb8\x9b\xef\x98\x68\xaf\x51\xd8\x16"
  26559. "\xa5\x5e\xae\xf9\x1e\xd2\xdb\xe6",
  26560. .expectedlen = 128,
  26561. .addtla = NULL,
  26562. .addtlb = NULL,
  26563. .addtllen = 0,
  26564. .pers = (unsigned char *)
  26565. "\xa8\x80\xec\x98\x30\x98\x15\xd2\xc6\xc4\x68\xf1"
  26566. "\x3a\x1c\xbf\xce\x6a\x40\x14\xeb\x36\x99\x53\xda"
  26567. "\x57\x6b\xce\xa4\x1c\x66\x3d\xbc",
  26568. .perslen = 32,
  26569. }, {
  26570. .entropy = (unsigned char *)
  26571. "\x69\xed\x82\xa9\xc5\x7b\xbf\xe5\x1d\x2f\xcb\x7a"
  26572. "\xd3\x50\x7d\x96\xb4\xb9\x2b\x50\x77\x51\x27\x74"
  26573. "\x33\x74\xba\xf1\x30\xdf\x8e\xdf\x87\x1d\x87\xbc"
  26574. "\x96\xb2\xc3\xa7\xed\x60\x5e\x61\x4e\x51\x29\x1a",
  26575. .entropylen = 48,
  26576. .expected = (unsigned char *)
  26577. "\xa5\x71\x24\x31\x11\xfe\x13\xe1\xa8\x24\x12\xfb"
  26578. "\x37\xa1\x27\xa5\xab\x77\xa1\x9f\xae\x8f\xaf\x13"
  26579. "\x93\xf7\x53\x85\x91\xb6\x1b\xab\xd4\x6b\xea\xb6"
  26580. "\xef\xda\x4c\x90\x6e\xef\x5f\xde\xe1\xc7\x10\x36"
  26581. "\xd5\x67\xbd\x14\xb6\x89\x21\x0c\xc9\x92\x65\x64"
  26582. "\xd0\xf3\x23\xe0\x7f\xd1\xe8\x75\xc2\x85\x06\xea"
  26583. "\xca\xc0\xcb\x79\x2d\x29\x82\xfc\xaa\x9a\xc6\x95"
  26584. "\x7e\xdc\x88\x65\xba\xec\x0e\x16\x87\xec\xa3\x9e"
  26585. "\xd8\x8c\x80\xab\x3a\x64\xe0\xcb\x0e\x45\x98\xdd"
  26586. "\x7c\x6c\x6c\x26\x11\x13\xc8\xce\xa9\x47\xa6\x06"
  26587. "\x57\xa2\x66\xbb\x2d\x7f\xf3\xc1",
  26588. .expectedlen = 128,
  26589. .addtla = (unsigned char *)
  26590. "\x74\xd3\x6d\xda\xe8\xd6\x86\x5f\x63\x01\xfd\xf2"
  26591. "\x7d\x06\x29\x6d\x94\xd1\x66\xf0\xd2\x72\x67\x4e"
  26592. "\x77\xc5\x3d\x9e\x03\xe3\xa5\x78",
  26593. .addtlb = (unsigned char *)
  26594. "\xf6\xb6\x3d\xf0\x7c\x26\x04\xc5\x8b\xcd\x3e\x6a"
  26595. "\x9f\x9c\x3a\x2e\xdb\x47\x87\xe5\x8e\x00\x5e\x2b"
  26596. "\x74\x7f\xa6\xf6\x80\xcd\x9b\x21",
  26597. .addtllen = 32,
  26598. .pers = (unsigned char *)
  26599. "\x74\xa6\xe0\x08\xf9\x27\xee\x1d\x6e\x3c\x28\x20"
  26600. "\x87\xdd\xd7\x54\x31\x47\x78\x4b\xe5\x6d\xa3\x73"
  26601. "\xa9\x65\xb1\x10\xc1\xdc\x77\x7c",
  26602. .perslen = 32,
  26603. },
  26604. };
  26605. static struct drbg_testvec drbg_nopr_hmac_sha256_tv_template[] = {
  26606. {
  26607. .entropy = (unsigned char *)
  26608. "\xca\x85\x19\x11\x34\x93\x84\xbf\xfe\x89\xde\x1c"
  26609. "\xbd\xc4\x6e\x68\x31\xe4\x4d\x34\xa4\xfb\x93\x5e"
  26610. "\xe2\x85\xdd\x14\xb7\x1a\x74\x88\x65\x9b\xa9\x6c"
  26611. "\x60\x1d\xc6\x9f\xc9\x02\x94\x08\x05\xec\x0c\xa8",
  26612. .entropylen = 48,
  26613. .expected = (unsigned char *)
  26614. "\xe5\x28\xe9\xab\xf2\xde\xce\x54\xd4\x7c\x7e\x75"
  26615. "\xe5\xfe\x30\x21\x49\xf8\x17\xea\x9f\xb4\xbe\xe6"
  26616. "\xf4\x19\x96\x97\xd0\x4d\x5b\x89\xd5\x4f\xbb\x97"
  26617. "\x8a\x15\xb5\xc4\x43\xc9\xec\x21\x03\x6d\x24\x60"
  26618. "\xb6\xf7\x3e\xba\xd0\xdc\x2a\xba\x6e\x62\x4a\xbf"
  26619. "\x07\x74\x5b\xc1\x07\x69\x4b\xb7\x54\x7b\xb0\x99"
  26620. "\x5f\x70\xde\x25\xd6\xb2\x9e\x2d\x30\x11\xbb\x19"
  26621. "\xd2\x76\x76\xc0\x71\x62\xc8\xb5\xcc\xde\x06\x68"
  26622. "\x96\x1d\xf8\x68\x03\x48\x2c\xb3\x7e\xd6\xd5\xc0"
  26623. "\xbb\x8d\x50\xcf\x1f\x50\xd4\x76\xaa\x04\x58\xbd"
  26624. "\xab\xa8\x06\xf4\x8b\xe9\xdc\xb8",
  26625. .expectedlen = 128,
  26626. .addtla = NULL,
  26627. .addtlb = NULL,
  26628. .addtllen = 0,
  26629. .pers = NULL,
  26630. .perslen = 0,
  26631. }, {
  26632. .entropy = (unsigned char *)
  26633. "\xf9\x7a\x3c\xfd\x91\xfa\xa0\x46\xb9\xe6\x1b\x94"
  26634. "\x93\xd4\x36\xc4\x93\x1f\x60\x4b\x22\xf1\x08\x15"
  26635. "\x21\xb3\x41\x91\x51\xe8\xff\x06\x11\xf3\xa7\xd4"
  26636. "\x35\x95\x35\x7d\x58\x12\x0b\xd1\xe2\xdd\x8a\xed",
  26637. .entropylen = 48,
  26638. .expected = (unsigned char *)
  26639. "\xc6\x87\x1c\xff\x08\x24\xfe\x55\xea\x76\x89\xa5"
  26640. "\x22\x29\x88\x67\x30\x45\x0e\x5d\x36\x2d\xa5\xbf"
  26641. "\x59\x0d\xcf\x9a\xcd\x67\xfe\xd4\xcb\x32\x10\x7d"
  26642. "\xf5\xd0\x39\x69\xa6\x6b\x1f\x64\x94\xfd\xf5\xd6"
  26643. "\x3d\x5b\x4d\x0d\x34\xea\x73\x99\xa0\x7d\x01\x16"
  26644. "\x12\x6d\x0d\x51\x8c\x7c\x55\xba\x46\xe1\x2f\x62"
  26645. "\xef\xc8\xfe\x28\xa5\x1c\x9d\x42\x8e\x6d\x37\x1d"
  26646. "\x73\x97\xab\x31\x9f\xc7\x3d\xed\x47\x22\xe5\xb4"
  26647. "\xf3\x00\x04\x03\x2a\x61\x28\xdf\x5e\x74\x97\xec"
  26648. "\xf8\x2c\xa7\xb0\xa5\x0e\x86\x7e\xf6\x72\x8a\x4f"
  26649. "\x50\x9a\x8c\x85\x90\x87\x03\x9c",
  26650. .expectedlen = 128,
  26651. .addtla = (unsigned char *)
  26652. "\x51\x72\x89\xaf\xe4\x44\xa0\xfe\x5e\xd1\xa4\x1d"
  26653. "\xbb\xb5\xeb\x17\x15\x00\x79\xbd\xd3\x1e\x29\xcf"
  26654. "\x2f\xf3\x00\x34\xd8\x26\x8e\x3b",
  26655. .addtlb = (unsigned char *)
  26656. "\x88\x02\x8d\x29\xef\x80\xb4\xe6\xf0\xfe\x12\xf9"
  26657. "\x1d\x74\x49\xfe\x75\x06\x26\x82\xe8\x9c\x57\x14"
  26658. "\x40\xc0\xc9\xb5\x2c\x42\xa6\xe0",
  26659. .addtllen = 32,
  26660. .pers = NULL,
  26661. .perslen = 0,
  26662. }, {
  26663. .entropy = (unsigned char *)
  26664. "\x8d\xf0\x13\xb4\xd1\x03\x52\x30\x73\x91\x7d\xdf"
  26665. "\x6a\x86\x97\x93\x05\x9e\x99\x43\xfc\x86\x54\x54"
  26666. "\x9e\x7a\xb2\x2f\x7c\x29\xf1\x22\xda\x26\x25\xaf"
  26667. "\x2d\xdd\x4a\xbc\xce\x3c\xf4\xfa\x46\x59\xd8\x4e",
  26668. .entropylen = 48,
  26669. .expected = (unsigned char *)
  26670. "\xb9\x1c\xba\x4c\xc8\x4f\xa2\x5d\xf8\x61\x0b\x81"
  26671. "\xb6\x41\x40\x27\x68\xa2\x09\x72\x34\x93\x2e\x37"
  26672. "\xd5\x90\xb1\x15\x4c\xbd\x23\xf9\x74\x52\xe3\x10"
  26673. "\xe2\x91\xc4\x51\x46\x14\x7f\x0d\xa2\xd8\x17\x61"
  26674. "\xfe\x90\xfb\xa6\x4f\x94\x41\x9c\x0f\x66\x2b\x28"
  26675. "\xc1\xed\x94\xda\x48\x7b\xb7\xe7\x3e\xec\x79\x8f"
  26676. "\xbc\xf9\x81\xb7\x91\xd1\xbe\x4f\x17\x7a\x89\x07"
  26677. "\xaa\x3c\x40\x16\x43\xa5\xb6\x2b\x87\xb8\x9d\x66"
  26678. "\xb3\xa6\x0e\x40\xd4\xa8\xe4\xe9\xd8\x2a\xf6\xd2"
  26679. "\x70\x0e\x6f\x53\x5c\xdb\x51\xf7\x5c\x32\x17\x29"
  26680. "\x10\x37\x41\x03\x0c\xcc\x3a\x56",
  26681. .expectedlen = 128,
  26682. .addtla = NULL,
  26683. .addtlb = NULL,
  26684. .addtllen = 0,
  26685. .pers = (unsigned char *)
  26686. "\xb5\x71\xe6\x6d\x7c\x33\x8b\xc0\x7b\x76\xad\x37"
  26687. "\x57\xbb\x2f\x94\x52\xbf\x7e\x07\x43\x7a\xe8\x58"
  26688. "\x1c\xe7\xbc\x7c\x3a\xc6\x51\xa9",
  26689. .perslen = 32,
  26690. }, {
  26691. .entropy = (unsigned char *)
  26692. "\xc2\xa5\x66\xa9\xa1\x81\x7b\x15\xc5\xc3\xb7\x78"
  26693. "\x17\x7a\xc8\x7c\x24\xe7\x97\xbe\x0a\x84\x5f\x11"
  26694. "\xc2\xfe\x39\x9d\xd3\x77\x32\xf2\xcb\x18\x94\xeb"
  26695. "\x2b\x97\xb3\xc5\x6e\x62\x83\x29\x51\x6f\x86\xec",
  26696. .entropylen = 48,
  26697. .expected = (unsigned char *)
  26698. "\xb3\xa3\x69\x8d\x77\x76\x99\xa0\xdd\x9f\xa3\xf0"
  26699. "\xa9\xfa\x57\x83\x2d\x3c\xef\xac\x5d\xf2\x44\x37"
  26700. "\xc6\xd7\x3a\x0f\xe4\x10\x40\xf1\x72\x90\x38\xae"
  26701. "\xf1\xe9\x26\x35\x2e\xa5\x9d\xe1\x20\xbf\xb7\xb0"
  26702. "\x73\x18\x3a\x34\x10\x6e\xfe\xd6\x27\x8f\xf8\xad"
  26703. "\x84\x4b\xa0\x44\x81\x15\xdf\xdd\xf3\x31\x9a\x82"
  26704. "\xde\x6b\xb1\x1d\x80\xbd\x87\x1a\x9a\xcd\x35\xc7"
  26705. "\x36\x45\xe1\x27\x0f\xb9\xfe\x4f\xa8\x8e\xc0\xe4"
  26706. "\x65\x40\x9e\xa0\xcb\xa8\x09\xfe\x2f\x45\xe0\x49"
  26707. "\x43\xa2\xe3\x96\xbb\xb7\xdd\x2f\x4e\x07\x95\x30"
  26708. "\x35\x24\xcc\x9c\xc5\xea\x54\xa1",
  26709. .expectedlen = 128,
  26710. .addtla = (unsigned char *)
  26711. "\x41\x3d\xd8\x3f\xe5\x68\x35\xab\xd4\x78\xcb\x96"
  26712. "\x93\xd6\x76\x35\x90\x1c\x40\x23\x9a\x26\x64\x62"
  26713. "\xd3\x13\x3b\x83\xe4\x9c\x82\x0b",
  26714. .addtlb = (unsigned char *)
  26715. "\xd5\xc4\xa7\x1f\x9d\x6d\x95\xa1\xbe\xdf\x0b\xd2"
  26716. "\x24\x7c\x27\x7d\x1f\x84\xa4\xe5\x7a\x4a\x88\x25"
  26717. "\xb8\x2a\x2d\x09\x7d\xe6\x3e\xf1",
  26718. .addtllen = 32,
  26719. .pers = (unsigned char *)
  26720. "\x13\xce\x4d\x8d\xd2\xdb\x97\x96\xf9\x41\x56\xc8"
  26721. "\xe8\xf0\x76\x9b\x0a\xa1\xc8\x2c\x13\x23\xb6\x15"
  26722. "\x36\x60\x3b\xca\x37\xc9\xee\x29",
  26723. .perslen = 32,
  26724. },
  26725. };
  26726. static struct drbg_testvec drbg_nopr_ctr_aes192_tv_template[] = {
  26727. {
  26728. .entropy = (unsigned char *)
  26729. "\xc3\x5c\x2f\xa2\xa8\x9d\x52\xa1\x1f\xa3\x2a\xa9"
  26730. "\x6c\x95\xb8\xf1\xc9\xa8\xf9\xcb\x24\x5a\x8b\x40"
  26731. "\xf3\xa6\xe5\xa7\xfb\xd9\xd3\xc6\x8e\x27\x7b\xa9"
  26732. "\xac\x9b\xbb\x00",
  26733. .entropylen = 40,
  26734. .expected = (unsigned char *)
  26735. "\x8c\x2e\x72\xab\xfd\x9b\xb8\x28\x4d\xb7\x9e\x17"
  26736. "\xa4\x3a\x31\x46\xcd\x76\x94\xe3\x52\x49\xfc\x33"
  26737. "\x83\x91\x4a\x71\x17\xf4\x13\x68\xe6\xd4\xf1\x48"
  26738. "\xff\x49\xbf\x29\x07\x6b\x50\x15\xc5\x9f\x45\x79"
  26739. "\x45\x66\x2e\x3d\x35\x03\x84\x3f\x4a\xa5\xa3\xdf"
  26740. "\x9a\x9d\xf1\x0d",
  26741. .expectedlen = 64,
  26742. .addtla = NULL,
  26743. .addtlb = NULL,
  26744. .addtllen = 0,
  26745. .pers = NULL,
  26746. .perslen = 0,
  26747. },
  26748. };
  26749. static struct drbg_testvec drbg_nopr_ctr_aes256_tv_template[] = {
  26750. {
  26751. .entropy = (unsigned char *)
  26752. "\x36\x40\x19\x40\xfa\x8b\x1f\xba\x91\xa1\x66\x1f"
  26753. "\x21\x1d\x78\xa0\xb9\x38\x9a\x74\xe5\xbc\xcf\xec"
  26754. "\xe8\xd7\x66\xaf\x1a\x6d\x3b\x14\x49\x6f\x25\xb0"
  26755. "\xf1\x30\x1b\x4f\x50\x1b\xe3\x03\x80\xa1\x37\xeb",
  26756. .entropylen = 48,
  26757. .expected = (unsigned char *)
  26758. "\x58\x62\xeb\x38\xbd\x55\x8d\xd9\x78\xa6\x96\xe6"
  26759. "\xdf\x16\x47\x82\xdd\xd8\x87\xe7\xe9\xa6\xc9\xf3"
  26760. "\xf1\xfb\xaf\xb7\x89\x41\xb5\x35\xa6\x49\x12\xdf"
  26761. "\xd2\x24\xc6\xdc\x74\x54\xe5\x25\x0b\x3d\x97\x16"
  26762. "\x5e\x16\x26\x0c\x2f\xaf\x1c\xc7\x73\x5c\xb7\x5f"
  26763. "\xb4\xf0\x7e\x1d",
  26764. .expectedlen = 64,
  26765. .addtla = NULL,
  26766. .addtlb = NULL,
  26767. .addtllen = 0,
  26768. .pers = NULL,
  26769. .perslen = 0,
  26770. },
  26771. };
  26772. static struct drbg_testvec drbg_nopr_ctr_aes128_tv_template[] = {
  26773. {
  26774. .entropy = (unsigned char *)
  26775. "\x87\xe1\xc5\x32\x99\x7f\x57\xa3\x5c\x28\x6d\xe8"
  26776. "\x64\xbf\xf2\x64\xa3\x9e\x98\xdb\x6c\x10\x78\x7f",
  26777. .entropylen = 24,
  26778. .expected = (unsigned char *)
  26779. "\x2c\x14\x7e\x24\x11\x9a\xd8\xd4\xb2\xed\x61\xc1"
  26780. "\x53\xd0\x50\xc9\x24\xff\x59\x75\x15\xf1\x17\x3a"
  26781. "\x3d\xf4\x4b\x2c\x84\x28\xef\x89\x0e\xb9\xde\xf3"
  26782. "\xe4\x78\x04\xb2\xfd\x9b\x35\x7f\xe1\x3f\x8a\x3e"
  26783. "\x10\xc8\x67\x0a\xf9\xdf\x2d\x6c\x96\xfb\xb2\xb8"
  26784. "\xcb\x2d\xd6\xb0",
  26785. .expectedlen = 64,
  26786. .addtla = NULL,
  26787. .addtlb = NULL,
  26788. .addtllen = 0,
  26789. .pers = NULL,
  26790. .perslen = 0,
  26791. }, {
  26792. .entropy = (unsigned char *)
  26793. "\x71\xbd\xce\x35\x42\x7d\x20\xbf\x58\xcf\x17\x74"
  26794. "\xce\x72\xd8\x33\x34\x50\x2d\x8f\x5b\x14\xc4\xdd",
  26795. .entropylen = 24,
  26796. .expected = (unsigned char *)
  26797. "\x97\x33\xe8\x20\x12\xe2\x7b\xa1\x46\x8f\xf2\x34"
  26798. "\xb3\xc9\xb6\x6b\x20\xb2\x4f\xee\x27\xd8\x0b\x21"
  26799. "\x8c\xff\x63\x73\x69\x29\xfb\xf3\x85\xcd\x88\x8e"
  26800. "\x43\x2c\x71\x8b\xa2\x55\xd2\x0f\x1d\x7f\xe3\xe1"
  26801. "\x2a\xa3\xe9\x2c\x25\x89\xc7\x14\x52\x99\x56\xcc"
  26802. "\xc3\xdf\xb3\x81",
  26803. .expectedlen = 64,
  26804. .addtla = (unsigned char *)
  26805. "\x66\xef\x42\xd6\x9a\x8c\x3d\x6d\x4a\x9e\x95\xa6"
  26806. "\x91\x4d\x81\x56",
  26807. .addtlb = (unsigned char *)
  26808. "\xe3\x18\x83\xd9\x4b\x5e\xc4\xcc\xaa\x61\x2f\xbb"
  26809. "\x4a\x55\xd1\xc6",
  26810. .addtllen = 16,
  26811. .pers = NULL,
  26812. .perslen = 0,
  26813. }, {
  26814. .entropy = (unsigned char *)
  26815. "\xca\x4b\x1e\xfa\x75\xbd\x69\x36\x38\x73\xb8\xf9"
  26816. "\xdb\x4d\x35\x0e\x47\xbf\x6c\x37\x72\xfd\xf7\xa9",
  26817. .entropylen = 24,
  26818. .expected = (unsigned char *)
  26819. "\x59\xc3\x19\x79\x1b\xb1\xf3\x0e\xe9\x34\xae\x6e"
  26820. "\x8b\x1f\xad\x1f\x74\xca\x25\x45\x68\xb8\x7f\x75"
  26821. "\x12\xf8\xf2\xab\x4c\x23\x01\x03\x05\xe1\x70\xee"
  26822. "\x75\xd8\xcb\xeb\x23\x4c\x7a\x23\x6e\x12\x27\xdb"
  26823. "\x6f\x7a\xac\x3c\x44\xb7\x87\x4b\x65\x56\x74\x45"
  26824. "\x34\x30\x0c\x3d",
  26825. .expectedlen = 64,
  26826. .addtla = NULL,
  26827. .addtlb = NULL,
  26828. .addtllen = 0,
  26829. .pers = (unsigned char *)
  26830. "\xeb\xaa\x60\x2c\x4d\xbe\x33\xff\x1b\xef\xbf\x0a"
  26831. "\x0b\xc6\x97\x54",
  26832. .perslen = 16,
  26833. }, {
  26834. .entropy = (unsigned char *)
  26835. "\xc0\x70\x1f\x92\x50\x75\x8f\xcd\xf2\xbe\x73\x98"
  26836. "\x80\xdb\x66\xeb\x14\x68\xb4\xa5\x87\x9c\x2d\xa6",
  26837. .entropylen = 24,
  26838. .expected = (unsigned char *)
  26839. "\x97\xc0\xc0\xe5\xa0\xcc\xf2\x4f\x33\x63\x48\x8a"
  26840. "\xdb\x13\x0a\x35\x89\xbf\x80\x65\x62\xee\x13\x95"
  26841. "\x7c\x33\xd3\x7d\xf4\x07\x77\x7a\x2b\x65\x0b\x5f"
  26842. "\x45\x5c\x13\xf1\x90\x77\x7f\xc5\x04\x3f\xcc\x1a"
  26843. "\x38\xf8\xcd\x1b\xbb\xd5\x57\xd1\x4a\x4c\x2e\x8a"
  26844. "\x2b\x49\x1e\x5c",
  26845. .expectedlen = 64,
  26846. .addtla = (unsigned char *)
  26847. "\xf9\x01\xf8\x16\x7a\x1d\xff\xde\x8e\x3c\x83\xe2"
  26848. "\x44\x85\xe7\xfe",
  26849. .addtlb = (unsigned char *)
  26850. "\x17\x1c\x09\x38\xc2\x38\x9f\x97\x87\x60\x55\xb4"
  26851. "\x82\x16\x62\x7f",
  26852. .addtllen = 16,
  26853. .pers = (unsigned char *)
  26854. "\x80\x08\xae\xe8\xe9\x69\x40\xc5\x08\x73\xc7\x9f"
  26855. "\x8e\xcf\xe0\x02",
  26856. .perslen = 16,
  26857. },
  26858. };
  26859. /* Cast5 test vectors from RFC 2144 */
  26860. #define CAST5_ENC_TEST_VECTORS 4
  26861. #define CAST5_DEC_TEST_VECTORS 4
  26862. #define CAST5_CBC_ENC_TEST_VECTORS 1
  26863. #define CAST5_CBC_DEC_TEST_VECTORS 1
  26864. #define CAST5_CTR_ENC_TEST_VECTORS 2
  26865. #define CAST5_CTR_DEC_TEST_VECTORS 2
  26866. static struct cipher_testvec cast5_enc_tv_template[] = {
  26867. {
  26868. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  26869. "\x23\x45\x67\x89\x34\x56\x78\x9a",
  26870. .klen = 16,
  26871. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  26872. .ilen = 8,
  26873. .result = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
  26874. .rlen = 8,
  26875. }, {
  26876. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  26877. "\x23\x45",
  26878. .klen = 10,
  26879. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  26880. .ilen = 8,
  26881. .result = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
  26882. .rlen = 8,
  26883. }, {
  26884. .key = "\x01\x23\x45\x67\x12",
  26885. .klen = 5,
  26886. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  26887. .ilen = 8,
  26888. .result = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
  26889. .rlen = 8,
  26890. }, { /* Generated from TF test vectors */
  26891. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  26892. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
  26893. .klen = 16,
  26894. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  26895. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  26896. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  26897. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  26898. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  26899. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  26900. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  26901. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  26902. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  26903. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  26904. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  26905. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  26906. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  26907. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  26908. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  26909. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  26910. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  26911. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  26912. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  26913. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  26914. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  26915. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  26916. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  26917. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  26918. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  26919. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  26920. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  26921. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  26922. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  26923. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  26924. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  26925. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  26926. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  26927. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  26928. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  26929. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  26930. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  26931. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  26932. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  26933. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  26934. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  26935. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  26936. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  26937. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  26938. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  26939. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  26940. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  26941. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  26942. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  26943. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  26944. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  26945. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  26946. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  26947. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  26948. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  26949. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  26950. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  26951. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  26952. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  26953. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  26954. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  26955. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  26956. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  26957. .ilen = 496,
  26958. .result = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C"
  26959. "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA"
  26960. "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E"
  26961. "\xD1\x39\x34\x92\x8F\xFA\x14\xF1"
  26962. "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2"
  26963. "\x20\xD9\x42\x06\xC9\x0B\x10\x04"
  26964. "\xF8\x79\xCD\x32\x86\x75\x4C\xB6"
  26965. "\x7B\x1C\x52\xB1\x91\x64\x22\x4B"
  26966. "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F"
  26967. "\x3F\xF4\x43\x96\x73\x0D\xA2\x05"
  26968. "\xDB\xFD\x28\x90\x2C\x56\xB9\x37"
  26969. "\x5B\x69\x0C\xAD\x84\x67\xFF\x15"
  26970. "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A"
  26971. "\xED\x34\x35\x78\x6B\x91\xC9\x32"
  26972. "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39"
  26973. "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2"
  26974. "\x1C\xFD\x0E\x05\x07\xF4\x10\xED"
  26975. "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22"
  26976. "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9"
  26977. "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77"
  26978. "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC"
  26979. "\xBA\x5C\x80\xD1\x91\x65\x51\x1B"
  26980. "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6"
  26981. "\x78\x75\x37\x55\xC1\xF5\x90\x40"
  26982. "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E"
  26983. "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E"
  26984. "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD"
  26985. "\xE0\x69\x77\x50\xC7\x0C\x99\xCA"
  26986. "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C"
  26987. "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9"
  26988. "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48"
  26989. "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9"
  26990. "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6"
  26991. "\x55\xF4\x06\xBB\x49\x53\x8B\x1B"
  26992. "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC"
  26993. "\x93\x85\x90\x0F\x0A\x68\x40\x2A"
  26994. "\x95\xED\x2D\x88\xBF\x71\xD0\xBB"
  26995. "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05"
  26996. "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2"
  26997. "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8"
  26998. "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF"
  26999. "\xDD\x70\x37\x63\xAA\xA5\x83\x20"
  27000. "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6"
  27001. "\x79\x03\xA0\xDA\xA3\x79\x21\xBD"
  27002. "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE"
  27003. "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06"
  27004. "\xBB\xE3\xAB\x06\x21\x82\xB8\x32"
  27005. "\x31\x34\x2A\xA7\x1F\x64\x99\xBF"
  27006. "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48"
  27007. "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59"
  27008. "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF"
  27009. "\xF0\x40\x5F\xCF\xE3\x58\x52\x67"
  27010. "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F"
  27011. "\x58\x56\xDD\x94\x1F\x71\x8D\xF4"
  27012. "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF"
  27013. "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57"
  27014. "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84"
  27015. "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37"
  27016. "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33"
  27017. "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE"
  27018. "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57"
  27019. "\xF5\xBC\x25\xD6\x02\x56\x57\x1C",
  27020. .rlen = 496,
  27021. .also_non_np = 1,
  27022. .np = 3,
  27023. .tap = { 496 - 20, 4, 16 },
  27024. },
  27025. };
  27026. static struct cipher_testvec cast5_dec_tv_template[] = {
  27027. {
  27028. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  27029. "\x23\x45\x67\x89\x34\x56\x78\x9a",
  27030. .klen = 16,
  27031. .input = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
  27032. .ilen = 8,
  27033. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  27034. .rlen = 8,
  27035. }, {
  27036. .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
  27037. "\x23\x45",
  27038. .klen = 10,
  27039. .input = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
  27040. .ilen = 8,
  27041. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  27042. .rlen = 8,
  27043. }, {
  27044. .key = "\x01\x23\x45\x67\x12",
  27045. .klen = 5,
  27046. .input = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
  27047. .ilen = 8,
  27048. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  27049. .rlen = 8,
  27050. }, { /* Generated from TF test vectors */
  27051. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  27052. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
  27053. .klen = 16,
  27054. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  27055. .input = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C"
  27056. "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA"
  27057. "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E"
  27058. "\xD1\x39\x34\x92\x8F\xFA\x14\xF1"
  27059. "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2"
  27060. "\x20\xD9\x42\x06\xC9\x0B\x10\x04"
  27061. "\xF8\x79\xCD\x32\x86\x75\x4C\xB6"
  27062. "\x7B\x1C\x52\xB1\x91\x64\x22\x4B"
  27063. "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F"
  27064. "\x3F\xF4\x43\x96\x73\x0D\xA2\x05"
  27065. "\xDB\xFD\x28\x90\x2C\x56\xB9\x37"
  27066. "\x5B\x69\x0C\xAD\x84\x67\xFF\x15"
  27067. "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A"
  27068. "\xED\x34\x35\x78\x6B\x91\xC9\x32"
  27069. "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39"
  27070. "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2"
  27071. "\x1C\xFD\x0E\x05\x07\xF4\x10\xED"
  27072. "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22"
  27073. "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9"
  27074. "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77"
  27075. "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC"
  27076. "\xBA\x5C\x80\xD1\x91\x65\x51\x1B"
  27077. "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6"
  27078. "\x78\x75\x37\x55\xC1\xF5\x90\x40"
  27079. "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E"
  27080. "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E"
  27081. "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD"
  27082. "\xE0\x69\x77\x50\xC7\x0C\x99\xCA"
  27083. "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C"
  27084. "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9"
  27085. "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48"
  27086. "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9"
  27087. "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6"
  27088. "\x55\xF4\x06\xBB\x49\x53\x8B\x1B"
  27089. "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC"
  27090. "\x93\x85\x90\x0F\x0A\x68\x40\x2A"
  27091. "\x95\xED\x2D\x88\xBF\x71\xD0\xBB"
  27092. "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05"
  27093. "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2"
  27094. "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8"
  27095. "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF"
  27096. "\xDD\x70\x37\x63\xAA\xA5\x83\x20"
  27097. "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6"
  27098. "\x79\x03\xA0\xDA\xA3\x79\x21\xBD"
  27099. "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE"
  27100. "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06"
  27101. "\xBB\xE3\xAB\x06\x21\x82\xB8\x32"
  27102. "\x31\x34\x2A\xA7\x1F\x64\x99\xBF"
  27103. "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48"
  27104. "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59"
  27105. "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF"
  27106. "\xF0\x40\x5F\xCF\xE3\x58\x52\x67"
  27107. "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F"
  27108. "\x58\x56\xDD\x94\x1F\x71\x8D\xF4"
  27109. "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF"
  27110. "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57"
  27111. "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84"
  27112. "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37"
  27113. "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33"
  27114. "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE"
  27115. "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57"
  27116. "\xF5\xBC\x25\xD6\x02\x56\x57\x1C",
  27117. .ilen = 496,
  27118. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  27119. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  27120. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  27121. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  27122. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  27123. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  27124. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  27125. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  27126. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  27127. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  27128. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  27129. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  27130. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  27131. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  27132. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  27133. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  27134. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  27135. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  27136. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  27137. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  27138. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  27139. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  27140. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  27141. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  27142. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  27143. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  27144. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  27145. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  27146. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  27147. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  27148. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  27149. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  27150. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  27151. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  27152. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  27153. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  27154. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  27155. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  27156. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  27157. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  27158. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  27159. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  27160. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  27161. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  27162. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  27163. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  27164. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  27165. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  27166. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  27167. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  27168. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  27169. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  27170. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  27171. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  27172. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  27173. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  27174. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  27175. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  27176. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  27177. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  27178. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  27179. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  27180. .rlen = 496,
  27181. .also_non_np = 1,
  27182. .np = 3,
  27183. .tap = { 496 - 20, 4, 16 },
  27184. },
  27185. };
  27186. static struct cipher_testvec cast5_cbc_enc_tv_template[] = {
  27187. { /* Generated from TF test vectors */
  27188. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  27189. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
  27190. .klen = 16,
  27191. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  27192. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  27193. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  27194. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  27195. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  27196. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  27197. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  27198. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  27199. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  27200. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  27201. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  27202. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  27203. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  27204. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  27205. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  27206. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  27207. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  27208. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  27209. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  27210. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  27211. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  27212. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  27213. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  27214. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  27215. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  27216. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  27217. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  27218. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  27219. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  27220. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  27221. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  27222. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  27223. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  27224. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  27225. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  27226. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  27227. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  27228. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  27229. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  27230. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  27231. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  27232. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  27233. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  27234. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  27235. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  27236. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  27237. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  27238. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  27239. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  27240. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  27241. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  27242. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  27243. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  27244. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  27245. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  27246. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  27247. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  27248. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  27249. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  27250. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  27251. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  27252. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  27253. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  27254. .ilen = 496,
  27255. .result = "\x05\x28\xCE\x61\x90\x80\xE1\x78"
  27256. "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A"
  27257. "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB"
  27258. "\xDA\xF0\x6E\x77\x14\x47\x82\xBA"
  27259. "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F"
  27260. "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39"
  27261. "\xA7\xFB\x0D\x05\x00\xF3\x58\x67"
  27262. "\x60\xEC\x73\x77\x46\x85\x9B\x6A"
  27263. "\x08\x3E\xBE\x59\xFB\xE4\x96\x34"
  27264. "\xB4\x05\x49\x1A\x97\x43\xAD\xA0"
  27265. "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8"
  27266. "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA"
  27267. "\xA7\xF1\x33\x67\x90\x23\x0D\xEE"
  27268. "\x81\xD5\x78\x4F\xD3\x63\xEA\x46"
  27269. "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10"
  27270. "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D"
  27271. "\x36\x7C\x56\x14\x54\x83\xFA\xA1"
  27272. "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6"
  27273. "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8"
  27274. "\xA7\xD9\x67\x92\x5C\x13\xB4\x71"
  27275. "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C"
  27276. "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37"
  27277. "\xC8\x52\x60\xD9\xE7\xCA\x60\x98"
  27278. "\xED\xCD\xE8\x60\x83\xAD\x34\x4D"
  27279. "\x96\x4A\x99\x2B\xB7\x14\x75\x66"
  27280. "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56"
  27281. "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3"
  27282. "\x18\x38\x09\x9C\x0E\x8B\x86\x07"
  27283. "\x90\x12\x37\x49\x27\x98\x69\x18"
  27284. "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85"
  27285. "\x4B\x22\x97\x07\xB6\x97\xE9\x95"
  27286. "\x0F\x88\x36\xA9\x44\x00\xC6\xE9"
  27287. "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE"
  27288. "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49"
  27289. "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97"
  27290. "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE"
  27291. "\x03\x55\x0E\x02\x41\x4A\x45\x06"
  27292. "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20"
  27293. "\x94\x02\x30\xD2\xFC\x29\xFA\x8E"
  27294. "\x34\xA0\x31\xB8\x34\xBA\xAE\x54"
  27295. "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F"
  27296. "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A"
  27297. "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3"
  27298. "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A"
  27299. "\xB6\x37\x21\x19\x55\xC2\xBD\x99"
  27300. "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2"
  27301. "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2"
  27302. "\x11\xB4\x18\x17\x1A\x65\x92\x56"
  27303. "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1"
  27304. "\x1A\x01\x22\x45\x17\x62\x52\x6C"
  27305. "\x91\x44\xCF\x98\xC7\xC0\x79\x26"
  27306. "\x32\x66\x6F\x23\x7F\x94\x36\x88"
  27307. "\x3C\xC9\xD0\xB7\x45\x30\x31\x86"
  27308. "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B"
  27309. "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86"
  27310. "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA"
  27311. "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9"
  27312. "\x7C\xEF\x53\xB7\x60\x72\x41\xBF"
  27313. "\x29\x00\x87\x02\xAF\x44\x4C\xB7"
  27314. "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7"
  27315. "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6"
  27316. "\x1D\x18\x66\x44\x5B\x8F\x14\xEB",
  27317. .rlen = 496,
  27318. .also_non_np = 1,
  27319. .np = 3,
  27320. .tap = { 496 - 20, 4, 16 },
  27321. },
  27322. };
  27323. static struct cipher_testvec cast5_cbc_dec_tv_template[] = {
  27324. { /* Generated from TF test vectors */
  27325. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  27326. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
  27327. .klen = 16,
  27328. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  27329. .input = "\x05\x28\xCE\x61\x90\x80\xE1\x78"
  27330. "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A"
  27331. "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB"
  27332. "\xDA\xF0\x6E\x77\x14\x47\x82\xBA"
  27333. "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F"
  27334. "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39"
  27335. "\xA7\xFB\x0D\x05\x00\xF3\x58\x67"
  27336. "\x60\xEC\x73\x77\x46\x85\x9B\x6A"
  27337. "\x08\x3E\xBE\x59\xFB\xE4\x96\x34"
  27338. "\xB4\x05\x49\x1A\x97\x43\xAD\xA0"
  27339. "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8"
  27340. "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA"
  27341. "\xA7\xF1\x33\x67\x90\x23\x0D\xEE"
  27342. "\x81\xD5\x78\x4F\xD3\x63\xEA\x46"
  27343. "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10"
  27344. "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D"
  27345. "\x36\x7C\x56\x14\x54\x83\xFA\xA1"
  27346. "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6"
  27347. "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8"
  27348. "\xA7\xD9\x67\x92\x5C\x13\xB4\x71"
  27349. "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C"
  27350. "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37"
  27351. "\xC8\x52\x60\xD9\xE7\xCA\x60\x98"
  27352. "\xED\xCD\xE8\x60\x83\xAD\x34\x4D"
  27353. "\x96\x4A\x99\x2B\xB7\x14\x75\x66"
  27354. "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56"
  27355. "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3"
  27356. "\x18\x38\x09\x9C\x0E\x8B\x86\x07"
  27357. "\x90\x12\x37\x49\x27\x98\x69\x18"
  27358. "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85"
  27359. "\x4B\x22\x97\x07\xB6\x97\xE9\x95"
  27360. "\x0F\x88\x36\xA9\x44\x00\xC6\xE9"
  27361. "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE"
  27362. "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49"
  27363. "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97"
  27364. "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE"
  27365. "\x03\x55\x0E\x02\x41\x4A\x45\x06"
  27366. "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20"
  27367. "\x94\x02\x30\xD2\xFC\x29\xFA\x8E"
  27368. "\x34\xA0\x31\xB8\x34\xBA\xAE\x54"
  27369. "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F"
  27370. "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A"
  27371. "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3"
  27372. "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A"
  27373. "\xB6\x37\x21\x19\x55\xC2\xBD\x99"
  27374. "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2"
  27375. "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2"
  27376. "\x11\xB4\x18\x17\x1A\x65\x92\x56"
  27377. "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1"
  27378. "\x1A\x01\x22\x45\x17\x62\x52\x6C"
  27379. "\x91\x44\xCF\x98\xC7\xC0\x79\x26"
  27380. "\x32\x66\x6F\x23\x7F\x94\x36\x88"
  27381. "\x3C\xC9\xD0\xB7\x45\x30\x31\x86"
  27382. "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B"
  27383. "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86"
  27384. "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA"
  27385. "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9"
  27386. "\x7C\xEF\x53\xB7\x60\x72\x41\xBF"
  27387. "\x29\x00\x87\x02\xAF\x44\x4C\xB7"
  27388. "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7"
  27389. "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6"
  27390. "\x1D\x18\x66\x44\x5B\x8F\x14\xEB",
  27391. .ilen = 496,
  27392. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  27393. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  27394. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  27395. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  27396. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  27397. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  27398. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  27399. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  27400. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  27401. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  27402. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  27403. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  27404. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  27405. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  27406. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  27407. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  27408. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  27409. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  27410. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  27411. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  27412. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  27413. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  27414. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  27415. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  27416. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  27417. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  27418. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  27419. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  27420. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  27421. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  27422. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  27423. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  27424. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  27425. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  27426. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  27427. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  27428. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  27429. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  27430. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  27431. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  27432. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  27433. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  27434. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  27435. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  27436. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  27437. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  27438. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  27439. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  27440. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  27441. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  27442. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  27443. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  27444. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  27445. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  27446. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  27447. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  27448. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  27449. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  27450. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  27451. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  27452. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  27453. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  27454. .rlen = 496,
  27455. .also_non_np = 1,
  27456. .np = 3,
  27457. .tap = { 496 - 20, 4, 16 },
  27458. },
  27459. };
  27460. static struct cipher_testvec cast5_ctr_enc_tv_template[] = {
  27461. { /* Generated from TF test vectors */
  27462. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  27463. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
  27464. .klen = 16,
  27465. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  27466. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  27467. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  27468. "\x3A",
  27469. .ilen = 17,
  27470. .result = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
  27471. "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
  27472. "\x0C",
  27473. .rlen = 17,
  27474. }, { /* Generated from TF test vectors */
  27475. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  27476. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
  27477. .klen = 16,
  27478. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  27479. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  27480. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  27481. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  27482. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  27483. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  27484. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  27485. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  27486. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  27487. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  27488. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  27489. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  27490. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  27491. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  27492. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  27493. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  27494. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  27495. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  27496. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  27497. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  27498. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  27499. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  27500. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  27501. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  27502. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  27503. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  27504. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  27505. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  27506. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  27507. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  27508. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  27509. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  27510. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  27511. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  27512. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  27513. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  27514. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  27515. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  27516. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  27517. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  27518. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  27519. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  27520. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  27521. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  27522. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  27523. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  27524. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  27525. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  27526. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  27527. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  27528. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  27529. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  27530. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  27531. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  27532. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  27533. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  27534. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  27535. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  27536. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  27537. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  27538. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  27539. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  27540. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  27541. .ilen = 496,
  27542. .result = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
  27543. "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
  27544. "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F"
  27545. "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF"
  27546. "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44"
  27547. "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C"
  27548. "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF"
  27549. "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B"
  27550. "\x64\xB0\x7B\x86\x29\x1D\x9F\x17"
  27551. "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3"
  27552. "\x88\x18\x52\x56\x48\x58\xD1\x6B"
  27553. "\xE8\x74\x6E\x48\xB0\x2E\x69\x63"
  27554. "\x32\xAA\xAC\x26\x55\x45\x94\xDE"
  27555. "\x30\x26\x26\xE6\x08\x82\x2F\x5F"
  27556. "\xA7\x15\x94\x07\x75\x2D\xC6\x3A"
  27557. "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56"
  27558. "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B"
  27559. "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7"
  27560. "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5"
  27561. "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F"
  27562. "\x3B\x29\xF9\xB4\x32\x62\x69\xBF"
  27563. "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3"
  27564. "\x44\x67\x90\x20\xAC\x41\xDF\x43"
  27565. "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB"
  27566. "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60"
  27567. "\xC7\xC9\x71\x34\x44\xCE\x05\xFD"
  27568. "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C"
  27569. "\xAE\x59\x0F\x07\x88\x79\x53\x26"
  27570. "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62"
  27571. "\xD0\x82\x65\x66\xE4\x2A\x29\x1C"
  27572. "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9"
  27573. "\xED\xC4\x13\x52\x75\xDC\xE4\xF9"
  27574. "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA"
  27575. "\x49\xA1\x86\x86\x37\x5C\x6B\x3D"
  27576. "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8"
  27577. "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0"
  27578. "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2"
  27579. "\x23\xD3\xC7\x27\x15\x04\x2C\x27"
  27580. "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D"
  27581. "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14"
  27582. "\x4B\x78\xC4\xDE\x07\x6A\x12\x02"
  27583. "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02"
  27584. "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18"
  27585. "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06"
  27586. "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E"
  27587. "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66"
  27588. "\x16\xB5\xC8\x45\x21\x37\xBD\x24"
  27589. "\xA9\xD5\x36\x12\x9F\x6E\x67\x80"
  27590. "\x87\x54\xD5\xAF\x97\xE1\x15\xA7"
  27591. "\x11\xF0\x63\x7B\xE1\x44\x14\x1C"
  27592. "\x06\x32\x05\x8C\x6C\xDB\x9B\x36"
  27593. "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C"
  27594. "\x76\x36\x43\xE8\x16\x60\xB5\xF3"
  27595. "\xDF\x5A\xC6\xA5\x69\x78\x59\x51"
  27596. "\x54\x68\x65\x06\x84\xDE\x3D\xAE"
  27597. "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6"
  27598. "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE"
  27599. "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B"
  27600. "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1"
  27601. "\x91\x01\xD7\x21\x23\x28\x1E\xCC"
  27602. "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA"
  27603. "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13",
  27604. .rlen = 496,
  27605. .also_non_np = 1,
  27606. .np = 3,
  27607. .tap = { 496 - 20, 4, 16 },
  27608. },
  27609. };
  27610. static struct cipher_testvec cast5_ctr_dec_tv_template[] = {
  27611. { /* Generated from TF test vectors */
  27612. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  27613. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
  27614. .klen = 16,
  27615. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  27616. .input = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
  27617. "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
  27618. "\x0C",
  27619. .ilen = 17,
  27620. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  27621. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  27622. "\x3A",
  27623. .rlen = 17,
  27624. }, { /* Generated from TF test vectors */
  27625. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  27626. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
  27627. .klen = 16,
  27628. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
  27629. .input = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
  27630. "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
  27631. "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F"
  27632. "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF"
  27633. "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44"
  27634. "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C"
  27635. "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF"
  27636. "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B"
  27637. "\x64\xB0\x7B\x86\x29\x1D\x9F\x17"
  27638. "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3"
  27639. "\x88\x18\x52\x56\x48\x58\xD1\x6B"
  27640. "\xE8\x74\x6E\x48\xB0\x2E\x69\x63"
  27641. "\x32\xAA\xAC\x26\x55\x45\x94\xDE"
  27642. "\x30\x26\x26\xE6\x08\x82\x2F\x5F"
  27643. "\xA7\x15\x94\x07\x75\x2D\xC6\x3A"
  27644. "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56"
  27645. "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B"
  27646. "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7"
  27647. "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5"
  27648. "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F"
  27649. "\x3B\x29\xF9\xB4\x32\x62\x69\xBF"
  27650. "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3"
  27651. "\x44\x67\x90\x20\xAC\x41\xDF\x43"
  27652. "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB"
  27653. "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60"
  27654. "\xC7\xC9\x71\x34\x44\xCE\x05\xFD"
  27655. "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C"
  27656. "\xAE\x59\x0F\x07\x88\x79\x53\x26"
  27657. "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62"
  27658. "\xD0\x82\x65\x66\xE4\x2A\x29\x1C"
  27659. "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9"
  27660. "\xED\xC4\x13\x52\x75\xDC\xE4\xF9"
  27661. "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA"
  27662. "\x49\xA1\x86\x86\x37\x5C\x6B\x3D"
  27663. "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8"
  27664. "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0"
  27665. "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2"
  27666. "\x23\xD3\xC7\x27\x15\x04\x2C\x27"
  27667. "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D"
  27668. "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14"
  27669. "\x4B\x78\xC4\xDE\x07\x6A\x12\x02"
  27670. "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02"
  27671. "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18"
  27672. "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06"
  27673. "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E"
  27674. "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66"
  27675. "\x16\xB5\xC8\x45\x21\x37\xBD\x24"
  27676. "\xA9\xD5\x36\x12\x9F\x6E\x67\x80"
  27677. "\x87\x54\xD5\xAF\x97\xE1\x15\xA7"
  27678. "\x11\xF0\x63\x7B\xE1\x44\x14\x1C"
  27679. "\x06\x32\x05\x8C\x6C\xDB\x9B\x36"
  27680. "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C"
  27681. "\x76\x36\x43\xE8\x16\x60\xB5\xF3"
  27682. "\xDF\x5A\xC6\xA5\x69\x78\x59\x51"
  27683. "\x54\x68\x65\x06\x84\xDE\x3D\xAE"
  27684. "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6"
  27685. "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE"
  27686. "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B"
  27687. "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1"
  27688. "\x91\x01\xD7\x21\x23\x28\x1E\xCC"
  27689. "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA"
  27690. "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13",
  27691. .ilen = 496,
  27692. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  27693. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  27694. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  27695. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  27696. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  27697. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  27698. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  27699. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  27700. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  27701. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  27702. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  27703. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  27704. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  27705. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  27706. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  27707. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  27708. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  27709. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  27710. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  27711. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  27712. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  27713. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  27714. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  27715. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  27716. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  27717. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  27718. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  27719. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  27720. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  27721. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  27722. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  27723. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  27724. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  27725. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  27726. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  27727. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  27728. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  27729. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  27730. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  27731. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  27732. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  27733. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  27734. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  27735. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  27736. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  27737. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  27738. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  27739. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  27740. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  27741. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  27742. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  27743. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  27744. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  27745. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  27746. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  27747. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  27748. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  27749. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  27750. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  27751. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  27752. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  27753. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  27754. .rlen = 496,
  27755. .also_non_np = 1,
  27756. .np = 3,
  27757. .tap = { 496 - 20, 4, 16 },
  27758. },
  27759. };
  27760. /*
  27761. * ARC4 test vectors from OpenSSL
  27762. */
  27763. #define ARC4_ENC_TEST_VECTORS 7
  27764. #define ARC4_DEC_TEST_VECTORS 7
  27765. static struct cipher_testvec arc4_enc_tv_template[] = {
  27766. {
  27767. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  27768. .klen = 8,
  27769. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  27770. .ilen = 8,
  27771. .result = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
  27772. .rlen = 8,
  27773. }, {
  27774. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  27775. .klen = 8,
  27776. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  27777. .ilen = 8,
  27778. .result = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
  27779. .rlen = 8,
  27780. }, {
  27781. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  27782. .klen = 8,
  27783. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  27784. .ilen = 8,
  27785. .result = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
  27786. .rlen = 8,
  27787. }, {
  27788. .key = "\xef\x01\x23\x45",
  27789. .klen = 4,
  27790. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  27791. "\x00\x00\x00\x00\x00\x00\x00\x00"
  27792. "\x00\x00\x00\x00",
  27793. .ilen = 20,
  27794. .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  27795. "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
  27796. "\x36\xb6\x78\x58",
  27797. .rlen = 20,
  27798. }, {
  27799. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  27800. .klen = 8,
  27801. .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  27802. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  27803. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  27804. "\x12\x34\x56\x78",
  27805. .ilen = 28,
  27806. .result = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
  27807. "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
  27808. "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
  27809. "\x40\x01\x1e\xcf",
  27810. .rlen = 28,
  27811. }, {
  27812. .key = "\xef\x01\x23\x45",
  27813. .klen = 4,
  27814. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  27815. "\x00\x00",
  27816. .ilen = 10,
  27817. .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  27818. "\xbd\x61",
  27819. .rlen = 10,
  27820. }, {
  27821. .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
  27822. "\x00\x00\x00\x00\x00\x00\x00\x00",
  27823. .klen = 16,
  27824. .input = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
  27825. .ilen = 8,
  27826. .result = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
  27827. .rlen = 8,
  27828. },
  27829. };
  27830. static struct cipher_testvec arc4_dec_tv_template[] = {
  27831. {
  27832. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  27833. .klen = 8,
  27834. .input = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
  27835. .ilen = 8,
  27836. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  27837. .rlen = 8,
  27838. }, {
  27839. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  27840. .klen = 8,
  27841. .input = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
  27842. .ilen = 8,
  27843. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  27844. .rlen = 8,
  27845. }, {
  27846. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  27847. .klen = 8,
  27848. .input = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
  27849. .ilen = 8,
  27850. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  27851. .rlen = 8,
  27852. }, {
  27853. .key = "\xef\x01\x23\x45",
  27854. .klen = 4,
  27855. .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  27856. "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
  27857. "\x36\xb6\x78\x58",
  27858. .ilen = 20,
  27859. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  27860. "\x00\x00\x00\x00\x00\x00\x00\x00"
  27861. "\x00\x00\x00\x00",
  27862. .rlen = 20,
  27863. }, {
  27864. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
  27865. .klen = 8,
  27866. .input = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
  27867. "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
  27868. "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
  27869. "\x40\x01\x1e\xcf",
  27870. .ilen = 28,
  27871. .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  27872. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  27873. "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
  27874. "\x12\x34\x56\x78",
  27875. .rlen = 28,
  27876. }, {
  27877. .key = "\xef\x01\x23\x45",
  27878. .klen = 4,
  27879. .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
  27880. "\xbd\x61",
  27881. .ilen = 10,
  27882. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  27883. "\x00\x00",
  27884. .rlen = 10,
  27885. }, {
  27886. .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
  27887. "\x00\x00\x00\x00\x00\x00\x00\x00",
  27888. .klen = 16,
  27889. .input = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
  27890. .ilen = 8,
  27891. .result = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
  27892. .rlen = 8,
  27893. },
  27894. };
  27895. /*
  27896. * TEA test vectors
  27897. */
  27898. #define TEA_ENC_TEST_VECTORS 4
  27899. #define TEA_DEC_TEST_VECTORS 4
  27900. static struct cipher_testvec tea_enc_tv_template[] = {
  27901. {
  27902. .key = zeroed_string,
  27903. .klen = 16,
  27904. .input = zeroed_string,
  27905. .ilen = 8,
  27906. .result = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
  27907. .rlen = 8,
  27908. }, {
  27909. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  27910. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  27911. .klen = 16,
  27912. .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  27913. .ilen = 8,
  27914. .result = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
  27915. .rlen = 8,
  27916. }, {
  27917. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  27918. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  27919. .klen = 16,
  27920. .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  27921. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  27922. .ilen = 16,
  27923. .result = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
  27924. "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
  27925. .rlen = 16,
  27926. }, {
  27927. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  27928. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  27929. .klen = 16,
  27930. .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
  27931. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  27932. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  27933. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  27934. .ilen = 32,
  27935. .result = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
  27936. "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
  27937. "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
  27938. "\x07\x89\x73\xc2\x45\x92\xc6\x90",
  27939. .rlen = 32,
  27940. }
  27941. };
  27942. static struct cipher_testvec tea_dec_tv_template[] = {
  27943. {
  27944. .key = zeroed_string,
  27945. .klen = 16,
  27946. .input = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
  27947. .ilen = 8,
  27948. .result = zeroed_string,
  27949. .rlen = 8,
  27950. }, {
  27951. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  27952. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  27953. .klen = 16,
  27954. .input = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
  27955. .ilen = 8,
  27956. .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  27957. .rlen = 8,
  27958. }, {
  27959. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  27960. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  27961. .klen = 16,
  27962. .input = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
  27963. "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
  27964. .ilen = 16,
  27965. .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  27966. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  27967. .rlen = 16,
  27968. }, {
  27969. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  27970. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  27971. .klen = 16,
  27972. .input = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
  27973. "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
  27974. "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
  27975. "\x07\x89\x73\xc2\x45\x92\xc6\x90",
  27976. .ilen = 32,
  27977. .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
  27978. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  27979. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  27980. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  27981. .rlen = 32,
  27982. }
  27983. };
  27984. /*
  27985. * XTEA test vectors
  27986. */
  27987. #define XTEA_ENC_TEST_VECTORS 4
  27988. #define XTEA_DEC_TEST_VECTORS 4
  27989. static struct cipher_testvec xtea_enc_tv_template[] = {
  27990. {
  27991. .key = zeroed_string,
  27992. .klen = 16,
  27993. .input = zeroed_string,
  27994. .ilen = 8,
  27995. .result = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
  27996. .rlen = 8,
  27997. }, {
  27998. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  27999. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  28000. .klen = 16,
  28001. .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  28002. .ilen = 8,
  28003. .result = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
  28004. .rlen = 8,
  28005. }, {
  28006. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  28007. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  28008. .klen = 16,
  28009. .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  28010. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  28011. .ilen = 16,
  28012. .result = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
  28013. "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
  28014. .rlen = 16,
  28015. }, {
  28016. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  28017. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  28018. .klen = 16,
  28019. .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
  28020. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  28021. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  28022. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  28023. .ilen = 32,
  28024. .result = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
  28025. "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
  28026. "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
  28027. "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
  28028. .rlen = 32,
  28029. }
  28030. };
  28031. static struct cipher_testvec xtea_dec_tv_template[] = {
  28032. {
  28033. .key = zeroed_string,
  28034. .klen = 16,
  28035. .input = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
  28036. .ilen = 8,
  28037. .result = zeroed_string,
  28038. .rlen = 8,
  28039. }, {
  28040. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  28041. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  28042. .klen = 16,
  28043. .input = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
  28044. .ilen = 8,
  28045. .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  28046. .rlen = 8,
  28047. }, {
  28048. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  28049. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  28050. .klen = 16,
  28051. .input = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
  28052. "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
  28053. .ilen = 16,
  28054. .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  28055. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  28056. .rlen = 16,
  28057. }, {
  28058. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  28059. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  28060. .klen = 16,
  28061. .input = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
  28062. "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
  28063. "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
  28064. "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
  28065. .ilen = 32,
  28066. .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
  28067. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  28068. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  28069. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  28070. .rlen = 32,
  28071. }
  28072. };
  28073. /*
  28074. * KHAZAD test vectors.
  28075. */
  28076. #define KHAZAD_ENC_TEST_VECTORS 5
  28077. #define KHAZAD_DEC_TEST_VECTORS 5
  28078. static struct cipher_testvec khazad_enc_tv_template[] = {
  28079. {
  28080. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  28081. "\x00\x00\x00\x00\x00\x00\x00\x00",
  28082. .klen = 16,
  28083. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  28084. .ilen = 8,
  28085. .result = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
  28086. .rlen = 8,
  28087. }, {
  28088. .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
  28089. "\x38\x38\x38\x38\x38\x38\x38\x38",
  28090. .klen = 16,
  28091. .input = "\x38\x38\x38\x38\x38\x38\x38\x38",
  28092. .ilen = 8,
  28093. .result = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
  28094. .rlen = 8,
  28095. }, {
  28096. .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
  28097. "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  28098. .klen = 16,
  28099. .input = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  28100. .ilen = 8,
  28101. .result = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
  28102. .rlen = 8,
  28103. }, {
  28104. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  28105. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  28106. .klen = 16,
  28107. .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  28108. .ilen = 8,
  28109. .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  28110. .rlen = 8,
  28111. }, {
  28112. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  28113. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  28114. .klen = 16,
  28115. .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  28116. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  28117. .ilen = 16,
  28118. .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
  28119. "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  28120. .rlen = 16,
  28121. },
  28122. };
  28123. static struct cipher_testvec khazad_dec_tv_template[] = {
  28124. {
  28125. .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
  28126. "\x00\x00\x00\x00\x00\x00\x00\x00",
  28127. .klen = 16,
  28128. .input = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
  28129. .ilen = 8,
  28130. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  28131. .rlen = 8,
  28132. }, {
  28133. .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
  28134. "\x38\x38\x38\x38\x38\x38\x38\x38",
  28135. .klen = 16,
  28136. .input = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
  28137. .ilen = 8,
  28138. .result = "\x38\x38\x38\x38\x38\x38\x38\x38",
  28139. .rlen = 8,
  28140. }, {
  28141. .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
  28142. "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  28143. .klen = 16,
  28144. .input = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
  28145. .ilen = 8,
  28146. .result = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
  28147. .rlen = 8,
  28148. }, {
  28149. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  28150. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  28151. .klen = 16,
  28152. .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  28153. .ilen = 8,
  28154. .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  28155. .rlen = 8,
  28156. }, {
  28157. .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  28158. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  28159. .klen = 16,
  28160. .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
  28161. "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
  28162. .ilen = 16,
  28163. .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
  28164. "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
  28165. .rlen = 16,
  28166. },
  28167. };
  28168. /*
  28169. * Anubis test vectors.
  28170. */
  28171. #define ANUBIS_ENC_TEST_VECTORS 5
  28172. #define ANUBIS_DEC_TEST_VECTORS 5
  28173. #define ANUBIS_CBC_ENC_TEST_VECTORS 2
  28174. #define ANUBIS_CBC_DEC_TEST_VECTORS 2
  28175. static struct cipher_testvec anubis_enc_tv_template[] = {
  28176. {
  28177. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  28178. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  28179. .klen = 16,
  28180. .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  28181. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  28182. .ilen = 16,
  28183. .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  28184. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
  28185. .rlen = 16,
  28186. }, {
  28187. .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
  28188. "\x03\x03\x03\x03\x03\x03\x03\x03"
  28189. "\x03\x03\x03\x03",
  28190. .klen = 20,
  28191. .input = "\x03\x03\x03\x03\x03\x03\x03\x03"
  28192. "\x03\x03\x03\x03\x03\x03\x03\x03",
  28193. .ilen = 16,
  28194. .result = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
  28195. "\x87\x41\x6f\x82\x0a\x98\x64\xae",
  28196. .rlen = 16,
  28197. }, {
  28198. .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
  28199. "\x24\x24\x24\x24\x24\x24\x24\x24"
  28200. "\x24\x24\x24\x24\x24\x24\x24\x24"
  28201. "\x24\x24\x24\x24",
  28202. .klen = 28,
  28203. .input = "\x24\x24\x24\x24\x24\x24\x24\x24"
  28204. "\x24\x24\x24\x24\x24\x24\x24\x24",
  28205. .ilen = 16,
  28206. .result = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
  28207. "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
  28208. .rlen = 16,
  28209. }, {
  28210. .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
  28211. "\x25\x25\x25\x25\x25\x25\x25\x25"
  28212. "\x25\x25\x25\x25\x25\x25\x25\x25"
  28213. "\x25\x25\x25\x25\x25\x25\x25\x25",
  28214. .klen = 32,
  28215. .input = "\x25\x25\x25\x25\x25\x25\x25\x25"
  28216. "\x25\x25\x25\x25\x25\x25\x25\x25",
  28217. .ilen = 16,
  28218. .result = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
  28219. "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
  28220. .rlen = 16,
  28221. }, {
  28222. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  28223. "\x35\x35\x35\x35\x35\x35\x35\x35"
  28224. "\x35\x35\x35\x35\x35\x35\x35\x35"
  28225. "\x35\x35\x35\x35\x35\x35\x35\x35"
  28226. "\x35\x35\x35\x35\x35\x35\x35\x35",
  28227. .klen = 40,
  28228. .input = "\x35\x35\x35\x35\x35\x35\x35\x35"
  28229. "\x35\x35\x35\x35\x35\x35\x35\x35",
  28230. .ilen = 16,
  28231. .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  28232. "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
  28233. .rlen = 16,
  28234. },
  28235. };
  28236. static struct cipher_testvec anubis_dec_tv_template[] = {
  28237. {
  28238. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  28239. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  28240. .klen = 16,
  28241. .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  28242. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
  28243. .ilen = 16,
  28244. .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  28245. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  28246. .rlen = 16,
  28247. }, {
  28248. .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
  28249. "\x03\x03\x03\x03\x03\x03\x03\x03"
  28250. "\x03\x03\x03\x03",
  28251. .klen = 20,
  28252. .input = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
  28253. "\x87\x41\x6f\x82\x0a\x98\x64\xae",
  28254. .ilen = 16,
  28255. .result = "\x03\x03\x03\x03\x03\x03\x03\x03"
  28256. "\x03\x03\x03\x03\x03\x03\x03\x03",
  28257. .rlen = 16,
  28258. }, {
  28259. .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
  28260. "\x24\x24\x24\x24\x24\x24\x24\x24"
  28261. "\x24\x24\x24\x24\x24\x24\x24\x24"
  28262. "\x24\x24\x24\x24",
  28263. .klen = 28,
  28264. .input = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
  28265. "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
  28266. .ilen = 16,
  28267. .result = "\x24\x24\x24\x24\x24\x24\x24\x24"
  28268. "\x24\x24\x24\x24\x24\x24\x24\x24",
  28269. .rlen = 16,
  28270. }, {
  28271. .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
  28272. "\x25\x25\x25\x25\x25\x25\x25\x25"
  28273. "\x25\x25\x25\x25\x25\x25\x25\x25"
  28274. "\x25\x25\x25\x25\x25\x25\x25\x25",
  28275. .klen = 32,
  28276. .input = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
  28277. "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
  28278. .ilen = 16,
  28279. .result = "\x25\x25\x25\x25\x25\x25\x25\x25"
  28280. "\x25\x25\x25\x25\x25\x25\x25\x25",
  28281. .rlen = 16,
  28282. }, {
  28283. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  28284. "\x35\x35\x35\x35\x35\x35\x35\x35"
  28285. "\x35\x35\x35\x35\x35\x35\x35\x35"
  28286. "\x35\x35\x35\x35\x35\x35\x35\x35"
  28287. "\x35\x35\x35\x35\x35\x35\x35\x35",
  28288. .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  28289. "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
  28290. .klen = 40,
  28291. .ilen = 16,
  28292. .result = "\x35\x35\x35\x35\x35\x35\x35\x35"
  28293. "\x35\x35\x35\x35\x35\x35\x35\x35",
  28294. .rlen = 16,
  28295. },
  28296. };
  28297. static struct cipher_testvec anubis_cbc_enc_tv_template[] = {
  28298. {
  28299. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  28300. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  28301. .klen = 16,
  28302. .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  28303. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  28304. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  28305. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  28306. .ilen = 32,
  28307. .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  28308. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
  28309. "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
  28310. "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
  28311. .rlen = 32,
  28312. }, {
  28313. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  28314. "\x35\x35\x35\x35\x35\x35\x35\x35"
  28315. "\x35\x35\x35\x35\x35\x35\x35\x35"
  28316. "\x35\x35\x35\x35\x35\x35\x35\x35"
  28317. "\x35\x35\x35\x35\x35\x35\x35\x35",
  28318. .klen = 40,
  28319. .input = "\x35\x35\x35\x35\x35\x35\x35\x35"
  28320. "\x35\x35\x35\x35\x35\x35\x35\x35"
  28321. "\x35\x35\x35\x35\x35\x35\x35\x35"
  28322. "\x35\x35\x35\x35\x35\x35\x35\x35",
  28323. .ilen = 32,
  28324. .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  28325. "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
  28326. "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
  28327. "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
  28328. .rlen = 32,
  28329. },
  28330. };
  28331. static struct cipher_testvec anubis_cbc_dec_tv_template[] = {
  28332. {
  28333. .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  28334. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  28335. .klen = 16,
  28336. .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
  28337. "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
  28338. "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
  28339. "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
  28340. .ilen = 32,
  28341. .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  28342. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  28343. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
  28344. "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
  28345. .rlen = 32,
  28346. }, {
  28347. .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
  28348. "\x35\x35\x35\x35\x35\x35\x35\x35"
  28349. "\x35\x35\x35\x35\x35\x35\x35\x35"
  28350. "\x35\x35\x35\x35\x35\x35\x35\x35"
  28351. "\x35\x35\x35\x35\x35\x35\x35\x35",
  28352. .klen = 40,
  28353. .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
  28354. "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
  28355. "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
  28356. "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
  28357. .ilen = 32,
  28358. .result = "\x35\x35\x35\x35\x35\x35\x35\x35"
  28359. "\x35\x35\x35\x35\x35\x35\x35\x35"
  28360. "\x35\x35\x35\x35\x35\x35\x35\x35"
  28361. "\x35\x35\x35\x35\x35\x35\x35\x35",
  28362. .rlen = 32,
  28363. },
  28364. };
  28365. /*
  28366. * XETA test vectors
  28367. */
  28368. #define XETA_ENC_TEST_VECTORS 4
  28369. #define XETA_DEC_TEST_VECTORS 4
  28370. static struct cipher_testvec xeta_enc_tv_template[] = {
  28371. {
  28372. .key = zeroed_string,
  28373. .klen = 16,
  28374. .input = zeroed_string,
  28375. .ilen = 8,
  28376. .result = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
  28377. .rlen = 8,
  28378. }, {
  28379. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  28380. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  28381. .klen = 16,
  28382. .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  28383. .ilen = 8,
  28384. .result = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
  28385. .rlen = 8,
  28386. }, {
  28387. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  28388. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  28389. .klen = 16,
  28390. .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  28391. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  28392. .ilen = 16,
  28393. .result = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
  28394. "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
  28395. .rlen = 16,
  28396. }, {
  28397. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  28398. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  28399. .klen = 16,
  28400. .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
  28401. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  28402. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  28403. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  28404. .ilen = 32,
  28405. .result = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
  28406. "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
  28407. "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
  28408. "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
  28409. .rlen = 32,
  28410. }
  28411. };
  28412. static struct cipher_testvec xeta_dec_tv_template[] = {
  28413. {
  28414. .key = zeroed_string,
  28415. .klen = 16,
  28416. .input = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
  28417. .ilen = 8,
  28418. .result = zeroed_string,
  28419. .rlen = 8,
  28420. }, {
  28421. .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
  28422. "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
  28423. .klen = 16,
  28424. .input = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
  28425. .ilen = 8,
  28426. .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
  28427. .rlen = 8,
  28428. }, {
  28429. .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
  28430. "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
  28431. .klen = 16,
  28432. .input = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
  28433. "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
  28434. .ilen = 16,
  28435. .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
  28436. "\x65\x73\x74\x5f\x76\x65\x63\x74",
  28437. .rlen = 16,
  28438. }, {
  28439. .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
  28440. "\x5d\x04\x16\x36\x15\x72\x63\x2f",
  28441. .klen = 16,
  28442. .input = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
  28443. "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
  28444. "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
  28445. "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
  28446. .ilen = 32,
  28447. .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
  28448. "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
  28449. "\x79\x6f\x75\x21\x21\x21\x20\x72"
  28450. "\x65\x61\x6c\x6c\x79\x21\x21\x21",
  28451. .rlen = 32,
  28452. }
  28453. };
  28454. /*
  28455. * FCrypt test vectors
  28456. */
  28457. #define FCRYPT_ENC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_enc_tv_template)
  28458. #define FCRYPT_DEC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_dec_tv_template)
  28459. static struct cipher_testvec fcrypt_pcbc_enc_tv_template[] = {
  28460. { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
  28461. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  28462. .klen = 8,
  28463. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  28464. .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
  28465. .ilen = 8,
  28466. .result = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
  28467. .rlen = 8,
  28468. }, {
  28469. .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
  28470. .klen = 8,
  28471. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  28472. .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
  28473. .ilen = 8,
  28474. .result = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
  28475. .rlen = 8,
  28476. }, { /* From Arla */
  28477. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  28478. .klen = 8,
  28479. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  28480. .input = "The quick brown fox jumps over the lazy dogs.\0\0",
  28481. .ilen = 48,
  28482. .result = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
  28483. "\xee\xac\x98\x62\x44\x51\xe4\x84"
  28484. "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
  28485. "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
  28486. "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
  28487. "\xf8\x91\x3c\xac\x44\x22\x92\xef",
  28488. .rlen = 48,
  28489. }, {
  28490. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  28491. .klen = 8,
  28492. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  28493. .input = "The quick brown fox jumps over the lazy dogs.\0\0",
  28494. .ilen = 48,
  28495. .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  28496. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  28497. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  28498. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  28499. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  28500. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  28501. .rlen = 48,
  28502. }, { /* split-page version */
  28503. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  28504. .klen = 8,
  28505. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  28506. .input = "The quick brown fox jumps over the lazy dogs.\0\0",
  28507. .ilen = 48,
  28508. .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  28509. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  28510. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  28511. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  28512. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  28513. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  28514. .rlen = 48,
  28515. .np = 2,
  28516. .tap = { 20, 28 },
  28517. }
  28518. };
  28519. static struct cipher_testvec fcrypt_pcbc_dec_tv_template[] = {
  28520. { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
  28521. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  28522. .klen = 8,
  28523. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  28524. .input = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
  28525. .ilen = 8,
  28526. .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
  28527. .rlen = 8,
  28528. }, {
  28529. .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
  28530. .klen = 8,
  28531. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  28532. .input = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
  28533. .ilen = 8,
  28534. .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
  28535. .rlen = 8,
  28536. }, { /* From Arla */
  28537. .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  28538. .klen = 8,
  28539. .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  28540. .input = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
  28541. "\xee\xac\x98\x62\x44\x51\xe4\x84"
  28542. "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
  28543. "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
  28544. "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
  28545. "\xf8\x91\x3c\xac\x44\x22\x92\xef",
  28546. .ilen = 48,
  28547. .result = "The quick brown fox jumps over the lazy dogs.\0\0",
  28548. .rlen = 48,
  28549. }, {
  28550. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  28551. .klen = 8,
  28552. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  28553. .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  28554. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  28555. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  28556. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  28557. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  28558. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  28559. .ilen = 48,
  28560. .result = "The quick brown fox jumps over the lazy dogs.\0\0",
  28561. .rlen = 48,
  28562. }, { /* split-page version */
  28563. .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  28564. .klen = 8,
  28565. .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
  28566. .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
  28567. "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
  28568. "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
  28569. "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
  28570. "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
  28571. "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
  28572. .ilen = 48,
  28573. .result = "The quick brown fox jumps over the lazy dogs.\0\0",
  28574. .rlen = 48,
  28575. .np = 2,
  28576. .tap = { 20, 28 },
  28577. }
  28578. };
  28579. /*
  28580. * CAMELLIA test vectors.
  28581. */
  28582. #define CAMELLIA_ENC_TEST_VECTORS 4
  28583. #define CAMELLIA_DEC_TEST_VECTORS 4
  28584. #define CAMELLIA_CBC_ENC_TEST_VECTORS 3
  28585. #define CAMELLIA_CBC_DEC_TEST_VECTORS 3
  28586. #define CAMELLIA_CTR_ENC_TEST_VECTORS 2
  28587. #define CAMELLIA_CTR_DEC_TEST_VECTORS 2
  28588. #define CAMELLIA_LRW_ENC_TEST_VECTORS 8
  28589. #define CAMELLIA_LRW_DEC_TEST_VECTORS 8
  28590. #define CAMELLIA_XTS_ENC_TEST_VECTORS 5
  28591. #define CAMELLIA_XTS_DEC_TEST_VECTORS 5
  28592. static struct cipher_testvec camellia_enc_tv_template[] = {
  28593. {
  28594. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  28595. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  28596. .klen = 16,
  28597. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  28598. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  28599. .ilen = 16,
  28600. .result = "\x67\x67\x31\x38\x54\x96\x69\x73"
  28601. "\x08\x57\x06\x56\x48\xea\xbe\x43",
  28602. .rlen = 16,
  28603. }, {
  28604. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  28605. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  28606. "\x00\x11\x22\x33\x44\x55\x66\x77",
  28607. .klen = 24,
  28608. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  28609. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  28610. .ilen = 16,
  28611. .result = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
  28612. "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
  28613. .rlen = 16,
  28614. }, {
  28615. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  28616. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  28617. "\x00\x11\x22\x33\x44\x55\x66\x77"
  28618. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  28619. .klen = 32,
  28620. .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  28621. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  28622. .ilen = 16,
  28623. .result = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
  28624. "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
  28625. .rlen = 16,
  28626. }, { /* Generated with Crypto++ */
  28627. .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
  28628. "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
  28629. "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
  28630. "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
  28631. .klen = 32,
  28632. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  28633. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  28634. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  28635. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  28636. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  28637. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  28638. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  28639. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  28640. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  28641. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  28642. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  28643. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  28644. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  28645. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  28646. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  28647. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  28648. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  28649. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  28650. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  28651. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  28652. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  28653. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  28654. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  28655. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  28656. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  28657. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  28658. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  28659. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  28660. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  28661. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  28662. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  28663. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  28664. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  28665. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  28666. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  28667. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  28668. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  28669. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  28670. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  28671. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  28672. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  28673. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  28674. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  28675. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  28676. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  28677. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  28678. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  28679. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  28680. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  28681. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  28682. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  28683. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  28684. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  28685. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  28686. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  28687. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  28688. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  28689. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  28690. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  28691. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  28692. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  28693. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  28694. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
  28695. "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
  28696. "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
  28697. "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
  28698. "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
  28699. "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
  28700. "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
  28701. "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
  28702. "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
  28703. "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
  28704. "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
  28705. "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
  28706. "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
  28707. "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
  28708. "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
  28709. "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
  28710. "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
  28711. "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
  28712. "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
  28713. "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
  28714. "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
  28715. "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
  28716. "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
  28717. "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
  28718. "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
  28719. "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
  28720. "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
  28721. "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
  28722. "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
  28723. "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
  28724. "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
  28725. "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
  28726. "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
  28727. "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
  28728. "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
  28729. "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
  28730. "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
  28731. "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
  28732. "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
  28733. "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
  28734. "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
  28735. "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
  28736. "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
  28737. "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
  28738. "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
  28739. "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
  28740. "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
  28741. "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
  28742. "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
  28743. "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
  28744. "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
  28745. "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
  28746. "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
  28747. "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
  28748. "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
  28749. "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
  28750. "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
  28751. "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
  28752. "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
  28753. "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
  28754. "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
  28755. "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
  28756. "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
  28757. "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
  28758. .ilen = 1008,
  28759. .result = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA"
  28760. "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7"
  28761. "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04"
  28762. "\xB3\xC2\xB9\x03\xAA\x91\x56\x29"
  28763. "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9"
  28764. "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A"
  28765. "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8"
  28766. "\x01\x9B\x17\x0A\x29\xE7\x61\x28"
  28767. "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B"
  28768. "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B"
  28769. "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E"
  28770. "\x83\x54\xAE\x7C\x82\x46\x10\xC9"
  28771. "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC"
  28772. "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4"
  28773. "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C"
  28774. "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB"
  28775. "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98"
  28776. "\x9F\x32\xBA\xA2\x18\xCF\x55\x43"
  28777. "\xFE\x80\x8F\x60\xCF\x05\x30\x9B"
  28778. "\x70\x50\x1E\x9C\x08\x87\xE6\x20"
  28779. "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2"
  28780. "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6"
  28781. "\xB8\x30\x86\x3B\x0F\x94\x1E\x79"
  28782. "\x13\x94\x35\xA2\xB1\x35\x5B\x05"
  28783. "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE"
  28784. "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A"
  28785. "\xF5\x33\xC8\x19\x45\x14\x44\x5D"
  28786. "\xFE\x94\x7B\xBB\x63\x13\x57\xC3"
  28787. "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A"
  28788. "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF"
  28789. "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8"
  28790. "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C"
  28791. "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB"
  28792. "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74"
  28793. "\x60\x64\x0D\x1C\x80\xD1\x20\x9E"
  28794. "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96"
  28795. "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B"
  28796. "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01"
  28797. "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E"
  28798. "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B"
  28799. "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D"
  28800. "\x5B\x55\x23\xB7\x40\x31\xDE\xEE"
  28801. "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42"
  28802. "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3"
  28803. "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF"
  28804. "\x63\xA9\xF0\x6A\x08\x46\xBD\x48"
  28805. "\x83\x06\xAB\x82\x99\x01\x16\x1A"
  28806. "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F"
  28807. "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC"
  28808. "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B"
  28809. "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0"
  28810. "\xCD\xB6\x45\xB2\x29\x2E\x34\x23"
  28811. "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F"
  28812. "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA"
  28813. "\x74\x83\x29\x05\xE8\xC4\x4D\x01"
  28814. "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99"
  28815. "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30"
  28816. "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C"
  28817. "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3"
  28818. "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44"
  28819. "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4"
  28820. "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB"
  28821. "\xA4\xAD\xCF\x5D\xD4\x58\xC9\xCD"
  28822. "\xF7\x90\x68\xCF\xC9\x11\x52\x3E"
  28823. "\xE8\xA1\xA3\x78\x8B\xD0\xAC\x0A"
  28824. "\xD4\xC9\xA3\xA5\x55\x30\xC8\x3E"
  28825. "\xED\x28\x39\xE9\x63\xED\x41\x70"
  28826. "\x51\xE3\xC4\xA0\xFC\xD5\x43\xCB"
  28827. "\x4D\x65\xC8\xFD\x3A\x91\x8F\x60"
  28828. "\x8A\xA6\x6D\x9D\x3E\x01\x23\x4B"
  28829. "\x50\x47\xC9\xDC\x9B\xDE\x37\xC5"
  28830. "\xBF\x67\xB1\x6B\x78\x38\xD5\x7E"
  28831. "\xB6\xFF\x67\x83\x3B\x6E\xBE\x23"
  28832. "\x45\xFA\x1D\x69\x44\xFD\xC6\xB9"
  28833. "\xD0\x4A\x92\xD1\xBE\xF6\x4A\xB7"
  28834. "\xCA\xA8\xA2\x9E\x13\x87\x57\x92"
  28835. "\x64\x7C\x85\x0B\xB3\x29\x37\xD8"
  28836. "\xE6\xAA\xAF\xC4\x03\x67\xA3\xBF"
  28837. "\x2E\x45\x83\xB6\xD8\x54\x00\x89"
  28838. "\xF6\xBC\x3A\x7A\x88\x58\x51\xED"
  28839. "\xF4\x4E\x01\xA5\xC3\x2E\xD9\x42"
  28840. "\xBD\x6E\x0D\x0B\x21\xB0\x1A\xCC"
  28841. "\xA4\xD3\x3F\xDC\x9B\x81\xD8\xF1"
  28842. "\xEA\x7A\x6A\xB7\x07\xC9\x6D\x91"
  28843. "\x6D\x3A\xF5\x5F\xA6\xFF\x87\x1E"
  28844. "\x3F\xDD\xC0\x72\xEA\xAC\x08\x15"
  28845. "\x21\xE6\xC6\xB6\x0D\xD8\x51\x86"
  28846. "\x2A\x03\x73\xF7\x29\xD4\xC4\xE4"
  28847. "\x7F\x95\x10\xF7\xAB\x3F\x92\x23"
  28848. "\xD3\xCE\x9C\x2E\x46\x3B\x63\x43"
  28849. "\xBB\xC2\x82\x7A\x83\xD5\x55\xE2"
  28850. "\xE7\x9B\x2F\x92\xAF\xFD\x81\x56"
  28851. "\x79\xFD\x3E\xF9\x46\xE0\x25\xD4"
  28852. "\x38\xDE\xBC\x2C\xC4\x7A\x2A\x8F"
  28853. "\x94\x4F\xD0\xAD\x9B\x37\x18\xD4"
  28854. "\x0E\x4D\x0F\x02\x3A\xDC\x5A\xA2"
  28855. "\x39\x25\x55\x20\x5A\xA6\x02\x9F"
  28856. "\xE6\x77\x21\x77\xE5\x4B\x7B\x0B"
  28857. "\x30\xF8\x5F\x33\x0F\x49\xCD\xFF"
  28858. "\xF2\xE4\x35\xF9\xF0\x63\xC3\x7E"
  28859. "\xF1\xA6\x73\xB4\xDF\xE7\xBB\x78"
  28860. "\xFF\x21\xA9\xF3\xF3\xCF\x5D\xBA"
  28861. "\xED\x87\x98\xAC\xFE\x48\x97\x6D"
  28862. "\xA6\x7F\x69\x31\xB1\xC4\xFF\x14"
  28863. "\xC6\x76\xD4\x10\xDD\xF6\x49\x2C"
  28864. "\x9C\xC8\x6D\x76\xC0\x8F\x5F\x55"
  28865. "\x2F\x3C\x8A\x30\xAA\xC3\x16\x55"
  28866. "\xC6\xFC\x8D\x8B\xB9\xE5\x80\x6C"
  28867. "\xC8\x7E\xBD\x65\x58\x36\xD5\xBC"
  28868. "\xF0\x33\x52\x29\x70\xF9\x5C\xE9"
  28869. "\xAC\x1F\xB5\x73\x56\x66\x54\xAF"
  28870. "\x1B\x8F\x7D\xED\xAB\x03\xCE\xE3"
  28871. "\xAE\x47\xB6\x69\x86\xE9\x01\x31"
  28872. "\x83\x18\x3D\xF4\x74\x7B\xF9\x42"
  28873. "\x4C\xFD\x75\x4A\x6D\xF0\x03\xA6"
  28874. "\x2B\x20\x63\xDA\x49\x65\x5E\x8B"
  28875. "\xC0\x19\xE3\x8D\xD9\xF3\xB0\x34"
  28876. "\xD3\x52\xFC\x68\x00\x43\x1B\x37"
  28877. "\x31\x93\x51\x1C\x63\x97\x70\xB0"
  28878. "\x99\x78\x83\x13\xFD\xCF\x53\x81"
  28879. "\x36\x46\xB5\x42\x52\x2F\x32\xEB"
  28880. "\x4A\x3D\xF1\x8F\x1C\x54\x2E\xFC"
  28881. "\x41\x75\x5A\x8C\x8E\x6F\xE7\x1A"
  28882. "\xAE\xEF\x3E\x82\x12\x0B\x74\x72"
  28883. "\xF8\xB2\xAA\x7A\xD6\xFF\xFA\x55"
  28884. "\x33\x1A\xBB\xD3\xA2\x7E\x97\x66",
  28885. .rlen = 1008,
  28886. .also_non_np = 1,
  28887. .np = 3,
  28888. .tap = { 1008 - 20, 4, 16 },
  28889. },
  28890. };
  28891. static struct cipher_testvec camellia_dec_tv_template[] = {
  28892. {
  28893. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  28894. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  28895. .klen = 16,
  28896. .input = "\x67\x67\x31\x38\x54\x96\x69\x73"
  28897. "\x08\x57\x06\x56\x48\xea\xbe\x43",
  28898. .ilen = 16,
  28899. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  28900. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  28901. .rlen = 16,
  28902. }, {
  28903. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  28904. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  28905. "\x00\x11\x22\x33\x44\x55\x66\x77",
  28906. .klen = 24,
  28907. .input = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
  28908. "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
  28909. .ilen = 16,
  28910. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  28911. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  28912. .rlen = 16,
  28913. }, {
  28914. .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  28915. "\xfe\xdc\xba\x98\x76\x54\x32\x10"
  28916. "\x00\x11\x22\x33\x44\x55\x66\x77"
  28917. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
  28918. .klen = 32,
  28919. .input = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
  28920. "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
  28921. .ilen = 16,
  28922. .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
  28923. "\xfe\xdc\xba\x98\x76\x54\x32\x10",
  28924. .rlen = 16,
  28925. }, { /* Generated with Crypto++ */
  28926. .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
  28927. "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
  28928. "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
  28929. "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
  28930. .klen = 32,
  28931. .input = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA"
  28932. "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7"
  28933. "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04"
  28934. "\xB3\xC2\xB9\x03\xAA\x91\x56\x29"
  28935. "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9"
  28936. "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A"
  28937. "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8"
  28938. "\x01\x9B\x17\x0A\x29\xE7\x61\x28"
  28939. "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B"
  28940. "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B"
  28941. "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E"
  28942. "\x83\x54\xAE\x7C\x82\x46\x10\xC9"
  28943. "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC"
  28944. "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4"
  28945. "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C"
  28946. "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB"
  28947. "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98"
  28948. "\x9F\x32\xBA\xA2\x18\xCF\x55\x43"
  28949. "\xFE\x80\x8F\x60\xCF\x05\x30\x9B"
  28950. "\x70\x50\x1E\x9C\x08\x87\xE6\x20"
  28951. "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2"
  28952. "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6"
  28953. "\xB8\x30\x86\x3B\x0F\x94\x1E\x79"
  28954. "\x13\x94\x35\xA2\xB1\x35\x5B\x05"
  28955. "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE"
  28956. "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A"
  28957. "\xF5\x33\xC8\x19\x45\x14\x44\x5D"
  28958. "\xFE\x94\x7B\xBB\x63\x13\x57\xC3"
  28959. "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A"
  28960. "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF"
  28961. "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8"
  28962. "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C"
  28963. "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB"
  28964. "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74"
  28965. "\x60\x64\x0D\x1C\x80\xD1\x20\x9E"
  28966. "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96"
  28967. "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B"
  28968. "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01"
  28969. "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E"
  28970. "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B"
  28971. "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D"
  28972. "\x5B\x55\x23\xB7\x40\x31\xDE\xEE"
  28973. "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42"
  28974. "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3"
  28975. "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF"
  28976. "\x63\xA9\xF0\x6A\x08\x46\xBD\x48"
  28977. "\x83\x06\xAB\x82\x99\x01\x16\x1A"
  28978. "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F"
  28979. "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC"
  28980. "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B"
  28981. "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0"
  28982. "\xCD\xB6\x45\xB2\x29\x2E\x34\x23"
  28983. "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F"
  28984. "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA"
  28985. "\x74\x83\x29\x05\xE8\xC4\x4D\x01"
  28986. "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99"
  28987. "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30"
  28988. "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C"
  28989. "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3"
  28990. "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44"
  28991. "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4"
  28992. "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB"
  28993. "\xA4\xAD\xCF\x5D\xD4\x58\xC9\xCD"
  28994. "\xF7\x90\x68\xCF\xC9\x11\x52\x3E"
  28995. "\xE8\xA1\xA3\x78\x8B\xD0\xAC\x0A"
  28996. "\xD4\xC9\xA3\xA5\x55\x30\xC8\x3E"
  28997. "\xED\x28\x39\xE9\x63\xED\x41\x70"
  28998. "\x51\xE3\xC4\xA0\xFC\xD5\x43\xCB"
  28999. "\x4D\x65\xC8\xFD\x3A\x91\x8F\x60"
  29000. "\x8A\xA6\x6D\x9D\x3E\x01\x23\x4B"
  29001. "\x50\x47\xC9\xDC\x9B\xDE\x37\xC5"
  29002. "\xBF\x67\xB1\x6B\x78\x38\xD5\x7E"
  29003. "\xB6\xFF\x67\x83\x3B\x6E\xBE\x23"
  29004. "\x45\xFA\x1D\x69\x44\xFD\xC6\xB9"
  29005. "\xD0\x4A\x92\xD1\xBE\xF6\x4A\xB7"
  29006. "\xCA\xA8\xA2\x9E\x13\x87\x57\x92"
  29007. "\x64\x7C\x85\x0B\xB3\x29\x37\xD8"
  29008. "\xE6\xAA\xAF\xC4\x03\x67\xA3\xBF"
  29009. "\x2E\x45\x83\xB6\xD8\x54\x00\x89"
  29010. "\xF6\xBC\x3A\x7A\x88\x58\x51\xED"
  29011. "\xF4\x4E\x01\xA5\xC3\x2E\xD9\x42"
  29012. "\xBD\x6E\x0D\x0B\x21\xB0\x1A\xCC"
  29013. "\xA4\xD3\x3F\xDC\x9B\x81\xD8\xF1"
  29014. "\xEA\x7A\x6A\xB7\x07\xC9\x6D\x91"
  29015. "\x6D\x3A\xF5\x5F\xA6\xFF\x87\x1E"
  29016. "\x3F\xDD\xC0\x72\xEA\xAC\x08\x15"
  29017. "\x21\xE6\xC6\xB6\x0D\xD8\x51\x86"
  29018. "\x2A\x03\x73\xF7\x29\xD4\xC4\xE4"
  29019. "\x7F\x95\x10\xF7\xAB\x3F\x92\x23"
  29020. "\xD3\xCE\x9C\x2E\x46\x3B\x63\x43"
  29021. "\xBB\xC2\x82\x7A\x83\xD5\x55\xE2"
  29022. "\xE7\x9B\x2F\x92\xAF\xFD\x81\x56"
  29023. "\x79\xFD\x3E\xF9\x46\xE0\x25\xD4"
  29024. "\x38\xDE\xBC\x2C\xC4\x7A\x2A\x8F"
  29025. "\x94\x4F\xD0\xAD\x9B\x37\x18\xD4"
  29026. "\x0E\x4D\x0F\x02\x3A\xDC\x5A\xA2"
  29027. "\x39\x25\x55\x20\x5A\xA6\x02\x9F"
  29028. "\xE6\x77\x21\x77\xE5\x4B\x7B\x0B"
  29029. "\x30\xF8\x5F\x33\x0F\x49\xCD\xFF"
  29030. "\xF2\xE4\x35\xF9\xF0\x63\xC3\x7E"
  29031. "\xF1\xA6\x73\xB4\xDF\xE7\xBB\x78"
  29032. "\xFF\x21\xA9\xF3\xF3\xCF\x5D\xBA"
  29033. "\xED\x87\x98\xAC\xFE\x48\x97\x6D"
  29034. "\xA6\x7F\x69\x31\xB1\xC4\xFF\x14"
  29035. "\xC6\x76\xD4\x10\xDD\xF6\x49\x2C"
  29036. "\x9C\xC8\x6D\x76\xC0\x8F\x5F\x55"
  29037. "\x2F\x3C\x8A\x30\xAA\xC3\x16\x55"
  29038. "\xC6\xFC\x8D\x8B\xB9\xE5\x80\x6C"
  29039. "\xC8\x7E\xBD\x65\x58\x36\xD5\xBC"
  29040. "\xF0\x33\x52\x29\x70\xF9\x5C\xE9"
  29041. "\xAC\x1F\xB5\x73\x56\x66\x54\xAF"
  29042. "\x1B\x8F\x7D\xED\xAB\x03\xCE\xE3"
  29043. "\xAE\x47\xB6\x69\x86\xE9\x01\x31"
  29044. "\x83\x18\x3D\xF4\x74\x7B\xF9\x42"
  29045. "\x4C\xFD\x75\x4A\x6D\xF0\x03\xA6"
  29046. "\x2B\x20\x63\xDA\x49\x65\x5E\x8B"
  29047. "\xC0\x19\xE3\x8D\xD9\xF3\xB0\x34"
  29048. "\xD3\x52\xFC\x68\x00\x43\x1B\x37"
  29049. "\x31\x93\x51\x1C\x63\x97\x70\xB0"
  29050. "\x99\x78\x83\x13\xFD\xCF\x53\x81"
  29051. "\x36\x46\xB5\x42\x52\x2F\x32\xEB"
  29052. "\x4A\x3D\xF1\x8F\x1C\x54\x2E\xFC"
  29053. "\x41\x75\x5A\x8C\x8E\x6F\xE7\x1A"
  29054. "\xAE\xEF\x3E\x82\x12\x0B\x74\x72"
  29055. "\xF8\xB2\xAA\x7A\xD6\xFF\xFA\x55"
  29056. "\x33\x1A\xBB\xD3\xA2\x7E\x97\x66",
  29057. .ilen = 1008,
  29058. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  29059. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  29060. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  29061. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  29062. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  29063. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  29064. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  29065. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  29066. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  29067. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  29068. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  29069. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  29070. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  29071. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  29072. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  29073. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  29074. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  29075. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  29076. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  29077. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  29078. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  29079. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  29080. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  29081. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  29082. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  29083. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  29084. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  29085. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  29086. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  29087. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  29088. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  29089. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  29090. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  29091. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  29092. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  29093. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  29094. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  29095. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  29096. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  29097. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  29098. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  29099. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  29100. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  29101. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  29102. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  29103. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  29104. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  29105. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  29106. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  29107. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  29108. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  29109. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  29110. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  29111. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  29112. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  29113. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  29114. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  29115. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  29116. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  29117. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  29118. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  29119. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  29120. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
  29121. "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
  29122. "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
  29123. "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
  29124. "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
  29125. "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
  29126. "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
  29127. "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
  29128. "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
  29129. "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
  29130. "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
  29131. "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
  29132. "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
  29133. "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
  29134. "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
  29135. "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
  29136. "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
  29137. "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
  29138. "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
  29139. "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
  29140. "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
  29141. "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
  29142. "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
  29143. "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
  29144. "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
  29145. "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
  29146. "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
  29147. "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
  29148. "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
  29149. "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
  29150. "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
  29151. "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
  29152. "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
  29153. "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
  29154. "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
  29155. "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
  29156. "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
  29157. "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
  29158. "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
  29159. "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
  29160. "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
  29161. "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
  29162. "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
  29163. "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
  29164. "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
  29165. "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
  29166. "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
  29167. "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
  29168. "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
  29169. "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
  29170. "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
  29171. "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
  29172. "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
  29173. "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
  29174. "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
  29175. "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
  29176. "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
  29177. "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
  29178. "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
  29179. "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
  29180. "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
  29181. "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
  29182. "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
  29183. "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
  29184. .rlen = 1008,
  29185. .also_non_np = 1,
  29186. .np = 3,
  29187. .tap = { 1008 - 20, 4, 16 },
  29188. },
  29189. };
  29190. static struct cipher_testvec camellia_cbc_enc_tv_template[] = {
  29191. {
  29192. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  29193. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  29194. .klen = 16,
  29195. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  29196. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  29197. .input = "Single block msg",
  29198. .ilen = 16,
  29199. .result = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
  29200. "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
  29201. .rlen = 16,
  29202. }, {
  29203. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  29204. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  29205. .klen = 16,
  29206. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  29207. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  29208. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  29209. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  29210. "\x10\x11\x12\x13\x14\x15\x16\x17"
  29211. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  29212. .ilen = 32,
  29213. .result = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
  29214. "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
  29215. "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
  29216. "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
  29217. .rlen = 32,
  29218. }, { /* Generated with Crypto++ */
  29219. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  29220. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  29221. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  29222. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  29223. .klen = 32,
  29224. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  29225. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  29226. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  29227. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  29228. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  29229. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  29230. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  29231. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  29232. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  29233. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  29234. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  29235. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  29236. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  29237. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  29238. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  29239. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  29240. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  29241. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  29242. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  29243. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  29244. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  29245. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  29246. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  29247. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  29248. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  29249. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  29250. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  29251. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  29252. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  29253. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  29254. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  29255. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  29256. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  29257. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  29258. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  29259. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  29260. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  29261. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  29262. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  29263. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  29264. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  29265. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  29266. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  29267. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  29268. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  29269. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  29270. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  29271. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  29272. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  29273. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  29274. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  29275. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  29276. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  29277. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  29278. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  29279. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  29280. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  29281. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  29282. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  29283. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  29284. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  29285. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  29286. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  29287. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  29288. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
  29289. "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
  29290. "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
  29291. "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
  29292. "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
  29293. "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
  29294. "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
  29295. "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
  29296. "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
  29297. "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
  29298. "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
  29299. "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
  29300. "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
  29301. "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
  29302. "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
  29303. "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
  29304. "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
  29305. "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
  29306. "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
  29307. "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
  29308. "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
  29309. "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
  29310. "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
  29311. "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
  29312. "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
  29313. "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
  29314. "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
  29315. "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
  29316. "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
  29317. "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
  29318. "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
  29319. "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
  29320. "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
  29321. "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
  29322. "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
  29323. "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
  29324. "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
  29325. "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
  29326. "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
  29327. "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
  29328. "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
  29329. "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
  29330. "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
  29331. "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
  29332. "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
  29333. "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
  29334. "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
  29335. "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
  29336. "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
  29337. "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
  29338. "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
  29339. "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
  29340. "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
  29341. "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
  29342. "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
  29343. "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
  29344. "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
  29345. "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
  29346. "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
  29347. "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
  29348. "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
  29349. "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
  29350. "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
  29351. "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
  29352. .ilen = 1008,
  29353. .result = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77"
  29354. "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40"
  29355. "\x88\x39\xE3\xFD\x94\x4B\x25\x58"
  29356. "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B"
  29357. "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27"
  29358. "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01"
  29359. "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83"
  29360. "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E"
  29361. "\x56\xC8\x18\x3D\x79\x86\x97\xEF"
  29362. "\x57\x0E\x63\xA1\xC1\x41\x48\xB8"
  29363. "\x98\xB7\x51\x6D\x18\xF6\x19\x82"
  29364. "\x37\x49\x88\xA4\xEF\x91\x21\x47"
  29365. "\x03\x28\xEA\x42\xF4\xFB\x7A\x58"
  29366. "\x28\x90\x77\x46\xD8\xD2\x35\x16"
  29367. "\x44\xA9\x9E\x49\x52\x2A\xE4\x16"
  29368. "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6"
  29369. "\xCF\x76\x91\x89\x8A\x94\x39\xFA"
  29370. "\x6B\x5F\x63\x53\x74\x43\x91\xF5"
  29371. "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F"
  29372. "\x9D\x32\x84\xEB\x56\x28\xD6\x06"
  29373. "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62"
  29374. "\x32\xCC\x86\xC8\x36\x67\x5E\x7E"
  29375. "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF"
  29376. "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A"
  29377. "\x9B\x78\x62\x3B\x02\x28\x60\xB3"
  29378. "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47"
  29379. "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28"
  29380. "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70"
  29381. "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94"
  29382. "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C"
  29383. "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0"
  29384. "\x5D\x51\x54\x9A\x53\xA0\xF9\x32"
  29385. "\xBD\x31\x54\x14\x7B\x33\xEE\x17"
  29386. "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2"
  29387. "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2"
  29388. "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E"
  29389. "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4"
  29390. "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE"
  29391. "\x40\x78\x91\x95\xC4\x2F\xA3\xE8"
  29392. "\x18\xC7\x07\xA6\xC8\xC0\x66\x33"
  29393. "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3"
  29394. "\x40\xF5\x40\x54\xF1\x84\x8C\xEA"
  29395. "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8"
  29396. "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4"
  29397. "\xF8\x17\x99\x8D\x58\x2D\x72\x44"
  29398. "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82"
  29399. "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7"
  29400. "\x68\xA3\xB8\xA5\x93\x74\x2E\x85"
  29401. "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF"
  29402. "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B"
  29403. "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18"
  29404. "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B"
  29405. "\x38\xB8\x48\x36\x66\x4E\x20\x43"
  29406. "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52"
  29407. "\xD7\xDC\xB2\x67\x63\x14\x25\xCD"
  29408. "\xB1\x13\x4B\xDE\x8C\x59\x21\x84"
  29409. "\x81\x8D\x97\x23\x45\x33\x7C\xF3"
  29410. "\xC5\xBC\x79\x95\xAA\x84\x68\x31"
  29411. "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA"
  29412. "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97"
  29413. "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36"
  29414. "\x5F\x74\x8C\x86\x5B\x71\xD0\x20"
  29415. "\x78\x1A\x7F\x18\x8C\xD9\xCD\xF5"
  29416. "\x21\x41\x56\x72\x13\xE1\x86\x07"
  29417. "\x07\x26\xF3\x4F\x7B\xEA\xB5\x18"
  29418. "\xFE\x94\x2D\x9F\xE0\x72\x18\x65"
  29419. "\xB2\xA5\x63\x48\xB4\x13\x22\xF7"
  29420. "\x25\xF1\x80\xA8\x7F\x54\x86\x7B"
  29421. "\x39\xAE\x95\x0C\x09\x32\x22\x2D"
  29422. "\x4D\x73\x39\x0C\x09\x2C\x7C\x10"
  29423. "\xD0\x4B\x53\xF6\x90\xC5\x99\x2F"
  29424. "\x15\xE1\x7F\xC6\xC5\x7A\x52\x14"
  29425. "\x65\xEE\x93\x54\xD0\x66\x15\x3C"
  29426. "\x4C\x68\xFD\x64\x0F\xF9\x10\x39"
  29427. "\x46\x7A\xDD\x97\x20\xEE\xC7\xD2"
  29428. "\x98\x4A\xB6\xE6\xF5\xA8\x1F\x4F"
  29429. "\xDB\xAB\x6D\xD5\x9B\x34\x16\x97"
  29430. "\x2F\x64\xE5\x37\xEF\x0E\xA1\xE9"
  29431. "\xBE\x31\x31\x96\x8B\x40\x18\x75"
  29432. "\x11\x75\x14\x32\xA5\x2D\x1B\x6B"
  29433. "\xDB\x59\xEB\xFA\x3D\x8E\x7C\xC4"
  29434. "\xDE\x68\xC8\x9F\xC9\x99\xE3\xC6"
  29435. "\x71\xB0\x12\x57\x89\x0D\xC0\x2B"
  29436. "\x9F\x12\x6A\x04\x67\xF1\x95\x31"
  29437. "\x59\xFD\x84\x95\x2C\x9C\x5B\xEC"
  29438. "\x09\xB0\x43\x96\x4A\x64\x80\x40"
  29439. "\xB9\x72\x19\xDD\x70\x42\xFA\xB1"
  29440. "\x4A\x2C\x0C\x0A\x60\x6E\xE3\x7C"
  29441. "\x37\x5A\xBE\xA4\x62\xCF\x29\xAB"
  29442. "\x7F\x4D\xA6\xB3\xE2\xB6\x64\xC6"
  29443. "\x33\x0B\xF3\xD5\x01\x38\x74\xA4"
  29444. "\x67\x1E\x75\x68\xC3\xAD\x76\xE9"
  29445. "\xE9\xBC\xF0\xEB\xD8\xFD\x31\x8A"
  29446. "\x5F\xC9\x18\x94\x4B\x86\x66\xFC"
  29447. "\xBD\x0B\x3D\xB3\x9F\xFA\x1F\xD9"
  29448. "\x78\xC4\xE3\x24\x1C\x67\xA2\xF8"
  29449. "\x43\xBC\x76\x75\xBF\x6C\x05\xB3"
  29450. "\x32\xE8\x7C\x80\xDB\xC7\xB6\x61"
  29451. "\x1A\x3E\x2B\xA7\x25\xED\x8F\xA0"
  29452. "\x00\x4B\xF8\x90\xCA\xD8\xFB\x12"
  29453. "\xAC\x1F\x18\xE9\xD2\x5E\xA2\x8E"
  29454. "\xE4\x84\x6B\x9D\xEB\x1E\x6B\xA3"
  29455. "\x7B\xDC\xCE\x15\x97\x27\xB2\x65"
  29456. "\xBC\x0E\x47\xAB\x55\x13\x53\xAB"
  29457. "\x0E\x34\x55\x02\x5F\x27\xC5\x89"
  29458. "\xDF\xC5\x70\xC4\xDD\x76\x82\xEE"
  29459. "\x68\xA6\x09\xB0\xE5\x5E\xF1\x0C"
  29460. "\xE3\xF3\x09\x9B\xFE\x65\x4B\xB8"
  29461. "\x30\xEC\xD5\x7C\x6A\xEC\x1D\xD2"
  29462. "\x93\xB7\xA1\x1A\x02\xD4\xC0\xD6"
  29463. "\x8D\x4D\x83\x9A\xED\x29\x4E\x14"
  29464. "\x86\xD5\x3C\x1A\xD5\xB9\x0A\x6A"
  29465. "\x72\x22\xD5\x92\x38\xF1\xA1\x86"
  29466. "\xB2\x41\x51\xCA\x4E\xAB\x8F\xD3"
  29467. "\x80\x56\xC3\xD7\x65\xE1\xB3\x86"
  29468. "\xCB\xCE\x98\xA1\xD4\x59\x1C\x06"
  29469. "\x01\xED\xF8\x29\x91\x19\x5C\x9A"
  29470. "\xEE\x28\x1B\x48\xD7\x32\xEF\x9F"
  29471. "\x6C\x2B\x66\x4E\x78\xD5\x8B\x72"
  29472. "\x80\xE7\x29\xDC\x23\x55\x98\x54"
  29473. "\xB1\xFF\x3E\x95\x56\xA8\x78\x78"
  29474. "\xEF\xC4\xA5\x11\x2D\x2B\xD8\x93"
  29475. "\x30\x6E\x7E\x51\xBB\x42\x5F\x03"
  29476. "\x43\x94\x23\x7E\xEE\xF0\xA5\x79"
  29477. "\x55\x01\xD4\x58\xB2\xF2\x85\x49"
  29478. "\x70\xC5\xB9\x0B\x3B\x7A\x6E\x6C",
  29479. .rlen = 1008,
  29480. .also_non_np = 1,
  29481. .np = 3,
  29482. .tap = { 1008 - 20, 4, 16 },
  29483. },
  29484. };
  29485. static struct cipher_testvec camellia_cbc_dec_tv_template[] = {
  29486. {
  29487. .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
  29488. "\x51\x2e\x03\xd5\x34\x12\x00\x06",
  29489. .klen = 16,
  29490. .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
  29491. "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
  29492. .input = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
  29493. "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
  29494. .ilen = 16,
  29495. .result = "Single block msg",
  29496. .rlen = 16,
  29497. }, {
  29498. .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
  29499. "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
  29500. .klen = 16,
  29501. .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
  29502. "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
  29503. .input = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
  29504. "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
  29505. "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
  29506. "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
  29507. .ilen = 32,
  29508. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  29509. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  29510. "\x10\x11\x12\x13\x14\x15\x16\x17"
  29511. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  29512. .rlen = 32,
  29513. }, { /* Generated with Crypto++ */
  29514. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  29515. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  29516. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  29517. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  29518. .klen = 32,
  29519. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  29520. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  29521. .input = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77"
  29522. "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40"
  29523. "\x88\x39\xE3\xFD\x94\x4B\x25\x58"
  29524. "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B"
  29525. "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27"
  29526. "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01"
  29527. "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83"
  29528. "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E"
  29529. "\x56\xC8\x18\x3D\x79\x86\x97\xEF"
  29530. "\x57\x0E\x63\xA1\xC1\x41\x48\xB8"
  29531. "\x98\xB7\x51\x6D\x18\xF6\x19\x82"
  29532. "\x37\x49\x88\xA4\xEF\x91\x21\x47"
  29533. "\x03\x28\xEA\x42\xF4\xFB\x7A\x58"
  29534. "\x28\x90\x77\x46\xD8\xD2\x35\x16"
  29535. "\x44\xA9\x9E\x49\x52\x2A\xE4\x16"
  29536. "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6"
  29537. "\xCF\x76\x91\x89\x8A\x94\x39\xFA"
  29538. "\x6B\x5F\x63\x53\x74\x43\x91\xF5"
  29539. "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F"
  29540. "\x9D\x32\x84\xEB\x56\x28\xD6\x06"
  29541. "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62"
  29542. "\x32\xCC\x86\xC8\x36\x67\x5E\x7E"
  29543. "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF"
  29544. "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A"
  29545. "\x9B\x78\x62\x3B\x02\x28\x60\xB3"
  29546. "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47"
  29547. "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28"
  29548. "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70"
  29549. "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94"
  29550. "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C"
  29551. "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0"
  29552. "\x5D\x51\x54\x9A\x53\xA0\xF9\x32"
  29553. "\xBD\x31\x54\x14\x7B\x33\xEE\x17"
  29554. "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2"
  29555. "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2"
  29556. "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E"
  29557. "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4"
  29558. "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE"
  29559. "\x40\x78\x91\x95\xC4\x2F\xA3\xE8"
  29560. "\x18\xC7\x07\xA6\xC8\xC0\x66\x33"
  29561. "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3"
  29562. "\x40\xF5\x40\x54\xF1\x84\x8C\xEA"
  29563. "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8"
  29564. "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4"
  29565. "\xF8\x17\x99\x8D\x58\x2D\x72\x44"
  29566. "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82"
  29567. "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7"
  29568. "\x68\xA3\xB8\xA5\x93\x74\x2E\x85"
  29569. "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF"
  29570. "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B"
  29571. "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18"
  29572. "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B"
  29573. "\x38\xB8\x48\x36\x66\x4E\x20\x43"
  29574. "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52"
  29575. "\xD7\xDC\xB2\x67\x63\x14\x25\xCD"
  29576. "\xB1\x13\x4B\xDE\x8C\x59\x21\x84"
  29577. "\x81\x8D\x97\x23\x45\x33\x7C\xF3"
  29578. "\xC5\xBC\x79\x95\xAA\x84\x68\x31"
  29579. "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA"
  29580. "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97"
  29581. "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36"
  29582. "\x5F\x74\x8C\x86\x5B\x71\xD0\x20"
  29583. "\x78\x1A\x7F\x18\x8C\xD9\xCD\xF5"
  29584. "\x21\x41\x56\x72\x13\xE1\x86\x07"
  29585. "\x07\x26\xF3\x4F\x7B\xEA\xB5\x18"
  29586. "\xFE\x94\x2D\x9F\xE0\x72\x18\x65"
  29587. "\xB2\xA5\x63\x48\xB4\x13\x22\xF7"
  29588. "\x25\xF1\x80\xA8\x7F\x54\x86\x7B"
  29589. "\x39\xAE\x95\x0C\x09\x32\x22\x2D"
  29590. "\x4D\x73\x39\x0C\x09\x2C\x7C\x10"
  29591. "\xD0\x4B\x53\xF6\x90\xC5\x99\x2F"
  29592. "\x15\xE1\x7F\xC6\xC5\x7A\x52\x14"
  29593. "\x65\xEE\x93\x54\xD0\x66\x15\x3C"
  29594. "\x4C\x68\xFD\x64\x0F\xF9\x10\x39"
  29595. "\x46\x7A\xDD\x97\x20\xEE\xC7\xD2"
  29596. "\x98\x4A\xB6\xE6\xF5\xA8\x1F\x4F"
  29597. "\xDB\xAB\x6D\xD5\x9B\x34\x16\x97"
  29598. "\x2F\x64\xE5\x37\xEF\x0E\xA1\xE9"
  29599. "\xBE\x31\x31\x96\x8B\x40\x18\x75"
  29600. "\x11\x75\x14\x32\xA5\x2D\x1B\x6B"
  29601. "\xDB\x59\xEB\xFA\x3D\x8E\x7C\xC4"
  29602. "\xDE\x68\xC8\x9F\xC9\x99\xE3\xC6"
  29603. "\x71\xB0\x12\x57\x89\x0D\xC0\x2B"
  29604. "\x9F\x12\x6A\x04\x67\xF1\x95\x31"
  29605. "\x59\xFD\x84\x95\x2C\x9C\x5B\xEC"
  29606. "\x09\xB0\x43\x96\x4A\x64\x80\x40"
  29607. "\xB9\x72\x19\xDD\x70\x42\xFA\xB1"
  29608. "\x4A\x2C\x0C\x0A\x60\x6E\xE3\x7C"
  29609. "\x37\x5A\xBE\xA4\x62\xCF\x29\xAB"
  29610. "\x7F\x4D\xA6\xB3\xE2\xB6\x64\xC6"
  29611. "\x33\x0B\xF3\xD5\x01\x38\x74\xA4"
  29612. "\x67\x1E\x75\x68\xC3\xAD\x76\xE9"
  29613. "\xE9\xBC\xF0\xEB\xD8\xFD\x31\x8A"
  29614. "\x5F\xC9\x18\x94\x4B\x86\x66\xFC"
  29615. "\xBD\x0B\x3D\xB3\x9F\xFA\x1F\xD9"
  29616. "\x78\xC4\xE3\x24\x1C\x67\xA2\xF8"
  29617. "\x43\xBC\x76\x75\xBF\x6C\x05\xB3"
  29618. "\x32\xE8\x7C\x80\xDB\xC7\xB6\x61"
  29619. "\x1A\x3E\x2B\xA7\x25\xED\x8F\xA0"
  29620. "\x00\x4B\xF8\x90\xCA\xD8\xFB\x12"
  29621. "\xAC\x1F\x18\xE9\xD2\x5E\xA2\x8E"
  29622. "\xE4\x84\x6B\x9D\xEB\x1E\x6B\xA3"
  29623. "\x7B\xDC\xCE\x15\x97\x27\xB2\x65"
  29624. "\xBC\x0E\x47\xAB\x55\x13\x53\xAB"
  29625. "\x0E\x34\x55\x02\x5F\x27\xC5\x89"
  29626. "\xDF\xC5\x70\xC4\xDD\x76\x82\xEE"
  29627. "\x68\xA6\x09\xB0\xE5\x5E\xF1\x0C"
  29628. "\xE3\xF3\x09\x9B\xFE\x65\x4B\xB8"
  29629. "\x30\xEC\xD5\x7C\x6A\xEC\x1D\xD2"
  29630. "\x93\xB7\xA1\x1A\x02\xD4\xC0\xD6"
  29631. "\x8D\x4D\x83\x9A\xED\x29\x4E\x14"
  29632. "\x86\xD5\x3C\x1A\xD5\xB9\x0A\x6A"
  29633. "\x72\x22\xD5\x92\x38\xF1\xA1\x86"
  29634. "\xB2\x41\x51\xCA\x4E\xAB\x8F\xD3"
  29635. "\x80\x56\xC3\xD7\x65\xE1\xB3\x86"
  29636. "\xCB\xCE\x98\xA1\xD4\x59\x1C\x06"
  29637. "\x01\xED\xF8\x29\x91\x19\x5C\x9A"
  29638. "\xEE\x28\x1B\x48\xD7\x32\xEF\x9F"
  29639. "\x6C\x2B\x66\x4E\x78\xD5\x8B\x72"
  29640. "\x80\xE7\x29\xDC\x23\x55\x98\x54"
  29641. "\xB1\xFF\x3E\x95\x56\xA8\x78\x78"
  29642. "\xEF\xC4\xA5\x11\x2D\x2B\xD8\x93"
  29643. "\x30\x6E\x7E\x51\xBB\x42\x5F\x03"
  29644. "\x43\x94\x23\x7E\xEE\xF0\xA5\x79"
  29645. "\x55\x01\xD4\x58\xB2\xF2\x85\x49"
  29646. "\x70\xC5\xB9\x0B\x3B\x7A\x6E\x6C",
  29647. .ilen = 1008,
  29648. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  29649. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  29650. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  29651. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  29652. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  29653. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  29654. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  29655. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  29656. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  29657. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  29658. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  29659. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  29660. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  29661. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  29662. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  29663. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  29664. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  29665. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  29666. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  29667. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  29668. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  29669. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  29670. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  29671. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  29672. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  29673. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  29674. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  29675. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  29676. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  29677. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  29678. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  29679. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  29680. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  29681. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  29682. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  29683. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  29684. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  29685. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  29686. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  29687. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  29688. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  29689. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  29690. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  29691. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  29692. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  29693. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  29694. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  29695. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  29696. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  29697. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  29698. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  29699. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  29700. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  29701. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  29702. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  29703. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  29704. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  29705. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  29706. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  29707. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  29708. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  29709. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  29710. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
  29711. "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
  29712. "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
  29713. "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
  29714. "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
  29715. "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
  29716. "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
  29717. "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
  29718. "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
  29719. "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
  29720. "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
  29721. "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
  29722. "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
  29723. "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
  29724. "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
  29725. "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
  29726. "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
  29727. "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
  29728. "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
  29729. "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
  29730. "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
  29731. "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
  29732. "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
  29733. "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
  29734. "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
  29735. "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
  29736. "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
  29737. "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
  29738. "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
  29739. "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
  29740. "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
  29741. "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
  29742. "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
  29743. "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
  29744. "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
  29745. "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
  29746. "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
  29747. "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
  29748. "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
  29749. "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
  29750. "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
  29751. "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
  29752. "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
  29753. "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
  29754. "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
  29755. "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
  29756. "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
  29757. "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
  29758. "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
  29759. "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
  29760. "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
  29761. "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
  29762. "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
  29763. "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
  29764. "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
  29765. "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
  29766. "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
  29767. "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
  29768. "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
  29769. "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
  29770. "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
  29771. "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
  29772. "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
  29773. "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
  29774. .rlen = 1008,
  29775. .also_non_np = 1,
  29776. .np = 3,
  29777. .tap = { 1008 - 20, 4, 16 },
  29778. },
  29779. };
  29780. static struct cipher_testvec camellia_ctr_enc_tv_template[] = {
  29781. { /* Generated with Crypto++ */
  29782. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  29783. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  29784. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  29785. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  29786. .klen = 32,
  29787. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  29788. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  29789. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  29790. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  29791. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  29792. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  29793. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  29794. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  29795. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  29796. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  29797. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  29798. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  29799. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  29800. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  29801. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  29802. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  29803. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  29804. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  29805. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  29806. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  29807. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  29808. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  29809. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  29810. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  29811. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  29812. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  29813. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  29814. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  29815. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  29816. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  29817. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  29818. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  29819. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  29820. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  29821. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  29822. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  29823. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  29824. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  29825. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  29826. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  29827. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  29828. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  29829. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  29830. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  29831. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  29832. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  29833. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  29834. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  29835. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  29836. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  29837. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  29838. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  29839. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  29840. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  29841. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  29842. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  29843. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  29844. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  29845. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  29846. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  29847. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  29848. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  29849. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  29850. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  29851. .ilen = 496,
  29852. .result = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
  29853. "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
  29854. "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
  29855. "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
  29856. "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
  29857. "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
  29858. "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
  29859. "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
  29860. "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
  29861. "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
  29862. "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
  29863. "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
  29864. "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
  29865. "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
  29866. "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
  29867. "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
  29868. "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
  29869. "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
  29870. "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
  29871. "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
  29872. "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
  29873. "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
  29874. "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
  29875. "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
  29876. "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
  29877. "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
  29878. "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
  29879. "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
  29880. "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
  29881. "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
  29882. "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
  29883. "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
  29884. "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
  29885. "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
  29886. "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
  29887. "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
  29888. "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
  29889. "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
  29890. "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
  29891. "\x79\xA2\x99\x28\x93\x1B\x00\x57"
  29892. "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
  29893. "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
  29894. "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
  29895. "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
  29896. "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
  29897. "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
  29898. "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
  29899. "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
  29900. "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
  29901. "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
  29902. "\x76\x44\x45\xF3\x24\x11\x57\x98"
  29903. "\x9A\x86\xB4\x12\x80\x28\x86\x20"
  29904. "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
  29905. "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
  29906. "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
  29907. "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
  29908. "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
  29909. "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
  29910. "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
  29911. "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
  29912. "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
  29913. "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D",
  29914. .rlen = 496,
  29915. }, { /* Generated with Crypto++ */
  29916. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  29917. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  29918. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  29919. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  29920. .klen = 32,
  29921. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  29922. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  29923. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  29924. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  29925. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  29926. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  29927. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  29928. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  29929. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  29930. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  29931. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  29932. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  29933. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  29934. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  29935. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  29936. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  29937. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  29938. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  29939. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  29940. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  29941. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  29942. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  29943. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  29944. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  29945. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  29946. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  29947. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  29948. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  29949. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  29950. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  29951. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  29952. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  29953. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  29954. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  29955. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  29956. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  29957. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  29958. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  29959. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  29960. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  29961. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  29962. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  29963. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  29964. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  29965. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  29966. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  29967. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  29968. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  29969. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  29970. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  29971. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  29972. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  29973. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  29974. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  29975. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  29976. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  29977. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  29978. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  29979. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  29980. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  29981. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  29982. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  29983. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  29984. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  29985. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
  29986. "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
  29987. "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
  29988. "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
  29989. "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
  29990. "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
  29991. "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
  29992. "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
  29993. "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
  29994. "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
  29995. "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
  29996. "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
  29997. "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
  29998. "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
  29999. "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
  30000. "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
  30001. "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
  30002. "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
  30003. "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
  30004. "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
  30005. "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
  30006. "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
  30007. "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
  30008. "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
  30009. "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
  30010. "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
  30011. "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
  30012. "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
  30013. "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
  30014. "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
  30015. "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
  30016. "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
  30017. "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
  30018. "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
  30019. "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
  30020. "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
  30021. "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
  30022. "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
  30023. "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
  30024. "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
  30025. "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
  30026. "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
  30027. "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
  30028. "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
  30029. "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
  30030. "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
  30031. "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
  30032. "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
  30033. "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
  30034. "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
  30035. "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
  30036. "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
  30037. "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
  30038. "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
  30039. "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
  30040. "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
  30041. "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
  30042. "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
  30043. "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
  30044. "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
  30045. "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
  30046. "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
  30047. "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
  30048. "\x72\x09\xA0\x14\xAB\x42\xD9\x4D"
  30049. "\xE4\x7B\x12",
  30050. .ilen = 1011,
  30051. .result = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
  30052. "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
  30053. "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
  30054. "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
  30055. "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
  30056. "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
  30057. "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
  30058. "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
  30059. "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
  30060. "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
  30061. "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
  30062. "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
  30063. "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
  30064. "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
  30065. "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
  30066. "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
  30067. "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
  30068. "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
  30069. "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
  30070. "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
  30071. "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
  30072. "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
  30073. "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
  30074. "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
  30075. "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
  30076. "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
  30077. "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
  30078. "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
  30079. "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
  30080. "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
  30081. "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
  30082. "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
  30083. "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
  30084. "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
  30085. "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
  30086. "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
  30087. "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
  30088. "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
  30089. "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
  30090. "\x79\xA2\x99\x28\x93\x1B\x00\x57"
  30091. "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
  30092. "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
  30093. "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
  30094. "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
  30095. "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
  30096. "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
  30097. "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
  30098. "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
  30099. "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
  30100. "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
  30101. "\x76\x44\x45\xF3\x24\x11\x57\x98"
  30102. "\x9A\x86\xB4\x12\x80\x28\x86\x20"
  30103. "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
  30104. "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
  30105. "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
  30106. "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
  30107. "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
  30108. "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
  30109. "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
  30110. "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
  30111. "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
  30112. "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D"
  30113. "\x93\x11\x1C\xE9\xD2\x9F\x6E\x90"
  30114. "\xE5\x41\x4A\xE2\x3C\x45\x29\x35"
  30115. "\xEC\xD6\x47\x50\xCB\x7B\xA2\x32"
  30116. "\xF7\x8B\x62\xF1\xE3\x9A\xFE\xC7"
  30117. "\x1D\x8C\x02\x72\x68\x09\xE9\xB6"
  30118. "\x4A\x80\xE6\xB1\x56\xDF\x90\xD4"
  30119. "\x93\x74\xA4\xCE\x20\x23\xBF\x48"
  30120. "\xA5\xDE\x1B\xFA\x40\x69\x31\x98"
  30121. "\x62\x6E\xA5\xC7\xBF\x0C\x62\xE5"
  30122. "\x6D\xE1\x93\xF1\x83\x10\x1C\xCA"
  30123. "\xF6\x5C\x19\xF8\x90\x78\xCB\xE4"
  30124. "\x0B\x3A\xB5\xF8\x43\x86\xD3\x3F"
  30125. "\xBA\x83\x34\x3C\x42\xCC\x7D\x28"
  30126. "\x29\x63\x4F\xD8\x02\x17\xC5\x07"
  30127. "\x2C\xA4\xAC\x79\xCB\xC3\xA9\x09"
  30128. "\x81\x45\x18\xED\xE4\xCB\x42\x3B"
  30129. "\x87\x2D\x23\xDC\xC5\xBA\x45\xBD"
  30130. "\x92\xE5\x02\x97\x96\xCE\xAD\xEC"
  30131. "\xBA\xD8\x76\xF8\xCA\xC1\x31\xEC"
  30132. "\x1E\x4F\x3F\x83\xF8\x33\xE8\x6E"
  30133. "\xCC\xF8\x5F\xDD\x65\x50\x99\x69"
  30134. "\xAF\x48\xCE\xA5\xBA\xB6\x14\x9F"
  30135. "\x05\x93\xB2\xE6\x59\xC8\x28\xFE"
  30136. "\x8F\x37\xF9\x64\xB9\xA5\x56\x8F"
  30137. "\xF1\x1B\x90\xEF\xAE\xEB\xFC\x09"
  30138. "\x11\x7A\xF2\x19\x0A\x0A\x9A\x3C"
  30139. "\xE2\x5E\x29\xFA\x31\x9B\xC1\x74"
  30140. "\x1E\x10\x3E\x07\xA9\x31\x6D\xF8"
  30141. "\x81\xF5\xD5\x8A\x04\x23\x51\xAC"
  30142. "\xA2\xE2\x63\xFD\x27\x1F\x79\x5B"
  30143. "\x1F\xE8\xDA\x11\x49\x4D\x1C\xBA"
  30144. "\x54\xCC\x0F\xBA\x92\x69\xE5\xCB"
  30145. "\x41\x1A\x67\xA6\x40\x82\x70\x8C"
  30146. "\x19\x79\x08\xA4\x51\x20\x7D\xC9"
  30147. "\x12\x27\xAE\x20\x0D\x2C\xA1\x6D"
  30148. "\xF4\x55\xD4\xE7\xE6\xD4\x28\x08"
  30149. "\x00\x70\x12\x56\x56\x50\xAD\x14"
  30150. "\x5C\x3E\xA2\xD1\x36\x3F\x36\x48"
  30151. "\xED\xB1\x57\x3E\x5D\x15\xF6\x1E"
  30152. "\x53\xE9\xA4\x3E\xED\x7D\xCF\x7D"
  30153. "\x29\xAF\xF3\x1E\x51\xA8\x9F\x85"
  30154. "\x8B\xF0\xBB\xCE\xCC\x39\xC3\x64"
  30155. "\x4B\xF2\xAD\x70\x19\xD4\x44\x8F"
  30156. "\x91\x76\xE8\x15\x66\x34\x9F\xF6"
  30157. "\x0F\x15\xA4\xA8\x24\xF8\x58\xB1"
  30158. "\x38\x46\x47\xC7\x9B\xCA\xE9\x42"
  30159. "\x44\xAA\xE6\xB5\x9C\x91\xA4\xD3"
  30160. "\x16\xA0\xED\x42\xBE\xB5\x06\x19"
  30161. "\xBE\x67\xE8\xBC\x22\x32\xA4\x1E"
  30162. "\x93\xEB\xBE\xE9\xE1\x93\xE5\x31"
  30163. "\x3A\xA2\x75\xDF\xE3\x6B\xE7\xCC"
  30164. "\xB4\x70\x20\xE0\x6D\x82\x7C\xC8"
  30165. "\x94\x5C\x5E\x37\x18\xAD\xED\x8B"
  30166. "\x44\x86\xCA\x5E\x07\xB7\x70\x8D"
  30167. "\x40\x48\x19\x73\x7C\x78\x64\x0B"
  30168. "\xDB\x01\xCA\xAE\x63\x19\xE9\xD1"
  30169. "\x6B\x2C\x84\x10\x45\x42\x2E\xC3"
  30170. "\xDF\x7F\xAA\xE8\x87\x1B\x63\x46"
  30171. "\x74\x28\x9D\x05\x30\x20\x62\x41"
  30172. "\xC0\x9F\x2C\x36\x2B\x78\xD7\x26"
  30173. "\xDF\x58\x51\xED\xFA\xDC\x87\x79"
  30174. "\xBF\x8C\xBF\xC4\x0F\xE5\x05\xDA"
  30175. "\x45\xE3\x35\x0D\x69\x91\x54\x1C"
  30176. "\xE7\x2C\x49\x08\x8B\x72\xFA\x5C"
  30177. "\xF1\x6B\xD9",
  30178. .rlen = 1011,
  30179. .also_non_np = 1,
  30180. .np = 2,
  30181. .tap = { 1011 - 16, 16 },
  30182. }, { /* Generated with Crypto++ */
  30183. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  30184. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  30185. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  30186. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  30187. .klen = 32,
  30188. .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
  30189. "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
  30190. .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  30191. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  30192. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  30193. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  30194. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  30195. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  30196. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  30197. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  30198. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  30199. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  30200. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  30201. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  30202. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  30203. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  30204. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  30205. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  30206. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  30207. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  30208. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  30209. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  30210. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  30211. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  30212. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  30213. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  30214. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  30215. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  30216. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  30217. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  30218. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  30219. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  30220. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  30221. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  30222. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  30223. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  30224. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  30225. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  30226. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  30227. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  30228. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  30229. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  30230. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  30231. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  30232. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  30233. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  30234. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  30235. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  30236. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  30237. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  30238. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  30239. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  30240. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  30241. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  30242. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  30243. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  30244. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  30245. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  30246. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  30247. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  30248. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  30249. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  30250. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  30251. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  30252. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
  30253. "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
  30254. "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
  30255. "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
  30256. "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
  30257. "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
  30258. "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
  30259. "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
  30260. "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
  30261. "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
  30262. "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
  30263. "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
  30264. "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
  30265. "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
  30266. "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
  30267. "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
  30268. "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
  30269. "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
  30270. "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
  30271. "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
  30272. "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
  30273. "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
  30274. "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
  30275. "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
  30276. "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
  30277. "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
  30278. "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
  30279. "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
  30280. "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
  30281. "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
  30282. "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
  30283. "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
  30284. "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
  30285. "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
  30286. "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
  30287. "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
  30288. "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
  30289. "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
  30290. "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
  30291. "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
  30292. "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
  30293. "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
  30294. "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
  30295. "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
  30296. "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
  30297. "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
  30298. "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
  30299. "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
  30300. "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
  30301. "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
  30302. "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
  30303. "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
  30304. "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
  30305. "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
  30306. "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
  30307. "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
  30308. "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
  30309. "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
  30310. "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
  30311. "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
  30312. "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
  30313. "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
  30314. "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
  30315. "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
  30316. .ilen = 1008,
  30317. .result = "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9"
  30318. "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E"
  30319. "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB"
  30320. "\xF7\xC4\x27\x04\x51\x87\xD7\x6F"
  30321. "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4"
  30322. "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48"
  30323. "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A"
  30324. "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B"
  30325. "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07"
  30326. "\x2C\x56\x07\x5E\x37\x30\x60\xA9"
  30327. "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64"
  30328. "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43"
  30329. "\x23\x35\x95\x91\x80\x8A\xC7\xCF"
  30330. "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B"
  30331. "\x05\x19\x48\xE2\x62\xBA\x4F\xF2"
  30332. "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10"
  30333. "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD"
  30334. "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96"
  30335. "\xD9\x0F\x90\x5A\x78\x76\x4D\x77"
  30336. "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD"
  30337. "\xE4\xE8\x20\x2D\x15\x0A\x63\x49"
  30338. "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78"
  30339. "\x28\x07\x09\x1B\x03\x94\x1D\x4B"
  30340. "\x82\x28\x1E\x1D\x95\xBA\xAC\x85"
  30341. "\x71\x6E\x3C\x18\x4B\x77\x74\x79"
  30342. "\xBF\x67\x0A\x53\x3C\x94\xD9\x60"
  30343. "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D"
  30344. "\x27\xD5\x47\xF9\xC3\x4B\x27\x29"
  30345. "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC"
  30346. "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B"
  30347. "\x70\x1C\x84\x81\x72\x4D\xB4\x98"
  30348. "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2"
  30349. "\xFF\xF5\x71\x07\xCD\x90\x23\x13"
  30350. "\x19\xD7\x79\x36\x6C\x9D\x55\x8B"
  30351. "\x93\x78\x86\x05\x69\x46\xD0\xC5"
  30352. "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE"
  30353. "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C"
  30354. "\x83\x4B\xD8\x75\x9C\x18\x04\x7B"
  30355. "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B"
  30356. "\xCC\x01\x45\x90\xA6\x43\x05\x0C"
  30357. "\x6C\x4F\x62\x77\x57\x97\x9F\xEE"
  30358. "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E"
  30359. "\x2C\x43\x98\xFB\x13\x65\x73\xE4"
  30360. "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99"
  30361. "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32"
  30362. "\x17\xC2\xCC\x20\xA1\x19\x26\xAA"
  30363. "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF"
  30364. "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56"
  30365. "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24"
  30366. "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54"
  30367. "\x10\x7F\x50\xDE\x69\x77\xD5\x37"
  30368. "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53"
  30369. "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57"
  30370. "\x3A\xE6\x75\xFE\x89\x00\x6E\x48"
  30371. "\xFB\x99\x17\x2C\xF6\x64\x40\x95"
  30372. "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD"
  30373. "\x52\x05\x24\x34\xF9\x0E\xC8\x64"
  30374. "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE"
  30375. "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22"
  30376. "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E"
  30377. "\x12\xA8\x01\x64\x16\x0B\x26\x5A"
  30378. "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C"
  30379. "\xCF\xF5\xD5\xB7\x7A\x34\x23\xB6"
  30380. "\xAA\x9E\xA8\x98\xA2\xF8\x3D\xD3"
  30381. "\x3F\x23\x69\x63\x56\x96\x45\xD6"
  30382. "\x74\x23\x1D\x5C\x63\xCC\xD8\x78"
  30383. "\x16\xE2\x9C\xD2\x80\x02\xF2\x28"
  30384. "\x69\x2F\xC4\xA8\x15\x15\x24\x3B"
  30385. "\xCB\xF0\x14\xE4\x62\xC8\xF3\xD1"
  30386. "\x03\x58\x1B\x33\x77\x74\x1F\xB4"
  30387. "\x07\x86\xF2\x21\xB7\x41\xAE\xBF"
  30388. "\x25\xC2\xFF\x51\xEF\xEA\xCE\xC4"
  30389. "\x5F\xD9\xB8\x18\x6A\xF0\x0F\x0D"
  30390. "\xF8\x04\xBB\x6D\x62\x33\x87\x26"
  30391. "\x4F\x2F\x14\x6E\xDC\xDB\x66\x09"
  30392. "\x2A\xEF\x7D\x84\x10\xAC\x82\x5E"
  30393. "\xD2\xE4\xAD\x74\x7A\x6D\xCC\x3A"
  30394. "\x7B\x62\xD8\xD6\x07\x2D\xF7\xDF"
  30395. "\x9B\xB3\x82\xCF\x9C\x1D\x76\x5C"
  30396. "\xAC\x7B\xD4\x9B\x45\xA1\x64\x11"
  30397. "\x66\xF1\xA7\x0B\xF9\xDD\x00\xDD"
  30398. "\xA4\x45\x3D\x3E\x03\xC9\x2E\xCB"
  30399. "\xC3\x14\x84\x72\xFD\x41\xDC\xBD"
  30400. "\x75\xBE\xA8\xE5\x16\x48\x64\x39"
  30401. "\xCA\xF3\xE6\xDC\x25\x24\xF1\x6D"
  30402. "\xB2\x8D\xC5\x38\x54\xD3\x5D\x6D"
  30403. "\x0B\x29\x10\x15\x0E\x13\x3B\xAC"
  30404. "\x7E\xCC\x9E\x3E\x18\x48\xA6\x02"
  30405. "\xEF\x03\xB2\x2E\xE3\xD2\x70\x21"
  30406. "\xB4\x19\x26\xBE\x3A\x3D\x05\xE0"
  30407. "\xF8\x09\xAF\xE4\x31\x26\x92\x2F"
  30408. "\x8F\x55\xAC\xED\x0B\xB2\xA5\x34"
  30409. "\xBE\x50\xB1\x02\x22\x96\xE3\x40"
  30410. "\x7B\x70\x50\x6E\x3B\xD5\xE5\xA0"
  30411. "\x8E\xA2\xAD\x14\x60\x5C\x7A\x2B"
  30412. "\x3D\x1B\x7F\xC1\xC0\x2C\x56\x36"
  30413. "\xD2\x0A\x32\x06\x97\x34\xB9\xF4"
  30414. "\x6F\x9F\x7E\x80\xD0\x9D\xF7\x6A"
  30415. "\x21\xC1\xA2\x6A\xB1\x96\x5B\x4D"
  30416. "\x7A\x15\x6C\xC4\x4E\xB8\xE0\x9E"
  30417. "\x6C\x50\xF3\x9C\xC9\xB5\x23\xB7"
  30418. "\xF1\xD4\x29\x4A\x23\xC4\xAD\x1E"
  30419. "\x2C\x07\xD2\x43\x5F\x57\x93\xCA"
  30420. "\x85\xF9\x9F\xAD\x4C\xF1\xE4\xB1"
  30421. "\x1A\x8E\x28\xA4\xB6\x52\x77\x7E"
  30422. "\x68\xC6\x47\xB9\x76\xCC\x65\x5F"
  30423. "\x0B\xF9\x67\x93\xD8\x0E\x9A\x37"
  30424. "\x5F\x41\xED\x64\x6C\xAD\x5F\xED"
  30425. "\x3F\x8D\xFB\x8E\x1E\xA0\xE4\x1F"
  30426. "\xC2\xC7\xED\x18\x43\xE1\x20\x86"
  30427. "\x5D\xBC\x30\x70\x22\xA1\xDC\x53"
  30428. "\x10\x3A\x8D\x47\x82\xCD\x7F\x59"
  30429. "\x03\x2D\x6D\xF5\xE7\x79\xD4\x07"
  30430. "\x68\x2A\xA5\x42\x19\x4D\xAF\xF5"
  30431. "\xED\x47\x83\xBC\x5F\x62\x84\xDA"
  30432. "\xDA\x41\xFF\xB0\x1D\x64\xA3\xC8"
  30433. "\xBD\x4E\xE0\xB8\x7F\xEE\x55\x0A"
  30434. "\x4E\x61\xB2\x51\xF6\x9C\x95\xF6"
  30435. "\x92\xBB\xF6\xC5\xF0\x09\x86\xDE"
  30436. "\x37\x9E\x29\xF9\x2A\x18\x73\x0D"
  30437. "\xDC\x7E\x6B\x7B\x1B\x43\x8C\xEA"
  30438. "\x13\xC8\x1A\x47\x0A\x2D\x6D\x56"
  30439. "\xCD\xD2\xE7\x53\x1A\xAB\x1C\x3C"
  30440. "\xC5\x9B\x03\x70\x29\x2A\x49\x09"
  30441. "\x67\xA1\xEA\xD6\x3A\x5B\xBF\x71"
  30442. "\x1D\x48\x64\x6C\xFB\xC0\x9E\x36",
  30443. .rlen = 1008,
  30444. },
  30445. };
  30446. static struct cipher_testvec camellia_ctr_dec_tv_template[] = {
  30447. { /* Generated with Crypto++ */
  30448. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  30449. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  30450. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  30451. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  30452. .klen = 32,
  30453. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  30454. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  30455. .input = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
  30456. "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
  30457. "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
  30458. "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
  30459. "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
  30460. "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
  30461. "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
  30462. "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
  30463. "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
  30464. "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
  30465. "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
  30466. "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
  30467. "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
  30468. "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
  30469. "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
  30470. "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
  30471. "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
  30472. "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
  30473. "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
  30474. "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
  30475. "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
  30476. "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
  30477. "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
  30478. "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
  30479. "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
  30480. "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
  30481. "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
  30482. "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
  30483. "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
  30484. "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
  30485. "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
  30486. "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
  30487. "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
  30488. "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
  30489. "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
  30490. "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
  30491. "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
  30492. "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
  30493. "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
  30494. "\x79\xA2\x99\x28\x93\x1B\x00\x57"
  30495. "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
  30496. "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
  30497. "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
  30498. "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
  30499. "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
  30500. "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
  30501. "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
  30502. "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
  30503. "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
  30504. "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
  30505. "\x76\x44\x45\xF3\x24\x11\x57\x98"
  30506. "\x9A\x86\xB4\x12\x80\x28\x86\x20"
  30507. "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
  30508. "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
  30509. "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
  30510. "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
  30511. "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
  30512. "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
  30513. "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
  30514. "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
  30515. "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
  30516. "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D",
  30517. .ilen = 496,
  30518. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  30519. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  30520. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  30521. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  30522. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  30523. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  30524. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  30525. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  30526. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  30527. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  30528. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  30529. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  30530. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  30531. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  30532. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  30533. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  30534. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  30535. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  30536. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  30537. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  30538. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  30539. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  30540. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  30541. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  30542. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  30543. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  30544. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  30545. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  30546. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  30547. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  30548. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  30549. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  30550. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  30551. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  30552. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  30553. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  30554. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  30555. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  30556. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  30557. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  30558. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  30559. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  30560. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  30561. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  30562. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  30563. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  30564. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  30565. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  30566. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  30567. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  30568. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  30569. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  30570. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  30571. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  30572. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  30573. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  30574. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  30575. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  30576. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  30577. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  30578. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  30579. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
  30580. .rlen = 496,
  30581. }, { /* Generated with Crypto++ */
  30582. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  30583. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  30584. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  30585. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  30586. .klen = 32,
  30587. .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
  30588. "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
  30589. .input = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
  30590. "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
  30591. "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
  30592. "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
  30593. "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
  30594. "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
  30595. "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
  30596. "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
  30597. "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
  30598. "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
  30599. "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
  30600. "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
  30601. "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
  30602. "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
  30603. "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
  30604. "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
  30605. "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
  30606. "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
  30607. "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
  30608. "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
  30609. "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
  30610. "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
  30611. "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
  30612. "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
  30613. "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
  30614. "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
  30615. "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
  30616. "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
  30617. "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
  30618. "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
  30619. "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
  30620. "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
  30621. "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
  30622. "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
  30623. "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
  30624. "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
  30625. "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
  30626. "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
  30627. "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
  30628. "\x79\xA2\x99\x28\x93\x1B\x00\x57"
  30629. "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
  30630. "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
  30631. "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
  30632. "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
  30633. "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
  30634. "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
  30635. "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
  30636. "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
  30637. "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
  30638. "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
  30639. "\x76\x44\x45\xF3\x24\x11\x57\x98"
  30640. "\x9A\x86\xB4\x12\x80\x28\x86\x20"
  30641. "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
  30642. "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
  30643. "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
  30644. "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
  30645. "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
  30646. "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
  30647. "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
  30648. "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
  30649. "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
  30650. "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D"
  30651. "\x93\x11\x1C\xE9\xD2\x9F\x6E\x90"
  30652. "\xE5\x41\x4A\xE2\x3C\x45\x29\x35"
  30653. "\xEC\xD6\x47\x50\xCB\x7B\xA2\x32"
  30654. "\xF7\x8B\x62\xF1\xE3\x9A\xFE\xC7"
  30655. "\x1D\x8C\x02\x72\x68\x09\xE9\xB6"
  30656. "\x4A\x80\xE6\xB1\x56\xDF\x90\xD4"
  30657. "\x93\x74\xA4\xCE\x20\x23\xBF\x48"
  30658. "\xA5\xDE\x1B\xFA\x40\x69\x31\x98"
  30659. "\x62\x6E\xA5\xC7\xBF\x0C\x62\xE5"
  30660. "\x6D\xE1\x93\xF1\x83\x10\x1C\xCA"
  30661. "\xF6\x5C\x19\xF8\x90\x78\xCB\xE4"
  30662. "\x0B\x3A\xB5\xF8\x43\x86\xD3\x3F"
  30663. "\xBA\x83\x34\x3C\x42\xCC\x7D\x28"
  30664. "\x29\x63\x4F\xD8\x02\x17\xC5\x07"
  30665. "\x2C\xA4\xAC\x79\xCB\xC3\xA9\x09"
  30666. "\x81\x45\x18\xED\xE4\xCB\x42\x3B"
  30667. "\x87\x2D\x23\xDC\xC5\xBA\x45\xBD"
  30668. "\x92\xE5\x02\x97\x96\xCE\xAD\xEC"
  30669. "\xBA\xD8\x76\xF8\xCA\xC1\x31\xEC"
  30670. "\x1E\x4F\x3F\x83\xF8\x33\xE8\x6E"
  30671. "\xCC\xF8\x5F\xDD\x65\x50\x99\x69"
  30672. "\xAF\x48\xCE\xA5\xBA\xB6\x14\x9F"
  30673. "\x05\x93\xB2\xE6\x59\xC8\x28\xFE"
  30674. "\x8F\x37\xF9\x64\xB9\xA5\x56\x8F"
  30675. "\xF1\x1B\x90\xEF\xAE\xEB\xFC\x09"
  30676. "\x11\x7A\xF2\x19\x0A\x0A\x9A\x3C"
  30677. "\xE2\x5E\x29\xFA\x31\x9B\xC1\x74"
  30678. "\x1E\x10\x3E\x07\xA9\x31\x6D\xF8"
  30679. "\x81\xF5\xD5\x8A\x04\x23\x51\xAC"
  30680. "\xA2\xE2\x63\xFD\x27\x1F\x79\x5B"
  30681. "\x1F\xE8\xDA\x11\x49\x4D\x1C\xBA"
  30682. "\x54\xCC\x0F\xBA\x92\x69\xE5\xCB"
  30683. "\x41\x1A\x67\xA6\x40\x82\x70\x8C"
  30684. "\x19\x79\x08\xA4\x51\x20\x7D\xC9"
  30685. "\x12\x27\xAE\x20\x0D\x2C\xA1\x6D"
  30686. "\xF4\x55\xD4\xE7\xE6\xD4\x28\x08"
  30687. "\x00\x70\x12\x56\x56\x50\xAD\x14"
  30688. "\x5C\x3E\xA2\xD1\x36\x3F\x36\x48"
  30689. "\xED\xB1\x57\x3E\x5D\x15\xF6\x1E"
  30690. "\x53\xE9\xA4\x3E\xED\x7D\xCF\x7D"
  30691. "\x29\xAF\xF3\x1E\x51\xA8\x9F\x85"
  30692. "\x8B\xF0\xBB\xCE\xCC\x39\xC3\x64"
  30693. "\x4B\xF2\xAD\x70\x19\xD4\x44\x8F"
  30694. "\x91\x76\xE8\x15\x66\x34\x9F\xF6"
  30695. "\x0F\x15\xA4\xA8\x24\xF8\x58\xB1"
  30696. "\x38\x46\x47\xC7\x9B\xCA\xE9\x42"
  30697. "\x44\xAA\xE6\xB5\x9C\x91\xA4\xD3"
  30698. "\x16\xA0\xED\x42\xBE\xB5\x06\x19"
  30699. "\xBE\x67\xE8\xBC\x22\x32\xA4\x1E"
  30700. "\x93\xEB\xBE\xE9\xE1\x93\xE5\x31"
  30701. "\x3A\xA2\x75\xDF\xE3\x6B\xE7\xCC"
  30702. "\xB4\x70\x20\xE0\x6D\x82\x7C\xC8"
  30703. "\x94\x5C\x5E\x37\x18\xAD\xED\x8B"
  30704. "\x44\x86\xCA\x5E\x07\xB7\x70\x8D"
  30705. "\x40\x48\x19\x73\x7C\x78\x64\x0B"
  30706. "\xDB\x01\xCA\xAE\x63\x19\xE9\xD1"
  30707. "\x6B\x2C\x84\x10\x45\x42\x2E\xC3"
  30708. "\xDF\x7F\xAA\xE8\x87\x1B\x63\x46"
  30709. "\x74\x28\x9D\x05\x30\x20\x62\x41"
  30710. "\xC0\x9F\x2C\x36\x2B\x78\xD7\x26"
  30711. "\xDF\x58\x51\xED\xFA\xDC\x87\x79"
  30712. "\xBF\x8C\xBF\xC4\x0F\xE5\x05\xDA"
  30713. "\x45\xE3\x35\x0D\x69\x91\x54\x1C"
  30714. "\xE7\x2C\x49\x08\x8B\x72\xFA\x5C"
  30715. "\xF1\x6B\xD9",
  30716. .ilen = 1011,
  30717. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  30718. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  30719. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  30720. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  30721. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  30722. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  30723. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  30724. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  30725. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  30726. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  30727. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  30728. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  30729. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  30730. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  30731. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  30732. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  30733. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  30734. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  30735. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  30736. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  30737. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  30738. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  30739. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  30740. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  30741. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  30742. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  30743. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  30744. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  30745. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  30746. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  30747. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  30748. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  30749. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  30750. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  30751. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  30752. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  30753. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  30754. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  30755. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  30756. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  30757. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  30758. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  30759. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  30760. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  30761. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  30762. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  30763. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  30764. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  30765. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  30766. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  30767. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  30768. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  30769. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  30770. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  30771. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  30772. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  30773. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  30774. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  30775. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  30776. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  30777. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  30778. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  30779. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
  30780. "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
  30781. "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
  30782. "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
  30783. "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
  30784. "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
  30785. "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
  30786. "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
  30787. "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
  30788. "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
  30789. "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
  30790. "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
  30791. "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
  30792. "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
  30793. "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
  30794. "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
  30795. "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
  30796. "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
  30797. "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
  30798. "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
  30799. "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
  30800. "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
  30801. "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
  30802. "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
  30803. "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
  30804. "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
  30805. "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
  30806. "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
  30807. "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
  30808. "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
  30809. "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
  30810. "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
  30811. "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
  30812. "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
  30813. "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
  30814. "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
  30815. "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
  30816. "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
  30817. "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
  30818. "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
  30819. "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
  30820. "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
  30821. "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
  30822. "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
  30823. "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
  30824. "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
  30825. "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
  30826. "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
  30827. "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
  30828. "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
  30829. "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
  30830. "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
  30831. "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
  30832. "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
  30833. "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
  30834. "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
  30835. "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
  30836. "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
  30837. "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
  30838. "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
  30839. "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
  30840. "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
  30841. "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
  30842. "\x72\x09\xA0\x14\xAB\x42\xD9\x4D"
  30843. "\xE4\x7B\x12",
  30844. .rlen = 1011,
  30845. .also_non_np = 1,
  30846. .np = 2,
  30847. .tap = { 1011 - 16, 16 },
  30848. }, { /* Generated with Crypto++ */
  30849. .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
  30850. "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
  30851. "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
  30852. "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
  30853. .klen = 32,
  30854. .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
  30855. "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
  30856. .input = "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9"
  30857. "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E"
  30858. "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB"
  30859. "\xF7\xC4\x27\x04\x51\x87\xD7\x6F"
  30860. "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4"
  30861. "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48"
  30862. "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A"
  30863. "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B"
  30864. "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07"
  30865. "\x2C\x56\x07\x5E\x37\x30\x60\xA9"
  30866. "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64"
  30867. "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43"
  30868. "\x23\x35\x95\x91\x80\x8A\xC7\xCF"
  30869. "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B"
  30870. "\x05\x19\x48\xE2\x62\xBA\x4F\xF2"
  30871. "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10"
  30872. "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD"
  30873. "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96"
  30874. "\xD9\x0F\x90\x5A\x78\x76\x4D\x77"
  30875. "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD"
  30876. "\xE4\xE8\x20\x2D\x15\x0A\x63\x49"
  30877. "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78"
  30878. "\x28\x07\x09\x1B\x03\x94\x1D\x4B"
  30879. "\x82\x28\x1E\x1D\x95\xBA\xAC\x85"
  30880. "\x71\x6E\x3C\x18\x4B\x77\x74\x79"
  30881. "\xBF\x67\x0A\x53\x3C\x94\xD9\x60"
  30882. "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D"
  30883. "\x27\xD5\x47\xF9\xC3\x4B\x27\x29"
  30884. "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC"
  30885. "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B"
  30886. "\x70\x1C\x84\x81\x72\x4D\xB4\x98"
  30887. "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2"
  30888. "\xFF\xF5\x71\x07\xCD\x90\x23\x13"
  30889. "\x19\xD7\x79\x36\x6C\x9D\x55\x8B"
  30890. "\x93\x78\x86\x05\x69\x46\xD0\xC5"
  30891. "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE"
  30892. "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C"
  30893. "\x83\x4B\xD8\x75\x9C\x18\x04\x7B"
  30894. "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B"
  30895. "\xCC\x01\x45\x90\xA6\x43\x05\x0C"
  30896. "\x6C\x4F\x62\x77\x57\x97\x9F\xEE"
  30897. "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E"
  30898. "\x2C\x43\x98\xFB\x13\x65\x73\xE4"
  30899. "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99"
  30900. "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32"
  30901. "\x17\xC2\xCC\x20\xA1\x19\x26\xAA"
  30902. "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF"
  30903. "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56"
  30904. "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24"
  30905. "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54"
  30906. "\x10\x7F\x50\xDE\x69\x77\xD5\x37"
  30907. "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53"
  30908. "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57"
  30909. "\x3A\xE6\x75\xFE\x89\x00\x6E\x48"
  30910. "\xFB\x99\x17\x2C\xF6\x64\x40\x95"
  30911. "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD"
  30912. "\x52\x05\x24\x34\xF9\x0E\xC8\x64"
  30913. "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE"
  30914. "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22"
  30915. "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E"
  30916. "\x12\xA8\x01\x64\x16\x0B\x26\x5A"
  30917. "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C"
  30918. "\xCF\xF5\xD5\xB7\x7A\x34\x23\xB6"
  30919. "\xAA\x9E\xA8\x98\xA2\xF8\x3D\xD3"
  30920. "\x3F\x23\x69\x63\x56\x96\x45\xD6"
  30921. "\x74\x23\x1D\x5C\x63\xCC\xD8\x78"
  30922. "\x16\xE2\x9C\xD2\x80\x02\xF2\x28"
  30923. "\x69\x2F\xC4\xA8\x15\x15\x24\x3B"
  30924. "\xCB\xF0\x14\xE4\x62\xC8\xF3\xD1"
  30925. "\x03\x58\x1B\x33\x77\x74\x1F\xB4"
  30926. "\x07\x86\xF2\x21\xB7\x41\xAE\xBF"
  30927. "\x25\xC2\xFF\x51\xEF\xEA\xCE\xC4"
  30928. "\x5F\xD9\xB8\x18\x6A\xF0\x0F\x0D"
  30929. "\xF8\x04\xBB\x6D\x62\x33\x87\x26"
  30930. "\x4F\x2F\x14\x6E\xDC\xDB\x66\x09"
  30931. "\x2A\xEF\x7D\x84\x10\xAC\x82\x5E"
  30932. "\xD2\xE4\xAD\x74\x7A\x6D\xCC\x3A"
  30933. "\x7B\x62\xD8\xD6\x07\x2D\xF7\xDF"
  30934. "\x9B\xB3\x82\xCF\x9C\x1D\x76\x5C"
  30935. "\xAC\x7B\xD4\x9B\x45\xA1\x64\x11"
  30936. "\x66\xF1\xA7\x0B\xF9\xDD\x00\xDD"
  30937. "\xA4\x45\x3D\x3E\x03\xC9\x2E\xCB"
  30938. "\xC3\x14\x84\x72\xFD\x41\xDC\xBD"
  30939. "\x75\xBE\xA8\xE5\x16\x48\x64\x39"
  30940. "\xCA\xF3\xE6\xDC\x25\x24\xF1\x6D"
  30941. "\xB2\x8D\xC5\x38\x54\xD3\x5D\x6D"
  30942. "\x0B\x29\x10\x15\x0E\x13\x3B\xAC"
  30943. "\x7E\xCC\x9E\x3E\x18\x48\xA6\x02"
  30944. "\xEF\x03\xB2\x2E\xE3\xD2\x70\x21"
  30945. "\xB4\x19\x26\xBE\x3A\x3D\x05\xE0"
  30946. "\xF8\x09\xAF\xE4\x31\x26\x92\x2F"
  30947. "\x8F\x55\xAC\xED\x0B\xB2\xA5\x34"
  30948. "\xBE\x50\xB1\x02\x22\x96\xE3\x40"
  30949. "\x7B\x70\x50\x6E\x3B\xD5\xE5\xA0"
  30950. "\x8E\xA2\xAD\x14\x60\x5C\x7A\x2B"
  30951. "\x3D\x1B\x7F\xC1\xC0\x2C\x56\x36"
  30952. "\xD2\x0A\x32\x06\x97\x34\xB9\xF4"
  30953. "\x6F\x9F\x7E\x80\xD0\x9D\xF7\x6A"
  30954. "\x21\xC1\xA2\x6A\xB1\x96\x5B\x4D"
  30955. "\x7A\x15\x6C\xC4\x4E\xB8\xE0\x9E"
  30956. "\x6C\x50\xF3\x9C\xC9\xB5\x23\xB7"
  30957. "\xF1\xD4\x29\x4A\x23\xC4\xAD\x1E"
  30958. "\x2C\x07\xD2\x43\x5F\x57\x93\xCA"
  30959. "\x85\xF9\x9F\xAD\x4C\xF1\xE4\xB1"
  30960. "\x1A\x8E\x28\xA4\xB6\x52\x77\x7E"
  30961. "\x68\xC6\x47\xB9\x76\xCC\x65\x5F"
  30962. "\x0B\xF9\x67\x93\xD8\x0E\x9A\x37"
  30963. "\x5F\x41\xED\x64\x6C\xAD\x5F\xED"
  30964. "\x3F\x8D\xFB\x8E\x1E\xA0\xE4\x1F"
  30965. "\xC2\xC7\xED\x18\x43\xE1\x20\x86"
  30966. "\x5D\xBC\x30\x70\x22\xA1\xDC\x53"
  30967. "\x10\x3A\x8D\x47\x82\xCD\x7F\x59"
  30968. "\x03\x2D\x6D\xF5\xE7\x79\xD4\x07"
  30969. "\x68\x2A\xA5\x42\x19\x4D\xAF\xF5"
  30970. "\xED\x47\x83\xBC\x5F\x62\x84\xDA"
  30971. "\xDA\x41\xFF\xB0\x1D\x64\xA3\xC8"
  30972. "\xBD\x4E\xE0\xB8\x7F\xEE\x55\x0A"
  30973. "\x4E\x61\xB2\x51\xF6\x9C\x95\xF6"
  30974. "\x92\xBB\xF6\xC5\xF0\x09\x86\xDE"
  30975. "\x37\x9E\x29\xF9\x2A\x18\x73\x0D"
  30976. "\xDC\x7E\x6B\x7B\x1B\x43\x8C\xEA"
  30977. "\x13\xC8\x1A\x47\x0A\x2D\x6D\x56"
  30978. "\xCD\xD2\xE7\x53\x1A\xAB\x1C\x3C"
  30979. "\xC5\x9B\x03\x70\x29\x2A\x49\x09"
  30980. "\x67\xA1\xEA\xD6\x3A\x5B\xBF\x71"
  30981. "\x1D\x48\x64\x6C\xFB\xC0\x9E\x36",
  30982. .ilen = 1008,
  30983. .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
  30984. "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
  30985. "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
  30986. "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
  30987. "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
  30988. "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
  30989. "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
  30990. "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
  30991. "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
  30992. "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
  30993. "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
  30994. "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
  30995. "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
  30996. "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
  30997. "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
  30998. "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
  30999. "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
  31000. "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
  31001. "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
  31002. "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
  31003. "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
  31004. "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
  31005. "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
  31006. "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
  31007. "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
  31008. "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
  31009. "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
  31010. "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
  31011. "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
  31012. "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
  31013. "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
  31014. "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
  31015. "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
  31016. "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
  31017. "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
  31018. "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
  31019. "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
  31020. "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
  31021. "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
  31022. "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
  31023. "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
  31024. "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
  31025. "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
  31026. "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
  31027. "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
  31028. "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
  31029. "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
  31030. "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
  31031. "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
  31032. "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
  31033. "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
  31034. "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
  31035. "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
  31036. "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
  31037. "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
  31038. "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
  31039. "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
  31040. "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
  31041. "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
  31042. "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
  31043. "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
  31044. "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
  31045. "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
  31046. "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
  31047. "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
  31048. "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
  31049. "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
  31050. "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
  31051. "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
  31052. "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
  31053. "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
  31054. "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
  31055. "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
  31056. "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
  31057. "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
  31058. "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
  31059. "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
  31060. "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
  31061. "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
  31062. "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
  31063. "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
  31064. "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
  31065. "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
  31066. "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
  31067. "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
  31068. "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
  31069. "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
  31070. "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
  31071. "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
  31072. "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
  31073. "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
  31074. "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
  31075. "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
  31076. "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
  31077. "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
  31078. "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
  31079. "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
  31080. "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
  31081. "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
  31082. "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
  31083. "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
  31084. "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
  31085. "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
  31086. "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
  31087. "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
  31088. "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
  31089. "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
  31090. "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
  31091. "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
  31092. "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
  31093. "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
  31094. "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
  31095. "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
  31096. "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
  31097. "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
  31098. "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
  31099. "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
  31100. "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
  31101. "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
  31102. "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
  31103. "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
  31104. "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
  31105. "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
  31106. "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
  31107. "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
  31108. "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
  31109. .rlen = 1008,
  31110. },
  31111. };
  31112. static struct cipher_testvec camellia_lrw_enc_tv_template[] = {
  31113. /* Generated from AES-LRW test vectors */
  31114. {
  31115. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  31116. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  31117. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  31118. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  31119. .klen = 32,
  31120. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31121. "\x00\x00\x00\x00\x00\x00\x00\x01",
  31122. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  31123. "\x38\x39\x41\x42\x43\x44\x45\x46",
  31124. .ilen = 16,
  31125. .result = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31"
  31126. "\x97\xcc\x72\xbe\x99\x17\xeb\x3e",
  31127. .rlen = 16,
  31128. }, {
  31129. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  31130. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  31131. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  31132. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  31133. .klen = 32,
  31134. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31135. "\x00\x00\x00\x00\x00\x00\x00\x02",
  31136. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  31137. "\x38\x39\x41\x42\x43\x44\x45\x46",
  31138. .ilen = 16,
  31139. .result = "\x73\x09\xb7\x50\xb6\x77\x30\x50"
  31140. "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a",
  31141. .rlen = 16,
  31142. }, {
  31143. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  31144. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  31145. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  31146. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  31147. .klen = 32,
  31148. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31149. "\x00\x00\x00\x02\x00\x00\x00\x00",
  31150. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  31151. "\x38\x39\x41\x42\x43\x44\x45\x46",
  31152. .ilen = 16,
  31153. .result = "\x90\xae\x83\xe0\x22\xb9\x60\x91"
  31154. "\xfa\xa9\xb7\x98\xe3\xed\x87\x01",
  31155. .rlen = 16,
  31156. }, {
  31157. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  31158. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  31159. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  31160. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  31161. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  31162. .klen = 40,
  31163. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31164. "\x00\x00\x00\x00\x00\x00\x00\x01",
  31165. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  31166. "\x38\x39\x41\x42\x43\x44\x45\x46",
  31167. .ilen = 16,
  31168. .result = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0"
  31169. "\xd8\x83\xef\xd9\x07\x16\x5f\x35",
  31170. .rlen = 16,
  31171. }, {
  31172. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  31173. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  31174. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  31175. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  31176. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  31177. .klen = 40,
  31178. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31179. "\x00\x00\x00\x02\x00\x00\x00\x00",
  31180. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  31181. "\x38\x39\x41\x42\x43\x44\x45\x46",
  31182. .ilen = 16,
  31183. .result = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e"
  31184. "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15",
  31185. .rlen = 16,
  31186. }, {
  31187. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  31188. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  31189. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  31190. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  31191. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  31192. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  31193. .klen = 48,
  31194. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31195. "\x00\x00\x00\x00\x00\x00\x00\x01",
  31196. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  31197. "\x38\x39\x41\x42\x43\x44\x45\x46",
  31198. .ilen = 16,
  31199. .result = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9"
  31200. "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d",
  31201. .rlen = 16,
  31202. }, {
  31203. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  31204. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  31205. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  31206. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  31207. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  31208. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  31209. .klen = 48,
  31210. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31211. "\x00\x00\x00\x02\x00\x00\x00\x00",
  31212. .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
  31213. "\x38\x39\x41\x42\x43\x44\x45\x46",
  31214. .ilen = 16,
  31215. .result = "\x04\xab\x28\x37\x31\x7a\x26\xab"
  31216. "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff",
  31217. .rlen = 16,
  31218. }, {
  31219. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  31220. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  31221. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  31222. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  31223. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  31224. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  31225. .klen = 48,
  31226. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31227. "\x00\x00\x00\x00\x00\x00\x00\x01",
  31228. .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  31229. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  31230. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  31231. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  31232. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  31233. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  31234. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  31235. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  31236. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  31237. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  31238. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  31239. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  31240. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  31241. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  31242. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  31243. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  31244. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  31245. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  31246. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  31247. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  31248. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  31249. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  31250. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  31251. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  31252. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  31253. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  31254. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  31255. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  31256. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  31257. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  31258. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  31259. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  31260. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  31261. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  31262. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  31263. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  31264. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  31265. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  31266. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  31267. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  31268. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  31269. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  31270. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  31271. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  31272. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  31273. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  31274. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  31275. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  31276. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  31277. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  31278. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  31279. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  31280. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  31281. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  31282. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  31283. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  31284. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  31285. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  31286. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  31287. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  31288. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  31289. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  31290. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  31291. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  31292. .ilen = 512,
  31293. .result = "\x90\x69\x8e\xf2\x14\x86\x59\xf9"
  31294. "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96"
  31295. "\x67\x76\xac\x2c\xd2\x63\x18\x93"
  31296. "\x13\xf8\xf1\xf6\x71\x77\xb3\xee"
  31297. "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f"
  31298. "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06"
  31299. "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1"
  31300. "\x62\xdd\x78\x81\xea\x1d\xef\x04"
  31301. "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1"
  31302. "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2"
  31303. "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0"
  31304. "\x40\x41\x69\xaa\x71\xc0\x37\xec"
  31305. "\x39\xf3\xf2\xec\x82\xc3\x88\x79"
  31306. "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80"
  31307. "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c"
  31308. "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1"
  31309. "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12"
  31310. "\x6f\x75\xc7\x80\x99\x50\x84\xcf"
  31311. "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e"
  31312. "\xb9\xb3\xde\x7a\x93\x14\x12\xa2"
  31313. "\xf7\x43\xb3\x9d\x1a\x87\x65\x91"
  31314. "\x42\x08\x40\x82\x06\x1c\x2d\x55"
  31315. "\x6e\x48\xd5\x74\x07\x6e\x9d\x80"
  31316. "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74"
  31317. "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c"
  31318. "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9"
  31319. "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83"
  31320. "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b"
  31321. "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0"
  31322. "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1"
  31323. "\xed\x14\xa9\x57\x19\x63\x40\x04"
  31324. "\x24\xeb\x6e\x19\xd1\x3d\x70\x78"
  31325. "\xeb\xda\x55\x70\x2c\x4f\x41\x5b"
  31326. "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3"
  31327. "\x21\xec\xd7\xd2\x55\x32\x7c\x2e"
  31328. "\x3c\x48\x8e\xb4\x85\x35\x47\xfe"
  31329. "\xe2\x88\x79\x98\x6a\xc9\x8d\xff"
  31330. "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd"
  31331. "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99"
  31332. "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75"
  31333. "\x23\x52\x76\xc3\x50\x6e\x66\xf8"
  31334. "\xa2\xe2\xce\xba\x40\x21\x3f\xc9"
  31335. "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf"
  31336. "\xd3\xdf\x57\x59\x83\xb8\xe1\x85"
  31337. "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f"
  31338. "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a"
  31339. "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76"
  31340. "\x2f\x1c\x1a\x30\xed\x95\x2a\x44"
  31341. "\x35\xa5\x83\x04\x84\x01\x99\x56"
  31342. "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd"
  31343. "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c"
  31344. "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d"
  31345. "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77"
  31346. "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b"
  31347. "\x30\xed\x1a\x50\x19\xef\xc4\x2c"
  31348. "\x02\xd9\xc5\xd3\x11\x33\x37\xe5"
  31349. "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d"
  31350. "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96"
  31351. "\x91\xc3\x94\x24\xa5\x12\xa2\x37"
  31352. "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe"
  31353. "\x79\x92\x3e\xe6\x1b\x49\x57\x5d"
  31354. "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1"
  31355. "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9"
  31356. "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95",
  31357. .rlen = 512,
  31358. .also_non_np = 1,
  31359. .np = 3,
  31360. .tap = { 512 - 20, 4, 16 },
  31361. },
  31362. };
  31363. static struct cipher_testvec camellia_lrw_dec_tv_template[] = {
  31364. /* Generated from AES-LRW test vectors */
  31365. /* same as enc vectors with input and result reversed */
  31366. {
  31367. .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
  31368. "\x4c\x26\x84\x14\xb5\x68\x01\x85"
  31369. "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
  31370. "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
  31371. .klen = 32,
  31372. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31373. "\x00\x00\x00\x00\x00\x00\x00\x01",
  31374. .input = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31"
  31375. "\x97\xcc\x72\xbe\x99\x17\xeb\x3e",
  31376. .ilen = 16,
  31377. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  31378. "\x38\x39\x41\x42\x43\x44\x45\x46",
  31379. .rlen = 16,
  31380. }, {
  31381. .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
  31382. "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
  31383. "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
  31384. "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
  31385. .klen = 32,
  31386. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31387. "\x00\x00\x00\x00\x00\x00\x00\x02",
  31388. .input = "\x73\x09\xb7\x50\xb6\x77\x30\x50"
  31389. "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a",
  31390. .ilen = 16,
  31391. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  31392. "\x38\x39\x41\x42\x43\x44\x45\x46",
  31393. .rlen = 16,
  31394. }, {
  31395. .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
  31396. "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
  31397. "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
  31398. "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
  31399. .klen = 32,
  31400. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31401. "\x00\x00\x00\x02\x00\x00\x00\x00",
  31402. .input = "\x90\xae\x83\xe0\x22\xb9\x60\x91"
  31403. "\xfa\xa9\xb7\x98\xe3\xed\x87\x01",
  31404. .ilen = 16,
  31405. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  31406. "\x38\x39\x41\x42\x43\x44\x45\x46",
  31407. .rlen = 16,
  31408. }, {
  31409. .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
  31410. "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
  31411. "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
  31412. "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
  31413. "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
  31414. .klen = 40,
  31415. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31416. "\x00\x00\x00\x00\x00\x00\x00\x01",
  31417. .input = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0"
  31418. "\xd8\x83\xef\xd9\x07\x16\x5f\x35",
  31419. .ilen = 16,
  31420. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  31421. "\x38\x39\x41\x42\x43\x44\x45\x46",
  31422. .rlen = 16,
  31423. }, {
  31424. .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
  31425. "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
  31426. "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
  31427. "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
  31428. "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
  31429. .klen = 40,
  31430. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31431. "\x00\x00\x00\x02\x00\x00\x00\x00",
  31432. .input = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e"
  31433. "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15",
  31434. .ilen = 16,
  31435. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  31436. "\x38\x39\x41\x42\x43\x44\x45\x46",
  31437. .rlen = 16,
  31438. }, {
  31439. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  31440. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  31441. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  31442. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  31443. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  31444. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  31445. .klen = 48,
  31446. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31447. "\x00\x00\x00\x00\x00\x00\x00\x01",
  31448. .input = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9"
  31449. "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d",
  31450. .ilen = 16,
  31451. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  31452. "\x38\x39\x41\x42\x43\x44\x45\x46",
  31453. .rlen = 16,
  31454. }, {
  31455. .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
  31456. "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
  31457. "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
  31458. "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
  31459. "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
  31460. "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
  31461. .klen = 48,
  31462. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31463. "\x00\x00\x00\x02\x00\x00\x00\x00",
  31464. .input = "\x04\xab\x28\x37\x31\x7a\x26\xab"
  31465. "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff",
  31466. .ilen = 16,
  31467. .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
  31468. "\x38\x39\x41\x42\x43\x44\x45\x46",
  31469. .rlen = 16,
  31470. }, {
  31471. .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
  31472. "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
  31473. "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
  31474. "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
  31475. "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
  31476. "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
  31477. .klen = 48,
  31478. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31479. "\x00\x00\x00\x00\x00\x00\x00\x01",
  31480. .input = "\x90\x69\x8e\xf2\x14\x86\x59\xf9"
  31481. "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96"
  31482. "\x67\x76\xac\x2c\xd2\x63\x18\x93"
  31483. "\x13\xf8\xf1\xf6\x71\x77\xb3\xee"
  31484. "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f"
  31485. "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06"
  31486. "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1"
  31487. "\x62\xdd\x78\x81\xea\x1d\xef\x04"
  31488. "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1"
  31489. "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2"
  31490. "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0"
  31491. "\x40\x41\x69\xaa\x71\xc0\x37\xec"
  31492. "\x39\xf3\xf2\xec\x82\xc3\x88\x79"
  31493. "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80"
  31494. "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c"
  31495. "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1"
  31496. "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12"
  31497. "\x6f\x75\xc7\x80\x99\x50\x84\xcf"
  31498. "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e"
  31499. "\xb9\xb3\xde\x7a\x93\x14\x12\xa2"
  31500. "\xf7\x43\xb3\x9d\x1a\x87\x65\x91"
  31501. "\x42\x08\x40\x82\x06\x1c\x2d\x55"
  31502. "\x6e\x48\xd5\x74\x07\x6e\x9d\x80"
  31503. "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74"
  31504. "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c"
  31505. "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9"
  31506. "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83"
  31507. "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b"
  31508. "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0"
  31509. "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1"
  31510. "\xed\x14\xa9\x57\x19\x63\x40\x04"
  31511. "\x24\xeb\x6e\x19\xd1\x3d\x70\x78"
  31512. "\xeb\xda\x55\x70\x2c\x4f\x41\x5b"
  31513. "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3"
  31514. "\x21\xec\xd7\xd2\x55\x32\x7c\x2e"
  31515. "\x3c\x48\x8e\xb4\x85\x35\x47\xfe"
  31516. "\xe2\x88\x79\x98\x6a\xc9\x8d\xff"
  31517. "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd"
  31518. "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99"
  31519. "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75"
  31520. "\x23\x52\x76\xc3\x50\x6e\x66\xf8"
  31521. "\xa2\xe2\xce\xba\x40\x21\x3f\xc9"
  31522. "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf"
  31523. "\xd3\xdf\x57\x59\x83\xb8\xe1\x85"
  31524. "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f"
  31525. "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a"
  31526. "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76"
  31527. "\x2f\x1c\x1a\x30\xed\x95\x2a\x44"
  31528. "\x35\xa5\x83\x04\x84\x01\x99\x56"
  31529. "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd"
  31530. "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c"
  31531. "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d"
  31532. "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77"
  31533. "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b"
  31534. "\x30\xed\x1a\x50\x19\xef\xc4\x2c"
  31535. "\x02\xd9\xc5\xd3\x11\x33\x37\xe5"
  31536. "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d"
  31537. "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96"
  31538. "\x91\xc3\x94\x24\xa5\x12\xa2\x37"
  31539. "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe"
  31540. "\x79\x92\x3e\xe6\x1b\x49\x57\x5d"
  31541. "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1"
  31542. "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9"
  31543. "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95",
  31544. .ilen = 512,
  31545. .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
  31546. "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
  31547. "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
  31548. "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
  31549. "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
  31550. "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
  31551. "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
  31552. "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
  31553. "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
  31554. "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
  31555. "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
  31556. "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
  31557. "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
  31558. "\x4c\x96\x12\xed\x7c\x92\x03\x01"
  31559. "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
  31560. "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
  31561. "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
  31562. "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
  31563. "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
  31564. "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
  31565. "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
  31566. "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
  31567. "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
  31568. "\x76\x12\x73\x44\x1a\x56\xd7\x72"
  31569. "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
  31570. "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
  31571. "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
  31572. "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
  31573. "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
  31574. "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
  31575. "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
  31576. "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
  31577. "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
  31578. "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
  31579. "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
  31580. "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
  31581. "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
  31582. "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
  31583. "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
  31584. "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
  31585. "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
  31586. "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
  31587. "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
  31588. "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
  31589. "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
  31590. "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
  31591. "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
  31592. "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
  31593. "\x62\x73\x65\xfd\x46\x63\x25\x3d"
  31594. "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
  31595. "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
  31596. "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
  31597. "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
  31598. "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
  31599. "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
  31600. "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
  31601. "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
  31602. "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
  31603. "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
  31604. "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
  31605. "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
  31606. "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
  31607. "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
  31608. "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
  31609. .rlen = 512,
  31610. .also_non_np = 1,
  31611. .np = 3,
  31612. .tap = { 512 - 20, 4, 16 },
  31613. },
  31614. };
  31615. static struct cipher_testvec camellia_xts_enc_tv_template[] = {
  31616. /* Generated from AES-XTS test vectors */
  31617. {
  31618. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31619. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31620. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31621. "\x00\x00\x00\x00\x00\x00\x00\x00",
  31622. .klen = 32,
  31623. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31624. "\x00\x00\x00\x00\x00\x00\x00\x00",
  31625. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31626. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31627. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31628. "\x00\x00\x00\x00\x00\x00\x00\x00",
  31629. .ilen = 32,
  31630. .result = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41"
  31631. "\xdc\xca\xfa\x09\xba\x74\xb9\x05"
  31632. "\x78\xba\xa4\xf8\x67\x4d\x7e\xad"
  31633. "\x20\x18\xf5\x0c\x41\x16\x2a\x61",
  31634. .rlen = 32,
  31635. }, {
  31636. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  31637. "\x11\x11\x11\x11\x11\x11\x11\x11"
  31638. "\x22\x22\x22\x22\x22\x22\x22\x22"
  31639. "\x22\x22\x22\x22\x22\x22\x22\x22",
  31640. .klen = 32,
  31641. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  31642. "\x00\x00\x00\x00\x00\x00\x00\x00",
  31643. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  31644. "\x44\x44\x44\x44\x44\x44\x44\x44"
  31645. "\x44\x44\x44\x44\x44\x44\x44\x44"
  31646. "\x44\x44\x44\x44\x44\x44\x44\x44",
  31647. .ilen = 32,
  31648. .result = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86"
  31649. "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f"
  31650. "\xb5\x37\x06\xff\xbd\xd4\x91\x70"
  31651. "\x80\x1f\xb2\x39\x10\x89\x44\xf5",
  31652. .rlen = 32,
  31653. }, {
  31654. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  31655. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  31656. "\x22\x22\x22\x22\x22\x22\x22\x22"
  31657. "\x22\x22\x22\x22\x22\x22\x22\x22",
  31658. .klen = 32,
  31659. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  31660. "\x00\x00\x00\x00\x00\x00\x00\x00",
  31661. .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
  31662. "\x44\x44\x44\x44\x44\x44\x44\x44"
  31663. "\x44\x44\x44\x44\x44\x44\x44\x44"
  31664. "\x44\x44\x44\x44\x44\x44\x44\x44",
  31665. .ilen = 32,
  31666. .result = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e"
  31667. "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7"
  31668. "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a"
  31669. "\x35\x3c\x6b\xb5\x61\x1c\x79\x38",
  31670. .rlen = 32,
  31671. }, {
  31672. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  31673. "\x23\x53\x60\x28\x74\x71\x35\x26"
  31674. "\x31\x41\x59\x26\x53\x58\x97\x93"
  31675. "\x23\x84\x62\x64\x33\x83\x27\x95",
  31676. .klen = 32,
  31677. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31678. "\x00\x00\x00\x00\x00\x00\x00\x00",
  31679. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  31680. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  31681. "\x10\x11\x12\x13\x14\x15\x16\x17"
  31682. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  31683. "\x20\x21\x22\x23\x24\x25\x26\x27"
  31684. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  31685. "\x30\x31\x32\x33\x34\x35\x36\x37"
  31686. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  31687. "\x40\x41\x42\x43\x44\x45\x46\x47"
  31688. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  31689. "\x50\x51\x52\x53\x54\x55\x56\x57"
  31690. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  31691. "\x60\x61\x62\x63\x64\x65\x66\x67"
  31692. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  31693. "\x70\x71\x72\x73\x74\x75\x76\x77"
  31694. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  31695. "\x80\x81\x82\x83\x84\x85\x86\x87"
  31696. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  31697. "\x90\x91\x92\x93\x94\x95\x96\x97"
  31698. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  31699. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  31700. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  31701. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  31702. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  31703. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  31704. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  31705. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  31706. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  31707. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  31708. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  31709. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  31710. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  31711. "\x00\x01\x02\x03\x04\x05\x06\x07"
  31712. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  31713. "\x10\x11\x12\x13\x14\x15\x16\x17"
  31714. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  31715. "\x20\x21\x22\x23\x24\x25\x26\x27"
  31716. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  31717. "\x30\x31\x32\x33\x34\x35\x36\x37"
  31718. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  31719. "\x40\x41\x42\x43\x44\x45\x46\x47"
  31720. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  31721. "\x50\x51\x52\x53\x54\x55\x56\x57"
  31722. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  31723. "\x60\x61\x62\x63\x64\x65\x66\x67"
  31724. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  31725. "\x70\x71\x72\x73\x74\x75\x76\x77"
  31726. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  31727. "\x80\x81\x82\x83\x84\x85\x86\x87"
  31728. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  31729. "\x90\x91\x92\x93\x94\x95\x96\x97"
  31730. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  31731. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  31732. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  31733. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  31734. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  31735. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  31736. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  31737. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  31738. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  31739. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  31740. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  31741. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  31742. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  31743. .ilen = 512,
  31744. .result = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33"
  31745. "\x60\xc3\xe9\x47\x90\xb7\x50\x57"
  31746. "\xa3\xad\x81\x2f\xf5\x22\x96\x02"
  31747. "\xaa\x7f\xea\xac\x29\x78\xca\x2a"
  31748. "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73"
  31749. "\x09\x66\xad\x72\x0e\x4d\x5d\x77"
  31750. "\xbc\xb8\x76\x80\x37\x59\xa9\x01"
  31751. "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d"
  31752. "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01"
  31753. "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8"
  31754. "\x08\xda\x76\x00\x65\xcf\x7b\x31"
  31755. "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e"
  31756. "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5"
  31757. "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04"
  31758. "\xfb\x54\xdd\x29\x27\xc2\x65\x17"
  31759. "\x36\x88\xb0\x85\x8d\x73\x7e\x4b"
  31760. "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4"
  31761. "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f"
  31762. "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3"
  31763. "\x6c\xee\xac\xdc\x45\x58\xca\x5b"
  31764. "\x70\x0e\x6a\x12\x86\x82\x79\x9f"
  31765. "\x16\xd4\x9d\x67\xcd\x70\x65\x26"
  31766. "\x21\x72\x1e\xa1\x94\x8a\x83\x0c"
  31767. "\x92\x42\x58\x5e\xa2\xc5\x31\xf3"
  31768. "\x7b\xd1\x31\xd4\x15\x80\x31\x61"
  31769. "\x5c\x53\x10\xdd\xea\xc8\x83\x5c"
  31770. "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05"
  31771. "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5"
  31772. "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9"
  31773. "\x16\x31\xb2\x47\x91\x67\xaa\x28"
  31774. "\x2c\x29\x85\xa3\xf7\xf2\x24\x93"
  31775. "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc"
  31776. "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec"
  31777. "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e"
  31778. "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66"
  31779. "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7"
  31780. "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d"
  31781. "\xf8\x89\xcd\x20\x27\x84\x5d\x5c"
  31782. "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3"
  31783. "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7"
  31784. "\x3f\x43\xcc\x86\x71\x34\x6a\xd9"
  31785. "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe"
  31786. "\x18\x41\xdc\x9e\x2e\x75\x20\x3e"
  31787. "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c"
  31788. "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71"
  31789. "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e"
  31790. "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9"
  31791. "\x34\xb8\x27\x74\x08\xda\xf2\x4a"
  31792. "\x23\x5b\x9f\x55\x3a\x57\x82\x52"
  31793. "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc"
  31794. "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49"
  31795. "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2"
  31796. "\x96\x0b\x35\x84\x05\x0d\xd6\x2a"
  31797. "\xea\x5a\xbf\x69\xde\xee\x4f\x8f"
  31798. "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8"
  31799. "\x96\xef\x0f\x0e\xec\xc7\xa6\x74"
  31800. "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15"
  31801. "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1"
  31802. "\x5b\xb6\x71\xda\xb0\x0c\xba\x26"
  31803. "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d"
  31804. "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33"
  31805. "\xcc\x06\xdb\xe7\x82\x29\x63\xd1"
  31806. "\x52\x84\x4f\xee\x27\xe8\x02\xd4"
  31807. "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a",
  31808. .rlen = 512,
  31809. }, {
  31810. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  31811. "\x23\x53\x60\x28\x74\x71\x35\x26"
  31812. "\x62\x49\x77\x57\x24\x70\x93\x69"
  31813. "\x99\x59\x57\x49\x66\x96\x76\x27"
  31814. "\x31\x41\x59\x26\x53\x58\x97\x93"
  31815. "\x23\x84\x62\x64\x33\x83\x27\x95"
  31816. "\x02\x88\x41\x97\x16\x93\x99\x37"
  31817. "\x51\x05\x82\x09\x74\x94\x45\x92",
  31818. .klen = 64,
  31819. .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
  31820. "\x00\x00\x00\x00\x00\x00\x00\x00",
  31821. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  31822. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  31823. "\x10\x11\x12\x13\x14\x15\x16\x17"
  31824. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  31825. "\x20\x21\x22\x23\x24\x25\x26\x27"
  31826. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  31827. "\x30\x31\x32\x33\x34\x35\x36\x37"
  31828. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  31829. "\x40\x41\x42\x43\x44\x45\x46\x47"
  31830. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  31831. "\x50\x51\x52\x53\x54\x55\x56\x57"
  31832. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  31833. "\x60\x61\x62\x63\x64\x65\x66\x67"
  31834. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  31835. "\x70\x71\x72\x73\x74\x75\x76\x77"
  31836. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  31837. "\x80\x81\x82\x83\x84\x85\x86\x87"
  31838. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  31839. "\x90\x91\x92\x93\x94\x95\x96\x97"
  31840. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  31841. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  31842. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  31843. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  31844. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  31845. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  31846. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  31847. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  31848. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  31849. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  31850. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  31851. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  31852. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  31853. "\x00\x01\x02\x03\x04\x05\x06\x07"
  31854. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  31855. "\x10\x11\x12\x13\x14\x15\x16\x17"
  31856. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  31857. "\x20\x21\x22\x23\x24\x25\x26\x27"
  31858. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  31859. "\x30\x31\x32\x33\x34\x35\x36\x37"
  31860. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  31861. "\x40\x41\x42\x43\x44\x45\x46\x47"
  31862. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  31863. "\x50\x51\x52\x53\x54\x55\x56\x57"
  31864. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  31865. "\x60\x61\x62\x63\x64\x65\x66\x67"
  31866. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  31867. "\x70\x71\x72\x73\x74\x75\x76\x77"
  31868. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  31869. "\x80\x81\x82\x83\x84\x85\x86\x87"
  31870. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  31871. "\x90\x91\x92\x93\x94\x95\x96\x97"
  31872. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  31873. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  31874. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  31875. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  31876. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  31877. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  31878. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  31879. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  31880. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  31881. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  31882. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  31883. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  31884. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  31885. .ilen = 512,
  31886. .result = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28"
  31887. "\x9a\x7f\x6e\x57\x55\xb8\x07\x88"
  31888. "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b"
  31889. "\xf1\x74\xac\x96\x05\x7b\x32\xca"
  31890. "\xd1\x4e\xf1\x58\x29\x16\x24\x6c"
  31891. "\xf2\xb3\xe4\x88\x84\xac\x4d\xee"
  31892. "\x97\x07\x82\xf0\x07\x12\x38\x0a"
  31893. "\x67\x62\xaf\xfd\x85\x9f\x0a\x55"
  31894. "\xa5\x20\xc5\x60\xe4\x68\x53\xa4"
  31895. "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c"
  31896. "\x1c\x01\x4f\x55\xa9\x13\xeb\x25"
  31897. "\x21\x87\xbc\xd3\xe7\x67\x4f\x38"
  31898. "\xa8\x14\x25\x71\xe9\x2e\x4c\x21"
  31899. "\x41\x82\x0c\x45\x39\x35\xa8\x75"
  31900. "\x03\x29\x01\x84\x8c\xab\x48\xbe"
  31901. "\x11\x56\x22\x67\xb7\x67\x1a\x09"
  31902. "\xa1\x72\x25\x41\x3c\x39\x65\x80"
  31903. "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d"
  31904. "\xdd\x16\x8b\x63\x70\x4e\xc5\x17"
  31905. "\x21\xe0\x84\x51\x4b\x6f\x05\x52"
  31906. "\xe3\x63\x34\xfa\xa4\xaf\x33\x20"
  31907. "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76"
  31908. "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b"
  31909. "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0"
  31910. "\xb8\x8a\x13\x88\x71\xf4\x11\xa5"
  31911. "\xe9\xa9\x10\x33\xe0\xbe\x49\x89"
  31912. "\x41\x22\xf5\x9d\x80\x3e\x3b\x76"
  31913. "\x01\x16\x50\x6e\x7c\x6a\x81\xe9"
  31914. "\x13\x2c\xde\xb2\x5f\x79\xba\xb2"
  31915. "\xb1\x75\xae\xd2\x07\x98\x4b\x69"
  31916. "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98"
  31917. "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a"
  31918. "\x0d\x23\xb1\x79\x25\x13\x4b\xe5"
  31919. "\xaf\x93\x20\x5c\x7f\x06\x7a\x34"
  31920. "\x0b\x78\xe3\x67\x26\xe0\xad\x95"
  31921. "\xc5\x4e\x26\x22\xcf\x73\x77\x62"
  31922. "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9"
  31923. "\xef\x38\x52\x18\x0e\x29\x7e\xef"
  31924. "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2"
  31925. "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d"
  31926. "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe"
  31927. "\x96\xcd\x41\x10\x78\x4e\x0c\xc9"
  31928. "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab"
  31929. "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa"
  31930. "\x9d\x70\xbe\x4c\xa8\x98\x89\x01"
  31931. "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa"
  31932. "\x89\xf5\x14\x79\x18\x8f\x3b\x0d"
  31933. "\x21\x17\xf8\x59\x15\x24\x64\x22"
  31934. "\x57\x48\x80\xd5\x3d\x92\x30\x07"
  31935. "\xd9\xa1\x4a\x23\x16\x43\x48\x0e"
  31936. "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa"
  31937. "\x49\xbc\x7e\x68\x6e\xa8\x46\x95"
  31938. "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d"
  31939. "\x6b\x84\xf3\x00\xba\x52\x05\x02"
  31940. "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3"
  31941. "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d"
  31942. "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0"
  31943. "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66"
  31944. "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89"
  31945. "\xf5\x21\x0f\x02\x48\x83\x74\xbf"
  31946. "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b"
  31947. "\xb1\x02\x0a\x5c\x79\x19\x3b\x75"
  31948. "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e"
  31949. "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95",
  31950. .rlen = 512,
  31951. .also_non_np = 1,
  31952. .np = 3,
  31953. .tap = { 512 - 20, 4, 16 },
  31954. },
  31955. };
  31956. static struct cipher_testvec camellia_xts_dec_tv_template[] = {
  31957. /* Generated from AES-XTS test vectors */
  31958. /* same as enc vectors with input and result reversed */
  31959. {
  31960. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31961. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31962. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31963. "\x00\x00\x00\x00\x00\x00\x00\x00",
  31964. .klen = 32,
  31965. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31966. "\x00\x00\x00\x00\x00\x00\x00\x00",
  31967. .input = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41"
  31968. "\xdc\xca\xfa\x09\xba\x74\xb9\x05"
  31969. "\x78\xba\xa4\xf8\x67\x4d\x7e\xad"
  31970. "\x20\x18\xf5\x0c\x41\x16\x2a\x61",
  31971. .ilen = 32,
  31972. .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
  31973. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31974. "\x00\x00\x00\x00\x00\x00\x00\x00"
  31975. "\x00\x00\x00\x00\x00\x00\x00\x00",
  31976. .rlen = 32,
  31977. }, {
  31978. .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
  31979. "\x11\x11\x11\x11\x11\x11\x11\x11"
  31980. "\x22\x22\x22\x22\x22\x22\x22\x22"
  31981. "\x22\x22\x22\x22\x22\x22\x22\x22",
  31982. .klen = 32,
  31983. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  31984. "\x00\x00\x00\x00\x00\x00\x00\x00",
  31985. .input = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86"
  31986. "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f"
  31987. "\xb5\x37\x06\xff\xbd\xd4\x91\x70"
  31988. "\x80\x1f\xb2\x39\x10\x89\x44\xf5",
  31989. .ilen = 32,
  31990. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  31991. "\x44\x44\x44\x44\x44\x44\x44\x44"
  31992. "\x44\x44\x44\x44\x44\x44\x44\x44"
  31993. "\x44\x44\x44\x44\x44\x44\x44\x44",
  31994. .rlen = 32,
  31995. }, {
  31996. .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
  31997. "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
  31998. "\x22\x22\x22\x22\x22\x22\x22\x22"
  31999. "\x22\x22\x22\x22\x22\x22\x22\x22",
  32000. .klen = 32,
  32001. .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
  32002. "\x00\x00\x00\x00\x00\x00\x00\x00",
  32003. .input = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e"
  32004. "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7"
  32005. "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a"
  32006. "\x35\x3c\x6b\xb5\x61\x1c\x79\x38",
  32007. .ilen = 32,
  32008. .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
  32009. "\x44\x44\x44\x44\x44\x44\x44\x44"
  32010. "\x44\x44\x44\x44\x44\x44\x44\x44"
  32011. "\x44\x44\x44\x44\x44\x44\x44\x44",
  32012. .rlen = 32,
  32013. }, {
  32014. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  32015. "\x23\x53\x60\x28\x74\x71\x35\x26"
  32016. "\x31\x41\x59\x26\x53\x58\x97\x93"
  32017. "\x23\x84\x62\x64\x33\x83\x27\x95",
  32018. .klen = 32,
  32019. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  32020. "\x00\x00\x00\x00\x00\x00\x00\x00",
  32021. .input = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33"
  32022. "\x60\xc3\xe9\x47\x90\xb7\x50\x57"
  32023. "\xa3\xad\x81\x2f\xf5\x22\x96\x02"
  32024. "\xaa\x7f\xea\xac\x29\x78\xca\x2a"
  32025. "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73"
  32026. "\x09\x66\xad\x72\x0e\x4d\x5d\x77"
  32027. "\xbc\xb8\x76\x80\x37\x59\xa9\x01"
  32028. "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d"
  32029. "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01"
  32030. "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8"
  32031. "\x08\xda\x76\x00\x65\xcf\x7b\x31"
  32032. "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e"
  32033. "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5"
  32034. "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04"
  32035. "\xfb\x54\xdd\x29\x27\xc2\x65\x17"
  32036. "\x36\x88\xb0\x85\x8d\x73\x7e\x4b"
  32037. "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4"
  32038. "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f"
  32039. "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3"
  32040. "\x6c\xee\xac\xdc\x45\x58\xca\x5b"
  32041. "\x70\x0e\x6a\x12\x86\x82\x79\x9f"
  32042. "\x16\xd4\x9d\x67\xcd\x70\x65\x26"
  32043. "\x21\x72\x1e\xa1\x94\x8a\x83\x0c"
  32044. "\x92\x42\x58\x5e\xa2\xc5\x31\xf3"
  32045. "\x7b\xd1\x31\xd4\x15\x80\x31\x61"
  32046. "\x5c\x53\x10\xdd\xea\xc8\x83\x5c"
  32047. "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05"
  32048. "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5"
  32049. "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9"
  32050. "\x16\x31\xb2\x47\x91\x67\xaa\x28"
  32051. "\x2c\x29\x85\xa3\xf7\xf2\x24\x93"
  32052. "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc"
  32053. "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec"
  32054. "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e"
  32055. "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66"
  32056. "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7"
  32057. "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d"
  32058. "\xf8\x89\xcd\x20\x27\x84\x5d\x5c"
  32059. "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3"
  32060. "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7"
  32061. "\x3f\x43\xcc\x86\x71\x34\x6a\xd9"
  32062. "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe"
  32063. "\x18\x41\xdc\x9e\x2e\x75\x20\x3e"
  32064. "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c"
  32065. "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71"
  32066. "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e"
  32067. "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9"
  32068. "\x34\xb8\x27\x74\x08\xda\xf2\x4a"
  32069. "\x23\x5b\x9f\x55\x3a\x57\x82\x52"
  32070. "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc"
  32071. "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49"
  32072. "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2"
  32073. "\x96\x0b\x35\x84\x05\x0d\xd6\x2a"
  32074. "\xea\x5a\xbf\x69\xde\xee\x4f\x8f"
  32075. "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8"
  32076. "\x96\xef\x0f\x0e\xec\xc7\xa6\x74"
  32077. "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15"
  32078. "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1"
  32079. "\x5b\xb6\x71\xda\xb0\x0c\xba\x26"
  32080. "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d"
  32081. "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33"
  32082. "\xcc\x06\xdb\xe7\x82\x29\x63\xd1"
  32083. "\x52\x84\x4f\xee\x27\xe8\x02\xd4"
  32084. "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a",
  32085. .ilen = 512,
  32086. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  32087. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  32088. "\x10\x11\x12\x13\x14\x15\x16\x17"
  32089. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  32090. "\x20\x21\x22\x23\x24\x25\x26\x27"
  32091. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  32092. "\x30\x31\x32\x33\x34\x35\x36\x37"
  32093. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  32094. "\x40\x41\x42\x43\x44\x45\x46\x47"
  32095. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  32096. "\x50\x51\x52\x53\x54\x55\x56\x57"
  32097. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  32098. "\x60\x61\x62\x63\x64\x65\x66\x67"
  32099. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  32100. "\x70\x71\x72\x73\x74\x75\x76\x77"
  32101. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  32102. "\x80\x81\x82\x83\x84\x85\x86\x87"
  32103. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  32104. "\x90\x91\x92\x93\x94\x95\x96\x97"
  32105. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  32106. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  32107. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  32108. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  32109. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  32110. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  32111. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  32112. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  32113. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  32114. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  32115. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  32116. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  32117. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  32118. "\x00\x01\x02\x03\x04\x05\x06\x07"
  32119. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  32120. "\x10\x11\x12\x13\x14\x15\x16\x17"
  32121. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  32122. "\x20\x21\x22\x23\x24\x25\x26\x27"
  32123. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  32124. "\x30\x31\x32\x33\x34\x35\x36\x37"
  32125. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  32126. "\x40\x41\x42\x43\x44\x45\x46\x47"
  32127. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  32128. "\x50\x51\x52\x53\x54\x55\x56\x57"
  32129. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  32130. "\x60\x61\x62\x63\x64\x65\x66\x67"
  32131. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  32132. "\x70\x71\x72\x73\x74\x75\x76\x77"
  32133. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  32134. "\x80\x81\x82\x83\x84\x85\x86\x87"
  32135. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  32136. "\x90\x91\x92\x93\x94\x95\x96\x97"
  32137. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  32138. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  32139. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  32140. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  32141. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  32142. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  32143. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  32144. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  32145. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  32146. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  32147. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  32148. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  32149. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  32150. .rlen = 512,
  32151. }, {
  32152. .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
  32153. "\x23\x53\x60\x28\x74\x71\x35\x26"
  32154. "\x62\x49\x77\x57\x24\x70\x93\x69"
  32155. "\x99\x59\x57\x49\x66\x96\x76\x27"
  32156. "\x31\x41\x59\x26\x53\x58\x97\x93"
  32157. "\x23\x84\x62\x64\x33\x83\x27\x95"
  32158. "\x02\x88\x41\x97\x16\x93\x99\x37"
  32159. "\x51\x05\x82\x09\x74\x94\x45\x92",
  32160. .klen = 64,
  32161. .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
  32162. "\x00\x00\x00\x00\x00\x00\x00\x00",
  32163. .input = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28"
  32164. "\x9a\x7f\x6e\x57\x55\xb8\x07\x88"
  32165. "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b"
  32166. "\xf1\x74\xac\x96\x05\x7b\x32\xca"
  32167. "\xd1\x4e\xf1\x58\x29\x16\x24\x6c"
  32168. "\xf2\xb3\xe4\x88\x84\xac\x4d\xee"
  32169. "\x97\x07\x82\xf0\x07\x12\x38\x0a"
  32170. "\x67\x62\xaf\xfd\x85\x9f\x0a\x55"
  32171. "\xa5\x20\xc5\x60\xe4\x68\x53\xa4"
  32172. "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c"
  32173. "\x1c\x01\x4f\x55\xa9\x13\xeb\x25"
  32174. "\x21\x87\xbc\xd3\xe7\x67\x4f\x38"
  32175. "\xa8\x14\x25\x71\xe9\x2e\x4c\x21"
  32176. "\x41\x82\x0c\x45\x39\x35\xa8\x75"
  32177. "\x03\x29\x01\x84\x8c\xab\x48\xbe"
  32178. "\x11\x56\x22\x67\xb7\x67\x1a\x09"
  32179. "\xa1\x72\x25\x41\x3c\x39\x65\x80"
  32180. "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d"
  32181. "\xdd\x16\x8b\x63\x70\x4e\xc5\x17"
  32182. "\x21\xe0\x84\x51\x4b\x6f\x05\x52"
  32183. "\xe3\x63\x34\xfa\xa4\xaf\x33\x20"
  32184. "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76"
  32185. "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b"
  32186. "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0"
  32187. "\xb8\x8a\x13\x88\x71\xf4\x11\xa5"
  32188. "\xe9\xa9\x10\x33\xe0\xbe\x49\x89"
  32189. "\x41\x22\xf5\x9d\x80\x3e\x3b\x76"
  32190. "\x01\x16\x50\x6e\x7c\x6a\x81\xe9"
  32191. "\x13\x2c\xde\xb2\x5f\x79\xba\xb2"
  32192. "\xb1\x75\xae\xd2\x07\x98\x4b\x69"
  32193. "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98"
  32194. "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a"
  32195. "\x0d\x23\xb1\x79\x25\x13\x4b\xe5"
  32196. "\xaf\x93\x20\x5c\x7f\x06\x7a\x34"
  32197. "\x0b\x78\xe3\x67\x26\xe0\xad\x95"
  32198. "\xc5\x4e\x26\x22\xcf\x73\x77\x62"
  32199. "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9"
  32200. "\xef\x38\x52\x18\x0e\x29\x7e\xef"
  32201. "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2"
  32202. "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d"
  32203. "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe"
  32204. "\x96\xcd\x41\x10\x78\x4e\x0c\xc9"
  32205. "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab"
  32206. "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa"
  32207. "\x9d\x70\xbe\x4c\xa8\x98\x89\x01"
  32208. "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa"
  32209. "\x89\xf5\x14\x79\x18\x8f\x3b\x0d"
  32210. "\x21\x17\xf8\x59\x15\x24\x64\x22"
  32211. "\x57\x48\x80\xd5\x3d\x92\x30\x07"
  32212. "\xd9\xa1\x4a\x23\x16\x43\x48\x0e"
  32213. "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa"
  32214. "\x49\xbc\x7e\x68\x6e\xa8\x46\x95"
  32215. "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d"
  32216. "\x6b\x84\xf3\x00\xba\x52\x05\x02"
  32217. "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3"
  32218. "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d"
  32219. "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0"
  32220. "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66"
  32221. "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89"
  32222. "\xf5\x21\x0f\x02\x48\x83\x74\xbf"
  32223. "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b"
  32224. "\xb1\x02\x0a\x5c\x79\x19\x3b\x75"
  32225. "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e"
  32226. "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95",
  32227. .ilen = 512,
  32228. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  32229. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  32230. "\x10\x11\x12\x13\x14\x15\x16\x17"
  32231. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  32232. "\x20\x21\x22\x23\x24\x25\x26\x27"
  32233. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  32234. "\x30\x31\x32\x33\x34\x35\x36\x37"
  32235. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  32236. "\x40\x41\x42\x43\x44\x45\x46\x47"
  32237. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  32238. "\x50\x51\x52\x53\x54\x55\x56\x57"
  32239. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  32240. "\x60\x61\x62\x63\x64\x65\x66\x67"
  32241. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  32242. "\x70\x71\x72\x73\x74\x75\x76\x77"
  32243. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  32244. "\x80\x81\x82\x83\x84\x85\x86\x87"
  32245. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  32246. "\x90\x91\x92\x93\x94\x95\x96\x97"
  32247. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  32248. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  32249. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  32250. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  32251. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  32252. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  32253. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  32254. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  32255. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  32256. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  32257. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  32258. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  32259. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  32260. "\x00\x01\x02\x03\x04\x05\x06\x07"
  32261. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  32262. "\x10\x11\x12\x13\x14\x15\x16\x17"
  32263. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  32264. "\x20\x21\x22\x23\x24\x25\x26\x27"
  32265. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  32266. "\x30\x31\x32\x33\x34\x35\x36\x37"
  32267. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  32268. "\x40\x41\x42\x43\x44\x45\x46\x47"
  32269. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  32270. "\x50\x51\x52\x53\x54\x55\x56\x57"
  32271. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  32272. "\x60\x61\x62\x63\x64\x65\x66\x67"
  32273. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  32274. "\x70\x71\x72\x73\x74\x75\x76\x77"
  32275. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  32276. "\x80\x81\x82\x83\x84\x85\x86\x87"
  32277. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  32278. "\x90\x91\x92\x93\x94\x95\x96\x97"
  32279. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  32280. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  32281. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  32282. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  32283. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  32284. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  32285. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  32286. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  32287. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  32288. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  32289. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  32290. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  32291. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
  32292. .rlen = 512,
  32293. .also_non_np = 1,
  32294. .np = 3,
  32295. .tap = { 512 - 20, 4, 16 },
  32296. },
  32297. };
  32298. /*
  32299. * SEED test vectors
  32300. */
  32301. #define SEED_ENC_TEST_VECTORS 4
  32302. #define SEED_DEC_TEST_VECTORS 4
  32303. static struct cipher_testvec seed_enc_tv_template[] = {
  32304. {
  32305. .key = zeroed_string,
  32306. .klen = 16,
  32307. .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
  32308. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  32309. .ilen = 16,
  32310. .result = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
  32311. "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
  32312. .rlen = 16,
  32313. }, {
  32314. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  32315. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  32316. .klen = 16,
  32317. .input = zeroed_string,
  32318. .ilen = 16,
  32319. .result = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
  32320. "\x84\x48\x35\x97\xe4\x37\x0f\x43",
  32321. .rlen = 16,
  32322. }, {
  32323. .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
  32324. "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
  32325. .klen = 16,
  32326. .input = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
  32327. "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
  32328. .ilen = 16,
  32329. .result = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
  32330. "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
  32331. .rlen = 16,
  32332. }, {
  32333. .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
  32334. "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
  32335. .klen = 16,
  32336. .input = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
  32337. "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
  32338. .ilen = 16,
  32339. .result = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
  32340. "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
  32341. .rlen = 16,
  32342. }
  32343. };
  32344. static struct cipher_testvec seed_dec_tv_template[] = {
  32345. {
  32346. .key = zeroed_string,
  32347. .klen = 16,
  32348. .input = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
  32349. "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
  32350. .ilen = 16,
  32351. .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
  32352. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  32353. .rlen = 16,
  32354. }, {
  32355. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  32356. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
  32357. .klen = 16,
  32358. .input = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
  32359. "\x84\x48\x35\x97\xe4\x37\x0f\x43",
  32360. .ilen = 16,
  32361. .result = zeroed_string,
  32362. .rlen = 16,
  32363. }, {
  32364. .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
  32365. "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
  32366. .klen = 16,
  32367. .input = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
  32368. "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
  32369. .ilen = 16,
  32370. .result = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
  32371. "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
  32372. .rlen = 16,
  32373. }, {
  32374. .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
  32375. "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
  32376. .klen = 16,
  32377. .input = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
  32378. "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
  32379. .ilen = 16,
  32380. .result = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
  32381. "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
  32382. .rlen = 16,
  32383. }
  32384. };
  32385. #define SALSA20_STREAM_ENC_TEST_VECTORS 5
  32386. static struct cipher_testvec salsa20_stream_enc_tv_template[] = {
  32387. /*
  32388. * Testvectors from verified.test-vectors submitted to ECRYPT.
  32389. * They are truncated to size 39, 64, 111, 129 to test a variety
  32390. * of input length.
  32391. */
  32392. { /* Set 3, vector 0 */
  32393. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  32394. "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
  32395. .klen = 16,
  32396. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  32397. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  32398. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32399. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32400. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32401. "\x00\x00\x00\x00\x00\x00\x00",
  32402. .ilen = 39,
  32403. .result = "\x2D\xD5\xC3\xF7\xBA\x2B\x20\xF7"
  32404. "\x68\x02\x41\x0C\x68\x86\x88\x89"
  32405. "\x5A\xD8\xC1\xBD\x4E\xA6\xC9\xB1"
  32406. "\x40\xFB\x9B\x90\xE2\x10\x49\xBF"
  32407. "\x58\x3F\x52\x79\x70\xEB\xC1",
  32408. .rlen = 39,
  32409. }, { /* Set 5, vector 0 */
  32410. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  32411. "\x00\x00\x00\x00\x00\x00\x00\x00",
  32412. .klen = 16,
  32413. .iv = "\x80\x00\x00\x00\x00\x00\x00\x00",
  32414. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  32415. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32416. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32417. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32418. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32419. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32420. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32421. "\x00\x00\x00\x00\x00\x00\x00\x00",
  32422. .ilen = 64,
  32423. .result = "\xB6\x6C\x1E\x44\x46\xDD\x95\x57"
  32424. "\xE5\x78\xE2\x23\xB0\xB7\x68\x01"
  32425. "\x7B\x23\xB2\x67\xBB\x02\x34\xAE"
  32426. "\x46\x26\xBF\x44\x3F\x21\x97\x76"
  32427. "\x43\x6F\xB1\x9F\xD0\xE8\x86\x6F"
  32428. "\xCD\x0D\xE9\xA9\x53\x8F\x4A\x09"
  32429. "\xCA\x9A\xC0\x73\x2E\x30\xBC\xF9"
  32430. "\x8E\x4F\x13\xE4\xB9\xE2\x01\xD9",
  32431. .rlen = 64,
  32432. }, { /* Set 3, vector 27 */
  32433. .key = "\x1B\x1C\x1D\x1E\x1F\x20\x21\x22"
  32434. "\x23\x24\x25\x26\x27\x28\x29\x2A"
  32435. "\x2B\x2C\x2D\x2E\x2F\x30\x31\x32"
  32436. "\x33\x34\x35\x36\x37\x38\x39\x3A",
  32437. .klen = 32,
  32438. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
  32439. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  32440. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32441. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32442. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32443. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32444. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32445. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32446. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32447. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32448. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32449. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32450. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32451. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32452. "\x00\x00\x00\x00\x00\x00\x00",
  32453. .ilen = 111,
  32454. .result = "\xAE\x39\x50\x8E\xAC\x9A\xEC\xE7"
  32455. "\xBF\x97\xBB\x20\xB9\xDE\xE4\x1F"
  32456. "\x87\xD9\x47\xF8\x28\x91\x35\x98"
  32457. "\xDB\x72\xCC\x23\x29\x48\x56\x5E"
  32458. "\x83\x7E\x0B\xF3\x7D\x5D\x38\x7B"
  32459. "\x2D\x71\x02\xB4\x3B\xB5\xD8\x23"
  32460. "\xB0\x4A\xDF\x3C\xEC\xB6\xD9\x3B"
  32461. "\x9B\xA7\x52\xBE\xC5\xD4\x50\x59"
  32462. "\x15\x14\xB4\x0E\x40\xE6\x53\xD1"
  32463. "\x83\x9C\x5B\xA0\x92\x29\x6B\x5E"
  32464. "\x96\x5B\x1E\x2F\xD3\xAC\xC1\x92"
  32465. "\xB1\x41\x3F\x19\x2F\xC4\x3B\xC6"
  32466. "\x95\x46\x45\x54\xE9\x75\x03\x08"
  32467. "\x44\xAF\xE5\x8A\x81\x12\x09",
  32468. .rlen = 111,
  32469. }, { /* Set 5, vector 27 */
  32470. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  32471. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32472. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32473. "\x00\x00\x00\x00\x00\x00\x00\x00",
  32474. .klen = 32,
  32475. .iv = "\x00\x00\x00\x10\x00\x00\x00\x00",
  32476. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  32477. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32478. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32479. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32480. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32481. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32482. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32483. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32484. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32485. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32486. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32487. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32488. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32489. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32490. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32491. "\x00\x00\x00\x00\x00\x00\x00\x00"
  32492. "\x00",
  32493. .ilen = 129,
  32494. .result = "\xD2\xDB\x1A\x5C\xF1\xC1\xAC\xDB"
  32495. "\xE8\x1A\x7A\x43\x40\xEF\x53\x43"
  32496. "\x5E\x7F\x4B\x1A\x50\x52\x3F\x8D"
  32497. "\x28\x3D\xCF\x85\x1D\x69\x6E\x60"
  32498. "\xF2\xDE\x74\x56\x18\x1B\x84\x10"
  32499. "\xD4\x62\xBA\x60\x50\xF0\x61\xF2"
  32500. "\x1C\x78\x7F\xC1\x24\x34\xAF\x58"
  32501. "\xBF\x2C\x59\xCA\x90\x77\xF3\xB0"
  32502. "\x5B\x4A\xDF\x89\xCE\x2C\x2F\xFC"
  32503. "\x67\xF0\xE3\x45\xE8\xB3\xB3\x75"
  32504. "\xA0\x95\x71\xA1\x29\x39\x94\xCA"
  32505. "\x45\x2F\xBD\xCB\x10\xB6\xBE\x9F"
  32506. "\x8E\xF9\xB2\x01\x0A\x5A\x0A\xB7"
  32507. "\x6B\x9D\x70\x8E\x4B\xD6\x2F\xCD"
  32508. "\x2E\x40\x48\x75\xE9\xE2\x21\x45"
  32509. "\x0B\xC9\xB6\xB5\x66\xBC\x9A\x59"
  32510. "\x5A",
  32511. .rlen = 129,
  32512. }, { /* large test vector generated using Crypto++ */
  32513. .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
  32514. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  32515. "\x10\x11\x12\x13\x14\x15\x16\x17"
  32516. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
  32517. .klen = 32,
  32518. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  32519. "\x00\x00\x00\x00\x00\x00\x00\x00",
  32520. .input =
  32521. "\x00\x01\x02\x03\x04\x05\x06\x07"
  32522. "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
  32523. "\x10\x11\x12\x13\x14\x15\x16\x17"
  32524. "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
  32525. "\x20\x21\x22\x23\x24\x25\x26\x27"
  32526. "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
  32527. "\x30\x31\x32\x33\x34\x35\x36\x37"
  32528. "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
  32529. "\x40\x41\x42\x43\x44\x45\x46\x47"
  32530. "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
  32531. "\x50\x51\x52\x53\x54\x55\x56\x57"
  32532. "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
  32533. "\x60\x61\x62\x63\x64\x65\x66\x67"
  32534. "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
  32535. "\x70\x71\x72\x73\x74\x75\x76\x77"
  32536. "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
  32537. "\x80\x81\x82\x83\x84\x85\x86\x87"
  32538. "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
  32539. "\x90\x91\x92\x93\x94\x95\x96\x97"
  32540. "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
  32541. "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
  32542. "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
  32543. "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
  32544. "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
  32545. "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
  32546. "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
  32547. "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
  32548. "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
  32549. "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
  32550. "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
  32551. "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
  32552. "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
  32553. "\x00\x03\x06\x09\x0c\x0f\x12\x15"
  32554. "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
  32555. "\x30\x33\x36\x39\x3c\x3f\x42\x45"
  32556. "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
  32557. "\x60\x63\x66\x69\x6c\x6f\x72\x75"
  32558. "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
  32559. "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
  32560. "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
  32561. "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
  32562. "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
  32563. "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
  32564. "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
  32565. "\x20\x23\x26\x29\x2c\x2f\x32\x35"
  32566. "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
  32567. "\x50\x53\x56\x59\x5c\x5f\x62\x65"
  32568. "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
  32569. "\x80\x83\x86\x89\x8c\x8f\x92\x95"
  32570. "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
  32571. "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
  32572. "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
  32573. "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
  32574. "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
  32575. "\x10\x13\x16\x19\x1c\x1f\x22\x25"
  32576. "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
  32577. "\x40\x43\x46\x49\x4c\x4f\x52\x55"
  32578. "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
  32579. "\x70\x73\x76\x79\x7c\x7f\x82\x85"
  32580. "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
  32581. "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
  32582. "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
  32583. "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
  32584. "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
  32585. "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
  32586. "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
  32587. "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
  32588. "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
  32589. "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
  32590. "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
  32591. "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
  32592. "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
  32593. "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
  32594. "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
  32595. "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
  32596. "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
  32597. "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
  32598. "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
  32599. "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
  32600. "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
  32601. "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
  32602. "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
  32603. "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
  32604. "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
  32605. "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
  32606. "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
  32607. "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
  32608. "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
  32609. "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
  32610. "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
  32611. "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
  32612. "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
  32613. "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
  32614. "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
  32615. "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
  32616. "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
  32617. "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
  32618. "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
  32619. "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
  32620. "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
  32621. "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
  32622. "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
  32623. "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
  32624. "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
  32625. "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
  32626. "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
  32627. "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
  32628. "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
  32629. "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
  32630. "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
  32631. "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
  32632. "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
  32633. "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
  32634. "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
  32635. "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
  32636. "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
  32637. "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
  32638. "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
  32639. "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
  32640. "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
  32641. "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
  32642. "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
  32643. "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
  32644. "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
  32645. "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
  32646. "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
  32647. "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
  32648. "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
  32649. "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
  32650. "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
  32651. "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
  32652. "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
  32653. "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
  32654. "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
  32655. "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
  32656. "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
  32657. "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
  32658. "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
  32659. "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
  32660. "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
  32661. "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
  32662. "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
  32663. "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
  32664. "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
  32665. "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
  32666. "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
  32667. "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
  32668. "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
  32669. "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
  32670. "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
  32671. "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
  32672. "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
  32673. "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
  32674. "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
  32675. "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
  32676. "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
  32677. "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
  32678. "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
  32679. "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
  32680. "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
  32681. "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
  32682. "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
  32683. "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
  32684. "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
  32685. "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
  32686. "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
  32687. "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
  32688. "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
  32689. "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
  32690. "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
  32691. "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
  32692. "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
  32693. "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
  32694. "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
  32695. "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
  32696. "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
  32697. "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
  32698. "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
  32699. "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
  32700. "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
  32701. "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
  32702. "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
  32703. "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
  32704. "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
  32705. "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
  32706. "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
  32707. "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
  32708. "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
  32709. "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
  32710. "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
  32711. "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
  32712. "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
  32713. "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
  32714. "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
  32715. "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
  32716. "\x38\x45\x52\x5f\x6c\x79\x86\x93"
  32717. "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
  32718. "\x08\x15\x22\x2f\x3c\x49\x56\x63"
  32719. "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
  32720. "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
  32721. "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
  32722. "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
  32723. "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
  32724. "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
  32725. "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
  32726. "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
  32727. "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
  32728. "\x18\x25\x32\x3f\x4c\x59\x66\x73"
  32729. "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
  32730. "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
  32731. "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
  32732. "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
  32733. "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
  32734. "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
  32735. "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
  32736. "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
  32737. "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
  32738. "\x28\x35\x42\x4f\x5c\x69\x76\x83"
  32739. "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
  32740. "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
  32741. "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
  32742. "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
  32743. "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
  32744. "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
  32745. "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
  32746. "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
  32747. "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
  32748. "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
  32749. "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
  32750. "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
  32751. "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
  32752. "\x48\x57\x66\x75\x84\x93\xa2\xb1"
  32753. "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
  32754. "\x38\x47\x56\x65\x74\x83\x92\xa1"
  32755. "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
  32756. "\x28\x37\x46\x55\x64\x73\x82\x91"
  32757. "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
  32758. "\x18\x27\x36\x45\x54\x63\x72\x81"
  32759. "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
  32760. "\x08\x17\x26\x35\x44\x53\x62\x71"
  32761. "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
  32762. "\xf8\x07\x16\x25\x34\x43\x52\x61"
  32763. "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
  32764. "\xe8\xf7\x06\x15\x24\x33\x42\x51"
  32765. "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
  32766. "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
  32767. "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
  32768. "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
  32769. "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
  32770. "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
  32771. "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
  32772. "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
  32773. "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
  32774. "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
  32775. "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
  32776. "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
  32777. "\x00\x11\x22\x33\x44\x55\x66\x77"
  32778. "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
  32779. "\x10\x21\x32\x43\x54\x65\x76\x87"
  32780. "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
  32781. "\x20\x31\x42\x53\x64\x75\x86\x97"
  32782. "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
  32783. "\x30\x41\x52\x63\x74\x85\x96\xa7"
  32784. "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
  32785. "\x40\x51\x62\x73\x84\x95\xa6\xb7"
  32786. "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
  32787. "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
  32788. "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
  32789. "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
  32790. "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
  32791. "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
  32792. "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
  32793. "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
  32794. "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
  32795. "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
  32796. "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
  32797. "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
  32798. "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
  32799. "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
  32800. "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
  32801. "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
  32802. "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
  32803. "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
  32804. "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
  32805. "\xe0\xf1\x02\x13\x24\x35\x46\x57"
  32806. "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
  32807. "\xf0\x01\x12\x23\x34\x45\x56\x67"
  32808. "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
  32809. "\x00\x13\x26\x39\x4c\x5f\x72\x85"
  32810. "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
  32811. "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
  32812. "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
  32813. "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
  32814. "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
  32815. "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
  32816. "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
  32817. "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
  32818. "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
  32819. "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
  32820. "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
  32821. "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
  32822. "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
  32823. "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
  32824. "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
  32825. "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
  32826. "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
  32827. "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
  32828. "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
  32829. "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
  32830. "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
  32831. "\x10\x23\x36\x49\x5c\x6f\x82\x95"
  32832. "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
  32833. "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
  32834. "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
  32835. "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
  32836. "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
  32837. "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
  32838. "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
  32839. "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
  32840. "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
  32841. "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
  32842. "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
  32843. "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
  32844. "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
  32845. "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
  32846. "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
  32847. "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
  32848. "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
  32849. "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
  32850. "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
  32851. "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
  32852. "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
  32853. "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
  32854. "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
  32855. "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
  32856. "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
  32857. "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
  32858. "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
  32859. "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
  32860. "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
  32861. "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
  32862. "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
  32863. "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
  32864. "\x18\x2d\x42\x57\x6c\x81\x96\xab"
  32865. "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
  32866. "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
  32867. "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
  32868. "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
  32869. "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
  32870. "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
  32871. "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
  32872. "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
  32873. "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
  32874. "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
  32875. "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
  32876. "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
  32877. "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
  32878. "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
  32879. "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
  32880. "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
  32881. "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
  32882. "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
  32883. "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
  32884. "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
  32885. "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
  32886. "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
  32887. "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
  32888. "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
  32889. "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
  32890. "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
  32891. "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
  32892. "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
  32893. "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
  32894. "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
  32895. "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
  32896. "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
  32897. "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
  32898. "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
  32899. "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
  32900. "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
  32901. "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
  32902. "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
  32903. "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
  32904. "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
  32905. "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
  32906. "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
  32907. "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
  32908. "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
  32909. "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
  32910. "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
  32911. "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
  32912. "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
  32913. "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
  32914. "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
  32915. "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
  32916. "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
  32917. "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
  32918. "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
  32919. "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
  32920. "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
  32921. "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
  32922. "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
  32923. "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
  32924. "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
  32925. "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
  32926. "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
  32927. "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
  32928. "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
  32929. "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
  32930. "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
  32931. "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
  32932. "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
  32933. "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
  32934. "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
  32935. "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
  32936. "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
  32937. "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
  32938. "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
  32939. "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
  32940. "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
  32941. "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
  32942. "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
  32943. "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
  32944. "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
  32945. "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
  32946. "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
  32947. "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
  32948. "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
  32949. "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
  32950. "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
  32951. "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
  32952. "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
  32953. "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
  32954. "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
  32955. "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
  32956. "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
  32957. "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
  32958. "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
  32959. "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
  32960. "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
  32961. "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
  32962. "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
  32963. "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
  32964. "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
  32965. "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
  32966. "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
  32967. "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
  32968. "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
  32969. "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
  32970. "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
  32971. "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
  32972. "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
  32973. "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
  32974. "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
  32975. "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
  32976. "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
  32977. "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
  32978. "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
  32979. "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
  32980. "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
  32981. "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
  32982. "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
  32983. "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
  32984. "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
  32985. "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
  32986. "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
  32987. "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
  32988. "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
  32989. "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
  32990. "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
  32991. "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
  32992. "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
  32993. "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
  32994. "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
  32995. "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
  32996. "\x78\x95\xb2\xcf\xec\x09\x26\x43"
  32997. "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
  32998. "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
  32999. "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
  33000. "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
  33001. "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
  33002. "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
  33003. "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
  33004. "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
  33005. "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
  33006. "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
  33007. "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
  33008. "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
  33009. "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
  33010. "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
  33011. "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
  33012. "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
  33013. "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
  33014. "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
  33015. "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
  33016. "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
  33017. "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
  33018. "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
  33019. "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
  33020. "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
  33021. "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
  33022. "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
  33023. "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
  33024. "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
  33025. "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
  33026. "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
  33027. "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
  33028. "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
  33029. "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
  33030. "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
  33031. "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
  33032. "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
  33033. "\x00\x21\x42\x63",
  33034. .ilen = 4100,
  33035. .result =
  33036. "\xb5\x81\xf5\x64\x18\x73\xe3\xf0"
  33037. "\x4c\x13\xf2\x77\x18\x60\x65\x5e"
  33038. "\x29\x01\xce\x98\x55\x53\xf9\x0c"
  33039. "\x2a\x08\xd5\x09\xb3\x57\x55\x56"
  33040. "\xc5\xe9\x56\x90\xcb\x6a\xa3\xc0"
  33041. "\xff\xc4\x79\xb4\xd2\x97\x5d\xc4"
  33042. "\x43\xd1\xfe\x94\x7b\x88\x06\x5a"
  33043. "\xb2\x9e\x2c\xfc\x44\x03\xb7\x90"
  33044. "\xa0\xc1\xba\x6a\x33\xb8\xc7\xb2"
  33045. "\x9d\xe1\x12\x4f\xc0\x64\xd4\x01"
  33046. "\xfe\x8c\x7a\x66\xf7\xe6\x5a\x91"
  33047. "\xbb\xde\x56\x86\xab\x65\x21\x30"
  33048. "\x00\x84\x65\x24\xa5\x7d\x85\xb4"
  33049. "\xe3\x17\xed\x3a\xb7\x6f\xb4\x0b"
  33050. "\x0b\xaf\x15\xae\x5a\x8f\xf2\x0c"
  33051. "\x2f\x27\xf4\x09\xd8\xd2\x96\xb7"
  33052. "\x71\xf2\xc5\x99\x4d\x7e\x7f\x75"
  33053. "\x77\x89\x30\x8b\x59\xdb\xa2\xb2"
  33054. "\xa0\xf3\x19\x39\x2b\xc5\x7e\x3f"
  33055. "\x4f\xd9\xd3\x56\x28\x97\x44\xdc"
  33056. "\xc0\x8b\x77\x24\xd9\x52\xe7\xc5"
  33057. "\xaf\xf6\x7d\x59\xb2\x44\x05\x1d"
  33058. "\xb1\xb0\x11\xa5\x0f\xec\x33\xe1"
  33059. "\x6d\x1b\x4e\x1f\xff\x57\x91\xb4"
  33060. "\x5b\x9a\x96\xc5\x53\xbc\xae\x20"
  33061. "\x3c\xbb\x14\xe2\xe8\x22\x33\xc1"
  33062. "\x5e\x76\x9e\x46\x99\xf6\x2a\x15"
  33063. "\xc6\x97\x02\xa0\x66\x43\xd1\xa6"
  33064. "\x31\xa6\x9f\xfb\xf4\xd3\x69\xe5"
  33065. "\xcd\x76\x95\xb8\x7a\x82\x7f\x21"
  33066. "\x45\xff\x3f\xce\x55\xf6\x95\x10"
  33067. "\x08\x77\x10\x43\xc6\xf3\x09\xe5"
  33068. "\x68\xe7\x3c\xad\x00\x52\x45\x0d"
  33069. "\xfe\x2d\xc6\xc2\x94\x8c\x12\x1d"
  33070. "\xe6\x25\xae\x98\x12\x8e\x19\x9c"
  33071. "\x81\x68\xb1\x11\xf6\x69\xda\xe3"
  33072. "\x62\x08\x18\x7a\x25\x49\x28\xac"
  33073. "\xba\x71\x12\x0b\xe4\xa2\xe5\xc7"
  33074. "\x5d\x8e\xec\x49\x40\x21\xbf\x5a"
  33075. "\x98\xf3\x02\x68\x55\x03\x7f\x8a"
  33076. "\xe5\x94\x0c\x32\x5c\x07\x82\x63"
  33077. "\xaf\x6f\x91\x40\x84\x8e\x52\x25"
  33078. "\xd0\xb0\x29\x53\x05\xe2\x50\x7a"
  33079. "\x34\xeb\xc9\x46\x20\xa8\x3d\xde"
  33080. "\x7f\x16\x5f\x36\xc5\x2e\xdc\xd1"
  33081. "\x15\x47\xc7\x50\x40\x6d\x91\xc5"
  33082. "\xe7\x93\x95\x1a\xd3\x57\xbc\x52"
  33083. "\x33\xee\x14\x19\x22\x52\x89\xa7"
  33084. "\x4a\x25\x56\x77\x4b\xca\xcf\x0a"
  33085. "\xe1\xf5\x35\x85\x30\x7e\x59\x4a"
  33086. "\xbd\x14\x5b\xdf\xe3\x46\xcb\xac"
  33087. "\x1f\x6c\x96\x0e\xf4\x81\xd1\x99"
  33088. "\xca\x88\x63\x3d\x02\x58\x6b\xa9"
  33089. "\xe5\x9f\xb3\x00\xb2\x54\xc6\x74"
  33090. "\x1c\xbf\x46\xab\x97\xcc\xf8\x54"
  33091. "\x04\x07\x08\x52\xe6\xc0\xda\x93"
  33092. "\x74\x7d\x93\x99\x5d\x78\x68\xa6"
  33093. "\x2e\x6b\xd3\x6a\x69\xcc\x12\x6b"
  33094. "\xd4\xc7\xa5\xc6\xe7\xf6\x03\x04"
  33095. "\x5d\xcd\x61\x5e\x17\x40\xdc\xd1"
  33096. "\x5c\xf5\x08\xdf\x5c\x90\x85\xa4"
  33097. "\xaf\xf6\x78\xbb\x0d\xf1\xf4\xa4"
  33098. "\x54\x26\x72\x9e\x61\xfa\x86\xcf"
  33099. "\xe8\x9e\xa1\xe0\xc7\x48\x23\xae"
  33100. "\x5a\x90\xae\x75\x0a\x74\x18\x89"
  33101. "\x05\xb1\x92\xb2\x7f\xd0\x1b\xa6"
  33102. "\x62\x07\x25\x01\xc7\xc2\x4f\xf9"
  33103. "\xe8\xfe\x63\x95\x80\x07\xb4\x26"
  33104. "\xcc\xd1\x26\xb6\xc4\x3f\x9e\xcb"
  33105. "\x8e\x3b\x2e\x44\x16\xd3\x10\x9a"
  33106. "\x95\x08\xeb\xc8\xcb\xeb\xbf\x6f"
  33107. "\x0b\xcd\x1f\xc8\xca\x86\xaa\xec"
  33108. "\x33\xe6\x69\xf4\x45\x25\x86\x3a"
  33109. "\x22\x94\x4f\x00\x23\x6a\x44\xc2"
  33110. "\x49\x97\x33\xab\x36\x14\x0a\x70"
  33111. "\x24\xc3\xbe\x04\x3b\x79\xa0\xf9"
  33112. "\xb8\xe7\x76\x29\x22\x83\xd7\xf2"
  33113. "\x94\xf4\x41\x49\xba\x5f\x7b\x07"
  33114. "\xb5\xfb\xdb\x03\x1a\x9f\xb6\x4c"
  33115. "\xc2\x2e\x37\x40\x49\xc3\x38\x16"
  33116. "\xe2\x4f\x77\x82\xb0\x68\x4c\x71"
  33117. "\x1d\x57\x61\x9c\xd9\x4e\x54\x99"
  33118. "\x47\x13\x28\x73\x3c\xbb\x00\x90"
  33119. "\xf3\x4d\xc9\x0e\xfd\xe7\xb1\x71"
  33120. "\xd3\x15\x79\xbf\xcc\x26\x2f\xbd"
  33121. "\xad\x6c\x50\x69\x6c\x3e\x6d\x80"
  33122. "\x9a\xea\x78\xaf\x19\xb2\x0d\x4d"
  33123. "\xad\x04\x07\xae\x22\x90\x4a\x93"
  33124. "\x32\x0e\x36\x9b\x1b\x46\xba\x3b"
  33125. "\xb4\xac\xc6\xd1\xa2\x31\x53\x3b"
  33126. "\x2a\x3d\x45\xfe\x03\x61\x10\x85"
  33127. "\x17\x69\xa6\x78\xcc\x6c\x87\x49"
  33128. "\x53\xf9\x80\x10\xde\x80\xa2\x41"
  33129. "\x6a\xc3\x32\x02\xad\x6d\x3c\x56"
  33130. "\x00\x71\x51\x06\xa7\xbd\xfb\xef"
  33131. "\x3c\xb5\x9f\xfc\x48\x7d\x53\x7c"
  33132. "\x66\xb0\x49\x23\xc4\x47\x10\x0e"
  33133. "\xe5\x6c\x74\x13\xe6\xc5\x3f\xaa"
  33134. "\xde\xff\x07\x44\xdd\x56\x1b\xad"
  33135. "\x09\x77\xfb\x5b\x12\xb8\x0d\x38"
  33136. "\x17\x37\x35\x7b\x9b\xbc\xfe\xd4"
  33137. "\x7e\x8b\xda\x7e\x5b\x04\xa7\x22"
  33138. "\xa7\x31\xa1\x20\x86\xc7\x1b\x99"
  33139. "\xdb\xd1\x89\xf4\x94\xa3\x53\x69"
  33140. "\x8d\xe7\xe8\x74\x11\x8d\x74\xd6"
  33141. "\x07\x37\x91\x9f\xfd\x67\x50\x3a"
  33142. "\xc9\xe1\xf4\x36\xd5\xa0\x47\xd1"
  33143. "\xf9\xe5\x39\xa3\x31\xac\x07\x36"
  33144. "\x23\xf8\x66\x18\x14\x28\x34\x0f"
  33145. "\xb8\xd0\xe7\x29\xb3\x04\x4b\x55"
  33146. "\x01\x41\xb2\x75\x8d\xcb\x96\x85"
  33147. "\x3a\xfb\xab\x2b\x9e\xfa\x58\x20"
  33148. "\x44\x1f\xc0\x14\x22\x75\x61\xe8"
  33149. "\xaa\x19\xcf\xf1\x82\x56\xf4\xd7"
  33150. "\x78\x7b\x3d\x5f\xb3\x9e\x0b\x8a"
  33151. "\x57\x50\xdb\x17\x41\x65\x4d\xa3"
  33152. "\x02\xc9\x9c\x9c\x53\xfb\x39\x39"
  33153. "\x9b\x1d\x72\x24\xda\xb7\x39\xbe"
  33154. "\x13\x3b\xfa\x29\xda\x9e\x54\x64"
  33155. "\x6e\xba\xd8\xa1\xcb\xb3\x36\xfa"
  33156. "\xcb\x47\x85\xe9\x61\x38\xbc\xbe"
  33157. "\xc5\x00\x38\x2a\x54\xf7\xc4\xb9"
  33158. "\xb3\xd3\x7b\xa0\xa0\xf8\x72\x7f"
  33159. "\x8c\x8e\x82\x0e\xc6\x1c\x75\x9d"
  33160. "\xca\x8e\x61\x87\xde\xad\x80\xd2"
  33161. "\xf5\xf9\x80\xef\x15\x75\xaf\xf5"
  33162. "\x80\xfb\xff\x6d\x1e\x25\xb7\x40"
  33163. "\x61\x6a\x39\x5a\x6a\xb5\x31\xab"
  33164. "\x97\x8a\x19\x89\x44\x40\xc0\xa6"
  33165. "\xb4\x4e\x30\x32\x7b\x13\xe7\x67"
  33166. "\xa9\x8b\x57\x04\xc2\x01\xa6\xf4"
  33167. "\x28\x99\xad\x2c\x76\xa3\x78\xc2"
  33168. "\x4a\xe6\xca\x5c\x50\x6a\xc1\xb0"
  33169. "\x62\x4b\x10\x8e\x7c\x17\x43\xb3"
  33170. "\x17\x66\x1c\x3e\x8d\x69\xf0\x5a"
  33171. "\x71\xf5\x97\xdc\xd1\x45\xdd\x28"
  33172. "\xf3\x5d\xdf\x53\x7b\x11\xe5\xbc"
  33173. "\x4c\xdb\x1b\x51\x6b\xe9\xfb\x3d"
  33174. "\xc1\xc3\x2c\xb9\x71\xf5\xb6\xb2"
  33175. "\x13\x36\x79\x80\x53\xe8\xd3\xa6"
  33176. "\x0a\xaf\xfd\x56\x97\xf7\x40\x8e"
  33177. "\x45\xce\xf8\xb0\x9e\x5c\x33\x82"
  33178. "\xb0\x44\x56\xfc\x05\x09\xe9\x2a"
  33179. "\xac\x26\x80\x14\x1d\xc8\x3a\x35"
  33180. "\x4c\x82\x97\xfd\x76\xb7\xa9\x0a"
  33181. "\x35\x58\x79\x8e\x0f\x66\xea\xaf"
  33182. "\x51\x6c\x09\xa9\x6e\x9b\xcb\x9a"
  33183. "\x31\x47\xa0\x2f\x7c\x71\xb4\x4a"
  33184. "\x11\xaa\x8c\x66\xc5\x64\xe6\x3a"
  33185. "\x54\xda\x24\x6a\xc4\x41\x65\x46"
  33186. "\x82\xa0\x0a\x0f\x5f\xfb\x25\xd0"
  33187. "\x2c\x91\xa7\xee\xc4\x81\x07\x86"
  33188. "\x75\x5e\x33\x69\x97\xe4\x2c\xa8"
  33189. "\x9d\x9f\x0b\x6a\xbe\xad\x98\xda"
  33190. "\x6d\x94\x41\xda\x2c\x1e\x89\xc4"
  33191. "\xc2\xaf\x1e\x00\x05\x0b\x83\x60"
  33192. "\xbd\x43\xea\x15\x23\x7f\xb9\xac"
  33193. "\xee\x4f\x2c\xaf\x2a\xf3\xdf\xd0"
  33194. "\xf3\x19\x31\xbb\x4a\x74\x84\x17"
  33195. "\x52\x32\x2c\x7d\x61\xe4\xcb\xeb"
  33196. "\x80\x38\x15\x52\xcb\x6f\xea\xe5"
  33197. "\x73\x9c\xd9\x24\x69\xc6\x95\x32"
  33198. "\x21\xc8\x11\xe4\xdc\x36\xd7\x93"
  33199. "\x38\x66\xfb\xb2\x7f\x3a\xb9\xaf"
  33200. "\x31\xdd\x93\x75\x78\x8a\x2c\x94"
  33201. "\x87\x1a\x58\xec\x9e\x7d\x4d\xba"
  33202. "\xe1\xe5\x4d\xfc\xbc\xa4\x2a\x14"
  33203. "\xef\xcc\xa7\xec\xab\x43\x09\x18"
  33204. "\xd3\xab\x68\xd1\x07\x99\x44\x47"
  33205. "\xd6\x83\x85\x3b\x30\xea\xa9\x6b"
  33206. "\x63\xea\xc4\x07\xfb\x43\x2f\xa4"
  33207. "\xaa\xb0\xab\x03\x89\xce\x3f\x8c"
  33208. "\x02\x7c\x86\x54\xbc\x88\xaf\x75"
  33209. "\xd2\xdc\x63\x17\xd3\x26\xf6\x96"
  33210. "\xa9\x3c\xf1\x61\x8c\x11\x18\xcc"
  33211. "\xd6\xea\x5b\xe2\xcd\xf0\xf1\xb2"
  33212. "\xe5\x35\x90\x1f\x85\x4c\x76\x5b"
  33213. "\x66\xce\x44\xa4\x32\x9f\xe6\x7b"
  33214. "\x71\x6e\x9f\x58\x15\x67\x72\x87"
  33215. "\x64\x8e\x3a\x44\x45\xd4\x76\xfa"
  33216. "\xc2\xf6\xef\x85\x05\x18\x7a\x9b"
  33217. "\xba\x41\x54\xac\xf0\xfc\x59\x12"
  33218. "\x3f\xdf\xa0\xe5\x8a\x65\xfd\x3a"
  33219. "\x62\x8d\x83\x2c\x03\xbe\x05\x76"
  33220. "\x2e\x53\x49\x97\x94\x33\xae\x40"
  33221. "\x81\x15\xdb\x6e\xad\xaa\xf5\x4b"
  33222. "\xe3\x98\x70\xdf\xe0\x7c\xcd\xdb"
  33223. "\x02\xd4\x7d\x2f\xc1\xe6\xb4\xf3"
  33224. "\xd7\x0d\x7a\xd9\x23\x9e\x87\x2d"
  33225. "\xce\x87\xad\xcc\x72\x05\x00\x29"
  33226. "\xdc\x73\x7f\x64\xc1\x15\x0e\xc2"
  33227. "\xdf\xa7\x5f\xeb\x41\xa1\xcd\xef"
  33228. "\x5c\x50\x79\x2a\x56\x56\x71\x8c"
  33229. "\xac\xc0\x79\x50\x69\xca\x59\x32"
  33230. "\x65\xf2\x54\xe4\x52\x38\x76\xd1"
  33231. "\x5e\xde\x26\x9e\xfb\x75\x2e\x11"
  33232. "\xb5\x10\xf4\x17\x73\xf5\x89\xc7"
  33233. "\x4f\x43\x5c\x8e\x7c\xb9\x05\x52"
  33234. "\x24\x40\x99\xfe\x9b\x85\x0b\x6c"
  33235. "\x22\x3e\x8b\xae\x86\xa1\xd2\x79"
  33236. "\x05\x68\x6b\xab\xe3\x41\x49\xed"
  33237. "\x15\xa1\x8d\x40\x2d\x61\xdf\x1a"
  33238. "\x59\xc9\x26\x8b\xef\x30\x4c\x88"
  33239. "\x4b\x10\xf8\x8d\xa6\x92\x9f\x4b"
  33240. "\xf3\xc4\x53\x0b\x89\x5d\x28\x92"
  33241. "\xcf\x78\xb2\xc0\x5d\xed\x7e\xfc"
  33242. "\xc0\x12\x23\x5f\x5a\x78\x86\x43"
  33243. "\x6e\x27\xf7\x5a\xa7\x6a\xed\x19"
  33244. "\x04\xf0\xb3\x12\xd1\xbd\x0e\x89"
  33245. "\x6e\xbc\x96\xa8\xd8\x49\x39\x9f"
  33246. "\x7e\x67\xf0\x2e\x3e\x01\xa9\xba"
  33247. "\xec\x8b\x62\x8e\xcb\x4a\x70\x43"
  33248. "\xc7\xc2\xc4\xca\x82\x03\x73\xe9"
  33249. "\x11\xdf\xcf\x54\xea\xc9\xb0\x95"
  33250. "\x51\xc0\x13\x3d\x92\x05\xfa\xf4"
  33251. "\xa9\x34\xc8\xce\x6c\x3d\x54\xcc"
  33252. "\xc4\xaf\xf1\xdc\x11\x44\x26\xa2"
  33253. "\xaf\xf1\x85\x75\x7d\x03\x61\x68"
  33254. "\x4e\x78\xc6\x92\x7d\x86\x7d\x77"
  33255. "\xdc\x71\x72\xdb\xc6\xae\xa1\xcb"
  33256. "\x70\x9a\x0b\x19\xbe\x4a\x6c\x2a"
  33257. "\xe2\xba\x6c\x64\x9a\x13\x28\xdf"
  33258. "\x85\x75\xe6\x43\xf6\x87\x08\x68"
  33259. "\x6e\xba\x6e\x79\x9f\x04\xbc\x23"
  33260. "\x50\xf6\x33\x5c\x1f\x24\x25\xbe"
  33261. "\x33\x47\x80\x45\x56\xa3\xa7\xd7"
  33262. "\x7a\xb1\x34\x0b\x90\x3c\x9c\xad"
  33263. "\x44\x5f\x9e\x0e\x9d\xd4\xbd\x93"
  33264. "\x5e\xfa\x3c\xe0\xb0\xd9\xed\xf3"
  33265. "\xd6\x2e\xff\x24\xd8\x71\x6c\xed"
  33266. "\xaf\x55\xeb\x22\xac\x93\x68\x32"
  33267. "\x05\x5b\x47\xdd\xc6\x4a\xcb\xc7"
  33268. "\x10\xe1\x3c\x92\x1a\xf3\x23\x78"
  33269. "\x2b\xa1\xd2\x80\xf4\x12\xb1\x20"
  33270. "\x8f\xff\x26\x35\xdd\xfb\xc7\x4e"
  33271. "\x78\xf1\x2d\x50\x12\x77\xa8\x60"
  33272. "\x7c\x0f\xf5\x16\x2f\x63\x70\x2a"
  33273. "\xc0\x96\x80\x4e\x0a\xb4\x93\x35"
  33274. "\x5d\x1d\x3f\x56\xf7\x2f\xbb\x90"
  33275. "\x11\x16\x8f\xa2\xec\x47\xbe\xac"
  33276. "\x56\x01\x26\x56\xb1\x8c\xb2\x10"
  33277. "\xf9\x1a\xca\xf5\xd1\xb7\x39\x20"
  33278. "\x63\xf1\x69\x20\x4f\x13\x12\x1f"
  33279. "\x5b\x65\xfc\x98\xf7\xc4\x7a\xbe"
  33280. "\xf7\x26\x4d\x2b\x84\x7b\x42\xad"
  33281. "\xd8\x7a\x0a\xb4\xd8\x74\xbf\xc1"
  33282. "\xf0\x6e\xb4\x29\xa3\xbb\xca\x46"
  33283. "\x67\x70\x6a\x2d\xce\x0e\xa2\x8a"
  33284. "\xa9\x87\xbf\x05\xc4\xc1\x04\xa3"
  33285. "\xab\xd4\x45\x43\x8c\xb6\x02\xb0"
  33286. "\x41\xc8\xfc\x44\x3d\x59\xaa\x2e"
  33287. "\x44\x21\x2a\x8d\x88\x9d\x57\xf4"
  33288. "\xa0\x02\x77\xb8\xa6\xa0\xe6\x75"
  33289. "\x5c\x82\x65\x3e\x03\x5c\x29\x8f"
  33290. "\x38\x55\xab\x33\x26\xef\x9f\x43"
  33291. "\x52\xfd\x68\xaf\x36\xb4\xbb\x9a"
  33292. "\x58\x09\x09\x1b\xc3\x65\x46\x46"
  33293. "\x1d\xa7\x94\x18\x23\x50\x2c\xca"
  33294. "\x2c\x55\x19\x97\x01\x9d\x93\x3b"
  33295. "\x63\x86\xf2\x03\x67\x45\xd2\x72"
  33296. "\x28\x52\x6c\xf4\xe3\x1c\xb5\x11"
  33297. "\x13\xf1\xeb\x21\xc7\xd9\x56\x82"
  33298. "\x2b\x82\x39\xbd\x69\x54\xed\x62"
  33299. "\xc3\xe2\xde\x73\xd4\x6a\x12\xae"
  33300. "\x13\x21\x7f\x4b\x5b\xfc\xbf\xe8"
  33301. "\x2b\xbe\x56\xba\x68\x8b\x9a\xb1"
  33302. "\x6e\xfa\xbf\x7e\x5a\x4b\xf1\xac"
  33303. "\x98\x65\x85\xd1\x93\x53\xd3\x7b"
  33304. "\x09\xdd\x4b\x10\x6d\x84\xb0\x13"
  33305. "\x65\xbd\xcf\x52\x09\xc4\x85\xe2"
  33306. "\x84\x74\x15\x65\xb7\xf7\x51\xaf"
  33307. "\x55\xad\xa4\xd1\x22\x54\x70\x94"
  33308. "\xa0\x1c\x90\x41\xfd\x99\xd7\x5a"
  33309. "\x31\xef\xaa\x25\xd0\x7f\x4f\xea"
  33310. "\x1d\x55\x42\xe5\x49\xb0\xd0\x46"
  33311. "\x62\x36\x43\xb2\x82\x15\x75\x50"
  33312. "\xa4\x72\xeb\x54\x27\x1f\x8a\xe4"
  33313. "\x7d\xe9\x66\xc5\xf1\x53\xa4\xd1"
  33314. "\x0c\xeb\xb8\xf8\xbc\xd4\xe2\xe7"
  33315. "\xe1\xf8\x4b\xcb\xa9\xa1\xaf\x15"
  33316. "\x83\xcb\x72\xd0\x33\x79\x00\x2d"
  33317. "\x9f\xd7\xf1\x2e\x1e\x10\xe4\x45"
  33318. "\xc0\x75\x3a\x39\xea\x68\xf7\x5d"
  33319. "\x1b\x73\x8f\xe9\x8e\x0f\x72\x47"
  33320. "\xae\x35\x0a\x31\x7a\x14\x4d\x4a"
  33321. "\x6f\x47\xf7\x7e\x91\x6e\x74\x8b"
  33322. "\x26\x47\xf9\xc3\xf9\xde\x70\xf5"
  33323. "\x61\xab\xa9\x27\x9f\x82\xe4\x9c"
  33324. "\x89\x91\x3f\x2e\x6a\xfd\xb5\x49"
  33325. "\xe9\xfd\x59\x14\x36\x49\x40\x6d"
  33326. "\x32\xd8\x85\x42\xf3\xa5\xdf\x0c"
  33327. "\xa8\x27\xd7\x54\xe2\x63\x2f\xf2"
  33328. "\x7e\x8b\x8b\xe7\xf1\x9a\x95\x35"
  33329. "\x43\xdc\x3a\xe4\xb6\xf4\xd0\xdf"
  33330. "\x9c\xcb\x94\xf3\x21\xa0\x77\x50"
  33331. "\xe2\xc6\xc4\xc6\x5f\x09\x64\x5b"
  33332. "\x92\x90\xd8\xe1\xd1\xed\x4b\x42"
  33333. "\xd7\x37\xaf\x65\x3d\x11\x39\xb6"
  33334. "\x24\x8a\x60\xae\xd6\x1e\xbf\x0e"
  33335. "\x0d\xd7\xdc\x96\x0e\x65\x75\x4e"
  33336. "\x29\x06\x9d\xa4\x51\x3a\x10\x63"
  33337. "\x8f\x17\x07\xd5\x8e\x3c\xf4\x28"
  33338. "\x00\x5a\x5b\x05\x19\xd8\xc0\x6c"
  33339. "\xe5\x15\xe4\x9c\x9d\x71\x9d\x5e"
  33340. "\x94\x29\x1a\xa7\x80\xfa\x0e\x33"
  33341. "\x03\xdd\xb7\x3e\x9a\xa9\x26\x18"
  33342. "\x37\xa9\x64\x08\x4d\x94\x5a\x88"
  33343. "\xca\x35\xce\x81\x02\xe3\x1f\x1b"
  33344. "\x89\x1a\x77\x85\xe3\x41\x6d\x32"
  33345. "\x42\x19\x23\x7d\xc8\x73\xee\x25"
  33346. "\x85\x0d\xf8\x31\x25\x79\x1b\x6f"
  33347. "\x79\x25\xd2\xd8\xd4\x23\xfd\xf7"
  33348. "\x82\x36\x6a\x0c\x46\x22\x15\xe9"
  33349. "\xff\x72\x41\x91\x91\x7d\x3a\xb7"
  33350. "\xdd\x65\x99\x70\xf6\x8d\x84\xf8"
  33351. "\x67\x15\x20\x11\xd6\xb2\x55\x7b"
  33352. "\xdb\x87\xee\xef\x55\x89\x2a\x59"
  33353. "\x2b\x07\x8f\x43\x8a\x59\x3c\x01"
  33354. "\x8b\x65\x54\xa1\x66\xd5\x38\xbd"
  33355. "\xc6\x30\xa9\xcc\x49\xb6\xa8\x1b"
  33356. "\xb8\xc0\x0e\xe3\x45\x28\xe2\xff"
  33357. "\x41\x9f\x7e\x7c\xd1\xae\x9e\x25"
  33358. "\x3f\x4c\x7c\x7c\xf4\xa8\x26\x4d"
  33359. "\x5c\xfd\x4b\x27\x18\xf9\x61\x76"
  33360. "\x48\xba\x0c\x6b\xa9\x4d\xfc\xf5"
  33361. "\x3b\x35\x7e\x2f\x4a\xa9\xc2\x9a"
  33362. "\xae\xab\x86\x09\x89\xc9\xc2\x40"
  33363. "\x39\x2c\x81\xb3\xb8\x17\x67\xc2"
  33364. "\x0d\x32\x4a\x3a\x67\x81\xd7\x1a"
  33365. "\x34\x52\xc5\xdb\x0a\xf5\x63\x39"
  33366. "\xea\x1f\xe1\x7c\xa1\x9e\xc1\x35"
  33367. "\xe3\xb1\x18\x45\x67\xf9\x22\x38"
  33368. "\x95\xd9\x34\x34\x86\xc6\x41\x94"
  33369. "\x15\xf9\x5b\x41\xa6\x87\x8b\xf8"
  33370. "\xd5\xe1\x1b\xe2\x5b\xf3\x86\x10"
  33371. "\xff\xe6\xae\x69\x76\xbc\x0d\xb4"
  33372. "\x09\x90\x0c\xa2\x65\x0c\xad\x74"
  33373. "\xf5\xd7\xff\xda\xc1\xce\x85\xbe"
  33374. "\x00\xa7\xff\x4d\x2f\x65\xd3\x8c"
  33375. "\x86\x2d\x05\xe8\xed\x3e\x6b\x8b"
  33376. "\x0f\x3d\x83\x8c\xf1\x1d\x5b\x96"
  33377. "\x2e\xb1\x9c\xc2\x98\xe1\x70\xb9"
  33378. "\xba\x5c\x8a\x43\xd6\x34\xa7\x2d"
  33379. "\xc9\x92\xae\xf2\xa5\x7b\x05\x49"
  33380. "\xa7\x33\x34\x86\xca\xe4\x96\x23"
  33381. "\x76\x5b\xf2\xc6\xf1\x51\x28\x42"
  33382. "\x7b\xcc\x76\x8f\xfa\xa2\xad\x31"
  33383. "\xd4\xd6\x7a\x6d\x25\x25\x54\xe4"
  33384. "\x3f\x50\x59\xe1\x5c\x05\xb7\x27"
  33385. "\x48\xbf\x07\xec\x1b\x13\xbe\x2b"
  33386. "\xa1\x57\x2b\xd5\xab\xd7\xd0\x4c"
  33387. "\x1e\xcb\x71\x9b\xc5\x90\x85\xd3"
  33388. "\xde\x59\xec\x71\xeb\x89\xbb\xd0"
  33389. "\x09\x50\xe1\x16\x3f\xfd\x1c\x34"
  33390. "\xc3\x1c\xa1\x10\x77\x53\x98\xef"
  33391. "\xf2\xfd\xa5\x01\x59\xc2\x9b\x26"
  33392. "\xc7\x42\xd9\x49\xda\x58\x2b\x6e"
  33393. "\x9f\x53\x19\x76\x7e\xd9\xc9\x0e"
  33394. "\x68\xc8\x7f\x51\x22\x42\xef\x49"
  33395. "\xa4\x55\xb6\x36\xac\x09\xc7\x31"
  33396. "\x88\x15\x4b\x2e\x8f\x3a\x08\xf7"
  33397. "\xd8\xf7\xa8\xc5\xa9\x33\xa6\x45"
  33398. "\xe4\xc4\x94\x76\xf3\x0d\x8f\x7e"
  33399. "\xc8\xf6\xbc\x23\x0a\xb6\x4c\xd3"
  33400. "\x6a\xcd\x36\xc2\x90\x5c\x5c\x3c"
  33401. "\x65\x7b\xc2\xd6\xcc\xe6\x0d\x87"
  33402. "\x73\x2e\x71\x79\x16\x06\x63\x28"
  33403. "\x09\x15\xd8\x89\x38\x38\x3d\xb5"
  33404. "\x42\x1c\x08\x24\xf7\x2a\xd2\x9d"
  33405. "\xc8\xca\xef\xf9\x27\xd8\x07\x86"
  33406. "\xf7\x43\x0b\x55\x15\x3f\x9f\x83"
  33407. "\xef\xdc\x49\x9d\x2a\xc1\x54\x62"
  33408. "\xbd\x9b\x66\x55\x9f\xb7\x12\xf3"
  33409. "\x1b\x4d\x9d\x2a\x5c\xed\x87\x75"
  33410. "\x87\x26\xec\x61\x2c\xb4\x0f\x89"
  33411. "\xb0\xfb\x2e\x68\x5d\x15\xc7\x8d"
  33412. "\x2e\xc0\xd9\xec\xaf\x4f\xd2\x25"
  33413. "\x29\xe8\xd2\x26\x2b\x67\xe9\xfc"
  33414. "\x2b\xa8\x67\x96\x12\x1f\x5b\x96"
  33415. "\xc6\x14\x53\xaf\x44\xea\xd6\xe2"
  33416. "\x94\x98\xe4\x12\x93\x4c\x92\xe0"
  33417. "\x18\xa5\x8d\x2d\xe4\x71\x3c\x47"
  33418. "\x4c\xf7\xe6\x47\x9e\xc0\x68\xdf"
  33419. "\xd4\xf5\x5a\x74\xb1\x2b\x29\x03"
  33420. "\x19\x07\xaf\x90\x62\x5c\x68\x98"
  33421. "\x48\x16\x11\x02\x9d\xee\xb4\x9b"
  33422. "\xe5\x42\x7f\x08\xfd\x16\x32\x0b"
  33423. "\xd0\xb3\xfa\x2b\xb7\x99\xf9\x29"
  33424. "\xcd\x20\x45\x9f\xb3\x1a\x5d\xa2"
  33425. "\xaf\x4d\xe0\xbd\x42\x0d\xbc\x74"
  33426. "\x99\x9c\x8e\x53\x1a\xb4\x3e\xbd"
  33427. "\xa2\x9a\x2d\xf7\xf8\x39\x0f\x67"
  33428. "\x63\xfc\x6b\xc0\xaf\xb3\x4b\x4f"
  33429. "\x55\xc4\xcf\xa7\xc8\x04\x11\x3e"
  33430. "\x14\x32\xbb\x1b\x38\x77\xd6\x7f"
  33431. "\x54\x4c\xdf\x75\xf3\x07\x2d\x33"
  33432. "\x9b\xa8\x20\xe1\x7b\x12\xb5\xf3"
  33433. "\xef\x2f\xce\x72\xe5\x24\x60\xc1"
  33434. "\x30\xe2\xab\xa1\x8e\x11\x09\xa8"
  33435. "\x21\x33\x44\xfe\x7f\x35\x32\x93"
  33436. "\x39\xa7\xad\x8b\x79\x06\xb2\xcb"
  33437. "\x4e\xa9\x5f\xc7\xba\x74\x29\xec"
  33438. "\x93\xa0\x4e\x54\x93\xc0\xbc\x55"
  33439. "\x64\xf0\x48\xe5\x57\x99\xee\x75"
  33440. "\xd6\x79\x0f\x66\xb7\xc6\x57\x76"
  33441. "\xf7\xb7\xf3\x9c\xc5\x60\xe8\x7f"
  33442. "\x83\x76\xd6\x0e\xaa\xe6\x90\x39"
  33443. "\x1d\xa6\x32\x6a\x34\xe3\x55\xf8"
  33444. "\x58\xa0\x58\x7d\x33\xe0\x22\x39"
  33445. "\x44\x64\x87\x86\x5a\x2f\xa7\x7e"
  33446. "\x0f\x38\xea\xb0\x30\xcc\x61\xa5"
  33447. "\x6a\x32\xae\x1e\xf7\xe9\xd0\xa9"
  33448. "\x0c\x32\x4b\xb5\x49\x28\xab\x85"
  33449. "\x2f\x8e\x01\x36\x38\x52\xd0\xba"
  33450. "\xd6\x02\x78\xf8\x0e\x3e\x9c\x8b"
  33451. "\x6b\x45\x99\x3f\x5c\xfe\x58\xf1"
  33452. "\x5c\x94\x04\xe1\xf5\x18\x6d\x51"
  33453. "\xb2\x5d\x18\x20\xb6\xc2\x9a\x42"
  33454. "\x1d\xb3\xab\x3c\xb6\x3a\x13\x03"
  33455. "\xb2\x46\x82\x4f\xfc\x64\xbc\x4f"
  33456. "\xca\xfa\x9c\xc0\xd5\xa7\xbd\x11"
  33457. "\xb7\xe4\x5a\xf6\x6f\x4d\x4d\x54"
  33458. "\xea\xa4\x98\x66\xd4\x22\x3b\xd3"
  33459. "\x8f\x34\x47\xd9\x7c\xf4\x72\x3b"
  33460. "\x4d\x02\x77\xf6\xd6\xdd\x08\x0a"
  33461. "\x81\xe1\x86\x89\x3e\x56\x10\x3c"
  33462. "\xba\xd7\x81\x8c\x08\xbc\x8b\xe2"
  33463. "\x53\xec\xa7\x89\xee\xc8\x56\xb5"
  33464. "\x36\x2c\xb2\x03\xba\x99\xdd\x7c"
  33465. "\x48\xa0\xb0\xbc\x91\x33\xe9\xa8"
  33466. "\xcb\xcd\xcf\x59\x5f\x1f\x15\xe2"
  33467. "\x56\xf5\x4e\x01\x35\x27\x45\x77"
  33468. "\x47\xc8\xbc\xcb\x7e\x39\xc1\x97"
  33469. "\x28\xd3\x84\xfc\x2c\x3e\xc8\xad"
  33470. "\x9c\xf8\x8a\x61\x9c\x28\xaa\xc5"
  33471. "\x99\x20\x43\x85\x9d\xa5\xe2\x8b"
  33472. "\xb8\xae\xeb\xd0\x32\x0d\x52\x78"
  33473. "\x09\x56\x3f\xc7\xd8\x7e\x26\xfc"
  33474. "\x37\xfb\x6f\x04\xfc\xfa\x92\x10"
  33475. "\xac\xf8\x3e\x21\xdc\x8c\x21\x16"
  33476. "\x7d\x67\x6e\xf6\xcd\xda\xb6\x98"
  33477. "\x23\xab\x23\x3c\xb2\x10\xa0\x53"
  33478. "\x5a\x56\x9f\xc5\xd0\xff\xbb\xe4"
  33479. "\x98\x3c\x69\x1e\xdb\x38\x8f\x7e"
  33480. "\x0f\xd2\x98\x88\x81\x8b\x45\x67"
  33481. "\xea\x33\xf1\xeb\xe9\x97\x55\x2e"
  33482. "\xd9\xaa\xeb\x5a\xec\xda\xe1\x68"
  33483. "\xa8\x9d\x3c\x84\x7c\x05\x3d\x62"
  33484. "\x87\x8f\x03\x21\x28\x95\x0c\x89"
  33485. "\x25\x22\x4a\xb0\x93\xa9\x50\xa2"
  33486. "\x2f\x57\x6e\x18\x42\x19\x54\x0c"
  33487. "\x55\x67\xc6\x11\x49\xf4\x5c\xd2"
  33488. "\xe9\x3d\xdd\x8b\x48\x71\x21\x00"
  33489. "\xc3\x9a\x6c\x85\x74\x28\x83\x4a"
  33490. "\x1b\x31\x05\xe1\x06\x92\xe7\xda"
  33491. "\x85\x73\x78\x45\x20\x7f\xae\x13"
  33492. "\x7c\x33\x06\x22\xf4\x83\xf9\x35"
  33493. "\x3f\x6c\x71\xa8\x4e\x48\xbe\x9b"
  33494. "\xce\x8a\xba\xda\xbe\x28\x08\xf7"
  33495. "\xe2\x14\x8c\x71\xea\x72\xf9\x33"
  33496. "\xf2\x88\x3f\xd7\xbb\x69\x6c\x29"
  33497. "\x19\xdc\x84\xce\x1f\x12\x4f\xc8"
  33498. "\xaf\xa5\x04\xba\x5a\xab\xb0\xd9"
  33499. "\x14\x1f\x6c\x68\x98\x39\x89\x7a"
  33500. "\xd9\xd8\x2f\xdf\xa8\x47\x4a\x25"
  33501. "\xe2\xfb\x33\xf4\x59\x78\xe1\x68"
  33502. "\x85\xcf\xfe\x59\x20\xd4\x05\x1d"
  33503. "\x80\x99\xae\xbc\xca\xae\x0f\x2f"
  33504. "\x65\x43\x34\x8e\x7e\xac\xd3\x93"
  33505. "\x2f\xac\x6d\x14\x3d\x02\x07\x70"
  33506. "\x9d\xa4\xf3\x1b\x5c\x36\xfc\x01"
  33507. "\x73\x34\x85\x0c\x6c\xd6\xf1\xbd"
  33508. "\x3f\xdf\xee\xf5\xd9\xba\x56\xef"
  33509. "\xf4\x9b\x6b\xee\x9f\x5a\x78\x6d"
  33510. "\x32\x19\xf4\xf7\xf8\x4c\x69\x0b"
  33511. "\x4b\xbc\xbb\xb7\xf2\x85\xaf\x70"
  33512. "\x75\x24\x6c\x54\xa7\x0e\x4d\x1d"
  33513. "\x01\xbf\x08\xac\xcf\x7f\x2c\xe3"
  33514. "\x14\x89\x5e\x70\x5a\x99\x92\xcd"
  33515. "\x01\x84\xc8\xd2\xab\xe5\x4f\x58"
  33516. "\xe7\x0f\x2f\x0e\xff\x68\xea\xfd"
  33517. "\x15\xb3\x17\xe6\xb0\xe7\x85\xd8"
  33518. "\x23\x2e\x05\xc7\xc9\xc4\x46\x1f"
  33519. "\xe1\x9e\x49\x20\x23\x24\x4d\x7e"
  33520. "\x29\x65\xff\xf4\xb6\xfd\x1a\x85"
  33521. "\xc4\x16\xec\xfc\xea\x7b\xd6\x2c"
  33522. "\x43\xf8\xb7\xbf\x79\xc0\x85\xcd"
  33523. "\xef\xe1\x98\xd3\xa5\xf7\x90\x8c"
  33524. "\xe9\x7f\x80\x6b\xd2\xac\x4c\x30"
  33525. "\xa7\xc6\x61\x6c\xd2\xf9\x2c\xff"
  33526. "\x30\xbc\x22\x81\x7d\x93\x12\xe4"
  33527. "\x0a\xcd\xaf\xdd\xe8\xab\x0a\x1e"
  33528. "\x13\xa4\x27\xc3\x5f\xf7\x4b\xbb"
  33529. "\x37\x09\x4b\x91\x6f\x92\x4f\xaf"
  33530. "\x52\xee\xdf\xef\x09\x6f\xf7\x5c"
  33531. "\x6e\x12\x17\x72\x63\x57\xc7\xba"
  33532. "\x3b\x6b\x38\x32\x73\x1b\x9c\x80"
  33533. "\xc1\x7a\xc6\xcf\xcd\x35\xc0\x6b"
  33534. "\x31\x1a\x6b\xe9\xd8\x2c\x29\x3f"
  33535. "\x96\xfb\xb6\xcd\x13\x91\x3b\xc2"
  33536. "\xd2\xa3\x31\x8d\xa4\xcd\x57\xcd"
  33537. "\x13\x3d\x64\xfd\x06\xce\xe6\xdc"
  33538. "\x0c\x24\x43\x31\x40\x57\xf1\x72"
  33539. "\x17\xe3\x3a\x63\x6d\x35\xcf\x5d"
  33540. "\x97\x40\x59\xdd\xf7\x3c\x02\xf7"
  33541. "\x1c\x7e\x05\xbb\xa9\x0d\x01\xb1"
  33542. "\x8e\xc0\x30\xa9\x53\x24\xc9\x89"
  33543. "\x84\x6d\xaa\xd0\xcd\x91\xc2\x4d"
  33544. "\x91\xb0\x89\xe2\xbf\x83\x44\xaa"
  33545. "\x28\x72\x23\xa0\xc2\xad\xad\x1c"
  33546. "\xfc\x3f\x09\x7a\x0b\xdc\xc5\x1b"
  33547. "\x87\x13\xc6\x5b\x59\x8d\xf2\xc8"
  33548. "\xaf\xdf\x11\x95",
  33549. .rlen = 4100,
  33550. .np = 2,
  33551. .tap = { 4064, 36 },
  33552. },
  33553. };
  33554. #define CHACHA20_ENC_TEST_VECTORS 4
  33555. static struct cipher_testvec chacha20_enc_tv_template[] = {
  33556. { /* RFC7539 A.2. Test Vector #1 */
  33557. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  33558. "\x00\x00\x00\x00\x00\x00\x00\x00"
  33559. "\x00\x00\x00\x00\x00\x00\x00\x00"
  33560. "\x00\x00\x00\x00\x00\x00\x00\x00",
  33561. .klen = 32,
  33562. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  33563. "\x00\x00\x00\x00\x00\x00\x00\x00",
  33564. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  33565. "\x00\x00\x00\x00\x00\x00\x00\x00"
  33566. "\x00\x00\x00\x00\x00\x00\x00\x00"
  33567. "\x00\x00\x00\x00\x00\x00\x00\x00"
  33568. "\x00\x00\x00\x00\x00\x00\x00\x00"
  33569. "\x00\x00\x00\x00\x00\x00\x00\x00"
  33570. "\x00\x00\x00\x00\x00\x00\x00\x00"
  33571. "\x00\x00\x00\x00\x00\x00\x00\x00",
  33572. .ilen = 64,
  33573. .result = "\x76\xb8\xe0\xad\xa0\xf1\x3d\x90"
  33574. "\x40\x5d\x6a\xe5\x53\x86\xbd\x28"
  33575. "\xbd\xd2\x19\xb8\xa0\x8d\xed\x1a"
  33576. "\xa8\x36\xef\xcc\x8b\x77\x0d\xc7"
  33577. "\xda\x41\x59\x7c\x51\x57\x48\x8d"
  33578. "\x77\x24\xe0\x3f\xb8\xd8\x4a\x37"
  33579. "\x6a\x43\xb8\xf4\x15\x18\xa1\x1c"
  33580. "\xc3\x87\xb6\x69\xb2\xee\x65\x86",
  33581. .rlen = 64,
  33582. }, { /* RFC7539 A.2. Test Vector #2 */
  33583. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  33584. "\x00\x00\x00\x00\x00\x00\x00\x00"
  33585. "\x00\x00\x00\x00\x00\x00\x00\x00"
  33586. "\x00\x00\x00\x00\x00\x00\x00\x01",
  33587. .klen = 32,
  33588. .iv = "\x01\x00\x00\x00\x00\x00\x00\x00"
  33589. "\x00\x00\x00\x00\x00\x00\x00\x02",
  33590. .input = "\x41\x6e\x79\x20\x73\x75\x62\x6d"
  33591. "\x69\x73\x73\x69\x6f\x6e\x20\x74"
  33592. "\x6f\x20\x74\x68\x65\x20\x49\x45"
  33593. "\x54\x46\x20\x69\x6e\x74\x65\x6e"
  33594. "\x64\x65\x64\x20\x62\x79\x20\x74"
  33595. "\x68\x65\x20\x43\x6f\x6e\x74\x72"
  33596. "\x69\x62\x75\x74\x6f\x72\x20\x66"
  33597. "\x6f\x72\x20\x70\x75\x62\x6c\x69"
  33598. "\x63\x61\x74\x69\x6f\x6e\x20\x61"
  33599. "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
  33600. "\x20\x70\x61\x72\x74\x20\x6f\x66"
  33601. "\x20\x61\x6e\x20\x49\x45\x54\x46"
  33602. "\x20\x49\x6e\x74\x65\x72\x6e\x65"
  33603. "\x74\x2d\x44\x72\x61\x66\x74\x20"
  33604. "\x6f\x72\x20\x52\x46\x43\x20\x61"
  33605. "\x6e\x64\x20\x61\x6e\x79\x20\x73"
  33606. "\x74\x61\x74\x65\x6d\x65\x6e\x74"
  33607. "\x20\x6d\x61\x64\x65\x20\x77\x69"
  33608. "\x74\x68\x69\x6e\x20\x74\x68\x65"
  33609. "\x20\x63\x6f\x6e\x74\x65\x78\x74"
  33610. "\x20\x6f\x66\x20\x61\x6e\x20\x49"
  33611. "\x45\x54\x46\x20\x61\x63\x74\x69"
  33612. "\x76\x69\x74\x79\x20\x69\x73\x20"
  33613. "\x63\x6f\x6e\x73\x69\x64\x65\x72"
  33614. "\x65\x64\x20\x61\x6e\x20\x22\x49"
  33615. "\x45\x54\x46\x20\x43\x6f\x6e\x74"
  33616. "\x72\x69\x62\x75\x74\x69\x6f\x6e"
  33617. "\x22\x2e\x20\x53\x75\x63\x68\x20"
  33618. "\x73\x74\x61\x74\x65\x6d\x65\x6e"
  33619. "\x74\x73\x20\x69\x6e\x63\x6c\x75"
  33620. "\x64\x65\x20\x6f\x72\x61\x6c\x20"
  33621. "\x73\x74\x61\x74\x65\x6d\x65\x6e"
  33622. "\x74\x73\x20\x69\x6e\x20\x49\x45"
  33623. "\x54\x46\x20\x73\x65\x73\x73\x69"
  33624. "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
  33625. "\x77\x65\x6c\x6c\x20\x61\x73\x20"
  33626. "\x77\x72\x69\x74\x74\x65\x6e\x20"
  33627. "\x61\x6e\x64\x20\x65\x6c\x65\x63"
  33628. "\x74\x72\x6f\x6e\x69\x63\x20\x63"
  33629. "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
  33630. "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
  33631. "\x64\x65\x20\x61\x74\x20\x61\x6e"
  33632. "\x79\x20\x74\x69\x6d\x65\x20\x6f"
  33633. "\x72\x20\x70\x6c\x61\x63\x65\x2c"
  33634. "\x20\x77\x68\x69\x63\x68\x20\x61"
  33635. "\x72\x65\x20\x61\x64\x64\x72\x65"
  33636. "\x73\x73\x65\x64\x20\x74\x6f",
  33637. .ilen = 375,
  33638. .result = "\xa3\xfb\xf0\x7d\xf3\xfa\x2f\xde"
  33639. "\x4f\x37\x6c\xa2\x3e\x82\x73\x70"
  33640. "\x41\x60\x5d\x9f\x4f\x4f\x57\xbd"
  33641. "\x8c\xff\x2c\x1d\x4b\x79\x55\xec"
  33642. "\x2a\x97\x94\x8b\xd3\x72\x29\x15"
  33643. "\xc8\xf3\xd3\x37\xf7\xd3\x70\x05"
  33644. "\x0e\x9e\x96\xd6\x47\xb7\xc3\x9f"
  33645. "\x56\xe0\x31\xca\x5e\xb6\x25\x0d"
  33646. "\x40\x42\xe0\x27\x85\xec\xec\xfa"
  33647. "\x4b\x4b\xb5\xe8\xea\xd0\x44\x0e"
  33648. "\x20\xb6\xe8\xdb\x09\xd8\x81\xa7"
  33649. "\xc6\x13\x2f\x42\x0e\x52\x79\x50"
  33650. "\x42\xbd\xfa\x77\x73\xd8\xa9\x05"
  33651. "\x14\x47\xb3\x29\x1c\xe1\x41\x1c"
  33652. "\x68\x04\x65\x55\x2a\xa6\xc4\x05"
  33653. "\xb7\x76\x4d\x5e\x87\xbe\xa8\x5a"
  33654. "\xd0\x0f\x84\x49\xed\x8f\x72\xd0"
  33655. "\xd6\x62\xab\x05\x26\x91\xca\x66"
  33656. "\x42\x4b\xc8\x6d\x2d\xf8\x0e\xa4"
  33657. "\x1f\x43\xab\xf9\x37\xd3\x25\x9d"
  33658. "\xc4\xb2\xd0\xdf\xb4\x8a\x6c\x91"
  33659. "\x39\xdd\xd7\xf7\x69\x66\xe9\x28"
  33660. "\xe6\x35\x55\x3b\xa7\x6c\x5c\x87"
  33661. "\x9d\x7b\x35\xd4\x9e\xb2\xe6\x2b"
  33662. "\x08\x71\xcd\xac\x63\x89\x39\xe2"
  33663. "\x5e\x8a\x1e\x0e\xf9\xd5\x28\x0f"
  33664. "\xa8\xca\x32\x8b\x35\x1c\x3c\x76"
  33665. "\x59\x89\xcb\xcf\x3d\xaa\x8b\x6c"
  33666. "\xcc\x3a\xaf\x9f\x39\x79\xc9\x2b"
  33667. "\x37\x20\xfc\x88\xdc\x95\xed\x84"
  33668. "\xa1\xbe\x05\x9c\x64\x99\xb9\xfd"
  33669. "\xa2\x36\xe7\xe8\x18\xb0\x4b\x0b"
  33670. "\xc3\x9c\x1e\x87\x6b\x19\x3b\xfe"
  33671. "\x55\x69\x75\x3f\x88\x12\x8c\xc0"
  33672. "\x8a\xaa\x9b\x63\xd1\xa1\x6f\x80"
  33673. "\xef\x25\x54\xd7\x18\x9c\x41\x1f"
  33674. "\x58\x69\xca\x52\xc5\xb8\x3f\xa3"
  33675. "\x6f\xf2\x16\xb9\xc1\xd3\x00\x62"
  33676. "\xbe\xbc\xfd\x2d\xc5\xbc\xe0\x91"
  33677. "\x19\x34\xfd\xa7\x9a\x86\xf6\xe6"
  33678. "\x98\xce\xd7\x59\xc3\xff\x9b\x64"
  33679. "\x77\x33\x8f\x3d\xa4\xf9\xcd\x85"
  33680. "\x14\xea\x99\x82\xcc\xaf\xb3\x41"
  33681. "\xb2\x38\x4d\xd9\x02\xf3\xd1\xab"
  33682. "\x7a\xc6\x1d\xd2\x9c\x6f\x21\xba"
  33683. "\x5b\x86\x2f\x37\x30\xe3\x7c\xfd"
  33684. "\xc4\xfd\x80\x6c\x22\xf2\x21",
  33685. .rlen = 375,
  33686. }, { /* RFC7539 A.2. Test Vector #3 */
  33687. .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
  33688. "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
  33689. "\x47\x39\x17\xc1\x40\x2b\x80\x09"
  33690. "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
  33691. .klen = 32,
  33692. .iv = "\x2a\x00\x00\x00\x00\x00\x00\x00"
  33693. "\x00\x00\x00\x00\x00\x00\x00\x02",
  33694. .input = "\x27\x54\x77\x61\x73\x20\x62\x72"
  33695. "\x69\x6c\x6c\x69\x67\x2c\x20\x61"
  33696. "\x6e\x64\x20\x74\x68\x65\x20\x73"
  33697. "\x6c\x69\x74\x68\x79\x20\x74\x6f"
  33698. "\x76\x65\x73\x0a\x44\x69\x64\x20"
  33699. "\x67\x79\x72\x65\x20\x61\x6e\x64"
  33700. "\x20\x67\x69\x6d\x62\x6c\x65\x20"
  33701. "\x69\x6e\x20\x74\x68\x65\x20\x77"
  33702. "\x61\x62\x65\x3a\x0a\x41\x6c\x6c"
  33703. "\x20\x6d\x69\x6d\x73\x79\x20\x77"
  33704. "\x65\x72\x65\x20\x74\x68\x65\x20"
  33705. "\x62\x6f\x72\x6f\x67\x6f\x76\x65"
  33706. "\x73\x2c\x0a\x41\x6e\x64\x20\x74"
  33707. "\x68\x65\x20\x6d\x6f\x6d\x65\x20"
  33708. "\x72\x61\x74\x68\x73\x20\x6f\x75"
  33709. "\x74\x67\x72\x61\x62\x65\x2e",
  33710. .ilen = 127,
  33711. .result = "\x62\xe6\x34\x7f\x95\xed\x87\xa4"
  33712. "\x5f\xfa\xe7\x42\x6f\x27\xa1\xdf"
  33713. "\x5f\xb6\x91\x10\x04\x4c\x0d\x73"
  33714. "\x11\x8e\xff\xa9\x5b\x01\xe5\xcf"
  33715. "\x16\x6d\x3d\xf2\xd7\x21\xca\xf9"
  33716. "\xb2\x1e\x5f\xb1\x4c\x61\x68\x71"
  33717. "\xfd\x84\xc5\x4f\x9d\x65\xb2\x83"
  33718. "\x19\x6c\x7f\xe4\xf6\x05\x53\xeb"
  33719. "\xf3\x9c\x64\x02\xc4\x22\x34\xe3"
  33720. "\x2a\x35\x6b\x3e\x76\x43\x12\xa6"
  33721. "\x1a\x55\x32\x05\x57\x16\xea\xd6"
  33722. "\x96\x25\x68\xf8\x7d\x3f\x3f\x77"
  33723. "\x04\xc6\xa8\xd1\xbc\xd1\xbf\x4d"
  33724. "\x50\xd6\x15\x4b\x6d\xa7\x31\xb1"
  33725. "\x87\xb5\x8d\xfd\x72\x8a\xfa\x36"
  33726. "\x75\x7a\x79\x7a\xc1\x88\xd1",
  33727. .rlen = 127,
  33728. }, { /* Self-made test vector for long data */
  33729. .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
  33730. "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
  33731. "\x47\x39\x17\xc1\x40\x2b\x80\x09"
  33732. "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
  33733. .klen = 32,
  33734. .iv = "\x1c\x00\x00\x00\x00\x00\x00\x00"
  33735. "\x00\x00\x00\x00\x00\x00\x00\x01",
  33736. .input = "\x49\xee\xe0\xdc\x24\x90\x40\xcd"
  33737. "\xc5\x40\x8f\x47\x05\xbc\xdd\x81"
  33738. "\x47\xc6\x8d\xe6\xb1\x8f\xd7\xcb"
  33739. "\x09\x0e\x6e\x22\x48\x1f\xbf\xb8"
  33740. "\x5c\xf7\x1e\x8a\xc1\x23\xf2\xd4"
  33741. "\x19\x4b\x01\x0f\x4e\xa4\x43\xce"
  33742. "\x01\xc6\x67\xda\x03\x91\x18\x90"
  33743. "\xa5\xa4\x8e\x45\x03\xb3\x2d\xac"
  33744. "\x74\x92\xd3\x53\x47\xc8\xdd\x25"
  33745. "\x53\x6c\x02\x03\x87\x0d\x11\x0c"
  33746. "\x58\xe3\x12\x18\xfd\x2a\x5b\x40"
  33747. "\x0c\x30\xf0\xb8\x3f\x43\xce\xae"
  33748. "\x65\x3a\x7d\x7c\xf4\x54\xaa\xcc"
  33749. "\x33\x97\xc3\x77\xba\xc5\x70\xde"
  33750. "\xd7\xd5\x13\xa5\x65\xc4\x5f\x0f"
  33751. "\x46\x1a\x0d\x97\xb5\xf3\xbb\x3c"
  33752. "\x84\x0f\x2b\xc5\xaa\xea\xf2\x6c"
  33753. "\xc9\xb5\x0c\xee\x15\xf3\x7d\xbe"
  33754. "\x9f\x7b\x5a\xa6\xae\x4f\x83\xb6"
  33755. "\x79\x49\x41\xf4\x58\x18\xcb\x86"
  33756. "\x7f\x30\x0e\xf8\x7d\x44\x36\xea"
  33757. "\x75\xeb\x88\x84\x40\x3c\xad\x4f"
  33758. "\x6f\x31\x6b\xaa\x5d\xe5\xa5\xc5"
  33759. "\x21\x66\xe9\xa7\xe3\xb2\x15\x88"
  33760. "\x78\xf6\x79\xa1\x59\x47\x12\x4e"
  33761. "\x9f\x9f\x64\x1a\xa0\x22\x5b\x08"
  33762. "\xbe\x7c\x36\xc2\x2b\x66\x33\x1b"
  33763. "\xdd\x60\x71\xf7\x47\x8c\x61\xc3"
  33764. "\xda\x8a\x78\x1e\x16\xfa\x1e\x86"
  33765. "\x81\xa6\x17\x2a\xa7\xb5\xc2\xe7"
  33766. "\xa4\xc7\x42\xf1\xcf\x6a\xca\xb4"
  33767. "\x45\xcf\xf3\x93\xf0\xe7\xea\xf6"
  33768. "\xf4\xe6\x33\x43\x84\x93\xa5\x67"
  33769. "\x9b\x16\x58\x58\x80\x0f\x2b\x5c"
  33770. "\x24\x74\x75\x7f\x95\x81\xb7\x30"
  33771. "\x7a\x33\xa7\xf7\x94\x87\x32\x27"
  33772. "\x10\x5d\x14\x4c\x43\x29\xdd\x26"
  33773. "\xbd\x3e\x3c\x0e\xfe\x0e\xa5\x10"
  33774. "\xea\x6b\x64\xfd\x73\xc6\xed\xec"
  33775. "\xa8\xc9\xbf\xb3\xba\x0b\x4d\x07"
  33776. "\x70\xfc\x16\xfd\x79\x1e\xd7\xc5"
  33777. "\x49\x4e\x1c\x8b\x8d\x79\x1b\xb1"
  33778. "\xec\xca\x60\x09\x4c\x6a\xd5\x09"
  33779. "\x49\x46\x00\x88\x22\x8d\xce\xea"
  33780. "\xb1\x17\x11\xde\x42\xd2\x23\xc1"
  33781. "\x72\x11\xf5\x50\x73\x04\x40\x47"
  33782. "\xf9\x5d\xe7\xa7\x26\xb1\x7e\xb0"
  33783. "\x3f\x58\xc1\x52\xab\x12\x67\x9d"
  33784. "\x3f\x43\x4b\x68\xd4\x9c\x68\x38"
  33785. "\x07\x8a\x2d\x3e\xf3\xaf\x6a\x4b"
  33786. "\xf9\xe5\x31\x69\x22\xf9\xa6\x69"
  33787. "\xc6\x9c\x96\x9a\x12\x35\x95\x1d"
  33788. "\x95\xd5\xdd\xbe\xbf\x93\x53\x24"
  33789. "\xfd\xeb\xc2\x0a\x64\xb0\x77\x00"
  33790. "\x6f\x88\xc4\x37\x18\x69\x7c\xd7"
  33791. "\x41\x92\x55\x4c\x03\xa1\x9a\x4b"
  33792. "\x15\xe5\xdf\x7f\x37\x33\x72\xc1"
  33793. "\x8b\x10\x67\xa3\x01\x57\x94\x25"
  33794. "\x7b\x38\x71\x7e\xdd\x1e\xcc\x73"
  33795. "\x55\xd2\x8e\xeb\x07\xdd\xf1\xda"
  33796. "\x58\xb1\x47\x90\xfe\x42\x21\x72"
  33797. "\xa3\x54\x7a\xa0\x40\xec\x9f\xdd"
  33798. "\xc6\x84\x6e\xca\xae\xe3\x68\xb4"
  33799. "\x9d\xe4\x78\xff\x57\xf2\xf8\x1b"
  33800. "\x03\xa1\x31\xd9\xde\x8d\xf5\x22"
  33801. "\x9c\xdd\x20\xa4\x1e\x27\xb1\x76"
  33802. "\x4f\x44\x55\xe2\x9b\xa1\x9c\xfe"
  33803. "\x54\xf7\x27\x1b\xf4\xde\x02\xf5"
  33804. "\x1b\x55\x48\x5c\xdc\x21\x4b\x9e"
  33805. "\x4b\x6e\xed\x46\x23\xdc\x65\xb2"
  33806. "\xcf\x79\x5f\x28\xe0\x9e\x8b\xe7"
  33807. "\x4c\x9d\x8a\xff\xc1\xa6\x28\xb8"
  33808. "\x65\x69\x8a\x45\x29\xef\x74\x85"
  33809. "\xde\x79\xc7\x08\xae\x30\xb0\xf4"
  33810. "\xa3\x1d\x51\x41\xab\xce\xcb\xf6"
  33811. "\xb5\xd8\x6d\xe0\x85\xe1\x98\xb3"
  33812. "\x43\xbb\x86\x83\x0a\xa0\xf5\xb7"
  33813. "\x04\x0b\xfa\x71\x1f\xb0\xf6\xd9"
  33814. "\x13\x00\x15\xf0\xc7\xeb\x0d\x5a"
  33815. "\x9f\xd7\xb9\x6c\x65\x14\x22\x45"
  33816. "\x6e\x45\x32\x3e\x7e\x60\x1a\x12"
  33817. "\x97\x82\x14\xfb\xaa\x04\x22\xfa"
  33818. "\xa0\xe5\x7e\x8c\x78\x02\x48\x5d"
  33819. "\x78\x33\x5a\x7c\xad\xdb\x29\xce"
  33820. "\xbb\x8b\x61\xa4\xb7\x42\xe2\xac"
  33821. "\x8b\x1a\xd9\x2f\x0b\x8b\x62\x21"
  33822. "\x83\x35\x7e\xad\x73\xc2\xb5\x6c"
  33823. "\x10\x26\x38\x07\xe5\xc7\x36\x80"
  33824. "\xe2\x23\x12\x61\xf5\x48\x4b\x2b"
  33825. "\xc5\xdf\x15\xd9\x87\x01\xaa\xac"
  33826. "\x1e\x7c\xad\x73\x78\x18\x63\xe0"
  33827. "\x8b\x9f\x81\xd8\x12\x6a\x28\x10"
  33828. "\xbe\x04\x68\x8a\x09\x7c\x1b\x1c"
  33829. "\x83\x66\x80\x47\x80\xe8\xfd\x35"
  33830. "\x1c\x97\x6f\xae\x49\x10\x66\xcc"
  33831. "\xc6\xd8\xcc\x3a\x84\x91\x20\x77"
  33832. "\x72\xe4\x24\xd2\x37\x9f\xc5\xc9"
  33833. "\x25\x94\x10\x5f\x40\x00\x64\x99"
  33834. "\xdc\xae\xd7\x21\x09\x78\x50\x15"
  33835. "\xac\x5f\xc6\x2c\xa2\x0b\xa9\x39"
  33836. "\x87\x6e\x6d\xab\xde\x08\x51\x16"
  33837. "\xc7\x13\xe9\xea\xed\x06\x8e\x2c"
  33838. "\xf8\x37\x8c\xf0\xa6\x96\x8d\x43"
  33839. "\xb6\x98\x37\xb2\x43\xed\xde\xdf"
  33840. "\x89\x1a\xe7\xeb\x9d\xa1\x7b\x0b"
  33841. "\x77\xb0\xe2\x75\xc0\xf1\x98\xd9"
  33842. "\x80\x55\xc9\x34\x91\xd1\x59\xe8"
  33843. "\x4b\x0f\xc1\xa9\x4b\x7a\x84\x06"
  33844. "\x20\xa8\x5d\xfa\xd1\xde\x70\x56"
  33845. "\x2f\x9e\x91\x9c\x20\xb3\x24\xd8"
  33846. "\x84\x3d\xe1\x8c\x7e\x62\x52\xe5"
  33847. "\x44\x4b\x9f\xc2\x93\x03\xea\x2b"
  33848. "\x59\xc5\xfa\x3f\x91\x2b\xbb\x23"
  33849. "\xf5\xb2\x7b\xf5\x38\xaf\xb3\xee"
  33850. "\x63\xdc\x7b\xd1\xff\xaa\x8b\xab"
  33851. "\x82\x6b\x37\x04\xeb\x74\xbe\x79"
  33852. "\xb9\x83\x90\xef\x20\x59\x46\xff"
  33853. "\xe9\x97\x3e\x2f\xee\xb6\x64\x18"
  33854. "\x38\x4c\x7a\x4a\xf9\x61\xe8\x9a"
  33855. "\xa1\xb5\x01\xa6\x47\xd3\x11\xd4"
  33856. "\xce\xd3\x91\x49\x88\xc7\xb8\x4d"
  33857. "\xb1\xb9\x07\x6d\x16\x72\xae\x46"
  33858. "\x5e\x03\xa1\x4b\xb6\x02\x30\xa8"
  33859. "\x3d\xa9\x07\x2a\x7c\x19\xe7\x62"
  33860. "\x87\xe3\x82\x2f\x6f\xe1\x09\xd9"
  33861. "\x94\x97\xea\xdd\x58\x9e\xae\x76"
  33862. "\x7e\x35\xe5\xb4\xda\x7e\xf4\xde"
  33863. "\xf7\x32\x87\xcd\x93\xbf\x11\x56"
  33864. "\x11\xbe\x08\x74\xe1\x69\xad\xe2"
  33865. "\xd7\xf8\x86\x75\x8a\x3c\xa4\xbe"
  33866. "\x70\xa7\x1b\xfc\x0b\x44\x2a\x76"
  33867. "\x35\xea\x5d\x85\x81\xaf\x85\xeb"
  33868. "\xa0\x1c\x61\xc2\xf7\x4f\xa5\xdc"
  33869. "\x02\x7f\xf6\x95\x40\x6e\x8a\x9a"
  33870. "\xf3\x5d\x25\x6e\x14\x3a\x22\xc9"
  33871. "\x37\x1c\xeb\x46\x54\x3f\xa5\x91"
  33872. "\xc2\xb5\x8c\xfe\x53\x08\x97\x32"
  33873. "\x1b\xb2\x30\x27\xfe\x25\x5d\xdc"
  33874. "\x08\x87\xd0\xe5\x94\x1a\xd4\xf1"
  33875. "\xfe\xd6\xb4\xa3\xe6\x74\x81\x3c"
  33876. "\x1b\xb7\x31\xa7\x22\xfd\xd4\xdd"
  33877. "\x20\x4e\x7c\x51\xb0\x60\x73\xb8"
  33878. "\x9c\xac\x91\x90\x7e\x01\xb0\xe1"
  33879. "\x8a\x2f\x75\x1c\x53\x2a\x98\x2a"
  33880. "\x06\x52\x95\x52\xb2\xe9\x25\x2e"
  33881. "\x4c\xe2\x5a\x00\xb2\x13\x81\x03"
  33882. "\x77\x66\x0d\xa5\x99\xda\x4e\x8c"
  33883. "\xac\xf3\x13\x53\x27\x45\xaf\x64"
  33884. "\x46\xdc\xea\x23\xda\x97\xd1\xab"
  33885. "\x7d\x6c\x30\x96\x1f\xbc\x06\x34"
  33886. "\x18\x0b\x5e\x21\x35\x11\x8d\x4c"
  33887. "\xe0\x2d\xe9\x50\x16\x74\x81\xa8"
  33888. "\xb4\x34\xb9\x72\x42\xa6\xcc\xbc"
  33889. "\xca\x34\x83\x27\x10\x5b\x68\x45"
  33890. "\x8f\x52\x22\x0c\x55\x3d\x29\x7c"
  33891. "\xe3\xc0\x66\x05\x42\x91\x5f\x58"
  33892. "\xfe\x4a\x62\xd9\x8c\xa9\x04\x19"
  33893. "\x04\xa9\x08\x4b\x57\xfc\x67\x53"
  33894. "\x08\x7c\xbc\x66\x8a\xb0\xb6\x9f"
  33895. "\x92\xd6\x41\x7c\x5b\x2a\x00\x79"
  33896. "\x72",
  33897. .ilen = 1281,
  33898. .result = "\x45\xe8\xe0\xb6\x9c\xca\xfd\x87"
  33899. "\xe8\x1d\x37\x96\x8a\xe3\x40\x35"
  33900. "\xcf\x5e\x3a\x46\x3d\xfb\xd0\x69"
  33901. "\xde\xaf\x7a\xd5\x0d\xe9\x52\xec"
  33902. "\xc2\x82\xe5\x3e\x7d\xb2\x4a\xd9"
  33903. "\xbb\xc3\x9f\xc0\x5d\xac\x93\x8d"
  33904. "\x0e\x6f\xd3\xd7\xfb\x6a\x0d\xce"
  33905. "\x92\x2c\xf7\xbb\x93\x57\xcc\xee"
  33906. "\x42\x72\x6f\xc8\x4b\xd2\x76\xbf"
  33907. "\xa0\xe3\x7a\x39\xf9\x5c\x8e\xfd"
  33908. "\xa1\x1d\x41\xe5\x08\xc1\x1c\x11"
  33909. "\x92\xfd\x39\x5c\x51\xd0\x2f\x66"
  33910. "\x33\x4a\x71\x15\xfe\xee\x12\x54"
  33911. "\x8c\x8f\x34\xd8\x50\x3c\x18\xa6"
  33912. "\xc5\xe1\x46\x8a\xfb\x5f\x7e\x25"
  33913. "\x9b\xe2\xc3\x66\x41\x2b\xb3\xa5"
  33914. "\x57\x0e\x94\x17\x26\x39\xbb\x54"
  33915. "\xae\x2e\x6f\x42\xfb\x4d\x89\x6f"
  33916. "\x9d\xf1\x16\x2e\xe3\xe7\xfc\xe3"
  33917. "\xb2\x4b\x2b\xa6\x7c\x04\x69\x3a"
  33918. "\x70\x5a\xa7\xf1\x31\x64\x19\xca"
  33919. "\x45\x79\xd8\x58\x23\x61\xaf\xc2"
  33920. "\x52\x05\xc3\x0b\xc1\x64\x7c\x81"
  33921. "\xd9\x11\xcf\xff\x02\x3d\x51\x84"
  33922. "\x01\xac\xc6\x2e\x34\x2b\x09\x3a"
  33923. "\xa8\x5d\x98\x0e\x89\xd9\xef\x8f"
  33924. "\xd9\xd7\x7d\xdd\x63\x47\x46\x7d"
  33925. "\xa1\xda\x0b\x53\x7d\x79\xcd\xc9"
  33926. "\x86\xdd\x6b\x13\xa1\x9a\x70\xdd"
  33927. "\x5c\xa1\x69\x3c\xe4\x5d\xe3\x8c"
  33928. "\xe5\xf4\x87\x9c\x10\xcf\x0f\x0b"
  33929. "\xc8\x43\xdc\xf8\x1d\x62\x5e\x5b"
  33930. "\xe2\x03\x06\xc5\x71\xb6\x48\xa5"
  33931. "\xf0\x0f\x2d\xd5\xa2\x73\x55\x8f"
  33932. "\x01\xa7\x59\x80\x5f\x11\x6c\x40"
  33933. "\xff\xb1\xf2\xc6\x7e\x01\xbb\x1c"
  33934. "\x69\x9c\xc9\x3f\x71\x5f\x07\x7e"
  33935. "\xdf\x6f\x99\xca\x9c\xfd\xf9\xb9"
  33936. "\x49\xe7\xcc\x91\xd5\x9b\x8f\x03"
  33937. "\xae\xe7\x61\x32\xef\x41\x6c\x75"
  33938. "\x84\x9b\x8c\xce\x1d\x6b\x93\x21"
  33939. "\x41\xec\xc6\xad\x8e\x0c\x48\xa8"
  33940. "\xe2\xf5\x57\xde\xf7\x38\xfd\x4a"
  33941. "\x6f\xa7\x4a\xf9\xac\x7d\xb1\x85"
  33942. "\x7d\x6c\x95\x0a\x5a\xcf\x68\xd2"
  33943. "\xe0\x7a\x26\xd9\xc1\x6d\x3e\xc6"
  33944. "\x37\xbd\xbe\x24\x36\x77\x9f\x1b"
  33945. "\xc1\x22\xf3\x79\xae\x95\x78\x66"
  33946. "\x97\x11\xc0\x1a\xf1\xe8\x0d\x38"
  33947. "\x09\xc2\xee\xb7\xd3\x46\x7b\x59"
  33948. "\x77\x23\xe8\xb4\x92\x3d\x78\xbe"
  33949. "\xe2\x25\x63\xa5\x2a\x06\x70\x92"
  33950. "\x32\x63\xf9\x19\x21\x68\xe1\x0b"
  33951. "\x9a\xd0\xee\x21\xdb\x1f\xe0\xde"
  33952. "\x3e\x64\x02\x4d\x0e\xe0\x0a\xa9"
  33953. "\xed\x19\x8c\xa8\xbf\xe3\x2e\x75"
  33954. "\x24\x2b\xb0\xe5\x82\x6a\x1e\x6f"
  33955. "\x71\x2a\x3a\x60\xed\x06\x0d\x17"
  33956. "\xa2\xdb\x29\x1d\xae\xb2\xc4\xfb"
  33957. "\x94\x04\xd8\x58\xfc\xc4\x04\x4e"
  33958. "\xee\xc7\xc1\x0f\xe9\x9b\x63\x2d"
  33959. "\x02\x3e\x02\x67\xe5\xd8\xbb\x79"
  33960. "\xdf\xd2\xeb\x50\xe9\x0a\x02\x46"
  33961. "\xdf\x68\xcf\xe7\x2b\x0a\x56\xd6"
  33962. "\xf7\xbc\x44\xad\xb8\xb5\x5f\xeb"
  33963. "\xbc\x74\x6b\xe8\x7e\xb0\x60\xc6"
  33964. "\x0d\x96\x09\xbb\x19\xba\xe0\x3c"
  33965. "\xc4\x6c\xbf\x0f\x58\xc0\x55\x62"
  33966. "\x23\xa0\xff\xb5\x1c\xfd\x18\xe1"
  33967. "\xcf\x6d\xd3\x52\xb4\xce\xa6\xfa"
  33968. "\xaa\xfb\x1b\x0b\x42\x6d\x79\x42"
  33969. "\x48\x70\x5b\x0e\xdd\x3a\xc9\x69"
  33970. "\x8b\x73\x67\xf6\x95\xdb\x8c\xfb"
  33971. "\xfd\xb5\x08\x47\x42\x84\x9a\xfa"
  33972. "\xcc\x67\xb2\x3c\xb6\xfd\xd8\x32"
  33973. "\xd6\x04\xb6\x4a\xea\x53\x4b\xf5"
  33974. "\x94\x16\xad\xf0\x10\x2e\x2d\xb4"
  33975. "\x8b\xab\xe5\x89\xc7\x39\x12\xf3"
  33976. "\x8d\xb5\x96\x0b\x87\x5d\xa7\x7c"
  33977. "\xb0\xc2\xf6\x2e\x57\x97\x2c\xdc"
  33978. "\x54\x1c\x34\x72\xde\x0c\x68\x39"
  33979. "\x9d\x32\xa5\x75\x92\x13\x32\xea"
  33980. "\x90\x27\xbd\x5b\x1d\xb9\x21\x02"
  33981. "\x1c\xcc\xba\x97\x5e\x49\x58\xe8"
  33982. "\xac\x8b\xf3\xce\x3c\xf0\x00\xe9"
  33983. "\x6c\xae\xe9\x77\xdf\xf4\x02\xcd"
  33984. "\x55\x25\x89\x9e\x90\xf3\x6b\x8f"
  33985. "\xb7\xd6\x47\x98\x26\x2f\x31\x2f"
  33986. "\x8d\xbf\x54\xcd\x99\xeb\x80\xd7"
  33987. "\xac\xc3\x08\xc2\xa6\x32\xf1\x24"
  33988. "\x76\x7c\x4f\x78\x53\x55\xfb\x00"
  33989. "\x8a\xd6\x52\x53\x25\x45\xfb\x0a"
  33990. "\x6b\xb9\xbe\x3c\x5e\x11\xcc\x6a"
  33991. "\xdd\xfc\xa7\xc4\x79\x4d\xbd\xfb"
  33992. "\xce\x3a\xf1\x7a\xda\xeb\xfe\x64"
  33993. "\x28\x3d\x0f\xee\x80\xba\x0c\xf8"
  33994. "\xe9\x5b\x3a\xd4\xae\xc9\xf3\x0e"
  33995. "\xe8\x5d\xc5\x5c\x0b\x20\x20\xee"
  33996. "\x40\x0d\xde\x07\xa7\x14\xb4\x90"
  33997. "\xb6\xbd\x3b\xae\x7d\x2b\xa7\xc7"
  33998. "\xdc\x0b\x4c\x5d\x65\xb0\xd2\xc5"
  33999. "\x79\x61\x23\xe0\xa2\x99\x73\x55"
  34000. "\xad\xc6\xfb\xc7\x54\xb5\x98\x1f"
  34001. "\x8c\x86\xc2\x3f\xbe\x5e\xea\x64"
  34002. "\xa3\x60\x18\x9f\x80\xaf\x52\x74"
  34003. "\x1a\xfe\x22\xc2\x92\x67\x40\x02"
  34004. "\x08\xee\x67\x5b\x67\xe0\x3d\xde"
  34005. "\x7a\xaf\x8e\x28\xf3\x5e\x0e\xf4"
  34006. "\x48\x56\xaa\x85\x22\xd8\x36\xed"
  34007. "\x3b\x3d\x68\x69\x30\xbc\x71\x23"
  34008. "\xb1\x6e\x61\x03\x89\x44\x03\xf4"
  34009. "\x32\xaa\x4c\x40\x9f\x69\xfb\x70"
  34010. "\x91\xcc\x1f\x11\xbd\x76\x67\xe6"
  34011. "\x10\x8b\x29\x39\x68\xea\x4e\x6d"
  34012. "\xae\xfb\x40\xcf\xe2\xd0\x0d\x8d"
  34013. "\x6f\xed\x9b\x8d\x64\x7a\x94\x8e"
  34014. "\x32\x38\x78\xeb\x7d\x5f\xf9\x4d"
  34015. "\x13\xbe\x21\xea\x16\xe7\x5c\xee"
  34016. "\xcd\xf6\x5f\xc6\x45\xb2\x8f\x2b"
  34017. "\xb5\x93\x3e\x45\xdb\xfd\xa2\x6a"
  34018. "\xec\x83\x92\x99\x87\x47\xe0\x7c"
  34019. "\xa2\x7b\xc4\x2a\xcd\xc0\x81\x03"
  34020. "\x98\xb0\x87\xb6\x86\x13\x64\x33"
  34021. "\x4c\xd7\x99\xbf\xdb\x7b\x6e\xaa"
  34022. "\x76\xcc\xa0\x74\x1b\xa3\x6e\x83"
  34023. "\xd4\xba\x7a\x84\x9d\x91\x71\xcd"
  34024. "\x60\x2d\x56\xfd\x26\x35\xcb\xeb"
  34025. "\xac\xe9\xee\xa4\xfc\x18\x5b\x91"
  34026. "\xd5\xfe\x84\x45\xe0\xc7\xfd\x11"
  34027. "\xe9\x00\xb6\x54\xdf\xe1\x94\xde"
  34028. "\x2b\x70\x9f\x94\x7f\x15\x0e\x83"
  34029. "\x63\x10\xb3\xf5\xea\xd3\xe8\xd1"
  34030. "\xa5\xfc\x17\x19\x68\x9a\xbc\x17"
  34031. "\x30\x43\x0a\x1a\x33\x92\xd4\x2a"
  34032. "\x2e\x68\x99\xbc\x49\xf0\x68\xe3"
  34033. "\xf0\x1f\xcb\xcc\xfa\xbb\x05\x56"
  34034. "\x46\x84\x8b\x69\x83\x64\xc5\xe0"
  34035. "\xc5\x52\x99\x07\x3c\xa6\x5c\xaf"
  34036. "\xa3\xde\xd7\xdb\x43\xe6\xb7\x76"
  34037. "\x4e\x4d\xd6\x71\x60\x63\x4a\x0c"
  34038. "\x5f\xae\x25\x84\x22\x90\x5f\x26"
  34039. "\x61\x4d\x8f\xaf\xc9\x22\xf2\x05"
  34040. "\xcf\xc1\xdc\x68\xe5\x57\x8e\x24"
  34041. "\x1b\x30\x59\xca\xd7\x0d\xc3\xd3"
  34042. "\x52\x9e\x09\x3e\x0e\xaf\xdb\x5f"
  34043. "\xc7\x2b\xde\x3a\xfd\xad\x93\x04"
  34044. "\x74\x06\x89\x0e\x90\xeb\x85\xff"
  34045. "\xe6\x3c\x12\x42\xf4\xfa\x80\x75"
  34046. "\x5e\x4e\xd7\x2f\x93\x0b\x34\x41"
  34047. "\x02\x85\x68\xd0\x03\x12\xde\x92"
  34048. "\x54\x7a\x7e\xfb\x55\xe7\x88\xfb"
  34049. "\xa4\xa9\xf2\xd1\xc6\x70\x06\x37"
  34050. "\x25\xee\xa7\x6e\xd9\x89\x86\x50"
  34051. "\x2e\x07\xdb\xfb\x2a\x86\x45\x0e"
  34052. "\x91\xf4\x7c\xbb\x12\x60\xe8\x3f"
  34053. "\x71\xbe\x8f\x9d\x26\xef\xd9\x89"
  34054. "\xc4\x8f\xd8\xc5\x73\xd8\x84\xaa"
  34055. "\x2f\xad\x22\x1e\x7e\xcf\xa2\x08"
  34056. "\x23\x45\x89\x42\xa0\x30\xeb\xbf"
  34057. "\xa1\xed\xad\xd5\x76\xfa\x24\x8f"
  34058. "\x98",
  34059. .rlen = 1281,
  34060. },
  34061. };
  34062. static struct cipher_testvec xchacha20_tv_template[] = {
  34063. { /* from libsodium test/default/xchacha20.c */
  34064. .key = "\x79\xc9\x97\x98\xac\x67\x30\x0b"
  34065. "\xbb\x27\x04\xc9\x5c\x34\x1e\x32"
  34066. "\x45\xf3\xdc\xb2\x17\x61\xb9\x8e"
  34067. "\x52\xff\x45\xb2\x4f\x30\x4f\xc4",
  34068. .klen = 32,
  34069. .iv = "\xb3\x3f\xfd\x30\x96\x47\x9b\xcf"
  34070. "\xbc\x9a\xee\x49\x41\x76\x88\xa0"
  34071. "\xa2\x55\x4f\x8d\x95\x38\x94\x19"
  34072. "\x00\x00\x00\x00\x00\x00\x00\x00",
  34073. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  34074. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34075. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34076. "\x00\x00\x00\x00\x00",
  34077. .result = "\xc6\xe9\x75\x81\x60\x08\x3a\xc6"
  34078. "\x04\xef\x90\xe7\x12\xce\x6e\x75"
  34079. "\xd7\x79\x75\x90\x74\x4e\x0c\xf0"
  34080. "\x60\xf0\x13\x73\x9c",
  34081. .ilen = 29,
  34082. .rlen = 29,
  34083. }, { /* from libsodium test/default/xchacha20.c */
  34084. .key = "\x9d\x23\xbd\x41\x49\xcb\x97\x9c"
  34085. "\xcf\x3c\x5c\x94\xdd\x21\x7e\x98"
  34086. "\x08\xcb\x0e\x50\xcd\x0f\x67\x81"
  34087. "\x22\x35\xea\xaf\x60\x1d\x62\x32",
  34088. .klen = 32,
  34089. .iv = "\xc0\x47\x54\x82\x66\xb7\xc3\x70"
  34090. "\xd3\x35\x66\xa2\x42\x5c\xbf\x30"
  34091. "\xd8\x2d\x1e\xaf\x52\x94\x10\x9e"
  34092. "\x00\x00\x00\x00\x00\x00\x00\x00",
  34093. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  34094. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34095. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34096. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34097. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34098. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34099. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34100. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34101. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34102. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34103. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34104. "\x00\x00\x00",
  34105. .result = "\xa2\x12\x09\x09\x65\x94\xde\x8c"
  34106. "\x56\x67\xb1\xd1\x3a\xd9\x3f\x74"
  34107. "\x41\x06\xd0\x54\xdf\x21\x0e\x47"
  34108. "\x82\xcd\x39\x6f\xec\x69\x2d\x35"
  34109. "\x15\xa2\x0b\xf3\x51\xee\xc0\x11"
  34110. "\xa9\x2c\x36\x78\x88\xbc\x46\x4c"
  34111. "\x32\xf0\x80\x7a\xcd\x6c\x20\x3a"
  34112. "\x24\x7e\x0d\xb8\x54\x14\x84\x68"
  34113. "\xe9\xf9\x6b\xee\x4c\xf7\x18\xd6"
  34114. "\x8d\x5f\x63\x7c\xbd\x5a\x37\x64"
  34115. "\x57\x78\x8e\x6f\xae\x90\xfc\x31"
  34116. "\x09\x7c\xfc",
  34117. .ilen = 91,
  34118. .rlen = 91,
  34119. }, { /* Taken from the ChaCha20 test vectors, appended 16 random bytes
  34120. to nonce, and recomputed the ciphertext with libsodium */
  34121. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  34122. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34123. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34124. "\x00\x00\x00\x00\x00\x00\x00\x00",
  34125. .klen = 32,
  34126. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  34127. "\x00\x00\x00\x00\x67\xc6\x69\x73"
  34128. "\x51\xff\x4a\xec\x29\xcd\xba\xab"
  34129. "\x00\x00\x00\x00\x00\x00\x00\x00",
  34130. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  34131. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34132. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34133. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34134. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34135. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34136. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34137. "\x00\x00\x00\x00\x00\x00\x00\x00",
  34138. .result = "\x9c\x49\x2a\xe7\x8a\x2f\x93\xc7"
  34139. "\xb3\x33\x6f\x82\x17\xd8\xc4\x1e"
  34140. "\xad\x80\x11\x11\x1d\x4c\x16\x18"
  34141. "\x07\x73\x9b\x4f\xdb\x7c\xcb\x47"
  34142. "\xfd\xef\x59\x74\xfa\x3f\xe5\x4c"
  34143. "\x9b\xd0\xea\xbc\xba\x56\xad\x32"
  34144. "\x03\xdc\xf8\x2b\xc1\xe1\x75\x67"
  34145. "\x23\x7b\xe6\xfc\xd4\x03\x86\x54",
  34146. .ilen = 64,
  34147. .rlen = 64,
  34148. }, { /* Taken from the ChaCha20 test vectors, appended 16 random bytes
  34149. to nonce, and recomputed the ciphertext with libsodium */
  34150. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  34151. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34152. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34153. "\x00\x00\x00\x00\x00\x00\x00\x01",
  34154. .klen = 32,
  34155. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  34156. "\x00\x00\x00\x02\xf2\xfb\xe3\x46"
  34157. "\x7c\xc2\x54\xf8\x1b\xe8\xe7\x8d"
  34158. "\x01\x00\x00\x00\x00\x00\x00\x00",
  34159. .input = "\x41\x6e\x79\x20\x73\x75\x62\x6d"
  34160. "\x69\x73\x73\x69\x6f\x6e\x20\x74"
  34161. "\x6f\x20\x74\x68\x65\x20\x49\x45"
  34162. "\x54\x46\x20\x69\x6e\x74\x65\x6e"
  34163. "\x64\x65\x64\x20\x62\x79\x20\x74"
  34164. "\x68\x65\x20\x43\x6f\x6e\x74\x72"
  34165. "\x69\x62\x75\x74\x6f\x72\x20\x66"
  34166. "\x6f\x72\x20\x70\x75\x62\x6c\x69"
  34167. "\x63\x61\x74\x69\x6f\x6e\x20\x61"
  34168. "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
  34169. "\x20\x70\x61\x72\x74\x20\x6f\x66"
  34170. "\x20\x61\x6e\x20\x49\x45\x54\x46"
  34171. "\x20\x49\x6e\x74\x65\x72\x6e\x65"
  34172. "\x74\x2d\x44\x72\x61\x66\x74\x20"
  34173. "\x6f\x72\x20\x52\x46\x43\x20\x61"
  34174. "\x6e\x64\x20\x61\x6e\x79\x20\x73"
  34175. "\x74\x61\x74\x65\x6d\x65\x6e\x74"
  34176. "\x20\x6d\x61\x64\x65\x20\x77\x69"
  34177. "\x74\x68\x69\x6e\x20\x74\x68\x65"
  34178. "\x20\x63\x6f\x6e\x74\x65\x78\x74"
  34179. "\x20\x6f\x66\x20\x61\x6e\x20\x49"
  34180. "\x45\x54\x46\x20\x61\x63\x74\x69"
  34181. "\x76\x69\x74\x79\x20\x69\x73\x20"
  34182. "\x63\x6f\x6e\x73\x69\x64\x65\x72"
  34183. "\x65\x64\x20\x61\x6e\x20\x22\x49"
  34184. "\x45\x54\x46\x20\x43\x6f\x6e\x74"
  34185. "\x72\x69\x62\x75\x74\x69\x6f\x6e"
  34186. "\x22\x2e\x20\x53\x75\x63\x68\x20"
  34187. "\x73\x74\x61\x74\x65\x6d\x65\x6e"
  34188. "\x74\x73\x20\x69\x6e\x63\x6c\x75"
  34189. "\x64\x65\x20\x6f\x72\x61\x6c\x20"
  34190. "\x73\x74\x61\x74\x65\x6d\x65\x6e"
  34191. "\x74\x73\x20\x69\x6e\x20\x49\x45"
  34192. "\x54\x46\x20\x73\x65\x73\x73\x69"
  34193. "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
  34194. "\x77\x65\x6c\x6c\x20\x61\x73\x20"
  34195. "\x77\x72\x69\x74\x74\x65\x6e\x20"
  34196. "\x61\x6e\x64\x20\x65\x6c\x65\x63"
  34197. "\x74\x72\x6f\x6e\x69\x63\x20\x63"
  34198. "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
  34199. "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
  34200. "\x64\x65\x20\x61\x74\x20\x61\x6e"
  34201. "\x79\x20\x74\x69\x6d\x65\x20\x6f"
  34202. "\x72\x20\x70\x6c\x61\x63\x65\x2c"
  34203. "\x20\x77\x68\x69\x63\x68\x20\x61"
  34204. "\x72\x65\x20\x61\x64\x64\x72\x65"
  34205. "\x73\x73\x65\x64\x20\x74\x6f",
  34206. .result = "\xf9\xab\x7a\x4a\x60\xb8\x5f\xa0"
  34207. "\x50\xbb\x57\xce\xef\x8c\xc1\xd9"
  34208. "\x24\x15\xb3\x67\x5e\x7f\x01\xf6"
  34209. "\x1c\x22\xf6\xe5\x71\xb1\x43\x64"
  34210. "\x63\x05\xd5\xfc\x5c\x3d\xc0\x0e"
  34211. "\x23\xef\xd3\x3b\xd9\xdc\x7f\xa8"
  34212. "\x58\x26\xb3\xd0\xc2\xd5\x04\x3f"
  34213. "\x0a\x0e\x8f\x17\xe4\xcd\xf7\x2a"
  34214. "\xb4\x2c\x09\xe4\x47\xec\x8b\xfb"
  34215. "\x59\x37\x7a\xa1\xd0\x04\x7e\xaa"
  34216. "\xf1\x98\x5f\x24\x3d\x72\x9a\x43"
  34217. "\xa4\x36\x51\x92\x22\x87\xff\x26"
  34218. "\xce\x9d\xeb\x59\x78\x84\x5e\x74"
  34219. "\x97\x2e\x63\xc0\xef\x29\xf7\x8a"
  34220. "\xb9\xee\x35\x08\x77\x6a\x35\x9a"
  34221. "\x3e\xe6\x4f\x06\x03\x74\x1b\xc1"
  34222. "\x5b\xb3\x0b\x89\x11\x07\xd3\xb7"
  34223. "\x53\xd6\x25\x04\xd9\x35\xb4\x5d"
  34224. "\x4c\x33\x5a\xc2\x42\x4c\xe6\xa4"
  34225. "\x97\x6e\x0e\xd2\xb2\x8b\x2f\x7f"
  34226. "\x28\xe5\x9f\xac\x4b\x2e\x02\xab"
  34227. "\x85\xfa\xa9\x0d\x7c\x2d\x10\xe6"
  34228. "\x91\xab\x55\x63\xf0\xde\x3a\x94"
  34229. "\x25\x08\x10\x03\xc2\x68\xd1\xf4"
  34230. "\xaf\x7d\x9c\x99\xf7\x86\x96\x30"
  34231. "\x60\xfc\x0b\xe6\xa8\x80\x15\xb0"
  34232. "\x81\xb1\x0c\xbe\xb9\x12\x18\x25"
  34233. "\xe9\x0e\xb1\xe7\x23\xb2\xef\x4a"
  34234. "\x22\x8f\xc5\x61\x89\xd4\xe7\x0c"
  34235. "\x64\x36\x35\x61\xb6\x34\x60\xf7"
  34236. "\x7b\x61\x37\x37\x12\x10\xa2\xf6"
  34237. "\x7e\xdb\x7f\x39\x3f\xb6\x8e\x89"
  34238. "\x9e\xf3\xfe\x13\x98\xbb\x66\x5a"
  34239. "\xec\xea\xab\x3f\x9c\x87\xc4\x8c"
  34240. "\x8a\x04\x18\x49\xfc\x77\x11\x50"
  34241. "\x16\xe6\x71\x2b\xee\xc0\x9c\xb6"
  34242. "\x87\xfd\x80\xff\x0b\x1d\x73\x38"
  34243. "\xa4\x1d\x6f\xae\xe4\x12\xd7\x93"
  34244. "\x9d\xcd\x38\x26\x09\x40\x52\xcd"
  34245. "\x67\x01\x67\x26\xe0\x3e\x98\xa8"
  34246. "\xe8\x1a\x13\x41\xbb\x90\x4d\x87"
  34247. "\xbb\x42\x82\x39\xce\x3a\xd0\x18"
  34248. "\x6d\x7b\x71\x8f\xbb\x2c\x6a\xd1"
  34249. "\xbd\xf5\xc7\x8a\x7e\xe1\x1e\x0f"
  34250. "\x0d\x0d\x13\x7c\xd9\xd8\x3c\x91"
  34251. "\xab\xff\x1f\x12\xc3\xee\xe5\x65"
  34252. "\x12\x8d\x7b\x61\xe5\x1f\x98",
  34253. .ilen = 375,
  34254. .rlen = 375,
  34255. .also_non_np = 1,
  34256. .np = 3,
  34257. .tap = { 375 - 20, 4, 16 },
  34258. }, { /* Taken from the ChaCha20 test vectors, appended 16 random bytes
  34259. to nonce, and recomputed the ciphertext with libsodium */
  34260. .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
  34261. "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
  34262. "\x47\x39\x17\xc1\x40\x2b\x80\x09"
  34263. "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
  34264. .klen = 32,
  34265. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  34266. "\x00\x00\x00\x02\x76\x5a\x2e\x63"
  34267. "\x33\x9f\xc9\x9a\x66\x32\x0d\xb7"
  34268. "\x2a\x00\x00\x00\x00\x00\x00\x00",
  34269. .input = "\x27\x54\x77\x61\x73\x20\x62\x72"
  34270. "\x69\x6c\x6c\x69\x67\x2c\x20\x61"
  34271. "\x6e\x64\x20\x74\x68\x65\x20\x73"
  34272. "\x6c\x69\x74\x68\x79\x20\x74\x6f"
  34273. "\x76\x65\x73\x0a\x44\x69\x64\x20"
  34274. "\x67\x79\x72\x65\x20\x61\x6e\x64"
  34275. "\x20\x67\x69\x6d\x62\x6c\x65\x20"
  34276. "\x69\x6e\x20\x74\x68\x65\x20\x77"
  34277. "\x61\x62\x65\x3a\x0a\x41\x6c\x6c"
  34278. "\x20\x6d\x69\x6d\x73\x79\x20\x77"
  34279. "\x65\x72\x65\x20\x74\x68\x65\x20"
  34280. "\x62\x6f\x72\x6f\x67\x6f\x76\x65"
  34281. "\x73\x2c\x0a\x41\x6e\x64\x20\x74"
  34282. "\x68\x65\x20\x6d\x6f\x6d\x65\x20"
  34283. "\x72\x61\x74\x68\x73\x20\x6f\x75"
  34284. "\x74\x67\x72\x61\x62\x65\x2e",
  34285. .result = "\x95\xb9\x51\xe7\x8f\xb4\xa4\x03"
  34286. "\xca\x37\xcc\xde\x60\x1d\x8c\xe2"
  34287. "\xf1\xbb\x8a\x13\x7f\x61\x85\xcc"
  34288. "\xad\xf4\xf0\xdc\x86\xa6\x1e\x10"
  34289. "\xbc\x8e\xcb\x38\x2b\xa5\xc8\x8f"
  34290. "\xaa\x03\x3d\x53\x4a\x42\xb1\x33"
  34291. "\xfc\xd3\xef\xf0\x8e\x7e\x10\x9c"
  34292. "\x6f\x12\x5e\xd4\x96\xfe\x5b\x08"
  34293. "\xb6\x48\xf0\x14\x74\x51\x18\x7c"
  34294. "\x07\x92\xfc\xac\x9d\xf1\x94\xc0"
  34295. "\xc1\x9d\xc5\x19\x43\x1f\x1d\xbb"
  34296. "\x07\xf0\x1b\x14\x25\x45\xbb\xcb"
  34297. "\x5c\xe2\x8b\x28\xf3\xcf\x47\x29"
  34298. "\x27\x79\x67\x24\xa6\x87\xc2\x11"
  34299. "\x65\x03\xfa\x45\xf7\x9e\x53\x7a"
  34300. "\x99\xf1\x82\x25\x4f\x8d\x07",
  34301. .ilen = 127,
  34302. .rlen = 127,
  34303. }, { /* Taken from the ChaCha20 test vectors, appended 16 random bytes
  34304. to nonce, and recomputed the ciphertext with libsodium */
  34305. .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
  34306. "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
  34307. "\x47\x39\x17\xc1\x40\x2b\x80\x09"
  34308. "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
  34309. .klen = 32,
  34310. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  34311. "\x00\x00\x00\x01\x31\x58\xa3\x5a"
  34312. "\x25\x5d\x05\x17\x58\xe9\x5e\xd4"
  34313. "\x1c\x00\x00\x00\x00\x00\x00\x00",
  34314. .input = "\x49\xee\xe0\xdc\x24\x90\x40\xcd"
  34315. "\xc5\x40\x8f\x47\x05\xbc\xdd\x81"
  34316. "\x47\xc6\x8d\xe6\xb1\x8f\xd7\xcb"
  34317. "\x09\x0e\x6e\x22\x48\x1f\xbf\xb8"
  34318. "\x5c\xf7\x1e\x8a\xc1\x23\xf2\xd4"
  34319. "\x19\x4b\x01\x0f\x4e\xa4\x43\xce"
  34320. "\x01\xc6\x67\xda\x03\x91\x18\x90"
  34321. "\xa5\xa4\x8e\x45\x03\xb3\x2d\xac"
  34322. "\x74\x92\xd3\x53\x47\xc8\xdd\x25"
  34323. "\x53\x6c\x02\x03\x87\x0d\x11\x0c"
  34324. "\x58\xe3\x12\x18\xfd\x2a\x5b\x40"
  34325. "\x0c\x30\xf0\xb8\x3f\x43\xce\xae"
  34326. "\x65\x3a\x7d\x7c\xf4\x54\xaa\xcc"
  34327. "\x33\x97\xc3\x77\xba\xc5\x70\xde"
  34328. "\xd7\xd5\x13\xa5\x65\xc4\x5f\x0f"
  34329. "\x46\x1a\x0d\x97\xb5\xf3\xbb\x3c"
  34330. "\x84\x0f\x2b\xc5\xaa\xea\xf2\x6c"
  34331. "\xc9\xb5\x0c\xee\x15\xf3\x7d\xbe"
  34332. "\x9f\x7b\x5a\xa6\xae\x4f\x83\xb6"
  34333. "\x79\x49\x41\xf4\x58\x18\xcb\x86"
  34334. "\x7f\x30\x0e\xf8\x7d\x44\x36\xea"
  34335. "\x75\xeb\x88\x84\x40\x3c\xad\x4f"
  34336. "\x6f\x31\x6b\xaa\x5d\xe5\xa5\xc5"
  34337. "\x21\x66\xe9\xa7\xe3\xb2\x15\x88"
  34338. "\x78\xf6\x79\xa1\x59\x47\x12\x4e"
  34339. "\x9f\x9f\x64\x1a\xa0\x22\x5b\x08"
  34340. "\xbe\x7c\x36\xc2\x2b\x66\x33\x1b"
  34341. "\xdd\x60\x71\xf7\x47\x8c\x61\xc3"
  34342. "\xda\x8a\x78\x1e\x16\xfa\x1e\x86"
  34343. "\x81\xa6\x17\x2a\xa7\xb5\xc2\xe7"
  34344. "\xa4\xc7\x42\xf1\xcf\x6a\xca\xb4"
  34345. "\x45\xcf\xf3\x93\xf0\xe7\xea\xf6"
  34346. "\xf4\xe6\x33\x43\x84\x93\xa5\x67"
  34347. "\x9b\x16\x58\x58\x80\x0f\x2b\x5c"
  34348. "\x24\x74\x75\x7f\x95\x81\xb7\x30"
  34349. "\x7a\x33\xa7\xf7\x94\x87\x32\x27"
  34350. "\x10\x5d\x14\x4c\x43\x29\xdd\x26"
  34351. "\xbd\x3e\x3c\x0e\xfe\x0e\xa5\x10"
  34352. "\xea\x6b\x64\xfd\x73\xc6\xed\xec"
  34353. "\xa8\xc9\xbf\xb3\xba\x0b\x4d\x07"
  34354. "\x70\xfc\x16\xfd\x79\x1e\xd7\xc5"
  34355. "\x49\x4e\x1c\x8b\x8d\x79\x1b\xb1"
  34356. "\xec\xca\x60\x09\x4c\x6a\xd5\x09"
  34357. "\x49\x46\x00\x88\x22\x8d\xce\xea"
  34358. "\xb1\x17\x11\xde\x42\xd2\x23\xc1"
  34359. "\x72\x11\xf5\x50\x73\x04\x40\x47"
  34360. "\xf9\x5d\xe7\xa7\x26\xb1\x7e\xb0"
  34361. "\x3f\x58\xc1\x52\xab\x12\x67\x9d"
  34362. "\x3f\x43\x4b\x68\xd4\x9c\x68\x38"
  34363. "\x07\x8a\x2d\x3e\xf3\xaf\x6a\x4b"
  34364. "\xf9\xe5\x31\x69\x22\xf9\xa6\x69"
  34365. "\xc6\x9c\x96\x9a\x12\x35\x95\x1d"
  34366. "\x95\xd5\xdd\xbe\xbf\x93\x53\x24"
  34367. "\xfd\xeb\xc2\x0a\x64\xb0\x77\x00"
  34368. "\x6f\x88\xc4\x37\x18\x69\x7c\xd7"
  34369. "\x41\x92\x55\x4c\x03\xa1\x9a\x4b"
  34370. "\x15\xe5\xdf\x7f\x37\x33\x72\xc1"
  34371. "\x8b\x10\x67\xa3\x01\x57\x94\x25"
  34372. "\x7b\x38\x71\x7e\xdd\x1e\xcc\x73"
  34373. "\x55\xd2\x8e\xeb\x07\xdd\xf1\xda"
  34374. "\x58\xb1\x47\x90\xfe\x42\x21\x72"
  34375. "\xa3\x54\x7a\xa0\x40\xec\x9f\xdd"
  34376. "\xc6\x84\x6e\xca\xae\xe3\x68\xb4"
  34377. "\x9d\xe4\x78\xff\x57\xf2\xf8\x1b"
  34378. "\x03\xa1\x31\xd9\xde\x8d\xf5\x22"
  34379. "\x9c\xdd\x20\xa4\x1e\x27\xb1\x76"
  34380. "\x4f\x44\x55\xe2\x9b\xa1\x9c\xfe"
  34381. "\x54\xf7\x27\x1b\xf4\xde\x02\xf5"
  34382. "\x1b\x55\x48\x5c\xdc\x21\x4b\x9e"
  34383. "\x4b\x6e\xed\x46\x23\xdc\x65\xb2"
  34384. "\xcf\x79\x5f\x28\xe0\x9e\x8b\xe7"
  34385. "\x4c\x9d\x8a\xff\xc1\xa6\x28\xb8"
  34386. "\x65\x69\x8a\x45\x29\xef\x74\x85"
  34387. "\xde\x79\xc7\x08\xae\x30\xb0\xf4"
  34388. "\xa3\x1d\x51\x41\xab\xce\xcb\xf6"
  34389. "\xb5\xd8\x6d\xe0\x85\xe1\x98\xb3"
  34390. "\x43\xbb\x86\x83\x0a\xa0\xf5\xb7"
  34391. "\x04\x0b\xfa\x71\x1f\xb0\xf6\xd9"
  34392. "\x13\x00\x15\xf0\xc7\xeb\x0d\x5a"
  34393. "\x9f\xd7\xb9\x6c\x65\x14\x22\x45"
  34394. "\x6e\x45\x32\x3e\x7e\x60\x1a\x12"
  34395. "\x97\x82\x14\xfb\xaa\x04\x22\xfa"
  34396. "\xa0\xe5\x7e\x8c\x78\x02\x48\x5d"
  34397. "\x78\x33\x5a\x7c\xad\xdb\x29\xce"
  34398. "\xbb\x8b\x61\xa4\xb7\x42\xe2\xac"
  34399. "\x8b\x1a\xd9\x2f\x0b\x8b\x62\x21"
  34400. "\x83\x35\x7e\xad\x73\xc2\xb5\x6c"
  34401. "\x10\x26\x38\x07\xe5\xc7\x36\x80"
  34402. "\xe2\x23\x12\x61\xf5\x48\x4b\x2b"
  34403. "\xc5\xdf\x15\xd9\x87\x01\xaa\xac"
  34404. "\x1e\x7c\xad\x73\x78\x18\x63\xe0"
  34405. "\x8b\x9f\x81\xd8\x12\x6a\x28\x10"
  34406. "\xbe\x04\x68\x8a\x09\x7c\x1b\x1c"
  34407. "\x83\x66\x80\x47\x80\xe8\xfd\x35"
  34408. "\x1c\x97\x6f\xae\x49\x10\x66\xcc"
  34409. "\xc6\xd8\xcc\x3a\x84\x91\x20\x77"
  34410. "\x72\xe4\x24\xd2\x37\x9f\xc5\xc9"
  34411. "\x25\x94\x10\x5f\x40\x00\x64\x99"
  34412. "\xdc\xae\xd7\x21\x09\x78\x50\x15"
  34413. "\xac\x5f\xc6\x2c\xa2\x0b\xa9\x39"
  34414. "\x87\x6e\x6d\xab\xde\x08\x51\x16"
  34415. "\xc7\x13\xe9\xea\xed\x06\x8e\x2c"
  34416. "\xf8\x37\x8c\xf0\xa6\x96\x8d\x43"
  34417. "\xb6\x98\x37\xb2\x43\xed\xde\xdf"
  34418. "\x89\x1a\xe7\xeb\x9d\xa1\x7b\x0b"
  34419. "\x77\xb0\xe2\x75\xc0\xf1\x98\xd9"
  34420. "\x80\x55\xc9\x34\x91\xd1\x59\xe8"
  34421. "\x4b\x0f\xc1\xa9\x4b\x7a\x84\x06"
  34422. "\x20\xa8\x5d\xfa\xd1\xde\x70\x56"
  34423. "\x2f\x9e\x91\x9c\x20\xb3\x24\xd8"
  34424. "\x84\x3d\xe1\x8c\x7e\x62\x52\xe5"
  34425. "\x44\x4b\x9f\xc2\x93\x03\xea\x2b"
  34426. "\x59\xc5\xfa\x3f\x91\x2b\xbb\x23"
  34427. "\xf5\xb2\x7b\xf5\x38\xaf\xb3\xee"
  34428. "\x63\xdc\x7b\xd1\xff\xaa\x8b\xab"
  34429. "\x82\x6b\x37\x04\xeb\x74\xbe\x79"
  34430. "\xb9\x83\x90\xef\x20\x59\x46\xff"
  34431. "\xe9\x97\x3e\x2f\xee\xb6\x64\x18"
  34432. "\x38\x4c\x7a\x4a\xf9\x61\xe8\x9a"
  34433. "\xa1\xb5\x01\xa6\x47\xd3\x11\xd4"
  34434. "\xce\xd3\x91\x49\x88\xc7\xb8\x4d"
  34435. "\xb1\xb9\x07\x6d\x16\x72\xae\x46"
  34436. "\x5e\x03\xa1\x4b\xb6\x02\x30\xa8"
  34437. "\x3d\xa9\x07\x2a\x7c\x19\xe7\x62"
  34438. "\x87\xe3\x82\x2f\x6f\xe1\x09\xd9"
  34439. "\x94\x97\xea\xdd\x58\x9e\xae\x76"
  34440. "\x7e\x35\xe5\xb4\xda\x7e\xf4\xde"
  34441. "\xf7\x32\x87\xcd\x93\xbf\x11\x56"
  34442. "\x11\xbe\x08\x74\xe1\x69\xad\xe2"
  34443. "\xd7\xf8\x86\x75\x8a\x3c\xa4\xbe"
  34444. "\x70\xa7\x1b\xfc\x0b\x44\x2a\x76"
  34445. "\x35\xea\x5d\x85\x81\xaf\x85\xeb"
  34446. "\xa0\x1c\x61\xc2\xf7\x4f\xa5\xdc"
  34447. "\x02\x7f\xf6\x95\x40\x6e\x8a\x9a"
  34448. "\xf3\x5d\x25\x6e\x14\x3a\x22\xc9"
  34449. "\x37\x1c\xeb\x46\x54\x3f\xa5\x91"
  34450. "\xc2\xb5\x8c\xfe\x53\x08\x97\x32"
  34451. "\x1b\xb2\x30\x27\xfe\x25\x5d\xdc"
  34452. "\x08\x87\xd0\xe5\x94\x1a\xd4\xf1"
  34453. "\xfe\xd6\xb4\xa3\xe6\x74\x81\x3c"
  34454. "\x1b\xb7\x31\xa7\x22\xfd\xd4\xdd"
  34455. "\x20\x4e\x7c\x51\xb0\x60\x73\xb8"
  34456. "\x9c\xac\x91\x90\x7e\x01\xb0\xe1"
  34457. "\x8a\x2f\x75\x1c\x53\x2a\x98\x2a"
  34458. "\x06\x52\x95\x52\xb2\xe9\x25\x2e"
  34459. "\x4c\xe2\x5a\x00\xb2\x13\x81\x03"
  34460. "\x77\x66\x0d\xa5\x99\xda\x4e\x8c"
  34461. "\xac\xf3\x13\x53\x27\x45\xaf\x64"
  34462. "\x46\xdc\xea\x23\xda\x97\xd1\xab"
  34463. "\x7d\x6c\x30\x96\x1f\xbc\x06\x34"
  34464. "\x18\x0b\x5e\x21\x35\x11\x8d\x4c"
  34465. "\xe0\x2d\xe9\x50\x16\x74\x81\xa8"
  34466. "\xb4\x34\xb9\x72\x42\xa6\xcc\xbc"
  34467. "\xca\x34\x83\x27\x10\x5b\x68\x45"
  34468. "\x8f\x52\x22\x0c\x55\x3d\x29\x7c"
  34469. "\xe3\xc0\x66\x05\x42\x91\x5f\x58"
  34470. "\xfe\x4a\x62\xd9\x8c\xa9\x04\x19"
  34471. "\x04\xa9\x08\x4b\x57\xfc\x67\x53"
  34472. "\x08\x7c\xbc\x66\x8a\xb0\xb6\x9f"
  34473. "\x92\xd6\x41\x7c\x5b\x2a\x00\x79"
  34474. "\x72",
  34475. .result = "\x3a\x92\xee\x53\x31\xaf\x2b\x60"
  34476. "\x5f\x55\x8d\x00\x5d\xfc\x74\x97"
  34477. "\x28\x54\xf4\xa5\x75\xf1\x9b\x25"
  34478. "\x62\x1c\xc0\xe0\x13\xc8\x87\x53"
  34479. "\xd0\xf3\xa7\x97\x1f\x3b\x1e\xea"
  34480. "\xe0\xe5\x2a\xd1\xdd\xa4\x3b\x50"
  34481. "\x45\xa3\x0d\x7e\x1b\xc9\xa0\xad"
  34482. "\xb9\x2c\x54\xa6\xc7\x55\x16\xd0"
  34483. "\xc5\x2e\x02\x44\x35\xd0\x7e\x67"
  34484. "\xf2\xc4\x9b\xcd\x95\x10\xcc\x29"
  34485. "\x4b\xfa\x86\x87\xbe\x40\x36\xbe"
  34486. "\xe1\xa3\x52\x89\x55\x20\x9b\xc2"
  34487. "\xab\xf2\x31\x34\x16\xad\xc8\x17"
  34488. "\x65\x24\xc0\xff\x12\x37\xfe\x5a"
  34489. "\x62\x3b\x59\x47\x6c\x5f\x3a\x8e"
  34490. "\x3b\xd9\x30\xc8\x7f\x2f\x88\xda"
  34491. "\x80\xfd\x02\xda\x7f\x9a\x7a\x73"
  34492. "\x59\xc5\x34\x09\x9a\x11\xcb\xa7"
  34493. "\xfc\xf6\xa1\xa0\x60\xfb\x43\xbb"
  34494. "\xf1\xe9\xd7\xc6\x79\x27\x4e\xff"
  34495. "\x22\xb4\x24\xbf\x76\xee\x47\xb9"
  34496. "\x6d\x3f\x8b\xb0\x9c\x3c\x43\xdd"
  34497. "\xff\x25\x2e\x6d\xa4\x2b\xfb\x5d"
  34498. "\x1b\x97\x6c\x55\x0a\x82\x7a\x7b"
  34499. "\x94\x34\xc2\xdb\x2f\x1f\xc1\xea"
  34500. "\xd4\x4d\x17\x46\x3b\x51\x69\x09"
  34501. "\xe4\x99\x32\x25\xfd\x94\xaf\xfb"
  34502. "\x10\xf7\x4f\xdd\x0b\x3c\x8b\x41"
  34503. "\xb3\x6a\xb7\xd1\x33\xa8\x0c\x2f"
  34504. "\x62\x4c\x72\x11\xd7\x74\xe1\x3b"
  34505. "\x38\x43\x66\x7b\x6c\x36\x48\xe7"
  34506. "\xe3\xe7\x9d\xb9\x42\x73\x7a\x2a"
  34507. "\x89\x20\x1a\x41\x80\x03\xf7\x8f"
  34508. "\x61\x78\x13\xbf\xfe\x50\xf5\x04"
  34509. "\x52\xf9\xac\x47\xf8\x62\x4b\xb2"
  34510. "\x24\xa9\xbf\x64\xb0\x18\x69\xd2"
  34511. "\xf5\xe4\xce\xc8\xb1\x87\x75\xd6"
  34512. "\x2c\x24\x79\x00\x7d\x26\xfb\x44"
  34513. "\xe7\x45\x7a\xee\x58\xa5\x83\xc1"
  34514. "\xb4\x24\xab\x23\x2f\x4d\xd7\x4f"
  34515. "\x1c\xc7\xaa\xa9\x50\xf4\xa3\x07"
  34516. "\x12\x13\x89\x74\xdc\x31\x6a\xb2"
  34517. "\xf5\x0f\x13\x8b\xb9\xdb\x85\x1f"
  34518. "\xf5\xbc\x88\xd9\x95\xea\x31\x6c"
  34519. "\x36\x60\xb6\x49\xdc\xc4\xf7\x55"
  34520. "\x3f\x21\xc1\xb5\x92\x18\x5e\xbc"
  34521. "\x9f\x87\x7f\xe7\x79\x25\x40\x33"
  34522. "\xd6\xb9\x33\xd5\x50\xb3\xc7\x89"
  34523. "\x1b\x12\xa0\x46\xdd\xa7\xd8\x3e"
  34524. "\x71\xeb\x6f\x66\xa1\x26\x0c\x67"
  34525. "\xab\xb2\x38\x58\x17\xd8\x44\x3b"
  34526. "\x16\xf0\x8e\x62\x8d\x16\x10\x00"
  34527. "\x32\x8b\xef\xb9\x28\xd3\xc5\xad"
  34528. "\x0a\x19\xa2\xe4\x03\x27\x7d\x94"
  34529. "\x06\x18\xcd\xd6\x27\x00\xf9\x1f"
  34530. "\xb6\xb3\xfe\x96\x35\x5f\xc4\x1c"
  34531. "\x07\x62\x10\x79\x68\x50\xf1\x7e"
  34532. "\x29\xe7\xc4\xc4\xe7\xee\x54\xd6"
  34533. "\x58\x76\x84\x6d\x8d\xe4\x59\x31"
  34534. "\xe9\xf4\xdc\xa1\x1f\xe5\x1a\xd6"
  34535. "\xe6\x64\x46\xf5\x77\x9c\x60\x7a"
  34536. "\x5e\x62\xe3\x0a\xd4\x9f\x7a\x2d"
  34537. "\x7a\xa5\x0a\x7b\x29\x86\x7a\x74"
  34538. "\x74\x71\x6b\xca\x7d\x1d\xaa\xba"
  34539. "\x39\x84\x43\x76\x35\xfe\x4f\x9b"
  34540. "\xbb\xbb\xb5\x6a\x32\xb5\x5d\x41"
  34541. "\x51\xf0\x5b\x68\x03\x47\x4b\x8a"
  34542. "\xca\x88\xf6\x37\xbd\x73\x51\x70"
  34543. "\x66\xfe\x9e\x5f\x21\x9c\xf3\xdd"
  34544. "\xc3\xea\x27\xf9\x64\x94\xe1\x19"
  34545. "\xa0\xa9\xab\x60\xe0\x0e\xf7\x78"
  34546. "\x70\x86\xeb\xe0\xd1\x5c\x05\xd3"
  34547. "\xd7\xca\xe0\xc0\x47\x47\x34\xee"
  34548. "\x11\xa3\xa3\x54\x98\xb7\x49\x8e"
  34549. "\x84\x28\x70\x2c\x9e\xfb\x55\x54"
  34550. "\x4d\xf8\x86\xf7\x85\x7c\xbd\xf3"
  34551. "\x17\xd8\x47\xcb\xac\xf4\x20\x85"
  34552. "\x34\x66\xad\x37\x2d\x5e\x52\xda"
  34553. "\x8a\xfe\x98\x55\x30\xe7\x2d\x2b"
  34554. "\x19\x10\x8e\x7b\x66\x5e\xdc\xe0"
  34555. "\x45\x1f\x7b\xb4\x08\xfb\x8f\xf6"
  34556. "\x8c\x89\x21\x34\x55\x27\xb2\x76"
  34557. "\xb2\x07\xd9\xd6\x68\x9b\xea\x6b"
  34558. "\x2d\xb4\xc4\x35\xdd\xd2\x79\xae"
  34559. "\xc7\xd6\x26\x7f\x12\x01\x8c\xa7"
  34560. "\xe3\xdb\xa8\xf4\xf7\x2b\xec\x99"
  34561. "\x11\x00\xf1\x35\x8c\xcf\xd5\xc9"
  34562. "\xbd\x91\x36\x39\x70\xcf\x7d\x70"
  34563. "\x47\x1a\xfc\x6b\x56\xe0\x3f\x9c"
  34564. "\x60\x49\x01\x72\xa9\xaf\x2c\x9c"
  34565. "\xe8\xab\xda\x8c\x14\x19\xf3\x75"
  34566. "\x07\x17\x9d\x44\x67\x7a\x2e\xef"
  34567. "\xb7\x83\x35\x4a\xd1\x3d\x1c\x84"
  34568. "\x32\xdd\xaa\xea\xca\x1d\xdc\x72"
  34569. "\x2c\xcc\x43\xcd\x5d\xe3\x21\xa4"
  34570. "\xd0\x8a\x4b\x20\x12\xa3\xd5\x86"
  34571. "\x76\x96\xff\x5f\x04\x57\x0f\xe6"
  34572. "\xba\xe8\x76\x50\x0c\x64\x1d\x83"
  34573. "\x9c\x9b\x9a\x9a\x58\x97\x9c\x5c"
  34574. "\xb4\xa4\xa6\x3e\x19\xeb\x8f\x5a"
  34575. "\x61\xb2\x03\x7b\x35\x19\xbe\xa7"
  34576. "\x63\x0c\xfd\xdd\xf9\x90\x6c\x08"
  34577. "\x19\x11\xd3\x65\x4a\xf5\x96\x92"
  34578. "\x59\xaa\x9c\x61\x0c\x29\xa7\xf8"
  34579. "\x14\x39\x37\xbf\x3c\xf2\x16\x72"
  34580. "\x02\xfa\xa2\xf3\x18\x67\x5d\xcb"
  34581. "\xdc\x4d\xbb\x96\xff\x70\x08\x2d"
  34582. "\xc2\xa8\x52\xe1\x34\x5f\x72\xfe"
  34583. "\x64\xbf\xca\xa7\x74\x38\xfb\x74"
  34584. "\x55\x9c\xfa\x8a\xed\xfb\x98\xeb"
  34585. "\x58\x2e\x6c\xe1\x52\x76\x86\xd7"
  34586. "\xcf\xa1\xa4\xfc\xb2\x47\x41\x28"
  34587. "\xa3\xc1\xe5\xfd\x53\x19\x28\x2b"
  34588. "\x37\x04\x65\x96\x99\x7a\x28\x0f"
  34589. "\x07\x68\x4b\xc7\x52\x0a\x55\x35"
  34590. "\x40\x19\x95\x61\xe8\x59\x40\x1f"
  34591. "\x9d\xbf\x78\x7d\x8f\x84\xff\x6f"
  34592. "\xd0\xd5\x63\xd2\x22\xbd\xc8\x4e"
  34593. "\xfb\xe7\x9f\x06\xe6\xe7\x39\x6d"
  34594. "\x6a\x96\x9f\xf0\x74\x7e\xc9\x35"
  34595. "\xb7\x26\xb8\x1c\x0a\xa6\x27\x2c"
  34596. "\xa2\x2b\xfe\xbe\x0f\x07\x73\xae"
  34597. "\x7f\x7f\x54\xf5\x7c\x6a\x0a\x56"
  34598. "\x49\xd4\x81\xe5\x85\x53\x99\x1f"
  34599. "\x95\x05\x13\x58\x8d\x0e\x1b\x90"
  34600. "\xc3\x75\x48\x64\x58\x98\x67\x84"
  34601. "\xae\xe2\x21\xa2\x8a\x04\x0a\x0b"
  34602. "\x61\xaa\xb0\xd4\x28\x60\x7a\xf8"
  34603. "\xbc\x52\xfb\x24\x7f\xed\x0d\x2a"
  34604. "\x0a\xb2\xf9\xc6\x95\xb5\x11\xc9"
  34605. "\xf4\x0f\x26\x11\xcf\x2a\x57\x87"
  34606. "\x7a\xf3\xe7\x94\x65\xc2\xb5\xb3"
  34607. "\xab\x98\xe3\xc1\x2b\x59\x19\x7c"
  34608. "\xd6\xf3\xf9\xbf\xff\x6d\xc6\x82"
  34609. "\x13\x2f\x4a\x2e\xcd\x26\xfe\x2d"
  34610. "\x01\x70\xf4\xc2\x7f\x1f\x4c\xcb"
  34611. "\x47\x77\x0c\xa0\xa3\x03\xec\xda"
  34612. "\xa9\xbf\x0d\x2d\xae\xe4\xb8\x7b"
  34613. "\xa9\xbc\x08\xb4\x68\x2e\xc5\x60"
  34614. "\x8d\x87\x41\x2b\x0f\x69\xf0\xaf"
  34615. "\x5f\xba\x72\x20\x0f\x33\xcd\x6d"
  34616. "\x36\x7d\x7b\xd5\x05\xf1\x4b\x05"
  34617. "\xc4\xfc\x7f\x80\xb9\x4d\xbd\xf7"
  34618. "\x7c\x84\x07\x01\xc2\x40\x66\x5b"
  34619. "\x98\xc7\x2c\xe3\x97\xfa\xdf\x87"
  34620. "\xa0\x1f\xe9\x21\x42\x0f\x3b\xeb"
  34621. "\x89\x1c\x3b\xca\x83\x61\x77\x68"
  34622. "\x84\xbb\x60\x87\x38\x2e\x25\xd5"
  34623. "\x9e\x04\x41\x70\xac\xda\xc0\x9c"
  34624. "\x9c\x69\xea\x8d\x4e\x55\x2a\x29"
  34625. "\xed\x05\x4b\x7b\x73\x71\x90\x59"
  34626. "\x4d\xc8\xd8\x44\xf0\x4c\xe1\x5e"
  34627. "\x84\x47\x55\xcc\x32\x3f\xe7\x97"
  34628. "\x42\xc6\x32\xac\x40\xe5\xa5\xc7"
  34629. "\x8b\xed\xdb\xf7\x83\xd6\xb1\xc2"
  34630. "\x52\x5e\x34\xb7\xeb\x6e\xd9\xfc"
  34631. "\xe5\x93\x9a\x97\x3e\xb0\xdc\xd9"
  34632. "\xd7\x06\x10\xb6\x1d\x80\x59\xdd"
  34633. "\x0d\xfe\x64\x35\xcd\x5d\xec\xf0"
  34634. "\xba\xd0\x34\xc9\x2d\x91\xc5\x17"
  34635. "\x11",
  34636. .ilen = 1281,
  34637. .rlen = 1281,
  34638. .also_non_np = 1,
  34639. .np = 3,
  34640. .tap = { 1200, 1, 80 },
  34641. },
  34642. };
  34643. /*
  34644. * Same as XChaCha20 test vectors above, but recomputed the ciphertext with
  34645. * XChaCha12, using a modified libsodium.
  34646. */
  34647. static struct cipher_testvec xchacha12_tv_template[] = {
  34648. {
  34649. .key = "\x79\xc9\x97\x98\xac\x67\x30\x0b"
  34650. "\xbb\x27\x04\xc9\x5c\x34\x1e\x32"
  34651. "\x45\xf3\xdc\xb2\x17\x61\xb9\x8e"
  34652. "\x52\xff\x45\xb2\x4f\x30\x4f\xc4",
  34653. .klen = 32,
  34654. .iv = "\xb3\x3f\xfd\x30\x96\x47\x9b\xcf"
  34655. "\xbc\x9a\xee\x49\x41\x76\x88\xa0"
  34656. "\xa2\x55\x4f\x8d\x95\x38\x94\x19"
  34657. "\x00\x00\x00\x00\x00\x00\x00\x00",
  34658. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  34659. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34660. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34661. "\x00\x00\x00\x00\x00",
  34662. .result = "\x1b\x78\x7f\xd7\xa1\x41\x68\xab"
  34663. "\x3d\x3f\xd1\x7b\x69\x56\xb2\xd5"
  34664. "\x43\xce\xeb\xaf\x36\xf0\x29\x9d"
  34665. "\x3a\xfb\x18\xae\x1b",
  34666. .ilen = 29,
  34667. .rlen = 29,
  34668. }, {
  34669. .key = "\x9d\x23\xbd\x41\x49\xcb\x97\x9c"
  34670. "\xcf\x3c\x5c\x94\xdd\x21\x7e\x98"
  34671. "\x08\xcb\x0e\x50\xcd\x0f\x67\x81"
  34672. "\x22\x35\xea\xaf\x60\x1d\x62\x32",
  34673. .klen = 32,
  34674. .iv = "\xc0\x47\x54\x82\x66\xb7\xc3\x70"
  34675. "\xd3\x35\x66\xa2\x42\x5c\xbf\x30"
  34676. "\xd8\x2d\x1e\xaf\x52\x94\x10\x9e"
  34677. "\x00\x00\x00\x00\x00\x00\x00\x00",
  34678. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  34679. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34680. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34681. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34682. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34683. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34684. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34685. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34686. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34687. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34688. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34689. "\x00\x00\x00",
  34690. .result = "\xfb\x32\x09\x1d\x83\x05\xae\x4c"
  34691. "\x13\x1f\x12\x71\xf2\xca\xb2\xeb"
  34692. "\x5b\x83\x14\x7d\x83\xf6\x57\x77"
  34693. "\x2e\x40\x1f\x92\x2c\xf9\xec\x35"
  34694. "\x34\x1f\x93\xdf\xfb\x30\xd7\x35"
  34695. "\x03\x05\x78\xc1\x20\x3b\x7a\xe3"
  34696. "\x62\xa3\x89\xdc\x11\x11\x45\xa8"
  34697. "\x82\x89\xa0\xf1\x4e\xc7\x0f\x11"
  34698. "\x69\xdd\x0c\x84\x2b\x89\x5c\xdc"
  34699. "\xf0\xde\x01\xef\xc5\x65\x79\x23"
  34700. "\x87\x67\xd6\x50\xd9\x8d\xd9\x92"
  34701. "\x54\x5b\x0e",
  34702. .ilen = 91,
  34703. .rlen = 91,
  34704. }, {
  34705. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  34706. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34707. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34708. "\x00\x00\x00\x00\x00\x00\x00\x00",
  34709. .klen = 32,
  34710. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  34711. "\x00\x00\x00\x00\x67\xc6\x69\x73"
  34712. "\x51\xff\x4a\xec\x29\xcd\xba\xab"
  34713. "\x00\x00\x00\x00\x00\x00\x00\x00",
  34714. .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
  34715. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34716. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34717. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34718. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34719. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34720. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34721. "\x00\x00\x00\x00\x00\x00\x00\x00",
  34722. .result = "\xdf\x2d\xc6\x21\x2a\x9d\xa1\xbb"
  34723. "\xc2\x77\x66\x0c\x5c\x46\xef\xa7"
  34724. "\x79\x1b\xb9\xdf\x55\xe2\xf9\x61"
  34725. "\x4c\x7b\xa4\x52\x24\xaf\xa2\xda"
  34726. "\xd1\x8f\x8f\xa2\x9e\x53\x4d\xc4"
  34727. "\xb8\x55\x98\x08\x7c\x08\xd4\x18"
  34728. "\x67\x8f\xef\x50\xb1\x5f\xa5\x77"
  34729. "\x4c\x25\xe7\x86\x26\x42\xca\x44",
  34730. .ilen = 64,
  34731. .rlen = 64,
  34732. }, {
  34733. .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
  34734. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34735. "\x00\x00\x00\x00\x00\x00\x00\x00"
  34736. "\x00\x00\x00\x00\x00\x00\x00\x01",
  34737. .klen = 32,
  34738. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  34739. "\x00\x00\x00\x02\xf2\xfb\xe3\x46"
  34740. "\x7c\xc2\x54\xf8\x1b\xe8\xe7\x8d"
  34741. "\x01\x00\x00\x00\x00\x00\x00\x00",
  34742. .input = "\x41\x6e\x79\x20\x73\x75\x62\x6d"
  34743. "\x69\x73\x73\x69\x6f\x6e\x20\x74"
  34744. "\x6f\x20\x74\x68\x65\x20\x49\x45"
  34745. "\x54\x46\x20\x69\x6e\x74\x65\x6e"
  34746. "\x64\x65\x64\x20\x62\x79\x20\x74"
  34747. "\x68\x65\x20\x43\x6f\x6e\x74\x72"
  34748. "\x69\x62\x75\x74\x6f\x72\x20\x66"
  34749. "\x6f\x72\x20\x70\x75\x62\x6c\x69"
  34750. "\x63\x61\x74\x69\x6f\x6e\x20\x61"
  34751. "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
  34752. "\x20\x70\x61\x72\x74\x20\x6f\x66"
  34753. "\x20\x61\x6e\x20\x49\x45\x54\x46"
  34754. "\x20\x49\x6e\x74\x65\x72\x6e\x65"
  34755. "\x74\x2d\x44\x72\x61\x66\x74\x20"
  34756. "\x6f\x72\x20\x52\x46\x43\x20\x61"
  34757. "\x6e\x64\x20\x61\x6e\x79\x20\x73"
  34758. "\x74\x61\x74\x65\x6d\x65\x6e\x74"
  34759. "\x20\x6d\x61\x64\x65\x20\x77\x69"
  34760. "\x74\x68\x69\x6e\x20\x74\x68\x65"
  34761. "\x20\x63\x6f\x6e\x74\x65\x78\x74"
  34762. "\x20\x6f\x66\x20\x61\x6e\x20\x49"
  34763. "\x45\x54\x46\x20\x61\x63\x74\x69"
  34764. "\x76\x69\x74\x79\x20\x69\x73\x20"
  34765. "\x63\x6f\x6e\x73\x69\x64\x65\x72"
  34766. "\x65\x64\x20\x61\x6e\x20\x22\x49"
  34767. "\x45\x54\x46\x20\x43\x6f\x6e\x74"
  34768. "\x72\x69\x62\x75\x74\x69\x6f\x6e"
  34769. "\x22\x2e\x20\x53\x75\x63\x68\x20"
  34770. "\x73\x74\x61\x74\x65\x6d\x65\x6e"
  34771. "\x74\x73\x20\x69\x6e\x63\x6c\x75"
  34772. "\x64\x65\x20\x6f\x72\x61\x6c\x20"
  34773. "\x73\x74\x61\x74\x65\x6d\x65\x6e"
  34774. "\x74\x73\x20\x69\x6e\x20\x49\x45"
  34775. "\x54\x46\x20\x73\x65\x73\x73\x69"
  34776. "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
  34777. "\x77\x65\x6c\x6c\x20\x61\x73\x20"
  34778. "\x77\x72\x69\x74\x74\x65\x6e\x20"
  34779. "\x61\x6e\x64\x20\x65\x6c\x65\x63"
  34780. "\x74\x72\x6f\x6e\x69\x63\x20\x63"
  34781. "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
  34782. "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
  34783. "\x64\x65\x20\x61\x74\x20\x61\x6e"
  34784. "\x79\x20\x74\x69\x6d\x65\x20\x6f"
  34785. "\x72\x20\x70\x6c\x61\x63\x65\x2c"
  34786. "\x20\x77\x68\x69\x63\x68\x20\x61"
  34787. "\x72\x65\x20\x61\x64\x64\x72\x65"
  34788. "\x73\x73\x65\x64\x20\x74\x6f",
  34789. .result = "\xe4\xa6\xc8\x30\xc4\x23\x13\xd6"
  34790. "\x08\x4d\xc9\xb7\xa5\x64\x7c\xb9"
  34791. "\x71\xe2\xab\x3e\xa8\x30\x8a\x1c"
  34792. "\x4a\x94\x6d\x9b\xe0\xb3\x6f\xf1"
  34793. "\xdc\xe3\x1b\xb3\xa9\x6d\x0d\xd6"
  34794. "\xd0\xca\x12\xef\xe7\x5f\xd8\x61"
  34795. "\x3c\x82\xd3\x99\x86\x3c\x6f\x66"
  34796. "\x02\x06\xdc\x55\xf9\xed\xdf\x38"
  34797. "\xb4\xa6\x17\x00\x7f\xef\xbf\x4f"
  34798. "\xf8\x36\xf1\x60\x7e\x47\xaf\xdb"
  34799. "\x55\x9b\x12\xcb\x56\x44\xa7\x1f"
  34800. "\xd3\x1a\x07\x3b\x00\xec\xe6\x4c"
  34801. "\xa2\x43\x27\xdf\x86\x19\x4f\x16"
  34802. "\xed\xf9\x4a\xf3\x63\x6f\xfa\x7f"
  34803. "\x78\x11\xf6\x7d\x97\x6f\xec\x6f"
  34804. "\x85\x0f\x5c\x36\x13\x8d\x87\xe0"
  34805. "\x80\xb1\x69\x0b\x98\x89\x9c\x4e"
  34806. "\xf8\xdd\xee\x5c\x0a\x85\xce\xd4"
  34807. "\xea\x1b\x48\xbe\x08\xf8\xe2\xa8"
  34808. "\xa5\xb0\x3c\x79\xb1\x15\xb4\xb9"
  34809. "\x75\x10\x95\x35\x81\x7e\x26\xe6"
  34810. "\x78\xa4\x88\xcf\xdb\x91\x34\x18"
  34811. "\xad\xd7\x8e\x07\x7d\xab\x39\xf9"
  34812. "\xa3\x9e\xa5\x1d\xbb\xed\x61\xfd"
  34813. "\xdc\xb7\x5a\x27\xfc\xb5\xc9\x10"
  34814. "\xa8\xcc\x52\x7f\x14\x76\x90\xe7"
  34815. "\x1b\x29\x60\x74\xc0\x98\x77\xbb"
  34816. "\xe0\x54\xbb\x27\x49\x59\x1e\x62"
  34817. "\x3d\xaf\x74\x06\xa4\x42\x6f\xc6"
  34818. "\x52\x97\xc4\x1d\xc4\x9f\xe2\xe5"
  34819. "\x38\x57\x91\xd1\xa2\x28\xcc\x40"
  34820. "\xcc\x70\x59\x37\xfc\x9f\x4b\xda"
  34821. "\xa0\xeb\x97\x9a\x7d\xed\x14\x5c"
  34822. "\x9c\xb7\x93\x26\x41\xa8\x66\xdd"
  34823. "\x87\x6a\xc0\xd3\xc2\xa9\x3e\xae"
  34824. "\xe9\x72\xfe\xd1\xb3\xac\x38\xea"
  34825. "\x4d\x15\xa9\xd5\x36\x61\xe9\x96"
  34826. "\x6c\x23\xf8\x43\xe4\x92\x29\xd9"
  34827. "\x8b\x78\xf7\x0a\x52\xe0\x19\x5b"
  34828. "\x59\x69\x5b\x5d\xa1\x53\xc4\x68"
  34829. "\xe1\xbb\xac\x89\x14\xe2\xe2\x85"
  34830. "\x41\x18\xf5\xb3\xd1\xfa\x68\x19"
  34831. "\x44\x78\xdc\xcf\xe7\x88\x2d\x52"
  34832. "\x5f\x40\xb5\x7e\xf8\x88\xa2\xae"
  34833. "\x4a\xb2\x07\x35\x9d\x9b\x07\x88"
  34834. "\xb7\x00\xd0\x0c\xb6\xa0\x47\x59"
  34835. "\xda\x4e\xc9\xab\x9b\x8a\x7b",
  34836. .ilen = 375,
  34837. .rlen = 375,
  34838. .also_non_np = 1,
  34839. .np = 3,
  34840. .tap = { 375 - 20, 4, 16 },
  34841. }, {
  34842. .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
  34843. "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
  34844. "\x47\x39\x17\xc1\x40\x2b\x80\x09"
  34845. "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
  34846. .klen = 32,
  34847. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  34848. "\x00\x00\x00\x02\x76\x5a\x2e\x63"
  34849. "\x33\x9f\xc9\x9a\x66\x32\x0d\xb7"
  34850. "\x2a\x00\x00\x00\x00\x00\x00\x00",
  34851. .input = "\x27\x54\x77\x61\x73\x20\x62\x72"
  34852. "\x69\x6c\x6c\x69\x67\x2c\x20\x61"
  34853. "\x6e\x64\x20\x74\x68\x65\x20\x73"
  34854. "\x6c\x69\x74\x68\x79\x20\x74\x6f"
  34855. "\x76\x65\x73\x0a\x44\x69\x64\x20"
  34856. "\x67\x79\x72\x65\x20\x61\x6e\x64"
  34857. "\x20\x67\x69\x6d\x62\x6c\x65\x20"
  34858. "\x69\x6e\x20\x74\x68\x65\x20\x77"
  34859. "\x61\x62\x65\x3a\x0a\x41\x6c\x6c"
  34860. "\x20\x6d\x69\x6d\x73\x79\x20\x77"
  34861. "\x65\x72\x65\x20\x74\x68\x65\x20"
  34862. "\x62\x6f\x72\x6f\x67\x6f\x76\x65"
  34863. "\x73\x2c\x0a\x41\x6e\x64\x20\x74"
  34864. "\x68\x65\x20\x6d\x6f\x6d\x65\x20"
  34865. "\x72\x61\x74\x68\x73\x20\x6f\x75"
  34866. "\x74\x67\x72\x61\x62\x65\x2e",
  34867. .result = "\xb9\x68\xbc\x6a\x24\xbc\xcc\xd8"
  34868. "\x9b\x2a\x8d\x5b\x96\xaf\x56\xe3"
  34869. "\x11\x61\xe7\xa7\x9b\xce\x4e\x7d"
  34870. "\x60\x02\x48\xac\xeb\xd5\x3a\x26"
  34871. "\x9d\x77\x3b\xb5\x32\x13\x86\x8e"
  34872. "\x20\x82\x26\x72\xae\x64\x1b\x7e"
  34873. "\x2e\x01\x68\xb4\x87\x45\xa1\x24"
  34874. "\xe4\x48\x40\xf0\xaa\xac\xee\xa9"
  34875. "\xfc\x31\xad\x9d\x89\xa3\xbb\xd2"
  34876. "\xe4\x25\x13\xad\x0f\x5e\xdf\x3c"
  34877. "\x27\xab\xb8\x62\x46\x22\x30\x48"
  34878. "\x55\x2c\x4e\x84\x78\x1d\x0d\x34"
  34879. "\x8d\x3c\x91\x0a\x7f\x5b\x19\x9f"
  34880. "\x97\x05\x4c\xa7\x62\x47\x8b\xc5"
  34881. "\x44\x2e\x20\x33\xdd\xa0\x82\xa9"
  34882. "\x25\x76\x37\xe6\x3c\x67\x5b",
  34883. .ilen = 127,
  34884. .rlen = 127,
  34885. }, {
  34886. .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
  34887. "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
  34888. "\x47\x39\x17\xc1\x40\x2b\x80\x09"
  34889. "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
  34890. .klen = 32,
  34891. .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
  34892. "\x00\x00\x00\x01\x31\x58\xa3\x5a"
  34893. "\x25\x5d\x05\x17\x58\xe9\x5e\xd4"
  34894. "\x1c\x00\x00\x00\x00\x00\x00\x00",
  34895. .input = "\x49\xee\xe0\xdc\x24\x90\x40\xcd"
  34896. "\xc5\x40\x8f\x47\x05\xbc\xdd\x81"
  34897. "\x47\xc6\x8d\xe6\xb1\x8f\xd7\xcb"
  34898. "\x09\x0e\x6e\x22\x48\x1f\xbf\xb8"
  34899. "\x5c\xf7\x1e\x8a\xc1\x23\xf2\xd4"
  34900. "\x19\x4b\x01\x0f\x4e\xa4\x43\xce"
  34901. "\x01\xc6\x67\xda\x03\x91\x18\x90"
  34902. "\xa5\xa4\x8e\x45\x03\xb3\x2d\xac"
  34903. "\x74\x92\xd3\x53\x47\xc8\xdd\x25"
  34904. "\x53\x6c\x02\x03\x87\x0d\x11\x0c"
  34905. "\x58\xe3\x12\x18\xfd\x2a\x5b\x40"
  34906. "\x0c\x30\xf0\xb8\x3f\x43\xce\xae"
  34907. "\x65\x3a\x7d\x7c\xf4\x54\xaa\xcc"
  34908. "\x33\x97\xc3\x77\xba\xc5\x70\xde"
  34909. "\xd7\xd5\x13\xa5\x65\xc4\x5f\x0f"
  34910. "\x46\x1a\x0d\x97\xb5\xf3\xbb\x3c"
  34911. "\x84\x0f\x2b\xc5\xaa\xea\xf2\x6c"
  34912. "\xc9\xb5\x0c\xee\x15\xf3\x7d\xbe"
  34913. "\x9f\x7b\x5a\xa6\xae\x4f\x83\xb6"
  34914. "\x79\x49\x41\xf4\x58\x18\xcb\x86"
  34915. "\x7f\x30\x0e\xf8\x7d\x44\x36\xea"
  34916. "\x75\xeb\x88\x84\x40\x3c\xad\x4f"
  34917. "\x6f\x31\x6b\xaa\x5d\xe5\xa5\xc5"
  34918. "\x21\x66\xe9\xa7\xe3\xb2\x15\x88"
  34919. "\x78\xf6\x79\xa1\x59\x47\x12\x4e"
  34920. "\x9f\x9f\x64\x1a\xa0\x22\x5b\x08"
  34921. "\xbe\x7c\x36\xc2\x2b\x66\x33\x1b"
  34922. "\xdd\x60\x71\xf7\x47\x8c\x61\xc3"
  34923. "\xda\x8a\x78\x1e\x16\xfa\x1e\x86"
  34924. "\x81\xa6\x17\x2a\xa7\xb5\xc2\xe7"
  34925. "\xa4\xc7\x42\xf1\xcf\x6a\xca\xb4"
  34926. "\x45\xcf\xf3\x93\xf0\xe7\xea\xf6"
  34927. "\xf4\xe6\x33\x43\x84\x93\xa5\x67"
  34928. "\x9b\x16\x58\x58\x80\x0f\x2b\x5c"
  34929. "\x24\x74\x75\x7f\x95\x81\xb7\x30"
  34930. "\x7a\x33\xa7\xf7\x94\x87\x32\x27"
  34931. "\x10\x5d\x14\x4c\x43\x29\xdd\x26"
  34932. "\xbd\x3e\x3c\x0e\xfe\x0e\xa5\x10"
  34933. "\xea\x6b\x64\xfd\x73\xc6\xed\xec"
  34934. "\xa8\xc9\xbf\xb3\xba\x0b\x4d\x07"
  34935. "\x70\xfc\x16\xfd\x79\x1e\xd7\xc5"
  34936. "\x49\x4e\x1c\x8b\x8d\x79\x1b\xb1"
  34937. "\xec\xca\x60\x09\x4c\x6a\xd5\x09"
  34938. "\x49\x46\x00\x88\x22\x8d\xce\xea"
  34939. "\xb1\x17\x11\xde\x42\xd2\x23\xc1"
  34940. "\x72\x11\xf5\x50\x73\x04\x40\x47"
  34941. "\xf9\x5d\xe7\xa7\x26\xb1\x7e\xb0"
  34942. "\x3f\x58\xc1\x52\xab\x12\x67\x9d"
  34943. "\x3f\x43\x4b\x68\xd4\x9c\x68\x38"
  34944. "\x07\x8a\x2d\x3e\xf3\xaf\x6a\x4b"
  34945. "\xf9\xe5\x31\x69\x22\xf9\xa6\x69"
  34946. "\xc6\x9c\x96\x9a\x12\x35\x95\x1d"
  34947. "\x95\xd5\xdd\xbe\xbf\x93\x53\x24"
  34948. "\xfd\xeb\xc2\x0a\x64\xb0\x77\x00"
  34949. "\x6f\x88\xc4\x37\x18\x69\x7c\xd7"
  34950. "\x41\x92\x55\x4c\x03\xa1\x9a\x4b"
  34951. "\x15\xe5\xdf\x7f\x37\x33\x72\xc1"
  34952. "\x8b\x10\x67\xa3\x01\x57\x94\x25"
  34953. "\x7b\x38\x71\x7e\xdd\x1e\xcc\x73"
  34954. "\x55\xd2\x8e\xeb\x07\xdd\xf1\xda"
  34955. "\x58\xb1\x47\x90\xfe\x42\x21\x72"
  34956. "\xa3\x54\x7a\xa0\x40\xec\x9f\xdd"
  34957. "\xc6\x84\x6e\xca\xae\xe3\x68\xb4"
  34958. "\x9d\xe4\x78\xff\x57\xf2\xf8\x1b"
  34959. "\x03\xa1\x31\xd9\xde\x8d\xf5\x22"
  34960. "\x9c\xdd\x20\xa4\x1e\x27\xb1\x76"
  34961. "\x4f\x44\x55\xe2\x9b\xa1\x9c\xfe"
  34962. "\x54\xf7\x27\x1b\xf4\xde\x02\xf5"
  34963. "\x1b\x55\x48\x5c\xdc\x21\x4b\x9e"
  34964. "\x4b\x6e\xed\x46\x23\xdc\x65\xb2"
  34965. "\xcf\x79\x5f\x28\xe0\x9e\x8b\xe7"
  34966. "\x4c\x9d\x8a\xff\xc1\xa6\x28\xb8"
  34967. "\x65\x69\x8a\x45\x29\xef\x74\x85"
  34968. "\xde\x79\xc7\x08\xae\x30\xb0\xf4"
  34969. "\xa3\x1d\x51\x41\xab\xce\xcb\xf6"
  34970. "\xb5\xd8\x6d\xe0\x85\xe1\x98\xb3"
  34971. "\x43\xbb\x86\x83\x0a\xa0\xf5\xb7"
  34972. "\x04\x0b\xfa\x71\x1f\xb0\xf6\xd9"
  34973. "\x13\x00\x15\xf0\xc7\xeb\x0d\x5a"
  34974. "\x9f\xd7\xb9\x6c\x65\x14\x22\x45"
  34975. "\x6e\x45\x32\x3e\x7e\x60\x1a\x12"
  34976. "\x97\x82\x14\xfb\xaa\x04\x22\xfa"
  34977. "\xa0\xe5\x7e\x8c\x78\x02\x48\x5d"
  34978. "\x78\x33\x5a\x7c\xad\xdb\x29\xce"
  34979. "\xbb\x8b\x61\xa4\xb7\x42\xe2\xac"
  34980. "\x8b\x1a\xd9\x2f\x0b\x8b\x62\x21"
  34981. "\x83\x35\x7e\xad\x73\xc2\xb5\x6c"
  34982. "\x10\x26\x38\x07\xe5\xc7\x36\x80"
  34983. "\xe2\x23\x12\x61\xf5\x48\x4b\x2b"
  34984. "\xc5\xdf\x15\xd9\x87\x01\xaa\xac"
  34985. "\x1e\x7c\xad\x73\x78\x18\x63\xe0"
  34986. "\x8b\x9f\x81\xd8\x12\x6a\x28\x10"
  34987. "\xbe\x04\x68\x8a\x09\x7c\x1b\x1c"
  34988. "\x83\x66\x80\x47\x80\xe8\xfd\x35"
  34989. "\x1c\x97\x6f\xae\x49\x10\x66\xcc"
  34990. "\xc6\xd8\xcc\x3a\x84\x91\x20\x77"
  34991. "\x72\xe4\x24\xd2\x37\x9f\xc5\xc9"
  34992. "\x25\x94\x10\x5f\x40\x00\x64\x99"
  34993. "\xdc\xae\xd7\x21\x09\x78\x50\x15"
  34994. "\xac\x5f\xc6\x2c\xa2\x0b\xa9\x39"
  34995. "\x87\x6e\x6d\xab\xde\x08\x51\x16"
  34996. "\xc7\x13\xe9\xea\xed\x06\x8e\x2c"
  34997. "\xf8\x37\x8c\xf0\xa6\x96\x8d\x43"
  34998. "\xb6\x98\x37\xb2\x43\xed\xde\xdf"
  34999. "\x89\x1a\xe7\xeb\x9d\xa1\x7b\x0b"
  35000. "\x77\xb0\xe2\x75\xc0\xf1\x98\xd9"
  35001. "\x80\x55\xc9\x34\x91\xd1\x59\xe8"
  35002. "\x4b\x0f\xc1\xa9\x4b\x7a\x84\x06"
  35003. "\x20\xa8\x5d\xfa\xd1\xde\x70\x56"
  35004. "\x2f\x9e\x91\x9c\x20\xb3\x24\xd8"
  35005. "\x84\x3d\xe1\x8c\x7e\x62\x52\xe5"
  35006. "\x44\x4b\x9f\xc2\x93\x03\xea\x2b"
  35007. "\x59\xc5\xfa\x3f\x91\x2b\xbb\x23"
  35008. "\xf5\xb2\x7b\xf5\x38\xaf\xb3\xee"
  35009. "\x63\xdc\x7b\xd1\xff\xaa\x8b\xab"
  35010. "\x82\x6b\x37\x04\xeb\x74\xbe\x79"
  35011. "\xb9\x83\x90\xef\x20\x59\x46\xff"
  35012. "\xe9\x97\x3e\x2f\xee\xb6\x64\x18"
  35013. "\x38\x4c\x7a\x4a\xf9\x61\xe8\x9a"
  35014. "\xa1\xb5\x01\xa6\x47\xd3\x11\xd4"
  35015. "\xce\xd3\x91\x49\x88\xc7\xb8\x4d"
  35016. "\xb1\xb9\x07\x6d\x16\x72\xae\x46"
  35017. "\x5e\x03\xa1\x4b\xb6\x02\x30\xa8"
  35018. "\x3d\xa9\x07\x2a\x7c\x19\xe7\x62"
  35019. "\x87\xe3\x82\x2f\x6f\xe1\x09\xd9"
  35020. "\x94\x97\xea\xdd\x58\x9e\xae\x76"
  35021. "\x7e\x35\xe5\xb4\xda\x7e\xf4\xde"
  35022. "\xf7\x32\x87\xcd\x93\xbf\x11\x56"
  35023. "\x11\xbe\x08\x74\xe1\x69\xad\xe2"
  35024. "\xd7\xf8\x86\x75\x8a\x3c\xa4\xbe"
  35025. "\x70\xa7\x1b\xfc\x0b\x44\x2a\x76"
  35026. "\x35\xea\x5d\x85\x81\xaf\x85\xeb"
  35027. "\xa0\x1c\x61\xc2\xf7\x4f\xa5\xdc"
  35028. "\x02\x7f\xf6\x95\x40\x6e\x8a\x9a"
  35029. "\xf3\x5d\x25\x6e\x14\x3a\x22\xc9"
  35030. "\x37\x1c\xeb\x46\x54\x3f\xa5\x91"
  35031. "\xc2\xb5\x8c\xfe\x53\x08\x97\x32"
  35032. "\x1b\xb2\x30\x27\xfe\x25\x5d\xdc"
  35033. "\x08\x87\xd0\xe5\x94\x1a\xd4\xf1"
  35034. "\xfe\xd6\xb4\xa3\xe6\x74\x81\x3c"
  35035. "\x1b\xb7\x31\xa7\x22\xfd\xd4\xdd"
  35036. "\x20\x4e\x7c\x51\xb0\x60\x73\xb8"
  35037. "\x9c\xac\x91\x90\x7e\x01\xb0\xe1"
  35038. "\x8a\x2f\x75\x1c\x53\x2a\x98\x2a"
  35039. "\x06\x52\x95\x52\xb2\xe9\x25\x2e"
  35040. "\x4c\xe2\x5a\x00\xb2\x13\x81\x03"
  35041. "\x77\x66\x0d\xa5\x99\xda\x4e\x8c"
  35042. "\xac\xf3\x13\x53\x27\x45\xaf\x64"
  35043. "\x46\xdc\xea\x23\xda\x97\xd1\xab"
  35044. "\x7d\x6c\x30\x96\x1f\xbc\x06\x34"
  35045. "\x18\x0b\x5e\x21\x35\x11\x8d\x4c"
  35046. "\xe0\x2d\xe9\x50\x16\x74\x81\xa8"
  35047. "\xb4\x34\xb9\x72\x42\xa6\xcc\xbc"
  35048. "\xca\x34\x83\x27\x10\x5b\x68\x45"
  35049. "\x8f\x52\x22\x0c\x55\x3d\x29\x7c"
  35050. "\xe3\xc0\x66\x05\x42\x91\x5f\x58"
  35051. "\xfe\x4a\x62\xd9\x8c\xa9\x04\x19"
  35052. "\x04\xa9\x08\x4b\x57\xfc\x67\x53"
  35053. "\x08\x7c\xbc\x66\x8a\xb0\xb6\x9f"
  35054. "\x92\xd6\x41\x7c\x5b\x2a\x00\x79"
  35055. "\x72",
  35056. .result = "\xe1\xb6\x8b\x5c\x80\xb8\xcc\x08"
  35057. "\x1b\x84\xb2\xd1\xad\xa4\x70\xac"
  35058. "\x67\xa9\x39\x27\xac\xb4\x5b\xb7"
  35059. "\x4c\x26\x77\x23\x1d\xce\x0a\xbe"
  35060. "\x18\x9e\x42\x8b\xbd\x7f\xd6\xf1"
  35061. "\xf1\x6b\xe2\x6d\x7f\x92\x0e\xcb"
  35062. "\xb8\x79\xba\xb4\xac\x7e\x2d\xc0"
  35063. "\x9e\x83\x81\x91\xd5\xea\xc3\x12"
  35064. "\x8d\xa4\x26\x70\xa4\xf9\x71\x0b"
  35065. "\xbd\x2e\xe1\xb3\x80\x42\x25\xb3"
  35066. "\x0b\x31\x99\xe1\x0d\xde\xa6\x90"
  35067. "\xf2\xa3\x10\xf7\xe5\xf3\x83\x1e"
  35068. "\x2c\xfb\x4d\xf0\x45\x3d\x28\x3c"
  35069. "\xb8\xf1\xcb\xbf\x67\xd8\x43\x5a"
  35070. "\x9d\x7b\x73\x29\x88\x0f\x13\x06"
  35071. "\x37\x50\x0d\x7c\xe6\x9b\x07\xdd"
  35072. "\x7e\x01\x1f\x81\x90\x10\x69\xdb"
  35073. "\xa4\xad\x8a\x5e\xac\x30\x72\xf2"
  35074. "\x36\xcd\xe3\x23\x49\x02\x93\xfa"
  35075. "\x3d\xbb\xe2\x98\x83\xeb\xe9\x8d"
  35076. "\xb3\x8f\x11\xaa\x53\xdb\xaf\x2e"
  35077. "\x95\x13\x99\x3d\x71\xbd\x32\x92"
  35078. "\xdd\xfc\x9d\x5e\x6f\x63\x2c\xee"
  35079. "\x91\x1f\x4c\x64\x3d\x87\x55\x0f"
  35080. "\xcc\x3d\x89\x61\x53\x02\x57\x8f"
  35081. "\xe4\x77\x29\x32\xaf\xa6\x2f\x0a"
  35082. "\xae\x3c\x3f\x3f\xf4\xfb\x65\x52"
  35083. "\xc5\xc1\x78\x78\x53\x28\xad\xed"
  35084. "\xd1\x67\x37\xc7\x59\x70\xcd\x0a"
  35085. "\xb8\x0f\x80\x51\x9f\xc0\x12\x5e"
  35086. "\x06\x0a\x7e\xec\x24\x5f\x73\x00"
  35087. "\xb1\x0b\x31\x47\x4f\x73\x8d\xb4"
  35088. "\xce\xf3\x55\x45\x6c\x84\x27\xba"
  35089. "\xb9\x6f\x03\x4a\xeb\x98\x88\x6e"
  35090. "\x53\xed\x25\x19\x0d\x8f\xfe\xca"
  35091. "\x60\xe5\x00\x93\x6e\x3c\xff\x19"
  35092. "\xae\x08\x3b\x8a\xa6\x84\x05\xfe"
  35093. "\x9b\x59\xa0\x8c\xc8\x05\x45\xf5"
  35094. "\x05\x37\xdc\x45\x6f\x8b\x95\x8c"
  35095. "\x4e\x11\x45\x7a\xce\x21\xa5\xf7"
  35096. "\x71\x67\xb9\xce\xd7\xf9\xe9\x5e"
  35097. "\x60\xf5\x53\x7a\xa8\x85\x14\x03"
  35098. "\xa0\x92\xec\xf3\x51\x80\x84\xc4"
  35099. "\xdc\x11\x9e\x57\xce\x4b\x45\xcf"
  35100. "\x90\x95\x85\x0b\x96\xe9\xee\x35"
  35101. "\x10\xb8\x9b\xf2\x59\x4a\xc6\x7e"
  35102. "\x85\xe5\x6f\x38\x51\x93\x40\x0c"
  35103. "\x99\xd7\x7f\x32\xa8\x06\x27\xd1"
  35104. "\x2b\xd5\xb5\x3a\x1a\xe1\x5e\xda"
  35105. "\xcd\x5a\x50\x30\x3c\xc7\xe7\x65"
  35106. "\xa6\x07\x0b\x98\x91\xc6\x20\x27"
  35107. "\x2a\x03\x63\x1b\x1e\x3d\xaf\xc8"
  35108. "\x71\x48\x46\x6a\x64\x28\xf9\x3d"
  35109. "\xd1\x1d\xab\xc8\x40\x76\xc2\x39"
  35110. "\x4e\x00\x75\xd2\x0e\x82\x58\x8c"
  35111. "\xd3\x73\x5a\xea\x46\x89\xbe\xfd"
  35112. "\x4e\x2c\x0d\x94\xaa\x9b\x68\xac"
  35113. "\x86\x87\x30\x7e\xa9\x16\xcd\x59"
  35114. "\xd2\xa6\xbe\x0a\xd8\xf5\xfd\x2d"
  35115. "\x49\x69\xd2\x1a\x90\xd2\x1b\xed"
  35116. "\xff\x71\x04\x87\x87\x21\xc4\xb8"
  35117. "\x1f\x5b\x51\x33\xd0\xd6\x59\x9a"
  35118. "\x03\x0e\xd3\x8b\xfb\x57\x73\xfd"
  35119. "\x5a\x52\x63\x82\xc8\x85\x2f\xcb"
  35120. "\x74\x6d\x4e\xd9\x68\x37\x85\x6a"
  35121. "\xd4\xfb\x94\xed\x8d\xd1\x1a\xaf"
  35122. "\x76\xa7\xb7\x88\xd0\x2b\x4e\xda"
  35123. "\xec\x99\x94\x27\x6f\x87\x8c\xdf"
  35124. "\x4b\x5e\xa6\x66\xdd\xcb\x33\x7b"
  35125. "\x64\x94\x31\xa8\x37\xa6\x1d\xdb"
  35126. "\x0d\x5c\x93\xa4\x40\xf9\x30\x53"
  35127. "\x4b\x74\x8d\xdd\xf6\xde\x3c\xac"
  35128. "\x5c\x80\x01\x3a\xef\xb1\x9a\x02"
  35129. "\x0c\x22\x8e\xe7\x44\x09\x74\x4c"
  35130. "\xf2\x9a\x27\x69\x7f\x12\x32\x36"
  35131. "\xde\x92\xdf\xde\x8f\x5b\x31\xab"
  35132. "\x4a\x01\x26\xe0\xb1\xda\xe8\x37"
  35133. "\x21\x64\xe8\xff\x69\xfc\x9e\x41"
  35134. "\xd2\x96\x2d\x18\x64\x98\x33\x78"
  35135. "\x24\x61\x73\x9b\x47\x29\xf1\xa7"
  35136. "\xcb\x27\x0f\xf0\x85\x6d\x8c\x9d"
  35137. "\x2c\x95\x9e\xe5\xb2\x8e\x30\x29"
  35138. "\x78\x8a\x9d\x65\xb4\x8e\xde\x7b"
  35139. "\xd9\x00\x50\xf5\x7f\x81\xc3\x1b"
  35140. "\x25\x85\xeb\xc2\x8c\x33\x22\x1e"
  35141. "\x68\x38\x22\x30\xd8\x2e\x00\x98"
  35142. "\x85\x16\x06\x56\xb4\x81\x74\x20"
  35143. "\x95\xdb\x1c\x05\x19\xe8\x23\x4d"
  35144. "\x65\x5d\xcc\xd8\x7f\xc4\x2d\x0f"
  35145. "\x57\x26\x71\x07\xad\xaa\x71\x9f"
  35146. "\x19\x76\x2f\x25\x51\x88\xe4\xc0"
  35147. "\x82\x6e\x08\x05\x37\x04\xee\x25"
  35148. "\x23\x90\xe9\x4e\xce\x9b\x16\xc1"
  35149. "\x31\xe7\x6e\x2c\x1b\xe1\x85\x9a"
  35150. "\x0c\x8c\xbb\x12\x1e\x68\x7b\x93"
  35151. "\xa9\x3c\x39\x56\x23\x3e\x6e\xc7"
  35152. "\x77\x84\xd3\xe0\x86\x59\xaa\xb9"
  35153. "\xd5\x53\x58\xc9\x0a\x83\x5f\x85"
  35154. "\xd8\x47\x14\x67\x8a\x3c\x17\xe0"
  35155. "\xab\x02\x51\xea\xf1\xf0\x4f\x30"
  35156. "\x7d\xe0\x92\xc2\x5f\xfb\x19\x5a"
  35157. "\x3f\xbd\xf4\x39\xa4\x31\x0c\x39"
  35158. "\xd1\xae\x4e\xf7\x65\x7f\x1f\xce"
  35159. "\xc2\x39\xd1\x84\xd4\xe5\x02\xe0"
  35160. "\x58\xaa\xf1\x5e\x81\xaf\x7f\x72"
  35161. "\x0f\x08\x99\x43\xb9\xd8\xac\x41"
  35162. "\x35\x55\xf2\xb2\xd4\x98\xb8\x3b"
  35163. "\x2b\x3c\x3e\x16\x06\x31\xfc\x79"
  35164. "\x47\x38\x63\x51\xc5\xd0\x26\xd7"
  35165. "\x43\xb4\x2b\xd9\xc5\x05\xf2\x9d"
  35166. "\x18\xc9\x26\x82\x56\xd2\x11\x05"
  35167. "\xb6\x89\xb4\x43\x9c\xb5\x9d\x11"
  35168. "\x6c\x83\x37\x71\x27\x1c\xae\xbf"
  35169. "\xcd\x57\xd2\xee\x0d\x5a\x15\x26"
  35170. "\x67\x88\x80\x80\x1b\xdc\xc1\x62"
  35171. "\xdd\x4c\xff\x92\x5c\x6c\xe1\xa0"
  35172. "\xe3\x79\xa9\x65\x8c\x8c\x14\x42"
  35173. "\xe5\x11\xd2\x1a\xad\xa9\x56\x6f"
  35174. "\x98\xfc\x8a\x7b\x56\x1f\xc6\xc1"
  35175. "\x52\x12\x92\x9b\x41\x0f\x4b\xae"
  35176. "\x1b\x4a\xbc\xfe\x23\xb6\x94\x70"
  35177. "\x04\x30\x9e\x69\x47\xbe\xb8\x8f"
  35178. "\xca\x45\xd7\x8a\xf4\x78\x3e\xaa"
  35179. "\x71\x17\xd8\x1e\xb8\x11\x8f\xbc"
  35180. "\xc8\x1a\x65\x7b\x41\x89\x72\xc7"
  35181. "\x5f\xbe\xc5\x2a\xdb\x5c\x54\xf9"
  35182. "\x25\xa3\x7a\x80\x56\x9c\x8c\xab"
  35183. "\x26\x19\x10\x36\xa6\xf3\x14\x79"
  35184. "\x40\x98\x70\x68\xb7\x35\xd9\xb9"
  35185. "\x27\xd4\xe7\x74\x5b\x3d\x97\xb4"
  35186. "\xd9\xaa\xd9\xf2\xb5\x14\x84\x1f"
  35187. "\xa9\xde\x12\x44\x5b\x00\xc0\xbc"
  35188. "\xc8\x11\x25\x1b\x67\x7a\x15\x72"
  35189. "\xa6\x31\x6f\xf4\x68\x7a\x86\x9d"
  35190. "\x43\x1c\x5f\x16\xd3\xad\x2e\x52"
  35191. "\xf3\xb4\xc3\xfa\x27\x2e\x68\x6c"
  35192. "\x06\xe7\x4c\x4f\xa2\xe0\xe4\x21"
  35193. "\x5d\x9e\x33\x58\x8d\xbf\xd5\x70"
  35194. "\xf8\x80\xa5\xdd\xe7\x18\x79\xfa"
  35195. "\x7b\xfd\x09\x69\x2c\x37\x32\xa8"
  35196. "\x65\xfa\x8d\x8b\x5c\xcc\xe8\xf3"
  35197. "\x37\xf6\xa6\xc6\x5c\xa2\x66\x79"
  35198. "\xfa\x8a\xa7\xd1\x0b\x2e\x1b\x5e"
  35199. "\x95\x35\x00\x76\xae\x42\xf7\x50"
  35200. "\x51\x78\xfb\xb4\x28\x24\xde\x1a"
  35201. "\x70\x8b\xed\xca\x3c\x5e\xe4\xbd"
  35202. "\x28\xb5\xf3\x76\x4f\x67\x5d\x81"
  35203. "\xb2\x60\x87\xd9\x7b\x19\x1a\xa7"
  35204. "\x79\xa2\xfa\x3f\x9e\xa9\xd7\x25"
  35205. "\x61\xe1\x74\x31\xa2\x77\xa0\x1b"
  35206. "\xf6\xf7\xcb\xc5\xaa\x9e\xce\xf9"
  35207. "\x9b\x96\xef\x51\xc3\x1a\x44\x96"
  35208. "\xae\x17\x50\xab\x29\x08\xda\xcc"
  35209. "\x1a\xb3\x12\xd0\x24\xe4\xe2\xe0"
  35210. "\xc6\xe3\xcc\x82\xd0\xba\x47\x4c"
  35211. "\x3f\x49\xd7\xe8\xb6\x61\xaa\x65"
  35212. "\x25\x18\x40\x2d\x62\x25\x02\x71"
  35213. "\x61\xa2\xc1\xb2\x13\xd2\x71\x3f"
  35214. "\x43\x1a\xc9\x09\x92\xff\xd5\x57"
  35215. "\xf0\xfc\x5e\x1c\xf1\xf5\xf9\xf3"
  35216. "\x5b",
  35217. .ilen = 1281,
  35218. .rlen = 1281,
  35219. .also_non_np = 1,
  35220. .np = 3,
  35221. .tap = { 1200, 1, 80 },
  35222. },
  35223. };
  35224. /* Adiantum test vectors from https://github.com/google/adiantum */
  35225. static struct cipher_testvec adiantum_xchacha12_aes_enc_tv_template[] = {
  35226. {
  35227. .key = "\x9e\xeb\xb2\x49\x3c\x1c\xf5\xf4"
  35228. "\x6a\x99\xc2\xc4\xdf\xb1\xf4\xdd"
  35229. "\x75\x20\x57\xea\x2c\x4f\xcd\xb2"
  35230. "\xa5\x3d\x7b\x49\x1e\xab\xfd\x0f",
  35231. .klen = 32,
  35232. .iv = "\xdf\x63\xd4\xab\xd2\x49\xf3\xd8"
  35233. "\x33\x81\x37\x60\x7d\xfa\x73\x08"
  35234. "\xd8\x49\x6d\x80\xe8\x2f\x62\x54"
  35235. "\xeb\x0e\xa9\x39\x5b\x45\x7f\x8a",
  35236. .input = "\x67\xc9\xf2\x30\x84\x41\x8e\x43"
  35237. "\xfb\xf3\xb3\x3e\x79\x36\x7f\xe8",
  35238. .result = "\x6d\x32\x86\x18\x67\x86\x0f\x3f"
  35239. "\x96\x7c\x9d\x28\x0d\x53\xec\x9f",
  35240. .ilen = 16,
  35241. .rlen = 16,
  35242. .also_non_np = 1,
  35243. .np = 2,
  35244. .tap = { 14, 2 },
  35245. }, {
  35246. .key = "\x36\x2b\x57\x97\xf8\x5d\xcd\x99"
  35247. "\x5f\x1a\x5a\x44\x1d\x92\x0f\x27"
  35248. "\xcc\x16\xd7\x2b\x85\x63\x99\xd3"
  35249. "\xba\x96\xa1\xdb\xd2\x60\x68\xda",
  35250. .klen = 32,
  35251. .iv = "\xef\x58\x69\xb1\x2c\x5e\x9a\x47"
  35252. "\x24\xc1\xb1\x69\xe1\x12\x93\x8f"
  35253. "\x43\x3d\x6d\x00\xdb\x5e\xd8\xd9"
  35254. "\x12\x9a\xfe\xd9\xff\x2d\xaa\xc4",
  35255. .input = "\x5e\xa8\x68\x19\x85\x98\x12\x23"
  35256. "\x26\x0a\xcc\xdb\x0a\x04\xb9\xdf"
  35257. "\x4d\xb3\x48\x7b\xb0\xe3\xc8\x19"
  35258. "\x43\x5a\x46\x06\x94\x2d\xf2",
  35259. .result = "\xc7\xc6\xf1\x73\x8f\xc4\xff\x4a"
  35260. "\x39\xbe\x78\xbe\x8d\x28\xc8\x89"
  35261. "\x46\x63\xe7\x0c\x7d\x87\xe8\x4e"
  35262. "\xc9\x18\x7b\xbe\x18\x60\x50",
  35263. .ilen = 31,
  35264. .rlen = 31,
  35265. }, {
  35266. .key = "\xa5\x28\x24\x34\x1a\x3c\xd8\xf7"
  35267. "\x05\x91\x8f\xee\x85\x1f\x35\x7f"
  35268. "\x80\x3d\xfc\x9b\x94\xf6\xfc\x9e"
  35269. "\x19\x09\x00\xa9\x04\x31\x4f\x11",
  35270. .klen = 32,
  35271. .iv = "\xa1\xba\x49\x95\xff\x34\x6d\xb8"
  35272. "\xcd\x87\x5d\x5e\xfd\xea\x85\xdb"
  35273. "\x8a\x7b\x5e\xb2\x5d\x57\xdd\x62"
  35274. "\xac\xa9\x8c\x41\x42\x94\x75\xb7",
  35275. .input = "\x69\xb4\xe8\x8c\x37\xe8\x67\x82"
  35276. "\xf1\xec\x5d\x04\xe5\x14\x91\x13"
  35277. "\xdf\xf2\x87\x1b\x69\x81\x1d\x71"
  35278. "\x70\x9e\x9c\x3b\xde\x49\x70\x11"
  35279. "\xa0\xa3\xdb\x0d\x54\x4f\x66\x69"
  35280. "\xd7\xdb\x80\xa7\x70\x92\x68\xce"
  35281. "\x81\x04\x2c\xc6\xab\xae\xe5\x60"
  35282. "\x15\xe9\x6f\xef\xaa\x8f\xa7\xa7"
  35283. "\x63\x8f\xf2\xf0\x77\xf1\xa8\xea"
  35284. "\xe1\xb7\x1f\x9e\xab\x9e\x4b\x3f"
  35285. "\x07\x87\x5b\x6f\xcd\xa8\xaf\xb9"
  35286. "\xfa\x70\x0b\x52\xb8\xa8\xa7\x9e"
  35287. "\x07\x5f\xa6\x0e\xb3\x9b\x79\x13"
  35288. "\x79\xc3\x3e\x8d\x1c\x2c\x68\xc8"
  35289. "\x51\x1d\x3c\x7b\x7d\x79\x77\x2a"
  35290. "\x56\x65\xc5\x54\x23\x28\xb0\x03",
  35291. .result = "\x9e\x16\xab\xed\x4b\xa7\x42\x5a"
  35292. "\xc6\xfb\x4e\x76\xff\xbe\x03\xa0"
  35293. "\x0f\xe3\xad\xba\xe4\x98\x2b\x0e"
  35294. "\x21\x48\xa0\xb8\x65\x48\x27\x48"
  35295. "\x84\x54\x54\xb2\x9a\x94\x7b\xe6"
  35296. "\x4b\x29\xe9\xcf\x05\x91\x80\x1a"
  35297. "\x3a\xf3\x41\x96\x85\x1d\x9f\x74"
  35298. "\x51\x56\x63\xfa\x7c\x28\x85\x49"
  35299. "\xf7\x2f\xf9\xf2\x18\x46\xf5\x33"
  35300. "\x80\xa3\x3c\xce\xb2\x57\x93\xf5"
  35301. "\xae\xbd\xa9\xf5\x7b\x30\xc4\x93"
  35302. "\x66\xe0\x30\x77\x16\xe4\xa0\x31"
  35303. "\xba\x70\xbc\x68\x13\xf5\xb0\x9a"
  35304. "\xc1\xfc\x7e\xfe\x55\x80\x5c\x48"
  35305. "\x74\xa6\xaa\xa3\xac\xdc\xc2\xf5"
  35306. "\x8d\xde\x34\x86\x78\x60\x75\x8d",
  35307. .ilen = 128,
  35308. .rlen = 128,
  35309. .also_non_np = 1,
  35310. .np = 4,
  35311. .tap = { 104, 16, 4, 4 },
  35312. }, {
  35313. .key = "\xd3\x81\x72\x18\x23\xff\x6f\x4a"
  35314. "\x25\x74\x29\x0d\x51\x8a\x0e\x13"
  35315. "\xc1\x53\x5d\x30\x8d\xee\x75\x0d"
  35316. "\x14\xd6\x69\xc9\x15\xa9\x0c\x60",
  35317. .klen = 32,
  35318. .iv = "\x65\x9b\xd4\xa8\x7d\x29\x1d\xf4"
  35319. "\xc4\xd6\x9b\x6a\x28\xab\x64\xe2"
  35320. "\x62\x81\x97\xc5\x81\xaa\xf9\x44"
  35321. "\xc1\x72\x59\x82\xaf\x16\xc8\x2c",
  35322. .input = "\xc7\x6b\x52\x6a\x10\xf0\xcc\x09"
  35323. "\xc1\x12\x1d\x6d\x21\xa6\x78\xf5"
  35324. "\x05\xa3\x69\x60\x91\x36\x98\x57"
  35325. "\xba\x0c\x14\xcc\xf3\x2d\x73\x03"
  35326. "\xc6\xb2\x5f\xc8\x16\x27\x37\x5d"
  35327. "\xd0\x0b\x87\xb2\x50\x94\x7b\x58"
  35328. "\x04\xf4\xe0\x7f\x6e\x57\x8e\xc9"
  35329. "\x41\x84\xc1\xb1\x7e\x4b\x91\x12"
  35330. "\x3a\x8b\x5d\x50\x82\x7b\xcb\xd9"
  35331. "\x9a\xd9\x4e\x18\x06\x23\x9e\xd4"
  35332. "\xa5\x20\x98\xef\xb5\xda\xe5\xc0"
  35333. "\x8a\x6a\x83\x77\x15\x84\x1e\xae"
  35334. "\x78\x94\x9d\xdf\xb7\xd1\xea\x67"
  35335. "\xaa\xb0\x14\x15\xfa\x67\x21\x84"
  35336. "\xd3\x41\x2a\xce\xba\x4b\x4a\xe8"
  35337. "\x95\x62\xa9\x55\xf0\x80\xad\xbd"
  35338. "\xab\xaf\xdd\x4f\xa5\x7c\x13\x36"
  35339. "\xed\x5e\x4f\x72\xad\x4b\xf1\xd0"
  35340. "\x88\x4e\xec\x2c\x88\x10\x5e\xea"
  35341. "\x12\xc0\x16\x01\x29\xa3\xa0\x55"
  35342. "\xaa\x68\xf3\xe9\x9d\x3b\x0d\x3b"
  35343. "\x6d\xec\xf8\xa0\x2d\xf0\x90\x8d"
  35344. "\x1c\xe2\x88\xd4\x24\x71\xf9\xb3"
  35345. "\xc1\x9f\xc5\xd6\x76\x70\xc5\x2e"
  35346. "\x9c\xac\xdb\x90\xbd\x83\x72\xba"
  35347. "\x6e\xb5\xa5\x53\x83\xa9\xa5\xbf"
  35348. "\x7d\x06\x0e\x3c\x2a\xd2\x04\xb5"
  35349. "\x1e\x19\x38\x09\x16\xd2\x82\x1f"
  35350. "\x75\x18\x56\xb8\x96\x0b\xa6\xf9"
  35351. "\xcf\x62\xd9\x32\x5d\xa9\xd7\x1d"
  35352. "\xec\xe4\xdf\x1b\xbe\xf1\x36\xee"
  35353. "\xe3\x7b\xb5\x2f\xee\xf8\x53\x3d"
  35354. "\x6a\xb7\x70\xa9\xfc\x9c\x57\x25"
  35355. "\xf2\x89\x10\xd3\xb8\xa8\x8c\x30"
  35356. "\xae\x23\x4f\x0e\x13\x66\x4f\xe1"
  35357. "\xb6\xc0\xe4\xf8\xef\x93\xbd\x6e"
  35358. "\x15\x85\x6b\xe3\x60\x81\x1d\x68"
  35359. "\xd7\x31\x87\x89\x09\xab\xd5\x96"
  35360. "\x1d\xf3\x6d\x67\x80\xca\x07\x31"
  35361. "\x5d\xa7\xe4\xfb\x3e\xf2\x9b\x33"
  35362. "\x52\x18\xc8\x30\xfe\x2d\xca\x1e"
  35363. "\x79\x92\x7a\x60\x5c\xb6\x58\x87"
  35364. "\xa4\x36\xa2\x67\x92\x8b\xa4\xb7"
  35365. "\xf1\x86\xdf\xdc\xc0\x7e\x8f\x63"
  35366. "\xd2\xa2\xdc\x78\xeb\x4f\xd8\x96"
  35367. "\x47\xca\xb8\x91\xf9\xf7\x94\x21"
  35368. "\x5f\x9a\x9f\x5b\xb8\x40\x41\x4b"
  35369. "\x66\x69\x6a\x72\xd0\xcb\x70\xb7"
  35370. "\x93\xb5\x37\x96\x05\x37\x4f\xe5"
  35371. "\x8c\xa7\x5a\x4e\x8b\xb7\x84\xea"
  35372. "\xc7\xfc\x19\x6e\x1f\x5a\xa1\xac"
  35373. "\x18\x7d\x52\x3b\xb3\x34\x62\x99"
  35374. "\xe4\x9e\x31\x04\x3f\xc0\x8d\x84"
  35375. "\x17\x7c\x25\x48\x52\x67\x11\x27"
  35376. "\x67\xbb\x5a\x85\xca\x56\xb2\x5c"
  35377. "\xe6\xec\xd5\x96\x3d\x15\xfc\xfb"
  35378. "\x22\x25\xf4\x13\xe5\x93\x4b\x9a"
  35379. "\x77\xf1\x52\x18\xfa\x16\x5e\x49"
  35380. "\x03\x45\xa8\x08\xfa\xb3\x41\x92"
  35381. "\x79\x50\x33\xca\xd0\xd7\x42\x55"
  35382. "\xc3\x9a\x0c\x4e\xd9\xa4\x3c\x86"
  35383. "\x80\x9f\x53\xd1\xa4\x2e\xd1\xbc"
  35384. "\xf1\x54\x6e\x93\xa4\x65\x99\x8e"
  35385. "\xdf\x29\xc0\x64\x63\x07\xbb\xea",
  35386. .result = "\x15\x97\xd0\x86\x18\x03\x9c\x51"
  35387. "\xc5\x11\x36\x62\x13\x92\xe6\x73"
  35388. "\x29\x79\xde\xa1\x00\x3e\x08\x64"
  35389. "\x17\x1a\xbc\xd5\xfe\x33\x0e\x0c"
  35390. "\x7c\x94\xa7\xc6\x3c\xbe\xac\xa2"
  35391. "\x89\xe6\xbc\xdf\x0c\x33\x27\x42"
  35392. "\x46\x73\x2f\xba\x4e\xa6\x46\x8f"
  35393. "\xe4\xee\x39\x63\x42\x65\xa3\x88"
  35394. "\x7a\xad\x33\x23\xa9\xa7\x20\x7f"
  35395. "\x0b\xe6\x6a\xc3\x60\xda\x9e\xb4"
  35396. "\xd6\x07\x8a\x77\x26\xd1\xab\x44"
  35397. "\x99\x55\x03\x5e\xed\x8d\x7b\xbd"
  35398. "\xc8\x21\xb7\x21\x30\x3f\xc0\xb5"
  35399. "\xc8\xec\x6c\x23\xa6\xa3\x6d\xf1"
  35400. "\x30\x0a\xd0\xa6\xa9\x28\x69\xae"
  35401. "\x2a\xe6\x54\xac\x82\x9d\x6a\x95"
  35402. "\x6f\x06\x44\xc5\x5a\x77\x6e\xec"
  35403. "\xf8\xf8\x63\xb2\xe6\xaa\xbd\x8e"
  35404. "\x0e\x8a\x62\x00\x03\xc8\x84\xdd"
  35405. "\x47\x4a\xc3\x55\xba\xb7\xe7\xdf"
  35406. "\x08\xbf\x62\xf5\xe8\xbc\xb6\x11"
  35407. "\xe4\xcb\xd0\x66\x74\x32\xcf\xd4"
  35408. "\xf8\x51\x80\x39\x14\x05\x12\xdb"
  35409. "\x87\x93\xe2\x26\x30\x9c\x3a\x21"
  35410. "\xe5\xd0\x38\x57\x80\x15\xe4\x08"
  35411. "\x58\x05\x49\x7d\xe6\x92\x77\x70"
  35412. "\xfb\x1e\x2d\x6a\x84\x00\xc8\x68"
  35413. "\xf7\x1a\xdd\xf0\x7b\x38\x1e\xd8"
  35414. "\x2c\x78\x78\x61\xcf\xe3\xde\x69"
  35415. "\x1f\xd5\x03\xd5\x1a\xb4\xcf\x03"
  35416. "\xc8\x7a\x70\x68\x35\xb4\xf6\xbe"
  35417. "\x90\x62\xb2\x28\x99\x86\xf5\x44"
  35418. "\x99\xeb\x31\xcf\xca\xdf\xd0\x21"
  35419. "\xd6\x60\xf7\x0f\x40\xb4\x80\xb7"
  35420. "\xab\xe1\x9b\x45\xba\x66\xda\xee"
  35421. "\xdd\x04\x12\x40\x98\xe1\x69\xe5"
  35422. "\x2b\x9c\x59\x80\xe7\x7b\xcc\x63"
  35423. "\xa6\xc0\x3a\xa9\xfe\x8a\xf9\x62"
  35424. "\x11\x34\x61\x94\x35\xfe\xf2\x99"
  35425. "\xfd\xee\x19\xea\x95\xb6\x12\xbf"
  35426. "\x1b\xdf\x02\x1a\xcc\x3e\x7e\x65"
  35427. "\x78\x74\x10\x50\x29\x63\x28\xea"
  35428. "\x6b\xab\xd4\x06\x4d\x15\x24\x31"
  35429. "\xc7\x0a\xc9\x16\xb6\x48\xf0\xbf"
  35430. "\x49\xdb\x68\x71\x31\x8f\x87\xe2"
  35431. "\x13\x05\x64\xd6\x22\x0c\xf8\x36"
  35432. "\x84\x24\x3e\x69\x5e\xb8\x9e\x16"
  35433. "\x73\x6c\x83\x1e\xe0\x9f\x9e\xba"
  35434. "\xe5\x59\x21\x33\x1b\xa9\x26\xc2"
  35435. "\xc7\xd9\x30\x73\xb6\xa6\x73\x82"
  35436. "\x19\xfa\x44\x4d\x40\x8b\x69\x04"
  35437. "\x94\x74\xea\x6e\xb3\x09\x47\x01"
  35438. "\x2a\xb9\x78\x34\x43\x11\xed\xd6"
  35439. "\x8c\x95\x65\x1b\x85\x67\xa5\x40"
  35440. "\xac\x9c\x05\x4b\x57\x4a\xa9\x96"
  35441. "\x0f\xdd\x4f\xa1\xe0\xcf\x6e\xc7"
  35442. "\x1b\xed\xa2\xb4\x56\x8c\x09\x6e"
  35443. "\xa6\x65\xd7\x55\x81\xb7\xed\x11"
  35444. "\x9b\x40\x75\xa8\x6b\x56\xaf\x16"
  35445. "\x8b\x3d\xf4\xcb\xfe\xd5\x1d\x3d"
  35446. "\x85\xc2\xc0\xde\x43\x39\x4a\x96"
  35447. "\xba\x88\x97\xc0\xd6\x00\x0e\x27"
  35448. "\x21\xb0\x21\x52\xba\xa7\x37\xaa"
  35449. "\xcc\xbf\x95\xa8\xf4\xd0\x91\xf6",
  35450. .ilen = 512,
  35451. .rlen = 512,
  35452. .also_non_np = 1,
  35453. .np = 2,
  35454. .tap = { 144, 368 },
  35455. }
  35456. };
  35457. static struct cipher_testvec adiantum_xchacha12_aes_dec_tv_template[] = {
  35458. {
  35459. .key = "\x9e\xeb\xb2\x49\x3c\x1c\xf5\xf4"
  35460. "\x6a\x99\xc2\xc4\xdf\xb1\xf4\xdd"
  35461. "\x75\x20\x57\xea\x2c\x4f\xcd\xb2"
  35462. "\xa5\x3d\x7b\x49\x1e\xab\xfd\x0f",
  35463. .klen = 32,
  35464. .iv = "\xdf\x63\xd4\xab\xd2\x49\xf3\xd8"
  35465. "\x33\x81\x37\x60\x7d\xfa\x73\x08"
  35466. "\xd8\x49\x6d\x80\xe8\x2f\x62\x54"
  35467. "\xeb\x0e\xa9\x39\x5b\x45\x7f\x8a",
  35468. .result = "\x67\xc9\xf2\x30\x84\x41\x8e\x43"
  35469. "\xfb\xf3\xb3\x3e\x79\x36\x7f\xe8",
  35470. .input = "\x6d\x32\x86\x18\x67\x86\x0f\x3f"
  35471. "\x96\x7c\x9d\x28\x0d\x53\xec\x9f",
  35472. .ilen = 16,
  35473. .rlen = 16,
  35474. .also_non_np = 1,
  35475. .np = 2,
  35476. .tap = { 14, 2 },
  35477. }, {
  35478. .key = "\x36\x2b\x57\x97\xf8\x5d\xcd\x99"
  35479. "\x5f\x1a\x5a\x44\x1d\x92\x0f\x27"
  35480. "\xcc\x16\xd7\x2b\x85\x63\x99\xd3"
  35481. "\xba\x96\xa1\xdb\xd2\x60\x68\xda",
  35482. .klen = 32,
  35483. .iv = "\xef\x58\x69\xb1\x2c\x5e\x9a\x47"
  35484. "\x24\xc1\xb1\x69\xe1\x12\x93\x8f"
  35485. "\x43\x3d\x6d\x00\xdb\x5e\xd8\xd9"
  35486. "\x12\x9a\xfe\xd9\xff\x2d\xaa\xc4",
  35487. .result = "\x5e\xa8\x68\x19\x85\x98\x12\x23"
  35488. "\x26\x0a\xcc\xdb\x0a\x04\xb9\xdf"
  35489. "\x4d\xb3\x48\x7b\xb0\xe3\xc8\x19"
  35490. "\x43\x5a\x46\x06\x94\x2d\xf2",
  35491. .input = "\xc7\xc6\xf1\x73\x8f\xc4\xff\x4a"
  35492. "\x39\xbe\x78\xbe\x8d\x28\xc8\x89"
  35493. "\x46\x63\xe7\x0c\x7d\x87\xe8\x4e"
  35494. "\xc9\x18\x7b\xbe\x18\x60\x50",
  35495. .ilen = 31,
  35496. .rlen = 31,
  35497. }, {
  35498. .key = "\xa5\x28\x24\x34\x1a\x3c\xd8\xf7"
  35499. "\x05\x91\x8f\xee\x85\x1f\x35\x7f"
  35500. "\x80\x3d\xfc\x9b\x94\xf6\xfc\x9e"
  35501. "\x19\x09\x00\xa9\x04\x31\x4f\x11",
  35502. .klen = 32,
  35503. .iv = "\xa1\xba\x49\x95\xff\x34\x6d\xb8"
  35504. "\xcd\x87\x5d\x5e\xfd\xea\x85\xdb"
  35505. "\x8a\x7b\x5e\xb2\x5d\x57\xdd\x62"
  35506. "\xac\xa9\x8c\x41\x42\x94\x75\xb7",
  35507. .result = "\x69\xb4\xe8\x8c\x37\xe8\x67\x82"
  35508. "\xf1\xec\x5d\x04\xe5\x14\x91\x13"
  35509. "\xdf\xf2\x87\x1b\x69\x81\x1d\x71"
  35510. "\x70\x9e\x9c\x3b\xde\x49\x70\x11"
  35511. "\xa0\xa3\xdb\x0d\x54\x4f\x66\x69"
  35512. "\xd7\xdb\x80\xa7\x70\x92\x68\xce"
  35513. "\x81\x04\x2c\xc6\xab\xae\xe5\x60"
  35514. "\x15\xe9\x6f\xef\xaa\x8f\xa7\xa7"
  35515. "\x63\x8f\xf2\xf0\x77\xf1\xa8\xea"
  35516. "\xe1\xb7\x1f\x9e\xab\x9e\x4b\x3f"
  35517. "\x07\x87\x5b\x6f\xcd\xa8\xaf\xb9"
  35518. "\xfa\x70\x0b\x52\xb8\xa8\xa7\x9e"
  35519. "\x07\x5f\xa6\x0e\xb3\x9b\x79\x13"
  35520. "\x79\xc3\x3e\x8d\x1c\x2c\x68\xc8"
  35521. "\x51\x1d\x3c\x7b\x7d\x79\x77\x2a"
  35522. "\x56\x65\xc5\x54\x23\x28\xb0\x03",
  35523. .input = "\x9e\x16\xab\xed\x4b\xa7\x42\x5a"
  35524. "\xc6\xfb\x4e\x76\xff\xbe\x03\xa0"
  35525. "\x0f\xe3\xad\xba\xe4\x98\x2b\x0e"
  35526. "\x21\x48\xa0\xb8\x65\x48\x27\x48"
  35527. "\x84\x54\x54\xb2\x9a\x94\x7b\xe6"
  35528. "\x4b\x29\xe9\xcf\x05\x91\x80\x1a"
  35529. "\x3a\xf3\x41\x96\x85\x1d\x9f\x74"
  35530. "\x51\x56\x63\xfa\x7c\x28\x85\x49"
  35531. "\xf7\x2f\xf9\xf2\x18\x46\xf5\x33"
  35532. "\x80\xa3\x3c\xce\xb2\x57\x93\xf5"
  35533. "\xae\xbd\xa9\xf5\x7b\x30\xc4\x93"
  35534. "\x66\xe0\x30\x77\x16\xe4\xa0\x31"
  35535. "\xba\x70\xbc\x68\x13\xf5\xb0\x9a"
  35536. "\xc1\xfc\x7e\xfe\x55\x80\x5c\x48"
  35537. "\x74\xa6\xaa\xa3\xac\xdc\xc2\xf5"
  35538. "\x8d\xde\x34\x86\x78\x60\x75\x8d",
  35539. .ilen = 128,
  35540. .rlen = 128,
  35541. .also_non_np = 1,
  35542. .np = 4,
  35543. .tap = { 104, 16, 4, 4 },
  35544. }, {
  35545. .key = "\xd3\x81\x72\x18\x23\xff\x6f\x4a"
  35546. "\x25\x74\x29\x0d\x51\x8a\x0e\x13"
  35547. "\xc1\x53\x5d\x30\x8d\xee\x75\x0d"
  35548. "\x14\xd6\x69\xc9\x15\xa9\x0c\x60",
  35549. .klen = 32,
  35550. .iv = "\x65\x9b\xd4\xa8\x7d\x29\x1d\xf4"
  35551. "\xc4\xd6\x9b\x6a\x28\xab\x64\xe2"
  35552. "\x62\x81\x97\xc5\x81\xaa\xf9\x44"
  35553. "\xc1\x72\x59\x82\xaf\x16\xc8\x2c",
  35554. .result = "\xc7\x6b\x52\x6a\x10\xf0\xcc\x09"
  35555. "\xc1\x12\x1d\x6d\x21\xa6\x78\xf5"
  35556. "\x05\xa3\x69\x60\x91\x36\x98\x57"
  35557. "\xba\x0c\x14\xcc\xf3\x2d\x73\x03"
  35558. "\xc6\xb2\x5f\xc8\x16\x27\x37\x5d"
  35559. "\xd0\x0b\x87\xb2\x50\x94\x7b\x58"
  35560. "\x04\xf4\xe0\x7f\x6e\x57\x8e\xc9"
  35561. "\x41\x84\xc1\xb1\x7e\x4b\x91\x12"
  35562. "\x3a\x8b\x5d\x50\x82\x7b\xcb\xd9"
  35563. "\x9a\xd9\x4e\x18\x06\x23\x9e\xd4"
  35564. "\xa5\x20\x98\xef\xb5\xda\xe5\xc0"
  35565. "\x8a\x6a\x83\x77\x15\x84\x1e\xae"
  35566. "\x78\x94\x9d\xdf\xb7\xd1\xea\x67"
  35567. "\xaa\xb0\x14\x15\xfa\x67\x21\x84"
  35568. "\xd3\x41\x2a\xce\xba\x4b\x4a\xe8"
  35569. "\x95\x62\xa9\x55\xf0\x80\xad\xbd"
  35570. "\xab\xaf\xdd\x4f\xa5\x7c\x13\x36"
  35571. "\xed\x5e\x4f\x72\xad\x4b\xf1\xd0"
  35572. "\x88\x4e\xec\x2c\x88\x10\x5e\xea"
  35573. "\x12\xc0\x16\x01\x29\xa3\xa0\x55"
  35574. "\xaa\x68\xf3\xe9\x9d\x3b\x0d\x3b"
  35575. "\x6d\xec\xf8\xa0\x2d\xf0\x90\x8d"
  35576. "\x1c\xe2\x88\xd4\x24\x71\xf9\xb3"
  35577. "\xc1\x9f\xc5\xd6\x76\x70\xc5\x2e"
  35578. "\x9c\xac\xdb\x90\xbd\x83\x72\xba"
  35579. "\x6e\xb5\xa5\x53\x83\xa9\xa5\xbf"
  35580. "\x7d\x06\x0e\x3c\x2a\xd2\x04\xb5"
  35581. "\x1e\x19\x38\x09\x16\xd2\x82\x1f"
  35582. "\x75\x18\x56\xb8\x96\x0b\xa6\xf9"
  35583. "\xcf\x62\xd9\x32\x5d\xa9\xd7\x1d"
  35584. "\xec\xe4\xdf\x1b\xbe\xf1\x36\xee"
  35585. "\xe3\x7b\xb5\x2f\xee\xf8\x53\x3d"
  35586. "\x6a\xb7\x70\xa9\xfc\x9c\x57\x25"
  35587. "\xf2\x89\x10\xd3\xb8\xa8\x8c\x30"
  35588. "\xae\x23\x4f\x0e\x13\x66\x4f\xe1"
  35589. "\xb6\xc0\xe4\xf8\xef\x93\xbd\x6e"
  35590. "\x15\x85\x6b\xe3\x60\x81\x1d\x68"
  35591. "\xd7\x31\x87\x89\x09\xab\xd5\x96"
  35592. "\x1d\xf3\x6d\x67\x80\xca\x07\x31"
  35593. "\x5d\xa7\xe4\xfb\x3e\xf2\x9b\x33"
  35594. "\x52\x18\xc8\x30\xfe\x2d\xca\x1e"
  35595. "\x79\x92\x7a\x60\x5c\xb6\x58\x87"
  35596. "\xa4\x36\xa2\x67\x92\x8b\xa4\xb7"
  35597. "\xf1\x86\xdf\xdc\xc0\x7e\x8f\x63"
  35598. "\xd2\xa2\xdc\x78\xeb\x4f\xd8\x96"
  35599. "\x47\xca\xb8\x91\xf9\xf7\x94\x21"
  35600. "\x5f\x9a\x9f\x5b\xb8\x40\x41\x4b"
  35601. "\x66\x69\x6a\x72\xd0\xcb\x70\xb7"
  35602. "\x93\xb5\x37\x96\x05\x37\x4f\xe5"
  35603. "\x8c\xa7\x5a\x4e\x8b\xb7\x84\xea"
  35604. "\xc7\xfc\x19\x6e\x1f\x5a\xa1\xac"
  35605. "\x18\x7d\x52\x3b\xb3\x34\x62\x99"
  35606. "\xe4\x9e\x31\x04\x3f\xc0\x8d\x84"
  35607. "\x17\x7c\x25\x48\x52\x67\x11\x27"
  35608. "\x67\xbb\x5a\x85\xca\x56\xb2\x5c"
  35609. "\xe6\xec\xd5\x96\x3d\x15\xfc\xfb"
  35610. "\x22\x25\xf4\x13\xe5\x93\x4b\x9a"
  35611. "\x77\xf1\x52\x18\xfa\x16\x5e\x49"
  35612. "\x03\x45\xa8\x08\xfa\xb3\x41\x92"
  35613. "\x79\x50\x33\xca\xd0\xd7\x42\x55"
  35614. "\xc3\x9a\x0c\x4e\xd9\xa4\x3c\x86"
  35615. "\x80\x9f\x53\xd1\xa4\x2e\xd1\xbc"
  35616. "\xf1\x54\x6e\x93\xa4\x65\x99\x8e"
  35617. "\xdf\x29\xc0\x64\x63\x07\xbb\xea",
  35618. .input = "\x15\x97\xd0\x86\x18\x03\x9c\x51"
  35619. "\xc5\x11\x36\x62\x13\x92\xe6\x73"
  35620. "\x29\x79\xde\xa1\x00\x3e\x08\x64"
  35621. "\x17\x1a\xbc\xd5\xfe\x33\x0e\x0c"
  35622. "\x7c\x94\xa7\xc6\x3c\xbe\xac\xa2"
  35623. "\x89\xe6\xbc\xdf\x0c\x33\x27\x42"
  35624. "\x46\x73\x2f\xba\x4e\xa6\x46\x8f"
  35625. "\xe4\xee\x39\x63\x42\x65\xa3\x88"
  35626. "\x7a\xad\x33\x23\xa9\xa7\x20\x7f"
  35627. "\x0b\xe6\x6a\xc3\x60\xda\x9e\xb4"
  35628. "\xd6\x07\x8a\x77\x26\xd1\xab\x44"
  35629. "\x99\x55\x03\x5e\xed\x8d\x7b\xbd"
  35630. "\xc8\x21\xb7\x21\x30\x3f\xc0\xb5"
  35631. "\xc8\xec\x6c\x23\xa6\xa3\x6d\xf1"
  35632. "\x30\x0a\xd0\xa6\xa9\x28\x69\xae"
  35633. "\x2a\xe6\x54\xac\x82\x9d\x6a\x95"
  35634. "\x6f\x06\x44\xc5\x5a\x77\x6e\xec"
  35635. "\xf8\xf8\x63\xb2\xe6\xaa\xbd\x8e"
  35636. "\x0e\x8a\x62\x00\x03\xc8\x84\xdd"
  35637. "\x47\x4a\xc3\x55\xba\xb7\xe7\xdf"
  35638. "\x08\xbf\x62\xf5\xe8\xbc\xb6\x11"
  35639. "\xe4\xcb\xd0\x66\x74\x32\xcf\xd4"
  35640. "\xf8\x51\x80\x39\x14\x05\x12\xdb"
  35641. "\x87\x93\xe2\x26\x30\x9c\x3a\x21"
  35642. "\xe5\xd0\x38\x57\x80\x15\xe4\x08"
  35643. "\x58\x05\x49\x7d\xe6\x92\x77\x70"
  35644. "\xfb\x1e\x2d\x6a\x84\x00\xc8\x68"
  35645. "\xf7\x1a\xdd\xf0\x7b\x38\x1e\xd8"
  35646. "\x2c\x78\x78\x61\xcf\xe3\xde\x69"
  35647. "\x1f\xd5\x03\xd5\x1a\xb4\xcf\x03"
  35648. "\xc8\x7a\x70\x68\x35\xb4\xf6\xbe"
  35649. "\x90\x62\xb2\x28\x99\x86\xf5\x44"
  35650. "\x99\xeb\x31\xcf\xca\xdf\xd0\x21"
  35651. "\xd6\x60\xf7\x0f\x40\xb4\x80\xb7"
  35652. "\xab\xe1\x9b\x45\xba\x66\xda\xee"
  35653. "\xdd\x04\x12\x40\x98\xe1\x69\xe5"
  35654. "\x2b\x9c\x59\x80\xe7\x7b\xcc\x63"
  35655. "\xa6\xc0\x3a\xa9\xfe\x8a\xf9\x62"
  35656. "\x11\x34\x61\x94\x35\xfe\xf2\x99"
  35657. "\xfd\xee\x19\xea\x95\xb6\x12\xbf"
  35658. "\x1b\xdf\x02\x1a\xcc\x3e\x7e\x65"
  35659. "\x78\x74\x10\x50\x29\x63\x28\xea"
  35660. "\x6b\xab\xd4\x06\x4d\x15\x24\x31"
  35661. "\xc7\x0a\xc9\x16\xb6\x48\xf0\xbf"
  35662. "\x49\xdb\x68\x71\x31\x8f\x87\xe2"
  35663. "\x13\x05\x64\xd6\x22\x0c\xf8\x36"
  35664. "\x84\x24\x3e\x69\x5e\xb8\x9e\x16"
  35665. "\x73\x6c\x83\x1e\xe0\x9f\x9e\xba"
  35666. "\xe5\x59\x21\x33\x1b\xa9\x26\xc2"
  35667. "\xc7\xd9\x30\x73\xb6\xa6\x73\x82"
  35668. "\x19\xfa\x44\x4d\x40\x8b\x69\x04"
  35669. "\x94\x74\xea\x6e\xb3\x09\x47\x01"
  35670. "\x2a\xb9\x78\x34\x43\x11\xed\xd6"
  35671. "\x8c\x95\x65\x1b\x85\x67\xa5\x40"
  35672. "\xac\x9c\x05\x4b\x57\x4a\xa9\x96"
  35673. "\x0f\xdd\x4f\xa1\xe0\xcf\x6e\xc7"
  35674. "\x1b\xed\xa2\xb4\x56\x8c\x09\x6e"
  35675. "\xa6\x65\xd7\x55\x81\xb7\xed\x11"
  35676. "\x9b\x40\x75\xa8\x6b\x56\xaf\x16"
  35677. "\x8b\x3d\xf4\xcb\xfe\xd5\x1d\x3d"
  35678. "\x85\xc2\xc0\xde\x43\x39\x4a\x96"
  35679. "\xba\x88\x97\xc0\xd6\x00\x0e\x27"
  35680. "\x21\xb0\x21\x52\xba\xa7\x37\xaa"
  35681. "\xcc\xbf\x95\xa8\xf4\xd0\x91\xf6",
  35682. .ilen = 512,
  35683. .rlen = 512,
  35684. .also_non_np = 1,
  35685. .np = 2,
  35686. .tap = { 144, 368 },
  35687. }
  35688. };
  35689. /* Adiantum with XChaCha20 instead of XChaCha12 */
  35690. /* Test vectors from https://github.com/google/adiantum */
  35691. static struct cipher_testvec adiantum_xchacha20_aes_enc_tv_template[] = {
  35692. {
  35693. .key = "\x9e\xeb\xb2\x49\x3c\x1c\xf5\xf4"
  35694. "\x6a\x99\xc2\xc4\xdf\xb1\xf4\xdd"
  35695. "\x75\x20\x57\xea\x2c\x4f\xcd\xb2"
  35696. "\xa5\x3d\x7b\x49\x1e\xab\xfd\x0f",
  35697. .klen = 32,
  35698. .iv = "\xdf\x63\xd4\xab\xd2\x49\xf3\xd8"
  35699. "\x33\x81\x37\x60\x7d\xfa\x73\x08"
  35700. "\xd8\x49\x6d\x80\xe8\x2f\x62\x54"
  35701. "\xeb\x0e\xa9\x39\x5b\x45\x7f\x8a",
  35702. .input = "\x67\xc9\xf2\x30\x84\x41\x8e\x43"
  35703. "\xfb\xf3\xb3\x3e\x79\x36\x7f\xe8",
  35704. .result = "\xf6\x78\x97\xd6\xaa\x94\x01\x27"
  35705. "\x2e\x4d\x83\xe0\x6e\x64\x9a\xdf",
  35706. .ilen = 16,
  35707. .rlen = 16,
  35708. .also_non_np = 1,
  35709. .np = 3,
  35710. .tap = { 5, 2, 9 },
  35711. }, {
  35712. .key = "\x36\x2b\x57\x97\xf8\x5d\xcd\x99"
  35713. "\x5f\x1a\x5a\x44\x1d\x92\x0f\x27"
  35714. "\xcc\x16\xd7\x2b\x85\x63\x99\xd3"
  35715. "\xba\x96\xa1\xdb\xd2\x60\x68\xda",
  35716. .klen = 32,
  35717. .iv = "\xef\x58\x69\xb1\x2c\x5e\x9a\x47"
  35718. "\x24\xc1\xb1\x69\xe1\x12\x93\x8f"
  35719. "\x43\x3d\x6d\x00\xdb\x5e\xd8\xd9"
  35720. "\x12\x9a\xfe\xd9\xff\x2d\xaa\xc4",
  35721. .input = "\x5e\xa8\x68\x19\x85\x98\x12\x23"
  35722. "\x26\x0a\xcc\xdb\x0a\x04\xb9\xdf"
  35723. "\x4d\xb3\x48\x7b\xb0\xe3\xc8\x19"
  35724. "\x43\x5a\x46\x06\x94\x2d\xf2",
  35725. .result = "\x4b\xb8\x90\x10\xdf\x7f\x64\x08"
  35726. "\x0e\x14\x42\x5f\x00\x74\x09\x36"
  35727. "\x57\x72\xb5\xfd\xb5\x5d\xb8\x28"
  35728. "\x0c\x04\x91\x14\x91\xe9\x37",
  35729. .ilen = 31,
  35730. .rlen = 31,
  35731. .also_non_np = 1,
  35732. .np = 2,
  35733. .tap = { 16, 15 },
  35734. }, {
  35735. .key = "\xa5\x28\x24\x34\x1a\x3c\xd8\xf7"
  35736. "\x05\x91\x8f\xee\x85\x1f\x35\x7f"
  35737. "\x80\x3d\xfc\x9b\x94\xf6\xfc\x9e"
  35738. "\x19\x09\x00\xa9\x04\x31\x4f\x11",
  35739. .klen = 32,
  35740. .iv = "\xa1\xba\x49\x95\xff\x34\x6d\xb8"
  35741. "\xcd\x87\x5d\x5e\xfd\xea\x85\xdb"
  35742. "\x8a\x7b\x5e\xb2\x5d\x57\xdd\x62"
  35743. "\xac\xa9\x8c\x41\x42\x94\x75\xb7",
  35744. .input = "\x69\xb4\xe8\x8c\x37\xe8\x67\x82"
  35745. "\xf1\xec\x5d\x04\xe5\x14\x91\x13"
  35746. "\xdf\xf2\x87\x1b\x69\x81\x1d\x71"
  35747. "\x70\x9e\x9c\x3b\xde\x49\x70\x11"
  35748. "\xa0\xa3\xdb\x0d\x54\x4f\x66\x69"
  35749. "\xd7\xdb\x80\xa7\x70\x92\x68\xce"
  35750. "\x81\x04\x2c\xc6\xab\xae\xe5\x60"
  35751. "\x15\xe9\x6f\xef\xaa\x8f\xa7\xa7"
  35752. "\x63\x8f\xf2\xf0\x77\xf1\xa8\xea"
  35753. "\xe1\xb7\x1f\x9e\xab\x9e\x4b\x3f"
  35754. "\x07\x87\x5b\x6f\xcd\xa8\xaf\xb9"
  35755. "\xfa\x70\x0b\x52\xb8\xa8\xa7\x9e"
  35756. "\x07\x5f\xa6\x0e\xb3\x9b\x79\x13"
  35757. "\x79\xc3\x3e\x8d\x1c\x2c\x68\xc8"
  35758. "\x51\x1d\x3c\x7b\x7d\x79\x77\x2a"
  35759. "\x56\x65\xc5\x54\x23\x28\xb0\x03",
  35760. .result = "\xb1\x8b\xa0\x05\x77\xa8\x4d\x59"
  35761. "\x1b\x8e\x21\xfc\x3a\x49\xfa\xd4"
  35762. "\xeb\x36\xf3\xc4\xdf\xdc\xae\x67"
  35763. "\x07\x3f\x70\x0e\xe9\x66\xf5\x0c"
  35764. "\x30\x4d\x66\xc9\xa4\x2f\x73\x9c"
  35765. "\x13\xc8\x49\x44\xcc\x0a\x90\x9d"
  35766. "\x7c\xdd\x19\x3f\xea\x72\x8d\x58"
  35767. "\xab\xe7\x09\x2c\xec\xb5\x44\xd2"
  35768. "\xca\xa6\x2d\x7a\x5c\x9c\x2b\x15"
  35769. "\xec\x2a\xa6\x69\x91\xf9\xf3\x13"
  35770. "\xf7\x72\xc1\xc1\x40\xd5\xe1\x94"
  35771. "\xf4\x29\xa1\x3e\x25\x02\xa8\x3e"
  35772. "\x94\xc1\x91\x14\xa1\x14\xcb\xbe"
  35773. "\x67\x4c\xb9\x38\xfe\xa7\xaa\x32"
  35774. "\x29\x62\x0d\xb2\xf6\x3c\x58\x57"
  35775. "\xc1\xd5\x5a\xbb\xd6\xa6\x2a\xe5",
  35776. .ilen = 128,
  35777. .rlen = 128,
  35778. .also_non_np = 1,
  35779. .np = 4,
  35780. .tap = { 112, 7, 8, 1 },
  35781. }, {
  35782. .key = "\xd3\x81\x72\x18\x23\xff\x6f\x4a"
  35783. "\x25\x74\x29\x0d\x51\x8a\x0e\x13"
  35784. "\xc1\x53\x5d\x30\x8d\xee\x75\x0d"
  35785. "\x14\xd6\x69\xc9\x15\xa9\x0c\x60",
  35786. .klen = 32,
  35787. .iv = "\x65\x9b\xd4\xa8\x7d\x29\x1d\xf4"
  35788. "\xc4\xd6\x9b\x6a\x28\xab\x64\xe2"
  35789. "\x62\x81\x97\xc5\x81\xaa\xf9\x44"
  35790. "\xc1\x72\x59\x82\xaf\x16\xc8\x2c",
  35791. .input = "\xc7\x6b\x52\x6a\x10\xf0\xcc\x09"
  35792. "\xc1\x12\x1d\x6d\x21\xa6\x78\xf5"
  35793. "\x05\xa3\x69\x60\x91\x36\x98\x57"
  35794. "\xba\x0c\x14\xcc\xf3\x2d\x73\x03"
  35795. "\xc6\xb2\x5f\xc8\x16\x27\x37\x5d"
  35796. "\xd0\x0b\x87\xb2\x50\x94\x7b\x58"
  35797. "\x04\xf4\xe0\x7f\x6e\x57\x8e\xc9"
  35798. "\x41\x84\xc1\xb1\x7e\x4b\x91\x12"
  35799. "\x3a\x8b\x5d\x50\x82\x7b\xcb\xd9"
  35800. "\x9a\xd9\x4e\x18\x06\x23\x9e\xd4"
  35801. "\xa5\x20\x98\xef\xb5\xda\xe5\xc0"
  35802. "\x8a\x6a\x83\x77\x15\x84\x1e\xae"
  35803. "\x78\x94\x9d\xdf\xb7\xd1\xea\x67"
  35804. "\xaa\xb0\x14\x15\xfa\x67\x21\x84"
  35805. "\xd3\x41\x2a\xce\xba\x4b\x4a\xe8"
  35806. "\x95\x62\xa9\x55\xf0\x80\xad\xbd"
  35807. "\xab\xaf\xdd\x4f\xa5\x7c\x13\x36"
  35808. "\xed\x5e\x4f\x72\xad\x4b\xf1\xd0"
  35809. "\x88\x4e\xec\x2c\x88\x10\x5e\xea"
  35810. "\x12\xc0\x16\x01\x29\xa3\xa0\x55"
  35811. "\xaa\x68\xf3\xe9\x9d\x3b\x0d\x3b"
  35812. "\x6d\xec\xf8\xa0\x2d\xf0\x90\x8d"
  35813. "\x1c\xe2\x88\xd4\x24\x71\xf9\xb3"
  35814. "\xc1\x9f\xc5\xd6\x76\x70\xc5\x2e"
  35815. "\x9c\xac\xdb\x90\xbd\x83\x72\xba"
  35816. "\x6e\xb5\xa5\x53\x83\xa9\xa5\xbf"
  35817. "\x7d\x06\x0e\x3c\x2a\xd2\x04\xb5"
  35818. "\x1e\x19\x38\x09\x16\xd2\x82\x1f"
  35819. "\x75\x18\x56\xb8\x96\x0b\xa6\xf9"
  35820. "\xcf\x62\xd9\x32\x5d\xa9\xd7\x1d"
  35821. "\xec\xe4\xdf\x1b\xbe\xf1\x36\xee"
  35822. "\xe3\x7b\xb5\x2f\xee\xf8\x53\x3d"
  35823. "\x6a\xb7\x70\xa9\xfc\x9c\x57\x25"
  35824. "\xf2\x89\x10\xd3\xb8\xa8\x8c\x30"
  35825. "\xae\x23\x4f\x0e\x13\x66\x4f\xe1"
  35826. "\xb6\xc0\xe4\xf8\xef\x93\xbd\x6e"
  35827. "\x15\x85\x6b\xe3\x60\x81\x1d\x68"
  35828. "\xd7\x31\x87\x89\x09\xab\xd5\x96"
  35829. "\x1d\xf3\x6d\x67\x80\xca\x07\x31"
  35830. "\x5d\xa7\xe4\xfb\x3e\xf2\x9b\x33"
  35831. "\x52\x18\xc8\x30\xfe\x2d\xca\x1e"
  35832. "\x79\x92\x7a\x60\x5c\xb6\x58\x87"
  35833. "\xa4\x36\xa2\x67\x92\x8b\xa4\xb7"
  35834. "\xf1\x86\xdf\xdc\xc0\x7e\x8f\x63"
  35835. "\xd2\xa2\xdc\x78\xeb\x4f\xd8\x96"
  35836. "\x47\xca\xb8\x91\xf9\xf7\x94\x21"
  35837. "\x5f\x9a\x9f\x5b\xb8\x40\x41\x4b"
  35838. "\x66\x69\x6a\x72\xd0\xcb\x70\xb7"
  35839. "\x93\xb5\x37\x96\x05\x37\x4f\xe5"
  35840. "\x8c\xa7\x5a\x4e\x8b\xb7\x84\xea"
  35841. "\xc7\xfc\x19\x6e\x1f\x5a\xa1\xac"
  35842. "\x18\x7d\x52\x3b\xb3\x34\x62\x99"
  35843. "\xe4\x9e\x31\x04\x3f\xc0\x8d\x84"
  35844. "\x17\x7c\x25\x48\x52\x67\x11\x27"
  35845. "\x67\xbb\x5a\x85\xca\x56\xb2\x5c"
  35846. "\xe6\xec\xd5\x96\x3d\x15\xfc\xfb"
  35847. "\x22\x25\xf4\x13\xe5\x93\x4b\x9a"
  35848. "\x77\xf1\x52\x18\xfa\x16\x5e\x49"
  35849. "\x03\x45\xa8\x08\xfa\xb3\x41\x92"
  35850. "\x79\x50\x33\xca\xd0\xd7\x42\x55"
  35851. "\xc3\x9a\x0c\x4e\xd9\xa4\x3c\x86"
  35852. "\x80\x9f\x53\xd1\xa4\x2e\xd1\xbc"
  35853. "\xf1\x54\x6e\x93\xa4\x65\x99\x8e"
  35854. "\xdf\x29\xc0\x64\x63\x07\xbb\xea",
  35855. .result = "\xe0\x33\xf6\xe0\xb4\xa5\xdd\x2b"
  35856. "\xdd\xce\xfc\x12\x1e\xfc\x2d\xf2"
  35857. "\x8b\xc7\xeb\xc1\xc4\x2a\xe8\x44"
  35858. "\x0f\x3d\x97\x19\x2e\x6d\xa2\x38"
  35859. "\x9d\xa6\xaa\xe1\x96\xb9\x08\xe8"
  35860. "\x0b\x70\x48\x5c\xed\xb5\x9b\xcb"
  35861. "\x8b\x40\x88\x7e\x69\x73\xf7\x16"
  35862. "\x71\xbb\x5b\xfc\xa3\x47\x5d\xa6"
  35863. "\xae\x3a\x64\xc4\xe7\xb8\xa8\xe7"
  35864. "\xb1\x32\x19\xdb\xe3\x01\xb8\xf0"
  35865. "\xa4\x86\xb4\x4c\xc2\xde\x5c\xd2"
  35866. "\x6c\x77\xd2\xe8\x18\xb7\x0a\xc9"
  35867. "\x3d\x53\xb5\xc4\x5c\xf0\x8c\x06"
  35868. "\xdc\x90\xe0\x74\x47\x1b\x0b\xf6"
  35869. "\xd2\x71\x6b\xc4\xf1\x97\x00\x2d"
  35870. "\x63\x57\x44\x1f\x8c\xf4\xe6\x9b"
  35871. "\xe0\x7a\xdd\xec\x32\x73\x42\x32"
  35872. "\x7f\x35\x67\x60\x0d\xcf\x10\x52"
  35873. "\x61\x22\x53\x8d\x8e\xbb\x33\x76"
  35874. "\x59\xd9\x10\xce\xdf\xef\xc0\x41"
  35875. "\xd5\x33\x29\x6a\xda\x46\xa4\x51"
  35876. "\xf0\x99\x3d\x96\x31\xdd\xb5\xcb"
  35877. "\x3e\x2a\x1f\xc7\x5c\x79\xd3\xc5"
  35878. "\x20\xa1\xb1\x39\x1b\xc6\x0a\x70"
  35879. "\x26\x39\x95\x07\xad\x7a\xc9\x69"
  35880. "\xfe\x81\xc7\x88\x08\x38\xaf\xad"
  35881. "\x9e\x8d\xfb\xe8\x24\x0d\x22\xb8"
  35882. "\x0e\xed\xbe\x37\x53\x7c\xa6\xc6"
  35883. "\x78\x62\xec\xa3\x59\xd9\xc6\x9d"
  35884. "\xb8\x0e\x69\x77\x84\x2d\x6a\x4c"
  35885. "\xc5\xd9\xb2\xa0\x2b\xa8\x80\xcc"
  35886. "\xe9\x1e\x9c\x5a\xc4\xa1\xb2\x37"
  35887. "\x06\x9b\x30\x32\x67\xf7\xe7\xd2"
  35888. "\x42\xc7\xdf\x4e\xd4\xcb\xa0\x12"
  35889. "\x94\xa1\x34\x85\x93\x50\x4b\x0a"
  35890. "\x3c\x7d\x49\x25\x01\x41\x6b\x96"
  35891. "\xa9\x12\xbb\x0b\xc0\xd7\xd0\x93"
  35892. "\x1f\x70\x38\xb8\x21\xee\xf6\xa7"
  35893. "\xee\xeb\xe7\x81\xa4\x13\xb4\x87"
  35894. "\xfa\xc1\xb0\xb5\x37\x8b\x74\xa2"
  35895. "\x4e\xc7\xc2\xad\x3d\x62\x3f\xf8"
  35896. "\x34\x42\xe5\xae\x45\x13\x63\xfe"
  35897. "\xfc\x2a\x17\x46\x61\xa9\xd3\x1c"
  35898. "\x4c\xaf\xf0\x09\x62\x26\x66\x1e"
  35899. "\x74\xcf\xd6\x68\x3d\x7d\xd8\xb7"
  35900. "\xe7\xe6\xf8\xf0\x08\x20\xf7\x47"
  35901. "\x1c\x52\xaa\x0f\x3e\x21\xa3\xf2"
  35902. "\xbf\x2f\x95\x16\xa8\xc8\xc8\x8c"
  35903. "\x99\x0f\x5d\xfb\xfa\x2b\x58\x8a"
  35904. "\x7e\xd6\x74\x02\x60\xf0\xd0\x5b"
  35905. "\x65\xa8\xac\xea\x8d\x68\x46\x34"
  35906. "\x26\x9d\x4f\xb1\x9a\x8e\xc0\x1a"
  35907. "\xf1\xed\xc6\x7a\x83\xfd\x8a\x57"
  35908. "\xf2\xe6\xe4\xba\xfc\xc6\x3c\xad"
  35909. "\x5b\x19\x50\x2f\x3a\xcc\x06\x46"
  35910. "\x04\x51\x3f\x91\x97\xf0\xd2\x07"
  35911. "\xe7\x93\x89\x7e\xb5\x32\x0f\x03"
  35912. "\xe5\x58\x9e\x74\x72\xeb\xc2\x38"
  35913. "\x00\x0c\x91\x72\x69\xed\x7d\x6d"
  35914. "\xc8\x71\xf0\xec\xff\x80\xd9\x1c"
  35915. "\x9e\xd2\xfa\x15\xfc\x6c\x4e\xbc"
  35916. "\xb1\xa6\xbd\xbd\x70\x40\xca\x20"
  35917. "\xb8\x78\xd2\xa3\xc6\xf3\x79\x9c"
  35918. "\xc7\x27\xe1\x6a\x29\xad\xa4\x03",
  35919. .ilen = 512,
  35920. .rlen = 512,
  35921. }
  35922. };
  35923. static struct cipher_testvec adiantum_xchacha20_aes_dec_tv_template[] = {
  35924. {
  35925. .key = "\x9e\xeb\xb2\x49\x3c\x1c\xf5\xf4"
  35926. "\x6a\x99\xc2\xc4\xdf\xb1\xf4\xdd"
  35927. "\x75\x20\x57\xea\x2c\x4f\xcd\xb2"
  35928. "\xa5\x3d\x7b\x49\x1e\xab\xfd\x0f",
  35929. .klen = 32,
  35930. .iv = "\xdf\x63\xd4\xab\xd2\x49\xf3\xd8"
  35931. "\x33\x81\x37\x60\x7d\xfa\x73\x08"
  35932. "\xd8\x49\x6d\x80\xe8\x2f\x62\x54"
  35933. "\xeb\x0e\xa9\x39\x5b\x45\x7f\x8a",
  35934. .result = "\x67\xc9\xf2\x30\x84\x41\x8e\x43"
  35935. "\xfb\xf3\xb3\x3e\x79\x36\x7f\xe8",
  35936. .input = "\xf6\x78\x97\xd6\xaa\x94\x01\x27"
  35937. "\x2e\x4d\x83\xe0\x6e\x64\x9a\xdf",
  35938. .ilen = 16,
  35939. .rlen = 16,
  35940. .also_non_np = 1,
  35941. .np = 3,
  35942. .tap = { 5, 2, 9 },
  35943. }, {
  35944. .key = "\x36\x2b\x57\x97\xf8\x5d\xcd\x99"
  35945. "\x5f\x1a\x5a\x44\x1d\x92\x0f\x27"
  35946. "\xcc\x16\xd7\x2b\x85\x63\x99\xd3"
  35947. "\xba\x96\xa1\xdb\xd2\x60\x68\xda",
  35948. .klen = 32,
  35949. .iv = "\xef\x58\x69\xb1\x2c\x5e\x9a\x47"
  35950. "\x24\xc1\xb1\x69\xe1\x12\x93\x8f"
  35951. "\x43\x3d\x6d\x00\xdb\x5e\xd8\xd9"
  35952. "\x12\x9a\xfe\xd9\xff\x2d\xaa\xc4",
  35953. .result = "\x5e\xa8\x68\x19\x85\x98\x12\x23"
  35954. "\x26\x0a\xcc\xdb\x0a\x04\xb9\xdf"
  35955. "\x4d\xb3\x48\x7b\xb0\xe3\xc8\x19"
  35956. "\x43\x5a\x46\x06\x94\x2d\xf2",
  35957. .input = "\x4b\xb8\x90\x10\xdf\x7f\x64\x08"
  35958. "\x0e\x14\x42\x5f\x00\x74\x09\x36"
  35959. "\x57\x72\xb5\xfd\xb5\x5d\xb8\x28"
  35960. "\x0c\x04\x91\x14\x91\xe9\x37",
  35961. .ilen = 31,
  35962. .rlen = 31,
  35963. .also_non_np = 1,
  35964. .np = 2,
  35965. .tap = { 16, 15 },
  35966. }, {
  35967. .key = "\xa5\x28\x24\x34\x1a\x3c\xd8\xf7"
  35968. "\x05\x91\x8f\xee\x85\x1f\x35\x7f"
  35969. "\x80\x3d\xfc\x9b\x94\xf6\xfc\x9e"
  35970. "\x19\x09\x00\xa9\x04\x31\x4f\x11",
  35971. .klen = 32,
  35972. .iv = "\xa1\xba\x49\x95\xff\x34\x6d\xb8"
  35973. "\xcd\x87\x5d\x5e\xfd\xea\x85\xdb"
  35974. "\x8a\x7b\x5e\xb2\x5d\x57\xdd\x62"
  35975. "\xac\xa9\x8c\x41\x42\x94\x75\xb7",
  35976. .result = "\x69\xb4\xe8\x8c\x37\xe8\x67\x82"
  35977. "\xf1\xec\x5d\x04\xe5\x14\x91\x13"
  35978. "\xdf\xf2\x87\x1b\x69\x81\x1d\x71"
  35979. "\x70\x9e\x9c\x3b\xde\x49\x70\x11"
  35980. "\xa0\xa3\xdb\x0d\x54\x4f\x66\x69"
  35981. "\xd7\xdb\x80\xa7\x70\x92\x68\xce"
  35982. "\x81\x04\x2c\xc6\xab\xae\xe5\x60"
  35983. "\x15\xe9\x6f\xef\xaa\x8f\xa7\xa7"
  35984. "\x63\x8f\xf2\xf0\x77\xf1\xa8\xea"
  35985. "\xe1\xb7\x1f\x9e\xab\x9e\x4b\x3f"
  35986. "\x07\x87\x5b\x6f\xcd\xa8\xaf\xb9"
  35987. "\xfa\x70\x0b\x52\xb8\xa8\xa7\x9e"
  35988. "\x07\x5f\xa6\x0e\xb3\x9b\x79\x13"
  35989. "\x79\xc3\x3e\x8d\x1c\x2c\x68\xc8"
  35990. "\x51\x1d\x3c\x7b\x7d\x79\x77\x2a"
  35991. "\x56\x65\xc5\x54\x23\x28\xb0\x03",
  35992. .input = "\xb1\x8b\xa0\x05\x77\xa8\x4d\x59"
  35993. "\x1b\x8e\x21\xfc\x3a\x49\xfa\xd4"
  35994. "\xeb\x36\xf3\xc4\xdf\xdc\xae\x67"
  35995. "\x07\x3f\x70\x0e\xe9\x66\xf5\x0c"
  35996. "\x30\x4d\x66\xc9\xa4\x2f\x73\x9c"
  35997. "\x13\xc8\x49\x44\xcc\x0a\x90\x9d"
  35998. "\x7c\xdd\x19\x3f\xea\x72\x8d\x58"
  35999. "\xab\xe7\x09\x2c\xec\xb5\x44\xd2"
  36000. "\xca\xa6\x2d\x7a\x5c\x9c\x2b\x15"
  36001. "\xec\x2a\xa6\x69\x91\xf9\xf3\x13"
  36002. "\xf7\x72\xc1\xc1\x40\xd5\xe1\x94"
  36003. "\xf4\x29\xa1\x3e\x25\x02\xa8\x3e"
  36004. "\x94\xc1\x91\x14\xa1\x14\xcb\xbe"
  36005. "\x67\x4c\xb9\x38\xfe\xa7\xaa\x32"
  36006. "\x29\x62\x0d\xb2\xf6\x3c\x58\x57"
  36007. "\xc1\xd5\x5a\xbb\xd6\xa6\x2a\xe5",
  36008. .ilen = 128,
  36009. .rlen = 128,
  36010. .also_non_np = 1,
  36011. .np = 4,
  36012. .tap = { 112, 7, 8, 1 },
  36013. }, {
  36014. .key = "\xd3\x81\x72\x18\x23\xff\x6f\x4a"
  36015. "\x25\x74\x29\x0d\x51\x8a\x0e\x13"
  36016. "\xc1\x53\x5d\x30\x8d\xee\x75\x0d"
  36017. "\x14\xd6\x69\xc9\x15\xa9\x0c\x60",
  36018. .klen = 32,
  36019. .iv = "\x65\x9b\xd4\xa8\x7d\x29\x1d\xf4"
  36020. "\xc4\xd6\x9b\x6a\x28\xab\x64\xe2"
  36021. "\x62\x81\x97\xc5\x81\xaa\xf9\x44"
  36022. "\xc1\x72\x59\x82\xaf\x16\xc8\x2c",
  36023. .result = "\xc7\x6b\x52\x6a\x10\xf0\xcc\x09"
  36024. "\xc1\x12\x1d\x6d\x21\xa6\x78\xf5"
  36025. "\x05\xa3\x69\x60\x91\x36\x98\x57"
  36026. "\xba\x0c\x14\xcc\xf3\x2d\x73\x03"
  36027. "\xc6\xb2\x5f\xc8\x16\x27\x37\x5d"
  36028. "\xd0\x0b\x87\xb2\x50\x94\x7b\x58"
  36029. "\x04\xf4\xe0\x7f\x6e\x57\x8e\xc9"
  36030. "\x41\x84\xc1\xb1\x7e\x4b\x91\x12"
  36031. "\x3a\x8b\x5d\x50\x82\x7b\xcb\xd9"
  36032. "\x9a\xd9\x4e\x18\x06\x23\x9e\xd4"
  36033. "\xa5\x20\x98\xef\xb5\xda\xe5\xc0"
  36034. "\x8a\x6a\x83\x77\x15\x84\x1e\xae"
  36035. "\x78\x94\x9d\xdf\xb7\xd1\xea\x67"
  36036. "\xaa\xb0\x14\x15\xfa\x67\x21\x84"
  36037. "\xd3\x41\x2a\xce\xba\x4b\x4a\xe8"
  36038. "\x95\x62\xa9\x55\xf0\x80\xad\xbd"
  36039. "\xab\xaf\xdd\x4f\xa5\x7c\x13\x36"
  36040. "\xed\x5e\x4f\x72\xad\x4b\xf1\xd0"
  36041. "\x88\x4e\xec\x2c\x88\x10\x5e\xea"
  36042. "\x12\xc0\x16\x01\x29\xa3\xa0\x55"
  36043. "\xaa\x68\xf3\xe9\x9d\x3b\x0d\x3b"
  36044. "\x6d\xec\xf8\xa0\x2d\xf0\x90\x8d"
  36045. "\x1c\xe2\x88\xd4\x24\x71\xf9\xb3"
  36046. "\xc1\x9f\xc5\xd6\x76\x70\xc5\x2e"
  36047. "\x9c\xac\xdb\x90\xbd\x83\x72\xba"
  36048. "\x6e\xb5\xa5\x53\x83\xa9\xa5\xbf"
  36049. "\x7d\x06\x0e\x3c\x2a\xd2\x04\xb5"
  36050. "\x1e\x19\x38\x09\x16\xd2\x82\x1f"
  36051. "\x75\x18\x56\xb8\x96\x0b\xa6\xf9"
  36052. "\xcf\x62\xd9\x32\x5d\xa9\xd7\x1d"
  36053. "\xec\xe4\xdf\x1b\xbe\xf1\x36\xee"
  36054. "\xe3\x7b\xb5\x2f\xee\xf8\x53\x3d"
  36055. "\x6a\xb7\x70\xa9\xfc\x9c\x57\x25"
  36056. "\xf2\x89\x10\xd3\xb8\xa8\x8c\x30"
  36057. "\xae\x23\x4f\x0e\x13\x66\x4f\xe1"
  36058. "\xb6\xc0\xe4\xf8\xef\x93\xbd\x6e"
  36059. "\x15\x85\x6b\xe3\x60\x81\x1d\x68"
  36060. "\xd7\x31\x87\x89\x09\xab\xd5\x96"
  36061. "\x1d\xf3\x6d\x67\x80\xca\x07\x31"
  36062. "\x5d\xa7\xe4\xfb\x3e\xf2\x9b\x33"
  36063. "\x52\x18\xc8\x30\xfe\x2d\xca\x1e"
  36064. "\x79\x92\x7a\x60\x5c\xb6\x58\x87"
  36065. "\xa4\x36\xa2\x67\x92\x8b\xa4\xb7"
  36066. "\xf1\x86\xdf\xdc\xc0\x7e\x8f\x63"
  36067. "\xd2\xa2\xdc\x78\xeb\x4f\xd8\x96"
  36068. "\x47\xca\xb8\x91\xf9\xf7\x94\x21"
  36069. "\x5f\x9a\x9f\x5b\xb8\x40\x41\x4b"
  36070. "\x66\x69\x6a\x72\xd0\xcb\x70\xb7"
  36071. "\x93\xb5\x37\x96\x05\x37\x4f\xe5"
  36072. "\x8c\xa7\x5a\x4e\x8b\xb7\x84\xea"
  36073. "\xc7\xfc\x19\x6e\x1f\x5a\xa1\xac"
  36074. "\x18\x7d\x52\x3b\xb3\x34\x62\x99"
  36075. "\xe4\x9e\x31\x04\x3f\xc0\x8d\x84"
  36076. "\x17\x7c\x25\x48\x52\x67\x11\x27"
  36077. "\x67\xbb\x5a\x85\xca\x56\xb2\x5c"
  36078. "\xe6\xec\xd5\x96\x3d\x15\xfc\xfb"
  36079. "\x22\x25\xf4\x13\xe5\x93\x4b\x9a"
  36080. "\x77\xf1\x52\x18\xfa\x16\x5e\x49"
  36081. "\x03\x45\xa8\x08\xfa\xb3\x41\x92"
  36082. "\x79\x50\x33\xca\xd0\xd7\x42\x55"
  36083. "\xc3\x9a\x0c\x4e\xd9\xa4\x3c\x86"
  36084. "\x80\x9f\x53\xd1\xa4\x2e\xd1\xbc"
  36085. "\xf1\x54\x6e\x93\xa4\x65\x99\x8e"
  36086. "\xdf\x29\xc0\x64\x63\x07\xbb\xea",
  36087. .input = "\xe0\x33\xf6\xe0\xb4\xa5\xdd\x2b"
  36088. "\xdd\xce\xfc\x12\x1e\xfc\x2d\xf2"
  36089. "\x8b\xc7\xeb\xc1\xc4\x2a\xe8\x44"
  36090. "\x0f\x3d\x97\x19\x2e\x6d\xa2\x38"
  36091. "\x9d\xa6\xaa\xe1\x96\xb9\x08\xe8"
  36092. "\x0b\x70\x48\x5c\xed\xb5\x9b\xcb"
  36093. "\x8b\x40\x88\x7e\x69\x73\xf7\x16"
  36094. "\x71\xbb\x5b\xfc\xa3\x47\x5d\xa6"
  36095. "\xae\x3a\x64\xc4\xe7\xb8\xa8\xe7"
  36096. "\xb1\x32\x19\xdb\xe3\x01\xb8\xf0"
  36097. "\xa4\x86\xb4\x4c\xc2\xde\x5c\xd2"
  36098. "\x6c\x77\xd2\xe8\x18\xb7\x0a\xc9"
  36099. "\x3d\x53\xb5\xc4\x5c\xf0\x8c\x06"
  36100. "\xdc\x90\xe0\x74\x47\x1b\x0b\xf6"
  36101. "\xd2\x71\x6b\xc4\xf1\x97\x00\x2d"
  36102. "\x63\x57\x44\x1f\x8c\xf4\xe6\x9b"
  36103. "\xe0\x7a\xdd\xec\x32\x73\x42\x32"
  36104. "\x7f\x35\x67\x60\x0d\xcf\x10\x52"
  36105. "\x61\x22\x53\x8d\x8e\xbb\x33\x76"
  36106. "\x59\xd9\x10\xce\xdf\xef\xc0\x41"
  36107. "\xd5\x33\x29\x6a\xda\x46\xa4\x51"
  36108. "\xf0\x99\x3d\x96\x31\xdd\xb5\xcb"
  36109. "\x3e\x2a\x1f\xc7\x5c\x79\xd3\xc5"
  36110. "\x20\xa1\xb1\x39\x1b\xc6\x0a\x70"
  36111. "\x26\x39\x95\x07\xad\x7a\xc9\x69"
  36112. "\xfe\x81\xc7\x88\x08\x38\xaf\xad"
  36113. "\x9e\x8d\xfb\xe8\x24\x0d\x22\xb8"
  36114. "\x0e\xed\xbe\x37\x53\x7c\xa6\xc6"
  36115. "\x78\x62\xec\xa3\x59\xd9\xc6\x9d"
  36116. "\xb8\x0e\x69\x77\x84\x2d\x6a\x4c"
  36117. "\xc5\xd9\xb2\xa0\x2b\xa8\x80\xcc"
  36118. "\xe9\x1e\x9c\x5a\xc4\xa1\xb2\x37"
  36119. "\x06\x9b\x30\x32\x67\xf7\xe7\xd2"
  36120. "\x42\xc7\xdf\x4e\xd4\xcb\xa0\x12"
  36121. "\x94\xa1\x34\x85\x93\x50\x4b\x0a"
  36122. "\x3c\x7d\x49\x25\x01\x41\x6b\x96"
  36123. "\xa9\x12\xbb\x0b\xc0\xd7\xd0\x93"
  36124. "\x1f\x70\x38\xb8\x21\xee\xf6\xa7"
  36125. "\xee\xeb\xe7\x81\xa4\x13\xb4\x87"
  36126. "\xfa\xc1\xb0\xb5\x37\x8b\x74\xa2"
  36127. "\x4e\xc7\xc2\xad\x3d\x62\x3f\xf8"
  36128. "\x34\x42\xe5\xae\x45\x13\x63\xfe"
  36129. "\xfc\x2a\x17\x46\x61\xa9\xd3\x1c"
  36130. "\x4c\xaf\xf0\x09\x62\x26\x66\x1e"
  36131. "\x74\xcf\xd6\x68\x3d\x7d\xd8\xb7"
  36132. "\xe7\xe6\xf8\xf0\x08\x20\xf7\x47"
  36133. "\x1c\x52\xaa\x0f\x3e\x21\xa3\xf2"
  36134. "\xbf\x2f\x95\x16\xa8\xc8\xc8\x8c"
  36135. "\x99\x0f\x5d\xfb\xfa\x2b\x58\x8a"
  36136. "\x7e\xd6\x74\x02\x60\xf0\xd0\x5b"
  36137. "\x65\xa8\xac\xea\x8d\x68\x46\x34"
  36138. "\x26\x9d\x4f\xb1\x9a\x8e\xc0\x1a"
  36139. "\xf1\xed\xc6\x7a\x83\xfd\x8a\x57"
  36140. "\xf2\xe6\xe4\xba\xfc\xc6\x3c\xad"
  36141. "\x5b\x19\x50\x2f\x3a\xcc\x06\x46"
  36142. "\x04\x51\x3f\x91\x97\xf0\xd2\x07"
  36143. "\xe7\x93\x89\x7e\xb5\x32\x0f\x03"
  36144. "\xe5\x58\x9e\x74\x72\xeb\xc2\x38"
  36145. "\x00\x0c\x91\x72\x69\xed\x7d\x6d"
  36146. "\xc8\x71\xf0\xec\xff\x80\xd9\x1c"
  36147. "\x9e\xd2\xfa\x15\xfc\x6c\x4e\xbc"
  36148. "\xb1\xa6\xbd\xbd\x70\x40\xca\x20"
  36149. "\xb8\x78\xd2\xa3\xc6\xf3\x79\x9c"
  36150. "\xc7\x27\xe1\x6a\x29\xad\xa4\x03",
  36151. .ilen = 512,
  36152. .rlen = 512,
  36153. }
  36154. };
  36155. /*
  36156. * CTS (Cipher Text Stealing) mode tests
  36157. */
  36158. #define CTS_MODE_ENC_TEST_VECTORS 6
  36159. #define CTS_MODE_DEC_TEST_VECTORS 6
  36160. static struct cipher_testvec cts_mode_enc_tv_template[] = {
  36161. { /* from rfc3962 */
  36162. .klen = 16,
  36163. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  36164. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  36165. .ilen = 17,
  36166. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  36167. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  36168. "\x20",
  36169. .rlen = 17,
  36170. .result = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
  36171. "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
  36172. "\x97",
  36173. }, {
  36174. .klen = 16,
  36175. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  36176. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  36177. .ilen = 31,
  36178. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  36179. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  36180. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  36181. "\x20\x47\x61\x75\x27\x73\x20",
  36182. .rlen = 31,
  36183. .result = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
  36184. "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
  36185. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  36186. "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
  36187. }, {
  36188. .klen = 16,
  36189. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  36190. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  36191. .ilen = 32,
  36192. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  36193. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  36194. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  36195. "\x20\x47\x61\x75\x27\x73\x20\x43",
  36196. .rlen = 32,
  36197. .result = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  36198. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  36199. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  36200. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
  36201. }, {
  36202. .klen = 16,
  36203. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  36204. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  36205. .ilen = 47,
  36206. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  36207. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  36208. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  36209. "\x20\x47\x61\x75\x27\x73\x20\x43"
  36210. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  36211. "\x70\x6c\x65\x61\x73\x65\x2c",
  36212. .rlen = 47,
  36213. .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  36214. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  36215. "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
  36216. "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
  36217. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  36218. "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
  36219. }, {
  36220. .klen = 16,
  36221. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  36222. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  36223. .ilen = 48,
  36224. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  36225. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  36226. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  36227. "\x20\x47\x61\x75\x27\x73\x20\x43"
  36228. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  36229. "\x70\x6c\x65\x61\x73\x65\x2c\x20",
  36230. .rlen = 48,
  36231. .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  36232. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  36233. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  36234. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
  36235. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  36236. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
  36237. }, {
  36238. .klen = 16,
  36239. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  36240. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  36241. .ilen = 64,
  36242. .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  36243. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  36244. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  36245. "\x20\x47\x61\x75\x27\x73\x20\x43"
  36246. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  36247. "\x70\x6c\x65\x61\x73\x65\x2c\x20"
  36248. "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
  36249. "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
  36250. .rlen = 64,
  36251. .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  36252. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  36253. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  36254. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  36255. "\x48\x07\xef\xe8\x36\xee\x89\xa5"
  36256. "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
  36257. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  36258. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
  36259. }
  36260. };
  36261. static struct cipher_testvec cts_mode_dec_tv_template[] = {
  36262. { /* from rfc3962 */
  36263. .klen = 16,
  36264. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  36265. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  36266. .rlen = 17,
  36267. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  36268. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  36269. "\x20",
  36270. .ilen = 17,
  36271. .input = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
  36272. "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
  36273. "\x97",
  36274. }, {
  36275. .klen = 16,
  36276. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  36277. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  36278. .rlen = 31,
  36279. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  36280. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  36281. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  36282. "\x20\x47\x61\x75\x27\x73\x20",
  36283. .ilen = 31,
  36284. .input = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
  36285. "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
  36286. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  36287. "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
  36288. }, {
  36289. .klen = 16,
  36290. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  36291. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  36292. .rlen = 32,
  36293. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  36294. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  36295. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  36296. "\x20\x47\x61\x75\x27\x73\x20\x43",
  36297. .ilen = 32,
  36298. .input = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  36299. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  36300. "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  36301. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
  36302. }, {
  36303. .klen = 16,
  36304. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  36305. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  36306. .rlen = 47,
  36307. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  36308. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  36309. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  36310. "\x20\x47\x61\x75\x27\x73\x20\x43"
  36311. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  36312. "\x70\x6c\x65\x61\x73\x65\x2c",
  36313. .ilen = 47,
  36314. .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  36315. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  36316. "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
  36317. "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
  36318. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  36319. "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
  36320. }, {
  36321. .klen = 16,
  36322. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  36323. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  36324. .rlen = 48,
  36325. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  36326. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  36327. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  36328. "\x20\x47\x61\x75\x27\x73\x20\x43"
  36329. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  36330. "\x70\x6c\x65\x61\x73\x65\x2c\x20",
  36331. .ilen = 48,
  36332. .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  36333. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  36334. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  36335. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
  36336. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  36337. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
  36338. }, {
  36339. .klen = 16,
  36340. .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
  36341. "\x74\x65\x72\x69\x79\x61\x6b\x69",
  36342. .rlen = 64,
  36343. .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
  36344. "\x6c\x69\x6b\x65\x20\x74\x68\x65"
  36345. "\x20\x47\x65\x6e\x65\x72\x61\x6c"
  36346. "\x20\x47\x61\x75\x27\x73\x20\x43"
  36347. "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
  36348. "\x70\x6c\x65\x61\x73\x65\x2c\x20"
  36349. "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
  36350. "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
  36351. .ilen = 64,
  36352. .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
  36353. "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
  36354. "\x39\x31\x25\x23\xa7\x86\x62\xd5"
  36355. "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
  36356. "\x48\x07\xef\xe8\x36\xee\x89\xa5"
  36357. "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
  36358. "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
  36359. "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
  36360. }
  36361. };
  36362. /*
  36363. * Compression stuff.
  36364. */
  36365. #define COMP_BUF_SIZE 512
  36366. struct comp_testvec {
  36367. int inlen, outlen;
  36368. char input[COMP_BUF_SIZE];
  36369. char output[COMP_BUF_SIZE];
  36370. };
  36371. /*
  36372. * Deflate test vectors (null-terminated strings).
  36373. * Params: winbits=-11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL.
  36374. */
  36375. #define DEFLATE_COMP_TEST_VECTORS 2
  36376. #define DEFLATE_DECOMP_TEST_VECTORS 2
  36377. static struct comp_testvec deflate_comp_tv_template[] = {
  36378. {
  36379. .inlen = 70,
  36380. .outlen = 38,
  36381. .input = "Join us now and share the software "
  36382. "Join us now and share the software ",
  36383. .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  36384. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  36385. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  36386. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  36387. "\x71\xbc\x08\x2b\x01\x00",
  36388. }, {
  36389. .inlen = 191,
  36390. .outlen = 122,
  36391. .input = "This document describes a compression method based on the DEFLATE"
  36392. "compression algorithm. This document defines the application of "
  36393. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  36394. .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  36395. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  36396. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  36397. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  36398. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  36399. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  36400. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  36401. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  36402. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  36403. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  36404. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  36405. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  36406. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  36407. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  36408. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  36409. "\xfa\x02",
  36410. },
  36411. };
  36412. static struct comp_testvec deflate_decomp_tv_template[] = {
  36413. {
  36414. .inlen = 122,
  36415. .outlen = 191,
  36416. .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
  36417. "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
  36418. "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
  36419. "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
  36420. "\x68\x12\x51\xae\x76\x67\xd6\x27"
  36421. "\x19\x88\x1a\xde\x85\xab\x21\xf2"
  36422. "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
  36423. "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
  36424. "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
  36425. "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
  36426. "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
  36427. "\x52\x37\xed\x0e\x52\x6b\x59\x02"
  36428. "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
  36429. "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
  36430. "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
  36431. "\xfa\x02",
  36432. .output = "This document describes a compression method based on the DEFLATE"
  36433. "compression algorithm. This document defines the application of "
  36434. "the DEFLATE algorithm to the IP Payload Compression Protocol.",
  36435. }, {
  36436. .inlen = 38,
  36437. .outlen = 70,
  36438. .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
  36439. "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
  36440. "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
  36441. "\x48\x55\x28\xce\x4f\x2b\x29\x07"
  36442. "\x71\xbc\x08\x2b\x01\x00",
  36443. .output = "Join us now and share the software "
  36444. "Join us now and share the software ",
  36445. },
  36446. };
  36447. /*
  36448. * LZO test vectors (null-terminated strings).
  36449. */
  36450. #define LZO_COMP_TEST_VECTORS 2
  36451. #define LZO_DECOMP_TEST_VECTORS 2
  36452. static struct comp_testvec lzo_comp_tv_template[] = {
  36453. {
  36454. .inlen = 70,
  36455. .outlen = 57,
  36456. .input = "Join us now and share the software "
  36457. "Join us now and share the software ",
  36458. .output = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
  36459. "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
  36460. "\x64\x20\x73\x68\x61\x72\x65\x20"
  36461. "\x74\x68\x65\x20\x73\x6f\x66\x74"
  36462. "\x77\x70\x01\x32\x88\x00\x0c\x65"
  36463. "\x20\x74\x68\x65\x20\x73\x6f\x66"
  36464. "\x74\x77\x61\x72\x65\x20\x11\x00"
  36465. "\x00",
  36466. }, {
  36467. .inlen = 159,
  36468. .outlen = 131,
  36469. .input = "This document describes a compression method based on the LZO "
  36470. "compression algorithm. This document defines the application of "
  36471. "the LZO algorithm used in UBIFS.",
  36472. .output = "\x00\x2c\x54\x68\x69\x73\x20\x64"
  36473. "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
  36474. "\x64\x65\x73\x63\x72\x69\x62\x65"
  36475. "\x73\x20\x61\x20\x63\x6f\x6d\x70"
  36476. "\x72\x65\x73\x73\x69\x6f\x6e\x20"
  36477. "\x6d\x65\x74\x68\x6f\x64\x20\x62"
  36478. "\x61\x73\x65\x64\x20\x6f\x6e\x20"
  36479. "\x74\x68\x65\x20\x4c\x5a\x4f\x20"
  36480. "\x2a\x8c\x00\x09\x61\x6c\x67\x6f"
  36481. "\x72\x69\x74\x68\x6d\x2e\x20\x20"
  36482. "\x2e\x54\x01\x03\x66\x69\x6e\x65"
  36483. "\x73\x20\x74\x06\x05\x61\x70\x70"
  36484. "\x6c\x69\x63\x61\x74\x76\x0a\x6f"
  36485. "\x66\x88\x02\x60\x09\x27\xf0\x00"
  36486. "\x0c\x20\x75\x73\x65\x64\x20\x69"
  36487. "\x6e\x20\x55\x42\x49\x46\x53\x2e"
  36488. "\x11\x00\x00",
  36489. },
  36490. };
  36491. static struct comp_testvec lzo_decomp_tv_template[] = {
  36492. {
  36493. .inlen = 133,
  36494. .outlen = 159,
  36495. .input = "\x00\x2b\x54\x68\x69\x73\x20\x64"
  36496. "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
  36497. "\x64\x65\x73\x63\x72\x69\x62\x65"
  36498. "\x73\x20\x61\x20\x63\x6f\x6d\x70"
  36499. "\x72\x65\x73\x73\x69\x6f\x6e\x20"
  36500. "\x6d\x65\x74\x68\x6f\x64\x20\x62"
  36501. "\x61\x73\x65\x64\x20\x6f\x6e\x20"
  36502. "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
  36503. "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
  36504. "\x69\x74\x68\x6d\x2e\x20\x20\x54"
  36505. "\x68\x69\x73\x2a\x54\x01\x02\x66"
  36506. "\x69\x6e\x65\x73\x94\x06\x05\x61"
  36507. "\x70\x70\x6c\x69\x63\x61\x74\x76"
  36508. "\x0a\x6f\x66\x88\x02\x60\x09\x27"
  36509. "\xf0\x00\x0c\x20\x75\x73\x65\x64"
  36510. "\x20\x69\x6e\x20\x55\x42\x49\x46"
  36511. "\x53\x2e\x11\x00\x00",
  36512. .output = "This document describes a compression method based on the LZO "
  36513. "compression algorithm. This document defines the application of "
  36514. "the LZO algorithm used in UBIFS.",
  36515. }, {
  36516. .inlen = 46,
  36517. .outlen = 70,
  36518. .input = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
  36519. "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
  36520. "\x64\x20\x73\x68\x61\x72\x65\x20"
  36521. "\x74\x68\x65\x20\x73\x6f\x66\x74"
  36522. "\x77\x70\x01\x01\x4a\x6f\x69\x6e"
  36523. "\x3d\x88\x00\x11\x00\x00",
  36524. .output = "Join us now and share the software "
  36525. "Join us now and share the software ",
  36526. },
  36527. };
  36528. /*
  36529. * Michael MIC test vectors from IEEE 802.11i
  36530. */
  36531. #define MICHAEL_MIC_TEST_VECTORS 6
  36532. static struct hash_testvec michael_mic_tv_template[] = {
  36533. {
  36534. .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
  36535. .ksize = 8,
  36536. .plaintext = zeroed_string,
  36537. .psize = 0,
  36538. .digest = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
  36539. },
  36540. {
  36541. .key = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
  36542. .ksize = 8,
  36543. .plaintext = "M",
  36544. .psize = 1,
  36545. .digest = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
  36546. },
  36547. {
  36548. .key = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
  36549. .ksize = 8,
  36550. .plaintext = "Mi",
  36551. .psize = 2,
  36552. .digest = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
  36553. },
  36554. {
  36555. .key = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
  36556. .ksize = 8,
  36557. .plaintext = "Mic",
  36558. .psize = 3,
  36559. .digest = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
  36560. },
  36561. {
  36562. .key = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
  36563. .ksize = 8,
  36564. .plaintext = "Mich",
  36565. .psize = 4,
  36566. .digest = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
  36567. },
  36568. {
  36569. .key = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
  36570. .ksize = 8,
  36571. .plaintext = "Michael",
  36572. .psize = 7,
  36573. .digest = "\x0a\x94\x2b\x12\x4e\xca\xa5\x46",
  36574. }
  36575. };
  36576. /*
  36577. * CRC32 test vectors
  36578. */
  36579. #define CRC32_TEST_VECTORS 14
  36580. static struct hash_testvec crc32_tv_template[] = {
  36581. {
  36582. .key = "\x87\xa9\xcb\xed",
  36583. .ksize = 4,
  36584. .psize = 0,
  36585. .digest = "\x87\xa9\xcb\xed",
  36586. },
  36587. {
  36588. .key = "\xff\xff\xff\xff",
  36589. .ksize = 4,
  36590. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  36591. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  36592. "\x11\x12\x13\x14\x15\x16\x17\x18"
  36593. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  36594. "\x21\x22\x23\x24\x25\x26\x27\x28",
  36595. .psize = 40,
  36596. .digest = "\x3a\xdf\x4b\xb0",
  36597. },
  36598. {
  36599. .key = "\xff\xff\xff\xff",
  36600. .ksize = 4,
  36601. .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  36602. "\x31\x32\x33\x34\x35\x36\x37\x38"
  36603. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  36604. "\x41\x42\x43\x44\x45\x46\x47\x48"
  36605. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
  36606. .psize = 40,
  36607. .digest = "\xa9\x7a\x7f\x7b",
  36608. },
  36609. {
  36610. .key = "\xff\xff\xff\xff",
  36611. .ksize = 4,
  36612. .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
  36613. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  36614. "\x61\x62\x63\x64\x65\x66\x67\x68"
  36615. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  36616. "\x71\x72\x73\x74\x75\x76\x77\x78",
  36617. .psize = 40,
  36618. .digest = "\xba\xd3\xf8\x1c",
  36619. },
  36620. {
  36621. .key = "\xff\xff\xff\xff",
  36622. .ksize = 4,
  36623. .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  36624. "\x81\x82\x83\x84\x85\x86\x87\x88"
  36625. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  36626. "\x91\x92\x93\x94\x95\x96\x97\x98"
  36627. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
  36628. .psize = 40,
  36629. .digest = "\xa8\xa9\xc2\x02",
  36630. },
  36631. {
  36632. .key = "\xff\xff\xff\xff",
  36633. .ksize = 4,
  36634. .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  36635. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  36636. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  36637. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  36638. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
  36639. .psize = 40,
  36640. .digest = "\x27\xf0\x57\xe2",
  36641. },
  36642. {
  36643. .key = "\xff\xff\xff\xff",
  36644. .ksize = 4,
  36645. .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  36646. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  36647. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  36648. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  36649. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  36650. .psize = 40,
  36651. .digest = "\x49\x78\x10\x08",
  36652. },
  36653. {
  36654. .key = "\x80\xea\xd3\xf1",
  36655. .ksize = 4,
  36656. .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  36657. "\x31\x32\x33\x34\x35\x36\x37\x38"
  36658. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  36659. "\x41\x42\x43\x44\x45\x46\x47\x48"
  36660. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
  36661. .psize = 40,
  36662. .digest = "\x9a\xb1\xdc\xf0",
  36663. },
  36664. {
  36665. .key = "\xf3\x4a\x1d\x5d",
  36666. .ksize = 4,
  36667. .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
  36668. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  36669. "\x61\x62\x63\x64\x65\x66\x67\x68"
  36670. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  36671. "\x71\x72\x73\x74\x75\x76\x77\x78",
  36672. .psize = 40,
  36673. .digest = "\xb4\x97\xcc\xd4",
  36674. },
  36675. {
  36676. .key = "\x2e\x80\x04\x59",
  36677. .ksize = 4,
  36678. .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  36679. "\x81\x82\x83\x84\x85\x86\x87\x88"
  36680. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  36681. "\x91\x92\x93\x94\x95\x96\x97\x98"
  36682. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
  36683. .psize = 40,
  36684. .digest = "\x67\x9b\xfa\x79",
  36685. },
  36686. {
  36687. .key = "\xa6\xcc\x19\x85",
  36688. .ksize = 4,
  36689. .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  36690. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  36691. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  36692. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  36693. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
  36694. .psize = 40,
  36695. .digest = "\x24\xb5\x16\xef",
  36696. },
  36697. {
  36698. .key = "\x41\xfc\xfe\x2d",
  36699. .ksize = 4,
  36700. .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  36701. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  36702. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  36703. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  36704. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  36705. .psize = 40,
  36706. .digest = "\x15\x94\x80\x39",
  36707. },
  36708. {
  36709. .key = "\xff\xff\xff\xff",
  36710. .ksize = 4,
  36711. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  36712. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  36713. "\x11\x12\x13\x14\x15\x16\x17\x18"
  36714. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  36715. "\x21\x22\x23\x24\x25\x26\x27\x28"
  36716. "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  36717. "\x31\x32\x33\x34\x35\x36\x37\x38"
  36718. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  36719. "\x41\x42\x43\x44\x45\x46\x47\x48"
  36720. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
  36721. "\x51\x52\x53\x54\x55\x56\x57\x58"
  36722. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  36723. "\x61\x62\x63\x64\x65\x66\x67\x68"
  36724. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  36725. "\x71\x72\x73\x74\x75\x76\x77\x78"
  36726. "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  36727. "\x81\x82\x83\x84\x85\x86\x87\x88"
  36728. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  36729. "\x91\x92\x93\x94\x95\x96\x97\x98"
  36730. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
  36731. "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  36732. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  36733. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  36734. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  36735. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
  36736. "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  36737. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  36738. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  36739. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  36740. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  36741. .psize = 240,
  36742. .digest = "\x6c\xc6\x56\xde",
  36743. .np = 2,
  36744. .tap = { 31, 209 }
  36745. }, {
  36746. .key = "\xff\xff\xff\xff",
  36747. .ksize = 4,
  36748. .plaintext = "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
  36749. "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
  36750. "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
  36751. "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
  36752. "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
  36753. "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
  36754. "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
  36755. "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
  36756. "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
  36757. "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
  36758. "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
  36759. "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
  36760. "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
  36761. "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
  36762. "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
  36763. "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
  36764. "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
  36765. "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
  36766. "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
  36767. "\x58\xef\x63\xfa\x91\x05\x9c\x33"
  36768. "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
  36769. "\x19\xb0\x47\xde\x52\xe9\x80\x17"
  36770. "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
  36771. "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
  36772. "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
  36773. "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
  36774. "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
  36775. "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
  36776. "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
  36777. "\x86\x1d\x91\x28\xbf\x33\xca\x61"
  36778. "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
  36779. "\x47\xde\x75\x0c\x80\x17\xae\x22"
  36780. "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
  36781. "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
  36782. "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
  36783. "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
  36784. "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
  36785. "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
  36786. "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
  36787. "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
  36788. "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
  36789. "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
  36790. "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
  36791. "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
  36792. "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
  36793. "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
  36794. "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
  36795. "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
  36796. "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
  36797. "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
  36798. "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
  36799. "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
  36800. "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
  36801. "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
  36802. "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
  36803. "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
  36804. "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
  36805. "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
  36806. "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
  36807. "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
  36808. "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
  36809. "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
  36810. "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
  36811. "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
  36812. "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
  36813. "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
  36814. "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
  36815. "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
  36816. "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
  36817. "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
  36818. "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
  36819. "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
  36820. "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
  36821. "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
  36822. "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
  36823. "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
  36824. "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
  36825. "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
  36826. "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
  36827. "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
  36828. "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
  36829. "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
  36830. "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
  36831. "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
  36832. "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
  36833. "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
  36834. "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
  36835. "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
  36836. "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
  36837. "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
  36838. "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
  36839. "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
  36840. "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
  36841. "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
  36842. "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
  36843. "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
  36844. "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
  36845. "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
  36846. "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
  36847. "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
  36848. "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
  36849. "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
  36850. "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
  36851. "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
  36852. "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
  36853. "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
  36854. "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
  36855. "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
  36856. "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
  36857. "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
  36858. "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
  36859. "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
  36860. "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
  36861. "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
  36862. "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
  36863. "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
  36864. "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
  36865. "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
  36866. "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
  36867. "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
  36868. "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
  36869. "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
  36870. "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
  36871. "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
  36872. "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
  36873. "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
  36874. "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
  36875. "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
  36876. "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
  36877. "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
  36878. "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
  36879. "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
  36880. "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
  36881. "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
  36882. "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
  36883. "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
  36884. "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
  36885. "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
  36886. "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
  36887. "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
  36888. "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
  36889. "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
  36890. "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
  36891. "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
  36892. "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
  36893. "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
  36894. "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
  36895. "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
  36896. "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
  36897. "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
  36898. "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
  36899. "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
  36900. "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
  36901. "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
  36902. "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
  36903. "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
  36904. "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
  36905. "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
  36906. "\x47\xde\x52\xe9\x80\x17\x8b\x22"
  36907. "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
  36908. "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
  36909. "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
  36910. "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
  36911. "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
  36912. "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
  36913. "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
  36914. "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
  36915. "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
  36916. "\x75\x0c\x80\x17\xae\x22\xb9\x50"
  36917. "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
  36918. "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
  36919. "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
  36920. "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
  36921. "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
  36922. "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
  36923. "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
  36924. "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
  36925. "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
  36926. "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
  36927. "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
  36928. "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
  36929. "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
  36930. "\x48\xdf\x53\xea\x81\x18\x8c\x23"
  36931. "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
  36932. "\x09\xa0\x37\xce\x42\xd9\x70\x07"
  36933. "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
  36934. "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
  36935. "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
  36936. "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
  36937. "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
  36938. "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
  36939. "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
  36940. "\x76\x0d\x81\x18\xaf\x23\xba\x51"
  36941. "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
  36942. "\x37\xce\x65\xfc\x70\x07\x9e\x12"
  36943. "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
  36944. "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
  36945. "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
  36946. "\xff\x73\x0a\xa1\x15\xac\x43\xda"
  36947. "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
  36948. "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
  36949. "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
  36950. "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
  36951. "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
  36952. "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
  36953. "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
  36954. "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
  36955. "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
  36956. "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
  36957. "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
  36958. "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
  36959. "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
  36960. "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
  36961. "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
  36962. "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
  36963. "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
  36964. "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
  36965. "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
  36966. "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
  36967. "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
  36968. "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
  36969. "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
  36970. "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
  36971. "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
  36972. "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
  36973. "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
  36974. "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
  36975. "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
  36976. "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
  36977. "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
  36978. "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
  36979. "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
  36980. "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
  36981. "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
  36982. "\xef\x86\x1d\x91\x28\xbf\x33\xca"
  36983. "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
  36984. "\xd3\x47\xde\x75\x0c\x80\x17\xae"
  36985. "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
  36986. "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
  36987. "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
  36988. "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
  36989. "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
  36990. "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
  36991. "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
  36992. "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
  36993. "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
  36994. "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
  36995. "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
  36996. "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
  36997. "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
  36998. "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
  36999. "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
  37000. "\x67\xfe\x95\x09\xa0\x37\xce\x42"
  37001. "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
  37002. "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
  37003. "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
  37004. .psize = 2048,
  37005. .digest = "\xfb\x3a\x7a\xda",
  37006. }
  37007. };
  37008. /*
  37009. * CRC32C test vectors
  37010. */
  37011. #define CRC32C_TEST_VECTORS 15
  37012. static struct hash_testvec crc32c_tv_template[] = {
  37013. {
  37014. .psize = 0,
  37015. .digest = "\x00\x00\x00\x00",
  37016. },
  37017. {
  37018. .key = "\x87\xa9\xcb\xed",
  37019. .ksize = 4,
  37020. .psize = 0,
  37021. .digest = "\x78\x56\x34\x12",
  37022. },
  37023. {
  37024. .key = "\xff\xff\xff\xff",
  37025. .ksize = 4,
  37026. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  37027. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  37028. "\x11\x12\x13\x14\x15\x16\x17\x18"
  37029. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  37030. "\x21\x22\x23\x24\x25\x26\x27\x28",
  37031. .psize = 40,
  37032. .digest = "\x7f\x15\x2c\x0e",
  37033. },
  37034. {
  37035. .key = "\xff\xff\xff\xff",
  37036. .ksize = 4,
  37037. .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  37038. "\x31\x32\x33\x34\x35\x36\x37\x38"
  37039. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  37040. "\x41\x42\x43\x44\x45\x46\x47\x48"
  37041. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
  37042. .psize = 40,
  37043. .digest = "\xf6\xeb\x80\xe9",
  37044. },
  37045. {
  37046. .key = "\xff\xff\xff\xff",
  37047. .ksize = 4,
  37048. .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
  37049. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  37050. "\x61\x62\x63\x64\x65\x66\x67\x68"
  37051. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  37052. "\x71\x72\x73\x74\x75\x76\x77\x78",
  37053. .psize = 40,
  37054. .digest = "\xed\xbd\x74\xde",
  37055. },
  37056. {
  37057. .key = "\xff\xff\xff\xff",
  37058. .ksize = 4,
  37059. .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  37060. "\x81\x82\x83\x84\x85\x86\x87\x88"
  37061. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  37062. "\x91\x92\x93\x94\x95\x96\x97\x98"
  37063. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
  37064. .psize = 40,
  37065. .digest = "\x62\xc8\x79\xd5",
  37066. },
  37067. {
  37068. .key = "\xff\xff\xff\xff",
  37069. .ksize = 4,
  37070. .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  37071. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  37072. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  37073. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  37074. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
  37075. .psize = 40,
  37076. .digest = "\xd0\x9a\x97\xba",
  37077. },
  37078. {
  37079. .key = "\xff\xff\xff\xff",
  37080. .ksize = 4,
  37081. .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  37082. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  37083. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  37084. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  37085. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  37086. .psize = 40,
  37087. .digest = "\x13\xd9\x29\x2b",
  37088. },
  37089. {
  37090. .key = "\x80\xea\xd3\xf1",
  37091. .ksize = 4,
  37092. .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  37093. "\x31\x32\x33\x34\x35\x36\x37\x38"
  37094. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  37095. "\x41\x42\x43\x44\x45\x46\x47\x48"
  37096. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
  37097. .psize = 40,
  37098. .digest = "\x0c\xb5\xe2\xa2",
  37099. },
  37100. {
  37101. .key = "\xf3\x4a\x1d\x5d",
  37102. .ksize = 4,
  37103. .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
  37104. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  37105. "\x61\x62\x63\x64\x65\x66\x67\x68"
  37106. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  37107. "\x71\x72\x73\x74\x75\x76\x77\x78",
  37108. .psize = 40,
  37109. .digest = "\xd1\x7f\xfb\xa6",
  37110. },
  37111. {
  37112. .key = "\x2e\x80\x04\x59",
  37113. .ksize = 4,
  37114. .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  37115. "\x81\x82\x83\x84\x85\x86\x87\x88"
  37116. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  37117. "\x91\x92\x93\x94\x95\x96\x97\x98"
  37118. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
  37119. .psize = 40,
  37120. .digest = "\x59\x33\xe6\x7a",
  37121. },
  37122. {
  37123. .key = "\xa6\xcc\x19\x85",
  37124. .ksize = 4,
  37125. .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  37126. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  37127. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  37128. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  37129. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
  37130. .psize = 40,
  37131. .digest = "\xbe\x03\x01\xd2",
  37132. },
  37133. {
  37134. .key = "\x41\xfc\xfe\x2d",
  37135. .ksize = 4,
  37136. .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  37137. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  37138. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  37139. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  37140. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  37141. .psize = 40,
  37142. .digest = "\x75\xd3\xc5\x24",
  37143. },
  37144. {
  37145. .key = "\xff\xff\xff\xff",
  37146. .ksize = 4,
  37147. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  37148. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  37149. "\x11\x12\x13\x14\x15\x16\x17\x18"
  37150. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  37151. "\x21\x22\x23\x24\x25\x26\x27\x28"
  37152. "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  37153. "\x31\x32\x33\x34\x35\x36\x37\x38"
  37154. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  37155. "\x41\x42\x43\x44\x45\x46\x47\x48"
  37156. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
  37157. "\x51\x52\x53\x54\x55\x56\x57\x58"
  37158. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  37159. "\x61\x62\x63\x64\x65\x66\x67\x68"
  37160. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  37161. "\x71\x72\x73\x74\x75\x76\x77\x78"
  37162. "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  37163. "\x81\x82\x83\x84\x85\x86\x87\x88"
  37164. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  37165. "\x91\x92\x93\x94\x95\x96\x97\x98"
  37166. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
  37167. "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  37168. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  37169. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  37170. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  37171. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
  37172. "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  37173. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  37174. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  37175. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  37176. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  37177. .psize = 240,
  37178. .digest = "\x75\xd3\xc5\x24",
  37179. .np = 2,
  37180. .tap = { 31, 209 }
  37181. }, {
  37182. .key = "\xff\xff\xff\xff",
  37183. .ksize = 4,
  37184. .plaintext = "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
  37185. "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
  37186. "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
  37187. "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
  37188. "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
  37189. "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
  37190. "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
  37191. "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
  37192. "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
  37193. "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
  37194. "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
  37195. "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
  37196. "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
  37197. "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
  37198. "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
  37199. "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
  37200. "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
  37201. "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
  37202. "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
  37203. "\x58\xef\x63\xfa\x91\x05\x9c\x33"
  37204. "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
  37205. "\x19\xb0\x47\xde\x52\xe9\x80\x17"
  37206. "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
  37207. "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
  37208. "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
  37209. "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
  37210. "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
  37211. "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
  37212. "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
  37213. "\x86\x1d\x91\x28\xbf\x33\xca\x61"
  37214. "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
  37215. "\x47\xde\x75\x0c\x80\x17\xae\x22"
  37216. "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
  37217. "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
  37218. "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
  37219. "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
  37220. "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
  37221. "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
  37222. "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
  37223. "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
  37224. "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
  37225. "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
  37226. "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
  37227. "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
  37228. "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
  37229. "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
  37230. "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
  37231. "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
  37232. "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
  37233. "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
  37234. "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
  37235. "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
  37236. "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
  37237. "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
  37238. "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
  37239. "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
  37240. "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
  37241. "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
  37242. "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
  37243. "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
  37244. "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
  37245. "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
  37246. "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
  37247. "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
  37248. "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
  37249. "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
  37250. "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
  37251. "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
  37252. "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
  37253. "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
  37254. "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
  37255. "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
  37256. "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
  37257. "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
  37258. "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
  37259. "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
  37260. "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
  37261. "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
  37262. "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
  37263. "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
  37264. "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
  37265. "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
  37266. "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
  37267. "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
  37268. "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
  37269. "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
  37270. "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
  37271. "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
  37272. "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
  37273. "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
  37274. "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
  37275. "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
  37276. "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
  37277. "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
  37278. "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
  37279. "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
  37280. "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
  37281. "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
  37282. "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
  37283. "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
  37284. "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
  37285. "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
  37286. "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
  37287. "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
  37288. "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
  37289. "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
  37290. "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
  37291. "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
  37292. "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
  37293. "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
  37294. "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
  37295. "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
  37296. "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
  37297. "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
  37298. "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
  37299. "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
  37300. "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
  37301. "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
  37302. "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
  37303. "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
  37304. "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
  37305. "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
  37306. "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
  37307. "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
  37308. "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
  37309. "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
  37310. "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
  37311. "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
  37312. "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
  37313. "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
  37314. "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
  37315. "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
  37316. "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
  37317. "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
  37318. "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
  37319. "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
  37320. "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
  37321. "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
  37322. "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
  37323. "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
  37324. "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
  37325. "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
  37326. "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
  37327. "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
  37328. "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
  37329. "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
  37330. "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
  37331. "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
  37332. "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
  37333. "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
  37334. "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
  37335. "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
  37336. "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
  37337. "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
  37338. "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
  37339. "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
  37340. "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
  37341. "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
  37342. "\x47\xde\x52\xe9\x80\x17\x8b\x22"
  37343. "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
  37344. "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
  37345. "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
  37346. "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
  37347. "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
  37348. "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
  37349. "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
  37350. "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
  37351. "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
  37352. "\x75\x0c\x80\x17\xae\x22\xb9\x50"
  37353. "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
  37354. "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
  37355. "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
  37356. "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
  37357. "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
  37358. "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
  37359. "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
  37360. "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
  37361. "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
  37362. "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
  37363. "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
  37364. "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
  37365. "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
  37366. "\x48\xdf\x53\xea\x81\x18\x8c\x23"
  37367. "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
  37368. "\x09\xa0\x37\xce\x42\xd9\x70\x07"
  37369. "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
  37370. "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
  37371. "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
  37372. "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
  37373. "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
  37374. "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
  37375. "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
  37376. "\x76\x0d\x81\x18\xaf\x23\xba\x51"
  37377. "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
  37378. "\x37\xce\x65\xfc\x70\x07\x9e\x12"
  37379. "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
  37380. "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
  37381. "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
  37382. "\xff\x73\x0a\xa1\x15\xac\x43\xda"
  37383. "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
  37384. "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
  37385. "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
  37386. "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
  37387. "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
  37388. "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
  37389. "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
  37390. "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
  37391. "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
  37392. "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
  37393. "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
  37394. "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
  37395. "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
  37396. "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
  37397. "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
  37398. "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
  37399. "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
  37400. "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
  37401. "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
  37402. "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
  37403. "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
  37404. "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
  37405. "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
  37406. "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
  37407. "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
  37408. "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
  37409. "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
  37410. "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
  37411. "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
  37412. "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
  37413. "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
  37414. "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
  37415. "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
  37416. "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
  37417. "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
  37418. "\xef\x86\x1d\x91\x28\xbf\x33\xca"
  37419. "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
  37420. "\xd3\x47\xde\x75\x0c\x80\x17\xae"
  37421. "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
  37422. "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
  37423. "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
  37424. "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
  37425. "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
  37426. "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
  37427. "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
  37428. "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
  37429. "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
  37430. "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
  37431. "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
  37432. "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
  37433. "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
  37434. "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
  37435. "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
  37436. "\x67\xfe\x95\x09\xa0\x37\xce\x42"
  37437. "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
  37438. "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
  37439. "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
  37440. .psize = 2048,
  37441. .digest = "\xec\x26\x4d\x95",
  37442. }
  37443. };
  37444. /*
  37445. * Blakcifn CRC test vectors
  37446. */
  37447. #define BFIN_CRC_TEST_VECTORS 6
  37448. static struct hash_testvec bfin_crc_tv_template[] = {
  37449. {
  37450. .psize = 0,
  37451. .digest = "\x00\x00\x00\x00",
  37452. },
  37453. {
  37454. .key = "\x87\xa9\xcb\xed",
  37455. .ksize = 4,
  37456. .psize = 0,
  37457. .digest = "\x87\xa9\xcb\xed",
  37458. },
  37459. {
  37460. .key = "\xff\xff\xff\xff",
  37461. .ksize = 4,
  37462. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  37463. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  37464. "\x11\x12\x13\x14\x15\x16\x17\x18"
  37465. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  37466. "\x21\x22\x23\x24\x25\x26\x27\x28",
  37467. .psize = 40,
  37468. .digest = "\x84\x0c\x8d\xa2",
  37469. },
  37470. {
  37471. .key = "\xff\xff\xff\xff",
  37472. .ksize = 4,
  37473. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  37474. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  37475. "\x11\x12\x13\x14\x15\x16\x17\x18"
  37476. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  37477. "\x21\x22\x23\x24\x25\x26",
  37478. .psize = 38,
  37479. .digest = "\x8c\x58\xec\xb7",
  37480. },
  37481. {
  37482. .key = "\xff\xff\xff\xff",
  37483. .ksize = 4,
  37484. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  37485. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  37486. "\x11\x12\x13\x14\x15\x16\x17\x18"
  37487. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  37488. "\x21\x22\x23\x24\x25\x26\x27",
  37489. .psize = 39,
  37490. .digest = "\xdc\x50\x28\x7b",
  37491. },
  37492. {
  37493. .key = "\xff\xff\xff\xff",
  37494. .ksize = 4,
  37495. .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
  37496. "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
  37497. "\x11\x12\x13\x14\x15\x16\x17\x18"
  37498. "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
  37499. "\x21\x22\x23\x24\x25\x26\x27\x28"
  37500. "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
  37501. "\x31\x32\x33\x34\x35\x36\x37\x38"
  37502. "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
  37503. "\x41\x42\x43\x44\x45\x46\x47\x48"
  37504. "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
  37505. "\x51\x52\x53\x54\x55\x56\x57\x58"
  37506. "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
  37507. "\x61\x62\x63\x64\x65\x66\x67\x68"
  37508. "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
  37509. "\x71\x72\x73\x74\x75\x76\x77\x78"
  37510. "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
  37511. "\x81\x82\x83\x84\x85\x86\x87\x88"
  37512. "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
  37513. "\x91\x92\x93\x94\x95\x96\x97\x98"
  37514. "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
  37515. "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
  37516. "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
  37517. "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
  37518. "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
  37519. "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
  37520. "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
  37521. "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
  37522. "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
  37523. "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
  37524. "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
  37525. .psize = 240,
  37526. .digest = "\x10\x19\x4a\x5c",
  37527. .np = 2,
  37528. .tap = { 31, 209 }
  37529. },
  37530. };
  37531. #define LZ4_COMP_TEST_VECTORS 1
  37532. #define LZ4_DECOMP_TEST_VECTORS 1
  37533. static struct comp_testvec lz4_comp_tv_template[] = {
  37534. {
  37535. .inlen = 70,
  37536. .outlen = 45,
  37537. .input = "Join us now and share the software "
  37538. "Join us now and share the software ",
  37539. .output = "\xf0\x10\x4a\x6f\x69\x6e\x20\x75"
  37540. "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
  37541. "\x64\x20\x73\x68\x61\x72\x65\x20"
  37542. "\x74\x68\x65\x20\x73\x6f\x66\x74"
  37543. "\x77\x0d\x00\x0f\x23\x00\x0b\x50"
  37544. "\x77\x61\x72\x65\x20",
  37545. },
  37546. };
  37547. static struct comp_testvec lz4_decomp_tv_template[] = {
  37548. {
  37549. .inlen = 45,
  37550. .outlen = 70,
  37551. .input = "\xf0\x10\x4a\x6f\x69\x6e\x20\x75"
  37552. "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
  37553. "\x64\x20\x73\x68\x61\x72\x65\x20"
  37554. "\x74\x68\x65\x20\x73\x6f\x66\x74"
  37555. "\x77\x0d\x00\x0f\x23\x00\x0b\x50"
  37556. "\x77\x61\x72\x65\x20",
  37557. .output = "Join us now and share the software "
  37558. "Join us now and share the software ",
  37559. },
  37560. };
  37561. #define LZ4HC_COMP_TEST_VECTORS 1
  37562. #define LZ4HC_DECOMP_TEST_VECTORS 1
  37563. static struct comp_testvec lz4hc_comp_tv_template[] = {
  37564. {
  37565. .inlen = 70,
  37566. .outlen = 45,
  37567. .input = "Join us now and share the software "
  37568. "Join us now and share the software ",
  37569. .output = "\xf0\x10\x4a\x6f\x69\x6e\x20\x75"
  37570. "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
  37571. "\x64\x20\x73\x68\x61\x72\x65\x20"
  37572. "\x74\x68\x65\x20\x73\x6f\x66\x74"
  37573. "\x77\x0d\x00\x0f\x23\x00\x0b\x50"
  37574. "\x77\x61\x72\x65\x20",
  37575. },
  37576. };
  37577. static struct comp_testvec lz4hc_decomp_tv_template[] = {
  37578. {
  37579. .inlen = 45,
  37580. .outlen = 70,
  37581. .input = "\xf0\x10\x4a\x6f\x69\x6e\x20\x75"
  37582. "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
  37583. "\x64\x20\x73\x68\x61\x72\x65\x20"
  37584. "\x74\x68\x65\x20\x73\x6f\x66\x74"
  37585. "\x77\x0d\x00\x0f\x23\x00\x0b\x50"
  37586. "\x77\x61\x72\x65\x20",
  37587. .output = "Join us now and share the software "
  37588. "Join us now and share the software ",
  37589. },
  37590. };
  37591. #define ZSTD_COMP_TEST_VECTORS 2
  37592. #define ZSTD_DECOMP_TEST_VECTORS 2
  37593. static struct comp_testvec zstd_comp_tv_template[] = {
  37594. {
  37595. .inlen = 68,
  37596. .outlen = 39,
  37597. .input = "The algorithm is zstd. "
  37598. "The algorithm is zstd. "
  37599. "The algorithm is zstd.",
  37600. .output = "\x28\xb5\x2f\xfd\x00\x50\xf5\x00\x00\xb8\x54\x68\x65"
  37601. "\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d\x20\x69\x73"
  37602. "\x20\x7a\x73\x74\x64\x2e\x20\x01\x00\x55\x73\x36\x01"
  37603. ,
  37604. },
  37605. {
  37606. .inlen = 244,
  37607. .outlen = 151,
  37608. .input = "zstd, short for Zstandard, is a fast lossless "
  37609. "compression algorithm, targeting real-time "
  37610. "compression scenarios at zlib-level and better "
  37611. "compression ratios. The zstd compression library "
  37612. "provides in-memory compression and decompression "
  37613. "functions.",
  37614. .output = "\x28\xb5\x2f\xfd\x00\x50\x75\x04\x00\x42\x4b\x1e\x17"
  37615. "\x90\x81\x31\x00\xf2\x2f\xe4\x36\xc9\xef\x92\x88\x32"
  37616. "\xc9\xf2\x24\x94\xd8\x68\x9a\x0f\x00\x0c\xc4\x31\x6f"
  37617. "\x0d\x0c\x38\xac\x5c\x48\x03\xcd\x63\x67\xc0\xf3\xad"
  37618. "\x4e\x90\xaa\x78\xa0\xa4\xc5\x99\xda\x2f\xb6\x24\x60"
  37619. "\xe2\x79\x4b\xaa\xb6\x6b\x85\x0b\xc9\xc6\x04\x66\x86"
  37620. "\xe2\xcc\xe2\x25\x3f\x4f\x09\xcd\xb8\x9d\xdb\xc1\x90"
  37621. "\xa9\x11\xbc\x35\x44\x69\x2d\x9c\x64\x4f\x13\x31\x64"
  37622. "\xcc\xfb\x4d\x95\x93\x86\x7f\x33\x7f\x1a\xef\xe9\x30"
  37623. "\xf9\x67\xa1\x94\x0a\x69\x0f\x60\xcd\xc3\xab\x99\xdc"
  37624. "\x42\xed\x97\x05\x00\x33\xc3\x15\x95\x3a\x06\xa0\x0e"
  37625. "\x20\xa9\x0e\x82\xb9\x43\x45\x01",
  37626. },
  37627. };
  37628. static struct comp_testvec zstd_decomp_tv_template[] = {
  37629. {
  37630. .inlen = 43,
  37631. .outlen = 68,
  37632. .input = "\x28\xb5\x2f\xfd\x04\x50\xf5\x00\x00\xb8\x54\x68\x65"
  37633. "\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d\x20\x69\x73"
  37634. "\x20\x7a\x73\x74\x64\x2e\x20\x01\x00\x55\x73\x36\x01"
  37635. "\x6b\xf4\x13\x35",
  37636. .output = "The algorithm is zstd. "
  37637. "The algorithm is zstd. "
  37638. "The algorithm is zstd.",
  37639. },
  37640. {
  37641. .inlen = 155,
  37642. .outlen = 244,
  37643. .input = "\x28\xb5\x2f\xfd\x04\x50\x75\x04\x00\x42\x4b\x1e\x17"
  37644. "\x90\x81\x31\x00\xf2\x2f\xe4\x36\xc9\xef\x92\x88\x32"
  37645. "\xc9\xf2\x24\x94\xd8\x68\x9a\x0f\x00\x0c\xc4\x31\x6f"
  37646. "\x0d\x0c\x38\xac\x5c\x48\x03\xcd\x63\x67\xc0\xf3\xad"
  37647. "\x4e\x90\xaa\x78\xa0\xa4\xc5\x99\xda\x2f\xb6\x24\x60"
  37648. "\xe2\x79\x4b\xaa\xb6\x6b\x85\x0b\xc9\xc6\x04\x66\x86"
  37649. "\xe2\xcc\xe2\x25\x3f\x4f\x09\xcd\xb8\x9d\xdb\xc1\x90"
  37650. "\xa9\x11\xbc\x35\x44\x69\x2d\x9c\x64\x4f\x13\x31\x64"
  37651. "\xcc\xfb\x4d\x95\x93\x86\x7f\x33\x7f\x1a\xef\xe9\x30"
  37652. "\xf9\x67\xa1\x94\x0a\x69\x0f\x60\xcd\xc3\xab\x99\xdc"
  37653. "\x42\xed\x97\x05\x00\x33\xc3\x15\x95\x3a\x06\xa0\x0e"
  37654. "\x20\xa9\x0e\x82\xb9\x43\x45\x01\xaa\x6d\xda\x0d",
  37655. .output = "zstd, short for Zstandard, is a fast lossless "
  37656. "compression algorithm, targeting real-time "
  37657. "compression scenarios at zlib-level and better "
  37658. "compression ratios. The zstd compression library "
  37659. "provides in-memory compression and decompression "
  37660. "functions.",
  37661. },
  37662. };
  37663. #endif /* _CRYPTO_TESTMGR_H */